system

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

type Chain interface {
	RPCURL() string
	ID() types.ChainID
	Wallet(ctx context.Context, constraints ...constraints.WalletConstraint) (types.Wallet, error)
	ContractsRegistry() interfaces.ContractsRegistry
}

Chain represents an Ethereum chain (L1 or L2)

type InteropSet

type InteropSet interface {
	L2(uint64) Chain
}

InteropSet provides access to L2 chains in an interop environment

type InteropSystem

type InteropSystem interface {
	System
	InteropSet() InteropSet
}

InteropSystem extends System with interoperability features

type System

type System interface {
	Identifier() string
	L1() Chain
	// TODO: fix the chain ID type
	L2(uint64) Chain
}

System represents a complete Optimism system with L1 and L2 chains

func NewSystemFromEnv

func NewSystemFromEnv(envVar string) (System, error)

Jump to

Keyboard shortcuts

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