pipeline

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeployAltDA

func DeployAltDA(env *Env, intent *state.Intent, st *state.State, chainID common.Hash) error

func DeployImplementations

func DeployImplementations(env *Env, intent *state.Intent, st *state.State) error

func DeployOPChain added in v1.10.0

func DeployOPChain(env *Env, intent *state.Intent, st *state.State, chainID common.Hash) error

func DeploySuperchain

func DeploySuperchain(env *Env, intent *state.Intent, st *state.State) error

func GenerateL2Genesis

func GenerateL2Genesis(pEnv *Env, intent *state.Intent, bundle ArtifactsBundle, st *state.State, chainID common.Hash) error

func InitGenesisStrategy

func InitGenesisStrategy(env *Env, intent *state.Intent, st *state.State) error

func InitLiveStrategy

func InitLiveStrategy(ctx context.Context, env *Env, intent *state.Intent, st *state.State) error

func IsSupportedStateVersion

func IsSupportedStateVersion(version int) bool

func ReadIntent

func ReadIntent(workdir string) (*state.Intent, error)

func ReadState

func ReadState(workdir string) (*state.State, error)

func SetStartBlockGenesisStrategy

func SetStartBlockGenesisStrategy(env *Env, st *state.State, chainID common.Hash) error

func SetStartBlockLiveStrategy

func SetStartBlockLiveStrategy(ctx context.Context, env *Env, st *state.State, chainID common.Hash) error

func WriteState

func WriteState(workdir string, st *state.State) error

Types

type ArtifactsBundle

type ArtifactsBundle struct {
	L1 foundry.StatDirFs
	L2 foundry.StatDirFs
}

type ChainProofParams

type ChainProofParams struct {
	DisputeGameType                         uint32      `json:"disputeGameType" toml:"disputeGameType"`
	DisputeAbsolutePrestate                 common.Hash `json:"disputeAbsolutePrestate" toml:"disputeAbsolutePrestate"`
	DisputeMaxGameDepth                     uint64      `json:"disputeMaxGameDepth" toml:"disputeMaxGameDepth"`
	DisputeSplitDepth                       uint64      `json:"disputeSplitDepth" toml:"disputeSplitDepth"`
	DisputeClockExtension                   uint64      `json:"disputeClockExtension" toml:"disputeClockExtension"`
	DisputeMaxClockDuration                 uint64      `json:"disputeMaxClockDuration" toml:"disputeMaxClockDuration"`
	DangerouslyAllowCustomDisputeParameters bool        `json:"dangerouslyAllowCustomDisputeParameters" toml:"dangerouslyAllowCustomDisputeParameters"`
}

type Env

type Env struct {
	StateWriter  StateWriter
	L1ScriptHost *script.Host
	L1Client     *ethclient.Client
	Broadcaster  broadcaster.Broadcaster
	Deployer     common.Address
	Logger       log.Logger
}

type Stage

type Stage func(ctx context.Context, env *Env, bundle ArtifactsBundle, intent *state.Intent, st *state.State) error

type StateWriter

type StateWriter interface {
	WriteState(st *state.State) error
}

func NoopStateWriter

func NoopStateWriter() StateWriter

func WorkdirStateWriter

func WorkdirStateWriter(workdir string) StateWriter

type SuperchainProofParams

type SuperchainProofParams struct {
	WithdrawalDelaySeconds          uint64 `json:"withdrawalDelaySeconds" toml:"withdrawalDelaySeconds"`
	MinProposalSizeBytes            uint64 `json:"minProposalSizeBytes" toml:"minProposalSizeBytes"`
	ChallengePeriodSeconds          uint64 `json:"challengePeriodSeconds" toml:"challengePeriodSeconds"`
	ProofMaturityDelaySeconds       uint64 `json:"proofMaturityDelaySeconds" toml:"proofMaturityDelaySeconds"`
	DisputeGameFinalityDelaySeconds uint64 `json:"disputeGameFinalityDelaySeconds" toml:"disputeGameFinalityDelaySeconds"`
	MIPSVersion                     uint64 `json:"mipsVersion" toml:"mipsVersion"`
}

Jump to

Keyboard shortcuts

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