Skip to content

Commit

Permalink
ci: Fix certora ci config files
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmtzinf committed Feb 19, 2024
1 parent ec5bd09 commit 5e3e080
Show file tree
Hide file tree
Showing 17 changed files with 114 additions and 62 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/certora-gho-505.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ jobs:
chmod +x solc-static-linux
sudo mv solc-static-linux /usr/local/bin/solc8.10
- name: Install node dependencies
run: |
npm i
- name: Verify rule ${{ matrix.rule }}
run: |
cd certora/gho
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/certora-gho.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ jobs:
chmod +x solc-static-linux
sudo mv solc-static-linux /usr/local/bin/solc8.10
- name: Install node dependencies
run: |
npm i
- name: Verify rule ${{ matrix.rule }}
run: |
cd certora/gho
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/certora-gsm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ jobs:
chmod +x solc-static-linux
sudo mv solc-static-linux /usr/local/bin/solc8.10
- name: Install node dependencies
run: |
npm i
- name: Verify rule ${{ matrix.rule }}
run: |
echo "key length" ${#CERTORAKEY}
Expand Down
13 changes: 9 additions & 4 deletions certora/GSM/conf/non-4626/Alex-gho-gsm.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@
"certora/GSM/harness/FixedPriceStrategyHarness.sol",
"certora/GSM/harness/FixedFeeStrategyHarness.sol",
"src/contracts/gho/GhoToken.sol",
"lib/openzeppelin-contracts/contracts/utils/math/Math.sol",
],
"link": [
"GsmHarness:GHO_TOKEN=GhoToken",
"GsmHarness:PRICE_STRATEGY=FixedPriceStrategyHarness",
"GsmHarness:_feeStrategy=FixedFeeStrategyHarness",
"GsmHarness:GHO_TOKEN=GhoToken",
"GsmHarness:PRICE_STRATEGY=FixedPriceStrategyHarness",
"GsmHarness:_feeStrategy=FixedFeeStrategyHarness",
],
"packages": [
"@aave/core-v3/=lib/aave-v3-core",
"@aave/periphery-v3/=lib/aave-v3-periphery",
"@aave/=lib/aave-token"
"@openzeppelin/=lib/openzeppelin-contracts"
],
"parametric_contracts": [ "GsmHarness"],
"assert_autofinder_success": true,
Expand Down
8 changes: 4 additions & 4 deletions certora/GSM/conf/non-4626/Alex-gho-gsm_inverse.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
"certora/GSM/harness/FixedFeeStrategyHarness.sol",
"certora/GSM/harness/ERC20Helper.sol",
"src/contracts/gho/GhoToken.sol",
"lib/openzeppelin-contracts/contracts/utils/math/Math.sol",
],
"link": [
"GsmHarness:GHO_TOKEN=GhoToken",
"GsmHarness:PRICE_STRATEGY=FixedPriceStrategyHarness",
"GsmHarness:_feeStrategy=FixedFeeStrategyHarness",
],
"packages": [
"@aave/core-v3/=certora/munged/lib/aave-v3-core/",
"@aave/periphery-v3/=certora/munged/lib/aave-v3-periphery/",
"@openzeppelin/=certora/munged/lib/openzeppelin-contracts/"
"@aave/core-v3/=lib/aave-v3-core",
"@aave/periphery-v3/=lib/aave-v3-periphery",
"@aave/=lib/aave-token"
"@openzeppelin/=lib/openzeppelin-contracts"
],
"assert_autofinder_success": true,
"optimistic_loop":true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@
"certora/GSM/harness/FixedPriceStrategyHarness.sol",
"certora/GSM/harness/FixedFeeStrategyHarness.sol",
"src/contracts/gho/GhoToken.sol",
"lib/openzeppelin-contracts/contracts/utils/math/Math.sol"
],
"link": [
"GsmHarness:GHO_TOKEN=GhoToken",
"GsmHarness:PRICE_STRATEGY=FixedPriceStrategyHarness",
"GsmHarness:_feeStrategy=FixedFeeStrategyHarness"
"GsmHarness:GHO_TOKEN=GhoToken",
"GsmHarness:PRICE_STRATEGY=FixedPriceStrategyHarness",
"GsmHarness:_feeStrategy=FixedFeeStrategyHarness"
],
"packages": [
"@aave/core-v3/=lib/aave-v3-core",
"@aave/periphery-v3/=lib/aave-v3-periphery",
"@aave/=lib/aave-token"
"@openzeppelin/=lib/openzeppelin-contracts"
],
"assert_autofinder_success": true,
"optimistic_loop":true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
{
"files": [
"certora/GSM/harness/FixedPriceStrategyHarness.sol",
"lib/openzeppelin-contracts/contracts/utils/math/Math.sol"
],
"packages": [
"@aave/core-v3/=lib/aave-v3-core",
"@aave/periphery-v3/=lib/aave-v3-periphery",
"@aave/=lib/aave-token"
"@openzeppelin/=lib/openzeppelin-contracts"
],
"assert_autofinder_success": true,
"optimistic_loop":true,
Expand Down
14 changes: 10 additions & 4 deletions certora/GSM/conf/non-4626/Martin-gho-gsm.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@
"src/contracts/gho/GhoToken.sol",
],
"link": [
"GsmHarness:GHO_TOKEN=GhoToken",
"GsmHarness:PRICE_STRATEGY=FixedPriceStrategyHarness",
"GsmHarness:_feeStrategy=FixedFeeStrategyHarness",
"GsmHarness:UNDERLYING_ASSET=DummyERC20B"
"GsmHarness:GHO_TOKEN=GhoToken",
"GsmHarness:PRICE_STRATEGY=FixedPriceStrategyHarness",
"GsmHarness:_feeStrategy=FixedFeeStrategyHarness",
"GsmHarness:UNDERLYING_ASSET=DummyERC20B"
],
"packages": [
"@aave/core-v3/=lib/aave-v3-core",
"@aave/periphery-v3/=lib/aave-v3-periphery",
"@aave/=lib/aave-token"
"@openzeppelin/=lib/openzeppelin-contracts"
],
"parametric_contracts": [ "GsmHarness"],
"assert_autofinder_success": true,
Expand Down
7 changes: 6 additions & 1 deletion certora/GSM/conf/non-4626/antti-optimality.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,18 @@
"certora/GSM/harness/FixedPriceStrategyHarness.sol",
"certora/GSM/harness/FixedFeeStrategyHarness.sol",
"src/contracts/gho/GhoToken.sol",
"lib/openzeppelin-contracts/contracts/utils/math/Math.sol",
],
"link": [
"GsmHarness:GHO_TOKEN=GhoToken",
"GsmHarness:PRICE_STRATEGY=FixedPriceStrategyHarness",
"GsmHarness:_feeStrategy=FixedFeeStrategyHarness",
],
"packages": [
"@aave/core-v3/=lib/aave-v3-core",
"@aave/periphery-v3/=lib/aave-v3-periphery",
"@aave/=lib/aave-token"
"@openzeppelin/=lib/openzeppelin-contracts"
],
"assert_autofinder_success": true,
"optimistic_loop":true,
"rule_sanity" : "basic",
Expand Down
15 changes: 10 additions & 5 deletions certora/GSM/conf/non-4626/balances-buy.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,19 @@
"certora/GSM/harness/DummyERC20B.sol",
"certora/GSM/harness/FixedPriceStrategyHarness.sol",
"certora/GSM/harness/FixedFeeStrategyHarness.sol",
"src/contracts/gho/GhoToken.sol",
"certora/GSM/harness/DiffHelper.sol",
"lib/openzeppelin-contracts/contracts/utils/math/Math.sol",
"src/contracts/gho/GhoToken.sol",
],
"link": [
"GsmHarness:GHO_TOKEN=GhoToken",
"GsmHarness:PRICE_STRATEGY=FixedPriceStrategyHarness",
"GsmHarness:_feeStrategy=FixedFeeStrategyHarness",
"GsmHarness:GHO_TOKEN=GhoToken",
"GsmHarness:PRICE_STRATEGY=FixedPriceStrategyHarness",
"GsmHarness:_feeStrategy=FixedFeeStrategyHarness",
],
"packages": [
"@aave/core-v3/=lib/aave-v3-core",
"@aave/periphery-v3/=lib/aave-v3-periphery",
"@aave/=lib/aave-token"
"@openzeppelin/=lib/openzeppelin-contracts"
],
"assert_autofinder_success": true,
"optimistic_loop":true,
Expand Down
15 changes: 10 additions & 5 deletions certora/GSM/conf/non-4626/balances-sell.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,19 @@
"certora/GSM/harness/DummyERC20B.sol",
"certora/GSM/harness/FixedPriceStrategyHarness.sol",
"certora/GSM/harness/FixedFeeStrategyHarness.sol",
"src/contracts/gho/GhoToken.sol",
"certora/GSM/harness/DiffHelper.sol",
"lib/openzeppelin-contracts/contracts/utils/math/Math.sol",
"src/contracts/gho/GhoToken.sol",
],
"link": [
"GsmHarness:GHO_TOKEN=GhoToken",
"GsmHarness:PRICE_STRATEGY=FixedPriceStrategyHarness",
"GsmHarness:_feeStrategy=FixedFeeStrategyHarness",
"GsmHarness:GHO_TOKEN=GhoToken",
"GsmHarness:PRICE_STRATEGY=FixedPriceStrategyHarness",
"GsmHarness:_feeStrategy=FixedFeeStrategyHarness",
],
"packages": [
"@aave/core-v3/=lib/aave-v3-core",
"@aave/periphery-v3/=lib/aave-v3-periphery",
"@aave/=lib/aave-token"
"@openzeppelin/=lib/openzeppelin-contracts"
],
"assert_autofinder_success": true,
"optimistic_loop":true,
Expand Down
15 changes: 10 additions & 5 deletions certora/GSM/conf/non-4626/fees-buy.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,19 @@
"certora/GSM/harness/DummyERC20B.sol",
"certora/GSM/harness/FixedPriceStrategyHarness.sol",
"certora/GSM/harness/FixedFeeStrategyHarness.sol",
"src/contracts/gho/GhoToken.sol",
"certora/GSM/harness/DiffHelper.sol",
"lib/openzeppelin-contracts/contracts/utils/math/Math.sol",
"src/contracts/gho/GhoToken.sol",
],
"link": [
"GsmHarness:GHO_TOKEN=GhoToken",
"GsmHarness:PRICE_STRATEGY=FixedPriceStrategyHarness",
"GsmHarness:_feeStrategy=FixedFeeStrategyHarness",
"GsmHarness:GHO_TOKEN=GhoToken",
"GsmHarness:PRICE_STRATEGY=FixedPriceStrategyHarness",
"GsmHarness:_feeStrategy=FixedFeeStrategyHarness",
],
"packages": [
"@aave/core-v3/=lib/aave-v3-core",
"@aave/periphery-v3/=lib/aave-v3-periphery",
"@aave/=lib/aave-token"
"@openzeppelin/=lib/openzeppelin-contracts"
],
"assert_autofinder_success": true,
"optimistic_loop":true,
Expand Down
15 changes: 10 additions & 5 deletions certora/GSM/conf/non-4626/fees-sell.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,19 @@
"certora/GSM/harness/DummyERC20B.sol",
"certora/GSM/harness/FixedPriceStrategyHarness.sol",
"certora/GSM/harness/FixedFeeStrategyHarness.sol",
"src/contracts/gho/GhoToken.sol",
"certora/GSM/harness/DiffHelper.sol",
"lib/openzeppelin-contracts/contracts/utils/math/Math.sol",
"src/contracts/gho/GhoToken.sol",
],
"link": [
"GsmHarness:GHO_TOKEN=GhoToken",
"GsmHarness:PRICE_STRATEGY=FixedPriceStrategyHarness",
"GsmHarness:_feeStrategy=FixedFeeStrategyHarness",
"GsmHarness:GHO_TOKEN=GhoToken",
"GsmHarness:PRICE_STRATEGY=FixedPriceStrategyHarness",
"GsmHarness:_feeStrategy=FixedFeeStrategyHarness",
],
"packages": [
"@aave/core-v3/=lib/aave-v3-core",
"@aave/periphery-v3/=lib/aave-v3-periphery",
"@aave/=lib/aave-token"
"@openzeppelin/=lib/openzeppelin-contracts"
],
"assert_autofinder_success": true,
"optimistic_loop":true,
Expand Down
7 changes: 6 additions & 1 deletion certora/GSM/conf/non-4626/otakar-FixedFeeStrategy.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
{
"files": [
"certora/GSM/harness/FixedFeeStrategyHarness.sol",
"lib/openzeppelin-contracts/contracts/utils/math/Math.sol",
],
"packages": [
"@aave/core-v3/=lib/aave-v3-core",
"@aave/periphery-v3/=lib/aave-v3-periphery",
"@aave/=lib/aave-token"
"@openzeppelin/=lib/openzeppelin-contracts"
],
"assert_autofinder_success": true,
"optimistic_loop":true,
Expand Down
7 changes: 6 additions & 1 deletion certora/GSM/conf/non-4626/otakar-OracleSwapFreezer.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
"files": [
"certora/GSM/harness/OracleSwapFreezerHarness.sol",
"src/contracts/facilitators/gsm/swapFreezer/OracleSwapFreezer.sol",
"lib/openzeppelin-contracts/contracts/utils/math/Math.sol",
],
"packages": [
"@aave/core-v3/=lib/aave-v3-core",
"@aave/periphery-v3/=lib/aave-v3-periphery",
"@aave/=lib/aave-token"
"@openzeppelin/=lib/openzeppelin-contracts"
],
"assert_autofinder_success": true,
"optimistic_loop":true,
Expand Down
15 changes: 9 additions & 6 deletions certora/GSM/conf/non-4626/otakar-finishedRules.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@
"certora/GSM/harness/FixedPriceStrategyHarness.sol",
"certora/GSM/harness/FixedFeeStrategyHarness.sol",
"src/contracts/gho/GhoToken.sol",
"lib/openzeppelin-contracts/contracts/utils/math/Math.sol",
],
"link": [
"GsmHarness:GHO_TOKEN=GhoToken",
"GsmHarness:PRICE_STRATEGY=FixedPriceStrategyHarness",
"GsmHarness:_feeStrategy=FixedFeeStrategyHarness",
"GsmHarness:GHO_TOKEN=GhoToken",
"GsmHarness:PRICE_STRATEGY=FixedPriceStrategyHarness",
"GsmHarness:_feeStrategy=FixedFeeStrategyHarness",
],
"packages": [
"@aave/core-v3/=lib/aave-v3-core",
"@aave/periphery-v3/=lib/aave-v3-periphery",
"@aave/=lib/aave-token"
"@openzeppelin/=lib/openzeppelin-contracts"
],
"assert_autofinder_success": true,
"optimistic_loop":true,
Expand All @@ -27,8 +32,6 @@
"prover_args": [
"-copyLoopUnroll 6",
"-depth 20",
// "-newSplitParallel true",
// "-smt_hashingScheme plainInjectivity",
],
"verify":
"GsmHarness:certora/GSM/specs/gsm/otakar-gho-gsm-finishedRules.spec",
Expand Down
13 changes: 9 additions & 4 deletions certora/GSM/conf/non-4626/otakar-getAmount_properties.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@
"certora/GSM/harness/FixedPriceStrategyHarness.sol",
"certora/GSM/harness/FixedFeeStrategyHarness.sol",
"src/contracts/gho/GhoToken.sol",
"lib/openzeppelin-contracts/contracts/utils/math/Math.sol",
],
"link": [
"GsmHarness:GHO_TOKEN=GhoToken",
"GsmHarness:PRICE_STRATEGY=FixedPriceStrategyHarness",
"GsmHarness:_feeStrategy=FixedFeeStrategyHarness",
"GsmHarness:GHO_TOKEN=GhoToken",
"GsmHarness:PRICE_STRATEGY=FixedPriceStrategyHarness",
"GsmHarness:_feeStrategy=FixedFeeStrategyHarness",
],
"packages": [
"@aave/core-v3/=lib/aave-v3-core",
"@aave/periphery-v3/=lib/aave-v3-periphery",
"@aave/=lib/aave-token"
"@openzeppelin/=lib/openzeppelin-contracts"
],
"assert_autofinder_success": true,
"optimistic_loop":true,
Expand Down

0 comments on commit 5e3e080

Please sign in to comment.