Module evm

Source
Expand description

Implementations of Evm cheatcodes.

Modules§

fork 🔒
mapping 🔒
mock 🔒
prank 🔒
record_debug_step 🔒

Structs§

AccountStateDiffs 🔒
Account state diff info.
BalanceDiff 🔒
Balance diff info.
DealRecord
Records deal cheatcodes
GasRecord
Records the snapshotGas* cheatcodes.
RecordAccess
Records storage slots reads and writes.
SlotStateDiff 🔒
Storage slot diff info.

Functions§

derive_snapshot_name 🔒
genesis_account 🔒
Helper function that creates a GenesisAccount from a regular Account.
get_nonce 🔒
get_recorded_state_diffs 🔒
Helper function to returns state diffs recorded for each changed account.
get_state_diff 🔒
Consumes recorded account accesses and returns them as an abi encoded array of AccountAccess. If there are no accounts were recorded as accessed, an abi encoded empty array is returned.
inner_delete_state_snapshot 🔒
inner_delete_state_snapshots 🔒
inner_last_gas_snapshot 🔒
inner_revert_to_state 🔒
inner_revert_to_state_and_delete 🔒
inner_snapshot_state 🔒
inner_start_gas_snapshot 🔒
inner_stop_gas_snapshot 🔒
inner_value_snapshot 🔒
journaled_account 🔒
Ensures the Account is loaded and touched.
read_callers 🔒
Reads the current caller information and returns the current CallerMode, msg.sender and tx.origin.
set_cold_slot 🔒
Helper function to set / unset cold storage slot of the target address.