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.
NonceDiff πŸ”’
Nonce diff info.
RecordAccess
Records storage slots reads and writes.
SlotStateDiff πŸ”’
Storage slot diff info.

ConstantsΒ§

EIP1822_PROXIABLE_SLOT πŸ”’
EIP-1822 UUPS implementation storage slot: keccak256(β€œPROXIABLE”)
EIP1967_IMPL_SLOT πŸ”’
EIP-1967 implementation storage slot

FunctionsΒ§

derive_snapshot_name πŸ”’
ensure_loaded_account πŸ”’
genesis_account πŸ”’
Helper function that creates a GenesisAccount from a regular Account.
get_contract_data πŸ”’
Helper function to get the contract data from the deployed code at an address.
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.