Available on crate feature
optimism
only.Expand description
Standalone crate for Optimism-specific Reth configuration and builder types.
Re-exports§
pub use engine::OpEngineTypes;
pub use node::OptimismNode;
Modules§
- CLI argument parsing for the optimism node. Additional Node command arguments. clap Args for optimism rollup configuration
- Exports optimism-specific implementations of the
EngineTypes
trait. - Optimism-specific implementation and utilities for the executor
- Optimism Node types config.
- OP transaction pool types
Structs§
- Contains the built payload.
- Optimism-related EVM configuration.
- Block execution strategy for Optimism.
- Factory for
OpExecutionStrategy
. - Helper type with backwards compatible methods to obtain executor providers.
- Optimism’s payload builder
- Optimism Payload Builder Attributes
Enums§
- Optimism Block Executor Errors
Traits§
- An extension trait for [
L1BlockInfo
] that allows us to calculate the L1 cost of a transaction based off of the [ChainSpec
]’s activated hardfork.
Functions§
- The Canyon hardfork issues an irregular state transition that force-deploys the create2 deployer contract. This is done by directly setting the code of the create2 deployer account prior to executing any transactions on the timestamp activation of the fork.
- Extracts the [
L1BlockInfo
] from the L2 block. The L1 info transaction is always the first transaction in the L2 block. - Parses the input of the first transaction in the L2 block, into [
L1BlockInfo
]. - Parses the calldata of the [
L1BlockInfo
] transaction pre-Ecotone hardfork. - 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:
- Map the latest active hardfork at the given block to a revm
SpecId
. - Returns the revm
SpecId
at the given timestamp.