types

package
v0.50.11 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: Apache-2.0 Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCfgEmptyOrg         = errors.New("github organization name cannot be empty")
	ErrCfgEmptyProject     = errors.New("project name cannot be empty")
	ErrCfgProjSpecialChars = errors.New("project name cannot contain special characters")
	ErrCfgBinTooShort      = errors.New("bin daemon name is too short")
	ErrCfgDenomTooShort    = errors.New("token denom is too short")
	ErrCfgHomeDirTooShort  = errors.New("home directory is too short")
	ErrCfgEmptyBech32      = errors.New("bech32 prefix cannot be empty")
	ErrCfgBech32Alpha      = errors.New("bech32 prefix must only contain alphabetical characters")
)

Functions

func ErrExpectedRange

func ErrExpectedRange(base error, expected int, actual int) error

Types

type Apis

type Apis struct {
	RPC  []RPC  `json:"rpc"`
	Rest []Rest `json:"rest"`
}

type Assets

type Assets struct {
	Description string             `json:"description"`
	DenomUnits  []DenomUnits       `json:"denom_units"`
	Base        string             `json:"base"`
	Name        string             `json:"name"`
	Display     string             `json:"display"`
	Symbol      string             `json:"symbol"`
	LogoURIs    LogoURIs           `json:"logo_URIs"`
	Images      []ImagesAssetLists `json:"images"`
	Socials     Socials            `json:"socials,omitempty"`
}

type ChainRegistryAssetsList

type ChainRegistryAssetsList struct {
	Schema    string   `json:"$schema"`
	ChainName string   `json:"chain_name"`
	Assets    []Assets `json:"assets"`
}

func (ChainRegistryAssetsList) SaveJSON

func (v ChainRegistryAssetsList) SaveJSON(loc string) error

type ChainRegistryFormat

type ChainRegistryFormat struct {
	Schema       string      `json:"$schema"`
	ChainName    string      `json:"chain_name"`
	ChainType    string      `json:"chain_type"`
	Status       string      `json:"status"`
	Website      string      `json:"website"`
	NetworkType  string      `json:"network_type"`
	PrettyName   string      `json:"pretty_name"`
	ChainID      string      `json:"chain_id"`
	Bech32Prefix string      `json:"bech32_prefix"`
	DaemonName   string      `json:"daemon_name"`
	NodeHome     string      `json:"node_home"`
	KeyAlgos     []string    `json:"key_algos"`
	Slip44       int         `json:"slip44"`
	Fees         Fees        `json:"fees"`
	Staking      Staking     `json:"staking"`
	Codebase     Codebase    `json:"codebase"`
	Images       []Images    `json:"images"`
	Peers        Peers       `json:"peers"`
	Apis         Apis        `json:"apis"`
	Explorers    []Explorers `json:"explorers"`
	Keywords     []string    `json:"keywords"`
}

func (ChainRegistryFormat) SaveJSON

func (v ChainRegistryFormat) SaveJSON(loc string) error

type Codebase

type Codebase struct {
	GitRepo            string     `json:"git_repo"`
	RecommendedVersion string     `json:"recommended_version"`
	CompatibleVersions []string   `json:"compatible_versions"`
	CosmosSdkVersion   string     `json:"cosmos_sdk_version"`
	Consensus          Consensus  `json:"consensus,omitempty"`
	CosmwasmVersion    string     `json:"cosmwasm_version"`
	CosmwasmEnabled    bool       `json:"cosmwasm_enabled"`
	IbcGoVersion       string     `json:"ibc_go_version"`
	IcsEnabled         []string   `json:"ics_enabled"`
	Genesis            Genesis    `json:"genesis"`
	Versions           []Versions `json:"versions"`
}

type Consensus

type Consensus struct {
	Type    string `json:"type,omitempty"`
	Version string `json:"version,omitempty"`
}

type DenomUnits

type DenomUnits struct {
	Denom    string `json:"denom"`
	Exponent int    `json:"exponent"`
}

type Explorers

type Explorers struct {
	Kind        string `json:"kind"`
	URL         string `json:"url"`
	TxPage      string `json:"tx_page"`
	AccountPage string `json:"account_page"`
}

type FeeTokens

type FeeTokens struct {
	Denom            string  `json:"denom"`
	FixedMinGasPrice int     `json:"fixed_min_gas_price"`
	LowGasPrice      int     `json:"low_gas_price"`
	AverageGasPrice  float64 `json:"average_gas_price"`
	HighGasPrice     float64 `json:"high_gas_price"`
}

type Fees

type Fees struct {
	FeeTokens []FeeTokens `json:"fee_tokens"`
}

type Genesis

type Genesis struct {
	Name       string `json:"name"`
	GenesisURL string `json:"genesis_url"`
}

type Images

type Images struct {
	Png   string `json:"png"`
	Theme Theme  `json:"theme"`
}

type ImagesAssetLists

type ImagesAssetLists struct {
	Png   string `json:"png"`
	Svg   string `json:"svg"`
	Theme Theme  `json:"theme,omitempty"`
}

type LockDuration

type LockDuration struct {
	Time string `json:"time"`
}

type LogoURIs

type LogoURIs struct {
	Png string `json:"png"`
	Svg string `json:"svg"`
}

type Peers

type Peers struct {
	Seeds           []Seeds           `json:"seeds,omitempty"`
	PersistentPeers []PersistentPeers `json:"persistent_peers,omitempty"`
}

type PersistentPeers

type PersistentPeers struct {
	ID       string `json:"id"`
	Address  string `json:"address"`
	Provider string `json:"provider"`
}

type RPC

type RPC struct {
	Address  string `json:"address"`
	Provider string `json:"provider"`
}

type Rest

type Rest struct {
	Address  string `json:"address"`
	Provider string `json:"provider"`
}

type Seeds

type Seeds struct {
	ID       string `json:"id"`
	Address  string `json:"address"`
	Provider string `json:"provider"`
}

type Socials

type Socials struct {
	Website string `json:"website,omitempty"`
	Twitter string `json:"twitter,omitempty"`
}

type Staking

type Staking struct {
	StakingTokens []StakingTokens `json:"staking_tokens"`
	LockDuration  LockDuration    `json:"lock_duration"`
}

type StakingTokens

type StakingTokens struct {
	Denom string `json:"denom"`
}

type Theme

type Theme struct {
	PrimaryColorHex string `json:"primary_color_hex"`
}

type Versions

type Versions struct {
	Name               string    `json:"name"`
	Tag                string    `json:"tag"`
	Height             int       `json:"height"`
	NextVersionName    string    `json:"next_version_name"`
	Proposal           int       `json:"proposal,omitempty"`
	RecommendedVersion string    `json:"recommended_version,omitempty"`
	CompatibleVersions []string  `json:"compatible_versions,omitempty"`
	CosmosSdkVersion   string    `json:"cosmos_sdk_version,omitempty"`
	Consensus          Consensus `json:"consensus,omitempty"`
	CosmwasmVersion    string    `json:"cosmwasm_version,omitempty"`
	CosmwasmEnabled    bool      `json:"cosmwasm_enabled,omitempty"`
	IbcGoVersion       string    `json:"ibc_go_version,omitempty"`
	IcsEnabled         []string  `json:"ics_enabled,omitempty"`
}

Jump to

Keyboard shortcuts

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