Properties
Private
Readonly
storageManager
storageManager: StorageManager<ACCOUNTS>
Methods
addAccount
- addAccount(accountInfo): Promise<void>
-
Returns Promise<void>
getAccount
- getAccount(accountIdentifier): Promise<undefined | AccountInfo>
-
Parameters
-
accountIdentifier: string
Returns Promise<undefined | AccountInfo>
hasPermission
- hasPermission(message): Promise<boolean>
-
Returns Promise<boolean>
removeAccount
- removeAccount(accountIdentifier): Promise<void>
-
Parameters
-
accountIdentifier: string
Returns Promise<void>
removeAccounts
- removeAccounts(accountIdentifiers): Promise<void>
-
Parameters
-
accountIdentifiers: string[]
Returns Promise<void>
removeAllAccounts
- removeAllAccounts(): Promise<void>
-
Returns Promise<void>
updateAccount
- updateAccount(accountIdentifier, accountInfo): Promise<undefined | AccountInfo>
-
Parameters
-
accountIdentifier: string
-
Returns Promise<undefined | AccountInfo>
Internalapi
The AccountManager provides CRUD functionality for account entities and persists them to the provided storage.