driver

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT, MIT Imports: 11 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

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

func (*Driver) RunComplete

func (d *Driver) RunComplete() error

type EndCondition

type EndCondition interface {
	Closing() bool
	Result() error
}

type ProgramDeriver

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

func (d *ProgramDeriver) Closing() bool

func (*ProgramDeriver) OnEvent

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

func (*ProgramDeriver) Result

func (d *ProgramDeriver) Result() error

Jump to

Keyboard shortcuts

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