genesis

package
v0.0.0-...-370e875 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GeneratedGenesisDeployment = &GenesisDeployment{
	L1: &L1GenesisDeployment{
		ChainID:     900,
		GenesisJSON: l1GenesisJSON,
	},
	L2s: []*L2GenesisDeployment{
		newL2GenesisDeployment(901, addresses901JSON, l2Genesis901JSON),
		newL2GenesisDeployment(902, addresses902JSON, l2Genesis902JSON),
		newL2GenesisDeployment(903, addresses903JSON, l2Genesis903JSON),
		newL2GenesisDeployment(904, addresses904JSON, l2Genesis904JSON),
		newL2GenesisDeployment(905, addresses905JSON, l2Genesis905JSON),
	},
}

Functions

This section is empty.

Types

type Alloc

type Alloc struct {
	Balance string            `json:"balance"`
	Code    string            `json:"code"`
	Nonce   string            `json:"nonce"`
	Storage map[string]string `json:"storage"`
}

type GenesisDeployment

type GenesisDeployment struct {
	L1  *L1GenesisDeployment
	L2s []*L2GenesisDeployment
}

type GenesisJson

type GenesisJson struct {
	Alloc map[string]Alloc `json:"alloc"`
}

func UnMarshaledL2GenesisJSON

func UnMarshaledL2GenesisJSON() (*GenesisJson, error)

type L1GenesisDeployment

type L1GenesisDeployment struct {
	ChainID     uint64
	GenesisJSON []byte
}

type L2GenesisDeployment

type L2GenesisDeployment struct {
	ChainID               uint64
	GenesisJSON           []byte
	L1DeploymentAddresses *genesis.L1Deployments
}

func (*L2GenesisDeployment) RegistryAddressList

func (d *L2GenesisDeployment) RegistryAddressList() *registry.AddressList

Unassigned contracts -- Fault Proof, Plasma, SuperchainConfig, Roles

NOTE: We use the superchain registry AddressList as the canonical format for superchain addresses. Any experimental contracts will be managed externally from this list. The registry and op-chain-ops L1Deployments type will be consolidated in the future as well.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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