Home Reference Source
public class | source

MiniBlockchainAccountantTree

Extends:

common/trees/radix-tree/merkle-tree/Interface-Merkle-Radix-Tree~InterfaceMerkleRadixTreeMiniBlockchainAccountantTreeEvents → MiniBlockchainAccountantTree

Member Summary

Public Members
public

root: *

Method Summary

Public Methods
public

calculateNodeCoins(tokenId: *, node: *): *

public
public

deserializeMiniAccountant(buffer: *, offset: *, includeHashes: boolean): *

public

getAccountNonce(address: *): *

public
public

getBalance(input: *): *

public

listBalances(input: *): *

public

async loadMiniAccountant(buffer: *, offset: *, includeHashes: *, name: string, showUpdate: boolean): boolean

public
public

async saveMiniAccountant(includeHashes: *, name: *, serialization: *, timeout: *): *

public

serializeMiniAccountant(includeHashes: boolean, sleepNodes: *): *

public

updateAccount(input: *, value: *, tokenId: *): *

public

updateAccountNonce(address: *, nonceChange: *, revertActions: *, showUpdate: *): *

Inherited Summary

From class MiniBlockchainAccountantTreeEvents
public

emitter: *

public

emitBalanceChangeEvent(address: *, getBalanceCallback: *, nonce: *)

public
private

Public Members

public root: * source

Public Methods

public calculateNodeCoins(tokenId: *, node: *): * source

Params:

NameTypeAttributeDescription
tokenId *
node *

Return:

*

public createRoot() source

public deserializeMiniAccountant(buffer: *, offset: *, includeHashes: boolean): * source

Params:

NameTypeAttributeDescription
buffer *
offset *
includeHashes boolean
  • optional
  • default: true

Return:

*

public getAccountNonce(address: *): * source

Params:

NameTypeAttributeDescription
address *

Return:

*

public getAccountantTreeList(): * source

Return:

*

public getBalance(input: *): * source

Params:

NameTypeAttributeDescription
input *

must be Base or Base String

Return:

*

public listBalances(input: *): * source

Params:

NameTypeAttributeDescription
input *

must be Base or Base String

Return:

*

public async loadMiniAccountant(buffer: *, offset: *, includeHashes: *, name: string, showUpdate: boolean): boolean source

Params:

NameTypeAttributeDescription
buffer *
offset *
includeHashes *
name string
  • optional
  • default: accountantTree
showUpdate boolean
  • optional
  • default: true

Return:

boolean

public printAccountantTree(): * source

Return:

*

public async saveMiniAccountant(includeHashes: *, name: *, serialization: *, timeout: *): * source

Params:

NameTypeAttributeDescription
includeHashes *
name *
serialization *
timeout *

Return:

*

public serializeMiniAccountant(includeHashes: boolean, sleepNodes: *): * source

Params:

NameTypeAttributeDescription
includeHashes boolean
  • optional
  • default: true
sleepNodes *

Return:

*

public updateAccount(input: *, value: *, tokenId: *): * source

Params:

NameTypeAttributeDescription
input *

must be Base or Base String

value *
tokenId *

Return:

*

public updateAccountNonce(address: *, nonceChange: *, revertActions: *, showUpdate: *): * source

Params:

NameTypeAttributeDescription
address *
nonceChange *
revertActions *
showUpdate *

Return:

*