Skip to main content

Vm

Functions

warp

function warp(
uint256
) external

Parameters

NameTypeDescription
``uint256

roll

function roll(
uint256
) external

Parameters

NameTypeDescription
``uint256

fee

function fee(
uint256
) external

Parameters

NameTypeDescription
``uint256

load

function load(
address ,
bytes32
) external returns (bytes32)

Parameters

NameTypeDescription
``address
``bytes32

store

function store(
address ,
bytes32 ,
bytes32
) external

Parameters

NameTypeDescription
``address
``bytes32
``bytes32

sign

function sign(
uint256 ,
bytes32
) external returns (uint8, bytes32, bytes32)

Parameters

NameTypeDescription
``uint256
``bytes32

addr

function addr(
uint256
) external returns (address)

Parameters

NameTypeDescription
``uint256

ffi

function ffi(
string[]
) external returns (bytes)

Parameters

NameTypeDescription
``string[]

prank

function prank(
address
) external

Parameters

NameTypeDescription
``address

startPrank

function startPrank(
address
) external

Parameters

NameTypeDescription
``address

prank

function prank(
address ,
address
) external

Parameters

NameTypeDescription
``address
``address

startPrank

function startPrank(
address ,
address
) external

Parameters

NameTypeDescription
``address
``address

stopPrank

function stopPrank() external

deal

function deal(
address ,
uint256
) external

Parameters

NameTypeDescription
``address
``uint256

etch

function etch(
address ,
bytes
) external

Parameters

NameTypeDescription
``address
``bytes

expectRevert

function expectRevert(
bytes
) external

Parameters

NameTypeDescription
``bytes

expectRevert

function expectRevert(
bytes4
) external

Parameters

NameTypeDescription
``bytes4

record

function record() external

accesses

function accesses(
address
) external returns (bytes32[] reads, bytes32[] writes)

Parameters

NameTypeDescription
``address

expectEmit

function expectEmit(
bool ,
bool ,
bool ,
bool
) external

Parameters

NameTypeDescription
``bool
``bool
``bool
``bool

mockCall

function mockCall(
address ,
bytes ,
bytes
) external

Parameters

NameTypeDescription
``address
``bytes
``bytes

clearMockedCalls

function clearMockedCalls() external

expectCall

function expectCall(
address ,
bytes
) external

Parameters

NameTypeDescription
``address
``bytes

getCode

function getCode(
string
) external returns (bytes)

Parameters

NameTypeDescription
``string

label

function label(
address ,
string
) external

Parameters

NameTypeDescription
``address
``string