Skip to main content Module utils Copy item path Source use crate::evm::EvmEnv ; π use crate::hardfork::FoundryHardfork ; π use alloy_chains::Chain; π use alloy_consensus::private::alloy_eips::eip7840::BlobParams; π use alloy_eips::eip2930::AccessList; π use alloy_hardforks::EthereumHardfork ; π use alloy_json_abi::Function; π use alloy_json_abi::JsonAbi; π use alloy_primitives::Address; π use alloy_primitives::ChainId; π use alloy_primitives::Selector; π use alloy_primitives::U256; π use alloy_provider::Network; π use alloy_provider::network::BlockResponse; π use evm2::EvmFeatures; π use evm2::OpcodeSet; π use evm2::SpecId; π use evm2::env::BlockEnv; π use foundry_config::NamedChain; π use foundry_config::NamedChain::Avalanche; π use foundry_config::NamedChain::AvalancheFuji; π use foundry_config::NamedChain::BinanceSmartChain; π use foundry_config::NamedChain::BinanceSmartChainTestnet; π use foundry_config::NamedChain::Polygon; π use foundry_config::NamedChain::PolygonAmoy; π use foundry_evm_networks::NetworkConfigs ; π use foundry_evm_networks::arbitrum ; π apply_chain_and_block_specific_env_changes_for_chain Applies block normalization for the provided source chain. apply_chain_specific_tx_replay_env_changes_for_chain Applies replay normalization for the provided source chain. block_env_from_header Constructs a block environment from a block header. cold_path Hints to the compiler that this is a cold path, i.e. unlikely to be taken. get_blob_base_fee_update_fraction Derive the blob base fee update fraction based on the chain and timestamp by checking the
hardfork. get_blob_base_fee_update_fraction_by_spec_id Returns the blob base fee update fraction based on the spec id. get_blob_params Derives the active [BlobParams] based on the given timestamp. get_blob_params_by_hardfork Returns the blob parameters selected by an explicit Foundry hardfork. get_blob_params_by_spec_id Returns the blob params based on the spec id. get_function Given an ABI and selector, it tries to find the respective function. opcodes Returns the set of ops. tx_warm_addresses Returns the addresses a transaction in env with access_list warms when it starts and that
vm.cool keeps warm: the EIP-3651 coinbase, Arbitrumβs ArbSys on Arbitrum chains, and the
access list.