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