Skip to content

Commit

Permalink
Add async ack prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
chipshort committed Apr 23, 2024
1 parent c0c32c3 commit f1a2c47
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/std/src/ibc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down

0 comments on commit f1a2c47

Please sign in to comment.