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

add get aggregate attestation request #8483

Merged
merged 16 commits into from
Aug 22, 2024

Conversation

mehdi-aouadi
Copy link
Contributor

@mehdi-aouadi mehdi-aouadi commented Jul 30, 2024

PR Description

Add the GetAggregateAttestation Request to use the new GetAggregateAttestationV2 API

Fixed Issue(s)

#8420

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.

@mehdi-aouadi mehdi-aouadi marked this pull request as ready for review July 30, 2024 13:10
@mehdi-aouadi mehdi-aouadi self-assigned this Jul 30, 2024
Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This pull request introduces the GetAggregateAttestationV2 API to handle Electra attestations, deprecating the old createAggregate method.

  • ValidatorApiHandler.java: Added createAggregateV2 method; deprecated createAggregate.
  • GetAggregateAttestation.java: Updated to use GetAggregateAttestationV2 API; renamed response type.
  • ValidatorApiChannel.java: Introduced createAggregateV2 method.
  • MetricRecordingValidatorApiChannel.java: Added createAggregateV2 method; deprecated createAggregate.
  • GetAggregateAttestationRequestTest.java: Added integration tests for GetAggregateAttestationRequest.
  • getAggregateAttestationELECTRA.json: Added sample JSON response for Electra version.
  • getAggregateAttestationPHASE0.json: Added sample JSON response for phase0 version.
  • FailoverValidatorApiHandler.java: Added createAggregateV2 method; deprecated createAggregate.
  • RemoteValidatorApiHandler.java: Added createAggregateV2 method; deprecated createAggregate.
  • ValidatorApiMethod.java: Added GET_AGGREGATE_V2 endpoint.
  • SentryValidatorApiChannel.java: Added createAggregateV2 method; deprecated createAggregate.
  • OkHttpValidatorTypeDefClient.java: Added createAggregate method using GetAggregateAttestationRequest.
  • GetAggregateAttestationRequest.java: Added new class to handle GetAggregateAttestationV2 API.

13 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

Copy link
Contributor

@rolfyone rolfyone left a comment

Choose a reason for hiding this comment

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

LGTM

@mehdi-aouadi mehdi-aouadi enabled auto-merge (squash) August 22, 2024 07:52
@mehdi-aouadi mehdi-aouadi merged commit fe54d38 into Consensys:master Aug 22, 2024
16 of 17 checks passed
@mehdi-aouadi mehdi-aouadi deleted the 8420-handler branch August 22, 2024 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants