Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: merge dev into mainnet #504

Merged
merged 1,633 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1633 commits
Select commit Hold shift + click to select a range
6e9800a
Update EPmgr docs with final missing functions, and update README to …
wadealexc Oct 17, 2023
90b7854
pushn
Sidu28 Oct 17, 2023
8aba938
added new storage
Sidu28 Oct 17, 2023
f641ed5
changed name
Sidu28 Oct 17, 2023
88cf510
added logic
Sidu28 Oct 17, 2023
0e525f6
fixed storage gap
Sidu28 Oct 17, 2023
eb9aef8
changed variable name
Sidu28 Oct 17, 2023
16dac0b
changed variable name
Sidu28 Oct 17, 2023
d3af454
Merge pull request #259 from Layr-Labs/zkstoragechanges
Sidu28 Oct 17, 2023
6f58d3a
Update docs with latest EigenPod change
wadealexc Oct 17, 2023
ce5d749
add validation; pending storage gap checks
ypatil12 Oct 18, 2023
206a307
Merge pull request #258 from Layr-Labs/docs/m2-docs
wadealexc Oct 18, 2023
b67d146
fixed most tests
Sidu28 Oct 18, 2023
b173606
fixed
Sidu28 Oct 18, 2023
e2eed43
added multiple queuedwithdrawals function
Sidu28 Oct 18, 2023
a8334a4
made update outside of loop
Sidu28 Oct 18, 2023
1d35290
add gap support; reorganize storage representation
ypatil12 Oct 18, 2023
705934b
fix syntax highlighting
ypatil12 Oct 18, 2023
2f6f4c5
Merge pull request #214 from Layr-Labs/m2-upgrade-shadow-fork-testing
ypatil12 Oct 18, 2023
b946abf
fixed all tests
Sidu28 Oct 19, 2023
8c04355
remove stale comments
ypatil12 Oct 19, 2023
8688ee1
merge
ypatil12 Oct 19, 2023
4402233
fixed
Sidu28 Oct 19, 2023
fe5bf9c
fixed tests
Sidu28 Oct 19, 2023
996ff72
Merge pull request #255 from Layr-Labs/new-proof
Sidu28 Oct 19, 2023
a14c9a9
init
Sidu28 Oct 19, 2023
5ec6ce1
Merge pull request #262 from Layr-Labs/addQueueWithdrawalsPlural
Sidu28 Oct 19, 2023
7d7d45b
dedupe EigenPod and Withdrawals
ypatil12 Oct 19, 2023
842268d
add README for storage validation script
ypatil12 Oct 19, 2023
652ae11
fix README formatting
ypatil12 Oct 19, 2023
834bbe3
Storage Upgrade Checker
ypatil12 Oct 19, 2023
be996f0
fixed
Sidu28 Oct 19, 2023
9291b5d
removed bls pubkeycompendium deployment from m2 deployment script
samlaf Oct 19, 2023
2a3ec30
Merge pull request #269 from Layr-Labs/samlaf/remove-compendium-deplo…
samlaf Oct 19, 2023
5b2a450
fix layouts for EPM and SM
ypatil12 Oct 20, 2023
b97b77b
Merge pull request #270 from Layr-Labs/fix/storageLayouts
ChaoticWalrus Oct 20, 2023
9a4f4a0
Merge pull request #267 from Layr-Labs/fix/dedupeTests
ypatil12 Oct 20, 2023
3a0f7d9
event fix (#272)
0x0aa0 Oct 20, 2023
a21e10a
made some corrections
Sidu28 Oct 23, 2023
74847f9
done
Sidu28 Oct 23, 2023
ef81e88
added underflow handling
Sidu28 Oct 23, 2023
e82d102
Merge pull request #273 from Layr-Labs/quickfix
Sidu28 Oct 23, 2023
df04234
cleaned up all warnings
Sidu28 Oct 23, 2023
62ba4b5
Remove Middleware from Core (#260)
stevennevins Oct 24, 2023
971b729
Merge pull request #266 from Layr-Labs/eigenpodmd
Sidu28 Oct 24, 2023
bf48e9d
split the tests again
Sidu28 Oct 24, 2023
11f732b
Revert "split the tests again"
Sidu28 Oct 24, 2023
79e4a66
skeleton refactor
ypatil12 Oct 24, 2023
5a6d58a
init
Sidu28 Oct 24, 2023
ddb36ff
Update DelegationManager.md
pandabadger Oct 24, 2023
b214d28
Update EigenPod.md
pandabadger Oct 24, 2023
62333c1
Update BeaconChainProofs.md
pandabadger Oct 24, 2023
e184498
all tests working
Sidu28 Oct 24, 2023
590d692
cleanup
Sidu28 Oct 24, 2023
d6a2f1d
init
Sidu28 Oct 25, 2023
64ad39a
require cannot q withdrawal for 0 strategies and update docs
gpsanant Oct 25, 2023
327e14b
copilot crazy grammar
gpsanant Oct 25, 2023
5429ebe
Merge pull request #289 from Layr-Labs/cannot-q-withdrawal-4-0-strats
gpsanant Oct 25, 2023
1251ccf
finished EPM unit tests
ypatil12 Oct 25, 2023
4ab4f6f
fix tree diagram typos
ypatil12 Oct 25, 2023
c768311
fix _checkPodDeployed function
ypatil12 Oct 25, 2023
76bb62b
split max pod revert tests
ypatil12 Oct 25, 2023
bbe4ca8
fuzz removeShares tests
ypatil12 Oct 25, 2023
3e9b2fa
update initializePodWithShares to not use stdStorage
ypatil12 Oct 25, 2023
ff02e99
added reg test
Sidu28 Oct 25, 2023
21b347b
add error messages on asserts
ypatil12 Oct 25, 2023
c361bea
tidy up
Sidu28 Oct 26, 2023
5f23f93
Merge remote-tracking branch 'origin/feat/EigenPodManager-test-refact…
8sunyuan Oct 26, 2023
3ea910d
Merge pull request #287 from Layr-Labs/remove-conflicting-ep-checks
ChaoticWalrus Oct 26, 2023
812cb1f
chore: have DelegationManager use stub interface instead of full inte…
ChaoticWalrus Oct 26, 2023
bf19ba3
initial cleanup of SM tests, added deployments to UnitTestSetup file
8sunyuan Oct 26, 2023
fec8b17
Using `EigenLayerUnitTestSetup` for deployment
8sunyuan Oct 26, 2023
97a2ddf
remove middleware interfaces from this repo
ChaoticWalrus Oct 26, 2023
01a0b2a
init
Sidu28 Oct 26, 2023
1bcd39d
change 31 to 32
Sidu28 Oct 26, 2023
f25820e
all tests working
Sidu28 Oct 26, 2023
a92e58e
close out tests
Sidu28 Oct 26, 2023
8030c73
cleanup
Sidu28 Oct 26, 2023
8bf9d30
fixed balance update code
Sidu28 Oct 26, 2023
e2f3867
rectified test
Sidu28 Oct 26, 2023
7ccb93a
Merge pull request #297 from Layr-Labs/remove-hystersis-docs
Sidu28 Oct 26, 2023
e2bc5f6
removed test import
Sidu28 Oct 26, 2023
c19f650
fixed
Sidu28 Oct 26, 2023
f27e50e
removed other references to hysterisis
Sidu28 Oct 26, 2023
fdf1ebb
Merge pull request #294 from Layr-Labs/migrate-to-stake-registry-stub
ChaoticWalrus Oct 26, 2023
cb5623b
Separate into base and setup deploy contracts
8sunyuan Oct 26, 2023
014b677
made updates consistent
Sidu28 Oct 26, 2023
4fd57f4
renamed function test names, removed unused variables
8sunyuan Oct 26, 2023
7670107
Update DelegationManager.md
pandabadger Oct 26, 2023
b4c0514
chore: remove never-used storage at end of storage layout and increas…
ChaoticWalrus Oct 26, 2023
3aad4e4
Update EigenPod.md
pandabadger Oct 26, 2023
ee5fef4
Merge pull request #298 from Layr-Labs/EPM-storage-cleanup
Sidu28 Oct 26, 2023
cd6166f
clarified as effective not actual balance
Sidu28 Oct 26, 2023
d6a4fc3
Merge pull request #281 from pandabadger/master
ChaoticWalrus Oct 26, 2023
5a0015e
removed inline comment
Sidu28 Oct 26, 2023
c59e938
chore: fix compiler warnings
ChaoticWalrus Oct 26, 2023
4bd42db
Merge branch 'master' into remove-hysterisis
Sidu28 Oct 26, 2023
6b73cd8
changed proof gen repo commands
Sidu28 Oct 27, 2023
814e850
Merge pull request #295 from Layr-Labs/remove-hysterisis
Sidu28 Oct 27, 2023
75a5e55
made the changes to createPod()
Gajesh2007 Oct 27, 2023
c13eb6e
EigenPodManager Unit Test Refactor (#290)
ypatil12 Oct 27, 2023
285de54
Return the created EigenPod address from createPod
Gajesh2007 Oct 27, 2023
244a39d
Merge pull request #300 from Layr-Labs/edit-proof-gen-commands
Sidu28 Oct 27, 2023
4d97ba4
Merge branch 'master' into chore/fix-compiler-warnings
Oct 27, 2023
1535d8c
added fuzzing)
Sidu28 Oct 27, 2023
3a87ac1
fixed
Sidu28 Oct 27, 2023
bf708fa
Merge branch 'master' of https://github.com/Layr-Labs/eigenlayer-cont…
Sidu28 Oct 27, 2023
78e07fb
fixed
Sidu28 Oct 27, 2023
2aed068
fixed tests
Sidu28 Oct 27, 2023
e340ab1
Merge pull request #299 from Layr-Labs/chore/fix-compiler-warnings
ChaoticWalrus Oct 27, 2023
a922f8d
chore: fix compilation error
ChaoticWalrus Oct 27, 2023
7982832
Merge pull request #304 from Layr-Labs/chore/fix-compilation
ChaoticWalrus Oct 27, 2023
ef6c03b
Merge branch 'master' into fix-broken-ci
Sidu28 Oct 27, 2023
1a8f17f
Merge pull request #303 from Layr-Labs/fix-broken-ci
Sidu28 Oct 27, 2023
2252897
reording the indexes in-order, added a few extra comments
8sunyuan Oct 30, 2023
2c2b8ad
commenting
8sunyuan Oct 30, 2023
a314cbc
remove reeneterer from utils setUp()
8sunyuan Oct 30, 2023
644fd10
Merge pull request #307 from Layr-Labs/eigenpod-cleanup
Sidu28 Oct 30, 2023
1419146
remove strategy deployments in the setUp() helper
8sunyuan Oct 30, 2023
ebdb766
init
Sidu28 Oct 24, 2023
dbc1195
all tests working
Sidu28 Oct 24, 2023
9c1aabf
cleanup
Sidu28 Oct 24, 2023
5cf7663
tidy up
Sidu28 Oct 26, 2023
ff42383
added the previous PR changes to new branch
Gajesh2007 Oct 26, 2023
06c05bb
added new expectEmit checks
Gajesh2007 Oct 27, 2023
26e0168
changes
Gajesh2007 Oct 27, 2023
23ea77b
CI err fix
Gajesh2007 Oct 27, 2023
6805c13
fixed tests
Sidu28 Oct 30, 2023
a2af9ef
chore: filter fuzzed inputs to fix 3 flaky test failures (#306)
ChaoticWalrus Oct 30, 2023
a79812b
Merge branch 'master' into test/strategy-manager-cleanup
8sunyuan Oct 30, 2023
8120635
Merge pull request #280 from Layr-Labs/newepunittestfile
ypatil12 Oct 30, 2023
7d84b4f
Fixed import errors and updated `setUp()`
8sunyuan Oct 30, 2023
3a00d93
Removed strategies from utils helper setup
8sunyuan Oct 30, 2023
c2e203e
Removed Utils.sol as its only functions is only used in StrategyManag…
8sunyuan Oct 30, 2023
e47b114
formatting
8sunyuan Oct 30, 2023
92ccacc
Chore/fix flaky test failures (#308)
ChaoticWalrus Oct 30, 2023
aa6afb6
init
Sidu28 Oct 30, 2023
84f86c3
Added tree file
8sunyuan Oct 30, 2023
70e7ee4
Update README.md
Sidu28 Oct 30, 2023
e65c014
Update README.md
Sidu28 Oct 30, 2023
90f0694
Update README.md
Sidu28 Oct 30, 2023
a616cbb
Updated tree file to match code paths rather than test cases
8sunyuan Oct 31, 2023
db33be1
tree branches for add/remove strategies
8sunyuan Oct 31, 2023
7316597
cleanup and typo
8sunyuan Oct 31, 2023
69b0897
removed unused internal functions
8sunyuan Oct 31, 2023
f011f90
check `_isDepositedStrategy()` after removing shares from all strats
8sunyuan Oct 31, 2023
9f7e955
chore: turn require statements into assertEq(), assertTrue(), assertF…
8sunyuan Oct 31, 2023
d7c322b
chore: changed startPrank() -> prank() where reasonable
8sunyuan Oct 31, 2023
539bba3
fix: missed stopPrank() to delete
8sunyuan Oct 31, 2023
df853c0
chore: specific revert messages
8sunyuan Oct 31, 2023
6a6f93f
Merge pull request #309 from Layr-Labs/addgoerlideployments
Sidu28 Oct 31, 2023
9355fb4
chore: removed event checks, additional tests, rename variable
8sunyuan Nov 1, 2023
4627eb4
fix: removed unneeded eigenpod doc, it's entirely captured already by…
wadealexc Nov 1, 2023
dd5811d
Merge pull request #310 from Layr-Labs/alex/remove-unneeded-doc
gpsanant Nov 1, 2023
dc305cf
remove balance update proof functionality
ypatil12 Nov 2, 2023
3b6a00f
chore: github compatability and tree branching convention
8sunyuan Nov 2, 2023
eefd684
add comment explaining validator fields proof for balance update
ypatil12 Nov 2, 2023
45b1fcb
chore: remove bytes casing
8sunyuan Nov 2, 2023
f69019c
test: check storage variables after intialize()
8sunyuan Nov 2, 2023
c2feb4b
fix: tree file, nonce doesn't increment for depositIntoStrategy()
8sunyuan Nov 2, 2023
d498377
Filter addresses for EPM and EP fuzz tests (#312)
ypatil12 Nov 2, 2023
a1060e6
Merge branch 'master' into test/strategy-manager-cleanup
8sunyuan Nov 3, 2023
defe1b1
comment out failing tests; compiling
ypatil12 Nov 3, 2023
e86a901
added proofs
Sidu28 Nov 3, 2023
d30521e
test: additional coverage andfilterFuzzInput modifier
8sunyuan Nov 3, 2023
1d926f2
Merge pull request #293 from Layr-Labs/test/strategy-manager-cleanup
8sunyuan Nov 3, 2023
880a0dc
update EigenPod unit and integration tests
ypatil12 Nov 6, 2023
5a6d366
update docs to reflect balance update refactor
ypatil12 Nov 6, 2023
47c9c51
remove unused functions from ProofParsing test util
ypatil12 Nov 6, 2023
5981e6f
changes
Gajesh2007 Nov 6, 2023
5fd5d81
bug fix
Gajesh2007 Nov 6, 2023
b84bc69
eigenpod test file changes
Gajesh2007 Nov 6, 2023
497bf09
changes
Gajesh2007 Nov 7, 2023
2692791
removed extra func
Gajesh2007 Nov 7, 2023
9c23b40
chore: migrate BitmapUtils and BN254 to middleware
wadealexc Nov 7, 2023
03bd434
Merge pull request #316 from Layr-Labs/gaj/newPr
Gajesh2007 Nov 7, 2023
bccae53
Merge pull request #319 from Layr-Labs/alex/migrate-bitmap-utils
wadealexc Nov 7, 2023
7fb00d5
chore: add correct M2 Goerli deployment info (#320)
ChaoticWalrus Nov 7, 2023
4f2018c
feat(linting): add commit linter (#296)
stevennevins Nov 7, 2023
62a7c40
EigenPod Unit Test Refactor (#317)
ypatil12 Nov 8, 2023
2965deb
chore: delete unused files (#321)
ChaoticWalrus Nov 8, 2023
606f524
Docs: Note edge case for not completing a queued withdrawal for Eigen…
ypatil12 Nov 9, 2023
08f7b43
fix: remove redudant command (#322)
stevennevins Nov 13, 2023
db4506d
chore: fix broken links and clean up readme (#326)
wadealexc Nov 13, 2023
4e2ef13
chore: use a fixed prover version (#327)
ChaoticWalrus Nov 14, 2023
7a24f6b
chore: update DelegationManager docs to reflect plural queueWithdrawa…
wadealexc Nov 14, 2023
75e5943
chore: switch implementation addresses in README table to M2 versions…
ChaoticWalrus Nov 14, 2023
ccd21a2
Merge pull request #311 from Layr-Labs/feat/balanceUpdateRefactor
ypatil12 Nov 16, 2023
d804820
test: create integration test framework (#335)
wadealexc Nov 17, 2023
bf4f64a
feat: interface change for mw sigchecker
8sunyuan Nov 21, 2023
7ef4f3e
Merge pull request #344 from Layr-Labs/feat/delegation-manager-interface
8sunyuan Nov 21, 2023
f417cbe
init
Sidu28 Nov 29, 2023
5a6bca7
test: support native eth in integration tests (#340)
wadealexc Nov 29, 2023
a8e259d
Merge pull request #348 from Layr-Labs/add-read-functions-to-m2mainnet
Sidu28 Nov 29, 2023
114739a
eigenpod and eigenpodmanager integration tests (#347)
Gajesh2007 Nov 30, 2023
272a7e2
test: implement random withdrawal generator (#349)
wadealexc Nov 30, 2023
5fd0290
Test: DelegationManager unit tests refactor (#332)
8sunyuan Nov 30, 2023
4379e38
fix: address eigen pod unit test conflicts
ypatil12 Nov 30, 2023
547e50a
test: update eigen pod unit tests with new balance update functionality
ypatil12 Nov 30, 2023
b91a743
Merge Master Into M2-Mainnet
ypatil12 Dec 1, 2023
b599cfe
feat: enable AVS update metadata uri (#354)
bowenli86 Dec 1, 2023
f4beee6
test: fuzz staker address != delegationApprover (#360)
8sunyuan Dec 4, 2023
a60b034
feat: add Certora Prover to m2-mainnet CI (#359)
ChaoticWalrus Dec 4, 2023
87f980e
fix: update rpc on withdrawal migrationt tests (#362)
ypatil12 Dec 4, 2023
fe4a8e2
Feat: Remove set withdrawal delay (#355)
8sunyuan Dec 4, 2023
c439468
Integration Tests: Scenarios 2-3 (#350)
ypatil12 Dec 5, 2023
e57b40a
test: support random balance updates in integration tests (#364)
wadealexc Dec 5, 2023
7f244f3
Fix: update balance update not pod caller revert test (#366)
ypatil12 Dec 5, 2023
25aa120
chore: repo cleanup (#365)
wadealexc Dec 6, 2023
9d451d1
chore: migrate to certora prover v5 (#369)
ChaoticWalrus Dec 7, 2023
4d85829
chore: update README, docs, and prune old files (#371)
wadealexc Dec 8, 2023
f1aabfd
feat: support avs<>operator mapping with new APIs (#363)
bowenli86 Dec 11, 2023
7f5012b
feat: more formal verification for eigenpods (#368)
ChaoticWalrus Dec 11, 2023
2833653
fix: update docs and ensure important state changing methods are paus…
wadealexc Dec 11, 2023
a7bb3d8
Test: Add back missing withdrawal tests to DelegationUnit.t.sol (#370)
8sunyuan Dec 11, 2023
ec4baff
fix: several typos in the docs (#356)
tudorpintea999 Dec 15, 2023
134c3e8
remove munged (#373)
teryanarmen Dec 15, 2023
d42c101
fix: make Prover CI run correctly (#376)
ChaoticWalrus Dec 15, 2023
9e04c92
Documentation Fixes: Grammar, Typos, and Prepositions (#377)
joaolago1113 Dec 15, 2023
2323207
made forceUndelegate queue a withdrawal for each strategy (#345)
Gajesh2007 Dec 18, 2023
aa8b38f
Fix m2 deploy from scratch script m2 mainnet (#379)
samlaf Dec 20, 2023
d86d626
Test: Delegation Integration tests (#358)
Gajesh2007 Jan 2, 2024
8d5058c
Fix: flaky integration tests (#384)
ypatil12 Jan 3, 2024
8db7a1d
docs: update deployment lists for new mainnet and testnet strats (#404)
wadealexc Jan 25, 2024
82def95
fixed comment
Sidu28 Feb 6, 2024
ee17607
fix: update links in outdated issue templates (#390)
krauspt Feb 8, 2024
b6a3a91
feat: add m2-mainnet-fixes to m2-mainnet (#409)
wadealexc Feb 16, 2024
e73e880
docs: add common user flows to docs (#445)
wadealexc Feb 19, 2024
d4908eb
updated m2_deploy_from_scratch to use avsDirectory (#449)
samlaf Feb 20, 2024
5c192e1
test: fix flaky delegation approver test (#450)
wadealexc Feb 21, 2024
23ab4c8
chore: update license (#451)
ChaoticWalrus Feb 23, 2024
95094bb
chore: Cleanup script/ directory (#454)
8sunyuan Feb 26, 2024
6e58870
docs: add sigP report (#460)
wadealexc Feb 26, 2024
e12b03f
fix(ci): pin commitlint version (#466)
stevennevins Mar 5, 2024
9ac0ef8
feat: track active validator count in pods (#474)
wadealexc Mar 12, 2024
3ba2b34
chore: remove maxPods (#463)
8sunyuan Mar 13, 2024
43ffb52
feat: holesky deploy scripts (#473)
8sunyuan Mar 14, 2024
a4ea703
fix: certora prover ci (#477)
8sunyuan Mar 18, 2024
87c8499
fix: off-by-one error (#479)
ChaoticWalrus Mar 21, 2024
b87095b
docs: reinstate contract addresses to their former glory (#478)
wadealexc Mar 21, 2024
4b15d68
feat: m2 mainnet upgrade script (#480)
8sunyuan Mar 22, 2024
bc2ce17
feat: add m2 upgrade output file (#482)
ChaoticWalrus Mar 26, 2024
c61e5a0
chore: minor testing fixes (#486)
ChaoticWalrus Mar 26, 2024
96cf578
test: updated fork integration tests (#483)
8sunyuan Mar 26, 2024
ca5abc9
chore: fork test via environment and custom foundry profile (#490)
wadealexc Mar 28, 2024
62902b5
chore: update the pragma from =0.8.12 to ^0.8.12 (#485)
stevennevins Apr 1, 2024
a31a2f3
docs: fix broken link (#493)
wadealexc Apr 3, 2024
41b4361
fix: m2_deploy_from_scratch script for devnet (#495)
samlaf Apr 5, 2024
1c8b3cb
feat: update mainnet implementation addresses (#497)
ChaoticWalrus Apr 5, 2024
f063b61
feat: add script for unpausing deposits (#496)
ChaoticWalrus Apr 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 4 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
RPC_MAINNET="https://eth.llamarpc.com"
# RPC_MAINNET="https://mainnet.infura.io/v3/API-KEY"
# RPC_MAINNET="https://mainnet.infura.io/v3/API-KEY"
RPC_GOERLI="https://ethereum-goerli.publicnode.com"
RPC_HOLESKY=""
ETHERSCAN_API_KEY="API-KEY"
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ User stories are often expressed in a simple sentence, structured as follows: 'A

**Actions**
- [ ] An action item list describing the work to be done
- [ ] Link to all of the related tasks needed to complete the feature. See the [tasks](https://github.com/Layr-Labs/docs/blob/949bd6b4ddd0ef08880c6775c2d9a6222e2e7eb3/.github/ISSUE_TEMPLATE/task.md) template.
- [ ] Link to all of the related tasks needed to complete the feature. See the [tasks](https://github.com/Layr-Labs/eigenlayer-contracts/tree/master/.github/ISSUE_TEMPLATE/task.md) template.
- [ ] Include everything in the definition of done e.g. unit tests and documentation

**Acceptance criteria**
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/task.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ labels: task
---

## Description
Add a summary and description. Link to any parent [feature requests](https://github.com/Layr-Labs/docs/blob/c78dbcd9a4b229e367f11725ee6758271a65bad3/.github/ISSUE_TEMPLATE/feature_request.md) or [bug reports](https://github.com/Layr-Labs/docs/blob/c78dbcd9a4b229e367f11725ee6758271a65bad3/.github/ISSUE_TEMPLATE/bug_report.md).
Add a summary and description. Link to any parent [feature requests](https://github.com/Layr-Labs/eigenlayer-contracts/blob/master/.github/ISSUE_TEMPLATE/feature_request.md) or [bug reports](https://github.com/Layr-Labs/eigenlayer-contracts/blob/master/.github/ISSUE_TEMPLATE/bug_report.md).

### Action Items
- [ ] An action item list describing the work to be done
Expand Down
17 changes: 7 additions & 10 deletions .github/workflows/certora-prover.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master
- release-v*
- formal-verification
- fix-ci-errors
- m2-mainnet
pull_request: {}
workflow_dispatch: {}

Expand Down Expand Up @@ -38,21 +38,18 @@ jobs:
python-version: '3.10'
cache: 'pip'
- name: Install java
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
java-version: '11'
java-package: 'jre'
distribution: temurin
java-version: '17'
- name: Install certora
run: pip install certora-cli==3.6.8.post3
run: pip install certora-cli
- name: Install solc
run: |
wget https://github.com/ethereum/solidity/releases/download/v0.8.12/solc-static-linux
sudo mv solc-static-linux /usr/local/bin/solc
chmod +x /usr/local/bin/solc
pip install solc-select
solc-select use 0.8.12 --always-install
- name: Verify rule ${{ matrix.params }}
run: |
touch certora/applyHarness.patch
make -C certora munged
bash ${{ matrix.params }}
env:
CERTORAKEY: ${{ secrets.CERTORAKEY }}
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CI

on: [push, pull_request]

jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install node dependencies
run: |
npm install conventional-changelog-conventionalcommits
npm install [email protected]

- name: Validate current commit (last commit) with commitlint
if: github.event_name == 'push'
run: npx commitlint --from HEAD~1 --to HEAD --verbose

- name: Validate PR commits with commitlint
if: github.event_name == 'pull_request'
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
38 changes: 38 additions & 0 deletions .github/workflows/run-deploy-scripts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Run Deploy Scripts
# We run the deploy scripts just to make sure they work

on:
push:
pull_request:
types: [opened, reopened]

jobs:
prepare:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: true

# install foundry to run forge script. Should we run forge script in a container instead?
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Start Anvil chain
# need to start Anvil chain with -d to let the container run in the background
# if we start with 'anvil &' instead, the process stops when the step ends
run: docker run -d --rm -p 8545:8545 --entrypoint anvil ghcr.io/foundry-rs/foundry:nightly-5b7e4cb3c882b28f3c32ba580de27ce7381f415a --host 0.0.0.0

- name: Wait for Anvil chain to start
run: sleep 3

# Run Forge script against the Anvil chain
- name: Run M2_Deploy_From_Scratch
run: |
forge script script/deploy/devnet/M2_Deploy_From_Scratch.s.sol --rpc-url http://localhost:8545 \
--private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 --broadcast \
--sig "run(string memory configFileName)" -- M2_deploy_from_scratch.anvil.config.json
24 changes: 24 additions & 0 deletions .github/workflows/slither.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Slither Analysis

on:
push:
pull_request:
types: [opened, reopened]

jobs:
analyze:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3

- name: Run Slither
uses: crytic/[email protected]
id: slither
with:
sarif: results.sarif
fail-on: none

- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: ${{ steps.slither.outputs.sarif }}
39 changes: 0 additions & 39 deletions .github/workflows/test.yml

This file was deleted.

65 changes: 65 additions & 0 deletions .github/workflows/testinparallel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Run Parallel

on:
push:
pull_request:
types: [opened, reopened]

jobs:
prepare:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Get list of .t.sol files in src/test
run: |
FILES=$(find src/test -type f -name '*.t.sol' | sed 's#src/test/##' | jq -R -s -c 'split("\n")[:-1]')
echo "::set-output name=matrix::$FILES"
id: set-matrix

run-tests:
needs: prepare
runs-on: ubuntu-latest
strategy:
fail-fast: false

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Run Forge build
run: |
forge --version
forge build --sizes
id: build

- name: Run unit tests
run: forge test --no-match-contract Integration
env:
RPC_MAINNET: ${{ secrets.RPC_MAINNET }}
RPC_HOLESKY: ${{ secrets.RPC_HOLESKY }}
CHAIN_ID: ${{ secrets.CHAIN_ID }}

- name: Run integration tests
run: forge test --match-contract Integration
env:
RPC_MAINNET: ${{ secrets.RPC_MAINNET }}
RPC_HOLESKY: ${{ secrets.RPC_HOLESKY }}
CHAIN_ID: ${{ secrets.CHAIN_ID }}

- name: Run integration mainnet fork tests
run: forge test --match-contract Integration
env:
FOUNDRY_PROFILE: "forktest"
RPC_MAINNET: ${{ secrets.RPC_MAINNET }}
RPC_HOLESKY: ${{ secrets.RPC_HOLESKY }}
CHAIN_ID: ${{ secrets.CHAIN_ID }}
15 changes: 14 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,24 @@ broadcast

# Deployment tools
/data
.idea/

# Certora Outputs
.certora_internal/
.certora_recent_jobs.json

#script config file
# script/M1_deploy.config.json
script/output/M1_deployment_data.json
script/output/M1_deployment_data.json
/script/output/M2_deployment_data.json

# autogenerated docs (you can generate these locally)
/docs/docgen/

script/misc

test.sh

# Surya outputs
InheritanceGraph.png
surya_report.md
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit ${1}
16 changes: 16 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"plugins": ["prettier-plugin-solidity"],
"overrides": [
{
"files": "*.sol",
"options": {
"parser": "solidity-parse",
"printWidth": 120,
"tabWidth": 4,
"useTabs": false,
"singleQuote": false,
"bracketSpacing": false
}
}
]
}
9 changes: 7 additions & 2 deletions .solhint.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
{
"extends": "solhint:recommended",
"rules": {
"max-line-length": ["warn",200],
"max-line-length": "off",
"no-inline-assembly": "off",
"reason-string": ["warn",{"maxLength":160}],
"func-visibility": ["warn",{"ignoreConstructors":true}],
"explicit-types": ["warn","explicit"],
"quotes": ["warn","double"],
"const-name-snakecase": "off",
"not-rely-on-time": "off",
"avoid-low-level-calls": "off",
"contract-name-camelcase": "off",
"func-name-mixedcase": "off",
"var-name-mixedcase": "off",
"compiler-version": "off"
"compiler-version": "off",
"custom-errors": "off",
"no-global-import": "off",
"immutable-vars-naming": "off"
}
}
1 change: 1 addition & 0 deletions .solhintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Slasher.sol
36 changes: 36 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

## Requirements

Foundry
Git
Node.js

## Setup Repo

```bash
git clone [email protected]:Layr-Labs/eigenlayer-contracts.git
```

### Install Dependencies

```bash
npm install

npx husky install

forge install
```

### Pull Requests

All tests must pass

Commits must be linted

A descriptive summary of the PR has been provided.

### Environment Variables

Some of the tests and features of this repository require environment variables to be set up.

Copy the .env.example file to create a .env and populate it with the appropriate environment values that you have control over
11 changes: 9 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,19 @@ Parameters

Licensor: Layr Labs, Inc.

Licensed Work: EigenLayer Contracts
Licensed Work: EigenLayer Core Contracts
The Licensed Work is (c) 2023 Layr Labs, Inc.

Additional Use Grant: None.

Change Date: 2025-05-01 (May 1st, 2025)
Change Dates:

- All commits at or prior to commit 6de01c6c16d6df44af15f0b06809dc160eac0ebf
(i.e. committed to this repository on or before February 6, 2024, the date of
the [v0.2.1-goerli-m2](https://github.com/Layr-Labs/eigenlayer-contracts/releases/tag/v0.2.1-goerli-m2) release)
have a change date of 2025-05-01 (May 1st, 2025)
- All commits after 6de01c6c16d6df44af15f0b06809dc160eac0ebf (i.e. committed to this
repository after February 6, 2024) have a change date of 2027-02-06 (February 6th, 2027)

Change License: MIT

Expand Down
Loading
Loading