FOUNDRY_NETWORK_NAMES

Documentation for eth_defi.chain.FOUNDRY_NETWORK_NAMES data.

FOUNDRY_NETWORK_NAMES: dict[int, str] = {1: 'mainnet', 56: 'bsc', 137: 'polygon', 143: 'monad', 146: 'sonic', 999: 'hyperliquid', 5000: 'mantle', 8453: 'base', 9745: 'plasma', 42161: 'arbitrum', 43114: 'avalanche', 80094: 'berachain'}

Foundry / Anvil fork-cache network-directory names, keyed by chain id.

Anvil stores its fork RPC cache at ~/.foundry/cache/rpc/<network>/<block>/storage.json where <network> is Foundry’s own chain name (from alloy-chains), which is not our CHAIN_NAMES display name — e.g. Ethereum is mainnet and BNB Smart Chain (Binance) is bsc. The committed fork-cache seed (eth_defi/testing/rpc_cache_seed/<network>/<block>/) and any code that locates a chain’s fork cache must use these names so the paths match what Foundry writes. Values are verified against the directories Anvil 1.7.1 actually created; chains not listed here fall back to Foundry’s default (the numeric chain id as the directory) and should be added once verified.