Skip to content

Commit

Permalink
test: unify solidity version
Browse files Browse the repository at this point in the history
  • Loading branch information
obatirou authored and oguimbal committed Jan 25, 2023
1 parent 7c9285f commit f7f6973
Show file tree
Hide file tree
Showing 37 changed files with 37 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Install Solidity compiler
uses: pontem-network/get-solc@master
with:
version: v0.8.15
version: v0.8.16

- name: Create env file
run: |
Expand Down
2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

[profile.default]
solc_version = '0.8.15'
solc_version = '0.8.16'
auto_detect_solc = false
optimizer = true
optimizer_runs = 200 # Default amount
Expand Down
2 changes: 1 addition & 1 deletion script/Deploy.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.15;
pragma solidity ^0.8.16;

import "forge-std/Script.sol";
import "foundry-huff/HuffDeployer.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/HyVM/Opcodes.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.15;
pragma solidity ^0.8.16;

import "foundry-huff/HuffDeployer.sol";
import "forge-std/Test.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/forked/Aave.fork.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
pragma solidity ^0.8.16;

import "foundry-huff/HuffDeployer.sol";
import "forge-std/Test.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/forked/ConstantsArbitrum.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.15;
pragma solidity ^0.8.16;

address constant WETH = 0x82aF49447D8a07e3bd95BD0d56f35241523fBab1;
address constant DAI = 0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1;
Expand Down
2 changes: 1 addition & 1 deletion test/forked/ConstantsEthereum.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.15;
pragma solidity ^0.8.16;

address constant DAI = 0x6B175474E89094C44Da98b954EedeAC495271d0F;
address constant USDC = 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48;
Expand Down
2 changes: 1 addition & 1 deletion test/forked/DoubleSwap.fork.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
pragma solidity ^0.8.16;

import "foundry-huff/HuffDeployer.sol";
import "forge-std/Test.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/forked/GMX.fork.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
pragma solidity ^0.8.16;

import "foundry-huff/HuffDeployer.sol";
import "forge-std/Test.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/forked/Morpho.fork.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
pragma solidity ^0.8.16;

import "foundry-huff/HuffDeployer.sol";
import "forge-std/Test.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/forked/calls/CallHyvm.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.15;
pragma solidity ^0.8.16;

contract CallHyvm {
function callHyvm(address hyvm, bytes calldata bytecode) public returns (bytes memory) {
Expand Down
2 changes: 1 addition & 1 deletion test/forked/calls/GMX/GMXLong.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.15;
pragma solidity ^0.8.16;

import {IERC20} from "../../../utils/interfaces/IERC20.sol";
import {USDC, WETH} from "./../../ConstantsArbitrum.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/forked/calls/GMX/IGMX.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.15;
pragma solidity ^0.8.16;

interface IGMXPositionRouter {
function createIncreasePosition(
Expand Down
2 changes: 1 addition & 1 deletion test/forked/calls/aave/DepositBorrowAave.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.15;
pragma solidity ^0.8.16;

import {IERC20} from "./../../../utils/interfaces/IERC20.sol";
import {aUSDC, DAI, USDC} from "../../ConstantsEthereum.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/forked/calls/aave/ILendingPool.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.15;
pragma solidity ^0.8.16;

interface ILendingPool {
function deposit(address asset, uint256 amount, address onBehalfOf, uint16 referralCode) external;
Expand Down
2 changes: 1 addition & 1 deletion test/forked/calls/doubleSwap/DoubleSwap.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.15;
pragma solidity ^0.8.16;

import {IUniswapV2Router01} from "../../../utils/interfaces/IUniswapV2Router01.sol";
import {IERC20} from "../../../utils/interfaces/IERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/forked/calls/limitTesting/Jumps_hyvm.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.15;
pragma solidity ^0.8.16;

import {IUniswapV2Router01} from "../../../utils/interfaces/IUniswapV2Router01.sol";
import {IERC20} from "../../../utils/interfaces/IERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/forked/calls/limitTesting/LoopedCall_hyvm.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.15;
pragma solidity ^0.8.16;

contract LoopedCall {
constructor(ILooper _looper, uint256 i) {
Expand Down
2 changes: 1 addition & 1 deletion test/forked/calls/limitTesting/MaximumStackSize_hyvm.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.15;
pragma solidity ^0.8.16;

import {IUniswapV2Router01} from "../../../utils/interfaces/IUniswapV2Router01.sol";
import {IERC20} from "../../../utils/interfaces/IERC20.sol";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.15;
pragma solidity ^0.8.16;

import {IUniswapV2Router01} from "../../../utils/interfaces/IUniswapV2Router01.sol";
import {IERC20} from "../../../utils/interfaces/IERC20.sol";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.15;
pragma solidity ^0.8.16;

import {IUniswapV2Router01} from "../../../utils/interfaces/IUniswapV2Router01.sol";
import {IERC20} from "../../../utils/interfaces/IERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/forked/calls/morpho/ILens.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.15;
pragma solidity ^0.8.16;

interface ILens {
function getCurrentBorrowBalanceInOf(address _poolTokenAddress, address _user)
Expand Down
2 changes: 1 addition & 1 deletion test/forked/calls/morpho/IMorpho.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.15;
pragma solidity ^0.8.16;

interface IMorpho {
function supply(address _poolTokenAddress, address _onBehalf, uint256 _amount) external;
Expand Down
2 changes: 1 addition & 1 deletion test/forked/calls/morpho/SupplyBorrowMorpho.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.15;
pragma solidity ^0.8.16;

import {IERC20} from "../../../utils/interfaces/IERC20.sol";
import {cDAI, cUSDC, DAI, USDC} from "../../ConstantsEthereum.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/forked/limits/Absurd.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
pragma solidity ^0.8.16;

import "foundry-huff/HuffDeployer.sol";
import "forge-std/Test.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/forked/limits/Jumps.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
pragma solidity ^0.8.16;

import "foundry-huff/HuffDeployer.sol";
import "forge-std/Test.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/forked/limits/Swaps.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
pragma solidity ^0.8.16;

import "foundry-huff/HuffDeployer.sol";
import "forge-std/Test.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/forked/limits/loopedCall/LoopedCall.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
pragma solidity ^0.8.16;

import "foundry-huff/HuffDeployer.sol";
import "forge-std/Test.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/forked/limits/loopedCall/Looper.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
pragma solidity ^0.8.16;

import "foundry-huff/HuffDeployer.sol";
import "forge-std/Test.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/utils/Utils.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.15;
pragma solidity ^0.8.16;

import "forge-std/Test.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/utils/Utils.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
pragma solidity ^0.8.16;

import "forge-std/Test.sol";
import "forge-std/console.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/utils/interfaces/IUniswapV2Router01.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.15;
pragma solidity ^0.8.16;

interface IUniswapV2Router01 {
function swapExactTokensForTokens(
Expand Down
2 changes: 1 addition & 1 deletion test/verifiers/CallVerifiers.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
pragma solidity ^0.8.16;

import "./IHyVMCallVerifier.sol";
import {Utils} from "../utils/Utils.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/verifiers/Calls.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
pragma solidity ^0.8.16;

import "foundry-huff/HuffDeployer.sol";
import "forge-std/Test.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/verifiers/IHyVMCallVerifier.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity ^0.8.16;

/**
* @dev A call verifier for HyVM
Expand Down
2 changes: 1 addition & 1 deletion test/verifiers/MyToken.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
pragma solidity ^0.8.16;

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

Expand Down
2 changes: 1 addition & 1 deletion test/verifiers/SendERC20.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.15;
pragma solidity ^0.8.16;

import {IERC20} from "../utils/interfaces/IERC20.sol";

Expand Down

0 comments on commit f7f6973

Please sign in to comment.