Skip to content

Commit d468f76

Browse files
committed
Update go-gen tests
1 parent abba6cf commit d468f76

File tree

2 files changed

+35
-3
lines changed

2 files changed

+35
-3
lines changed

packages/go-gen/tests/cosmwasm_std__IbcMsg.go

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,34 @@ type WriteAcknowledgementMsg struct {
2121
type CloseChannelMsg struct {
2222
ChannelID string `json:"channel_id"`
2323
}
24+
type PayPacketFeeMsg struct {
25+
// The channel id on the chain where the packet is sent from (this chain).
26+
ChannelID string `json:"channel_id"`
27+
Fee IBCFee `json:"fee"`
28+
// The port id on the chain where the packet is sent from (this chain).
29+
PortID string `json:"port_id"`
30+
// Allowlist of relayer addresses that can receive the fee. This is currently not implemented and *must* be empty.
31+
Relayers Array[string] `json:"relayers"`
32+
}
33+
type PayPacketFeeAsyncMsg struct {
34+
// The channel id on the chain where the packet is sent from (this chain).
35+
ChannelID string `json:"channel_id"`
36+
Fee IBCFee `json:"fee"`
37+
// The port id on the chain where the packet is sent from (this chain).
38+
PortID string `json:"port_id"`
39+
// Allowlist of relayer addresses that can receive the fee. This is currently not implemented and *must* be empty.
40+
Relayers Array[string] `json:"relayers"`
41+
// The sequence number of the packet that should be incentivized.
42+
Sequence uint64 `json:"sequence"`
43+
}
2444

2545
type IBCMsg struct {
2646
Transfer *TransferMsg `json:"transfer,omitempty"`
2747
SendPacket *SendPacketMsg `json:"send_packet,omitempty"`
2848
WriteAcknowledgement *WriteAcknowledgementMsg `json:"write_acknowledgement,omitempty"`
2949
CloseChannel *CloseChannelMsg `json:"close_channel,omitempty"`
50+
PayPacketFee *PayPacketFeeMsg `json:"pay_packet_fee,omitempty"`
51+
PayPacketFeeAsync *PayPacketFeeAsyncMsg `json:"pay_packet_fee_async,omitempty"`
3052
}
3153

3254
// Coin is a string representation of the sdk.Coin type (more portable than sdk.Int)
@@ -38,6 +60,11 @@ type Coin struct {
3860
type IBCAcknowledgement struct {
3961
Data []byte `json:"data"`
4062
}
63+
type IBCFee struct {
64+
AckFee Array[Coin] `json:"ack_fee"`
65+
RecvFee Array[Coin] `json:"recv_fee"`
66+
TimeoutFee Array[Coin] `json:"timeout_fee"`
67+
}
4168

4269
// IBCTimeout is the timeout for an IBC packet. At least one of block and timestamp is required.
4370
type IBCTimeout struct {

packages/go-gen/tests/cosmwasm_std__IbcQuery.go

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,16 @@ type ChannelQuery struct {
1515
// optional argument
1616
PortID string `json:"port_id,omitempty"`
1717
}
18+
type FeeEnabledChannelQuery struct {
19+
ChannelID string `json:"channel_id"`
20+
PortID string `json:"port_id,omitempty"`
21+
}
1822

1923
// IBCQuery defines a query request from the contract into the chain.
2024
// This is the counterpart of [IbcQuery](https://github.com/CosmWasm/cosmwasm/blob/v0.14.0-beta1/packages/std/src/ibc.rs#L61-L83).
2125
type IBCQuery struct {
22-
PortID *PortIDQuery `json:"port_id,omitempty"`
23-
ListChannels *ListChannelsQuery `json:"list_channels,omitempty"`
24-
Channel *ChannelQuery `json:"channel,omitempty"`
26+
PortID *PortIDQuery `json:"port_id,omitempty"`
27+
ListChannels *ListChannelsQuery `json:"list_channels,omitempty"`
28+
Channel *ChannelQuery `json:"channel,omitempty"`
29+
FeeEnabledChannel *FeeEnabledChannelQuery `json:"fee_enabled_channel,omitempty"`
2530
}

0 commit comments

Comments
 (0)