WalletStorage class

Maintains operational and permanent storage synchronization.

Implementers

Constructors

WalletStorage(String name, Currency currency, Seed seed, [String seedPhrase])
Construct from Wallet vitals. Ready for _readStorage().

Properties

accounts Map<int, Account>
Synchronized with accountStore.
read / write
accountStore ↔ dynamic
Holds Account summary of Address grouped by accountId.
read / write
addresses Map<String, Address>
Synchronized with addressStore.
read / write
addressStore ↔ dynamic
Holds every Address in Wallet.
read / write
balance num
Wallet balance is sum of accounts.Account.balance.
read / write
currency Currency
Type of currency for this wallet.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
name String
Display name for this wallet.
read / write
pendingCount int
Synchronized with pendingStore.
read / write
pendingStore ↔ dynamic
Holds our recently sent Transaction.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
seed Seed
The seed for HD wallets.
read / write
seedPhrase String
The seed phrase for HD wallets.
read / write
storage Database
sembast: Simple Embedded Application Store database.
read / write
walletStore ↔ dynamic
Holds "header" with Wallet vital information.
read / write

Methods

addAccount(Account x, {bool store: true}) Future<Account>
Interface used by _readStoredAccounts().
addAddress(Address x, {bool store: true, bool load: true, Transaction txn}) Future<Address>
Interface used by _readStoredAddresses.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited
updateTransaction(Transaction transaction, {bool newTransaction: true}) → void
Interface used by _readPendingTransactions().

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited