interop

package
v1.9.5 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

type Chain struct {
	ChainID types.ChainID

	RollupCfg   *rollup.Config
	ChainCfg    *params.ChainConfig
	BatcherAddr common.Address

	Sequencer       *helpers.L2Sequencer
	SequencerEngine *helpers.L2Engine
	Batcher         *helpers.L2Batcher
}

Chain holds the most common per-chain action-test data and actors

type InteropActors

type InteropActors struct {
	L1Miner    *helpers.L1Miner
	Supervisor *SupervisorActor
	ChainA     *Chain
	ChainB     *Chain
}

InteropActors holds a bundle of global actors and actors of 2 chains.

type InteropSetup

type InteropSetup struct {
	Log        log.Logger
	Deployment *interopgen.WorldDeployment
	Out        *interopgen.WorldOutput
	DepSet     *depset.StaticConfigDependencySet
	Keys       devkeys.Keys
	T          helpers.Testing
}

InteropSetup holds the chain deployment and config contents, before instantiating any services.

func SetupInterop

func SetupInterop(t helpers.Testing) *InteropSetup

SetupInterop creates an InteropSetup to instantiate actors on, with 2 L2 chains.

func (*InteropSetup) CreateActors

func (is *InteropSetup) CreateActors() *InteropActors

type SupervisorActor

type SupervisorActor struct {
	frontend.QueryFrontend
	frontend.AdminFrontend
	frontend.UpdatesFrontend
	// contains filtered or unexported fields
}

SupervisorActor represents a supervisor, instrumented to run synchronously for action-test purposes.

func NewSupervisor

func NewSupervisor(t helpers.Testing, logger log.Logger, depSet depset.DependencySetSource) *SupervisorActor

NewSupervisor creates a new SupervisorActor, to action-test the supervisor with.

func (*SupervisorActor) SyncCrossSafe

func (sa *SupervisorActor) SyncCrossSafe(t helpers.Testing, chainID types.ChainID)

func (*SupervisorActor) SyncCrossUnsafe

func (sa *SupervisorActor) SyncCrossUnsafe(t helpers.Testing, chainID types.ChainID)

func (*SupervisorActor) SyncEvents

func (sa *SupervisorActor) SyncEvents(t helpers.Testing, chainID types.ChainID)

Jump to

Keyboard shortcuts

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