op_reth

Module evm

Source
Available on crate feature optimism only.
Expand description

Re-exported from reth_optimism_evm.

Modules§

  • Optimism-specific implementation and utilities for the executor

Structs§

Enums§

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.
  • Extracts the [L1BlockInfo] from the the L1 info transaction (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.