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

Added GetPendingDeposits #9110

Merged
merged 7 commits into from
Feb 12, 2025
Merged

Added GetPendingDeposits #9110

merged 7 commits into from
Feb 12, 2025

Conversation

rolfyone
Copy link
Contributor

Partially addresses ethereum/beacon-APIs#500

Attempting to access this data prior to electra will fail with a 400.

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

Partially addresses ethereum/beacon-APIs#500

Attempting to access this data prior to electra will fail with a 400.

Signed-off-by: Paul Harris <[email protected]>
Copy link
Contributor

@gfukushima gfukushima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@lucassaldanha lucassaldanha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGMT. Just a few NIT comments.

.description(
"Returns pending deposits for state with given 'stateId'. Should return 400 if requested before electra.")
.pathParam(PARAMETER_STATE_ID)
.tags(TAG_BEACON, TAG_EXPERIMENTAL)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Experimental?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i can remove it but its not currently approved is all

if (!maybeStateAndMetadata
.get()
.getMilestone()
.isGreaterThanOrEqualTo(SpecMilestone.ELECTRA)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT: I think we need a isLessThan() method for our Milestone check... This would read much better as isLessThan(SpecMilestone.ELECTRA) (and without negating the whole expression).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thats what i looked for first, i guess i could change it

@rolfyone rolfyone merged commit bb1c53c into Consensys:master Feb 12, 2025
16 checks passed
@rolfyone rolfyone deleted the state-apis branch February 12, 2025 21:21
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.

3 participants