Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidChainType = fmt.Errorf("must be one of %s or omitted", strings.Join([]string{ string(ChainArbitrum), string(ChainCelo), string(ChainGnosis), string(ChainKroma), string(ChainMetis), string(ChainOptimismBedrock), string(ChainScroll), string(ChainWeMix), string(ChainXLayer), string(ChainZkEvm), string(ChainZkSync), }, ", "))
Functions ¶
This section is empty.
Types ¶
type ChainType ¶
type ChainType string
const ( ChainArbitrum ChainType = "arbitrum" ChainCelo ChainType = "celo" ChainGnosis ChainType = "gnosis" ChainKroma ChainType = "kroma" ChainMetis ChainType = "metis" ChainOptimismBedrock ChainType = "optimismBedrock" ChainScroll ChainType = "scroll" ChainWeMix ChainType = "wemix" ChainXLayer ChainType = "xlayer" ChainZkEvm ChainType = "zkevm" ChainZkSync ChainType = "zksync" )
func ChainTypeFromSlug ¶
type ChainTypeConfig ¶
type ChainTypeConfig struct {
// contains filtered or unexported fields
}
func NewChainTypeConfig ¶
func NewChainTypeConfig(slug string) *ChainTypeConfig
func (*ChainTypeConfig) ChainType ¶
func (c *ChainTypeConfig) ChainType() ChainType
func (*ChainTypeConfig) MarshalText ¶
func (c *ChainTypeConfig) MarshalText() ([]byte, error)
func (*ChainTypeConfig) Slug ¶
func (c *ChainTypeConfig) Slug() string
func (*ChainTypeConfig) String ¶
func (c *ChainTypeConfig) String() string
func (*ChainTypeConfig) UnmarshalText ¶
func (c *ChainTypeConfig) UnmarshalText(b []byte) error
Click to show internal directories.
Click to hide internal directories.