driver

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrClaimNotValid = errors.New("invalid claim")

Functions

This section is empty.

Types

type Derivation

type Derivation interface {
	Step(ctx context.Context) error
}

type Driver

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

func NewDriver

func NewDriver(logger log.Logger, cfg *rollup.Config, l1Source derive.L1Fetcher, l1BlobsSource derive.L1BlobsFetcher, l2Source L2Source, targetBlockNum uint64) *Driver

func (*Driver) SafeHead

func (d *Driver) SafeHead() eth.L2BlockRef

func (*Driver) Step

func (d *Driver) Step(ctx context.Context) error

Step runs the next step of the derivation pipeline. Returns nil if there are further steps to be performed Returns io.EOF if the derivation completed successfully Returns a non-EOF error if the derivation failed

func (*Driver) ValidateClaim

func (d *Driver) ValidateClaim(l2ClaimBlockNum uint64, claimedOutputRoot eth.Bytes32) error

type EngineState added in v1.5.0

type EngineState interface {
	SafeL2Head() eth.L2BlockRef
}

type L2Source

type L2Source interface {
	derive.Engine
	L2OutputRoot(uint64) (eth.Bytes32, error)
}

Jump to

Keyboard shortcuts

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