Skip to content

Commit

Permalink
cleanup certora specs
Browse files Browse the repository at this point in the history
  • Loading branch information
0xb337r007 committed Jul 22, 2024
1 parent c16f67e commit 796acc7
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 55 deletions.
2 changes: 0 additions & 2 deletions certora/confs/Marketplace.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"files": [
"contracts/Marketplace.sol",
"contracts/Groth16Verifier.sol",
//"certora/harness/MarketplaceHarness.sol",
"certora/helpers/ERC20A.sol",
],
"parametric_contracts": ["Marketplace"],
Expand All @@ -15,7 +14,6 @@
"verify": "Marketplace:certora/specs/Marketplace.spec",
"optimistic_loop": true,
"loop_iter": "3",
"solc": "solc8.23",
"optimistic_hashing": true,
"hashing_length_bound": "512",
}
Expand Down
25 changes: 0 additions & 25 deletions certora/harness/MarketplaceHarness.sol

This file was deleted.

9 changes: 0 additions & 9 deletions certora/helpers/ERC20B.sol

This file was deleted.

18 changes: 0 additions & 18 deletions certora/specs/Marketplace.spec
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
using ERC20A as Token;

methods {

}


/*--------------------------------------------
| Ghosts and hooks |
--------------------------------------------*/
Expand All @@ -29,8 +24,6 @@ hook Sstore currentContract._marketplaceTotals.sent uint256 defaultValue (uint25
totalSent = totalSent + defaultValue - defaultValue_old;
}



/*--------------------------------------------
| Properties |
--------------------------------------------*/
Expand Down Expand Up @@ -63,14 +56,3 @@ rule totalSentCannotDecrease(env e, method f) {

assert total_after >= total_before;
}

rule whatCanChangeCOntractTOkenBalance(env e, method f) {
uint256 tokenBalanceBefore = Token.balanceOf(e, currentContract);

calldataarg args;
f(e, args);

uint256 tokenBalanceAfter = Token.balanceOf(e, currentContract);

assert tokenBalanceBefore == tokenBalanceAfter;
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"format:check": "prettier --check contracts/**/*.sol test/**/*.js",
"lint": "solhint contracts/**.sol",
"deploy": "hardhat deploy",
"verify": "pnpm verify:marketplace && pnpm verify:marketplace",
"verify": "pnpm verify:marketplace",
"verify:marketplace": "certoraRun certora/confs/Marketplace.conf"
},
"devDependencies": {
Expand Down

0 comments on commit 796acc7

Please sign in to comment.