interop

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT, MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InteropBackend added in v1.9.3

type InteropBackend interface {
	CheckBlock(ctx context.Context,
		chainID types.ChainID, blockHash common.Hash, blockNumber uint64) (types.SafetyLevel, error)
}

type InteropDeriver added in v1.9.3

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

InteropDeriver watches for update events (either real changes to block safety, or updates published upon request), checks if there is some local data to cross-verify, and then checks with the interop-backend, to try to promote to cross-verified safety.

func NewInteropDeriver added in v1.9.3

func NewInteropDeriver(log log.Logger, cfg *rollup.Config,
	driverCtx context.Context, backend InteropBackend, l2 L2Source) *InteropDeriver

func (*InteropDeriver) AttachEmitter added in v1.9.3

func (d *InteropDeriver) AttachEmitter(em event.Emitter)

func (*InteropDeriver) OnEvent added in v1.9.3

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

type L2Source

type L2Source interface {
	L2BlockRefByNumber(context.Context, uint64) (eth.L2BlockRef, error)
}

Jump to

Keyboard shortcuts

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