utils

package
v0.0.0-...-a08de0b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2022 License: CC0-1.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccounts

func GetAccounts(addresses []string, height int64, client client.Proxy) ([]types.Account, error)

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

func UpdateAccounts(addresses []string, db *db.Db, height int64, client client.Proxy) error

UpdateAccounts takes the given addresses and for each one queries the chain retrieving the account data and stores it inside the database.

func UpdateLockedAccount

func UpdateLockedAccount(addresses []string, height int64, client client.Proxy, db *db.Db) error

UpdateLockedAccount get all the details that need for locked account

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL