Skip to main contentModule fork
Source use super::opts::EvmOpts; π use super::opts::ForkContext; π use alloy_eips::BlockId; π use alloy_eips::BlockNumHash; π use alloy_network::AnyNetwork; π use alloy_network::AnyRpcBlock; π use alloy_network::Network; π use alloy_primitives::B256; π use alloy_primitives::BlockNumber; π use alloy_primitives::keccak256; π use alloy_provider::Provider; π use alloy_provider::RootProvider; π use alloy_rpc_client::RpcClient; π use eyre::OptionExt; π use std::fmt; π use std::hash::Hash; π use std::hash::Hash; π use std::hash::Hasher; π use std::sync::Arc; π
- bal π
- Validates and caches BAL post-state, and prepares transaction forksβ parent-block BALs.
- database
- A revm database that forks off a remote client
- multi π
- Support for running multiple fork backends.
- prefetch π
- Prefetches a new fork blockβs remote cache from the keys of an older cached block.
- CreateFork
- Represents a fork of a remote chain whose data is available only via the
url endpoint. - Fork
- A prepared remote fork. The RPC client and block are shared by preflight and execution.
- ForkId
- The unique identifier for a specific fork, this could be the name of the network a custom
descriptive name.
- ForkResult
- Backend, environment, and identity returned after creating or rolling a fork.
- MultiFork
- The Sender half of multi fork pair.
Can send requests to the
MultiForkHandler to create forks. - MultiForkHandler
- The type that manages connections in the background.
- cache_bal
- Inserts a validated BALβs post-state into its selected remote cache, retaining existing values.
- encode_source_part π
- source_id π
- validate_bal
- Validates the entire BAL before any values can enter the cache.