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
- optimism π
- Optimism-specific extensions for
NetworkConfigsand related helpers.
StructsΒ§
- Network
Configs - Network
Contract Size Limits - Runtime and initcode byte-size limits for a configured network.
EnumsΒ§
ConstantsΒ§
- 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_
CHEATCODE_ πADDRESSES - MONAD_
PRECOMPILES π - MONAD_
PRECOMPILE_ πLABELS - TEMPO_
PRECOMPILES π - TEMPO_
PRECOMPILE_ ADDRESSES - All well-known Tempo precompile addresses.
FunctionsΒ§
- active_
tempo_ precompile_ addresses - Returns the well-known Tempo precompile addresses active at
hardfork. - 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_
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.
Type AliasesΒ§
- Monad
Hardfork π