Static Method Summary
Static Public Methods | ||
public static |
async createVolatile(): Promise<AccountsTree> |
|
public static |
async getPersistent(jdb: *): Promise<AccountsTree> |
Member Summary
Public Members | ||
public get |
|
Method Summary
Public Methods | ||
public |
abort(): Promise |
|
public |
async commit(): Promise |
|
public |
|
|
public |
async getAccountsProof(addresses: Array<Address>): Promise<AccountsProof> |
|
public |
async getChunk(startPrefix: string, size: number): Promise<AccountsTreeChunk> |
|
public |
async isEmpty(): Promise<boolean> |
|
public |
async partialTree(): Promise<PartialAccountsTree> |
|
public |
|
|
public |
|
|
public |
snapshot(tx: AccountsTree): Promise<AccountsTree> |
|
public |
synchronousTransaction(enableWatchdog: boolean): Promise<SynchronousAccountsTree> |
|
public |
transaction(enableWatchdog: boolean): Promise<AccountsTree> |
Protected Methods | ||
protected |
async _init(): Promise<AccountsTree> |
Inherited Summary
From class Observable | ||
public static get |
WILDCARD: string: string |
|
public |
bubble(observable: Observable, types: ...string) |
|
public |
fire(type: string, args: ...*): Promise |
|
public |
off(type: string, id: number) |
|
public |
on(type: string, callback: Function): number |
Static Public Methods
public static async getPersistent(jdb: *): Promise<AccountsTree> source
Params:
Name | Type | Attribute | Description |
jdb | * |
Public Members
public get tx: Transaction source
Public Methods
public async get(address: Address): PromiseAccount> source
Params:
Name | Type | Attribute | Description |
address | Address |
public async getAccountsProof(addresses: Array<Address>): Promise<AccountsProof> source
Params:
Name | Type | Attribute | Description |
addresses | Array<Address> |
public async getChunk(startPrefix: string, size: number): Promise<AccountsTreeChunk> source
Params:
Name | Type | Attribute | Description |
startPrefix | string | The prefix to start with. |
|
size | number | The maximum number of terminal nodes to include. |
public async partialTree(): Promise<PartialAccountsTree> source
public snapshot(tx: AccountsTree): Promise<AccountsTree> source
Params:
Name | Type | Attribute | Description |
tx | AccountsTree |
|
public synchronousTransaction(enableWatchdog: boolean): Promise<SynchronousAccountsTree> source
Params:
Name | Type | Attribute | Description |
enableWatchdog | boolean |
|
public transaction(enableWatchdog: boolean): Promise<AccountsTree> source
Params:
Name | Type | Attribute | Description |
enableWatchdog | boolean |
|