Skip to content

Commit

Permalink
Update IBCMsg type
Browse files Browse the repository at this point in the history
  • Loading branch information
chipshort committed Jun 26, 2024
1 parent eec191a commit 074e7d6
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 074e7d6

Please sign in to comment.