Documentation
¶
Index ¶
- func DefaultInteropSystem(dest *DefaultInteropSystemIDs) stack.Option[*Orchestrator]
- func DisconnectL2CLP2P(l2CL1ID, l2CL2ID stack.L2CLNodeID) stack.Option[*Orchestrator]
- func GetP2PClient(ctx context.Context, logger log.Logger, l2CLNode *L2CLNode) (*sources.P2PClient, error)
- func GetPeerInfo(ctx context.Context, p2pClient *sources.P2PClient) (*apis.PeerInfo, error)
- func GetPeers(ctx context.Context, p2pClient *sources.P2PClient) (*apis.PeerDump, error)
- func RedundantInteropSystem(dest *RedundantInteropSystemIDs) stack.Option[*Orchestrator]
- func WithBatcher(batcherID stack.L2BatcherID, l1ELID stack.L1ELNodeID, l2CLID stack.L2CLNodeID, ...) stack.Option[*Orchestrator]
- func WithDeployer() stack.Option[*Orchestrator]
- func WithDeployerOptions(opts ...DeployerOption) stack.Option[*Orchestrator]
- func WithFaucets(l1ELs []stack.L1ELNodeID, l2ELs []stack.L2ELNodeID) stack.Option[*Orchestrator]
- func WithInteropGen(l1ID stack.L1NetworkID, superchainID stack.SuperchainID, ...) stack.Option[*Orchestrator]
- func WithL1Nodes(l1ELID stack.L1ELNodeID, l1CLID stack.L1CLNodeID) stack.Option[*Orchestrator]
- func WithL2CLNode(l2CLID stack.L2CLNodeID, isSequencer bool, l1CLID stack.L1CLNodeID, ...) stack.Option[*Orchestrator]
- func WithL2CLP2PConnection(l2CL1ID, l2CL2ID stack.L2CLNodeID) stack.Option[*Orchestrator]
- func WithL2ELNode(id stack.L2ELNodeID, supervisorID *stack.SupervisorID) stack.Option[*Orchestrator]
- func WithManagedBySupervisor(l2CLID stack.L2CLNodeID, supervisorID stack.SupervisorID) stack.Option[*Orchestrator]
- func WithMnemonicKeys(mnemonic string) stack.Option[*Orchestrator]
- func WithProposer(proposerID stack.L2ProposerID, l1ELID stack.L1ELNodeID, ...) stack.Option[*Orchestrator]
- func WithSequencer(sequencerID stack.SequencerID, l2CLID stack.L2CLNodeID, ...) stack.Option[*Orchestrator]
- func WithSupervisor(supervisorID stack.SupervisorID, clusterID stack.ClusterID, ...) stack.Option[*Orchestrator]
- type Cluster
- type ContractPaths
- type ControlPlane
- type DefaultInteropSystemIDs
- type DeployerOption
- type FaucetService
- type L1CLNode
- type L1ELNode
- type L1Network
- type L2Batcher
- type L2CLNode
- type L2Deployment
- type L2ELNode
- type L2Network
- type L2Proposer
- type Orchestrator
- type RedundantInteropSystemIDs
- type Sequencer
- type Superchain
- type SuperchainDeployment
- type Supervisor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultInteropSystem ¶ added in v1.13.3
func DefaultInteropSystem(dest *DefaultInteropSystemIDs) stack.Option[*Orchestrator]
func DisconnectL2CLP2P ¶ added in v1.13.3
func DisconnectL2CLP2P(l2CL1ID, l2CL2ID stack.L2CLNodeID) stack.Option[*Orchestrator]
DisconnectL2CLP2P disconnects P2P between two L2CLs
func GetP2PClient ¶
func GetPeerInfo ¶
func RedundantInteropSystem ¶ added in v1.13.3
func RedundantInteropSystem(dest *RedundantInteropSystemIDs) stack.Option[*Orchestrator]
func WithBatcher ¶ added in v1.13.3
func WithBatcher(batcherID stack.L2BatcherID, l1ELID stack.L1ELNodeID, l2CLID stack.L2CLNodeID, l2ELID stack.L2ELNodeID) stack.Option[*Orchestrator]
func WithDeployer ¶ added in v1.13.3
func WithDeployer() stack.Option[*Orchestrator]
func WithDeployerOptions ¶ added in v1.13.3
func WithDeployerOptions(opts ...DeployerOption) stack.Option[*Orchestrator]
func WithFaucets ¶ added in v1.13.3
func WithFaucets(l1ELs []stack.L1ELNodeID, l2ELs []stack.L2ELNodeID) stack.Option[*Orchestrator]
func WithInteropGen ¶ added in v1.13.3
func WithInteropGen(l1ID stack.L1NetworkID, superchainID stack.SuperchainID, clusterID stack.ClusterID, l2IDs []stack.L2NetworkID, res ContractPaths) stack.Option[*Orchestrator]
WithInteropGen is a system option that will create a L1 chain, superchain, cluster and L2 chains.
func WithL1Nodes ¶ added in v1.13.3
func WithL1Nodes(l1ELID stack.L1ELNodeID, l1CLID stack.L1CLNodeID) stack.Option[*Orchestrator]
func WithL2CLNode ¶ added in v1.13.3
func WithL2CLNode(l2CLID stack.L2CLNodeID, isSequencer bool, l1CLID stack.L1CLNodeID, l1ELID stack.L1ELNodeID, l2ELID stack.L2ELNodeID) stack.Option[*Orchestrator]
func WithL2CLP2PConnection ¶ added in v1.13.3
func WithL2CLP2PConnection(l2CL1ID, l2CL2ID stack.L2CLNodeID) stack.Option[*Orchestrator]
WithL2CLP2PConnection connects P2P between two L2CLs
func WithL2ELNode ¶ added in v1.13.3
func WithL2ELNode(id stack.L2ELNodeID, supervisorID *stack.SupervisorID) stack.Option[*Orchestrator]
func WithManagedBySupervisor ¶ added in v1.13.3
func WithManagedBySupervisor(l2CLID stack.L2CLNodeID, supervisorID stack.SupervisorID) stack.Option[*Orchestrator]
func WithMnemonicKeys ¶ added in v1.13.3
func WithMnemonicKeys(mnemonic string) stack.Option[*Orchestrator]
func WithProposer ¶ added in v1.13.3
func WithProposer(proposerID stack.L2ProposerID, l1ELID stack.L1ELNodeID, l2CLID *stack.L2CLNodeID, supervisorID *stack.SupervisorID) stack.Option[*Orchestrator]
func WithSequencer ¶ added in v1.13.3
func WithSequencer(sequencerID stack.SequencerID, l2CLID stack.L2CLNodeID, l1ELID stack.L1ELNodeID, l2ELID stack.L2ELNodeID) stack.Option[*Orchestrator]
func WithSupervisor ¶ added in v1.13.3
func WithSupervisor(supervisorID stack.SupervisorID, clusterID stack.ClusterID, l1ELID stack.L1ELNodeID) stack.Option[*Orchestrator]
Types ¶
type ContractPaths ¶
type ControlPlane ¶ added in v1.13.3
type ControlPlane struct {
// contains filtered or unexported fields
}
func (*ControlPlane) L2CLNodeState ¶ added in v1.13.3
func (c *ControlPlane) L2CLNodeState(id stack.L2CLNodeID, mode stack.ControlAction)
func (*ControlPlane) SupervisorState ¶ added in v1.13.3
func (c *ControlPlane) SupervisorState(id stack.SupervisorID, mode stack.ControlAction)
type DefaultInteropSystemIDs ¶ added in v1.13.3
type DefaultInteropSystemIDs struct {
L1 stack.L1NetworkID
L1EL stack.L1ELNodeID
L1CL stack.L1CLNodeID
Superchain stack.SuperchainID
Cluster stack.ClusterID
Supervisor stack.SupervisorID
Sequencer stack.SequencerID
L2A stack.L2NetworkID
L2ACL stack.L2CLNodeID
L2AEL stack.L2ELNodeID
L2B stack.L2NetworkID
L2BCL stack.L2CLNodeID
L2BEL stack.L2ELNodeID
L2ABatcher stack.L2BatcherID
L2BBatcher stack.L2BatcherID
L2AProposer stack.L2ProposerID
L2BProposer stack.L2ProposerID
}
struct of the services, so we can access them later and do not have to guess their IDs.
func NewDefaultInteropSystemIDs ¶ added in v1.13.3
func NewDefaultInteropSystemIDs(l1ID, l2AID, l2BID eth.ChainID) DefaultInteropSystemIDs
type DeployerOption ¶
func WithCommons ¶
func WithCommons(l1ChainID eth.ChainID) DeployerOption
func WithInteropAtGenesis ¶
func WithInteropAtGenesis() DeployerOption
WithInteropAtGenesis activates interop at genesis for all known L2s
func WithLocalContractSources ¶
func WithLocalContractSources() DeployerOption
func WithPrefundedL2 ¶
func WithPrefundedL2(chainID eth.ChainID) DeployerOption
type FaucetService ¶ added in v1.13.3
type FaucetService struct {
// contains filtered or unexported fields
}
type L2Deployment ¶
type L2Deployment struct {
// contains filtered or unexported fields
}
func (*L2Deployment) DisputeGameFactoryProxyAddr ¶
func (d *L2Deployment) DisputeGameFactoryProxyAddr() common.Address
func (*L2Deployment) SystemConfigProxyAddr ¶
func (d *L2Deployment) SystemConfigProxyAddr() common.Address
type L2Proposer ¶
type L2Proposer struct {
// contains filtered or unexported fields
}
type Orchestrator ¶ added in v1.13.3
type Orchestrator struct {
// contains filtered or unexported fields
}
func NewOrchestrator ¶ added in v1.13.3
func NewOrchestrator(p devtest.P, hook stack.SystemHook) *Orchestrator
func (*Orchestrator) ControlPlane ¶ added in v1.13.3
func (o *Orchestrator) ControlPlane() stack.ControlPlane
func (*Orchestrator) Hydrate ¶ added in v1.13.3
func (o *Orchestrator) Hydrate(sys stack.ExtensibleSystem)
func (*Orchestrator) P ¶ added in v1.13.3
func (o *Orchestrator) P() devtest.P
type RedundantInteropSystemIDs ¶ added in v1.13.3
type RedundantInteropSystemIDs struct {
DefaultInteropSystemIDs
L2A2CL stack.L2CLNodeID
L2A2EL stack.L2ELNodeID
}
type Sequencer ¶ added in v1.13.3
type Sequencer struct {
// contains filtered or unexported fields
}
type Superchain ¶ added in v1.13.3
type Superchain struct {
// contains filtered or unexported fields
}
type SuperchainDeployment ¶
type SuperchainDeployment struct {
// contains filtered or unexported fields
}
func (*SuperchainDeployment) ProtocolVersionsAddr ¶
func (d *SuperchainDeployment) ProtocolVersionsAddr() common.Address
func (*SuperchainDeployment) SuperchainConfigAddr ¶
func (d *SuperchainDeployment) SuperchainConfigAddr() common.Address
type Supervisor ¶
type Supervisor struct {
// contains filtered or unexported fields
}
func (*Supervisor) Start ¶ added in v1.13.3
func (s *Supervisor) Start()
func (*Supervisor) Stop ¶ added in v1.13.3
func (s *Supervisor) Stop()
Click to show internal directories.
Click to hide internal directories.