Re-exportsยง
use std::fmt;๐use std::fmt::Display;๐use crate::Cheatcode;๐use crate::Cheatcodes;๐use crate::CheatcodesCore;๐use crate::CheatsCtxt;๐use crate::Result;๐use crate::expected_emit::ExpectedEmit;๐use alloy_primitives::Address;๐use alloy_primitives::Bytes;๐use alloy_primitives::LogData as RawLog;๐use alloy_primitives::U256;๐use alloy_primitives::hex;๐use alloy_primitives::hex;๐use alloy_primitives::keccak256;๐use alloy_primitives::map::HashMap;๐use alloy_primitives::map::hash_map::Entry;๐use alloy_sol_types::SolCall;๐use alloy_sol_types::SolValue;๐use evm2::interpreter::MessageKind;๐use foundry_evm_core::evm::FoundryEvmNetwork;๐use itertools::Itertools;๐use tempo_contracts::precompiles::ISignatureVerifier;๐use tempo_precompiles::SIGNATURE_VERIFIER_ADDRESS;๐use super::revert_handlers::RevertParameters;๐use crate::Vm::*;๐
Structsยง
Enumsยง
- Create
Scheme - Expected
Call Scheme - Call kinds used by Foundry expectations independently of the execution engine.
- Expected
Call Type - The type of expected call.
- Expected
Revert Kind - The type of expected revert.
Functionsยง
- call_
scheme_ ๐rank - expect_
call ๐ - Registers an expectation keyed by target, calldata and call scheme. Counted expectations require an exact count and cannot be registered twice or mixed with non-counted expectations. Repeated non-counted expectations increase the minimum call count.
- expect_
create ๐ - expect_
emit ๐ - expect_
keychain_ ๐verified - expect_
logo_ ๐uri_ updated - expect_
revert ๐ - expect_
safe_ ๐memory - first_
unmet_ ๐call - Returns the failure message for the smallest unmet call expectation, if any.
- first_
unmet_ ๐create - Returns the failure message for the first unmet create expectation, if any.
- observe_
call ๐ - Counts a call against every matching expectation registered for one target.
- observe_
create ๐ - Removes the first create expectation matched by a completed create.
Type Aliasesยง
- Expected
Call Tracker - Tracks the expected calls per address.
- Expected
Calls ForTarget - Tracks calldata, scheme and count expectations for one target.