From aa7601824edc83bcdb0b094ee65066e54a6cc5a7 Mon Sep 17 00:00:00 2001 From: kruspy Date: Thu, 11 Jan 2024 19:55:05 +0100 Subject: [PATCH 1/4] query host chain user unbondings --- .../pstake/liquidstakeibc/v1beta1/query.proto | 13 + x/liquidstakeibc/client/query.go | 40 ++ x/liquidstakeibc/keeper/grpc_querier.go | 23 + x/liquidstakeibc/keeper/grpc_querier_test.go | 50 ++ x/liquidstakeibc/types/query.pb.go | 570 +++++++++++++++--- x/liquidstakeibc/types/query.pb.gw.go | 101 ++++ 6 files changed, 708 insertions(+), 89 deletions(-) diff --git a/proto/pstake/liquidstakeibc/v1beta1/query.proto b/proto/pstake/liquidstakeibc/v1beta1/query.proto index 6e805b697..b26973b1a 100644 --- a/proto/pstake/liquidstakeibc/v1beta1/query.proto +++ b/proto/pstake/liquidstakeibc/v1beta1/query.proto @@ -63,6 +63,13 @@ service Query { "/pstake/liquidstakeibc/v1beta1/user_unbondings/{address}"; } + // Queries all unbondings for a host chain. + rpc HostChainUserUnbondings(QueryHostChainUserUnbondingsRequest) + returns (QueryHostChainUserUnbondingsResponse) { + option (google.api.http).get = + "/pstake/liquidstakeibc/v1beta1/user_unbondings/{chain_id}"; + } + // Queries all validator unbondings for a host chain. rpc ValidatorUnbondings(QueryValidatorUnbondingRequest) returns (QueryValidatorUnbondingResponse) { @@ -142,6 +149,12 @@ message QueryUserUnbondingsResponse { repeated UserUnbonding user_unbondings = 1; } +message QueryHostChainUserUnbondingsRequest { string chain_id = 1; } + +message QueryHostChainUserUnbondingsResponse { + repeated UserUnbonding user_unbondings = 1; +} + message QueryValidatorUnbondingRequest { string chain_id = 1; } message QueryValidatorUnbondingResponse { diff --git a/x/liquidstakeibc/client/query.go b/x/liquidstakeibc/client/query.go index a975199b1..8370a20cc 100644 --- a/x/liquidstakeibc/client/query.go +++ b/x/liquidstakeibc/client/query.go @@ -33,6 +33,7 @@ func NewQueryCmd() *cobra.Command { QueryLSMDepositsCmd(), QueryUnbondingsCmd(), QueryUserUnbondingsCmd(), + QueryHostChainUserUnbondingsCmd(), QueryValidatorUnbondingsCmd(), QueryDepositAccountBalanceCmd(), QueryExchangeRateCmd(), @@ -298,6 +299,45 @@ func QueryUserUnbondingsCmd() *cobra.Command { return cmd } +// QueryHostChainUserUnbondingsCmd returns all user unbondings for a host chain. +func QueryHostChainUserUnbondingsCmd() *cobra.Command { + cmd := &cobra.Command{ + Use: "host-chain-user-unbondings [chain-id]", + Short: "Query all user unbonding records for a host chain", + Args: cobra.ExactArgs(1), + Long: strings.TrimSpace( + fmt.Sprintf( + `Query all user unbonding records for a host chain: $ %s query liquidstakeibc host-chain-user-unbondings [chain-id]`, + version.AppName, + ), + ), + RunE: func(cmd *cobra.Command, args []string) error { + clientCtx, err := client.GetClientQueryContext(cmd) + if err != nil { + return err + } + + queryClient := types.NewQueryClient(clientCtx) + + res, err := queryClient.HostChainUserUnbondings( + context.Background(), + &types.QueryHostChainUserUnbondingsRequest{ + ChainId: args[0], + }, + ) + if err != nil { + return err + } + + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + + return cmd +} + // QueryValidatorUnbondingsCmd returns all validator unbondings for a host chain. func QueryValidatorUnbondingsCmd() *cobra.Command { cmd := &cobra.Command{ diff --git a/x/liquidstakeibc/keeper/grpc_querier.go b/x/liquidstakeibc/keeper/grpc_querier.go index dd39ab30c..eabbe1f00 100644 --- a/x/liquidstakeibc/keeper/grpc_querier.go +++ b/x/liquidstakeibc/keeper/grpc_querier.go @@ -177,6 +177,29 @@ func (k *Keeper) UserUnbondings( return &types.QueryUserUnbondingsResponse{UserUnbondings: userUnbondings}, nil } +func (k *Keeper) HostChainUserUnbondings( + goCtx context.Context, + request *types.QueryHostChainUserUnbondingsRequest, +) (*types.QueryHostChainUserUnbondingsResponse, error) { + if request == nil { + return nil, status.Error(codes.InvalidArgument, "empty request") + } + if request.ChainId == "" { + return nil, status.Error(codes.InvalidArgument, "chain id cannot be empty") + } + + ctx := sdk.UnwrapSDKContext(goCtx) + + userUnbondings := k.FilterUserUnbondings( + ctx, + func(u types.UserUnbonding) bool { + return u.ChainId == request.ChainId + }, + ) + + return &types.QueryHostChainUserUnbondingsResponse{UserUnbondings: userUnbondings}, nil +} + func (k *Keeper) ValidatorUnbondings( goCtx context.Context, request *types.QueryValidatorUnbondingRequest, diff --git a/x/liquidstakeibc/keeper/grpc_querier_test.go b/x/liquidstakeibc/keeper/grpc_querier_test.go index 430638afb..975eaa291 100644 --- a/x/liquidstakeibc/keeper/grpc_querier_test.go +++ b/x/liquidstakeibc/keeper/grpc_querier_test.go @@ -315,6 +315,56 @@ func (suite *IntegrationTestSuite) TestQueryUserUnbondings() { } } +func (suite *IntegrationTestSuite) TestQueryHostChainUserUnbondings() { + userUnbondings := make([]*types.UserUnbonding, 0) + for i := 0; i < MultipleTestSize; i += 1 { + userUnbonding := &types.UserUnbonding{ + ChainId: suite.chainB.ChainID, + Address: TestAddress, + EpochNumber: int64(i), + } + suite.app.LiquidStakeIBCKeeper.SetUserUnbonding(suite.ctx, userUnbonding) + userUnbondings = append(userUnbondings, 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"), + }, + } + + 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) + }) + } +} + func (suite *IntegrationTestSuite) TestQueryValidatorUnbondings() { validatorUnbondings := make([]*types.ValidatorUnbonding, 0) for i := 0; i < MultipleTestSize; i += 1 { diff --git a/x/liquidstakeibc/types/query.pb.go b/x/liquidstakeibc/types/query.pb.go index d561b5dcd..b23841496 100644 --- a/x/liquidstakeibc/types/query.pb.go +++ b/x/liquidstakeibc/types/query.pb.go @@ -729,6 +729,94 @@ func (m *QueryUserUnbondingsResponse) GetUserUnbondings() []*UserUnbonding { return nil } +type QueryHostChainUserUnbondingsRequest struct { + ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` +} + +func (m *QueryHostChainUserUnbondingsRequest) Reset() { *m = QueryHostChainUserUnbondingsRequest{} } +func (m *QueryHostChainUserUnbondingsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryHostChainUserUnbondingsRequest) ProtoMessage() {} +func (*QueryHostChainUserUnbondingsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_b143d1c5e28840b2, []int{16} +} +func (m *QueryHostChainUserUnbondingsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryHostChainUserUnbondingsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryHostChainUserUnbondingsRequest.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 *QueryHostChainUserUnbondingsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryHostChainUserUnbondingsRequest.Merge(m, src) +} +func (m *QueryHostChainUserUnbondingsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryHostChainUserUnbondingsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryHostChainUserUnbondingsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryHostChainUserUnbondingsRequest proto.InternalMessageInfo + +func (m *QueryHostChainUserUnbondingsRequest) GetChainId() string { + if m != nil { + return m.ChainId + } + return "" +} + +type QueryHostChainUserUnbondingsResponse struct { + UserUnbondings []*UserUnbonding `protobuf:"bytes,1,rep,name=user_unbondings,json=userUnbondings,proto3" json:"user_unbondings,omitempty"` +} + +func (m *QueryHostChainUserUnbondingsResponse) Reset() { *m = QueryHostChainUserUnbondingsResponse{} } +func (m *QueryHostChainUserUnbondingsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryHostChainUserUnbondingsResponse) ProtoMessage() {} +func (*QueryHostChainUserUnbondingsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_b143d1c5e28840b2, []int{17} +} +func (m *QueryHostChainUserUnbondingsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryHostChainUserUnbondingsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryHostChainUserUnbondingsResponse.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 *QueryHostChainUserUnbondingsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryHostChainUserUnbondingsResponse.Merge(m, src) +} +func (m *QueryHostChainUserUnbondingsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryHostChainUserUnbondingsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryHostChainUserUnbondingsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryHostChainUserUnbondingsResponse proto.InternalMessageInfo + +func (m *QueryHostChainUserUnbondingsResponse) GetUserUnbondings() []*UserUnbonding { + if m != nil { + return m.UserUnbondings + } + return nil +} + type QueryValidatorUnbondingRequest struct { ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` } @@ -737,7 +825,7 @@ func (m *QueryValidatorUnbondingRequest) Reset() { *m = QueryValidatorUn func (m *QueryValidatorUnbondingRequest) String() string { return proto.CompactTextString(m) } func (*QueryValidatorUnbondingRequest) ProtoMessage() {} func (*QueryValidatorUnbondingRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b143d1c5e28840b2, []int{16} + return fileDescriptor_b143d1c5e28840b2, []int{18} } func (m *QueryValidatorUnbondingRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -781,7 +869,7 @@ func (m *QueryValidatorUnbondingResponse) Reset() { *m = QueryValidatorU func (m *QueryValidatorUnbondingResponse) String() string { return proto.CompactTextString(m) } func (*QueryValidatorUnbondingResponse) ProtoMessage() {} func (*QueryValidatorUnbondingResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b143d1c5e28840b2, []int{17} + return fileDescriptor_b143d1c5e28840b2, []int{19} } func (m *QueryValidatorUnbondingResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -825,7 +913,7 @@ func (m *QueryDepositAccountBalanceRequest) Reset() { *m = QueryDepositA func (m *QueryDepositAccountBalanceRequest) String() string { return proto.CompactTextString(m) } func (*QueryDepositAccountBalanceRequest) ProtoMessage() {} func (*QueryDepositAccountBalanceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b143d1c5e28840b2, []int{18} + return fileDescriptor_b143d1c5e28840b2, []int{20} } func (m *QueryDepositAccountBalanceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -869,7 +957,7 @@ func (m *QueryDepositAccountBalanceResponse) Reset() { *m = QueryDeposit func (m *QueryDepositAccountBalanceResponse) String() string { return proto.CompactTextString(m) } func (*QueryDepositAccountBalanceResponse) ProtoMessage() {} func (*QueryDepositAccountBalanceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b143d1c5e28840b2, []int{19} + return fileDescriptor_b143d1c5e28840b2, []int{21} } func (m *QueryDepositAccountBalanceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -913,7 +1001,7 @@ func (m *QueryExchangeRateRequest) Reset() { *m = QueryExchangeRateReque func (m *QueryExchangeRateRequest) String() string { return proto.CompactTextString(m) } func (*QueryExchangeRateRequest) ProtoMessage() {} func (*QueryExchangeRateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b143d1c5e28840b2, []int{20} + return fileDescriptor_b143d1c5e28840b2, []int{22} } func (m *QueryExchangeRateRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -957,7 +1045,7 @@ func (m *QueryExchangeRateResponse) Reset() { *m = QueryExchangeRateResp func (m *QueryExchangeRateResponse) String() string { return proto.CompactTextString(m) } func (*QueryExchangeRateResponse) ProtoMessage() {} func (*QueryExchangeRateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b143d1c5e28840b2, []int{21} + return fileDescriptor_b143d1c5e28840b2, []int{23} } func (m *QueryExchangeRateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -994,7 +1082,7 @@ func (m *QueryRedelegationsRequest) Reset() { *m = QueryRedelegationsReq func (m *QueryRedelegationsRequest) String() string { return proto.CompactTextString(m) } func (*QueryRedelegationsRequest) ProtoMessage() {} func (*QueryRedelegationsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b143d1c5e28840b2, []int{22} + return fileDescriptor_b143d1c5e28840b2, []int{24} } func (m *QueryRedelegationsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1038,7 +1126,7 @@ func (m *QueryRedelegationsResponse) Reset() { *m = QueryRedelegationsRe func (m *QueryRedelegationsResponse) String() string { return proto.CompactTextString(m) } func (*QueryRedelegationsResponse) ProtoMessage() {} func (*QueryRedelegationsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b143d1c5e28840b2, []int{23} + return fileDescriptor_b143d1c5e28840b2, []int{25} } func (m *QueryRedelegationsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1082,7 +1170,7 @@ func (m *QueryRedelegationTxRequest) Reset() { *m = QueryRedelegationTxR func (m *QueryRedelegationTxRequest) String() string { return proto.CompactTextString(m) } func (*QueryRedelegationTxRequest) ProtoMessage() {} func (*QueryRedelegationTxRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b143d1c5e28840b2, []int{24} + return fileDescriptor_b143d1c5e28840b2, []int{26} } func (m *QueryRedelegationTxRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1126,7 +1214,7 @@ func (m *QueryRedelegationTxResponse) Reset() { *m = QueryRedelegationTx func (m *QueryRedelegationTxResponse) String() string { return proto.CompactTextString(m) } func (*QueryRedelegationTxResponse) ProtoMessage() {} func (*QueryRedelegationTxResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b143d1c5e28840b2, []int{25} + return fileDescriptor_b143d1c5e28840b2, []int{27} } func (m *QueryRedelegationTxResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1179,6 +1267,8 @@ func init() { proto.RegisterType((*QueryUnbondingResponse)(nil), "pstake.liquidstakeibc.v1beta1.QueryUnbondingResponse") proto.RegisterType((*QueryUserUnbondingsRequest)(nil), "pstake.liquidstakeibc.v1beta1.QueryUserUnbondingsRequest") proto.RegisterType((*QueryUserUnbondingsResponse)(nil), "pstake.liquidstakeibc.v1beta1.QueryUserUnbondingsResponse") + proto.RegisterType((*QueryHostChainUserUnbondingsRequest)(nil), "pstake.liquidstakeibc.v1beta1.QueryHostChainUserUnbondingsRequest") + proto.RegisterType((*QueryHostChainUserUnbondingsResponse)(nil), "pstake.liquidstakeibc.v1beta1.QueryHostChainUserUnbondingsResponse") proto.RegisterType((*QueryValidatorUnbondingRequest)(nil), "pstake.liquidstakeibc.v1beta1.QueryValidatorUnbondingRequest") proto.RegisterType((*QueryValidatorUnbondingResponse)(nil), "pstake.liquidstakeibc.v1beta1.QueryValidatorUnbondingResponse") proto.RegisterType((*QueryDepositAccountBalanceRequest)(nil), "pstake.liquidstakeibc.v1beta1.QueryDepositAccountBalanceRequest") @@ -1196,85 +1286,88 @@ func init() { } var fileDescriptor_b143d1c5e28840b2 = []byte{ - // 1242 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x98, 0x4f, 0x6f, 0xdc, 0xc4, - 0x1b, 0xc7, 0xe3, 0xfe, 0x49, 0xb2, 0x4f, 0x7e, 0x4d, 0xa5, 0x49, 0xfa, 0x23, 0x31, 0xb0, 0x29, - 0x96, 0x5a, 0xd2, 0xd0, 0xac, 0x95, 0xcd, 0xff, 0xa4, 0x0d, 0xf9, 0xd7, 0x2a, 0x91, 0xa8, 0x28, - 0x26, 0xe5, 0xd0, 0x1e, 0x16, 0xaf, 0x3d, 0xda, 0xb5, 0xba, 0xb1, 0x37, 0x1e, 0x6f, 0xb4, 0x55, - 0x94, 0x0b, 0x17, 0xae, 0x48, 0xdc, 0x79, 0x0b, 0x08, 0x09, 0x21, 0x71, 0x80, 0x03, 0x12, 0x52, - 0xe1, 0x54, 0xc1, 0x05, 0x21, 0x54, 0xa1, 0x04, 0x89, 0x17, 0xc0, 0x1b, 0x40, 0x3b, 0x7e, 0xec, - 0xb5, 0xd7, 0x6e, 0x3c, 0x0e, 0xa7, 0xac, 0x3d, 0xf3, 0x7d, 0x9e, 0xcf, 0x77, 0x3c, 0xf6, 0x7c, - 0x15, 0xb8, 0xd5, 0x64, 0x9e, 0xfe, 0x94, 0xaa, 0x0d, 0xeb, 0xa0, 0x65, 0x99, 0xfc, 0xb7, 0x55, - 0x35, 0xd4, 0xc3, 0x99, 0x2a, 0xf5, 0xf4, 0x19, 0xf5, 0xa0, 0x45, 0xdd, 0x67, 0xa5, 0xa6, 0xeb, - 0x78, 0x0e, 0x79, 0xd3, 0x9f, 0x5a, 0x8a, 0x4f, 0x2d, 0xe1, 0x54, 0x79, 0xb4, 0xe6, 0xd4, 0x1c, - 0x3e, 0x53, 0xed, 0xfc, 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xa1, 0x8c, 0xf5, 0x36, 0x0a, 0x97, - 0xc4, 0x84, 0xd7, 0x12, 0x23, 0xc8, 0xb0, 0x0b, 0x43, 0x5d, 0x86, 0xce, 0xda, 0x5c, 0xcc, 0x03, - 0xa1, 0x41, 0xd8, 0x9e, 0x29, 0x33, 0x30, 0xca, 0xbb, 0x6c, 0xd3, 0xa6, 0xc3, 0x2c, 0x8f, 0x09, - 0xac, 0xcd, 0x13, 0x5c, 0xcf, 0xae, 0x04, 0xb1, 0x36, 0x61, 0xd0, 0xc4, 0x7b, 0xc8, 0x74, 0x33, - 0x83, 0x09, 0x4b, 0x68, 0xa1, 0x4e, 0x99, 0x43, 0xd7, 0xef, 0x7d, 0xf8, 0x20, 0x07, 0x92, 0x0e, - 0x63, 0x49, 0x15, 0x52, 0xdd, 0x4b, 0x50, 0xdd, 0xca, 0xa0, 0xea, 0x56, 0x89, 0x80, 0xcd, 0xe2, - 0x83, 0x7a, 0x64, 0x57, 0x1d, 0xdb, 0xb4, 0xec, 0x9a, 0x08, 0x97, 0x81, 0x6e, 0xa2, 0x22, 0xc4, - 0xda, 0x01, 0x68, 0x85, 0x77, 0x05, 0x1f, 0x61, 0x58, 0x46, 0x8b, 0x68, 0x95, 0x1d, 0x7c, 0x1e, - 0xdd, 0xd1, 0x4c, 0x30, 0x32, 0x0a, 0x97, 0x69, 0xd3, 0x31, 0xea, 0x63, 0x17, 0xae, 0x4b, 0x93, - 0x17, 0x35, 0xff, 0x42, 0xf9, 0xb8, 0xd7, 0x63, 0x48, 0x7b, 0x1f, 0x0a, 0x61, 0x47, 0xc1, 0x4d, - 0xdf, 0x2d, 0xd2, 0x95, 0x2a, 0x0b, 0x20, 0xfb, 0x1d, 0x18, 0x75, 0x93, 0x2b, 0x39, 0x06, 0x03, - 0xba, 0x69, 0xba, 0x94, 0xb1, 0x80, 0x17, 0x2f, 0x15, 0x0f, 0x5e, 0x4f, 0xd5, 0x21, 0xde, 0x23, - 0xb8, 0xda, 0x62, 0xd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 0x04, 0x16, 0xc0, 0x6c, 0xe2, 0x9e, 0xef, - 0xd1, 0x21, 0xa7, 0x06, 0x57, 0xdc, 0xe8, 0x00, 0x2e, 0x5e, 0xd6, 0xc6, 0x8d, 0x17, 0x8b, 0x97, - 0x50, 0x16, 0x53, 0x3a, 0xee, 0xb5, 0x05, 0x50, 0x19, 0xbe, 0x66, 0xbd, 0x42, 0x64, 0xdd, 0x83, - 0xab, 0xd1, 0x46, 0x15, 0xaf, 0x8d, 0x3b, 0xf5, 0x1d, 0x51, 0x5a, 0xba, 0xd7, 0xd6, 0x86, 0xdd, - 0x58, 0xf5, 0xf2, 0x3f, 0x23, 0x70, 0x99, 0x77, 0x25, 0x5f, 0x48, 0xd0, 0xef, 0x1f, 0xe1, 0x24, - 0x6b, 0xef, 0x27, 0x33, 0x84, 0x5c, 0xce, 0x23, 0xf1, 0x1d, 0x29, 0xd3, 0x9f, 0xfc, 0xfa, 0xd7, - 0xe7, 0x17, 0xde, 0x26, 0x37, 0x54, 0x91, 0xd8, 0x43, 0xbe, 0x91, 0xa0, 0x10, 0x9e, 0xa3, 0x64, - 0x4e, 0xa4, 0x61, 0x6f, 0xea, 0x90, 0xe7, 0x73, 0xaa, 0x90, 0xf4, 0x0e, 0x27, 0x5d, 0x20, 0x73, - 0x19, 0xa4, 0xdd, 0x60, 0xa0, 0x1e, 0x05, 0x8f, 0xf9, 0x98, 0x7c, 0x29, 0x01, 0x74, 0x83, 0x04, - 0xc9, 0xc7, 0x10, 0xae, 0xf0, 0x42, 0x5e, 0x19, 0xb2, 0x97, 0x39, 0xfb, 0x6d, 0x32, 0x25, 0xcc, - 0xce, 0xc8, 0x57, 0x12, 0x0c, 0x06, 0x67, 0x39, 0x99, 0x15, 0x69, 0xdc, 0x93, 0x17, 0xe4, 0xb9, - 0x7c, 0x22, 0x64, 0x5d, 0xe1, 0xac, 0x73, 0xa4, 0x9c, 0xc1, 0x1a, 0x04, 0x83, 0xe8, 0x2a, 0x7f, - 0x2f, 0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75, 0xfa, 0x83, 0x04, 0xff, 0x8b, 0xc6, 0x2b, 0x22, - 0xf4, 0x69, 0x4a, 0xc9, 0x71, 0xf2, 0x52, 0x7e, 0x21, 0xda, 0x79, 0x97, 0xdb, 0x59, 0x26, 0x8b, - 0x19, 0x76, 0x28, 0x8a, 0x2b, 0x9d, 0xb4, 0x16, 0x35, 0xf1, 0xa3, 0x04, 0x57, 0x62, 0x79, 0x89, - 0x08, 0xc1, 0xa4, 0xe5, 0x3c, 0x79, 0xf9, 0x1c, 0xca, 0x9c, 0x3e, 0x62, 0x59, 0x2e, 0xea, 0xe3, - 0x67, 0x09, 0x86, 0xe3, 0xc9, 0x8c, 0xe4, 0xc6, 0x09, 0x63, 0xa0, 0xd8, 0x17, 0x22, 0x3d, 0x08, - 0x2a, 0x1b, 0xdc, 0xca, 0x2a, 0x59, 0xce, 0x61, 0xa5, 0xe2, 0xb5, 0x23, 0x66, 0x36, 0x9f, 0x3c, - 0x3f, 0x29, 0x4a, 0x2f, 0x4e, 0x8a, 0xd2, 0x9f, 0x27, 0x45, 0xe9, 0xb3, 0xd3, 0x62, 0xdf, 0x8b, - 0xd3, 0x62, 0xdf, 0x6f, 0xa7, 0xc5, 0xbe, 0xc7, 0x1b, 0x91, 0x8c, 0xde, 0xa4, 0x2e, 0xb3, 0x98, - 0x47, 0x6d, 0x83, 0xbe, 0x6f, 0x53, 0xec, 0x36, 0x6d, 0xeb, 0x9e, 0x75, 0x48, 0xd5, 0xc3, 0xb2, - 0xda, 0xee, 0xed, 0xcc, 0x23, 0x7c, 0xb5, 0x9f, 0xff, 0xaf, 0x69, 0xf6, 0xdf, 0x00, 0x00, 0x00, - 0xff, 0xff, 0x7a, 0x8e, 0xa6, 0x90, 0xb2, 0x13, 0x00, 0x00, + // 1284 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x98, 0xdf, 0x6f, 0xdb, 0xd4, + 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 0x59, 0x2e, 0x13, 0x58, + 0x9b, 0xc7, 0xb8, 0x9e, 0x1d, 0x09, 0x62, 0x15, 0x60, 0xc0, 0xc4, 0x7b, 0xc8, 0x74, 0x23, 0x81, + 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, 0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x2e, 0x5e, 0xd2, 0xc6, 0x0d, 0x17, + 0x0b, 0x97, 0x50, 0x16, 0x63, 0x3a, 0xee, 0x1c, 0x08, 0xa0, 0x32, 0x3c, 0x27, 0xba, 0x85, 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,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, 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, } // Reference imports to suppress errors if they are not otherwise used. @@ -1305,6 +1398,8 @@ type QueryClient interface { Unbonding(ctx context.Context, in *QueryUnbondingRequest, opts ...grpc.CallOption) (*QueryUnbondingResponse, error) // Queries all unbondings for a delegator address. UserUnbondings(ctx context.Context, in *QueryUserUnbondingsRequest, opts ...grpc.CallOption) (*QueryUserUnbondingsResponse, error) + // Queries all unbondings for a host chain. + HostChainUserUnbondings(ctx context.Context, in *QueryHostChainUserUnbondingsRequest, opts ...grpc.CallOption) (*QueryHostChainUserUnbondingsResponse, error) // Queries all validator unbondings for a host chain. ValidatorUnbondings(ctx context.Context, in *QueryValidatorUnbondingRequest, opts ...grpc.CallOption) (*QueryValidatorUnbondingResponse, error) // Queries for a host chain deposit account balance. @@ -1399,6 +1494,15 @@ func (c *queryClient) UserUnbondings(ctx context.Context, in *QueryUserUnbonding return out, nil } +func (c *queryClient) HostChainUserUnbondings(ctx context.Context, in *QueryHostChainUserUnbondingsRequest, opts ...grpc.CallOption) (*QueryHostChainUserUnbondingsResponse, error) { + out := new(QueryHostChainUserUnbondingsResponse) + err := c.cc.Invoke(ctx, "/pstake.liquidstakeibc.v1beta1.Query/HostChainUserUnbondings", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *queryClient) ValidatorUnbondings(ctx context.Context, in *QueryValidatorUnbondingRequest, opts ...grpc.CallOption) (*QueryValidatorUnbondingResponse, error) { out := new(QueryValidatorUnbondingResponse) err := c.cc.Invoke(ctx, "/pstake.liquidstakeibc.v1beta1.Query/ValidatorUnbondings", in, out, opts...) @@ -1462,6 +1566,8 @@ type QueryServer interface { Unbonding(context.Context, *QueryUnbondingRequest) (*QueryUnbondingResponse, error) // Queries all unbondings for a delegator address. UserUnbondings(context.Context, *QueryUserUnbondingsRequest) (*QueryUserUnbondingsResponse, error) + // Queries all unbondings for a host chain. + HostChainUserUnbondings(context.Context, *QueryHostChainUserUnbondingsRequest) (*QueryHostChainUserUnbondingsResponse, error) // Queries all validator unbondings for a host chain. ValidatorUnbondings(context.Context, *QueryValidatorUnbondingRequest) (*QueryValidatorUnbondingResponse, error) // Queries for a host chain deposit account balance. @@ -1504,6 +1610,9 @@ func (*UnimplementedQueryServer) Unbonding(ctx context.Context, req *QueryUnbond func (*UnimplementedQueryServer) UserUnbondings(ctx context.Context, req *QueryUserUnbondingsRequest) (*QueryUserUnbondingsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UserUnbondings not implemented") } +func (*UnimplementedQueryServer) HostChainUserUnbondings(ctx context.Context, req *QueryHostChainUserUnbondingsRequest) (*QueryHostChainUserUnbondingsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method HostChainUserUnbondings not implemented") +} func (*UnimplementedQueryServer) ValidatorUnbondings(ctx context.Context, req *QueryValidatorUnbondingRequest) (*QueryValidatorUnbondingResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ValidatorUnbondings not implemented") } @@ -1668,6 +1777,24 @@ func _Query_UserUnbondings_Handler(srv interface{}, ctx context.Context, dec fun return interceptor(ctx, in, info, handler) } +func _Query_HostChainUserUnbondings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryHostChainUserUnbondingsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).HostChainUserUnbondings(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pstake.liquidstakeibc.v1beta1.Query/HostChainUserUnbondings", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).HostChainUserUnbondings(ctx, req.(*QueryHostChainUserUnbondingsRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _Query_ValidatorUnbondings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryValidatorUnbondingRequest) if err := dec(in); err != nil { @@ -1794,6 +1921,10 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "UserUnbondings", Handler: _Query_UserUnbondings_Handler, }, + { + MethodName: "HostChainUserUnbondings", + Handler: _Query_HostChainUserUnbondings_Handler, + }, { MethodName: "ValidatorUnbondings", Handler: _Query_ValidatorUnbondings_Handler, @@ -2336,6 +2467,73 @@ func (m *QueryUserUnbondingsResponse) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } +func (m *QueryHostChainUserUnbondingsRequest) 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 *QueryHostChainUserUnbondingsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryHostChainUserUnbondingsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ChainId) > 0 { + i -= len(m.ChainId) + copy(dAtA[i:], m.ChainId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ChainId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryHostChainUserUnbondingsResponse) 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 *QueryHostChainUserUnbondingsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryHostChainUserUnbondingsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.UserUnbondings) > 0 { + for iNdEx := len(m.UserUnbondings) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.UserUnbondings[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 *QueryValidatorUnbondingRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -2881,6 +3079,34 @@ func (m *QueryUserUnbondingsResponse) Size() (n int) { return n } +func (m *QueryHostChainUserUnbondingsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ChainId) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryHostChainUserUnbondingsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.UserUnbondings) > 0 { + for _, e := range m.UserUnbondings { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + return n +} + func (m *QueryValidatorUnbondingRequest) Size() (n int) { if m == nil { return 0 @@ -4300,6 +4526,172 @@ func (m *QueryUserUnbondingsResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *QueryHostChainUserUnbondingsRequest) 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: QueryHostChainUserUnbondingsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryHostChainUserUnbondingsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainId", 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.ChainId = string(dAtA[iNdEx:postIndex]) + 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 *QueryHostChainUserUnbondingsResponse) 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: QueryHostChainUserUnbondingsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryHostChainUserUnbondingsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserUnbondings", 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.UserUnbondings = append(m.UserUnbondings, &UserUnbonding{}) + if err := m.UserUnbondings[len(m.UserUnbondings)-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 *QueryValidatorUnbondingRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/x/liquidstakeibc/types/query.pb.gw.go b/x/liquidstakeibc/types/query.pb.gw.go index 09bcc60f4..c1570bfab 100644 --- a/x/liquidstakeibc/types/query.pb.gw.go +++ b/x/liquidstakeibc/types/query.pb.gw.go @@ -415,6 +415,60 @@ func local_request_Query_UserUnbondings_0(ctx context.Context, marshaler runtime } +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 + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["chain_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chain_id") + } + + protoReq.ChainId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chain_id", err) + } + + msg, err := client.HostChainUserUnbondings(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_HostChainUserUnbondings_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryHostChainUserUnbondingsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["chain_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "chain_id") + } + + protoReq.ChainId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "chain_id", err) + } + + msg, err := server.HostChainUserUnbondings(ctx, &protoReq) + return msg, metadata, err + +} + func request_Query_ValidatorUnbondings_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryValidatorUnbondingRequest var metadata runtime.ServerMetadata @@ -875,6 +929,29 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_HostChainUserUnbondings_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + 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_HostChainUserUnbondings_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_HostChainUserUnbondings_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_ValidatorUnbondings_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -1191,6 +1268,26 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_HostChainUserUnbondings_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_HostChainUserUnbondings_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_HostChainUserUnbondings_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_ValidatorUnbondings_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -1311,6 +1408,8 @@ var ( pattern_Query_UserUnbondings_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"pstake", "liquidstakeibc", "v1beta1", "user_unbondings", "address"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_HostChainUserUnbondings_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"pstake", "liquidstakeibc", "v1beta1", "user_unbondings", "chain_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_ValidatorUnbondings_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"pstake", "liquidstakeibc", "v1beta1", "validator_unbondings", "chain_id"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_DepositAccountBalance_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"pstake", "liquidstakeibc", "v1beta1", "deposit_account_balance", "chain_id"}, "", runtime.AssumeColonVerbOpt(false))) @@ -1339,6 +1438,8 @@ var ( forward_Query_UserUnbondings_0 = runtime.ForwardResponseMessage + forward_Query_HostChainUserUnbondings_0 = runtime.ForwardResponseMessage + forward_Query_ValidatorUnbondings_0 = runtime.ForwardResponseMessage forward_Query_DepositAccountBalance_0 = runtime.ForwardResponseMessage From acf66bfe3486421a0a88ba8367cacc8b8bebd719 Mon Sep 17 00:00:00 2001 From: kruspy Date: Thu, 11 Jan 2024 19:56:41 +0100 Subject: [PATCH 2/4] changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f7581430c..aba36a73a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,10 @@ Ref: https://keepachangelog.com/en/1.0.0/ ## Unreleased +### Features + +- [721](https://github.com/persistenceOne/pstake-native/pull/721) Query host chain unbondings. + ## [v2.8.2] - 2024-01-09 ### Bug Fixes From b095d881c5546a4983b021ffbd7a9e535f42de0f Mon Sep 17 00:00:00 2001 From: kruspy Date: Fri, 12 Jan 2024 09:03:17 +0100 Subject: [PATCH 3/4] 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, 0x35, 0x56, 0xd3, 0xdf, 0xed, 0x56, 0xda, 0xa4, 0x9b, 0x5a, 0x89, 0x89, 0x61, - 0x3a, 0x2e, 0xb6, 0x8b, 0xe0, 0xd8, 0x47, 0x89, 0xb5, 0xd4, 0x4e, 0x73, 0x9c, 0xaa, 0x53, 0xd5, - 0x1b, 0x6e, 0xb8, 0x45, 0xe2, 0x9e, 0x7f, 0x01, 0x21, 0x21, 0x24, 0x2e, 0xe0, 0x02, 0x09, 0x69, - 0x70, 0x35, 0xc1, 0x0d, 0x02, 0x34, 0xa1, 0x16, 0xc4, 0xbf, 0x81, 0x72, 0xfc, 0xc6, 0xb1, 0x63, - 0x37, 0x3e, 0xee, 0xc4, 0x55, 0x63, 0x9f, 0xf3, 0xbc, 0xef, 0xe7, 0x39, 0x3e, 0x39, 0x7e, 0x52, - 0xb8, 0x59, 0x67, 0xae, 0xf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0xc5, 0xaa, 0x6e, 0xd9, 0xd8, 0x94, - 0x8c, 0xc3, 0x80, 0xd1, 0xba, 0x2e, 0x59, 0x26, 0xaf, 0x9f, 0xd1, 0xfa, 0xf9, 0xf5, 0xb6, 0xa9, - 0x54, 0xe0, 0xff, 0xdd, 0x1a, 0x44, 0xba, 0x0f, 0x50, 0x75, 0x98, 0x5b, 0xe2, 0x33, 0x11, 0x6b, - 0x32, 0x01, 0xcb, 0xaf, 0x82, 0x64, 0x99, 0x6a, 0xfb, 0x86, 0x32, 0xd6, 0xdd, 0xc8, 0x5f, 0x12, - 0x13, 0xae, 0x46, 0x46, 0x90, 0x61, 0x1b, 0x06, 0x3b, 0x0c, 0xad, 0xb5, 0x39, 0x9f, 0x06, 0x42, - 0x03, 0xbf, 0x3d, 0x53, 0x66, 0x60, 0x84, 0x77, 0xd9, 0xa4, 0x75, 0x87, 0x59, 0x2e, 0x13, 0x58, - 0x9b, 0xc7, 0xb8, 0x9e, 0x1d, 0x09, 0x62, 0x15, 0x60, 0xc0, 0xc4, 0x7b, 0xc8, 0x74, 0x23, 0x81, - 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, 0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c, 0xbb, 0x30, 0x1e, 0x23, 0x43, 0x9c, 0x07, - 0x70, 0xa1, 0xa1, 0xbb, 0x1e, 0x4b, 0xa6, 0x70, 0xbb, 0xd5, 0xf0, 0xb7, 0x17, 0x13, 0x37, 0x2a, - 0x96, 0x5b, 0x6d, 0x96, 0x73, 0x86, 0xb3, 0x8b, 0x09, 0x01, 0xff, 0x4c, 0x33, 0xf3, 0x89, 0xea, - 0x3e, 0xad, 0x53, 0x96, 0xdb, 0xa4, 0xc6, 0xcf, 0x5f, 0x4d, 0x03, 0xc2, 0x6f, 0x52, 0x43, 0xe3, - 0x95, 0x94, 0x05, 0x6c, 0xa7, 0x51, 0x93, 0xd6, 0x68, 0xc5, 0x8b, 0x10, 0x02, 0x98, 0x75, 0xfc, - 0xd2, 0x76, 0xe9, 0x90, 0x53, 0x83, 0xcb, 0x8d, 0xe0, 0x00, 0x2e, 0x5e, 0xd2, 0xc6, 0x0d, 0x17, - 0x0b, 0x97, 0x50, 0x16, 0x63, 0x3a, 0xee, 0x1c, 0x08, 0xa0, 0x32, 0x3c, 0x27, 0xba, 0x85, 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, 0x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c, 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, 0x8b, 0xa1, + 0x4f, 0x9a, 0xb1, 0x32, 0x4d, 0xd3, 0x3c, 0xda, 0x90, 0xcc, 0xa4, 0x21, 0x91, 0xa8, 0x28, 0x26, + 0x65, 0xd1, 0x2e, 0x06, 0x8f, 0x7d, 0x35, 0x63, 0x75, 0x62, 0x4f, 0xe6, 0x7a, 0xa2, 0x54, 0x51, + 0x36, 0x6c, 0x60, 0x89, 0xc4, 0x9e, 0x7f, 0x01, 0x21, 0x21, 0x24, 0x16, 0xb0, 0x40, 0x02, 0x15, + 0x56, 0x15, 0x6c, 0x10, 0xa0, 0x0a, 0x25, 0x20, 0xfe, 0x0d, 0x34, 0xd7, 0xc7, 0xaf, 0xb1, 0x33, + 0xbe, 0x4e, 0xc5, 0xaa, 0xb1, 0xef, 0x3d, 0xe7, 0x7c, 0xbe, 0xc7, 0xd7, 0xc7, 0xdf, 0x29,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8, 0x52, 0x86, 0xb3, 0x3c, 0xf7, 0x8a, 0xc3, 0xdc, 0x6a, 0x53, 0xb7, 0x6c, 0x2c, 0x4a, + 0xc6, 0xe0, 0x84, 0xd1, 0xbb, 0xae, 0x59, 0x26, 0xcf, 0x5f, 0xd0, 0x8e, 0xf3, 0xeb, 0x55, 0x53, + 0x69, 0xc0, 0xff, 0xfb, 0x63, 0x10, 0xe9, 0x1e, 0x40, 0xd3, 0x61, 0x6e, 0x8d, 0xef, 0x44, 0xac, + 0x2b, 0x19, 0x58, 0x41, 0x16, 0x24, 0x2b, 0x34, 0xfd, 0x1b, 0xca, 0x68, 0x7f, 0xa1, 0xa0, 0x25, + 0x26, 0x9c, 0x4b, 0xac, 0x20, 0xc3, 0x2a, 0x9c, 0x0c, 0x19, 0x7a, 0xbd, 0x39, 0x9c, 0x07, 0x42, + 0x83, 0xa0, 0x3c, 0x53, 0x26, 0x60, 0x84, 0x57, 0x59, 0xa2, 0x6d, 0x87, 0x59, 0x2e, 0x13, 0xe8, + 0xcd, 0x23, 0xec, 0x67, 0x18, 0x82, 0x58, 0x15, 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, + 0x0d, 0x8a, 0x69, 0xb5, 0x48, 0xa4, 0xf2, 0x83, 0x04, 0xaf, 0x0f, 0x46, 0xf9, 0x4f, 0x5b, 0x41, + 0xde, 0x4a, 0xd1, 0x71, 0x39, 0x53, 0x87, 0xc7, 0x14, 0x13, 0x32, 0x07, 0x45, 0xae, 0xe3, 0x7d, + 0xbd, 0x65, 0x99, 0xba, 0xeb, 0x74, 0x72, 0x1c, 0x5b, 0xe5, 0x23, 0x09, 0xce, 0xef, 0x1b, 0x8d, + 0x0d, 0x30, 0x61, 0x64, 0xd3, 0x5f, 0x4d, 0x76, 0x61, 0x22, 0xa3, 0x0b, 0x29, 0x89, 0xcf, 0x6c, + 0x26, 0xee, 0x31, 0x65, 0x1e, 0x5e, 0x8d, 0x0e, 0xc1, 0x45, 0xc3, 0x70, 0xba, 0xb6, 0x5b, 0xd1, + 0x5b, 0xba, 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fd, 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, 0x38, 0x9b, 0x6a, 0xfa, 0xc8, 0x42, + 0x8e, 0xd9, 0x9a, 0xea, 0x37, 0xe5, 0xc5, 0x17, 0xc8, 0x80, 0x32, 0x57, 0xb9, 0xcc, 0x2a, 0x59, + 0x14, 0x1b, 0xd5, 0x35, 0xdd, 0x4b, 0x53, 0x43, 0xdb, 0x19, 0x55, 0xfa, 0x9d, 0x04, 0xff, 0x8b, + 0xda, 0x48, 0x22, 0x34, 0x82, 0x53, 0xfc, 0xaa, 0x3c, 0x9d, 0x3f, 0x10, 0xe5, 0xbc, 0xc9, 0xe5, + 0xcc, 0x90, 0x5b, 0x19, 0x72, 0x28, 0x06, 0xd7, 0x7a, 0xae, 0x34, 0x2a, 0xe2, 0x7b, 0x09, 0x4e, + 0xc5, 0x7c, 0x21, 0x11, 0x82, 0x49, 0xf3, 0xb3, 0xf2, 0xcc, 0x01, 0x22, 0x73, 0xea, 0x88, 0x79, + 0xd6, 0xa8, 0x8e, 0x9f, 0x24, 0x18, 0x8e, 0x3b, 0x50, 0x92, 0x1b, 0x27, 0xb0, 0xbb, 0x62, 0x93, + 0x30, 0xdd, 0xf0, 0x0a, 0x8f, 0x88, 0x3e, 0x57, 0x1c, 0x11, 0x53, 0x79, 0xf4, 0x74, 0xb7, 0x28, + 0x3d, 0xdb, 0x2d, 0x4a, 0x7f, 0xee, 0x16, 0xa5, 0x4f, 0xf6, 0x8a, 0x43, 0xcf, 0xf6, 0x8a, 0x43, + 0xbf, 0xee, 0x15, 0x87, 0x1e, 0x2e, 0x46, 0x7e, 0x8b, 0xb4, 0x69, 0x87, 0x59, 0xcc, 0xa5, 0xb6, + 0x41, 0xdf, 0xb1, 0x29, 0x56, 0x1b, 0xef, 0xfd, 0x0c, 0xdd, 0xa4, 0xea, 0x66, 0x59, 0xdd, 0xea, + 0xaf, 0xcc, 0x7f, 0xaa, 0xd4, 0x8f, 0xf1, 0xff, 0xa7, 0xbc, 0xf1, 0x6f, 0x00, 0x00, 0x00, 0xff, + 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 From d3bc5927e162ab6ef6ec34cbe3226bf1aa84a9dd Mon Sep 17 00:00:00 2001 From: Puneet <59960662+puneet2019@users.noreply.github.com> Date: Fri, 12 Jan 2024 17:41:16 +0530 Subject: [PATCH 4/4] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9535c353c..8778cbe6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -38,7 +38,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ ### Features -- [721](https://github.com/persistenceOne/pstake-native/pull/721) Query host chain unbondings. +- [721](https://github.com/persistenceOne/pstake-native/pull/721) Add Query host chain user unbondings. ### Bug Fixes