pipeline

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2025 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeployAdditionalDisputeGames added in v1.11.0

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

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 GenerateInteropDepset added in v1.13.0

func GenerateInteropDepset(_ context.Context, pEnv *Env, globalIntent *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 GeneratePreState added in v1.13.0

func GeneratePreState(ctx context.Context, pEnv *Env, globalIntent *state.Intent, st *state.State, preStateBuilder PreStateBuilder) 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 PopulateSuperchainState added in v1.13.3

func PopulateSuperchainState(host *script.Host, opcmAddr common.Address) (*addresses.SuperchainContracts, *addresses.SuperchainRoles, error)

func PrefundL1DevGenesis added in v1.13.1

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

PrefundL1DevGenesis pre-funds accounts in the L1 dev genesis for testing purposes

func PrefundL2DevGenesis added in v1.13.1

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

PrefundL2DevGenesis pre-funds accounts in the L2 dev genesis for testing purposes

func PreinstallL1DevGenesis added in v1.13.1

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

func ReadIntent

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

func ReadState

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

func RenderGenesisAndRollup added in v1.13.0

func RenderGenesisAndRollup(globalState *state.State, chainID common.Hash, useGlobalIntent *state.Intent) (*core.Genesis, *rollup.Config, error)

func SealL1DevGenesis added in v1.13.1

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

func SetStartBlockGenesisStrategy

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

func SetStartBlockLiveStrategy

func SetStartBlockLiveStrategy(ctx context.Context, intent *state.Intent, 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 Env

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

type PreStateBuilder added in v1.13.0

type PreStateBuilder interface {
	BuildPrestate(ctx context.Context, opts ...prestate.PrestateBuilderOption) (prestate.PrestateManifest, error)
}

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

Jump to

Keyboard shortcuts

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