From f1a2c474385b51e0c25589dbbb374442fced1813 Mon Sep 17 00:00:00 2001 From: Christoph Otter Date: Tue, 23 Apr 2024 17:48:42 +0200 Subject: [PATCH] Add async ack prototype --- packages/std/src/ibc.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/std/src/ibc.rs b/packages/std/src/ibc.rs index cec3b790d7..4727d6dc81 100644 --- a/packages/std/src/ibc.rs +++ b/packages/std/src/ibc.rs @@ -58,6 +58,16 @@ pub enum IbcMsg { /// when packet times out, measured on remote chain timeout: IbcTimeout, }, + /// Acknowledges a packet that this contract received over IBC. + /// This allows acknowledging a packet that was not acknowledged yet in the `ibc_packet_receive` call. + WriteAcknowledgement { + /// Existing channel where the packet was received + channel_id: String, + /// Sequence number of the packet that was received + packet_sequence: u64, + /// The acknowledgement to send back + ack: IbcFullAcknowledgement, + }, /// This will close an existing channel that is owned by this contract. /// Port is auto-assigned to the contract's IBC port CloseChannel { channel_id: String },