chaincfg

package
v0.0.0-...-40beec6 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var L2ChainIDToNetworkDisplayName = func() map[string]string {
	out := make(map[string]string)
	for _, netCfg := range superchain.OPChains {
		out[fmt.Sprintf("%d", netCfg.ChainID)] = netCfg.Name
	}
	return out
}()
View Source
var Mainnet, Goerli, Sepolia *rollup.Config

Functions

func AvailableNetworks

func AvailableNetworks() []string

AvailableNetworks returns the selection of network configurations that is available by default.

func ChainByName

func ChainByName(name string) *superchain.ChainConfig

ChainByName returns a chain, from known available configurations, by name. ChainByName returns nil when the chain name is unknown.

func GetRollupConfig

func GetRollupConfig(name string) (*rollup.Config, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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