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 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.