Expand description
§foundry-cheatcodes
Foundry cheatcodes implementations.
Modules§
- foundry-cheatcodes-spec
Structs§
- Helps collecting transactions from different forks.
- An EVM inspector that handles calls to various cheatcodes, each with their own behavior.
- Additional, configurable context the
Cheatcodes
inspector has access to - The cheatcode context, used in
Cheatcode
. - Contains additional, test specific resources that should be kept for the duration of the test
- Error thrown by cheatcodes.
- Clonable wrapper around
WalletsInner
. - Contains context for wallet management.
Enums§
- Kind of cheatcode errors.
- Forge execution contexts.
Traits§
- Cheatcode definition trait. Implemented by all
Vm
functions. - Helper trait for obtaining complete revm::Inspector instance from mutable reference to Cheatcodes.
Functions§
- 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§
- List of transactions that can be broadcasted.
- Tracks the expected calls per address.
- Cheatcode result type.