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
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 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
Click to show internal directories.
Click to hide internal directories.