Skip to main content

Crate cheatcodes

Crate cheatcodes 

Expand description

§foundry-cheatcodes

Foundry cheatcodes implementations.

Modules§

spec
Cheatcode specification for Foundry.

Structs§

Broadcast
BroadcastableTransaction
Helps collecting transactions from different forks.
CheatcodeInspectorStrategy
Defines the strategy for super::Cheatcodes.
Cheatcodes
An EVM inspector that handles calls to various cheatcodes, each with their own behavior.
CheatsConfig
Additional, configurable context the Cheatcodes inspector has access to
CheatsCtxt
The cheatcode context, used in Cheatcode.
DealRecord
Records deal cheatcodes
Error
Error thrown by cheatcodes.
EvmCheatcodeInspectorStrategyRunner
Implements CheatcodeInspectorStrategyRunner for EVM.
ExpectedCreate
MockCallDataContext
Mocked call data.
MockCallReturnData
Mocked return data.
Wallets
Cloneable wrapper around WalletsInner.
WalletsInner
Contains context for wallet management.

Enums§

ErrorKind
Kind of cheatcode errors.
ForgeContext
Forge execution contexts.

Traits§

CheatcodeDef
Cheatcode definition trait. Implemented by all Vm functions.
CheatcodeInspectorStrategyContext
Context for CheatcodeInspectorStrategy.
CheatcodeInspectorStrategyExt
Defined in revive-strategy
CheatcodeInspectorStrategyRunner
Stateless strategy runner for CheatcodeInspectorStrategy.
CheatcodesExecutor
Helper trait for obtaining complete revm::Inspector instance from mutable reference to Cheatcodes.
CommonCreateInput
Common behaviour of legacy and EOF create inputs.
DynCheatcode

Functions§

handle_expect_emit
journaled_account
Ensures the Account is loaded and touched.
precompile_error
set_execution_context
Set forge command current execution context for the duration of the program. Execution context is immutable, subsequent calls of this function won’t change the context.

Type Aliases§

BroadcastableTransactions
List of transactions that can be broadcasted.
CheatcodesStrategy
Ecx
ExpectedCallTracker
Tracks the expected calls per address.
Result
Cheatcode result type.