Skip to main content

Module evm

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.