Skip to content

Commit

Permalink
feat: symbiotic integration for validator registry (#383)
Browse files Browse the repository at this point in the history
* Create README.md

* wip

* miscs

* Update MevCommitMiddleware.sol

* wip

* todo

* nit

* feat: introduce operator blacklisting

* Update MevCommitMiddleware.sol

* Update MevCommitMiddleware.sol

* Update MevCommitMiddleware.sol

* todo

* Update MevCommitMiddleware.sol

* Update MevCommitMiddleware.sol

* Update MevCommitMiddleware.sol

* add vault storage

* use enum set

* getter optimization

* Update MevCommitMiddleware.sol

* todos

* Update MevCommitMiddleware.sol

* forge install: core

devnet-v1.0.0

* progress, doesn't build tho

* update sol vers

* integration with core

* check all slashable stake is allocated to single operator

* Update MevCommitMiddleware.sol

* Update MevCommitMiddleware.sol

* Update MevCommitMiddleware.sol

* feat: set vault factory

* Update MevCommitMiddleware.sol

* feat: allow slash amount to be updated

* miscs

* fix: operator/vault check improvement

* feat: unified dereg period

* Update MevCommitMiddlewareStorage.sol

* feat: allow for more flexible oper:vault asociations

* only network restake delegator

* feat: impl slashing and additional vault constraints

* mv subnet

* rm todos

* Update MevCommitMiddleware.sol

* custom errors

* Update geth

* change remaining reverts

* chore: update symbiotic ref

* fix: compile error

* Update ci.yml

* Update MevCommitMiddleware.sol

* Revert "Update MevCommitMiddleware.sol"

This reverts commit 9d68938.

* fix: correct capitalization

* chore: appease linter

* Tie into validator opt-in router

* chore: update abi+binding script

* Update ci.yml

* refactor: double nomad decompression file count limit again

* test setup

* test_registerOperators

* test_requestOperatorDeregistration

* test_deregisterOperators

* test_blacklistNonRegisteredOperators

* test_blacklistRegisteredOperators

* fix: record getters in test file

* test_blacklistReqDeregisteredOperators

* abi

* test_blacklistReqDeregisteredOperators

* refactor: proper ordering

* fix: rm index from bytes event fields

* Squashed commit of the following:

commit 5c0a03f
Author: Shawn <[email protected]>
Date:   Tue Sep 10 17:02:04 2024 -0700

    abis

commit 913eea0
Author: Shawn <[email protected]>
Date:   Tue Sep 10 16:59:21 2024 -0700

    refactor

commit f1bdff7
Author: Shawn <[email protected]>
Date:   Tue Sep 10 16:38:43 2024 -0700

    bindings + abi

commit aac9987
Author: Shawn <[email protected]>
Date:   Tue Sep 10 16:37:46 2024 -0700

    change files

commit 597f747
Author: Shawn <[email protected]>
Date:   Tue Sep 10 16:10:33 2024 -0700

    EventHeight -> Occurrance

commit 92e0be6
Author: mrekucci <[email protected]>
Date:   Tue Sep 10 13:27:12 2024 +0200

    fix: provider-emulator-nodes for stressnet profile (#391)

* fix: use timestamp instead of block

* docs: commit integration spec

* improve _slashValidator

* fixes

* abi + binding for err

* update _slashValidator w.r.t feedback

* docs: Configuration of slashPeriodSeconds

* allow veto slashers

* abi

* linter

* mv functions

* Update Occurrence.sol

* test_registerVaults

* test_updateSlashAmount

* test_requestVaultDeregistrations

* test_deregisterVaults

* test_vaultRegCycle

* Update README.md

* improvements along with tests

* MevCommitMiddlewareTestCont

* fix: incorporate veto duration into epoch duration validation

* Update README.md

* test_registerValidators + improvements to contract

* slashable vals refactors

* tests for requestValidatorDeregistrations

* getPositionInValset + test

* abi + binding

* test_deregisterValidatorsFromContractOwner

* address review comments

* comments

* Update core

* appease linter

* comments + storage gap

* test_deregisterValidatorsFromValidOperator

* test_deregisterValidatorsInvalidOperator

* new view funcs + tests

* slashValidators improvements + tests

* test_slashValidatorsVaultDeregistered

* binding + abi

* Update EnumerableSet.sol

* docs + test_slashValidatorsSuccess

* improve slashValidator w/ additon of slashRecord + tests

* docs

* calldata cacheing

* cacheing in slashValidators

* Update README.md

* emit SlashRecordCreated event + tests

* Update ValidatorOptInRouterTest.sol

* fix: numInitSlashable -> numInitSlashableRegistered + tests

* rm redundant data in error

* additional tests

* abi+binding

* final test for greifing scenario
  • Loading branch information
shaspitz authored Sep 19, 2024
1 parent 5f27ffc commit 09b87de
Show file tree
Hide file tree
Showing 29 changed files with 12,312 additions and 17 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@
[submodule "contracts/lib/eigenlayer-contracts"]
path = contracts/lib/eigenlayer-contracts
url = https://github.com/Layr-Labs/eigenlayer-contracts.git
[submodule "contracts/lib/core"]
path = contracts/lib/core
url = https://github.com/symbioticfi/core
Loading

0 comments on commit 09b87de

Please sign in to comment.