Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chain ¶
type Chain struct {
Name string `json:"name"`
Type string `json:"type"`
MTime string `json:"mtime"`
}
Chain represents a single chain in the registry
type ChainInfo ¶
type ChainInfo struct {
Name string `json:"pretty_name"`
ChainType string `json:"chain_type"`
ChainID string `json:"chain_id"`
Prefix string `json:"bech32_prefix"`
}
ChainInfo represents the info of a chain held in the registry
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client handles fetching and querying the asset list
func (*Client) GetChainIDPrefix ¶
GetChainIDPrefix retrieves the prefix for a given chain
func (*Client) StartBackgroundRefresher ¶
StartBackgroundRefresher starts a background process to refresh the cache at regular intervals
func (*Client) StopBackgroundRefresher ¶
func (c *Client) StopBackgroundRefresher()
StopBackgroundRefresher stops the background refresh process
Click to show internal directories.
Click to hide internal directories.