Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/Fuzzlib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ pragma solidity ^0.8.0;

import {HelperBase} from "./helpers/HelperBase.sol";
import {HelperAssert} from "./helpers/HelperAssert.sol";
import {HelperCheats} from "./helpers/HelperCheats.sol";
import {HelperClamp} from "./helpers/HelperClamp.sol";
import {HelperLog} from "./helpers/HelperLog.sol";
import {HelperMath} from "./helpers/HelperMath.sol";
Expand All @@ -12,7 +11,6 @@ import {HelperRandom} from "./helpers/HelperRandom.sol";
contract Fuzzlib is
HelperBase,
HelperAssert,
HelperCheats,
HelperClamp,
HelperLog,
HelperMath,
Expand Down
5 changes: 4 additions & 1 deletion src/IHevm.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/// @author https://github.com/crytic/properties/blob/2526765eedd9bda30c168cd271fa403ac72cb1a9/contracts/util/Hevm.sol
import {Constants} from "./Constants.sol";

interface IHevm {
// Set block.timestamp to newTimestamp
function warp(uint256 newTimestamp) external;
Expand Down Expand Up @@ -51,3 +52,5 @@ interface IHevm {
// Labels the address in traces
function label(address addr, string calldata label) external;
}

IHevm constant vm = IHevm(Constants.ADDRESS_CHEATS);
4 changes: 4 additions & 0 deletions src/IStdCheats.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {Constants} from "./Constants.sol";

// Available cheat codes for Medusa
// Documentation: https://github.com/crytic/medusa/tree/dev/mdbook/docs/src/cheatcodes
// Usage: https://github.com/crytic/medusa/blob/dev/mdbook/docs/src/cheatcodes_overview.md
Expand Down Expand Up @@ -76,3 +78,5 @@ interface IStdCheats {
function parseInt(string memory) external returns(int256);
function parseBool(string memory) external returns(bool);
}

IStdCheats constant vm = IStdCheats(Constants.ADDRESS_CHEATS);
27 changes: 0 additions & 27 deletions src/helpers/HelperCheats.sol

This file was deleted.