foundry_evm_core/fork/mod.rs
1use super::opts::EvmOpts;
2use alloy_evm::EvmEnv;
3
4pub mod database;
5
6mod multi;
7pub use multi::{ForkId, MultiFork, MultiForkHandler};
8
9/// Represents a _fork_ of a remote chain whose data is available only via the `url` endpoint.
10#[derive(Clone, Debug)]
11pub struct CreateFork {
12 /// Whether to enable rpc storage caching for this fork
13 pub enable_caching: bool,
14 /// The URL to a node for fetching remote state
15 pub url: String,
16 /// The EVM environment for this fork (main purpose is to provide some block and cfg metadata).
17 pub evm_env: EvmEnv,
18 /// All env settings as configured by the user
19 pub evm_opts: EvmOpts,
20}