Constructor
new ComputedbalancesController(optsopt)
- Source:
Creates a new controller instance
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
opts |
ComputedBalancesOptions |
<optional> |
Controller configuration parameters |
Methods
syncAllAccountsFromStore(store)
- Source:
Uses current account state to sync and track all addresses associated with the current account
Parameters:
Name | Type | Description |
---|---|---|
store |
Object | Account tracking state |
trackAddress(address)
- Source:
Establishes a new subscription to track an address associated with the current account
Parameters:
Name | Type | Description |
---|---|---|
address |
string | Address to conditionally subscribe to |
trackAddressIfNotAlready(address)
- Source:
Conditionally establishes a new subscription to track an address associated with the current account
Parameters:
Name | Type | Description |
---|---|---|
address |
string | Address to conditionally subscribe to |
updateAllBalances()
- Source:
Updates balances associated with each internal address