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ยง
- EthEvm
Factory - Ethereum evm2 factory over evm2โs stock type family.
- EthEvm
Network - Ethereum EVM network.
- EthPrecompiles ๐
- Ethereum precompiles with network additions: Celoโs transfer precompile and BSCโs
P256VERIFYrules.
Constantsยง
- BSC_
MAINNET_ ๐CHAIN_ ID - BSC_
MAINNET_ ๐HABER_ TIMESTAMP - BSC_
MAINNET_ ๐OSAKA_ TIMESTAMP - BSC_
P256_ ๐ADDRESS - Address of BSCโs
P256VERIFYprecompile. - 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
P256VERIFYonchain_idattimestamp. 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.