Skip to content

Commit

Permalink
remove munged (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
teryanarmen authored Dec 15, 2023
1 parent ec4baff commit 134c3e8
Show file tree
Hide file tree
Showing 18 changed files with 26 additions and 62 deletions.
1 change: 0 additions & 1 deletion certora/.gitignore

This file was deleted.

25 changes: 0 additions & 25 deletions certora/Makefile

This file was deleted.

Empty file removed certora/applyHarness.patch
Empty file.
2 changes: 1 addition & 1 deletion certora/harnesses/DelegationManagerHarness.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.12;

import "../munged/core/DelegationManager.sol";
import "../../src/contracts/core/DelegationManager.sol";

contract DelegationManagerHarness is DelegationManager {

Expand Down
2 changes: 1 addition & 1 deletion certora/harnesses/EigenPodHarness.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.12;

import "../munged/pods/EigenPod.sol";
import "../../src/contracts/pods/EigenPod.sol";

contract EigenPodHarness is EigenPod {

Expand Down
2 changes: 1 addition & 1 deletion certora/harnesses/EigenPodManagerHarness.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.12;

import "../munged/pods/EigenPodManager.sol";
import "../../src/contracts/pods/EigenPodManager.sol";

contract EigenPodManagerHarness is EigenPodManager {

Expand Down
2 changes: 1 addition & 1 deletion certora/harnesses/PausableHarness.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.12;

import "../munged/permissions/Pausable.sol";
import "../../src/contracts/permissions/Pausable.sol";

contract PausableHarness is Pausable {
// getters
Expand Down
2 changes: 1 addition & 1 deletion certora/harnesses/SlasherHarness.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.12;

import "../munged/core/Slasher.sol";
import "../../src/contracts/core/Slasher.sol";

contract SlasherHarness is Slasher {

Expand Down
2 changes: 1 addition & 1 deletion certora/harnesses/StrategyManagerHarness.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.12;

import "../munged/core/StrategyManager.sol";
import "../../src/contracts/core/StrategyManager.sol";

contract StrategyManagerHarness is StrategyManager {
constructor(IDelegationManager _delegation, IEigenPodManager _eigenPodManager, ISlasher _slasher)
Expand Down
2 changes: 1 addition & 1 deletion certora/harnesses/StructuredLinkedListHarness.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

pragma solidity ^0.8.0;

import "../munged/libraries/StructuredLinkedList.sol";
import "../../src/contracts/libraries/StructuredLinkedList.sol";

/**
* @title StructuredLinkedList
Expand Down
10 changes: 0 additions & 10 deletions certora/harnesses/properties.md

This file was deleted.

4 changes: 2 additions & 2 deletions certora/scripts/core/verifyDelegationManager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ solc-select use 0.8.12

certoraRun certora/harnesses/DelegationManagerHarness.sol \
lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol lib/openzeppelin-contracts/contracts/mocks/ERC1271WalletMock.sol \
certora/munged/pods/EigenPodManager.sol certora/munged/pods/EigenPod.sol certora/munged/strategies/StrategyBase.sol certora/munged/core/StrategyManager.sol \
certora/munged/core/Slasher.sol certora/munged/permissions/PauserRegistry.sol \
src/contracts/pods/EigenPodManager.sol src/contracts/pods/EigenPod.sol src/contracts/strategies/StrategyBase.sol src/contracts/core/StrategyManager.sol \
src/contracts/core/Slasher.sol src/contracts/permissions/PauserRegistry.sol \
--verify DelegationManagerHarness:certora/specs/core/DelegationManager.spec \
--optimistic_loop \
--prover_args '-optimisticFallback true' \
Expand Down
6 changes: 3 additions & 3 deletions certora/scripts/core/verifyStrategyManager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ solc-select use 0.8.12

certoraRun certora/harnesses/StrategyManagerHarness.sol \
lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol lib/openzeppelin-contracts/contracts/mocks/ERC1271WalletMock.sol \
certora/munged/pods/EigenPodManager.sol certora/munged/pods/EigenPod.sol certora/munged/pods/DelayedWithdrawalRouter.sol \
certora/munged/strategies/StrategyBase.sol certora/munged/core/DelegationManager.sol \
certora/munged/core/Slasher.sol certora/munged/permissions/PauserRegistry.sol \
src/contracts/pods/EigenPodManager.sol src/contracts/pods/EigenPod.sol src/contracts/pods/DelayedWithdrawalRouter.sol \
src/contracts/strategies/StrategyBase.sol src/contracts/core/DelegationManager.sol \
src/contracts/core/Slasher.sol src/contracts/permissions/PauserRegistry.sol \
--verify StrategyManagerHarness:certora/specs/core/StrategyManager.spec \
--optimistic_loop \
--prover_args '-optimisticFallback true' \
Expand Down
2 changes: 1 addition & 1 deletion certora/scripts/permissions/verifyPausable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ fi
solc-select use 0.8.12

certoraRun certora/harnesses/PausableHarness.sol \
certora/munged/permissions/PauserRegistry.sol \
src/contracts/permissions/PauserRegistry.sol \
--verify PausableHarness:certora/specs/permissions/Pausable.spec \
--optimistic_loop \
--prover_args '-optimisticFallback true -recursionErrorAsAssert false -recursionEntryLimit 3' \
Expand Down
8 changes: 4 additions & 4 deletions certora/scripts/pods/verifyEigenPod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ fi
solc-select use 0.8.12

certoraRun certora/harnesses/EigenPodHarness.sol \
certora/munged/core/DelegationManager.sol certora/munged/pods/EigenPodManager.sol \
certora/munged/core/Slasher.sol certora/munged/permissions/PauserRegistry.sol \
certora/munged/core/StrategyManager.sol \
certora/munged/strategies/StrategyBase.sol \
src/contracts/core/DelegationManager.sol src/contracts/pods/EigenPodManager.sol \
src/contracts/core/Slasher.sol src/contracts/permissions/PauserRegistry.sol \
src/contracts/core/StrategyManager.sol \
src/contracts/strategies/StrategyBase.sol \
lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol \
lib/openzeppelin-contracts/contracts/mocks/ERC1271WalletMock.sol \
--verify EigenPodHarness:certora/specs/pods/EigenPod.spec \
Expand Down
4 changes: 2 additions & 2 deletions certora/scripts/pods/verifyEigenPodManager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ fi
solc-select use 0.8.12

certoraRun certora/harnesses/EigenPodManagerHarness.sol \
certora/munged/core/DelegationManager.sol certora/munged/pods/EigenPod.sol certora/munged/strategies/StrategyBase.sol certora/munged/core/StrategyManager.sol \
certora/munged/core/Slasher.sol certora/munged/permissions/PauserRegistry.sol \
src/contracts/core/DelegationManager.sol src/contracts/pods/EigenPod.sol src/contracts/strategies/StrategyBase.sol src/contracts/core/StrategyManager.sol \
src/contracts/core/Slasher.sol src/contracts/permissions/PauserRegistry.sol \
--verify EigenPodManagerHarness:certora/specs/pods/EigenPodManager.spec \
--optimistic_loop \
--prover_args '-optimisticFallback true' \
Expand Down
8 changes: 4 additions & 4 deletions certora/scripts/strategies/verifyStrategyBase.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ fi

solc-select use 0.8.12

certoraRun certora/munged/strategies/StrategyBase.sol \
certoraRun src/contracts/strategies/StrategyBase.sol \
lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol \
certora/munged/core/StrategyManager.sol \
certora/munged/permissions/PauserRegistry.sol \
certora/munged/core/Slasher.sol \
src/contracts/core/StrategyManager.sol \
src/contracts/permissions/PauserRegistry.sol \
src/contracts/core/Slasher.sol \
--verify StrategyBase:certora/specs/strategies/StrategyBase.spec \
--optimistic_loop \
--prover_args '-optimisticFallback true -recursionErrorAsAssert false -recursionEntryLimit 3' \
Expand Down
6 changes: 3 additions & 3 deletions certora/specs/core/DelegationManager.spec
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ methods {
function get_stakerDelegateableShares(address,address) external returns (uint256) envfree;

//envfree functions
function delegatedTo(address staker) external returns (address) envfree;
function operatorDetails(address operator) external returns (IDelegationManager.OperatorDetails memory) envfree;
function earningsReceiver(address operator) external returns (address) envfree;
function delegatedTo(address) external returns (address) envfree;
function operatorDetails(address) external returns (IDelegationManager.OperatorDetails memory) envfree;
function earningsReceiver(address) external returns (address) envfree;
function delegationApprover(address operator) external returns (address) envfree;
function stakerOptOutWindowBlocks(address operator) external returns (uint256) envfree;
function operatorShares(address operator, address strategy) external returns (uint256) envfree;
Expand Down

0 comments on commit 134c3e8

Please sign in to comment.