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, MultiFork, MultiForkHandler};
7
8/// Represents a _fork_ of a remote chain whose data is available only via the `url` endpoint.
9#[derive(Clone, Debug)]
10pub struct CreateFork {
11    /// Whether to enable rpc storage caching for this fork
12    pub enable_caching: bool,
13    /// The URL to a node for fetching remote state
14    pub url: String,
15    /// All env settings as configured by the user
16    pub evm_opts: EvmOpts,
17}