-
Notifications
You must be signed in to change notification settings - Fork 79
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
Showing
3 changed files
with
57 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"files": [ | ||
"certora/harnesses/RegistryCoordinatorHarness.sol", | ||
"lib/openzeppelin-contracts/contracts/mocks/ERC1271WalletMock.sol", | ||
"test/mocks/ServiceManagerMock.sol", | ||
"src/StakeRegistry.sol", | ||
"src/BLSApkRegistry.sol", | ||
"src/IndexRegistry.sol", | ||
"lib/eigenlayer-contracts/src/contracts/core/Slasher.sol", | ||
"lib/eigenlayer-contracts/src/contracts/core/AVSDirectory.sol", | ||
"lib/eigenlayer-contracts/src/contracts/core/DelegationManager.sol" | ||
], | ||
"verify": "RegistryCoordinatorHarness:certora/specs/RegistryCoordinator.spec", | ||
"loop_iter": "2", | ||
"parametric_contracts": ["RegistryCoordinatorHarness"], | ||
"packages": [ | ||
"@openzeppelin=lib/openzeppelin-contracts", | ||
"@openzeppelin-upgrades=lib/openzeppelin-contracts-upgradeable", | ||
"eigenlayer-contracts=lib/eigenlayer-contracts" | ||
], | ||
"link": [ | ||
"RegistryCoordinatorHarness:serviceManager=ServiceManagerMock", | ||
"AVSDirectory:delegation=DelegationManager", | ||
"StakeRegistry:delegation=DelegationManager", | ||
"ServiceManagerMock:_avsDirectory=AVSDirectory", | ||
"RegistryCoordinatorHarness:blsApkRegistry=BLSApkRegistry", | ||
"RegistryCoordinatorHarness:indexRegistry=IndexRegistry", | ||
"RegistryCoordinatorHarness:stakeRegistry=StakeRegistry" | ||
], | ||
"prover_args": [ | ||
"-optimisticFallback true", | ||
"-recursionEntryLimit 2", | ||
// "-splitParallel true", | ||
"-mediumTimeout 30", | ||
"-depth 5" | ||
], | ||
"optimistic_loop": true, | ||
"optimistic_hashing": true, | ||
"rule_sanity": "basic" | ||
} |
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,16 @@ | ||
using ServiceManagerMock as serviceManager; | ||
using StakeRegistry as stakeRegistry; | ||
using BLSApkRegistry as blsApkRegistry; | ||
using IndexRegistry as indexRegistry; | ||
using DelegationManager as delegation; | ||
methods { | ||
function _.isValidSignature(bytes32 hash, bytes signature) external => NONDET; // isValidSignatureCVL(hash,signature) expect bytes4; | ||
function _.unpauser() external => unpauser expect address; | ||
function _.isPauser(address user) external => isPauserCVL(user) expect bool; | ||
} | ||
ghost address unpauser; | ||
ghost mapping(address => bool) pausers; | ||
function isPauserCVL(address user) returns bool { | ||
return pausers[user]; | ||
} | ||
use builtin rule sanity; |