-
Notifications
You must be signed in to change notification settings - Fork 624
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(core, apps): 'PacketDataUnmarshaler' interface added and implemented #4188
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one! Only request would be to use the mock application error once #4189 is merged
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #4188 +/- ##
==========================================
+ Coverage 79.47% 79.50% +0.02%
==========================================
Files 188 188
Lines 12973 12991 +18
==========================================
+ Hits 10310 10328 +18
Misses 2234 2234
Partials 429 429
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Followup ACK
…nted (#4188) * feat(core/port): added PacketDataUnmarshaler interface * feat(transfer): implemented PacketDataUnmarshaler interface in transfer * feat(ica/controller): implemented PacketDataUnmarshaler interface * feat(fee): implemented PacketDataUnmarshaler interface * feat(mock): implemented PacketDataUnmarshaler interface * imp(transfer_test): removed explicit use of callbacks in tests * style(transfer_test): ran golangci-lint * imp(testing/mock): removed ErrorMock for the upstreamed error * style(fee_test): improved test readability * imp(transfer_test): improved test styling and added new test case (cherry picked from commit 2ac5506) # Conflicts: # modules/apps/27-interchain-accounts/controller/ibc_middleware.go # modules/apps/29-fee/ibc_middleware.go # modules/apps/29-fee/ibc_middleware_test.go # modules/apps/29-fee/types/errors.go # modules/apps/transfer/ibc_module_test.go # testing/mock/ibc_module.go
…nted (backport #4188) (#4211) * feat(core, apps): 'PacketDataUnmarshaler' interface added and implemented (#4188) * feat(core/port): added PacketDataUnmarshaler interface * feat(transfer): implemented PacketDataUnmarshaler interface in transfer * feat(ica/controller): implemented PacketDataUnmarshaler interface * feat(fee): implemented PacketDataUnmarshaler interface * feat(mock): implemented PacketDataUnmarshaler interface * imp(transfer_test): removed explicit use of callbacks in tests * style(transfer_test): ran golangci-lint * imp(testing/mock): removed ErrorMock for the upstreamed error * style(fee_test): improved test readability * imp(transfer_test): improved test styling and added new test case (cherry picked from commit 2ac5506) # Conflicts: # modules/apps/27-interchain-accounts/controller/ibc_middleware.go # modules/apps/29-fee/ibc_middleware.go # modules/apps/29-fee/ibc_middleware_test.go # modules/apps/29-fee/types/errors.go # modules/apps/transfer/ibc_module_test.go # testing/mock/ibc_module.go * fix: fixed backport conflicts --------- Co-authored-by: srdtrk <[email protected]> Co-authored-by: srdtrk <[email protected]>
Description
This PR reduces the diff when reviewing the adr8 PR #3939.
PacketDataUnmarshaler
is an optional interface which allows a middleware to request the packet data to be unmarshaled by the base application.closes: #XXXX
Commit Message / Changelog Entry
see the guidelines for commit messages. (view raw markdown for examples)
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.
docs/
) or specification (x/<module>/spec/
).godoc
comments.Files changed
in the Github PR explorer.Codecov Report
in the comment section below once CI passes.