client

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT, MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	L1HeadLocalIndex preimage.LocalIndexKey = iota + 1
	L2HeadLocalIndex
	L2ClaimLocalIndex
	L2ClaimBlockNumberLocalIndex
	L2ChainConfigLocalIndex
	RollupConfigLocalIndex
)
View Source
const (
	// 0,1,2 used for stdin,stdout,stderr
	HClientRFd = iota + 3
	HClientWFd
	PClientRFd
	PClientWFd
	MaxFd
)

Variables

This section is empty.

Functions

func CreateHinterChannel added in v1.0.6

func CreateHinterChannel() oppio.FileChannel

func CreatePreimageChannel added in v1.0.6

func CreatePreimageChannel() oppio.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
	L2Head             common.Hash
	L2Claim            common.Hash
	L2ClaimBlockNumber 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