You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The initial implementation of GetSourceCallbacksAddress and GetDestCallbacksAddress requires the sender/receiver to be the same as the source/destinations addresses specified in the memo for ICS 20
This issue is to document discussion on whether/how to change that.
One possible solution is adding an optional boolean to allow a non receiver for the destination callback
The text was updated successfully, but these errors were encountered:
colin-axner
changed the title
Consider allowing alternative receiving address in ICS 20 ADR 8 callbacks
Consider allowing alternative sender/receiver address in ICS 20 ADR 8 callbacks
Mar 27, 2023
i think this is a pretty common use case and would be great to have!
in addition, it would be great to be able to add data to the callbacks from the initiator, that the receiver gets from the callback. for example, this is my callback design:
/// Executed on the callback receiver upon message completion. When/// being executed, the message will be tagged with "callback":////// ```json/// {"callback": {/// "initiator": ...,/// "initiator_msg": ...,/// "result": ...,/// }}/// ```#[cw_serde]pubstructCallbackMessage{/// Initaitor on the controller chain.pubinitiator:Addr,/// Message sent by the initaitor.pubinitiator_msg:Binary,/// Data from the host chain.pubresult:Callback,}
a use i can imagine in this is outposts where you want to:
transfer token to outpost account.
list(swap/whatever) token using outpost account.
to do this, the outpost needs to get a callback on the ics20 completion, and the initiator needs to include information (initiator_data) in the callback to the outpost in step (2) saying what action to take (list/swap/whatever).
Summary
The initial implementation of
GetSourceCallbacksAddress
andGetDestCallbacksAddress
requires the sender/receiver to be the same as the source/destinations addresses specified in the memo for ICS 20This issue is to document discussion on whether/how to change that.
One possible solution is adding an optional boolean to allow a non receiver for the destination callback
Same suggestion could be true for the sender
For Admin Use
The text was updated successfully, but these errors were encountered: