interop

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: MIT Imports: 60 Imported by: 0

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

	// Superchain level
	L2IDs() []string
	Supervisor() *supervisor.SupervisorService
	Batcher(network string) *bss.BatcherService
	Proposer(network string) *l2os.ProposerService
	AddUser(username string)
	SupervisorClient() *sources.SupervisorClient

	// L2 client specific
	L2GethClient(network string, node string) *ethclient.Client
	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
	AddNode(network string, nodeName string)

	// L2 level
	ChainID(network string) *big.Int
	UserKey(nework, 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(network string, username string) common.Address
	AddDependency(ctx context.Context, network string, dep *big.Int) *types.Receipt
	ValidateMessage(
		ctx context.Context,
		id string,
		sender string,
		msgIdentifier supervisortypes.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

func NewSuperSystem(t *testing.T, recipe *interopgen.InteropDevRecipe, w worldResourcePaths, config SuperSystemConfig) SuperSystem

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

type SuperSystemConfig added in v1.9.5

type SuperSystemConfig struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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