interop

package
v1.19.10 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 56 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
	Supernode() *supernode.Supernode
	Batcher(network string) *bss.BatcherService
	AddUser(username string)
	SupernodeClient() *sources.SuperNodeClient
	SupernodeEndpoint() endpoint.RPC
	DependencySet() *depset.StaticConfigDependencySet

	// L2 client specific
	L2GethEndpoint(id string, name string) endpoint.RPC
	L2GethClient(network string, node string) *ethclient.Client
	L2RollupEndpoint(network string, node string) endpoint.RPC
	L2RollupClient(network string, node string) *sources.RollupClient
	SendL2Tx(network string, node string, username string, applyTxOpts helpers.TxOptsFn) *types.Receipt
	EmitData(ctx context.Context, network string, node string, username string, data string) *types.Receipt

	// L2 level
	ChainID(network string) *big.Int
	RollupConfig(network string) *rollup.Config
	L1Genesis() *core.Genesis
	L2Genesis(network string) *core.Genesis
	UserKey(network, username string) ecdsa.PrivateKey
	L2OperatorKey(network string, role devkeys.ChainOperatorRole) ecdsa.PrivateKey
	Address(network string, username string) common.Address
	Contract(network string, contractName string) interface{}
	DeployEmitterContract(ctx context.Context, network string, username string) common.Address
	ValidateMessage(
		ctx context.Context,
		id string,
		sender string,
		msgIdentifier messages.Identifier,
		msgHash [32]byte,
		expectedError error,
	) (*types.Receipt, error)
}

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

NewSuperSystem creates a new SuperSystem from a recipe. It creates an interopE2ESystem.

type SuperSystemConfig

type SuperSystemConfig struct {
	SupportTimeTravel bool
	BatcherUsesBlobs  bool
	// L2ELKind selects the L2 execution-layer backend (op-geth or op-reth).
	// Defaults to services.DefaultELKind() when unset.
	L2ELKind services.ELKind
}

type WorldResourcePaths

type WorldResourcePaths struct {
	FoundryArtifacts string
	SourceMap        string
}

Jump to

Keyboard shortcuts

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