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