client

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: MIT, MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	L1HeadLocalIndex preimage.LocalIndexKey = iota + 1
	L2OutputRootLocalIndex
	L2ClaimLocalIndex
	L2ClaimBlockNumberLocalIndex
	L2ChainIDLocalIndex

	// These local keys are only used for custom chains
	L2ChainConfigLocalIndex
	RollupConfigLocalIndex
)
View Source
const (
	// 0,1,2 used for stdin,stdout,stderr
	HClientRFd = iota + 3
	HClientWFd
	PClientRFd
	PClientWFd
	MaxFd
)
View Source
const CustomChainIDIndicator = uint64(math.MaxUint64)

CustomChainIDIndicator is used to detect when the program should load custom chain configuration

Variables

This section is empty.

Functions

func CreateHinterChannel added in v1.0.6

func CreateHinterChannel() preimage.FileChannel

func CreatePreimageChannel added in v1.0.6

func CreatePreimageChannel() preimage.FileChannel

CreatePreimageChannel returns a FileChannel for the preimage oracle in a detached context

func Main added in v1.0.6

func Main(logger log.Logger)

Main executes the client program in a detached context and exits the current process. The client runtime environment must be preset before calling this function.

func RunProgram added in v1.0.6

func RunProgram(logger log.Logger, preimageOracle io.ReadWriter, preimageHinter io.ReadWriter) error

RunProgram executes the Program, while attached to an IO based pre-image oracle, to be served by a host.

Types

type BootInfo added in v1.0.6

type BootInfo struct {
	L1Head             common.Hash
	L2OutputRoot       common.Hash
	L2Claim            common.Hash
	L2ClaimBlockNumber uint64
	L2ChainID          uint64

	L2ChainConfig *params.ChainConfig
	RollupConfig  *rollup.Config
}

type BootstrapClient added in v1.0.6

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

func NewBootstrapClient added in v1.0.6

func NewBootstrapClient(r oracleClient) *BootstrapClient

func (*BootstrapClient) BootInfo added in v1.0.6

func (br *BootstrapClient) BootInfo() *BootInfo

Directories

Path Synopsis
l1
l2

Jump to

Keyboard shortcuts

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