Skip to main content Module invariant Copy item path Source use alloy_dyn_abi::JsonAbiExt; ๐ use alloy_dyn_abi::abi::AbiDecoderConfig; ๐ use alloy_json_abi::Event; ๐ use alloy_json_abi::Function; ๐ use alloy_json_abi::JsonAbi; ๐ use alloy_json_abi::StateMutability; ๐ use alloy_primitives::Address; ๐ use alloy_primitives::B256; ๐ use alloy_primitives::Bytes; ๐ use alloy_primitives::Selector; ๐ use alloy_primitives::map::HashMap; ๐ use foundry_compilers::artifacts::StorageLayout; ๐ use itertools::Either ; ๐ use serde::Deserialize ; ๐ use serde::Deserialize ; ๐ use serde::Serialize ; ๐ use serde::Serialize ; ๐ use std::cell::Cell ; ๐ use std::cell::Ref ; ๐ use std::cell::RefCell ; ๐ use std::collections::BTreeMap ; ๐ use std::fmt ; ๐ use std::rc::Rc ; ๐ use std::sync::Arc ; ๐ use crate::BasicTxDetails ; ๐ use evm2::evm::AccountChanges; ๐ use foundry_common::ContractsByAddress ; ๐ use foundry_common::ContractsByArtifact ; ๐ call_override ๐ filters ๐ ArtifactFilters Contains which contracts are to be targeted or excluded on an invariant test through their
artifact identifiers. CachedTargetContract ๐ FuzzRunIdentifiedContracts Contracts identified as targets during a fuzz run. InvariantContract Test contract which is testing its invariants. InvariantSettings Settings that determine the validity of a persisted invariant counterexample. RandomCallGenerator Given a TestRunner and a strategy, it generates calls. Used inside the Fuzzer inspector to
override external calls to test for potential reentrancy vulnerabilities. SenderFilters Filter for acceptable senders to use for invariant testing. Exclusion takes priority if
clashing. TargetedContract A contract identified as target for invariant testing. TargetedContractEvent Event with its flattened ABI order for preserving log decode priority. TargetedContractEvents Events for a targeted contract, pre-indexed for log dictionary decoding. TargetedContracts A collection of contracts identified as targets for invariant testing. is_optimization_invariant Returns true if the function returns int256, indicating optimization mode.
In optimization mode, the fuzzer maximizes the return value instead of checking invariants. DynamicTargetArtifactMatchCache ๐ FunctionLookup ๐ FuzzedFunction ๐