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
Copy file name to clipboardExpand all lines: types/ibc.go
+16-15Lines changed: 16 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -148,24 +148,25 @@ type IBCPacketTimeoutMsg struct {
148
148
Relayerstring`json:"relayer"`
149
149
}
150
150
151
-
// The type of IBC callback that is being called.
151
+
// The type of IBC source chain callback that is being called.
152
152
//
153
-
// IBC callbacks are needed for cases where your contract triggers the sending of an IBC packet
154
-
// through some other message (i.e. not through [`IbcMsg::SendPacket`]) and needs to know whether
155
-
// or not the packet was successfully received on the other chain. A prominent example is the
156
-
// [`IbcMsg::Transfer`] message.
157
-
// Without callbacks, you cannot know whether the transfer was successful or not.
153
+
// IBC source chain callbacks are needed for cases where your contract triggers the sending of an IBC packet through some other message (i.e. not through [`IbcMsg::SendPacket`]) and needs to know whether or not the packet was successfully received on the other chain. A prominent example is the [`IbcMsg::Transfer`] message. Without callbacks, you cannot know whether the transfer was successful or not.
158
154
//
159
-
// Note that there are some prerequisites that need to be fulfilled to receive source chain callbacks:
160
-
// - The contract must implement the `ibc_source_chain_callback` entrypoint.
161
-
// - The module that sends the packet must be wrapped by an `IBCMiddleware`
162
-
// (i.e. the source chain needs to support callbacks for the message you are sending).
163
-
// - You have to add json-encoded [`IbcCallbackData`] to a specific field of the message.
164
-
// For `IbcMsg::Transfer`, this is the `memo` field.
165
-
// - The receiver of the callback must also be the sender of the message.
155
+
// Note that there are some prerequisites that need to be fulfilled to receive source chain callbacks: - The contract must implement the `ibc_source_chain_callback` entrypoint. - The IBC application in the source chain must have support for the callbacks middleware. - You have to add serialized [`IbcCallbackRequest`] to a specific field of the message. For `IbcMsg::Transfer`, this is the `memo` field and it needs to be json-encoded. - The receiver of the callback must also be the sender of the message.
0 commit comments