chains

package
v0.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2025 License: Apache-2.0, MIT Imports: 7 Imported by: 0

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 NewClient

func NewClient(url string) *Client

NewAssetListClient initializes a new AssetListClient

func (*Client) GetChainIDPrefix

func (c *Client) GetChainIDPrefix(l *zap.Logger, denom string) (string, error)

GetChainIDPrefix retrieves the prefix for a given chain

func (*Client) StartBackgroundRefresher

func (c *Client) StartBackgroundRefresher(l *zap.Logger, interval time.Duration)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL