Skip to content

Commit

Permalink
deploy: 280d1fb
Browse files Browse the repository at this point in the history
  • Loading branch information
arobsn committed Dec 13, 2024
1 parent b5ab8a0 commit 2e2b200
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</head>
<body>
<div id="app"></div>
<script>window.__VP_HASH_MAP__=JSON.parse("{\"dapp-connector_api-overview.md\":\"ejJ1KwaR\",\"dapp-connector_wallet-connection.md\":\"BBnHUTA7\",\"dapp-connector_wallet-interaction.md\":\"DfjRRJah\",\"index.md\":\"Brc0oqKG\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"Nautilus Wallet\",\"description\":\"Nautilus Technical Docs\",\"base\":\"/\",\"head\":[],\"router\":{\"prefetchLinks\":true},\"appearance\":true,\"themeConfig\":{\"editLink\":{\"pattern\":\"https://github.com/nautls/nautilus-wallet/edit/master/docs/:path\"},\"outline\":\"deep\",\"logo\":{\"src\":\"/logo.svg\",\"alt\":\"Nautilus Wallet Logo\"},\"sidebar\":[{\"text\":\"dApp Connector API\",\"base\":\"/dapp-connector/\",\"items\":[{\"text\":\"API Overview\",\"link\":\"api-overview\"},{\"text\":\"Connecting to a Wallet\",\"link\":\"wallet-connection\"},{\"text\":\"Interacting with a Wallet\",\"link\":\"wallet-interaction\"}]}],\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/nautls/nautilus-wallet\"},{\"icon\":\"x\",\"link\":\"https://x.com/nautiluswallet\"},{\"icon\":\"discord\",\"link\":\"https://discord.gg/ergo-platform-668903786361651200\"}]},\"locales\":{},\"scrollOffset\":134,\"cleanUrls\":true}");</script>
<script>window.__VP_HASH_MAP__=JSON.parse("{\"dapp-connector_api-overview.md\":\"DI_WWzKA\",\"dapp-connector_wallet-connection.md\":\"BBnHUTA7\",\"dapp-connector_wallet-interaction.md\":\"DfjRRJah\",\"index.md\":\"Brc0oqKG\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"Nautilus Wallet\",\"description\":\"Nautilus Technical Docs\",\"base\":\"/\",\"head\":[],\"router\":{\"prefetchLinks\":true},\"appearance\":true,\"themeConfig\":{\"editLink\":{\"pattern\":\"https://github.com/nautls/nautilus-wallet/edit/master/docs/:path\"},\"outline\":\"deep\",\"logo\":{\"src\":\"/logo.svg\",\"alt\":\"Nautilus Wallet Logo\"},\"sidebar\":[{\"text\":\"dApp Connector API\",\"base\":\"/dapp-connector/\",\"items\":[{\"text\":\"API Overview\",\"link\":\"api-overview\"},{\"text\":\"Connecting to a Wallet\",\"link\":\"wallet-connection\"},{\"text\":\"Interacting with a Wallet\",\"link\":\"wallet-interaction\"}]}],\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/nautls/nautilus-wallet\"},{\"icon\":\"x\",\"link\":\"https://x.com/nautiluswallet\"},{\"icon\":\"discord\",\"link\":\"https://discord.gg/ergo-platform-668903786361651200\"}]},\"locales\":{},\"scrollOffset\":134,\"cleanUrls\":true}");</script>

</body>
</html>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dapp-connector/api-overview.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dapp-connector/wallet-connection.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">if</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> (isConnected) {</span></span>
<span class="line has-focus"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> const</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> ergo</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> =</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> await</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> ergoConnector.nautilus.</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">getContext</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(); </span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><h3 id="check-for-authorization-and-connection-status" tabindex="-1">Check for authorization and connection status <a class="header-anchor" href="#check-for-authorization-and-connection-status" aria-label="Permalink to &quot;Check for authorization and connection status&quot;"></a></h3><p>Nautilus provides methods to check both the authorization and connection status of your dApp with the wallet.</p><ul><li><code>ergoConnector.nautilus.isConnected()</code>: Checks if there is an active connection between your dApp and Nautilus.</li><li><code>ergoConnector.nautilus.isAuthorized()</code>: Checks if your dApp has been previously authorized by the user.</li></ul><h2 id="disconnect-from-the-wallet" tabindex="-1">Disconnect from the Wallet <a class="header-anchor" href="#disconnect-from-the-wallet" aria-label="Permalink to &quot;Disconnect from the Wallet&quot;"></a></h2><p>You can disconnect from a wallet using the <code>ergoConnector.nautilus.disconnect()</code> method, which will revoke your dApp&#39;s authorization token. If you need to connect again in the future, the user will be prompted with a new connection request.</p></div></div></main><footer class="VPDocFooter" data-v-843ed324 data-v-a9ad519d><!--[--><!--]--><div class="edit-info" data-v-a9ad519d><div class="edit-link" data-v-a9ad519d><a class="VPLink link vp-external-link-icon no-icon edit-link-button" href="https://github.com/nautls/nautilus-wallet/edit/master/docs/dapp-connector/wallet-connection.md" target="_blank" rel="noreferrer" data-v-a9ad519d><!--[--><span class="vpi-square-pen edit-link-icon" data-v-a9ad519d></span> Edit this page<!--]--></a></div><div class="last-updated" data-v-a9ad519d><p class="VPLastUpdated" data-v-a9ad519d data-v-1758709d>Last updated: <time datetime="2024-11-11T11:43:57.000Z" data-v-1758709d></time></p></div></div><nav class="prev-next" aria-labelledby="doc-footer-aria-label" data-v-a9ad519d><span class="visually-hidden" id="doc-footer-aria-label" data-v-a9ad519d>Pager</span><div class="pager" data-v-a9ad519d><a class="VPLink link pager-link prev" href="/dapp-connector/api-overview" data-v-a9ad519d><!--[--><span class="desc" data-v-a9ad519d>Previous page</span><span class="title" data-v-a9ad519d>API Overview</span><!--]--></a></div><div class="pager" data-v-a9ad519d><a class="VPLink link pager-link next" href="/dapp-connector/wallet-interaction" data-v-a9ad519d><!--[--><span class="desc" data-v-a9ad519d>Next page</span><span class="title" data-v-a9ad519d>Interacting with a Wallet</span><!--]--></a></div></nav></footer><!--[--><!--]--></div></div></div><!--[--><!--]--></div></div><!----><!--[--><!--]--></div></div>
<script>window.__VP_HASH_MAP__=JSON.parse("{\"dapp-connector_api-overview.md\":\"ejJ1KwaR\",\"dapp-connector_wallet-connection.md\":\"BBnHUTA7\",\"dapp-connector_wallet-interaction.md\":\"DfjRRJah\",\"index.md\":\"Brc0oqKG\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"Nautilus Wallet\",\"description\":\"Nautilus Technical Docs\",\"base\":\"/\",\"head\":[],\"router\":{\"prefetchLinks\":true},\"appearance\":true,\"themeConfig\":{\"editLink\":{\"pattern\":\"https://github.com/nautls/nautilus-wallet/edit/master/docs/:path\"},\"outline\":\"deep\",\"logo\":{\"src\":\"/logo.svg\",\"alt\":\"Nautilus Wallet Logo\"},\"sidebar\":[{\"text\":\"dApp Connector API\",\"base\":\"/dapp-connector/\",\"items\":[{\"text\":\"API Overview\",\"link\":\"api-overview\"},{\"text\":\"Connecting to a Wallet\",\"link\":\"wallet-connection\"},{\"text\":\"Interacting with a Wallet\",\"link\":\"wallet-interaction\"}]}],\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/nautls/nautilus-wallet\"},{\"icon\":\"x\",\"link\":\"https://x.com/nautiluswallet\"},{\"icon\":\"discord\",\"link\":\"https://discord.gg/ergo-platform-668903786361651200\"}]},\"locales\":{},\"scrollOffset\":134,\"cleanUrls\":true}");</script>
<script>window.__VP_HASH_MAP__=JSON.parse("{\"dapp-connector_api-overview.md\":\"DI_WWzKA\",\"dapp-connector_wallet-connection.md\":\"BBnHUTA7\",\"dapp-connector_wallet-interaction.md\":\"DfjRRJah\",\"index.md\":\"Brc0oqKG\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"Nautilus Wallet\",\"description\":\"Nautilus Technical Docs\",\"base\":\"/\",\"head\":[],\"router\":{\"prefetchLinks\":true},\"appearance\":true,\"themeConfig\":{\"editLink\":{\"pattern\":\"https://github.com/nautls/nautilus-wallet/edit/master/docs/:path\"},\"outline\":\"deep\",\"logo\":{\"src\":\"/logo.svg\",\"alt\":\"Nautilus Wallet Logo\"},\"sidebar\":[{\"text\":\"dApp Connector API\",\"base\":\"/dapp-connector/\",\"items\":[{\"text\":\"API Overview\",\"link\":\"api-overview\"},{\"text\":\"Connecting to a Wallet\",\"link\":\"wallet-connection\"},{\"text\":\"Interacting with a Wallet\",\"link\":\"wallet-interaction\"}]}],\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/nautls/nautilus-wallet\"},{\"icon\":\"x\",\"link\":\"https://x.com/nautiluswallet\"},{\"icon\":\"discord\",\"link\":\"https://discord.gg/ergo-platform-668903786361651200\"}]},\"locales\":{},\"scrollOffset\":134,\"cleanUrls\":true}");</script>

</body>
</html>
2 changes: 1 addition & 1 deletion dapp-connector/wallet-interaction.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">const</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> [</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">publicKey</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">] </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> ErgoAddress.</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">decode</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(address).</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">getPublicKeys</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">();</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">const</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> verified</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> =</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> prover.</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">verify</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(data, proof, publicKey);</span></span></code></pre></div><div class="info custom-block"><p class="custom-block-title">INFO</p><p>Note that the <code>address</code>, <code>data</code>, and <code>proof</code> must be the same as in the signing step.</p></div></div></div></main><footer class="VPDocFooter" data-v-843ed324 data-v-a9ad519d><!--[--><!--]--><div class="edit-info" data-v-a9ad519d><div class="edit-link" data-v-a9ad519d><a class="VPLink link vp-external-link-icon no-icon edit-link-button" href="https://github.com/nautls/nautilus-wallet/edit/master/docs/dapp-connector/wallet-interaction.md" target="_blank" rel="noreferrer" data-v-a9ad519d><!--[--><span class="vpi-square-pen edit-link-icon" data-v-a9ad519d></span> Edit this page<!--]--></a></div><div class="last-updated" data-v-a9ad519d><p class="VPLastUpdated" data-v-a9ad519d data-v-1758709d>Last updated: <time datetime="2024-11-13T13:23:13.000Z" data-v-1758709d></time></p></div></div><nav class="prev-next" aria-labelledby="doc-footer-aria-label" data-v-a9ad519d><span class="visually-hidden" id="doc-footer-aria-label" data-v-a9ad519d>Pager</span><div class="pager" data-v-a9ad519d><a class="VPLink link pager-link prev" href="/dapp-connector/wallet-connection" data-v-a9ad519d><!--[--><span class="desc" data-v-a9ad519d>Previous page</span><span class="title" data-v-a9ad519d>Connecting to a Wallet</span><!--]--></a></div><div class="pager" data-v-a9ad519d><!----></div></nav></footer><!--[--><!--]--></div></div></div><!--[--><!--]--></div></div><!----><!--[--><!--]--></div></div>
<script>window.__VP_HASH_MAP__=JSON.parse("{\"dapp-connector_api-overview.md\":\"ejJ1KwaR\",\"dapp-connector_wallet-connection.md\":\"BBnHUTA7\",\"dapp-connector_wallet-interaction.md\":\"DfjRRJah\",\"index.md\":\"Brc0oqKG\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"Nautilus Wallet\",\"description\":\"Nautilus Technical Docs\",\"base\":\"/\",\"head\":[],\"router\":{\"prefetchLinks\":true},\"appearance\":true,\"themeConfig\":{\"editLink\":{\"pattern\":\"https://github.com/nautls/nautilus-wallet/edit/master/docs/:path\"},\"outline\":\"deep\",\"logo\":{\"src\":\"/logo.svg\",\"alt\":\"Nautilus Wallet Logo\"},\"sidebar\":[{\"text\":\"dApp Connector API\",\"base\":\"/dapp-connector/\",\"items\":[{\"text\":\"API Overview\",\"link\":\"api-overview\"},{\"text\":\"Connecting to a Wallet\",\"link\":\"wallet-connection\"},{\"text\":\"Interacting with a Wallet\",\"link\":\"wallet-interaction\"}]}],\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/nautls/nautilus-wallet\"},{\"icon\":\"x\",\"link\":\"https://x.com/nautiluswallet\"},{\"icon\":\"discord\",\"link\":\"https://discord.gg/ergo-platform-668903786361651200\"}]},\"locales\":{},\"scrollOffset\":134,\"cleanUrls\":true}");</script>
<script>window.__VP_HASH_MAP__=JSON.parse("{\"dapp-connector_api-overview.md\":\"DI_WWzKA\",\"dapp-connector_wallet-connection.md\":\"BBnHUTA7\",\"dapp-connector_wallet-interaction.md\":\"DfjRRJah\",\"index.md\":\"Brc0oqKG\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"Nautilus Wallet\",\"description\":\"Nautilus Technical Docs\",\"base\":\"/\",\"head\":[],\"router\":{\"prefetchLinks\":true},\"appearance\":true,\"themeConfig\":{\"editLink\":{\"pattern\":\"https://github.com/nautls/nautilus-wallet/edit/master/docs/:path\"},\"outline\":\"deep\",\"logo\":{\"src\":\"/logo.svg\",\"alt\":\"Nautilus Wallet Logo\"},\"sidebar\":[{\"text\":\"dApp Connector API\",\"base\":\"/dapp-connector/\",\"items\":[{\"text\":\"API Overview\",\"link\":\"api-overview\"},{\"text\":\"Connecting to a Wallet\",\"link\":\"wallet-connection\"},{\"text\":\"Interacting with a Wallet\",\"link\":\"wallet-interaction\"}]}],\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/nautls/nautilus-wallet\"},{\"icon\":\"x\",\"link\":\"https://x.com/nautiluswallet\"},{\"icon\":\"discord\",\"link\":\"https://discord.gg/ergo-platform-668903786361651200\"}]},\"locales\":{},\"scrollOffset\":134,\"cleanUrls\":true}");</script>

</body>
</html>
2 changes: 1 addition & 1 deletion hashmap.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"dapp-connector_api-overview.md":"ejJ1KwaR","dapp-connector_wallet-connection.md":"BBnHUTA7","dapp-connector_wallet-interaction.md":"DfjRRJah","index.md":"Brc0oqKG"}
{"dapp-connector_api-overview.md":"DI_WWzKA","dapp-connector_wallet-connection.md":"BBnHUTA7","dapp-connector_wallet-interaction.md":"DfjRRJah","index.md":"Brc0oqKG"}
Loading

0 comments on commit 2e2b200

Please sign in to comment.