Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type EngineController ¶
type EngineController interface {
// SafeBlockAtTimestamp returns the L2 block ref for the block at or before the given timestamp,
// clamped to the current SAFE head.
SafeBlockAtTimestamp(ctx context.Context, ts uint64) (eth.L2BlockRef, error)
// OutputV0AtBlockNumber returns the output preimage for the given L2 block number.
OutputV0AtBlockNumber(ctx context.Context, num uint64) (*eth.OutputV0, error)
// Close releases any underlying RPC resources.
Close() error
}
EngineController abstracts access to the L2 execution layer
func NewEngineControllerFromConfig ¶ added in v1.16.3
func NewEngineControllerFromConfig(ctx context.Context, log gethlog.Logger, vncfg *opnodecfg.Config) (EngineController, error)
NewEngineControllerFromConfig builds an engine client from the op-node L2 endpoint config. This creates a separate connection (not passed as an override to op-node).
func NewEngineControllerWithL2 ¶ added in v1.16.3
func NewEngineControllerWithL2(l2 l2Provider) EngineController
NewEngineControllerWithL2 wraps an existing L2 provider.
Click to show internal directories.
Click to hide internal directories.