interop

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 62 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SuperSystem

type SuperSystem interface {
	L1() *geth.GethInstance
	L1GethClient() *ethclient.Client
	L1Beacon() *fakebeacon.FakeBeacon
	AdvanceL1Time(duration time.Duration)
	DisputeGameFactoryAddr() common.Address

	// Superchain level
	L2IDs() []string
	Batcher(network string) *bss.BatcherService
	SupernodeClient() *sources.SuperNodeClient
	SupernodeEndpoint() endpoint.RPC
	DependencySet() *depset.StaticConfigDependencySet

	// L2 client specific
	L2ELEndpoint(id string, name string) endpoint.RPC
	L2ELClient(network string, node string) *ethclient.Client
	L2RollupEndpoint(network string, node string) endpoint.RPC
	L2RollupClient(network string, node string) *sources.RollupClient

	// L2 level
	RollupConfig(network string) *rollup.Config
	L1Genesis() *core.Genesis
	L2Genesis(network string) *opgenesis.Genesis
	L2OperatorKey(network string, role devkeys.ChainOperatorRole) ecdsa.PrivateKey
}

SuperSystem is an interface for the system (collection of connected resources) it provides a way to get the resources for a network by network ID and provides a way to get the list of network IDs this is useful for testing multiple network backends, for example, interopE2ESystem is the default implementation, but a shim to kurtosis or another testing framework could be implemented

func NewSuperSystem

func NewSuperSystem(t *testing.T, world WorldConfig, config SuperSystemConfig) SuperSystem

NewSuperSystem creates a SuperSystem with the chains of world.

type SuperSystemConfig

type SuperSystemConfig struct {
	SupportTimeTravel bool
	BatcherUsesBlobs  bool
}

type WorldConfig added in v1.21.0

type WorldConfig struct {
	L1ChainID  uint64
	L2ChainIDs []uint64
	// ContractArtifacts is the forge-artifacts directory of contracts-bedrock.
	ContractArtifacts string
}

WorldConfig configures the chains of a SuperSystem.

Jump to

Keyboard shortcuts

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