Home Reference Source Test
public class | source

WalletStore

Constructor Summary

Public Constructor
public

constructor(): Promise<WalletStore>

Method Summary

Public Methods
public

close(): *

public

async get(address: Address, key: Uint8Array | string): PromiseWallet>

public

async getDefault(key: Uint8Array | string): PromiseWallet>

public

async getMultiSig(address: Address, key: Uint8Array | string): PromiseMultiSigWallet>

public

async hasDefault(key: *): Promise<boolean>

public

async list(): Promise<Array<Address>>

public

async listMultiSig(): Promise<Array<Address>>

public

async put(wallet: Wallet, key: Uint8Array | string, unlockKey: Uint8Array | string): Promise

public

async putMultiSig(wallet: MultiSigWallet, key: Uint8Array | string, unlockKey: Uint8Array | string): Promise

public

async remove(address: Address): Promise

public

removeMultiSig(address: Address): Promise

public

setDefault(address: Address): Promise

Public Constructors

public constructor(): Promise<WalletStore> source

Return:

Promise<WalletStore>

Public Methods

public close(): * source

Return:

*

public async get(address: Address, key: Uint8Array | string): PromiseWallet> source

Params:

NameTypeAttributeDescription
address Address
key Uint8Array | string
  • optional

Return:

PromiseWallet>

public async getDefault(key: Uint8Array | string): PromiseWallet> source

Params:

NameTypeAttributeDescription
key Uint8Array | string
  • optional

Return:

PromiseWallet>

public async getMultiSig(address: Address, key: Uint8Array | string): PromiseMultiSigWallet> source

Params:

NameTypeAttributeDescription
address Address
key Uint8Array | string
  • optional

Return:

PromiseMultiSigWallet>

public async hasDefault(key: *): Promise<boolean> source

Params:

NameTypeAttributeDescription
key *

Return:

Promise<boolean>

public async list(): Promise<Array<Address>> source

Return:

Promise<Array<Address>>

public async listMultiSig(): Promise<Array<Address>> source

Return:

Promise<Array<Address>>

public async put(wallet: Wallet, key: Uint8Array | string, unlockKey: Uint8Array | string): Promise source

Params:

NameTypeAttributeDescription
wallet Wallet
key Uint8Array | string
  • optional
unlockKey Uint8Array | string
  • optional

Return:

Promise

public async putMultiSig(wallet: MultiSigWallet, key: Uint8Array | string, unlockKey: Uint8Array | string): Promise source

Params:

NameTypeAttributeDescription
wallet MultiSigWallet
key Uint8Array | string
  • optional
unlockKey Uint8Array | string
  • optional

Return:

Promise

public async remove(address: Address): Promise source

Params:

NameTypeAttributeDescription
address Address

Return:

Promise

public removeMultiSig(address: Address): Promise source

Params:

NameTypeAttributeDescription
address Address

Return:

Promise

public setDefault(address: Address): Promise source

Params:

NameTypeAttributeDescription
address Address

Return:

Promise