Skip to main content

Module cheats

Module cheats 

Source
Expand description

Support for “cheat codes” / bypass functions

Re-exports§

use alloy_evm::precompiles::Precompile; 🔒
use alloy_evm::precompiles::PrecompileInput; 🔒
use alloy_primitives::Address; 🔒
use alloy_primitives::B256; 🔒
use alloy_primitives::Bytes; 🔒
use alloy_primitives::map::foldhash::HashMap; 🔒
use parking_lot::RwLock; 🔒
use revm::precompile::PrecompileHalt; 🔒
use revm::precompile::PrecompileId; 🔒
use revm::precompile::PrecompileOutput; 🔒
use revm::precompile::PrecompileResult; 🔒
use revm::precompile::call_eth_precompile; 🔒
use revm::precompile::secp256k1::ec_recover_run; 🔒
use revm::precompile::utilities::right_pad; 🔒
use std::borrow::Cow; 🔒
use std::sync::Arc; 🔒

Structs§

CheatEcrecover
A custom ecrecover precompile that supports cheat-based signature overrides.
CheatsManager
Manages user modifications that may affect the node’s behavior
CheatsState
Container type for all the state variables
NextBlockOverride 🔒
A one-shot override of a value of the next mined block.
NextBlockOverrides 🔒
Values manually set for the next mined block.

Statics§

PRECOMPILE_ID_CHEAT_ECRECOVER 🔒
ID for the CheatEcrecover::precompile_id precompile.