Documentation ¶
Index ¶
- type ERC20Token
- type EVMTokenList
- func GetAVAXTokenList(version semver.Version) EVMTokenList
- func GetBASETokenList(version semver.Version) EVMTokenList
- func GetBSCTokenList(version semver.Version) EVMTokenList
- func GetETHTokenList(version semver.Version) EVMTokenList
- func GetEVMTokenList(chain common.Chain, version semver.Version) EVMTokenList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ERC20Token ¶
type ERC20Token struct { Address string `json:"address"` Symbol string `json:"symbol"` Name string `json:"name"` Decimals int `json:"decimals"` }
ERC20Token is a struct to represent the token
type EVMTokenList ¶
type EVMTokenList struct { Name string `json:"name"` Tokens []ERC20Token `json:"tokens"` }
func GetAVAXTokenList ¶
func GetAVAXTokenList(version semver.Version) EVMTokenList
func GetBASETokenList ¶ added in v3.1.0
func GetBASETokenList(version semver.Version) EVMTokenList
func GetBSCTokenList ¶
func GetBSCTokenList(version semver.Version) EVMTokenList
func GetETHTokenList ¶
func GetETHTokenList(version semver.Version) EVMTokenList
func GetEVMTokenList ¶
func GetEVMTokenList(chain common.Chain, version semver.Version) EVMTokenList
GetEVMTokenList returns all available tokens for external asset matching for a particular EVM chain and version.
NOTE: These tokens are NOT necessarily the same tokens that are whitelisted for each chain - whitelisting happens in each chain's bifrost chain client.
Click to show internal directories.
Click to hide internal directories.