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

refactor: elcontracts update more reader interfaces #497

Open
wants to merge 7 commits into
base: dev
Choose a base branch
from

Conversation

damiramirez
Copy link
Contributor

@damiramirez damiramirez commented Jan 31, 2025

What Changed?

This PR is part of an incremental refactor to improve the elcontracts/reader interface by implementing a request-response pattern. For the exposed functions, we create structs that represent the request (specific fields + BlockNumber) and the response.

Because the function signatures change, we also refactor the tests to align with the new pattern.

Methods updated in this PR: CalculateDelegationApprovalDigestHash, CalculateOperatorAVSRegistrationDigestHash, GetDistributionRootsLength, CurrRewardsCalculationEndTimestamp, GetCurrentClaimableDistributionRoot, GetRootIndexFromHash, GetCumulativeClaimed and CheckClaim

Tracking methods in #494

Reviewer Checklist

  • Code is well-documented
  • Code adheres to Go naming conventions
  • Code deprecates any old functionality before removing it

@damiramirez damiramirez marked this pull request as ready for review January 31, 2025 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant