Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Certora] Via IR #466

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/certora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
python-version: "3.10"

- name: Install certora
run: pip install certora-cli
run: pip install certora-cli-beta

- name: Install solc
run: |
Expand Down
4 changes: 4 additions & 0 deletions certora/configuration/AccrueInterest.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
"files": [
"certora/harness/MorphoHarness.sol"
],
"solc_via_ir": true,
"solc_optimize": "4294967295",
"verify": "MorphoHarness:certora/specs/AccrueInterest.spec",
"prover_version": "master",
"function_finder_mode": "relaxed",
"prover_args": [
"-smt_hashingScheme plaininjectivity",
"-mediumTimeout 30"
Expand Down
4 changes: 4 additions & 0 deletions certora/configuration/ConsistentState.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"files": [
"certora/harness/MorphoHarness.sol"
],
"solc_via_ir": true,
"solc_optimize": "4294967295",
"verify": "MorphoHarness:certora/specs/ConsistentState.spec",
"prover_version": "master",
"function_finder_mode": "relaxed",
"msg": "Morpho Blue Consistent State"
}
4 changes: 4 additions & 0 deletions certora/configuration/ExactMath.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
"files": [
"certora/harness/MorphoHarness.sol"
],
"solc_via_ir": true,
"solc_optimize": "4294967295",
"verify": "MorphoHarness:certora/specs/ExactMath.spec",
"prover_version": "master",
"function_finder_mode": "relaxed",
"prover_args": [
"-smt_hashingScheme plaininjectivity",
"-mediumTimeout 30"
Expand Down
4 changes: 4 additions & 0 deletions certora/configuration/ExitLiquidity.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"files": [
"certora/harness/MorphoHarness.sol"
],
"solc_via_ir": true,
"solc_optimize": "4294967295",
"verify": "MorphoHarness:certora/specs/ExitLiquidity.spec",
"prover_version": "master",
"function_finder_mode": "relaxed",
"msg": "Morpho Blue Exit Liquidity"
}
4 changes: 4 additions & 0 deletions certora/configuration/Health.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"certora/harness/MorphoHarness.sol",
"src/mocks/OracleMock.sol"
],
"solc_via_ir": true,
"solc_optimize": "4294967295",
"verify": "MorphoHarness:certora/specs/Health.spec",
"prover_version": "master",
"function_finder_mode": "relaxed",
"prover_args": [
"-smt_hashingScheme plaininjectivity"
],
Expand Down
4 changes: 4 additions & 0 deletions certora/configuration/LibSummary.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"files": [
"certora/harness/MorphoHarness.sol"
],
"solc_via_ir": true,
"solc_optimize": "4294967295",
"verify": "MorphoHarness:certora/specs/LibSummary.spec",
"prover_version": "master",
"function_finder_mode": "relaxed",
"msg": "Morpho Blue Lib Summary"
}
4 changes: 4 additions & 0 deletions certora/configuration/Liveness.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"files": [
"certora/harness/MorphoInternalAccess.sol"
],
"solc_via_ir": true,
"solc_optimize": "4294967295",
"verify": "MorphoInternalAccess:certora/specs/Liveness.spec",
"prover_version": "master",
"function_finder_mode": "relaxed",
"msg": "Morpho Blue Liveness"
}
7 changes: 4 additions & 3 deletions certora/configuration/RatioMath.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
"files": [
"certora/harness/MorphoHarness.sol"
],
"solc_via_ir": true,
"solc_optimize": "4294967295",
"verify": "MorphoHarness:certora/specs/RatioMath.spec",
"prover_args": [
"-smt_hashingScheme plaininjectivity"
],
"prover_version": "master",
"function_finder_mode": "relaxed",
"msg": "Morpho Blue Ratio Math"
}
4 changes: 4 additions & 0 deletions certora/configuration/Reentrancy.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
"files": [
"certora/harness/MorphoHarness.sol"
],
"solc_via_ir": true,
"solc_optimize": "4294967295",
"verify": "MorphoHarness:certora/specs/Reentrancy.spec",
"prover_version": "master",
"function_finder_mode": "relaxed",
"prover_args": [
"-enableStorageSplitting false"
],
Expand Down
4 changes: 4 additions & 0 deletions certora/configuration/Reverts.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"files": [
"certora/harness/MorphoHarness.sol"
],
"solc_via_ir": true,
"solc_optimize": "4294967295",
"verify": "MorphoHarness:certora/specs/Reverts.spec",
"prover_version": "master",
"function_finder_mode": "relaxed",
"msg": "Morpho Blue Reverts"
}
4 changes: 4 additions & 0 deletions certora/configuration/Transfer.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"certora/dispatch/ERC20USDT.sol",
"certora/dispatch/ERC20NoRevert.sol"
],
"solc_via_ir": true,
"solc_optimize": "4294967295",
"verify": "TransferHarness:certora/specs/Transfer.spec",
"prover_version": "master",
"function_finder_mode": "relaxed",
"msg": "Morpho Blue Transfer"
}
2 changes: 1 addition & 1 deletion certora/specs/AccrueInterest.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
methods {
function extSloads(bytes32[]) external returns bytes32[] => NONDET DELETE(true);
function extSloads(bytes32[]) external returns bytes32[] => NONDET DELETE;
function MathLib.mulDivDown(uint256 a, uint256 b, uint256 c) internal returns uint256 => ghostMulDivDown(a,b,c);
function MathLib.mulDivUp(uint256 a, uint256 b, uint256 c) internal returns uint256 => ghostMulDivUp(a,b,c);
function MathLib.wTaylorCompounded(uint256 a, uint256 b) internal returns uint256 => ghostTaylorCompounded(a, b);
Expand Down
2 changes: 1 addition & 1 deletion certora/specs/ConsistentState.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
methods {
function extSloads(bytes32[]) external returns bytes32[] => NONDET DELETE(true);
function extSloads(bytes32[]) external returns bytes32[] => NONDET DELETE;
function totalSupplyAssets(MorphoHarness.Id) external returns uint256 envfree;
function totalSupplyShares(MorphoHarness.Id) external returns uint256 envfree;
function totalBorrowAssets(MorphoHarness.Id) external returns uint256 envfree;
Expand Down
2 changes: 1 addition & 1 deletion certora/specs/ExactMath.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
methods {
function extSloads(bytes32[]) external returns bytes32[] => NONDET DELETE(true);
function extSloads(bytes32[]) external returns bytes32[] => NONDET DELETE;
function libId(MorphoHarness.MarketParams) external returns MorphoHarness.Id envfree;
function virtualTotalSupplyAssets(MorphoHarness.Id) external returns uint256 envfree;
function virtualTotalSupplyShares(MorphoHarness.Id) external returns uint256 envfree;
Expand Down
2 changes: 1 addition & 1 deletion certora/specs/ExitLiquidity.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
methods {
function extSloads(bytes32[]) external returns bytes32[] => NONDET DELETE(true);
function extSloads(bytes32[]) external returns bytes32[] => NONDET DELETE;
function supplyShares(MorphoHarness.Id, address) external returns uint256 envfree;
function borrowShares(MorphoHarness.Id, address) external returns uint256 envfree;
function collateral(MorphoHarness.Id, address) external returns uint256 envfree;
Expand Down
2 changes: 1 addition & 1 deletion certora/specs/Health.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
methods {
function extSloads(bytes32[]) external returns bytes32[] => NONDET DELETE(true);
function extSloads(bytes32[]) external returns bytes32[] => NONDET DELETE;
function lastUpdate(MorphoHarness.Id) external returns uint256 envfree;
function totalBorrowShares(MorphoHarness.Id) external returns uint256 envfree;
function borrowShares(MorphoHarness.Id, address) external returns uint256 envfree;
Expand Down
2 changes: 1 addition & 1 deletion certora/specs/LibSummary.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
methods {
function extSloads(bytes32[]) external returns bytes32[] => NONDET DELETE(true);
function extSloads(bytes32[]) external returns bytes32[] => NONDET DELETE;
function libMulDivUp(uint256, uint256, uint256) external returns uint256 envfree;
function libMulDivDown(uint256, uint256, uint256) external returns uint256 envfree;
function libId(MorphoHarness.MarketParams) external returns MorphoHarness.Id envfree;
Expand Down
2 changes: 1 addition & 1 deletion certora/specs/Liveness.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
methods {
function extSloads(bytes32[]) external returns bytes32[] => NONDET DELETE(true);
function extSloads(bytes32[]) external returns bytes32[] => NONDET DELETE;
function totalSupplyAssets(MorphoInternalAccess.Id) external returns uint256 envfree;
function totalSupplyShares(MorphoInternalAccess.Id) external returns uint256 envfree;
function totalBorrowAssets(MorphoInternalAccess.Id) external returns uint256 envfree;
Expand Down
2 changes: 1 addition & 1 deletion certora/specs/RatioMath.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
methods {
function extSloads(bytes32[]) external returns bytes32[] => NONDET DELETE(true);
function extSloads(bytes32[]) external returns bytes32[] => NONDET DELETE;
function libId(MorphoHarness.MarketParams) external returns MorphoHarness.Id envfree;
function virtualTotalSupplyAssets(MorphoHarness.Id) external returns uint256 envfree;
function virtualTotalSupplyShares(MorphoHarness.Id) external returns uint256 envfree;
Expand Down
2 changes: 1 addition & 1 deletion certora/specs/Reentrancy.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
methods {
function extSloads(bytes32[]) external returns bytes32[] => NONDET DELETE(true);
function extSloads(bytes32[]) external returns bytes32[] => NONDET DELETE;
function _.borrowRate(MorphoHarness.MarketParams marketParams, MorphoHarness.Market) external => summaryBorrowRate() expect uint256;
}

Expand Down
2 changes: 1 addition & 1 deletion certora/specs/Reverts.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
methods {
function extSloads(bytes32[]) external returns bytes32[] => NONDET DELETE(true);
function extSloads(bytes32[]) external returns bytes32[] => NONDET DELETE;
function owner() external returns address envfree;
function totalSupplyAssets(MorphoHarness.Id) external returns uint256 envfree;
function totalBorrowAssets(MorphoHarness.Id) external returns uint256 envfree;
Expand Down
Loading