Skip to main content

stdStorage

Git Source

State Variables

vm

Vm private constant vm = Vm(address(uint160(uint256(keccak256("hevm cheat code")))));

Functions

sigs

function sigs(string memory sigStr) internal pure returns (bytes4);

find

function find(StdStorage storage self) internal returns (uint256);

find

function find(StdStorage storage self, bool _clear) internal returns (uint256);

target

function target(StdStorage storage self, address _target) internal returns (StdStorage storage);

sig

function sig(StdStorage storage self, bytes4 _sig) internal returns (StdStorage storage);

sig

function sig(StdStorage storage self, string memory _sig) internal returns (StdStorage storage);

with_key

function with_key(StdStorage storage self, address who) internal returns (StdStorage storage);

with_key

function with_key(StdStorage storage self, uint256 amt) internal returns (StdStorage storage);

with_key

function with_key(StdStorage storage self, bytes32 key) internal returns (StdStorage storage);

with_calldata

function with_calldata(StdStorage storage self, bytes memory _calldata) internal returns (StdStorage storage);

enable_packed_slots

function enable_packed_slots(StdStorage storage self) internal returns (StdStorage storage);

depth

function depth(StdStorage storage self, uint256 _depth) internal returns (StdStorage storage);

clear

function clear(StdStorage storage self) internal;

checked_write

function checked_write(StdStorage storage self, address who) internal;

checked_write

function checked_write(StdStorage storage self, uint256 amt) internal;

checked_write_int

function checked_write_int(StdStorage storage self, int256 val) internal;

checked_write

function checked_write(StdStorage storage self, bool write) internal;

checked_write

function checked_write(StdStorage storage self, bytes32 set) internal;

read_bytes32

function read_bytes32(StdStorage storage self) internal returns (bytes32);

read_bool

function read_bool(StdStorage storage self) internal returns (bool);

read_address

function read_address(StdStorage storage self) internal returns (address);

read_uint

function read_uint(StdStorage storage self) internal returns (uint256);

read_int

function read_int(StdStorage storage self) internal returns (int256);

parent

function parent(StdStorage storage self) internal returns (uint256, bytes32);

root

function root(StdStorage storage self) internal returns (uint256);