Documentation
¶
Index ¶
- type ERC20Info
- func (t *ERC20Info) BalanceOf(address string) (float64, error)
- func (t *ERC20Info) Init(address string, network string, client bind.ContractBackend) (ERC20Info, error)
- func (t *ERC20Info) PriceUSD(gecko *coingecko.Gecko) (float64, error)
- func (t *ERC20Info) TotalSupply() (float64, error)
- func (t *ERC20Info) TotalSupplyUSD(gecko *coingecko.Gecko) (float64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ERC20Info ¶
type ERC20Info struct {
Network string
Address string
Symbol string
Decimals int
Contract *erc20.Erc20
}
Basic info of ERC20 token that are stable.
func (*ERC20Info) TotalSupply ¶
Return token's total supply amount, already divided by decimals.
Click to show internal directories.
Click to hide internal directories.