Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAPIKeyIsRequired = errors.New("api key is required") ErrInvalidRPC = errors.New("invalid rpc") )
View Source
var ChainsDir embed.FS
View Source
var ChainsDirName = "chains"
View Source
var ErrUnsupportedImage = errors.New("unsupported image")
View Source
var IconsDir embed.FS
View Source
var IconsDirName = "icons"
View Source
var IconsDownloadDir embed.FS
View Source
var IconsDownloadDirName = "iconsDownload"
Functions ¶
func LoadChains ¶
func LoadChains() <-chan LoadChainsResponse
Types ¶
type Chain ¶
type Chain struct { Name string `json:"name"` Chain string `json:"chain"` Icon string `json:"icon,omitempty"` IconsData []IconData `json:",omitempty"` RPC []RPC `json:"rpc"` Features []Features `json:"features,omitempty"` Faucets []string `json:"faucets"` NativeCurrency NativeCurrency `json:"nativeCurrency"` InfoURL string `json:"infoURL"` ShortName string `json:"shortName"` ChainID big.Int `json:"chainId"` NetworkID big.Int `json:"networkId"` Slip44 big.Int `json:"slip44,omitempty"` Ens Ens `json:"ens,omitempty"` Explorers []Explorer `json:"explorers,omitempty"` Title string `json:"title,omitempty"` RedFlags []string `json:"redFlags,omitempty"` Parent Parent `json:"parent,omitempty"` Status string `json:"status,omitempty"` }
type IconData ¶
type IconData struct { URL string `json:"url"` Width int `json:"width"` Height int `json:"height"` Format string `json:"format"` }
func (IconData) OrigEncodedImage ¶
func (IconData) SmallEncodedImage ¶
type LoadChainsResponse ¶
type NativeCurrency ¶
Click to show internal directories.
Click to hide internal directories.