-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
--------- Co-authored-by: miguelmtzinf <[email protected]> Co-authored-by: Michael Morami <[email protected]>
- Loading branch information
1 parent
3a3293b
commit 3684128
Showing
60 changed files
with
5,993 additions
and
2,543 deletions.
There are no files selected for viewing
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
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.
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,28 @@ | ||
default: help | ||
|
||
PATCH = applyHarness.patch | ||
CONTRACTS_DIR = ../../src | ||
MUNGED_DIR = munged | ||
|
||
help: | ||
@echo "usage:" | ||
@echo " make clean: remove all generated files (those ignored by git)" | ||
@echo " make $(MUNGED_DIR): create $(MUNGED_DIR) directory by applying the patch file to $(CONTRACTS_DIR)" | ||
@echo " make record: record a new patch file capturing the differences between $(CONTRACTS_DIR) and $(MUNGED_DIR)" | ||
|
||
munged: $(wildcard $(CONTRACTS_DIR)/*.sol) $(PATCH) | ||
rm -rf $@ | ||
mkdir $@ | ||
cp -r ../../src $@ | ||
patch -p0 -d $@ < $(PATCH) | ||
|
||
record: | ||
mkdir tmp | ||
cp -r ../../src tmp | ||
diff -ruN tmp $(MUNGED_DIR) | sed 's+tmp/++g' | sed 's+$(MUNGED_DIR)/++g' > $(PATCH) | ||
rm -rf tmp | ||
|
||
clean: | ||
git clean -fdX | ||
touch $(PATCH) | ||
|
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,7 @@ | ||
diff -ruN .gitignore .gitignore | ||
--- .gitignore 1970-01-01 02:00:00.000000000 +0200 | ||
+++ .gitignore 2024-08-12 17:28:45.843705526 +0300 | ||
@@ -0,0 +1,2 @@ | ||
+* | ||
+!.gitignore | ||
\ No newline at end of file |
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/steward/harness/GhoAaveSteward_Harness.sol"], | ||
"packages": [ | ||
"@aave/core-v3/=lib/aave-v3-core", | ||
"@aave/periphery-v3/=lib/aave-v3-periphery", | ||
"@aave/=lib/aave-token", | ||
"@openzeppelin/=lib/openzeppelin-contracts", | ||
"aave-stk-v1-5/=lib/aave-stk-v1-5", | ||
"ds-test/=lib/forge-std/lib/ds-test/src", | ||
"forge-std/=lib/forge-std/src", | ||
"aave-address-book/=lib/aave-address-book/src", | ||
"aave-helpers/=lib/aave-stk-v1-5/lib/aave-helpers", | ||
"aave-v3-core/=lib/aave-address-book/lib/aave-v3-core", | ||
"erc4626-tests/=lib/aave-stk-v1-5/lib/openzeppelin-contracts/lib/erc4626-tests", | ||
"openzeppelin-contracts/=lib/aave-stk-v1-5/lib/openzeppelin-contracts", | ||
"solidity-utils/=lib/solidity-utils/src" | ||
], | ||
"build_cache": true, | ||
"optimistic_loop": true, | ||
"process": "emv", | ||
"prover_args": ["-depth 15","-mediumTimeout 1000"], | ||
"smt_timeout": "2000", | ||
"solc": "solc8.10", | ||
"verify": "GhoAaveSteward_Harness:certora/steward/specs/GhoAaveSteward.spec", | ||
"rule_sanity": "basic", | ||
"msg": "GhoAaveSteward: all 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
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/steward/harness/GhoCcipSteward_Harness.sol"], | ||
"packages": [ | ||
"@aave/core-v3/=lib/aave-v3-core", | ||
"@aave/periphery-v3/=lib/aave-v3-periphery", | ||
"@aave/=lib/aave-token", | ||
"@openzeppelin/=lib/openzeppelin-contracts", | ||
"aave-stk-v1-5/=lib/aave-stk-v1-5", | ||
"ds-test/=lib/forge-std/lib/ds-test/src", | ||
"forge-std/=lib/forge-std/src", | ||
"aave-address-book/=lib/aave-address-book/src", | ||
"aave-helpers/=lib/aave-stk-v1-5/lib/aave-helpers", | ||
"aave-v3-core/=lib/aave-address-book/lib/aave-v3-core", | ||
"erc4626-tests/=lib/aave-stk-v1-5/lib/openzeppelin-contracts/lib/erc4626-tests", | ||
"openzeppelin-contracts/=lib/aave-stk-v1-5/lib/openzeppelin-contracts", | ||
"solidity-utils/=lib/solidity-utils/src" | ||
], | ||
"build_cache": true, | ||
"optimistic_loop": true, | ||
"process": "emv", | ||
"prover_args": ["-depth 15","-mediumTimeout 1000"], | ||
"smt_timeout": "2000", | ||
"solc": "solc8.10", | ||
"verify": "GhoCcipSteward_Harness:certora/steward/specs/GhoCcipSteward.spec", | ||
"rule_sanity": "basic", | ||
"msg": "GhoCcipSteward: all 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
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,24 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.10; | ||
|
||
import {GhoAaveSteward} from '../munged/src/contracts/misc/GhoAaveSteward.sol'; | ||
|
||
contract GhoAaveSteward_Harness is GhoAaveSteward { | ||
constructor( | ||
address owner, | ||
address addressesProvider, | ||
address poolDataProvider, | ||
address ghoToken, | ||
address riskCouncil, | ||
BorrowRateConfig memory borrowRateConfig | ||
) | ||
GhoAaveSteward( | ||
owner, | ||
addressesProvider, | ||
poolDataProvider, | ||
ghoToken, | ||
riskCouncil, | ||
borrowRateConfig | ||
) | ||
{} | ||
} |
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,17 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.10; | ||
|
||
import {GhoCcipSteward} from '../../../src/contracts/misc/GhoCcipSteward.sol'; | ||
|
||
contract GhoCcipSteward_Harness is GhoCcipSteward { | ||
constructor( | ||
address ghoToken, | ||
address ghoTokenPool, | ||
address riskCouncil, | ||
bool bridgeLimitEnabled | ||
) GhoCcipSteward(ghoToken, ghoTokenPool, riskCouncil, bridgeLimitEnabled) {} | ||
|
||
function getCcipTimelocks() external view returns (CcipDebounce memory) { | ||
return _ccipTimelocks; | ||
} | ||
} |
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,11 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.10; | ||
|
||
import {GhoGsmSteward} from '../../../src/contracts/misc/GhoGsmSteward.sol'; | ||
|
||
contract GhoGsmSteward_Harness is GhoGsmSteward { | ||
constructor( | ||
address fixedRateStrategyFactory, | ||
address riskCouncil | ||
) GhoGsmSteward(fixedRateStrategyFactory, riskCouncil) {} | ||
} |
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,2 @@ | ||
* | ||
!.gitignore |
Oops, something went wrong.