Skip to content

Commit

Permalink
Merge pull request #542 from CosmWasm/co/async-ack
Browse files Browse the repository at this point in the history
Async Ack message type
  • Loading branch information
chipshort authored Jun 26, 2024
2 parents eec191a + 074e7d6 commit 372c10c
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions types/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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"`
}
Expand Down

0 comments on commit 372c10c

Please sign in to comment.