-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix/specs
- Loading branch information
Showing
160 changed files
with
5,245 additions
and
724 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Specify the owners of the code in the src directory | ||
src/ @dglowinski @kasperpawlowski @hoytech | ||
|
||
# Specify the owners of the code in the certora directory | ||
certora/ @dglowinski @kasperpawlowski @hoytech |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
[submodule "lib/forge-std"] | ||
path = lib/forge-std | ||
url = https://github.com/foundry-rs/forge-std | ||
[submodule "lib/ethereum-vault-connector"] | ||
path = lib/ethereum-vault-connector | ||
url = https://github.com/euler-xyz/ethereum-vault-connector | ||
[submodule "lib/permit2"] | ||
path = lib/permit2 | ||
url = https://github.com/Uniswap/permit2 | ||
[submodule "lib/openzeppelin-contracts"] | ||
path = lib/openzeppelin-contracts | ||
url = https://github.com/OpenZeppelin/openzeppelin-contracts | ||
[submodule "lib/ethereum-vault-connector"] | ||
path = lib/ethereum-vault-connector | ||
url = https://github.com/euler-xyz/ethereum-vault-connector |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"files": [ | ||
"certora/harness/CacheHarness.sol" | ||
], | ||
"verify": "CacheHarness:certora/specs/Cache.spec", | ||
"solc": "solc8.23", | ||
"packages": [ | ||
"ethereum-vault-connector=lib/ethereum-vault-connector/src", | ||
"forge-std=lib/forge-std/src" | ||
], | ||
"prover_version": "master", | ||
"server" : "production", | ||
"parametric_contracts": ["CacheHarness"], | ||
"optimistic_loop": true, | ||
"loop_iter": "2", | ||
"solc_via_ir": true, | ||
"solc_optimize": "10000", | ||
"rule_sanity": "basic", | ||
"function_finder_mode" : "relaxed", | ||
"finder_friendly_optimizer" : false, | ||
"prover_args": [ | ||
"-smt_nonLinearArithmetic true", | ||
"-adaptiveSolverConfig false", | ||
"-solvers [z3:def{randomSeed=1},z3:def{randomSeed=2},z3:def{randomSeed=3},z3:def{randomSeed=4},z3:def{randomSeed=5},z3:def{randomSeed=6},z3:def{randomSeed=7},z3:def{randomSeed=8},z3:def{randomSeed=9},z3:def{randomSeed=10}]" | ||
], | ||
"smt_timeout": "7000" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
To run all of these conf files easily, use the certora/scripts/runERC4626RulesSplitConfs.py |
34 changes: 34 additions & 0 deletions
34
certora/conf/ERC4626Split/VaultERC4626-assetsMoreThanSupply.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"files": [ | ||
"lib/ethereum-vault-connector/src/EthereumVaultConnector.sol", | ||
"src/EVault/modules/Vault.sol", | ||
"certora/helpers/DummyERC20A.sol", | ||
"certora/helpers/DummyERC20B.sol", | ||
"certora/harness/EVCHarness.sol", | ||
"certora/harness/BaseHarness.sol", | ||
"certora/harness/ERC4626Harness.sol", | ||
], | ||
"verify": "ERC4626Harness:certora/specs/VaultERC4626.spec", | ||
"solc": "solc8.23", | ||
"rule_sanity": "basic", | ||
"msg": "Vault ERC4626", | ||
"packages": [ | ||
"ethereum-vault-connector=lib/ethereum-vault-connector/src", | ||
"forge-std=lib/forge-std/src" | ||
], | ||
"rule": ["assetsMoreThanSupply",], | ||
"parametric_contracts": ["ERC4626Harness"], | ||
"build_cache": true, | ||
"prover_args": [ | ||
"-maxConcurrentTransforms INLINED_HOOKS:8", | ||
"-smt_nonLinearArithmetic true -adaptiveSolverConfig false -splitParallel true -splitParallelInitialDepth 2 -depth 15 -s [z3:arith1,yices:def] -mediumTimeout 2 -splitParallelTimelimit 7200" | ||
], | ||
"prover_version" : "master", | ||
// Performance tuning options below this line | ||
"solc_via_ir": true, | ||
"solc_optimize": "10000", | ||
"optimistic_loop": true, | ||
"loop_iter": "2", | ||
"smt_timeout": "7200" | ||
} | ||
|
31 changes: 31 additions & 0 deletions
31
certora/conf/ERC4626Split/VaultERC4626-convertToAssetsWeakAdditivity.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"files": [ | ||
"lib/ethereum-vault-connector/src/EthereumVaultConnector.sol", | ||
"src/EVault/modules/Vault.sol", | ||
"certora/helpers/DummyERC20A.sol", | ||
"certora/helpers/DummyERC20B.sol", | ||
"certora/harness/EVCHarness.sol", | ||
"certora/harness/BaseHarness.sol", | ||
"certora/harness/ERC4626Harness.sol", | ||
], | ||
"verify": "ERC4626Harness:certora/specs/VaultERC4626.spec", | ||
"solc": "solc8.23", | ||
"rule_sanity": "basic", | ||
"msg": "Vault ERC4626", | ||
"packages": [ | ||
"ethereum-vault-connector=lib/ethereum-vault-connector/src", | ||
"forge-std=lib/forge-std/src" | ||
], | ||
"rule": ["convertToAssetsWeakAdditivity"], | ||
"parametric_contracts": ["ERC4626Harness"], | ||
"build_cache": true, | ||
"prover_version" : "master", | ||
// Performance tuning options below this line | ||
"solc_via_ir": true, | ||
"solc_optimize": "10000", | ||
"optimistic_loop": true, | ||
"loop_iter": "2", | ||
"disable_auto_cache_key_gen": true, | ||
"fe_version": "latest", | ||
} | ||
|
31 changes: 31 additions & 0 deletions
31
certora/conf/ERC4626Split/VaultERC4626-convertToSharesWeakAdditivity.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"files": [ | ||
"lib/ethereum-vault-connector/src/EthereumVaultConnector.sol", | ||
"src/EVault/modules/Vault.sol", | ||
"certora/helpers/DummyERC20A.sol", | ||
"certora/helpers/DummyERC20B.sol", | ||
"certora/harness/EVCHarness.sol", | ||
"certora/harness/BaseHarness.sol", | ||
"certora/harness/ERC4626Harness.sol", | ||
], | ||
"verify": "ERC4626Harness:certora/specs/VaultERC4626.spec", | ||
"solc": "solc8.23", | ||
"rule_sanity": "basic", | ||
"msg": "Vault ERC4626", | ||
"packages": [ | ||
"ethereum-vault-connector=lib/ethereum-vault-connector/src", | ||
"forge-std=lib/forge-std/src" | ||
], | ||
"rule": ["convertToSharesWeakAdditivity"], | ||
"parametric_contracts": ["ERC4626Harness"], | ||
"build_cache": true, | ||
"prover_version" : "master", | ||
// Performance tuning options below this line | ||
"solc_via_ir": true, | ||
"solc_optimize": "10000", | ||
"optimistic_loop": true, | ||
"loop_iter": "2", | ||
"disable_auto_cache_key_gen": true, | ||
"fe_version": "latest", | ||
} | ||
|
32 changes: 32 additions & 0 deletions
32
certora/conf/ERC4626Split/VaultERC4626-depositMonotonicity.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"files": [ | ||
"lib/ethereum-vault-connector/src/EthereumVaultConnector.sol", | ||
"src/EVault/modules/Vault.sol", | ||
"certora/helpers/DummyERC20A.sol", | ||
"certora/helpers/DummyERC20B.sol", | ||
"certora/harness/EVCHarness.sol", | ||
"certora/harness/BaseHarness.sol", | ||
"certora/harness/ERC4626Harness.sol", | ||
], | ||
"verify": "ERC4626Harness:certora/specs/VaultERC4626.spec", | ||
"solc": "solc8.23", | ||
"rule_sanity": "basic", | ||
"msg": "Vault ERC4626", | ||
"packages": [ | ||
"ethereum-vault-connector=lib/ethereum-vault-connector/src", | ||
"forge-std=lib/forge-std/src" | ||
], | ||
"rule": ["depositMonotonicity",], | ||
"parametric_contracts": ["ERC4626Harness"], | ||
"build_cache": true, | ||
"prover_version" : "master", | ||
// Performance tuning options below this line | ||
"solc_via_ir": true, | ||
"solc_optimize": "10000", | ||
"optimistic_loop": true, | ||
"loop_iter": "2", | ||
"disable_auto_cache_key_gen": true, | ||
"fe_version": "latest", | ||
"smt_timeout": "7200" | ||
} | ||
|
32 changes: 32 additions & 0 deletions
32
certora/conf/ERC4626Split/VaultERC4626-dustFavorsTheHouse.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"files": [ | ||
"lib/ethereum-vault-connector/src/EthereumVaultConnector.sol", | ||
"src/EVault/modules/Vault.sol", | ||
"certora/helpers/DummyERC20A.sol", | ||
"certora/helpers/DummyERC20B.sol", | ||
"certora/harness/EVCHarness.sol", | ||
"certora/harness/BaseHarness.sol", | ||
"certora/harness/ERC4626Harness.sol", | ||
], | ||
"verify": "ERC4626Harness:certora/specs/VaultERC4626.spec", | ||
"solc": "solc8.23", | ||
"rule_sanity": "basic", | ||
"msg": "Vault ERC4626", | ||
"packages": [ | ||
"ethereum-vault-connector=lib/ethereum-vault-connector/src", | ||
"forge-std=lib/forge-std/src" | ||
], | ||
"rule": ["dustFavorsTheHouse",], | ||
"parametric_contracts": ["ERC4626Harness"], | ||
"build_cache": true, | ||
"prover_version" : "master", | ||
// Performance tuning options below this line | ||
"solc_via_ir": true, | ||
"solc_optimize": "10000", | ||
"optimistic_loop": true, | ||
"loop_iter": "2", | ||
"disable_auto_cache_key_gen": true, | ||
"fe_version": "latest", | ||
"smt_timeout": "7200" | ||
} | ||
|
32 changes: 32 additions & 0 deletions
32
certora/conf/ERC4626Split/VaultERC4626-dustFavorsTheHouseAssets.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"files": [ | ||
"lib/ethereum-vault-connector/src/EthereumVaultConnector.sol", | ||
"src/EVault/modules/Vault.sol", | ||
"certora/helpers/DummyERC20A.sol", | ||
"certora/helpers/DummyERC20B.sol", | ||
"certora/harness/EVCHarness.sol", | ||
"certora/harness/BaseHarness.sol", | ||
"certora/harness/ERC4626Harness.sol", | ||
], | ||
"verify": "ERC4626Harness:certora/specs/VaultERC4626.spec", | ||
"solc": "solc8.23", | ||
"rule_sanity": "basic", | ||
"msg": "Vault ERC4626", | ||
"packages": [ | ||
"ethereum-vault-connector=lib/ethereum-vault-connector/src", | ||
"forge-std=lib/forge-std/src" | ||
], | ||
"rule": ["dustFavorsTheHouseAssets",], | ||
"parametric_contracts": ["ERC4626Harness"], | ||
"build_cache": true, | ||
"prover_version" : "master", | ||
// Performance tuning options below this line | ||
"solc_via_ir": true, | ||
"solc_optimize": "10000", | ||
"optimistic_loop": true, | ||
"loop_iter": "2", | ||
"disable_auto_cache_key_gen": true, | ||
"fe_version": "latest", | ||
"smt_timeout": "7200" | ||
} | ||
|
36 changes: 36 additions & 0 deletions
36
certora/conf/ERC4626Split/VaultERC4626-noAssetsIfNoSupply.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"files": [ | ||
"lib/ethereum-vault-connector/src/EthereumVaultConnector.sol", | ||
"src/EVault/modules/Vault.sol", | ||
"certora/helpers/DummyERC20A.sol", | ||
"certora/helpers/DummyERC20B.sol", | ||
"certora/harness/EVCHarness.sol", | ||
"certora/harness/BaseHarness.sol", | ||
"certora/harness/ERC4626Harness.sol", | ||
], | ||
"verify": "ERC4626Harness:certora/specs/VaultERC4626.spec", | ||
"solc": "solc8.23", | ||
"rule_sanity": "basic", | ||
"msg": "Vault ERC4626", | ||
"packages": [ | ||
"ethereum-vault-connector=lib/ethereum-vault-connector/src", | ||
"forge-std=lib/forge-std/src" | ||
], | ||
"rule": ["noAssetsIfNoSupply",], | ||
"parametric_contracts": ["ERC4626Harness"], | ||
"build_cache": true, | ||
"prover_version" : "master", | ||
// Performance tuning options below this line | ||
"solc_via_ir": true, | ||
"solc_optimize": "10000", | ||
"optimistic_loop": true, | ||
"loop_iter": "2", | ||
"disable_auto_cache_key_gen": true, | ||
"fe_version": "latest", | ||
"prover_args": [ | ||
"-maxConcurrentTransforms INLINED_HOOKS:6", | ||
"-smt_nonLinearArithmetic true -adaptiveSolverConfig false -depth 0 " | ||
], | ||
"smt_timeout": "7200" | ||
} | ||
|
Oops, something went wrong.