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
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Β§

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Β§

MonadHardfork πŸ”’