-
Notifications
You must be signed in to change notification settings - Fork 411
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
Return IBC packet sequence number in the handler_plugin #1154
Comments
Excuse my beginner Go, but I don't understand the diff. Where does the |
data is a named return value here. In the reply entrypoint, it is indeed the data field of a
(reusing the existing MsgTransferResponse proto here) |
Thank you, got it. In this case we should indeed have a |
I think returning packet number is good. I wouldn't use Protobuf interfaces but JSON, like the rest of the APIs we use in CosmWasm. Protobuf is for decoding raw data from the sdk |
querying the next sequence number would be the best option. The main reason for using protobuf would be to keep the same interface between ics-20 transfers and raw ibc packets, but being able to query the next sequence number for both would also solve that |
A synchronous query for data that is created as part of the message execution does not work well with the actor model. The sequence can easily be a different one the moment the
|
For certain use cases, such as handling packets to ICQ and ICA hosts, the smart contract needs to connect outgoing packets to incoming acknowledgements to be able to handle the internal serialized bytes of the acknowledgement. To do this, the
IBCRawPacketHandler
DispatchMsg
method should return the sequence number in some format. This could be a protobuf, for examplefor an example of needed changes; see here
The text was updated successfully, but these errors were encountered: