File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -169,11 +169,11 @@ type IBCSourceChainCallbackMsg struct {
169
169
}
170
170
171
171
// The message type of the IBC destination chain callback.
172
- // This is just an alias for [`IbcPacketReceiveMsg`] to add some documentation.
173
172
//
174
173
// The IBC destination chain callback is needed for cases where someone triggers the sending of an
175
174
// IBC packet through some other message (i.e. not through [`IbcMsg::SendPacket`]) and
176
175
// your contract needs to know that it received this.
176
+ // The callback is called after the packet was successfully acknowledged on the destination chain.
177
177
// A prominent example is the [`IbcMsg::Transfer`] message. Without callbacks, you cannot know
178
178
// that someone sent you IBC coins.
179
179
//
@@ -183,7 +183,10 @@ type IBCSourceChainCallbackMsg struct {
183
183
// (i.e. the destination chain needs to support callbacks for the message you are being sent).
184
184
// - You have to add json-encoded [`IbcCallbackData`] to a specific field of the message.
185
185
// For `IbcMsg::Transfer`, this is the `memo` field.
186
- type IBCDestinationChainCallbackMsg = IBCPacketReceiveMsg
186
+ type IBCDestinationChainCallbackMsg struct {
187
+ Ack IBCAcknowledgement `json:"ack"`
188
+ Packet IBCPacket `json:"packet"`
189
+ }
187
190
188
191
// TODO: test what the sdk Order.String() represents and how to parse back
189
192
// Proto files: https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/ibc/core/channel/v1/channel.proto#L69-L80
You can’t perform that action at this time.
0 commit comments