Re-exportsยง
use crate::CheatcodesExecutor;๐use crate::CheatsCtxt;๐use crate::Result;๐use alloy_primitives::Address;๐use alloy_primitives::B256;๐use alloy_primitives::Bytes;๐use alloy_primitives::I256;๐use alloy_primitives::U256;๐use alloy_primitives::U512;๐use alloy_primitives::keccak256;๐use alloy_sol_types::SolCall;๐use evm2::interpreter::InstrStop;๐use evm2::interpreter::op;๐use evm2::interpreter::opcode::OpCode;๐use foundry_evm_core::abi::console::format_units_int;๐use foundry_evm_core::abi::console::format_units_uint;๐use foundry_evm_core::backend::GLOBAL_FAIL_SLOT;๐use foundry_evm_core::constants::CHEATCODE_ADDRESS;๐use foundry_evm_core::decode::ASSERTION_FAILED_PREFIX;๐use foundry_evm_core::evm::FoundryEvmNetwork;๐use foundry_evm_core::evm::InterpreterFor;๐use foundry_evm_core::evm::MessageResultFor;๐use itertools::Itertools;๐use std::borrow::Cow;๐use std::fmt;๐use std::sync::Arc;๐use std::sync::atomic::AtomicBool;๐use std::sync::atomic::Ordering;๐use crate::Vm::*;๐
Macrosยง
- impl_
assertions ๐ - Implements crate::Cheatcode for pairs of cheatcodes.
Structsยง
- Comparison
Assertion ๐Error - EqAbs
Assertion ๐Error - EqRel
Assertion ๐Failure - Failure
Provenance - Records where a call failed, cheaply enough to run during campaigns, so a replay of the same input can be checked to fail the same way, unlike its revert data, exit reason and gas, which other failure paths can reproduce.
- Failure
Trace - Records the failed assertions and frames of a call by value-independent call sites, so a minimizer can tell whether a smaller input fails the same way.
- Site
Frame ๐ - Call site tracking of one executing frame.
Enumsยง
- Assertion
Kind ๐ - EqRel
Assertion ๐Error - EqRel
Delta ๐ - Failure
Event ๐ - A failure recorded by
FailureTrace.
Constantsยง
Functionsยง
- assert_
eq ๐ - assert_
false ๐ - assert_
ge ๐ - assert_
gt ๐ - assert_
le ๐ - assert_
lt ๐ - assert_
not_ ๐eq - assert_
true ๐ - calc_
delta_ ๐full - Calculates the relative delta for an absolute difference.
- format_
delta_ ๐percent - get_
delta_ ๐int - handle_
assertion_ ๐result - handle_
assertion_ ๐result_ mono - int_
assert_ ๐approx_ eq_ abs - int_
assert_ ๐approx_ eq_ rel - is_
return_ ๐label - Returns whether
valueis the pc of aJUMPDESTright after aJUMPincode, as the return label of an internal function call is. - memory_
end ๐ - Returns the end of the memory that
opcodeaccesses withstack, whose top is last, or zero when it accesses none. - uint_
assert_ ๐approx_ eq_ abs - uint_
assert_ ๐approx_ eq_ rel
Type Aliasesยง
- Comparison
Result ๐