From 074e7d630d8361b23b4c58065d7804eafbb5ba8e Mon Sep 17 00:00:00 2001 From: Christoph Otter Date: Fri, 10 May 2024 18:00:12 +0200 Subject: [PATCH] Update IBCMsg type --- types/msg.go | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/types/msg.go b/types/msg.go index 3bae8e6da..9f22d300c 100644 --- a/types/msg.go +++ b/types/msg.go @@ -121,9 +121,10 @@ type BurnMsg struct { } type IBCMsg struct { - Transfer *TransferMsg `json:"transfer,omitempty"` - SendPacket *SendPacketMsg `json:"send_packet,omitempty"` - CloseChannel *CloseChannelMsg `json:"close_channel,omitempty"` + Transfer *TransferMsg `json:"transfer,omitempty"` + SendPacket *SendPacketMsg `json:"send_packet,omitempty"` + WriteAcknowledgement *WriteAcknowledgementMsg `json:"write_acknowledgement,omitempty"` + CloseChannel *CloseChannelMsg `json:"close_channel,omitempty"` } type GovMsg struct { @@ -241,6 +242,15 @@ type SendPacketMsg struct { Timeout IBCTimeout `json:"timeout"` } +type WriteAcknowledgementMsg struct { + // The acknowledgement to send back + Ack IBCAcknowledgement `json:"ack"` + // Existing channel where the packet was received + ChannelID string `json:"channel_id"` + // Sequence number of the packet that was received + PacketSequence uint64 `json:"packet_sequence"` +} + type CloseChannelMsg struct { ChannelID string `json:"channel_id"` }