Skip to main content

Module eth

Module eth 

Source
Expand description

Ethereum on evm2.

Re-exportsยง

use super::EvmEnv; ๐Ÿ”’
use super::FoundryEvmFactory; ๐Ÿ”’
use super::FoundryEvmNetwork; ๐Ÿ”’
use super::FoundryExecutionHooks; ๐Ÿ”’
use super::FoundryTxConversion; ๐Ÿ”’
use super::TxPayload; ๐Ÿ”’
use super::eth_envelope_from_any_rpc; ๐Ÿ”’
use super::eth_tx; ๐Ÿ”’
use super::eth_tx_from_request; ๐Ÿ”’
use super::with_eip7702_delegations; ๐Ÿ”’
use crate::edgecov; ๐Ÿ”’
use alloy_consensus::transaction::Recovered; ๐Ÿ”’
use alloy_network::AnyRpcTransaction; ๐Ÿ”’
use alloy_network::Ethereum; ๐Ÿ”’
use alloy_primitives::Address; ๐Ÿ”’
use alloy_primitives::Bytes; ๐Ÿ”’
use alloy_primitives::U256; ๐Ÿ”’
use alloy_primitives::address; ๐Ÿ”’
use alloy_rpc_types::TransactionRequest; ๐Ÿ”’
use evm2::BaseEvmTypes; ๐Ÿ”’
use evm2::Evm; ๐Ÿ”’
use evm2::EvmTypes; ๐Ÿ”’
use evm2::ExecutionConfig; ๐Ÿ”’
use evm2::PrecompileError; ๐Ÿ”’
use evm2::Precompiles; ๐Ÿ”’
use evm2::SpecId; ๐Ÿ”’
use evm2::TxResult; ๐Ÿ”’
use evm2::Version; ๐Ÿ”’
use evm2::ethereum::TxEnvelope; ๐Ÿ”’
use evm2::evm::precompile::PrecompileOutput; ๐Ÿ”’
use evm2::evm::precompile::PrecompileProvider; ๐Ÿ”’
use evm2::interpreter::GasTracker; ๐Ÿ”’
use evm2::interpreter::Message; ๐Ÿ”’
use evm2::precompiles::MovePrecompileError; ๐Ÿ”’
use evm2::precompiles::PrecompileHalt; ๐Ÿ”’
use evm2::precompiles::PrecompileId; ๐Ÿ”’
use evm2::precompiles::PrecompileResult; ๐Ÿ”’
use evm2::registry::TxRegistry; ๐Ÿ”’
use foundry_evm_networks::NetworkConfigs; ๐Ÿ”’
use foundry_evm_networks::celo::transfer::CELO_TRANSFER_ADDRESS; ๐Ÿ”’
use foundry_evm_networks::celo::transfer::CELO_TRANSFER_PRECOMPILE_NAME; ๐Ÿ”’

Structsยง

EthEvmFactory
Ethereum evm2 factory over evm2โ€™s stock type family.
EthEvmNetwork
Ethereum EVM network.
EthPrecompiles ๐Ÿ”’
Ethereum precompiles with network additions: Celoโ€™s transfer precompile and BSCโ€™s P256VERIFY rules.

Constantsยง

BSC_MAINNET_CHAIN_ID ๐Ÿ”’
BSC_MAINNET_HABER_TIMESTAMP ๐Ÿ”’
BSC_MAINNET_OSAKA_TIMESTAMP ๐Ÿ”’
BSC_P256_ADDRESS ๐Ÿ”’
Address of BSCโ€™s P256VERIFY precompile.
BSC_TESTNET_CHAIN_ID ๐Ÿ”’
BSC_TESTNET_HABER_TIMESTAMP ๐Ÿ”’
BSC_TESTNET_OSAKA_TIMESTAMP ๐Ÿ”’
CELO_TRANSFER_GAS_COST ๐Ÿ”’
Gas Celoโ€™s transfer precompile charges.

Functionsยง

bsc_p256
Returns BSCโ€™s P256VERIFY on chain_id at timestamp. The outer option distinguishes BSC chains from unrelated chains, while the inner option disables P256 before Haber and otherwise tells whether it uses the Osaka gas schedule.
celo_transfer
Runs Celoโ€™s native token transfer precompile.