Skip to main content

Module replay

Module replay 

Source

Re-exportsยง

use super::call_after_invariant_function; ๐Ÿ”’
use super::call_invariant_function; ๐Ÿ”’
use super::execute_tx; ๐Ÿ”’
use crate::executors::EarlyExit; ๐Ÿ”’
use crate::executors::Executor; ๐Ÿ”’
use crate::executors::corpus::persist_campaign_optimization; ๐Ÿ”’
use crate::executors::invariant::shrink::CheckSequenceOutcome; ๐Ÿ”’
use crate::executors::invariant::shrink::ShrinkProgress; ๐Ÿ”’
use crate::executors::invariant::shrink::shrink_sequence; ๐Ÿ”’
use crate::executors::invariant::shrink::shrink_sequence_value; ๐Ÿ”’
use alloy_dyn_abi::JsonAbiExt; ๐Ÿ”’
use alloy_json_abi::Function; ๐Ÿ”’
use alloy_primitives::Address; ๐Ÿ”’
use alloy_primitives::Bytes; ๐Ÿ”’
use alloy_primitives::I256; ๐Ÿ”’
use alloy_primitives::Log; ๐Ÿ”’
use alloy_primitives::map::HashMap; ๐Ÿ”’
use eyre::Result; ๐Ÿ”’
use foundry_common::ContractsByAddress; ๐Ÿ”’
use foundry_common::ContractsByArtifact; ๐Ÿ”’
use foundry_config::InvariantConfig; ๐Ÿ”’
use foundry_evm_core::decode::RevertDecoder; ๐Ÿ”’
use foundry_evm_core::evm::FoundryEvmNetwork; ๐Ÿ”’
use foundry_evm_coverage::HitMaps; ๐Ÿ”’
use foundry_evm_fuzz::BaseCounterExample; ๐Ÿ”’
use foundry_evm_fuzz::BasicTxDetails; ๐Ÿ”’
use foundry_evm_fuzz::invariant::InvariantContract; ๐Ÿ”’
use foundry_evm_traces::TraceKind; ๐Ÿ”’
use foundry_evm_traces::TraceRequirements; ๐Ÿ”’
use foundry_evm_traces::Traces; ๐Ÿ”’
use foundry_evm_traces::load_contracts; ๐Ÿ”’
use indicatif::ProgressBar; ๐Ÿ”’
use parking_lot::RwLock; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’

Structsยง

ReplayErrorResult

Functionsยง

replay_error
Replays and shrinks a call sequence, collecting logs and traces.
replay_run
Replays a call sequence for collecting logs and traces. Returns counterexample to be used when the call sequence is a failed scenario.
set_up_inner_replay ๐Ÿ”’
Sets up the calls generated by the internal fuzzer, if they exist.