-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3ab0999
commit e5920be
Showing
2 changed files
with
62 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
PATH := ~/.solc-select/artifacts/solc-0.8.14:~/.solc-select/artifacts/solc-0.5.12:$(PATH) | ||
all :; FOUNDRY_OPTIMIZER=true FOUNDRY_OPTIMIZER_RUNS=200 forge build --use solc:0.8.14 | ||
clean :; forge clean | ||
certora-hub :; PATH=~/.solc-select/artifacts/solc-0.8.14:~/.solc-select/artifacts/solc-0.5.12:~/.solc-select/artifacts:${PATH} certoraRun --solc_map D3MHub=solc-0.8.14,Vat=solc-0.5.12,DaiJoin=solc-0.5.12,Dai=solc-0.5.12,End=solc-0.5.12,D3MTestPlan=solc-0.8.14,D3MTestPool=solc-0.8.14,TokenMock=solc-0.8.14 --optimize_map D3MHub=200,Vat=0,DaiJoin=0,Dai=0,End=0,D3MTestPlan=200,D3MTestPool=200,TokenMock=200 --rule_sanity basic src/D3MHub.sol certora/dss/Vat.sol certora/dss/DaiJoin.sol certora/dss/Dai.sol certora/dss/End.sol certora/d3m/D3MTestPlan.sol certora/d3m/D3MTestPool.sol src/tests/mocks/TokenMock.sol --link D3MHub:vat=Vat D3MHub:daiJoin=DaiJoin D3MHub:end=End DaiJoin:vat=Vat DaiJoin:dai=Dai End:vat=Vat D3MTestPlan:dai=Dai D3MTestPool:hub=D3MHub D3MTestPool:vat=Vat D3MTestPool:dai=Dai D3MTestPool:share=TokenMock --structLink D3MHub:pool=D3MTestPool D3MHub:plan=D3MTestPlan --verify D3MHub:certora/D3MHub.spec --settings -mediumTimeout=1200,-solver=z3,-adaptiveSolverConfig=false,-smt_nonLinearArithmetic=true$(if $(short), --short_output,)$(if $(rule), --rule $(rule),)$(if $(multi), --multi_assert_check,) | ||
certora-hub :; PATH=${PATH} certoraRun certora/D3MHub.conf$(if $(rule), --rule $(rule),) | ||
deploy :; ./deploy.sh config="$(config)" | ||
deploy-core :; ./deploy-core.sh |
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,60 @@ | ||
{ | ||
"files": [ | ||
"src/D3MHub.sol", | ||
"certora/dss/Vat.sol", | ||
"certora/dss/DaiJoin.sol", | ||
"certora/dss/Dai.sol", | ||
"certora/dss/End.sol", | ||
"certora/d3m/D3MTestPlan.sol", | ||
"certora/d3m/D3MTestPool.sol", | ||
"src/tests/mocks/TokenMock.sol" | ||
], | ||
"link": [ | ||
"D3MHub:vat=Vat", | ||
"D3MHub:daiJoin=DaiJoin", | ||
"D3MHub:end=End", | ||
"DaiJoin:vat=Vat", | ||
"DaiJoin:dai=Dai", | ||
"End:vat=Vat", | ||
"D3MTestPlan:dai=Dai", | ||
"D3MTestPool:hub=D3MHub", | ||
"D3MTestPool:vat=Vat", | ||
"D3MTestPool:dai=Dai", | ||
"D3MTestPool:share=TokenMock" | ||
], | ||
"struct_link": [ | ||
"D3MHub:pool=D3MTestPool", | ||
"D3MHub:plan=D3MTestPlan" | ||
], | ||
"rule_sanity": "basic", | ||
"solc_map": { | ||
"D3MHub": "solc-0.8.14", | ||
"Vat": "solc-0.5.12", | ||
"DaiJoin": "solc-0.5.12", | ||
"Dai": "solc-0.5.12", | ||
"End": "solc-0.5.12", | ||
"D3MTestPlan": "solc-0.8.14", | ||
"D3MTestPool": "solc-0.8.14", | ||
"TokenMock": "solc-0.8.14" | ||
}, | ||
"solc_optimize_map": { | ||
"D3MHub": "200", | ||
"Vat": "0", | ||
"DaiJoin": "0", | ||
"Dai": "0", | ||
"End": "0", | ||
"D3MTestPlan": "200", | ||
"D3MTestPool": "200", | ||
"TokenMock": "200" | ||
}, | ||
"verify": "D3MHub:certora/D3MHub.spec", | ||
"prover_args": [ | ||
"-mediumTimeout 1200", | ||
"-solver z3", | ||
"-adaptiveSolverConfig false", | ||
"-smt_nonLinearArithmetic true", | ||
"-enableSolidityBasedInlining true" | ||
], | ||
"multi_assert_check": true, | ||
"wait_for_results": "all" | ||
} |