Skip to content

Commit

Permalink
build: upgrade solidity version to 0.8.21 (#688)
Browse files Browse the repository at this point in the history
* build: upgrade solidity version to 0.8.21

* build: bump the pragma back to >=0.8.19

* build: show unproved and unsupported SMTChecker

* refactor: update gas snapshot

---------

Co-authored-by: Paul Razvan Berg <[email protected]>
  • Loading branch information
andreivladbrg and PaulRBerg authored Sep 17, 2023
1 parent cfd3150 commit 2705399
Show file tree
Hide file tree
Showing 17 changed files with 416 additions and 291 deletions.
669 changes: 396 additions & 273 deletions .gas-snapshot

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
out = "out"
script = "script"
sender = "0x1804c8AB1F12E6bbf3894d4083f33e07309d1f38"
solc = "0.8.19"
solc = "0.8.21"
src = "src"
test = "test"

Expand Down Expand Up @@ -53,7 +53,9 @@
[profile.smt.model_checker]
engine = "chc" # constrained Horn clauses
invariants = ["contract", "reentrancy"]
show_proved_safe = true
show_unproved = true
show_unsupported = true
timeout = 100_000 # in milliseconds, per solving query
targets = [
"assert",
Expand Down
2 changes: 1 addition & 1 deletion script/Base.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.8.19 <=0.9.0;
pragma solidity >=0.8.19 <0.9.0;

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

Expand Down
2 changes: 1 addition & 1 deletion script/DeployComptroller.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.8.19 <=0.9.0;
pragma solidity >=0.8.19 <0.9.0;

import { SablierV2Comptroller } from "../src/SablierV2Comptroller.sol";

Expand Down
2 changes: 1 addition & 1 deletion script/DeployCore.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.8.19 <=0.9.0;
pragma solidity >=0.8.19 <0.9.0;

import { SablierV2Comptroller } from "../src/SablierV2Comptroller.sol";
import { SablierV2LockupDynamic } from "../src/SablierV2LockupDynamic.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/DeployCore2.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.8.19 <=0.9.0;
pragma solidity >=0.8.19 <0.9.0;

import { ISablierV2NFTDescriptor } from "../src/interfaces/ISablierV2NFTDescriptor.sol";
import { SablierV2Comptroller } from "../src/SablierV2Comptroller.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/DeployDeterministicComptroller.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.8.19 <=0.9.0;
pragma solidity >=0.8.19 <0.9.0;

import { SablierV2Comptroller } from "../src/SablierV2Comptroller.sol";

Expand Down
2 changes: 1 addition & 1 deletion script/DeployDeterministicCore.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.8.19 <=0.9.0;
pragma solidity >=0.8.19 <0.9.0;

import { SablierV2Comptroller } from "../src/SablierV2Comptroller.sol";
import { SablierV2LockupDynamic } from "../src/SablierV2LockupDynamic.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/DeployDeterministicCore2.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.8.19 <=0.9.0;
pragma solidity >=0.8.19 <0.9.0;

import { ISablierV2NFTDescriptor } from "../src/interfaces/ISablierV2NFTDescriptor.sol";
import { SablierV2Comptroller } from "../src/SablierV2Comptroller.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/DeployDeterministicLockupDynamic.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.8.19 <=0.9.0;
pragma solidity >=0.8.19 <0.9.0;

import { ISablierV2Comptroller } from "../src/interfaces/ISablierV2Comptroller.sol";
import { ISablierV2NFTDescriptor } from "../src/interfaces/ISablierV2NFTDescriptor.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/DeployDeterministicLockupLinear.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.8.19 <=0.9.0;
pragma solidity >=0.8.19 <0.9.0;

import { ISablierV2Comptroller } from "../src/interfaces/ISablierV2Comptroller.sol";
import { ISablierV2NFTDescriptor } from "../src/interfaces/ISablierV2NFTDescriptor.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/DeployLockupDynamic.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.8.19 <=0.9.0;
pragma solidity >=0.8.19 <0.9.0;

import { ISablierV2Comptroller } from "../src/interfaces/ISablierV2Comptroller.sol";
import { ISablierV2NFTDescriptor } from "../src/interfaces/ISablierV2NFTDescriptor.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/DeployLockupLinear.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.8.19 <=0.9.0;
pragma solidity >=0.8.19 <0.9.0;

import { ISablierV2Comptroller } from "../src/interfaces/ISablierV2Comptroller.sol";
import { ISablierV2NFTDescriptor } from "../src/interfaces/ISablierV2NFTDescriptor.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/GenerateSVG.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.8.19 <=0.9.0;
pragma solidity >=0.8.19 <0.9.0;

import { Strings } from "@openzeppelin/contracts/utils/Strings.sol";

Expand Down
2 changes: 1 addition & 1 deletion script/Init.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.8.19 <=0.9.0;
pragma solidity >=0.8.19 <0.9.0;

import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";

Expand Down
6 changes: 3 additions & 3 deletions test/utils/Precompiles.sol

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test/utils/Precompiles.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.19 <=0.9.0;
pragma solidity >=0.8.19 <0.9.0;

import { LibString } from "solady/utils/LibString.sol";

Expand Down

0 comments on commit 2705399

Please sign in to comment.