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

feat(transfer): use protobuf for packet data v2 serialisation #6734

Merged
merged 4 commits into from
Jul 4, 2024

Conversation

DimitrisJim
Copy link
Contributor

Description

closes: #6630


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against the correct branch (see CONTRIBUTING.md).
  • Linked to GitHub issue with discussion and accepted design, OR link to spec that describes this work.
  • Code follows the module structure standards and Go style guide.
  • Wrote unit and integration tests.
  • Updated relevant documentation (docs/).
  • Added relevant godoc comments.
  • Provide a conventional commit message to follow the repository standards.
  • Include a descriptive changelog entry when appropriate. This may be left to the discretion of the PR reviewers. (e.g. chores should be omitted from changelog)
  • Re-reviewed Files changed in the GitHub PR explorer.
  • Review SonarCloud Report in the comment section below once CI passes.

@crodriguezvega crodriguezvega added the priority PRs that need prompt reviews label Jul 2, 2024
Copy link
Contributor

@crodriguezvega crodriguezvega left a comment

Choose a reason for hiding this comment

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

Nice!

modules/apps/transfer/keeper/relay_test.go Show resolved Hide resolved
@DimitrisJim DimitrisJim force-pushed the jim/6630-protobuf-for-packet-data branch from b4c6a5e to a4a763a Compare July 3, 2024 07:18
"failure: new field present in packet data",
func() {
// packet data containing extra field unknown to current proto file.
packetDataBz = []byte("\n%\n\x1d\n\x04atom\x1a\x15\n\btransfer\x12\tchannel-0\x12\x041000\x12\x06sender\x1a\breceiver*\x002\tnew_value")
Copy link
Contributor

Choose a reason for hiding this comment

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

could be nice to take packetDataBz and append the new field for readability

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah, right, I'll do that before merge!

Copy link
Contributor

@colin-axner colin-axner left a comment

Choose a reason for hiding this comment

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

Clean change!

Copy link

sonarcloud bot commented Jul 4, 2024

@DimitrisJim DimitrisJim added this pull request to the merge queue Jul 4, 2024
Merged via the queue into main with commit cd20ccf Jul 4, 2024
80 of 82 checks passed
@DimitrisJim DimitrisJim deleted the jim/6630-protobuf-for-packet-data branch July 4, 2024 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority PRs that need prompt reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use protobuf to encode/decode packet data of ICS20 v2
4 participants