Add a UnmarshalPacketData
optional interface function to support ADR 8 callbacks
#3349
Closed
3 tasks
Milestone
Summary
In order for ADR 8 to work generically with the given middleware construction, it needs to ask the underlying app to decode the packet data bytes into an interface function.
Problem Definition
Middleware has no way of generically decoding packet data bytes without making assertions on the underlying app
Proposal
Add an optional interface which IBC apps can implement. It should take in bytes and return an interface. For ICS 20 the
FungibleTokenPacketData
should be returned. For ICS 27 theInterchainAccountsPacketData
should be returned. ADR 8 can cast these interfaces to theCallbacksPacketData
if supported.For Admin Use
The text was updated successfully, but these errors were encountered: