Skip to content

Commit

Permalink
chore: build
Browse files Browse the repository at this point in the history
  • Loading branch information
dr497 committed May 14, 2024
1 parent e4514ce commit fd46649
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 10 deletions.
4 changes: 2 additions & 2 deletions docs/domain-name/devnet.html
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ <h1 id="devnet"><a class="header" href="#devnet">Devnet</a></h1>
const connection = new Connection(&quot;https://api.devnet.solana.com&quot;);
</code></pre>
<h2 id="register-devnet-domains"><a class="header" href="#register-devnet-domains">Register Devnet Domains</a></h2>
<p>Many of the utility and binding functions in the devnet module will require existing devnet domain names. Use the <code>registerDomainName</code> binding to register domains on devnet to be used in testing.</p>
<pre><code class="language-js">const [, ix] = await devnet.bindings.registerDomainName(
<p>Many of the utility and binding functions in the devnet module will require existing devnet domain names. Use the <code>registerDomainNameV2</code> binding to register domains on devnet to be used in testing.</p>
<pre><code class="language-js">const ix = await devnet.bindings.registerDomainNameV2(
connection,
&quot;devnet-test-5&quot;, // The name of the domain you want to register
1_000,
Expand Down
7 changes: 5 additions & 2 deletions docs/domain-name/registration.html
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ <h1 class="menu-title">Solana Name Service Guide</h1>
<div id="content" class="content">
<main>
<h1 id="registration"><a class="header" href="#registration">Registration</a></h1>
<blockquote>
<p><strong>Deprecated:</strong> The <code>registerDomainName</code> function is being deprecated as it relies on the older Pyth smart contract on Solana, which is scheduled to be sunsetted at the end of May 2024. Please transition to using <code>registerDomainNameV2</code> for future domain registrations.</p>
</blockquote>
<p>Easily integrate SNS domain registrations into your applications using our SNS Widget React Component. See a default usage example below. You can also customize the widget to fit your unique needs. More information is available here: https://github.com/Bonfida/sns-widget/blob/main/README.md</p>
<pre><code class="language-js">import Widget from &quot;@bonfida/sns-widget&quot;;
// Apart from the component itself, you also need to import styles separately
Expand Down Expand Up @@ -206,15 +209,15 @@ <h2 id="asset-pricing"><a class="header" href="#asset-pricing">Asset pricing</a>
<p>Token pricing data during domain registration is provided to us by our friends at Pyth Network. Learn more about their Blockchain Oracle at <a href="https://pyth.network/">Pyth Network</a>.</p>
<h2 id="sdk"><a class="header" href="#sdk">SDK</a></h2>
<p>Unregistered domains can be registered using the SDK <code>@bonfida/spl-name-service</code> with the following instructions:</p>
<pre><code class="language-js">import { registerDomainName } from &quot;@bonfida/spl-name-service&quot;;
<pre><code class="language-js">import { registerDomainNameV2 } from &quot;@bonfida/spl-name-service&quot;;

const name = &quot;bonfida&quot;; // We want to register bonfida.sol
const space = 1 * 1_000; // We want a 1kB sized domain (max 10kB)

const buyer = new PublicKey(&quot;...&quot;); // Publickey of the buyer
const buyerTokenAccount = new PublicKey(&quot;...&quot;); // Publickey of the token account of the buyer (USDC)

const [, ix] = await registerDomainName(name, space, buyer, buyerTokenAccount);
const ix = await registerDomainNameV2(name, space, buyer, buyerTokenAccount);

// sign and send the instruction
</code></pre>
Expand Down
11 changes: 7 additions & 4 deletions docs/print.html
Original file line number Diff line number Diff line change
Expand Up @@ -1501,6 +1501,9 @@ <h2 id="js-example"><a class="header" href="#js-example">JS example</a></h2>
const owner = await retrieveNftOwner(connection, nameKey);
</code></pre>
<div style="break-before: page; page-break-before: always;"></div><h1 id="registration"><a class="header" href="#registration">Registration</a></h1>
<blockquote>
<p><strong>Deprecated:</strong> The <code>registerDomainName</code> function is being deprecated as it relies on the older Pyth smart contract on Solana, which is scheduled to be sunsetted at the end of May 2024. Please transition to using <code>registerDomainNameV2</code> for future domain registrations.</p>
</blockquote>
<p>Easily integrate SNS domain registrations into your applications using our SNS Widget React Component. See a default usage example below. You can also customize the widget to fit your unique needs. More information is available here: https://github.com/Bonfida/sns-widget/blob/main/README.md</p>
<pre><code class="language-js">import Widget from &quot;@bonfida/sns-widget&quot;;
// Apart from the component itself, you also need to import styles separately
Expand Down Expand Up @@ -1533,15 +1536,15 @@ <h2 id="asset-pricing"><a class="header" href="#asset-pricing">Asset pricing</a>
<p>Token pricing data during domain registration is provided to us by our friends at Pyth Network. Learn more about their Blockchain Oracle at <a href="https://pyth.network/">Pyth Network</a>.</p>
<h2 id="sdk"><a class="header" href="#sdk">SDK</a></h2>
<p>Unregistered domains can be registered using the SDK <code>@bonfida/spl-name-service</code> with the following instructions:</p>
<pre><code class="language-js">import { registerDomainName } from &quot;@bonfida/spl-name-service&quot;;
<pre><code class="language-js">import { registerDomainNameV2 } from &quot;@bonfida/spl-name-service&quot;;

const name = &quot;bonfida&quot;; // We want to register bonfida.sol
const space = 1 * 1_000; // We want a 1kB sized domain (max 10kB)

const buyer = new PublicKey(&quot;...&quot;); // Publickey of the buyer
const buyerTokenAccount = new PublicKey(&quot;...&quot;); // Publickey of the token account of the buyer (USDC)

const [, ix] = await registerDomainName(name, space, buyer, buyerTokenAccount);
const ix = await registerDomainNameV2(name, space, buyer, buyerTokenAccount);

// sign and send the instruction
</code></pre>
Expand Down Expand Up @@ -1775,8 +1778,8 @@ <h2 id="deleting-a-subdomain"><a class="header" href="#deleting-a-subdomain">Del
const connection = new Connection(&quot;https://api.devnet.solana.com&quot;);
</code></pre>
<h2 id="register-devnet-domains"><a class="header" href="#register-devnet-domains">Register Devnet Domains</a></h2>
<p>Many of the utility and binding functions in the devnet module will require existing devnet domain names. Use the <code>registerDomainName</code> binding to register domains on devnet to be used in testing.</p>
<pre><code class="language-js">const [, ix] = await devnet.bindings.registerDomainName(
<p>Many of the utility and binding functions in the devnet module will require existing devnet domain names. Use the <code>registerDomainNameV2</code> binding to register domains on devnet to be used in testing.</p>
<pre><code class="language-js">const ix = await devnet.bindings.registerDomainNameV2(
connection,
&quot;devnet-test-5&quot;, // The name of the domain you want to register
1_000,
Expand Down
2 changes: 1 addition & 1 deletion docs/searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/searchindex.json

Large diffs are not rendered by default.

0 comments on commit fd46649

Please sign in to comment.