boot

package
v1.14.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: MIT, MIT Imports: 12 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
	DependencySetLocalIndex
	L1ChainConfigLocalIndex
)

Variables

View Source
var (
	ErrUnknownChainID        = errors.New("unknown chain id")
	ErrL1ChainConfigMismatch = errors.New("l1 chain config chain ID mismatch")
)
View Source
var CustomChainIDIndicator = eth.ChainIDFromUInt64(uint64(math.MaxUint64))

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

Functions

This section is empty.

Types

type BootInfo

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

	L2ChainConfig *params.ChainConfig
	RollupConfig  *rollup.Config
	L1ChainConfig *params.ChainConfig
}

type BootInfoInterop

type BootInfoInterop struct {
	Configs ConfigSource

	L1Head         common.Hash
	AgreedPrestate common.Hash
	Claim          common.Hash
	GameTimestamp  uint64
}

func BootstrapInterop

func BootstrapInterop(r oracleClient) *BootInfoInterop

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

type ConfigSource

type ConfigSource interface {
	RollupConfig(chainID eth.ChainID) (*rollup.Config, error)
	ChainConfig(chainID eth.ChainID) (*params.ChainConfig, error)
	L1ChainConfig(chainID eth.ChainID) (*params.ChainConfig, error)
	DependencySet(chainID eth.ChainID) (depset.DependencySet, error)
}

type OracleConfigSource

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

func (*OracleConfigSource) ChainConfig

func (c *OracleConfigSource) ChainConfig(chainID eth.ChainID) (*params.ChainConfig, error)

func (*OracleConfigSource) DependencySet added in v1.11.2

func (c *OracleConfigSource) DependencySet(chainID eth.ChainID) (depset.DependencySet, error)

func (*OracleConfigSource) L1ChainConfig added in v1.14.1

func (c *OracleConfigSource) L1ChainConfig(chainID eth.ChainID) (*params.ChainConfig, error)

func (*OracleConfigSource) RollupConfig

func (c *OracleConfigSource) RollupConfig(chainID eth.ChainID) (*rollup.Config, error)

Jump to

Keyboard shortcuts

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