Expand description
Implementations of Utilities cheatcodes.
Re-exportsยง
use crate::Cheatcode;๐use crate::CheatcodesCore;๐use crate::CheatcodesExecutor;๐use crate::CheatsCtxt;๐use crate::Result;๐use alloy_dyn_abi::DynSolType;๐use alloy_dyn_abi::DynSolValue;๐use alloy_dyn_abi::Resolver;๐use alloy_dyn_abi::TypedData;๐use alloy_dyn_abi::eip712_parser::EncodeType;๐use alloy_ens::namehash;๐use alloy_primitives::B64;๐use alloy_primitives::Bytes;๐use alloy_primitives::I256;๐use alloy_primitives::U256;๐use alloy_primitives::aliases::B32;๐use alloy_primitives::keccak256;๐use alloy_primitives::map::HashMap;๐use alloy_rlp::Decodable;๐use alloy_rlp::Encodable;๐use alloy_sol_types::SolValue;๐use foundry_common::TYPE_BINDING_PREFIX;๐use foundry_common::fs;๐use foundry_config::fs_permissions::FsAccessKind;๐use foundry_evm_core::constants::DEFAULT_CREATE2_DEPLOYER;๐use foundry_evm_core::evm::FoundryEvmNetwork;๐use foundry_evm_fuzz::strategies::BoundMutator;๐use proptest::prelude::Strategy;๐use rand::Rng;๐use rand::RngCore;๐use rand::seq::SliceRandom;๐use revm::context::ContextTr;๐use revm::context::JournalTr;๐use std::path::PathBuf;๐use crate::Vm::*;๐
Structsยง
- Ignored
Traces - Contains locations of traces ignored via cheatcodes.
Functionsยง
- get_
canonical_ ๐type_ def - Returns EIP-712 canonical type definition from the provided string type representation or type
name. If type name provided, then it looks up bindings from file generated by
forge bind-json. - get_
struct_ ๐hash - Returns the EIP-712 struct hash for provided name, definition and ABI encoded data.
- get_
type_ ๐def_ from_ bindings - Returns the EIP-712 type definition from the bindings in the provided path. Assumes that read validation for the path has already been checked.
- random_
int ๐ - random_
uint ๐