chains

package
v0.0.0-...-3326642 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainConfig

type ChainConfig struct {
	ChainId            *big.Int                  `yaml:"chain-id"`
	ProverContracts    map[string]common.Address `yaml:"prover-contracts"`
	RpcUrl             string                    `yaml:"rpc-url"`
	L2Oracle           common.Address            `yaml:"l2-oracle"`
	L2OracleStorageKey string                    `yaml:"l2-oracle-storage-key"`
	Contracts          *Contracts                `yaml:"contracts"`
	TargetProver       provers.Prover            `yaml:"target-prover"`
}

type Contracts

type Contracts struct {
	AnchorStateRegistry common.Address `yaml:"anchor-state-registry"`
	ArbRollup           common.Address `yaml:"arb-rollup"`
	L2MessagePasser     common.Address `yaml:"l2-message-passer"`
	Inbox               common.Address `yaml:"inbox"`
	Outbox              common.Address `yaml:"outbox"`
}

type Networks

type Networks map[string]ChainConfig

func (*Networks) GetChainConfig

func (n *Networks) GetChainConfig(chainId *big.Int) (*ChainConfig, error)

type NetworksConfig

type NetworksConfig struct {
	Networks Networks `yaml:"networks"`
}

Jump to

Keyboard shortcuts

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