From b095d881c5546a4983b021ffbd7a9e535f42de0f Mon Sep 17 00:00:00 2001 From: kruspy Date: Fri, 12 Jan 2024 09:03:17 +0100 Subject: [PATCH] paginate query --- .../pstake/liquidstakeibc/v1beta1/query.proto | 6 +- x/liquidstakeibc/client/query.go | 9 +- x/liquidstakeibc/keeper/grpc_querier.go | 38 ++- x/liquidstakeibc/keeper/grpc_querier_test.go | 124 +++++--- x/liquidstakeibc/types/query.pb.go | 292 +++++++++++++----- x/liquidstakeibc/types/query.pb.gw.go | 18 ++ 6 files changed, 355 insertions(+), 132 deletions(-) diff --git a/proto/pstake/liquidstakeibc/v1beta1/query.proto b/proto/pstake/liquidstakeibc/v1beta1/query.proto index b26973b1a..28bc0a46f 100644 --- a/proto/pstake/liquidstakeibc/v1beta1/query.proto +++ b/proto/pstake/liquidstakeibc/v1beta1/query.proto @@ -149,10 +149,14 @@ message QueryUserUnbondingsResponse { repeated UserUnbonding user_unbondings = 1; } -message QueryHostChainUserUnbondingsRequest { string chain_id = 1; } +message QueryHostChainUserUnbondingsRequest { + string chain_id = 1; + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} message QueryHostChainUserUnbondingsResponse { repeated UserUnbonding user_unbondings = 1; + cosmos.base.query.v1beta1.PageResponse pagination = 2; } message QueryValidatorUnbondingRequest { string chain_id = 1; } diff --git a/x/liquidstakeibc/client/query.go b/x/liquidstakeibc/client/query.go index 8370a20cc..36b9ddfa5 100644 --- a/x/liquidstakeibc/client/query.go +++ b/x/liquidstakeibc/client/query.go @@ -317,12 +317,18 @@ func QueryHostChainUserUnbondingsCmd() *cobra.Command { return err } + pageReq, err := client.ReadPageRequest(cmd.Flags()) + if err != nil { + return err + } + queryClient := types.NewQueryClient(clientCtx) res, err := queryClient.HostChainUserUnbondings( context.Background(), &types.QueryHostChainUserUnbondingsRequest{ - ChainId: args[0], + ChainId: args[0], + Pagination: pageReq, }, ) if err != nil { @@ -333,6 +339,7 @@ func QueryHostChainUserUnbondingsCmd() *cobra.Command { }, } + flags.AddPaginationFlagsToCmd(cmd, cmd.Use) flags.AddQueryFlagsToCmd(cmd) return cmd diff --git a/x/liquidstakeibc/keeper/grpc_querier.go b/x/liquidstakeibc/keeper/grpc_querier.go index eabbe1f00..b5b65bfc4 100644 --- a/x/liquidstakeibc/keeper/grpc_querier.go +++ b/x/liquidstakeibc/keeper/grpc_querier.go @@ -3,8 +3,10 @@ package keeper import ( "context" + "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" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" @@ -190,14 +192,36 @@ func (k *Keeper) HostChainUserUnbondings( ctx := sdk.UnwrapSDKContext(goCtx) - userUnbondings := k.FilterUserUnbondings( - ctx, - func(u types.UserUnbonding) bool { - return u.ChainId == request.ChainId - }, - ) + store := ctx.KVStore(k.storeKey) + userUnbondingStore := prefix.NewStore(store, types.UserUnbondingKey) + + var userUnbondings []*types.UserUnbonding + pageRes, err := query.FilteredPaginate( + userUnbondingStore, + request.Pagination, + func(key []byte, value []byte, accumulate bool) (bool, error) { + if accumulate { + var uu types.UserUnbonding + if err := k.cdc.Unmarshal(value, &uu); err != nil { + return false, err + } + + if uu.ChainId == request.ChainId { + userUnbondings = append(userUnbondings, &uu) + return true, nil + } + + return false, nil + } + + return true, nil + }) + + if err != nil { + return nil, status.Error(codes.Internal, err.Error()) + } - return &types.QueryHostChainUserUnbondingsResponse{UserUnbondings: userUnbondings}, nil + return &types.QueryHostChainUserUnbondingsResponse{UserUnbondings: userUnbondings, Pagination: pageRes}, nil } func (k *Keeper) ValidatorUnbondings( diff --git a/x/liquidstakeibc/keeper/grpc_querier_test.go b/x/liquidstakeibc/keeper/grpc_querier_test.go index 975eaa291..e9d396406 100644 --- a/x/liquidstakeibc/keeper/grpc_querier_test.go +++ b/x/liquidstakeibc/keeper/grpc_querier_test.go @@ -2,9 +2,11 @@ package keeper_test import ( "strconv" + "testing" sdktypes "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/cosmos/cosmos-sdk/types/query" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" "github.com/cosmos/cosmos-sdk/x/bank/testutil" "google.golang.org/grpc/codes" @@ -14,7 +16,9 @@ import ( ) const ( - MultipleTestSize int = 10 + MultipleTestSize int = 10 + PaginatedTestSize int = 98 + PaginatedStep int = 5 TestAddress string = "persistence1xruvjju28j0a5ud5325rfdak8f5a04h0s30mld" ) @@ -316,53 +320,97 @@ func (suite *IntegrationTestSuite) TestQueryUserUnbondings() { } func (suite *IntegrationTestSuite) TestQueryHostChainUserUnbondings() { - userUnbondings := make([]*types.UserUnbonding, 0) - for i := 0; i < MultipleTestSize; i += 1 { + chainAUserUnbondings := make([]*types.UserUnbonding, 0) + for i := 0; i < PaginatedTestSize; i += 1 { userUnbonding := &types.UserUnbonding{ - ChainId: suite.chainB.ChainID, + ChainId: suite.chainA.ChainID, Address: TestAddress, EpochNumber: int64(i), } suite.app.LiquidStakeIBCKeeper.SetUserUnbonding(suite.ctx, userUnbonding) - userUnbondings = append(userUnbondings, userUnbonding) + chainAUserUnbondings = append(chainAUserUnbondings, userUnbonding) } - tc := []struct { - name string - req *types.QueryHostChainUserUnbondingsRequest - resp *types.QueryHostChainUserUnbondingsResponse - err error - }{ - { - name: "Success", - req: &types.QueryHostChainUserUnbondingsRequest{ChainId: suite.chainB.ChainID}, - resp: &types.QueryHostChainUserUnbondingsResponse{UserUnbondings: userUnbondings}, - }, - { - name: "NotFound", - req: &types.QueryHostChainUserUnbondingsRequest{ChainId: "non-existing-chain"}, - resp: &types.QueryHostChainUserUnbondingsResponse{UserUnbondings: make([]*types.UserUnbonding, 0)}, - }, - { - name: "InvalidRequest", - req: &types.QueryHostChainUserUnbondingsRequest{ChainId: ""}, - err: status.Error(codes.InvalidArgument, "chain id cannot be empty"), - }, - { - name: "InvalidRequest", - err: status.Error(codes.InvalidArgument, "empty request"), - }, + chainBUserUnbondings := make([]*types.UserUnbonding, 0) + for i := 0; i < PaginatedTestSize; i += 1 { + userUnbonding := &types.UserUnbonding{ + ChainId: suite.chainB.ChainID, + Address: TestAddress, + EpochNumber: int64(i), + } + suite.app.LiquidStakeIBCKeeper.SetUserUnbonding(suite.ctx, userUnbonding) + chainBUserUnbondings = append(chainBUserUnbondings, userUnbonding) } - for _, t := range tc { - suite.Run(t.name, func() { - - resp, err := suite.app.LiquidStakeIBCKeeper.HostChainUserUnbondings(suite.ctx, t.req) - - suite.Require().Equal(err, t.err) - suite.Require().Equal(resp, t.resp) - }) + request := func( + chainID string, + next []byte, + offset, limit uint64, + total bool, + ) *types.QueryHostChainUserUnbondingsRequest { + return &types.QueryHostChainUserUnbondingsRequest{ + ChainId: chainID, + Pagination: &query.PageRequest{Key: next, Offset: offset, Limit: limit, CountTotal: total}, + } } + + suite.T().Run("ByOffset", func(t *testing.T) { + for i := 0; i < PaginatedTestSize; i += PaginatedStep { + resp, err := suite.app.LiquidStakeIBCKeeper.HostChainUserUnbondings( + suite.ctx, + request(suite.chainB.ChainID, nil, uint64(i), uint64(PaginatedStep), false), + ) + suite.Require().NoError(err) + suite.Require().LessOrEqual(len(resp.UserUnbondings), PaginatedStep) + suite.Require().Subset(chainBUserUnbondings, resp.UserUnbondings) + } + }) + + suite.T().Run("ByKey", func(t *testing.T) { + var next []byte + for i := 0; i < PaginatedTestSize; i += PaginatedStep { + resp, err := suite.app.LiquidStakeIBCKeeper.HostChainUserUnbondings( + suite.ctx, + request(suite.chainA.ChainID, next, 0, uint64(PaginatedStep), false), + ) + suite.Require().NoError(err) + suite.Require().LessOrEqual(len(resp.UserUnbondings), PaginatedStep) + suite.Require().Subset(chainAUserUnbondings, resp.UserUnbondings) + next = resp.Pagination.NextKey + } + }) + + suite.T().Run("Total", func(t *testing.T) { + resp, err := suite.app.LiquidStakeIBCKeeper.HostChainUserUnbondings( + suite.ctx, + request(suite.chainB.ChainID, nil, 0, 0, true), + ) + suite.Require().NoError(err) + suite.Require().Equal(len(chainBUserUnbondings), int(resp.Pagination.Total)) + suite.Require().ElementsMatch(chainBUserUnbondings, resp.UserUnbondings) + }) + + suite.T().Run("Total Empty", func(t *testing.T) { + resp, err := suite.app.LiquidStakeIBCKeeper.HostChainUserUnbondings( + suite.ctx, + request("non-existing-chain", nil, 0, 0, true), + ) + suite.Require().NoError(err) + suite.Require().Equal(0, int(resp.Pagination.Total)) + }) + + suite.T().Run("Invalid Request", func(t *testing.T) { + _, err := suite.app.LiquidStakeIBCKeeper.HostChainUserUnbondings( + suite.ctx, + request("", nil, 0, 0, true), + ) + suite.Require().ErrorIs(err, status.Error(codes.InvalidArgument, "chain id cannot be empty")) + }) + + suite.T().Run("Invalid Request", func(t *testing.T) { + _, err := suite.app.LiquidStakeIBCKeeper.HostChainUserUnbondings(suite.ctx, nil) + suite.Require().ErrorIs(err, status.Error(codes.InvalidArgument, "empty request")) + }) } func (suite *IntegrationTestSuite) TestQueryValidatorUnbondings() { diff --git a/x/liquidstakeibc/types/query.pb.go b/x/liquidstakeibc/types/query.pb.go index b23841496..9b61cb277 100644 --- a/x/liquidstakeibc/types/query.pb.go +++ b/x/liquidstakeibc/types/query.pb.go @@ -9,7 +9,7 @@ import ( _ "github.com/cosmos/cosmos-proto" github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/cosmos/cosmos-sdk/types/query" + query "github.com/cosmos/cosmos-sdk/types/query" _ "github.com/cosmos/gogoproto/gogoproto" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" @@ -730,7 +730,8 @@ func (m *QueryUserUnbondingsResponse) GetUserUnbondings() []*UserUnbonding { } type QueryHostChainUserUnbondingsRequest struct { - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } func (m *QueryHostChainUserUnbondingsRequest) Reset() { *m = QueryHostChainUserUnbondingsRequest{} } @@ -773,8 +774,16 @@ func (m *QueryHostChainUserUnbondingsRequest) GetChainId() string { return "" } +func (m *QueryHostChainUserUnbondingsRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + type QueryHostChainUserUnbondingsResponse struct { - UserUnbondings []*UserUnbonding `protobuf:"bytes,1,rep,name=user_unbondings,json=userUnbondings,proto3" json:"user_unbondings,omitempty"` + UserUnbondings []*UserUnbonding `protobuf:"bytes,1,rep,name=user_unbondings,json=userUnbondings,proto3" json:"user_unbondings,omitempty"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } func (m *QueryHostChainUserUnbondingsResponse) Reset() { *m = QueryHostChainUserUnbondingsResponse{} } @@ -817,6 +826,13 @@ func (m *QueryHostChainUserUnbondingsResponse) GetUserUnbondings() []*UserUnbond return nil } +func (m *QueryHostChainUserUnbondingsResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + type QueryValidatorUnbondingRequest struct { ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` } @@ -1286,88 +1302,90 @@ func init() { } var fileDescriptor_b143d1c5e28840b2 = []byte{ - // 1284 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x98, 0xdf, 0x6f, 0xdb, 0xd4, - 0x1b, 0xc6, 0xeb, 0xfd, 0x6a, 0xf3, 0xf6, 0xbb, 0x4e, 0x3a, 0x6d, 0xbf, 0x6b, 0x0d, 0xa4, 0xc3, - 0xb0, 0xd1, 0x95,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0x09, 0x4b, 0x68, 0xbe, 0x4e, 0x99, 0x43, 0xd7, 0xef, 0x7e, 0x70, 0x3f, 0x05, 0x92, 0x0e, 0x63, - 0x51, 0x15, 0x52, 0xdd, 0x8d, 0x50, 0xdd, 0x4c, 0xa0, 0xea, 0x54, 0x09, 0x80, 0xcd, 0xe2, 0x83, - 0x7a, 0x68, 0x97, 0x1d, 0xdb, 0xb4, 0xec, 0x8a, 0x08, 0x97, 0x81, 0x6e, 0x82, 0x22, 0xc4, 0xda, - 0x02, 0x68, 0xfa, 0x77, 0x05, 0x1f, 0xa1, 0x5f, 0x46, 0x0b, 0x68, 0x95, 0x2d, 0x7c, 0x1e, 0x9d, - 0xd1, 0x44, 0x30, 0x32, 0x02, 0x17, 0x69, 0xdd, 0x31, 0xaa, 0x63, 0xe7, 0xae, 0x49, 0x93, 0xe7, - 0x35, 0xef, 0x42, 0xf9, 0xa8, 0xdb, 0xa3, 0x4f, 0x7b, 0x0f, 0x32, 0x7e, 0x47, 0xc1, 0x4d, 0xdf, - 0x29, 0xd2, 0x91, 0x2a, 0x0b, 0x20, 0x7b, 0x1d, 0x18, 0x6d, 0x44, 0x57, 0x72, 0x0c, 0xfa, 0x75, - 0xd3, 0x6c, 0x50, 0xc6, 0xda, 0xbc, 0x78, 0xa9, 0xb8, 0xf0, 0x4a, 0xac, 0x0e, 0xf1, 0x1e, 0xc2, - 0x95, 0x26, 0xa3, 0x8d, 0x52, 0x64, 0x45, 0x6f, 0x25, 0x41, 0x06, 0xeb, 0x69, 0x43, 0xcd, 0x50, - 0x79, 0x65, 0x1d, 0xde, 0x08, 0x7f, 0x05, 0xe3, 0xb1, 0x7b, 0x6c, 0x80, 0x23, 0x78, 0xb3, 0x77, - 0x85, 0xff, 0xd6, 0xc0, 0x2a, 0x64, 0x79, 0xfb, 0x0f, 0xf5, 0x9a, 0x65, 0xea, 0xae, 0xd3, 0x48, - 0xb1, 0x47, 0x94, 0x4f, 0x24, 0x98, 0x38, 0x55, 0x8d,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, 0xc8, - 0xba, 0x03, 0x57, 0x82, 0x8d, 0x4a, 0xee, 0x01, 0xee, 0xd4, 0xb7, 0x45, 0x69, 0xe9, 0xce, 0x81, - 0x36, 0xd4, 0x08, 0x55, 0xcf, 0xff, 0x3e, 0x0a, 0x17, 0x79, 0x57, 0xf2, 0xb9, 0x04, 0x97, 0xbc, - 0x0c, 0x42, 0x92, 0xf6, 0x7e, 0x34, 0x04, 0xc9, 0xf9, 0x34, 0x12, 0xcf, 0x91, 0x32, 0xfd, 0xf1, - 0x2f, 0x7f, 0x7d, 0x76, 0xee, 0x2d, 0x72, 0x5d, 0x15, 0xc9, 0x6d, 0xe4, 0x6b, 0x09, 0x32, 0xfe, - 0x59, 0x44, 0xe6, 0x44, 0x1a, 0x76, 0xc7, 0x26, 0x79, 0x3e, 0xa5, 0x0a, 0x49, 0x6f, 0x73, 0xd2, - 0x05, 0x32, 0x97, 0x40, 0xda, 0x49, 0x36, 0xea, 0x61, 0xfb, 0x31, 0x1f, 0x91, 0x2f, 0x24, 0x80, - 0x4e, 0x12, 0x22, 0xe9, 0x18, 0xfc, 0x15, 0x5e, 0x48, 0x2b, 0x43, 0xf6, 0x3c, 0x67, 0xbf, 0x45, - 0xa6, 0x84, 0xd9, 0x19, 0xf9, 0x52, 0x82, 0x81, 0x76, 0x18, 0x21, 0xb3, 0x22, 0x8d, 0xbb, 0x02, - 0x8f, 0x3c, 0x97, 0x4e, 0x84, 0xac, 0x2b, 0x9c, 0x75, 0x8e, 0xe4, 0x13, 0x58, 0xdb, 0xc9, 0x26, - 0xb8, 0xca, 0xdf, 0x49, 0x30, 0x18, 0xc8, 0x50, 0x44, 0x68, 0xbd, 0xa2, 0x51, 0x4d, 0x5e, 0x4c, - 0xad, 0x43, 0xf8, 0x35, 0x0e, 0xbf, 0x44, 0x16, 0x12, 0xe0, 0x6b, 0x6c, 0xb7, 0x14, 0x67, 0xe0, - 0x1b, 0x09, 0xa0, 0xf3, 0xe2, 0x10, 0xdb, 0x26, 0x91, 0x17, 0xba, 0xd8, 0x36, 0x89, 0xbe, 0xc5, - 0x85, 0xb7, 0x78, 0xe7, 0x45, 0x19, 0x64, 0xff, 0x56, 0x82, 0x8c, 0x5f, 0x54, 0xec, 0xbb, 0xd9, - 0xfd, 0x3a, 0x97, 0xe7, 0x53, 0xaa, 0x10, 0xbc, 0xc8, 0xc1, 0xef, 0x90, 0x55, 0x51, 0xf0, 0x00, - 0xb7, 0x7a, 0xc8, 0xc3, 0xe3, 0x11, 0xf9, 0x51, 0x82, 0xa1, 0x70, 0xbc, 0x21, 0xcb, 0x42, 0x38, - 0x71, 0xa1, 0x4a, 0x5e, 0x39, 0x8b, 0x14, 0xed, 0xac, 0x73, 0x3b, 0x2b, 0x64, 0x29, 0xc9, 0x4e, - 0x38, 0x72, 0xa9, 0x87, 0x18, 0x37, 0x8f, 0xc8, 0xdf, 0x12, 0x5c, 0x3d, 0x25, 0xb3, 0x91, 0x42, - 0xaa, 0x43, 0x24, 0xde, 0x5d, 0xf1, 0xa5, 0x6a, 0xa0, 0xcd, 0x0d, 0x6e, 0x73, 0x95, 0x2c, 0xa7, - 0xb5, 0xd9, 0xd9, 0x73, 0x7f, 0x48, 0x30, 0x1c, 0x4d, 0x61, 0x8c, 0xdc, 0x11, 0xe1, 0x3b, 0x35, - 0x55, 0xca, 0x6b, 0x67, 0x95, 0xa3, 0xb3, 0x7b, 0xdc, 0xd9, 0x3a, 0x59, 0x4b, 0x70, 0x16, 0x97, - 0x3d, 0x83, 0xf6, 0xfe, 0x91, 0x60, 0x34, 0x36, 0xf4, 0x91, 0xf5, 0x14, 0x67, 0x6b, 0x6c, 0xde, - 0x94, 0x37, 0x5e, 0xa2, 0x02, 0xda, 0xdc, 0xe6, 0x36, 0x8b, 0x64, 0x43, 0xec, 0xa8, 0x2e, 0xe9, - 0x5e, 0x99, 0x12, 0xc6, 0xce, 0xa0, 0xd3, 0xef, 0x25, 0xf8, 0x5f, 0x30, 0x46, 0x12, 0xa1, 0x23, - 0x38, 0x26, 0xaf, 0xca, 0x4b, 0xe9, 0x85, 0x68, 0xe7, 0x1d, 0x6e, 0x67, 0x99, 0x2c, 0x26, 0xd8, - 0xa1, 0x28, 0x2e, 0xb5, 0x52, 0x69, 0xd0, 0xc4, 0x0f, 0x12, 0x5c, 0x0e, 0xe5, 0x42, 0x22, 0x04, - 0x13, 0x97, 0x67, 0xe5, 0xe5, 0x33, 0x28, 0x53, 0xfa, 0x08, 0x65, 0xd6, 0xa0, 0x8f, 0x9f, 0x24, - 0x18, 0x0a, 0x27, 0x50, 0x92, 0x1a, 0xc7, 0x8f, 0xbb, 0x62, 0x27, 0x61, 0x7c, 0xe0, 0x15, 0x3e, - 0x22, 0xba, 0x52, 0x71, 0xc0, 0x4c, 0xe1, 0xf1, 0xb3, 0xe3, 0xac, 0xf4, 0xfc, 0x38, 0x2b, 0xfd, - 0x79, 0x9c, 0x95, 0x3e, 0x3d, 0xc9, 0xf6, 0x3d, 0x3f, 0xc9, 0xf6, 0xfd, 0x7a, 0x92, 0xed, 0x7b, - 0xb4, 0x11, 0xf8, 0x2d, 0x52, 0xa7, 0x0d, 0x66, 0x31, 0x97, 0xda, 0x06, 0x7d, 0xcf, 0xa6, 0xd8, - 0x6d, 0xda, 0xd6, 0x5d, 0x6b, 0x9f, 0xaa, 0xfb, 0x79, 0xf5, 0xa0, 0xbb, 0x33, 0xff, 0xa9, 0x52, - 0xbe, 0xc4, 0xff, 0x29, 0x38, 0xfb, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x02, 0x09, 0xc8, 0x8d, - 0x5b, 0x15, 0x00, 0x00, + // 1321 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x98, 0xcb, 0x6f, 0xdc, 0xd4, + 0x17, 0xc7, 0xe3, 0xbe, 0xe7, 0xf4, 0xd7, 0x54, 0xba, 0x4d, 0x7f, 0x4d, 0x0c, 0x4c,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, 0x38, 0x61, 0xe2, 0x3d, 0x64, 0xba, 0x94, 0xc1, + 0x84, 0x29, 0xb4, 0x20, 0x4e, 0x99, 0x44, 0xd5, 0x6f, 0xbf, 0x77, 0x2f, 0x07, 0x92, 0x0e, 0xa3, + 0xc9, 0x28, 0xa4, 0xba, 0x9b, 0xa0, 0xba, 0x9a, 0x41, 0x15, 0x66, 0x89, 0x80, 0xdd, 0xc0, 0x07, + 0xf5, 0xc0, 0xae, 0x3b, 0xb6, 0x69, 0xd9, 0x0d, 0x11, 0x2e, 0x03, 0xd5, 0x44, 0x83, 0x10, 0x6b, + 0x05, 0xa0, 0x1b, 0xdc, 0x15, 0x7c, 0x84, 0x41, 0x1a, 0x2d, 0x12, 0xab, 0xac, 0xe0, 0xf3, 0x08, + 0x57, 0x33, 0xc1, 0xc8, 0x08, 0x1c, 0xa5, 0x6d, 0xc7, 0x68, 0x8e, 0x1e, 0xba, 0x20, 0x5d, 0x39, + 0xac, 0x79, 0x17, 0xca, 0x07, 0xfd, 0x1a, 0x03, 0xda, 0x65, 0x28, 0x04, 0x15, 0x05, 0x0f, 0x7d, + 0x98, 0x24, 0x0c, 0x55, 0xa6, 0x40, 0xf6, 0x2a, 0x30, 0xda, 0x49, 0x76, 0x72, 0x14, 0x8e, 0xeb, + 0xa6, 0xd9, 0xa1, 0x8c, 0xf9, 0xbc, 0x78, 0xa9, 0xb8, 0xf0, 0x52, 0x6a, 0x1c, 0xe2, 0x3d, 0x80, + 0xd3, 0x5d, 0x46, 0x3b, 0xb5, 0x44, 0x47, 0xaf, 0x67, 0x41, 0x46, 0xf3, 0x69, 0xc3, 0xdd, 0x58, + 0x7a, 0xe5, 0x63, 0x09, 0x5e, 0x8b, 0xbf, 0x83, 0xe9, 0xdc, 0x03, 0x1a, 0xbd, 0x0c, 0x10, 0x8e, + 0x60, 0xde, 0xed, 0xde, 0x5b, 0x81, 0xb3, 0xbd, 0x37, 0x83, 0x4b, 0xde, 0x67, 0x23, 0x9c, 0x60, +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x29, 0x2c, 0xa7, 0x51, 0x93, 0xb6, 0x68, 0xc3, 0x73, + 0x35, 0x02, 0x98, 0x6d, 0x9c, 0x23, 0x7d, 0x71, 0xc8, 0xa9, 0xc1, 0xa9, 0x4e, 0x74, 0x01, 0x9b, + 0x97, 0xf5, 0x06, 0xc4, 0x93, 0xc5, 0x53, 0x28, 0xb7, 0x52, 0x2a, 0xae, 0x6d, 0x09, 0xa0, 0x32, + 0x1c, 0x5d, 0xfd, 0x81, 0xc8, 0xba, 0x06, 0xa7, 0xa3, 0x85, 0x6a, 0xee, 0x16, 0x9e, 0xd4, 0x37, + 0x44, 0x69, 0xe9, 0xda, 0x96, 0x36, 0xdc, 0x89, 0x65, 0x2f, 0xff, 0x7e, 0x16, 0x8e, 0xf2, 0xaa, + 0xe4, 0x33, 0x09, 0x8e, 0x79, 0xb6, 0x88, 0x64, 0x9d, 0xfd, 0xa4, 0x2f, 0x93, 0xcb, 0x79, 0x42, + 0x3c, 0x45, 0xca, 0xf8, 0x87, 0xbf, 0xfc, 0xf5, 0xe9, 0xa1, 0xcb, 0xe4, 0xa2, 0x2a, 0x62, 0x25, + 0xc9, 0x57, 0x12, 0x14, 0x82, 0xa1, 0x46, 0x26, 0x45, 0x0a, 0xf6, 0x3b, 0x39, 0xf9, 0x66, 0xce, + 0x28, 0x24, 0xbd, 0xcd, 0x49, 0xa7, 0xc8, 0x64, 0x06, 0x69, 0x68, 0xb6, 0xd4, 0x6d, 0xff, 0x31, + 0xef, 0x90, 0xcf, 0x25, 0x80, 0xd0, 0x9c, 0x91, 0x7c, 0x0c, 0x41, 0x87, 0xa7, 0xf2, 0x86, 0x21, + 0x7b, 0x99, 0xb3, 0x5f, 0x27, 0xd7, 0x84, 0xd9, 0x19, 0xf9, 0x42, 0x82, 0x13, 0xbe, 0x3f, 0x22, + 0x37, 0x44, 0x0a, 0xf7, 0x79, 0x30, 0x79, 0x32, 0x5f, 0x10, 0xb2, 0xce, 0x72, 0xd6, 0x49, 0x52, + 0xce, 0x60, 0xf5, 0xcd, 0x56, 0xb4, 0xcb, 0xdf, 0x4a, 0x70, 0x32, 0x62, 0xeb, 0x88, 0x50, 0xbf, + 0x92, 0xee, 0x51, 0xbe, 0x95, 0x3b, 0x0e, 0xe1, 0xe7, 0x39, 0xfc, 0x34, 0x99, 0xca, 0x80, 0x6f, + 0xb1, 0xf5, 0x5a, 0x9a, 0x80, 0xaf, 0x25, 0x80, 0xc8, 0x87, 0x54, 0xe8, 0x98, 0x24, 0x2c, 0x86, + 0xd8, 0x31, 0x49, 0xda, 0x01, 0xe1, 0x23, 0x1e, 0x7e, 0x28, 0xa3, 0xec, 0xdf, 0x48, 0x50, 0x08, + 0x92, 0x8a, 0xbd, 0x9b, 0xfd, 0x9f, 0x73, 0xf9, 0x66, 0xce, 0x28, 0x04, 0xaf, 0x72, 0xf0, 0x3b, + 0x64, 0x4e, 0x14, 0x3c, 0xc2, 0xad, 0x6e, 0x73, 0x3f, 0xbb, 0x43, 0x7e, 0x94, 0x60, 0x38, 0xee, + 0x93, 0xc8, 0x8c, 0x10, 0x4e, 0x9a, 0xcd, 0x93, 0x67, 0x0f, 0x12, 0x8a, 0x72, 0x16, 0xb8, 0x9c, + 0x59, 0x32, 0x9d, 0x25, 0x27, 0xee, 0xdd, 0xd4, 0x6d, 0x74, 0xc0, 0x3b, 0xe4, 0x6f, 0x09, 0xce, + 0xed, 0x63, 0xfe, 0x48, 0x25, 0xd7, 0x10, 0x49, 0x57, 0x57, 0x7d, 0xa1, 0x1c, 0x28, 0x73, 0x91, + 0xcb, 0x9c, 0x23, 0x33, 0x79, 0x65, 0x86, 0x67, 0xee, 0x0f, 0x09, 0xce, 0x24, 0x5d, 0x18, 0x23, + 0x77, 0x44, 0xf8, 0xf6, 0x75, 0x95, 0xf2, 0xfc, 0x41, 0xc3, 0x51, 0xd9, 0x32, 0x57, 0xb6, 0x40, + 0xe6, 0x33, 0x94, 0xa5, 0x79, 0xcf, 0xa8, 0xbc, 0x7f, 0x24,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0xff, 0x56, 0x9e, 0x26, 0xdc, 0xee, 0x15, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2487,6 +2505,18 @@ func (m *QueryHostChainUserUnbondingsRequest) MarshalToSizedBuffer(dAtA []byte) _ = i var l int _ = l + 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] = 0x12 + } if len(m.ChainId) > 0 { i -= len(m.ChainId) copy(dAtA[i:], m.ChainId) @@ -2517,6 +2547,18 @@ func (m *QueryHostChainUserUnbondingsResponse) MarshalToSizedBuffer(dAtA []byte) _ = i var l int _ = l + 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] = 0x12 + } if len(m.UserUnbondings) > 0 { for iNdEx := len(m.UserUnbondings) - 1; iNdEx >= 0; iNdEx-- { { @@ -3089,6 +3131,10 @@ func (m *QueryHostChainUserUnbondingsRequest) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } return n } @@ -3104,6 +3150,10 @@ func (m *QueryHostChainUserUnbondingsResponse) Size() (n int) { n += 1 + l + sovQuery(uint64(l)) } } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } return n } @@ -4587,6 +4637,42 @@ func (m *QueryHostChainUserUnbondingsRequest) Unmarshal(dAtA []byte) error { } m.ChainId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 2: + 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 default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -4671,6 +4757,42 @@ func (m *QueryHostChainUserUnbondingsResponse) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 2: + 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.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) diff --git a/x/liquidstakeibc/types/query.pb.gw.go b/x/liquidstakeibc/types/query.pb.gw.go index c1570bfab..befcc2aaf 100644 --- a/x/liquidstakeibc/types/query.pb.gw.go +++ b/x/liquidstakeibc/types/query.pb.gw.go @@ -415,6 +415,10 @@ func local_request_Query_UserUnbondings_0(ctx context.Context, marshaler runtime } +var ( + filter_Query_HostChainUserUnbondings_0 = &utilities.DoubleArray{Encoding: map[string]int{"chain_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + func request_Query_HostChainUserUnbondings_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryHostChainUserUnbondingsRequest var metadata runtime.ServerMetadata @@ -437,6 +441,13 @@ func request_Query_HostChainUserUnbondings_0(ctx context.Context, marshaler runt return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chain_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_HostChainUserUnbondings_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := client.HostChainUserUnbondings(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err @@ -464,6 +475,13 @@ func local_request_Query_HostChainUserUnbondings_0(ctx context.Context, marshale return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chain_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_HostChainUserUnbondings_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := server.HostChainUserUnbondings(ctx, &protoReq) return msg, metadata, err