foundry_evm_core/fork/
mod.rs

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