chainconfig

package
v1.16.4 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: MIT, MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingChainConfig = errors.New("missing chain config")
)

Functions

func CheckConfigFilenames added in v1.13.5

func CheckConfigFilenames() error

func CustomChainIDs added in v1.12.0

func CustomChainIDs() ([]eth.ChainID, error)

func DependencySetByChainID added in v1.11.2

func DependencySetByChainID(chainID eth.ChainID) (depset.DependencySet, error)

DependencySetByChainID locates the dependency set from either the superchain-registry or the embed. Returns ErrMissingChainConfig if the dependency set is not found.

func L1ChainConfigByChainID added in v1.14.0

func L1ChainConfigByChainID(chainID eth.ChainID) (*params.ChainConfig, error)

func L2ChainConfigByChainID added in v1.14.0

func L2ChainConfigByChainID(chainID eth.ChainID) (*params.ChainConfig, error)

L2ChainConfigByChainID locates the genesis chain config from either the superchain-registry or the embed. Returns ErrMissingChainConfig if the chain config is not found.

func OPSepoliaChainConfig

func OPSepoliaChainConfig() *params.ChainConfig

OPSepoliaChainConfig loads the op-sepolia chain config. This is intended for tests that need an arbitrary, valid chain config.

func RollupConfigByChainID

func RollupConfigByChainID(chainID eth.ChainID) (*rollup.Config, error)

RollupConfigByChainID locates the rollup config from either the superchain-registry or the embed. Returns ErrMissingChainConfig if the rollup config is not found.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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