Vm
Functions
warp
function warp(
uint256
) external
Parameters
Name | Type | Description |
---|---|---|
`` | uint256 |
roll
function roll(
uint256
) external
Parameters
Name | Type | Description |
---|---|---|
`` | uint256 |
fee
function fee(
uint256
) external
Parameters
Name | Type | Description |
---|---|---|
`` | uint256 |
load
function load(
address ,
bytes32
) external returns (bytes32)
Parameters
Name | Type | Description |
---|---|---|
`` | address | |
`` | bytes32 |
store
function store(
address ,
bytes32 ,
bytes32
) external
Parameters
Name | Type | Description |
---|---|---|
`` | address | |
`` | bytes32 | |
`` | bytes32 |
sign
function sign(
uint256 ,
bytes32
) external returns (uint8, bytes32, bytes32)
Parameters
Name | Type | Description |
---|---|---|
`` | uint256 | |
`` | bytes32 |
addr
function addr(
uint256
) external returns (address)
Parameters
Name | Type | Description |
---|---|---|
`` | uint256 |
ffi
function ffi(
string[]
) external returns (bytes)
Parameters
Name | Type | Description |
---|---|---|
`` | string[] |
prank
function prank(
address
) external
Parameters
Name | Type | Description |
---|---|---|
`` | address |
startPrank
function startPrank(
address
) external
Parameters
Name | Type | Description |
---|---|---|
`` | address |
prank
function prank(
address ,
address
) external
Parameters
Name | Type | Description |
---|---|---|
`` | address | |
`` | address |
startPrank
function startPrank(
address ,
address
) external
Parameters
Name | Type | Description |
---|---|---|
`` | address | |
`` | address |
stopPrank
function stopPrank() external
deal
function deal(
address ,
uint256
) external
Parameters
Name | Type | Description |
---|---|---|
`` | address | |
`` | uint256 |
etch
function etch(
address ,
bytes
) external
Parameters
Name | Type | Description |
---|---|---|
`` | address | |
`` | bytes |
expectRevert
function expectRevert(
bytes
) external
Parameters
Name | Type | Description |
---|---|---|
`` | bytes |
expectRevert
function expectRevert(
bytes4
) external
Parameters
Name | Type | Description |
---|---|---|
`` | bytes4 |
record
function record() external
accesses
function accesses(
address
) external returns (bytes32[] reads, bytes32[] writes)
Parameters
Name | Type | Description |
---|---|---|
`` | address |
expectEmit
function expectEmit(
bool ,
bool ,
bool ,
bool
) external
Parameters
Name | Type | Description |
---|---|---|
`` | bool | |
`` | bool | |
`` | bool | |
`` | bool |
mockCall
function mockCall(
address ,
bytes ,
bytes
) external
Parameters
Name | Type | Description |
---|---|---|
`` | address | |
`` | bytes | |
`` | bytes |
clearMockedCalls
function clearMockedCalls() external
expectCall
function expectCall(
address ,
bytes
) external
Parameters
Name | Type | Description |
---|---|---|
`` | address | |
`` | bytes |
getCode
function getCode(
string
) external returns (bytes)
Parameters
Name | Type | Description |
---|---|---|
`` | string |
label
function label(
address ,
string
) external
Parameters
Name | Type | Description |
---|---|---|
`` | address | |
`` | string |