github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/x/staking/typesadapter/query.pb.go (about)

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