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
dealcheatcodes - GasRecord
- Records the
snapshotGas*cheatcodes. - Record
Access - Records storage slots reads and writes.
- Slot
State ๐Diff - Storage slot diff info.
Functionsยง
- derive_
snapshot_ ๐name - genesis_
account ๐ - Helper function that creates a
GenesisAccountfrom a regularAccount. - 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
Accountis loaded and touched. - read_
callers ๐ - Reads the current caller information and returns the current CallerMode,
msg.senderandtx.origin. - set_
cold_ ๐slot - Helper function to set / unset cold storage slot of the target address.