Documentation ¶
Index ¶
- Constants
- func GetAllowanceWithSymbolResult(owner, spender common.Address) (map[string]*big.Int, error)
- func GetBalanceAndAllowance(owner, token, spender common.Address) (balance, allowance *big.Int, err error)
- func GetBalanceWithSymbolResult(owner common.Address) (map[string]*big.Int, error)
- func GetCutoff(contract, address string) (int, error)
- func HasUnlocked(owner string) (exists bool, err error)
- func IsInit() bool
- type AccountAllowances
- type AccountBalances
- type AccountBase
- type AccountManager
- type AccountManagerOptions
- type AccountViewOptions
- type Allowance
- type Balance
- type ChangedOfBlock
Constants ¶
View Source
const ( UnlockedPrefix = "unlock_" BalancePrefix = "balance_" BalanceEthPrefix = "balance_eth_" AllowancePrefix = "allowance_" CustomTokenPrefix = "customtoken_" )
Variables ¶
This section is empty.
Functions ¶
func GetBalanceAndAllowance ¶
func HasUnlocked ¶
Types ¶
type AccountAllowances ¶
type AccountBalances ¶
type AccountBalances struct { AccountBase Balances map[common.Address]Balance }
ethbalance need special process
type AccountManager ¶
type AccountManager struct {
// contains filtered or unexported fields
}
func Initialize ¶
func Initialize(options *AccountManagerOptions, brokers []string) AccountManager
func InitializeView ¶
func InitializeView(options *AccountViewOptions) AccountManager
func (*AccountManager) Start ¶
func (accountManager *AccountManager) Start()
func (*AccountManager) UnlockedWallet ¶
func (a *AccountManager) UnlockedWallet(owner string) (err error)
type AccountManagerOptions ¶
type AccountViewOptions ¶
type ChangedOfBlock ¶
type ChangedOfBlock struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.