Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var L2ChainIDToNetworkDisplayName = func() map[string]string { out := make(map[string]string) for chainID, netCfg := range registry.Chains { out[fmt.Sprintf("%d", chainID)] = netCfg.Name } return out }()
L2ChainIDToNetworkDisplayName maps chain IDs to registry chain names. It is built from the registry's chain index alone — the index key is the chain ID (pinned by TestAllEmbeddedConfigsDecodeStrictly) — so no chain config is parsed.
Functions ¶
func AvailableNetworks ¶
func AvailableNetworks() []string
AvailableNetworks returns the selection of network configurations that is available by default.
func ChainByName ¶
func ChainByName(name string) *registry.ChainConfig
ChainByName returns a chain, from known available configurations, by name. ChainByName returns nil when the chain name is unknown.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.