-
Notifications
You must be signed in to change notification settings - Fork 4
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
Bump EigenSDK to v0.2.0-beta.1 for compatibility with new Holesky Deploy #45
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly LGTM, but I'm out of the loop on eigenlayer and sdk stuff, so tagging @shrimalmadhur for another review.
Also @ian-shim to make sure this change is fine for eigenda.
avssync/avssync.go
Outdated
AvsReader avsregistry.ChainReader | ||
AvsWriter avsregistry.ChainWriter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's this change exactly? Haven't touched the sdk in a while so not sure. Is this the change that fixes the "no slasher founder" issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah so changing to the new avs chainreader and chainwriter fixes the issue because they're no longer checking for the slasher which no longer exists on holesky
Can see the diff: https://github.com/Layr-Labs/eigensdk-go/pull/342/files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh this is interface renaming
We had bad naming - avsRegistry.AvsRegistryChainReader. We replaced it with avsRegistry.ChainReader
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And what afk said - this version of sdk removes slasher contract binding generation so fixes the issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM I'll keep my stamp, but would still prefer we wait for @ian-shim's approval in case this could cause issues for EigenDA.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Motivation
AVS were seeing the following error when running the current version of avs sync post-holesky upgrade:
Failed to create ELChainReader: Failed to fetch Slasher address: execution reverted)"
Solution
Bumps EigenSDK to v0.2.0-beta.1
Open questions
We don't include the AllocationManager in the legacyNewEigenlayerContractBindings
see: https://github.com/Layr-Labs/eigensdk-go/blob/a0cf13a02ec6777ec40c237e8b2c48ee6b3ce78e/chainio/clients/elcontracts/bindings.go#L133 which is used to create the bindings for the avsRegistry reader and writer. This means that this new branch should work on both holesky and mainnet - but was this intentional?Edit: Realized it probably is because the AllocationManager can be derived from the DelegationManager