netman

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeployInfo

type DeployInfo struct {
	PortalAddress common.Address
	DeployHeight  uint64
}

DeployInfo contains the deployed portal address and height.

type Manager

type Manager interface {
	// DeployPublicPortals deploys portals to public chains, like arb-goerli.
	DeployPublicPortals(ctx context.Context, valSetID uint64, validators []bindings.Validator) error

	// DeployInfo returns the deployed network information by chain ID.
	// Note that the private chains has to be deterministic, since this is called before deploying private portals.
	DeployInfo() map[uint64]DeployInfo

	// DeployPrivatePortals deploys portals to private (docker) chains.
	DeployPrivatePortals(ctx context.Context, valSetID uint64, validators []bindings.Validator) error

	// Portals returns the deployed portals from both public and private chains.
	Portals() map[uint64]Portal

	// Operator returns the address of the account that operates the network.
	Operator() common.Address
}

Manager abstract logic to deploy and bootstrap a network. TODO(corver): No need to split public vs private portal deploys anymore.

func NewManager

func NewManager(testnet types.Testnet, backends ethbackend.Backends) (Manager, error)

type Portal

type Portal struct {
	Chain      types.EVMChain
	DeployInfo DeployInfo
	Contract   *bindings.OmniPortal
}

Portal contains all deployed portal information and state.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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