chaincfg

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: MIT, MIT Imports: 4 Imported by: 7 modules, 12 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 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. Other configurations that are part of the superchain-registry can be used with the --beta.network flag.

func BetaAvailableNetworks added in v1.1.6

func BetaAvailableNetworks() []string

BetaAvailableNetworks returns all available network configurations in the superchain-registry. This set of configurations is experimental, and may change at any time.

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)

func IsAvailableNetwork added in v1.1.6

func IsAvailableNetwork(name string, beta bool) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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