client

package
v0.0.0-...-eb934a0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 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

func CreateHinterChannel() oppio.FileChannel

func CreatePreimageChannel

func CreatePreimageChannel() oppio.FileChannel

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

func Main

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

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

type BootInfo struct {
	L1Head             common.Hash
	L2Head             common.Hash
	L2Claim            common.Hash
	L2ClaimBlockNumber uint64
	L2ChainConfig      *params.ChainConfig
	RollupConfig       *rollup.Config
}

type BootstrapClient

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

func NewBootstrapClient

func NewBootstrapClient(r oracleClient) *BootstrapClient

func (*BootstrapClient) BootInfo

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