Skip to content

Commit

Permalink
📌 solidity: relax version ranges for tests and scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
cruzdanilo committed Nov 16, 2023
1 parent 1bced03 commit a0646dc
Show file tree
Hide file tree
Showing 26 changed files with 241 additions and 241 deletions.
432 changes: 216 additions & 216 deletions .gas-snapshot

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/mocks/FixedPoolHarness.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;
pragma solidity ^0.8.17;

import { FixedLib } from "../utils/FixedLib.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/MarketHarness.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;
pragma solidity ^0.8.17;

import { Auditor, ERC20, InterestRateModel, Market } from "../Market.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/MockBalancerVault.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;
pragma solidity ^0.8.17;

import { ERC20 } from "solmate/src/tokens/ERC20.sol";
import { ReentrancyGuard } from "solmate/src/utils/ReentrancyGuard.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/MockInterestRateModel.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;
pragma solidity ^0.8.17;

contract MockInterestRateModel {
uint256 public borrowRate;
Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/MockPriceFeed.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;
pragma solidity ^0.8.17;

import { MockERC20 } from "solmate/src/test/utils/mocks/MockERC20.sol";
import { IPriceFeed } from "../utils/IPriceFeed.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/MockStETH.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;
pragma solidity ^0.8.17;

import { ERC20 } from "solmate/src/tokens/ERC20.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/utils/IPriceFeed.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;
pragma solidity ^0.8.17;

interface IPriceFeed {
function decimals() external view returns (uint8);
Expand Down
2 changes: 1 addition & 1 deletion contracts/utils/import.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;
pragma solidity ^0.8.17;

import { ProxyAdmin } from "@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol";
import { TimelockController } from "@openzeppelin/contracts/governance/TimelockController.sol";
Expand Down
2 changes: 1 addition & 1 deletion scripts/Base.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;
pragma solidity ^0.8.17;

import { ForkTest } from "../test/Fork.t.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/Airdrop.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;
pragma solidity ^0.8.17;

import { MockERC20 } from "solmate/src/test/utils/mocks/MockERC20.sol";
import { ERC1967Proxy } from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/Auditor.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;
pragma solidity ^0.8.17;

import { Vm } from "forge-std/Vm.sol";
import { Test } from "forge-std/Test.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/DebtManager.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;
pragma solidity ^0.8.17;

import { ForkTest, stdJson, stdError } from "./Fork.t.sol";
import { FixedPointMathLib } from "solmate/src/utils/FixedPointMathLib.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/DebtPreviewer.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;
pragma solidity ^0.8.17;

import { ForkTest, stdError } from "./Fork.t.sol";
import { FixedPointMathLib } from "solmate/src/utils/FixedPointMathLib.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/EscrowedEXA.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;
pragma solidity ^0.8.17;

import { FixedPointMathLib } from "solmate/src/utils/FixedPointMathLib.sol";
import { ERC1967Proxy } from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/FixedLib.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;
pragma solidity ^0.8.17;

import { Vm } from "forge-std/Vm.sol";
import { Test, stdError } from "forge-std/Test.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/Fork.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;
pragma solidity ^0.8.17;

import { Test, stdError, stdJson } from "forge-std/Test.sol";
import { ProxyAdmin, ITransparentUpgradeableProxy } from "@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/InterestRateModel.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;
pragma solidity ^0.8.17;

import { Test } from "forge-std/Test.sol";
import { FixedPointMathLib } from "solmate/src/utils/FixedPointMathLib.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/Market.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;
pragma solidity ^0.8.17;

import { MockERC20 } from "solmate/src/test/utils/mocks/MockERC20.sol";
import { ERC1967Proxy } from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/Previewer.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;
pragma solidity ^0.8.17;

import { Vm } from "forge-std/Vm.sol";
import { Test } from "forge-std/Test.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/PriceFeedDouble.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;
pragma solidity ^0.8.17;

import { Vm } from "forge-std/Vm.sol";
import { Test, stdError } from "forge-std/Test.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/PriceFeedPool.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;
pragma solidity ^0.8.17;

import { MockERC20 } from "solmate/src/test/utils/mocks/MockERC20.sol";
import { Test, stdError } from "forge-std/Test.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/PriceFeedWrapper.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;
pragma solidity ^0.8.17;

import { Vm } from "forge-std/Vm.sol";
import { Test, stdError } from "forge-std/Test.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/Protocol.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;
pragma solidity ^0.8.17;

import { Vm } from "forge-std/Vm.sol";
import { LibString } from "solmate/src/utils/LibString.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/RewardsController.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;
pragma solidity ^0.8.17;

import { Vm } from "forge-std/Vm.sol";
import { MockERC20 } from "solmate/src/test/utils/mocks/MockERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/Swapper.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.17;
pragma solidity ^0.8.17;

import { ForkTest } from "./Fork.t.sol";
import { FixedPointMathLib } from "solmate/src/utils/FixedPointMathLib.sol";
Expand Down

0 comments on commit a0646dc

Please sign in to comment.