Skip to main content Module expect Copy item path Source use std::fmt ; ๐ use std::fmt::Display ; ๐ use crate::Cheatcode ; ๐ use crate::Cheatcodes ; ๐ use crate::CheatcodesCore ; ๐ use crate::CheatsCtxt ; ๐ use crate::Error ; ๐ use crate::Result ; ๐ use crate::expected_emit::ExpectedEmit ; ๐ use crate::expected_emit::observe_log ; ๐ use alloy_primitives::Address; ๐ use alloy_primitives::Bytes; ๐ use alloy_primitives::Log; ๐ 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 foundry_evm_core::evm::FoundryEvmNetwork ; ๐ use itertools::Itertools; ๐ use revm::interpreter::CallScheme; ๐ use revm::interpreter::InstructionResult; ๐ use revm::interpreter::Interpreter; ๐ use revm::interpreter::InterpreterAction; ๐ use revm::interpreter::interpreter_types::LoopControl; ๐ use tempo_contracts::precompiles::ISignatureVerifier; ๐ use tempo_precompiles::SIGNATURE_VERIFIER_ADDRESS; ๐ use super::revert_handlers::RevertParameters ; ๐ use crate::Vm ::*; ๐ ExpectedCallData ExpectedCreate ExpectedRevert CreateScheme ExpectedCallScheme Call kinds used by Foundry expectations independently of the execution engine. ExpectedCallType The type of expected call. ExpectedRevertKind The type of expected revert. 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. handle_expect_emit ๐ Applies an expectEmit failure for log by reverting the current call, when an interpreter
is available. 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. ExpectedCallTracker Tracks the expected calls per address. ExpectedCallsForTarget Tracks calldata, scheme and count expectations for one target.