-
Notifications
You must be signed in to change notification settings - Fork 321
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
Receive callback on ics-20 ack/timeout #1652
Comments
I was thinking today, that a popular ibc use case is nice start but a more generic approach would bring us in a much better position.
The next question would be: how a contract can opt in to receive callbacks for certain packages? Analogue to the ics-29 fees message, we could have a "un-/registerIBCCallback" Msg that can contain the package ID. Another option would be a "wildcard" for a sourcePortID, sourceChannelID pair. Or we support both |
Can this be closed if we do #1938? |
yes, I had opened this to support ADR-8 use cases |
Example:
Contract A on chain X sends an ics-20 transfer to chain Y. On ack/timeout the contract gets a callback when the ack/timeout is processed back to chain X.
Ideally this should work with other IBC app level messages, too.
Some useful data for the contract would be:
Not sure if raw packet or ack data should be added.
I assume that we may need a new ibc message to return to handle this scenario differently than classic ics20 messages. Probably with a new entrypoint for the callback.
The IBC part can be implemented in wasmd with some additional middleware. There needs to be some way to prevent random ics-20 messages to call the contract callback.
This is inspired by adr-8
The text was updated successfully, but these errors were encountered: