Crate cheatcodes
Expand description
§foundry-cheatcodes
Foundry cheatcodes implementations.
Modules§
- spec
- Cheatcode specification for Foundry.
Structs§
- Broadcast
- Broadcastable
Transaction - Helps collecting transactions from different forks.
- Cheatcode
Inspector Strategy - Defines the strategy for super::Cheatcodes.
- Cheatcodes
- An EVM inspector that handles calls to various cheatcodes, each with their own behavior.
- Cheats
Config - Additional, configurable context the
Cheatcodesinspector has access to - Cheats
Ctxt - The cheatcode context, used in
Cheatcode. - Deal
Record - Records
dealcheatcodes - Error
- Error thrown by cheatcodes.
- EvmCheatcode
Inspector Strategy Runner - Implements CheatcodeInspectorStrategyRunner for EVM.
- Expected
Create - Mock
Call Data Context - Mocked call data.
- Mock
Call Return Data - Mocked return data.
- Wallets
- Cloneable wrapper around
WalletsInner. - Wallets
Inner - Contains context for wallet management.
Enums§
- Error
Kind - Kind of cheatcode errors.
- Forge
Context - Forge execution contexts.
Traits§
- Cheatcode
Def - Cheatcode definition trait. Implemented by all
Vmfunctions. - Cheatcode
Inspector Strategy Context - Context for CheatcodeInspectorStrategy.
- Cheatcode
Inspector Strategy Ext - Defined in revive-strategy
- Cheatcode
Inspector Strategy Runner - Stateless strategy runner for CheatcodeInspectorStrategy.
- Cheatcodes
Executor - Helper trait for obtaining complete revm::Inspector instance from mutable reference to Cheatcodes.
- Common
Create Input - Common behaviour of legacy and EOF create inputs.
- DynCheatcode
Functions§
- handle_
expect_ emit - journaled_
account - Ensures the
Accountis loaded and touched. - precompile_
error - set_
execution_ context - Set
forgecommand 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§
- Broadcastable
Transactions - List of transactions that can be broadcasted.
- Cheatcodes
Strategy - Ecx
- Expected
Call Tracker - Tracks the expected calls per address.
- Result
- Cheatcode result type.