driver

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: MIT, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 *config.Config, l1Source derive.L1Fetcher, l2Source derive.Engine) *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

Jump to

Keyboard shortcuts

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