Skip to main content

Crate foundry_evm_networks

Crate foundry_evm_networks 

Source
Expand description

Β§foundry-evm-networks

Runtime selection and shared configuration for Foundry’s EVM network families.

NetworkConfigs describes the active execution profile selected by configuration, CLI flags, hardforks, or fork endpoint discovery. Cargo features only determine which optional NetworkVariant values are compiled into a binary; they do not select a network at runtime.

Concrete Alloy network and EVM factory types are associated by FoundryEvmNetwork in foundry-evm-core. See the custom EVM integration guide for the cross-crate ownership and state-lifecycle contract.

ModulesΒ§

arbitrum
Minimal Arbitrum system contract compatibility helpers.
celo
Celo-specific execution support.
optimism πŸ”’
Optimism-specific extensions for NetworkConfigs and related helpers.

StructsΒ§

NetworkConfigs
NetworkContractSizeLimits
Runtime and initcode byte-size limits for a configured network.

EnumsΒ§

NetworkVariant

ConstantsΒ§

BASE_CODE_SENTINEL_ADDRESSES
Fixed Base precompiles that expose at least one function returning no data.
BASE_PRECOMPILES πŸ”’
BASE_PRECOMPILE_ADDRESSES
All fixed Base precompile addresses.
BSC_MAINNET_CHAIN_ID πŸ”’
BSC_MAINNET_HABER_TIMESTAMP πŸ”’
BSC_MAINNET_OSAKA_TIMESTAMP πŸ”’
BSC_P256_ADDRESS πŸ”’
BSC secp256r1 precompile address introduced by the Haber hardfork.
BSC_TESTNET_CHAIN_ID πŸ”’
BSC_TESTNET_HABER_TIMESTAMP πŸ”’
BSC_TESTNET_OSAKA_TIMESTAMP πŸ”’
MONAD_CHEATCODE_ADDRESS
The Monad cheatcode handler address.
MONAD_PRECOMPILES πŸ”’
MONAD_PRECOMPILE_LABELS πŸ”’
TEMPO_PRECOMPILES πŸ”’
TEMPO_PRECOMPILE_ADDRESSES
All well-known Tempo precompile addresses.

FunctionsΒ§

active_base_precompiles
Returns the fixed Base precompiles active at upgrade.
active_tempo_precompile_addresses
Returns the well-known Tempo precompile addresses active at hardfork.
apply_bsc_p256_precompile
Applies the BSC P256 precompile active at the given timestamp.
bsc_p256_precompile πŸ”’
Returns the BSC P256 precompile for the given timestamp. The outer option distinguishes BSC chains from unrelated chains, while the inner option disables P256 before Haber.
is_base_precompile_active_at
Returns whether a fixed Base precompile is active at upgrade.
is_monad_precompile_active_at
Returns whether a well-known Monad precompile address is active at hardfork.
is_tempo_precompile_active_at
Returns whether a well-known Tempo precompile address is active at hardfork.
resolved_precompile_labels
Returns custom precompile labels for an already resolved execution hardfork. This metadata lookup does not discover or select an execution network.

Type AliasesΒ§

MonadHardfork πŸ”’