sysgo

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2025 License: MIT Imports: 63 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultInteropSystem

func DefaultInteropSystem(dest *DefaultInteropSystemIDs) stack.Option

func WithBatcher

func WithBatcher(batcherID stack.L2BatcherID, l1ELID stack.L1ELNodeID, l2CLID stack.L2CLNodeID, l2ELID stack.L2ELNodeID) stack.Option

func WithDeployer added in v1.13.1

func WithDeployer(opts ...DeployerOption) stack.Option

func WithInteropGen

func WithInteropGen(l1ID stack.L1NetworkID, superchainID stack.SuperchainID,
	clusterID stack.ClusterID, l2IDs []stack.L2NetworkID, res ContractPaths) stack.Option

WithInteropGen is a system option that will create a L1 chain, superchain, cluster and L2 chains.

func WithL1Nodes

func WithL1Nodes(l1ELID stack.L1ELNodeID, l1CLID stack.L1CLNodeID) stack.Option

func WithL2CLNode

func WithL2CLNode(l2CLID stack.L2CLNodeID, isSequencer bool, l1CLID stack.L1CLNodeID, l1ELID stack.L1ELNodeID, l2ELID stack.L2ELNodeID) stack.Option

func WithL2ELNode

func WithL2ELNode(id stack.L2ELNodeID, supervisorID *stack.SupervisorID) stack.Option

func WithManagedBySupervisor

func WithManagedBySupervisor(l2CLID stack.L2CLNodeID, supervisorID stack.SupervisorID) stack.Option

func WithMnemonicKeys

func WithMnemonicKeys(mnemonic string) stack.Option

func WithProposer

func WithProposer(proposerID stack.L2ProposerID, l1ELID stack.L1ELNodeID,
	l2CLID *stack.L2CLNodeID, supervisorID *stack.SupervisorID) stack.Option

func WithSupervisor

func WithSupervisor(supervisorID stack.SupervisorID, clusterID stack.ClusterID, l1ELID stack.L1ELNodeID) stack.Option

Types

type Cluster added in v1.13.1

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

type ContractPaths

type ContractPaths struct {
	// must be absolute paths, without file:// prefix
	FoundryArtifacts string
	SourceMap        string
}

type ControlPlane added in v1.13.2

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

func (*ControlPlane) L2CLNodeState added in v1.13.2

func (c *ControlPlane) L2CLNodeState(id stack.L2CLNodeID, mode stack.ControlAction)

func (*ControlPlane) SupervisorState added in v1.13.2

func (c *ControlPlane) SupervisorState(id stack.SupervisorID, mode stack.ControlAction)

type DefaultInteropSystemIDs

type DefaultInteropSystemIDs struct {
	L1   stack.L1NetworkID
	L1EL stack.L1ELNodeID
	L1CL stack.L1CLNodeID

	Superchain stack.SuperchainID
	Cluster    stack.ClusterID

	Supervisor stack.SupervisorID

	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.

type DeployerOption added in v1.13.1

type DeployerOption func(p devtest.P, keys devkeys.Keys, builder intentbuilder.Builder)

func WithCommons added in v1.13.1

func WithCommons(l1ChainID eth.ChainID) DeployerOption

func WithLocalContractSources added in v1.13.1

func WithLocalContractSources() DeployerOption

func WithPrefundedL2 added in v1.13.1

func WithPrefundedL2(chainID eth.ChainID) DeployerOption

type L1CLNode

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

type L1ELNode

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

type L1Network

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

type L2Batcher

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

type L2CLNode

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

func (*L2CLNode) Start added in v1.13.2

func (n *L2CLNode) Start()

func (*L2CLNode) Stop added in v1.13.2

func (n *L2CLNode) Stop()

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 L2ELNode

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

type L2Network

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

type L2Proposer

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

type Orchestrator

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

func NewOrchestrator

func NewOrchestrator(p devtest.P) *Orchestrator

func (*Orchestrator) ControlPlane added in v1.13.2

func (o *Orchestrator) ControlPlane() stack.ControlPlane

func (*Orchestrator) Hydrate added in v1.13.1

func (o *Orchestrator) Hydrate(sys stack.ExtensibleSystem)

func (*Orchestrator) P added in v1.13.1

func (o *Orchestrator) P() devtest.P

type Superchain added in v1.13.1

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

func (s *Supervisor) Start()

func (*Supervisor) Stop added in v1.13.2

func (s *Supervisor) Stop()

Jump to

Keyboard shortcuts

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