driver

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2025 License: MIT, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 engine.Engine, targetBlockNum uint64) *Driver

func (*Driver) Emit added in v1.8.0

func (d *Driver) Emit(ev event.Event)

func (*Driver) RunComplete added in v1.8.0

func (d *Driver) RunComplete() (eth.L2BlockRef, error)

type EndCondition added in v1.8.0

type EndCondition interface {
	Closing() bool
	Result() (eth.L2BlockRef, error)
}

type ProgramDeriver added in v1.8.0

type ProgramDeriver struct {
	Emitter event.Emitter
	// contains filtered or unexported fields
}

ProgramDeriver expresses how engine and derivation events are translated and monitored to execute the pure L1 to L2 state transition.

The ProgramDeriver stops at the target block number or with an error result.

func (*ProgramDeriver) Closing added in v1.8.0

func (d *ProgramDeriver) Closing() bool

func (*ProgramDeriver) OnEvent added in v1.8.0

func (d *ProgramDeriver) OnEvent(ev event.Event) bool

func (*ProgramDeriver) Result added in v1.8.0

func (d *ProgramDeriver) Result() (eth.L2BlockRef, error)

Jump to

Keyboard shortcuts

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