Documentation ¶
Overview ¶
Known coins, pools, markets included with the binary. User doesn't need to specify the full type name for those.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllCoins ¶
Types ¶
type HippoCoinRegistryEntry ¶
type HippoCoinRegistryEntry struct { Name string `json:"name"` Symbol string `json:"symbol"` OfficialSymbol string `json:"official_symbol"` CoingeckoId string `json:"coingecko_id"` Decimals uint8 `json:"decimals"` LogoUrl string `json:"logo_url"` ProjectUrl string `json:"project_url"` TokenType TokenType `json:"token_type"` }
HippoCoinRegistryEntry is the information contained in the hippo coin registry here https://github.com/hippospace/aptos-coin-list/blob/main/typescript/src/requestList.ts The link is unfortunately a typescript file so not as convenient as a json file.
func GetCoinInfo ¶
func GetCoinInfo(network aptos.Network, typeTag *aptos.MoveTypeTag) *HippoCoinRegistryEntry
GetCoinInfo returns the hippo coin registry information for a given type. If the coin is not in the registry, return nil.
func GetCoinInfoBySymbol ¶
func GetCoinInfoBySymbol(network aptos.Network, symbol string) *HippoCoinRegistryEntry
GetCoinInfo returns the hippo coin registry information for a symbol. If the coin is not in the registry, return nil.
Click to show internal directories.
Click to hide internal directories.