Skip to main content

Module fork

Module fork 

Source
Expand description

Fork registry: which backing databases exist, which one is active, and the accepted state each inactive one resumes with.

Re-exportsΒ§

use super::AcceptedView; πŸ”’
use super::BackingDb; πŸ”’
use super::EvmEnv; πŸ”’
use super::SendableExt; πŸ”’
use super::StoredExt; πŸ”’
use crate::fork::Fork; πŸ”’
use crate::fork::ForkId; πŸ”’
use alloy_eips::BlockNumHash; πŸ”’
use alloy_primitives::Address; πŸ”’
use alloy_primitives::B256; πŸ”’
use alloy_primitives::U256; πŸ”’
use alloy_primitives::map::AddressMap; πŸ”’
use alloy_primitives::map::AddressSet; πŸ”’
use alloy_primitives::map::HashMap; πŸ”’
use alloy_primitives::map::HashSet; πŸ”’
use evm2::EvmFeatures; πŸ”’
use evm2::evm::Cache; πŸ”’
use std::collections::BTreeMap; πŸ”’
use std::fmt; πŸ”’
use std::mem; πŸ”’
use std::sync::Arc; πŸ”’

StructsΒ§

ForkEntry
A registered fork.
ForkInfo
Identity of a fork as Foundry users see it: its RPC endpoint and pinned block.
ForkRegistry
Registered forks, the local context, the active selection and persistent accounts.
Parked
An execution context that is not running: its backing database, environment, network extension state and accepted state.

EnumsΒ§

ForkPosition
Canonical chain position of a fork’s accepted state.

FunctionsΒ§

copy_account πŸ”’
Copies the account info and code of address from source into target, if source holds the account.