Skip to content

Commit caa6dfe

Browse files
committed
Update go-gen test
1 parent 792ca3a commit caa6dfe

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

packages/go-gen/tests/cosmwasm_std__IbcMsg.go

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,23 @@ type SendPacketMsg struct {
1010
Data []byte `json:"data"`
1111
Timeout IBCTimeout `json:"timeout"`
1212
}
13+
type WriteAcknowledgementMsg struct {
14+
// The acknowledgement to send back
15+
Ack IBCFullAcknowledgement `json:"ack"`
16+
// Existing channel where the packet was received
17+
ChannelID string `json:"channel_id"`
18+
// Sequence number of the packet that was received
19+
PacketSequence uint64 `json:"packet_sequence"`
20+
}
1321
type CloseChannelMsg struct {
1422
ChannelID string `json:"channel_id"`
1523
}
1624

1725
type IBCMsg struct {
18-
Transfer *TransferMsg `json:"transfer,omitempty"`
19-
SendPacket *SendPacketMsg `json:"send_packet,omitempty"`
20-
CloseChannel *CloseChannelMsg `json:"close_channel,omitempty"`
26+
Transfer *TransferMsg `json:"transfer,omitempty"`
27+
SendPacket *SendPacketMsg `json:"send_packet,omitempty"`
28+
WriteAcknowledgement *WriteAcknowledgementMsg `json:"write_acknowledgement,omitempty"`
29+
CloseChannel *CloseChannelMsg `json:"close_channel,omitempty"`
2130
}
2231

2332
// Coin is a string representation of the sdk.Coin type (more portable than sdk.Int)
@@ -26,6 +35,14 @@ type Coin struct {
2635
Denom string `json:"denom"` // type, eg. "ATOM"
2736
}
2837

38+
// The acknowledgement written by the module on the destination chain. It is different from the [`crate::IbcAcknowledgement`] as it can be unsuccessful.
39+
type IBCFullAcknowledgement struct {
40+
// The acknowledgement data returned by the module.
41+
Data []byte `json:"data"`
42+
// Whether the acknowledgement was successful or not.
43+
Success bool `json:"success"`
44+
}
45+
2946
// IBCTimeout is the timeout for an IBC packet. At least one of block and timestamp is required.
3047
type IBCTimeout struct {
3148
Block *IBCTimeoutBlock `json:"block,omitempty"` // in wasmvm, this does not have "omitempty"

0 commit comments

Comments
 (0)