Skip to main content

foundry_evm_core/fork/
mod.rs

1use super::opts::EvmOpts;
2
3pub mod database;
4
5mod multi;
6pub use multi::{ForkId, ForkResult, MultiFork, MultiForkHandler};
7
8mod resolved;
9pub use resolved::ResolvedFork;
10
11/// Represents a _fork_ of a remote chain whose data is available only via the `url` endpoint.
12#[derive(Clone, Debug)]
13pub struct CreateFork {
14    /// Whether to enable rpc storage caching for this fork
15    pub enable_caching: bool,
16    /// The URL to a node for fetching remote state
17    pub url: String,
18    /// All env settings as configured by the user
19    pub evm_opts: EvmOpts,
20    /// Exact source and block identity resolved before fork construction.
21    pub resolved: Option<ResolvedFork>,
22}