Skip to content

Commit 4456df6

Browse files
committed
Add async ack prototype
1 parent 6bdfd9c commit 4456df6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/std/src/ibc.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,16 @@ pub enum IbcMsg {
6161
/// when packet times out, measured on remote chain
6262
timeout: IbcTimeout,
6363
},
64+
/// Acknowledges a packet that this contract received over IBC.
65+
/// This allows acknowledging a packet that was not acknowledged yet in the `ibc_packet_receive` call.
66+
WriteAcknowledgement {
67+
/// Existing channel where the packet was received
68+
channel_id: String,
69+
/// Sequence number of the packet that was received
70+
packet_sequence: u64,
71+
/// The acknowledgement to send back
72+
ack: IbcFullAcknowledgement,
73+
},
6474
/// This will close an existing channel that is owned by this contract.
6575
/// Port is auto-assigned to the contract's IBC port
6676
CloseChannel { channel_id: String },

0 commit comments

Comments
 (0)