Documentation
¶
Index ¶
- func NewCluster(cfg ClusterConfig) stack.Cluster
- func NewConductor(cfg ConductorConfig) stack.Conductor
- func NewFaucet(cfg FaucetConfig) stack.Faucet
- func NewFlashblocksWSClient(cfg FlashblocksWSClientConfig) stack.FlashblocksWSClient
- func NewKeyring(keys devkeys.Keys, req *testreq.Assertions) stack.Keys
- func NewL1CLNode(cfg L1CLNodeConfig) stack.L1CLNode
- func NewL1ELNode(cfg L1ELNodeConfig) stack.L1ELNode
- func NewL1Network(cfg L1NetworkConfig) stack.ExtensibleL1Network
- func NewL2Batcher(cfg L2BatcherConfig) stack.L2Batcher
- func NewL2CLNode(cfg L2CLNodeConfig) stack.L2CLNode
- func NewL2Challenger(cfg L2ChallengerConfig) stack.L2Challenger
- func NewL2ELNode(cfg L2ELNodeConfig) stack.L2ELNode
- func NewL2Network(cfg L2NetworkConfig) stack.ExtensibleL2Network
- func NewL2Proposer(cfg L2ProposerConfig) stack.L2Proposer
- func NewSuperchain(cfg SuperchainConfig) stack.Superchain
- func NewSupervisor(cfg SupervisorConfig) stack.Supervisor
- func NewSyncTester(cfg SyncTesterConfig) stack.SyncTester
- func NewSystem(t devtest.T) stack.ExtensibleSystem
- func NewTestSequencer(cfg TestSequencerConfig) stack.TestSequencer
- type ClusterConfig
- type CommonConfig
- type ConductorConfig
- type ELNodeConfig
- type FaucetConfig
- type FlashblocksWSClientConfig
- type L1CLNodeConfig
- type L1ELNodeConfig
- type L1NetworkConfig
- type L2BatcherConfig
- type L2CLNodeConfig
- type L2ChallengerConfig
- type L2ELNodeConfig
- type L2NetworkConfig
- type L2ProposerConfig
- type NetworkConfig
- type OPRBuilderNode
- func (r *OPRBuilderNode) ChainID() eth.ChainID
- func (r *OPRBuilderNode) EthClient() apis.EthClient
- func (r *OPRBuilderNode) FlashblocksClient() *opclient.WSClient
- func (r *OPRBuilderNode) ID() stack.OPRBuilderNodeID
- func (r *OPRBuilderNode) L2EngineClient() apis.EngineClient
- func (r *OPRBuilderNode) L2EthClient() apis.L2EthClient
- func (r *OPRBuilderNode) TransactionTimeout() time.Duration
- type OPRBuilderNodeConfig
- type RollupBoostNode
- func (r *RollupBoostNode) ChainID() eth.ChainID
- func (r *RollupBoostNode) ELNode() stack.ELNode
- func (r *RollupBoostNode) EthClient() apis.EthClient
- func (r *RollupBoostNode) FlashblocksClient() *opclient.WSClient
- func (r *RollupBoostNode) ID() stack.RollupBoostNodeID
- func (r *RollupBoostNode) L2EngineClient() apis.EngineClient
- func (r *RollupBoostNode) L2EthClient() apis.L2EthClient
- func (r *RollupBoostNode) TransactionTimeout() time.Duration
- type RollupBoostNodeConfig
- type SuperchainConfig
- type SupervisorConfig
- type SyncTesterConfig
- type SystemConfig
- type TestSequencerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCluster ¶
func NewCluster(cfg ClusterConfig) stack.Cluster
func NewConductor ¶ added in v1.13.4
func NewConductor(cfg ConductorConfig) stack.Conductor
func NewFaucet ¶
func NewFaucet(cfg FaucetConfig) stack.Faucet
func NewFlashblocksWSClient ¶ added in v1.16.3
func NewFlashblocksWSClient(cfg FlashblocksWSClientConfig) stack.FlashblocksWSClient
func NewKeyring ¶
func NewL1CLNode ¶
func NewL1CLNode(cfg L1CLNodeConfig) stack.L1CLNode
func NewL1ELNode ¶
func NewL1ELNode(cfg L1ELNodeConfig) stack.L1ELNode
func NewL1Network ¶
func NewL1Network(cfg L1NetworkConfig) stack.ExtensibleL1Network
func NewL2Batcher ¶
func NewL2Batcher(cfg L2BatcherConfig) stack.L2Batcher
func NewL2CLNode ¶
func NewL2CLNode(cfg L2CLNodeConfig) stack.L2CLNode
func NewL2Challenger ¶
func NewL2Challenger(cfg L2ChallengerConfig) stack.L2Challenger
func NewL2ELNode ¶
func NewL2ELNode(cfg L2ELNodeConfig) stack.L2ELNode
func NewL2Network ¶
func NewL2Network(cfg L2NetworkConfig) stack.ExtensibleL2Network
func NewL2Proposer ¶
func NewL2Proposer(cfg L2ProposerConfig) stack.L2Proposer
func NewSuperchain ¶
func NewSuperchain(cfg SuperchainConfig) stack.Superchain
func NewSupervisor ¶
func NewSupervisor(cfg SupervisorConfig) stack.Supervisor
func NewSyncTester ¶ added in v1.13.6
func NewSyncTester(cfg SyncTesterConfig) stack.SyncTester
func NewSystem ¶
func NewSystem(t devtest.T) stack.ExtensibleSystem
NewSystem creates a new empty System
func NewTestSequencer ¶ added in v1.13.4
func NewTestSequencer(cfg TestSequencerConfig) stack.TestSequencer
Types ¶
type ClusterConfig ¶
type ClusterConfig struct {
CommonConfig
DependencySet depset.DependencySet
ID stack.ClusterID
}
ClusterConfig is the config to create a default cluster object
type CommonConfig ¶
CommonConfig provides common inputs for creating a new component
func NewCommonConfig ¶
func NewCommonConfig(t devtest.T) CommonConfig
NewCommonConfig is a convenience method to build the config common between all components. Note that component constructors will decorate the test-scope with contextual metadata, the caller of the component constructor can generally leave the test-context as-is.
type ConductorConfig ¶ added in v1.13.4
type ConductorConfig struct {
CommonConfig
ID stack.ConductorID
Client *rpc.Client
}
type ELNodeConfig ¶
type FaucetConfig ¶
type FaucetConfig struct {
CommonConfig
ID stack.FaucetID
Client client.RPC
}
type FlashblocksWSClientConfig ¶ added in v1.16.3
type FlashblocksWSClientConfig struct {
CommonConfig
ID stack.FlashblocksWSClientID
WsUrl string
WsHeaders http.Header
}
type L1CLNodeConfig ¶
type L1CLNodeConfig struct {
CommonConfig
ID stack.L1CLNodeID
Client client.HTTP
}
type L1ELNodeConfig ¶
type L1ELNodeConfig struct {
ELNodeConfig
ID stack.L1ELNodeID
}
type L1NetworkConfig ¶
type L1NetworkConfig struct {
NetworkConfig
ID stack.L1NetworkID
}
type L2BatcherConfig ¶
type L2BatcherConfig struct {
CommonConfig
ID stack.L2BatcherID
Client client.RPC
}
type L2CLNodeConfig ¶
type L2CLNodeConfig struct {
CommonConfig
ID stack.L2CLNodeID
Client client.RPC
UserRPC string
InteropEndpoint string
InteropJwtSecret eth.Bytes32
}
type L2ChallengerConfig ¶
type L2ChallengerConfig struct {
CommonConfig
ID stack.L2ChallengerID
Config *config.Config
}
type L2ELNodeConfig ¶
type L2ELNodeConfig struct {
ELNodeConfig
EngineClient client.RPC
RollupCfg *rollup.Config
ID stack.L2ELNodeID
}
type L2NetworkConfig ¶
type L2NetworkConfig struct {
NetworkConfig
ID stack.L2NetworkID
RollupConfig *rollup.Config
Deployment stack.L2Deployment
Keys stack.Keys
Superchain stack.Superchain
L1 stack.L1Network
Cluster stack.Cluster
}
type L2ProposerConfig ¶
type L2ProposerConfig struct {
CommonConfig
ID stack.L2ProposerID
Client client.RPC
}
type NetworkConfig ¶
type NetworkConfig struct {
CommonConfig
ChainConfig *params.ChainConfig
}
type OPRBuilderNode ¶ added in v1.16.3
type OPRBuilderNode struct {
// contains filtered or unexported fields
}
func NewOPRBuilderNode ¶ added in v1.16.3
func NewOPRBuilderNode(cfg OPRBuilderNodeConfig) *OPRBuilderNode
func (*OPRBuilderNode) FlashblocksClient ¶ added in v1.16.3
func (r *OPRBuilderNode) FlashblocksClient() *opclient.WSClient
func (*OPRBuilderNode) ID ¶ added in v1.16.3
func (r *OPRBuilderNode) ID() stack.OPRBuilderNodeID
func (*OPRBuilderNode) L2EngineClient ¶ added in v1.16.3
func (r *OPRBuilderNode) L2EngineClient() apis.EngineClient
func (*OPRBuilderNode) L2EthClient ¶ added in v1.16.3
func (r *OPRBuilderNode) L2EthClient() apis.L2EthClient
func (*OPRBuilderNode) TransactionTimeout ¶ added in v1.16.3
type OPRBuilderNodeConfig ¶ added in v1.16.3
type OPRBuilderNodeConfig struct {
ELNodeConfig
RollupCfg *rollup.Config
ID stack.OPRBuilderNodeID
FlashblocksClient *opclient.WSClient
}
type RollupBoostNode ¶ added in v1.16.3
type RollupBoostNode struct {
// contains filtered or unexported fields
}
func NewRollupBoostNode ¶ added in v1.16.3
func NewRollupBoostNode(cfg RollupBoostNodeConfig) *RollupBoostNode
func (*RollupBoostNode) ELNode ¶ added in v1.16.3
func (r *RollupBoostNode) ELNode() stack.ELNode
func (*RollupBoostNode) FlashblocksClient ¶ added in v1.16.3
func (r *RollupBoostNode) FlashblocksClient() *opclient.WSClient
func (*RollupBoostNode) ID ¶ added in v1.16.3
func (r *RollupBoostNode) ID() stack.RollupBoostNodeID
func (*RollupBoostNode) L2EngineClient ¶ added in v1.16.3
func (r *RollupBoostNode) L2EngineClient() apis.EngineClient
func (*RollupBoostNode) L2EthClient ¶ added in v1.16.3
func (r *RollupBoostNode) L2EthClient() apis.L2EthClient
func (*RollupBoostNode) TransactionTimeout ¶ added in v1.16.3
type RollupBoostNodeConfig ¶ added in v1.16.3
type RollupBoostNodeConfig struct {
ELNodeConfig
RollupCfg *rollup.Config
ID stack.RollupBoostNodeID
FlashblocksClient *opclient.WSClient
}
type SuperchainConfig ¶
type SuperchainConfig struct {
CommonConfig
ID stack.SuperchainID
Deployment stack.SuperchainDeployment
}
type SupervisorConfig ¶
type SupervisorConfig struct {
CommonConfig
ID stack.SupervisorID
Client client.RPC
}
type SyncTesterConfig ¶ added in v1.13.6
type SyncTesterConfig struct {
CommonConfig
ID stack.SyncTesterID
Addr string
Client client.RPC
}
type SystemConfig ¶
type SystemConfig struct {
CommonConfig
}
SystemConfig sets up a System. It is intentionally very minimal, the system is expected to be extended after creation, using Option functions
type TestSequencerConfig ¶ added in v1.13.4
type TestSequencerConfig struct {
CommonConfig
ID stack.TestSequencerID
Client client.RPC
ControlClients map[eth.ChainID]client.RPC
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.