driver

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT, MIT Imports: 9 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
	SafeL2Head() eth.L2BlockRef
}

type Driver

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

func NewDriver

func NewDriver(logger log.Logger, cfg *rollup.Config, l1Source derive.L1Fetcher, 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(claimedOutputRoot eth.Bytes32) error

type L2Source

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

Jump to

Keyboard shortcuts

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