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

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: cosmos/distribution/v1beta1/query.proto
     3  
     4  package types
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	github_com_Finschia_finschia_sdk_types "github.com/Finschia/finschia-sdk/types"
    10  	types "github.com/Finschia/finschia-sdk/types"
    11  	query "github.com/Finschia/finschia-sdk/types/query"
    12  	_ "github.com/gogo/protobuf/gogoproto"
    13  	grpc1 "github.com/gogo/protobuf/grpc"
    14  	proto "github.com/gogo/protobuf/proto"
    15  	_ "google.golang.org/genproto/googleapis/api/annotations"
    16  	grpc "google.golang.org/grpc"
    17  	codes "google.golang.org/grpc/codes"
    18  	status "google.golang.org/grpc/status"
    19  	io "io"
    20  	math "math"
    21  	math_bits "math/bits"
    22  )
    23  
    24  // Reference imports to suppress errors if they are not otherwise used.
    25  var _ = proto.Marshal
    26  var _ = fmt.Errorf
    27  var _ = math.Inf
    28  
    29  // This is a compile-time assertion to ensure that this generated file
    30  // is compatible with the proto package it is being compiled against.
    31  // A compilation error at this line likely means your copy of the
    32  // proto package needs to be updated.
    33  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    34  
    35  // QueryParamsRequest is the request type for the Query/Params RPC method.
    36  type QueryParamsRequest struct {
    37  }
    38  
    39  func (m *QueryParamsRequest) Reset()         { *m = QueryParamsRequest{} }
    40  func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) }
    41  func (*QueryParamsRequest) ProtoMessage()    {}
    42  func (*QueryParamsRequest) Descriptor() ([]byte, []int) {
    43  	return fileDescriptor_5efd02cbc06efdc9, []int{0}
    44  }
    45  func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error {
    46  	return m.Unmarshal(b)
    47  }
    48  func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    49  	if deterministic {
    50  		return xxx_messageInfo_QueryParamsRequest.Marshal(b, m, deterministic)
    51  	} else {
    52  		b = b[:cap(b)]
    53  		n, err := m.MarshalToSizedBuffer(b)
    54  		if err != nil {
    55  			return nil, err
    56  		}
    57  		return b[:n], nil
    58  	}
    59  }
    60  func (m *QueryParamsRequest) XXX_Merge(src proto.Message) {
    61  	xxx_messageInfo_QueryParamsRequest.Merge(m, src)
    62  }
    63  func (m *QueryParamsRequest) XXX_Size() int {
    64  	return m.Size()
    65  }
    66  func (m *QueryParamsRequest) XXX_DiscardUnknown() {
    67  	xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m)
    68  }
    69  
    70  var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo
    71  
    72  // QueryParamsResponse is the response type for the Query/Params RPC method.
    73  type QueryParamsResponse struct {
    74  	// params defines the parameters of the module.
    75  	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
    76  }
    77  
    78  func (m *QueryParamsResponse) Reset()         { *m = QueryParamsResponse{} }
    79  func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) }
    80  func (*QueryParamsResponse) ProtoMessage()    {}
    81  func (*QueryParamsResponse) Descriptor() ([]byte, []int) {
    82  	return fileDescriptor_5efd02cbc06efdc9, []int{1}
    83  }
    84  func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error {
    85  	return m.Unmarshal(b)
    86  }
    87  func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    88  	if deterministic {
    89  		return xxx_messageInfo_QueryParamsResponse.Marshal(b, m, deterministic)
    90  	} else {
    91  		b = b[:cap(b)]
    92  		n, err := m.MarshalToSizedBuffer(b)
    93  		if err != nil {
    94  			return nil, err
    95  		}
    96  		return b[:n], nil
    97  	}
    98  }
    99  func (m *QueryParamsResponse) XXX_Merge(src proto.Message) {
   100  	xxx_messageInfo_QueryParamsResponse.Merge(m, src)
   101  }
   102  func (m *QueryParamsResponse) XXX_Size() int {
   103  	return m.Size()
   104  }
   105  func (m *QueryParamsResponse) XXX_DiscardUnknown() {
   106  	xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m)
   107  }
   108  
   109  var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo
   110  
   111  func (m *QueryParamsResponse) GetParams() Params {
   112  	if m != nil {
   113  		return m.Params
   114  	}
   115  	return Params{}
   116  }
   117  
   118  // QueryValidatorOutstandingRewardsRequest is the request type for the
   119  // Query/ValidatorOutstandingRewards RPC method.
   120  type QueryValidatorOutstandingRewardsRequest struct {
   121  	// validator_address defines the validator address to query for.
   122  	ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
   123  }
   124  
   125  func (m *QueryValidatorOutstandingRewardsRequest) Reset() {
   126  	*m = QueryValidatorOutstandingRewardsRequest{}
   127  }
   128  func (m *QueryValidatorOutstandingRewardsRequest) String() string { return proto.CompactTextString(m) }
   129  func (*QueryValidatorOutstandingRewardsRequest) ProtoMessage()    {}
   130  func (*QueryValidatorOutstandingRewardsRequest) Descriptor() ([]byte, []int) {
   131  	return fileDescriptor_5efd02cbc06efdc9, []int{2}
   132  }
   133  func (m *QueryValidatorOutstandingRewardsRequest) XXX_Unmarshal(b []byte) error {
   134  	return m.Unmarshal(b)
   135  }
   136  func (m *QueryValidatorOutstandingRewardsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   137  	if deterministic {
   138  		return xxx_messageInfo_QueryValidatorOutstandingRewardsRequest.Marshal(b, m, deterministic)
   139  	} else {
   140  		b = b[:cap(b)]
   141  		n, err := m.MarshalToSizedBuffer(b)
   142  		if err != nil {
   143  			return nil, err
   144  		}
   145  		return b[:n], nil
   146  	}
   147  }
   148  func (m *QueryValidatorOutstandingRewardsRequest) XXX_Merge(src proto.Message) {
   149  	xxx_messageInfo_QueryValidatorOutstandingRewardsRequest.Merge(m, src)
   150  }
   151  func (m *QueryValidatorOutstandingRewardsRequest) XXX_Size() int {
   152  	return m.Size()
   153  }
   154  func (m *QueryValidatorOutstandingRewardsRequest) XXX_DiscardUnknown() {
   155  	xxx_messageInfo_QueryValidatorOutstandingRewardsRequest.DiscardUnknown(m)
   156  }
   157  
   158  var xxx_messageInfo_QueryValidatorOutstandingRewardsRequest proto.InternalMessageInfo
   159  
   160  func (m *QueryValidatorOutstandingRewardsRequest) GetValidatorAddress() string {
   161  	if m != nil {
   162  		return m.ValidatorAddress
   163  	}
   164  	return ""
   165  }
   166  
   167  // QueryValidatorOutstandingRewardsResponse is the response type for the
   168  // Query/ValidatorOutstandingRewards RPC method.
   169  type QueryValidatorOutstandingRewardsResponse struct {
   170  	Rewards ValidatorOutstandingRewards `protobuf:"bytes,1,opt,name=rewards,proto3" json:"rewards"`
   171  }
   172  
   173  func (m *QueryValidatorOutstandingRewardsResponse) Reset() {
   174  	*m = QueryValidatorOutstandingRewardsResponse{}
   175  }
   176  func (m *QueryValidatorOutstandingRewardsResponse) String() string { return proto.CompactTextString(m) }
   177  func (*QueryValidatorOutstandingRewardsResponse) ProtoMessage()    {}
   178  func (*QueryValidatorOutstandingRewardsResponse) Descriptor() ([]byte, []int) {
   179  	return fileDescriptor_5efd02cbc06efdc9, []int{3}
   180  }
   181  func (m *QueryValidatorOutstandingRewardsResponse) XXX_Unmarshal(b []byte) error {
   182  	return m.Unmarshal(b)
   183  }
   184  func (m *QueryValidatorOutstandingRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   185  	if deterministic {
   186  		return xxx_messageInfo_QueryValidatorOutstandingRewardsResponse.Marshal(b, m, deterministic)
   187  	} else {
   188  		b = b[:cap(b)]
   189  		n, err := m.MarshalToSizedBuffer(b)
   190  		if err != nil {
   191  			return nil, err
   192  		}
   193  		return b[:n], nil
   194  	}
   195  }
   196  func (m *QueryValidatorOutstandingRewardsResponse) XXX_Merge(src proto.Message) {
   197  	xxx_messageInfo_QueryValidatorOutstandingRewardsResponse.Merge(m, src)
   198  }
   199  func (m *QueryValidatorOutstandingRewardsResponse) XXX_Size() int {
   200  	return m.Size()
   201  }
   202  func (m *QueryValidatorOutstandingRewardsResponse) XXX_DiscardUnknown() {
   203  	xxx_messageInfo_QueryValidatorOutstandingRewardsResponse.DiscardUnknown(m)
   204  }
   205  
   206  var xxx_messageInfo_QueryValidatorOutstandingRewardsResponse proto.InternalMessageInfo
   207  
   208  func (m *QueryValidatorOutstandingRewardsResponse) GetRewards() ValidatorOutstandingRewards {
   209  	if m != nil {
   210  		return m.Rewards
   211  	}
   212  	return ValidatorOutstandingRewards{}
   213  }
   214  
   215  // QueryValidatorCommissionRequest is the request type for the
   216  // Query/ValidatorCommission RPC method
   217  type QueryValidatorCommissionRequest struct {
   218  	// validator_address defines the validator address to query for.
   219  	ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
   220  }
   221  
   222  func (m *QueryValidatorCommissionRequest) Reset()         { *m = QueryValidatorCommissionRequest{} }
   223  func (m *QueryValidatorCommissionRequest) String() string { return proto.CompactTextString(m) }
   224  func (*QueryValidatorCommissionRequest) ProtoMessage()    {}
   225  func (*QueryValidatorCommissionRequest) Descriptor() ([]byte, []int) {
   226  	return fileDescriptor_5efd02cbc06efdc9, []int{4}
   227  }
   228  func (m *QueryValidatorCommissionRequest) XXX_Unmarshal(b []byte) error {
   229  	return m.Unmarshal(b)
   230  }
   231  func (m *QueryValidatorCommissionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   232  	if deterministic {
   233  		return xxx_messageInfo_QueryValidatorCommissionRequest.Marshal(b, m, deterministic)
   234  	} else {
   235  		b = b[:cap(b)]
   236  		n, err := m.MarshalToSizedBuffer(b)
   237  		if err != nil {
   238  			return nil, err
   239  		}
   240  		return b[:n], nil
   241  	}
   242  }
   243  func (m *QueryValidatorCommissionRequest) XXX_Merge(src proto.Message) {
   244  	xxx_messageInfo_QueryValidatorCommissionRequest.Merge(m, src)
   245  }
   246  func (m *QueryValidatorCommissionRequest) XXX_Size() int {
   247  	return m.Size()
   248  }
   249  func (m *QueryValidatorCommissionRequest) XXX_DiscardUnknown() {
   250  	xxx_messageInfo_QueryValidatorCommissionRequest.DiscardUnknown(m)
   251  }
   252  
   253  var xxx_messageInfo_QueryValidatorCommissionRequest proto.InternalMessageInfo
   254  
   255  func (m *QueryValidatorCommissionRequest) GetValidatorAddress() string {
   256  	if m != nil {
   257  		return m.ValidatorAddress
   258  	}
   259  	return ""
   260  }
   261  
   262  // QueryValidatorCommissionResponse is the response type for the
   263  // Query/ValidatorCommission RPC method
   264  type QueryValidatorCommissionResponse struct {
   265  	// commission defines the commision the validator received.
   266  	Commission ValidatorAccumulatedCommission `protobuf:"bytes,1,opt,name=commission,proto3" json:"commission"`
   267  }
   268  
   269  func (m *QueryValidatorCommissionResponse) Reset()         { *m = QueryValidatorCommissionResponse{} }
   270  func (m *QueryValidatorCommissionResponse) String() string { return proto.CompactTextString(m) }
   271  func (*QueryValidatorCommissionResponse) ProtoMessage()    {}
   272  func (*QueryValidatorCommissionResponse) Descriptor() ([]byte, []int) {
   273  	return fileDescriptor_5efd02cbc06efdc9, []int{5}
   274  }
   275  func (m *QueryValidatorCommissionResponse) XXX_Unmarshal(b []byte) error {
   276  	return m.Unmarshal(b)
   277  }
   278  func (m *QueryValidatorCommissionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   279  	if deterministic {
   280  		return xxx_messageInfo_QueryValidatorCommissionResponse.Marshal(b, m, deterministic)
   281  	} else {
   282  		b = b[:cap(b)]
   283  		n, err := m.MarshalToSizedBuffer(b)
   284  		if err != nil {
   285  			return nil, err
   286  		}
   287  		return b[:n], nil
   288  	}
   289  }
   290  func (m *QueryValidatorCommissionResponse) XXX_Merge(src proto.Message) {
   291  	xxx_messageInfo_QueryValidatorCommissionResponse.Merge(m, src)
   292  }
   293  func (m *QueryValidatorCommissionResponse) XXX_Size() int {
   294  	return m.Size()
   295  }
   296  func (m *QueryValidatorCommissionResponse) XXX_DiscardUnknown() {
   297  	xxx_messageInfo_QueryValidatorCommissionResponse.DiscardUnknown(m)
   298  }
   299  
   300  var xxx_messageInfo_QueryValidatorCommissionResponse proto.InternalMessageInfo
   301  
   302  func (m *QueryValidatorCommissionResponse) GetCommission() ValidatorAccumulatedCommission {
   303  	if m != nil {
   304  		return m.Commission
   305  	}
   306  	return ValidatorAccumulatedCommission{}
   307  }
   308  
   309  // QueryValidatorSlashesRequest is the request type for the
   310  // Query/ValidatorSlashes RPC method
   311  type QueryValidatorSlashesRequest struct {
   312  	// validator_address defines the validator address to query for.
   313  	ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
   314  	// starting_height defines the optional starting height to query the slashes.
   315  	StartingHeight uint64 `protobuf:"varint,2,opt,name=starting_height,json=startingHeight,proto3" json:"starting_height,omitempty"`
   316  	// starting_height defines the optional ending height to query the slashes.
   317  	EndingHeight uint64 `protobuf:"varint,3,opt,name=ending_height,json=endingHeight,proto3" json:"ending_height,omitempty"`
   318  	// pagination defines an optional pagination for the request.
   319  	Pagination *query.PageRequest `protobuf:"bytes,4,opt,name=pagination,proto3" json:"pagination,omitempty"`
   320  }
   321  
   322  func (m *QueryValidatorSlashesRequest) Reset()         { *m = QueryValidatorSlashesRequest{} }
   323  func (m *QueryValidatorSlashesRequest) String() string { return proto.CompactTextString(m) }
   324  func (*QueryValidatorSlashesRequest) ProtoMessage()    {}
   325  func (*QueryValidatorSlashesRequest) Descriptor() ([]byte, []int) {
   326  	return fileDescriptor_5efd02cbc06efdc9, []int{6}
   327  }
   328  func (m *QueryValidatorSlashesRequest) XXX_Unmarshal(b []byte) error {
   329  	return m.Unmarshal(b)
   330  }
   331  func (m *QueryValidatorSlashesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   332  	if deterministic {
   333  		return xxx_messageInfo_QueryValidatorSlashesRequest.Marshal(b, m, deterministic)
   334  	} else {
   335  		b = b[:cap(b)]
   336  		n, err := m.MarshalToSizedBuffer(b)
   337  		if err != nil {
   338  			return nil, err
   339  		}
   340  		return b[:n], nil
   341  	}
   342  }
   343  func (m *QueryValidatorSlashesRequest) XXX_Merge(src proto.Message) {
   344  	xxx_messageInfo_QueryValidatorSlashesRequest.Merge(m, src)
   345  }
   346  func (m *QueryValidatorSlashesRequest) XXX_Size() int {
   347  	return m.Size()
   348  }
   349  func (m *QueryValidatorSlashesRequest) XXX_DiscardUnknown() {
   350  	xxx_messageInfo_QueryValidatorSlashesRequest.DiscardUnknown(m)
   351  }
   352  
   353  var xxx_messageInfo_QueryValidatorSlashesRequest proto.InternalMessageInfo
   354  
   355  // QueryValidatorSlashesResponse is the response type for the
   356  // Query/ValidatorSlashes RPC method.
   357  type QueryValidatorSlashesResponse struct {
   358  	// slashes defines the slashes the validator received.
   359  	Slashes []ValidatorSlashEvent `protobuf:"bytes,1,rep,name=slashes,proto3" json:"slashes"`
   360  	// pagination defines the pagination in the response.
   361  	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
   362  }
   363  
   364  func (m *QueryValidatorSlashesResponse) Reset()         { *m = QueryValidatorSlashesResponse{} }
   365  func (m *QueryValidatorSlashesResponse) String() string { return proto.CompactTextString(m) }
   366  func (*QueryValidatorSlashesResponse) ProtoMessage()    {}
   367  func (*QueryValidatorSlashesResponse) Descriptor() ([]byte, []int) {
   368  	return fileDescriptor_5efd02cbc06efdc9, []int{7}
   369  }
   370  func (m *QueryValidatorSlashesResponse) XXX_Unmarshal(b []byte) error {
   371  	return m.Unmarshal(b)
   372  }
   373  func (m *QueryValidatorSlashesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   374  	if deterministic {
   375  		return xxx_messageInfo_QueryValidatorSlashesResponse.Marshal(b, m, deterministic)
   376  	} else {
   377  		b = b[:cap(b)]
   378  		n, err := m.MarshalToSizedBuffer(b)
   379  		if err != nil {
   380  			return nil, err
   381  		}
   382  		return b[:n], nil
   383  	}
   384  }
   385  func (m *QueryValidatorSlashesResponse) XXX_Merge(src proto.Message) {
   386  	xxx_messageInfo_QueryValidatorSlashesResponse.Merge(m, src)
   387  }
   388  func (m *QueryValidatorSlashesResponse) XXX_Size() int {
   389  	return m.Size()
   390  }
   391  func (m *QueryValidatorSlashesResponse) XXX_DiscardUnknown() {
   392  	xxx_messageInfo_QueryValidatorSlashesResponse.DiscardUnknown(m)
   393  }
   394  
   395  var xxx_messageInfo_QueryValidatorSlashesResponse proto.InternalMessageInfo
   396  
   397  func (m *QueryValidatorSlashesResponse) GetSlashes() []ValidatorSlashEvent {
   398  	if m != nil {
   399  		return m.Slashes
   400  	}
   401  	return nil
   402  }
   403  
   404  func (m *QueryValidatorSlashesResponse) GetPagination() *query.PageResponse {
   405  	if m != nil {
   406  		return m.Pagination
   407  	}
   408  	return nil
   409  }
   410  
   411  // QueryDelegationRewardsRequest is the request type for the
   412  // Query/DelegationRewards RPC method.
   413  type QueryDelegationRewardsRequest struct {
   414  	// delegator_address defines the delegator address to query for.
   415  	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
   416  	// validator_address defines the validator address to query for.
   417  	ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
   418  }
   419  
   420  func (m *QueryDelegationRewardsRequest) Reset()         { *m = QueryDelegationRewardsRequest{} }
   421  func (m *QueryDelegationRewardsRequest) String() string { return proto.CompactTextString(m) }
   422  func (*QueryDelegationRewardsRequest) ProtoMessage()    {}
   423  func (*QueryDelegationRewardsRequest) Descriptor() ([]byte, []int) {
   424  	return fileDescriptor_5efd02cbc06efdc9, []int{8}
   425  }
   426  func (m *QueryDelegationRewardsRequest) XXX_Unmarshal(b []byte) error {
   427  	return m.Unmarshal(b)
   428  }
   429  func (m *QueryDelegationRewardsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   430  	if deterministic {
   431  		return xxx_messageInfo_QueryDelegationRewardsRequest.Marshal(b, m, deterministic)
   432  	} else {
   433  		b = b[:cap(b)]
   434  		n, err := m.MarshalToSizedBuffer(b)
   435  		if err != nil {
   436  			return nil, err
   437  		}
   438  		return b[:n], nil
   439  	}
   440  }
   441  func (m *QueryDelegationRewardsRequest) XXX_Merge(src proto.Message) {
   442  	xxx_messageInfo_QueryDelegationRewardsRequest.Merge(m, src)
   443  }
   444  func (m *QueryDelegationRewardsRequest) XXX_Size() int {
   445  	return m.Size()
   446  }
   447  func (m *QueryDelegationRewardsRequest) XXX_DiscardUnknown() {
   448  	xxx_messageInfo_QueryDelegationRewardsRequest.DiscardUnknown(m)
   449  }
   450  
   451  var xxx_messageInfo_QueryDelegationRewardsRequest proto.InternalMessageInfo
   452  
   453  // QueryDelegationRewardsResponse is the response type for the
   454  // Query/DelegationRewards RPC method.
   455  type QueryDelegationRewardsResponse struct {
   456  	// rewards defines the rewards accrued by a delegation.
   457  	Rewards github_com_Finschia_finschia_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=rewards,proto3,castrepeated=github.com/Finschia/finschia-sdk/types.DecCoins" json:"rewards"`
   458  }
   459  
   460  func (m *QueryDelegationRewardsResponse) Reset()         { *m = QueryDelegationRewardsResponse{} }
   461  func (m *QueryDelegationRewardsResponse) String() string { return proto.CompactTextString(m) }
   462  func (*QueryDelegationRewardsResponse) ProtoMessage()    {}
   463  func (*QueryDelegationRewardsResponse) Descriptor() ([]byte, []int) {
   464  	return fileDescriptor_5efd02cbc06efdc9, []int{9}
   465  }
   466  func (m *QueryDelegationRewardsResponse) XXX_Unmarshal(b []byte) error {
   467  	return m.Unmarshal(b)
   468  }
   469  func (m *QueryDelegationRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   470  	if deterministic {
   471  		return xxx_messageInfo_QueryDelegationRewardsResponse.Marshal(b, m, deterministic)
   472  	} else {
   473  		b = b[:cap(b)]
   474  		n, err := m.MarshalToSizedBuffer(b)
   475  		if err != nil {
   476  			return nil, err
   477  		}
   478  		return b[:n], nil
   479  	}
   480  }
   481  func (m *QueryDelegationRewardsResponse) XXX_Merge(src proto.Message) {
   482  	xxx_messageInfo_QueryDelegationRewardsResponse.Merge(m, src)
   483  }
   484  func (m *QueryDelegationRewardsResponse) XXX_Size() int {
   485  	return m.Size()
   486  }
   487  func (m *QueryDelegationRewardsResponse) XXX_DiscardUnknown() {
   488  	xxx_messageInfo_QueryDelegationRewardsResponse.DiscardUnknown(m)
   489  }
   490  
   491  var xxx_messageInfo_QueryDelegationRewardsResponse proto.InternalMessageInfo
   492  
   493  func (m *QueryDelegationRewardsResponse) GetRewards() github_com_Finschia_finschia_sdk_types.DecCoins {
   494  	if m != nil {
   495  		return m.Rewards
   496  	}
   497  	return nil
   498  }
   499  
   500  // QueryDelegationTotalRewardsRequest is the request type for the
   501  // Query/DelegationTotalRewards RPC method.
   502  type QueryDelegationTotalRewardsRequest struct {
   503  	// delegator_address defines the delegator address to query for.
   504  	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
   505  }
   506  
   507  func (m *QueryDelegationTotalRewardsRequest) Reset()         { *m = QueryDelegationTotalRewardsRequest{} }
   508  func (m *QueryDelegationTotalRewardsRequest) String() string { return proto.CompactTextString(m) }
   509  func (*QueryDelegationTotalRewardsRequest) ProtoMessage()    {}
   510  func (*QueryDelegationTotalRewardsRequest) Descriptor() ([]byte, []int) {
   511  	return fileDescriptor_5efd02cbc06efdc9, []int{10}
   512  }
   513  func (m *QueryDelegationTotalRewardsRequest) XXX_Unmarshal(b []byte) error {
   514  	return m.Unmarshal(b)
   515  }
   516  func (m *QueryDelegationTotalRewardsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   517  	if deterministic {
   518  		return xxx_messageInfo_QueryDelegationTotalRewardsRequest.Marshal(b, m, deterministic)
   519  	} else {
   520  		b = b[:cap(b)]
   521  		n, err := m.MarshalToSizedBuffer(b)
   522  		if err != nil {
   523  			return nil, err
   524  		}
   525  		return b[:n], nil
   526  	}
   527  }
   528  func (m *QueryDelegationTotalRewardsRequest) XXX_Merge(src proto.Message) {
   529  	xxx_messageInfo_QueryDelegationTotalRewardsRequest.Merge(m, src)
   530  }
   531  func (m *QueryDelegationTotalRewardsRequest) XXX_Size() int {
   532  	return m.Size()
   533  }
   534  func (m *QueryDelegationTotalRewardsRequest) XXX_DiscardUnknown() {
   535  	xxx_messageInfo_QueryDelegationTotalRewardsRequest.DiscardUnknown(m)
   536  }
   537  
   538  var xxx_messageInfo_QueryDelegationTotalRewardsRequest proto.InternalMessageInfo
   539  
   540  // QueryDelegationTotalRewardsResponse is the response type for the
   541  // Query/DelegationTotalRewards RPC method.
   542  type QueryDelegationTotalRewardsResponse struct {
   543  	// rewards defines all the rewards accrued by a delegator.
   544  	Rewards []DelegationDelegatorReward `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards"`
   545  	// total defines the sum of all the rewards.
   546  	Total github_com_Finschia_finschia_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=total,proto3,castrepeated=github.com/Finschia/finschia-sdk/types.DecCoins" json:"total"`
   547  }
   548  
   549  func (m *QueryDelegationTotalRewardsResponse) Reset()         { *m = QueryDelegationTotalRewardsResponse{} }
   550  func (m *QueryDelegationTotalRewardsResponse) String() string { return proto.CompactTextString(m) }
   551  func (*QueryDelegationTotalRewardsResponse) ProtoMessage()    {}
   552  func (*QueryDelegationTotalRewardsResponse) Descriptor() ([]byte, []int) {
   553  	return fileDescriptor_5efd02cbc06efdc9, []int{11}
   554  }
   555  func (m *QueryDelegationTotalRewardsResponse) XXX_Unmarshal(b []byte) error {
   556  	return m.Unmarshal(b)
   557  }
   558  func (m *QueryDelegationTotalRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   559  	if deterministic {
   560  		return xxx_messageInfo_QueryDelegationTotalRewardsResponse.Marshal(b, m, deterministic)
   561  	} else {
   562  		b = b[:cap(b)]
   563  		n, err := m.MarshalToSizedBuffer(b)
   564  		if err != nil {
   565  			return nil, err
   566  		}
   567  		return b[:n], nil
   568  	}
   569  }
   570  func (m *QueryDelegationTotalRewardsResponse) XXX_Merge(src proto.Message) {
   571  	xxx_messageInfo_QueryDelegationTotalRewardsResponse.Merge(m, src)
   572  }
   573  func (m *QueryDelegationTotalRewardsResponse) XXX_Size() int {
   574  	return m.Size()
   575  }
   576  func (m *QueryDelegationTotalRewardsResponse) XXX_DiscardUnknown() {
   577  	xxx_messageInfo_QueryDelegationTotalRewardsResponse.DiscardUnknown(m)
   578  }
   579  
   580  var xxx_messageInfo_QueryDelegationTotalRewardsResponse proto.InternalMessageInfo
   581  
   582  func (m *QueryDelegationTotalRewardsResponse) GetRewards() []DelegationDelegatorReward {
   583  	if m != nil {
   584  		return m.Rewards
   585  	}
   586  	return nil
   587  }
   588  
   589  func (m *QueryDelegationTotalRewardsResponse) GetTotal() github_com_Finschia_finschia_sdk_types.DecCoins {
   590  	if m != nil {
   591  		return m.Total
   592  	}
   593  	return nil
   594  }
   595  
   596  // QueryDelegatorValidatorsRequest is the request type for the
   597  // Query/DelegatorValidators RPC method.
   598  type QueryDelegatorValidatorsRequest struct {
   599  	// delegator_address defines the delegator address to query for.
   600  	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
   601  }
   602  
   603  func (m *QueryDelegatorValidatorsRequest) Reset()         { *m = QueryDelegatorValidatorsRequest{} }
   604  func (m *QueryDelegatorValidatorsRequest) String() string { return proto.CompactTextString(m) }
   605  func (*QueryDelegatorValidatorsRequest) ProtoMessage()    {}
   606  func (*QueryDelegatorValidatorsRequest) Descriptor() ([]byte, []int) {
   607  	return fileDescriptor_5efd02cbc06efdc9, []int{12}
   608  }
   609  func (m *QueryDelegatorValidatorsRequest) XXX_Unmarshal(b []byte) error {
   610  	return m.Unmarshal(b)
   611  }
   612  func (m *QueryDelegatorValidatorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   613  	if deterministic {
   614  		return xxx_messageInfo_QueryDelegatorValidatorsRequest.Marshal(b, m, deterministic)
   615  	} else {
   616  		b = b[:cap(b)]
   617  		n, err := m.MarshalToSizedBuffer(b)
   618  		if err != nil {
   619  			return nil, err
   620  		}
   621  		return b[:n], nil
   622  	}
   623  }
   624  func (m *QueryDelegatorValidatorsRequest) XXX_Merge(src proto.Message) {
   625  	xxx_messageInfo_QueryDelegatorValidatorsRequest.Merge(m, src)
   626  }
   627  func (m *QueryDelegatorValidatorsRequest) XXX_Size() int {
   628  	return m.Size()
   629  }
   630  func (m *QueryDelegatorValidatorsRequest) XXX_DiscardUnknown() {
   631  	xxx_messageInfo_QueryDelegatorValidatorsRequest.DiscardUnknown(m)
   632  }
   633  
   634  var xxx_messageInfo_QueryDelegatorValidatorsRequest proto.InternalMessageInfo
   635  
   636  // QueryDelegatorValidatorsResponse is the response type for the
   637  // Query/DelegatorValidators RPC method.
   638  type QueryDelegatorValidatorsResponse struct {
   639  	// validators defines the validators a delegator is delegating for.
   640  	Validators []string `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"`
   641  }
   642  
   643  func (m *QueryDelegatorValidatorsResponse) Reset()         { *m = QueryDelegatorValidatorsResponse{} }
   644  func (m *QueryDelegatorValidatorsResponse) String() string { return proto.CompactTextString(m) }
   645  func (*QueryDelegatorValidatorsResponse) ProtoMessage()    {}
   646  func (*QueryDelegatorValidatorsResponse) Descriptor() ([]byte, []int) {
   647  	return fileDescriptor_5efd02cbc06efdc9, []int{13}
   648  }
   649  func (m *QueryDelegatorValidatorsResponse) XXX_Unmarshal(b []byte) error {
   650  	return m.Unmarshal(b)
   651  }
   652  func (m *QueryDelegatorValidatorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   653  	if deterministic {
   654  		return xxx_messageInfo_QueryDelegatorValidatorsResponse.Marshal(b, m, deterministic)
   655  	} else {
   656  		b = b[:cap(b)]
   657  		n, err := m.MarshalToSizedBuffer(b)
   658  		if err != nil {
   659  			return nil, err
   660  		}
   661  		return b[:n], nil
   662  	}
   663  }
   664  func (m *QueryDelegatorValidatorsResponse) XXX_Merge(src proto.Message) {
   665  	xxx_messageInfo_QueryDelegatorValidatorsResponse.Merge(m, src)
   666  }
   667  func (m *QueryDelegatorValidatorsResponse) XXX_Size() int {
   668  	return m.Size()
   669  }
   670  func (m *QueryDelegatorValidatorsResponse) XXX_DiscardUnknown() {
   671  	xxx_messageInfo_QueryDelegatorValidatorsResponse.DiscardUnknown(m)
   672  }
   673  
   674  var xxx_messageInfo_QueryDelegatorValidatorsResponse proto.InternalMessageInfo
   675  
   676  // QueryDelegatorWithdrawAddressRequest is the request type for the
   677  // Query/DelegatorWithdrawAddress RPC method.
   678  type QueryDelegatorWithdrawAddressRequest struct {
   679  	// delegator_address defines the delegator address to query for.
   680  	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
   681  }
   682  
   683  func (m *QueryDelegatorWithdrawAddressRequest) Reset()         { *m = QueryDelegatorWithdrawAddressRequest{} }
   684  func (m *QueryDelegatorWithdrawAddressRequest) String() string { return proto.CompactTextString(m) }
   685  func (*QueryDelegatorWithdrawAddressRequest) ProtoMessage()    {}
   686  func (*QueryDelegatorWithdrawAddressRequest) Descriptor() ([]byte, []int) {
   687  	return fileDescriptor_5efd02cbc06efdc9, []int{14}
   688  }
   689  func (m *QueryDelegatorWithdrawAddressRequest) XXX_Unmarshal(b []byte) error {
   690  	return m.Unmarshal(b)
   691  }
   692  func (m *QueryDelegatorWithdrawAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   693  	if deterministic {
   694  		return xxx_messageInfo_QueryDelegatorWithdrawAddressRequest.Marshal(b, m, deterministic)
   695  	} else {
   696  		b = b[:cap(b)]
   697  		n, err := m.MarshalToSizedBuffer(b)
   698  		if err != nil {
   699  			return nil, err
   700  		}
   701  		return b[:n], nil
   702  	}
   703  }
   704  func (m *QueryDelegatorWithdrawAddressRequest) XXX_Merge(src proto.Message) {
   705  	xxx_messageInfo_QueryDelegatorWithdrawAddressRequest.Merge(m, src)
   706  }
   707  func (m *QueryDelegatorWithdrawAddressRequest) XXX_Size() int {
   708  	return m.Size()
   709  }
   710  func (m *QueryDelegatorWithdrawAddressRequest) XXX_DiscardUnknown() {
   711  	xxx_messageInfo_QueryDelegatorWithdrawAddressRequest.DiscardUnknown(m)
   712  }
   713  
   714  var xxx_messageInfo_QueryDelegatorWithdrawAddressRequest proto.InternalMessageInfo
   715  
   716  // QueryDelegatorWithdrawAddressResponse is the response type for the
   717  // Query/DelegatorWithdrawAddress RPC method.
   718  type QueryDelegatorWithdrawAddressResponse struct {
   719  	// withdraw_address defines the delegator address to query for.
   720  	WithdrawAddress string `protobuf:"bytes,1,opt,name=withdraw_address,json=withdrawAddress,proto3" json:"withdraw_address,omitempty"`
   721  }
   722  
   723  func (m *QueryDelegatorWithdrawAddressResponse) Reset()         { *m = QueryDelegatorWithdrawAddressResponse{} }
   724  func (m *QueryDelegatorWithdrawAddressResponse) String() string { return proto.CompactTextString(m) }
   725  func (*QueryDelegatorWithdrawAddressResponse) ProtoMessage()    {}
   726  func (*QueryDelegatorWithdrawAddressResponse) Descriptor() ([]byte, []int) {
   727  	return fileDescriptor_5efd02cbc06efdc9, []int{15}
   728  }
   729  func (m *QueryDelegatorWithdrawAddressResponse) XXX_Unmarshal(b []byte) error {
   730  	return m.Unmarshal(b)
   731  }
   732  func (m *QueryDelegatorWithdrawAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   733  	if deterministic {
   734  		return xxx_messageInfo_QueryDelegatorWithdrawAddressResponse.Marshal(b, m, deterministic)
   735  	} else {
   736  		b = b[:cap(b)]
   737  		n, err := m.MarshalToSizedBuffer(b)
   738  		if err != nil {
   739  			return nil, err
   740  		}
   741  		return b[:n], nil
   742  	}
   743  }
   744  func (m *QueryDelegatorWithdrawAddressResponse) XXX_Merge(src proto.Message) {
   745  	xxx_messageInfo_QueryDelegatorWithdrawAddressResponse.Merge(m, src)
   746  }
   747  func (m *QueryDelegatorWithdrawAddressResponse) XXX_Size() int {
   748  	return m.Size()
   749  }
   750  func (m *QueryDelegatorWithdrawAddressResponse) XXX_DiscardUnknown() {
   751  	xxx_messageInfo_QueryDelegatorWithdrawAddressResponse.DiscardUnknown(m)
   752  }
   753  
   754  var xxx_messageInfo_QueryDelegatorWithdrawAddressResponse proto.InternalMessageInfo
   755  
   756  // QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC
   757  // method.
   758  type QueryCommunityPoolRequest struct {
   759  }
   760  
   761  func (m *QueryCommunityPoolRequest) Reset()         { *m = QueryCommunityPoolRequest{} }
   762  func (m *QueryCommunityPoolRequest) String() string { return proto.CompactTextString(m) }
   763  func (*QueryCommunityPoolRequest) ProtoMessage()    {}
   764  func (*QueryCommunityPoolRequest) Descriptor() ([]byte, []int) {
   765  	return fileDescriptor_5efd02cbc06efdc9, []int{16}
   766  }
   767  func (m *QueryCommunityPoolRequest) XXX_Unmarshal(b []byte) error {
   768  	return m.Unmarshal(b)
   769  }
   770  func (m *QueryCommunityPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   771  	if deterministic {
   772  		return xxx_messageInfo_QueryCommunityPoolRequest.Marshal(b, m, deterministic)
   773  	} else {
   774  		b = b[:cap(b)]
   775  		n, err := m.MarshalToSizedBuffer(b)
   776  		if err != nil {
   777  			return nil, err
   778  		}
   779  		return b[:n], nil
   780  	}
   781  }
   782  func (m *QueryCommunityPoolRequest) XXX_Merge(src proto.Message) {
   783  	xxx_messageInfo_QueryCommunityPoolRequest.Merge(m, src)
   784  }
   785  func (m *QueryCommunityPoolRequest) XXX_Size() int {
   786  	return m.Size()
   787  }
   788  func (m *QueryCommunityPoolRequest) XXX_DiscardUnknown() {
   789  	xxx_messageInfo_QueryCommunityPoolRequest.DiscardUnknown(m)
   790  }
   791  
   792  var xxx_messageInfo_QueryCommunityPoolRequest proto.InternalMessageInfo
   793  
   794  // QueryCommunityPoolResponse is the response type for the Query/CommunityPool
   795  // RPC method.
   796  type QueryCommunityPoolResponse struct {
   797  	// pool defines community pool's coins.
   798  	Pool github_com_Finschia_finschia_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=pool,proto3,castrepeated=github.com/Finschia/finschia-sdk/types.DecCoins" json:"pool"`
   799  }
   800  
   801  func (m *QueryCommunityPoolResponse) Reset()         { *m = QueryCommunityPoolResponse{} }
   802  func (m *QueryCommunityPoolResponse) String() string { return proto.CompactTextString(m) }
   803  func (*QueryCommunityPoolResponse) ProtoMessage()    {}
   804  func (*QueryCommunityPoolResponse) Descriptor() ([]byte, []int) {
   805  	return fileDescriptor_5efd02cbc06efdc9, []int{17}
   806  }
   807  func (m *QueryCommunityPoolResponse) XXX_Unmarshal(b []byte) error {
   808  	return m.Unmarshal(b)
   809  }
   810  func (m *QueryCommunityPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   811  	if deterministic {
   812  		return xxx_messageInfo_QueryCommunityPoolResponse.Marshal(b, m, deterministic)
   813  	} else {
   814  		b = b[:cap(b)]
   815  		n, err := m.MarshalToSizedBuffer(b)
   816  		if err != nil {
   817  			return nil, err
   818  		}
   819  		return b[:n], nil
   820  	}
   821  }
   822  func (m *QueryCommunityPoolResponse) XXX_Merge(src proto.Message) {
   823  	xxx_messageInfo_QueryCommunityPoolResponse.Merge(m, src)
   824  }
   825  func (m *QueryCommunityPoolResponse) XXX_Size() int {
   826  	return m.Size()
   827  }
   828  func (m *QueryCommunityPoolResponse) XXX_DiscardUnknown() {
   829  	xxx_messageInfo_QueryCommunityPoolResponse.DiscardUnknown(m)
   830  }
   831  
   832  var xxx_messageInfo_QueryCommunityPoolResponse proto.InternalMessageInfo
   833  
   834  func (m *QueryCommunityPoolResponse) GetPool() github_com_Finschia_finschia_sdk_types.DecCoins {
   835  	if m != nil {
   836  		return m.Pool
   837  	}
   838  	return nil
   839  }
   840  
   841  func init() {
   842  	proto.RegisterType((*QueryParamsRequest)(nil), "cosmos.distribution.v1beta1.QueryParamsRequest")
   843  	proto.RegisterType((*QueryParamsResponse)(nil), "cosmos.distribution.v1beta1.QueryParamsResponse")
   844  	proto.RegisterType((*QueryValidatorOutstandingRewardsRequest)(nil), "cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest")
   845  	proto.RegisterType((*QueryValidatorOutstandingRewardsResponse)(nil), "cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse")
   846  	proto.RegisterType((*QueryValidatorCommissionRequest)(nil), "cosmos.distribution.v1beta1.QueryValidatorCommissionRequest")
   847  	proto.RegisterType((*QueryValidatorCommissionResponse)(nil), "cosmos.distribution.v1beta1.QueryValidatorCommissionResponse")
   848  	proto.RegisterType((*QueryValidatorSlashesRequest)(nil), "cosmos.distribution.v1beta1.QueryValidatorSlashesRequest")
   849  	proto.RegisterType((*QueryValidatorSlashesResponse)(nil), "cosmos.distribution.v1beta1.QueryValidatorSlashesResponse")
   850  	proto.RegisterType((*QueryDelegationRewardsRequest)(nil), "cosmos.distribution.v1beta1.QueryDelegationRewardsRequest")
   851  	proto.RegisterType((*QueryDelegationRewardsResponse)(nil), "cosmos.distribution.v1beta1.QueryDelegationRewardsResponse")
   852  	proto.RegisterType((*QueryDelegationTotalRewardsRequest)(nil), "cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest")
   853  	proto.RegisterType((*QueryDelegationTotalRewardsResponse)(nil), "cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse")
   854  	proto.RegisterType((*QueryDelegatorValidatorsRequest)(nil), "cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest")
   855  	proto.RegisterType((*QueryDelegatorValidatorsResponse)(nil), "cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse")
   856  	proto.RegisterType((*QueryDelegatorWithdrawAddressRequest)(nil), "cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest")
   857  	proto.RegisterType((*QueryDelegatorWithdrawAddressResponse)(nil), "cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse")
   858  	proto.RegisterType((*QueryCommunityPoolRequest)(nil), "cosmos.distribution.v1beta1.QueryCommunityPoolRequest")
   859  	proto.RegisterType((*QueryCommunityPoolResponse)(nil), "cosmos.distribution.v1beta1.QueryCommunityPoolResponse")
   860  }
   861  
   862  func init() {
   863  	proto.RegisterFile("cosmos/distribution/v1beta1/query.proto", fileDescriptor_5efd02cbc06efdc9)
   864  }
   865  
   866  var fileDescriptor_5efd02cbc06efdc9 = []byte{
   867  	// 1106 bytes of a gzipped FileDescriptorProto
   868  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x98, 0xcf, 0x6f, 0x1b, 0x45,
   869  	0x14, 0xc7, 0x3d, 0x6e, 0x9a, 0xd2, 0x57, 0x4a, 0xd2, 0x69, 0x85, 0xcc, 0x26, 0xd8, 0xd1, 0x86,
   870  	0x92, 0x40, 0x54, 0x6f, 0x9b, 0x8a, 0x16, 0x5a, 0x10, 0xe4, 0x27, 0x95, 0xa8, 0x92, 0xd4, 0x54,
   871  	0x49, 0xf8, 0xa5, 0x68, 0x6c, 0x0f, 0xeb, 0x51, 0xed, 0x1d, 0x77, 0x67, 0x9c, 0x10, 0x55, 0xbd,
   872  	0x50, 0x10, 0x1c, 0x41, 0x5c, 0x7a, 0xcc, 0x99, 0x3b, 0x17, 0xfe, 0x82, 0x1e, 0x2b, 0x21, 0xa1,
   873  	0x9e, 0x00, 0x25, 0x1c, 0x2a, 0x10, 0x67, 0xae, 0x95, 0x67, 0x67, 0xed, 0x5d, 0x7b, 0xbd, 0xfe,
   874  	0xa5, 0xde, 0xac, 0xb7, 0xf3, 0xbe, 0xf3, 0x3e, 0x6f, 0xe6, 0xcd, 0x7b, 0x32, 0xcc, 0x14, 0xb8,
   875  	0xa8, 0x70, 0x61, 0x15, 0x99, 0x90, 0x2e, 0xcb, 0xd7, 0x24, 0xe3, 0x8e, 0xb5, 0x7b, 0x29, 0x4f,
   876  	0x25, 0xb9, 0x64, 0xdd, 0xad, 0x51, 0x77, 0x3f, 0x5b, 0x75, 0xb9, 0xe4, 0x78, 0xc2, 0x5b, 0x98,
   877  	0x0d, 0x2e, 0xcc, 0xea, 0x85, 0xc6, 0x9b, 0x5a, 0x25, 0x4f, 0x04, 0xf5, 0xbc, 0x1a, 0x1a, 0x55,
   878  	0x62, 0x33, 0x87, 0xa8, 0xd5, 0x4a, 0xc8, 0x38, 0x67, 0x73, 0x9b, 0xab, 0x9f, 0x56, 0xfd, 0x97,
   879  	0xb6, 0x4e, 0xda, 0x9c, 0xdb, 0x65, 0x6a, 0x91, 0x2a, 0xb3, 0x88, 0xe3, 0x70, 0xa9, 0x5c, 0x84,
   880  	0xfe, 0x9a, 0x0e, 0xea, 0xfb, 0xca, 0x05, 0xce, 0x7c, 0xcd, 0x6c, 0x1c, 0x45, 0x28, 0x62, 0xb5,
   881  	0xde, 0x3c, 0x07, 0xf8, 0x56, 0x3d, 0xca, 0x0d, 0xe2, 0x92, 0x8a, 0xc8, 0xd1, 0xbb, 0x35, 0x2a,
   882  	0xa4, 0xb9, 0x0d, 0x67, 0x43, 0x56, 0x51, 0xe5, 0x8e, 0xa0, 0x78, 0x01, 0x46, 0xab, 0xca, 0x92,
   883  	0x42, 0x53, 0x68, 0xf6, 0xd4, 0xfc, 0x74, 0x36, 0x26, 0x15, 0x59, 0xcf, 0x79, 0x71, 0xe4, 0xd1,
   884  	0x1f, 0x99, 0x44, 0x4e, 0x3b, 0x9a, 0x9b, 0x30, 0xa3, 0x94, 0x37, 0x49, 0x99, 0x15, 0x89, 0xe4,
   885  	0xee, 0x7a, 0x4d, 0x0a, 0x49, 0x9c, 0x22, 0x73, 0xec, 0x1c, 0xdd, 0x23, 0x6e, 0xd1, 0x0f, 0x02,
   886  	0xcf, 0xc1, 0x99, 0x5d, 0x7f, 0xd5, 0x0e, 0x29, 0x16, 0x5d, 0x2a, 0xbc, 0x8d, 0x4f, 0xe6, 0xc6,
   887  	0x1b, 0x1f, 0x16, 0x3c, 0xbb, 0xf9, 0x0d, 0x82, 0xd9, 0xee, 0xc2, 0x9a, 0x63, 0x1b, 0x4e, 0xb8,
   888  	0x9e, 0x49, 0x83, 0xbc, 0x1d, 0x0b, 0x12, 0x23, 0xa9, 0xe9, 0x7c, 0x39, 0x73, 0x0d, 0x32, 0xe1,
   889  	0x28, 0x96, 0x78, 0xa5, 0xc2, 0x84, 0x60, 0xdc, 0x19, 0x08, 0xeb, 0x5b, 0x04, 0x53, 0x9d, 0x05,
   890  	0x35, 0x0e, 0x01, 0x28, 0x34, 0xac, 0x9a, 0xe8, 0x7a, 0x6f, 0x44, 0x0b, 0x85, 0x42, 0xad, 0x52,
   891  	0x2b, 0x13, 0x49, 0x8b, 0x4d, 0x61, 0x0d, 0x15, 0x10, 0x35, 0xff, 0x45, 0x30, 0x19, 0x8e, 0xe3,
   892  	0xe3, 0x32, 0x11, 0x25, 0x3a, 0xd0, 0x61, 0xe1, 0x19, 0x18, 0x13, 0x92, 0xb8, 0x92, 0x39, 0xf6,
   893  	0x4e, 0x89, 0x32, 0xbb, 0x24, 0x53, 0xc9, 0x29, 0x34, 0x3b, 0x92, 0x7b, 0xc9, 0x37, 0xdf, 0x50,
   894  	0x56, 0x3c, 0x0d, 0xa7, 0xa9, 0x4a, 0xb7, 0xbf, 0xec, 0x98, 0x5a, 0xf6, 0xa2, 0x67, 0xd4, 0x8b,
   895  	0x56, 0x01, 0x9a, 0xa5, 0x95, 0x1a, 0x51, 0xf8, 0xaf, 0xfb, 0xf8, 0xf5, 0x3a, 0xc9, 0x7a, 0xd5,
   896  	0xdb, 0xbc, 0x97, 0x36, 0xd5, 0x61, 0xe7, 0x02, 0x9e, 0xd7, 0x5e, 0xf8, 0xfe, 0x20, 0x93, 0x78,
   897  	0x78, 0x90, 0x41, 0xe6, 0xaf, 0x08, 0x5e, 0xed, 0x40, 0xab, 0x53, 0xbe, 0x01, 0x27, 0x84, 0x67,
   898  	0x4a, 0xa1, 0xa9, 0x63, 0xb3, 0xa7, 0xe6, 0x2f, 0xf6, 0x96, 0x6f, 0xa5, 0xb3, 0xb2, 0x4b, 0x1d,
   899  	0xe9, 0xdf, 0x1c, 0x2d, 0x83, 0x3f, 0x0c, 0x51, 0x24, 0x15, 0xc5, 0x4c, 0x57, 0x0a, 0x2f, 0x9c,
   900  	0x20, 0x86, 0xf9, 0xc0, 0x0f, 0x7e, 0x99, 0x96, 0xa9, 0xad, 0x6c, 0xed, 0x85, 0x55, 0xf4, 0xbe,
   901  	0xb5, 0x9f, 0x55, 0xe3, 0x83, 0x7f, 0x56, 0x91, 0x07, 0x9b, 0x8c, 0x3e, 0x58, 0x2f, 0x85, 0x4f,
   902  	0x0f, 0x32, 0x09, 0xf3, 0x47, 0x04, 0xe9, 0x4e, 0x51, 0xe8, 0x1c, 0xf2, 0x60, 0x15, 0xd6, 0x73,
   903  	0x38, 0x19, 0xc2, 0xf5, 0x41, 0x97, 0x69, 0x61, 0x89, 0x33, 0x67, 0xf1, 0x6a, 0x3d, 0x5f, 0x3f,
   904  	0xff, 0x99, 0xb1, 0x6c, 0x26, 0x4b, 0xb5, 0x7c, 0xb6, 0xc0, 0x2b, 0xd6, 0x2a, 0x73, 0x44, 0xa1,
   905  	0xc4, 0x88, 0xf5, 0xa5, 0xfe, 0x71, 0x41, 0x14, 0xef, 0x58, 0x72, 0xbf, 0x4a, 0x85, 0xef, 0x27,
   906  	0x9a, 0xc5, 0xf9, 0x19, 0x98, 0x2d, 0x21, 0xdd, 0xe6, 0x92, 0x94, 0x87, 0xc8, 0x4e, 0x00, 0xf8,
   907  	0x1f, 0x04, 0xd3, 0xb1, 0xea, 0x9a, 0x7a, 0xb3, 0x95, 0xfa, 0x4a, 0xec, 0xcd, 0x69, 0xaa, 0x2d,
   908  	0xfb, 0x7b, 0x7b, 0x8a, 0x2d, 0x2f, 0x0f, 0xbe, 0x03, 0xc7, 0x65, 0x7d, 0xbf, 0x54, 0xf2, 0x79,
   909  	0xe6, 0xd2, 0xdb, 0xc3, 0xdc, 0xd6, 0xcf, 0x5c, 0x23, 0xa6, 0xc6, 0x05, 0x1f, 0x36, 0x8d, 0x37,
   910  	0xf5, 0x7b, 0x17, 0xa9, 0xac, 0x53, 0x98, 0x06, 0x68, 0xdc, 0x3c, 0x2f, 0x8b, 0x27, 0x73, 0x01,
   911  	0x4b, 0x40, 0xed, 0x0b, 0x78, 0x2d, 0xac, 0xb6, 0xc5, 0x64, 0xa9, 0xe8, 0x92, 0x3d, 0xbd, 0xf1,
   912  	0x90, 0xc1, 0x7e, 0x0e, 0xe7, 0xbb, 0xc8, 0xeb, 0x88, 0xdf, 0x80, 0xf1, 0x3d, 0xfd, 0xa9, 0x45,
   913  	0x7e, 0x6c, 0x2f, 0xec, 0x12, 0x50, 0x9f, 0x80, 0x57, 0x94, 0x7a, 0xfd, 0x61, 0xae, 0x39, 0x4c,
   914  	0xee, 0x6f, 0x70, 0x5e, 0xf6, 0x3b, 0xf4, 0x77, 0x08, 0x8c, 0xa8, 0xaf, 0x7a, 0x43, 0x06, 0x23,
   915  	0x55, 0xce, 0xcb, 0xcf, 0xb7, 0xb0, 0xd4, 0x16, 0xf3, 0x4f, 0xc6, 0xe0, 0xb8, 0x8a, 0x04, 0x3f,
   916  	0x44, 0x30, 0xea, 0x35, 0x7d, 0x6c, 0xc5, 0x5e, 0xea, 0xf6, 0x89, 0xc3, 0xb8, 0xd8, 0xbb, 0x83,
   917  	0x87, 0x68, 0xce, 0x7d, 0xfd, 0xdb, 0xdf, 0x3f, 0x25, 0xcf, 0xe3, 0x69, 0x2b, 0x6e, 0xe4, 0xf1,
   918  	0xc6, 0x0e, 0xfc, 0x20, 0x09, 0x13, 0x31, 0x6d, 0x1c, 0x2f, 0x77, 0xdf, 0xbe, 0xfb, 0xc4, 0x62,
   919  	0xac, 0x0c, 0xa9, 0xa2, 0xc9, 0xb6, 0x14, 0xd9, 0x2d, 0xbc, 0x1e, 0x4b, 0xd6, 0xbc, 0xf0, 0xd6,
   920  	0xbd, 0xb6, 0x17, 0xfa, 0xbe, 0xc5, 0x9b, 0xfa, 0x3b, 0xfe, 0x1b, 0x71, 0x88, 0xe0, 0x6c, 0xc4,
   921  	0x20, 0x81, 0xdf, 0xed, 0x23, 0xee, 0xb6, 0x81, 0xc6, 0x78, 0x6f, 0x40, 0x6f, 0x4d, 0xbb, 0xa6,
   922  	0x68, 0x6f, 0xe0, 0xd5, 0x61, 0x68, 0x9b, 0xa3, 0x0a, 0xfe, 0x1d, 0xc1, 0x78, 0x6b, 0xdf, 0xc6,
   923  	0xef, 0xf4, 0x11, 0x63, 0x78, 0xb2, 0x31, 0xae, 0x0d, 0xe2, 0xaa, 0xd9, 0x3e, 0x52, 0x6c, 0x2b,
   924  	0x78, 0x69, 0x18, 0x36, 0x7f, 0x42, 0xf8, 0x0f, 0xc1, 0x99, 0xb6, 0x6e, 0x8a, 0x7b, 0x08, 0xaf,
   925  	0xd3, 0x20, 0x60, 0x5c, 0x1f, 0xc8, 0x57, 0xb3, 0xed, 0x28, 0xb6, 0x4f, 0xf0, 0x56, 0x2c, 0x5b,
   926  	0xe3, 0xf5, 0x14, 0xd6, 0xbd, 0xb6, 0x27, 0xf6, 0xbe, 0xa5, 0x6f, 0x66, 0x14, 0x37, 0x7e, 0x8a,
   927  	0xe0, 0xe5, 0xe8, 0x66, 0x8a, 0xdf, 0xef, 0x27, 0xf0, 0x88, 0x26, 0x6f, 0x7c, 0x30, 0xb8, 0x40,
   928  	0x5f, 0x47, 0xdb, 0x1b, 0xbe, 0x2a, 0xcc, 0x88, 0x8e, 0xd7, 0x4b, 0x61, 0x76, 0x6e, 0xc1, 0xbd,
   929  	0x14, 0x66, 0x4c, 0x9b, 0xed, 0xb1, 0x30, 0xbb, 0x10, 0x36, 0xef, 0x36, 0xfe, 0x1f, 0x41, 0xaa,
   930  	0x53, 0xa7, 0xc4, 0x0b, 0x7d, 0xc4, 0x1a, 0xdd, 0xc4, 0x8d, 0xc5, 0x61, 0x24, 0x34, 0xf3, 0x6d,
   931  	0xc5, 0xbc, 0x86, 0x6f, 0x0e, 0xc3, 0xdc, 0xda, 0xea, 0xf1, 0x2f, 0x08, 0x4e, 0x87, 0xfa, 0x34,
   932  	0xbe, 0xd2, 0x3d, 0xd6, 0xa8, 0xb6, 0x6f, 0x5c, 0xed, 0xdb, 0x4f, 0x83, 0x5d, 0x56, 0x60, 0x17,
   933  	0xf0, 0x5c, 0x2c, 0x58, 0xc1, 0xf7, 0xdd, 0xa9, 0xb7, 0xf6, 0xc5, 0xf5, 0x47, 0x87, 0x69, 0xf4,
   934  	0xf8, 0x30, 0x8d, 0xfe, 0x3a, 0x4c, 0xa3, 0x1f, 0x8e, 0xd2, 0x89, 0xc7, 0x47, 0xe9, 0xc4, 0x93,
   935  	0xa3, 0x74, 0xe2, 0xd3, 0xb7, 0xba, 0xce, 0x0a, 0x5f, 0x85, 0x77, 0x50, 0xa3, 0x43, 0x7e, 0x54,
   936  	0xfd, 0xe9, 0x70, 0xf9, 0x59, 0x00, 0x00, 0x00, 0xff, 0xff, 0x62, 0xc7, 0xfa, 0x19, 0x6c, 0x11,
   937  	0x00, 0x00,
   938  }
   939  
   940  // Reference imports to suppress errors if they are not otherwise used.
   941  var _ context.Context
   942  var _ grpc.ClientConn
   943  
   944  // This is a compile-time assertion to ensure that this generated file
   945  // is compatible with the grpc package it is being compiled against.
   946  const _ = grpc.SupportPackageIsVersion4
   947  
   948  // QueryClient is the client API for Query service.
   949  //
   950  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   951  type QueryClient interface {
   952  	// Params queries params of the distribution module.
   953  	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
   954  	// ValidatorOutstandingRewards queries rewards of a validator address.
   955  	ValidatorOutstandingRewards(ctx context.Context, in *QueryValidatorOutstandingRewardsRequest, opts ...grpc.CallOption) (*QueryValidatorOutstandingRewardsResponse, error)
   956  	// ValidatorCommission queries accumulated commission for a validator.
   957  	ValidatorCommission(ctx context.Context, in *QueryValidatorCommissionRequest, opts ...grpc.CallOption) (*QueryValidatorCommissionResponse, error)
   958  	// ValidatorSlashes queries slash events of a validator.
   959  	ValidatorSlashes(ctx context.Context, in *QueryValidatorSlashesRequest, opts ...grpc.CallOption) (*QueryValidatorSlashesResponse, error)
   960  	// DelegationRewards queries the total rewards accrued by a delegation.
   961  	DelegationRewards(ctx context.Context, in *QueryDelegationRewardsRequest, opts ...grpc.CallOption) (*QueryDelegationRewardsResponse, error)
   962  	// DelegationTotalRewards queries the total rewards accrued by a each
   963  	// validator.
   964  	DelegationTotalRewards(ctx context.Context, in *QueryDelegationTotalRewardsRequest, opts ...grpc.CallOption) (*QueryDelegationTotalRewardsResponse, error)
   965  	// DelegatorValidators queries the validators of a delegator.
   966  	DelegatorValidators(ctx context.Context, in *QueryDelegatorValidatorsRequest, opts ...grpc.CallOption) (*QueryDelegatorValidatorsResponse, error)
   967  	// DelegatorWithdrawAddress queries withdraw address of a delegator.
   968  	DelegatorWithdrawAddress(ctx context.Context, in *QueryDelegatorWithdrawAddressRequest, opts ...grpc.CallOption) (*QueryDelegatorWithdrawAddressResponse, error)
   969  	// CommunityPool queries the community pool coins.
   970  	CommunityPool(ctx context.Context, in *QueryCommunityPoolRequest, opts ...grpc.CallOption) (*QueryCommunityPoolResponse, error)
   971  }
   972  
   973  type queryClient struct {
   974  	cc grpc1.ClientConn
   975  }
   976  
   977  func NewQueryClient(cc grpc1.ClientConn) QueryClient {
   978  	return &queryClient{cc}
   979  }
   980  
   981  func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) {
   982  	out := new(QueryParamsResponse)
   983  	err := c.cc.Invoke(ctx, "/cosmos.distribution.v1beta1.Query/Params", in, out, opts...)
   984  	if err != nil {
   985  		return nil, err
   986  	}
   987  	return out, nil
   988  }
   989  
   990  func (c *queryClient) ValidatorOutstandingRewards(ctx context.Context, in *QueryValidatorOutstandingRewardsRequest, opts ...grpc.CallOption) (*QueryValidatorOutstandingRewardsResponse, error) {
   991  	out := new(QueryValidatorOutstandingRewardsResponse)
   992  	err := c.cc.Invoke(ctx, "/cosmos.distribution.v1beta1.Query/ValidatorOutstandingRewards", in, out, opts...)
   993  	if err != nil {
   994  		return nil, err
   995  	}
   996  	return out, nil
   997  }
   998  
   999  func (c *queryClient) ValidatorCommission(ctx context.Context, in *QueryValidatorCommissionRequest, opts ...grpc.CallOption) (*QueryValidatorCommissionResponse, error) {
  1000  	out := new(QueryValidatorCommissionResponse)
  1001  	err := c.cc.Invoke(ctx, "/cosmos.distribution.v1beta1.Query/ValidatorCommission", in, out, opts...)
  1002  	if err != nil {
  1003  		return nil, err
  1004  	}
  1005  	return out, nil
  1006  }
  1007  
  1008  func (c *queryClient) ValidatorSlashes(ctx context.Context, in *QueryValidatorSlashesRequest, opts ...grpc.CallOption) (*QueryValidatorSlashesResponse, error) {
  1009  	out := new(QueryValidatorSlashesResponse)
  1010  	err := c.cc.Invoke(ctx, "/cosmos.distribution.v1beta1.Query/ValidatorSlashes", in, out, opts...)
  1011  	if err != nil {
  1012  		return nil, err
  1013  	}
  1014  	return out, nil
  1015  }
  1016  
  1017  func (c *queryClient) DelegationRewards(ctx context.Context, in *QueryDelegationRewardsRequest, opts ...grpc.CallOption) (*QueryDelegationRewardsResponse, error) {
  1018  	out := new(QueryDelegationRewardsResponse)
  1019  	err := c.cc.Invoke(ctx, "/cosmos.distribution.v1beta1.Query/DelegationRewards", in, out, opts...)
  1020  	if err != nil {
  1021  		return nil, err
  1022  	}
  1023  	return out, nil
  1024  }
  1025  
  1026  func (c *queryClient) DelegationTotalRewards(ctx context.Context, in *QueryDelegationTotalRewardsRequest, opts ...grpc.CallOption) (*QueryDelegationTotalRewardsResponse, error) {
  1027  	out := new(QueryDelegationTotalRewardsResponse)
  1028  	err := c.cc.Invoke(ctx, "/cosmos.distribution.v1beta1.Query/DelegationTotalRewards", in, out, opts...)
  1029  	if err != nil {
  1030  		return nil, err
  1031  	}
  1032  	return out, nil
  1033  }
  1034  
  1035  func (c *queryClient) DelegatorValidators(ctx context.Context, in *QueryDelegatorValidatorsRequest, opts ...grpc.CallOption) (*QueryDelegatorValidatorsResponse, error) {
  1036  	out := new(QueryDelegatorValidatorsResponse)
  1037  	err := c.cc.Invoke(ctx, "/cosmos.distribution.v1beta1.Query/DelegatorValidators", in, out, opts...)
  1038  	if err != nil {
  1039  		return nil, err
  1040  	}
  1041  	return out, nil
  1042  }
  1043  
  1044  func (c *queryClient) DelegatorWithdrawAddress(ctx context.Context, in *QueryDelegatorWithdrawAddressRequest, opts ...grpc.CallOption) (*QueryDelegatorWithdrawAddressResponse, error) {
  1045  	out := new(QueryDelegatorWithdrawAddressResponse)
  1046  	err := c.cc.Invoke(ctx, "/cosmos.distribution.v1beta1.Query/DelegatorWithdrawAddress", in, out, opts...)
  1047  	if err != nil {
  1048  		return nil, err
  1049  	}
  1050  	return out, nil
  1051  }
  1052  
  1053  func (c *queryClient) CommunityPool(ctx context.Context, in *QueryCommunityPoolRequest, opts ...grpc.CallOption) (*QueryCommunityPoolResponse, error) {
  1054  	out := new(QueryCommunityPoolResponse)
  1055  	err := c.cc.Invoke(ctx, "/cosmos.distribution.v1beta1.Query/CommunityPool", in, out, opts...)
  1056  	if err != nil {
  1057  		return nil, err
  1058  	}
  1059  	return out, nil
  1060  }
  1061  
  1062  // QueryServer is the server API for Query service.
  1063  type QueryServer interface {
  1064  	// Params queries params of the distribution module.
  1065  	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
  1066  	// ValidatorOutstandingRewards queries rewards of a validator address.
  1067  	ValidatorOutstandingRewards(context.Context, *QueryValidatorOutstandingRewardsRequest) (*QueryValidatorOutstandingRewardsResponse, error)
  1068  	// ValidatorCommission queries accumulated commission for a validator.
  1069  	ValidatorCommission(context.Context, *QueryValidatorCommissionRequest) (*QueryValidatorCommissionResponse, error)
  1070  	// ValidatorSlashes queries slash events of a validator.
  1071  	ValidatorSlashes(context.Context, *QueryValidatorSlashesRequest) (*QueryValidatorSlashesResponse, error)
  1072  	// DelegationRewards queries the total rewards accrued by a delegation.
  1073  	DelegationRewards(context.Context, *QueryDelegationRewardsRequest) (*QueryDelegationRewardsResponse, error)
  1074  	// DelegationTotalRewards queries the total rewards accrued by a each
  1075  	// validator.
  1076  	DelegationTotalRewards(context.Context, *QueryDelegationTotalRewardsRequest) (*QueryDelegationTotalRewardsResponse, error)
  1077  	// DelegatorValidators queries the validators of a delegator.
  1078  	DelegatorValidators(context.Context, *QueryDelegatorValidatorsRequest) (*QueryDelegatorValidatorsResponse, error)
  1079  	// DelegatorWithdrawAddress queries withdraw address of a delegator.
  1080  	DelegatorWithdrawAddress(context.Context, *QueryDelegatorWithdrawAddressRequest) (*QueryDelegatorWithdrawAddressResponse, error)
  1081  	// CommunityPool queries the community pool coins.
  1082  	CommunityPool(context.Context, *QueryCommunityPoolRequest) (*QueryCommunityPoolResponse, error)
  1083  }
  1084  
  1085  // UnimplementedQueryServer can be embedded to have forward compatible implementations.
  1086  type UnimplementedQueryServer struct {
  1087  }
  1088  
  1089  func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) {
  1090  	return nil, status.Errorf(codes.Unimplemented, "method Params not implemented")
  1091  }
  1092  func (*UnimplementedQueryServer) ValidatorOutstandingRewards(ctx context.Context, req *QueryValidatorOutstandingRewardsRequest) (*QueryValidatorOutstandingRewardsResponse, error) {
  1093  	return nil, status.Errorf(codes.Unimplemented, "method ValidatorOutstandingRewards not implemented")
  1094  }
  1095  func (*UnimplementedQueryServer) ValidatorCommission(ctx context.Context, req *QueryValidatorCommissionRequest) (*QueryValidatorCommissionResponse, error) {
  1096  	return nil, status.Errorf(codes.Unimplemented, "method ValidatorCommission not implemented")
  1097  }
  1098  func (*UnimplementedQueryServer) ValidatorSlashes(ctx context.Context, req *QueryValidatorSlashesRequest) (*QueryValidatorSlashesResponse, error) {
  1099  	return nil, status.Errorf(codes.Unimplemented, "method ValidatorSlashes not implemented")
  1100  }
  1101  func (*UnimplementedQueryServer) DelegationRewards(ctx context.Context, req *QueryDelegationRewardsRequest) (*QueryDelegationRewardsResponse, error) {
  1102  	return nil, status.Errorf(codes.Unimplemented, "method DelegationRewards not implemented")
  1103  }
  1104  func (*UnimplementedQueryServer) DelegationTotalRewards(ctx context.Context, req *QueryDelegationTotalRewardsRequest) (*QueryDelegationTotalRewardsResponse, error) {
  1105  	return nil, status.Errorf(codes.Unimplemented, "method DelegationTotalRewards not implemented")
  1106  }
  1107  func (*UnimplementedQueryServer) DelegatorValidators(ctx context.Context, req *QueryDelegatorValidatorsRequest) (*QueryDelegatorValidatorsResponse, error) {
  1108  	return nil, status.Errorf(codes.Unimplemented, "method DelegatorValidators not implemented")
  1109  }
  1110  func (*UnimplementedQueryServer) DelegatorWithdrawAddress(ctx context.Context, req *QueryDelegatorWithdrawAddressRequest) (*QueryDelegatorWithdrawAddressResponse, error) {
  1111  	return nil, status.Errorf(codes.Unimplemented, "method DelegatorWithdrawAddress not implemented")
  1112  }
  1113  func (*UnimplementedQueryServer) CommunityPool(ctx context.Context, req *QueryCommunityPoolRequest) (*QueryCommunityPoolResponse, error) {
  1114  	return nil, status.Errorf(codes.Unimplemented, "method CommunityPool not implemented")
  1115  }
  1116  
  1117  func RegisterQueryServer(s grpc1.Server, srv QueryServer) {
  1118  	s.RegisterService(&_Query_serviceDesc, srv)
  1119  }
  1120  
  1121  func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1122  	in := new(QueryParamsRequest)
  1123  	if err := dec(in); err != nil {
  1124  		return nil, err
  1125  	}
  1126  	if interceptor == nil {
  1127  		return srv.(QueryServer).Params(ctx, in)
  1128  	}
  1129  	info := &grpc.UnaryServerInfo{
  1130  		Server:     srv,
  1131  		FullMethod: "/cosmos.distribution.v1beta1.Query/Params",
  1132  	}
  1133  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1134  		return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest))
  1135  	}
  1136  	return interceptor(ctx, in, info, handler)
  1137  }
  1138  
  1139  func _Query_ValidatorOutstandingRewards_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1140  	in := new(QueryValidatorOutstandingRewardsRequest)
  1141  	if err := dec(in); err != nil {
  1142  		return nil, err
  1143  	}
  1144  	if interceptor == nil {
  1145  		return srv.(QueryServer).ValidatorOutstandingRewards(ctx, in)
  1146  	}
  1147  	info := &grpc.UnaryServerInfo{
  1148  		Server:     srv,
  1149  		FullMethod: "/cosmos.distribution.v1beta1.Query/ValidatorOutstandingRewards",
  1150  	}
  1151  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1152  		return srv.(QueryServer).ValidatorOutstandingRewards(ctx, req.(*QueryValidatorOutstandingRewardsRequest))
  1153  	}
  1154  	return interceptor(ctx, in, info, handler)
  1155  }
  1156  
  1157  func _Query_ValidatorCommission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1158  	in := new(QueryValidatorCommissionRequest)
  1159  	if err := dec(in); err != nil {
  1160  		return nil, err
  1161  	}
  1162  	if interceptor == nil {
  1163  		return srv.(QueryServer).ValidatorCommission(ctx, in)
  1164  	}
  1165  	info := &grpc.UnaryServerInfo{
  1166  		Server:     srv,
  1167  		FullMethod: "/cosmos.distribution.v1beta1.Query/ValidatorCommission",
  1168  	}
  1169  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1170  		return srv.(QueryServer).ValidatorCommission(ctx, req.(*QueryValidatorCommissionRequest))
  1171  	}
  1172  	return interceptor(ctx, in, info, handler)
  1173  }
  1174  
  1175  func _Query_ValidatorSlashes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1176  	in := new(QueryValidatorSlashesRequest)
  1177  	if err := dec(in); err != nil {
  1178  		return nil, err
  1179  	}
  1180  	if interceptor == nil {
  1181  		return srv.(QueryServer).ValidatorSlashes(ctx, in)
  1182  	}
  1183  	info := &grpc.UnaryServerInfo{
  1184  		Server:     srv,
  1185  		FullMethod: "/cosmos.distribution.v1beta1.Query/ValidatorSlashes",
  1186  	}
  1187  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1188  		return srv.(QueryServer).ValidatorSlashes(ctx, req.(*QueryValidatorSlashesRequest))
  1189  	}
  1190  	return interceptor(ctx, in, info, handler)
  1191  }
  1192  
  1193  func _Query_DelegationRewards_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1194  	in := new(QueryDelegationRewardsRequest)
  1195  	if err := dec(in); err != nil {
  1196  		return nil, err
  1197  	}
  1198  	if interceptor == nil {
  1199  		return srv.(QueryServer).DelegationRewards(ctx, in)
  1200  	}
  1201  	info := &grpc.UnaryServerInfo{
  1202  		Server:     srv,
  1203  		FullMethod: "/cosmos.distribution.v1beta1.Query/DelegationRewards",
  1204  	}
  1205  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1206  		return srv.(QueryServer).DelegationRewards(ctx, req.(*QueryDelegationRewardsRequest))
  1207  	}
  1208  	return interceptor(ctx, in, info, handler)
  1209  }
  1210  
  1211  func _Query_DelegationTotalRewards_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1212  	in := new(QueryDelegationTotalRewardsRequest)
  1213  	if err := dec(in); err != nil {
  1214  		return nil, err
  1215  	}
  1216  	if interceptor == nil {
  1217  		return srv.(QueryServer).DelegationTotalRewards(ctx, in)
  1218  	}
  1219  	info := &grpc.UnaryServerInfo{
  1220  		Server:     srv,
  1221  		FullMethod: "/cosmos.distribution.v1beta1.Query/DelegationTotalRewards",
  1222  	}
  1223  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1224  		return srv.(QueryServer).DelegationTotalRewards(ctx, req.(*QueryDelegationTotalRewardsRequest))
  1225  	}
  1226  	return interceptor(ctx, in, info, handler)
  1227  }
  1228  
  1229  func _Query_DelegatorValidators_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1230  	in := new(QueryDelegatorValidatorsRequest)
  1231  	if err := dec(in); err != nil {
  1232  		return nil, err
  1233  	}
  1234  	if interceptor == nil {
  1235  		return srv.(QueryServer).DelegatorValidators(ctx, in)
  1236  	}
  1237  	info := &grpc.UnaryServerInfo{
  1238  		Server:     srv,
  1239  		FullMethod: "/cosmos.distribution.v1beta1.Query/DelegatorValidators",
  1240  	}
  1241  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1242  		return srv.(QueryServer).DelegatorValidators(ctx, req.(*QueryDelegatorValidatorsRequest))
  1243  	}
  1244  	return interceptor(ctx, in, info, handler)
  1245  }
  1246  
  1247  func _Query_DelegatorWithdrawAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1248  	in := new(QueryDelegatorWithdrawAddressRequest)
  1249  	if err := dec(in); err != nil {
  1250  		return nil, err
  1251  	}
  1252  	if interceptor == nil {
  1253  		return srv.(QueryServer).DelegatorWithdrawAddress(ctx, in)
  1254  	}
  1255  	info := &grpc.UnaryServerInfo{
  1256  		Server:     srv,
  1257  		FullMethod: "/cosmos.distribution.v1beta1.Query/DelegatorWithdrawAddress",
  1258  	}
  1259  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1260  		return srv.(QueryServer).DelegatorWithdrawAddress(ctx, req.(*QueryDelegatorWithdrawAddressRequest))
  1261  	}
  1262  	return interceptor(ctx, in, info, handler)
  1263  }
  1264  
  1265  func _Query_CommunityPool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1266  	in := new(QueryCommunityPoolRequest)
  1267  	if err := dec(in); err != nil {
  1268  		return nil, err
  1269  	}
  1270  	if interceptor == nil {
  1271  		return srv.(QueryServer).CommunityPool(ctx, in)
  1272  	}
  1273  	info := &grpc.UnaryServerInfo{
  1274  		Server:     srv,
  1275  		FullMethod: "/cosmos.distribution.v1beta1.Query/CommunityPool",
  1276  	}
  1277  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1278  		return srv.(QueryServer).CommunityPool(ctx, req.(*QueryCommunityPoolRequest))
  1279  	}
  1280  	return interceptor(ctx, in, info, handler)
  1281  }
  1282  
  1283  var _Query_serviceDesc = grpc.ServiceDesc{
  1284  	ServiceName: "cosmos.distribution.v1beta1.Query",
  1285  	HandlerType: (*QueryServer)(nil),
  1286  	Methods: []grpc.MethodDesc{
  1287  		{
  1288  			MethodName: "Params",
  1289  			Handler:    _Query_Params_Handler,
  1290  		},
  1291  		{
  1292  			MethodName: "ValidatorOutstandingRewards",
  1293  			Handler:    _Query_ValidatorOutstandingRewards_Handler,
  1294  		},
  1295  		{
  1296  			MethodName: "ValidatorCommission",
  1297  			Handler:    _Query_ValidatorCommission_Handler,
  1298  		},
  1299  		{
  1300  			MethodName: "ValidatorSlashes",
  1301  			Handler:    _Query_ValidatorSlashes_Handler,
  1302  		},
  1303  		{
  1304  			MethodName: "DelegationRewards",
  1305  			Handler:    _Query_DelegationRewards_Handler,
  1306  		},
  1307  		{
  1308  			MethodName: "DelegationTotalRewards",
  1309  			Handler:    _Query_DelegationTotalRewards_Handler,
  1310  		},
  1311  		{
  1312  			MethodName: "DelegatorValidators",
  1313  			Handler:    _Query_DelegatorValidators_Handler,
  1314  		},
  1315  		{
  1316  			MethodName: "DelegatorWithdrawAddress",
  1317  			Handler:    _Query_DelegatorWithdrawAddress_Handler,
  1318  		},
  1319  		{
  1320  			MethodName: "CommunityPool",
  1321  			Handler:    _Query_CommunityPool_Handler,
  1322  		},
  1323  	},
  1324  	Streams:  []grpc.StreamDesc{},
  1325  	Metadata: "cosmos/distribution/v1beta1/query.proto",
  1326  }
  1327  
  1328  func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) {
  1329  	size := m.Size()
  1330  	dAtA = make([]byte, size)
  1331  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1332  	if err != nil {
  1333  		return nil, err
  1334  	}
  1335  	return dAtA[:n], nil
  1336  }
  1337  
  1338  func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) {
  1339  	size := m.Size()
  1340  	return m.MarshalToSizedBuffer(dAtA[:size])
  1341  }
  1342  
  1343  func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1344  	i := len(dAtA)
  1345  	_ = i
  1346  	var l int
  1347  	_ = l
  1348  	return len(dAtA) - i, nil
  1349  }
  1350  
  1351  func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) {
  1352  	size := m.Size()
  1353  	dAtA = make([]byte, size)
  1354  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1355  	if err != nil {
  1356  		return nil, err
  1357  	}
  1358  	return dAtA[:n], nil
  1359  }
  1360  
  1361  func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) {
  1362  	size := m.Size()
  1363  	return m.MarshalToSizedBuffer(dAtA[:size])
  1364  }
  1365  
  1366  func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1367  	i := len(dAtA)
  1368  	_ = i
  1369  	var l int
  1370  	_ = l
  1371  	{
  1372  		size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
  1373  		if err != nil {
  1374  			return 0, err
  1375  		}
  1376  		i -= size
  1377  		i = encodeVarintQuery(dAtA, i, uint64(size))
  1378  	}
  1379  	i--
  1380  	dAtA[i] = 0xa
  1381  	return len(dAtA) - i, nil
  1382  }
  1383  
  1384  func (m *QueryValidatorOutstandingRewardsRequest) Marshal() (dAtA []byte, err error) {
  1385  	size := m.Size()
  1386  	dAtA = make([]byte, size)
  1387  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1388  	if err != nil {
  1389  		return nil, err
  1390  	}
  1391  	return dAtA[:n], nil
  1392  }
  1393  
  1394  func (m *QueryValidatorOutstandingRewardsRequest) MarshalTo(dAtA []byte) (int, error) {
  1395  	size := m.Size()
  1396  	return m.MarshalToSizedBuffer(dAtA[:size])
  1397  }
  1398  
  1399  func (m *QueryValidatorOutstandingRewardsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1400  	i := len(dAtA)
  1401  	_ = i
  1402  	var l int
  1403  	_ = l
  1404  	if len(m.ValidatorAddress) > 0 {
  1405  		i -= len(m.ValidatorAddress)
  1406  		copy(dAtA[i:], m.ValidatorAddress)
  1407  		i = encodeVarintQuery(dAtA, i, uint64(len(m.ValidatorAddress)))
  1408  		i--
  1409  		dAtA[i] = 0xa
  1410  	}
  1411  	return len(dAtA) - i, nil
  1412  }
  1413  
  1414  func (m *QueryValidatorOutstandingRewardsResponse) Marshal() (dAtA []byte, err error) {
  1415  	size := m.Size()
  1416  	dAtA = make([]byte, size)
  1417  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1418  	if err != nil {
  1419  		return nil, err
  1420  	}
  1421  	return dAtA[:n], nil
  1422  }
  1423  
  1424  func (m *QueryValidatorOutstandingRewardsResponse) MarshalTo(dAtA []byte) (int, error) {
  1425  	size := m.Size()
  1426  	return m.MarshalToSizedBuffer(dAtA[:size])
  1427  }
  1428  
  1429  func (m *QueryValidatorOutstandingRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1430  	i := len(dAtA)
  1431  	_ = i
  1432  	var l int
  1433  	_ = l
  1434  	{
  1435  		size, err := m.Rewards.MarshalToSizedBuffer(dAtA[:i])
  1436  		if err != nil {
  1437  			return 0, err
  1438  		}
  1439  		i -= size
  1440  		i = encodeVarintQuery(dAtA, i, uint64(size))
  1441  	}
  1442  	i--
  1443  	dAtA[i] = 0xa
  1444  	return len(dAtA) - i, nil
  1445  }
  1446  
  1447  func (m *QueryValidatorCommissionRequest) Marshal() (dAtA []byte, err error) {
  1448  	size := m.Size()
  1449  	dAtA = make([]byte, size)
  1450  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1451  	if err != nil {
  1452  		return nil, err
  1453  	}
  1454  	return dAtA[:n], nil
  1455  }
  1456  
  1457  func (m *QueryValidatorCommissionRequest) MarshalTo(dAtA []byte) (int, error) {
  1458  	size := m.Size()
  1459  	return m.MarshalToSizedBuffer(dAtA[:size])
  1460  }
  1461  
  1462  func (m *QueryValidatorCommissionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1463  	i := len(dAtA)
  1464  	_ = i
  1465  	var l int
  1466  	_ = l
  1467  	if len(m.ValidatorAddress) > 0 {
  1468  		i -= len(m.ValidatorAddress)
  1469  		copy(dAtA[i:], m.ValidatorAddress)
  1470  		i = encodeVarintQuery(dAtA, i, uint64(len(m.ValidatorAddress)))
  1471  		i--
  1472  		dAtA[i] = 0xa
  1473  	}
  1474  	return len(dAtA) - i, nil
  1475  }
  1476  
  1477  func (m *QueryValidatorCommissionResponse) Marshal() (dAtA []byte, err error) {
  1478  	size := m.Size()
  1479  	dAtA = make([]byte, size)
  1480  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1481  	if err != nil {
  1482  		return nil, err
  1483  	}
  1484  	return dAtA[:n], nil
  1485  }
  1486  
  1487  func (m *QueryValidatorCommissionResponse) MarshalTo(dAtA []byte) (int, error) {
  1488  	size := m.Size()
  1489  	return m.MarshalToSizedBuffer(dAtA[:size])
  1490  }
  1491  
  1492  func (m *QueryValidatorCommissionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1493  	i := len(dAtA)
  1494  	_ = i
  1495  	var l int
  1496  	_ = l
  1497  	{
  1498  		size, err := m.Commission.MarshalToSizedBuffer(dAtA[:i])
  1499  		if err != nil {
  1500  			return 0, err
  1501  		}
  1502  		i -= size
  1503  		i = encodeVarintQuery(dAtA, i, uint64(size))
  1504  	}
  1505  	i--
  1506  	dAtA[i] = 0xa
  1507  	return len(dAtA) - i, nil
  1508  }
  1509  
  1510  func (m *QueryValidatorSlashesRequest) Marshal() (dAtA []byte, err error) {
  1511  	size := m.Size()
  1512  	dAtA = make([]byte, size)
  1513  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1514  	if err != nil {
  1515  		return nil, err
  1516  	}
  1517  	return dAtA[:n], nil
  1518  }
  1519  
  1520  func (m *QueryValidatorSlashesRequest) MarshalTo(dAtA []byte) (int, error) {
  1521  	size := m.Size()
  1522  	return m.MarshalToSizedBuffer(dAtA[:size])
  1523  }
  1524  
  1525  func (m *QueryValidatorSlashesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1526  	i := len(dAtA)
  1527  	_ = i
  1528  	var l int
  1529  	_ = l
  1530  	if m.Pagination != nil {
  1531  		{
  1532  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  1533  			if err != nil {
  1534  				return 0, err
  1535  			}
  1536  			i -= size
  1537  			i = encodeVarintQuery(dAtA, i, uint64(size))
  1538  		}
  1539  		i--
  1540  		dAtA[i] = 0x22
  1541  	}
  1542  	if m.EndingHeight != 0 {
  1543  		i = encodeVarintQuery(dAtA, i, uint64(m.EndingHeight))
  1544  		i--
  1545  		dAtA[i] = 0x18
  1546  	}
  1547  	if m.StartingHeight != 0 {
  1548  		i = encodeVarintQuery(dAtA, i, uint64(m.StartingHeight))
  1549  		i--
  1550  		dAtA[i] = 0x10
  1551  	}
  1552  	if len(m.ValidatorAddress) > 0 {
  1553  		i -= len(m.ValidatorAddress)
  1554  		copy(dAtA[i:], m.ValidatorAddress)
  1555  		i = encodeVarintQuery(dAtA, i, uint64(len(m.ValidatorAddress)))
  1556  		i--
  1557  		dAtA[i] = 0xa
  1558  	}
  1559  	return len(dAtA) - i, nil
  1560  }
  1561  
  1562  func (m *QueryValidatorSlashesResponse) Marshal() (dAtA []byte, err error) {
  1563  	size := m.Size()
  1564  	dAtA = make([]byte, size)
  1565  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1566  	if err != nil {
  1567  		return nil, err
  1568  	}
  1569  	return dAtA[:n], nil
  1570  }
  1571  
  1572  func (m *QueryValidatorSlashesResponse) MarshalTo(dAtA []byte) (int, error) {
  1573  	size := m.Size()
  1574  	return m.MarshalToSizedBuffer(dAtA[:size])
  1575  }
  1576  
  1577  func (m *QueryValidatorSlashesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1578  	i := len(dAtA)
  1579  	_ = i
  1580  	var l int
  1581  	_ = l
  1582  	if m.Pagination != nil {
  1583  		{
  1584  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  1585  			if err != nil {
  1586  				return 0, err
  1587  			}
  1588  			i -= size
  1589  			i = encodeVarintQuery(dAtA, i, uint64(size))
  1590  		}
  1591  		i--
  1592  		dAtA[i] = 0x12
  1593  	}
  1594  	if len(m.Slashes) > 0 {
  1595  		for iNdEx := len(m.Slashes) - 1; iNdEx >= 0; iNdEx-- {
  1596  			{
  1597  				size, err := m.Slashes[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1598  				if err != nil {
  1599  					return 0, err
  1600  				}
  1601  				i -= size
  1602  				i = encodeVarintQuery(dAtA, i, uint64(size))
  1603  			}
  1604  			i--
  1605  			dAtA[i] = 0xa
  1606  		}
  1607  	}
  1608  	return len(dAtA) - i, nil
  1609  }
  1610  
  1611  func (m *QueryDelegationRewardsRequest) Marshal() (dAtA []byte, err error) {
  1612  	size := m.Size()
  1613  	dAtA = make([]byte, size)
  1614  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1615  	if err != nil {
  1616  		return nil, err
  1617  	}
  1618  	return dAtA[:n], nil
  1619  }
  1620  
  1621  func (m *QueryDelegationRewardsRequest) MarshalTo(dAtA []byte) (int, error) {
  1622  	size := m.Size()
  1623  	return m.MarshalToSizedBuffer(dAtA[:size])
  1624  }
  1625  
  1626  func (m *QueryDelegationRewardsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1627  	i := len(dAtA)
  1628  	_ = i
  1629  	var l int
  1630  	_ = l
  1631  	if len(m.ValidatorAddress) > 0 {
  1632  		i -= len(m.ValidatorAddress)
  1633  		copy(dAtA[i:], m.ValidatorAddress)
  1634  		i = encodeVarintQuery(dAtA, i, uint64(len(m.ValidatorAddress)))
  1635  		i--
  1636  		dAtA[i] = 0x12
  1637  	}
  1638  	if len(m.DelegatorAddress) > 0 {
  1639  		i -= len(m.DelegatorAddress)
  1640  		copy(dAtA[i:], m.DelegatorAddress)
  1641  		i = encodeVarintQuery(dAtA, i, uint64(len(m.DelegatorAddress)))
  1642  		i--
  1643  		dAtA[i] = 0xa
  1644  	}
  1645  	return len(dAtA) - i, nil
  1646  }
  1647  
  1648  func (m *QueryDelegationRewardsResponse) Marshal() (dAtA []byte, err error) {
  1649  	size := m.Size()
  1650  	dAtA = make([]byte, size)
  1651  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1652  	if err != nil {
  1653  		return nil, err
  1654  	}
  1655  	return dAtA[:n], nil
  1656  }
  1657  
  1658  func (m *QueryDelegationRewardsResponse) MarshalTo(dAtA []byte) (int, error) {
  1659  	size := m.Size()
  1660  	return m.MarshalToSizedBuffer(dAtA[:size])
  1661  }
  1662  
  1663  func (m *QueryDelegationRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1664  	i := len(dAtA)
  1665  	_ = i
  1666  	var l int
  1667  	_ = l
  1668  	if len(m.Rewards) > 0 {
  1669  		for iNdEx := len(m.Rewards) - 1; iNdEx >= 0; iNdEx-- {
  1670  			{
  1671  				size, err := m.Rewards[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1672  				if err != nil {
  1673  					return 0, err
  1674  				}
  1675  				i -= size
  1676  				i = encodeVarintQuery(dAtA, i, uint64(size))
  1677  			}
  1678  			i--
  1679  			dAtA[i] = 0xa
  1680  		}
  1681  	}
  1682  	return len(dAtA) - i, nil
  1683  }
  1684  
  1685  func (m *QueryDelegationTotalRewardsRequest) Marshal() (dAtA []byte, err error) {
  1686  	size := m.Size()
  1687  	dAtA = make([]byte, size)
  1688  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1689  	if err != nil {
  1690  		return nil, err
  1691  	}
  1692  	return dAtA[:n], nil
  1693  }
  1694  
  1695  func (m *QueryDelegationTotalRewardsRequest) MarshalTo(dAtA []byte) (int, error) {
  1696  	size := m.Size()
  1697  	return m.MarshalToSizedBuffer(dAtA[:size])
  1698  }
  1699  
  1700  func (m *QueryDelegationTotalRewardsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1701  	i := len(dAtA)
  1702  	_ = i
  1703  	var l int
  1704  	_ = l
  1705  	if len(m.DelegatorAddress) > 0 {
  1706  		i -= len(m.DelegatorAddress)
  1707  		copy(dAtA[i:], m.DelegatorAddress)
  1708  		i = encodeVarintQuery(dAtA, i, uint64(len(m.DelegatorAddress)))
  1709  		i--
  1710  		dAtA[i] = 0xa
  1711  	}
  1712  	return len(dAtA) - i, nil
  1713  }
  1714  
  1715  func (m *QueryDelegationTotalRewardsResponse) Marshal() (dAtA []byte, err error) {
  1716  	size := m.Size()
  1717  	dAtA = make([]byte, size)
  1718  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1719  	if err != nil {
  1720  		return nil, err
  1721  	}
  1722  	return dAtA[:n], nil
  1723  }
  1724  
  1725  func (m *QueryDelegationTotalRewardsResponse) MarshalTo(dAtA []byte) (int, error) {
  1726  	size := m.Size()
  1727  	return m.MarshalToSizedBuffer(dAtA[:size])
  1728  }
  1729  
  1730  func (m *QueryDelegationTotalRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1731  	i := len(dAtA)
  1732  	_ = i
  1733  	var l int
  1734  	_ = l
  1735  	if len(m.Total) > 0 {
  1736  		for iNdEx := len(m.Total) - 1; iNdEx >= 0; iNdEx-- {
  1737  			{
  1738  				size, err := m.Total[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1739  				if err != nil {
  1740  					return 0, err
  1741  				}
  1742  				i -= size
  1743  				i = encodeVarintQuery(dAtA, i, uint64(size))
  1744  			}
  1745  			i--
  1746  			dAtA[i] = 0x12
  1747  		}
  1748  	}
  1749  	if len(m.Rewards) > 0 {
  1750  		for iNdEx := len(m.Rewards) - 1; iNdEx >= 0; iNdEx-- {
  1751  			{
  1752  				size, err := m.Rewards[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1753  				if err != nil {
  1754  					return 0, err
  1755  				}
  1756  				i -= size
  1757  				i = encodeVarintQuery(dAtA, i, uint64(size))
  1758  			}
  1759  			i--
  1760  			dAtA[i] = 0xa
  1761  		}
  1762  	}
  1763  	return len(dAtA) - i, nil
  1764  }
  1765  
  1766  func (m *QueryDelegatorValidatorsRequest) Marshal() (dAtA []byte, err error) {
  1767  	size := m.Size()
  1768  	dAtA = make([]byte, size)
  1769  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1770  	if err != nil {
  1771  		return nil, err
  1772  	}
  1773  	return dAtA[:n], nil
  1774  }
  1775  
  1776  func (m *QueryDelegatorValidatorsRequest) MarshalTo(dAtA []byte) (int, error) {
  1777  	size := m.Size()
  1778  	return m.MarshalToSizedBuffer(dAtA[:size])
  1779  }
  1780  
  1781  func (m *QueryDelegatorValidatorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1782  	i := len(dAtA)
  1783  	_ = i
  1784  	var l int
  1785  	_ = l
  1786  	if len(m.DelegatorAddress) > 0 {
  1787  		i -= len(m.DelegatorAddress)
  1788  		copy(dAtA[i:], m.DelegatorAddress)
  1789  		i = encodeVarintQuery(dAtA, i, uint64(len(m.DelegatorAddress)))
  1790  		i--
  1791  		dAtA[i] = 0xa
  1792  	}
  1793  	return len(dAtA) - i, nil
  1794  }
  1795  
  1796  func (m *QueryDelegatorValidatorsResponse) Marshal() (dAtA []byte, err error) {
  1797  	size := m.Size()
  1798  	dAtA = make([]byte, size)
  1799  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1800  	if err != nil {
  1801  		return nil, err
  1802  	}
  1803  	return dAtA[:n], nil
  1804  }
  1805  
  1806  func (m *QueryDelegatorValidatorsResponse) MarshalTo(dAtA []byte) (int, error) {
  1807  	size := m.Size()
  1808  	return m.MarshalToSizedBuffer(dAtA[:size])
  1809  }
  1810  
  1811  func (m *QueryDelegatorValidatorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1812  	i := len(dAtA)
  1813  	_ = i
  1814  	var l int
  1815  	_ = l
  1816  	if len(m.Validators) > 0 {
  1817  		for iNdEx := len(m.Validators) - 1; iNdEx >= 0; iNdEx-- {
  1818  			i -= len(m.Validators[iNdEx])
  1819  			copy(dAtA[i:], m.Validators[iNdEx])
  1820  			i = encodeVarintQuery(dAtA, i, uint64(len(m.Validators[iNdEx])))
  1821  			i--
  1822  			dAtA[i] = 0xa
  1823  		}
  1824  	}
  1825  	return len(dAtA) - i, nil
  1826  }
  1827  
  1828  func (m *QueryDelegatorWithdrawAddressRequest) Marshal() (dAtA []byte, err error) {
  1829  	size := m.Size()
  1830  	dAtA = make([]byte, size)
  1831  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1832  	if err != nil {
  1833  		return nil, err
  1834  	}
  1835  	return dAtA[:n], nil
  1836  }
  1837  
  1838  func (m *QueryDelegatorWithdrawAddressRequest) MarshalTo(dAtA []byte) (int, error) {
  1839  	size := m.Size()
  1840  	return m.MarshalToSizedBuffer(dAtA[:size])
  1841  }
  1842  
  1843  func (m *QueryDelegatorWithdrawAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1844  	i := len(dAtA)
  1845  	_ = i
  1846  	var l int
  1847  	_ = l
  1848  	if len(m.DelegatorAddress) > 0 {
  1849  		i -= len(m.DelegatorAddress)
  1850  		copy(dAtA[i:], m.DelegatorAddress)
  1851  		i = encodeVarintQuery(dAtA, i, uint64(len(m.DelegatorAddress)))
  1852  		i--
  1853  		dAtA[i] = 0xa
  1854  	}
  1855  	return len(dAtA) - i, nil
  1856  }
  1857  
  1858  func (m *QueryDelegatorWithdrawAddressResponse) Marshal() (dAtA []byte, err error) {
  1859  	size := m.Size()
  1860  	dAtA = make([]byte, size)
  1861  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1862  	if err != nil {
  1863  		return nil, err
  1864  	}
  1865  	return dAtA[:n], nil
  1866  }
  1867  
  1868  func (m *QueryDelegatorWithdrawAddressResponse) MarshalTo(dAtA []byte) (int, error) {
  1869  	size := m.Size()
  1870  	return m.MarshalToSizedBuffer(dAtA[:size])
  1871  }
  1872  
  1873  func (m *QueryDelegatorWithdrawAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1874  	i := len(dAtA)
  1875  	_ = i
  1876  	var l int
  1877  	_ = l
  1878  	if len(m.WithdrawAddress) > 0 {
  1879  		i -= len(m.WithdrawAddress)
  1880  		copy(dAtA[i:], m.WithdrawAddress)
  1881  		i = encodeVarintQuery(dAtA, i, uint64(len(m.WithdrawAddress)))
  1882  		i--
  1883  		dAtA[i] = 0xa
  1884  	}
  1885  	return len(dAtA) - i, nil
  1886  }
  1887  
  1888  func (m *QueryCommunityPoolRequest) Marshal() (dAtA []byte, err error) {
  1889  	size := m.Size()
  1890  	dAtA = make([]byte, size)
  1891  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1892  	if err != nil {
  1893  		return nil, err
  1894  	}
  1895  	return dAtA[:n], nil
  1896  }
  1897  
  1898  func (m *QueryCommunityPoolRequest) MarshalTo(dAtA []byte) (int, error) {
  1899  	size := m.Size()
  1900  	return m.MarshalToSizedBuffer(dAtA[:size])
  1901  }
  1902  
  1903  func (m *QueryCommunityPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1904  	i := len(dAtA)
  1905  	_ = i
  1906  	var l int
  1907  	_ = l
  1908  	return len(dAtA) - i, nil
  1909  }
  1910  
  1911  func (m *QueryCommunityPoolResponse) Marshal() (dAtA []byte, err error) {
  1912  	size := m.Size()
  1913  	dAtA = make([]byte, size)
  1914  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1915  	if err != nil {
  1916  		return nil, err
  1917  	}
  1918  	return dAtA[:n], nil
  1919  }
  1920  
  1921  func (m *QueryCommunityPoolResponse) MarshalTo(dAtA []byte) (int, error) {
  1922  	size := m.Size()
  1923  	return m.MarshalToSizedBuffer(dAtA[:size])
  1924  }
  1925  
  1926  func (m *QueryCommunityPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1927  	i := len(dAtA)
  1928  	_ = i
  1929  	var l int
  1930  	_ = l
  1931  	if len(m.Pool) > 0 {
  1932  		for iNdEx := len(m.Pool) - 1; iNdEx >= 0; iNdEx-- {
  1933  			{
  1934  				size, err := m.Pool[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1935  				if err != nil {
  1936  					return 0, err
  1937  				}
  1938  				i -= size
  1939  				i = encodeVarintQuery(dAtA, i, uint64(size))
  1940  			}
  1941  			i--
  1942  			dAtA[i] = 0xa
  1943  		}
  1944  	}
  1945  	return len(dAtA) - i, nil
  1946  }
  1947  
  1948  func encodeVarintQuery(dAtA []byte, offset int, v uint64) int {
  1949  	offset -= sovQuery(v)
  1950  	base := offset
  1951  	for v >= 1<<7 {
  1952  		dAtA[offset] = uint8(v&0x7f | 0x80)
  1953  		v >>= 7
  1954  		offset++
  1955  	}
  1956  	dAtA[offset] = uint8(v)
  1957  	return base
  1958  }
  1959  func (m *QueryParamsRequest) Size() (n int) {
  1960  	if m == nil {
  1961  		return 0
  1962  	}
  1963  	var l int
  1964  	_ = l
  1965  	return n
  1966  }
  1967  
  1968  func (m *QueryParamsResponse) Size() (n int) {
  1969  	if m == nil {
  1970  		return 0
  1971  	}
  1972  	var l int
  1973  	_ = l
  1974  	l = m.Params.Size()
  1975  	n += 1 + l + sovQuery(uint64(l))
  1976  	return n
  1977  }
  1978  
  1979  func (m *QueryValidatorOutstandingRewardsRequest) Size() (n int) {
  1980  	if m == nil {
  1981  		return 0
  1982  	}
  1983  	var l int
  1984  	_ = l
  1985  	l = len(m.ValidatorAddress)
  1986  	if l > 0 {
  1987  		n += 1 + l + sovQuery(uint64(l))
  1988  	}
  1989  	return n
  1990  }
  1991  
  1992  func (m *QueryValidatorOutstandingRewardsResponse) Size() (n int) {
  1993  	if m == nil {
  1994  		return 0
  1995  	}
  1996  	var l int
  1997  	_ = l
  1998  	l = m.Rewards.Size()
  1999  	n += 1 + l + sovQuery(uint64(l))
  2000  	return n
  2001  }
  2002  
  2003  func (m *QueryValidatorCommissionRequest) Size() (n int) {
  2004  	if m == nil {
  2005  		return 0
  2006  	}
  2007  	var l int
  2008  	_ = l
  2009  	l = len(m.ValidatorAddress)
  2010  	if l > 0 {
  2011  		n += 1 + l + sovQuery(uint64(l))
  2012  	}
  2013  	return n
  2014  }
  2015  
  2016  func (m *QueryValidatorCommissionResponse) Size() (n int) {
  2017  	if m == nil {
  2018  		return 0
  2019  	}
  2020  	var l int
  2021  	_ = l
  2022  	l = m.Commission.Size()
  2023  	n += 1 + l + sovQuery(uint64(l))
  2024  	return n
  2025  }
  2026  
  2027  func (m *QueryValidatorSlashesRequest) Size() (n int) {
  2028  	if m == nil {
  2029  		return 0
  2030  	}
  2031  	var l int
  2032  	_ = l
  2033  	l = len(m.ValidatorAddress)
  2034  	if l > 0 {
  2035  		n += 1 + l + sovQuery(uint64(l))
  2036  	}
  2037  	if m.StartingHeight != 0 {
  2038  		n += 1 + sovQuery(uint64(m.StartingHeight))
  2039  	}
  2040  	if m.EndingHeight != 0 {
  2041  		n += 1 + sovQuery(uint64(m.EndingHeight))
  2042  	}
  2043  	if m.Pagination != nil {
  2044  		l = m.Pagination.Size()
  2045  		n += 1 + l + sovQuery(uint64(l))
  2046  	}
  2047  	return n
  2048  }
  2049  
  2050  func (m *QueryValidatorSlashesResponse) Size() (n int) {
  2051  	if m == nil {
  2052  		return 0
  2053  	}
  2054  	var l int
  2055  	_ = l
  2056  	if len(m.Slashes) > 0 {
  2057  		for _, e := range m.Slashes {
  2058  			l = e.Size()
  2059  			n += 1 + l + sovQuery(uint64(l))
  2060  		}
  2061  	}
  2062  	if m.Pagination != nil {
  2063  		l = m.Pagination.Size()
  2064  		n += 1 + l + sovQuery(uint64(l))
  2065  	}
  2066  	return n
  2067  }
  2068  
  2069  func (m *QueryDelegationRewardsRequest) Size() (n int) {
  2070  	if m == nil {
  2071  		return 0
  2072  	}
  2073  	var l int
  2074  	_ = l
  2075  	l = len(m.DelegatorAddress)
  2076  	if l > 0 {
  2077  		n += 1 + l + sovQuery(uint64(l))
  2078  	}
  2079  	l = len(m.ValidatorAddress)
  2080  	if l > 0 {
  2081  		n += 1 + l + sovQuery(uint64(l))
  2082  	}
  2083  	return n
  2084  }
  2085  
  2086  func (m *QueryDelegationRewardsResponse) Size() (n int) {
  2087  	if m == nil {
  2088  		return 0
  2089  	}
  2090  	var l int
  2091  	_ = l
  2092  	if len(m.Rewards) > 0 {
  2093  		for _, e := range m.Rewards {
  2094  			l = e.Size()
  2095  			n += 1 + l + sovQuery(uint64(l))
  2096  		}
  2097  	}
  2098  	return n
  2099  }
  2100  
  2101  func (m *QueryDelegationTotalRewardsRequest) Size() (n int) {
  2102  	if m == nil {
  2103  		return 0
  2104  	}
  2105  	var l int
  2106  	_ = l
  2107  	l = len(m.DelegatorAddress)
  2108  	if l > 0 {
  2109  		n += 1 + l + sovQuery(uint64(l))
  2110  	}
  2111  	return n
  2112  }
  2113  
  2114  func (m *QueryDelegationTotalRewardsResponse) Size() (n int) {
  2115  	if m == nil {
  2116  		return 0
  2117  	}
  2118  	var l int
  2119  	_ = l
  2120  	if len(m.Rewards) > 0 {
  2121  		for _, e := range m.Rewards {
  2122  			l = e.Size()
  2123  			n += 1 + l + sovQuery(uint64(l))
  2124  		}
  2125  	}
  2126  	if len(m.Total) > 0 {
  2127  		for _, e := range m.Total {
  2128  			l = e.Size()
  2129  			n += 1 + l + sovQuery(uint64(l))
  2130  		}
  2131  	}
  2132  	return n
  2133  }
  2134  
  2135  func (m *QueryDelegatorValidatorsRequest) Size() (n int) {
  2136  	if m == nil {
  2137  		return 0
  2138  	}
  2139  	var l int
  2140  	_ = l
  2141  	l = len(m.DelegatorAddress)
  2142  	if l > 0 {
  2143  		n += 1 + l + sovQuery(uint64(l))
  2144  	}
  2145  	return n
  2146  }
  2147  
  2148  func (m *QueryDelegatorValidatorsResponse) Size() (n int) {
  2149  	if m == nil {
  2150  		return 0
  2151  	}
  2152  	var l int
  2153  	_ = l
  2154  	if len(m.Validators) > 0 {
  2155  		for _, s := range m.Validators {
  2156  			l = len(s)
  2157  			n += 1 + l + sovQuery(uint64(l))
  2158  		}
  2159  	}
  2160  	return n
  2161  }
  2162  
  2163  func (m *QueryDelegatorWithdrawAddressRequest) Size() (n int) {
  2164  	if m == nil {
  2165  		return 0
  2166  	}
  2167  	var l int
  2168  	_ = l
  2169  	l = len(m.DelegatorAddress)
  2170  	if l > 0 {
  2171  		n += 1 + l + sovQuery(uint64(l))
  2172  	}
  2173  	return n
  2174  }
  2175  
  2176  func (m *QueryDelegatorWithdrawAddressResponse) Size() (n int) {
  2177  	if m == nil {
  2178  		return 0
  2179  	}
  2180  	var l int
  2181  	_ = l
  2182  	l = len(m.WithdrawAddress)
  2183  	if l > 0 {
  2184  		n += 1 + l + sovQuery(uint64(l))
  2185  	}
  2186  	return n
  2187  }
  2188  
  2189  func (m *QueryCommunityPoolRequest) Size() (n int) {
  2190  	if m == nil {
  2191  		return 0
  2192  	}
  2193  	var l int
  2194  	_ = l
  2195  	return n
  2196  }
  2197  
  2198  func (m *QueryCommunityPoolResponse) Size() (n int) {
  2199  	if m == nil {
  2200  		return 0
  2201  	}
  2202  	var l int
  2203  	_ = l
  2204  	if len(m.Pool) > 0 {
  2205  		for _, e := range m.Pool {
  2206  			l = e.Size()
  2207  			n += 1 + l + sovQuery(uint64(l))
  2208  		}
  2209  	}
  2210  	return n
  2211  }
  2212  
  2213  func sovQuery(x uint64) (n int) {
  2214  	return (math_bits.Len64(x|1) + 6) / 7
  2215  }
  2216  func sozQuery(x uint64) (n int) {
  2217  	return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  2218  }
  2219  func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error {
  2220  	l := len(dAtA)
  2221  	iNdEx := 0
  2222  	for iNdEx < l {
  2223  		preIndex := iNdEx
  2224  		var wire uint64
  2225  		for shift := uint(0); ; shift += 7 {
  2226  			if shift >= 64 {
  2227  				return ErrIntOverflowQuery
  2228  			}
  2229  			if iNdEx >= l {
  2230  				return io.ErrUnexpectedEOF
  2231  			}
  2232  			b := dAtA[iNdEx]
  2233  			iNdEx++
  2234  			wire |= uint64(b&0x7F) << shift
  2235  			if b < 0x80 {
  2236  				break
  2237  			}
  2238  		}
  2239  		fieldNum := int32(wire >> 3)
  2240  		wireType := int(wire & 0x7)
  2241  		if wireType == 4 {
  2242  			return fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group")
  2243  		}
  2244  		if fieldNum <= 0 {
  2245  			return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2246  		}
  2247  		switch fieldNum {
  2248  		default:
  2249  			iNdEx = preIndex
  2250  			skippy, err := skipQuery(dAtA[iNdEx:])
  2251  			if err != nil {
  2252  				return err
  2253  			}
  2254  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2255  				return ErrInvalidLengthQuery
  2256  			}
  2257  			if (iNdEx + skippy) > l {
  2258  				return io.ErrUnexpectedEOF
  2259  			}
  2260  			iNdEx += skippy
  2261  		}
  2262  	}
  2263  
  2264  	if iNdEx > l {
  2265  		return io.ErrUnexpectedEOF
  2266  	}
  2267  	return nil
  2268  }
  2269  func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error {
  2270  	l := len(dAtA)
  2271  	iNdEx := 0
  2272  	for iNdEx < l {
  2273  		preIndex := iNdEx
  2274  		var wire uint64
  2275  		for shift := uint(0); ; shift += 7 {
  2276  			if shift >= 64 {
  2277  				return ErrIntOverflowQuery
  2278  			}
  2279  			if iNdEx >= l {
  2280  				return io.ErrUnexpectedEOF
  2281  			}
  2282  			b := dAtA[iNdEx]
  2283  			iNdEx++
  2284  			wire |= uint64(b&0x7F) << shift
  2285  			if b < 0x80 {
  2286  				break
  2287  			}
  2288  		}
  2289  		fieldNum := int32(wire >> 3)
  2290  		wireType := int(wire & 0x7)
  2291  		if wireType == 4 {
  2292  			return fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group")
  2293  		}
  2294  		if fieldNum <= 0 {
  2295  			return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2296  		}
  2297  		switch fieldNum {
  2298  		case 1:
  2299  			if wireType != 2 {
  2300  				return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
  2301  			}
  2302  			var msglen int
  2303  			for shift := uint(0); ; shift += 7 {
  2304  				if shift >= 64 {
  2305  					return ErrIntOverflowQuery
  2306  				}
  2307  				if iNdEx >= l {
  2308  					return io.ErrUnexpectedEOF
  2309  				}
  2310  				b := dAtA[iNdEx]
  2311  				iNdEx++
  2312  				msglen |= int(b&0x7F) << shift
  2313  				if b < 0x80 {
  2314  					break
  2315  				}
  2316  			}
  2317  			if msglen < 0 {
  2318  				return ErrInvalidLengthQuery
  2319  			}
  2320  			postIndex := iNdEx + msglen
  2321  			if postIndex < 0 {
  2322  				return ErrInvalidLengthQuery
  2323  			}
  2324  			if postIndex > l {
  2325  				return io.ErrUnexpectedEOF
  2326  			}
  2327  			if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2328  				return err
  2329  			}
  2330  			iNdEx = postIndex
  2331  		default:
  2332  			iNdEx = preIndex
  2333  			skippy, err := skipQuery(dAtA[iNdEx:])
  2334  			if err != nil {
  2335  				return err
  2336  			}
  2337  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2338  				return ErrInvalidLengthQuery
  2339  			}
  2340  			if (iNdEx + skippy) > l {
  2341  				return io.ErrUnexpectedEOF
  2342  			}
  2343  			iNdEx += skippy
  2344  		}
  2345  	}
  2346  
  2347  	if iNdEx > l {
  2348  		return io.ErrUnexpectedEOF
  2349  	}
  2350  	return nil
  2351  }
  2352  func (m *QueryValidatorOutstandingRewardsRequest) Unmarshal(dAtA []byte) error {
  2353  	l := len(dAtA)
  2354  	iNdEx := 0
  2355  	for iNdEx < l {
  2356  		preIndex := iNdEx
  2357  		var wire uint64
  2358  		for shift := uint(0); ; shift += 7 {
  2359  			if shift >= 64 {
  2360  				return ErrIntOverflowQuery
  2361  			}
  2362  			if iNdEx >= l {
  2363  				return io.ErrUnexpectedEOF
  2364  			}
  2365  			b := dAtA[iNdEx]
  2366  			iNdEx++
  2367  			wire |= uint64(b&0x7F) << shift
  2368  			if b < 0x80 {
  2369  				break
  2370  			}
  2371  		}
  2372  		fieldNum := int32(wire >> 3)
  2373  		wireType := int(wire & 0x7)
  2374  		if wireType == 4 {
  2375  			return fmt.Errorf("proto: QueryValidatorOutstandingRewardsRequest: wiretype end group for non-group")
  2376  		}
  2377  		if fieldNum <= 0 {
  2378  			return fmt.Errorf("proto: QueryValidatorOutstandingRewardsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2379  		}
  2380  		switch fieldNum {
  2381  		case 1:
  2382  			if wireType != 2 {
  2383  				return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddress", wireType)
  2384  			}
  2385  			var stringLen uint64
  2386  			for shift := uint(0); ; shift += 7 {
  2387  				if shift >= 64 {
  2388  					return ErrIntOverflowQuery
  2389  				}
  2390  				if iNdEx >= l {
  2391  					return io.ErrUnexpectedEOF
  2392  				}
  2393  				b := dAtA[iNdEx]
  2394  				iNdEx++
  2395  				stringLen |= uint64(b&0x7F) << shift
  2396  				if b < 0x80 {
  2397  					break
  2398  				}
  2399  			}
  2400  			intStringLen := int(stringLen)
  2401  			if intStringLen < 0 {
  2402  				return ErrInvalidLengthQuery
  2403  			}
  2404  			postIndex := iNdEx + intStringLen
  2405  			if postIndex < 0 {
  2406  				return ErrInvalidLengthQuery
  2407  			}
  2408  			if postIndex > l {
  2409  				return io.ErrUnexpectedEOF
  2410  			}
  2411  			m.ValidatorAddress = string(dAtA[iNdEx:postIndex])
  2412  			iNdEx = postIndex
  2413  		default:
  2414  			iNdEx = preIndex
  2415  			skippy, err := skipQuery(dAtA[iNdEx:])
  2416  			if err != nil {
  2417  				return err
  2418  			}
  2419  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2420  				return ErrInvalidLengthQuery
  2421  			}
  2422  			if (iNdEx + skippy) > l {
  2423  				return io.ErrUnexpectedEOF
  2424  			}
  2425  			iNdEx += skippy
  2426  		}
  2427  	}
  2428  
  2429  	if iNdEx > l {
  2430  		return io.ErrUnexpectedEOF
  2431  	}
  2432  	return nil
  2433  }
  2434  func (m *QueryValidatorOutstandingRewardsResponse) Unmarshal(dAtA []byte) error {
  2435  	l := len(dAtA)
  2436  	iNdEx := 0
  2437  	for iNdEx < l {
  2438  		preIndex := iNdEx
  2439  		var wire uint64
  2440  		for shift := uint(0); ; shift += 7 {
  2441  			if shift >= 64 {
  2442  				return ErrIntOverflowQuery
  2443  			}
  2444  			if iNdEx >= l {
  2445  				return io.ErrUnexpectedEOF
  2446  			}
  2447  			b := dAtA[iNdEx]
  2448  			iNdEx++
  2449  			wire |= uint64(b&0x7F) << shift
  2450  			if b < 0x80 {
  2451  				break
  2452  			}
  2453  		}
  2454  		fieldNum := int32(wire >> 3)
  2455  		wireType := int(wire & 0x7)
  2456  		if wireType == 4 {
  2457  			return fmt.Errorf("proto: QueryValidatorOutstandingRewardsResponse: wiretype end group for non-group")
  2458  		}
  2459  		if fieldNum <= 0 {
  2460  			return fmt.Errorf("proto: QueryValidatorOutstandingRewardsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2461  		}
  2462  		switch fieldNum {
  2463  		case 1:
  2464  			if wireType != 2 {
  2465  				return fmt.Errorf("proto: wrong wireType = %d for field Rewards", wireType)
  2466  			}
  2467  			var msglen int
  2468  			for shift := uint(0); ; shift += 7 {
  2469  				if shift >= 64 {
  2470  					return ErrIntOverflowQuery
  2471  				}
  2472  				if iNdEx >= l {
  2473  					return io.ErrUnexpectedEOF
  2474  				}
  2475  				b := dAtA[iNdEx]
  2476  				iNdEx++
  2477  				msglen |= int(b&0x7F) << shift
  2478  				if b < 0x80 {
  2479  					break
  2480  				}
  2481  			}
  2482  			if msglen < 0 {
  2483  				return ErrInvalidLengthQuery
  2484  			}
  2485  			postIndex := iNdEx + msglen
  2486  			if postIndex < 0 {
  2487  				return ErrInvalidLengthQuery
  2488  			}
  2489  			if postIndex > l {
  2490  				return io.ErrUnexpectedEOF
  2491  			}
  2492  			if err := m.Rewards.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2493  				return err
  2494  			}
  2495  			iNdEx = postIndex
  2496  		default:
  2497  			iNdEx = preIndex
  2498  			skippy, err := skipQuery(dAtA[iNdEx:])
  2499  			if err != nil {
  2500  				return err
  2501  			}
  2502  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2503  				return ErrInvalidLengthQuery
  2504  			}
  2505  			if (iNdEx + skippy) > l {
  2506  				return io.ErrUnexpectedEOF
  2507  			}
  2508  			iNdEx += skippy
  2509  		}
  2510  	}
  2511  
  2512  	if iNdEx > l {
  2513  		return io.ErrUnexpectedEOF
  2514  	}
  2515  	return nil
  2516  }
  2517  func (m *QueryValidatorCommissionRequest) Unmarshal(dAtA []byte) error {
  2518  	l := len(dAtA)
  2519  	iNdEx := 0
  2520  	for iNdEx < l {
  2521  		preIndex := iNdEx
  2522  		var wire uint64
  2523  		for shift := uint(0); ; shift += 7 {
  2524  			if shift >= 64 {
  2525  				return ErrIntOverflowQuery
  2526  			}
  2527  			if iNdEx >= l {
  2528  				return io.ErrUnexpectedEOF
  2529  			}
  2530  			b := dAtA[iNdEx]
  2531  			iNdEx++
  2532  			wire |= uint64(b&0x7F) << shift
  2533  			if b < 0x80 {
  2534  				break
  2535  			}
  2536  		}
  2537  		fieldNum := int32(wire >> 3)
  2538  		wireType := int(wire & 0x7)
  2539  		if wireType == 4 {
  2540  			return fmt.Errorf("proto: QueryValidatorCommissionRequest: wiretype end group for non-group")
  2541  		}
  2542  		if fieldNum <= 0 {
  2543  			return fmt.Errorf("proto: QueryValidatorCommissionRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2544  		}
  2545  		switch fieldNum {
  2546  		case 1:
  2547  			if wireType != 2 {
  2548  				return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddress", wireType)
  2549  			}
  2550  			var stringLen uint64
  2551  			for shift := uint(0); ; shift += 7 {
  2552  				if shift >= 64 {
  2553  					return ErrIntOverflowQuery
  2554  				}
  2555  				if iNdEx >= l {
  2556  					return io.ErrUnexpectedEOF
  2557  				}
  2558  				b := dAtA[iNdEx]
  2559  				iNdEx++
  2560  				stringLen |= uint64(b&0x7F) << shift
  2561  				if b < 0x80 {
  2562  					break
  2563  				}
  2564  			}
  2565  			intStringLen := int(stringLen)
  2566  			if intStringLen < 0 {
  2567  				return ErrInvalidLengthQuery
  2568  			}
  2569  			postIndex := iNdEx + intStringLen
  2570  			if postIndex < 0 {
  2571  				return ErrInvalidLengthQuery
  2572  			}
  2573  			if postIndex > l {
  2574  				return io.ErrUnexpectedEOF
  2575  			}
  2576  			m.ValidatorAddress = string(dAtA[iNdEx:postIndex])
  2577  			iNdEx = postIndex
  2578  		default:
  2579  			iNdEx = preIndex
  2580  			skippy, err := skipQuery(dAtA[iNdEx:])
  2581  			if err != nil {
  2582  				return err
  2583  			}
  2584  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2585  				return ErrInvalidLengthQuery
  2586  			}
  2587  			if (iNdEx + skippy) > l {
  2588  				return io.ErrUnexpectedEOF
  2589  			}
  2590  			iNdEx += skippy
  2591  		}
  2592  	}
  2593  
  2594  	if iNdEx > l {
  2595  		return io.ErrUnexpectedEOF
  2596  	}
  2597  	return nil
  2598  }
  2599  func (m *QueryValidatorCommissionResponse) Unmarshal(dAtA []byte) error {
  2600  	l := len(dAtA)
  2601  	iNdEx := 0
  2602  	for iNdEx < l {
  2603  		preIndex := iNdEx
  2604  		var wire uint64
  2605  		for shift := uint(0); ; shift += 7 {
  2606  			if shift >= 64 {
  2607  				return ErrIntOverflowQuery
  2608  			}
  2609  			if iNdEx >= l {
  2610  				return io.ErrUnexpectedEOF
  2611  			}
  2612  			b := dAtA[iNdEx]
  2613  			iNdEx++
  2614  			wire |= uint64(b&0x7F) << shift
  2615  			if b < 0x80 {
  2616  				break
  2617  			}
  2618  		}
  2619  		fieldNum := int32(wire >> 3)
  2620  		wireType := int(wire & 0x7)
  2621  		if wireType == 4 {
  2622  			return fmt.Errorf("proto: QueryValidatorCommissionResponse: wiretype end group for non-group")
  2623  		}
  2624  		if fieldNum <= 0 {
  2625  			return fmt.Errorf("proto: QueryValidatorCommissionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2626  		}
  2627  		switch fieldNum {
  2628  		case 1:
  2629  			if wireType != 2 {
  2630  				return fmt.Errorf("proto: wrong wireType = %d for field Commission", wireType)
  2631  			}
  2632  			var msglen int
  2633  			for shift := uint(0); ; shift += 7 {
  2634  				if shift >= 64 {
  2635  					return ErrIntOverflowQuery
  2636  				}
  2637  				if iNdEx >= l {
  2638  					return io.ErrUnexpectedEOF
  2639  				}
  2640  				b := dAtA[iNdEx]
  2641  				iNdEx++
  2642  				msglen |= int(b&0x7F) << shift
  2643  				if b < 0x80 {
  2644  					break
  2645  				}
  2646  			}
  2647  			if msglen < 0 {
  2648  				return ErrInvalidLengthQuery
  2649  			}
  2650  			postIndex := iNdEx + msglen
  2651  			if postIndex < 0 {
  2652  				return ErrInvalidLengthQuery
  2653  			}
  2654  			if postIndex > l {
  2655  				return io.ErrUnexpectedEOF
  2656  			}
  2657  			if err := m.Commission.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2658  				return err
  2659  			}
  2660  			iNdEx = postIndex
  2661  		default:
  2662  			iNdEx = preIndex
  2663  			skippy, err := skipQuery(dAtA[iNdEx:])
  2664  			if err != nil {
  2665  				return err
  2666  			}
  2667  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2668  				return ErrInvalidLengthQuery
  2669  			}
  2670  			if (iNdEx + skippy) > l {
  2671  				return io.ErrUnexpectedEOF
  2672  			}
  2673  			iNdEx += skippy
  2674  		}
  2675  	}
  2676  
  2677  	if iNdEx > l {
  2678  		return io.ErrUnexpectedEOF
  2679  	}
  2680  	return nil
  2681  }
  2682  func (m *QueryValidatorSlashesRequest) Unmarshal(dAtA []byte) error {
  2683  	l := len(dAtA)
  2684  	iNdEx := 0
  2685  	for iNdEx < l {
  2686  		preIndex := iNdEx
  2687  		var wire uint64
  2688  		for shift := uint(0); ; shift += 7 {
  2689  			if shift >= 64 {
  2690  				return ErrIntOverflowQuery
  2691  			}
  2692  			if iNdEx >= l {
  2693  				return io.ErrUnexpectedEOF
  2694  			}
  2695  			b := dAtA[iNdEx]
  2696  			iNdEx++
  2697  			wire |= uint64(b&0x7F) << shift
  2698  			if b < 0x80 {
  2699  				break
  2700  			}
  2701  		}
  2702  		fieldNum := int32(wire >> 3)
  2703  		wireType := int(wire & 0x7)
  2704  		if wireType == 4 {
  2705  			return fmt.Errorf("proto: QueryValidatorSlashesRequest: wiretype end group for non-group")
  2706  		}
  2707  		if fieldNum <= 0 {
  2708  			return fmt.Errorf("proto: QueryValidatorSlashesRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2709  		}
  2710  		switch fieldNum {
  2711  		case 1:
  2712  			if wireType != 2 {
  2713  				return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddress", wireType)
  2714  			}
  2715  			var stringLen uint64
  2716  			for shift := uint(0); ; shift += 7 {
  2717  				if shift >= 64 {
  2718  					return ErrIntOverflowQuery
  2719  				}
  2720  				if iNdEx >= l {
  2721  					return io.ErrUnexpectedEOF
  2722  				}
  2723  				b := dAtA[iNdEx]
  2724  				iNdEx++
  2725  				stringLen |= uint64(b&0x7F) << shift
  2726  				if b < 0x80 {
  2727  					break
  2728  				}
  2729  			}
  2730  			intStringLen := int(stringLen)
  2731  			if intStringLen < 0 {
  2732  				return ErrInvalidLengthQuery
  2733  			}
  2734  			postIndex := iNdEx + intStringLen
  2735  			if postIndex < 0 {
  2736  				return ErrInvalidLengthQuery
  2737  			}
  2738  			if postIndex > l {
  2739  				return io.ErrUnexpectedEOF
  2740  			}
  2741  			m.ValidatorAddress = string(dAtA[iNdEx:postIndex])
  2742  			iNdEx = postIndex
  2743  		case 2:
  2744  			if wireType != 0 {
  2745  				return fmt.Errorf("proto: wrong wireType = %d for field StartingHeight", wireType)
  2746  			}
  2747  			m.StartingHeight = 0
  2748  			for shift := uint(0); ; shift += 7 {
  2749  				if shift >= 64 {
  2750  					return ErrIntOverflowQuery
  2751  				}
  2752  				if iNdEx >= l {
  2753  					return io.ErrUnexpectedEOF
  2754  				}
  2755  				b := dAtA[iNdEx]
  2756  				iNdEx++
  2757  				m.StartingHeight |= uint64(b&0x7F) << shift
  2758  				if b < 0x80 {
  2759  					break
  2760  				}
  2761  			}
  2762  		case 3:
  2763  			if wireType != 0 {
  2764  				return fmt.Errorf("proto: wrong wireType = %d for field EndingHeight", wireType)
  2765  			}
  2766  			m.EndingHeight = 0
  2767  			for shift := uint(0); ; shift += 7 {
  2768  				if shift >= 64 {
  2769  					return ErrIntOverflowQuery
  2770  				}
  2771  				if iNdEx >= l {
  2772  					return io.ErrUnexpectedEOF
  2773  				}
  2774  				b := dAtA[iNdEx]
  2775  				iNdEx++
  2776  				m.EndingHeight |= uint64(b&0x7F) << shift
  2777  				if b < 0x80 {
  2778  					break
  2779  				}
  2780  			}
  2781  		case 4:
  2782  			if wireType != 2 {
  2783  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  2784  			}
  2785  			var msglen int
  2786  			for shift := uint(0); ; shift += 7 {
  2787  				if shift >= 64 {
  2788  					return ErrIntOverflowQuery
  2789  				}
  2790  				if iNdEx >= l {
  2791  					return io.ErrUnexpectedEOF
  2792  				}
  2793  				b := dAtA[iNdEx]
  2794  				iNdEx++
  2795  				msglen |= int(b&0x7F) << shift
  2796  				if b < 0x80 {
  2797  					break
  2798  				}
  2799  			}
  2800  			if msglen < 0 {
  2801  				return ErrInvalidLengthQuery
  2802  			}
  2803  			postIndex := iNdEx + msglen
  2804  			if postIndex < 0 {
  2805  				return ErrInvalidLengthQuery
  2806  			}
  2807  			if postIndex > l {
  2808  				return io.ErrUnexpectedEOF
  2809  			}
  2810  			if m.Pagination == nil {
  2811  				m.Pagination = &query.PageRequest{}
  2812  			}
  2813  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2814  				return err
  2815  			}
  2816  			iNdEx = postIndex
  2817  		default:
  2818  			iNdEx = preIndex
  2819  			skippy, err := skipQuery(dAtA[iNdEx:])
  2820  			if err != nil {
  2821  				return err
  2822  			}
  2823  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2824  				return ErrInvalidLengthQuery
  2825  			}
  2826  			if (iNdEx + skippy) > l {
  2827  				return io.ErrUnexpectedEOF
  2828  			}
  2829  			iNdEx += skippy
  2830  		}
  2831  	}
  2832  
  2833  	if iNdEx > l {
  2834  		return io.ErrUnexpectedEOF
  2835  	}
  2836  	return nil
  2837  }
  2838  func (m *QueryValidatorSlashesResponse) Unmarshal(dAtA []byte) error {
  2839  	l := len(dAtA)
  2840  	iNdEx := 0
  2841  	for iNdEx < l {
  2842  		preIndex := iNdEx
  2843  		var wire uint64
  2844  		for shift := uint(0); ; shift += 7 {
  2845  			if shift >= 64 {
  2846  				return ErrIntOverflowQuery
  2847  			}
  2848  			if iNdEx >= l {
  2849  				return io.ErrUnexpectedEOF
  2850  			}
  2851  			b := dAtA[iNdEx]
  2852  			iNdEx++
  2853  			wire |= uint64(b&0x7F) << shift
  2854  			if b < 0x80 {
  2855  				break
  2856  			}
  2857  		}
  2858  		fieldNum := int32(wire >> 3)
  2859  		wireType := int(wire & 0x7)
  2860  		if wireType == 4 {
  2861  			return fmt.Errorf("proto: QueryValidatorSlashesResponse: wiretype end group for non-group")
  2862  		}
  2863  		if fieldNum <= 0 {
  2864  			return fmt.Errorf("proto: QueryValidatorSlashesResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2865  		}
  2866  		switch fieldNum {
  2867  		case 1:
  2868  			if wireType != 2 {
  2869  				return fmt.Errorf("proto: wrong wireType = %d for field Slashes", wireType)
  2870  			}
  2871  			var msglen int
  2872  			for shift := uint(0); ; shift += 7 {
  2873  				if shift >= 64 {
  2874  					return ErrIntOverflowQuery
  2875  				}
  2876  				if iNdEx >= l {
  2877  					return io.ErrUnexpectedEOF
  2878  				}
  2879  				b := dAtA[iNdEx]
  2880  				iNdEx++
  2881  				msglen |= int(b&0x7F) << shift
  2882  				if b < 0x80 {
  2883  					break
  2884  				}
  2885  			}
  2886  			if msglen < 0 {
  2887  				return ErrInvalidLengthQuery
  2888  			}
  2889  			postIndex := iNdEx + msglen
  2890  			if postIndex < 0 {
  2891  				return ErrInvalidLengthQuery
  2892  			}
  2893  			if postIndex > l {
  2894  				return io.ErrUnexpectedEOF
  2895  			}
  2896  			m.Slashes = append(m.Slashes, ValidatorSlashEvent{})
  2897  			if err := m.Slashes[len(m.Slashes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2898  				return err
  2899  			}
  2900  			iNdEx = postIndex
  2901  		case 2:
  2902  			if wireType != 2 {
  2903  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  2904  			}
  2905  			var msglen int
  2906  			for shift := uint(0); ; shift += 7 {
  2907  				if shift >= 64 {
  2908  					return ErrIntOverflowQuery
  2909  				}
  2910  				if iNdEx >= l {
  2911  					return io.ErrUnexpectedEOF
  2912  				}
  2913  				b := dAtA[iNdEx]
  2914  				iNdEx++
  2915  				msglen |= int(b&0x7F) << shift
  2916  				if b < 0x80 {
  2917  					break
  2918  				}
  2919  			}
  2920  			if msglen < 0 {
  2921  				return ErrInvalidLengthQuery
  2922  			}
  2923  			postIndex := iNdEx + msglen
  2924  			if postIndex < 0 {
  2925  				return ErrInvalidLengthQuery
  2926  			}
  2927  			if postIndex > l {
  2928  				return io.ErrUnexpectedEOF
  2929  			}
  2930  			if m.Pagination == nil {
  2931  				m.Pagination = &query.PageResponse{}
  2932  			}
  2933  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2934  				return err
  2935  			}
  2936  			iNdEx = postIndex
  2937  		default:
  2938  			iNdEx = preIndex
  2939  			skippy, err := skipQuery(dAtA[iNdEx:])
  2940  			if err != nil {
  2941  				return err
  2942  			}
  2943  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2944  				return ErrInvalidLengthQuery
  2945  			}
  2946  			if (iNdEx + skippy) > l {
  2947  				return io.ErrUnexpectedEOF
  2948  			}
  2949  			iNdEx += skippy
  2950  		}
  2951  	}
  2952  
  2953  	if iNdEx > l {
  2954  		return io.ErrUnexpectedEOF
  2955  	}
  2956  	return nil
  2957  }
  2958  func (m *QueryDelegationRewardsRequest) Unmarshal(dAtA []byte) error {
  2959  	l := len(dAtA)
  2960  	iNdEx := 0
  2961  	for iNdEx < l {
  2962  		preIndex := iNdEx
  2963  		var wire uint64
  2964  		for shift := uint(0); ; shift += 7 {
  2965  			if shift >= 64 {
  2966  				return ErrIntOverflowQuery
  2967  			}
  2968  			if iNdEx >= l {
  2969  				return io.ErrUnexpectedEOF
  2970  			}
  2971  			b := dAtA[iNdEx]
  2972  			iNdEx++
  2973  			wire |= uint64(b&0x7F) << shift
  2974  			if b < 0x80 {
  2975  				break
  2976  			}
  2977  		}
  2978  		fieldNum := int32(wire >> 3)
  2979  		wireType := int(wire & 0x7)
  2980  		if wireType == 4 {
  2981  			return fmt.Errorf("proto: QueryDelegationRewardsRequest: wiretype end group for non-group")
  2982  		}
  2983  		if fieldNum <= 0 {
  2984  			return fmt.Errorf("proto: QueryDelegationRewardsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2985  		}
  2986  		switch fieldNum {
  2987  		case 1:
  2988  			if wireType != 2 {
  2989  				return fmt.Errorf("proto: wrong wireType = %d for field DelegatorAddress", wireType)
  2990  			}
  2991  			var stringLen uint64
  2992  			for shift := uint(0); ; shift += 7 {
  2993  				if shift >= 64 {
  2994  					return ErrIntOverflowQuery
  2995  				}
  2996  				if iNdEx >= l {
  2997  					return io.ErrUnexpectedEOF
  2998  				}
  2999  				b := dAtA[iNdEx]
  3000  				iNdEx++
  3001  				stringLen |= uint64(b&0x7F) << shift
  3002  				if b < 0x80 {
  3003  					break
  3004  				}
  3005  			}
  3006  			intStringLen := int(stringLen)
  3007  			if intStringLen < 0 {
  3008  				return ErrInvalidLengthQuery
  3009  			}
  3010  			postIndex := iNdEx + intStringLen
  3011  			if postIndex < 0 {
  3012  				return ErrInvalidLengthQuery
  3013  			}
  3014  			if postIndex > l {
  3015  				return io.ErrUnexpectedEOF
  3016  			}
  3017  			m.DelegatorAddress = string(dAtA[iNdEx:postIndex])
  3018  			iNdEx = postIndex
  3019  		case 2:
  3020  			if wireType != 2 {
  3021  				return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddress", wireType)
  3022  			}
  3023  			var stringLen uint64
  3024  			for shift := uint(0); ; shift += 7 {
  3025  				if shift >= 64 {
  3026  					return ErrIntOverflowQuery
  3027  				}
  3028  				if iNdEx >= l {
  3029  					return io.ErrUnexpectedEOF
  3030  				}
  3031  				b := dAtA[iNdEx]
  3032  				iNdEx++
  3033  				stringLen |= uint64(b&0x7F) << shift
  3034  				if b < 0x80 {
  3035  					break
  3036  				}
  3037  			}
  3038  			intStringLen := int(stringLen)
  3039  			if intStringLen < 0 {
  3040  				return ErrInvalidLengthQuery
  3041  			}
  3042  			postIndex := iNdEx + intStringLen
  3043  			if postIndex < 0 {
  3044  				return ErrInvalidLengthQuery
  3045  			}
  3046  			if postIndex > l {
  3047  				return io.ErrUnexpectedEOF
  3048  			}
  3049  			m.ValidatorAddress = string(dAtA[iNdEx:postIndex])
  3050  			iNdEx = postIndex
  3051  		default:
  3052  			iNdEx = preIndex
  3053  			skippy, err := skipQuery(dAtA[iNdEx:])
  3054  			if err != nil {
  3055  				return err
  3056  			}
  3057  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3058  				return ErrInvalidLengthQuery
  3059  			}
  3060  			if (iNdEx + skippy) > l {
  3061  				return io.ErrUnexpectedEOF
  3062  			}
  3063  			iNdEx += skippy
  3064  		}
  3065  	}
  3066  
  3067  	if iNdEx > l {
  3068  		return io.ErrUnexpectedEOF
  3069  	}
  3070  	return nil
  3071  }
  3072  func (m *QueryDelegationRewardsResponse) Unmarshal(dAtA []byte) error {
  3073  	l := len(dAtA)
  3074  	iNdEx := 0
  3075  	for iNdEx < l {
  3076  		preIndex := iNdEx
  3077  		var wire uint64
  3078  		for shift := uint(0); ; shift += 7 {
  3079  			if shift >= 64 {
  3080  				return ErrIntOverflowQuery
  3081  			}
  3082  			if iNdEx >= l {
  3083  				return io.ErrUnexpectedEOF
  3084  			}
  3085  			b := dAtA[iNdEx]
  3086  			iNdEx++
  3087  			wire |= uint64(b&0x7F) << shift
  3088  			if b < 0x80 {
  3089  				break
  3090  			}
  3091  		}
  3092  		fieldNum := int32(wire >> 3)
  3093  		wireType := int(wire & 0x7)
  3094  		if wireType == 4 {
  3095  			return fmt.Errorf("proto: QueryDelegationRewardsResponse: wiretype end group for non-group")
  3096  		}
  3097  		if fieldNum <= 0 {
  3098  			return fmt.Errorf("proto: QueryDelegationRewardsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3099  		}
  3100  		switch fieldNum {
  3101  		case 1:
  3102  			if wireType != 2 {
  3103  				return fmt.Errorf("proto: wrong wireType = %d for field Rewards", wireType)
  3104  			}
  3105  			var msglen int
  3106  			for shift := uint(0); ; shift += 7 {
  3107  				if shift >= 64 {
  3108  					return ErrIntOverflowQuery
  3109  				}
  3110  				if iNdEx >= l {
  3111  					return io.ErrUnexpectedEOF
  3112  				}
  3113  				b := dAtA[iNdEx]
  3114  				iNdEx++
  3115  				msglen |= int(b&0x7F) << shift
  3116  				if b < 0x80 {
  3117  					break
  3118  				}
  3119  			}
  3120  			if msglen < 0 {
  3121  				return ErrInvalidLengthQuery
  3122  			}
  3123  			postIndex := iNdEx + msglen
  3124  			if postIndex < 0 {
  3125  				return ErrInvalidLengthQuery
  3126  			}
  3127  			if postIndex > l {
  3128  				return io.ErrUnexpectedEOF
  3129  			}
  3130  			m.Rewards = append(m.Rewards, types.DecCoin{})
  3131  			if err := m.Rewards[len(m.Rewards)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3132  				return err
  3133  			}
  3134  			iNdEx = postIndex
  3135  		default:
  3136  			iNdEx = preIndex
  3137  			skippy, err := skipQuery(dAtA[iNdEx:])
  3138  			if err != nil {
  3139  				return err
  3140  			}
  3141  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3142  				return ErrInvalidLengthQuery
  3143  			}
  3144  			if (iNdEx + skippy) > l {
  3145  				return io.ErrUnexpectedEOF
  3146  			}
  3147  			iNdEx += skippy
  3148  		}
  3149  	}
  3150  
  3151  	if iNdEx > l {
  3152  		return io.ErrUnexpectedEOF
  3153  	}
  3154  	return nil
  3155  }
  3156  func (m *QueryDelegationTotalRewardsRequest) Unmarshal(dAtA []byte) error {
  3157  	l := len(dAtA)
  3158  	iNdEx := 0
  3159  	for iNdEx < l {
  3160  		preIndex := iNdEx
  3161  		var wire uint64
  3162  		for shift := uint(0); ; shift += 7 {
  3163  			if shift >= 64 {
  3164  				return ErrIntOverflowQuery
  3165  			}
  3166  			if iNdEx >= l {
  3167  				return io.ErrUnexpectedEOF
  3168  			}
  3169  			b := dAtA[iNdEx]
  3170  			iNdEx++
  3171  			wire |= uint64(b&0x7F) << shift
  3172  			if b < 0x80 {
  3173  				break
  3174  			}
  3175  		}
  3176  		fieldNum := int32(wire >> 3)
  3177  		wireType := int(wire & 0x7)
  3178  		if wireType == 4 {
  3179  			return fmt.Errorf("proto: QueryDelegationTotalRewardsRequest: wiretype end group for non-group")
  3180  		}
  3181  		if fieldNum <= 0 {
  3182  			return fmt.Errorf("proto: QueryDelegationTotalRewardsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3183  		}
  3184  		switch fieldNum {
  3185  		case 1:
  3186  			if wireType != 2 {
  3187  				return fmt.Errorf("proto: wrong wireType = %d for field DelegatorAddress", wireType)
  3188  			}
  3189  			var stringLen uint64
  3190  			for shift := uint(0); ; shift += 7 {
  3191  				if shift >= 64 {
  3192  					return ErrIntOverflowQuery
  3193  				}
  3194  				if iNdEx >= l {
  3195  					return io.ErrUnexpectedEOF
  3196  				}
  3197  				b := dAtA[iNdEx]
  3198  				iNdEx++
  3199  				stringLen |= uint64(b&0x7F) << shift
  3200  				if b < 0x80 {
  3201  					break
  3202  				}
  3203  			}
  3204  			intStringLen := int(stringLen)
  3205  			if intStringLen < 0 {
  3206  				return ErrInvalidLengthQuery
  3207  			}
  3208  			postIndex := iNdEx + intStringLen
  3209  			if postIndex < 0 {
  3210  				return ErrInvalidLengthQuery
  3211  			}
  3212  			if postIndex > l {
  3213  				return io.ErrUnexpectedEOF
  3214  			}
  3215  			m.DelegatorAddress = string(dAtA[iNdEx:postIndex])
  3216  			iNdEx = postIndex
  3217  		default:
  3218  			iNdEx = preIndex
  3219  			skippy, err := skipQuery(dAtA[iNdEx:])
  3220  			if err != nil {
  3221  				return err
  3222  			}
  3223  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3224  				return ErrInvalidLengthQuery
  3225  			}
  3226  			if (iNdEx + skippy) > l {
  3227  				return io.ErrUnexpectedEOF
  3228  			}
  3229  			iNdEx += skippy
  3230  		}
  3231  	}
  3232  
  3233  	if iNdEx > l {
  3234  		return io.ErrUnexpectedEOF
  3235  	}
  3236  	return nil
  3237  }
  3238  func (m *QueryDelegationTotalRewardsResponse) Unmarshal(dAtA []byte) error {
  3239  	l := len(dAtA)
  3240  	iNdEx := 0
  3241  	for iNdEx < l {
  3242  		preIndex := iNdEx
  3243  		var wire uint64
  3244  		for shift := uint(0); ; shift += 7 {
  3245  			if shift >= 64 {
  3246  				return ErrIntOverflowQuery
  3247  			}
  3248  			if iNdEx >= l {
  3249  				return io.ErrUnexpectedEOF
  3250  			}
  3251  			b := dAtA[iNdEx]
  3252  			iNdEx++
  3253  			wire |= uint64(b&0x7F) << shift
  3254  			if b < 0x80 {
  3255  				break
  3256  			}
  3257  		}
  3258  		fieldNum := int32(wire >> 3)
  3259  		wireType := int(wire & 0x7)
  3260  		if wireType == 4 {
  3261  			return fmt.Errorf("proto: QueryDelegationTotalRewardsResponse: wiretype end group for non-group")
  3262  		}
  3263  		if fieldNum <= 0 {
  3264  			return fmt.Errorf("proto: QueryDelegationTotalRewardsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3265  		}
  3266  		switch fieldNum {
  3267  		case 1:
  3268  			if wireType != 2 {
  3269  				return fmt.Errorf("proto: wrong wireType = %d for field Rewards", wireType)
  3270  			}
  3271  			var msglen int
  3272  			for shift := uint(0); ; shift += 7 {
  3273  				if shift >= 64 {
  3274  					return ErrIntOverflowQuery
  3275  				}
  3276  				if iNdEx >= l {
  3277  					return io.ErrUnexpectedEOF
  3278  				}
  3279  				b := dAtA[iNdEx]
  3280  				iNdEx++
  3281  				msglen |= int(b&0x7F) << shift
  3282  				if b < 0x80 {
  3283  					break
  3284  				}
  3285  			}
  3286  			if msglen < 0 {
  3287  				return ErrInvalidLengthQuery
  3288  			}
  3289  			postIndex := iNdEx + msglen
  3290  			if postIndex < 0 {
  3291  				return ErrInvalidLengthQuery
  3292  			}
  3293  			if postIndex > l {
  3294  				return io.ErrUnexpectedEOF
  3295  			}
  3296  			m.Rewards = append(m.Rewards, DelegationDelegatorReward{})
  3297  			if err := m.Rewards[len(m.Rewards)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3298  				return err
  3299  			}
  3300  			iNdEx = postIndex
  3301  		case 2:
  3302  			if wireType != 2 {
  3303  				return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType)
  3304  			}
  3305  			var msglen int
  3306  			for shift := uint(0); ; shift += 7 {
  3307  				if shift >= 64 {
  3308  					return ErrIntOverflowQuery
  3309  				}
  3310  				if iNdEx >= l {
  3311  					return io.ErrUnexpectedEOF
  3312  				}
  3313  				b := dAtA[iNdEx]
  3314  				iNdEx++
  3315  				msglen |= int(b&0x7F) << shift
  3316  				if b < 0x80 {
  3317  					break
  3318  				}
  3319  			}
  3320  			if msglen < 0 {
  3321  				return ErrInvalidLengthQuery
  3322  			}
  3323  			postIndex := iNdEx + msglen
  3324  			if postIndex < 0 {
  3325  				return ErrInvalidLengthQuery
  3326  			}
  3327  			if postIndex > l {
  3328  				return io.ErrUnexpectedEOF
  3329  			}
  3330  			m.Total = append(m.Total, types.DecCoin{})
  3331  			if err := m.Total[len(m.Total)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3332  				return err
  3333  			}
  3334  			iNdEx = postIndex
  3335  		default:
  3336  			iNdEx = preIndex
  3337  			skippy, err := skipQuery(dAtA[iNdEx:])
  3338  			if err != nil {
  3339  				return err
  3340  			}
  3341  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3342  				return ErrInvalidLengthQuery
  3343  			}
  3344  			if (iNdEx + skippy) > l {
  3345  				return io.ErrUnexpectedEOF
  3346  			}
  3347  			iNdEx += skippy
  3348  		}
  3349  	}
  3350  
  3351  	if iNdEx > l {
  3352  		return io.ErrUnexpectedEOF
  3353  	}
  3354  	return nil
  3355  }
  3356  func (m *QueryDelegatorValidatorsRequest) Unmarshal(dAtA []byte) error {
  3357  	l := len(dAtA)
  3358  	iNdEx := 0
  3359  	for iNdEx < l {
  3360  		preIndex := iNdEx
  3361  		var wire uint64
  3362  		for shift := uint(0); ; shift += 7 {
  3363  			if shift >= 64 {
  3364  				return ErrIntOverflowQuery
  3365  			}
  3366  			if iNdEx >= l {
  3367  				return io.ErrUnexpectedEOF
  3368  			}
  3369  			b := dAtA[iNdEx]
  3370  			iNdEx++
  3371  			wire |= uint64(b&0x7F) << shift
  3372  			if b < 0x80 {
  3373  				break
  3374  			}
  3375  		}
  3376  		fieldNum := int32(wire >> 3)
  3377  		wireType := int(wire & 0x7)
  3378  		if wireType == 4 {
  3379  			return fmt.Errorf("proto: QueryDelegatorValidatorsRequest: wiretype end group for non-group")
  3380  		}
  3381  		if fieldNum <= 0 {
  3382  			return fmt.Errorf("proto: QueryDelegatorValidatorsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3383  		}
  3384  		switch fieldNum {
  3385  		case 1:
  3386  			if wireType != 2 {
  3387  				return fmt.Errorf("proto: wrong wireType = %d for field DelegatorAddress", wireType)
  3388  			}
  3389  			var stringLen uint64
  3390  			for shift := uint(0); ; shift += 7 {
  3391  				if shift >= 64 {
  3392  					return ErrIntOverflowQuery
  3393  				}
  3394  				if iNdEx >= l {
  3395  					return io.ErrUnexpectedEOF
  3396  				}
  3397  				b := dAtA[iNdEx]
  3398  				iNdEx++
  3399  				stringLen |= uint64(b&0x7F) << shift
  3400  				if b < 0x80 {
  3401  					break
  3402  				}
  3403  			}
  3404  			intStringLen := int(stringLen)
  3405  			if intStringLen < 0 {
  3406  				return ErrInvalidLengthQuery
  3407  			}
  3408  			postIndex := iNdEx + intStringLen
  3409  			if postIndex < 0 {
  3410  				return ErrInvalidLengthQuery
  3411  			}
  3412  			if postIndex > l {
  3413  				return io.ErrUnexpectedEOF
  3414  			}
  3415  			m.DelegatorAddress = string(dAtA[iNdEx:postIndex])
  3416  			iNdEx = postIndex
  3417  		default:
  3418  			iNdEx = preIndex
  3419  			skippy, err := skipQuery(dAtA[iNdEx:])
  3420  			if err != nil {
  3421  				return err
  3422  			}
  3423  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3424  				return ErrInvalidLengthQuery
  3425  			}
  3426  			if (iNdEx + skippy) > l {
  3427  				return io.ErrUnexpectedEOF
  3428  			}
  3429  			iNdEx += skippy
  3430  		}
  3431  	}
  3432  
  3433  	if iNdEx > l {
  3434  		return io.ErrUnexpectedEOF
  3435  	}
  3436  	return nil
  3437  }
  3438  func (m *QueryDelegatorValidatorsResponse) Unmarshal(dAtA []byte) error {
  3439  	l := len(dAtA)
  3440  	iNdEx := 0
  3441  	for iNdEx < l {
  3442  		preIndex := iNdEx
  3443  		var wire uint64
  3444  		for shift := uint(0); ; shift += 7 {
  3445  			if shift >= 64 {
  3446  				return ErrIntOverflowQuery
  3447  			}
  3448  			if iNdEx >= l {
  3449  				return io.ErrUnexpectedEOF
  3450  			}
  3451  			b := dAtA[iNdEx]
  3452  			iNdEx++
  3453  			wire |= uint64(b&0x7F) << shift
  3454  			if b < 0x80 {
  3455  				break
  3456  			}
  3457  		}
  3458  		fieldNum := int32(wire >> 3)
  3459  		wireType := int(wire & 0x7)
  3460  		if wireType == 4 {
  3461  			return fmt.Errorf("proto: QueryDelegatorValidatorsResponse: wiretype end group for non-group")
  3462  		}
  3463  		if fieldNum <= 0 {
  3464  			return fmt.Errorf("proto: QueryDelegatorValidatorsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3465  		}
  3466  		switch fieldNum {
  3467  		case 1:
  3468  			if wireType != 2 {
  3469  				return fmt.Errorf("proto: wrong wireType = %d for field Validators", wireType)
  3470  			}
  3471  			var stringLen uint64
  3472  			for shift := uint(0); ; shift += 7 {
  3473  				if shift >= 64 {
  3474  					return ErrIntOverflowQuery
  3475  				}
  3476  				if iNdEx >= l {
  3477  					return io.ErrUnexpectedEOF
  3478  				}
  3479  				b := dAtA[iNdEx]
  3480  				iNdEx++
  3481  				stringLen |= uint64(b&0x7F) << shift
  3482  				if b < 0x80 {
  3483  					break
  3484  				}
  3485  			}
  3486  			intStringLen := int(stringLen)
  3487  			if intStringLen < 0 {
  3488  				return ErrInvalidLengthQuery
  3489  			}
  3490  			postIndex := iNdEx + intStringLen
  3491  			if postIndex < 0 {
  3492  				return ErrInvalidLengthQuery
  3493  			}
  3494  			if postIndex > l {
  3495  				return io.ErrUnexpectedEOF
  3496  			}
  3497  			m.Validators = append(m.Validators, string(dAtA[iNdEx:postIndex]))
  3498  			iNdEx = postIndex
  3499  		default:
  3500  			iNdEx = preIndex
  3501  			skippy, err := skipQuery(dAtA[iNdEx:])
  3502  			if err != nil {
  3503  				return err
  3504  			}
  3505  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3506  				return ErrInvalidLengthQuery
  3507  			}
  3508  			if (iNdEx + skippy) > l {
  3509  				return io.ErrUnexpectedEOF
  3510  			}
  3511  			iNdEx += skippy
  3512  		}
  3513  	}
  3514  
  3515  	if iNdEx > l {
  3516  		return io.ErrUnexpectedEOF
  3517  	}
  3518  	return nil
  3519  }
  3520  func (m *QueryDelegatorWithdrawAddressRequest) Unmarshal(dAtA []byte) error {
  3521  	l := len(dAtA)
  3522  	iNdEx := 0
  3523  	for iNdEx < l {
  3524  		preIndex := iNdEx
  3525  		var wire uint64
  3526  		for shift := uint(0); ; shift += 7 {
  3527  			if shift >= 64 {
  3528  				return ErrIntOverflowQuery
  3529  			}
  3530  			if iNdEx >= l {
  3531  				return io.ErrUnexpectedEOF
  3532  			}
  3533  			b := dAtA[iNdEx]
  3534  			iNdEx++
  3535  			wire |= uint64(b&0x7F) << shift
  3536  			if b < 0x80 {
  3537  				break
  3538  			}
  3539  		}
  3540  		fieldNum := int32(wire >> 3)
  3541  		wireType := int(wire & 0x7)
  3542  		if wireType == 4 {
  3543  			return fmt.Errorf("proto: QueryDelegatorWithdrawAddressRequest: wiretype end group for non-group")
  3544  		}
  3545  		if fieldNum <= 0 {
  3546  			return fmt.Errorf("proto: QueryDelegatorWithdrawAddressRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3547  		}
  3548  		switch fieldNum {
  3549  		case 1:
  3550  			if wireType != 2 {
  3551  				return fmt.Errorf("proto: wrong wireType = %d for field DelegatorAddress", wireType)
  3552  			}
  3553  			var stringLen uint64
  3554  			for shift := uint(0); ; shift += 7 {
  3555  				if shift >= 64 {
  3556  					return ErrIntOverflowQuery
  3557  				}
  3558  				if iNdEx >= l {
  3559  					return io.ErrUnexpectedEOF
  3560  				}
  3561  				b := dAtA[iNdEx]
  3562  				iNdEx++
  3563  				stringLen |= uint64(b&0x7F) << shift
  3564  				if b < 0x80 {
  3565  					break
  3566  				}
  3567  			}
  3568  			intStringLen := int(stringLen)
  3569  			if intStringLen < 0 {
  3570  				return ErrInvalidLengthQuery
  3571  			}
  3572  			postIndex := iNdEx + intStringLen
  3573  			if postIndex < 0 {
  3574  				return ErrInvalidLengthQuery
  3575  			}
  3576  			if postIndex > l {
  3577  				return io.ErrUnexpectedEOF
  3578  			}
  3579  			m.DelegatorAddress = string(dAtA[iNdEx:postIndex])
  3580  			iNdEx = postIndex
  3581  		default:
  3582  			iNdEx = preIndex
  3583  			skippy, err := skipQuery(dAtA[iNdEx:])
  3584  			if err != nil {
  3585  				return err
  3586  			}
  3587  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3588  				return ErrInvalidLengthQuery
  3589  			}
  3590  			if (iNdEx + skippy) > l {
  3591  				return io.ErrUnexpectedEOF
  3592  			}
  3593  			iNdEx += skippy
  3594  		}
  3595  	}
  3596  
  3597  	if iNdEx > l {
  3598  		return io.ErrUnexpectedEOF
  3599  	}
  3600  	return nil
  3601  }
  3602  func (m *QueryDelegatorWithdrawAddressResponse) Unmarshal(dAtA []byte) error {
  3603  	l := len(dAtA)
  3604  	iNdEx := 0
  3605  	for iNdEx < l {
  3606  		preIndex := iNdEx
  3607  		var wire uint64
  3608  		for shift := uint(0); ; shift += 7 {
  3609  			if shift >= 64 {
  3610  				return ErrIntOverflowQuery
  3611  			}
  3612  			if iNdEx >= l {
  3613  				return io.ErrUnexpectedEOF
  3614  			}
  3615  			b := dAtA[iNdEx]
  3616  			iNdEx++
  3617  			wire |= uint64(b&0x7F) << shift
  3618  			if b < 0x80 {
  3619  				break
  3620  			}
  3621  		}
  3622  		fieldNum := int32(wire >> 3)
  3623  		wireType := int(wire & 0x7)
  3624  		if wireType == 4 {
  3625  			return fmt.Errorf("proto: QueryDelegatorWithdrawAddressResponse: wiretype end group for non-group")
  3626  		}
  3627  		if fieldNum <= 0 {
  3628  			return fmt.Errorf("proto: QueryDelegatorWithdrawAddressResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3629  		}
  3630  		switch fieldNum {
  3631  		case 1:
  3632  			if wireType != 2 {
  3633  				return fmt.Errorf("proto: wrong wireType = %d for field WithdrawAddress", wireType)
  3634  			}
  3635  			var stringLen uint64
  3636  			for shift := uint(0); ; shift += 7 {
  3637  				if shift >= 64 {
  3638  					return ErrIntOverflowQuery
  3639  				}
  3640  				if iNdEx >= l {
  3641  					return io.ErrUnexpectedEOF
  3642  				}
  3643  				b := dAtA[iNdEx]
  3644  				iNdEx++
  3645  				stringLen |= uint64(b&0x7F) << shift
  3646  				if b < 0x80 {
  3647  					break
  3648  				}
  3649  			}
  3650  			intStringLen := int(stringLen)
  3651  			if intStringLen < 0 {
  3652  				return ErrInvalidLengthQuery
  3653  			}
  3654  			postIndex := iNdEx + intStringLen
  3655  			if postIndex < 0 {
  3656  				return ErrInvalidLengthQuery
  3657  			}
  3658  			if postIndex > l {
  3659  				return io.ErrUnexpectedEOF
  3660  			}
  3661  			m.WithdrawAddress = string(dAtA[iNdEx:postIndex])
  3662  			iNdEx = postIndex
  3663  		default:
  3664  			iNdEx = preIndex
  3665  			skippy, err := skipQuery(dAtA[iNdEx:])
  3666  			if err != nil {
  3667  				return err
  3668  			}
  3669  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3670  				return ErrInvalidLengthQuery
  3671  			}
  3672  			if (iNdEx + skippy) > l {
  3673  				return io.ErrUnexpectedEOF
  3674  			}
  3675  			iNdEx += skippy
  3676  		}
  3677  	}
  3678  
  3679  	if iNdEx > l {
  3680  		return io.ErrUnexpectedEOF
  3681  	}
  3682  	return nil
  3683  }
  3684  func (m *QueryCommunityPoolRequest) Unmarshal(dAtA []byte) error {
  3685  	l := len(dAtA)
  3686  	iNdEx := 0
  3687  	for iNdEx < l {
  3688  		preIndex := iNdEx
  3689  		var wire uint64
  3690  		for shift := uint(0); ; shift += 7 {
  3691  			if shift >= 64 {
  3692  				return ErrIntOverflowQuery
  3693  			}
  3694  			if iNdEx >= l {
  3695  				return io.ErrUnexpectedEOF
  3696  			}
  3697  			b := dAtA[iNdEx]
  3698  			iNdEx++
  3699  			wire |= uint64(b&0x7F) << shift
  3700  			if b < 0x80 {
  3701  				break
  3702  			}
  3703  		}
  3704  		fieldNum := int32(wire >> 3)
  3705  		wireType := int(wire & 0x7)
  3706  		if wireType == 4 {
  3707  			return fmt.Errorf("proto: QueryCommunityPoolRequest: wiretype end group for non-group")
  3708  		}
  3709  		if fieldNum <= 0 {
  3710  			return fmt.Errorf("proto: QueryCommunityPoolRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3711  		}
  3712  		switch fieldNum {
  3713  		default:
  3714  			iNdEx = preIndex
  3715  			skippy, err := skipQuery(dAtA[iNdEx:])
  3716  			if err != nil {
  3717  				return err
  3718  			}
  3719  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3720  				return ErrInvalidLengthQuery
  3721  			}
  3722  			if (iNdEx + skippy) > l {
  3723  				return io.ErrUnexpectedEOF
  3724  			}
  3725  			iNdEx += skippy
  3726  		}
  3727  	}
  3728  
  3729  	if iNdEx > l {
  3730  		return io.ErrUnexpectedEOF
  3731  	}
  3732  	return nil
  3733  }
  3734  func (m *QueryCommunityPoolResponse) Unmarshal(dAtA []byte) error {
  3735  	l := len(dAtA)
  3736  	iNdEx := 0
  3737  	for iNdEx < l {
  3738  		preIndex := iNdEx
  3739  		var wire uint64
  3740  		for shift := uint(0); ; shift += 7 {
  3741  			if shift >= 64 {
  3742  				return ErrIntOverflowQuery
  3743  			}
  3744  			if iNdEx >= l {
  3745  				return io.ErrUnexpectedEOF
  3746  			}
  3747  			b := dAtA[iNdEx]
  3748  			iNdEx++
  3749  			wire |= uint64(b&0x7F) << shift
  3750  			if b < 0x80 {
  3751  				break
  3752  			}
  3753  		}
  3754  		fieldNum := int32(wire >> 3)
  3755  		wireType := int(wire & 0x7)
  3756  		if wireType == 4 {
  3757  			return fmt.Errorf("proto: QueryCommunityPoolResponse: wiretype end group for non-group")
  3758  		}
  3759  		if fieldNum <= 0 {
  3760  			return fmt.Errorf("proto: QueryCommunityPoolResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3761  		}
  3762  		switch fieldNum {
  3763  		case 1:
  3764  			if wireType != 2 {
  3765  				return fmt.Errorf("proto: wrong wireType = %d for field Pool", wireType)
  3766  			}
  3767  			var msglen int
  3768  			for shift := uint(0); ; shift += 7 {
  3769  				if shift >= 64 {
  3770  					return ErrIntOverflowQuery
  3771  				}
  3772  				if iNdEx >= l {
  3773  					return io.ErrUnexpectedEOF
  3774  				}
  3775  				b := dAtA[iNdEx]
  3776  				iNdEx++
  3777  				msglen |= int(b&0x7F) << shift
  3778  				if b < 0x80 {
  3779  					break
  3780  				}
  3781  			}
  3782  			if msglen < 0 {
  3783  				return ErrInvalidLengthQuery
  3784  			}
  3785  			postIndex := iNdEx + msglen
  3786  			if postIndex < 0 {
  3787  				return ErrInvalidLengthQuery
  3788  			}
  3789  			if postIndex > l {
  3790  				return io.ErrUnexpectedEOF
  3791  			}
  3792  			m.Pool = append(m.Pool, types.DecCoin{})
  3793  			if err := m.Pool[len(m.Pool)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3794  				return err
  3795  			}
  3796  			iNdEx = postIndex
  3797  		default:
  3798  			iNdEx = preIndex
  3799  			skippy, err := skipQuery(dAtA[iNdEx:])
  3800  			if err != nil {
  3801  				return err
  3802  			}
  3803  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3804  				return ErrInvalidLengthQuery
  3805  			}
  3806  			if (iNdEx + skippy) > l {
  3807  				return io.ErrUnexpectedEOF
  3808  			}
  3809  			iNdEx += skippy
  3810  		}
  3811  	}
  3812  
  3813  	if iNdEx > l {
  3814  		return io.ErrUnexpectedEOF
  3815  	}
  3816  	return nil
  3817  }
  3818  func skipQuery(dAtA []byte) (n int, err error) {
  3819  	l := len(dAtA)
  3820  	iNdEx := 0
  3821  	depth := 0
  3822  	for iNdEx < l {
  3823  		var wire uint64
  3824  		for shift := uint(0); ; shift += 7 {
  3825  			if shift >= 64 {
  3826  				return 0, ErrIntOverflowQuery
  3827  			}
  3828  			if iNdEx >= l {
  3829  				return 0, io.ErrUnexpectedEOF
  3830  			}
  3831  			b := dAtA[iNdEx]
  3832  			iNdEx++
  3833  			wire |= (uint64(b) & 0x7F) << shift
  3834  			if b < 0x80 {
  3835  				break
  3836  			}
  3837  		}
  3838  		wireType := int(wire & 0x7)
  3839  		switch wireType {
  3840  		case 0:
  3841  			for shift := uint(0); ; shift += 7 {
  3842  				if shift >= 64 {
  3843  					return 0, ErrIntOverflowQuery
  3844  				}
  3845  				if iNdEx >= l {
  3846  					return 0, io.ErrUnexpectedEOF
  3847  				}
  3848  				iNdEx++
  3849  				if dAtA[iNdEx-1] < 0x80 {
  3850  					break
  3851  				}
  3852  			}
  3853  		case 1:
  3854  			iNdEx += 8
  3855  		case 2:
  3856  			var length int
  3857  			for shift := uint(0); ; shift += 7 {
  3858  				if shift >= 64 {
  3859  					return 0, ErrIntOverflowQuery
  3860  				}
  3861  				if iNdEx >= l {
  3862  					return 0, io.ErrUnexpectedEOF
  3863  				}
  3864  				b := dAtA[iNdEx]
  3865  				iNdEx++
  3866  				length |= (int(b) & 0x7F) << shift
  3867  				if b < 0x80 {
  3868  					break
  3869  				}
  3870  			}
  3871  			if length < 0 {
  3872  				return 0, ErrInvalidLengthQuery
  3873  			}
  3874  			iNdEx += length
  3875  		case 3:
  3876  			depth++
  3877  		case 4:
  3878  			if depth == 0 {
  3879  				return 0, ErrUnexpectedEndOfGroupQuery
  3880  			}
  3881  			depth--
  3882  		case 5:
  3883  			iNdEx += 4
  3884  		default:
  3885  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  3886  		}
  3887  		if iNdEx < 0 {
  3888  			return 0, ErrInvalidLengthQuery
  3889  		}
  3890  		if depth == 0 {
  3891  			return iNdEx, nil
  3892  		}
  3893  	}
  3894  	return 0, io.ErrUnexpectedEOF
  3895  }
  3896  
  3897  var (
  3898  	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
  3899  	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
  3900  	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
  3901  )