Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InteropBackend ¶
type InteropBackend interface { UnsafeView(ctx context.Context, chainID types.ChainID, unsafe types.ReferenceView) (types.ReferenceView, error) SafeView(ctx context.Context, chainID types.ChainID, safe types.ReferenceView) (types.ReferenceView, error) Finalized(ctx context.Context, chainID types.ChainID) (eth.BlockID, error) CrossDerivedFrom(ctx context.Context, chainID types.ChainID, derived eth.BlockID) (eth.L1BlockRef, error) UpdateLocalUnsafe(ctx context.Context, chainID types.ChainID, head eth.BlockRef) error UpdateLocalSafe(ctx context.Context, chainID types.ChainID, derivedFrom eth.L1BlockRef, lastDerived eth.BlockRef) error UpdateFinalizedL1(ctx context.Context, chainID types.ChainID, finalized eth.L1BlockRef) error }
type InteropDeriver ¶
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 ¶
func NewInteropDeriver(log log.Logger, cfg *rollup.Config, driverCtx context.Context, backend InteropBackend, l2 L2Source) *InteropDeriver
func (*InteropDeriver) AttachEmitter ¶
func (d *InteropDeriver) AttachEmitter(em event.Emitter)
Click to show internal directories.
Click to hide internal directories.