diff --git a/docs/ibc/proto-docs.md b/docs/ibc/proto-docs.md
index 96963202d20..0d50531b2e0 100644
--- a/docs/ibc/proto-docs.md
+++ b/docs/ibc/proto-docs.md
@@ -46,6 +46,8 @@
- [ibc/applications/fee/v1/query.proto](#ibc/applications/fee/v1/query.proto)
- [QueryIncentivizedPacketRequest](#ibc.applications.fee.v1.QueryIncentivizedPacketRequest)
- [QueryIncentivizedPacketResponse](#ibc.applications.fee.v1.QueryIncentivizedPacketResponse)
+ - [QueryIncentivizedPacketsForChannelRequest](#ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest)
+ - [QueryIncentivizedPacketsForChannelResponse](#ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse)
- [QueryIncentivizedPacketsRequest](#ibc.applications.fee.v1.QueryIncentivizedPacketsRequest)
- [QueryIncentivizedPacketsResponse](#ibc.applications.fee.v1.QueryIncentivizedPacketsResponse)
- [QueryTotalAckFeesRequest](#ibc.applications.fee.v1.QueryTotalAckFeesRequest)
@@ -937,6 +939,40 @@ QueryIncentivizedPacketsResponse is the response type for the incentivized packe
+
+
+### QueryIncentivizedPacketsForChannelRequest
+QueryIncentivizedPacketsForChannelRequest is the request type for querying for all incentivized packets
+for a specific channel
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| `pagination` | [cosmos.base.query.v1beta1.PageRequest](#cosmos.base.query.v1beta1.PageRequest) | | pagination defines an optional pagination for the request. |
+| `port_id` | [string](#string) | | |
+| `channel_id` | [string](#string) | | |
+| `query_height` | [uint64](#uint64) | | Height to query at |
+
+
+
+
+
+
+
+
+### QueryIncentivizedPacketsForChannelResponse
+QueryIncentivizedPacketsResponse is the response type for the incentivized packets RPC
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| `incentivized_packets` | [IdentifiedPacketFees](#ibc.applications.fee.v1.IdentifiedPacketFees) | repeated | Map of all incentivized_packets |
+
+
+
+
+
+
### QueryIncentivizedPacketsRequest
@@ -1073,6 +1109,7 @@ Query provides defines the gRPC querier service.
| ----------- | ------------ | ------------- | ------------| ------- | -------- |
| `IncentivizedPackets` | [QueryIncentivizedPacketsRequest](#ibc.applications.fee.v1.QueryIncentivizedPacketsRequest) | [QueryIncentivizedPacketsResponse](#ibc.applications.fee.v1.QueryIncentivizedPacketsResponse) | Gets all incentivized packets | GET|/ibc/apps/fee/v1/incentivized_packets|
| `IncentivizedPacket` | [QueryIncentivizedPacketRequest](#ibc.applications.fee.v1.QueryIncentivizedPacketRequest) | [QueryIncentivizedPacketResponse](#ibc.applications.fee.v1.QueryIncentivizedPacketResponse) | Gets the fees expected for submitting the ReceivePacket, AcknowledgementPacket, and TimeoutPacket messages for the given packet | GET|/ibc/apps/fee/v1/incentivized_packet/port/{packet_id.port_id}/channel/{packet_id.channel_id}/sequence/{packet_id.sequence}|
+| `IncentivizedPacketsForChannel` | [QueryIncentivizedPacketsForChannelRequest](#ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest) | [QueryIncentivizedPacketsForChannelResponse](#ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse) | Gets all incentivized packets for a specific channel | GET|/ibc/apps/fee/v1/incentivized_packets/{port_id}/{channel_id}|
| `TotalRecvFees` | [QueryTotalRecvFeesRequest](#ibc.applications.fee.v1.QueryTotalRecvFeesRequest) | [QueryTotalRecvFeesResponse](#ibc.applications.fee.v1.QueryTotalRecvFeesResponse) | TotalRecvFees returns the total receive fees for a packet given its identifier | GET|/ibc/apps/fee/v1/total_recv_fees/port/{packet_id.port_id}/channel/{packet_id.channel_id}/sequence/{packet_id.sequence}|
| `TotalAckFees` | [QueryTotalAckFeesRequest](#ibc.applications.fee.v1.QueryTotalAckFeesRequest) | [QueryTotalAckFeesResponse](#ibc.applications.fee.v1.QueryTotalAckFeesResponse) | TotalAckFees returns the total acknowledgement fees for a packet given its identifier | GET|/ibc/apps/fee/v1/total_ack_fees/port/{packet_id.port_id}/channel/{packet_id.channel_id}/sequence/{packet_id.sequence}|
| `TotalTimeoutFees` | [QueryTotalTimeoutFeesRequest](#ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest) | [QueryTotalTimeoutFeesResponse](#ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse) | TotalTimeoutFees returns the total timeout fees for a packet given its identifier | GET|/ibc/apps/fee/v1/total_timeout_fees/port/{packet_id.port_id}/channel/{packet_id.channel_id}/sequence/{packet_id.sequence}|
diff --git a/modules/apps/29-fee/keeper/grpc_query.go b/modules/apps/29-fee/keeper/grpc_query.go
index 54969471086..68f2cb332ca 100644
--- a/modules/apps/29-fee/keeper/grpc_query.go
+++ b/modules/apps/29-fee/keeper/grpc_query.go
@@ -3,13 +3,12 @@ package keeper
import (
"context"
- "google.golang.org/grpc/codes"
- "google.golang.org/grpc/status"
-
"github.com/cosmos/cosmos-sdk/store/prefix"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/cosmos/cosmos-sdk/types/query"
+ "google.golang.org/grpc/codes"
+ "google.golang.org/grpc/status"
"github.com/cosmos/ibc-go/v3/modules/apps/29-fee/types"
)
@@ -66,12 +65,43 @@ func (k Keeper) IncentivizedPacket(c context.Context, req *types.QueryIncentiviz
}, nil
}
-// TotalRecvFees implements the Query/TotalRecvFees gRPC method
-func (k Keeper) TotalRecvFees(goCtx context.Context, req *types.QueryTotalRecvFeesRequest) (*types.QueryTotalRecvFeesResponse, error) {
+// IncentivizedPacketsForChannel implements the IncentivizedPacketsForChannel gRPC method
+func (k Keeper) IncentivizedPacketsForChannel(goCtx context.Context, req *types.QueryIncentivizedPacketsForChannelRequest) (*types.QueryIncentivizedPacketsForChannelResponse, error) {
if req == nil {
return nil, status.Error(codes.InvalidArgument, "empty request")
}
+ ctx := sdk.UnwrapSDKContext(goCtx).WithBlockHeight(int64(req.QueryHeight))
+
+ var packets []*types.IdentifiedPacketFees
+ keyPrefix := types.KeyFeesInEscrowChannelPrefix(req.PortId, req.ChannelId)
+ store := prefix.NewStore(ctx.KVStore(k.storeKey), keyPrefix)
+ _, err := query.Paginate(store, req.Pagination, func(key, value []byte) error {
+ packetID, err := types.ParseKeyFeesInEscrow(string(keyPrefix) + string(key))
+ if err != nil {
+ return err
+ }
+
+ packetFees := k.MustUnmarshalFees(value)
+
+ identifiedPacketFees := types.NewIdentifiedPacketFees(packetID, packetFees.PacketFees)
+ packets = append(packets, &identifiedPacketFees)
+
+ return nil
+ })
+
+ if err != nil {
+ return nil, status.Error(codes.NotFound, err.Error())
+ }
+
+ return &types.QueryIncentivizedPacketsForChannelResponse{
+ IncentivizedPackets: packets,
+ }, nil
+}
+
+// TotalRecvFees implements the Query/TotalRecvFees gRPC method
+func (k Keeper) TotalRecvFees(goCtx context.Context, req *types.QueryTotalRecvFeesRequest) (*types.QueryTotalRecvFeesResponse, error) {
+
ctx := sdk.UnwrapSDKContext(goCtx)
feesInEscrow, found := k.GetFeesInEscrow(ctx, req.PacketId)
diff --git a/modules/apps/29-fee/keeper/grpc_query_test.go b/modules/apps/29-fee/keeper/grpc_query_test.go
index fe06afdc5bd..4bd55b92903 100644
--- a/modules/apps/29-fee/keeper/grpc_query_test.go
+++ b/modules/apps/29-fee/keeper/grpc_query_test.go
@@ -1,6 +1,7 @@
package keeper_test
import (
+ "fmt"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/query"
@@ -140,6 +141,100 @@ func (suite *KeeperTestSuite) TestQueryIncentivizedPacket() {
}
}
+func (suite *KeeperTestSuite) TestQueryIncentivizedPacketsForChannel() {
+ var (
+ req *types.QueryIncentivizedPacketsForChannelRequest
+ expIdentifiedPacketFees []*types.IdentifiedPacketFees
+ )
+
+ fee := types.Fee{
+ AckFee: sdk.Coins{sdk.Coin{Denom: sdk.DefaultBondDenom, Amount: sdk.NewInt(100)}},
+ RecvFee: sdk.Coins{sdk.Coin{Denom: sdk.DefaultBondDenom, Amount: sdk.NewInt(100)}},
+ TimeoutFee: sdk.Coins{sdk.Coin{Denom: sdk.DefaultBondDenom, Amount: sdk.NewInt(100)}},
+ }
+
+ testCases := []struct {
+ msg string
+ malleate func()
+ expPass bool
+ }{
+ {
+ "empty pagination",
+ func() {
+ expIdentifiedPacketFees = nil
+ req = &types.QueryIncentivizedPacketsForChannelRequest{}
+ },
+ true,
+ },
+ {
+ "success",
+ func() {
+ req = &types.QueryIncentivizedPacketsForChannelRequest{
+ Pagination: &query.PageRequest{
+ Limit: 5,
+ CountTotal: false,
+ },
+ PortId: ibctesting.MockFeePort,
+ ChannelId: ibctesting.FirstChannelID,
+ QueryHeight: 0,
+ }
+ },
+ true,
+ },
+ {
+ "no packets for specified channel",
+ func() {
+ expIdentifiedPacketFees = nil
+ req = &types.QueryIncentivizedPacketsForChannelRequest{
+ Pagination: &query.PageRequest{
+ Limit: 5,
+ CountTotal: false,
+ },
+ PortId: ibctesting.MockFeePort,
+ ChannelId: "channel-10",
+ QueryHeight: 0,
+ }
+ },
+ true,
+ },
+ }
+
+ for _, tc := range testCases {
+ suite.Run(fmt.Sprintf("Case %s", tc.msg), func() {
+ suite.SetupTest() // reset
+
+ // setup
+ refundAcc := suite.chainA.SenderAccount.GetAddress()
+ packetFee := types.NewPacketFee(fee, refundAcc.String(), nil)
+ packetFees := types.NewPacketFees([]types.PacketFee{packetFee, packetFee, packetFee})
+
+ identifiedFees1 := types.NewIdentifiedPacketFees(channeltypes.NewPacketId(ibctesting.FirstChannelID, ibctesting.MockFeePort, 1), packetFees.PacketFees)
+ identifiedFees2 := types.NewIdentifiedPacketFees(channeltypes.NewPacketId(ibctesting.FirstChannelID, ibctesting.MockFeePort, 2), packetFees.PacketFees)
+ identifiedFees3 := types.NewIdentifiedPacketFees(channeltypes.NewPacketId(ibctesting.FirstChannelID, ibctesting.MockFeePort, 3), packetFees.PacketFees)
+
+ expIdentifiedPacketFees = append(expIdentifiedPacketFees, &identifiedFees1, &identifiedFees2, &identifiedFees3)
+
+ suite.chainA.GetSimApp().IBCFeeKeeper.SetFeeEnabled(suite.chainA.GetContext(), ibctesting.MockFeePort, ibctesting.FirstChannelID)
+ for _, identifiedPacketFees := range expIdentifiedPacketFees {
+ suite.chainA.GetSimApp().IBCFeeKeeper.SetFeesInEscrow(suite.chainA.GetContext(), identifiedPacketFees.PacketId, types.NewPacketFees(identifiedPacketFees.PacketFees))
+ }
+
+ tc.malleate()
+ ctx := sdk.WrapSDKContext(suite.chainA.GetContext())
+
+ res, err := suite.queryClient.IncentivizedPacketsForChannel(ctx, req)
+
+ if tc.expPass {
+ suite.Require().NoError(err)
+ suite.Require().NotNil(res)
+ suite.Require().Equal(expIdentifiedPacketFees, res.IncentivizedPackets)
+ } else {
+ suite.Require().Error(err)
+ }
+ })
+ }
+}
+
func (suite *KeeperTestSuite) TestQueryTotalRecvFees() {
var (
req *types.QueryTotalRecvFeesRequest
diff --git a/modules/apps/29-fee/types/fee.go b/modules/apps/29-fee/types/fee.go
index bdcb2fc94ba..1f979c732d8 100644
--- a/modules/apps/29-fee/types/fee.go
+++ b/modules/apps/29-fee/types/fee.go
@@ -5,6 +5,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
+
channeltypes "github.com/cosmos/ibc-go/v3/modules/core/04-channel/types"
)
diff --git a/modules/apps/29-fee/types/query.pb.go b/modules/apps/29-fee/types/query.pb.go
index b9f241000ab..5421eda2fff 100644
--- a/modules/apps/29-fee/types/query.pb.go
+++ b/modules/apps/29-fee/types/query.pb.go
@@ -235,6 +235,132 @@ func (m *QueryIncentivizedPacketResponse) GetIncentivizedPacket() IdentifiedPack
return IdentifiedPacketFees{}
}
+// QueryIncentivizedPacketsForChannelRequest is the request type for querying for all incentivized packets
+// for a specific channel
+type QueryIncentivizedPacketsForChannelRequest struct {
+ // pagination defines an optional pagination for the request.
+ Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
+ PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
+ ChannelId string `protobuf:"bytes,3,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
+ // Height to query at
+ QueryHeight uint64 `protobuf:"varint,4,opt,name=query_height,json=queryHeight,proto3" json:"query_height,omitempty"`
+}
+
+func (m *QueryIncentivizedPacketsForChannelRequest) Reset() {
+ *m = QueryIncentivizedPacketsForChannelRequest{}
+}
+func (m *QueryIncentivizedPacketsForChannelRequest) String() string {
+ return proto.CompactTextString(m)
+}
+func (*QueryIncentivizedPacketsForChannelRequest) ProtoMessage() {}
+func (*QueryIncentivizedPacketsForChannelRequest) Descriptor() ([]byte, []int) {
+ return fileDescriptor_0638a8a78ca2503c, []int{4}
+}
+func (m *QueryIncentivizedPacketsForChannelRequest) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *QueryIncentivizedPacketsForChannelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_QueryIncentivizedPacketsForChannelRequest.Marshal(b, m, deterministic)
+ } else {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+ }
+}
+func (m *QueryIncentivizedPacketsForChannelRequest) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_QueryIncentivizedPacketsForChannelRequest.Merge(m, src)
+}
+func (m *QueryIncentivizedPacketsForChannelRequest) XXX_Size() int {
+ return m.Size()
+}
+func (m *QueryIncentivizedPacketsForChannelRequest) XXX_DiscardUnknown() {
+ xxx_messageInfo_QueryIncentivizedPacketsForChannelRequest.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_QueryIncentivizedPacketsForChannelRequest proto.InternalMessageInfo
+
+func (m *QueryIncentivizedPacketsForChannelRequest) GetPagination() *query.PageRequest {
+ if m != nil {
+ return m.Pagination
+ }
+ return nil
+}
+
+func (m *QueryIncentivizedPacketsForChannelRequest) GetPortId() string {
+ if m != nil {
+ return m.PortId
+ }
+ return ""
+}
+
+func (m *QueryIncentivizedPacketsForChannelRequest) GetChannelId() string {
+ if m != nil {
+ return m.ChannelId
+ }
+ return ""
+}
+
+func (m *QueryIncentivizedPacketsForChannelRequest) GetQueryHeight() uint64 {
+ if m != nil {
+ return m.QueryHeight
+ }
+ return 0
+}
+
+// QueryIncentivizedPacketsResponse is the response type for the incentivized packets RPC
+type QueryIncentivizedPacketsForChannelResponse struct {
+ // Map of all incentivized_packets
+ IncentivizedPackets []*IdentifiedPacketFees `protobuf:"bytes,1,rep,name=incentivized_packets,json=incentivizedPackets,proto3" json:"incentivized_packets,omitempty"`
+}
+
+func (m *QueryIncentivizedPacketsForChannelResponse) Reset() {
+ *m = QueryIncentivizedPacketsForChannelResponse{}
+}
+func (m *QueryIncentivizedPacketsForChannelResponse) String() string {
+ return proto.CompactTextString(m)
+}
+func (*QueryIncentivizedPacketsForChannelResponse) ProtoMessage() {}
+func (*QueryIncentivizedPacketsForChannelResponse) Descriptor() ([]byte, []int) {
+ return fileDescriptor_0638a8a78ca2503c, []int{5}
+}
+func (m *QueryIncentivizedPacketsForChannelResponse) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *QueryIncentivizedPacketsForChannelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_QueryIncentivizedPacketsForChannelResponse.Marshal(b, m, deterministic)
+ } else {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+ }
+}
+func (m *QueryIncentivizedPacketsForChannelResponse) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_QueryIncentivizedPacketsForChannelResponse.Merge(m, src)
+}
+func (m *QueryIncentivizedPacketsForChannelResponse) XXX_Size() int {
+ return m.Size()
+}
+func (m *QueryIncentivizedPacketsForChannelResponse) XXX_DiscardUnknown() {
+ xxx_messageInfo_QueryIncentivizedPacketsForChannelResponse.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_QueryIncentivizedPacketsForChannelResponse proto.InternalMessageInfo
+
+func (m *QueryIncentivizedPacketsForChannelResponse) GetIncentivizedPackets() []*IdentifiedPacketFees {
+ if m != nil {
+ return m.IncentivizedPackets
+ }
+ return nil
+}
+
// QueryTotalRecvFeesRequest defines the request type for the TotalRecvFees rpc
type QueryTotalRecvFeesRequest struct {
// the packet identifier for the associated fees
@@ -245,7 +371,7 @@ func (m *QueryTotalRecvFeesRequest) Reset() { *m = QueryTotalRecvFeesReq
func (m *QueryTotalRecvFeesRequest) String() string { return proto.CompactTextString(m) }
func (*QueryTotalRecvFeesRequest) ProtoMessage() {}
func (*QueryTotalRecvFeesRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_0638a8a78ca2503c, []int{4}
+ return fileDescriptor_0638a8a78ca2503c, []int{6}
}
func (m *QueryTotalRecvFeesRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -291,7 +417,7 @@ func (m *QueryTotalRecvFeesResponse) Reset() { *m = QueryTotalRecvFeesRe
func (m *QueryTotalRecvFeesResponse) String() string { return proto.CompactTextString(m) }
func (*QueryTotalRecvFeesResponse) ProtoMessage() {}
func (*QueryTotalRecvFeesResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_0638a8a78ca2503c, []int{5}
+ return fileDescriptor_0638a8a78ca2503c, []int{7}
}
func (m *QueryTotalRecvFeesResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -337,7 +463,7 @@ func (m *QueryTotalAckFeesRequest) Reset() { *m = QueryTotalAckFeesReque
func (m *QueryTotalAckFeesRequest) String() string { return proto.CompactTextString(m) }
func (*QueryTotalAckFeesRequest) ProtoMessage() {}
func (*QueryTotalAckFeesRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_0638a8a78ca2503c, []int{6}
+ return fileDescriptor_0638a8a78ca2503c, []int{8}
}
func (m *QueryTotalAckFeesRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -383,7 +509,7 @@ func (m *QueryTotalAckFeesResponse) Reset() { *m = QueryTotalAckFeesResp
func (m *QueryTotalAckFeesResponse) String() string { return proto.CompactTextString(m) }
func (*QueryTotalAckFeesResponse) ProtoMessage() {}
func (*QueryTotalAckFeesResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_0638a8a78ca2503c, []int{7}
+ return fileDescriptor_0638a8a78ca2503c, []int{9}
}
func (m *QueryTotalAckFeesResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -429,7 +555,7 @@ func (m *QueryTotalTimeoutFeesRequest) Reset() { *m = QueryTotalTimeoutF
func (m *QueryTotalTimeoutFeesRequest) String() string { return proto.CompactTextString(m) }
func (*QueryTotalTimeoutFeesRequest) ProtoMessage() {}
func (*QueryTotalTimeoutFeesRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_0638a8a78ca2503c, []int{8}
+ return fileDescriptor_0638a8a78ca2503c, []int{10}
}
func (m *QueryTotalTimeoutFeesRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -475,7 +601,7 @@ func (m *QueryTotalTimeoutFeesResponse) Reset() { *m = QueryTotalTimeout
func (m *QueryTotalTimeoutFeesResponse) String() string { return proto.CompactTextString(m) }
func (*QueryTotalTimeoutFeesResponse) ProtoMessage() {}
func (*QueryTotalTimeoutFeesResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_0638a8a78ca2503c, []int{9}
+ return fileDescriptor_0638a8a78ca2503c, []int{11}
}
func (m *QueryTotalTimeoutFeesResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -516,6 +642,8 @@ func init() {
proto.RegisterType((*QueryIncentivizedPacketsResponse)(nil), "ibc.applications.fee.v1.QueryIncentivizedPacketsResponse")
proto.RegisterType((*QueryIncentivizedPacketRequest)(nil), "ibc.applications.fee.v1.QueryIncentivizedPacketRequest")
proto.RegisterType((*QueryIncentivizedPacketResponse)(nil), "ibc.applications.fee.v1.QueryIncentivizedPacketResponse")
+ proto.RegisterType((*QueryIncentivizedPacketsForChannelRequest)(nil), "ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest")
+ proto.RegisterType((*QueryIncentivizedPacketsForChannelResponse)(nil), "ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse")
proto.RegisterType((*QueryTotalRecvFeesRequest)(nil), "ibc.applications.fee.v1.QueryTotalRecvFeesRequest")
proto.RegisterType((*QueryTotalRecvFeesResponse)(nil), "ibc.applications.fee.v1.QueryTotalRecvFeesResponse")
proto.RegisterType((*QueryTotalAckFeesRequest)(nil), "ibc.applications.fee.v1.QueryTotalAckFeesRequest")
@@ -529,61 +657,67 @@ func init() {
}
var fileDescriptor_0638a8a78ca2503c = []byte{
- // 853 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xcf, 0x6e, 0xe3, 0x44,
- 0x1c, 0xce, 0x84, 0x05, 0xda, 0x49, 0x11, 0xab, 0xc9, 0x4a, 0x64, 0xa3, 0x5d, 0x27, 0x6b, 0x04,
- 0x44, 0x48, 0xf1, 0x28, 0xa9, 0x16, 0x76, 0x39, 0x41, 0x17, 0x2d, 0xf4, 0x44, 0x89, 0x7a, 0x42,
- 0xa0, 0xe0, 0x8c, 0x27, 0xce, 0x28, 0x89, 0xc7, 0x8d, 0x27, 0x86, 0xf4, 0x0f, 0x12, 0x95, 0x2a,
- 0x24, 0xd4, 0x03, 0x12, 0x12, 0x07, 0x5e, 0x00, 0x89, 0x37, 0xe0, 0x0d, 0x7a, 0xe0, 0x50, 0x89,
- 0x0b, 0xa7, 0x82, 0x5a, 0x9e, 0x00, 0x71, 0xe0, 0x88, 0x66, 0x3c, 0x76, 0x5c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, 0x41, 0x83, 0x02, 0xde,
+ 0x89, 0x47, 0x9f, 0x12, 0xed, 0x83, 0x69, 0x78, 0xfe, 0xbf, 0xe6, 0x8a, 0xae, 0x95, 0xe0, 0x91,
+ 0xf7, 0x7b, 0xe3, 0xb5, 0xaa, 0x65, 0x5a, 0x82, 0xcf, 0xd5, 0xb7, 0xbe, 0x87, 0x86, 0x05, 0x1a,
+ 0x64, 0x3d, 0xfa, 0x74, 0x74, 0xd8, 0x78, 0xff, 0xd1, 0xa1, 0x09, 0x1e, 0x1f, 0x9a, 0xe0, 0xf7,
+ 0x43, 0x13, 0x7c, 0x7d, 0x64, 0x4e, 0x3d, 0x3e, 0x32, 0xa7, 0x7e, 0x3d, 0x32, 0xa7, 0x3e, 0xbc,
+ 0x96, 0xbf, 0x10, 0x58, 0x9b, 0xd4, 0x3d, 0x8e, 0xe3, 0x75, 0xdc, 0xe3, 0xee, 0xa0, 0x4b, 0x43,
+ 0x85, 0xb9, 0x71, 0xa3, 0x2e, 0x60, 0xcb, 0x3b, 0xa2, 0x7d, 0x56, 0xfe, 0x4c, 0x59, 0xff, 0x37,
+ 0x00, 0x00, 0xff, 0xff, 0x54, 0xbb, 0x0e, 0x52, 0xac, 0x0d, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
@@ -603,6 +737,8 @@ type QueryClient interface {
// Gets the fees expected for submitting the ReceivePacket, AcknowledgementPacket, and TimeoutPacket messages for the
// given packet
IncentivizedPacket(ctx context.Context, in *QueryIncentivizedPacketRequest, opts ...grpc.CallOption) (*QueryIncentivizedPacketResponse, error)
+ // Gets all incentivized packets for a specific channel
+ IncentivizedPacketsForChannel(ctx context.Context, in *QueryIncentivizedPacketsForChannelRequest, opts ...grpc.CallOption) (*QueryIncentivizedPacketsForChannelResponse, error)
// TotalRecvFees returns the total receive fees for a packet given its identifier
TotalRecvFees(ctx context.Context, in *QueryTotalRecvFeesRequest, opts ...grpc.CallOption) (*QueryTotalRecvFeesResponse, error)
// TotalAckFees returns the total acknowledgement fees for a packet given its identifier
@@ -637,6 +773,15 @@ func (c *queryClient) IncentivizedPacket(ctx context.Context, in *QueryIncentivi
return out, nil
}
+func (c *queryClient) IncentivizedPacketsForChannel(ctx context.Context, in *QueryIncentivizedPacketsForChannelRequest, opts ...grpc.CallOption) (*QueryIncentivizedPacketsForChannelResponse, error) {
+ out := new(QueryIncentivizedPacketsForChannelResponse)
+ err := c.cc.Invoke(ctx, "/ibc.applications.fee.v1.Query/IncentivizedPacketsForChannel", in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
func (c *queryClient) TotalRecvFees(ctx context.Context, in *QueryTotalRecvFeesRequest, opts ...grpc.CallOption) (*QueryTotalRecvFeesResponse, error) {
out := new(QueryTotalRecvFeesResponse)
err := c.cc.Invoke(ctx, "/ibc.applications.fee.v1.Query/TotalRecvFees", in, out, opts...)
@@ -671,6 +816,8 @@ type QueryServer interface {
// Gets the fees expected for submitting the ReceivePacket, AcknowledgementPacket, and TimeoutPacket messages for the
// given packet
IncentivizedPacket(context.Context, *QueryIncentivizedPacketRequest) (*QueryIncentivizedPacketResponse, error)
+ // Gets all incentivized packets for a specific channel
+ IncentivizedPacketsForChannel(context.Context, *QueryIncentivizedPacketsForChannelRequest) (*QueryIncentivizedPacketsForChannelResponse, error)
// TotalRecvFees returns the total receive fees for a packet given its identifier
TotalRecvFees(context.Context, *QueryTotalRecvFeesRequest) (*QueryTotalRecvFeesResponse, error)
// TotalAckFees returns the total acknowledgement fees for a packet given its identifier
@@ -689,6 +836,9 @@ func (*UnimplementedQueryServer) IncentivizedPackets(ctx context.Context, req *Q
func (*UnimplementedQueryServer) IncentivizedPacket(ctx context.Context, req *QueryIncentivizedPacketRequest) (*QueryIncentivizedPacketResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method IncentivizedPacket not implemented")
}
+func (*UnimplementedQueryServer) IncentivizedPacketsForChannel(ctx context.Context, req *QueryIncentivizedPacketsForChannelRequest) (*QueryIncentivizedPacketsForChannelResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method IncentivizedPacketsForChannel not implemented")
+}
func (*UnimplementedQueryServer) TotalRecvFees(ctx context.Context, req *QueryTotalRecvFeesRequest) (*QueryTotalRecvFeesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method TotalRecvFees not implemented")
}
@@ -739,6 +889,24 @@ func _Query_IncentivizedPacket_Handler(srv interface{}, ctx context.Context, dec
return interceptor(ctx, in, info, handler)
}
+func _Query_IncentivizedPacketsForChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(QueryIncentivizedPacketsForChannelRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(QueryServer).IncentivizedPacketsForChannel(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: "/ibc.applications.fee.v1.Query/IncentivizedPacketsForChannel",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(QueryServer).IncentivizedPacketsForChannel(ctx, req.(*QueryIncentivizedPacketsForChannelRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
func _Query_TotalRecvFees_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryTotalRecvFeesRequest)
if err := dec(in); err != nil {
@@ -805,6 +973,10 @@ var _Query_serviceDesc = grpc.ServiceDesc{
MethodName: "IncentivizedPacket",
Handler: _Query_IncentivizedPacket_Handler,
},
+ {
+ MethodName: "IncentivizedPacketsForChannel",
+ Handler: _Query_IncentivizedPacketsForChannel_Handler,
+ },
{
MethodName: "TotalRecvFees",
Handler: _Query_TotalRecvFees_Handler,
@@ -970,6 +1142,97 @@ func (m *QueryIncentivizedPacketResponse) MarshalToSizedBuffer(dAtA []byte) (int
return len(dAtA) - i, nil
}
+func (m *QueryIncentivizedPacketsForChannelRequest) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *QueryIncentivizedPacketsForChannelRequest) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *QueryIncentivizedPacketsForChannelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.QueryHeight != 0 {
+ i = encodeVarintQuery(dAtA, i, uint64(m.QueryHeight))
+ i--
+ dAtA[i] = 0x20
+ }
+ if len(m.ChannelId) > 0 {
+ i -= len(m.ChannelId)
+ copy(dAtA[i:], m.ChannelId)
+ i = encodeVarintQuery(dAtA, i, uint64(len(m.ChannelId)))
+ i--
+ dAtA[i] = 0x1a
+ }
+ if len(m.PortId) > 0 {
+ i -= len(m.PortId)
+ copy(dAtA[i:], m.PortId)
+ i = encodeVarintQuery(dAtA, i, uint64(len(m.PortId)))
+ i--
+ dAtA[i] = 0x12
+ }
+ if m.Pagination != nil {
+ {
+ size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintQuery(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *QueryIncentivizedPacketsForChannelResponse) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *QueryIncentivizedPacketsForChannelResponse) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *QueryIncentivizedPacketsForChannelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if len(m.IncentivizedPackets) > 0 {
+ for iNdEx := len(m.IncentivizedPackets) - 1; iNdEx >= 0; iNdEx-- {
+ {
+ size, err := m.IncentivizedPackets[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintQuery(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0xa
+ }
+ }
+ return len(dAtA) - i, nil
+}
+
func (m *QueryTotalRecvFeesRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
@@ -1247,6 +1510,45 @@ func (m *QueryIncentivizedPacketResponse) Size() (n int) {
return n
}
+func (m *QueryIncentivizedPacketsForChannelRequest) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if m.Pagination != nil {
+ l = m.Pagination.Size()
+ n += 1 + l + sovQuery(uint64(l))
+ }
+ l = len(m.PortId)
+ if l > 0 {
+ n += 1 + l + sovQuery(uint64(l))
+ }
+ l = len(m.ChannelId)
+ if l > 0 {
+ n += 1 + l + sovQuery(uint64(l))
+ }
+ if m.QueryHeight != 0 {
+ n += 1 + sovQuery(uint64(m.QueryHeight))
+ }
+ return n
+}
+
+func (m *QueryIncentivizedPacketsForChannelResponse) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if len(m.IncentivizedPackets) > 0 {
+ for _, e := range m.IncentivizedPackets {
+ l = e.Size()
+ n += 1 + l + sovQuery(uint64(l))
+ }
+ }
+ return n
+}
+
func (m *QueryTotalRecvFeesRequest) Size() (n int) {
if m == nil {
return 0
@@ -1705,6 +2007,259 @@ func (m *QueryIncentivizedPacketResponse) Unmarshal(dAtA []byte) error {
}
return nil
}
+func (m *QueryIncentivizedPacketsForChannelRequest) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowQuery
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: QueryIncentivizedPacketsForChannelRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: QueryIncentivizedPacketsForChannelRequest: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowQuery
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthQuery
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthQuery
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Pagination == nil {
+ m.Pagination = &query.PageRequest{}
+ }
+ if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field PortId", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowQuery
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthQuery
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthQuery
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.PortId = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowQuery
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthQuery
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthQuery
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ChannelId = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field QueryHeight", wireType)
+ }
+ m.QueryHeight = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowQuery
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.QueryHeight |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ default:
+ iNdEx = preIndex
+ skippy, err := skipQuery(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return ErrInvalidLengthQuery
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *QueryIncentivizedPacketsForChannelResponse) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowQuery
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: QueryIncentivizedPacketsForChannelResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: QueryIncentivizedPacketsForChannelResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field IncentivizedPackets", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowQuery
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthQuery
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthQuery
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.IncentivizedPackets = append(m.IncentivizedPackets, &IdentifiedPacketFees{})
+ if err := m.IncentivizedPackets[len(m.IncentivizedPackets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipQuery(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return ErrInvalidLengthQuery
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
func (m *QueryTotalRecvFeesRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
diff --git a/modules/apps/29-fee/types/query.pb.gw.go b/modules/apps/29-fee/types/query.pb.gw.go
index 172967a9625..8775f7404fd 100644
--- a/modules/apps/29-fee/types/query.pb.gw.go
+++ b/modules/apps/29-fee/types/query.pb.gw.go
@@ -183,6 +183,100 @@ func local_request_Query_IncentivizedPacket_0(ctx context.Context, marshaler run
}
+var (
+ filter_Query_IncentivizedPacketsForChannel_0 = &utilities.DoubleArray{Encoding: map[string]int{"port_id": 0, "channel_id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}}
+)
+
+func request_Query_IncentivizedPacketsForChannel_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var protoReq QueryIncentivizedPacketsForChannelRequest
+ var metadata runtime.ServerMetadata
+
+ var (
+ val string
+ ok bool
+ err error
+ _ = err
+ )
+
+ val, ok = pathParams["port_id"]
+ if !ok {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "port_id")
+ }
+
+ protoReq.PortId, err = runtime.String(val)
+
+ if err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "port_id", err)
+ }
+
+ val, ok = pathParams["channel_id"]
+ if !ok {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "channel_id")
+ }
+
+ protoReq.ChannelId, err = runtime.String(val)
+
+ if err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "channel_id", err)
+ }
+
+ if err := req.ParseForm(); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_IncentivizedPacketsForChannel_0); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+
+ msg, err := client.IncentivizedPacketsForChannel(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
+ return msg, metadata, err
+
+}
+
+func local_request_Query_IncentivizedPacketsForChannel_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var protoReq QueryIncentivizedPacketsForChannelRequest
+ var metadata runtime.ServerMetadata
+
+ var (
+ val string
+ ok bool
+ err error
+ _ = err
+ )
+
+ val, ok = pathParams["port_id"]
+ if !ok {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "port_id")
+ }
+
+ protoReq.PortId, err = runtime.String(val)
+
+ if err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "port_id", err)
+ }
+
+ val, ok = pathParams["channel_id"]
+ if !ok {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "channel_id")
+ }
+
+ protoReq.ChannelId, err = runtime.String(val)
+
+ if err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "channel_id", err)
+ }
+
+ if err := req.ParseForm(); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_IncentivizedPacketsForChannel_0); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+
+ msg, err := server.IncentivizedPacketsForChannel(ctx, &protoReq)
+ return msg, metadata, err
+
+}
+
var (
filter_Query_TotalRecvFees_0 = &utilities.DoubleArray{Encoding: map[string]int{"packet_id": 0, "port_id": 1, "channel_id": 2, "sequence": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 3, 4, 5}}
)
@@ -577,6 +671,26 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv
})
+ mux.Handle("GET", pattern_Query_IncentivizedPacketsForChannel_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ ctx, cancel := context.WithCancel(req.Context())
+ defer cancel()
+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
+ rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ resp, md, err := local_request_Query_IncentivizedPacketsForChannel_0(rctx, inboundMarshaler, server, req, pathParams)
+ ctx = runtime.NewServerMetadataContext(ctx, md)
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+
+ forward_Query_IncentivizedPacketsForChannel_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+
+ })
+
mux.Handle("GET", pattern_Query_TotalRecvFees_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
@@ -718,6 +832,26 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie
})
+ mux.Handle("GET", pattern_Query_IncentivizedPacketsForChannel_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ ctx, cancel := context.WithCancel(req.Context())
+ defer cancel()
+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
+ rctx, err := runtime.AnnotateContext(ctx, mux, req)
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ resp, md, err := request_Query_IncentivizedPacketsForChannel_0(rctx, inboundMarshaler, client, req, pathParams)
+ ctx = runtime.NewServerMetadataContext(ctx, md)
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+
+ forward_Query_IncentivizedPacketsForChannel_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+
+ })
+
mux.Handle("GET", pattern_Query_TotalRecvFees_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
@@ -786,6 +920,8 @@ var (
pattern_Query_IncentivizedPacket_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 2, 5, 1, 0, 4, 1, 5, 6, 2, 7, 1, 0, 4, 1, 5, 8, 2, 9, 1, 0, 4, 1, 5, 10}, []string{"ibc", "apps", "fee", "v1", "incentivized_packet", "port", "packet_id.port_id", "channel", "packet_id.channel_id", "sequence", "packet_id.sequence"}, "", runtime.AssumeColonVerbOpt(true)))
+ pattern_Query_IncentivizedPacketsForChannel_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"ibc", "apps", "fee", "v1", "incentivized_packets", "port_id", "channel_id"}, "", runtime.AssumeColonVerbOpt(true)))
+
pattern_Query_TotalRecvFees_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 2, 5, 1, 0, 4, 1, 5, 6, 2, 7, 1, 0, 4, 1, 5, 8, 2, 9, 1, 0, 4, 1, 5, 10}, []string{"ibc", "apps", "fee", "v1", "total_recv_fees", "port", "packet_id.port_id", "channel", "packet_id.channel_id", "sequence", "packet_id.sequence"}, "", runtime.AssumeColonVerbOpt(true)))
pattern_Query_TotalAckFees_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 2, 5, 1, 0, 4, 1, 5, 6, 2, 7, 1, 0, 4, 1, 5, 8, 2, 9, 1, 0, 4, 1, 5, 10}, []string{"ibc", "apps", "fee", "v1", "total_ack_fees", "port", "packet_id.port_id", "channel", "packet_id.channel_id", "sequence", "packet_id.sequence"}, "", runtime.AssumeColonVerbOpt(true)))
@@ -798,6 +934,8 @@ var (
forward_Query_IncentivizedPacket_0 = runtime.ForwardResponseMessage
+ forward_Query_IncentivizedPacketsForChannel_0 = runtime.ForwardResponseMessage
+
forward_Query_TotalRecvFees_0 = runtime.ForwardResponseMessage
forward_Query_TotalAckFees_0 = runtime.ForwardResponseMessage
diff --git a/proto/ibc/applications/fee/v1/query.proto b/proto/ibc/applications/fee/v1/query.proto
index 8cbb51859a3..8f2f7188839 100644
--- a/proto/ibc/applications/fee/v1/query.proto
+++ b/proto/ibc/applications/fee/v1/query.proto
@@ -26,6 +26,12 @@ service Query {
"{packet_id.sequence}";
}
+ // Gets all incentivized packets for a specific channel
+ rpc IncentivizedPacketsForChannel(QueryIncentivizedPacketsForChannelRequest)
+ returns (QueryIncentivizedPacketsForChannelResponse) {
+ option (google.api.http).get = "/ibc/apps/fee/v1/incentivized_packets/{port_id}/{channel_id}";
+ }
+
// TotalRecvFees returns the total receive fees for a packet given its identifier
rpc TotalRecvFees(QueryTotalRecvFeesRequest) returns (QueryTotalRecvFeesResponse) {
option (google.api.http).get = "/ibc/apps/fee/v1/total_recv_fees/port/{packet_id.port_id}/channel/"
@@ -73,6 +79,23 @@ message QueryIncentivizedPacketResponse {
ibc.applications.fee.v1.IdentifiedPacketFees incentivized_packet = 1 [(gogoproto.nullable) = false];
}
+// QueryIncentivizedPacketsForChannelRequest is the request type for querying for all incentivized packets
+// for a specific channel
+message QueryIncentivizedPacketsForChannelRequest {
+ // pagination defines an optional pagination for the request.
+ cosmos.base.query.v1beta1.PageRequest pagination = 1;
+ string port_id = 2;
+ string channel_id = 3;
+ // Height to query at
+ uint64 query_height = 4;
+}
+
+// QueryIncentivizedPacketsResponse is the response type for the incentivized packets RPC
+message QueryIncentivizedPacketsForChannelResponse {
+ // Map of all incentivized_packets
+ repeated ibc.applications.fee.v1.IdentifiedPacketFees incentivized_packets = 1;
+}
+
// QueryTotalRecvFeesRequest defines the request type for the TotalRecvFees rpc
message QueryTotalRecvFeesRequest {
// the packet identifier for the associated fees