Update docs.
This commit is contained in:
@@ -156,7 +156,7 @@ Allows querying of accounts that have been registered as valid accounts in the n
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-line">Defined in <a href="" data-line="25" class="link-to-prism">src/app/_eth/accountIndex.ts:25</a></div>
|
||||
<div class="io-line">Defined in <a href="" data-line="26" class="link-to-prism">src/app/_eth/accountIndex.ts:26</a></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -246,7 +246,7 @@ Allows querying of accounts that have been registered as valid accounts in the n
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-line">Defined in <a href="" data-line="21" class="link-to-prism">src/app/_eth/accountIndex.ts:21</a></div>
|
||||
<div class="io-line">Defined in <a href="" data-line="22" class="link-to-prism">src/app/_eth/accountIndex.ts:22</a></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -279,7 +279,7 @@ Allows querying of accounts that have been registered as valid accounts in the n
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-line">Defined in <a href="" data-line="23" class="link-to-prism">src/app/_eth/accountIndex.ts:23</a></div>
|
||||
<div class="io-line">Defined in <a href="" data-line="24" class="link-to-prism">src/app/_eth/accountIndex.ts:24</a></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -312,7 +312,7 @@ Allows querying of accounts that have been registered as valid accounts in the n
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-line">Defined in <a href="" data-line="25" class="link-to-prism">src/app/_eth/accountIndex.ts:25</a></div>
|
||||
<div class="io-line">Defined in <a href="" data-line="26" class="link-to-prism">src/app/_eth/accountIndex.ts:26</a></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -357,8 +357,8 @@ Allows querying of accounts that have been registered as valid accounts in the n
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-line">Defined in <a href="" data-line="57"
|
||||
class="link-to-prism">src/app/_eth/accountIndex.ts:57</a></div>
|
||||
<div class="io-line">Defined in <a href="" data-line="58"
|
||||
class="link-to-prism">src/app/_eth/accountIndex.ts:58</a></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -450,8 +450,8 @@ Requires availability of the signer address.</p>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-line">Defined in <a href="" data-line="78"
|
||||
class="link-to-prism">src/app/_eth/accountIndex.ts:78</a></div>
|
||||
<div class="io-line">Defined in <a href="" data-line="79"
|
||||
class="link-to-prism">src/app/_eth/accountIndex.ts:79</a></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -543,8 +543,8 @@ Returns "true" for available and "false" otherwise.</p>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-line">Defined in <a href="" data-line="95"
|
||||
class="link-to-prism">src/app/_eth/accountIndex.ts:95</a></div>
|
||||
<div class="io-line">Defined in <a href="" data-line="96"
|
||||
class="link-to-prism">src/app/_eth/accountIndex.ts:96</a></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -635,8 +635,8 @@ Returns "true" for available and "false" otherwise.</p>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-line">Defined in <a href="" data-line="121"
|
||||
class="link-to-prism">src/app/_eth/accountIndex.ts:121</a></div>
|
||||
<div class="io-line">Defined in <a href="" data-line="122"
|
||||
class="link-to-prism">src/app/_eth/accountIndex.ts:122</a></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -682,12 +682,13 @@ Returns "true" for available and "false" otherwise.</p>
|
||||
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import Web3 from 'web3';
|
||||
|
||||
// Application imports
|
||||
import { Web3Service } from '@app/_services/web3.service';
|
||||
import { environment } from '@src/environments/environment';
|
||||
|
||||
/** Fetch the account registry contract's ABI. */
|
||||
const abi: Array<any> = require('@src/assets/js/block-sync/data/AccountsIndex.json');
|
||||
/** Establish a connection to the blockchain network. */
|
||||
const web3: Web3 = new Web3(environment.web3Provider);
|
||||
const web3: Web3 = Web3Service.getInstance();
|
||||
|
||||
/**
|
||||
* Provides an instance of the accounts registry contract.
|
||||
@@ -779,7 +780,7 @@ export class AccountIndex {
|
||||
lowest = 0;
|
||||
}
|
||||
const accounts: Array<string> = [];
|
||||
for (let i = count; i > lowest; i--) {
|
||||
for (let i = count - 1; i >= lowest; i--) {
|
||||
const account: string = await this.contract.methods.entry(i).call();
|
||||
accounts.push(account);
|
||||
}
|
||||
|
||||
@@ -374,6 +374,13 @@ export class GlobalErrorHandler extends ErrorHandler {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export function rejectBody(error): { status: any; statusText: any } {
|
||||
return {
|
||||
status: error.status,
|
||||
statusText: error.statusText,
|
||||
};
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -151,7 +151,7 @@ Allows querying of tokens that have been registered as valid tokens in the netwo
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-line">Defined in <a href="" data-line="25" class="link-to-prism">src/app/_eth/token-registry.ts:25</a></div>
|
||||
<div class="io-line">Defined in <a href="" data-line="26" class="link-to-prism">src/app/_eth/token-registry.ts:26</a></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -241,7 +241,7 @@ Allows querying of tokens that have been registered as valid tokens in the netwo
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-line">Defined in <a href="" data-line="21" class="link-to-prism">src/app/_eth/token-registry.ts:21</a></div>
|
||||
<div class="io-line">Defined in <a href="" data-line="22" class="link-to-prism">src/app/_eth/token-registry.ts:22</a></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -274,7 +274,7 @@ Allows querying of tokens that have been registered as valid tokens in the netwo
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-line">Defined in <a href="" data-line="23" class="link-to-prism">src/app/_eth/token-registry.ts:23</a></div>
|
||||
<div class="io-line">Defined in <a href="" data-line="24" class="link-to-prism">src/app/_eth/token-registry.ts:24</a></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -307,7 +307,7 @@ Allows querying of tokens that have been registered as valid tokens in the netwo
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-line">Defined in <a href="" data-line="25" class="link-to-prism">src/app/_eth/token-registry.ts:25</a></div>
|
||||
<div class="io-line">Defined in <a href="" data-line="26" class="link-to-prism">src/app/_eth/token-registry.ts:26</a></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -352,8 +352,8 @@ Allows querying of tokens that have been registered as valid tokens in the netwo
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-line">Defined in <a href="" data-line="56"
|
||||
class="link-to-prism">src/app/_eth/token-registry.ts:56</a></div>
|
||||
<div class="io-line">Defined in <a href="" data-line="57"
|
||||
class="link-to-prism">src/app/_eth/token-registry.ts:57</a></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -444,8 +444,8 @@ Allows querying of tokens that have been registered as valid tokens in the netwo
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-line">Defined in <a href="" data-line="74"
|
||||
class="link-to-prism">src/app/_eth/token-registry.ts:74</a></div>
|
||||
<div class="io-line">Defined in <a href="" data-line="75"
|
||||
class="link-to-prism">src/app/_eth/token-registry.ts:75</a></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -536,8 +536,8 @@ Allows querying of tokens that have been registered as valid tokens in the netwo
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-line">Defined in <a href="" data-line="90"
|
||||
class="link-to-prism">src/app/_eth/token-registry.ts:90</a></div>
|
||||
<div class="io-line">Defined in <a href="" data-line="91"
|
||||
class="link-to-prism">src/app/_eth/token-registry.ts:91</a></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -584,11 +584,12 @@ Allows querying of tokens that have been registered as valid tokens in the netwo
|
||||
|
||||
// Application imports
|
||||
import { environment } from '@src/environments/environment';
|
||||
import { Web3Service } from '@app/_services/web3.service';
|
||||
|
||||
/** Fetch the token registry contract's ABI. */
|
||||
const abi: Array<any> = require('@src/assets/js/block-sync/data/TokenUniqueSymbolIndex.json');
|
||||
/** Establish a connection to the blockchain network. */
|
||||
const web3: Web3 = new Web3(environment.web3Provider);
|
||||
const web3: Web3 = Web3Service.getInstance();
|
||||
|
||||
/**
|
||||
* Provides an instance of the token registry contract.
|
||||
|
||||
Reference in New Issue
Block a user