Documentation ¶
Index ¶
- Constants
- func IsCw20(addr string) bool
- func IsIbcToken(addr string) bool
- func IsMainnet(chainId string) bool
- func IsMainnetOrTestnet(chainId string) bool
- func IsTestnet(chainId string) bool
- type Client
- type GrpcClient
- type IbcRes
- type IbcResMap
- type IbcsRes
- type TokenRes
- type TokenResMap
- type TokensRes
Constants ¶
View Source
const ( MAINNET_CHAIN_PREFIX = "dimension" TESTNET_CHAIN_PREFIX = "cube" ADDR_PREFIX = "xpla1" IBC_PREFIX = "ibc/" LATEST_HEIGHT_INDICATOR = 0 BLOCK_SECOND = 5 IBC_DEFAULT_TOKEN_DECIMALS = 6 )
Variables ¶
This section is empty.
Functions ¶
func IsIbcToken ¶
func IsMainnetOrTestnet ¶
Types ¶
type GrpcClient ¶
type GrpcClient interface { SyncedHeight() (uint64, error) QueryContract(addr string, query []byte, height uint64) ([]byte, error) QueryIbcDenomTrace(hash string) (*ibc_types.DenomTrace, error) }
func NewGrpcClient ¶
func NewGrpcClient(target string) (GrpcClient, error)
type IbcRes ¶
type IbcRes struct { Denom *string `json:"denom,omitempty"` Path *string `json:"path,omitempty"` BaseDenom *string `json:"base_denom,omitempty"` Symbol *string `json:"symbol,omitempty"` Name *string `json:"name,omitempty"` Icon *string `json:"icon,omitempty"` Decimals *uint8 `json:"decimals,omitempty"` }
type TokenResMap ¶
type TokensRes ¶
type TokensRes struct { Mainnet TokenResMap `json:"mainnet"` Testnet TokenResMap `json:"testnet"` }
Click to show internal directories.
Click to hide internal directories.