Skip to content

Commit

Permalink
refactor: updated solidity version
Browse files Browse the repository at this point in the history
  • Loading branch information
TokenTitan committed Jul 29, 2024
1 parent b1a5bce commit 960c4dd
Show file tree
Hide file tree
Showing 39 changed files with 44 additions and 48 deletions.
2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ src = 'src'
out = 'out'
libs = ['lib']
evm_version = "cancun"
solc = "0.8.23"
solc = "0.8.26"

ffi = true
ast = true
Expand Down
2 changes: 1 addition & 1 deletion script/BaseDeployer.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {Script} from "forge-std/Script.sol";

Expand Down
2 changes: 1 addition & 1 deletion script/CallBreaker.s.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {Script} from "forge-std/Script.sol";
import {CallBreaker} from "../src/timetravel/CallBreaker.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/Laminator.s.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {Script} from "forge-std/Script.sol";
import {BaseDeployer} from "./BaseDeployer.s.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/SmarterContract.s.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {Script} from "forge-std/Script.sol";
import {BaseDeployer} from "./BaseDeployer.s.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/test/CronCounter.s.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {Script} from "forge-std/Script.sol";
import {BaseDeployer} from "../BaseDeployer.s.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/test/SelfCheckout.s.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {Script} from "forge-std/Script.sol";
import {BaseDeployer} from "script/BaseDeployer.s.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/CallBreaker.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.6.2 <0.9.0;
pragma solidity 0.8.26;

import "forge-std/Test.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/CronCounter.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.6.2 <0.9.0;
pragma solidity 0.8.26;

import "forge-std/Test.sol";
import "forge-std/Vm.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/FlashLiquidity.t.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-3.0

pragma solidity >=0.6.2 <0.9.0;
pragma solidity 0.8.26;

import "forge-std/Test.sol";
import "../src/timetravel/CallBreaker.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/FlashPill.t.sol → test/FlashPillTest.t.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-3.0

pragma solidity >=0.6.2 <0.9.0;
pragma solidity 0.8.26;

import "forge-std/Test.sol";
import "../src/timetravel/CallBreaker.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/GasSnapshot.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.6.2 <0.9.0;
pragma solidity 0.8.26;

import {Test} from "forge-std/Test.sol";
import {LaminatorHarness} from "./Laminator.t.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/Laminator.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.6.2 <0.9.0;
pragma solidity 0.8.26;

import "forge-std/Test.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/LimitOrder.t.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-3.0

pragma solidity >=0.6.2 <0.9.0;
pragma solidity 0.8.26;

import "forge-std/Test.sol";
import "../src/timetravel/CallBreaker.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/MEVTimeCompute.t.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-3.0

pragma solidity 0.8.23;
pragma solidity 0.8.26;

import "forge-std/Test.sol";
import "src/timetravel/CallBreaker.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/NoopTurner.t.sol → test/NoopTurnerTest.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.6.2 <0.9.0;
pragma solidity 0.8.26;

import "forge-std/Test.sol";
import "../src/timetravel/CallBreaker.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/PnP.t.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-3.0

pragma solidity >=0.6.2 <0.9.0;
pragma solidity 0.8.26;

import "forge-std/Test.sol";
import "../src/timetravel/CallBreaker.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/SelfCheckout.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.6.2 <0.9.0;
pragma solidity 0.8.26;

import "forge-std/Test.sol";
import "forge-std/Vm.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/SmarterContract.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.6.2 <0.9.0;
pragma solidity 0.8.26;

import "forge-std/Test.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/TimeTypes.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.6.2 <0.9.0;
pragma solidity 0.8.26;

import {Test} from "forge-std/Test.sol";
import {CallObject, CallObjectStorage} from "../src/TimeTypes.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/contracts/CallBreakerHarness.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.6.2 <0.9.0;
pragma solidity 0.8.26;

import {CallBreaker, CallObject, ReturnObject} from "src/timetravel/CallBreaker.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/contracts/SmarterContractHarness.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.6.2 <0.9.0;
pragma solidity 0.8.26;

import {SmarterContract, CallObject} from "src/timetravel/SmarterContract.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/examples/CronCounter.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-3.0

pragma solidity >=0.6.2 <0.9.0;
pragma solidity 0.8.26;

import "../../src/timetravel/SmarterContract.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/examples/DeFi/SelfCheckout.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.6.2 <0.9.0;
pragma solidity 0.8.26;

import "openzeppelin/token/ERC20/IERC20.sol";
import "src/TimeTypes.sol";
Expand Down
16 changes: 6 additions & 10 deletions test/examples/FlashLiquidity.sol
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.6.2 <0.9.0;
pragma solidity 0.8.26;

import "forge-std/Test.sol";
import "forge-std/console.sol";

import "../utils/interfaces/ISwapRouter.sol";
import "openzeppelin/token/ERC20/ERC20.sol";
import "../utils/interfaces/IWeth.sol";
import "../../src/timetravel/CallBreaker.sol";
import "../../src/timetravel/SmarterContract.sol";
import "../../src/TimeTypes.sol";
import "src/timetravel/CallBreaker.sol";
import "src/timetravel/SmarterContract.sol";
import "src/TimeTypes.sol";
import "test/utils/interfaces/ISwapRouter.sol";
import "test/utils/interfaces/IWeth.sol";

address constant DAI = 0x6B175474E89094C44Da98b954EedeAC495271d0F;
address constant WETH9 = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;
Expand Down Expand Up @@ -73,7 +70,6 @@ contract FlashLiquidity is SmarterContract {

// The call to `exactInputSingle` executes the swap.
uint256 amountOut = router.exactInputSingle(params);
console.log("WETH", amountOut);

// check whether or not
CallObject memory callObj = CallObject({
Expand Down
2 changes: 1 addition & 1 deletion test/examples/FlashPill.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.6.2 <0.9.0;
pragma solidity 0.8.26;

import "openzeppelin/token/ERC20/IERC20.sol";
import "../../src/timetravel/CallBreaker.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/examples/LimitOrder.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.23;
pragma solidity 0.8.26;

import "../utils/interfaces/ISwapRouter.sol";
import "../../src/timetravel/CallBreaker.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/examples/MEVOracle/MEVTimeCompute.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.23;
pragma solidity 0.8.26;

import "src/timetravel/CallBreaker.sol";
import "src/timetravel/SmarterContract.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/examples/MyErc20.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.6.2 <0.9.0;
pragma solidity 0.8.26;

import "openzeppelin/token/ERC20/ERC20.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/examples/NoopTurner.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-3.0

pragma solidity >=0.6.2 <0.9.0;
pragma solidity 0.8.26;

import "../../src/timetravel/CallBreaker.sol";
import "../../src/timetravel/SmarterContract.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/examples/PnP.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-3.0

pragma solidity >=0.6.2 <0.9.0;
pragma solidity 0.8.26;

import "../../src/timetravel/CallBreaker.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/solve-lib/CronCounterLib.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.6.2 <0.9.0;
pragma solidity 0.8.26;

import "forge-std/Vm.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/solve-lib/DeFi/SelfCheckoutLib.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.6.2 <0.9.0;
pragma solidity 0.8.26;

import "forge-std/Vm.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/solve-lib/FlashLiquidityLib.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.6.2 <0.9.0;
pragma solidity 0.8.26;

import "../../src/lamination/Laminator.sol";
import "../../src/timetravel/CallBreaker.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/solve-lib/FlashPillLib.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.6.2 <0.9.0;
pragma solidity 0.8.26;

import "src/lamination/Laminator.sol";
import "src/timetravel/CallBreaker.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/solve-lib/LimitOrderLib.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.6.2 <0.9.0;
pragma solidity 0.8.26;

import "src/lamination/Laminator.sol";
import "src/timetravel/CallBreaker.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/solve-lib/MEVTimeOracle/MEVTimeComputeLib.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.23;
pragma solidity 0.8.26;

import "src/lamination/Laminator.sol";
import "src/timetravel/CallBreaker.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/solve-lib/PnPLib.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.6.2 <0.9.0;
pragma solidity 0.8.26;

import "forge-std/Vm.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/utils/MockSwapRouter.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.23;
pragma solidity 0.8.26;

import {IWETH, IERC20} from "../utils/interfaces/IWeth.sol";
import {ISwapRouter} from "../utils/interfaces/ISwapRouter.sol";
Expand Down

0 comments on commit 960c4dd

Please sign in to comment.