Module node

Module node 

Source
Expand description

Re-exported from reth_optimism_node.

Modules§

args
CLI argument parsing for the optimism node. Additional Node command arguments. clap Args for optimism rollup configuration
engine
Exports optimism-specific implementations of the EngineTypes trait.
l1
Optimism-specific implementation and utilities for the executor
node
Optimism Node types config.
payload
Optimism’s payload builder implementation.
rpc
RPC component builder
txpool
OP-Reth Transaction pool.
utils
Helpers for running test node instances.
version
Version information for op-reth.

Structs§

OpAddOns
Add-ons w.r.t. optimism.
OpAddOnsBuilder
A regular optimism evm and executor builder.
OpBlockAssembler
Block builder for Optimism.
OpBlockExecutionCtx
Context for OP block execution.
OpBlockExecutorFactory
Ethereum block executor factory.
OpBuiltPayload
Contains the built payload.
OpConsensusBuilder
A basic optimism consensus builder.
OpDAConfig
Contains the Data Availability configuration for the OP builder.
OpEngineApiBuilder
Builder for basic OpEngineApi implementation.
OpEngineTypes
The types used in the optimism beacon consensus engine.
OpEngineValidatorBuilder
Builder for OpEngineValidator.
OpEvm
OP EVM implementation.
OpEvmConfig
Optimism-related EVM configuration.
OpEvmFactory
Factory producing OpEvms.
OpExecutorBuilder
A regular optimism evm and executor builder.
OpNetworkBuilder
A basic optimism network builder.
OpNextBlockEnvAttributes
Context relevant for execution of a next block w.r.t OP.
OpNode
Type configuration for a regular Optimism node.
OpPayloadAttributes
Optimism Payload Attributes
OpPayloadBuilder
Optimism’s payload builder
OpPayloadBuilderAttributes
Optimism Payload Builder Attributes
OpPayloadTypes
ZST that aggregates Optimism [PayloadTypes].
OpPoolBuilder
A basic optimism transaction pool.
OpRethReceiptBuilder
A builder that operates on op-reth primitive types, specifically OpTransactionSigned and OpReceipt.
OpStorage
Optimism storage implementation.

Enums§

OpBlockExecutionError
Optimism Block Executor Errors

Constants§

OP_NAME_CLIENT
The human readable name of the client

Traits§

OpFullNodeTypes
Helper trait for Optimism node types with full configuration including storage and execution data.
OpNodeTypes
Marker trait for Optimism node types with standard engine, chain spec, and primitives.
OpPayloadPrimitives
Helper trait to encapsulate common bounds on [NodePrimitives] for OP payload builder.
RethL1BlockInfo
An extension trait for [L1BlockInfo] that allows us to calculate the L1 cost of a transaction based off of the chain spec’s activated hardfork.

Functions§

extract_l1_info
Extracts the [L1BlockInfo] from the L2 block. The L1 info transaction is always the first transaction in the L2 block.
extract_l1_info_from_tx
Extracts the [L1BlockInfo] from the L1 info transaction (first transaction) in the L2 block.
parse_l1_info
Parses the input of the first transaction in the L2 block, into [L1BlockInfo].
parse_l1_info_tx_bedrock
Parses the calldata of the [L1BlockInfo] transaction pre-Ecotone hardfork.
parse_l1_info_tx_ecotone
Updates the L1 block values for an Ecotone upgraded chain. Params are packed and passed in as raw msg.data instead of ABI to reduce calldata size. Params are expected to be in the following order:
parse_l1_info_tx_isthmus
Updates the L1 block values for an Isthmus upgraded chain. Params are packed and passed in as raw msg.data instead of ABI to reduce calldata size. Params are expected to be in the following order:
revm_spec
Map the latest active hardfork at the given header to a revm [OpSpecId].
revm_spec_by_timestamp_after_bedrock
Returns the revm [OpSpecId] at the given timestamp.

Type Aliases§

OpExecutorProvider
Helper type with backwards compatible methods to obtain executor providers.
OpNetworkPrimitives
Network primitive types used by Optimism networks.
OpNodeComponentBuilder
A ComponentsBuilder with its generic arguments set to a stack of Optimism specific builders.