Add SendPacket
rpc and OnSendPacket
callback
#7012
Labels
04-channel
05-port
Issues concerns the 05-port submodule
needs discussion
Issues that need discussion before they can be worked on
Milestone
Summary
With #6941, we will add a
SendPacket
rpc which can be called by users/actors in the same fashion that relayers invoke other ibc messages. This will result in aOnSendPacket
callback which will replace the ics4wrapper interface function. This will allow middleware applications to provide their own packet data.Problem Definition
See #6941 and #7008 for reasoning
Proposal
Both #6941 and #6985 require this, so I am opening an issue to agree on the api.
Currently we have the following:
But given that Eureka is breaking the correlation between src_channel, src_port <> dest_channel, dest_port, all the packet information (except the sequence) should be provided.
Thus we can start with
MsgSendPacket
:The decision of #7008 will also decide the type for
data
.In addition we will need to add a
OnSendPacket
callback. We have started with:I believe we could simplify this to:
This should likely mirror the api decided in #7008
Now I am going off the deep end a little and hypothesizing what the
MsgSendPacketV2
could look like after #7008 and #6985 adoption and no concern for backwards compatibility 😄For Admin Use
The text was updated successfully, but these errors were encountered: