Skip to content

Commit

Permalink
test: try back 0.8.24
Browse files Browse the repository at this point in the history
  • Loading branch information
MathisGD committed Aug 16, 2024
1 parent 142aeb9 commit 19e31ac
Show file tree
Hide file tree
Showing 25 changed files with 37 additions and 37 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/certora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ jobs:
chmod +x solc-static-linux
sudo mv solc-static-linux /usr/local/bin/solc-0.8.19
- name: Install solc (0.8.26)
- name: Install solc (0.8.24)
run: |
wget https://github.com/ethereum/solidity/releases/download/v0.8.26/solc-static-linux
wget https://github.com/ethereum/solidity/releases/download/v0.8.24/solc-static-linux
chmod +x solc-static-linux
sudo mv solc-static-linux /usr/local/bin/solc-0.8.26
sudo mv solc-static-linux /usr/local/bin/solc-0.8.24
- name: Apply munging
run: make -C certora munged
Expand Down
2 changes: 1 addition & 1 deletion certora/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This folder contains the verification of MetaMorpho using CVL, Certora's Verific

The code is compiled using 2 versions of solidity, which must be installed to run the verification as:

- `solc` for solidity compiler version 0.8.26 which is used for compiling MetaMorpho
- `solc` for solidity compiler version 0.8.24 which is used for compiling MetaMorpho
- `solc8.19` for solidity compiler version 0.8.19 which is used for compiling Morpho Blue.

The verification is run on modified source files, which are made available by running:
Expand Down
2 changes: 1 addition & 1 deletion certora/confs/ConsistentState.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"certora/helpers/MetaMorphoHarness.sol",
"certora/helpers/Util.sol",
],
"solc": "solc-0.8.26",
"solc": "solc-0.8.24",
"parametric_contracts": [
"MetaMorphoHarness",
],
Expand Down
2 changes: 1 addition & 1 deletion certora/confs/DistinctIdentifiers.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"files": [
"certora/helpers/MetaMorphoHarness.sol",
],
"solc": "solc-0.8.26",
"solc": "solc-0.8.24",
"verify": "MetaMorphoHarness:certora/specs/DistinctIdentifiers.spec",
"loop_iter": "2",
"optimistic_loop": true,
Expand Down
2 changes: 1 addition & 1 deletion certora/confs/Enabled.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"files": [
"certora/helpers/MetaMorphoHarness.sol",
],
"solc": "solc-0.8.26",
"solc": "solc-0.8.24",
"verify": "MetaMorphoHarness:certora/specs/Enabled.spec",
"loop_iter": "2",
"optimistic_loop": true,
Expand Down
2 changes: 1 addition & 1 deletion certora/confs/Immutability.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"files": [
"certora/helpers/MetaMorphoHarness.sol",
],
"solc": "solc-0.8.26",
"solc": "solc-0.8.24",
"verify": "MetaMorphoHarness:certora/specs/Immutability.spec",
"loop_iter": "2",
"optimistic_loop": true,
Expand Down
4 changes: 2 additions & 2 deletions certora/confs/LastUpdated.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
],
"solc_map": {
"MorphoHarness": "solc-0.8.19",
"MetaMorphoHarness": "solc-0.8.26",
"Util": "solc-0.8.26",
"MetaMorphoHarness": "solc-0.8.24",
"Util": "solc-0.8.24",
},
"verify": "MetaMorphoHarness:certora/specs/LastUpdated.spec",
"loop_iter": "2",
Expand Down
4 changes: 2 additions & 2 deletions certora/confs/Liveness.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
],
"solc_map": {
"MorphoHarness": "solc-0.8.19",
"MetaMorphoHarness": "solc-0.8.26",
"Util": "solc-0.8.26",
"MetaMorphoHarness": "solc-0.8.24",
"Util": "solc-0.8.24",
},
"verify": "MetaMorphoHarness:certora/specs/Liveness.spec",
"loop_iter": "2",
Expand Down
4 changes: 2 additions & 2 deletions certora/confs/LostAssetsLink.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"certora/helpers/Util.sol",
],
"solc_map": {
"MetaMorphoHarness": "solc-0.8.26",
"MetaMorphoHarness": "solc-0.8.24",
"MorphoHarness": "solc-0.8.19",
"Util": "solc-0.8.26"
"Util": "solc-0.8.24"
},
"link": [
"MetaMorphoHarness:MORPHO=MorphoHarness",
Expand Down
2 changes: 1 addition & 1 deletion certora/confs/LostAssetsNoLink.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"files": [
"certora/helpers/MetaMorphoHarness.sol",
],
"solc": "solc-0.8.26",
"solc": "solc-0.8.24",
"verify": "MetaMorphoHarness:certora/specs/LostAssetsNoLink.spec",
"loop_iter": "2",
"optimistic_loop": true,
Expand Down
2 changes: 1 addition & 1 deletion certora/confs/MarketInteractions.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"certora/helpers/MetaMorphoHarness.sol",
"certora/helpers/Util.sol",
],
"solc": "solc-0.8.26",
"solc": "solc-0.8.24",
"parametric_contracts": [
"MetaMorphoHarness",
],
Expand Down
2 changes: 1 addition & 1 deletion certora/confs/PendingValues.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"files": [
"certora/helpers/MetaMorphoHarness.sol",
],
"solc": "solc-0.8.26",
"solc": "solc-0.8.24",
"verify": "MetaMorphoHarness:certora/specs/PendingValues.spec",
"loop_iter": "2",
"optimistic_loop": true,
Expand Down
2 changes: 1 addition & 1 deletion certora/confs/Range.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"files": [
"certora/helpers/MetaMorphoHarness.sol",
],
"solc": "solc-0.8.26",
"solc": "solc-0.8.24",
"verify": "MetaMorphoHarness:certora/specs/Range.spec",
"loop_iter": "2",
"optimistic_loop": true,
Expand Down
2 changes: 1 addition & 1 deletion certora/confs/Reentrancy.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"files": [
"certora/helpers/MetaMorphoHarness.sol",
],
"solc": "solc-0.8.26",
"solc": "solc-0.8.24",
"verify": "MetaMorphoHarness:certora/specs/Reentrancy.spec",
"loop_iter": "2",
"optimistic_loop": true,
Expand Down
6 changes: 3 additions & 3 deletions certora/confs/Reverts.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
],
"solc_map": {
"MorphoHarness": "solc-0.8.19",
"MetaMorphoHarness": "solc-0.8.26",
"Util": "solc-0.8.26",
"ERC20Standard": "solc-0.8.26",
"MetaMorphoHarness": "solc-0.8.24",
"Util": "solc-0.8.24",
"ERC20Standard": "solc-0.8.24",
},
"verify": "MetaMorphoHarness:certora/specs/Reverts.spec",
"loop_iter": "2",
Expand Down
2 changes: 1 addition & 1 deletion certora/confs/Roles.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"files": [
"certora/helpers/MetaMorphoHarness.sol",
],
"solc": "solc-0.8.26",
"solc": "solc-0.8.24",
"verify": "MetaMorphoHarness:certora/specs/Roles.spec",
"loop_iter": "2",
"optimistic_loop": true,
Expand Down
2 changes: 1 addition & 1 deletion certora/confs/Timelock.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"solc_map": {
"MorphoHarness": "solc-0.8.19",
"MetaMorphoHarness": "solc-0.8.26",
"MetaMorphoHarness": "solc-0.8.24",
},
"verify": "MetaMorphoHarness:certora/specs/Timelock.spec",
"loop_iter": "2",
Expand Down
10 changes: 5 additions & 5 deletions certora/confs/Tokens.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
],
"solc_map": {
"MorphoHarness": "solc-0.8.19",
"MetaMorphoHarness": "solc-0.8.26",
"Util": "solc-0.8.26",
"ERC20NoRevert": "solc-0.8.26",
"ERC20Standard": "solc-0.8.26",
"ERC20USDT": "solc-0.8.26",
"MetaMorphoHarness": "solc-0.8.24",
"Util": "solc-0.8.24",
"ERC20NoRevert": "solc-0.8.24",
"ERC20Standard": "solc-0.8.24",
"ERC20USDT": "solc-0.8.24",
},
"verify": "MetaMorphoHarness:certora/specs/Tokens.spec",
"loop_iter": "2",
Expand Down
2 changes: 1 addition & 1 deletion certora/helpers/IMorphoHarness.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity 0.8.26;
pragma solidity 0.8.24;

import {Id, MarketParams, Market, IMorpho} from "../../lib/morpho-blue/src/interfaces/IMorpho.sol";

Expand Down
2 changes: 1 addition & 1 deletion certora/helpers/MetaMorphoHarness.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity 0.8.26;
pragma solidity 0.8.24;

import {
Math, MetaMorpho, Id, ConstantsLib, PendingUint192, PendingAddress, MarketConfig
Expand Down
2 changes: 1 addition & 1 deletion certora/helpers/Util.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity 0.8.26;
pragma solidity 0.8.24;

import {
MarketParams,
Expand Down
2 changes: 1 addition & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: "0.8.26",
version: "0.8.24",
settings: {
optimizer: {
enabled: false,
Expand Down
2 changes: 1 addition & 1 deletion src/MetaMorpho.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity 0.8.26;
pragma solidity 0.8.24;

import {
MarketConfig,
Expand Down
2 changes: 1 addition & 1 deletion src/MetaMorphoFactory.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity 0.8.26;
pragma solidity 0.8.24;

import {IMetaMorpho} from "./interfaces/IMetaMorpho.sol";
import {IMetaMorphoFactory} from "./interfaces/IMetaMorphoFactory.sol";
Expand Down
4 changes: 2 additions & 2 deletions test/forge/helpers/IntegrationTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ contract IntegrationTest is BaseTest {
}

// Deploy MetaMorpho from artifacts
// Replaces using `new MetaMorpho` which would force 0.8.26 on all tests
// (since MetaMorpho has pragma solidity 0.8.26)
// Replaces using `new MetaMorpho` which would force 0.8.24 on all tests
// (since MetaMorpho has pragma solidity 0.8.24)
function createMetaMorpho(
address owner,
address morpho,
Expand Down

0 comments on commit 19e31ac

Please sign in to comment.