driver

package
v1.7.7 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: MIT, MIT Imports: 13 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)
}

type NoopFinalizer added in v1.7.7

type NoopFinalizer struct{}

func (NoopFinalizer) OnDerivationL1End added in v1.7.7

func (n NoopFinalizer) OnDerivationL1End(ctx context.Context, derivedFrom eth.L1BlockRef) error

func (NoopFinalizer) PostProcessSafeL2 added in v1.7.7

func (n NoopFinalizer) PostProcessSafeL2(l2Safe eth.L2BlockRef, derivedFrom eth.L1BlockRef)

func (NoopFinalizer) Reset added in v1.7.7

func (n NoopFinalizer) Reset()

Jump to

Keyboard shortcuts

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