l2

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: MIT, MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEngine added in v1.0.5

func NewEngine(logger log.Logger, pre preimage.Oracle, hint preimage.Hinter, cfg *config.Config) (*cll2.OracleEngine, error)

func NewFetchingOracle added in v1.0.5

func NewFetchingOracle(ctx context.Context, logger log.Logger, cfg *config.Config) (cll2.Oracle, error)

Types

type BlockSource

type BlockSource interface {
	BlockByHash(ctx context.Context, blockHash common.Hash) (*types.Block, error)
}

type CallContext

type CallContext interface {
	CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error
}

type FetchingL2Oracle

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

func NewFetchingL2Oracle

func NewFetchingL2Oracle(ctx context.Context, logger log.Logger, l2Url string, l2Head common.Hash) (*FetchingL2Oracle, error)

func (*FetchingL2Oracle) BlockByHash

func (o *FetchingL2Oracle) BlockByHash(blockHash common.Hash) *types.Block

func (*FetchingL2Oracle) CodeByHash

func (o *FetchingL2Oracle) CodeByHash(hash common.Hash) []byte

func (*FetchingL2Oracle) NodeByHash

func (o *FetchingL2Oracle) NodeByHash(hash common.Hash) []byte

Jump to

Keyboard shortcuts

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