Expand description
Implementations of Evm
cheatcodes.
ModulesΒ§
- fork π
- mapping π
- mock π
- prank π
- record_
debug_ πstep
StructsΒ§
- Account
State πDiffs - Account state diff info.
- Balance
Diff π - Balance diff info.
- Deal
Record - Records
deal
cheatcodes - GasRecord
- Records the
snapshotGas*
cheatcodes. - Nonce
Diff π - Nonce diff info.
- Record
Access - Records storage slots reads and writes.
- Slot
State πDiff - 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 regularAccount
. - 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
andtx.origin
. - set_
cold_ πslot - Helper function to set / unset cold storage slot of the target address.