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

started cleaning up JsonProvider usage #8512

Merged
merged 8 commits into from
Aug 19, 2024

Conversation

rolfyone
Copy link
Contributor

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.

@rolfyone rolfyone marked this pull request as ready for review August 16, 2024 04:31
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 focuses on cleaning up JsonProvider usage across the Teku codebase, primarily in the data exchange and serialization components.

  • Replaced JsonProvider with JsonUtil for JSON serialization/deserialization in multiple classes
  • Refactored data structures (e.g., Metadata, SignedAttestation) to use records and Optional for improved type safety
  • Removed several custom deserializers (e.g., GetNewBlockResponseDeserializer) and updated related test classes
  • Introduced new Attestation and Block record classes for slashing protection interchange data
  • Updated SlashingProtectionInterchangeTestExecutor to use modern Java features and improve readability

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

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

@rolfyone rolfyone merged commit 85feeab into Consensys:master Aug 19, 2024
16 checks passed
@rolfyone rolfyone deleted the cleanup-json-provider branch August 19, 2024 20:03
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.

2 participants