Skip to content

Commit fe8a9de

Browse files
nadir-akhtarwadealexc
authored andcommitted
docs: rewards v2 (#952)
* docs: add v2 to intro and update terminology * docs: complete createOperatorDirectedAVSRewardsSubmission * docs: finish processClaims * docs: finish up split setting functions + misc * docs: use present state language * docs: update hackmd link * chore: roll back forge --------- Co-authored-by: Yash Patil <[email protected]> fix: rewards v2 audit fixes (#987) * fix: default operator split during first initialization * test: updated split tests feat: slashing release fix(slashing): upgrade script part 4 (#953) fix: patch (#956) feat: bindings (#960) fix: remove numtocomplete interface (#966) feat: add share helpers (#964) * feat: add share helpers * fix: add deposit scaling factor * fix: rebase fix: slashable window boundaries (#965) * fix: slashable window boundaries * test: regression for alm * test: update withdrawal delay not passed reversion * test: burning indices * refactor: switch conditionals * fix: added unit tests * test: assert slashable shares in queue * fix: typos --------- Co-authored-by: Yash Patil <[email protected]> refactor: small cleanup (#959) refactor small cleanup chore: `forge fmt` fix: `getQueuedWithdrawals` + test fix: add constructor back test: `totalQueued` > `withdrawal.strategies.length` test(wip): `completeQueuedWithdrawals` currently failing fix: effectBlock test(wip): @8sunyuan patch fix: one flaky test fix: second flaky test refactor: remove max strats list (#968) feat: slashing patch upgrade script (#967) * feat: initial deploy * feat: slashing patch fix non-present upgrade.json chore: bindings (#969) fix: try catch out of gas edge case (#971) chore: slashing consolidated script (#972) test: more slashing integration todos (#961) * test(wip): todos * fix: dealloc issue * fix: remaining * fix: forktest upgrade issue * test: add `check_Withdrawal_AsShares_State_AfterSlash` * refactor: cleanup * fix: ci * refactor: review changes docs: wip slashing docs (#925) * docs: add slashing docs * chore: bindings * docs: fixed commenting and updated queue withdrawal docs * docs: minor cleanup --------- Co-authored-by: Nadir Akhtar <[email protected]> refactor: scaled shares accounting (#975) * fix: correct expected share calc * chore: bindings * fix: rounding on failing unit test refactor: final slashing cleanup (#982) * chore: clean comments and naming in dm * refactor: simplify undelegate method * feat: removed 0 address check because 0 stakers cant be delegated * feat: condensed non-staker caller logic * refactor: remove unnecessary check * feat: use checks-effects-interactions when completing withdrawals * feat: remove implicit public method for queuedWithdrawals and impl dedicated getter * feat: deprecate withdrawer field * chore: make bindings and clean compile errors * refactor: redelegate reuses delegateTo and undelegate * fix: broken integration test * docs: update to reflect deprecated field * feat: add getter for stakers withdrawal roots chore: remove unused avsd events (#984) fix: integration test initialization params (#978) * fix: initialization params * fix: roll blocks usage fix: `SignatureUtils` construction (#990) * fix: integration test initialization params (#978) * fix: initialization params * fix: roll blocks usage * fix: `SignatureUtils` construction --------- Co-authored-by: Yash Patil <[email protected]> Co-authored-by: davidironblocks <[email protected]> fix: readd manual checks (#996) * fix: readd manual checks * chore: forge fmt feat: slashing 1.0.3 upgrade script (#995) * feat: add step 1 * feat: step 1 & 2 complete; pending step 3 sanity * test: add `_validateProxyDomainSeparators` * feat: add rc validation --------- Co-authored-by: clandestine.eth <[email protected]> fix: update alloc config delay bound (#985) * fix: update alloc delay bound * test: remove unnecessary roll chore: storage report (#1000) docs: shares accounting (#997) * docs: shares accounting * docs: fix gh markdown view * docs: try fix gh again * docs: cleanup * docs: edit share accounting * docs: wrap up share accounting doc * docs: edit edge cases --------- Co-authored-by: wadealexc <[email protected]> refactor: async burning (#1001) * refactor: burning * chore: fmt * chore: update storage report * chore: update readme * refactor: add burnableShares for epm storage * chore: update storage report test: `Snapshots` lib (#1002) docs: finish delegation manager docs (#1004) * docs: finish delegation manager docs * docs: update docs readme * docs: permission controller * fix: small typos * docs: address feedback * docs: nit --------- Co-authored-by: Michael Sun <[email protected]> docs: Strategy Manager slashing updates (#999) * docs: update StrategyManager docs with slashing delta * docs: remove references to thirdPartyTransfersForbidden * docs: update strategy docs to latest * also various edits to docs and natspec * chore: fmt and make bindings --------- Co-authored-by: wadealexc <[email protected]> docs: EigenPod Manager slashing updates (#1005) * docs: complete EigenPodManager for slashing * docs: add in _beaconChainSlashingFactor state variable note * docs: finish epm docs * chore: make bindings --------- Co-authored-by: wadealexc <[email protected]>
1 parent b8567e4 commit fe8a9de

File tree

356 files changed

+67914
-24385
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

356 files changed

+67914
-24385
lines changed

.github/workflows/certora-prover.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- name: Install solc
5151
run: |
5252
pip install solc-select
53-
solc-select use 0.8.12 --always-install
53+
solc-select use 0.8.27 --always-install
5454
- name: Verify rule ${{ matrix.params }}
5555
run: |
5656
bash ${{ matrix.params }}

.github/workflows/coverage.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,20 @@ jobs:
2626
id: get_issue_number
2727
with:
2828
script: |
29-
if (context.issue && context.issue.number) {
30-
// Return issue number if present
31-
return context.issue.number;
29+
let issue_number;
30+
// Attempt to find a pull request associated with the commit
31+
const pullRequests = await github.rest.repos.listPullRequestsAssociatedWithCommit({
32+
commit_sha: context.sha,
33+
owner: context.repo.owner,
34+
repo: context.repo.repo,
35+
});
36+
37+
if (pullRequests.data.length > 0) {
38+
issue_number = pullRequests.data[0].number;
3239
} else {
33-
// Otherwise return issue number from commit
34-
return (
35-
await github.rest.repos.listPullRequestsAssociatedWithCommit({
36-
commit_sha: context.sha,
37-
owner: context.repo.owner,
38-
repo: context.repo.repo,
39-
})
40-
).data[0].number;
40+
throw new Error('No associated issue or pull request found.');
4141
}
42+
return issue_number;
4243
result-encoding: string
4344
- name: Checkout code
4445
uses: actions/checkout@v2
@@ -52,6 +53,9 @@ jobs:
5253
version: nightly
5354
- name: Run coverage
5455
run: forge coverage --report lcov
56+
env:
57+
RPC_MAINNET: ${{ secrets.RPC_MAINNET }}
58+
RPC_HOLESKY: ${{ secrets.RPC_HOLESKY }}
5559
- name: Prune coverage report
5660
run: lcov --remove ./lcov.info -o ./lcov.info.pruned 'src/test/*' 'script/*' '*Storage.sol' --ignore-errors inconsistent
5761
- name: Generate reports

.github/workflows/testinparallel.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Run Forge build
4040
run: |
4141
forge --version
42-
forge build --sizes
42+
forge build
4343
id: build
4444

4545
- name: Run unit tests
@@ -57,9 +57,9 @@ jobs:
5757
CHAIN_ID: ${{ secrets.CHAIN_ID }}
5858

5959
- name: Run integration mainnet fork tests
60-
run: forge test --match-contract Integration
60+
run: forge test --match-contract Integration
6161
env:
6262
FOUNDRY_PROFILE: "forktest"
6363
RPC_MAINNET: ${{ secrets.RPC_MAINNET }}
6464
RPC_HOLESKY: ${{ secrets.RPC_HOLESKY }}
65-
CHAIN_ID: ${{ secrets.CHAIN_ID }}
65+
CHAIN_ID: ${{ secrets.CHAIN_ID }}

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,7 @@ InheritanceGraph.png
4747
surya_report.md
4848

4949
.idea
50+
51+
*state.json
52+
deployed_strategies.json
53+
populate_src*

.gitmodules

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
1-
[submodule "lib/openzeppelin-contracts-upgradeable"]
2-
path = lib/openzeppelin-contracts-upgradeable
3-
url = https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable
41
[submodule "lib/ds-test"]
52
path = lib/ds-test
63
url = https://github.com/dapphub/ds-test
74
[submodule "lib/forge-std"]
85
path = lib/forge-std
96
url = https://github.com/foundry-rs/forge-std
10-
[submodule "lib/openzeppelin-contracts"]
11-
path = lib/openzeppelin-contracts
12-
url = https://github.com/OpenZeppelin/openzeppelin-contracts
137
[submodule "lib/openzeppelin-contracts-v4.9.0"]
148
path = lib/openzeppelin-contracts-v4.9.0
159
url = https://github.com/OpenZeppelin/openzeppelin-contracts

.solhint.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
"compiler-version": "off",
1717
"custom-errors": "off",
1818
"no-global-import": "off",
19-
"immutable-vars-naming": "off"
19+
"immutable-vars-naming": "off",
20+
"no-console": "off"
21+
2022
}
2123
}

.solhintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
Slasher.sol

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,14 @@ surya mdreport surya_report.md ./src/contracts/**/*.sol
102102
make bindings
103103
```
104104

105+
### Generate updated Storage Report
106+
107+
To update the storage reports in `/docs/storage-report` run:
108+
109+
```bash
110+
make storage-report
111+
```
112+
105113
## Deployments
106114

107115
### Current Mainnet Deployment

certora/harnesses/DelegationManagerHarness.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: BUSL-1.1
2-
pragma solidity ^0.8.12;
2+
pragma solidity ^0.8.27;
33

44
import "../../src/contracts/core/DelegationManager.sol";
55

certora/harnesses/EigenPodHarness.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: BUSL-1.1
2-
pragma solidity ^0.8.12;
2+
pragma solidity ^0.8.27;
33

44
import "../../src/contracts/pods/EigenPod.sol";
55

0 commit comments

Comments
 (0)