Documentation ¶
Index ¶
- func GetAccounts(addresses []string, height int64, client client.Proxy) ([]types.Account, error)
- func GetDelegatorAccounts(addresses []string, height int64, client client.Proxy) ([]types.DelegatorAccount, error)
- func GetLockedAccount(addresses []string, height int64, client client.Proxy) ([]types.LockedAccount, error)
- func GetLockedAccountBalance(addresses []string, height int64, client client.Proxy) ([]types.LockedAccountBalance, error)
- func GetStakerAccounts(addresses []string, height int64, client client.Proxy) ([]types.StakerNodeId, error)
- func UpdateAccounts(addresses []string, db *db.Db, height int64, client client.Proxy) error
- func UpdateLockedAccount(addresses []string, height int64, client client.Proxy, db *db.Db) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAccounts ¶
GetAccounts returns the account data for the given addresses
func GetDelegatorAccounts ¶
func GetDelegatorAccounts(addresses []string, height int64, client client.Proxy) ([]types.DelegatorAccount, error)
GetLockedTokenAccounts return information of an array of locked token accounts if the account do not have associated locked account, it would ignore the account
func GetLockedAccount ¶
func GetLockedAccount(addresses []string, height int64, client client.Proxy) ([]types.LockedAccount, error)
GetLockedAccount return an array of locked account limit which is network constant
func GetLockedAccountBalance ¶
func GetLockedAccountBalance(addresses []string, height int64, client client.Proxy) ([]types.LockedAccountBalance, error)
GetLockedAccountBalance return information of an array of locked token accounts contain balance unlock limit which is variable of locked account
func GetStakerAccounts ¶
func GetStakerAccounts(addresses []string, height int64, client client.Proxy) ([]types.StakerNodeId, error)
GetLockedTokenAccounts return information of an array of locked token accounts if the account do not have associated locked account, it would ignore the account
func UpdateAccounts ¶
UpdateAccounts takes the given addresses and for each one queries the chain retrieving the account data and stores it inside the database.
Types ¶
This section is empty.