Struct evm_adapters::sputnik::cheatcodes::Cheatcodes [−][src]
pub struct Cheatcodes {
pub block_number: Option<U256>,
pub block_timestamp: Option<U256>,
pub block_base_fee_per_gas: Option<U256>,
pub accounts: HashMap<Address, MemoryAccount>,
}
Expand description
Cheatcodes can be used to control the EVM context during setup or runtime, which can be useful for simulations or specialized unit tests
Fields
block_number: Option<U256>
The overriden block number
block_timestamp: Option<U256>
The overriden timestamp
block_base_fee_per_gas: Option<U256>
The overriden basefee
accounts: HashMap<Address, MemoryAccount>
The overriden storage slots
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for Cheatcodes
impl Send for Cheatcodes
impl Sync for Cheatcodes
impl Unpin for Cheatcodes
impl UnwindSafe for Cheatcodes
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more