Module node

Module node 

Source
Available on crate feature node-api only.
Expand description

Re-exported optimism node

Re-exports§

pub use reth_node_builder as builder;node

Modules§

api
Standalone crate for Reth configuration traits and builder types.
argsnode
CLI argument parsing for the optimism node. Additional Node command arguments. clap Args for optimism rollup configuration
core
The core of the Ethereum node. Collection of utilities and libraries that are used by the node.
enginenode
Exports optimism-specific implementations of the EngineTypes trait.
l1node
Optimism-specific implementation and utilities for the executor
nodenode
Optimism Node types config.
payloadnode
Optimism’s payload builder implementation.
rpcnode
RPC component builder
txpoolnode
OP-Reth Transaction pool.
utilsnode
Helpers for running test node instances.
versionnode
Version information for op-reth.

Structs§

OpAddOnsnode
Add-ons w.r.t. optimism.
OpAddOnsBuildernode
A regular optimism evm and executor builder.
OpBlockAssemblernode
Block builder for Optimism.
OpBlockExecutionCtxnode
Context for OP block execution.
OpBlockExecutorFactorynode
Ethereum block executor factory.
OpBuiltPayloadnode
Contains the built payload.
OpConsensusBuildernode
A basic optimism consensus builder.
OpDAConfignode
Contains the Data Availability configuration for the OP builder.
OpEngineApiBuildernode
Builder for basic OpEngineApi implementation.
OpEngineTypesnode
The types used in the optimism beacon consensus engine.
OpEngineValidatorBuildernode
Builder for OpEngineValidator.
OpEvmnode
OP EVM implementation.
OpEvmConfignode
Optimism-related EVM configuration.
OpEvmFactorynode
Factory producing OpEvms.
OpExecutorBuildernode
A regular optimism evm and executor builder.
OpNetworkBuildernode
A basic optimism network builder.
OpNextBlockEnvAttributesnode
Context relevant for execution of a next block w.r.t OP.
OpNodenode
Type configuration for a regular Optimism node.
OpPayloadAttributesnode
Optimism Payload Attributes
OpPayloadBuildernode
Optimism’s payload builder
OpPayloadBuilderAttributesnode
Optimism Payload Builder Attributes
OpPayloadTypesnode
ZST that aggregates Optimism PayloadTypes.
OpPoolBuildernode
A basic optimism transaction pool.
OpRethReceiptBuildernode
A builder that operates on op-reth primitive types, specifically OpTransactionSigned and OpReceipt.
OpStoragenode
Optimism storage implementation.

Enums§

OpBlockExecutionErrornode
Optimism Block Executor Errors

Constants§

OP_NAME_CLIENTnode
The human readable name of the client

Traits§

OpFullNodeTypesnode
Helper trait for Optimism node types with full configuration including storage and execution data.
OpNodeTypesnode
Marker trait for Optimism node types with standard engine, chain spec, and primitives.
OpPayloadPrimitivesnode
Helper trait to encapsulate common bounds on NodePrimitives for OP payload builder.
RethL1BlockInfonode
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_infonode
Extracts the L1BlockInfo from the L2 block. The L1 info transaction is always the first transaction in the L2 block.
extract_l1_info_from_txnode
Extracts the L1BlockInfo from the L1 info transaction (first transaction) in the L2 block.
parse_l1_infonode
Parses the input of the first transaction in the L2 block, into L1BlockInfo.
parse_l1_info_tx_bedrocknode
Parses the calldata of the L1BlockInfo transaction pre-Ecotone hardfork.
parse_l1_info_tx_ecotonenode
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_isthmusnode
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_specnode
Map the latest active hardfork at the given header to a revm OpSpecId.
revm_spec_by_timestamp_after_bedrocknode
Returns the revm OpSpecId at the given timestamp.

Type Aliases§

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