github.com/Finschia/finschia-sdk@v0.48.1/x/staking/types/query.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: cosmos/staking/v1beta1/query.proto
     3  
     4  package types
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	query "github.com/Finschia/finschia-sdk/types/query"
    10  	_ "github.com/gogo/protobuf/gogoproto"
    11  	grpc1 "github.com/gogo/protobuf/grpc"
    12  	proto "github.com/gogo/protobuf/proto"
    13  	_ "google.golang.org/genproto/googleapis/api/annotations"
    14  	grpc "google.golang.org/grpc"
    15  	codes "google.golang.org/grpc/codes"
    16  	status "google.golang.org/grpc/status"
    17  	io "io"
    18  	math "math"
    19  	math_bits "math/bits"
    20  )
    21  
    22  // Reference imports to suppress errors if they are not otherwise used.
    23  var _ = proto.Marshal
    24  var _ = fmt.Errorf
    25  var _ = math.Inf
    26  
    27  // This is a compile-time assertion to ensure that this generated file
    28  // is compatible with the proto package it is being compiled against.
    29  // A compilation error at this line likely means your copy of the
    30  // proto package needs to be updated.
    31  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    32  
    33  // QueryValidatorsRequest is request type for Query/Validators RPC method.
    34  type QueryValidatorsRequest struct {
    35  	// status enables to query for validators matching a given status.
    36  	Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
    37  	// pagination defines an optional pagination for the request.
    38  	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
    39  }
    40  
    41  func (m *QueryValidatorsRequest) Reset()         { *m = QueryValidatorsRequest{} }
    42  func (m *QueryValidatorsRequest) String() string { return proto.CompactTextString(m) }
    43  func (*QueryValidatorsRequest) ProtoMessage()    {}
    44  func (*QueryValidatorsRequest) Descriptor() ([]byte, []int) {
    45  	return fileDescriptor_f270127f442bbcd8, []int{0}
    46  }
    47  func (m *QueryValidatorsRequest) XXX_Unmarshal(b []byte) error {
    48  	return m.Unmarshal(b)
    49  }
    50  func (m *QueryValidatorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    51  	if deterministic {
    52  		return xxx_messageInfo_QueryValidatorsRequest.Marshal(b, m, deterministic)
    53  	} else {
    54  		b = b[:cap(b)]
    55  		n, err := m.MarshalToSizedBuffer(b)
    56  		if err != nil {
    57  			return nil, err
    58  		}
    59  		return b[:n], nil
    60  	}
    61  }
    62  func (m *QueryValidatorsRequest) XXX_Merge(src proto.Message) {
    63  	xxx_messageInfo_QueryValidatorsRequest.Merge(m, src)
    64  }
    65  func (m *QueryValidatorsRequest) XXX_Size() int {
    66  	return m.Size()
    67  }
    68  func (m *QueryValidatorsRequest) XXX_DiscardUnknown() {
    69  	xxx_messageInfo_QueryValidatorsRequest.DiscardUnknown(m)
    70  }
    71  
    72  var xxx_messageInfo_QueryValidatorsRequest proto.InternalMessageInfo
    73  
    74  func (m *QueryValidatorsRequest) GetStatus() string {
    75  	if m != nil {
    76  		return m.Status
    77  	}
    78  	return ""
    79  }
    80  
    81  func (m *QueryValidatorsRequest) GetPagination() *query.PageRequest {
    82  	if m != nil {
    83  		return m.Pagination
    84  	}
    85  	return nil
    86  }
    87  
    88  // QueryValidatorsResponse is response type for the Query/Validators RPC method
    89  type QueryValidatorsResponse struct {
    90  	// validators contains all the queried validators.
    91  	Validators []Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators"`
    92  	// pagination defines the pagination in the response.
    93  	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
    94  }
    95  
    96  func (m *QueryValidatorsResponse) Reset()         { *m = QueryValidatorsResponse{} }
    97  func (m *QueryValidatorsResponse) String() string { return proto.CompactTextString(m) }
    98  func (*QueryValidatorsResponse) ProtoMessage()    {}
    99  func (*QueryValidatorsResponse) Descriptor() ([]byte, []int) {
   100  	return fileDescriptor_f270127f442bbcd8, []int{1}
   101  }
   102  func (m *QueryValidatorsResponse) XXX_Unmarshal(b []byte) error {
   103  	return m.Unmarshal(b)
   104  }
   105  func (m *QueryValidatorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   106  	if deterministic {
   107  		return xxx_messageInfo_QueryValidatorsResponse.Marshal(b, m, deterministic)
   108  	} else {
   109  		b = b[:cap(b)]
   110  		n, err := m.MarshalToSizedBuffer(b)
   111  		if err != nil {
   112  			return nil, err
   113  		}
   114  		return b[:n], nil
   115  	}
   116  }
   117  func (m *QueryValidatorsResponse) XXX_Merge(src proto.Message) {
   118  	xxx_messageInfo_QueryValidatorsResponse.Merge(m, src)
   119  }
   120  func (m *QueryValidatorsResponse) XXX_Size() int {
   121  	return m.Size()
   122  }
   123  func (m *QueryValidatorsResponse) XXX_DiscardUnknown() {
   124  	xxx_messageInfo_QueryValidatorsResponse.DiscardUnknown(m)
   125  }
   126  
   127  var xxx_messageInfo_QueryValidatorsResponse proto.InternalMessageInfo
   128  
   129  func (m *QueryValidatorsResponse) GetValidators() []Validator {
   130  	if m != nil {
   131  		return m.Validators
   132  	}
   133  	return nil
   134  }
   135  
   136  func (m *QueryValidatorsResponse) GetPagination() *query.PageResponse {
   137  	if m != nil {
   138  		return m.Pagination
   139  	}
   140  	return nil
   141  }
   142  
   143  // QueryValidatorRequest is response type for the Query/Validator RPC method
   144  type QueryValidatorRequest struct {
   145  	// validator_addr defines the validator address to query for.
   146  	ValidatorAddr string `protobuf:"bytes,1,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
   147  }
   148  
   149  func (m *QueryValidatorRequest) Reset()         { *m = QueryValidatorRequest{} }
   150  func (m *QueryValidatorRequest) String() string { return proto.CompactTextString(m) }
   151  func (*QueryValidatorRequest) ProtoMessage()    {}
   152  func (*QueryValidatorRequest) Descriptor() ([]byte, []int) {
   153  	return fileDescriptor_f270127f442bbcd8, []int{2}
   154  }
   155  func (m *QueryValidatorRequest) XXX_Unmarshal(b []byte) error {
   156  	return m.Unmarshal(b)
   157  }
   158  func (m *QueryValidatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   159  	if deterministic {
   160  		return xxx_messageInfo_QueryValidatorRequest.Marshal(b, m, deterministic)
   161  	} else {
   162  		b = b[:cap(b)]
   163  		n, err := m.MarshalToSizedBuffer(b)
   164  		if err != nil {
   165  			return nil, err
   166  		}
   167  		return b[:n], nil
   168  	}
   169  }
   170  func (m *QueryValidatorRequest) XXX_Merge(src proto.Message) {
   171  	xxx_messageInfo_QueryValidatorRequest.Merge(m, src)
   172  }
   173  func (m *QueryValidatorRequest) XXX_Size() int {
   174  	return m.Size()
   175  }
   176  func (m *QueryValidatorRequest) XXX_DiscardUnknown() {
   177  	xxx_messageInfo_QueryValidatorRequest.DiscardUnknown(m)
   178  }
   179  
   180  var xxx_messageInfo_QueryValidatorRequest proto.InternalMessageInfo
   181  
   182  func (m *QueryValidatorRequest) GetValidatorAddr() string {
   183  	if m != nil {
   184  		return m.ValidatorAddr
   185  	}
   186  	return ""
   187  }
   188  
   189  // QueryValidatorResponse is response type for the Query/Validator RPC method
   190  type QueryValidatorResponse struct {
   191  	// validator defines the the validator info.
   192  	Validator Validator `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator"`
   193  }
   194  
   195  func (m *QueryValidatorResponse) Reset()         { *m = QueryValidatorResponse{} }
   196  func (m *QueryValidatorResponse) String() string { return proto.CompactTextString(m) }
   197  func (*QueryValidatorResponse) ProtoMessage()    {}
   198  func (*QueryValidatorResponse) Descriptor() ([]byte, []int) {
   199  	return fileDescriptor_f270127f442bbcd8, []int{3}
   200  }
   201  func (m *QueryValidatorResponse) XXX_Unmarshal(b []byte) error {
   202  	return m.Unmarshal(b)
   203  }
   204  func (m *QueryValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   205  	if deterministic {
   206  		return xxx_messageInfo_QueryValidatorResponse.Marshal(b, m, deterministic)
   207  	} else {
   208  		b = b[:cap(b)]
   209  		n, err := m.MarshalToSizedBuffer(b)
   210  		if err != nil {
   211  			return nil, err
   212  		}
   213  		return b[:n], nil
   214  	}
   215  }
   216  func (m *QueryValidatorResponse) XXX_Merge(src proto.Message) {
   217  	xxx_messageInfo_QueryValidatorResponse.Merge(m, src)
   218  }
   219  func (m *QueryValidatorResponse) XXX_Size() int {
   220  	return m.Size()
   221  }
   222  func (m *QueryValidatorResponse) XXX_DiscardUnknown() {
   223  	xxx_messageInfo_QueryValidatorResponse.DiscardUnknown(m)
   224  }
   225  
   226  var xxx_messageInfo_QueryValidatorResponse proto.InternalMessageInfo
   227  
   228  func (m *QueryValidatorResponse) GetValidator() Validator {
   229  	if m != nil {
   230  		return m.Validator
   231  	}
   232  	return Validator{}
   233  }
   234  
   235  // QueryValidatorDelegationsRequest is request type for the
   236  // Query/ValidatorDelegations RPC method
   237  type QueryValidatorDelegationsRequest struct {
   238  	// validator_addr defines the validator address to query for.
   239  	ValidatorAddr string `protobuf:"bytes,1,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
   240  	// pagination defines an optional pagination for the request.
   241  	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
   242  }
   243  
   244  func (m *QueryValidatorDelegationsRequest) Reset()         { *m = QueryValidatorDelegationsRequest{} }
   245  func (m *QueryValidatorDelegationsRequest) String() string { return proto.CompactTextString(m) }
   246  func (*QueryValidatorDelegationsRequest) ProtoMessage()    {}
   247  func (*QueryValidatorDelegationsRequest) Descriptor() ([]byte, []int) {
   248  	return fileDescriptor_f270127f442bbcd8, []int{4}
   249  }
   250  func (m *QueryValidatorDelegationsRequest) XXX_Unmarshal(b []byte) error {
   251  	return m.Unmarshal(b)
   252  }
   253  func (m *QueryValidatorDelegationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   254  	if deterministic {
   255  		return xxx_messageInfo_QueryValidatorDelegationsRequest.Marshal(b, m, deterministic)
   256  	} else {
   257  		b = b[:cap(b)]
   258  		n, err := m.MarshalToSizedBuffer(b)
   259  		if err != nil {
   260  			return nil, err
   261  		}
   262  		return b[:n], nil
   263  	}
   264  }
   265  func (m *QueryValidatorDelegationsRequest) XXX_Merge(src proto.Message) {
   266  	xxx_messageInfo_QueryValidatorDelegationsRequest.Merge(m, src)
   267  }
   268  func (m *QueryValidatorDelegationsRequest) XXX_Size() int {
   269  	return m.Size()
   270  }
   271  func (m *QueryValidatorDelegationsRequest) XXX_DiscardUnknown() {
   272  	xxx_messageInfo_QueryValidatorDelegationsRequest.DiscardUnknown(m)
   273  }
   274  
   275  var xxx_messageInfo_QueryValidatorDelegationsRequest proto.InternalMessageInfo
   276  
   277  func (m *QueryValidatorDelegationsRequest) GetValidatorAddr() string {
   278  	if m != nil {
   279  		return m.ValidatorAddr
   280  	}
   281  	return ""
   282  }
   283  
   284  func (m *QueryValidatorDelegationsRequest) GetPagination() *query.PageRequest {
   285  	if m != nil {
   286  		return m.Pagination
   287  	}
   288  	return nil
   289  }
   290  
   291  // QueryValidatorDelegationsResponse is response type for the
   292  // Query/ValidatorDelegations RPC method
   293  type QueryValidatorDelegationsResponse struct {
   294  	DelegationResponses DelegationResponses `protobuf:"bytes,1,rep,name=delegation_responses,json=delegationResponses,proto3,castrepeated=DelegationResponses" json:"delegation_responses"`
   295  	// pagination defines the pagination in the response.
   296  	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
   297  }
   298  
   299  func (m *QueryValidatorDelegationsResponse) Reset()         { *m = QueryValidatorDelegationsResponse{} }
   300  func (m *QueryValidatorDelegationsResponse) String() string { return proto.CompactTextString(m) }
   301  func (*QueryValidatorDelegationsResponse) ProtoMessage()    {}
   302  func (*QueryValidatorDelegationsResponse) Descriptor() ([]byte, []int) {
   303  	return fileDescriptor_f270127f442bbcd8, []int{5}
   304  }
   305  func (m *QueryValidatorDelegationsResponse) XXX_Unmarshal(b []byte) error {
   306  	return m.Unmarshal(b)
   307  }
   308  func (m *QueryValidatorDelegationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   309  	if deterministic {
   310  		return xxx_messageInfo_QueryValidatorDelegationsResponse.Marshal(b, m, deterministic)
   311  	} else {
   312  		b = b[:cap(b)]
   313  		n, err := m.MarshalToSizedBuffer(b)
   314  		if err != nil {
   315  			return nil, err
   316  		}
   317  		return b[:n], nil
   318  	}
   319  }
   320  func (m *QueryValidatorDelegationsResponse) XXX_Merge(src proto.Message) {
   321  	xxx_messageInfo_QueryValidatorDelegationsResponse.Merge(m, src)
   322  }
   323  func (m *QueryValidatorDelegationsResponse) XXX_Size() int {
   324  	return m.Size()
   325  }
   326  func (m *QueryValidatorDelegationsResponse) XXX_DiscardUnknown() {
   327  	xxx_messageInfo_QueryValidatorDelegationsResponse.DiscardUnknown(m)
   328  }
   329  
   330  var xxx_messageInfo_QueryValidatorDelegationsResponse proto.InternalMessageInfo
   331  
   332  func (m *QueryValidatorDelegationsResponse) GetDelegationResponses() DelegationResponses {
   333  	if m != nil {
   334  		return m.DelegationResponses
   335  	}
   336  	return nil
   337  }
   338  
   339  func (m *QueryValidatorDelegationsResponse) GetPagination() *query.PageResponse {
   340  	if m != nil {
   341  		return m.Pagination
   342  	}
   343  	return nil
   344  }
   345  
   346  // QueryValidatorUnbondingDelegationsRequest is required type for the
   347  // Query/ValidatorUnbondingDelegations RPC method
   348  type QueryValidatorUnbondingDelegationsRequest struct {
   349  	// validator_addr defines the validator address to query for.
   350  	ValidatorAddr string `protobuf:"bytes,1,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
   351  	// pagination defines an optional pagination for the request.
   352  	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
   353  }
   354  
   355  func (m *QueryValidatorUnbondingDelegationsRequest) Reset() {
   356  	*m = QueryValidatorUnbondingDelegationsRequest{}
   357  }
   358  func (m *QueryValidatorUnbondingDelegationsRequest) String() string {
   359  	return proto.CompactTextString(m)
   360  }
   361  func (*QueryValidatorUnbondingDelegationsRequest) ProtoMessage() {}
   362  func (*QueryValidatorUnbondingDelegationsRequest) Descriptor() ([]byte, []int) {
   363  	return fileDescriptor_f270127f442bbcd8, []int{6}
   364  }
   365  func (m *QueryValidatorUnbondingDelegationsRequest) XXX_Unmarshal(b []byte) error {
   366  	return m.Unmarshal(b)
   367  }
   368  func (m *QueryValidatorUnbondingDelegationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   369  	if deterministic {
   370  		return xxx_messageInfo_QueryValidatorUnbondingDelegationsRequest.Marshal(b, m, deterministic)
   371  	} else {
   372  		b = b[:cap(b)]
   373  		n, err := m.MarshalToSizedBuffer(b)
   374  		if err != nil {
   375  			return nil, err
   376  		}
   377  		return b[:n], nil
   378  	}
   379  }
   380  func (m *QueryValidatorUnbondingDelegationsRequest) XXX_Merge(src proto.Message) {
   381  	xxx_messageInfo_QueryValidatorUnbondingDelegationsRequest.Merge(m, src)
   382  }
   383  func (m *QueryValidatorUnbondingDelegationsRequest) XXX_Size() int {
   384  	return m.Size()
   385  }
   386  func (m *QueryValidatorUnbondingDelegationsRequest) XXX_DiscardUnknown() {
   387  	xxx_messageInfo_QueryValidatorUnbondingDelegationsRequest.DiscardUnknown(m)
   388  }
   389  
   390  var xxx_messageInfo_QueryValidatorUnbondingDelegationsRequest proto.InternalMessageInfo
   391  
   392  func (m *QueryValidatorUnbondingDelegationsRequest) GetValidatorAddr() string {
   393  	if m != nil {
   394  		return m.ValidatorAddr
   395  	}
   396  	return ""
   397  }
   398  
   399  func (m *QueryValidatorUnbondingDelegationsRequest) GetPagination() *query.PageRequest {
   400  	if m != nil {
   401  		return m.Pagination
   402  	}
   403  	return nil
   404  }
   405  
   406  // QueryValidatorUnbondingDelegationsResponse is response type for the
   407  // Query/ValidatorUnbondingDelegations RPC method.
   408  type QueryValidatorUnbondingDelegationsResponse struct {
   409  	UnbondingResponses []UnbondingDelegation `protobuf:"bytes,1,rep,name=unbonding_responses,json=unbondingResponses,proto3" json:"unbonding_responses"`
   410  	// pagination defines the pagination in the response.
   411  	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
   412  }
   413  
   414  func (m *QueryValidatorUnbondingDelegationsResponse) Reset() {
   415  	*m = QueryValidatorUnbondingDelegationsResponse{}
   416  }
   417  func (m *QueryValidatorUnbondingDelegationsResponse) String() string {
   418  	return proto.CompactTextString(m)
   419  }
   420  func (*QueryValidatorUnbondingDelegationsResponse) ProtoMessage() {}
   421  func (*QueryValidatorUnbondingDelegationsResponse) Descriptor() ([]byte, []int) {
   422  	return fileDescriptor_f270127f442bbcd8, []int{7}
   423  }
   424  func (m *QueryValidatorUnbondingDelegationsResponse) XXX_Unmarshal(b []byte) error {
   425  	return m.Unmarshal(b)
   426  }
   427  func (m *QueryValidatorUnbondingDelegationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   428  	if deterministic {
   429  		return xxx_messageInfo_QueryValidatorUnbondingDelegationsResponse.Marshal(b, m, deterministic)
   430  	} else {
   431  		b = b[:cap(b)]
   432  		n, err := m.MarshalToSizedBuffer(b)
   433  		if err != nil {
   434  			return nil, err
   435  		}
   436  		return b[:n], nil
   437  	}
   438  }
   439  func (m *QueryValidatorUnbondingDelegationsResponse) XXX_Merge(src proto.Message) {
   440  	xxx_messageInfo_QueryValidatorUnbondingDelegationsResponse.Merge(m, src)
   441  }
   442  func (m *QueryValidatorUnbondingDelegationsResponse) XXX_Size() int {
   443  	return m.Size()
   444  }
   445  func (m *QueryValidatorUnbondingDelegationsResponse) XXX_DiscardUnknown() {
   446  	xxx_messageInfo_QueryValidatorUnbondingDelegationsResponse.DiscardUnknown(m)
   447  }
   448  
   449  var xxx_messageInfo_QueryValidatorUnbondingDelegationsResponse proto.InternalMessageInfo
   450  
   451  func (m *QueryValidatorUnbondingDelegationsResponse) GetUnbondingResponses() []UnbondingDelegation {
   452  	if m != nil {
   453  		return m.UnbondingResponses
   454  	}
   455  	return nil
   456  }
   457  
   458  func (m *QueryValidatorUnbondingDelegationsResponse) GetPagination() *query.PageResponse {
   459  	if m != nil {
   460  		return m.Pagination
   461  	}
   462  	return nil
   463  }
   464  
   465  // QueryDelegationRequest is request type for the Query/Delegation RPC method.
   466  type QueryDelegationRequest struct {
   467  	// delegator_addr defines the delegator address to query for.
   468  	DelegatorAddr string `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
   469  	// validator_addr defines the validator address to query for.
   470  	ValidatorAddr string `protobuf:"bytes,2,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
   471  }
   472  
   473  func (m *QueryDelegationRequest) Reset()         { *m = QueryDelegationRequest{} }
   474  func (m *QueryDelegationRequest) String() string { return proto.CompactTextString(m) }
   475  func (*QueryDelegationRequest) ProtoMessage()    {}
   476  func (*QueryDelegationRequest) Descriptor() ([]byte, []int) {
   477  	return fileDescriptor_f270127f442bbcd8, []int{8}
   478  }
   479  func (m *QueryDelegationRequest) XXX_Unmarshal(b []byte) error {
   480  	return m.Unmarshal(b)
   481  }
   482  func (m *QueryDelegationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   483  	if deterministic {
   484  		return xxx_messageInfo_QueryDelegationRequest.Marshal(b, m, deterministic)
   485  	} else {
   486  		b = b[:cap(b)]
   487  		n, err := m.MarshalToSizedBuffer(b)
   488  		if err != nil {
   489  			return nil, err
   490  		}
   491  		return b[:n], nil
   492  	}
   493  }
   494  func (m *QueryDelegationRequest) XXX_Merge(src proto.Message) {
   495  	xxx_messageInfo_QueryDelegationRequest.Merge(m, src)
   496  }
   497  func (m *QueryDelegationRequest) XXX_Size() int {
   498  	return m.Size()
   499  }
   500  func (m *QueryDelegationRequest) XXX_DiscardUnknown() {
   501  	xxx_messageInfo_QueryDelegationRequest.DiscardUnknown(m)
   502  }
   503  
   504  var xxx_messageInfo_QueryDelegationRequest proto.InternalMessageInfo
   505  
   506  // QueryDelegationResponse is response type for the Query/Delegation RPC method.
   507  type QueryDelegationResponse struct {
   508  	// delegation_responses defines the delegation info of a delegation.
   509  	DelegationResponse *DelegationResponse `protobuf:"bytes,1,opt,name=delegation_response,json=delegationResponse,proto3" json:"delegation_response,omitempty"`
   510  }
   511  
   512  func (m *QueryDelegationResponse) Reset()         { *m = QueryDelegationResponse{} }
   513  func (m *QueryDelegationResponse) String() string { return proto.CompactTextString(m) }
   514  func (*QueryDelegationResponse) ProtoMessage()    {}
   515  func (*QueryDelegationResponse) Descriptor() ([]byte, []int) {
   516  	return fileDescriptor_f270127f442bbcd8, []int{9}
   517  }
   518  func (m *QueryDelegationResponse) XXX_Unmarshal(b []byte) error {
   519  	return m.Unmarshal(b)
   520  }
   521  func (m *QueryDelegationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   522  	if deterministic {
   523  		return xxx_messageInfo_QueryDelegationResponse.Marshal(b, m, deterministic)
   524  	} else {
   525  		b = b[:cap(b)]
   526  		n, err := m.MarshalToSizedBuffer(b)
   527  		if err != nil {
   528  			return nil, err
   529  		}
   530  		return b[:n], nil
   531  	}
   532  }
   533  func (m *QueryDelegationResponse) XXX_Merge(src proto.Message) {
   534  	xxx_messageInfo_QueryDelegationResponse.Merge(m, src)
   535  }
   536  func (m *QueryDelegationResponse) XXX_Size() int {
   537  	return m.Size()
   538  }
   539  func (m *QueryDelegationResponse) XXX_DiscardUnknown() {
   540  	xxx_messageInfo_QueryDelegationResponse.DiscardUnknown(m)
   541  }
   542  
   543  var xxx_messageInfo_QueryDelegationResponse proto.InternalMessageInfo
   544  
   545  func (m *QueryDelegationResponse) GetDelegationResponse() *DelegationResponse {
   546  	if m != nil {
   547  		return m.DelegationResponse
   548  	}
   549  	return nil
   550  }
   551  
   552  // QueryUnbondingDelegationRequest is request type for the
   553  // Query/UnbondingDelegation RPC method.
   554  type QueryUnbondingDelegationRequest struct {
   555  	// delegator_addr defines the delegator address to query for.
   556  	DelegatorAddr string `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
   557  	// validator_addr defines the validator address to query for.
   558  	ValidatorAddr string `protobuf:"bytes,2,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
   559  }
   560  
   561  func (m *QueryUnbondingDelegationRequest) Reset()         { *m = QueryUnbondingDelegationRequest{} }
   562  func (m *QueryUnbondingDelegationRequest) String() string { return proto.CompactTextString(m) }
   563  func (*QueryUnbondingDelegationRequest) ProtoMessage()    {}
   564  func (*QueryUnbondingDelegationRequest) Descriptor() ([]byte, []int) {
   565  	return fileDescriptor_f270127f442bbcd8, []int{10}
   566  }
   567  func (m *QueryUnbondingDelegationRequest) XXX_Unmarshal(b []byte) error {
   568  	return m.Unmarshal(b)
   569  }
   570  func (m *QueryUnbondingDelegationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   571  	if deterministic {
   572  		return xxx_messageInfo_QueryUnbondingDelegationRequest.Marshal(b, m, deterministic)
   573  	} else {
   574  		b = b[:cap(b)]
   575  		n, err := m.MarshalToSizedBuffer(b)
   576  		if err != nil {
   577  			return nil, err
   578  		}
   579  		return b[:n], nil
   580  	}
   581  }
   582  func (m *QueryUnbondingDelegationRequest) XXX_Merge(src proto.Message) {
   583  	xxx_messageInfo_QueryUnbondingDelegationRequest.Merge(m, src)
   584  }
   585  func (m *QueryUnbondingDelegationRequest) XXX_Size() int {
   586  	return m.Size()
   587  }
   588  func (m *QueryUnbondingDelegationRequest) XXX_DiscardUnknown() {
   589  	xxx_messageInfo_QueryUnbondingDelegationRequest.DiscardUnknown(m)
   590  }
   591  
   592  var xxx_messageInfo_QueryUnbondingDelegationRequest proto.InternalMessageInfo
   593  
   594  // QueryDelegationResponse is response type for the Query/UnbondingDelegation
   595  // RPC method.
   596  type QueryUnbondingDelegationResponse struct {
   597  	// unbond defines the unbonding information of a delegation.
   598  	Unbond UnbondingDelegation `protobuf:"bytes,1,opt,name=unbond,proto3" json:"unbond"`
   599  }
   600  
   601  func (m *QueryUnbondingDelegationResponse) Reset()         { *m = QueryUnbondingDelegationResponse{} }
   602  func (m *QueryUnbondingDelegationResponse) String() string { return proto.CompactTextString(m) }
   603  func (*QueryUnbondingDelegationResponse) ProtoMessage()    {}
   604  func (*QueryUnbondingDelegationResponse) Descriptor() ([]byte, []int) {
   605  	return fileDescriptor_f270127f442bbcd8, []int{11}
   606  }
   607  func (m *QueryUnbondingDelegationResponse) XXX_Unmarshal(b []byte) error {
   608  	return m.Unmarshal(b)
   609  }
   610  func (m *QueryUnbondingDelegationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   611  	if deterministic {
   612  		return xxx_messageInfo_QueryUnbondingDelegationResponse.Marshal(b, m, deterministic)
   613  	} else {
   614  		b = b[:cap(b)]
   615  		n, err := m.MarshalToSizedBuffer(b)
   616  		if err != nil {
   617  			return nil, err
   618  		}
   619  		return b[:n], nil
   620  	}
   621  }
   622  func (m *QueryUnbondingDelegationResponse) XXX_Merge(src proto.Message) {
   623  	xxx_messageInfo_QueryUnbondingDelegationResponse.Merge(m, src)
   624  }
   625  func (m *QueryUnbondingDelegationResponse) XXX_Size() int {
   626  	return m.Size()
   627  }
   628  func (m *QueryUnbondingDelegationResponse) XXX_DiscardUnknown() {
   629  	xxx_messageInfo_QueryUnbondingDelegationResponse.DiscardUnknown(m)
   630  }
   631  
   632  var xxx_messageInfo_QueryUnbondingDelegationResponse proto.InternalMessageInfo
   633  
   634  func (m *QueryUnbondingDelegationResponse) GetUnbond() UnbondingDelegation {
   635  	if m != nil {
   636  		return m.Unbond
   637  	}
   638  	return UnbondingDelegation{}
   639  }
   640  
   641  // QueryDelegatorDelegationsRequest is request type for the
   642  // Query/DelegatorDelegations RPC method.
   643  type QueryDelegatorDelegationsRequest struct {
   644  	// delegator_addr defines the delegator address to query for.
   645  	DelegatorAddr string `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
   646  	// pagination defines an optional pagination for the request.
   647  	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
   648  }
   649  
   650  func (m *QueryDelegatorDelegationsRequest) Reset()         { *m = QueryDelegatorDelegationsRequest{} }
   651  func (m *QueryDelegatorDelegationsRequest) String() string { return proto.CompactTextString(m) }
   652  func (*QueryDelegatorDelegationsRequest) ProtoMessage()    {}
   653  func (*QueryDelegatorDelegationsRequest) Descriptor() ([]byte, []int) {
   654  	return fileDescriptor_f270127f442bbcd8, []int{12}
   655  }
   656  func (m *QueryDelegatorDelegationsRequest) XXX_Unmarshal(b []byte) error {
   657  	return m.Unmarshal(b)
   658  }
   659  func (m *QueryDelegatorDelegationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   660  	if deterministic {
   661  		return xxx_messageInfo_QueryDelegatorDelegationsRequest.Marshal(b, m, deterministic)
   662  	} else {
   663  		b = b[:cap(b)]
   664  		n, err := m.MarshalToSizedBuffer(b)
   665  		if err != nil {
   666  			return nil, err
   667  		}
   668  		return b[:n], nil
   669  	}
   670  }
   671  func (m *QueryDelegatorDelegationsRequest) XXX_Merge(src proto.Message) {
   672  	xxx_messageInfo_QueryDelegatorDelegationsRequest.Merge(m, src)
   673  }
   674  func (m *QueryDelegatorDelegationsRequest) XXX_Size() int {
   675  	return m.Size()
   676  }
   677  func (m *QueryDelegatorDelegationsRequest) XXX_DiscardUnknown() {
   678  	xxx_messageInfo_QueryDelegatorDelegationsRequest.DiscardUnknown(m)
   679  }
   680  
   681  var xxx_messageInfo_QueryDelegatorDelegationsRequest proto.InternalMessageInfo
   682  
   683  // QueryDelegatorDelegationsResponse is response type for the
   684  // Query/DelegatorDelegations RPC method.
   685  type QueryDelegatorDelegationsResponse struct {
   686  	// delegation_responses defines all the delegations' info of a delegator.
   687  	DelegationResponses []DelegationResponse `protobuf:"bytes,1,rep,name=delegation_responses,json=delegationResponses,proto3" json:"delegation_responses"`
   688  	// pagination defines the pagination in the response.
   689  	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
   690  }
   691  
   692  func (m *QueryDelegatorDelegationsResponse) Reset()         { *m = QueryDelegatorDelegationsResponse{} }
   693  func (m *QueryDelegatorDelegationsResponse) String() string { return proto.CompactTextString(m) }
   694  func (*QueryDelegatorDelegationsResponse) ProtoMessage()    {}
   695  func (*QueryDelegatorDelegationsResponse) Descriptor() ([]byte, []int) {
   696  	return fileDescriptor_f270127f442bbcd8, []int{13}
   697  }
   698  func (m *QueryDelegatorDelegationsResponse) XXX_Unmarshal(b []byte) error {
   699  	return m.Unmarshal(b)
   700  }
   701  func (m *QueryDelegatorDelegationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   702  	if deterministic {
   703  		return xxx_messageInfo_QueryDelegatorDelegationsResponse.Marshal(b, m, deterministic)
   704  	} else {
   705  		b = b[:cap(b)]
   706  		n, err := m.MarshalToSizedBuffer(b)
   707  		if err != nil {
   708  			return nil, err
   709  		}
   710  		return b[:n], nil
   711  	}
   712  }
   713  func (m *QueryDelegatorDelegationsResponse) XXX_Merge(src proto.Message) {
   714  	xxx_messageInfo_QueryDelegatorDelegationsResponse.Merge(m, src)
   715  }
   716  func (m *QueryDelegatorDelegationsResponse) XXX_Size() int {
   717  	return m.Size()
   718  }
   719  func (m *QueryDelegatorDelegationsResponse) XXX_DiscardUnknown() {
   720  	xxx_messageInfo_QueryDelegatorDelegationsResponse.DiscardUnknown(m)
   721  }
   722  
   723  var xxx_messageInfo_QueryDelegatorDelegationsResponse proto.InternalMessageInfo
   724  
   725  func (m *QueryDelegatorDelegationsResponse) GetDelegationResponses() []DelegationResponse {
   726  	if m != nil {
   727  		return m.DelegationResponses
   728  	}
   729  	return nil
   730  }
   731  
   732  func (m *QueryDelegatorDelegationsResponse) GetPagination() *query.PageResponse {
   733  	if m != nil {
   734  		return m.Pagination
   735  	}
   736  	return nil
   737  }
   738  
   739  // QueryDelegatorUnbondingDelegationsRequest is request type for the
   740  // Query/DelegatorUnbondingDelegations RPC method.
   741  type QueryDelegatorUnbondingDelegationsRequest struct {
   742  	// delegator_addr defines the delegator address to query for.
   743  	DelegatorAddr string `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
   744  	// pagination defines an optional pagination for the request.
   745  	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
   746  }
   747  
   748  func (m *QueryDelegatorUnbondingDelegationsRequest) Reset() {
   749  	*m = QueryDelegatorUnbondingDelegationsRequest{}
   750  }
   751  func (m *QueryDelegatorUnbondingDelegationsRequest) String() string {
   752  	return proto.CompactTextString(m)
   753  }
   754  func (*QueryDelegatorUnbondingDelegationsRequest) ProtoMessage() {}
   755  func (*QueryDelegatorUnbondingDelegationsRequest) Descriptor() ([]byte, []int) {
   756  	return fileDescriptor_f270127f442bbcd8, []int{14}
   757  }
   758  func (m *QueryDelegatorUnbondingDelegationsRequest) XXX_Unmarshal(b []byte) error {
   759  	return m.Unmarshal(b)
   760  }
   761  func (m *QueryDelegatorUnbondingDelegationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   762  	if deterministic {
   763  		return xxx_messageInfo_QueryDelegatorUnbondingDelegationsRequest.Marshal(b, m, deterministic)
   764  	} else {
   765  		b = b[:cap(b)]
   766  		n, err := m.MarshalToSizedBuffer(b)
   767  		if err != nil {
   768  			return nil, err
   769  		}
   770  		return b[:n], nil
   771  	}
   772  }
   773  func (m *QueryDelegatorUnbondingDelegationsRequest) XXX_Merge(src proto.Message) {
   774  	xxx_messageInfo_QueryDelegatorUnbondingDelegationsRequest.Merge(m, src)
   775  }
   776  func (m *QueryDelegatorUnbondingDelegationsRequest) XXX_Size() int {
   777  	return m.Size()
   778  }
   779  func (m *QueryDelegatorUnbondingDelegationsRequest) XXX_DiscardUnknown() {
   780  	xxx_messageInfo_QueryDelegatorUnbondingDelegationsRequest.DiscardUnknown(m)
   781  }
   782  
   783  var xxx_messageInfo_QueryDelegatorUnbondingDelegationsRequest proto.InternalMessageInfo
   784  
   785  // QueryUnbondingDelegatorDelegationsResponse is response type for the
   786  // Query/UnbondingDelegatorDelegations RPC method.
   787  type QueryDelegatorUnbondingDelegationsResponse struct {
   788  	UnbondingResponses []UnbondingDelegation `protobuf:"bytes,1,rep,name=unbonding_responses,json=unbondingResponses,proto3" json:"unbonding_responses"`
   789  	// pagination defines the pagination in the response.
   790  	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
   791  }
   792  
   793  func (m *QueryDelegatorUnbondingDelegationsResponse) Reset() {
   794  	*m = QueryDelegatorUnbondingDelegationsResponse{}
   795  }
   796  func (m *QueryDelegatorUnbondingDelegationsResponse) String() string {
   797  	return proto.CompactTextString(m)
   798  }
   799  func (*QueryDelegatorUnbondingDelegationsResponse) ProtoMessage() {}
   800  func (*QueryDelegatorUnbondingDelegationsResponse) Descriptor() ([]byte, []int) {
   801  	return fileDescriptor_f270127f442bbcd8, []int{15}
   802  }
   803  func (m *QueryDelegatorUnbondingDelegationsResponse) XXX_Unmarshal(b []byte) error {
   804  	return m.Unmarshal(b)
   805  }
   806  func (m *QueryDelegatorUnbondingDelegationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   807  	if deterministic {
   808  		return xxx_messageInfo_QueryDelegatorUnbondingDelegationsResponse.Marshal(b, m, deterministic)
   809  	} else {
   810  		b = b[:cap(b)]
   811  		n, err := m.MarshalToSizedBuffer(b)
   812  		if err != nil {
   813  			return nil, err
   814  		}
   815  		return b[:n], nil
   816  	}
   817  }
   818  func (m *QueryDelegatorUnbondingDelegationsResponse) XXX_Merge(src proto.Message) {
   819  	xxx_messageInfo_QueryDelegatorUnbondingDelegationsResponse.Merge(m, src)
   820  }
   821  func (m *QueryDelegatorUnbondingDelegationsResponse) XXX_Size() int {
   822  	return m.Size()
   823  }
   824  func (m *QueryDelegatorUnbondingDelegationsResponse) XXX_DiscardUnknown() {
   825  	xxx_messageInfo_QueryDelegatorUnbondingDelegationsResponse.DiscardUnknown(m)
   826  }
   827  
   828  var xxx_messageInfo_QueryDelegatorUnbondingDelegationsResponse proto.InternalMessageInfo
   829  
   830  func (m *QueryDelegatorUnbondingDelegationsResponse) GetUnbondingResponses() []UnbondingDelegation {
   831  	if m != nil {
   832  		return m.UnbondingResponses
   833  	}
   834  	return nil
   835  }
   836  
   837  func (m *QueryDelegatorUnbondingDelegationsResponse) GetPagination() *query.PageResponse {
   838  	if m != nil {
   839  		return m.Pagination
   840  	}
   841  	return nil
   842  }
   843  
   844  // QueryRedelegationsRequest is request type for the Query/Redelegations RPC
   845  // method.
   846  type QueryRedelegationsRequest struct {
   847  	// delegator_addr defines the delegator address to query for.
   848  	DelegatorAddr string `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
   849  	// src_validator_addr defines the validator address to redelegate from.
   850  	SrcValidatorAddr string `protobuf:"bytes,2,opt,name=src_validator_addr,json=srcValidatorAddr,proto3" json:"src_validator_addr,omitempty"`
   851  	// dst_validator_addr defines the validator address to redelegate to.
   852  	DstValidatorAddr string `protobuf:"bytes,3,opt,name=dst_validator_addr,json=dstValidatorAddr,proto3" json:"dst_validator_addr,omitempty"`
   853  	// pagination defines an optional pagination for the request.
   854  	Pagination *query.PageRequest `protobuf:"bytes,4,opt,name=pagination,proto3" json:"pagination,omitempty"`
   855  }
   856  
   857  func (m *QueryRedelegationsRequest) Reset()         { *m = QueryRedelegationsRequest{} }
   858  func (m *QueryRedelegationsRequest) String() string { return proto.CompactTextString(m) }
   859  func (*QueryRedelegationsRequest) ProtoMessage()    {}
   860  func (*QueryRedelegationsRequest) Descriptor() ([]byte, []int) {
   861  	return fileDescriptor_f270127f442bbcd8, []int{16}
   862  }
   863  func (m *QueryRedelegationsRequest) XXX_Unmarshal(b []byte) error {
   864  	return m.Unmarshal(b)
   865  }
   866  func (m *QueryRedelegationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   867  	if deterministic {
   868  		return xxx_messageInfo_QueryRedelegationsRequest.Marshal(b, m, deterministic)
   869  	} else {
   870  		b = b[:cap(b)]
   871  		n, err := m.MarshalToSizedBuffer(b)
   872  		if err != nil {
   873  			return nil, err
   874  		}
   875  		return b[:n], nil
   876  	}
   877  }
   878  func (m *QueryRedelegationsRequest) XXX_Merge(src proto.Message) {
   879  	xxx_messageInfo_QueryRedelegationsRequest.Merge(m, src)
   880  }
   881  func (m *QueryRedelegationsRequest) XXX_Size() int {
   882  	return m.Size()
   883  }
   884  func (m *QueryRedelegationsRequest) XXX_DiscardUnknown() {
   885  	xxx_messageInfo_QueryRedelegationsRequest.DiscardUnknown(m)
   886  }
   887  
   888  var xxx_messageInfo_QueryRedelegationsRequest proto.InternalMessageInfo
   889  
   890  // QueryRedelegationsResponse is response type for the Query/Redelegations RPC
   891  // method.
   892  type QueryRedelegationsResponse struct {
   893  	RedelegationResponses []RedelegationResponse `protobuf:"bytes,1,rep,name=redelegation_responses,json=redelegationResponses,proto3" json:"redelegation_responses"`
   894  	// pagination defines the pagination in the response.
   895  	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
   896  }
   897  
   898  func (m *QueryRedelegationsResponse) Reset()         { *m = QueryRedelegationsResponse{} }
   899  func (m *QueryRedelegationsResponse) String() string { return proto.CompactTextString(m) }
   900  func (*QueryRedelegationsResponse) ProtoMessage()    {}
   901  func (*QueryRedelegationsResponse) Descriptor() ([]byte, []int) {
   902  	return fileDescriptor_f270127f442bbcd8, []int{17}
   903  }
   904  func (m *QueryRedelegationsResponse) XXX_Unmarshal(b []byte) error {
   905  	return m.Unmarshal(b)
   906  }
   907  func (m *QueryRedelegationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   908  	if deterministic {
   909  		return xxx_messageInfo_QueryRedelegationsResponse.Marshal(b, m, deterministic)
   910  	} else {
   911  		b = b[:cap(b)]
   912  		n, err := m.MarshalToSizedBuffer(b)
   913  		if err != nil {
   914  			return nil, err
   915  		}
   916  		return b[:n], nil
   917  	}
   918  }
   919  func (m *QueryRedelegationsResponse) XXX_Merge(src proto.Message) {
   920  	xxx_messageInfo_QueryRedelegationsResponse.Merge(m, src)
   921  }
   922  func (m *QueryRedelegationsResponse) XXX_Size() int {
   923  	return m.Size()
   924  }
   925  func (m *QueryRedelegationsResponse) XXX_DiscardUnknown() {
   926  	xxx_messageInfo_QueryRedelegationsResponse.DiscardUnknown(m)
   927  }
   928  
   929  var xxx_messageInfo_QueryRedelegationsResponse proto.InternalMessageInfo
   930  
   931  func (m *QueryRedelegationsResponse) GetRedelegationResponses() []RedelegationResponse {
   932  	if m != nil {
   933  		return m.RedelegationResponses
   934  	}
   935  	return nil
   936  }
   937  
   938  func (m *QueryRedelegationsResponse) GetPagination() *query.PageResponse {
   939  	if m != nil {
   940  		return m.Pagination
   941  	}
   942  	return nil
   943  }
   944  
   945  // QueryDelegatorValidatorsRequest is request type for the
   946  // Query/DelegatorValidators RPC method.
   947  type QueryDelegatorValidatorsRequest struct {
   948  	// delegator_addr defines the delegator address to query for.
   949  	DelegatorAddr string `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
   950  	// pagination defines an optional pagination for the request.
   951  	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
   952  }
   953  
   954  func (m *QueryDelegatorValidatorsRequest) Reset()         { *m = QueryDelegatorValidatorsRequest{} }
   955  func (m *QueryDelegatorValidatorsRequest) String() string { return proto.CompactTextString(m) }
   956  func (*QueryDelegatorValidatorsRequest) ProtoMessage()    {}
   957  func (*QueryDelegatorValidatorsRequest) Descriptor() ([]byte, []int) {
   958  	return fileDescriptor_f270127f442bbcd8, []int{18}
   959  }
   960  func (m *QueryDelegatorValidatorsRequest) XXX_Unmarshal(b []byte) error {
   961  	return m.Unmarshal(b)
   962  }
   963  func (m *QueryDelegatorValidatorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   964  	if deterministic {
   965  		return xxx_messageInfo_QueryDelegatorValidatorsRequest.Marshal(b, m, deterministic)
   966  	} else {
   967  		b = b[:cap(b)]
   968  		n, err := m.MarshalToSizedBuffer(b)
   969  		if err != nil {
   970  			return nil, err
   971  		}
   972  		return b[:n], nil
   973  	}
   974  }
   975  func (m *QueryDelegatorValidatorsRequest) XXX_Merge(src proto.Message) {
   976  	xxx_messageInfo_QueryDelegatorValidatorsRequest.Merge(m, src)
   977  }
   978  func (m *QueryDelegatorValidatorsRequest) XXX_Size() int {
   979  	return m.Size()
   980  }
   981  func (m *QueryDelegatorValidatorsRequest) XXX_DiscardUnknown() {
   982  	xxx_messageInfo_QueryDelegatorValidatorsRequest.DiscardUnknown(m)
   983  }
   984  
   985  var xxx_messageInfo_QueryDelegatorValidatorsRequest proto.InternalMessageInfo
   986  
   987  // QueryDelegatorValidatorsResponse is response type for the
   988  // Query/DelegatorValidators RPC method.
   989  type QueryDelegatorValidatorsResponse struct {
   990  	// validators defines the the validators' info of a delegator.
   991  	Validators []Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators"`
   992  	// pagination defines the pagination in the response.
   993  	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
   994  }
   995  
   996  func (m *QueryDelegatorValidatorsResponse) Reset()         { *m = QueryDelegatorValidatorsResponse{} }
   997  func (m *QueryDelegatorValidatorsResponse) String() string { return proto.CompactTextString(m) }
   998  func (*QueryDelegatorValidatorsResponse) ProtoMessage()    {}
   999  func (*QueryDelegatorValidatorsResponse) Descriptor() ([]byte, []int) {
  1000  	return fileDescriptor_f270127f442bbcd8, []int{19}
  1001  }
  1002  func (m *QueryDelegatorValidatorsResponse) XXX_Unmarshal(b []byte) error {
  1003  	return m.Unmarshal(b)
  1004  }
  1005  func (m *QueryDelegatorValidatorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1006  	if deterministic {
  1007  		return xxx_messageInfo_QueryDelegatorValidatorsResponse.Marshal(b, m, deterministic)
  1008  	} else {
  1009  		b = b[:cap(b)]
  1010  		n, err := m.MarshalToSizedBuffer(b)
  1011  		if err != nil {
  1012  			return nil, err
  1013  		}
  1014  		return b[:n], nil
  1015  	}
  1016  }
  1017  func (m *QueryDelegatorValidatorsResponse) XXX_Merge(src proto.Message) {
  1018  	xxx_messageInfo_QueryDelegatorValidatorsResponse.Merge(m, src)
  1019  }
  1020  func (m *QueryDelegatorValidatorsResponse) XXX_Size() int {
  1021  	return m.Size()
  1022  }
  1023  func (m *QueryDelegatorValidatorsResponse) XXX_DiscardUnknown() {
  1024  	xxx_messageInfo_QueryDelegatorValidatorsResponse.DiscardUnknown(m)
  1025  }
  1026  
  1027  var xxx_messageInfo_QueryDelegatorValidatorsResponse proto.InternalMessageInfo
  1028  
  1029  func (m *QueryDelegatorValidatorsResponse) GetValidators() []Validator {
  1030  	if m != nil {
  1031  		return m.Validators
  1032  	}
  1033  	return nil
  1034  }
  1035  
  1036  func (m *QueryDelegatorValidatorsResponse) GetPagination() *query.PageResponse {
  1037  	if m != nil {
  1038  		return m.Pagination
  1039  	}
  1040  	return nil
  1041  }
  1042  
  1043  // QueryDelegatorValidatorRequest is request type for the
  1044  // Query/DelegatorValidator RPC method.
  1045  type QueryDelegatorValidatorRequest struct {
  1046  	// delegator_addr defines the delegator address to query for.
  1047  	DelegatorAddr string `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
  1048  	// validator_addr defines the validator address to query for.
  1049  	ValidatorAddr string `protobuf:"bytes,2,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
  1050  }
  1051  
  1052  func (m *QueryDelegatorValidatorRequest) Reset()         { *m = QueryDelegatorValidatorRequest{} }
  1053  func (m *QueryDelegatorValidatorRequest) String() string { return proto.CompactTextString(m) }
  1054  func (*QueryDelegatorValidatorRequest) ProtoMessage()    {}
  1055  func (*QueryDelegatorValidatorRequest) Descriptor() ([]byte, []int) {
  1056  	return fileDescriptor_f270127f442bbcd8, []int{20}
  1057  }
  1058  func (m *QueryDelegatorValidatorRequest) XXX_Unmarshal(b []byte) error {
  1059  	return m.Unmarshal(b)
  1060  }
  1061  func (m *QueryDelegatorValidatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1062  	if deterministic {
  1063  		return xxx_messageInfo_QueryDelegatorValidatorRequest.Marshal(b, m, deterministic)
  1064  	} else {
  1065  		b = b[:cap(b)]
  1066  		n, err := m.MarshalToSizedBuffer(b)
  1067  		if err != nil {
  1068  			return nil, err
  1069  		}
  1070  		return b[:n], nil
  1071  	}
  1072  }
  1073  func (m *QueryDelegatorValidatorRequest) XXX_Merge(src proto.Message) {
  1074  	xxx_messageInfo_QueryDelegatorValidatorRequest.Merge(m, src)
  1075  }
  1076  func (m *QueryDelegatorValidatorRequest) XXX_Size() int {
  1077  	return m.Size()
  1078  }
  1079  func (m *QueryDelegatorValidatorRequest) XXX_DiscardUnknown() {
  1080  	xxx_messageInfo_QueryDelegatorValidatorRequest.DiscardUnknown(m)
  1081  }
  1082  
  1083  var xxx_messageInfo_QueryDelegatorValidatorRequest proto.InternalMessageInfo
  1084  
  1085  // QueryDelegatorValidatorResponse response type for the
  1086  // Query/DelegatorValidator RPC method.
  1087  type QueryDelegatorValidatorResponse struct {
  1088  	// validator defines the the validator info.
  1089  	Validator Validator `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator"`
  1090  }
  1091  
  1092  func (m *QueryDelegatorValidatorResponse) Reset()         { *m = QueryDelegatorValidatorResponse{} }
  1093  func (m *QueryDelegatorValidatorResponse) String() string { return proto.CompactTextString(m) }
  1094  func (*QueryDelegatorValidatorResponse) ProtoMessage()    {}
  1095  func (*QueryDelegatorValidatorResponse) Descriptor() ([]byte, []int) {
  1096  	return fileDescriptor_f270127f442bbcd8, []int{21}
  1097  }
  1098  func (m *QueryDelegatorValidatorResponse) XXX_Unmarshal(b []byte) error {
  1099  	return m.Unmarshal(b)
  1100  }
  1101  func (m *QueryDelegatorValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1102  	if deterministic {
  1103  		return xxx_messageInfo_QueryDelegatorValidatorResponse.Marshal(b, m, deterministic)
  1104  	} else {
  1105  		b = b[:cap(b)]
  1106  		n, err := m.MarshalToSizedBuffer(b)
  1107  		if err != nil {
  1108  			return nil, err
  1109  		}
  1110  		return b[:n], nil
  1111  	}
  1112  }
  1113  func (m *QueryDelegatorValidatorResponse) XXX_Merge(src proto.Message) {
  1114  	xxx_messageInfo_QueryDelegatorValidatorResponse.Merge(m, src)
  1115  }
  1116  func (m *QueryDelegatorValidatorResponse) XXX_Size() int {
  1117  	return m.Size()
  1118  }
  1119  func (m *QueryDelegatorValidatorResponse) XXX_DiscardUnknown() {
  1120  	xxx_messageInfo_QueryDelegatorValidatorResponse.DiscardUnknown(m)
  1121  }
  1122  
  1123  var xxx_messageInfo_QueryDelegatorValidatorResponse proto.InternalMessageInfo
  1124  
  1125  func (m *QueryDelegatorValidatorResponse) GetValidator() Validator {
  1126  	if m != nil {
  1127  		return m.Validator
  1128  	}
  1129  	return Validator{}
  1130  }
  1131  
  1132  // QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC
  1133  // method.
  1134  type QueryHistoricalInfoRequest struct {
  1135  	// height defines at which height to query the historical info.
  1136  	Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
  1137  }
  1138  
  1139  func (m *QueryHistoricalInfoRequest) Reset()         { *m = QueryHistoricalInfoRequest{} }
  1140  func (m *QueryHistoricalInfoRequest) String() string { return proto.CompactTextString(m) }
  1141  func (*QueryHistoricalInfoRequest) ProtoMessage()    {}
  1142  func (*QueryHistoricalInfoRequest) Descriptor() ([]byte, []int) {
  1143  	return fileDescriptor_f270127f442bbcd8, []int{22}
  1144  }
  1145  func (m *QueryHistoricalInfoRequest) XXX_Unmarshal(b []byte) error {
  1146  	return m.Unmarshal(b)
  1147  }
  1148  func (m *QueryHistoricalInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1149  	if deterministic {
  1150  		return xxx_messageInfo_QueryHistoricalInfoRequest.Marshal(b, m, deterministic)
  1151  	} else {
  1152  		b = b[:cap(b)]
  1153  		n, err := m.MarshalToSizedBuffer(b)
  1154  		if err != nil {
  1155  			return nil, err
  1156  		}
  1157  		return b[:n], nil
  1158  	}
  1159  }
  1160  func (m *QueryHistoricalInfoRequest) XXX_Merge(src proto.Message) {
  1161  	xxx_messageInfo_QueryHistoricalInfoRequest.Merge(m, src)
  1162  }
  1163  func (m *QueryHistoricalInfoRequest) XXX_Size() int {
  1164  	return m.Size()
  1165  }
  1166  func (m *QueryHistoricalInfoRequest) XXX_DiscardUnknown() {
  1167  	xxx_messageInfo_QueryHistoricalInfoRequest.DiscardUnknown(m)
  1168  }
  1169  
  1170  var xxx_messageInfo_QueryHistoricalInfoRequest proto.InternalMessageInfo
  1171  
  1172  func (m *QueryHistoricalInfoRequest) GetHeight() int64 {
  1173  	if m != nil {
  1174  		return m.Height
  1175  	}
  1176  	return 0
  1177  }
  1178  
  1179  // QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC
  1180  // method.
  1181  type QueryHistoricalInfoResponse struct {
  1182  	// hist defines the historical info at the given height.
  1183  	Hist *HistoricalInfo `protobuf:"bytes,1,opt,name=hist,proto3" json:"hist,omitempty"`
  1184  }
  1185  
  1186  func (m *QueryHistoricalInfoResponse) Reset()         { *m = QueryHistoricalInfoResponse{} }
  1187  func (m *QueryHistoricalInfoResponse) String() string { return proto.CompactTextString(m) }
  1188  func (*QueryHistoricalInfoResponse) ProtoMessage()    {}
  1189  func (*QueryHistoricalInfoResponse) Descriptor() ([]byte, []int) {
  1190  	return fileDescriptor_f270127f442bbcd8, []int{23}
  1191  }
  1192  func (m *QueryHistoricalInfoResponse) XXX_Unmarshal(b []byte) error {
  1193  	return m.Unmarshal(b)
  1194  }
  1195  func (m *QueryHistoricalInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1196  	if deterministic {
  1197  		return xxx_messageInfo_QueryHistoricalInfoResponse.Marshal(b, m, deterministic)
  1198  	} else {
  1199  		b = b[:cap(b)]
  1200  		n, err := m.MarshalToSizedBuffer(b)
  1201  		if err != nil {
  1202  			return nil, err
  1203  		}
  1204  		return b[:n], nil
  1205  	}
  1206  }
  1207  func (m *QueryHistoricalInfoResponse) XXX_Merge(src proto.Message) {
  1208  	xxx_messageInfo_QueryHistoricalInfoResponse.Merge(m, src)
  1209  }
  1210  func (m *QueryHistoricalInfoResponse) XXX_Size() int {
  1211  	return m.Size()
  1212  }
  1213  func (m *QueryHistoricalInfoResponse) XXX_DiscardUnknown() {
  1214  	xxx_messageInfo_QueryHistoricalInfoResponse.DiscardUnknown(m)
  1215  }
  1216  
  1217  var xxx_messageInfo_QueryHistoricalInfoResponse proto.InternalMessageInfo
  1218  
  1219  func (m *QueryHistoricalInfoResponse) GetHist() *HistoricalInfo {
  1220  	if m != nil {
  1221  		return m.Hist
  1222  	}
  1223  	return nil
  1224  }
  1225  
  1226  // QueryPoolRequest is request type for the Query/Pool RPC method.
  1227  type QueryPoolRequest struct {
  1228  }
  1229  
  1230  func (m *QueryPoolRequest) Reset()         { *m = QueryPoolRequest{} }
  1231  func (m *QueryPoolRequest) String() string { return proto.CompactTextString(m) }
  1232  func (*QueryPoolRequest) ProtoMessage()    {}
  1233  func (*QueryPoolRequest) Descriptor() ([]byte, []int) {
  1234  	return fileDescriptor_f270127f442bbcd8, []int{24}
  1235  }
  1236  func (m *QueryPoolRequest) XXX_Unmarshal(b []byte) error {
  1237  	return m.Unmarshal(b)
  1238  }
  1239  func (m *QueryPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1240  	if deterministic {
  1241  		return xxx_messageInfo_QueryPoolRequest.Marshal(b, m, deterministic)
  1242  	} else {
  1243  		b = b[:cap(b)]
  1244  		n, err := m.MarshalToSizedBuffer(b)
  1245  		if err != nil {
  1246  			return nil, err
  1247  		}
  1248  		return b[:n], nil
  1249  	}
  1250  }
  1251  func (m *QueryPoolRequest) XXX_Merge(src proto.Message) {
  1252  	xxx_messageInfo_QueryPoolRequest.Merge(m, src)
  1253  }
  1254  func (m *QueryPoolRequest) XXX_Size() int {
  1255  	return m.Size()
  1256  }
  1257  func (m *QueryPoolRequest) XXX_DiscardUnknown() {
  1258  	xxx_messageInfo_QueryPoolRequest.DiscardUnknown(m)
  1259  }
  1260  
  1261  var xxx_messageInfo_QueryPoolRequest proto.InternalMessageInfo
  1262  
  1263  // QueryPoolResponse is response type for the Query/Pool RPC method.
  1264  type QueryPoolResponse struct {
  1265  	// pool defines the pool info.
  1266  	Pool Pool `protobuf:"bytes,1,opt,name=pool,proto3" json:"pool"`
  1267  }
  1268  
  1269  func (m *QueryPoolResponse) Reset()         { *m = QueryPoolResponse{} }
  1270  func (m *QueryPoolResponse) String() string { return proto.CompactTextString(m) }
  1271  func (*QueryPoolResponse) ProtoMessage()    {}
  1272  func (*QueryPoolResponse) Descriptor() ([]byte, []int) {
  1273  	return fileDescriptor_f270127f442bbcd8, []int{25}
  1274  }
  1275  func (m *QueryPoolResponse) XXX_Unmarshal(b []byte) error {
  1276  	return m.Unmarshal(b)
  1277  }
  1278  func (m *QueryPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1279  	if deterministic {
  1280  		return xxx_messageInfo_QueryPoolResponse.Marshal(b, m, deterministic)
  1281  	} else {
  1282  		b = b[:cap(b)]
  1283  		n, err := m.MarshalToSizedBuffer(b)
  1284  		if err != nil {
  1285  			return nil, err
  1286  		}
  1287  		return b[:n], nil
  1288  	}
  1289  }
  1290  func (m *QueryPoolResponse) XXX_Merge(src proto.Message) {
  1291  	xxx_messageInfo_QueryPoolResponse.Merge(m, src)
  1292  }
  1293  func (m *QueryPoolResponse) XXX_Size() int {
  1294  	return m.Size()
  1295  }
  1296  func (m *QueryPoolResponse) XXX_DiscardUnknown() {
  1297  	xxx_messageInfo_QueryPoolResponse.DiscardUnknown(m)
  1298  }
  1299  
  1300  var xxx_messageInfo_QueryPoolResponse proto.InternalMessageInfo
  1301  
  1302  func (m *QueryPoolResponse) GetPool() Pool {
  1303  	if m != nil {
  1304  		return m.Pool
  1305  	}
  1306  	return Pool{}
  1307  }
  1308  
  1309  // QueryParamsRequest is request type for the Query/Params RPC method.
  1310  type QueryParamsRequest struct {
  1311  }
  1312  
  1313  func (m *QueryParamsRequest) Reset()         { *m = QueryParamsRequest{} }
  1314  func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) }
  1315  func (*QueryParamsRequest) ProtoMessage()    {}
  1316  func (*QueryParamsRequest) Descriptor() ([]byte, []int) {
  1317  	return fileDescriptor_f270127f442bbcd8, []int{26}
  1318  }
  1319  func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error {
  1320  	return m.Unmarshal(b)
  1321  }
  1322  func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1323  	if deterministic {
  1324  		return xxx_messageInfo_QueryParamsRequest.Marshal(b, m, deterministic)
  1325  	} else {
  1326  		b = b[:cap(b)]
  1327  		n, err := m.MarshalToSizedBuffer(b)
  1328  		if err != nil {
  1329  			return nil, err
  1330  		}
  1331  		return b[:n], nil
  1332  	}
  1333  }
  1334  func (m *QueryParamsRequest) XXX_Merge(src proto.Message) {
  1335  	xxx_messageInfo_QueryParamsRequest.Merge(m, src)
  1336  }
  1337  func (m *QueryParamsRequest) XXX_Size() int {
  1338  	return m.Size()
  1339  }
  1340  func (m *QueryParamsRequest) XXX_DiscardUnknown() {
  1341  	xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m)
  1342  }
  1343  
  1344  var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo
  1345  
  1346  // QueryParamsResponse is response type for the Query/Params RPC method.
  1347  type QueryParamsResponse struct {
  1348  	// params holds all the parameters of this module.
  1349  	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
  1350  }
  1351  
  1352  func (m *QueryParamsResponse) Reset()         { *m = QueryParamsResponse{} }
  1353  func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) }
  1354  func (*QueryParamsResponse) ProtoMessage()    {}
  1355  func (*QueryParamsResponse) Descriptor() ([]byte, []int) {
  1356  	return fileDescriptor_f270127f442bbcd8, []int{27}
  1357  }
  1358  func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error {
  1359  	return m.Unmarshal(b)
  1360  }
  1361  func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1362  	if deterministic {
  1363  		return xxx_messageInfo_QueryParamsResponse.Marshal(b, m, deterministic)
  1364  	} else {
  1365  		b = b[:cap(b)]
  1366  		n, err := m.MarshalToSizedBuffer(b)
  1367  		if err != nil {
  1368  			return nil, err
  1369  		}
  1370  		return b[:n], nil
  1371  	}
  1372  }
  1373  func (m *QueryParamsResponse) XXX_Merge(src proto.Message) {
  1374  	xxx_messageInfo_QueryParamsResponse.Merge(m, src)
  1375  }
  1376  func (m *QueryParamsResponse) XXX_Size() int {
  1377  	return m.Size()
  1378  }
  1379  func (m *QueryParamsResponse) XXX_DiscardUnknown() {
  1380  	xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m)
  1381  }
  1382  
  1383  var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo
  1384  
  1385  func (m *QueryParamsResponse) GetParams() Params {
  1386  	if m != nil {
  1387  		return m.Params
  1388  	}
  1389  	return Params{}
  1390  }
  1391  
  1392  func init() {
  1393  	proto.RegisterType((*QueryValidatorsRequest)(nil), "cosmos.staking.v1beta1.QueryValidatorsRequest")
  1394  	proto.RegisterType((*QueryValidatorsResponse)(nil), "cosmos.staking.v1beta1.QueryValidatorsResponse")
  1395  	proto.RegisterType((*QueryValidatorRequest)(nil), "cosmos.staking.v1beta1.QueryValidatorRequest")
  1396  	proto.RegisterType((*QueryValidatorResponse)(nil), "cosmos.staking.v1beta1.QueryValidatorResponse")
  1397  	proto.RegisterType((*QueryValidatorDelegationsRequest)(nil), "cosmos.staking.v1beta1.QueryValidatorDelegationsRequest")
  1398  	proto.RegisterType((*QueryValidatorDelegationsResponse)(nil), "cosmos.staking.v1beta1.QueryValidatorDelegationsResponse")
  1399  	proto.RegisterType((*QueryValidatorUnbondingDelegationsRequest)(nil), "cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest")
  1400  	proto.RegisterType((*QueryValidatorUnbondingDelegationsResponse)(nil), "cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse")
  1401  	proto.RegisterType((*QueryDelegationRequest)(nil), "cosmos.staking.v1beta1.QueryDelegationRequest")
  1402  	proto.RegisterType((*QueryDelegationResponse)(nil), "cosmos.staking.v1beta1.QueryDelegationResponse")
  1403  	proto.RegisterType((*QueryUnbondingDelegationRequest)(nil), "cosmos.staking.v1beta1.QueryUnbondingDelegationRequest")
  1404  	proto.RegisterType((*QueryUnbondingDelegationResponse)(nil), "cosmos.staking.v1beta1.QueryUnbondingDelegationResponse")
  1405  	proto.RegisterType((*QueryDelegatorDelegationsRequest)(nil), "cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest")
  1406  	proto.RegisterType((*QueryDelegatorDelegationsResponse)(nil), "cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse")
  1407  	proto.RegisterType((*QueryDelegatorUnbondingDelegationsRequest)(nil), "cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest")
  1408  	proto.RegisterType((*QueryDelegatorUnbondingDelegationsResponse)(nil), "cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse")
  1409  	proto.RegisterType((*QueryRedelegationsRequest)(nil), "cosmos.staking.v1beta1.QueryRedelegationsRequest")
  1410  	proto.RegisterType((*QueryRedelegationsResponse)(nil), "cosmos.staking.v1beta1.QueryRedelegationsResponse")
  1411  	proto.RegisterType((*QueryDelegatorValidatorsRequest)(nil), "cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest")
  1412  	proto.RegisterType((*QueryDelegatorValidatorsResponse)(nil), "cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse")
  1413  	proto.RegisterType((*QueryDelegatorValidatorRequest)(nil), "cosmos.staking.v1beta1.QueryDelegatorValidatorRequest")
  1414  	proto.RegisterType((*QueryDelegatorValidatorResponse)(nil), "cosmos.staking.v1beta1.QueryDelegatorValidatorResponse")
  1415  	proto.RegisterType((*QueryHistoricalInfoRequest)(nil), "cosmos.staking.v1beta1.QueryHistoricalInfoRequest")
  1416  	proto.RegisterType((*QueryHistoricalInfoResponse)(nil), "cosmos.staking.v1beta1.QueryHistoricalInfoResponse")
  1417  	proto.RegisterType((*QueryPoolRequest)(nil), "cosmos.staking.v1beta1.QueryPoolRequest")
  1418  	proto.RegisterType((*QueryPoolResponse)(nil), "cosmos.staking.v1beta1.QueryPoolResponse")
  1419  	proto.RegisterType((*QueryParamsRequest)(nil), "cosmos.staking.v1beta1.QueryParamsRequest")
  1420  	proto.RegisterType((*QueryParamsResponse)(nil), "cosmos.staking.v1beta1.QueryParamsResponse")
  1421  }
  1422  
  1423  func init() {
  1424  	proto.RegisterFile("cosmos/staking/v1beta1/query.proto", fileDescriptor_f270127f442bbcd8)
  1425  }
  1426  
  1427  var fileDescriptor_f270127f442bbcd8 = []byte{
  1428  	// 1310 bytes of a gzipped FileDescriptorProto
  1429  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x59, 0xcd, 0x53, 0x1c, 0x55,
  1430  	0x10, 0xdf, 0x97, 0x20, 0x25, 0x9d, 0x4a, 0x2a, 0xbe, 0x05, 0xc4, 0x09, 0xee, 0x92, 0x29, 0x44,
  1431  	0x42, 0xc8, 0x4c, 0x80, 0x48, 0x30, 0xa6, 0xa2, 0x60, 0x24, 0x62, 0x0e, 0xc2, 0x5a, 0xe2, 0xd7,
  1432  	0x81, 0x9a, 0xdd, 0x19, 0x66, 0xa7, 0xb2, 0xcc, 0x6c, 0x66, 0x06, 0x0a, 0xa4, 0x38, 0xe8, 0x49,
  1433  	0x6f, 0x5a, 0x9e, 0xd4, 0x4b, 0x0e, 0x56, 0x59, 0xa5, 0x47, 0xfd, 0x07, 0x3c, 0x19, 0x6f, 0x58,
  1434  	0x7a, 0xd0, 0x4b, 0xb4, 0xc0, 0x43, 0xca, 0x93, 0x37, 0xcb, 0x9b, 0xb5, 0x6f, 0x7a, 0x66, 0x67,
  1435  	0x98, 0xcf, 0x5d, 0x96, 0xa2, 0x72, 0x5b, 0xde, 0xf4, 0xc7, 0xef, 0xd7, 0xfd, 0xba, 0x5f, 0x77,
  1436  	0x01, 0x7c, 0xc5, 0xb0, 0xd6, 0x0c, 0x4b, 0xb4, 0x6c, 0xe9, 0x8e, 0xa6, 0xab, 0xe2, 0xc6, 0x44,
  1437  	0x59, 0xb1, 0xa5, 0x09, 0xf1, 0xee, 0xba, 0x62, 0x6e, 0x09, 0x75, 0xd3, 0xb0, 0x0d, 0xda, 0xef,
  1438  	0xc8, 0x08, 0x28, 0x23, 0xa0, 0x0c, 0x37, 0x86, 0xba, 0x65, 0xc9, 0x52, 0x1c, 0x05, 0x4f, 0xbd,
  1439  	0x2e, 0xa9, 0x9a, 0x2e, 0xd9, 0x9a, 0xa1, 0x3b, 0x36, 0xb8, 0x5e, 0xd5, 0x50, 0x0d, 0xf6, 0x53,
  1440  	0x6c, 0xfc, 0xc2, 0xd3, 0x41, 0xd5, 0x30, 0xd4, 0x9a, 0x22, 0x4a, 0x75, 0x4d, 0x94, 0x74, 0xdd,
  1441  	0xb0, 0x99, 0x8a, 0x85, 0x5f, 0x87, 0x63, 0xb0, 0xb9, 0x38, 0x98, 0x14, 0xbf, 0x09, 0xfd, 0x4b,
  1442  	0x0d, 0xdf, 0xcb, 0x52, 0x4d, 0x93, 0x25, 0xdb, 0x30, 0xad, 0x92, 0x72, 0x77, 0x5d, 0xb1, 0x6c,
  1443  	0xda, 0x0f, 0xdd, 0x96, 0x2d, 0xd9, 0xeb, 0xd6, 0x00, 0x19, 0x22, 0xa3, 0x3d, 0x25, 0xfc, 0x8b,
  1444  	0xce, 0x03, 0x34, 0xf1, 0x0d, 0x9c, 0x18, 0x22, 0xa3, 0xa7, 0x26, 0x47, 0x04, 0x24, 0xd9, 0x20,
  1445  	0x23, 0x38, 0xec, 0xd1, 0x9f, 0xb0, 0x28, 0xa9, 0x0a, 0xda, 0x2c, 0xf9, 0x34, 0xf9, 0x6f, 0x09,
  1446  	0x3c, 0x19, 0x72, 0x6d, 0xd5, 0x0d, 0xdd, 0x52, 0xe8, 0x2d, 0x80, 0x0d, 0xef, 0x74, 0x80, 0x0c,
  1447  	0x9d, 0x1c, 0x3d, 0x35, 0x79, 0x5e, 0x88, 0x0e, 0xa4, 0xe0, 0xe9, 0xcf, 0x75, 0xdd, 0x7f, 0x50,
  1448  	0xcc, 0x95, 0x7c, 0xaa, 0x0d, 0x43, 0x21, 0xb0, 0xcf, 0xa6, 0x82, 0x75, 0x50, 0x04, 0xd0, 0xde,
  1449  	0x80, 0xbe, 0x20, 0x58, 0x37, 0x4c, 0xcf, 0xc0, 0x19, 0xcf, 0xdf, 0x8a, 0x24, 0xcb, 0x26, 0x86,
  1450  	0xeb, 0xb4, 0x77, 0x3a, 0x2b, 0xcb, 0x26, 0xbf, 0x72, 0x30, 0xce, 0x1e, 0xd7, 0x57, 0xa0, 0xc7,
  1451  	0x13, 0x65, 0xba, 0x2d, 0x50, 0x6d, 0x6a, 0xf2, 0x9f, 0x12, 0x18, 0x0a, 0x7a, 0xb8, 0xa9, 0xd4,
  1452  	0x14, 0xd5, 0xb9, 0x12, 0xad, 0x81, 0xed, 0x58, 0x8a, 0x1f, 0x12, 0x38, 0x9f, 0x80, 0x09, 0x03,
  1453  	0xf0, 0x3e, 0xf4, 0xca, 0xde, 0xf1, 0x8a, 0x89, 0xc7, 0x6e, 0xda, 0xc7, 0xe2, 0x62, 0xd1, 0x34,
  1454  	0xe5, 0x5a, 0x9a, 0x3b, 0xd7, 0x08, 0xca, 0x37, 0x7f, 0x14, 0xf3, 0xe1, 0x6f, 0x56, 0x29, 0x2f,
  1455  	0x87, 0x0f, 0x3b, 0x77, 0x3f, 0xbe, 0x20, 0x70, 0x21, 0x48, 0xf5, 0x4d, 0xbd, 0x6c, 0xe8, 0xb2,
  1456  	0xa6, 0xab, 0xc7, 0x9f, 0x87, 0xdf, 0x09, 0x8c, 0x65, 0x01, 0x87, 0x09, 0x29, 0x43, 0x7e, 0xdd,
  1457  	0xfd, 0x1e, 0xca, 0xc7, 0xc5, 0xb8, 0x7c, 0x44, 0x98, 0xc4, 0x5b, 0x4a, 0x3d, 0x6b, 0x47, 0x10,
  1458  	0xf8, 0x3a, 0x16, 0x96, 0x3f, 0xe5, 0x5e, 0x90, 0x31, 0xe5, 0x07, 0x82, 0xec, 0x9d, 0xb2, 0x20,
  1459  	0x87, 0x73, 0x71, 0x22, 0x22, 0x17, 0xd7, 0x1e, 0xff, 0xe8, 0x5e, 0x31, 0xf7, 0xf0, 0x5e, 0x31,
  1460  	0xc7, 0x6f, 0x60, 0xdf, 0x0a, 0x5f, 0x32, 0xfa, 0x1e, 0xe4, 0x23, 0xae, 0x32, 0x56, 0x75, 0x0b,
  1461  	0x37, 0xb9, 0x44, 0xc3, 0x97, 0x95, 0xdf, 0x82, 0x22, 0xf3, 0x1b, 0x11, 0xe8, 0xa3, 0xa6, 0xbc,
  1462  	0x86, 0xbd, 0x25, 0xd2, 0x35, 0x72, 0x5f, 0x80, 0x6e, 0x27, 0xcf, 0x48, 0xb7, 0x8d, 0x8b, 0x82,
  1463  	0x06, 0xf8, 0x2f, 0xdd, 0x5e, 0x76, 0xd3, 0x85, 0x1d, 0x5d, 0x43, 0x59, 0xb8, 0x76, 0xa8, 0x86,
  1464  	0x7c, 0xc1, 0xf8, 0xd9, 0xed, 0x6a, 0xd1, 0xe8, 0x30, 0x1c, 0x95, 0x8e, 0x75, 0x35, 0x27, 0x36,
  1465  	0x47, 0xdb, 0xbe, 0xbe, 0x72, 0xdb, 0x97, 0xc7, 0x29, 0xa5, 0x7d, 0x1d, 0x4f, 0xe8, 0xbd, 0x46,
  1466  	0x96, 0x02, 0xf3, 0x51, 0x6c, 0x64, 0xff, 0x10, 0x78, 0x8a, 0x71, 0x2b, 0x29, 0x72, 0xdb, 0x21,
  1467  	0x1f, 0x07, 0x6a, 0x99, 0x95, 0x95, 0xc8, 0xea, 0x3e, 0x6b, 0x99, 0x95, 0xe5, 0xc0, 0xfb, 0x32,
  1468  	0x0e, 0x54, 0xb6, 0xec, 0x83, 0xd2, 0x27, 0x1d, 0x69, 0xd9, 0xb2, 0x97, 0x13, 0x5e, 0xa3, 0xae,
  1469  	0x0e, 0xa4, 0x73, 0x97, 0x00, 0x17, 0x45, 0x19, 0xd3, 0xa7, 0x41, 0xbf, 0xa9, 0x24, 0x14, 0xd1,
  1470  	0x78, 0x5c, 0x06, 0xfd, 0xe6, 0x0e, 0x94, 0x51, 0x9f, 0xa9, 0x1c, 0xf5, 0x1c, 0x50, 0x0c, 0xde,
  1471  	0xd0, 0xf0, 0x64, 0x7d, 0x6c, 0xe5, 0xf3, 0x7d, 0xa8, 0xaf, 0x3e, 0x12, 0xb3, 0xf7, 0x26, 0x14,
  1472  	0x62, 0x50, 0x1f, 0xf5, 0xbb, 0x57, 0x8d, 0x4d, 0x66, 0xa7, 0xc7, 0xf7, 0x2b, 0x58, 0x09, 0xaf,
  1473  	0x6a, 0x96, 0x6d, 0x98, 0x5a, 0x45, 0xaa, 0x2d, 0xe8, 0xab, 0x86, 0x6f, 0x17, 0xab, 0x2a, 0x9a,
  1474  	0x5a, 0xb5, 0x99, 0x87, 0x93, 0x25, 0xfc, 0x8b, 0x7f, 0x07, 0xce, 0x45, 0x6a, 0x21, 0xb6, 0x6b,
  1475  	0xd0, 0x55, 0xd5, 0x2c, 0x1b, 0x61, 0x8d, 0xc4, 0xc1, 0x3a, 0xa0, 0xcd, 0x74, 0x78, 0x0a, 0x67,
  1476  	0x99, 0xe9, 0x45, 0xc3, 0xa8, 0x21, 0x0c, 0xfe, 0x36, 0x3c, 0xe1, 0x3b, 0x43, 0x27, 0xd3, 0xd0,
  1477  	0x55, 0x37, 0x8c, 0x1a, 0x3a, 0x19, 0x8c, 0x73, 0xd2, 0xd0, 0x41, 0xda, 0x4c, 0x9e, 0xef, 0x05,
  1478  	0xea, 0x18, 0x93, 0x4c, 0x69, 0xcd, 0xad, 0x0d, 0xfe, 0x0d, 0xc8, 0x07, 0x4e, 0xd1, 0xc9, 0x75,
  1479  	0xe8, 0xae, 0xb3, 0x13, 0x74, 0x53, 0x88, 0x75, 0xc3, 0xa4, 0xdc, 0x79, 0xc2, 0xd1, 0x99, 0xfc,
  1480  	0xbb, 0x0f, 0x1e, 0x63, 0x56, 0xe9, 0xe7, 0x04, 0xa0, 0x79, 0xe7, 0xa9, 0x10, 0x67, 0x26, 0x7a,
  1481  	0x27, 0xe6, 0xc4, 0xcc, 0xf2, 0x38, 0xb3, 0x8d, 0x7d, 0xf8, 0xcb, 0x5f, 0x9f, 0x9d, 0x18, 0xa6,
  1482  	0xbc, 0x18, 0xb3, 0x8d, 0xfb, 0xea, 0xe5, 0x6b, 0x02, 0x3d, 0x9e, 0x09, 0x7a, 0x29, 0x9b, 0x2b,
  1483  	0x17, 0x99, 0x90, 0x55, 0x1c, 0x81, 0xbd, 0xc0, 0x80, 0x3d, 0x47, 0xa7, 0xd2, 0x81, 0x89, 0xdb,
  1484  	0xc1, 0xa2, 0xd9, 0xa1, 0xbf, 0x12, 0xe8, 0x8d, 0x5a, 0xe9, 0xe8, 0x4c, 0x36, 0x14, 0xe1, 0x91,
  1485  	0x82, 0x7b, 0xbe, 0x0d, 0x4d, 0xa4, 0x72, 0x8b, 0x51, 0x99, 0xa5, 0x2f, 0xb6, 0x41, 0x45, 0xf4,
  1486  	0xbd, 0x3b, 0xf4, 0x3f, 0x02, 0x4f, 0x27, 0x6e, 0x48, 0x74, 0x36, 0x1b, 0xca, 0x84, 0xd9, 0x89,
  1487  	0x9b, 0x3b, 0x8c, 0x09, 0x64, 0xbc, 0xc4, 0x18, 0xdf, 0xa6, 0x0b, 0xed, 0x30, 0x6e, 0x4e, 0x44,
  1488  	0x7e, 0xee, 0x3f, 0x12, 0x80, 0xa6, 0xab, 0x94, 0xc2, 0x08, 0x2d, 0x1e, 0x29, 0x85, 0x11, 0x1e,
  1489  	0x6a, 0xf9, 0xb7, 0x19, 0x85, 0x12, 0x5d, 0x3c, 0x64, 0xd2, 0xc4, 0xed, 0x60, 0xe3, 0xdf, 0xa1,
  1490  	0xff, 0x12, 0xc8, 0x47, 0x44, 0x8f, 0x5e, 0x4d, 0x84, 0x18, 0xbf, 0x54, 0x71, 0x33, 0xad, 0x2b,
  1491  	0x22, 0xc9, 0x35, 0x46, 0x52, 0xa5, 0x4a, 0xa7, 0x49, 0x46, 0x26, 0x91, 0xfe, 0x44, 0xa0, 0x37,
  1492  	0x6a, 0x27, 0x49, 0x29, 0xcb, 0x84, 0x25, 0x2b, 0xa5, 0x2c, 0x93, 0x16, 0x20, 0xfe, 0x3a, 0x23,
  1493  	0x3f, 0x4d, 0xaf, 0xc4, 0x91, 0x4f, 0xcc, 0x62, 0xa3, 0x16, 0x13, 0x87, 0xfc, 0x94, 0x5a, 0xcc,
  1494  	0xb2, 0xc7, 0xa4, 0xd4, 0x62, 0xa6, 0x1d, 0x23, 0xbd, 0x16, 0x3d, 0x66, 0x19, 0xd3, 0x68, 0xd1,
  1495  	0x1f, 0x08, 0x9c, 0x0e, 0x4c, 0xc4, 0x74, 0x22, 0x11, 0x68, 0xd4, 0xc2, 0xc0, 0x4d, 0xb6, 0xa2,
  1496  	0x82, 0x5c, 0x16, 0x18, 0x97, 0x97, 0xe9, 0x6c, 0x3b, 0x5c, 0xcc, 0x00, 0xe2, 0x5d, 0x02, 0xf9,
  1497  	0x88, 0x29, 0x33, 0xa5, 0x0a, 0xe3, 0x87, 0x66, 0x6e, 0xa6, 0x75, 0x45, 0x64, 0x35, 0xcf, 0x58,
  1498  	0xbd, 0x44, 0x6f, 0xb4, 0xc3, 0xca, 0xf7, 0x3e, 0x3f, 0x20, 0x40, 0xc3, 0x7e, 0xe8, 0x74, 0x8b,
  1499  	0xc0, 0x5c, 0x42, 0x57, 0x5b, 0xd6, 0x43, 0x3e, 0x6f, 0x31, 0x3e, 0x4b, 0xf4, 0xf5, 0xc3, 0xf1,
  1500  	0x09, 0x3f, 0xeb, 0xdf, 0x11, 0x38, 0x13, 0x9c, 0x05, 0x69, 0xf2, 0x2d, 0x8a, 0x1c, 0x56, 0xb9,
  1501  	0xa9, 0x96, 0x74, 0x90, 0xd4, 0x0c, 0x23, 0x35, 0x49, 0x2f, 0xc7, 0x91, 0xaa, 0x7a, 0x7a, 0x2b,
  1502  	0x9a, 0xbe, 0x6a, 0x88, 0xdb, 0xce, 0x08, 0xbc, 0x43, 0x3f, 0x20, 0xd0, 0xd5, 0x18, 0x2e, 0xe9,
  1503  	0x68, 0xa2, 0x5f, 0xdf, 0x1c, 0xcb, 0x5d, 0xc8, 0x20, 0x89, 0xb8, 0x86, 0x19, 0xae, 0x02, 0x1d,
  1504  	0x8c, 0xc3, 0xd5, 0x98, 0x65, 0xe9, 0xc7, 0x04, 0xba, 0x9d, 0xc9, 0x93, 0x8e, 0x25, 0xdb, 0xf6,
  1505  	0x0f, 0xbb, 0xdc, 0xc5, 0x4c, 0xb2, 0x88, 0x64, 0x84, 0x21, 0x19, 0xa2, 0x85, 0x58, 0x24, 0xce,
  1506  	0xe8, 0xfb, 0xda, 0xfd, 0xbd, 0x02, 0xd9, 0xdd, 0x2b, 0x90, 0x3f, 0xf7, 0x0a, 0xe4, 0x93, 0xfd,
  1507  	0x42, 0x6e, 0x77, 0xbf, 0x90, 0xfb, 0x6d, 0xbf, 0x90, 0x7b, 0xf7, 0xb2, 0xaa, 0xd9, 0xd5, 0xf5,
  1508  	0xb2, 0x50, 0x31, 0xd6, 0xc4, 0x79, 0x4d, 0xb7, 0x2a, 0x55, 0x4d, 0x12, 0x57, 0xf1, 0xc7, 0x25,
  1509  	0x4b, 0xbe, 0x23, 0x6e, 0x7a, 0x46, 0xed, 0xad, 0xba, 0x62, 0x95, 0xbb, 0xd9, 0x3f, 0x89, 0xa6,
  1510  	0xfe, 0x0f, 0x00, 0x00, 0xff, 0xff, 0xcd, 0xfb, 0x4e, 0xe1, 0xe8, 0x1a, 0x00, 0x00,
  1511  }
  1512  
  1513  // Reference imports to suppress errors if they are not otherwise used.
  1514  var _ context.Context
  1515  var _ grpc.ClientConn
  1516  
  1517  // This is a compile-time assertion to ensure that this generated file
  1518  // is compatible with the grpc package it is being compiled against.
  1519  const _ = grpc.SupportPackageIsVersion4
  1520  
  1521  // QueryClient is the client API for Query service.
  1522  //
  1523  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  1524  type QueryClient interface {
  1525  	// Validators queries all validators that match the given status.
  1526  	Validators(ctx context.Context, in *QueryValidatorsRequest, opts ...grpc.CallOption) (*QueryValidatorsResponse, error)
  1527  	// Validator queries validator info for given validator address.
  1528  	Validator(ctx context.Context, in *QueryValidatorRequest, opts ...grpc.CallOption) (*QueryValidatorResponse, error)
  1529  	// ValidatorDelegations queries delegate info for given validator.
  1530  	ValidatorDelegations(ctx context.Context, in *QueryValidatorDelegationsRequest, opts ...grpc.CallOption) (*QueryValidatorDelegationsResponse, error)
  1531  	// ValidatorUnbondingDelegations queries unbonding delegations of a validator.
  1532  	ValidatorUnbondingDelegations(ctx context.Context, in *QueryValidatorUnbondingDelegationsRequest, opts ...grpc.CallOption) (*QueryValidatorUnbondingDelegationsResponse, error)
  1533  	// Delegation queries delegate info for given validator delegator pair.
  1534  	Delegation(ctx context.Context, in *QueryDelegationRequest, opts ...grpc.CallOption) (*QueryDelegationResponse, error)
  1535  	// UnbondingDelegation queries unbonding info for given validator delegator
  1536  	// pair.
  1537  	UnbondingDelegation(ctx context.Context, in *QueryUnbondingDelegationRequest, opts ...grpc.CallOption) (*QueryUnbondingDelegationResponse, error)
  1538  	// DelegatorDelegations queries all delegations of a given delegator address.
  1539  	DelegatorDelegations(ctx context.Context, in *QueryDelegatorDelegationsRequest, opts ...grpc.CallOption) (*QueryDelegatorDelegationsResponse, error)
  1540  	// DelegatorUnbondingDelegations queries all unbonding delegations of a given
  1541  	// delegator address.
  1542  	DelegatorUnbondingDelegations(ctx context.Context, in *QueryDelegatorUnbondingDelegationsRequest, opts ...grpc.CallOption) (*QueryDelegatorUnbondingDelegationsResponse, error)
  1543  	// Redelegations queries redelegations of given address.
  1544  	Redelegations(ctx context.Context, in *QueryRedelegationsRequest, opts ...grpc.CallOption) (*QueryRedelegationsResponse, error)
  1545  	// DelegatorValidators queries all validators info for given delegator
  1546  	// address.
  1547  	DelegatorValidators(ctx context.Context, in *QueryDelegatorValidatorsRequest, opts ...grpc.CallOption) (*QueryDelegatorValidatorsResponse, error)
  1548  	// DelegatorValidator queries validator info for given delegator validator
  1549  	// pair.
  1550  	DelegatorValidator(ctx context.Context, in *QueryDelegatorValidatorRequest, opts ...grpc.CallOption) (*QueryDelegatorValidatorResponse, error)
  1551  	// HistoricalInfo queries the historical info for given height.
  1552  	HistoricalInfo(ctx context.Context, in *QueryHistoricalInfoRequest, opts ...grpc.CallOption) (*QueryHistoricalInfoResponse, error)
  1553  	// Pool queries the pool info.
  1554  	Pool(ctx context.Context, in *QueryPoolRequest, opts ...grpc.CallOption) (*QueryPoolResponse, error)
  1555  	// Parameters queries the staking parameters.
  1556  	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
  1557  }
  1558  
  1559  type queryClient struct {
  1560  	cc grpc1.ClientConn
  1561  }
  1562  
  1563  func NewQueryClient(cc grpc1.ClientConn) QueryClient {
  1564  	return &queryClient{cc}
  1565  }
  1566  
  1567  func (c *queryClient) Validators(ctx context.Context, in *QueryValidatorsRequest, opts ...grpc.CallOption) (*QueryValidatorsResponse, error) {
  1568  	out := new(QueryValidatorsResponse)
  1569  	err := c.cc.Invoke(ctx, "/cosmos.staking.v1beta1.Query/Validators", in, out, opts...)
  1570  	if err != nil {
  1571  		return nil, err
  1572  	}
  1573  	return out, nil
  1574  }
  1575  
  1576  func (c *queryClient) Validator(ctx context.Context, in *QueryValidatorRequest, opts ...grpc.CallOption) (*QueryValidatorResponse, error) {
  1577  	out := new(QueryValidatorResponse)
  1578  	err := c.cc.Invoke(ctx, "/cosmos.staking.v1beta1.Query/Validator", in, out, opts...)
  1579  	if err != nil {
  1580  		return nil, err
  1581  	}
  1582  	return out, nil
  1583  }
  1584  
  1585  func (c *queryClient) ValidatorDelegations(ctx context.Context, in *QueryValidatorDelegationsRequest, opts ...grpc.CallOption) (*QueryValidatorDelegationsResponse, error) {
  1586  	out := new(QueryValidatorDelegationsResponse)
  1587  	err := c.cc.Invoke(ctx, "/cosmos.staking.v1beta1.Query/ValidatorDelegations", in, out, opts...)
  1588  	if err != nil {
  1589  		return nil, err
  1590  	}
  1591  	return out, nil
  1592  }
  1593  
  1594  func (c *queryClient) ValidatorUnbondingDelegations(ctx context.Context, in *QueryValidatorUnbondingDelegationsRequest, opts ...grpc.CallOption) (*QueryValidatorUnbondingDelegationsResponse, error) {
  1595  	out := new(QueryValidatorUnbondingDelegationsResponse)
  1596  	err := c.cc.Invoke(ctx, "/cosmos.staking.v1beta1.Query/ValidatorUnbondingDelegations", in, out, opts...)
  1597  	if err != nil {
  1598  		return nil, err
  1599  	}
  1600  	return out, nil
  1601  }
  1602  
  1603  func (c *queryClient) Delegation(ctx context.Context, in *QueryDelegationRequest, opts ...grpc.CallOption) (*QueryDelegationResponse, error) {
  1604  	out := new(QueryDelegationResponse)
  1605  	err := c.cc.Invoke(ctx, "/cosmos.staking.v1beta1.Query/Delegation", in, out, opts...)
  1606  	if err != nil {
  1607  		return nil, err
  1608  	}
  1609  	return out, nil
  1610  }
  1611  
  1612  func (c *queryClient) UnbondingDelegation(ctx context.Context, in *QueryUnbondingDelegationRequest, opts ...grpc.CallOption) (*QueryUnbondingDelegationResponse, error) {
  1613  	out := new(QueryUnbondingDelegationResponse)
  1614  	err := c.cc.Invoke(ctx, "/cosmos.staking.v1beta1.Query/UnbondingDelegation", in, out, opts...)
  1615  	if err != nil {
  1616  		return nil, err
  1617  	}
  1618  	return out, nil
  1619  }
  1620  
  1621  func (c *queryClient) DelegatorDelegations(ctx context.Context, in *QueryDelegatorDelegationsRequest, opts ...grpc.CallOption) (*QueryDelegatorDelegationsResponse, error) {
  1622  	out := new(QueryDelegatorDelegationsResponse)
  1623  	err := c.cc.Invoke(ctx, "/cosmos.staking.v1beta1.Query/DelegatorDelegations", in, out, opts...)
  1624  	if err != nil {
  1625  		return nil, err
  1626  	}
  1627  	return out, nil
  1628  }
  1629  
  1630  func (c *queryClient) DelegatorUnbondingDelegations(ctx context.Context, in *QueryDelegatorUnbondingDelegationsRequest, opts ...grpc.CallOption) (*QueryDelegatorUnbondingDelegationsResponse, error) {
  1631  	out := new(QueryDelegatorUnbondingDelegationsResponse)
  1632  	err := c.cc.Invoke(ctx, "/cosmos.staking.v1beta1.Query/DelegatorUnbondingDelegations", in, out, opts...)
  1633  	if err != nil {
  1634  		return nil, err
  1635  	}
  1636  	return out, nil
  1637  }
  1638  
  1639  func (c *queryClient) Redelegations(ctx context.Context, in *QueryRedelegationsRequest, opts ...grpc.CallOption) (*QueryRedelegationsResponse, error) {
  1640  	out := new(QueryRedelegationsResponse)
  1641  	err := c.cc.Invoke(ctx, "/cosmos.staking.v1beta1.Query/Redelegations", in, out, opts...)
  1642  	if err != nil {
  1643  		return nil, err
  1644  	}
  1645  	return out, nil
  1646  }
  1647  
  1648  func (c *queryClient) DelegatorValidators(ctx context.Context, in *QueryDelegatorValidatorsRequest, opts ...grpc.CallOption) (*QueryDelegatorValidatorsResponse, error) {
  1649  	out := new(QueryDelegatorValidatorsResponse)
  1650  	err := c.cc.Invoke(ctx, "/cosmos.staking.v1beta1.Query/DelegatorValidators", in, out, opts...)
  1651  	if err != nil {
  1652  		return nil, err
  1653  	}
  1654  	return out, nil
  1655  }
  1656  
  1657  func (c *queryClient) DelegatorValidator(ctx context.Context, in *QueryDelegatorValidatorRequest, opts ...grpc.CallOption) (*QueryDelegatorValidatorResponse, error) {
  1658  	out := new(QueryDelegatorValidatorResponse)
  1659  	err := c.cc.Invoke(ctx, "/cosmos.staking.v1beta1.Query/DelegatorValidator", in, out, opts...)
  1660  	if err != nil {
  1661  		return nil, err
  1662  	}
  1663  	return out, nil
  1664  }
  1665  
  1666  func (c *queryClient) HistoricalInfo(ctx context.Context, in *QueryHistoricalInfoRequest, opts ...grpc.CallOption) (*QueryHistoricalInfoResponse, error) {
  1667  	out := new(QueryHistoricalInfoResponse)
  1668  	err := c.cc.Invoke(ctx, "/cosmos.staking.v1beta1.Query/HistoricalInfo", in, out, opts...)
  1669  	if err != nil {
  1670  		return nil, err
  1671  	}
  1672  	return out, nil
  1673  }
  1674  
  1675  func (c *queryClient) Pool(ctx context.Context, in *QueryPoolRequest, opts ...grpc.CallOption) (*QueryPoolResponse, error) {
  1676  	out := new(QueryPoolResponse)
  1677  	err := c.cc.Invoke(ctx, "/cosmos.staking.v1beta1.Query/Pool", in, out, opts...)
  1678  	if err != nil {
  1679  		return nil, err
  1680  	}
  1681  	return out, nil
  1682  }
  1683  
  1684  func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) {
  1685  	out := new(QueryParamsResponse)
  1686  	err := c.cc.Invoke(ctx, "/cosmos.staking.v1beta1.Query/Params", in, out, opts...)
  1687  	if err != nil {
  1688  		return nil, err
  1689  	}
  1690  	return out, nil
  1691  }
  1692  
  1693  // QueryServer is the server API for Query service.
  1694  type QueryServer interface {
  1695  	// Validators queries all validators that match the given status.
  1696  	Validators(context.Context, *QueryValidatorsRequest) (*QueryValidatorsResponse, error)
  1697  	// Validator queries validator info for given validator address.
  1698  	Validator(context.Context, *QueryValidatorRequest) (*QueryValidatorResponse, error)
  1699  	// ValidatorDelegations queries delegate info for given validator.
  1700  	ValidatorDelegations(context.Context, *QueryValidatorDelegationsRequest) (*QueryValidatorDelegationsResponse, error)
  1701  	// ValidatorUnbondingDelegations queries unbonding delegations of a validator.
  1702  	ValidatorUnbondingDelegations(context.Context, *QueryValidatorUnbondingDelegationsRequest) (*QueryValidatorUnbondingDelegationsResponse, error)
  1703  	// Delegation queries delegate info for given validator delegator pair.
  1704  	Delegation(context.Context, *QueryDelegationRequest) (*QueryDelegationResponse, error)
  1705  	// UnbondingDelegation queries unbonding info for given validator delegator
  1706  	// pair.
  1707  	UnbondingDelegation(context.Context, *QueryUnbondingDelegationRequest) (*QueryUnbondingDelegationResponse, error)
  1708  	// DelegatorDelegations queries all delegations of a given delegator address.
  1709  	DelegatorDelegations(context.Context, *QueryDelegatorDelegationsRequest) (*QueryDelegatorDelegationsResponse, error)
  1710  	// DelegatorUnbondingDelegations queries all unbonding delegations of a given
  1711  	// delegator address.
  1712  	DelegatorUnbondingDelegations(context.Context, *QueryDelegatorUnbondingDelegationsRequest) (*QueryDelegatorUnbondingDelegationsResponse, error)
  1713  	// Redelegations queries redelegations of given address.
  1714  	Redelegations(context.Context, *QueryRedelegationsRequest) (*QueryRedelegationsResponse, error)
  1715  	// DelegatorValidators queries all validators info for given delegator
  1716  	// address.
  1717  	DelegatorValidators(context.Context, *QueryDelegatorValidatorsRequest) (*QueryDelegatorValidatorsResponse, error)
  1718  	// DelegatorValidator queries validator info for given delegator validator
  1719  	// pair.
  1720  	DelegatorValidator(context.Context, *QueryDelegatorValidatorRequest) (*QueryDelegatorValidatorResponse, error)
  1721  	// HistoricalInfo queries the historical info for given height.
  1722  	HistoricalInfo(context.Context, *QueryHistoricalInfoRequest) (*QueryHistoricalInfoResponse, error)
  1723  	// Pool queries the pool info.
  1724  	Pool(context.Context, *QueryPoolRequest) (*QueryPoolResponse, error)
  1725  	// Parameters queries the staking parameters.
  1726  	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
  1727  }
  1728  
  1729  // UnimplementedQueryServer can be embedded to have forward compatible implementations.
  1730  type UnimplementedQueryServer struct {
  1731  }
  1732  
  1733  func (*UnimplementedQueryServer) Validators(ctx context.Context, req *QueryValidatorsRequest) (*QueryValidatorsResponse, error) {
  1734  	return nil, status.Errorf(codes.Unimplemented, "method Validators not implemented")
  1735  }
  1736  func (*UnimplementedQueryServer) Validator(ctx context.Context, req *QueryValidatorRequest) (*QueryValidatorResponse, error) {
  1737  	return nil, status.Errorf(codes.Unimplemented, "method Validator not implemented")
  1738  }
  1739  func (*UnimplementedQueryServer) ValidatorDelegations(ctx context.Context, req *QueryValidatorDelegationsRequest) (*QueryValidatorDelegationsResponse, error) {
  1740  	return nil, status.Errorf(codes.Unimplemented, "method ValidatorDelegations not implemented")
  1741  }
  1742  func (*UnimplementedQueryServer) ValidatorUnbondingDelegations(ctx context.Context, req *QueryValidatorUnbondingDelegationsRequest) (*QueryValidatorUnbondingDelegationsResponse, error) {
  1743  	return nil, status.Errorf(codes.Unimplemented, "method ValidatorUnbondingDelegations not implemented")
  1744  }
  1745  func (*UnimplementedQueryServer) Delegation(ctx context.Context, req *QueryDelegationRequest) (*QueryDelegationResponse, error) {
  1746  	return nil, status.Errorf(codes.Unimplemented, "method Delegation not implemented")
  1747  }
  1748  func (*UnimplementedQueryServer) UnbondingDelegation(ctx context.Context, req *QueryUnbondingDelegationRequest) (*QueryUnbondingDelegationResponse, error) {
  1749  	return nil, status.Errorf(codes.Unimplemented, "method UnbondingDelegation not implemented")
  1750  }
  1751  func (*UnimplementedQueryServer) DelegatorDelegations(ctx context.Context, req *QueryDelegatorDelegationsRequest) (*QueryDelegatorDelegationsResponse, error) {
  1752  	return nil, status.Errorf(codes.Unimplemented, "method DelegatorDelegations not implemented")
  1753  }
  1754  func (*UnimplementedQueryServer) DelegatorUnbondingDelegations(ctx context.Context, req *QueryDelegatorUnbondingDelegationsRequest) (*QueryDelegatorUnbondingDelegationsResponse, error) {
  1755  	return nil, status.Errorf(codes.Unimplemented, "method DelegatorUnbondingDelegations not implemented")
  1756  }
  1757  func (*UnimplementedQueryServer) Redelegations(ctx context.Context, req *QueryRedelegationsRequest) (*QueryRedelegationsResponse, error) {
  1758  	return nil, status.Errorf(codes.Unimplemented, "method Redelegations not implemented")
  1759  }
  1760  func (*UnimplementedQueryServer) DelegatorValidators(ctx context.Context, req *QueryDelegatorValidatorsRequest) (*QueryDelegatorValidatorsResponse, error) {
  1761  	return nil, status.Errorf(codes.Unimplemented, "method DelegatorValidators not implemented")
  1762  }
  1763  func (*UnimplementedQueryServer) DelegatorValidator(ctx context.Context, req *QueryDelegatorValidatorRequest) (*QueryDelegatorValidatorResponse, error) {
  1764  	return nil, status.Errorf(codes.Unimplemented, "method DelegatorValidator not implemented")
  1765  }
  1766  func (*UnimplementedQueryServer) HistoricalInfo(ctx context.Context, req *QueryHistoricalInfoRequest) (*QueryHistoricalInfoResponse, error) {
  1767  	return nil, status.Errorf(codes.Unimplemented, "method HistoricalInfo not implemented")
  1768  }
  1769  func (*UnimplementedQueryServer) Pool(ctx context.Context, req *QueryPoolRequest) (*QueryPoolResponse, error) {
  1770  	return nil, status.Errorf(codes.Unimplemented, "method Pool not implemented")
  1771  }
  1772  func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) {
  1773  	return nil, status.Errorf(codes.Unimplemented, "method Params not implemented")
  1774  }
  1775  
  1776  func RegisterQueryServer(s grpc1.Server, srv QueryServer) {
  1777  	s.RegisterService(&_Query_serviceDesc, srv)
  1778  }
  1779  
  1780  func _Query_Validators_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1781  	in := new(QueryValidatorsRequest)
  1782  	if err := dec(in); err != nil {
  1783  		return nil, err
  1784  	}
  1785  	if interceptor == nil {
  1786  		return srv.(QueryServer).Validators(ctx, in)
  1787  	}
  1788  	info := &grpc.UnaryServerInfo{
  1789  		Server:     srv,
  1790  		FullMethod: "/cosmos.staking.v1beta1.Query/Validators",
  1791  	}
  1792  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1793  		return srv.(QueryServer).Validators(ctx, req.(*QueryValidatorsRequest))
  1794  	}
  1795  	return interceptor(ctx, in, info, handler)
  1796  }
  1797  
  1798  func _Query_Validator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1799  	in := new(QueryValidatorRequest)
  1800  	if err := dec(in); err != nil {
  1801  		return nil, err
  1802  	}
  1803  	if interceptor == nil {
  1804  		return srv.(QueryServer).Validator(ctx, in)
  1805  	}
  1806  	info := &grpc.UnaryServerInfo{
  1807  		Server:     srv,
  1808  		FullMethod: "/cosmos.staking.v1beta1.Query/Validator",
  1809  	}
  1810  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1811  		return srv.(QueryServer).Validator(ctx, req.(*QueryValidatorRequest))
  1812  	}
  1813  	return interceptor(ctx, in, info, handler)
  1814  }
  1815  
  1816  func _Query_ValidatorDelegations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1817  	in := new(QueryValidatorDelegationsRequest)
  1818  	if err := dec(in); err != nil {
  1819  		return nil, err
  1820  	}
  1821  	if interceptor == nil {
  1822  		return srv.(QueryServer).ValidatorDelegations(ctx, in)
  1823  	}
  1824  	info := &grpc.UnaryServerInfo{
  1825  		Server:     srv,
  1826  		FullMethod: "/cosmos.staking.v1beta1.Query/ValidatorDelegations",
  1827  	}
  1828  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1829  		return srv.(QueryServer).ValidatorDelegations(ctx, req.(*QueryValidatorDelegationsRequest))
  1830  	}
  1831  	return interceptor(ctx, in, info, handler)
  1832  }
  1833  
  1834  func _Query_ValidatorUnbondingDelegations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1835  	in := new(QueryValidatorUnbondingDelegationsRequest)
  1836  	if err := dec(in); err != nil {
  1837  		return nil, err
  1838  	}
  1839  	if interceptor == nil {
  1840  		return srv.(QueryServer).ValidatorUnbondingDelegations(ctx, in)
  1841  	}
  1842  	info := &grpc.UnaryServerInfo{
  1843  		Server:     srv,
  1844  		FullMethod: "/cosmos.staking.v1beta1.Query/ValidatorUnbondingDelegations",
  1845  	}
  1846  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1847  		return srv.(QueryServer).ValidatorUnbondingDelegations(ctx, req.(*QueryValidatorUnbondingDelegationsRequest))
  1848  	}
  1849  	return interceptor(ctx, in, info, handler)
  1850  }
  1851  
  1852  func _Query_Delegation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1853  	in := new(QueryDelegationRequest)
  1854  	if err := dec(in); err != nil {
  1855  		return nil, err
  1856  	}
  1857  	if interceptor == nil {
  1858  		return srv.(QueryServer).Delegation(ctx, in)
  1859  	}
  1860  	info := &grpc.UnaryServerInfo{
  1861  		Server:     srv,
  1862  		FullMethod: "/cosmos.staking.v1beta1.Query/Delegation",
  1863  	}
  1864  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1865  		return srv.(QueryServer).Delegation(ctx, req.(*QueryDelegationRequest))
  1866  	}
  1867  	return interceptor(ctx, in, info, handler)
  1868  }
  1869  
  1870  func _Query_UnbondingDelegation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1871  	in := new(QueryUnbondingDelegationRequest)
  1872  	if err := dec(in); err != nil {
  1873  		return nil, err
  1874  	}
  1875  	if interceptor == nil {
  1876  		return srv.(QueryServer).UnbondingDelegation(ctx, in)
  1877  	}
  1878  	info := &grpc.UnaryServerInfo{
  1879  		Server:     srv,
  1880  		FullMethod: "/cosmos.staking.v1beta1.Query/UnbondingDelegation",
  1881  	}
  1882  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1883  		return srv.(QueryServer).UnbondingDelegation(ctx, req.(*QueryUnbondingDelegationRequest))
  1884  	}
  1885  	return interceptor(ctx, in, info, handler)
  1886  }
  1887  
  1888  func _Query_DelegatorDelegations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1889  	in := new(QueryDelegatorDelegationsRequest)
  1890  	if err := dec(in); err != nil {
  1891  		return nil, err
  1892  	}
  1893  	if interceptor == nil {
  1894  		return srv.(QueryServer).DelegatorDelegations(ctx, in)
  1895  	}
  1896  	info := &grpc.UnaryServerInfo{
  1897  		Server:     srv,
  1898  		FullMethod: "/cosmos.staking.v1beta1.Query/DelegatorDelegations",
  1899  	}
  1900  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1901  		return srv.(QueryServer).DelegatorDelegations(ctx, req.(*QueryDelegatorDelegationsRequest))
  1902  	}
  1903  	return interceptor(ctx, in, info, handler)
  1904  }
  1905  
  1906  func _Query_DelegatorUnbondingDelegations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1907  	in := new(QueryDelegatorUnbondingDelegationsRequest)
  1908  	if err := dec(in); err != nil {
  1909  		return nil, err
  1910  	}
  1911  	if interceptor == nil {
  1912  		return srv.(QueryServer).DelegatorUnbondingDelegations(ctx, in)
  1913  	}
  1914  	info := &grpc.UnaryServerInfo{
  1915  		Server:     srv,
  1916  		FullMethod: "/cosmos.staking.v1beta1.Query/DelegatorUnbondingDelegations",
  1917  	}
  1918  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1919  		return srv.(QueryServer).DelegatorUnbondingDelegations(ctx, req.(*QueryDelegatorUnbondingDelegationsRequest))
  1920  	}
  1921  	return interceptor(ctx, in, info, handler)
  1922  }
  1923  
  1924  func _Query_Redelegations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1925  	in := new(QueryRedelegationsRequest)
  1926  	if err := dec(in); err != nil {
  1927  		return nil, err
  1928  	}
  1929  	if interceptor == nil {
  1930  		return srv.(QueryServer).Redelegations(ctx, in)
  1931  	}
  1932  	info := &grpc.UnaryServerInfo{
  1933  		Server:     srv,
  1934  		FullMethod: "/cosmos.staking.v1beta1.Query/Redelegations",
  1935  	}
  1936  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1937  		return srv.(QueryServer).Redelegations(ctx, req.(*QueryRedelegationsRequest))
  1938  	}
  1939  	return interceptor(ctx, in, info, handler)
  1940  }
  1941  
  1942  func _Query_DelegatorValidators_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1943  	in := new(QueryDelegatorValidatorsRequest)
  1944  	if err := dec(in); err != nil {
  1945  		return nil, err
  1946  	}
  1947  	if interceptor == nil {
  1948  		return srv.(QueryServer).DelegatorValidators(ctx, in)
  1949  	}
  1950  	info := &grpc.UnaryServerInfo{
  1951  		Server:     srv,
  1952  		FullMethod: "/cosmos.staking.v1beta1.Query/DelegatorValidators",
  1953  	}
  1954  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1955  		return srv.(QueryServer).DelegatorValidators(ctx, req.(*QueryDelegatorValidatorsRequest))
  1956  	}
  1957  	return interceptor(ctx, in, info, handler)
  1958  }
  1959  
  1960  func _Query_DelegatorValidator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1961  	in := new(QueryDelegatorValidatorRequest)
  1962  	if err := dec(in); err != nil {
  1963  		return nil, err
  1964  	}
  1965  	if interceptor == nil {
  1966  		return srv.(QueryServer).DelegatorValidator(ctx, in)
  1967  	}
  1968  	info := &grpc.UnaryServerInfo{
  1969  		Server:     srv,
  1970  		FullMethod: "/cosmos.staking.v1beta1.Query/DelegatorValidator",
  1971  	}
  1972  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1973  		return srv.(QueryServer).DelegatorValidator(ctx, req.(*QueryDelegatorValidatorRequest))
  1974  	}
  1975  	return interceptor(ctx, in, info, handler)
  1976  }
  1977  
  1978  func _Query_HistoricalInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1979  	in := new(QueryHistoricalInfoRequest)
  1980  	if err := dec(in); err != nil {
  1981  		return nil, err
  1982  	}
  1983  	if interceptor == nil {
  1984  		return srv.(QueryServer).HistoricalInfo(ctx, in)
  1985  	}
  1986  	info := &grpc.UnaryServerInfo{
  1987  		Server:     srv,
  1988  		FullMethod: "/cosmos.staking.v1beta1.Query/HistoricalInfo",
  1989  	}
  1990  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1991  		return srv.(QueryServer).HistoricalInfo(ctx, req.(*QueryHistoricalInfoRequest))
  1992  	}
  1993  	return interceptor(ctx, in, info, handler)
  1994  }
  1995  
  1996  func _Query_Pool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1997  	in := new(QueryPoolRequest)
  1998  	if err := dec(in); err != nil {
  1999  		return nil, err
  2000  	}
  2001  	if interceptor == nil {
  2002  		return srv.(QueryServer).Pool(ctx, in)
  2003  	}
  2004  	info := &grpc.UnaryServerInfo{
  2005  		Server:     srv,
  2006  		FullMethod: "/cosmos.staking.v1beta1.Query/Pool",
  2007  	}
  2008  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2009  		return srv.(QueryServer).Pool(ctx, req.(*QueryPoolRequest))
  2010  	}
  2011  	return interceptor(ctx, in, info, handler)
  2012  }
  2013  
  2014  func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2015  	in := new(QueryParamsRequest)
  2016  	if err := dec(in); err != nil {
  2017  		return nil, err
  2018  	}
  2019  	if interceptor == nil {
  2020  		return srv.(QueryServer).Params(ctx, in)
  2021  	}
  2022  	info := &grpc.UnaryServerInfo{
  2023  		Server:     srv,
  2024  		FullMethod: "/cosmos.staking.v1beta1.Query/Params",
  2025  	}
  2026  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2027  		return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest))
  2028  	}
  2029  	return interceptor(ctx, in, info, handler)
  2030  }
  2031  
  2032  var _Query_serviceDesc = grpc.ServiceDesc{
  2033  	ServiceName: "cosmos.staking.v1beta1.Query",
  2034  	HandlerType: (*QueryServer)(nil),
  2035  	Methods: []grpc.MethodDesc{
  2036  		{
  2037  			MethodName: "Validators",
  2038  			Handler:    _Query_Validators_Handler,
  2039  		},
  2040  		{
  2041  			MethodName: "Validator",
  2042  			Handler:    _Query_Validator_Handler,
  2043  		},
  2044  		{
  2045  			MethodName: "ValidatorDelegations",
  2046  			Handler:    _Query_ValidatorDelegations_Handler,
  2047  		},
  2048  		{
  2049  			MethodName: "ValidatorUnbondingDelegations",
  2050  			Handler:    _Query_ValidatorUnbondingDelegations_Handler,
  2051  		},
  2052  		{
  2053  			MethodName: "Delegation",
  2054  			Handler:    _Query_Delegation_Handler,
  2055  		},
  2056  		{
  2057  			MethodName: "UnbondingDelegation",
  2058  			Handler:    _Query_UnbondingDelegation_Handler,
  2059  		},
  2060  		{
  2061  			MethodName: "DelegatorDelegations",
  2062  			Handler:    _Query_DelegatorDelegations_Handler,
  2063  		},
  2064  		{
  2065  			MethodName: "DelegatorUnbondingDelegations",
  2066  			Handler:    _Query_DelegatorUnbondingDelegations_Handler,
  2067  		},
  2068  		{
  2069  			MethodName: "Redelegations",
  2070  			Handler:    _Query_Redelegations_Handler,
  2071  		},
  2072  		{
  2073  			MethodName: "DelegatorValidators",
  2074  			Handler:    _Query_DelegatorValidators_Handler,
  2075  		},
  2076  		{
  2077  			MethodName: "DelegatorValidator",
  2078  			Handler:    _Query_DelegatorValidator_Handler,
  2079  		},
  2080  		{
  2081  			MethodName: "HistoricalInfo",
  2082  			Handler:    _Query_HistoricalInfo_Handler,
  2083  		},
  2084  		{
  2085  			MethodName: "Pool",
  2086  			Handler:    _Query_Pool_Handler,
  2087  		},
  2088  		{
  2089  			MethodName: "Params",
  2090  			Handler:    _Query_Params_Handler,
  2091  		},
  2092  	},
  2093  	Streams:  []grpc.StreamDesc{},
  2094  	Metadata: "cosmos/staking/v1beta1/query.proto",
  2095  }
  2096  
  2097  func (m *QueryValidatorsRequest) Marshal() (dAtA []byte, err error) {
  2098  	size := m.Size()
  2099  	dAtA = make([]byte, size)
  2100  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2101  	if err != nil {
  2102  		return nil, err
  2103  	}
  2104  	return dAtA[:n], nil
  2105  }
  2106  
  2107  func (m *QueryValidatorsRequest) MarshalTo(dAtA []byte) (int, error) {
  2108  	size := m.Size()
  2109  	return m.MarshalToSizedBuffer(dAtA[:size])
  2110  }
  2111  
  2112  func (m *QueryValidatorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2113  	i := len(dAtA)
  2114  	_ = i
  2115  	var l int
  2116  	_ = l
  2117  	if m.Pagination != nil {
  2118  		{
  2119  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2120  			if err != nil {
  2121  				return 0, err
  2122  			}
  2123  			i -= size
  2124  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2125  		}
  2126  		i--
  2127  		dAtA[i] = 0x12
  2128  	}
  2129  	if len(m.Status) > 0 {
  2130  		i -= len(m.Status)
  2131  		copy(dAtA[i:], m.Status)
  2132  		i = encodeVarintQuery(dAtA, i, uint64(len(m.Status)))
  2133  		i--
  2134  		dAtA[i] = 0xa
  2135  	}
  2136  	return len(dAtA) - i, nil
  2137  }
  2138  
  2139  func (m *QueryValidatorsResponse) Marshal() (dAtA []byte, err error) {
  2140  	size := m.Size()
  2141  	dAtA = make([]byte, size)
  2142  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2143  	if err != nil {
  2144  		return nil, err
  2145  	}
  2146  	return dAtA[:n], nil
  2147  }
  2148  
  2149  func (m *QueryValidatorsResponse) MarshalTo(dAtA []byte) (int, error) {
  2150  	size := m.Size()
  2151  	return m.MarshalToSizedBuffer(dAtA[:size])
  2152  }
  2153  
  2154  func (m *QueryValidatorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2155  	i := len(dAtA)
  2156  	_ = i
  2157  	var l int
  2158  	_ = l
  2159  	if m.Pagination != nil {
  2160  		{
  2161  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2162  			if err != nil {
  2163  				return 0, err
  2164  			}
  2165  			i -= size
  2166  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2167  		}
  2168  		i--
  2169  		dAtA[i] = 0x12
  2170  	}
  2171  	if len(m.Validators) > 0 {
  2172  		for iNdEx := len(m.Validators) - 1; iNdEx >= 0; iNdEx-- {
  2173  			{
  2174  				size, err := m.Validators[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2175  				if err != nil {
  2176  					return 0, err
  2177  				}
  2178  				i -= size
  2179  				i = encodeVarintQuery(dAtA, i, uint64(size))
  2180  			}
  2181  			i--
  2182  			dAtA[i] = 0xa
  2183  		}
  2184  	}
  2185  	return len(dAtA) - i, nil
  2186  }
  2187  
  2188  func (m *QueryValidatorRequest) Marshal() (dAtA []byte, err error) {
  2189  	size := m.Size()
  2190  	dAtA = make([]byte, size)
  2191  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2192  	if err != nil {
  2193  		return nil, err
  2194  	}
  2195  	return dAtA[:n], nil
  2196  }
  2197  
  2198  func (m *QueryValidatorRequest) MarshalTo(dAtA []byte) (int, error) {
  2199  	size := m.Size()
  2200  	return m.MarshalToSizedBuffer(dAtA[:size])
  2201  }
  2202  
  2203  func (m *QueryValidatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2204  	i := len(dAtA)
  2205  	_ = i
  2206  	var l int
  2207  	_ = l
  2208  	if len(m.ValidatorAddr) > 0 {
  2209  		i -= len(m.ValidatorAddr)
  2210  		copy(dAtA[i:], m.ValidatorAddr)
  2211  		i = encodeVarintQuery(dAtA, i, uint64(len(m.ValidatorAddr)))
  2212  		i--
  2213  		dAtA[i] = 0xa
  2214  	}
  2215  	return len(dAtA) - i, nil
  2216  }
  2217  
  2218  func (m *QueryValidatorResponse) Marshal() (dAtA []byte, err error) {
  2219  	size := m.Size()
  2220  	dAtA = make([]byte, size)
  2221  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2222  	if err != nil {
  2223  		return nil, err
  2224  	}
  2225  	return dAtA[:n], nil
  2226  }
  2227  
  2228  func (m *QueryValidatorResponse) MarshalTo(dAtA []byte) (int, error) {
  2229  	size := m.Size()
  2230  	return m.MarshalToSizedBuffer(dAtA[:size])
  2231  }
  2232  
  2233  func (m *QueryValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2234  	i := len(dAtA)
  2235  	_ = i
  2236  	var l int
  2237  	_ = l
  2238  	{
  2239  		size, err := m.Validator.MarshalToSizedBuffer(dAtA[:i])
  2240  		if err != nil {
  2241  			return 0, err
  2242  		}
  2243  		i -= size
  2244  		i = encodeVarintQuery(dAtA, i, uint64(size))
  2245  	}
  2246  	i--
  2247  	dAtA[i] = 0xa
  2248  	return len(dAtA) - i, nil
  2249  }
  2250  
  2251  func (m *QueryValidatorDelegationsRequest) Marshal() (dAtA []byte, err error) {
  2252  	size := m.Size()
  2253  	dAtA = make([]byte, size)
  2254  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2255  	if err != nil {
  2256  		return nil, err
  2257  	}
  2258  	return dAtA[:n], nil
  2259  }
  2260  
  2261  func (m *QueryValidatorDelegationsRequest) MarshalTo(dAtA []byte) (int, error) {
  2262  	size := m.Size()
  2263  	return m.MarshalToSizedBuffer(dAtA[:size])
  2264  }
  2265  
  2266  func (m *QueryValidatorDelegationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2267  	i := len(dAtA)
  2268  	_ = i
  2269  	var l int
  2270  	_ = l
  2271  	if m.Pagination != nil {
  2272  		{
  2273  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2274  			if err != nil {
  2275  				return 0, err
  2276  			}
  2277  			i -= size
  2278  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2279  		}
  2280  		i--
  2281  		dAtA[i] = 0x12
  2282  	}
  2283  	if len(m.ValidatorAddr) > 0 {
  2284  		i -= len(m.ValidatorAddr)
  2285  		copy(dAtA[i:], m.ValidatorAddr)
  2286  		i = encodeVarintQuery(dAtA, i, uint64(len(m.ValidatorAddr)))
  2287  		i--
  2288  		dAtA[i] = 0xa
  2289  	}
  2290  	return len(dAtA) - i, nil
  2291  }
  2292  
  2293  func (m *QueryValidatorDelegationsResponse) Marshal() (dAtA []byte, err error) {
  2294  	size := m.Size()
  2295  	dAtA = make([]byte, size)
  2296  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2297  	if err != nil {
  2298  		return nil, err
  2299  	}
  2300  	return dAtA[:n], nil
  2301  }
  2302  
  2303  func (m *QueryValidatorDelegationsResponse) MarshalTo(dAtA []byte) (int, error) {
  2304  	size := m.Size()
  2305  	return m.MarshalToSizedBuffer(dAtA[:size])
  2306  }
  2307  
  2308  func (m *QueryValidatorDelegationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2309  	i := len(dAtA)
  2310  	_ = i
  2311  	var l int
  2312  	_ = l
  2313  	if m.Pagination != nil {
  2314  		{
  2315  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2316  			if err != nil {
  2317  				return 0, err
  2318  			}
  2319  			i -= size
  2320  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2321  		}
  2322  		i--
  2323  		dAtA[i] = 0x12
  2324  	}
  2325  	if len(m.DelegationResponses) > 0 {
  2326  		for iNdEx := len(m.DelegationResponses) - 1; iNdEx >= 0; iNdEx-- {
  2327  			{
  2328  				size, err := m.DelegationResponses[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2329  				if err != nil {
  2330  					return 0, err
  2331  				}
  2332  				i -= size
  2333  				i = encodeVarintQuery(dAtA, i, uint64(size))
  2334  			}
  2335  			i--
  2336  			dAtA[i] = 0xa
  2337  		}
  2338  	}
  2339  	return len(dAtA) - i, nil
  2340  }
  2341  
  2342  func (m *QueryValidatorUnbondingDelegationsRequest) Marshal() (dAtA []byte, err error) {
  2343  	size := m.Size()
  2344  	dAtA = make([]byte, size)
  2345  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2346  	if err != nil {
  2347  		return nil, err
  2348  	}
  2349  	return dAtA[:n], nil
  2350  }
  2351  
  2352  func (m *QueryValidatorUnbondingDelegationsRequest) MarshalTo(dAtA []byte) (int, error) {
  2353  	size := m.Size()
  2354  	return m.MarshalToSizedBuffer(dAtA[:size])
  2355  }
  2356  
  2357  func (m *QueryValidatorUnbondingDelegationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2358  	i := len(dAtA)
  2359  	_ = i
  2360  	var l int
  2361  	_ = l
  2362  	if m.Pagination != nil {
  2363  		{
  2364  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2365  			if err != nil {
  2366  				return 0, err
  2367  			}
  2368  			i -= size
  2369  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2370  		}
  2371  		i--
  2372  		dAtA[i] = 0x12
  2373  	}
  2374  	if len(m.ValidatorAddr) > 0 {
  2375  		i -= len(m.ValidatorAddr)
  2376  		copy(dAtA[i:], m.ValidatorAddr)
  2377  		i = encodeVarintQuery(dAtA, i, uint64(len(m.ValidatorAddr)))
  2378  		i--
  2379  		dAtA[i] = 0xa
  2380  	}
  2381  	return len(dAtA) - i, nil
  2382  }
  2383  
  2384  func (m *QueryValidatorUnbondingDelegationsResponse) Marshal() (dAtA []byte, err error) {
  2385  	size := m.Size()
  2386  	dAtA = make([]byte, size)
  2387  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2388  	if err != nil {
  2389  		return nil, err
  2390  	}
  2391  	return dAtA[:n], nil
  2392  }
  2393  
  2394  func (m *QueryValidatorUnbondingDelegationsResponse) MarshalTo(dAtA []byte) (int, error) {
  2395  	size := m.Size()
  2396  	return m.MarshalToSizedBuffer(dAtA[:size])
  2397  }
  2398  
  2399  func (m *QueryValidatorUnbondingDelegationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2400  	i := len(dAtA)
  2401  	_ = i
  2402  	var l int
  2403  	_ = l
  2404  	if m.Pagination != nil {
  2405  		{
  2406  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2407  			if err != nil {
  2408  				return 0, err
  2409  			}
  2410  			i -= size
  2411  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2412  		}
  2413  		i--
  2414  		dAtA[i] = 0x12
  2415  	}
  2416  	if len(m.UnbondingResponses) > 0 {
  2417  		for iNdEx := len(m.UnbondingResponses) - 1; iNdEx >= 0; iNdEx-- {
  2418  			{
  2419  				size, err := m.UnbondingResponses[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2420  				if err != nil {
  2421  					return 0, err
  2422  				}
  2423  				i -= size
  2424  				i = encodeVarintQuery(dAtA, i, uint64(size))
  2425  			}
  2426  			i--
  2427  			dAtA[i] = 0xa
  2428  		}
  2429  	}
  2430  	return len(dAtA) - i, nil
  2431  }
  2432  
  2433  func (m *QueryDelegationRequest) Marshal() (dAtA []byte, err error) {
  2434  	size := m.Size()
  2435  	dAtA = make([]byte, size)
  2436  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2437  	if err != nil {
  2438  		return nil, err
  2439  	}
  2440  	return dAtA[:n], nil
  2441  }
  2442  
  2443  func (m *QueryDelegationRequest) MarshalTo(dAtA []byte) (int, error) {
  2444  	size := m.Size()
  2445  	return m.MarshalToSizedBuffer(dAtA[:size])
  2446  }
  2447  
  2448  func (m *QueryDelegationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2449  	i := len(dAtA)
  2450  	_ = i
  2451  	var l int
  2452  	_ = l
  2453  	if len(m.ValidatorAddr) > 0 {
  2454  		i -= len(m.ValidatorAddr)
  2455  		copy(dAtA[i:], m.ValidatorAddr)
  2456  		i = encodeVarintQuery(dAtA, i, uint64(len(m.ValidatorAddr)))
  2457  		i--
  2458  		dAtA[i] = 0x12
  2459  	}
  2460  	if len(m.DelegatorAddr) > 0 {
  2461  		i -= len(m.DelegatorAddr)
  2462  		copy(dAtA[i:], m.DelegatorAddr)
  2463  		i = encodeVarintQuery(dAtA, i, uint64(len(m.DelegatorAddr)))
  2464  		i--
  2465  		dAtA[i] = 0xa
  2466  	}
  2467  	return len(dAtA) - i, nil
  2468  }
  2469  
  2470  func (m *QueryDelegationResponse) Marshal() (dAtA []byte, err error) {
  2471  	size := m.Size()
  2472  	dAtA = make([]byte, size)
  2473  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2474  	if err != nil {
  2475  		return nil, err
  2476  	}
  2477  	return dAtA[:n], nil
  2478  }
  2479  
  2480  func (m *QueryDelegationResponse) MarshalTo(dAtA []byte) (int, error) {
  2481  	size := m.Size()
  2482  	return m.MarshalToSizedBuffer(dAtA[:size])
  2483  }
  2484  
  2485  func (m *QueryDelegationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2486  	i := len(dAtA)
  2487  	_ = i
  2488  	var l int
  2489  	_ = l
  2490  	if m.DelegationResponse != nil {
  2491  		{
  2492  			size, err := m.DelegationResponse.MarshalToSizedBuffer(dAtA[:i])
  2493  			if err != nil {
  2494  				return 0, err
  2495  			}
  2496  			i -= size
  2497  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2498  		}
  2499  		i--
  2500  		dAtA[i] = 0xa
  2501  	}
  2502  	return len(dAtA) - i, nil
  2503  }
  2504  
  2505  func (m *QueryUnbondingDelegationRequest) Marshal() (dAtA []byte, err error) {
  2506  	size := m.Size()
  2507  	dAtA = make([]byte, size)
  2508  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2509  	if err != nil {
  2510  		return nil, err
  2511  	}
  2512  	return dAtA[:n], nil
  2513  }
  2514  
  2515  func (m *QueryUnbondingDelegationRequest) MarshalTo(dAtA []byte) (int, error) {
  2516  	size := m.Size()
  2517  	return m.MarshalToSizedBuffer(dAtA[:size])
  2518  }
  2519  
  2520  func (m *QueryUnbondingDelegationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2521  	i := len(dAtA)
  2522  	_ = i
  2523  	var l int
  2524  	_ = l
  2525  	if len(m.ValidatorAddr) > 0 {
  2526  		i -= len(m.ValidatorAddr)
  2527  		copy(dAtA[i:], m.ValidatorAddr)
  2528  		i = encodeVarintQuery(dAtA, i, uint64(len(m.ValidatorAddr)))
  2529  		i--
  2530  		dAtA[i] = 0x12
  2531  	}
  2532  	if len(m.DelegatorAddr) > 0 {
  2533  		i -= len(m.DelegatorAddr)
  2534  		copy(dAtA[i:], m.DelegatorAddr)
  2535  		i = encodeVarintQuery(dAtA, i, uint64(len(m.DelegatorAddr)))
  2536  		i--
  2537  		dAtA[i] = 0xa
  2538  	}
  2539  	return len(dAtA) - i, nil
  2540  }
  2541  
  2542  func (m *QueryUnbondingDelegationResponse) Marshal() (dAtA []byte, err error) {
  2543  	size := m.Size()
  2544  	dAtA = make([]byte, size)
  2545  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2546  	if err != nil {
  2547  		return nil, err
  2548  	}
  2549  	return dAtA[:n], nil
  2550  }
  2551  
  2552  func (m *QueryUnbondingDelegationResponse) MarshalTo(dAtA []byte) (int, error) {
  2553  	size := m.Size()
  2554  	return m.MarshalToSizedBuffer(dAtA[:size])
  2555  }
  2556  
  2557  func (m *QueryUnbondingDelegationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2558  	i := len(dAtA)
  2559  	_ = i
  2560  	var l int
  2561  	_ = l
  2562  	{
  2563  		size, err := m.Unbond.MarshalToSizedBuffer(dAtA[:i])
  2564  		if err != nil {
  2565  			return 0, err
  2566  		}
  2567  		i -= size
  2568  		i = encodeVarintQuery(dAtA, i, uint64(size))
  2569  	}
  2570  	i--
  2571  	dAtA[i] = 0xa
  2572  	return len(dAtA) - i, nil
  2573  }
  2574  
  2575  func (m *QueryDelegatorDelegationsRequest) Marshal() (dAtA []byte, err error) {
  2576  	size := m.Size()
  2577  	dAtA = make([]byte, size)
  2578  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2579  	if err != nil {
  2580  		return nil, err
  2581  	}
  2582  	return dAtA[:n], nil
  2583  }
  2584  
  2585  func (m *QueryDelegatorDelegationsRequest) MarshalTo(dAtA []byte) (int, error) {
  2586  	size := m.Size()
  2587  	return m.MarshalToSizedBuffer(dAtA[:size])
  2588  }
  2589  
  2590  func (m *QueryDelegatorDelegationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2591  	i := len(dAtA)
  2592  	_ = i
  2593  	var l int
  2594  	_ = l
  2595  	if m.Pagination != nil {
  2596  		{
  2597  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2598  			if err != nil {
  2599  				return 0, err
  2600  			}
  2601  			i -= size
  2602  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2603  		}
  2604  		i--
  2605  		dAtA[i] = 0x12
  2606  	}
  2607  	if len(m.DelegatorAddr) > 0 {
  2608  		i -= len(m.DelegatorAddr)
  2609  		copy(dAtA[i:], m.DelegatorAddr)
  2610  		i = encodeVarintQuery(dAtA, i, uint64(len(m.DelegatorAddr)))
  2611  		i--
  2612  		dAtA[i] = 0xa
  2613  	}
  2614  	return len(dAtA) - i, nil
  2615  }
  2616  
  2617  func (m *QueryDelegatorDelegationsResponse) Marshal() (dAtA []byte, err error) {
  2618  	size := m.Size()
  2619  	dAtA = make([]byte, size)
  2620  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2621  	if err != nil {
  2622  		return nil, err
  2623  	}
  2624  	return dAtA[:n], nil
  2625  }
  2626  
  2627  func (m *QueryDelegatorDelegationsResponse) MarshalTo(dAtA []byte) (int, error) {
  2628  	size := m.Size()
  2629  	return m.MarshalToSizedBuffer(dAtA[:size])
  2630  }
  2631  
  2632  func (m *QueryDelegatorDelegationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2633  	i := len(dAtA)
  2634  	_ = i
  2635  	var l int
  2636  	_ = l
  2637  	if m.Pagination != nil {
  2638  		{
  2639  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2640  			if err != nil {
  2641  				return 0, err
  2642  			}
  2643  			i -= size
  2644  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2645  		}
  2646  		i--
  2647  		dAtA[i] = 0x12
  2648  	}
  2649  	if len(m.DelegationResponses) > 0 {
  2650  		for iNdEx := len(m.DelegationResponses) - 1; iNdEx >= 0; iNdEx-- {
  2651  			{
  2652  				size, err := m.DelegationResponses[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2653  				if err != nil {
  2654  					return 0, err
  2655  				}
  2656  				i -= size
  2657  				i = encodeVarintQuery(dAtA, i, uint64(size))
  2658  			}
  2659  			i--
  2660  			dAtA[i] = 0xa
  2661  		}
  2662  	}
  2663  	return len(dAtA) - i, nil
  2664  }
  2665  
  2666  func (m *QueryDelegatorUnbondingDelegationsRequest) Marshal() (dAtA []byte, err error) {
  2667  	size := m.Size()
  2668  	dAtA = make([]byte, size)
  2669  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2670  	if err != nil {
  2671  		return nil, err
  2672  	}
  2673  	return dAtA[:n], nil
  2674  }
  2675  
  2676  func (m *QueryDelegatorUnbondingDelegationsRequest) MarshalTo(dAtA []byte) (int, error) {
  2677  	size := m.Size()
  2678  	return m.MarshalToSizedBuffer(dAtA[:size])
  2679  }
  2680  
  2681  func (m *QueryDelegatorUnbondingDelegationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2682  	i := len(dAtA)
  2683  	_ = i
  2684  	var l int
  2685  	_ = l
  2686  	if m.Pagination != nil {
  2687  		{
  2688  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2689  			if err != nil {
  2690  				return 0, err
  2691  			}
  2692  			i -= size
  2693  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2694  		}
  2695  		i--
  2696  		dAtA[i] = 0x12
  2697  	}
  2698  	if len(m.DelegatorAddr) > 0 {
  2699  		i -= len(m.DelegatorAddr)
  2700  		copy(dAtA[i:], m.DelegatorAddr)
  2701  		i = encodeVarintQuery(dAtA, i, uint64(len(m.DelegatorAddr)))
  2702  		i--
  2703  		dAtA[i] = 0xa
  2704  	}
  2705  	return len(dAtA) - i, nil
  2706  }
  2707  
  2708  func (m *QueryDelegatorUnbondingDelegationsResponse) Marshal() (dAtA []byte, err error) {
  2709  	size := m.Size()
  2710  	dAtA = make([]byte, size)
  2711  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2712  	if err != nil {
  2713  		return nil, err
  2714  	}
  2715  	return dAtA[:n], nil
  2716  }
  2717  
  2718  func (m *QueryDelegatorUnbondingDelegationsResponse) MarshalTo(dAtA []byte) (int, error) {
  2719  	size := m.Size()
  2720  	return m.MarshalToSizedBuffer(dAtA[:size])
  2721  }
  2722  
  2723  func (m *QueryDelegatorUnbondingDelegationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2724  	i := len(dAtA)
  2725  	_ = i
  2726  	var l int
  2727  	_ = l
  2728  	if m.Pagination != nil {
  2729  		{
  2730  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2731  			if err != nil {
  2732  				return 0, err
  2733  			}
  2734  			i -= size
  2735  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2736  		}
  2737  		i--
  2738  		dAtA[i] = 0x12
  2739  	}
  2740  	if len(m.UnbondingResponses) > 0 {
  2741  		for iNdEx := len(m.UnbondingResponses) - 1; iNdEx >= 0; iNdEx-- {
  2742  			{
  2743  				size, err := m.UnbondingResponses[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2744  				if err != nil {
  2745  					return 0, err
  2746  				}
  2747  				i -= size
  2748  				i = encodeVarintQuery(dAtA, i, uint64(size))
  2749  			}
  2750  			i--
  2751  			dAtA[i] = 0xa
  2752  		}
  2753  	}
  2754  	return len(dAtA) - i, nil
  2755  }
  2756  
  2757  func (m *QueryRedelegationsRequest) Marshal() (dAtA []byte, err error) {
  2758  	size := m.Size()
  2759  	dAtA = make([]byte, size)
  2760  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2761  	if err != nil {
  2762  		return nil, err
  2763  	}
  2764  	return dAtA[:n], nil
  2765  }
  2766  
  2767  func (m *QueryRedelegationsRequest) MarshalTo(dAtA []byte) (int, error) {
  2768  	size := m.Size()
  2769  	return m.MarshalToSizedBuffer(dAtA[:size])
  2770  }
  2771  
  2772  func (m *QueryRedelegationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2773  	i := len(dAtA)
  2774  	_ = i
  2775  	var l int
  2776  	_ = l
  2777  	if m.Pagination != nil {
  2778  		{
  2779  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2780  			if err != nil {
  2781  				return 0, err
  2782  			}
  2783  			i -= size
  2784  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2785  		}
  2786  		i--
  2787  		dAtA[i] = 0x22
  2788  	}
  2789  	if len(m.DstValidatorAddr) > 0 {
  2790  		i -= len(m.DstValidatorAddr)
  2791  		copy(dAtA[i:], m.DstValidatorAddr)
  2792  		i = encodeVarintQuery(dAtA, i, uint64(len(m.DstValidatorAddr)))
  2793  		i--
  2794  		dAtA[i] = 0x1a
  2795  	}
  2796  	if len(m.SrcValidatorAddr) > 0 {
  2797  		i -= len(m.SrcValidatorAddr)
  2798  		copy(dAtA[i:], m.SrcValidatorAddr)
  2799  		i = encodeVarintQuery(dAtA, i, uint64(len(m.SrcValidatorAddr)))
  2800  		i--
  2801  		dAtA[i] = 0x12
  2802  	}
  2803  	if len(m.DelegatorAddr) > 0 {
  2804  		i -= len(m.DelegatorAddr)
  2805  		copy(dAtA[i:], m.DelegatorAddr)
  2806  		i = encodeVarintQuery(dAtA, i, uint64(len(m.DelegatorAddr)))
  2807  		i--
  2808  		dAtA[i] = 0xa
  2809  	}
  2810  	return len(dAtA) - i, nil
  2811  }
  2812  
  2813  func (m *QueryRedelegationsResponse) Marshal() (dAtA []byte, err error) {
  2814  	size := m.Size()
  2815  	dAtA = make([]byte, size)
  2816  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2817  	if err != nil {
  2818  		return nil, err
  2819  	}
  2820  	return dAtA[:n], nil
  2821  }
  2822  
  2823  func (m *QueryRedelegationsResponse) MarshalTo(dAtA []byte) (int, error) {
  2824  	size := m.Size()
  2825  	return m.MarshalToSizedBuffer(dAtA[:size])
  2826  }
  2827  
  2828  func (m *QueryRedelegationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2829  	i := len(dAtA)
  2830  	_ = i
  2831  	var l int
  2832  	_ = l
  2833  	if m.Pagination != nil {
  2834  		{
  2835  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2836  			if err != nil {
  2837  				return 0, err
  2838  			}
  2839  			i -= size
  2840  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2841  		}
  2842  		i--
  2843  		dAtA[i] = 0x12
  2844  	}
  2845  	if len(m.RedelegationResponses) > 0 {
  2846  		for iNdEx := len(m.RedelegationResponses) - 1; iNdEx >= 0; iNdEx-- {
  2847  			{
  2848  				size, err := m.RedelegationResponses[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2849  				if err != nil {
  2850  					return 0, err
  2851  				}
  2852  				i -= size
  2853  				i = encodeVarintQuery(dAtA, i, uint64(size))
  2854  			}
  2855  			i--
  2856  			dAtA[i] = 0xa
  2857  		}
  2858  	}
  2859  	return len(dAtA) - i, nil
  2860  }
  2861  
  2862  func (m *QueryDelegatorValidatorsRequest) Marshal() (dAtA []byte, err error) {
  2863  	size := m.Size()
  2864  	dAtA = make([]byte, size)
  2865  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2866  	if err != nil {
  2867  		return nil, err
  2868  	}
  2869  	return dAtA[:n], nil
  2870  }
  2871  
  2872  func (m *QueryDelegatorValidatorsRequest) MarshalTo(dAtA []byte) (int, error) {
  2873  	size := m.Size()
  2874  	return m.MarshalToSizedBuffer(dAtA[:size])
  2875  }
  2876  
  2877  func (m *QueryDelegatorValidatorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2878  	i := len(dAtA)
  2879  	_ = i
  2880  	var l int
  2881  	_ = l
  2882  	if m.Pagination != nil {
  2883  		{
  2884  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2885  			if err != nil {
  2886  				return 0, err
  2887  			}
  2888  			i -= size
  2889  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2890  		}
  2891  		i--
  2892  		dAtA[i] = 0x12
  2893  	}
  2894  	if len(m.DelegatorAddr) > 0 {
  2895  		i -= len(m.DelegatorAddr)
  2896  		copy(dAtA[i:], m.DelegatorAddr)
  2897  		i = encodeVarintQuery(dAtA, i, uint64(len(m.DelegatorAddr)))
  2898  		i--
  2899  		dAtA[i] = 0xa
  2900  	}
  2901  	return len(dAtA) - i, nil
  2902  }
  2903  
  2904  func (m *QueryDelegatorValidatorsResponse) Marshal() (dAtA []byte, err error) {
  2905  	size := m.Size()
  2906  	dAtA = make([]byte, size)
  2907  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2908  	if err != nil {
  2909  		return nil, err
  2910  	}
  2911  	return dAtA[:n], nil
  2912  }
  2913  
  2914  func (m *QueryDelegatorValidatorsResponse) MarshalTo(dAtA []byte) (int, error) {
  2915  	size := m.Size()
  2916  	return m.MarshalToSizedBuffer(dAtA[:size])
  2917  }
  2918  
  2919  func (m *QueryDelegatorValidatorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2920  	i := len(dAtA)
  2921  	_ = i
  2922  	var l int
  2923  	_ = l
  2924  	if m.Pagination != nil {
  2925  		{
  2926  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2927  			if err != nil {
  2928  				return 0, err
  2929  			}
  2930  			i -= size
  2931  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2932  		}
  2933  		i--
  2934  		dAtA[i] = 0x12
  2935  	}
  2936  	if len(m.Validators) > 0 {
  2937  		for iNdEx := len(m.Validators) - 1; iNdEx >= 0; iNdEx-- {
  2938  			{
  2939  				size, err := m.Validators[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2940  				if err != nil {
  2941  					return 0, err
  2942  				}
  2943  				i -= size
  2944  				i = encodeVarintQuery(dAtA, i, uint64(size))
  2945  			}
  2946  			i--
  2947  			dAtA[i] = 0xa
  2948  		}
  2949  	}
  2950  	return len(dAtA) - i, nil
  2951  }
  2952  
  2953  func (m *QueryDelegatorValidatorRequest) Marshal() (dAtA []byte, err error) {
  2954  	size := m.Size()
  2955  	dAtA = make([]byte, size)
  2956  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2957  	if err != nil {
  2958  		return nil, err
  2959  	}
  2960  	return dAtA[:n], nil
  2961  }
  2962  
  2963  func (m *QueryDelegatorValidatorRequest) MarshalTo(dAtA []byte) (int, error) {
  2964  	size := m.Size()
  2965  	return m.MarshalToSizedBuffer(dAtA[:size])
  2966  }
  2967  
  2968  func (m *QueryDelegatorValidatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2969  	i := len(dAtA)
  2970  	_ = i
  2971  	var l int
  2972  	_ = l
  2973  	if len(m.ValidatorAddr) > 0 {
  2974  		i -= len(m.ValidatorAddr)
  2975  		copy(dAtA[i:], m.ValidatorAddr)
  2976  		i = encodeVarintQuery(dAtA, i, uint64(len(m.ValidatorAddr)))
  2977  		i--
  2978  		dAtA[i] = 0x12
  2979  	}
  2980  	if len(m.DelegatorAddr) > 0 {
  2981  		i -= len(m.DelegatorAddr)
  2982  		copy(dAtA[i:], m.DelegatorAddr)
  2983  		i = encodeVarintQuery(dAtA, i, uint64(len(m.DelegatorAddr)))
  2984  		i--
  2985  		dAtA[i] = 0xa
  2986  	}
  2987  	return len(dAtA) - i, nil
  2988  }
  2989  
  2990  func (m *QueryDelegatorValidatorResponse) Marshal() (dAtA []byte, err error) {
  2991  	size := m.Size()
  2992  	dAtA = make([]byte, size)
  2993  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2994  	if err != nil {
  2995  		return nil, err
  2996  	}
  2997  	return dAtA[:n], nil
  2998  }
  2999  
  3000  func (m *QueryDelegatorValidatorResponse) MarshalTo(dAtA []byte) (int, error) {
  3001  	size := m.Size()
  3002  	return m.MarshalToSizedBuffer(dAtA[:size])
  3003  }
  3004  
  3005  func (m *QueryDelegatorValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3006  	i := len(dAtA)
  3007  	_ = i
  3008  	var l int
  3009  	_ = l
  3010  	{
  3011  		size, err := m.Validator.MarshalToSizedBuffer(dAtA[:i])
  3012  		if err != nil {
  3013  			return 0, err
  3014  		}
  3015  		i -= size
  3016  		i = encodeVarintQuery(dAtA, i, uint64(size))
  3017  	}
  3018  	i--
  3019  	dAtA[i] = 0xa
  3020  	return len(dAtA) - i, nil
  3021  }
  3022  
  3023  func (m *QueryHistoricalInfoRequest) Marshal() (dAtA []byte, err error) {
  3024  	size := m.Size()
  3025  	dAtA = make([]byte, size)
  3026  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3027  	if err != nil {
  3028  		return nil, err
  3029  	}
  3030  	return dAtA[:n], nil
  3031  }
  3032  
  3033  func (m *QueryHistoricalInfoRequest) MarshalTo(dAtA []byte) (int, error) {
  3034  	size := m.Size()
  3035  	return m.MarshalToSizedBuffer(dAtA[:size])
  3036  }
  3037  
  3038  func (m *QueryHistoricalInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3039  	i := len(dAtA)
  3040  	_ = i
  3041  	var l int
  3042  	_ = l
  3043  	if m.Height != 0 {
  3044  		i = encodeVarintQuery(dAtA, i, uint64(m.Height))
  3045  		i--
  3046  		dAtA[i] = 0x8
  3047  	}
  3048  	return len(dAtA) - i, nil
  3049  }
  3050  
  3051  func (m *QueryHistoricalInfoResponse) Marshal() (dAtA []byte, err error) {
  3052  	size := m.Size()
  3053  	dAtA = make([]byte, size)
  3054  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3055  	if err != nil {
  3056  		return nil, err
  3057  	}
  3058  	return dAtA[:n], nil
  3059  }
  3060  
  3061  func (m *QueryHistoricalInfoResponse) MarshalTo(dAtA []byte) (int, error) {
  3062  	size := m.Size()
  3063  	return m.MarshalToSizedBuffer(dAtA[:size])
  3064  }
  3065  
  3066  func (m *QueryHistoricalInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3067  	i := len(dAtA)
  3068  	_ = i
  3069  	var l int
  3070  	_ = l
  3071  	if m.Hist != nil {
  3072  		{
  3073  			size, err := m.Hist.MarshalToSizedBuffer(dAtA[:i])
  3074  			if err != nil {
  3075  				return 0, err
  3076  			}
  3077  			i -= size
  3078  			i = encodeVarintQuery(dAtA, i, uint64(size))
  3079  		}
  3080  		i--
  3081  		dAtA[i] = 0xa
  3082  	}
  3083  	return len(dAtA) - i, nil
  3084  }
  3085  
  3086  func (m *QueryPoolRequest) Marshal() (dAtA []byte, err error) {
  3087  	size := m.Size()
  3088  	dAtA = make([]byte, size)
  3089  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3090  	if err != nil {
  3091  		return nil, err
  3092  	}
  3093  	return dAtA[:n], nil
  3094  }
  3095  
  3096  func (m *QueryPoolRequest) MarshalTo(dAtA []byte) (int, error) {
  3097  	size := m.Size()
  3098  	return m.MarshalToSizedBuffer(dAtA[:size])
  3099  }
  3100  
  3101  func (m *QueryPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3102  	i := len(dAtA)
  3103  	_ = i
  3104  	var l int
  3105  	_ = l
  3106  	return len(dAtA) - i, nil
  3107  }
  3108  
  3109  func (m *QueryPoolResponse) Marshal() (dAtA []byte, err error) {
  3110  	size := m.Size()
  3111  	dAtA = make([]byte, size)
  3112  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3113  	if err != nil {
  3114  		return nil, err
  3115  	}
  3116  	return dAtA[:n], nil
  3117  }
  3118  
  3119  func (m *QueryPoolResponse) MarshalTo(dAtA []byte) (int, error) {
  3120  	size := m.Size()
  3121  	return m.MarshalToSizedBuffer(dAtA[:size])
  3122  }
  3123  
  3124  func (m *QueryPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3125  	i := len(dAtA)
  3126  	_ = i
  3127  	var l int
  3128  	_ = l
  3129  	{
  3130  		size, err := m.Pool.MarshalToSizedBuffer(dAtA[:i])
  3131  		if err != nil {
  3132  			return 0, err
  3133  		}
  3134  		i -= size
  3135  		i = encodeVarintQuery(dAtA, i, uint64(size))
  3136  	}
  3137  	i--
  3138  	dAtA[i] = 0xa
  3139  	return len(dAtA) - i, nil
  3140  }
  3141  
  3142  func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) {
  3143  	size := m.Size()
  3144  	dAtA = make([]byte, size)
  3145  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3146  	if err != nil {
  3147  		return nil, err
  3148  	}
  3149  	return dAtA[:n], nil
  3150  }
  3151  
  3152  func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) {
  3153  	size := m.Size()
  3154  	return m.MarshalToSizedBuffer(dAtA[:size])
  3155  }
  3156  
  3157  func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3158  	i := len(dAtA)
  3159  	_ = i
  3160  	var l int
  3161  	_ = l
  3162  	return len(dAtA) - i, nil
  3163  }
  3164  
  3165  func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) {
  3166  	size := m.Size()
  3167  	dAtA = make([]byte, size)
  3168  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3169  	if err != nil {
  3170  		return nil, err
  3171  	}
  3172  	return dAtA[:n], nil
  3173  }
  3174  
  3175  func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) {
  3176  	size := m.Size()
  3177  	return m.MarshalToSizedBuffer(dAtA[:size])
  3178  }
  3179  
  3180  func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3181  	i := len(dAtA)
  3182  	_ = i
  3183  	var l int
  3184  	_ = l
  3185  	{
  3186  		size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
  3187  		if err != nil {
  3188  			return 0, err
  3189  		}
  3190  		i -= size
  3191  		i = encodeVarintQuery(dAtA, i, uint64(size))
  3192  	}
  3193  	i--
  3194  	dAtA[i] = 0xa
  3195  	return len(dAtA) - i, nil
  3196  }
  3197  
  3198  func encodeVarintQuery(dAtA []byte, offset int, v uint64) int {
  3199  	offset -= sovQuery(v)
  3200  	base := offset
  3201  	for v >= 1<<7 {
  3202  		dAtA[offset] = uint8(v&0x7f | 0x80)
  3203  		v >>= 7
  3204  		offset++
  3205  	}
  3206  	dAtA[offset] = uint8(v)
  3207  	return base
  3208  }
  3209  func (m *QueryValidatorsRequest) Size() (n int) {
  3210  	if m == nil {
  3211  		return 0
  3212  	}
  3213  	var l int
  3214  	_ = l
  3215  	l = len(m.Status)
  3216  	if l > 0 {
  3217  		n += 1 + l + sovQuery(uint64(l))
  3218  	}
  3219  	if m.Pagination != nil {
  3220  		l = m.Pagination.Size()
  3221  		n += 1 + l + sovQuery(uint64(l))
  3222  	}
  3223  	return n
  3224  }
  3225  
  3226  func (m *QueryValidatorsResponse) Size() (n int) {
  3227  	if m == nil {
  3228  		return 0
  3229  	}
  3230  	var l int
  3231  	_ = l
  3232  	if len(m.Validators) > 0 {
  3233  		for _, e := range m.Validators {
  3234  			l = e.Size()
  3235  			n += 1 + l + sovQuery(uint64(l))
  3236  		}
  3237  	}
  3238  	if m.Pagination != nil {
  3239  		l = m.Pagination.Size()
  3240  		n += 1 + l + sovQuery(uint64(l))
  3241  	}
  3242  	return n
  3243  }
  3244  
  3245  func (m *QueryValidatorRequest) Size() (n int) {
  3246  	if m == nil {
  3247  		return 0
  3248  	}
  3249  	var l int
  3250  	_ = l
  3251  	l = len(m.ValidatorAddr)
  3252  	if l > 0 {
  3253  		n += 1 + l + sovQuery(uint64(l))
  3254  	}
  3255  	return n
  3256  }
  3257  
  3258  func (m *QueryValidatorResponse) Size() (n int) {
  3259  	if m == nil {
  3260  		return 0
  3261  	}
  3262  	var l int
  3263  	_ = l
  3264  	l = m.Validator.Size()
  3265  	n += 1 + l + sovQuery(uint64(l))
  3266  	return n
  3267  }
  3268  
  3269  func (m *QueryValidatorDelegationsRequest) Size() (n int) {
  3270  	if m == nil {
  3271  		return 0
  3272  	}
  3273  	var l int
  3274  	_ = l
  3275  	l = len(m.ValidatorAddr)
  3276  	if l > 0 {
  3277  		n += 1 + l + sovQuery(uint64(l))
  3278  	}
  3279  	if m.Pagination != nil {
  3280  		l = m.Pagination.Size()
  3281  		n += 1 + l + sovQuery(uint64(l))
  3282  	}
  3283  	return n
  3284  }
  3285  
  3286  func (m *QueryValidatorDelegationsResponse) Size() (n int) {
  3287  	if m == nil {
  3288  		return 0
  3289  	}
  3290  	var l int
  3291  	_ = l
  3292  	if len(m.DelegationResponses) > 0 {
  3293  		for _, e := range m.DelegationResponses {
  3294  			l = e.Size()
  3295  			n += 1 + l + sovQuery(uint64(l))
  3296  		}
  3297  	}
  3298  	if m.Pagination != nil {
  3299  		l = m.Pagination.Size()
  3300  		n += 1 + l + sovQuery(uint64(l))
  3301  	}
  3302  	return n
  3303  }
  3304  
  3305  func (m *QueryValidatorUnbondingDelegationsRequest) Size() (n int) {
  3306  	if m == nil {
  3307  		return 0
  3308  	}
  3309  	var l int
  3310  	_ = l
  3311  	l = len(m.ValidatorAddr)
  3312  	if l > 0 {
  3313  		n += 1 + l + sovQuery(uint64(l))
  3314  	}
  3315  	if m.Pagination != nil {
  3316  		l = m.Pagination.Size()
  3317  		n += 1 + l + sovQuery(uint64(l))
  3318  	}
  3319  	return n
  3320  }
  3321  
  3322  func (m *QueryValidatorUnbondingDelegationsResponse) Size() (n int) {
  3323  	if m == nil {
  3324  		return 0
  3325  	}
  3326  	var l int
  3327  	_ = l
  3328  	if len(m.UnbondingResponses) > 0 {
  3329  		for _, e := range m.UnbondingResponses {
  3330  			l = e.Size()
  3331  			n += 1 + l + sovQuery(uint64(l))
  3332  		}
  3333  	}
  3334  	if m.Pagination != nil {
  3335  		l = m.Pagination.Size()
  3336  		n += 1 + l + sovQuery(uint64(l))
  3337  	}
  3338  	return n
  3339  }
  3340  
  3341  func (m *QueryDelegationRequest) Size() (n int) {
  3342  	if m == nil {
  3343  		return 0
  3344  	}
  3345  	var l int
  3346  	_ = l
  3347  	l = len(m.DelegatorAddr)
  3348  	if l > 0 {
  3349  		n += 1 + l + sovQuery(uint64(l))
  3350  	}
  3351  	l = len(m.ValidatorAddr)
  3352  	if l > 0 {
  3353  		n += 1 + l + sovQuery(uint64(l))
  3354  	}
  3355  	return n
  3356  }
  3357  
  3358  func (m *QueryDelegationResponse) Size() (n int) {
  3359  	if m == nil {
  3360  		return 0
  3361  	}
  3362  	var l int
  3363  	_ = l
  3364  	if m.DelegationResponse != nil {
  3365  		l = m.DelegationResponse.Size()
  3366  		n += 1 + l + sovQuery(uint64(l))
  3367  	}
  3368  	return n
  3369  }
  3370  
  3371  func (m *QueryUnbondingDelegationRequest) Size() (n int) {
  3372  	if m == nil {
  3373  		return 0
  3374  	}
  3375  	var l int
  3376  	_ = l
  3377  	l = len(m.DelegatorAddr)
  3378  	if l > 0 {
  3379  		n += 1 + l + sovQuery(uint64(l))
  3380  	}
  3381  	l = len(m.ValidatorAddr)
  3382  	if l > 0 {
  3383  		n += 1 + l + sovQuery(uint64(l))
  3384  	}
  3385  	return n
  3386  }
  3387  
  3388  func (m *QueryUnbondingDelegationResponse) Size() (n int) {
  3389  	if m == nil {
  3390  		return 0
  3391  	}
  3392  	var l int
  3393  	_ = l
  3394  	l = m.Unbond.Size()
  3395  	n += 1 + l + sovQuery(uint64(l))
  3396  	return n
  3397  }
  3398  
  3399  func (m *QueryDelegatorDelegationsRequest) Size() (n int) {
  3400  	if m == nil {
  3401  		return 0
  3402  	}
  3403  	var l int
  3404  	_ = l
  3405  	l = len(m.DelegatorAddr)
  3406  	if l > 0 {
  3407  		n += 1 + l + sovQuery(uint64(l))
  3408  	}
  3409  	if m.Pagination != nil {
  3410  		l = m.Pagination.Size()
  3411  		n += 1 + l + sovQuery(uint64(l))
  3412  	}
  3413  	return n
  3414  }
  3415  
  3416  func (m *QueryDelegatorDelegationsResponse) Size() (n int) {
  3417  	if m == nil {
  3418  		return 0
  3419  	}
  3420  	var l int
  3421  	_ = l
  3422  	if len(m.DelegationResponses) > 0 {
  3423  		for _, e := range m.DelegationResponses {
  3424  			l = e.Size()
  3425  			n += 1 + l + sovQuery(uint64(l))
  3426  		}
  3427  	}
  3428  	if m.Pagination != nil {
  3429  		l = m.Pagination.Size()
  3430  		n += 1 + l + sovQuery(uint64(l))
  3431  	}
  3432  	return n
  3433  }
  3434  
  3435  func (m *QueryDelegatorUnbondingDelegationsRequest) Size() (n int) {
  3436  	if m == nil {
  3437  		return 0
  3438  	}
  3439  	var l int
  3440  	_ = l
  3441  	l = len(m.DelegatorAddr)
  3442  	if l > 0 {
  3443  		n += 1 + l + sovQuery(uint64(l))
  3444  	}
  3445  	if m.Pagination != nil {
  3446  		l = m.Pagination.Size()
  3447  		n += 1 + l + sovQuery(uint64(l))
  3448  	}
  3449  	return n
  3450  }
  3451  
  3452  func (m *QueryDelegatorUnbondingDelegationsResponse) Size() (n int) {
  3453  	if m == nil {
  3454  		return 0
  3455  	}
  3456  	var l int
  3457  	_ = l
  3458  	if len(m.UnbondingResponses) > 0 {
  3459  		for _, e := range m.UnbondingResponses {
  3460  			l = e.Size()
  3461  			n += 1 + l + sovQuery(uint64(l))
  3462  		}
  3463  	}
  3464  	if m.Pagination != nil {
  3465  		l = m.Pagination.Size()
  3466  		n += 1 + l + sovQuery(uint64(l))
  3467  	}
  3468  	return n
  3469  }
  3470  
  3471  func (m *QueryRedelegationsRequest) Size() (n int) {
  3472  	if m == nil {
  3473  		return 0
  3474  	}
  3475  	var l int
  3476  	_ = l
  3477  	l = len(m.DelegatorAddr)
  3478  	if l > 0 {
  3479  		n += 1 + l + sovQuery(uint64(l))
  3480  	}
  3481  	l = len(m.SrcValidatorAddr)
  3482  	if l > 0 {
  3483  		n += 1 + l + sovQuery(uint64(l))
  3484  	}
  3485  	l = len(m.DstValidatorAddr)
  3486  	if l > 0 {
  3487  		n += 1 + l + sovQuery(uint64(l))
  3488  	}
  3489  	if m.Pagination != nil {
  3490  		l = m.Pagination.Size()
  3491  		n += 1 + l + sovQuery(uint64(l))
  3492  	}
  3493  	return n
  3494  }
  3495  
  3496  func (m *QueryRedelegationsResponse) Size() (n int) {
  3497  	if m == nil {
  3498  		return 0
  3499  	}
  3500  	var l int
  3501  	_ = l
  3502  	if len(m.RedelegationResponses) > 0 {
  3503  		for _, e := range m.RedelegationResponses {
  3504  			l = e.Size()
  3505  			n += 1 + l + sovQuery(uint64(l))
  3506  		}
  3507  	}
  3508  	if m.Pagination != nil {
  3509  		l = m.Pagination.Size()
  3510  		n += 1 + l + sovQuery(uint64(l))
  3511  	}
  3512  	return n
  3513  }
  3514  
  3515  func (m *QueryDelegatorValidatorsRequest) Size() (n int) {
  3516  	if m == nil {
  3517  		return 0
  3518  	}
  3519  	var l int
  3520  	_ = l
  3521  	l = len(m.DelegatorAddr)
  3522  	if l > 0 {
  3523  		n += 1 + l + sovQuery(uint64(l))
  3524  	}
  3525  	if m.Pagination != nil {
  3526  		l = m.Pagination.Size()
  3527  		n += 1 + l + sovQuery(uint64(l))
  3528  	}
  3529  	return n
  3530  }
  3531  
  3532  func (m *QueryDelegatorValidatorsResponse) Size() (n int) {
  3533  	if m == nil {
  3534  		return 0
  3535  	}
  3536  	var l int
  3537  	_ = l
  3538  	if len(m.Validators) > 0 {
  3539  		for _, e := range m.Validators {
  3540  			l = e.Size()
  3541  			n += 1 + l + sovQuery(uint64(l))
  3542  		}
  3543  	}
  3544  	if m.Pagination != nil {
  3545  		l = m.Pagination.Size()
  3546  		n += 1 + l + sovQuery(uint64(l))
  3547  	}
  3548  	return n
  3549  }
  3550  
  3551  func (m *QueryDelegatorValidatorRequest) Size() (n int) {
  3552  	if m == nil {
  3553  		return 0
  3554  	}
  3555  	var l int
  3556  	_ = l
  3557  	l = len(m.DelegatorAddr)
  3558  	if l > 0 {
  3559  		n += 1 + l + sovQuery(uint64(l))
  3560  	}
  3561  	l = len(m.ValidatorAddr)
  3562  	if l > 0 {
  3563  		n += 1 + l + sovQuery(uint64(l))
  3564  	}
  3565  	return n
  3566  }
  3567  
  3568  func (m *QueryDelegatorValidatorResponse) Size() (n int) {
  3569  	if m == nil {
  3570  		return 0
  3571  	}
  3572  	var l int
  3573  	_ = l
  3574  	l = m.Validator.Size()
  3575  	n += 1 + l + sovQuery(uint64(l))
  3576  	return n
  3577  }
  3578  
  3579  func (m *QueryHistoricalInfoRequest) Size() (n int) {
  3580  	if m == nil {
  3581  		return 0
  3582  	}
  3583  	var l int
  3584  	_ = l
  3585  	if m.Height != 0 {
  3586  		n += 1 + sovQuery(uint64(m.Height))
  3587  	}
  3588  	return n
  3589  }
  3590  
  3591  func (m *QueryHistoricalInfoResponse) Size() (n int) {
  3592  	if m == nil {
  3593  		return 0
  3594  	}
  3595  	var l int
  3596  	_ = l
  3597  	if m.Hist != nil {
  3598  		l = m.Hist.Size()
  3599  		n += 1 + l + sovQuery(uint64(l))
  3600  	}
  3601  	return n
  3602  }
  3603  
  3604  func (m *QueryPoolRequest) Size() (n int) {
  3605  	if m == nil {
  3606  		return 0
  3607  	}
  3608  	var l int
  3609  	_ = l
  3610  	return n
  3611  }
  3612  
  3613  func (m *QueryPoolResponse) Size() (n int) {
  3614  	if m == nil {
  3615  		return 0
  3616  	}
  3617  	var l int
  3618  	_ = l
  3619  	l = m.Pool.Size()
  3620  	n += 1 + l + sovQuery(uint64(l))
  3621  	return n
  3622  }
  3623  
  3624  func (m *QueryParamsRequest) Size() (n int) {
  3625  	if m == nil {
  3626  		return 0
  3627  	}
  3628  	var l int
  3629  	_ = l
  3630  	return n
  3631  }
  3632  
  3633  func (m *QueryParamsResponse) Size() (n int) {
  3634  	if m == nil {
  3635  		return 0
  3636  	}
  3637  	var l int
  3638  	_ = l
  3639  	l = m.Params.Size()
  3640  	n += 1 + l + sovQuery(uint64(l))
  3641  	return n
  3642  }
  3643  
  3644  func sovQuery(x uint64) (n int) {
  3645  	return (math_bits.Len64(x|1) + 6) / 7
  3646  }
  3647  func sozQuery(x uint64) (n int) {
  3648  	return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  3649  }
  3650  func (m *QueryValidatorsRequest) Unmarshal(dAtA []byte) error {
  3651  	l := len(dAtA)
  3652  	iNdEx := 0
  3653  	for iNdEx < l {
  3654  		preIndex := iNdEx
  3655  		var wire uint64
  3656  		for shift := uint(0); ; shift += 7 {
  3657  			if shift >= 64 {
  3658  				return ErrIntOverflowQuery
  3659  			}
  3660  			if iNdEx >= l {
  3661  				return io.ErrUnexpectedEOF
  3662  			}
  3663  			b := dAtA[iNdEx]
  3664  			iNdEx++
  3665  			wire |= uint64(b&0x7F) << shift
  3666  			if b < 0x80 {
  3667  				break
  3668  			}
  3669  		}
  3670  		fieldNum := int32(wire >> 3)
  3671  		wireType := int(wire & 0x7)
  3672  		if wireType == 4 {
  3673  			return fmt.Errorf("proto: QueryValidatorsRequest: wiretype end group for non-group")
  3674  		}
  3675  		if fieldNum <= 0 {
  3676  			return fmt.Errorf("proto: QueryValidatorsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3677  		}
  3678  		switch fieldNum {
  3679  		case 1:
  3680  			if wireType != 2 {
  3681  				return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  3682  			}
  3683  			var stringLen uint64
  3684  			for shift := uint(0); ; shift += 7 {
  3685  				if shift >= 64 {
  3686  					return ErrIntOverflowQuery
  3687  				}
  3688  				if iNdEx >= l {
  3689  					return io.ErrUnexpectedEOF
  3690  				}
  3691  				b := dAtA[iNdEx]
  3692  				iNdEx++
  3693  				stringLen |= uint64(b&0x7F) << shift
  3694  				if b < 0x80 {
  3695  					break
  3696  				}
  3697  			}
  3698  			intStringLen := int(stringLen)
  3699  			if intStringLen < 0 {
  3700  				return ErrInvalidLengthQuery
  3701  			}
  3702  			postIndex := iNdEx + intStringLen
  3703  			if postIndex < 0 {
  3704  				return ErrInvalidLengthQuery
  3705  			}
  3706  			if postIndex > l {
  3707  				return io.ErrUnexpectedEOF
  3708  			}
  3709  			m.Status = string(dAtA[iNdEx:postIndex])
  3710  			iNdEx = postIndex
  3711  		case 2:
  3712  			if wireType != 2 {
  3713  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  3714  			}
  3715  			var msglen int
  3716  			for shift := uint(0); ; shift += 7 {
  3717  				if shift >= 64 {
  3718  					return ErrIntOverflowQuery
  3719  				}
  3720  				if iNdEx >= l {
  3721  					return io.ErrUnexpectedEOF
  3722  				}
  3723  				b := dAtA[iNdEx]
  3724  				iNdEx++
  3725  				msglen |= int(b&0x7F) << shift
  3726  				if b < 0x80 {
  3727  					break
  3728  				}
  3729  			}
  3730  			if msglen < 0 {
  3731  				return ErrInvalidLengthQuery
  3732  			}
  3733  			postIndex := iNdEx + msglen
  3734  			if postIndex < 0 {
  3735  				return ErrInvalidLengthQuery
  3736  			}
  3737  			if postIndex > l {
  3738  				return io.ErrUnexpectedEOF
  3739  			}
  3740  			if m.Pagination == nil {
  3741  				m.Pagination = &query.PageRequest{}
  3742  			}
  3743  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3744  				return err
  3745  			}
  3746  			iNdEx = postIndex
  3747  		default:
  3748  			iNdEx = preIndex
  3749  			skippy, err := skipQuery(dAtA[iNdEx:])
  3750  			if err != nil {
  3751  				return err
  3752  			}
  3753  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3754  				return ErrInvalidLengthQuery
  3755  			}
  3756  			if (iNdEx + skippy) > l {
  3757  				return io.ErrUnexpectedEOF
  3758  			}
  3759  			iNdEx += skippy
  3760  		}
  3761  	}
  3762  
  3763  	if iNdEx > l {
  3764  		return io.ErrUnexpectedEOF
  3765  	}
  3766  	return nil
  3767  }
  3768  func (m *QueryValidatorsResponse) Unmarshal(dAtA []byte) error {
  3769  	l := len(dAtA)
  3770  	iNdEx := 0
  3771  	for iNdEx < l {
  3772  		preIndex := iNdEx
  3773  		var wire uint64
  3774  		for shift := uint(0); ; shift += 7 {
  3775  			if shift >= 64 {
  3776  				return ErrIntOverflowQuery
  3777  			}
  3778  			if iNdEx >= l {
  3779  				return io.ErrUnexpectedEOF
  3780  			}
  3781  			b := dAtA[iNdEx]
  3782  			iNdEx++
  3783  			wire |= uint64(b&0x7F) << shift
  3784  			if b < 0x80 {
  3785  				break
  3786  			}
  3787  		}
  3788  		fieldNum := int32(wire >> 3)
  3789  		wireType := int(wire & 0x7)
  3790  		if wireType == 4 {
  3791  			return fmt.Errorf("proto: QueryValidatorsResponse: wiretype end group for non-group")
  3792  		}
  3793  		if fieldNum <= 0 {
  3794  			return fmt.Errorf("proto: QueryValidatorsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3795  		}
  3796  		switch fieldNum {
  3797  		case 1:
  3798  			if wireType != 2 {
  3799  				return fmt.Errorf("proto: wrong wireType = %d for field Validators", wireType)
  3800  			}
  3801  			var msglen int
  3802  			for shift := uint(0); ; shift += 7 {
  3803  				if shift >= 64 {
  3804  					return ErrIntOverflowQuery
  3805  				}
  3806  				if iNdEx >= l {
  3807  					return io.ErrUnexpectedEOF
  3808  				}
  3809  				b := dAtA[iNdEx]
  3810  				iNdEx++
  3811  				msglen |= int(b&0x7F) << shift
  3812  				if b < 0x80 {
  3813  					break
  3814  				}
  3815  			}
  3816  			if msglen < 0 {
  3817  				return ErrInvalidLengthQuery
  3818  			}
  3819  			postIndex := iNdEx + msglen
  3820  			if postIndex < 0 {
  3821  				return ErrInvalidLengthQuery
  3822  			}
  3823  			if postIndex > l {
  3824  				return io.ErrUnexpectedEOF
  3825  			}
  3826  			m.Validators = append(m.Validators, Validator{})
  3827  			if err := m.Validators[len(m.Validators)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3828  				return err
  3829  			}
  3830  			iNdEx = postIndex
  3831  		case 2:
  3832  			if wireType != 2 {
  3833  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  3834  			}
  3835  			var msglen int
  3836  			for shift := uint(0); ; shift += 7 {
  3837  				if shift >= 64 {
  3838  					return ErrIntOverflowQuery
  3839  				}
  3840  				if iNdEx >= l {
  3841  					return io.ErrUnexpectedEOF
  3842  				}
  3843  				b := dAtA[iNdEx]
  3844  				iNdEx++
  3845  				msglen |= int(b&0x7F) << shift
  3846  				if b < 0x80 {
  3847  					break
  3848  				}
  3849  			}
  3850  			if msglen < 0 {
  3851  				return ErrInvalidLengthQuery
  3852  			}
  3853  			postIndex := iNdEx + msglen
  3854  			if postIndex < 0 {
  3855  				return ErrInvalidLengthQuery
  3856  			}
  3857  			if postIndex > l {
  3858  				return io.ErrUnexpectedEOF
  3859  			}
  3860  			if m.Pagination == nil {
  3861  				m.Pagination = &query.PageResponse{}
  3862  			}
  3863  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3864  				return err
  3865  			}
  3866  			iNdEx = postIndex
  3867  		default:
  3868  			iNdEx = preIndex
  3869  			skippy, err := skipQuery(dAtA[iNdEx:])
  3870  			if err != nil {
  3871  				return err
  3872  			}
  3873  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3874  				return ErrInvalidLengthQuery
  3875  			}
  3876  			if (iNdEx + skippy) > l {
  3877  				return io.ErrUnexpectedEOF
  3878  			}
  3879  			iNdEx += skippy
  3880  		}
  3881  	}
  3882  
  3883  	if iNdEx > l {
  3884  		return io.ErrUnexpectedEOF
  3885  	}
  3886  	return nil
  3887  }
  3888  func (m *QueryValidatorRequest) Unmarshal(dAtA []byte) error {
  3889  	l := len(dAtA)
  3890  	iNdEx := 0
  3891  	for iNdEx < l {
  3892  		preIndex := iNdEx
  3893  		var wire uint64
  3894  		for shift := uint(0); ; shift += 7 {
  3895  			if shift >= 64 {
  3896  				return ErrIntOverflowQuery
  3897  			}
  3898  			if iNdEx >= l {
  3899  				return io.ErrUnexpectedEOF
  3900  			}
  3901  			b := dAtA[iNdEx]
  3902  			iNdEx++
  3903  			wire |= uint64(b&0x7F) << shift
  3904  			if b < 0x80 {
  3905  				break
  3906  			}
  3907  		}
  3908  		fieldNum := int32(wire >> 3)
  3909  		wireType := int(wire & 0x7)
  3910  		if wireType == 4 {
  3911  			return fmt.Errorf("proto: QueryValidatorRequest: wiretype end group for non-group")
  3912  		}
  3913  		if fieldNum <= 0 {
  3914  			return fmt.Errorf("proto: QueryValidatorRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3915  		}
  3916  		switch fieldNum {
  3917  		case 1:
  3918  			if wireType != 2 {
  3919  				return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddr", wireType)
  3920  			}
  3921  			var stringLen uint64
  3922  			for shift := uint(0); ; shift += 7 {
  3923  				if shift >= 64 {
  3924  					return ErrIntOverflowQuery
  3925  				}
  3926  				if iNdEx >= l {
  3927  					return io.ErrUnexpectedEOF
  3928  				}
  3929  				b := dAtA[iNdEx]
  3930  				iNdEx++
  3931  				stringLen |= uint64(b&0x7F) << shift
  3932  				if b < 0x80 {
  3933  					break
  3934  				}
  3935  			}
  3936  			intStringLen := int(stringLen)
  3937  			if intStringLen < 0 {
  3938  				return ErrInvalidLengthQuery
  3939  			}
  3940  			postIndex := iNdEx + intStringLen
  3941  			if postIndex < 0 {
  3942  				return ErrInvalidLengthQuery
  3943  			}
  3944  			if postIndex > l {
  3945  				return io.ErrUnexpectedEOF
  3946  			}
  3947  			m.ValidatorAddr = string(dAtA[iNdEx:postIndex])
  3948  			iNdEx = postIndex
  3949  		default:
  3950  			iNdEx = preIndex
  3951  			skippy, err := skipQuery(dAtA[iNdEx:])
  3952  			if err != nil {
  3953  				return err
  3954  			}
  3955  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3956  				return ErrInvalidLengthQuery
  3957  			}
  3958  			if (iNdEx + skippy) > l {
  3959  				return io.ErrUnexpectedEOF
  3960  			}
  3961  			iNdEx += skippy
  3962  		}
  3963  	}
  3964  
  3965  	if iNdEx > l {
  3966  		return io.ErrUnexpectedEOF
  3967  	}
  3968  	return nil
  3969  }
  3970  func (m *QueryValidatorResponse) Unmarshal(dAtA []byte) error {
  3971  	l := len(dAtA)
  3972  	iNdEx := 0
  3973  	for iNdEx < l {
  3974  		preIndex := iNdEx
  3975  		var wire uint64
  3976  		for shift := uint(0); ; shift += 7 {
  3977  			if shift >= 64 {
  3978  				return ErrIntOverflowQuery
  3979  			}
  3980  			if iNdEx >= l {
  3981  				return io.ErrUnexpectedEOF
  3982  			}
  3983  			b := dAtA[iNdEx]
  3984  			iNdEx++
  3985  			wire |= uint64(b&0x7F) << shift
  3986  			if b < 0x80 {
  3987  				break
  3988  			}
  3989  		}
  3990  		fieldNum := int32(wire >> 3)
  3991  		wireType := int(wire & 0x7)
  3992  		if wireType == 4 {
  3993  			return fmt.Errorf("proto: QueryValidatorResponse: wiretype end group for non-group")
  3994  		}
  3995  		if fieldNum <= 0 {
  3996  			return fmt.Errorf("proto: QueryValidatorResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3997  		}
  3998  		switch fieldNum {
  3999  		case 1:
  4000  			if wireType != 2 {
  4001  				return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType)
  4002  			}
  4003  			var msglen int
  4004  			for shift := uint(0); ; shift += 7 {
  4005  				if shift >= 64 {
  4006  					return ErrIntOverflowQuery
  4007  				}
  4008  				if iNdEx >= l {
  4009  					return io.ErrUnexpectedEOF
  4010  				}
  4011  				b := dAtA[iNdEx]
  4012  				iNdEx++
  4013  				msglen |= int(b&0x7F) << shift
  4014  				if b < 0x80 {
  4015  					break
  4016  				}
  4017  			}
  4018  			if msglen < 0 {
  4019  				return ErrInvalidLengthQuery
  4020  			}
  4021  			postIndex := iNdEx + msglen
  4022  			if postIndex < 0 {
  4023  				return ErrInvalidLengthQuery
  4024  			}
  4025  			if postIndex > l {
  4026  				return io.ErrUnexpectedEOF
  4027  			}
  4028  			if err := m.Validator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4029  				return err
  4030  			}
  4031  			iNdEx = postIndex
  4032  		default:
  4033  			iNdEx = preIndex
  4034  			skippy, err := skipQuery(dAtA[iNdEx:])
  4035  			if err != nil {
  4036  				return err
  4037  			}
  4038  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4039  				return ErrInvalidLengthQuery
  4040  			}
  4041  			if (iNdEx + skippy) > l {
  4042  				return io.ErrUnexpectedEOF
  4043  			}
  4044  			iNdEx += skippy
  4045  		}
  4046  	}
  4047  
  4048  	if iNdEx > l {
  4049  		return io.ErrUnexpectedEOF
  4050  	}
  4051  	return nil
  4052  }
  4053  func (m *QueryValidatorDelegationsRequest) Unmarshal(dAtA []byte) error {
  4054  	l := len(dAtA)
  4055  	iNdEx := 0
  4056  	for iNdEx < l {
  4057  		preIndex := iNdEx
  4058  		var wire uint64
  4059  		for shift := uint(0); ; shift += 7 {
  4060  			if shift >= 64 {
  4061  				return ErrIntOverflowQuery
  4062  			}
  4063  			if iNdEx >= l {
  4064  				return io.ErrUnexpectedEOF
  4065  			}
  4066  			b := dAtA[iNdEx]
  4067  			iNdEx++
  4068  			wire |= uint64(b&0x7F) << shift
  4069  			if b < 0x80 {
  4070  				break
  4071  			}
  4072  		}
  4073  		fieldNum := int32(wire >> 3)
  4074  		wireType := int(wire & 0x7)
  4075  		if wireType == 4 {
  4076  			return fmt.Errorf("proto: QueryValidatorDelegationsRequest: wiretype end group for non-group")
  4077  		}
  4078  		if fieldNum <= 0 {
  4079  			return fmt.Errorf("proto: QueryValidatorDelegationsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  4080  		}
  4081  		switch fieldNum {
  4082  		case 1:
  4083  			if wireType != 2 {
  4084  				return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddr", wireType)
  4085  			}
  4086  			var stringLen uint64
  4087  			for shift := uint(0); ; shift += 7 {
  4088  				if shift >= 64 {
  4089  					return ErrIntOverflowQuery
  4090  				}
  4091  				if iNdEx >= l {
  4092  					return io.ErrUnexpectedEOF
  4093  				}
  4094  				b := dAtA[iNdEx]
  4095  				iNdEx++
  4096  				stringLen |= uint64(b&0x7F) << shift
  4097  				if b < 0x80 {
  4098  					break
  4099  				}
  4100  			}
  4101  			intStringLen := int(stringLen)
  4102  			if intStringLen < 0 {
  4103  				return ErrInvalidLengthQuery
  4104  			}
  4105  			postIndex := iNdEx + intStringLen
  4106  			if postIndex < 0 {
  4107  				return ErrInvalidLengthQuery
  4108  			}
  4109  			if postIndex > l {
  4110  				return io.ErrUnexpectedEOF
  4111  			}
  4112  			m.ValidatorAddr = string(dAtA[iNdEx:postIndex])
  4113  			iNdEx = postIndex
  4114  		case 2:
  4115  			if wireType != 2 {
  4116  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  4117  			}
  4118  			var msglen int
  4119  			for shift := uint(0); ; shift += 7 {
  4120  				if shift >= 64 {
  4121  					return ErrIntOverflowQuery
  4122  				}
  4123  				if iNdEx >= l {
  4124  					return io.ErrUnexpectedEOF
  4125  				}
  4126  				b := dAtA[iNdEx]
  4127  				iNdEx++
  4128  				msglen |= int(b&0x7F) << shift
  4129  				if b < 0x80 {
  4130  					break
  4131  				}
  4132  			}
  4133  			if msglen < 0 {
  4134  				return ErrInvalidLengthQuery
  4135  			}
  4136  			postIndex := iNdEx + msglen
  4137  			if postIndex < 0 {
  4138  				return ErrInvalidLengthQuery
  4139  			}
  4140  			if postIndex > l {
  4141  				return io.ErrUnexpectedEOF
  4142  			}
  4143  			if m.Pagination == nil {
  4144  				m.Pagination = &query.PageRequest{}
  4145  			}
  4146  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4147  				return err
  4148  			}
  4149  			iNdEx = postIndex
  4150  		default:
  4151  			iNdEx = preIndex
  4152  			skippy, err := skipQuery(dAtA[iNdEx:])
  4153  			if err != nil {
  4154  				return err
  4155  			}
  4156  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4157  				return ErrInvalidLengthQuery
  4158  			}
  4159  			if (iNdEx + skippy) > l {
  4160  				return io.ErrUnexpectedEOF
  4161  			}
  4162  			iNdEx += skippy
  4163  		}
  4164  	}
  4165  
  4166  	if iNdEx > l {
  4167  		return io.ErrUnexpectedEOF
  4168  	}
  4169  	return nil
  4170  }
  4171  func (m *QueryValidatorDelegationsResponse) Unmarshal(dAtA []byte) error {
  4172  	l := len(dAtA)
  4173  	iNdEx := 0
  4174  	for iNdEx < l {
  4175  		preIndex := iNdEx
  4176  		var wire uint64
  4177  		for shift := uint(0); ; shift += 7 {
  4178  			if shift >= 64 {
  4179  				return ErrIntOverflowQuery
  4180  			}
  4181  			if iNdEx >= l {
  4182  				return io.ErrUnexpectedEOF
  4183  			}
  4184  			b := dAtA[iNdEx]
  4185  			iNdEx++
  4186  			wire |= uint64(b&0x7F) << shift
  4187  			if b < 0x80 {
  4188  				break
  4189  			}
  4190  		}
  4191  		fieldNum := int32(wire >> 3)
  4192  		wireType := int(wire & 0x7)
  4193  		if wireType == 4 {
  4194  			return fmt.Errorf("proto: QueryValidatorDelegationsResponse: wiretype end group for non-group")
  4195  		}
  4196  		if fieldNum <= 0 {
  4197  			return fmt.Errorf("proto: QueryValidatorDelegationsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  4198  		}
  4199  		switch fieldNum {
  4200  		case 1:
  4201  			if wireType != 2 {
  4202  				return fmt.Errorf("proto: wrong wireType = %d for field DelegationResponses", wireType)
  4203  			}
  4204  			var msglen int
  4205  			for shift := uint(0); ; shift += 7 {
  4206  				if shift >= 64 {
  4207  					return ErrIntOverflowQuery
  4208  				}
  4209  				if iNdEx >= l {
  4210  					return io.ErrUnexpectedEOF
  4211  				}
  4212  				b := dAtA[iNdEx]
  4213  				iNdEx++
  4214  				msglen |= int(b&0x7F) << shift
  4215  				if b < 0x80 {
  4216  					break
  4217  				}
  4218  			}
  4219  			if msglen < 0 {
  4220  				return ErrInvalidLengthQuery
  4221  			}
  4222  			postIndex := iNdEx + msglen
  4223  			if postIndex < 0 {
  4224  				return ErrInvalidLengthQuery
  4225  			}
  4226  			if postIndex > l {
  4227  				return io.ErrUnexpectedEOF
  4228  			}
  4229  			m.DelegationResponses = append(m.DelegationResponses, DelegationResponse{})
  4230  			if err := m.DelegationResponses[len(m.DelegationResponses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4231  				return err
  4232  			}
  4233  			iNdEx = postIndex
  4234  		case 2:
  4235  			if wireType != 2 {
  4236  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  4237  			}
  4238  			var msglen int
  4239  			for shift := uint(0); ; shift += 7 {
  4240  				if shift >= 64 {
  4241  					return ErrIntOverflowQuery
  4242  				}
  4243  				if iNdEx >= l {
  4244  					return io.ErrUnexpectedEOF
  4245  				}
  4246  				b := dAtA[iNdEx]
  4247  				iNdEx++
  4248  				msglen |= int(b&0x7F) << shift
  4249  				if b < 0x80 {
  4250  					break
  4251  				}
  4252  			}
  4253  			if msglen < 0 {
  4254  				return ErrInvalidLengthQuery
  4255  			}
  4256  			postIndex := iNdEx + msglen
  4257  			if postIndex < 0 {
  4258  				return ErrInvalidLengthQuery
  4259  			}
  4260  			if postIndex > l {
  4261  				return io.ErrUnexpectedEOF
  4262  			}
  4263  			if m.Pagination == nil {
  4264  				m.Pagination = &query.PageResponse{}
  4265  			}
  4266  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4267  				return err
  4268  			}
  4269  			iNdEx = postIndex
  4270  		default:
  4271  			iNdEx = preIndex
  4272  			skippy, err := skipQuery(dAtA[iNdEx:])
  4273  			if err != nil {
  4274  				return err
  4275  			}
  4276  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4277  				return ErrInvalidLengthQuery
  4278  			}
  4279  			if (iNdEx + skippy) > l {
  4280  				return io.ErrUnexpectedEOF
  4281  			}
  4282  			iNdEx += skippy
  4283  		}
  4284  	}
  4285  
  4286  	if iNdEx > l {
  4287  		return io.ErrUnexpectedEOF
  4288  	}
  4289  	return nil
  4290  }
  4291  func (m *QueryValidatorUnbondingDelegationsRequest) Unmarshal(dAtA []byte) error {
  4292  	l := len(dAtA)
  4293  	iNdEx := 0
  4294  	for iNdEx < l {
  4295  		preIndex := iNdEx
  4296  		var wire uint64
  4297  		for shift := uint(0); ; shift += 7 {
  4298  			if shift >= 64 {
  4299  				return ErrIntOverflowQuery
  4300  			}
  4301  			if iNdEx >= l {
  4302  				return io.ErrUnexpectedEOF
  4303  			}
  4304  			b := dAtA[iNdEx]
  4305  			iNdEx++
  4306  			wire |= uint64(b&0x7F) << shift
  4307  			if b < 0x80 {
  4308  				break
  4309  			}
  4310  		}
  4311  		fieldNum := int32(wire >> 3)
  4312  		wireType := int(wire & 0x7)
  4313  		if wireType == 4 {
  4314  			return fmt.Errorf("proto: QueryValidatorUnbondingDelegationsRequest: wiretype end group for non-group")
  4315  		}
  4316  		if fieldNum <= 0 {
  4317  			return fmt.Errorf("proto: QueryValidatorUnbondingDelegationsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  4318  		}
  4319  		switch fieldNum {
  4320  		case 1:
  4321  			if wireType != 2 {
  4322  				return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddr", wireType)
  4323  			}
  4324  			var stringLen uint64
  4325  			for shift := uint(0); ; shift += 7 {
  4326  				if shift >= 64 {
  4327  					return ErrIntOverflowQuery
  4328  				}
  4329  				if iNdEx >= l {
  4330  					return io.ErrUnexpectedEOF
  4331  				}
  4332  				b := dAtA[iNdEx]
  4333  				iNdEx++
  4334  				stringLen |= uint64(b&0x7F) << shift
  4335  				if b < 0x80 {
  4336  					break
  4337  				}
  4338  			}
  4339  			intStringLen := int(stringLen)
  4340  			if intStringLen < 0 {
  4341  				return ErrInvalidLengthQuery
  4342  			}
  4343  			postIndex := iNdEx + intStringLen
  4344  			if postIndex < 0 {
  4345  				return ErrInvalidLengthQuery
  4346  			}
  4347  			if postIndex > l {
  4348  				return io.ErrUnexpectedEOF
  4349  			}
  4350  			m.ValidatorAddr = string(dAtA[iNdEx:postIndex])
  4351  			iNdEx = postIndex
  4352  		case 2:
  4353  			if wireType != 2 {
  4354  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  4355  			}
  4356  			var msglen int
  4357  			for shift := uint(0); ; shift += 7 {
  4358  				if shift >= 64 {
  4359  					return ErrIntOverflowQuery
  4360  				}
  4361  				if iNdEx >= l {
  4362  					return io.ErrUnexpectedEOF
  4363  				}
  4364  				b := dAtA[iNdEx]
  4365  				iNdEx++
  4366  				msglen |= int(b&0x7F) << shift
  4367  				if b < 0x80 {
  4368  					break
  4369  				}
  4370  			}
  4371  			if msglen < 0 {
  4372  				return ErrInvalidLengthQuery
  4373  			}
  4374  			postIndex := iNdEx + msglen
  4375  			if postIndex < 0 {
  4376  				return ErrInvalidLengthQuery
  4377  			}
  4378  			if postIndex > l {
  4379  				return io.ErrUnexpectedEOF
  4380  			}
  4381  			if m.Pagination == nil {
  4382  				m.Pagination = &query.PageRequest{}
  4383  			}
  4384  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4385  				return err
  4386  			}
  4387  			iNdEx = postIndex
  4388  		default:
  4389  			iNdEx = preIndex
  4390  			skippy, err := skipQuery(dAtA[iNdEx:])
  4391  			if err != nil {
  4392  				return err
  4393  			}
  4394  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4395  				return ErrInvalidLengthQuery
  4396  			}
  4397  			if (iNdEx + skippy) > l {
  4398  				return io.ErrUnexpectedEOF
  4399  			}
  4400  			iNdEx += skippy
  4401  		}
  4402  	}
  4403  
  4404  	if iNdEx > l {
  4405  		return io.ErrUnexpectedEOF
  4406  	}
  4407  	return nil
  4408  }
  4409  func (m *QueryValidatorUnbondingDelegationsResponse) Unmarshal(dAtA []byte) error {
  4410  	l := len(dAtA)
  4411  	iNdEx := 0
  4412  	for iNdEx < l {
  4413  		preIndex := iNdEx
  4414  		var wire uint64
  4415  		for shift := uint(0); ; shift += 7 {
  4416  			if shift >= 64 {
  4417  				return ErrIntOverflowQuery
  4418  			}
  4419  			if iNdEx >= l {
  4420  				return io.ErrUnexpectedEOF
  4421  			}
  4422  			b := dAtA[iNdEx]
  4423  			iNdEx++
  4424  			wire |= uint64(b&0x7F) << shift
  4425  			if b < 0x80 {
  4426  				break
  4427  			}
  4428  		}
  4429  		fieldNum := int32(wire >> 3)
  4430  		wireType := int(wire & 0x7)
  4431  		if wireType == 4 {
  4432  			return fmt.Errorf("proto: QueryValidatorUnbondingDelegationsResponse: wiretype end group for non-group")
  4433  		}
  4434  		if fieldNum <= 0 {
  4435  			return fmt.Errorf("proto: QueryValidatorUnbondingDelegationsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  4436  		}
  4437  		switch fieldNum {
  4438  		case 1:
  4439  			if wireType != 2 {
  4440  				return fmt.Errorf("proto: wrong wireType = %d for field UnbondingResponses", wireType)
  4441  			}
  4442  			var msglen int
  4443  			for shift := uint(0); ; shift += 7 {
  4444  				if shift >= 64 {
  4445  					return ErrIntOverflowQuery
  4446  				}
  4447  				if iNdEx >= l {
  4448  					return io.ErrUnexpectedEOF
  4449  				}
  4450  				b := dAtA[iNdEx]
  4451  				iNdEx++
  4452  				msglen |= int(b&0x7F) << shift
  4453  				if b < 0x80 {
  4454  					break
  4455  				}
  4456  			}
  4457  			if msglen < 0 {
  4458  				return ErrInvalidLengthQuery
  4459  			}
  4460  			postIndex := iNdEx + msglen
  4461  			if postIndex < 0 {
  4462  				return ErrInvalidLengthQuery
  4463  			}
  4464  			if postIndex > l {
  4465  				return io.ErrUnexpectedEOF
  4466  			}
  4467  			m.UnbondingResponses = append(m.UnbondingResponses, UnbondingDelegation{})
  4468  			if err := m.UnbondingResponses[len(m.UnbondingResponses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4469  				return err
  4470  			}
  4471  			iNdEx = postIndex
  4472  		case 2:
  4473  			if wireType != 2 {
  4474  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  4475  			}
  4476  			var msglen int
  4477  			for shift := uint(0); ; shift += 7 {
  4478  				if shift >= 64 {
  4479  					return ErrIntOverflowQuery
  4480  				}
  4481  				if iNdEx >= l {
  4482  					return io.ErrUnexpectedEOF
  4483  				}
  4484  				b := dAtA[iNdEx]
  4485  				iNdEx++
  4486  				msglen |= int(b&0x7F) << shift
  4487  				if b < 0x80 {
  4488  					break
  4489  				}
  4490  			}
  4491  			if msglen < 0 {
  4492  				return ErrInvalidLengthQuery
  4493  			}
  4494  			postIndex := iNdEx + msglen
  4495  			if postIndex < 0 {
  4496  				return ErrInvalidLengthQuery
  4497  			}
  4498  			if postIndex > l {
  4499  				return io.ErrUnexpectedEOF
  4500  			}
  4501  			if m.Pagination == nil {
  4502  				m.Pagination = &query.PageResponse{}
  4503  			}
  4504  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4505  				return err
  4506  			}
  4507  			iNdEx = postIndex
  4508  		default:
  4509  			iNdEx = preIndex
  4510  			skippy, err := skipQuery(dAtA[iNdEx:])
  4511  			if err != nil {
  4512  				return err
  4513  			}
  4514  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4515  				return ErrInvalidLengthQuery
  4516  			}
  4517  			if (iNdEx + skippy) > l {
  4518  				return io.ErrUnexpectedEOF
  4519  			}
  4520  			iNdEx += skippy
  4521  		}
  4522  	}
  4523  
  4524  	if iNdEx > l {
  4525  		return io.ErrUnexpectedEOF
  4526  	}
  4527  	return nil
  4528  }
  4529  func (m *QueryDelegationRequest) Unmarshal(dAtA []byte) error {
  4530  	l := len(dAtA)
  4531  	iNdEx := 0
  4532  	for iNdEx < l {
  4533  		preIndex := iNdEx
  4534  		var wire uint64
  4535  		for shift := uint(0); ; shift += 7 {
  4536  			if shift >= 64 {
  4537  				return ErrIntOverflowQuery
  4538  			}
  4539  			if iNdEx >= l {
  4540  				return io.ErrUnexpectedEOF
  4541  			}
  4542  			b := dAtA[iNdEx]
  4543  			iNdEx++
  4544  			wire |= uint64(b&0x7F) << shift
  4545  			if b < 0x80 {
  4546  				break
  4547  			}
  4548  		}
  4549  		fieldNum := int32(wire >> 3)
  4550  		wireType := int(wire & 0x7)
  4551  		if wireType == 4 {
  4552  			return fmt.Errorf("proto: QueryDelegationRequest: wiretype end group for non-group")
  4553  		}
  4554  		if fieldNum <= 0 {
  4555  			return fmt.Errorf("proto: QueryDelegationRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  4556  		}
  4557  		switch fieldNum {
  4558  		case 1:
  4559  			if wireType != 2 {
  4560  				return fmt.Errorf("proto: wrong wireType = %d for field DelegatorAddr", wireType)
  4561  			}
  4562  			var stringLen uint64
  4563  			for shift := uint(0); ; shift += 7 {
  4564  				if shift >= 64 {
  4565  					return ErrIntOverflowQuery
  4566  				}
  4567  				if iNdEx >= l {
  4568  					return io.ErrUnexpectedEOF
  4569  				}
  4570  				b := dAtA[iNdEx]
  4571  				iNdEx++
  4572  				stringLen |= uint64(b&0x7F) << shift
  4573  				if b < 0x80 {
  4574  					break
  4575  				}
  4576  			}
  4577  			intStringLen := int(stringLen)
  4578  			if intStringLen < 0 {
  4579  				return ErrInvalidLengthQuery
  4580  			}
  4581  			postIndex := iNdEx + intStringLen
  4582  			if postIndex < 0 {
  4583  				return ErrInvalidLengthQuery
  4584  			}
  4585  			if postIndex > l {
  4586  				return io.ErrUnexpectedEOF
  4587  			}
  4588  			m.DelegatorAddr = string(dAtA[iNdEx:postIndex])
  4589  			iNdEx = postIndex
  4590  		case 2:
  4591  			if wireType != 2 {
  4592  				return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddr", wireType)
  4593  			}
  4594  			var stringLen uint64
  4595  			for shift := uint(0); ; shift += 7 {
  4596  				if shift >= 64 {
  4597  					return ErrIntOverflowQuery
  4598  				}
  4599  				if iNdEx >= l {
  4600  					return io.ErrUnexpectedEOF
  4601  				}
  4602  				b := dAtA[iNdEx]
  4603  				iNdEx++
  4604  				stringLen |= uint64(b&0x7F) << shift
  4605  				if b < 0x80 {
  4606  					break
  4607  				}
  4608  			}
  4609  			intStringLen := int(stringLen)
  4610  			if intStringLen < 0 {
  4611  				return ErrInvalidLengthQuery
  4612  			}
  4613  			postIndex := iNdEx + intStringLen
  4614  			if postIndex < 0 {
  4615  				return ErrInvalidLengthQuery
  4616  			}
  4617  			if postIndex > l {
  4618  				return io.ErrUnexpectedEOF
  4619  			}
  4620  			m.ValidatorAddr = string(dAtA[iNdEx:postIndex])
  4621  			iNdEx = postIndex
  4622  		default:
  4623  			iNdEx = preIndex
  4624  			skippy, err := skipQuery(dAtA[iNdEx:])
  4625  			if err != nil {
  4626  				return err
  4627  			}
  4628  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4629  				return ErrInvalidLengthQuery
  4630  			}
  4631  			if (iNdEx + skippy) > l {
  4632  				return io.ErrUnexpectedEOF
  4633  			}
  4634  			iNdEx += skippy
  4635  		}
  4636  	}
  4637  
  4638  	if iNdEx > l {
  4639  		return io.ErrUnexpectedEOF
  4640  	}
  4641  	return nil
  4642  }
  4643  func (m *QueryDelegationResponse) Unmarshal(dAtA []byte) error {
  4644  	l := len(dAtA)
  4645  	iNdEx := 0
  4646  	for iNdEx < l {
  4647  		preIndex := iNdEx
  4648  		var wire uint64
  4649  		for shift := uint(0); ; shift += 7 {
  4650  			if shift >= 64 {
  4651  				return ErrIntOverflowQuery
  4652  			}
  4653  			if iNdEx >= l {
  4654  				return io.ErrUnexpectedEOF
  4655  			}
  4656  			b := dAtA[iNdEx]
  4657  			iNdEx++
  4658  			wire |= uint64(b&0x7F) << shift
  4659  			if b < 0x80 {
  4660  				break
  4661  			}
  4662  		}
  4663  		fieldNum := int32(wire >> 3)
  4664  		wireType := int(wire & 0x7)
  4665  		if wireType == 4 {
  4666  			return fmt.Errorf("proto: QueryDelegationResponse: wiretype end group for non-group")
  4667  		}
  4668  		if fieldNum <= 0 {
  4669  			return fmt.Errorf("proto: QueryDelegationResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  4670  		}
  4671  		switch fieldNum {
  4672  		case 1:
  4673  			if wireType != 2 {
  4674  				return fmt.Errorf("proto: wrong wireType = %d for field DelegationResponse", wireType)
  4675  			}
  4676  			var msglen int
  4677  			for shift := uint(0); ; shift += 7 {
  4678  				if shift >= 64 {
  4679  					return ErrIntOverflowQuery
  4680  				}
  4681  				if iNdEx >= l {
  4682  					return io.ErrUnexpectedEOF
  4683  				}
  4684  				b := dAtA[iNdEx]
  4685  				iNdEx++
  4686  				msglen |= int(b&0x7F) << shift
  4687  				if b < 0x80 {
  4688  					break
  4689  				}
  4690  			}
  4691  			if msglen < 0 {
  4692  				return ErrInvalidLengthQuery
  4693  			}
  4694  			postIndex := iNdEx + msglen
  4695  			if postIndex < 0 {
  4696  				return ErrInvalidLengthQuery
  4697  			}
  4698  			if postIndex > l {
  4699  				return io.ErrUnexpectedEOF
  4700  			}
  4701  			if m.DelegationResponse == nil {
  4702  				m.DelegationResponse = &DelegationResponse{}
  4703  			}
  4704  			if err := m.DelegationResponse.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4705  				return err
  4706  			}
  4707  			iNdEx = postIndex
  4708  		default:
  4709  			iNdEx = preIndex
  4710  			skippy, err := skipQuery(dAtA[iNdEx:])
  4711  			if err != nil {
  4712  				return err
  4713  			}
  4714  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4715  				return ErrInvalidLengthQuery
  4716  			}
  4717  			if (iNdEx + skippy) > l {
  4718  				return io.ErrUnexpectedEOF
  4719  			}
  4720  			iNdEx += skippy
  4721  		}
  4722  	}
  4723  
  4724  	if iNdEx > l {
  4725  		return io.ErrUnexpectedEOF
  4726  	}
  4727  	return nil
  4728  }
  4729  func (m *QueryUnbondingDelegationRequest) Unmarshal(dAtA []byte) error {
  4730  	l := len(dAtA)
  4731  	iNdEx := 0
  4732  	for iNdEx < l {
  4733  		preIndex := iNdEx
  4734  		var wire uint64
  4735  		for shift := uint(0); ; shift += 7 {
  4736  			if shift >= 64 {
  4737  				return ErrIntOverflowQuery
  4738  			}
  4739  			if iNdEx >= l {
  4740  				return io.ErrUnexpectedEOF
  4741  			}
  4742  			b := dAtA[iNdEx]
  4743  			iNdEx++
  4744  			wire |= uint64(b&0x7F) << shift
  4745  			if b < 0x80 {
  4746  				break
  4747  			}
  4748  		}
  4749  		fieldNum := int32(wire >> 3)
  4750  		wireType := int(wire & 0x7)
  4751  		if wireType == 4 {
  4752  			return fmt.Errorf("proto: QueryUnbondingDelegationRequest: wiretype end group for non-group")
  4753  		}
  4754  		if fieldNum <= 0 {
  4755  			return fmt.Errorf("proto: QueryUnbondingDelegationRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  4756  		}
  4757  		switch fieldNum {
  4758  		case 1:
  4759  			if wireType != 2 {
  4760  				return fmt.Errorf("proto: wrong wireType = %d for field DelegatorAddr", wireType)
  4761  			}
  4762  			var stringLen uint64
  4763  			for shift := uint(0); ; shift += 7 {
  4764  				if shift >= 64 {
  4765  					return ErrIntOverflowQuery
  4766  				}
  4767  				if iNdEx >= l {
  4768  					return io.ErrUnexpectedEOF
  4769  				}
  4770  				b := dAtA[iNdEx]
  4771  				iNdEx++
  4772  				stringLen |= uint64(b&0x7F) << shift
  4773  				if b < 0x80 {
  4774  					break
  4775  				}
  4776  			}
  4777  			intStringLen := int(stringLen)
  4778  			if intStringLen < 0 {
  4779  				return ErrInvalidLengthQuery
  4780  			}
  4781  			postIndex := iNdEx + intStringLen
  4782  			if postIndex < 0 {
  4783  				return ErrInvalidLengthQuery
  4784  			}
  4785  			if postIndex > l {
  4786  				return io.ErrUnexpectedEOF
  4787  			}
  4788  			m.DelegatorAddr = string(dAtA[iNdEx:postIndex])
  4789  			iNdEx = postIndex
  4790  		case 2:
  4791  			if wireType != 2 {
  4792  				return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddr", wireType)
  4793  			}
  4794  			var stringLen uint64
  4795  			for shift := uint(0); ; shift += 7 {
  4796  				if shift >= 64 {
  4797  					return ErrIntOverflowQuery
  4798  				}
  4799  				if iNdEx >= l {
  4800  					return io.ErrUnexpectedEOF
  4801  				}
  4802  				b := dAtA[iNdEx]
  4803  				iNdEx++
  4804  				stringLen |= uint64(b&0x7F) << shift
  4805  				if b < 0x80 {
  4806  					break
  4807  				}
  4808  			}
  4809  			intStringLen := int(stringLen)
  4810  			if intStringLen < 0 {
  4811  				return ErrInvalidLengthQuery
  4812  			}
  4813  			postIndex := iNdEx + intStringLen
  4814  			if postIndex < 0 {
  4815  				return ErrInvalidLengthQuery
  4816  			}
  4817  			if postIndex > l {
  4818  				return io.ErrUnexpectedEOF
  4819  			}
  4820  			m.ValidatorAddr = string(dAtA[iNdEx:postIndex])
  4821  			iNdEx = postIndex
  4822  		default:
  4823  			iNdEx = preIndex
  4824  			skippy, err := skipQuery(dAtA[iNdEx:])
  4825  			if err != nil {
  4826  				return err
  4827  			}
  4828  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4829  				return ErrInvalidLengthQuery
  4830  			}
  4831  			if (iNdEx + skippy) > l {
  4832  				return io.ErrUnexpectedEOF
  4833  			}
  4834  			iNdEx += skippy
  4835  		}
  4836  	}
  4837  
  4838  	if iNdEx > l {
  4839  		return io.ErrUnexpectedEOF
  4840  	}
  4841  	return nil
  4842  }
  4843  func (m *QueryUnbondingDelegationResponse) Unmarshal(dAtA []byte) error {
  4844  	l := len(dAtA)
  4845  	iNdEx := 0
  4846  	for iNdEx < l {
  4847  		preIndex := iNdEx
  4848  		var wire uint64
  4849  		for shift := uint(0); ; shift += 7 {
  4850  			if shift >= 64 {
  4851  				return ErrIntOverflowQuery
  4852  			}
  4853  			if iNdEx >= l {
  4854  				return io.ErrUnexpectedEOF
  4855  			}
  4856  			b := dAtA[iNdEx]
  4857  			iNdEx++
  4858  			wire |= uint64(b&0x7F) << shift
  4859  			if b < 0x80 {
  4860  				break
  4861  			}
  4862  		}
  4863  		fieldNum := int32(wire >> 3)
  4864  		wireType := int(wire & 0x7)
  4865  		if wireType == 4 {
  4866  			return fmt.Errorf("proto: QueryUnbondingDelegationResponse: wiretype end group for non-group")
  4867  		}
  4868  		if fieldNum <= 0 {
  4869  			return fmt.Errorf("proto: QueryUnbondingDelegationResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  4870  		}
  4871  		switch fieldNum {
  4872  		case 1:
  4873  			if wireType != 2 {
  4874  				return fmt.Errorf("proto: wrong wireType = %d for field Unbond", wireType)
  4875  			}
  4876  			var msglen int
  4877  			for shift := uint(0); ; shift += 7 {
  4878  				if shift >= 64 {
  4879  					return ErrIntOverflowQuery
  4880  				}
  4881  				if iNdEx >= l {
  4882  					return io.ErrUnexpectedEOF
  4883  				}
  4884  				b := dAtA[iNdEx]
  4885  				iNdEx++
  4886  				msglen |= int(b&0x7F) << shift
  4887  				if b < 0x80 {
  4888  					break
  4889  				}
  4890  			}
  4891  			if msglen < 0 {
  4892  				return ErrInvalidLengthQuery
  4893  			}
  4894  			postIndex := iNdEx + msglen
  4895  			if postIndex < 0 {
  4896  				return ErrInvalidLengthQuery
  4897  			}
  4898  			if postIndex > l {
  4899  				return io.ErrUnexpectedEOF
  4900  			}
  4901  			if err := m.Unbond.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4902  				return err
  4903  			}
  4904  			iNdEx = postIndex
  4905  		default:
  4906  			iNdEx = preIndex
  4907  			skippy, err := skipQuery(dAtA[iNdEx:])
  4908  			if err != nil {
  4909  				return err
  4910  			}
  4911  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4912  				return ErrInvalidLengthQuery
  4913  			}
  4914  			if (iNdEx + skippy) > l {
  4915  				return io.ErrUnexpectedEOF
  4916  			}
  4917  			iNdEx += skippy
  4918  		}
  4919  	}
  4920  
  4921  	if iNdEx > l {
  4922  		return io.ErrUnexpectedEOF
  4923  	}
  4924  	return nil
  4925  }
  4926  func (m *QueryDelegatorDelegationsRequest) Unmarshal(dAtA []byte) error {
  4927  	l := len(dAtA)
  4928  	iNdEx := 0
  4929  	for iNdEx < l {
  4930  		preIndex := iNdEx
  4931  		var wire uint64
  4932  		for shift := uint(0); ; shift += 7 {
  4933  			if shift >= 64 {
  4934  				return ErrIntOverflowQuery
  4935  			}
  4936  			if iNdEx >= l {
  4937  				return io.ErrUnexpectedEOF
  4938  			}
  4939  			b := dAtA[iNdEx]
  4940  			iNdEx++
  4941  			wire |= uint64(b&0x7F) << shift
  4942  			if b < 0x80 {
  4943  				break
  4944  			}
  4945  		}
  4946  		fieldNum := int32(wire >> 3)
  4947  		wireType := int(wire & 0x7)
  4948  		if wireType == 4 {
  4949  			return fmt.Errorf("proto: QueryDelegatorDelegationsRequest: wiretype end group for non-group")
  4950  		}
  4951  		if fieldNum <= 0 {
  4952  			return fmt.Errorf("proto: QueryDelegatorDelegationsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  4953  		}
  4954  		switch fieldNum {
  4955  		case 1:
  4956  			if wireType != 2 {
  4957  				return fmt.Errorf("proto: wrong wireType = %d for field DelegatorAddr", wireType)
  4958  			}
  4959  			var stringLen uint64
  4960  			for shift := uint(0); ; shift += 7 {
  4961  				if shift >= 64 {
  4962  					return ErrIntOverflowQuery
  4963  				}
  4964  				if iNdEx >= l {
  4965  					return io.ErrUnexpectedEOF
  4966  				}
  4967  				b := dAtA[iNdEx]
  4968  				iNdEx++
  4969  				stringLen |= uint64(b&0x7F) << shift
  4970  				if b < 0x80 {
  4971  					break
  4972  				}
  4973  			}
  4974  			intStringLen := int(stringLen)
  4975  			if intStringLen < 0 {
  4976  				return ErrInvalidLengthQuery
  4977  			}
  4978  			postIndex := iNdEx + intStringLen
  4979  			if postIndex < 0 {
  4980  				return ErrInvalidLengthQuery
  4981  			}
  4982  			if postIndex > l {
  4983  				return io.ErrUnexpectedEOF
  4984  			}
  4985  			m.DelegatorAddr = string(dAtA[iNdEx:postIndex])
  4986  			iNdEx = postIndex
  4987  		case 2:
  4988  			if wireType != 2 {
  4989  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  4990  			}
  4991  			var msglen int
  4992  			for shift := uint(0); ; shift += 7 {
  4993  				if shift >= 64 {
  4994  					return ErrIntOverflowQuery
  4995  				}
  4996  				if iNdEx >= l {
  4997  					return io.ErrUnexpectedEOF
  4998  				}
  4999  				b := dAtA[iNdEx]
  5000  				iNdEx++
  5001  				msglen |= int(b&0x7F) << shift
  5002  				if b < 0x80 {
  5003  					break
  5004  				}
  5005  			}
  5006  			if msglen < 0 {
  5007  				return ErrInvalidLengthQuery
  5008  			}
  5009  			postIndex := iNdEx + msglen
  5010  			if postIndex < 0 {
  5011  				return ErrInvalidLengthQuery
  5012  			}
  5013  			if postIndex > l {
  5014  				return io.ErrUnexpectedEOF
  5015  			}
  5016  			if m.Pagination == nil {
  5017  				m.Pagination = &query.PageRequest{}
  5018  			}
  5019  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5020  				return err
  5021  			}
  5022  			iNdEx = postIndex
  5023  		default:
  5024  			iNdEx = preIndex
  5025  			skippy, err := skipQuery(dAtA[iNdEx:])
  5026  			if err != nil {
  5027  				return err
  5028  			}
  5029  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5030  				return ErrInvalidLengthQuery
  5031  			}
  5032  			if (iNdEx + skippy) > l {
  5033  				return io.ErrUnexpectedEOF
  5034  			}
  5035  			iNdEx += skippy
  5036  		}
  5037  	}
  5038  
  5039  	if iNdEx > l {
  5040  		return io.ErrUnexpectedEOF
  5041  	}
  5042  	return nil
  5043  }
  5044  func (m *QueryDelegatorDelegationsResponse) Unmarshal(dAtA []byte) error {
  5045  	l := len(dAtA)
  5046  	iNdEx := 0
  5047  	for iNdEx < l {
  5048  		preIndex := iNdEx
  5049  		var wire uint64
  5050  		for shift := uint(0); ; shift += 7 {
  5051  			if shift >= 64 {
  5052  				return ErrIntOverflowQuery
  5053  			}
  5054  			if iNdEx >= l {
  5055  				return io.ErrUnexpectedEOF
  5056  			}
  5057  			b := dAtA[iNdEx]
  5058  			iNdEx++
  5059  			wire |= uint64(b&0x7F) << shift
  5060  			if b < 0x80 {
  5061  				break
  5062  			}
  5063  		}
  5064  		fieldNum := int32(wire >> 3)
  5065  		wireType := int(wire & 0x7)
  5066  		if wireType == 4 {
  5067  			return fmt.Errorf("proto: QueryDelegatorDelegationsResponse: wiretype end group for non-group")
  5068  		}
  5069  		if fieldNum <= 0 {
  5070  			return fmt.Errorf("proto: QueryDelegatorDelegationsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  5071  		}
  5072  		switch fieldNum {
  5073  		case 1:
  5074  			if wireType != 2 {
  5075  				return fmt.Errorf("proto: wrong wireType = %d for field DelegationResponses", wireType)
  5076  			}
  5077  			var msglen int
  5078  			for shift := uint(0); ; shift += 7 {
  5079  				if shift >= 64 {
  5080  					return ErrIntOverflowQuery
  5081  				}
  5082  				if iNdEx >= l {
  5083  					return io.ErrUnexpectedEOF
  5084  				}
  5085  				b := dAtA[iNdEx]
  5086  				iNdEx++
  5087  				msglen |= int(b&0x7F) << shift
  5088  				if b < 0x80 {
  5089  					break
  5090  				}
  5091  			}
  5092  			if msglen < 0 {
  5093  				return ErrInvalidLengthQuery
  5094  			}
  5095  			postIndex := iNdEx + msglen
  5096  			if postIndex < 0 {
  5097  				return ErrInvalidLengthQuery
  5098  			}
  5099  			if postIndex > l {
  5100  				return io.ErrUnexpectedEOF
  5101  			}
  5102  			m.DelegationResponses = append(m.DelegationResponses, DelegationResponse{})
  5103  			if err := m.DelegationResponses[len(m.DelegationResponses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5104  				return err
  5105  			}
  5106  			iNdEx = postIndex
  5107  		case 2:
  5108  			if wireType != 2 {
  5109  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  5110  			}
  5111  			var msglen int
  5112  			for shift := uint(0); ; shift += 7 {
  5113  				if shift >= 64 {
  5114  					return ErrIntOverflowQuery
  5115  				}
  5116  				if iNdEx >= l {
  5117  					return io.ErrUnexpectedEOF
  5118  				}
  5119  				b := dAtA[iNdEx]
  5120  				iNdEx++
  5121  				msglen |= int(b&0x7F) << shift
  5122  				if b < 0x80 {
  5123  					break
  5124  				}
  5125  			}
  5126  			if msglen < 0 {
  5127  				return ErrInvalidLengthQuery
  5128  			}
  5129  			postIndex := iNdEx + msglen
  5130  			if postIndex < 0 {
  5131  				return ErrInvalidLengthQuery
  5132  			}
  5133  			if postIndex > l {
  5134  				return io.ErrUnexpectedEOF
  5135  			}
  5136  			if m.Pagination == nil {
  5137  				m.Pagination = &query.PageResponse{}
  5138  			}
  5139  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5140  				return err
  5141  			}
  5142  			iNdEx = postIndex
  5143  		default:
  5144  			iNdEx = preIndex
  5145  			skippy, err := skipQuery(dAtA[iNdEx:])
  5146  			if err != nil {
  5147  				return err
  5148  			}
  5149  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5150  				return ErrInvalidLengthQuery
  5151  			}
  5152  			if (iNdEx + skippy) > l {
  5153  				return io.ErrUnexpectedEOF
  5154  			}
  5155  			iNdEx += skippy
  5156  		}
  5157  	}
  5158  
  5159  	if iNdEx > l {
  5160  		return io.ErrUnexpectedEOF
  5161  	}
  5162  	return nil
  5163  }
  5164  func (m *QueryDelegatorUnbondingDelegationsRequest) Unmarshal(dAtA []byte) error {
  5165  	l := len(dAtA)
  5166  	iNdEx := 0
  5167  	for iNdEx < l {
  5168  		preIndex := iNdEx
  5169  		var wire uint64
  5170  		for shift := uint(0); ; shift += 7 {
  5171  			if shift >= 64 {
  5172  				return ErrIntOverflowQuery
  5173  			}
  5174  			if iNdEx >= l {
  5175  				return io.ErrUnexpectedEOF
  5176  			}
  5177  			b := dAtA[iNdEx]
  5178  			iNdEx++
  5179  			wire |= uint64(b&0x7F) << shift
  5180  			if b < 0x80 {
  5181  				break
  5182  			}
  5183  		}
  5184  		fieldNum := int32(wire >> 3)
  5185  		wireType := int(wire & 0x7)
  5186  		if wireType == 4 {
  5187  			return fmt.Errorf("proto: QueryDelegatorUnbondingDelegationsRequest: wiretype end group for non-group")
  5188  		}
  5189  		if fieldNum <= 0 {
  5190  			return fmt.Errorf("proto: QueryDelegatorUnbondingDelegationsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  5191  		}
  5192  		switch fieldNum {
  5193  		case 1:
  5194  			if wireType != 2 {
  5195  				return fmt.Errorf("proto: wrong wireType = %d for field DelegatorAddr", wireType)
  5196  			}
  5197  			var stringLen uint64
  5198  			for shift := uint(0); ; shift += 7 {
  5199  				if shift >= 64 {
  5200  					return ErrIntOverflowQuery
  5201  				}
  5202  				if iNdEx >= l {
  5203  					return io.ErrUnexpectedEOF
  5204  				}
  5205  				b := dAtA[iNdEx]
  5206  				iNdEx++
  5207  				stringLen |= uint64(b&0x7F) << shift
  5208  				if b < 0x80 {
  5209  					break
  5210  				}
  5211  			}
  5212  			intStringLen := int(stringLen)
  5213  			if intStringLen < 0 {
  5214  				return ErrInvalidLengthQuery
  5215  			}
  5216  			postIndex := iNdEx + intStringLen
  5217  			if postIndex < 0 {
  5218  				return ErrInvalidLengthQuery
  5219  			}
  5220  			if postIndex > l {
  5221  				return io.ErrUnexpectedEOF
  5222  			}
  5223  			m.DelegatorAddr = string(dAtA[iNdEx:postIndex])
  5224  			iNdEx = postIndex
  5225  		case 2:
  5226  			if wireType != 2 {
  5227  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  5228  			}
  5229  			var msglen int
  5230  			for shift := uint(0); ; shift += 7 {
  5231  				if shift >= 64 {
  5232  					return ErrIntOverflowQuery
  5233  				}
  5234  				if iNdEx >= l {
  5235  					return io.ErrUnexpectedEOF
  5236  				}
  5237  				b := dAtA[iNdEx]
  5238  				iNdEx++
  5239  				msglen |= int(b&0x7F) << shift
  5240  				if b < 0x80 {
  5241  					break
  5242  				}
  5243  			}
  5244  			if msglen < 0 {
  5245  				return ErrInvalidLengthQuery
  5246  			}
  5247  			postIndex := iNdEx + msglen
  5248  			if postIndex < 0 {
  5249  				return ErrInvalidLengthQuery
  5250  			}
  5251  			if postIndex > l {
  5252  				return io.ErrUnexpectedEOF
  5253  			}
  5254  			if m.Pagination == nil {
  5255  				m.Pagination = &query.PageRequest{}
  5256  			}
  5257  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5258  				return err
  5259  			}
  5260  			iNdEx = postIndex
  5261  		default:
  5262  			iNdEx = preIndex
  5263  			skippy, err := skipQuery(dAtA[iNdEx:])
  5264  			if err != nil {
  5265  				return err
  5266  			}
  5267  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5268  				return ErrInvalidLengthQuery
  5269  			}
  5270  			if (iNdEx + skippy) > l {
  5271  				return io.ErrUnexpectedEOF
  5272  			}
  5273  			iNdEx += skippy
  5274  		}
  5275  	}
  5276  
  5277  	if iNdEx > l {
  5278  		return io.ErrUnexpectedEOF
  5279  	}
  5280  	return nil
  5281  }
  5282  func (m *QueryDelegatorUnbondingDelegationsResponse) Unmarshal(dAtA []byte) error {
  5283  	l := len(dAtA)
  5284  	iNdEx := 0
  5285  	for iNdEx < l {
  5286  		preIndex := iNdEx
  5287  		var wire uint64
  5288  		for shift := uint(0); ; shift += 7 {
  5289  			if shift >= 64 {
  5290  				return ErrIntOverflowQuery
  5291  			}
  5292  			if iNdEx >= l {
  5293  				return io.ErrUnexpectedEOF
  5294  			}
  5295  			b := dAtA[iNdEx]
  5296  			iNdEx++
  5297  			wire |= uint64(b&0x7F) << shift
  5298  			if b < 0x80 {
  5299  				break
  5300  			}
  5301  		}
  5302  		fieldNum := int32(wire >> 3)
  5303  		wireType := int(wire & 0x7)
  5304  		if wireType == 4 {
  5305  			return fmt.Errorf("proto: QueryDelegatorUnbondingDelegationsResponse: wiretype end group for non-group")
  5306  		}
  5307  		if fieldNum <= 0 {
  5308  			return fmt.Errorf("proto: QueryDelegatorUnbondingDelegationsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  5309  		}
  5310  		switch fieldNum {
  5311  		case 1:
  5312  			if wireType != 2 {
  5313  				return fmt.Errorf("proto: wrong wireType = %d for field UnbondingResponses", wireType)
  5314  			}
  5315  			var msglen int
  5316  			for shift := uint(0); ; shift += 7 {
  5317  				if shift >= 64 {
  5318  					return ErrIntOverflowQuery
  5319  				}
  5320  				if iNdEx >= l {
  5321  					return io.ErrUnexpectedEOF
  5322  				}
  5323  				b := dAtA[iNdEx]
  5324  				iNdEx++
  5325  				msglen |= int(b&0x7F) << shift
  5326  				if b < 0x80 {
  5327  					break
  5328  				}
  5329  			}
  5330  			if msglen < 0 {
  5331  				return ErrInvalidLengthQuery
  5332  			}
  5333  			postIndex := iNdEx + msglen
  5334  			if postIndex < 0 {
  5335  				return ErrInvalidLengthQuery
  5336  			}
  5337  			if postIndex > l {
  5338  				return io.ErrUnexpectedEOF
  5339  			}
  5340  			m.UnbondingResponses = append(m.UnbondingResponses, UnbondingDelegation{})
  5341  			if err := m.UnbondingResponses[len(m.UnbondingResponses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5342  				return err
  5343  			}
  5344  			iNdEx = postIndex
  5345  		case 2:
  5346  			if wireType != 2 {
  5347  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  5348  			}
  5349  			var msglen int
  5350  			for shift := uint(0); ; shift += 7 {
  5351  				if shift >= 64 {
  5352  					return ErrIntOverflowQuery
  5353  				}
  5354  				if iNdEx >= l {
  5355  					return io.ErrUnexpectedEOF
  5356  				}
  5357  				b := dAtA[iNdEx]
  5358  				iNdEx++
  5359  				msglen |= int(b&0x7F) << shift
  5360  				if b < 0x80 {
  5361  					break
  5362  				}
  5363  			}
  5364  			if msglen < 0 {
  5365  				return ErrInvalidLengthQuery
  5366  			}
  5367  			postIndex := iNdEx + msglen
  5368  			if postIndex < 0 {
  5369  				return ErrInvalidLengthQuery
  5370  			}
  5371  			if postIndex > l {
  5372  				return io.ErrUnexpectedEOF
  5373  			}
  5374  			if m.Pagination == nil {
  5375  				m.Pagination = &query.PageResponse{}
  5376  			}
  5377  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5378  				return err
  5379  			}
  5380  			iNdEx = postIndex
  5381  		default:
  5382  			iNdEx = preIndex
  5383  			skippy, err := skipQuery(dAtA[iNdEx:])
  5384  			if err != nil {
  5385  				return err
  5386  			}
  5387  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5388  				return ErrInvalidLengthQuery
  5389  			}
  5390  			if (iNdEx + skippy) > l {
  5391  				return io.ErrUnexpectedEOF
  5392  			}
  5393  			iNdEx += skippy
  5394  		}
  5395  	}
  5396  
  5397  	if iNdEx > l {
  5398  		return io.ErrUnexpectedEOF
  5399  	}
  5400  	return nil
  5401  }
  5402  func (m *QueryRedelegationsRequest) Unmarshal(dAtA []byte) error {
  5403  	l := len(dAtA)
  5404  	iNdEx := 0
  5405  	for iNdEx < l {
  5406  		preIndex := iNdEx
  5407  		var wire uint64
  5408  		for shift := uint(0); ; shift += 7 {
  5409  			if shift >= 64 {
  5410  				return ErrIntOverflowQuery
  5411  			}
  5412  			if iNdEx >= l {
  5413  				return io.ErrUnexpectedEOF
  5414  			}
  5415  			b := dAtA[iNdEx]
  5416  			iNdEx++
  5417  			wire |= uint64(b&0x7F) << shift
  5418  			if b < 0x80 {
  5419  				break
  5420  			}
  5421  		}
  5422  		fieldNum := int32(wire >> 3)
  5423  		wireType := int(wire & 0x7)
  5424  		if wireType == 4 {
  5425  			return fmt.Errorf("proto: QueryRedelegationsRequest: wiretype end group for non-group")
  5426  		}
  5427  		if fieldNum <= 0 {
  5428  			return fmt.Errorf("proto: QueryRedelegationsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  5429  		}
  5430  		switch fieldNum {
  5431  		case 1:
  5432  			if wireType != 2 {
  5433  				return fmt.Errorf("proto: wrong wireType = %d for field DelegatorAddr", wireType)
  5434  			}
  5435  			var stringLen uint64
  5436  			for shift := uint(0); ; shift += 7 {
  5437  				if shift >= 64 {
  5438  					return ErrIntOverflowQuery
  5439  				}
  5440  				if iNdEx >= l {
  5441  					return io.ErrUnexpectedEOF
  5442  				}
  5443  				b := dAtA[iNdEx]
  5444  				iNdEx++
  5445  				stringLen |= uint64(b&0x7F) << shift
  5446  				if b < 0x80 {
  5447  					break
  5448  				}
  5449  			}
  5450  			intStringLen := int(stringLen)
  5451  			if intStringLen < 0 {
  5452  				return ErrInvalidLengthQuery
  5453  			}
  5454  			postIndex := iNdEx + intStringLen
  5455  			if postIndex < 0 {
  5456  				return ErrInvalidLengthQuery
  5457  			}
  5458  			if postIndex > l {
  5459  				return io.ErrUnexpectedEOF
  5460  			}
  5461  			m.DelegatorAddr = string(dAtA[iNdEx:postIndex])
  5462  			iNdEx = postIndex
  5463  		case 2:
  5464  			if wireType != 2 {
  5465  				return fmt.Errorf("proto: wrong wireType = %d for field SrcValidatorAddr", wireType)
  5466  			}
  5467  			var stringLen uint64
  5468  			for shift := uint(0); ; shift += 7 {
  5469  				if shift >= 64 {
  5470  					return ErrIntOverflowQuery
  5471  				}
  5472  				if iNdEx >= l {
  5473  					return io.ErrUnexpectedEOF
  5474  				}
  5475  				b := dAtA[iNdEx]
  5476  				iNdEx++
  5477  				stringLen |= uint64(b&0x7F) << shift
  5478  				if b < 0x80 {
  5479  					break
  5480  				}
  5481  			}
  5482  			intStringLen := int(stringLen)
  5483  			if intStringLen < 0 {
  5484  				return ErrInvalidLengthQuery
  5485  			}
  5486  			postIndex := iNdEx + intStringLen
  5487  			if postIndex < 0 {
  5488  				return ErrInvalidLengthQuery
  5489  			}
  5490  			if postIndex > l {
  5491  				return io.ErrUnexpectedEOF
  5492  			}
  5493  			m.SrcValidatorAddr = string(dAtA[iNdEx:postIndex])
  5494  			iNdEx = postIndex
  5495  		case 3:
  5496  			if wireType != 2 {
  5497  				return fmt.Errorf("proto: wrong wireType = %d for field DstValidatorAddr", wireType)
  5498  			}
  5499  			var stringLen uint64
  5500  			for shift := uint(0); ; shift += 7 {
  5501  				if shift >= 64 {
  5502  					return ErrIntOverflowQuery
  5503  				}
  5504  				if iNdEx >= l {
  5505  					return io.ErrUnexpectedEOF
  5506  				}
  5507  				b := dAtA[iNdEx]
  5508  				iNdEx++
  5509  				stringLen |= uint64(b&0x7F) << shift
  5510  				if b < 0x80 {
  5511  					break
  5512  				}
  5513  			}
  5514  			intStringLen := int(stringLen)
  5515  			if intStringLen < 0 {
  5516  				return ErrInvalidLengthQuery
  5517  			}
  5518  			postIndex := iNdEx + intStringLen
  5519  			if postIndex < 0 {
  5520  				return ErrInvalidLengthQuery
  5521  			}
  5522  			if postIndex > l {
  5523  				return io.ErrUnexpectedEOF
  5524  			}
  5525  			m.DstValidatorAddr = string(dAtA[iNdEx:postIndex])
  5526  			iNdEx = postIndex
  5527  		case 4:
  5528  			if wireType != 2 {
  5529  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  5530  			}
  5531  			var msglen int
  5532  			for shift := uint(0); ; shift += 7 {
  5533  				if shift >= 64 {
  5534  					return ErrIntOverflowQuery
  5535  				}
  5536  				if iNdEx >= l {
  5537  					return io.ErrUnexpectedEOF
  5538  				}
  5539  				b := dAtA[iNdEx]
  5540  				iNdEx++
  5541  				msglen |= int(b&0x7F) << shift
  5542  				if b < 0x80 {
  5543  					break
  5544  				}
  5545  			}
  5546  			if msglen < 0 {
  5547  				return ErrInvalidLengthQuery
  5548  			}
  5549  			postIndex := iNdEx + msglen
  5550  			if postIndex < 0 {
  5551  				return ErrInvalidLengthQuery
  5552  			}
  5553  			if postIndex > l {
  5554  				return io.ErrUnexpectedEOF
  5555  			}
  5556  			if m.Pagination == nil {
  5557  				m.Pagination = &query.PageRequest{}
  5558  			}
  5559  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5560  				return err
  5561  			}
  5562  			iNdEx = postIndex
  5563  		default:
  5564  			iNdEx = preIndex
  5565  			skippy, err := skipQuery(dAtA[iNdEx:])
  5566  			if err != nil {
  5567  				return err
  5568  			}
  5569  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5570  				return ErrInvalidLengthQuery
  5571  			}
  5572  			if (iNdEx + skippy) > l {
  5573  				return io.ErrUnexpectedEOF
  5574  			}
  5575  			iNdEx += skippy
  5576  		}
  5577  	}
  5578  
  5579  	if iNdEx > l {
  5580  		return io.ErrUnexpectedEOF
  5581  	}
  5582  	return nil
  5583  }
  5584  func (m *QueryRedelegationsResponse) Unmarshal(dAtA []byte) error {
  5585  	l := len(dAtA)
  5586  	iNdEx := 0
  5587  	for iNdEx < l {
  5588  		preIndex := iNdEx
  5589  		var wire uint64
  5590  		for shift := uint(0); ; shift += 7 {
  5591  			if shift >= 64 {
  5592  				return ErrIntOverflowQuery
  5593  			}
  5594  			if iNdEx >= l {
  5595  				return io.ErrUnexpectedEOF
  5596  			}
  5597  			b := dAtA[iNdEx]
  5598  			iNdEx++
  5599  			wire |= uint64(b&0x7F) << shift
  5600  			if b < 0x80 {
  5601  				break
  5602  			}
  5603  		}
  5604  		fieldNum := int32(wire >> 3)
  5605  		wireType := int(wire & 0x7)
  5606  		if wireType == 4 {
  5607  			return fmt.Errorf("proto: QueryRedelegationsResponse: wiretype end group for non-group")
  5608  		}
  5609  		if fieldNum <= 0 {
  5610  			return fmt.Errorf("proto: QueryRedelegationsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  5611  		}
  5612  		switch fieldNum {
  5613  		case 1:
  5614  			if wireType != 2 {
  5615  				return fmt.Errorf("proto: wrong wireType = %d for field RedelegationResponses", wireType)
  5616  			}
  5617  			var msglen int
  5618  			for shift := uint(0); ; shift += 7 {
  5619  				if shift >= 64 {
  5620  					return ErrIntOverflowQuery
  5621  				}
  5622  				if iNdEx >= l {
  5623  					return io.ErrUnexpectedEOF
  5624  				}
  5625  				b := dAtA[iNdEx]
  5626  				iNdEx++
  5627  				msglen |= int(b&0x7F) << shift
  5628  				if b < 0x80 {
  5629  					break
  5630  				}
  5631  			}
  5632  			if msglen < 0 {
  5633  				return ErrInvalidLengthQuery
  5634  			}
  5635  			postIndex := iNdEx + msglen
  5636  			if postIndex < 0 {
  5637  				return ErrInvalidLengthQuery
  5638  			}
  5639  			if postIndex > l {
  5640  				return io.ErrUnexpectedEOF
  5641  			}
  5642  			m.RedelegationResponses = append(m.RedelegationResponses, RedelegationResponse{})
  5643  			if err := m.RedelegationResponses[len(m.RedelegationResponses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5644  				return err
  5645  			}
  5646  			iNdEx = postIndex
  5647  		case 2:
  5648  			if wireType != 2 {
  5649  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  5650  			}
  5651  			var msglen int
  5652  			for shift := uint(0); ; shift += 7 {
  5653  				if shift >= 64 {
  5654  					return ErrIntOverflowQuery
  5655  				}
  5656  				if iNdEx >= l {
  5657  					return io.ErrUnexpectedEOF
  5658  				}
  5659  				b := dAtA[iNdEx]
  5660  				iNdEx++
  5661  				msglen |= int(b&0x7F) << shift
  5662  				if b < 0x80 {
  5663  					break
  5664  				}
  5665  			}
  5666  			if msglen < 0 {
  5667  				return ErrInvalidLengthQuery
  5668  			}
  5669  			postIndex := iNdEx + msglen
  5670  			if postIndex < 0 {
  5671  				return ErrInvalidLengthQuery
  5672  			}
  5673  			if postIndex > l {
  5674  				return io.ErrUnexpectedEOF
  5675  			}
  5676  			if m.Pagination == nil {
  5677  				m.Pagination = &query.PageResponse{}
  5678  			}
  5679  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5680  				return err
  5681  			}
  5682  			iNdEx = postIndex
  5683  		default:
  5684  			iNdEx = preIndex
  5685  			skippy, err := skipQuery(dAtA[iNdEx:])
  5686  			if err != nil {
  5687  				return err
  5688  			}
  5689  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5690  				return ErrInvalidLengthQuery
  5691  			}
  5692  			if (iNdEx + skippy) > l {
  5693  				return io.ErrUnexpectedEOF
  5694  			}
  5695  			iNdEx += skippy
  5696  		}
  5697  	}
  5698  
  5699  	if iNdEx > l {
  5700  		return io.ErrUnexpectedEOF
  5701  	}
  5702  	return nil
  5703  }
  5704  func (m *QueryDelegatorValidatorsRequest) Unmarshal(dAtA []byte) error {
  5705  	l := len(dAtA)
  5706  	iNdEx := 0
  5707  	for iNdEx < l {
  5708  		preIndex := iNdEx
  5709  		var wire uint64
  5710  		for shift := uint(0); ; shift += 7 {
  5711  			if shift >= 64 {
  5712  				return ErrIntOverflowQuery
  5713  			}
  5714  			if iNdEx >= l {
  5715  				return io.ErrUnexpectedEOF
  5716  			}
  5717  			b := dAtA[iNdEx]
  5718  			iNdEx++
  5719  			wire |= uint64(b&0x7F) << shift
  5720  			if b < 0x80 {
  5721  				break
  5722  			}
  5723  		}
  5724  		fieldNum := int32(wire >> 3)
  5725  		wireType := int(wire & 0x7)
  5726  		if wireType == 4 {
  5727  			return fmt.Errorf("proto: QueryDelegatorValidatorsRequest: wiretype end group for non-group")
  5728  		}
  5729  		if fieldNum <= 0 {
  5730  			return fmt.Errorf("proto: QueryDelegatorValidatorsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  5731  		}
  5732  		switch fieldNum {
  5733  		case 1:
  5734  			if wireType != 2 {
  5735  				return fmt.Errorf("proto: wrong wireType = %d for field DelegatorAddr", wireType)
  5736  			}
  5737  			var stringLen uint64
  5738  			for shift := uint(0); ; shift += 7 {
  5739  				if shift >= 64 {
  5740  					return ErrIntOverflowQuery
  5741  				}
  5742  				if iNdEx >= l {
  5743  					return io.ErrUnexpectedEOF
  5744  				}
  5745  				b := dAtA[iNdEx]
  5746  				iNdEx++
  5747  				stringLen |= uint64(b&0x7F) << shift
  5748  				if b < 0x80 {
  5749  					break
  5750  				}
  5751  			}
  5752  			intStringLen := int(stringLen)
  5753  			if intStringLen < 0 {
  5754  				return ErrInvalidLengthQuery
  5755  			}
  5756  			postIndex := iNdEx + intStringLen
  5757  			if postIndex < 0 {
  5758  				return ErrInvalidLengthQuery
  5759  			}
  5760  			if postIndex > l {
  5761  				return io.ErrUnexpectedEOF
  5762  			}
  5763  			m.DelegatorAddr = string(dAtA[iNdEx:postIndex])
  5764  			iNdEx = postIndex
  5765  		case 2:
  5766  			if wireType != 2 {
  5767  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  5768  			}
  5769  			var msglen int
  5770  			for shift := uint(0); ; shift += 7 {
  5771  				if shift >= 64 {
  5772  					return ErrIntOverflowQuery
  5773  				}
  5774  				if iNdEx >= l {
  5775  					return io.ErrUnexpectedEOF
  5776  				}
  5777  				b := dAtA[iNdEx]
  5778  				iNdEx++
  5779  				msglen |= int(b&0x7F) << shift
  5780  				if b < 0x80 {
  5781  					break
  5782  				}
  5783  			}
  5784  			if msglen < 0 {
  5785  				return ErrInvalidLengthQuery
  5786  			}
  5787  			postIndex := iNdEx + msglen
  5788  			if postIndex < 0 {
  5789  				return ErrInvalidLengthQuery
  5790  			}
  5791  			if postIndex > l {
  5792  				return io.ErrUnexpectedEOF
  5793  			}
  5794  			if m.Pagination == nil {
  5795  				m.Pagination = &query.PageRequest{}
  5796  			}
  5797  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5798  				return err
  5799  			}
  5800  			iNdEx = postIndex
  5801  		default:
  5802  			iNdEx = preIndex
  5803  			skippy, err := skipQuery(dAtA[iNdEx:])
  5804  			if err != nil {
  5805  				return err
  5806  			}
  5807  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5808  				return ErrInvalidLengthQuery
  5809  			}
  5810  			if (iNdEx + skippy) > l {
  5811  				return io.ErrUnexpectedEOF
  5812  			}
  5813  			iNdEx += skippy
  5814  		}
  5815  	}
  5816  
  5817  	if iNdEx > l {
  5818  		return io.ErrUnexpectedEOF
  5819  	}
  5820  	return nil
  5821  }
  5822  func (m *QueryDelegatorValidatorsResponse) Unmarshal(dAtA []byte) error {
  5823  	l := len(dAtA)
  5824  	iNdEx := 0
  5825  	for iNdEx < l {
  5826  		preIndex := iNdEx
  5827  		var wire uint64
  5828  		for shift := uint(0); ; shift += 7 {
  5829  			if shift >= 64 {
  5830  				return ErrIntOverflowQuery
  5831  			}
  5832  			if iNdEx >= l {
  5833  				return io.ErrUnexpectedEOF
  5834  			}
  5835  			b := dAtA[iNdEx]
  5836  			iNdEx++
  5837  			wire |= uint64(b&0x7F) << shift
  5838  			if b < 0x80 {
  5839  				break
  5840  			}
  5841  		}
  5842  		fieldNum := int32(wire >> 3)
  5843  		wireType := int(wire & 0x7)
  5844  		if wireType == 4 {
  5845  			return fmt.Errorf("proto: QueryDelegatorValidatorsResponse: wiretype end group for non-group")
  5846  		}
  5847  		if fieldNum <= 0 {
  5848  			return fmt.Errorf("proto: QueryDelegatorValidatorsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  5849  		}
  5850  		switch fieldNum {
  5851  		case 1:
  5852  			if wireType != 2 {
  5853  				return fmt.Errorf("proto: wrong wireType = %d for field Validators", wireType)
  5854  			}
  5855  			var msglen int
  5856  			for shift := uint(0); ; shift += 7 {
  5857  				if shift >= 64 {
  5858  					return ErrIntOverflowQuery
  5859  				}
  5860  				if iNdEx >= l {
  5861  					return io.ErrUnexpectedEOF
  5862  				}
  5863  				b := dAtA[iNdEx]
  5864  				iNdEx++
  5865  				msglen |= int(b&0x7F) << shift
  5866  				if b < 0x80 {
  5867  					break
  5868  				}
  5869  			}
  5870  			if msglen < 0 {
  5871  				return ErrInvalidLengthQuery
  5872  			}
  5873  			postIndex := iNdEx + msglen
  5874  			if postIndex < 0 {
  5875  				return ErrInvalidLengthQuery
  5876  			}
  5877  			if postIndex > l {
  5878  				return io.ErrUnexpectedEOF
  5879  			}
  5880  			m.Validators = append(m.Validators, Validator{})
  5881  			if err := m.Validators[len(m.Validators)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5882  				return err
  5883  			}
  5884  			iNdEx = postIndex
  5885  		case 2:
  5886  			if wireType != 2 {
  5887  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  5888  			}
  5889  			var msglen int
  5890  			for shift := uint(0); ; shift += 7 {
  5891  				if shift >= 64 {
  5892  					return ErrIntOverflowQuery
  5893  				}
  5894  				if iNdEx >= l {
  5895  					return io.ErrUnexpectedEOF
  5896  				}
  5897  				b := dAtA[iNdEx]
  5898  				iNdEx++
  5899  				msglen |= int(b&0x7F) << shift
  5900  				if b < 0x80 {
  5901  					break
  5902  				}
  5903  			}
  5904  			if msglen < 0 {
  5905  				return ErrInvalidLengthQuery
  5906  			}
  5907  			postIndex := iNdEx + msglen
  5908  			if postIndex < 0 {
  5909  				return ErrInvalidLengthQuery
  5910  			}
  5911  			if postIndex > l {
  5912  				return io.ErrUnexpectedEOF
  5913  			}
  5914  			if m.Pagination == nil {
  5915  				m.Pagination = &query.PageResponse{}
  5916  			}
  5917  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5918  				return err
  5919  			}
  5920  			iNdEx = postIndex
  5921  		default:
  5922  			iNdEx = preIndex
  5923  			skippy, err := skipQuery(dAtA[iNdEx:])
  5924  			if err != nil {
  5925  				return err
  5926  			}
  5927  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5928  				return ErrInvalidLengthQuery
  5929  			}
  5930  			if (iNdEx + skippy) > l {
  5931  				return io.ErrUnexpectedEOF
  5932  			}
  5933  			iNdEx += skippy
  5934  		}
  5935  	}
  5936  
  5937  	if iNdEx > l {
  5938  		return io.ErrUnexpectedEOF
  5939  	}
  5940  	return nil
  5941  }
  5942  func (m *QueryDelegatorValidatorRequest) Unmarshal(dAtA []byte) error {
  5943  	l := len(dAtA)
  5944  	iNdEx := 0
  5945  	for iNdEx < l {
  5946  		preIndex := iNdEx
  5947  		var wire uint64
  5948  		for shift := uint(0); ; shift += 7 {
  5949  			if shift >= 64 {
  5950  				return ErrIntOverflowQuery
  5951  			}
  5952  			if iNdEx >= l {
  5953  				return io.ErrUnexpectedEOF
  5954  			}
  5955  			b := dAtA[iNdEx]
  5956  			iNdEx++
  5957  			wire |= uint64(b&0x7F) << shift
  5958  			if b < 0x80 {
  5959  				break
  5960  			}
  5961  		}
  5962  		fieldNum := int32(wire >> 3)
  5963  		wireType := int(wire & 0x7)
  5964  		if wireType == 4 {
  5965  			return fmt.Errorf("proto: QueryDelegatorValidatorRequest: wiretype end group for non-group")
  5966  		}
  5967  		if fieldNum <= 0 {
  5968  			return fmt.Errorf("proto: QueryDelegatorValidatorRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  5969  		}
  5970  		switch fieldNum {
  5971  		case 1:
  5972  			if wireType != 2 {
  5973  				return fmt.Errorf("proto: wrong wireType = %d for field DelegatorAddr", wireType)
  5974  			}
  5975  			var stringLen uint64
  5976  			for shift := uint(0); ; shift += 7 {
  5977  				if shift >= 64 {
  5978  					return ErrIntOverflowQuery
  5979  				}
  5980  				if iNdEx >= l {
  5981  					return io.ErrUnexpectedEOF
  5982  				}
  5983  				b := dAtA[iNdEx]
  5984  				iNdEx++
  5985  				stringLen |= uint64(b&0x7F) << shift
  5986  				if b < 0x80 {
  5987  					break
  5988  				}
  5989  			}
  5990  			intStringLen := int(stringLen)
  5991  			if intStringLen < 0 {
  5992  				return ErrInvalidLengthQuery
  5993  			}
  5994  			postIndex := iNdEx + intStringLen
  5995  			if postIndex < 0 {
  5996  				return ErrInvalidLengthQuery
  5997  			}
  5998  			if postIndex > l {
  5999  				return io.ErrUnexpectedEOF
  6000  			}
  6001  			m.DelegatorAddr = string(dAtA[iNdEx:postIndex])
  6002  			iNdEx = postIndex
  6003  		case 2:
  6004  			if wireType != 2 {
  6005  				return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddr", wireType)
  6006  			}
  6007  			var stringLen uint64
  6008  			for shift := uint(0); ; shift += 7 {
  6009  				if shift >= 64 {
  6010  					return ErrIntOverflowQuery
  6011  				}
  6012  				if iNdEx >= l {
  6013  					return io.ErrUnexpectedEOF
  6014  				}
  6015  				b := dAtA[iNdEx]
  6016  				iNdEx++
  6017  				stringLen |= uint64(b&0x7F) << shift
  6018  				if b < 0x80 {
  6019  					break
  6020  				}
  6021  			}
  6022  			intStringLen := int(stringLen)
  6023  			if intStringLen < 0 {
  6024  				return ErrInvalidLengthQuery
  6025  			}
  6026  			postIndex := iNdEx + intStringLen
  6027  			if postIndex < 0 {
  6028  				return ErrInvalidLengthQuery
  6029  			}
  6030  			if postIndex > l {
  6031  				return io.ErrUnexpectedEOF
  6032  			}
  6033  			m.ValidatorAddr = string(dAtA[iNdEx:postIndex])
  6034  			iNdEx = postIndex
  6035  		default:
  6036  			iNdEx = preIndex
  6037  			skippy, err := skipQuery(dAtA[iNdEx:])
  6038  			if err != nil {
  6039  				return err
  6040  			}
  6041  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6042  				return ErrInvalidLengthQuery
  6043  			}
  6044  			if (iNdEx + skippy) > l {
  6045  				return io.ErrUnexpectedEOF
  6046  			}
  6047  			iNdEx += skippy
  6048  		}
  6049  	}
  6050  
  6051  	if iNdEx > l {
  6052  		return io.ErrUnexpectedEOF
  6053  	}
  6054  	return nil
  6055  }
  6056  func (m *QueryDelegatorValidatorResponse) Unmarshal(dAtA []byte) error {
  6057  	l := len(dAtA)
  6058  	iNdEx := 0
  6059  	for iNdEx < l {
  6060  		preIndex := iNdEx
  6061  		var wire uint64
  6062  		for shift := uint(0); ; shift += 7 {
  6063  			if shift >= 64 {
  6064  				return ErrIntOverflowQuery
  6065  			}
  6066  			if iNdEx >= l {
  6067  				return io.ErrUnexpectedEOF
  6068  			}
  6069  			b := dAtA[iNdEx]
  6070  			iNdEx++
  6071  			wire |= uint64(b&0x7F) << shift
  6072  			if b < 0x80 {
  6073  				break
  6074  			}
  6075  		}
  6076  		fieldNum := int32(wire >> 3)
  6077  		wireType := int(wire & 0x7)
  6078  		if wireType == 4 {
  6079  			return fmt.Errorf("proto: QueryDelegatorValidatorResponse: wiretype end group for non-group")
  6080  		}
  6081  		if fieldNum <= 0 {
  6082  			return fmt.Errorf("proto: QueryDelegatorValidatorResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  6083  		}
  6084  		switch fieldNum {
  6085  		case 1:
  6086  			if wireType != 2 {
  6087  				return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType)
  6088  			}
  6089  			var msglen int
  6090  			for shift := uint(0); ; shift += 7 {
  6091  				if shift >= 64 {
  6092  					return ErrIntOverflowQuery
  6093  				}
  6094  				if iNdEx >= l {
  6095  					return io.ErrUnexpectedEOF
  6096  				}
  6097  				b := dAtA[iNdEx]
  6098  				iNdEx++
  6099  				msglen |= int(b&0x7F) << shift
  6100  				if b < 0x80 {
  6101  					break
  6102  				}
  6103  			}
  6104  			if msglen < 0 {
  6105  				return ErrInvalidLengthQuery
  6106  			}
  6107  			postIndex := iNdEx + msglen
  6108  			if postIndex < 0 {
  6109  				return ErrInvalidLengthQuery
  6110  			}
  6111  			if postIndex > l {
  6112  				return io.ErrUnexpectedEOF
  6113  			}
  6114  			if err := m.Validator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6115  				return err
  6116  			}
  6117  			iNdEx = postIndex
  6118  		default:
  6119  			iNdEx = preIndex
  6120  			skippy, err := skipQuery(dAtA[iNdEx:])
  6121  			if err != nil {
  6122  				return err
  6123  			}
  6124  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6125  				return ErrInvalidLengthQuery
  6126  			}
  6127  			if (iNdEx + skippy) > l {
  6128  				return io.ErrUnexpectedEOF
  6129  			}
  6130  			iNdEx += skippy
  6131  		}
  6132  	}
  6133  
  6134  	if iNdEx > l {
  6135  		return io.ErrUnexpectedEOF
  6136  	}
  6137  	return nil
  6138  }
  6139  func (m *QueryHistoricalInfoRequest) Unmarshal(dAtA []byte) error {
  6140  	l := len(dAtA)
  6141  	iNdEx := 0
  6142  	for iNdEx < l {
  6143  		preIndex := iNdEx
  6144  		var wire uint64
  6145  		for shift := uint(0); ; shift += 7 {
  6146  			if shift >= 64 {
  6147  				return ErrIntOverflowQuery
  6148  			}
  6149  			if iNdEx >= l {
  6150  				return io.ErrUnexpectedEOF
  6151  			}
  6152  			b := dAtA[iNdEx]
  6153  			iNdEx++
  6154  			wire |= uint64(b&0x7F) << shift
  6155  			if b < 0x80 {
  6156  				break
  6157  			}
  6158  		}
  6159  		fieldNum := int32(wire >> 3)
  6160  		wireType := int(wire & 0x7)
  6161  		if wireType == 4 {
  6162  			return fmt.Errorf("proto: QueryHistoricalInfoRequest: wiretype end group for non-group")
  6163  		}
  6164  		if fieldNum <= 0 {
  6165  			return fmt.Errorf("proto: QueryHistoricalInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  6166  		}
  6167  		switch fieldNum {
  6168  		case 1:
  6169  			if wireType != 0 {
  6170  				return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  6171  			}
  6172  			m.Height = 0
  6173  			for shift := uint(0); ; shift += 7 {
  6174  				if shift >= 64 {
  6175  					return ErrIntOverflowQuery
  6176  				}
  6177  				if iNdEx >= l {
  6178  					return io.ErrUnexpectedEOF
  6179  				}
  6180  				b := dAtA[iNdEx]
  6181  				iNdEx++
  6182  				m.Height |= int64(b&0x7F) << shift
  6183  				if b < 0x80 {
  6184  					break
  6185  				}
  6186  			}
  6187  		default:
  6188  			iNdEx = preIndex
  6189  			skippy, err := skipQuery(dAtA[iNdEx:])
  6190  			if err != nil {
  6191  				return err
  6192  			}
  6193  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6194  				return ErrInvalidLengthQuery
  6195  			}
  6196  			if (iNdEx + skippy) > l {
  6197  				return io.ErrUnexpectedEOF
  6198  			}
  6199  			iNdEx += skippy
  6200  		}
  6201  	}
  6202  
  6203  	if iNdEx > l {
  6204  		return io.ErrUnexpectedEOF
  6205  	}
  6206  	return nil
  6207  }
  6208  func (m *QueryHistoricalInfoResponse) Unmarshal(dAtA []byte) error {
  6209  	l := len(dAtA)
  6210  	iNdEx := 0
  6211  	for iNdEx < l {
  6212  		preIndex := iNdEx
  6213  		var wire uint64
  6214  		for shift := uint(0); ; shift += 7 {
  6215  			if shift >= 64 {
  6216  				return ErrIntOverflowQuery
  6217  			}
  6218  			if iNdEx >= l {
  6219  				return io.ErrUnexpectedEOF
  6220  			}
  6221  			b := dAtA[iNdEx]
  6222  			iNdEx++
  6223  			wire |= uint64(b&0x7F) << shift
  6224  			if b < 0x80 {
  6225  				break
  6226  			}
  6227  		}
  6228  		fieldNum := int32(wire >> 3)
  6229  		wireType := int(wire & 0x7)
  6230  		if wireType == 4 {
  6231  			return fmt.Errorf("proto: QueryHistoricalInfoResponse: wiretype end group for non-group")
  6232  		}
  6233  		if fieldNum <= 0 {
  6234  			return fmt.Errorf("proto: QueryHistoricalInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  6235  		}
  6236  		switch fieldNum {
  6237  		case 1:
  6238  			if wireType != 2 {
  6239  				return fmt.Errorf("proto: wrong wireType = %d for field Hist", wireType)
  6240  			}
  6241  			var msglen int
  6242  			for shift := uint(0); ; shift += 7 {
  6243  				if shift >= 64 {
  6244  					return ErrIntOverflowQuery
  6245  				}
  6246  				if iNdEx >= l {
  6247  					return io.ErrUnexpectedEOF
  6248  				}
  6249  				b := dAtA[iNdEx]
  6250  				iNdEx++
  6251  				msglen |= int(b&0x7F) << shift
  6252  				if b < 0x80 {
  6253  					break
  6254  				}
  6255  			}
  6256  			if msglen < 0 {
  6257  				return ErrInvalidLengthQuery
  6258  			}
  6259  			postIndex := iNdEx + msglen
  6260  			if postIndex < 0 {
  6261  				return ErrInvalidLengthQuery
  6262  			}
  6263  			if postIndex > l {
  6264  				return io.ErrUnexpectedEOF
  6265  			}
  6266  			if m.Hist == nil {
  6267  				m.Hist = &HistoricalInfo{}
  6268  			}
  6269  			if err := m.Hist.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6270  				return err
  6271  			}
  6272  			iNdEx = postIndex
  6273  		default:
  6274  			iNdEx = preIndex
  6275  			skippy, err := skipQuery(dAtA[iNdEx:])
  6276  			if err != nil {
  6277  				return err
  6278  			}
  6279  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6280  				return ErrInvalidLengthQuery
  6281  			}
  6282  			if (iNdEx + skippy) > l {
  6283  				return io.ErrUnexpectedEOF
  6284  			}
  6285  			iNdEx += skippy
  6286  		}
  6287  	}
  6288  
  6289  	if iNdEx > l {
  6290  		return io.ErrUnexpectedEOF
  6291  	}
  6292  	return nil
  6293  }
  6294  func (m *QueryPoolRequest) Unmarshal(dAtA []byte) error {
  6295  	l := len(dAtA)
  6296  	iNdEx := 0
  6297  	for iNdEx < l {
  6298  		preIndex := iNdEx
  6299  		var wire uint64
  6300  		for shift := uint(0); ; shift += 7 {
  6301  			if shift >= 64 {
  6302  				return ErrIntOverflowQuery
  6303  			}
  6304  			if iNdEx >= l {
  6305  				return io.ErrUnexpectedEOF
  6306  			}
  6307  			b := dAtA[iNdEx]
  6308  			iNdEx++
  6309  			wire |= uint64(b&0x7F) << shift
  6310  			if b < 0x80 {
  6311  				break
  6312  			}
  6313  		}
  6314  		fieldNum := int32(wire >> 3)
  6315  		wireType := int(wire & 0x7)
  6316  		if wireType == 4 {
  6317  			return fmt.Errorf("proto: QueryPoolRequest: wiretype end group for non-group")
  6318  		}
  6319  		if fieldNum <= 0 {
  6320  			return fmt.Errorf("proto: QueryPoolRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  6321  		}
  6322  		switch fieldNum {
  6323  		default:
  6324  			iNdEx = preIndex
  6325  			skippy, err := skipQuery(dAtA[iNdEx:])
  6326  			if err != nil {
  6327  				return err
  6328  			}
  6329  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6330  				return ErrInvalidLengthQuery
  6331  			}
  6332  			if (iNdEx + skippy) > l {
  6333  				return io.ErrUnexpectedEOF
  6334  			}
  6335  			iNdEx += skippy
  6336  		}
  6337  	}
  6338  
  6339  	if iNdEx > l {
  6340  		return io.ErrUnexpectedEOF
  6341  	}
  6342  	return nil
  6343  }
  6344  func (m *QueryPoolResponse) Unmarshal(dAtA []byte) error {
  6345  	l := len(dAtA)
  6346  	iNdEx := 0
  6347  	for iNdEx < l {
  6348  		preIndex := iNdEx
  6349  		var wire uint64
  6350  		for shift := uint(0); ; shift += 7 {
  6351  			if shift >= 64 {
  6352  				return ErrIntOverflowQuery
  6353  			}
  6354  			if iNdEx >= l {
  6355  				return io.ErrUnexpectedEOF
  6356  			}
  6357  			b := dAtA[iNdEx]
  6358  			iNdEx++
  6359  			wire |= uint64(b&0x7F) << shift
  6360  			if b < 0x80 {
  6361  				break
  6362  			}
  6363  		}
  6364  		fieldNum := int32(wire >> 3)
  6365  		wireType := int(wire & 0x7)
  6366  		if wireType == 4 {
  6367  			return fmt.Errorf("proto: QueryPoolResponse: wiretype end group for non-group")
  6368  		}
  6369  		if fieldNum <= 0 {
  6370  			return fmt.Errorf("proto: QueryPoolResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  6371  		}
  6372  		switch fieldNum {
  6373  		case 1:
  6374  			if wireType != 2 {
  6375  				return fmt.Errorf("proto: wrong wireType = %d for field Pool", wireType)
  6376  			}
  6377  			var msglen int
  6378  			for shift := uint(0); ; shift += 7 {
  6379  				if shift >= 64 {
  6380  					return ErrIntOverflowQuery
  6381  				}
  6382  				if iNdEx >= l {
  6383  					return io.ErrUnexpectedEOF
  6384  				}
  6385  				b := dAtA[iNdEx]
  6386  				iNdEx++
  6387  				msglen |= int(b&0x7F) << shift
  6388  				if b < 0x80 {
  6389  					break
  6390  				}
  6391  			}
  6392  			if msglen < 0 {
  6393  				return ErrInvalidLengthQuery
  6394  			}
  6395  			postIndex := iNdEx + msglen
  6396  			if postIndex < 0 {
  6397  				return ErrInvalidLengthQuery
  6398  			}
  6399  			if postIndex > l {
  6400  				return io.ErrUnexpectedEOF
  6401  			}
  6402  			if err := m.Pool.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6403  				return err
  6404  			}
  6405  			iNdEx = postIndex
  6406  		default:
  6407  			iNdEx = preIndex
  6408  			skippy, err := skipQuery(dAtA[iNdEx:])
  6409  			if err != nil {
  6410  				return err
  6411  			}
  6412  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6413  				return ErrInvalidLengthQuery
  6414  			}
  6415  			if (iNdEx + skippy) > l {
  6416  				return io.ErrUnexpectedEOF
  6417  			}
  6418  			iNdEx += skippy
  6419  		}
  6420  	}
  6421  
  6422  	if iNdEx > l {
  6423  		return io.ErrUnexpectedEOF
  6424  	}
  6425  	return nil
  6426  }
  6427  func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error {
  6428  	l := len(dAtA)
  6429  	iNdEx := 0
  6430  	for iNdEx < l {
  6431  		preIndex := iNdEx
  6432  		var wire uint64
  6433  		for shift := uint(0); ; shift += 7 {
  6434  			if shift >= 64 {
  6435  				return ErrIntOverflowQuery
  6436  			}
  6437  			if iNdEx >= l {
  6438  				return io.ErrUnexpectedEOF
  6439  			}
  6440  			b := dAtA[iNdEx]
  6441  			iNdEx++
  6442  			wire |= uint64(b&0x7F) << shift
  6443  			if b < 0x80 {
  6444  				break
  6445  			}
  6446  		}
  6447  		fieldNum := int32(wire >> 3)
  6448  		wireType := int(wire & 0x7)
  6449  		if wireType == 4 {
  6450  			return fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group")
  6451  		}
  6452  		if fieldNum <= 0 {
  6453  			return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  6454  		}
  6455  		switch fieldNum {
  6456  		default:
  6457  			iNdEx = preIndex
  6458  			skippy, err := skipQuery(dAtA[iNdEx:])
  6459  			if err != nil {
  6460  				return err
  6461  			}
  6462  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6463  				return ErrInvalidLengthQuery
  6464  			}
  6465  			if (iNdEx + skippy) > l {
  6466  				return io.ErrUnexpectedEOF
  6467  			}
  6468  			iNdEx += skippy
  6469  		}
  6470  	}
  6471  
  6472  	if iNdEx > l {
  6473  		return io.ErrUnexpectedEOF
  6474  	}
  6475  	return nil
  6476  }
  6477  func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error {
  6478  	l := len(dAtA)
  6479  	iNdEx := 0
  6480  	for iNdEx < l {
  6481  		preIndex := iNdEx
  6482  		var wire uint64
  6483  		for shift := uint(0); ; shift += 7 {
  6484  			if shift >= 64 {
  6485  				return ErrIntOverflowQuery
  6486  			}
  6487  			if iNdEx >= l {
  6488  				return io.ErrUnexpectedEOF
  6489  			}
  6490  			b := dAtA[iNdEx]
  6491  			iNdEx++
  6492  			wire |= uint64(b&0x7F) << shift
  6493  			if b < 0x80 {
  6494  				break
  6495  			}
  6496  		}
  6497  		fieldNum := int32(wire >> 3)
  6498  		wireType := int(wire & 0x7)
  6499  		if wireType == 4 {
  6500  			return fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group")
  6501  		}
  6502  		if fieldNum <= 0 {
  6503  			return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  6504  		}
  6505  		switch fieldNum {
  6506  		case 1:
  6507  			if wireType != 2 {
  6508  				return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
  6509  			}
  6510  			var msglen int
  6511  			for shift := uint(0); ; shift += 7 {
  6512  				if shift >= 64 {
  6513  					return ErrIntOverflowQuery
  6514  				}
  6515  				if iNdEx >= l {
  6516  					return io.ErrUnexpectedEOF
  6517  				}
  6518  				b := dAtA[iNdEx]
  6519  				iNdEx++
  6520  				msglen |= int(b&0x7F) << shift
  6521  				if b < 0x80 {
  6522  					break
  6523  				}
  6524  			}
  6525  			if msglen < 0 {
  6526  				return ErrInvalidLengthQuery
  6527  			}
  6528  			postIndex := iNdEx + msglen
  6529  			if postIndex < 0 {
  6530  				return ErrInvalidLengthQuery
  6531  			}
  6532  			if postIndex > l {
  6533  				return io.ErrUnexpectedEOF
  6534  			}
  6535  			if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6536  				return err
  6537  			}
  6538  			iNdEx = postIndex
  6539  		default:
  6540  			iNdEx = preIndex
  6541  			skippy, err := skipQuery(dAtA[iNdEx:])
  6542  			if err != nil {
  6543  				return err
  6544  			}
  6545  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6546  				return ErrInvalidLengthQuery
  6547  			}
  6548  			if (iNdEx + skippy) > l {
  6549  				return io.ErrUnexpectedEOF
  6550  			}
  6551  			iNdEx += skippy
  6552  		}
  6553  	}
  6554  
  6555  	if iNdEx > l {
  6556  		return io.ErrUnexpectedEOF
  6557  	}
  6558  	return nil
  6559  }
  6560  func skipQuery(dAtA []byte) (n int, err error) {
  6561  	l := len(dAtA)
  6562  	iNdEx := 0
  6563  	depth := 0
  6564  	for iNdEx < l {
  6565  		var wire uint64
  6566  		for shift := uint(0); ; shift += 7 {
  6567  			if shift >= 64 {
  6568  				return 0, ErrIntOverflowQuery
  6569  			}
  6570  			if iNdEx >= l {
  6571  				return 0, io.ErrUnexpectedEOF
  6572  			}
  6573  			b := dAtA[iNdEx]
  6574  			iNdEx++
  6575  			wire |= (uint64(b) & 0x7F) << shift
  6576  			if b < 0x80 {
  6577  				break
  6578  			}
  6579  		}
  6580  		wireType := int(wire & 0x7)
  6581  		switch wireType {
  6582  		case 0:
  6583  			for shift := uint(0); ; shift += 7 {
  6584  				if shift >= 64 {
  6585  					return 0, ErrIntOverflowQuery
  6586  				}
  6587  				if iNdEx >= l {
  6588  					return 0, io.ErrUnexpectedEOF
  6589  				}
  6590  				iNdEx++
  6591  				if dAtA[iNdEx-1] < 0x80 {
  6592  					break
  6593  				}
  6594  			}
  6595  		case 1:
  6596  			iNdEx += 8
  6597  		case 2:
  6598  			var length int
  6599  			for shift := uint(0); ; shift += 7 {
  6600  				if shift >= 64 {
  6601  					return 0, ErrIntOverflowQuery
  6602  				}
  6603  				if iNdEx >= l {
  6604  					return 0, io.ErrUnexpectedEOF
  6605  				}
  6606  				b := dAtA[iNdEx]
  6607  				iNdEx++
  6608  				length |= (int(b) & 0x7F) << shift
  6609  				if b < 0x80 {
  6610  					break
  6611  				}
  6612  			}
  6613  			if length < 0 {
  6614  				return 0, ErrInvalidLengthQuery
  6615  			}
  6616  			iNdEx += length
  6617  		case 3:
  6618  			depth++
  6619  		case 4:
  6620  			if depth == 0 {
  6621  				return 0, ErrUnexpectedEndOfGroupQuery
  6622  			}
  6623  			depth--
  6624  		case 5:
  6625  			iNdEx += 4
  6626  		default:
  6627  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  6628  		}
  6629  		if iNdEx < 0 {
  6630  			return 0, ErrInvalidLengthQuery
  6631  		}
  6632  		if depth == 0 {
  6633  			return iNdEx, nil
  6634  		}
  6635  	}
  6636  	return 0, io.ErrUnexpectedEOF
  6637  }
  6638  
  6639  var (
  6640  	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
  6641  	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
  6642  	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
  6643  )