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] Use configuration files #545

Merged
merged 8 commits into from
Oct 17, 2023
Merged
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
30 changes: 15 additions & 15 deletions .github/workflows/certora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,34 +22,34 @@ jobs:
python-version: "3.10"

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

- name: Install solc
run: |
wget https://github.com/ethereum/solidity/releases/download/v0.8.19/solc-static-linux
chmod +x solc-static-linux
sudo mv solc-static-linux /usr/local/bin/solc8.19
sudo mv solc-static-linux /usr/local/bin/solc

- name: Verify rule ${{ matrix.script }}
run: |
echo "key length" ${#CERTORAKEY}
bash certora/scripts/${{ matrix.script }} --solc solc8.19
certoraRun certora/configuration/${{ matrix.conf }}.conf
env:
CERTORAKEY: ${{ secrets.CERTORAKEY }}

strategy:
fail-fast: false

matrix:
script:
- verifyAccrueInterest.sh
- verifyConsistentState.sh
- verifyExactMath.sh
- verifyExitLiquidity.sh
- verifyHealth.sh
- verifyLibSummary.sh
- verifyLiveness.sh
- verifyRatioMath.sh
- verifyReentrancy.sh
- verifyReverts.sh
- verifyTransfer.sh
conf:
- AccrueInterest
- ConsistentState
- ExactMath
- ExitLiquidity
- Health
- LibSummary
- Liveness
- RatioMath
- Reentrancy
- Reverts
- Transfer
11 changes: 11 additions & 0 deletions certora/configuration/AccrueInterest.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"files": [
"certora/harness/MorphoHarness.sol"
],
"verify": "MorphoHarness:certora/specs/AccrueInterest.spec",
"prover_args": [
"-smt_hashingScheme plaininjectivity",
"-mediumTimeout 30"
],
"msg": "Morpho Blue Accrue Interest"
}
7 changes: 7 additions & 0 deletions certora/configuration/ConsistentState.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"files": [
"certora/harness/MorphoHarness.sol"
],
"verify": "MorphoHarness:certora/specs/ConsistentState.spec",
"msg": "Morpho Blue Consistent State"
}
11 changes: 11 additions & 0 deletions certora/configuration/ExactMath.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"files": [
"certora/harness/MorphoHarness.sol"
],
"verify": "MorphoHarness:certora/specs/ExactMath.spec",
"prover_args": [
"-smt_hashingScheme plaininjectivity",
"-mediumTimeout 30"
],
"msg": "Morpho Blue Exact Math"
}
7 changes: 7 additions & 0 deletions certora/configuration/ExitLiquidity.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"files": [
"certora/harness/MorphoHarness.sol"
],
"verify": "MorphoHarness:certora/specs/ExitLiquidity.spec",
"msg": "Morpho Blue Exit Liquidity"
}
11 changes: 11 additions & 0 deletions certora/configuration/Health.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"files": [
"certora/harness/MorphoHarness.sol",
"src/mocks/OracleMock.sol"
],
"verify": "MorphoHarness:certora/specs/Health.spec",
"prover_args": [
"-smt_hashingScheme plaininjectivity"
],
"msg": "Morpho Blue Health"
}
8 changes: 8 additions & 0 deletions certora/configuration/LibSummary.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"files": [
"certora/harness/MorphoHarness.sol"
],
"msg": "Morpho Blue Lib Summary",
"process": "emv",
"verify": "MorphoHarness:certora/specs/LibSummary.spec"
}
7 changes: 7 additions & 0 deletions certora/configuration/Liveness.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"files": [
"certora/harness/MorphoInternalAccess.sol"
],
"verify": "MorphoInternalAccess:certora/specs/Liveness.spec",
"msg": "Morpho Blue Liveness"
}
10 changes: 10 additions & 0 deletions certora/configuration/RatioMath.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"files": [
"certora/harness/MorphoHarness.sol"
],
"verify": "MorphoHarness:certora/specs/RatioMath.spec",
"prover_args": [
"-smt_hashingScheme plaininjectivity"
],
"msg": "Morpho Blue Ratio Math"
}
10 changes: 10 additions & 0 deletions certora/configuration/Reentrancy.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"files": [
"certora/harness/MorphoHarness.sol"
],
"verify": "MorphoHarness:certora/specs/Reentrancy.spec",
"prover_args": [
"-enableStorageSplitting false"
],
"msg": "Morpho Blue Reentrancy"
}
7 changes: 7 additions & 0 deletions certora/configuration/Reverts.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"files": [
"certora/harness/MorphoHarness.sol"
],
"verify": "MorphoHarness:certora/specs/Reverts.spec",
"msg": "Morpho Blue Reverts"
}
10 changes: 10 additions & 0 deletions certora/configuration/Transfer.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"files": [
"certora/harness/TransferHarness.sol",
"certora/dispatch/ERC20Standard.sol",
"certora/dispatch/ERC20USDT.sol",
"certora/dispatch/ERC20NoRevert.sol"
],
"verify": "TransferHarness:certora/specs/Transfer.spec",
"msg": "Morpho Blue Transfer"
}
10 changes: 0 additions & 10 deletions certora/scripts/verifyAccrueInterest.sh

This file was deleted.

9 changes: 0 additions & 9 deletions certora/scripts/verifyConsistentState.sh

This file was deleted.

10 changes: 0 additions & 10 deletions certora/scripts/verifyExactMath.sh

This file was deleted.

9 changes: 0 additions & 9 deletions certora/scripts/verifyExitLiquidity.sh

This file was deleted.

11 changes: 0 additions & 11 deletions certora/scripts/verifyHealth.sh

This file was deleted.

9 changes: 0 additions & 9 deletions certora/scripts/verifyLibSummary.sh

This file was deleted.

9 changes: 0 additions & 9 deletions certora/scripts/verifyLiveness.sh

This file was deleted.

10 changes: 0 additions & 10 deletions certora/scripts/verifyRatioMath.sh

This file was deleted.

10 changes: 0 additions & 10 deletions certora/scripts/verifyReentrancy.sh

This file was deleted.

9 changes: 0 additions & 9 deletions certora/scripts/verifyReverts.sh

This file was deleted.

12 changes: 0 additions & 12 deletions certora/scripts/verifyTransfer.sh

This file was deleted.