MockContract
Git Source - Generated with forge doc
Inherits: Proxy
Mock contract that tracks the number of calls to various functions by selector
allows for proxying to an implementation contract if real logic or return values are needed
State Variables
calls
mapping(bytes32 => uint256) public calls;
callParams
mapping(bytes32 => mapping(bytes => uint256)) public callParams;
impl
If set, delegatecall to implementation after tracking call
address internal impl;
Functions
timesCalledSelector
function timesCalledSelector(bytes32 selector) public view returns (uint256);