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(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" ChainZkSync ChainType = "zksync" )
func ChainTypeFromSlug ¶ added in v2.12.0
type ChainTypeConfig ¶ added in v2.12.0
type ChainTypeConfig struct {
// contains filtered or unexported fields
}
func NewChainTypeConfig ¶ added in v2.12.0
func NewChainTypeConfig(slug string) *ChainTypeConfig
func (*ChainTypeConfig) ChainType ¶ added in v2.12.0
func (c *ChainTypeConfig) ChainType() ChainType
func (*ChainTypeConfig) MarshalText ¶ added in v2.12.0
func (c *ChainTypeConfig) MarshalText() ([]byte, error)
func (*ChainTypeConfig) Slug ¶ added in v2.12.0
func (c *ChainTypeConfig) Slug() string
func (*ChainTypeConfig) String ¶ added in v2.12.0
func (c *ChainTypeConfig) String() string
func (*ChainTypeConfig) UnmarshalText ¶ added in v2.12.0
func (c *ChainTypeConfig) UnmarshalText(b []byte) error
Click to show internal directories.
Click to hide internal directories.