Skip to content

Commit

Permalink
deploy: 1ad1814
Browse files Browse the repository at this point in the history
  • Loading branch information
platfowner committed May 3, 2024
1 parent 8df869f commit 754eebc
Show file tree
Hide file tree
Showing 100 changed files with 375 additions and 372 deletions.
8 changes: 4 additions & 4 deletions assets/highlight.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
--dark-hl-4: #DCDCAA;
--light-hl-5: #A31515;
--dark-hl-5: #CE9178;
--light-hl-6: #098658;
--dark-hl-6: #B5CEA8;
--light-hl-7: #008000;
--dark-hl-7: #6A9955;
--light-hl-6: #008000;
--dark-hl-6: #6A9955;
--light-hl-7: #098658;
--dark-hl-7: #B5CEA8;
--light-code-background: #FFFFFF;
--dark-code-background: #1E1E1E;
}
Expand Down
2 changes: 1 addition & 1 deletion assets/search.js

Large diffs are not rendered by default.

96 changes: 50 additions & 46 deletions classes/ain.default.html

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions classes/ain_db_db.default.html

Large diffs are not rendered by default.

62 changes: 31 additions & 31 deletions classes/ain_db_ref.default.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions classes/errors.BlockchainError.html

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions classes/event_manager.default.html

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions classes/event_manager_event_callback_manager.default.html

Large diffs are not rendered by default.

44 changes: 21 additions & 23 deletions classes/event_manager_event_channel_client.default.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions classes/event_manager_event_filter.default.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions classes/event_manager_subscription.default.html

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions classes/he.default.html

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletions classes/net.default.html

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions classes/promi_event.PromiEvent.html

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions classes/provider.default.html

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions classes/signer_ain_wallet_signer.AinWalletSigner.html

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions classes/signer_default_signer.DefaultSigner.html

Large diffs are not rendered by default.

69 changes: 35 additions & 34 deletions classes/wallet.default.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions enums/types.BlockchainEventTypes.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions enums/types.EventChannelMessageTypes.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions enums/types.FilterDeletionReasons.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions enums/types.TransactionStates.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion functions/he_desilo.DesiloSealFactory.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Ain-Js</title><meta name="description" content="Documentation for Ain-Js"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="assets/style.css"/><link rel="stylesheet" href="assets/highlight.css"/><link rel="stylesheet" href="assets/my-theme.css"/><script defer src="assets/main.js"></script><script async src="assets/search.js" id="search-script"></script><script async src="assets/navigation.js" id="tsd-nav-script"></script></head><body><script>console.log(`Loaded ${location.href}`)</script><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base="."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="index.html" class="title">Ain-Js - v</a><div class="tsd-navigation settings"><details class="tsd-index-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><h4 class="uppercase">Member Visibility</h4><form><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-private" name="private"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Private</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></form></div><div class="tsd-theme-toggle"><h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="table-cell" id="tsd-widgets"><a href="src/template/toolbar#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><h2>Ain-Js</h2></div><div class="tsd-panel tsd-typography"><a id="md:ain-js" class="tsd-anchor"></a><h1><a href="#md:ain-js">ain-js</a></h1><p>AI Network Blockchain SDK for javascript (or typescript).</p>
<a id="md:installation" class="tsd-anchor"></a><h2><a href="#md:installation">Installation</a></h2><pre><code><span class="hl-0">yarn</span><span class="hl-1"> </span><span class="hl-0">add</span><span class="hl-1"> @</span><span class="hl-0">ainblockchain</span><span class="hl-1">/</span><span class="hl-0">ain</span><span class="hl-1">-</span><span class="hl-0">js</span>
</code><button>Copy</button></pre>
<a id="md:examples" class="tsd-anchor"></a><h2><a href="#md:examples">Examples</a></h2><pre><code><span class="hl-2">const</span><span class="hl-1"> </span><span class="hl-3">Ain</span><span class="hl-1"> = </span><span class="hl-4">require</span><span class="hl-1">(</span><span class="hl-5">&#39;./lib/ain&#39;</span><span class="hl-1">).</span><span class="hl-0">default</span><span class="hl-1">;</span><br/><span class="hl-2">const</span><span class="hl-1"> </span><span class="hl-3">ain</span><span class="hl-1"> = </span><span class="hl-2">new</span><span class="hl-1"> </span><span class="hl-4">Ain</span><span class="hl-1">(</span><span class="hl-5">&#39;http://node.ainetwork.ai:8080/&#39;</span><span class="hl-1">);</span><br/><br/><span class="hl-0">ain</span><span class="hl-1">.</span><span class="hl-0">wallet</span><span class="hl-1">.</span><span class="hl-4">create</span><span class="hl-1">(</span><span class="hl-6">1</span><span class="hl-1">);</span><br/><br/><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-4">log</span><span class="hl-1">(</span><span class="hl-0">ain</span><span class="hl-1">.</span><span class="hl-0">wallet</span><span class="hl-1">.</span><span class="hl-0">accounts</span><span class="hl-1">);</span><br/><span class="hl-7">/*</span><br/><span class="hl-7">{</span><br/><span class="hl-7"> &#39;0xb2585543Cfcfb79CF73a1a14b2DfBC411913940F&#39;: {</span><br/><span class="hl-7"> address: &#39;0xb2585543Cfcfb79CF73a1a14b2DfBC411913940F&#39;,</span><br/><span class="hl-7"> private_key: &#39;d910c1835eaa89f15452aa3f0bd95f61fb9a04464150e37d617a40ed0071558c&#39;,</span><br/><span class="hl-7"> public_key: &#39;008bcc621aed85140b97d71b3aa5a88e56fbdc0d5d17b2297ec2d3da2edf3b0594676981ebf16ec3490ddb8f3ba4d4aaf77d5055256f1c044474a7aa22704f60&#39;</span><br/><span class="hl-7"> }</span><br/><span class="hl-7">}</span><br/><span class="hl-7">*/</span><br/><br/><span class="hl-2">const</span><span class="hl-1"> </span><span class="hl-3">accounts</span><span class="hl-1"> = </span><span class="hl-0">ain</span><span class="hl-1">.</span><span class="hl-0">db</span><span class="hl-1">.</span><span class="hl-4">ref</span><span class="hl-1">(</span><span class="hl-5">&#39;/accounts&#39;</span><span class="hl-1">).</span><span class="hl-4">getValue</span><span class="hl-1">().</span><span class="hl-4">then</span><span class="hl-1">(</span><span class="hl-0">result</span><span class="hl-1"> </span><span class="hl-2">=&gt;</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-4">log</span><span class="hl-1">(</span><span class="hl-0">result</span><span class="hl-1">);</span><br/><span class="hl-1">});</span>
<a id="md:examples" class="tsd-anchor"></a><h2><a href="#md:examples">Examples</a></h2><pre><code><span class="hl-2">const</span><span class="hl-1"> </span><span class="hl-3">Ain</span><span class="hl-1"> = </span><span class="hl-4">require</span><span class="hl-1">(</span><span class="hl-5">&#39;./lib/ain&#39;</span><span class="hl-1">).</span><span class="hl-0">default</span><span class="hl-1">;</span><br/><span class="hl-2">const</span><span class="hl-1"> </span><span class="hl-3">ain</span><span class="hl-1"> = </span><span class="hl-2">new</span><span class="hl-1"> </span><span class="hl-4">Ain</span><span class="hl-1">(</span><span class="hl-5">&#39;http://localhost:8081/&#39;</span><span class="hl-1">, </span><span class="hl-5">&#39;ws://localhost:5100/&#39;</span><span class="hl-1">);</span><br/><span class="hl-6">// or const ain = new Ain(&#39;https://testnet-api.ainetwork.ai/&#39;, &#39;wss://testnet-event.ainetwork.ai/&#39;);</span><br/><br/><span class="hl-0">ain</span><span class="hl-1">.</span><span class="hl-0">wallet</span><span class="hl-1">.</span><span class="hl-4">create</span><span class="hl-1">(</span><span class="hl-7">1</span><span class="hl-1">);</span><br/><br/><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-4">log</span><span class="hl-1">(</span><span class="hl-0">ain</span><span class="hl-1">.</span><span class="hl-0">wallet</span><span class="hl-1">.</span><span class="hl-0">accounts</span><span class="hl-1">);</span><br/><span class="hl-6">/*</span><br/><span class="hl-6">{</span><br/><span class="hl-6"> &#39;0xb2585543Cfcfb79CF73a1a14b2DfBC411913940F&#39;: {</span><br/><span class="hl-6"> address: &#39;0xb2585543Cfcfb79CF73a1a14b2DfBC411913940F&#39;,</span><br/><span class="hl-6"> private_key: &#39;d910c1835eaa89f15452aa3f0bd95f61fb9a04464150e37d617a40ed0071558c&#39;,</span><br/><span class="hl-6"> public_key: &#39;008bcc621aed85140b97d71b3aa5a88e56fbdc0d5d17b2297ec2d3da2edf3b0594676981ebf16ec3490ddb8f3ba4d4aaf77d5055256f1c044474a7aa22704f60&#39;</span><br/><span class="hl-6"> }</span><br/><span class="hl-6">}</span><br/><span class="hl-6">*/</span><br/><br/><span class="hl-2">const</span><span class="hl-1"> </span><span class="hl-3">accounts</span><span class="hl-1"> = </span><span class="hl-0">ain</span><span class="hl-1">.</span><span class="hl-0">db</span><span class="hl-1">.</span><span class="hl-4">ref</span><span class="hl-1">(</span><span class="hl-5">&#39;/accounts&#39;</span><span class="hl-1">).</span><span class="hl-4">getValue</span><span class="hl-1">().</span><span class="hl-4">then</span><span class="hl-1">(</span><span class="hl-0">result</span><span class="hl-1"> </span><span class="hl-2">=&gt;</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-4">log</span><span class="hl-1">(</span><span class="hl-0">result</span><span class="hl-1">);</span><br/><span class="hl-1">});</span>
</code><button>Copy</button></pre>
<a id="md:test-how-to" class="tsd-anchor"></a><h2><a href="#md:test-how-to">Test How-To</a></h2><ol>
<li>Clone AIN Blockchain and install</li>
Expand Down
Loading

0 comments on commit 754eebc

Please sign in to comment.