Documentation
¶
Index ¶
- type Account
- type AccountCoinState
- type AccountType
- type CoinSyncManager
- func (csm *CoinSyncManager) GetCoinByPubkey(pubkeys [][]byte) ([]coin.CoinV2, error)
- func (csm *CoinSyncManager) GetCoinPubkeyByIndices(shardid int, tokenID string, from uint64, to uint64) ([][]byte, error)
- func (csm *CoinSyncManager) StartSyncCoinsProcess() error
- func (csm *CoinSyncManager) SyncShard(shardid int) error
- type Contact
- type RuntimeAccount
- type WalletManager
- func (wlm *WalletManager) AddNewAccount(account Account) error
- func (wlm *WalletManager) GetAccountBalance(account string) map[string]uint64
- func (wlm *WalletManager) GetAccountInstance(account string) *RuntimeAccount
- func (wlm *WalletManager) GetCurrentNetwork() common.NetworkID
- func (wlm *WalletManager) ListAccounts() ([]Account, error)
- func (wlm *WalletManager) Start() error
- func (wlm *WalletManager) Stop() error
- func (wlm *WalletManager) SwitchNetwork(networkParam common.NetworkID, incclient *incclient.IncClient) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountCoinState ¶
type CoinSyncManager ¶
type CoinSyncManager struct {
// contains filtered or unexported fields
}
func (*CoinSyncManager) GetCoinByPubkey ¶
func (csm *CoinSyncManager) GetCoinByPubkey(pubkeys [][]byte) ([]coin.CoinV2, error)
func (*CoinSyncManager) GetCoinPubkeyByIndices ¶
func (*CoinSyncManager) StartSyncCoinsProcess ¶
func (csm *CoinSyncManager) StartSyncCoinsProcess() error
func (*CoinSyncManager) SyncShard ¶
func (csm *CoinSyncManager) SyncShard(shardid int) error
type RuntimeAccount ¶
type RuntimeAccount struct {
// contains filtered or unexported fields
}
func (*RuntimeAccount) AddWatchToken ¶
func (rtacc *RuntimeAccount) AddWatchToken(tokenID string) error
func (*RuntimeAccount) RemoveWatchToken ¶
func (rtacc *RuntimeAccount) RemoveWatchToken(tokenID string) error
type WalletManager ¶
type WalletManager struct {
// contains filtered or unexported fields
}
func InitWallet ¶
func InitWallet(db *database.Database) (*WalletManager, error)
func (*WalletManager) AddNewAccount ¶
func (wlm *WalletManager) AddNewAccount(account Account) error
func (*WalletManager) GetAccountBalance ¶
func (wlm *WalletManager) GetAccountBalance(account string) map[string]uint64
func (*WalletManager) GetAccountInstance ¶
func (wlm *WalletManager) GetAccountInstance(account string) *RuntimeAccount
func (*WalletManager) GetCurrentNetwork ¶
func (wlm *WalletManager) GetCurrentNetwork() common.NetworkID
func (*WalletManager) ListAccounts ¶
func (wlm *WalletManager) ListAccounts() ([]Account, error)
func (*WalletManager) Start ¶
func (wlm *WalletManager) Start() error
func (*WalletManager) Stop ¶
func (wlm *WalletManager) Stop() error
func (*WalletManager) SwitchNetwork ¶
Click to show internal directories.
Click to hide internal directories.