Skip to content

Commit 855e222

Browse files
committed
fix docs for set domain and thankyou
1 parent 74a54e0 commit 855e222

File tree

2 files changed

+43
-31
lines changed

2 files changed

+43
-31
lines changed

components/TryForFree/ApiKeySentDocs.js

Lines changed: 37 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -32,38 +32,40 @@ export const ApiKeySentDocs = ({
3232
"avatar": "https://ens.domains/assets/ens_logo_text_dark.svg"
3333
}
3434
}' \\
35-
https://namestone.com/api/${network === Network.MAINNET ? "public_v1" : "public_v1_sepolia"}/set-name`;
35+
https://namestone.com/api/${
36+
network === Network.MAINNET ? "public_v1" : "public_v1_sepolia"
37+
}/set-name`;
3638

3739
navigator.clipboard
3840
.writeText(code)
3941
.then(() => {
40-
toast.success('Code copied to clipboard!', {
42+
toast.success("Code copied to clipboard!", {
4143
style: {
42-
background: '#F0FDF4',
43-
color: '#166534',
44-
border: '1px solid #DCFCE7',
45-
padding: '12px 16px',
46-
maxWidth: '320px',
47-
margin: '0 auto',
48-
borderRadius: '6px',
49-
fontWeight: '500',
44+
background: "#F0FDF4",
45+
color: "#166534",
46+
border: "1px solid #DCFCE7",
47+
padding: "12px 16px",
48+
maxWidth: "320px",
49+
margin: "0 auto",
50+
borderRadius: "6px",
51+
fontWeight: "500",
5052
},
51-
icon: '✓',
53+
icon: "✓",
5254
duration: 3000,
5355
});
5456
})
5557
.catch((err) => {
5658
console.error("Failed to copy code: ", err);
57-
toast.error('Failed to copy code', {
59+
toast.error("Failed to copy code", {
5860
style: {
59-
background: '#FEF2F2',
60-
color: '#B91C1C',
61-
border: '1px solid #FEE2E2',
62-
padding: '12px 16px',
63-
maxWidth: '320px',
64-
margin: '0 auto',
65-
borderRadius: '6px',
66-
fontWeight: '500',
61+
background: "#FEF2F2",
62+
color: "#B91C1C",
63+
border: "1px solid #FEE2E2",
64+
padding: "12px 16px",
65+
maxWidth: "320px",
66+
margin: "0 auto",
67+
borderRadius: "6px",
68+
fontWeight: "500",
6769
},
6870
duration: 3000,
6971
});
@@ -89,7 +91,7 @@ https://namestone.com/api/${network === Network.MAINNET ? "public_v1" : "public_
8991
<div className="relative flex justify-center w-full min-h-screen px-8 pt-8 overflow-hidden text-left bg-white">
9092
<div className="flex flex-col w-full max-w-2xl py-16 lg:px-8">
9193
{/* Success Message */}
92-
<div className="flex items-center p-4 mb-8 bg-green-50 rounded-md">
94+
<div className="flex items-center p-4 mb-8 rounded-md bg-green-50">
9395
<Image src={CheckmarkIcon} alt="Checkmark" className="w-5 h-5 mr-3" />
9496
<span className="text-base font-medium">API Key Sent</span>
9597
<span className="ml-2 text-gray-600">Check your inbox.</span>
@@ -110,7 +112,10 @@ https://namestone.com/api/${network === Network.MAINNET ? "public_v1" : "public_
110112
<span className="text-gray-700">
111113
Run the curl example and add your API key.
112114
</span>
113-
<a href="https://namestone.com/docs" className="ml-2 text-orange-500 hover:underline">
115+
<a
116+
href="https://namestone.com/docs"
117+
className="ml-2 text-orange-500 hover:underline"
118+
>
114119
View all docs
115120
</a>
116121
</div>
@@ -162,15 +167,16 @@ https://namestone.com/api/${network === Network.MAINNET ? "public_v1" : "public_
162167
-H 'Content-Type: application/json' \\
163168
-H 'Authorization: YOUR_API_KEY' \\
164169
-d '{
165-
"domain": "${userEnsDomain}",
166-
"name": "example",
167-
"address": "0x534631Bcf33BD0b69fB20A93d2fdb9e4D4dD42CF",
168-
},
169-
"text_records": {
170-
"avatar": "https://ens.domains/assets/ens_logo_text_dark.svg"
171-
}
172-
}' \\
173-
https://namestone.com/api/${network === Network.MAINNET ? "public_v1" : "public_v1_sepolia"}/set-name`}</code>
170+
"domain": "${userEnsDomain}",
171+
"name": "example",
172+
"address": "0x534631Bcf33BD0b69fB20A93d2fdb9e4D4dD42CF",
173+
"text_records": {
174+
"avatar": "https://ens.domains/assets/ens_logo_text_dark.svg"
175+
}
176+
}' \\
177+
https://namestone.com/api/${
178+
network === Network.MAINNET ? "public_v1" : "public_v1_sepolia"
179+
}/set-name`}</code>
174180
</pre>
175181
</div>
176182
</div>

data/docs/set-domain.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ curl -X POST \
2020
-d '{
2121
"domain":"testbrand.eth",
2222
"address":"0xE997d9b785Dd99832d21b3Ce5A34fCacC6D53C57",
23+
"coin_types": {
24+
"2147483785": "0x534631Bcf33BDb069fB20A93d2fdb9e4D4dD42CF",
25+
"2147492101": "0x534631Bcf33BDb069fB20A93d2fdb9e4D4dD42CF",
26+
"2147525809": "0x534631Bcf33BDb069fB20A93d2fdb9e4D4dD42CF",
27+
"2147483658": "0x534631Bcf33BDb069fB20A93d2fdb9e4D4dD42CF"
28+
},
2329
"text_records": {
2430
"com.twitter":"namestonehq",
2531
"com.github":"aslobodnik",

0 commit comments

Comments
 (0)