Skip to main content

Module optimism

Module optimism 

Source
Available on crate features base or optimism only.
Expand description

OP-stack receipt construction for the Anvil block executor.

Re-exportsยง

use super::AnvilBlockExecutor; ๐Ÿ”’
use alloy_consensus::Eip658Value; ๐Ÿ”’
use alloy_consensus::Receipt; ๐Ÿ”’
use alloy_consensus::ReceiptWithBloom; ๐Ÿ”’
use alloy_primitives::Log; ๐Ÿ”’
use foundry_evm::hardfork::FoundryHardfork; ๐Ÿ”’
use foundry_primitives::FoundryReceiptEnvelope; ๐Ÿ”’
use op_alloy_consensus::OpDepositReceipt; ๐Ÿ”’
use op_alloy_consensus::OpDepositReceiptWithBloom; ๐Ÿ”’
use revm::context_interface::result::ExecutionResult; ๐Ÿ”’
use foundry_evm::hardforks::BaseUpgrade; ๐Ÿ”’ base
use alloy_consensus::Transaction; ๐Ÿ”’ optimism
use alloy_eips::Encodable2718; ๐Ÿ”’ optimism
use foundry_evm::hardfork::OpHardfork; ๐Ÿ”’ optimism
use foundry_primitives::FoundryTxEnvelope; ๐Ÿ”’ optimism
use op_revm::L1BlockInfo; ๐Ÿ”’ optimism
use op_revm::estimate_tx_compressed_size; ๐Ÿ”’ optimism
use revm::Database; ๐Ÿ”’ optimism

Functionsยง

blob_gas_used ๐Ÿ”’ optimism
Returns the blob gas accounted for by an OP transaction under the active hardfork.
build_deposit_receipt ๐Ÿ”’
build_mined_deposit_receipt ๐Ÿ”’
Builds a mined OP deposit receipt and derives its fork-specific metadata.
build_simulated_deposit_receipt ๐Ÿ”’
Builds an RPC-simulated OP deposit receipt and derives its fork-specific metadata.
deposit_metadata ๐Ÿ”’
Resolves the deposit nonce and receipt version active at hardfork.
wrap_deposit_receipt ๐Ÿ”’