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. - LogJson π
- JSON-serializable log entry for
getRecordedLogsJson. - Nonce
Diff π - Nonce diff info.
- Record
Access - Records storage slots reads and writes.
- Slot
State πDiff - Storage slot diff info.
- State
Dump π
ConstantsΒ§
- EIP1822_
PROXIABLE_ πSLOT - EIP-1822 UUPS implementation storage slot: keccak256(βPROXIABLEβ)
- EIP1967_
IMPL_ πSLOT - EIP-1967 implementation storage slot
- TIP20_
LOGO_ πURI_ SLOT_ INDEX
FunctionsΒ§
- append_
storage_ πaccess - Appends an AccountAccess that resumes the recording of the current context.
- cleanup_
long_ πstring_ tail - clear_
eip2935_ πhistory_ storage - Clears the EIP-2935 history ring buffer with journaled writes, so that reverting the enclosing frame restores the previous history storage.
- derive_
snapshot_ πname - encode_
short_ πstring - ensure_
loaded_ πaccount - genesis_
account π - Helper function that creates a
GenesisAccountfrom 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_
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 - is_
long_ πstring - journaled_
account π - Ensures the
Accountis loaded and touched. - long_
string_ πlength - mark_
account_ πaccesses_ reverted - Marks a reverted frameβs account accesses, including their storage accesses, as reverted.
- merge_
recorded_ πframe - Moves a finished frameβs account accesses into the enclosing recorded frame, or back onto the stack when no enclosing frame was recorded, preserving the order of the accesses.
- read_
callers π - Reads the current caller information and returns the current CallerMode,
msg.senderandtx.origin. - restore_
eip2935_ πcold_ state - restore_
isolation_ πfee_ accounting - set_
cold_ πslot - Helper function to set / unset cold storage slot of the target address.
- set_
eip2935_ πblockhash - set_
tip20_ πlogo_ uri - solidity_
dynamic_ πdata_ slot - store_
solidity_ πstring - string_
chunks π - sync_
tx_ πafter_ env_ override_ restore - Syncs the real
txfields to match restoredenv_overrides. - track_
snapshot_ πrestore - Records the live journal replaced by a snapshot restoration so that a failing enclosing frame can reinstate it and unwind its journaled writes.