Skip to content

Commit

Permalink
chore: build
Browse files Browse the repository at this point in the history
  • Loading branch information
dr497 committed Feb 22, 2024
1 parent a968f21 commit bec8d3f
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 6 deletions.
33 changes: 31 additions & 2 deletions docs/domain-name/wallet-guide/bridged-domains.html
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ <h1 class="menu-title">Solana Name Service Guide</h1>
<div id="content" class="content">
<main>
<h1 id="how-to-resolve-a-sol-domain-cross-chain"><a class="header" href="#how-to-resolve-a-sol-domain-cross-chain">How to resolve a .sol domain cross-chain?</a></h1>
<p>The Solana Name Service (SNS) going cross-chain means that it is expanding its functionality beyond the Solana ecosystem, enabling users to export their domain names to alternative blockchains using the <a href="https://wormhole.com/">Wormhole bridge</a>. This move aims to increase the utility and adoption of SNS, while also fostering collaboration and interoperability between different blockchain networks. By allowing SNS domains to be resolved on supported chains like EVM-based chains, SNS becomes more accessible to a wider range of developers and users, promoting the growth of the Solana ecosystem and showcasing its capabilities beyond its native environment.</p>
<p>The Solana Name Service (SNS) going cross-chain means that it is expanding its functionality beyond the Solana ecosystem, enabling users to export their domain names to alternative blockchains using the <a href="https://wormhole.com/">Wormhole bridge</a>. This move aims to increase the utility and adoption of SNS, while also fostering collaboration and interoperability between different blockchain networks. By allowing SNS domains to be resolved on supported chains like EVM-based chains and Injective, SNS becomes more accessible to a wider range of developers and users, promoting the growth of the Solana ecosystem and showcasing its capabilities beyond its native environment.</p>
<h2 id="evm-chains"><a class="header" href="#evm-chains">EVM Chains</a></h2>
<p>The Solana Name Service has been bridged to the following EVM chains:</p>
<ul>
Expand All @@ -190,7 +190,7 @@ <h3 id="installation"><a class="header" href="#installation">Installation</a></h
<pre><code>npm i @bonfida/sns-warp-evm
</code></pre>
<h3 id="resolving-a-sol-domain"><a class="header" href="#resolving-a-sol-domain">Resolving a .sol domain</a></h3>
<p>The following code can be used to resolve .sol domains</p>
<p>The following code can be used to resolve .sol domains on EVM chains</p>
<pre><code class="language-js">import { SupportedChains, SNS } from &quot;@bonfida/sns-warp-evm&quot;;

// The domain name to resolve
Expand All @@ -215,6 +215,35 @@ <h3 id="reverse-look-up"><a class="header" href="#reverse-look-up">Reverse look

const resolved = await sns.resolveReverse(nameHash);
console.log(resolved); // &lt;- mock3
</code></pre>
<h2 id="injective"><a class="header" href="#injective">Injective</a></h2>
<p>The Solana Name Service has also been bridged to Injective.</p>
<ul>
<li>Injective Testnet (deployed at <code>inj1q79ujqyh72p43mhr2ldaly3x6d50rzp3354at3</code>)</li>
<li>Injective Mainnet (deployed at <code>inj1v7chmgm7vmuwldjt80utmw9c95jkrch979ps8z</code>)</li>
</ul>
<p>Solana domain names bridged to Injective can be resolved using the NPM package <a href="https://www.npmjs.com/package/@bonfida/sns-warp-injective">@bonfida/sns-warp-injective</a>.</p>
<p>SNS is also supported by the <a href="https://github.com/leapwallet/name-matcha">Leap Wallet Name Match package</a>.</p>
<h3 id="installation-1"><a class="header" href="#installation-1">Installation</a></h3>
<p>With Yarn:</p>
<pre><code>yarn add @bonfida/sns-warp-injective
</code></pre>
<p>With NPM</p>
<pre><code>npm i @bonfida/sns-warp-injective
</code></pre>
<h3 id="resolving-a-sol-domain-1"><a class="header" href="#resolving-a-sol-domain-1">Resolving a .sol domain</a></h3>
<p>The following code can be used to resolve .sol domains on Injective</p>
<pre><code class="language-js">import { resolveName } from &quot;@bonfida/sns-warp-injective&quot;;
import { Network } from &quot;@injectivelabs/networks&quot;;

// The domain name to resolve
const domain = &quot;bonfida.sol&quot;;
// The network on which to resolve the domain
const network = Network.Mainnet;

const resolved = await resolveName(domain, network);

console.log(resolved); // &lt;- inj1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqe2hm49
</code></pre>

</main>
Expand Down
33 changes: 31 additions & 2 deletions docs/print.html
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ <h2 id="examples-1"><a class="header" href="#examples-1">Examples</a></h2>
<tr><td>sub-1.wallet-guide-3.sol</td><td>Hf4daCT4tC2Vy9RCe9q8avT68yAsNJ1dQe6xiQqyGuqZ</td></tr>
</tbody></table>
</div><div style="break-before: page; page-break-before: always;"></div><h1 id="how-to-resolve-a-sol-domain-cross-chain"><a class="header" href="#how-to-resolve-a-sol-domain-cross-chain">How to resolve a .sol domain cross-chain?</a></h1>
<p>The Solana Name Service (SNS) going cross-chain means that it is expanding its functionality beyond the Solana ecosystem, enabling users to export their domain names to alternative blockchains using the <a href="https://wormhole.com/">Wormhole bridge</a>. This move aims to increase the utility and adoption of SNS, while also fostering collaboration and interoperability between different blockchain networks. By allowing SNS domains to be resolved on supported chains like EVM-based chains, SNS becomes more accessible to a wider range of developers and users, promoting the growth of the Solana ecosystem and showcasing its capabilities beyond its native environment.</p>
<p>The Solana Name Service (SNS) going cross-chain means that it is expanding its functionality beyond the Solana ecosystem, enabling users to export their domain names to alternative blockchains using the <a href="https://wormhole.com/">Wormhole bridge</a>. This move aims to increase the utility and adoption of SNS, while also fostering collaboration and interoperability between different blockchain networks. By allowing SNS domains to be resolved on supported chains like EVM-based chains and Injective, SNS becomes more accessible to a wider range of developers and users, promoting the growth of the Solana ecosystem and showcasing its capabilities beyond its native environment.</p>
<h2 id="evm-chains"><a class="header" href="#evm-chains">EVM Chains</a></h2>
<p>The Solana Name Service has been bridged to the following EVM chains:</p>
<ul>
Expand All @@ -586,7 +586,7 @@ <h3 id="installation-1"><a class="header" href="#installation-1">Installation</a
<pre><code>npm i @bonfida/sns-warp-evm
</code></pre>
<h3 id="resolving-a-sol-domain"><a class="header" href="#resolving-a-sol-domain">Resolving a .sol domain</a></h3>
<p>The following code can be used to resolve .sol domains</p>
<p>The following code can be used to resolve .sol domains on EVM chains</p>
<pre><code class="language-js">import { SupportedChains, SNS } from &quot;@bonfida/sns-warp-evm&quot;;

// The domain name to resolve
Expand All @@ -612,6 +612,35 @@ <h3 id="reverse-look-up"><a class="header" href="#reverse-look-up">Reverse look
const resolved = await sns.resolveReverse(nameHash);
console.log(resolved); // &lt;- mock3
</code></pre>
<h2 id="injective"><a class="header" href="#injective">Injective</a></h2>
<p>The Solana Name Service has also been bridged to Injective.</p>
<ul>
<li>Injective Testnet (deployed at <code>inj1q79ujqyh72p43mhr2ldaly3x6d50rzp3354at3</code>)</li>
<li>Injective Mainnet (deployed at <code>inj1v7chmgm7vmuwldjt80utmw9c95jkrch979ps8z</code>)</li>
</ul>
<p>Solana domain names bridged to Injective can be resolved using the NPM package <a href="https://www.npmjs.com/package/@bonfida/sns-warp-injective">@bonfida/sns-warp-injective</a>.</p>
<p>SNS is also supported by the <a href="https://github.com/leapwallet/name-matcha">Leap Wallet Name Match package</a>.</p>
<h3 id="installation-2"><a class="header" href="#installation-2">Installation</a></h3>
<p>With Yarn:</p>
<pre><code>yarn add @bonfida/sns-warp-injective
</code></pre>
<p>With NPM</p>
<pre><code>npm i @bonfida/sns-warp-injective
</code></pre>
<h3 id="resolving-a-sol-domain-1"><a class="header" href="#resolving-a-sol-domain-1">Resolving a .sol domain</a></h3>
<p>The following code can be used to resolve .sol domains on Injective</p>
<pre><code class="language-js">import { resolveName } from &quot;@bonfida/sns-warp-injective&quot;;
import { Network } from &quot;@injectivelabs/networks&quot;;

// The domain name to resolve
const domain = &quot;bonfida.sol&quot;;
// The network on which to resolve the domain
const network = Network.Mainnet;

const resolved = await resolveName(domain, network);

console.log(resolved); // &lt;- inj1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqe2hm49
</code></pre>
<div style="break-before: page; page-break-before: always;"></div><h1 id="resolving-twitter-handles"><a class="header" href="#resolving-twitter-handles">Resolving Twitter handles</a></h1>
<p>The Solana name service supports the registration of Twitter handles, allowing users to connect their Twitter profile to their wallet.</p>
<h2 id="direct-look-up"><a class="header" href="#direct-look-up">Direct look up</a></h2>
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 bec8d3f

Please sign in to comment.