config

package
v0.0.0-...-5a0428a Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConstructChainConfig

func ConstructChainConfig(
	inputFilePath,
	genesisPath,
	chainName,
	publicRPC,
	sequencerRPC,
	explorer string,
	superchainLevel superchain.SuperchainLevel,
	standardChainCandidate bool,
) (superchain.ChainConfig, error)

ConstructChainConfig creates and populates a ChainConfig struct by reading from an input file and explicitly setting some additional fields to input argument values

func GetL1RpcUrl

func GetL1RpcUrl(superchainTarget string) (string, error)

func WriteChainConfigTOML

func WriteChainConfigTOML(rollupConfig superchain.ChainConfig, targetDirectory string) error

WriteChainConfigTPOML accepts a rollupConfig, formats it, and writes a single output toml file which includes the following:

  • general chain info/config
  • contract and role addresses
  • genesis system config
  • optional feature config info, if activated (e.g. altDA)

Types

type LegacyPlasma

type LegacyPlasma struct {
	DAChallengeAddress         *superchain.Address `json:"da_challenge_address"`
	DAChallengeContractAddress *superchain.Address `json:"da_challenge_contract_address"`
	DACommitmentType           *string             `json:"da_commitment_type"`
	DAChallengeWindow          *uint64             `json:"da_challenge_window"`
	DAResolveWindow            *uint64             `json:"da_resolve_window"`
	UsePlasma                  *bool               `json:"use_plasma"`
	PlasmaConfig               *interface{}        `json:"plasma_config"`
}

func (*LegacyPlasma) CheckNonNilFields

func (lp *LegacyPlasma) CheckNonNilFields() error

Jump to

Keyboard shortcuts

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