forge::executors::invariant

Module IInvariantTest

Source
Expand description

Module containing a contract’s types and functions.

interface IInvariantTest {
    struct FuzzSelector { address addr; bytes4[] selectors; }
    struct FuzzArtifactSelector { string artifact; bytes4[] selectors; }
    struct FuzzInterface { address addr; string[] artifacts; }
    function afterInvariant() external;
    function excludeArtifacts() public view returns (string[] memory excludedArtifacts);
    function excludeContracts() public view returns (address[] memory excludedContracts);
    function excludeSelectors() public view returns (FuzzSelector[] memory excludedSelectors);
    function excludeSenders() public view returns (address[] memory excludedSenders);
    function targetArtifacts() public view returns (string[] memory targetedArtifacts);
    function targetArtifactSelectors() public view returns (FuzzArtifactSelector[] memory targetedArtifactSelectors);
    function targetContracts() public view returns (address[] memory targetedContracts);
    function targetSelectors() public view returns (FuzzSelector[] memory targetedSelectors);
    function targetSenders() public view returns (address[] memory targetedSenders);
    function targetInterfaces() public view returns (FuzzInterface[] memory targetedInterfaces);
}

Structs§

Enums§