github.com/InjectiveLabs/sdk-go@v1.53.0/chain/ocr/types/query.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: injective/ocr/v1beta1/query.proto 3 4 package types 5 6 import ( 7 context "context" 8 fmt "fmt" 9 types "github.com/cosmos/cosmos-sdk/types" 10 _ "github.com/cosmos/gogoproto/gogoproto" 11 grpc1 "github.com/cosmos/gogoproto/grpc" 12 proto "github.com/cosmos/gogoproto/proto" 13 _ "google.golang.org/genproto/googleapis/api/annotations" 14 grpc "google.golang.org/grpc" 15 codes "google.golang.org/grpc/codes" 16 status "google.golang.org/grpc/status" 17 io "io" 18 math "math" 19 math_bits "math/bits" 20 ) 21 22 // Reference imports to suppress errors if they are not otherwise used. 23 var _ = proto.Marshal 24 var _ = fmt.Errorf 25 var _ = math.Inf 26 27 // This is a compile-time assertion to ensure that this generated file 28 // is compatible with the proto package it is being compiled against. 29 // A compilation error at this line likely means your copy of the 30 // proto package needs to be updated. 31 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 32 33 type QueryParamsRequest struct { 34 } 35 36 func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } 37 func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } 38 func (*QueryParamsRequest) ProtoMessage() {} 39 func (*QueryParamsRequest) Descriptor() ([]byte, []int) { 40 return fileDescriptor_9921480020d97b2c, []int{0} 41 } 42 func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { 43 return m.Unmarshal(b) 44 } 45 func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 46 if deterministic { 47 return xxx_messageInfo_QueryParamsRequest.Marshal(b, m, deterministic) 48 } else { 49 b = b[:cap(b)] 50 n, err := m.MarshalToSizedBuffer(b) 51 if err != nil { 52 return nil, err 53 } 54 return b[:n], nil 55 } 56 } 57 func (m *QueryParamsRequest) XXX_Merge(src proto.Message) { 58 xxx_messageInfo_QueryParamsRequest.Merge(m, src) 59 } 60 func (m *QueryParamsRequest) XXX_Size() int { 61 return m.Size() 62 } 63 func (m *QueryParamsRequest) XXX_DiscardUnknown() { 64 xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) 65 } 66 67 var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo 68 69 type QueryParamsResponse struct { 70 Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` 71 } 72 73 func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } 74 func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } 75 func (*QueryParamsResponse) ProtoMessage() {} 76 func (*QueryParamsResponse) Descriptor() ([]byte, []int) { 77 return fileDescriptor_9921480020d97b2c, []int{1} 78 } 79 func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { 80 return m.Unmarshal(b) 81 } 82 func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 83 if deterministic { 84 return xxx_messageInfo_QueryParamsResponse.Marshal(b, m, deterministic) 85 } else { 86 b = b[:cap(b)] 87 n, err := m.MarshalToSizedBuffer(b) 88 if err != nil { 89 return nil, err 90 } 91 return b[:n], nil 92 } 93 } 94 func (m *QueryParamsResponse) XXX_Merge(src proto.Message) { 95 xxx_messageInfo_QueryParamsResponse.Merge(m, src) 96 } 97 func (m *QueryParamsResponse) XXX_Size() int { 98 return m.Size() 99 } 100 func (m *QueryParamsResponse) XXX_DiscardUnknown() { 101 xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) 102 } 103 104 var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo 105 106 func (m *QueryParamsResponse) GetParams() Params { 107 if m != nil { 108 return m.Params 109 } 110 return Params{} 111 } 112 113 type QueryFeedConfigRequest struct { 114 FeedId string `protobuf:"bytes,1,opt,name=feed_id,json=feedId,proto3" json:"feed_id,omitempty"` 115 } 116 117 func (m *QueryFeedConfigRequest) Reset() { *m = QueryFeedConfigRequest{} } 118 func (m *QueryFeedConfigRequest) String() string { return proto.CompactTextString(m) } 119 func (*QueryFeedConfigRequest) ProtoMessage() {} 120 func (*QueryFeedConfigRequest) Descriptor() ([]byte, []int) { 121 return fileDescriptor_9921480020d97b2c, []int{2} 122 } 123 func (m *QueryFeedConfigRequest) XXX_Unmarshal(b []byte) error { 124 return m.Unmarshal(b) 125 } 126 func (m *QueryFeedConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 127 if deterministic { 128 return xxx_messageInfo_QueryFeedConfigRequest.Marshal(b, m, deterministic) 129 } else { 130 b = b[:cap(b)] 131 n, err := m.MarshalToSizedBuffer(b) 132 if err != nil { 133 return nil, err 134 } 135 return b[:n], nil 136 } 137 } 138 func (m *QueryFeedConfigRequest) XXX_Merge(src proto.Message) { 139 xxx_messageInfo_QueryFeedConfigRequest.Merge(m, src) 140 } 141 func (m *QueryFeedConfigRequest) XXX_Size() int { 142 return m.Size() 143 } 144 func (m *QueryFeedConfigRequest) XXX_DiscardUnknown() { 145 xxx_messageInfo_QueryFeedConfigRequest.DiscardUnknown(m) 146 } 147 148 var xxx_messageInfo_QueryFeedConfigRequest proto.InternalMessageInfo 149 150 func (m *QueryFeedConfigRequest) GetFeedId() string { 151 if m != nil { 152 return m.FeedId 153 } 154 return "" 155 } 156 157 type QueryFeedConfigResponse struct { 158 FeedConfigInfo *FeedConfigInfo `protobuf:"bytes,1,opt,name=feed_config_info,json=feedConfigInfo,proto3" json:"feed_config_info,omitempty"` 159 FeedConfig *FeedConfig `protobuf:"bytes,2,opt,name=feed_config,json=feedConfig,proto3" json:"feed_config,omitempty"` 160 } 161 162 func (m *QueryFeedConfigResponse) Reset() { *m = QueryFeedConfigResponse{} } 163 func (m *QueryFeedConfigResponse) String() string { return proto.CompactTextString(m) } 164 func (*QueryFeedConfigResponse) ProtoMessage() {} 165 func (*QueryFeedConfigResponse) Descriptor() ([]byte, []int) { 166 return fileDescriptor_9921480020d97b2c, []int{3} 167 } 168 func (m *QueryFeedConfigResponse) XXX_Unmarshal(b []byte) error { 169 return m.Unmarshal(b) 170 } 171 func (m *QueryFeedConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 172 if deterministic { 173 return xxx_messageInfo_QueryFeedConfigResponse.Marshal(b, m, deterministic) 174 } else { 175 b = b[:cap(b)] 176 n, err := m.MarshalToSizedBuffer(b) 177 if err != nil { 178 return nil, err 179 } 180 return b[:n], nil 181 } 182 } 183 func (m *QueryFeedConfigResponse) XXX_Merge(src proto.Message) { 184 xxx_messageInfo_QueryFeedConfigResponse.Merge(m, src) 185 } 186 func (m *QueryFeedConfigResponse) XXX_Size() int { 187 return m.Size() 188 } 189 func (m *QueryFeedConfigResponse) XXX_DiscardUnknown() { 190 xxx_messageInfo_QueryFeedConfigResponse.DiscardUnknown(m) 191 } 192 193 var xxx_messageInfo_QueryFeedConfigResponse proto.InternalMessageInfo 194 195 func (m *QueryFeedConfigResponse) GetFeedConfigInfo() *FeedConfigInfo { 196 if m != nil { 197 return m.FeedConfigInfo 198 } 199 return nil 200 } 201 202 func (m *QueryFeedConfigResponse) GetFeedConfig() *FeedConfig { 203 if m != nil { 204 return m.FeedConfig 205 } 206 return nil 207 } 208 209 type QueryFeedConfigInfoRequest struct { 210 FeedId string `protobuf:"bytes,1,opt,name=feed_id,json=feedId,proto3" json:"feed_id,omitempty"` 211 } 212 213 func (m *QueryFeedConfigInfoRequest) Reset() { *m = QueryFeedConfigInfoRequest{} } 214 func (m *QueryFeedConfigInfoRequest) String() string { return proto.CompactTextString(m) } 215 func (*QueryFeedConfigInfoRequest) ProtoMessage() {} 216 func (*QueryFeedConfigInfoRequest) Descriptor() ([]byte, []int) { 217 return fileDescriptor_9921480020d97b2c, []int{4} 218 } 219 func (m *QueryFeedConfigInfoRequest) XXX_Unmarshal(b []byte) error { 220 return m.Unmarshal(b) 221 } 222 func (m *QueryFeedConfigInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 223 if deterministic { 224 return xxx_messageInfo_QueryFeedConfigInfoRequest.Marshal(b, m, deterministic) 225 } else { 226 b = b[:cap(b)] 227 n, err := m.MarshalToSizedBuffer(b) 228 if err != nil { 229 return nil, err 230 } 231 return b[:n], nil 232 } 233 } 234 func (m *QueryFeedConfigInfoRequest) XXX_Merge(src proto.Message) { 235 xxx_messageInfo_QueryFeedConfigInfoRequest.Merge(m, src) 236 } 237 func (m *QueryFeedConfigInfoRequest) XXX_Size() int { 238 return m.Size() 239 } 240 func (m *QueryFeedConfigInfoRequest) XXX_DiscardUnknown() { 241 xxx_messageInfo_QueryFeedConfigInfoRequest.DiscardUnknown(m) 242 } 243 244 var xxx_messageInfo_QueryFeedConfigInfoRequest proto.InternalMessageInfo 245 246 func (m *QueryFeedConfigInfoRequest) GetFeedId() string { 247 if m != nil { 248 return m.FeedId 249 } 250 return "" 251 } 252 253 type QueryFeedConfigInfoResponse struct { 254 FeedConfigInfo *FeedConfigInfo `protobuf:"bytes,1,opt,name=feed_config_info,json=feedConfigInfo,proto3" json:"feed_config_info,omitempty"` 255 EpochAndRound *EpochAndRound `protobuf:"bytes,2,opt,name=epoch_and_round,json=epochAndRound,proto3" json:"epoch_and_round,omitempty"` 256 } 257 258 func (m *QueryFeedConfigInfoResponse) Reset() { *m = QueryFeedConfigInfoResponse{} } 259 func (m *QueryFeedConfigInfoResponse) String() string { return proto.CompactTextString(m) } 260 func (*QueryFeedConfigInfoResponse) ProtoMessage() {} 261 func (*QueryFeedConfigInfoResponse) Descriptor() ([]byte, []int) { 262 return fileDescriptor_9921480020d97b2c, []int{5} 263 } 264 func (m *QueryFeedConfigInfoResponse) XXX_Unmarshal(b []byte) error { 265 return m.Unmarshal(b) 266 } 267 func (m *QueryFeedConfigInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 268 if deterministic { 269 return xxx_messageInfo_QueryFeedConfigInfoResponse.Marshal(b, m, deterministic) 270 } else { 271 b = b[:cap(b)] 272 n, err := m.MarshalToSizedBuffer(b) 273 if err != nil { 274 return nil, err 275 } 276 return b[:n], nil 277 } 278 } 279 func (m *QueryFeedConfigInfoResponse) XXX_Merge(src proto.Message) { 280 xxx_messageInfo_QueryFeedConfigInfoResponse.Merge(m, src) 281 } 282 func (m *QueryFeedConfigInfoResponse) XXX_Size() int { 283 return m.Size() 284 } 285 func (m *QueryFeedConfigInfoResponse) XXX_DiscardUnknown() { 286 xxx_messageInfo_QueryFeedConfigInfoResponse.DiscardUnknown(m) 287 } 288 289 var xxx_messageInfo_QueryFeedConfigInfoResponse proto.InternalMessageInfo 290 291 func (m *QueryFeedConfigInfoResponse) GetFeedConfigInfo() *FeedConfigInfo { 292 if m != nil { 293 return m.FeedConfigInfo 294 } 295 return nil 296 } 297 298 func (m *QueryFeedConfigInfoResponse) GetEpochAndRound() *EpochAndRound { 299 if m != nil { 300 return m.EpochAndRound 301 } 302 return nil 303 } 304 305 type QueryLatestRoundRequest struct { 306 FeedId string `protobuf:"bytes,1,opt,name=feed_id,json=feedId,proto3" json:"feed_id,omitempty"` 307 } 308 309 func (m *QueryLatestRoundRequest) Reset() { *m = QueryLatestRoundRequest{} } 310 func (m *QueryLatestRoundRequest) String() string { return proto.CompactTextString(m) } 311 func (*QueryLatestRoundRequest) ProtoMessage() {} 312 func (*QueryLatestRoundRequest) Descriptor() ([]byte, []int) { 313 return fileDescriptor_9921480020d97b2c, []int{6} 314 } 315 func (m *QueryLatestRoundRequest) XXX_Unmarshal(b []byte) error { 316 return m.Unmarshal(b) 317 } 318 func (m *QueryLatestRoundRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 319 if deterministic { 320 return xxx_messageInfo_QueryLatestRoundRequest.Marshal(b, m, deterministic) 321 } else { 322 b = b[:cap(b)] 323 n, err := m.MarshalToSizedBuffer(b) 324 if err != nil { 325 return nil, err 326 } 327 return b[:n], nil 328 } 329 } 330 func (m *QueryLatestRoundRequest) XXX_Merge(src proto.Message) { 331 xxx_messageInfo_QueryLatestRoundRequest.Merge(m, src) 332 } 333 func (m *QueryLatestRoundRequest) XXX_Size() int { 334 return m.Size() 335 } 336 func (m *QueryLatestRoundRequest) XXX_DiscardUnknown() { 337 xxx_messageInfo_QueryLatestRoundRequest.DiscardUnknown(m) 338 } 339 340 var xxx_messageInfo_QueryLatestRoundRequest proto.InternalMessageInfo 341 342 func (m *QueryLatestRoundRequest) GetFeedId() string { 343 if m != nil { 344 return m.FeedId 345 } 346 return "" 347 } 348 349 type QueryLatestRoundResponse struct { 350 LatestRoundId uint64 `protobuf:"varint,1,opt,name=latest_round_id,json=latestRoundId,proto3" json:"latest_round_id,omitempty"` 351 Data *Transmission `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` 352 } 353 354 func (m *QueryLatestRoundResponse) Reset() { *m = QueryLatestRoundResponse{} } 355 func (m *QueryLatestRoundResponse) String() string { return proto.CompactTextString(m) } 356 func (*QueryLatestRoundResponse) ProtoMessage() {} 357 func (*QueryLatestRoundResponse) Descriptor() ([]byte, []int) { 358 return fileDescriptor_9921480020d97b2c, []int{7} 359 } 360 func (m *QueryLatestRoundResponse) XXX_Unmarshal(b []byte) error { 361 return m.Unmarshal(b) 362 } 363 func (m *QueryLatestRoundResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 364 if deterministic { 365 return xxx_messageInfo_QueryLatestRoundResponse.Marshal(b, m, deterministic) 366 } else { 367 b = b[:cap(b)] 368 n, err := m.MarshalToSizedBuffer(b) 369 if err != nil { 370 return nil, err 371 } 372 return b[:n], nil 373 } 374 } 375 func (m *QueryLatestRoundResponse) XXX_Merge(src proto.Message) { 376 xxx_messageInfo_QueryLatestRoundResponse.Merge(m, src) 377 } 378 func (m *QueryLatestRoundResponse) XXX_Size() int { 379 return m.Size() 380 } 381 func (m *QueryLatestRoundResponse) XXX_DiscardUnknown() { 382 xxx_messageInfo_QueryLatestRoundResponse.DiscardUnknown(m) 383 } 384 385 var xxx_messageInfo_QueryLatestRoundResponse proto.InternalMessageInfo 386 387 func (m *QueryLatestRoundResponse) GetLatestRoundId() uint64 { 388 if m != nil { 389 return m.LatestRoundId 390 } 391 return 0 392 } 393 394 func (m *QueryLatestRoundResponse) GetData() *Transmission { 395 if m != nil { 396 return m.Data 397 } 398 return nil 399 } 400 401 type QueryLatestTransmissionDetailsRequest struct { 402 FeedId string `protobuf:"bytes,1,opt,name=feed_id,json=feedId,proto3" json:"feed_id,omitempty"` 403 } 404 405 func (m *QueryLatestTransmissionDetailsRequest) Reset() { *m = QueryLatestTransmissionDetailsRequest{} } 406 func (m *QueryLatestTransmissionDetailsRequest) String() string { return proto.CompactTextString(m) } 407 func (*QueryLatestTransmissionDetailsRequest) ProtoMessage() {} 408 func (*QueryLatestTransmissionDetailsRequest) Descriptor() ([]byte, []int) { 409 return fileDescriptor_9921480020d97b2c, []int{8} 410 } 411 func (m *QueryLatestTransmissionDetailsRequest) XXX_Unmarshal(b []byte) error { 412 return m.Unmarshal(b) 413 } 414 func (m *QueryLatestTransmissionDetailsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 415 if deterministic { 416 return xxx_messageInfo_QueryLatestTransmissionDetailsRequest.Marshal(b, m, deterministic) 417 } else { 418 b = b[:cap(b)] 419 n, err := m.MarshalToSizedBuffer(b) 420 if err != nil { 421 return nil, err 422 } 423 return b[:n], nil 424 } 425 } 426 func (m *QueryLatestTransmissionDetailsRequest) XXX_Merge(src proto.Message) { 427 xxx_messageInfo_QueryLatestTransmissionDetailsRequest.Merge(m, src) 428 } 429 func (m *QueryLatestTransmissionDetailsRequest) XXX_Size() int { 430 return m.Size() 431 } 432 func (m *QueryLatestTransmissionDetailsRequest) XXX_DiscardUnknown() { 433 xxx_messageInfo_QueryLatestTransmissionDetailsRequest.DiscardUnknown(m) 434 } 435 436 var xxx_messageInfo_QueryLatestTransmissionDetailsRequest proto.InternalMessageInfo 437 438 func (m *QueryLatestTransmissionDetailsRequest) GetFeedId() string { 439 if m != nil { 440 return m.FeedId 441 } 442 return "" 443 } 444 445 type QueryLatestTransmissionDetailsResponse struct { 446 ConfigDigest []byte `protobuf:"bytes,1,opt,name=config_digest,json=configDigest,proto3" json:"config_digest,omitempty"` 447 EpochAndRound *EpochAndRound `protobuf:"bytes,2,opt,name=epoch_and_round,json=epochAndRound,proto3" json:"epoch_and_round,omitempty"` 448 Data *Transmission `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` 449 } 450 451 func (m *QueryLatestTransmissionDetailsResponse) Reset() { 452 *m = QueryLatestTransmissionDetailsResponse{} 453 } 454 func (m *QueryLatestTransmissionDetailsResponse) String() string { return proto.CompactTextString(m) } 455 func (*QueryLatestTransmissionDetailsResponse) ProtoMessage() {} 456 func (*QueryLatestTransmissionDetailsResponse) Descriptor() ([]byte, []int) { 457 return fileDescriptor_9921480020d97b2c, []int{9} 458 } 459 func (m *QueryLatestTransmissionDetailsResponse) XXX_Unmarshal(b []byte) error { 460 return m.Unmarshal(b) 461 } 462 func (m *QueryLatestTransmissionDetailsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 463 if deterministic { 464 return xxx_messageInfo_QueryLatestTransmissionDetailsResponse.Marshal(b, m, deterministic) 465 } else { 466 b = b[:cap(b)] 467 n, err := m.MarshalToSizedBuffer(b) 468 if err != nil { 469 return nil, err 470 } 471 return b[:n], nil 472 } 473 } 474 func (m *QueryLatestTransmissionDetailsResponse) XXX_Merge(src proto.Message) { 475 xxx_messageInfo_QueryLatestTransmissionDetailsResponse.Merge(m, src) 476 } 477 func (m *QueryLatestTransmissionDetailsResponse) XXX_Size() int { 478 return m.Size() 479 } 480 func (m *QueryLatestTransmissionDetailsResponse) XXX_DiscardUnknown() { 481 xxx_messageInfo_QueryLatestTransmissionDetailsResponse.DiscardUnknown(m) 482 } 483 484 var xxx_messageInfo_QueryLatestTransmissionDetailsResponse proto.InternalMessageInfo 485 486 func (m *QueryLatestTransmissionDetailsResponse) GetConfigDigest() []byte { 487 if m != nil { 488 return m.ConfigDigest 489 } 490 return nil 491 } 492 493 func (m *QueryLatestTransmissionDetailsResponse) GetEpochAndRound() *EpochAndRound { 494 if m != nil { 495 return m.EpochAndRound 496 } 497 return nil 498 } 499 500 func (m *QueryLatestTransmissionDetailsResponse) GetData() *Transmission { 501 if m != nil { 502 return m.Data 503 } 504 return nil 505 } 506 507 type QueryOwedAmountRequest struct { 508 Transmitter string `protobuf:"bytes,1,opt,name=transmitter,proto3" json:"transmitter,omitempty"` 509 } 510 511 func (m *QueryOwedAmountRequest) Reset() { *m = QueryOwedAmountRequest{} } 512 func (m *QueryOwedAmountRequest) String() string { return proto.CompactTextString(m) } 513 func (*QueryOwedAmountRequest) ProtoMessage() {} 514 func (*QueryOwedAmountRequest) Descriptor() ([]byte, []int) { 515 return fileDescriptor_9921480020d97b2c, []int{10} 516 } 517 func (m *QueryOwedAmountRequest) XXX_Unmarshal(b []byte) error { 518 return m.Unmarshal(b) 519 } 520 func (m *QueryOwedAmountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 521 if deterministic { 522 return xxx_messageInfo_QueryOwedAmountRequest.Marshal(b, m, deterministic) 523 } else { 524 b = b[:cap(b)] 525 n, err := m.MarshalToSizedBuffer(b) 526 if err != nil { 527 return nil, err 528 } 529 return b[:n], nil 530 } 531 } 532 func (m *QueryOwedAmountRequest) XXX_Merge(src proto.Message) { 533 xxx_messageInfo_QueryOwedAmountRequest.Merge(m, src) 534 } 535 func (m *QueryOwedAmountRequest) XXX_Size() int { 536 return m.Size() 537 } 538 func (m *QueryOwedAmountRequest) XXX_DiscardUnknown() { 539 xxx_messageInfo_QueryOwedAmountRequest.DiscardUnknown(m) 540 } 541 542 var xxx_messageInfo_QueryOwedAmountRequest proto.InternalMessageInfo 543 544 func (m *QueryOwedAmountRequest) GetTransmitter() string { 545 if m != nil { 546 return m.Transmitter 547 } 548 return "" 549 } 550 551 type QueryOwedAmountResponse struct { 552 Amount types.Coin `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount"` 553 } 554 555 func (m *QueryOwedAmountResponse) Reset() { *m = QueryOwedAmountResponse{} } 556 func (m *QueryOwedAmountResponse) String() string { return proto.CompactTextString(m) } 557 func (*QueryOwedAmountResponse) ProtoMessage() {} 558 func (*QueryOwedAmountResponse) Descriptor() ([]byte, []int) { 559 return fileDescriptor_9921480020d97b2c, []int{11} 560 } 561 func (m *QueryOwedAmountResponse) XXX_Unmarshal(b []byte) error { 562 return m.Unmarshal(b) 563 } 564 func (m *QueryOwedAmountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 565 if deterministic { 566 return xxx_messageInfo_QueryOwedAmountResponse.Marshal(b, m, deterministic) 567 } else { 568 b = b[:cap(b)] 569 n, err := m.MarshalToSizedBuffer(b) 570 if err != nil { 571 return nil, err 572 } 573 return b[:n], nil 574 } 575 } 576 func (m *QueryOwedAmountResponse) XXX_Merge(src proto.Message) { 577 xxx_messageInfo_QueryOwedAmountResponse.Merge(m, src) 578 } 579 func (m *QueryOwedAmountResponse) XXX_Size() int { 580 return m.Size() 581 } 582 func (m *QueryOwedAmountResponse) XXX_DiscardUnknown() { 583 xxx_messageInfo_QueryOwedAmountResponse.DiscardUnknown(m) 584 } 585 586 var xxx_messageInfo_QueryOwedAmountResponse proto.InternalMessageInfo 587 588 func (m *QueryOwedAmountResponse) GetAmount() types.Coin { 589 if m != nil { 590 return m.Amount 591 } 592 return types.Coin{} 593 } 594 595 type QueryModuleStateRequest struct { 596 } 597 598 func (m *QueryModuleStateRequest) Reset() { *m = QueryModuleStateRequest{} } 599 func (m *QueryModuleStateRequest) String() string { return proto.CompactTextString(m) } 600 func (*QueryModuleStateRequest) ProtoMessage() {} 601 func (*QueryModuleStateRequest) Descriptor() ([]byte, []int) { 602 return fileDescriptor_9921480020d97b2c, []int{12} 603 } 604 func (m *QueryModuleStateRequest) XXX_Unmarshal(b []byte) error { 605 return m.Unmarshal(b) 606 } 607 func (m *QueryModuleStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 608 if deterministic { 609 return xxx_messageInfo_QueryModuleStateRequest.Marshal(b, m, deterministic) 610 } else { 611 b = b[:cap(b)] 612 n, err := m.MarshalToSizedBuffer(b) 613 if err != nil { 614 return nil, err 615 } 616 return b[:n], nil 617 } 618 } 619 func (m *QueryModuleStateRequest) XXX_Merge(src proto.Message) { 620 xxx_messageInfo_QueryModuleStateRequest.Merge(m, src) 621 } 622 func (m *QueryModuleStateRequest) XXX_Size() int { 623 return m.Size() 624 } 625 func (m *QueryModuleStateRequest) XXX_DiscardUnknown() { 626 xxx_messageInfo_QueryModuleStateRequest.DiscardUnknown(m) 627 } 628 629 var xxx_messageInfo_QueryModuleStateRequest proto.InternalMessageInfo 630 631 type QueryModuleStateResponse struct { 632 State *GenesisState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` 633 } 634 635 func (m *QueryModuleStateResponse) Reset() { *m = QueryModuleStateResponse{} } 636 func (m *QueryModuleStateResponse) String() string { return proto.CompactTextString(m) } 637 func (*QueryModuleStateResponse) ProtoMessage() {} 638 func (*QueryModuleStateResponse) Descriptor() ([]byte, []int) { 639 return fileDescriptor_9921480020d97b2c, []int{13} 640 } 641 func (m *QueryModuleStateResponse) XXX_Unmarshal(b []byte) error { 642 return m.Unmarshal(b) 643 } 644 func (m *QueryModuleStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 645 if deterministic { 646 return xxx_messageInfo_QueryModuleStateResponse.Marshal(b, m, deterministic) 647 } else { 648 b = b[:cap(b)] 649 n, err := m.MarshalToSizedBuffer(b) 650 if err != nil { 651 return nil, err 652 } 653 return b[:n], nil 654 } 655 } 656 func (m *QueryModuleStateResponse) XXX_Merge(src proto.Message) { 657 xxx_messageInfo_QueryModuleStateResponse.Merge(m, src) 658 } 659 func (m *QueryModuleStateResponse) XXX_Size() int { 660 return m.Size() 661 } 662 func (m *QueryModuleStateResponse) XXX_DiscardUnknown() { 663 xxx_messageInfo_QueryModuleStateResponse.DiscardUnknown(m) 664 } 665 666 var xxx_messageInfo_QueryModuleStateResponse proto.InternalMessageInfo 667 668 func (m *QueryModuleStateResponse) GetState() *GenesisState { 669 if m != nil { 670 return m.State 671 } 672 return nil 673 } 674 675 func init() { 676 proto.RegisterType((*QueryParamsRequest)(nil), "injective.ocr.v1beta1.QueryParamsRequest") 677 proto.RegisterType((*QueryParamsResponse)(nil), "injective.ocr.v1beta1.QueryParamsResponse") 678 proto.RegisterType((*QueryFeedConfigRequest)(nil), "injective.ocr.v1beta1.QueryFeedConfigRequest") 679 proto.RegisterType((*QueryFeedConfigResponse)(nil), "injective.ocr.v1beta1.QueryFeedConfigResponse") 680 proto.RegisterType((*QueryFeedConfigInfoRequest)(nil), "injective.ocr.v1beta1.QueryFeedConfigInfoRequest") 681 proto.RegisterType((*QueryFeedConfigInfoResponse)(nil), "injective.ocr.v1beta1.QueryFeedConfigInfoResponse") 682 proto.RegisterType((*QueryLatestRoundRequest)(nil), "injective.ocr.v1beta1.QueryLatestRoundRequest") 683 proto.RegisterType((*QueryLatestRoundResponse)(nil), "injective.ocr.v1beta1.QueryLatestRoundResponse") 684 proto.RegisterType((*QueryLatestTransmissionDetailsRequest)(nil), "injective.ocr.v1beta1.QueryLatestTransmissionDetailsRequest") 685 proto.RegisterType((*QueryLatestTransmissionDetailsResponse)(nil), "injective.ocr.v1beta1.QueryLatestTransmissionDetailsResponse") 686 proto.RegisterType((*QueryOwedAmountRequest)(nil), "injective.ocr.v1beta1.QueryOwedAmountRequest") 687 proto.RegisterType((*QueryOwedAmountResponse)(nil), "injective.ocr.v1beta1.QueryOwedAmountResponse") 688 proto.RegisterType((*QueryModuleStateRequest)(nil), "injective.ocr.v1beta1.QueryModuleStateRequest") 689 proto.RegisterType((*QueryModuleStateResponse)(nil), "injective.ocr.v1beta1.QueryModuleStateResponse") 690 } 691 692 func init() { proto.RegisterFile("injective/ocr/v1beta1/query.proto", fileDescriptor_9921480020d97b2c) } 693 694 var fileDescriptor_9921480020d97b2c = []byte{ 695 // 891 bytes of a gzipped FileDescriptorProto 696 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xcf, 0x6f, 0x23, 0x35, 697 0x14, 0xce, 0x2c, 0xdd, 0xa0, 0x75, 0xb6, 0x5d, 0x64, 0x16, 0xb6, 0x1d, 0xd8, 0xb4, 0x9d, 0x90, 698 0x8a, 0x5f, 0x9d, 0x21, 0x29, 0x55, 0x29, 0x14, 0x44, 0x7f, 0x00, 0x8a, 0x54, 0x54, 0x18, 0xe0, 699 0xc2, 0x25, 0x72, 0x66, 0x9c, 0xa9, 0x21, 0xb1, 0xd3, 0xb1, 0xd3, 0xaa, 0xaa, 0x7a, 0xe1, 0xc0, 700 0x19, 0x89, 0x3b, 0x12, 0x07, 0xae, 0x1c, 0xb8, 0xc2, 0x1f, 0xd0, 0x63, 0x25, 0x38, 0x70, 0xaa, 701 0x50, 0xcb, 0x1f, 0x82, 0xc6, 0x76, 0x12, 0x87, 0xc9, 0x24, 0x29, 0x62, 0x6f, 0xf1, 0x9b, 0xf7, 702 0x7d, 0xef, 0x7b, 0xcf, 0xcf, 0x9f, 0x02, 0x96, 0x09, 0xfd, 0x0a, 0x07, 0x82, 0x1c, 0x63, 0x8f, 703 0x05, 0xb1, 0x77, 0x5c, 0x69, 0x60, 0x81, 0x2a, 0xde, 0x51, 0x17, 0xc7, 0xa7, 0x6e, 0x27, 0x66, 704 0x82, 0xc1, 0xe7, 0xfa, 0x29, 0x2e, 0x0b, 0x62, 0x57, 0xa7, 0xd8, 0x2f, 0x46, 0x8c, 0x45, 0x2d, 705 0xec, 0xa1, 0x0e, 0xf1, 0x10, 0xa5, 0x4c, 0x20, 0x41, 0x18, 0xe5, 0x0a, 0x64, 0x2f, 0x8e, 0xe6, 706 0x4d, 0x08, 0x54, 0xc2, 0xc3, 0x88, 0x45, 0x4c, 0xfe, 0xf4, 0x92, 0x5f, 0x3a, 0x5a, 0x0c, 0x18, 707 0x6f, 0x33, 0xee, 0x35, 0x10, 0xc7, 0x7d, 0x50, 0xc0, 0x08, 0xd5, 0xdf, 0x4b, 0xa3, 0x69, 0x23, 708 0x4c, 0x31, 0x27, 0xba, 0xb6, 0xf3, 0x10, 0xc0, 0x4f, 0x13, 0xfd, 0x9f, 0xa0, 0x18, 0xb5, 0xb9, 709 0x8f, 0x8f, 0xba, 0x98, 0x0b, 0xc7, 0x07, 0xcf, 0x0e, 0x45, 0x79, 0x87, 0x51, 0x8e, 0xe1, 0x3b, 710 0x20, 0xdf, 0x91, 0x91, 0x79, 0x6b, 0xc9, 0x7a, 0xb9, 0x50, 0x7d, 0xec, 0x8e, 0x6c, 0xd7, 0x55, 711 0xb0, 0x9d, 0x99, 0x8b, 0xab, 0xc5, 0x9c, 0xaf, 0x21, 0x4e, 0x05, 0x3c, 0x2f, 0x39, 0x3f, 0xc4, 712 0x38, 0xdc, 0x65, 0xb4, 0x49, 0x22, 0x5d, 0x0d, 0x3e, 0x02, 0x4f, 0x37, 0x31, 0x0e, 0xeb, 0x24, 713 0x94, 0xbc, 0xf7, 0xfc, 0x7c, 0x72, 0xac, 0x85, 0xce, 0xcf, 0x16, 0x78, 0x94, 0xc2, 0x68, 0x2d, 714 0x07, 0xe0, 0x19, 0x09, 0x0a, 0x64, 0xb8, 0x4e, 0x68, 0x93, 0x69, 0x55, 0xe5, 0x0c, 0x55, 0x03, 715 0x92, 0x1a, 0x6d, 0x32, 0x7f, 0xae, 0x39, 0x74, 0x86, 0x3b, 0xa0, 0x60, 0x10, 0xce, 0xdf, 0x91, 716 0x5c, 0xcb, 0x13, 0xb9, 0x7c, 0x30, 0xe0, 0x71, 0xd6, 0x81, 0xfd, 0x2f, 0xbd, 0xb2, 0xd4, 0xa4, 717 0x3e, 0x7f, 0xb3, 0xc0, 0x0b, 0x23, 0x71, 0x4f, 0xaa, 0xd7, 0x7d, 0xf0, 0x00, 0x77, 0x58, 0x70, 718 0x58, 0x47, 0x34, 0xac, 0xc7, 0xac, 0x4b, 0x43, 0xdd, 0xef, 0x4b, 0x19, 0x7c, 0x1f, 0x24, 0xd9, 719 0xdb, 0x34, 0xf4, 0x93, 0x5c, 0x7f, 0x16, 0x9b, 0x47, 0xa7, 0xaa, 0x6f, 0x69, 0x1f, 0x09, 0xcc, 720 0x85, 0x4a, 0x99, 0xd4, 0xf2, 0x19, 0x98, 0x4f, 0x63, 0x74, 0xbb, 0x2b, 0xe0, 0x41, 0x4b, 0x86, 721 0x95, 0xb4, 0x1e, 0x78, 0xc6, 0x9f, 0x6d, 0x0d, 0xb2, 0x6b, 0x21, 0xdc, 0x00, 0x33, 0x21, 0x12, 722 0x48, 0x4b, 0x2f, 0x65, 0x48, 0xff, 0x3c, 0x46, 0x94, 0xb7, 0x09, 0xe7, 0x84, 0x51, 0x5f, 0x02, 723 0x9c, 0xf7, 0x41, 0xd9, 0x28, 0x6e, 0x26, 0xec, 0x61, 0x81, 0x48, 0x8b, 0x4f, 0x94, 0xff, 0x87, 724 0x05, 0x56, 0x26, 0x51, 0xe8, 0x6e, 0x4a, 0x60, 0x56, 0xdf, 0x5b, 0x48, 0x22, 0xcc, 0x85, 0x64, 725 0xba, 0xef, 0xdf, 0x57, 0xc1, 0x3d, 0x19, 0xfb, 0x7f, 0x2f, 0xa4, 0x3f, 0x98, 0xa7, 0x6e, 0x3b, 726 0x98, 0xb7, 0xf5, 0x1b, 0x3d, 0x38, 0xc1, 0xe1, 0x76, 0x9b, 0x75, 0xa9, 0xe8, 0x4d, 0x62, 0x09, 727 0x14, 0x84, 0xca, 0x17, 0x02, 0xc7, 0x7a, 0x1a, 0x66, 0xc8, 0xf1, 0xf5, 0x16, 0x98, 0x58, 0x3d, 728 0x82, 0x0d, 0x90, 0x47, 0x32, 0xa2, 0xb7, 0x76, 0xc1, 0x55, 0xd6, 0xe5, 0x26, 0xd6, 0xd5, 0xd7, 729 0xb3, 0xcb, 0x08, 0xed, 0x79, 0x86, 0x4a, 0x77, 0x16, 0x34, 0xe7, 0xc7, 0x2c, 0xec, 0xb6, 0xf0, 730 0x67, 0x02, 0x09, 0xdc, 0xb3, 0xa8, 0x2f, 0xf4, 0x02, 0x0d, 0x7d, 0xd2, 0xf5, 0x36, 0xc1, 0x5d, 731 0x9e, 0x04, 0x74, 0xb9, 0xac, 0x01, 0x7c, 0xa4, 0x9c, 0x50, 0x61, 0x15, 0xa2, 0xfa, 0xeb, 0x3d, 732 0x70, 0x57, 0xf2, 0xc2, 0x6f, 0x2d, 0x90, 0x57, 0x46, 0x06, 0x5f, 0xc9, 0x20, 0x48, 0x3b, 0xa7, 733 0xfd, 0xea, 0x34, 0xa9, 0x4a, 0xa6, 0x53, 0xfe, 0xe6, 0xf7, 0xbf, 0xbf, 0xbf, 0xb3, 0x08, 0x1f, 734 0x7b, 0xc1, 0x21, 0x22, 0xb4, 0x45, 0xe8, 0xd7, 0x43, 0x4e, 0xad, 0x8c, 0x13, 0xfe, 0x68, 0x01, 735 0x30, 0x78, 0xcf, 0x70, 0x75, 0x5c, 0x85, 0x94, 0xb9, 0xda, 0xee, 0xb4, 0xe9, 0x5a, 0xd4, 0x9b, 736 0x52, 0x94, 0x0b, 0x5f, 0xcf, 0x10, 0x65, 0x18, 0x91, 0x77, 0xa6, 0x1f, 0xc7, 0x39, 0xfc, 0xc5, 737 0x02, 0x73, 0xc3, 0x9e, 0x03, 0x2b, 0xd3, 0x15, 0x36, 0x0c, 0xd2, 0xae, 0xde, 0x06, 0xa2, 0xf5, 738 0x6e, 0x4a, 0xbd, 0x6b, 0xb0, 0x32, 0x59, 0xaf, 0x34, 0x4e, 0x43, 0xf4, 0x4f, 0x16, 0x28, 0x18, 739 0xfe, 0x03, 0xc7, 0x8e, 0x2a, 0x6d, 0x6e, 0xb6, 0x37, 0x75, 0xbe, 0xd6, 0xba, 0x2e, 0xb5, 0x7a, 740 0x70, 0x35, 0x43, 0xab, 0xe9, 0x7a, 0x86, 0xce, 0x2b, 0x0b, 0x2c, 0x64, 0xfa, 0x0c, 0xdc, 0x9a, 741 0xac, 0x22, 0xdb, 0xe1, 0xec, 0x77, 0xff, 0x23, 0x5a, 0x77, 0xb4, 0x27, 0x3b, 0x7a, 0x0f, 0x6e, 742 0x8d, 0xef, 0x48, 0x18, 0x14, 0xf5, 0x50, 0x71, 0x0c, 0x5f, 0x04, 0x18, 0xd8, 0xc6, 0xf8, 0x0d, 743 0x4f, 0x59, 0xd3, 0xf8, 0x0d, 0x4f, 0xbb, 0x91, 0xf3, 0x96, 0xd4, 0x5c, 0x85, 0x6f, 0x64, 0x68, 744 0x66, 0x27, 0x38, 0xac, 0x2b, 0x03, 0xf2, 0xce, 0x0c, 0x87, 0x3b, 0x87, 0x3f, 0x58, 0x60, 0xee, 745 0x20, 0x88, 0x0d, 0xcb, 0x19, 0xbf, 0x33, 0x69, 0xdb, 0x1a, 0xbf, 0x33, 0x23, 0xbc, 0xcc, 0x79, 746 0x4d, 0xaa, 0x2d, 0xc3, 0x52, 0x86, 0xda, 0xb6, 0xc4, 0xd4, 0xa5, 0x7b, 0xed, 0x04, 0x17, 0xd7, 747 0x45, 0xeb, 0xf2, 0xba, 0x68, 0xfd, 0x75, 0x5d, 0xb4, 0xbe, 0xbb, 0x29, 0xe6, 0x2e, 0x6f, 0x8a, 748 0xb9, 0x3f, 0x6f, 0x8a, 0xb9, 0x2f, 0x6b, 0x11, 0x11, 0x87, 0xdd, 0x86, 0x1b, 0xb0, 0xb6, 0x57, 749 0xeb, 0x29, 0xd8, 0x47, 0x0d, 0xee, 0xf5, 0xf5, 0xac, 0x06, 0x2c, 0xc6, 0xe6, 0x31, 0xa9, 0xa7, 750 0xf9, 0xb9, 0xac, 0x29, 0x4e, 0x3b, 0x98, 0x37, 0xf2, 0xf2, 0x9f, 0xe3, 0xda, 0x3f, 0x01, 0x00, 751 0x00, 0xff, 0xff, 0x43, 0xc1, 0x8b, 0x1b, 0x0f, 0x0b, 0x00, 0x00, 752 } 753 754 // Reference imports to suppress errors if they are not otherwise used. 755 var _ context.Context 756 var _ grpc.ClientConn 757 758 // This is a compile-time assertion to ensure that this generated file 759 // is compatible with the grpc package it is being compiled against. 760 const _ = grpc.SupportPackageIsVersion4 761 762 // QueryClient is the client API for Query service. 763 // 764 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 765 type QueryClient interface { 766 Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) 767 // Retrieves the OCR FeedConfig for a given FeedId 768 FeedConfig(ctx context.Context, in *QueryFeedConfigRequest, opts ...grpc.CallOption) (*QueryFeedConfigResponse, error) 769 // Retrieves the OCR FeedConfigInfo for a given FeedId 770 FeedConfigInfo(ctx context.Context, in *QueryFeedConfigInfoRequest, opts ...grpc.CallOption) (*QueryFeedConfigInfoResponse, error) 771 // Retrieves latest round ID and data, including median answer for that round 772 LatestRound(ctx context.Context, in *QueryLatestRoundRequest, opts ...grpc.CallOption) (*QueryLatestRoundResponse, error) 773 // LatestTransmissionDetails returns details about the latest trasmission 774 // recorded on chain for the given feed ID. 775 LatestTransmissionDetails(ctx context.Context, in *QueryLatestTransmissionDetailsRequest, opts ...grpc.CallOption) (*QueryLatestTransmissionDetailsResponse, error) 776 // Retrieves transmitter's owed amount 777 OwedAmount(ctx context.Context, in *QueryOwedAmountRequest, opts ...grpc.CallOption) (*QueryOwedAmountResponse, error) 778 // Retrieves the entire OCR module's state 779 OcrModuleState(ctx context.Context, in *QueryModuleStateRequest, opts ...grpc.CallOption) (*QueryModuleStateResponse, error) 780 } 781 782 type queryClient struct { 783 cc grpc1.ClientConn 784 } 785 786 func NewQueryClient(cc grpc1.ClientConn) QueryClient { 787 return &queryClient{cc} 788 } 789 790 func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { 791 out := new(QueryParamsResponse) 792 err := c.cc.Invoke(ctx, "/injective.ocr.v1beta1.Query/Params", in, out, opts...) 793 if err != nil { 794 return nil, err 795 } 796 return out, nil 797 } 798 799 func (c *queryClient) FeedConfig(ctx context.Context, in *QueryFeedConfigRequest, opts ...grpc.CallOption) (*QueryFeedConfigResponse, error) { 800 out := new(QueryFeedConfigResponse) 801 err := c.cc.Invoke(ctx, "/injective.ocr.v1beta1.Query/FeedConfig", in, out, opts...) 802 if err != nil { 803 return nil, err 804 } 805 return out, nil 806 } 807 808 func (c *queryClient) FeedConfigInfo(ctx context.Context, in *QueryFeedConfigInfoRequest, opts ...grpc.CallOption) (*QueryFeedConfigInfoResponse, error) { 809 out := new(QueryFeedConfigInfoResponse) 810 err := c.cc.Invoke(ctx, "/injective.ocr.v1beta1.Query/FeedConfigInfo", in, out, opts...) 811 if err != nil { 812 return nil, err 813 } 814 return out, nil 815 } 816 817 func (c *queryClient) LatestRound(ctx context.Context, in *QueryLatestRoundRequest, opts ...grpc.CallOption) (*QueryLatestRoundResponse, error) { 818 out := new(QueryLatestRoundResponse) 819 err := c.cc.Invoke(ctx, "/injective.ocr.v1beta1.Query/LatestRound", in, out, opts...) 820 if err != nil { 821 return nil, err 822 } 823 return out, nil 824 } 825 826 func (c *queryClient) LatestTransmissionDetails(ctx context.Context, in *QueryLatestTransmissionDetailsRequest, opts ...grpc.CallOption) (*QueryLatestTransmissionDetailsResponse, error) { 827 out := new(QueryLatestTransmissionDetailsResponse) 828 err := c.cc.Invoke(ctx, "/injective.ocr.v1beta1.Query/LatestTransmissionDetails", in, out, opts...) 829 if err != nil { 830 return nil, err 831 } 832 return out, nil 833 } 834 835 func (c *queryClient) OwedAmount(ctx context.Context, in *QueryOwedAmountRequest, opts ...grpc.CallOption) (*QueryOwedAmountResponse, error) { 836 out := new(QueryOwedAmountResponse) 837 err := c.cc.Invoke(ctx, "/injective.ocr.v1beta1.Query/OwedAmount", in, out, opts...) 838 if err != nil { 839 return nil, err 840 } 841 return out, nil 842 } 843 844 func (c *queryClient) OcrModuleState(ctx context.Context, in *QueryModuleStateRequest, opts ...grpc.CallOption) (*QueryModuleStateResponse, error) { 845 out := new(QueryModuleStateResponse) 846 err := c.cc.Invoke(ctx, "/injective.ocr.v1beta1.Query/OcrModuleState", in, out, opts...) 847 if err != nil { 848 return nil, err 849 } 850 return out, nil 851 } 852 853 // QueryServer is the server API for Query service. 854 type QueryServer interface { 855 Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) 856 // Retrieves the OCR FeedConfig for a given FeedId 857 FeedConfig(context.Context, *QueryFeedConfigRequest) (*QueryFeedConfigResponse, error) 858 // Retrieves the OCR FeedConfigInfo for a given FeedId 859 FeedConfigInfo(context.Context, *QueryFeedConfigInfoRequest) (*QueryFeedConfigInfoResponse, error) 860 // Retrieves latest round ID and data, including median answer for that round 861 LatestRound(context.Context, *QueryLatestRoundRequest) (*QueryLatestRoundResponse, error) 862 // LatestTransmissionDetails returns details about the latest trasmission 863 // recorded on chain for the given feed ID. 864 LatestTransmissionDetails(context.Context, *QueryLatestTransmissionDetailsRequest) (*QueryLatestTransmissionDetailsResponse, error) 865 // Retrieves transmitter's owed amount 866 OwedAmount(context.Context, *QueryOwedAmountRequest) (*QueryOwedAmountResponse, error) 867 // Retrieves the entire OCR module's state 868 OcrModuleState(context.Context, *QueryModuleStateRequest) (*QueryModuleStateResponse, error) 869 } 870 871 // UnimplementedQueryServer can be embedded to have forward compatible implementations. 872 type UnimplementedQueryServer struct { 873 } 874 875 func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { 876 return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") 877 } 878 func (*UnimplementedQueryServer) FeedConfig(ctx context.Context, req *QueryFeedConfigRequest) (*QueryFeedConfigResponse, error) { 879 return nil, status.Errorf(codes.Unimplemented, "method FeedConfig not implemented") 880 } 881 func (*UnimplementedQueryServer) FeedConfigInfo(ctx context.Context, req *QueryFeedConfigInfoRequest) (*QueryFeedConfigInfoResponse, error) { 882 return nil, status.Errorf(codes.Unimplemented, "method FeedConfigInfo not implemented") 883 } 884 func (*UnimplementedQueryServer) LatestRound(ctx context.Context, req *QueryLatestRoundRequest) (*QueryLatestRoundResponse, error) { 885 return nil, status.Errorf(codes.Unimplemented, "method LatestRound not implemented") 886 } 887 func (*UnimplementedQueryServer) LatestTransmissionDetails(ctx context.Context, req *QueryLatestTransmissionDetailsRequest) (*QueryLatestTransmissionDetailsResponse, error) { 888 return nil, status.Errorf(codes.Unimplemented, "method LatestTransmissionDetails not implemented") 889 } 890 func (*UnimplementedQueryServer) OwedAmount(ctx context.Context, req *QueryOwedAmountRequest) (*QueryOwedAmountResponse, error) { 891 return nil, status.Errorf(codes.Unimplemented, "method OwedAmount not implemented") 892 } 893 func (*UnimplementedQueryServer) OcrModuleState(ctx context.Context, req *QueryModuleStateRequest) (*QueryModuleStateResponse, error) { 894 return nil, status.Errorf(codes.Unimplemented, "method OcrModuleState not implemented") 895 } 896 897 func RegisterQueryServer(s grpc1.Server, srv QueryServer) { 898 s.RegisterService(&_Query_serviceDesc, srv) 899 } 900 901 func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 902 in := new(QueryParamsRequest) 903 if err := dec(in); err != nil { 904 return nil, err 905 } 906 if interceptor == nil { 907 return srv.(QueryServer).Params(ctx, in) 908 } 909 info := &grpc.UnaryServerInfo{ 910 Server: srv, 911 FullMethod: "/injective.ocr.v1beta1.Query/Params", 912 } 913 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 914 return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) 915 } 916 return interceptor(ctx, in, info, handler) 917 } 918 919 func _Query_FeedConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 920 in := new(QueryFeedConfigRequest) 921 if err := dec(in); err != nil { 922 return nil, err 923 } 924 if interceptor == nil { 925 return srv.(QueryServer).FeedConfig(ctx, in) 926 } 927 info := &grpc.UnaryServerInfo{ 928 Server: srv, 929 FullMethod: "/injective.ocr.v1beta1.Query/FeedConfig", 930 } 931 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 932 return srv.(QueryServer).FeedConfig(ctx, req.(*QueryFeedConfigRequest)) 933 } 934 return interceptor(ctx, in, info, handler) 935 } 936 937 func _Query_FeedConfigInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 938 in := new(QueryFeedConfigInfoRequest) 939 if err := dec(in); err != nil { 940 return nil, err 941 } 942 if interceptor == nil { 943 return srv.(QueryServer).FeedConfigInfo(ctx, in) 944 } 945 info := &grpc.UnaryServerInfo{ 946 Server: srv, 947 FullMethod: "/injective.ocr.v1beta1.Query/FeedConfigInfo", 948 } 949 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 950 return srv.(QueryServer).FeedConfigInfo(ctx, req.(*QueryFeedConfigInfoRequest)) 951 } 952 return interceptor(ctx, in, info, handler) 953 } 954 955 func _Query_LatestRound_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 956 in := new(QueryLatestRoundRequest) 957 if err := dec(in); err != nil { 958 return nil, err 959 } 960 if interceptor == nil { 961 return srv.(QueryServer).LatestRound(ctx, in) 962 } 963 info := &grpc.UnaryServerInfo{ 964 Server: srv, 965 FullMethod: "/injective.ocr.v1beta1.Query/LatestRound", 966 } 967 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 968 return srv.(QueryServer).LatestRound(ctx, req.(*QueryLatestRoundRequest)) 969 } 970 return interceptor(ctx, in, info, handler) 971 } 972 973 func _Query_LatestTransmissionDetails_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 974 in := new(QueryLatestTransmissionDetailsRequest) 975 if err := dec(in); err != nil { 976 return nil, err 977 } 978 if interceptor == nil { 979 return srv.(QueryServer).LatestTransmissionDetails(ctx, in) 980 } 981 info := &grpc.UnaryServerInfo{ 982 Server: srv, 983 FullMethod: "/injective.ocr.v1beta1.Query/LatestTransmissionDetails", 984 } 985 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 986 return srv.(QueryServer).LatestTransmissionDetails(ctx, req.(*QueryLatestTransmissionDetailsRequest)) 987 } 988 return interceptor(ctx, in, info, handler) 989 } 990 991 func _Query_OwedAmount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 992 in := new(QueryOwedAmountRequest) 993 if err := dec(in); err != nil { 994 return nil, err 995 } 996 if interceptor == nil { 997 return srv.(QueryServer).OwedAmount(ctx, in) 998 } 999 info := &grpc.UnaryServerInfo{ 1000 Server: srv, 1001 FullMethod: "/injective.ocr.v1beta1.Query/OwedAmount", 1002 } 1003 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1004 return srv.(QueryServer).OwedAmount(ctx, req.(*QueryOwedAmountRequest)) 1005 } 1006 return interceptor(ctx, in, info, handler) 1007 } 1008 1009 func _Query_OcrModuleState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1010 in := new(QueryModuleStateRequest) 1011 if err := dec(in); err != nil { 1012 return nil, err 1013 } 1014 if interceptor == nil { 1015 return srv.(QueryServer).OcrModuleState(ctx, in) 1016 } 1017 info := &grpc.UnaryServerInfo{ 1018 Server: srv, 1019 FullMethod: "/injective.ocr.v1beta1.Query/OcrModuleState", 1020 } 1021 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1022 return srv.(QueryServer).OcrModuleState(ctx, req.(*QueryModuleStateRequest)) 1023 } 1024 return interceptor(ctx, in, info, handler) 1025 } 1026 1027 var _Query_serviceDesc = grpc.ServiceDesc{ 1028 ServiceName: "injective.ocr.v1beta1.Query", 1029 HandlerType: (*QueryServer)(nil), 1030 Methods: []grpc.MethodDesc{ 1031 { 1032 MethodName: "Params", 1033 Handler: _Query_Params_Handler, 1034 }, 1035 { 1036 MethodName: "FeedConfig", 1037 Handler: _Query_FeedConfig_Handler, 1038 }, 1039 { 1040 MethodName: "FeedConfigInfo", 1041 Handler: _Query_FeedConfigInfo_Handler, 1042 }, 1043 { 1044 MethodName: "LatestRound", 1045 Handler: _Query_LatestRound_Handler, 1046 }, 1047 { 1048 MethodName: "LatestTransmissionDetails", 1049 Handler: _Query_LatestTransmissionDetails_Handler, 1050 }, 1051 { 1052 MethodName: "OwedAmount", 1053 Handler: _Query_OwedAmount_Handler, 1054 }, 1055 { 1056 MethodName: "OcrModuleState", 1057 Handler: _Query_OcrModuleState_Handler, 1058 }, 1059 }, 1060 Streams: []grpc.StreamDesc{}, 1061 Metadata: "injective/ocr/v1beta1/query.proto", 1062 } 1063 1064 func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { 1065 size := m.Size() 1066 dAtA = make([]byte, size) 1067 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1068 if err != nil { 1069 return nil, err 1070 } 1071 return dAtA[:n], nil 1072 } 1073 1074 func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { 1075 size := m.Size() 1076 return m.MarshalToSizedBuffer(dAtA[:size]) 1077 } 1078 1079 func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1080 i := len(dAtA) 1081 _ = i 1082 var l int 1083 _ = l 1084 return len(dAtA) - i, nil 1085 } 1086 1087 func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) { 1088 size := m.Size() 1089 dAtA = make([]byte, size) 1090 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1091 if err != nil { 1092 return nil, err 1093 } 1094 return dAtA[:n], nil 1095 } 1096 1097 func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { 1098 size := m.Size() 1099 return m.MarshalToSizedBuffer(dAtA[:size]) 1100 } 1101 1102 func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1103 i := len(dAtA) 1104 _ = i 1105 var l int 1106 _ = l 1107 { 1108 size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) 1109 if err != nil { 1110 return 0, err 1111 } 1112 i -= size 1113 i = encodeVarintQuery(dAtA, i, uint64(size)) 1114 } 1115 i-- 1116 dAtA[i] = 0xa 1117 return len(dAtA) - i, nil 1118 } 1119 1120 func (m *QueryFeedConfigRequest) Marshal() (dAtA []byte, err error) { 1121 size := m.Size() 1122 dAtA = make([]byte, size) 1123 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1124 if err != nil { 1125 return nil, err 1126 } 1127 return dAtA[:n], nil 1128 } 1129 1130 func (m *QueryFeedConfigRequest) MarshalTo(dAtA []byte) (int, error) { 1131 size := m.Size() 1132 return m.MarshalToSizedBuffer(dAtA[:size]) 1133 } 1134 1135 func (m *QueryFeedConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1136 i := len(dAtA) 1137 _ = i 1138 var l int 1139 _ = l 1140 if len(m.FeedId) > 0 { 1141 i -= len(m.FeedId) 1142 copy(dAtA[i:], m.FeedId) 1143 i = encodeVarintQuery(dAtA, i, uint64(len(m.FeedId))) 1144 i-- 1145 dAtA[i] = 0xa 1146 } 1147 return len(dAtA) - i, nil 1148 } 1149 1150 func (m *QueryFeedConfigResponse) Marshal() (dAtA []byte, err error) { 1151 size := m.Size() 1152 dAtA = make([]byte, size) 1153 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1154 if err != nil { 1155 return nil, err 1156 } 1157 return dAtA[:n], nil 1158 } 1159 1160 func (m *QueryFeedConfigResponse) MarshalTo(dAtA []byte) (int, error) { 1161 size := m.Size() 1162 return m.MarshalToSizedBuffer(dAtA[:size]) 1163 } 1164 1165 func (m *QueryFeedConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1166 i := len(dAtA) 1167 _ = i 1168 var l int 1169 _ = l 1170 if m.FeedConfig != nil { 1171 { 1172 size, err := m.FeedConfig.MarshalToSizedBuffer(dAtA[:i]) 1173 if err != nil { 1174 return 0, err 1175 } 1176 i -= size 1177 i = encodeVarintQuery(dAtA, i, uint64(size)) 1178 } 1179 i-- 1180 dAtA[i] = 0x12 1181 } 1182 if m.FeedConfigInfo != nil { 1183 { 1184 size, err := m.FeedConfigInfo.MarshalToSizedBuffer(dAtA[:i]) 1185 if err != nil { 1186 return 0, err 1187 } 1188 i -= size 1189 i = encodeVarintQuery(dAtA, i, uint64(size)) 1190 } 1191 i-- 1192 dAtA[i] = 0xa 1193 } 1194 return len(dAtA) - i, nil 1195 } 1196 1197 func (m *QueryFeedConfigInfoRequest) Marshal() (dAtA []byte, err error) { 1198 size := m.Size() 1199 dAtA = make([]byte, size) 1200 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1201 if err != nil { 1202 return nil, err 1203 } 1204 return dAtA[:n], nil 1205 } 1206 1207 func (m *QueryFeedConfigInfoRequest) MarshalTo(dAtA []byte) (int, error) { 1208 size := m.Size() 1209 return m.MarshalToSizedBuffer(dAtA[:size]) 1210 } 1211 1212 func (m *QueryFeedConfigInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1213 i := len(dAtA) 1214 _ = i 1215 var l int 1216 _ = l 1217 if len(m.FeedId) > 0 { 1218 i -= len(m.FeedId) 1219 copy(dAtA[i:], m.FeedId) 1220 i = encodeVarintQuery(dAtA, i, uint64(len(m.FeedId))) 1221 i-- 1222 dAtA[i] = 0xa 1223 } 1224 return len(dAtA) - i, nil 1225 } 1226 1227 func (m *QueryFeedConfigInfoResponse) Marshal() (dAtA []byte, err error) { 1228 size := m.Size() 1229 dAtA = make([]byte, size) 1230 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1231 if err != nil { 1232 return nil, err 1233 } 1234 return dAtA[:n], nil 1235 } 1236 1237 func (m *QueryFeedConfigInfoResponse) MarshalTo(dAtA []byte) (int, error) { 1238 size := m.Size() 1239 return m.MarshalToSizedBuffer(dAtA[:size]) 1240 } 1241 1242 func (m *QueryFeedConfigInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1243 i := len(dAtA) 1244 _ = i 1245 var l int 1246 _ = l 1247 if m.EpochAndRound != nil { 1248 { 1249 size, err := m.EpochAndRound.MarshalToSizedBuffer(dAtA[:i]) 1250 if err != nil { 1251 return 0, err 1252 } 1253 i -= size 1254 i = encodeVarintQuery(dAtA, i, uint64(size)) 1255 } 1256 i-- 1257 dAtA[i] = 0x12 1258 } 1259 if m.FeedConfigInfo != nil { 1260 { 1261 size, err := m.FeedConfigInfo.MarshalToSizedBuffer(dAtA[:i]) 1262 if err != nil { 1263 return 0, err 1264 } 1265 i -= size 1266 i = encodeVarintQuery(dAtA, i, uint64(size)) 1267 } 1268 i-- 1269 dAtA[i] = 0xa 1270 } 1271 return len(dAtA) - i, nil 1272 } 1273 1274 func (m *QueryLatestRoundRequest) Marshal() (dAtA []byte, err error) { 1275 size := m.Size() 1276 dAtA = make([]byte, size) 1277 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1278 if err != nil { 1279 return nil, err 1280 } 1281 return dAtA[:n], nil 1282 } 1283 1284 func (m *QueryLatestRoundRequest) MarshalTo(dAtA []byte) (int, error) { 1285 size := m.Size() 1286 return m.MarshalToSizedBuffer(dAtA[:size]) 1287 } 1288 1289 func (m *QueryLatestRoundRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1290 i := len(dAtA) 1291 _ = i 1292 var l int 1293 _ = l 1294 if len(m.FeedId) > 0 { 1295 i -= len(m.FeedId) 1296 copy(dAtA[i:], m.FeedId) 1297 i = encodeVarintQuery(dAtA, i, uint64(len(m.FeedId))) 1298 i-- 1299 dAtA[i] = 0xa 1300 } 1301 return len(dAtA) - i, nil 1302 } 1303 1304 func (m *QueryLatestRoundResponse) Marshal() (dAtA []byte, err error) { 1305 size := m.Size() 1306 dAtA = make([]byte, size) 1307 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1308 if err != nil { 1309 return nil, err 1310 } 1311 return dAtA[:n], nil 1312 } 1313 1314 func (m *QueryLatestRoundResponse) MarshalTo(dAtA []byte) (int, error) { 1315 size := m.Size() 1316 return m.MarshalToSizedBuffer(dAtA[:size]) 1317 } 1318 1319 func (m *QueryLatestRoundResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1320 i := len(dAtA) 1321 _ = i 1322 var l int 1323 _ = l 1324 if m.Data != nil { 1325 { 1326 size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) 1327 if err != nil { 1328 return 0, err 1329 } 1330 i -= size 1331 i = encodeVarintQuery(dAtA, i, uint64(size)) 1332 } 1333 i-- 1334 dAtA[i] = 0x12 1335 } 1336 if m.LatestRoundId != 0 { 1337 i = encodeVarintQuery(dAtA, i, uint64(m.LatestRoundId)) 1338 i-- 1339 dAtA[i] = 0x8 1340 } 1341 return len(dAtA) - i, nil 1342 } 1343 1344 func (m *QueryLatestTransmissionDetailsRequest) Marshal() (dAtA []byte, err error) { 1345 size := m.Size() 1346 dAtA = make([]byte, size) 1347 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1348 if err != nil { 1349 return nil, err 1350 } 1351 return dAtA[:n], nil 1352 } 1353 1354 func (m *QueryLatestTransmissionDetailsRequest) MarshalTo(dAtA []byte) (int, error) { 1355 size := m.Size() 1356 return m.MarshalToSizedBuffer(dAtA[:size]) 1357 } 1358 1359 func (m *QueryLatestTransmissionDetailsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1360 i := len(dAtA) 1361 _ = i 1362 var l int 1363 _ = l 1364 if len(m.FeedId) > 0 { 1365 i -= len(m.FeedId) 1366 copy(dAtA[i:], m.FeedId) 1367 i = encodeVarintQuery(dAtA, i, uint64(len(m.FeedId))) 1368 i-- 1369 dAtA[i] = 0xa 1370 } 1371 return len(dAtA) - i, nil 1372 } 1373 1374 func (m *QueryLatestTransmissionDetailsResponse) Marshal() (dAtA []byte, err error) { 1375 size := m.Size() 1376 dAtA = make([]byte, size) 1377 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1378 if err != nil { 1379 return nil, err 1380 } 1381 return dAtA[:n], nil 1382 } 1383 1384 func (m *QueryLatestTransmissionDetailsResponse) MarshalTo(dAtA []byte) (int, error) { 1385 size := m.Size() 1386 return m.MarshalToSizedBuffer(dAtA[:size]) 1387 } 1388 1389 func (m *QueryLatestTransmissionDetailsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1390 i := len(dAtA) 1391 _ = i 1392 var l int 1393 _ = l 1394 if m.Data != nil { 1395 { 1396 size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) 1397 if err != nil { 1398 return 0, err 1399 } 1400 i -= size 1401 i = encodeVarintQuery(dAtA, i, uint64(size)) 1402 } 1403 i-- 1404 dAtA[i] = 0x1a 1405 } 1406 if m.EpochAndRound != nil { 1407 { 1408 size, err := m.EpochAndRound.MarshalToSizedBuffer(dAtA[:i]) 1409 if err != nil { 1410 return 0, err 1411 } 1412 i -= size 1413 i = encodeVarintQuery(dAtA, i, uint64(size)) 1414 } 1415 i-- 1416 dAtA[i] = 0x12 1417 } 1418 if len(m.ConfigDigest) > 0 { 1419 i -= len(m.ConfigDigest) 1420 copy(dAtA[i:], m.ConfigDigest) 1421 i = encodeVarintQuery(dAtA, i, uint64(len(m.ConfigDigest))) 1422 i-- 1423 dAtA[i] = 0xa 1424 } 1425 return len(dAtA) - i, nil 1426 } 1427 1428 func (m *QueryOwedAmountRequest) Marshal() (dAtA []byte, err error) { 1429 size := m.Size() 1430 dAtA = make([]byte, size) 1431 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1432 if err != nil { 1433 return nil, err 1434 } 1435 return dAtA[:n], nil 1436 } 1437 1438 func (m *QueryOwedAmountRequest) MarshalTo(dAtA []byte) (int, error) { 1439 size := m.Size() 1440 return m.MarshalToSizedBuffer(dAtA[:size]) 1441 } 1442 1443 func (m *QueryOwedAmountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1444 i := len(dAtA) 1445 _ = i 1446 var l int 1447 _ = l 1448 if len(m.Transmitter) > 0 { 1449 i -= len(m.Transmitter) 1450 copy(dAtA[i:], m.Transmitter) 1451 i = encodeVarintQuery(dAtA, i, uint64(len(m.Transmitter))) 1452 i-- 1453 dAtA[i] = 0xa 1454 } 1455 return len(dAtA) - i, nil 1456 } 1457 1458 func (m *QueryOwedAmountResponse) Marshal() (dAtA []byte, err error) { 1459 size := m.Size() 1460 dAtA = make([]byte, size) 1461 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1462 if err != nil { 1463 return nil, err 1464 } 1465 return dAtA[:n], nil 1466 } 1467 1468 func (m *QueryOwedAmountResponse) MarshalTo(dAtA []byte) (int, error) { 1469 size := m.Size() 1470 return m.MarshalToSizedBuffer(dAtA[:size]) 1471 } 1472 1473 func (m *QueryOwedAmountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1474 i := len(dAtA) 1475 _ = i 1476 var l int 1477 _ = l 1478 { 1479 size, err := m.Amount.MarshalToSizedBuffer(dAtA[:i]) 1480 if err != nil { 1481 return 0, err 1482 } 1483 i -= size 1484 i = encodeVarintQuery(dAtA, i, uint64(size)) 1485 } 1486 i-- 1487 dAtA[i] = 0xa 1488 return len(dAtA) - i, nil 1489 } 1490 1491 func (m *QueryModuleStateRequest) Marshal() (dAtA []byte, err error) { 1492 size := m.Size() 1493 dAtA = make([]byte, size) 1494 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1495 if err != nil { 1496 return nil, err 1497 } 1498 return dAtA[:n], nil 1499 } 1500 1501 func (m *QueryModuleStateRequest) MarshalTo(dAtA []byte) (int, error) { 1502 size := m.Size() 1503 return m.MarshalToSizedBuffer(dAtA[:size]) 1504 } 1505 1506 func (m *QueryModuleStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1507 i := len(dAtA) 1508 _ = i 1509 var l int 1510 _ = l 1511 return len(dAtA) - i, nil 1512 } 1513 1514 func (m *QueryModuleStateResponse) Marshal() (dAtA []byte, err error) { 1515 size := m.Size() 1516 dAtA = make([]byte, size) 1517 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1518 if err != nil { 1519 return nil, err 1520 } 1521 return dAtA[:n], nil 1522 } 1523 1524 func (m *QueryModuleStateResponse) MarshalTo(dAtA []byte) (int, error) { 1525 size := m.Size() 1526 return m.MarshalToSizedBuffer(dAtA[:size]) 1527 } 1528 1529 func (m *QueryModuleStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1530 i := len(dAtA) 1531 _ = i 1532 var l int 1533 _ = l 1534 if m.State != nil { 1535 { 1536 size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) 1537 if err != nil { 1538 return 0, err 1539 } 1540 i -= size 1541 i = encodeVarintQuery(dAtA, i, uint64(size)) 1542 } 1543 i-- 1544 dAtA[i] = 0xa 1545 } 1546 return len(dAtA) - i, nil 1547 } 1548 1549 func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { 1550 offset -= sovQuery(v) 1551 base := offset 1552 for v >= 1<<7 { 1553 dAtA[offset] = uint8(v&0x7f | 0x80) 1554 v >>= 7 1555 offset++ 1556 } 1557 dAtA[offset] = uint8(v) 1558 return base 1559 } 1560 func (m *QueryParamsRequest) Size() (n int) { 1561 if m == nil { 1562 return 0 1563 } 1564 var l int 1565 _ = l 1566 return n 1567 } 1568 1569 func (m *QueryParamsResponse) Size() (n int) { 1570 if m == nil { 1571 return 0 1572 } 1573 var l int 1574 _ = l 1575 l = m.Params.Size() 1576 n += 1 + l + sovQuery(uint64(l)) 1577 return n 1578 } 1579 1580 func (m *QueryFeedConfigRequest) Size() (n int) { 1581 if m == nil { 1582 return 0 1583 } 1584 var l int 1585 _ = l 1586 l = len(m.FeedId) 1587 if l > 0 { 1588 n += 1 + l + sovQuery(uint64(l)) 1589 } 1590 return n 1591 } 1592 1593 func (m *QueryFeedConfigResponse) Size() (n int) { 1594 if m == nil { 1595 return 0 1596 } 1597 var l int 1598 _ = l 1599 if m.FeedConfigInfo != nil { 1600 l = m.FeedConfigInfo.Size() 1601 n += 1 + l + sovQuery(uint64(l)) 1602 } 1603 if m.FeedConfig != nil { 1604 l = m.FeedConfig.Size() 1605 n += 1 + l + sovQuery(uint64(l)) 1606 } 1607 return n 1608 } 1609 1610 func (m *QueryFeedConfigInfoRequest) Size() (n int) { 1611 if m == nil { 1612 return 0 1613 } 1614 var l int 1615 _ = l 1616 l = len(m.FeedId) 1617 if l > 0 { 1618 n += 1 + l + sovQuery(uint64(l)) 1619 } 1620 return n 1621 } 1622 1623 func (m *QueryFeedConfigInfoResponse) Size() (n int) { 1624 if m == nil { 1625 return 0 1626 } 1627 var l int 1628 _ = l 1629 if m.FeedConfigInfo != nil { 1630 l = m.FeedConfigInfo.Size() 1631 n += 1 + l + sovQuery(uint64(l)) 1632 } 1633 if m.EpochAndRound != nil { 1634 l = m.EpochAndRound.Size() 1635 n += 1 + l + sovQuery(uint64(l)) 1636 } 1637 return n 1638 } 1639 1640 func (m *QueryLatestRoundRequest) Size() (n int) { 1641 if m == nil { 1642 return 0 1643 } 1644 var l int 1645 _ = l 1646 l = len(m.FeedId) 1647 if l > 0 { 1648 n += 1 + l + sovQuery(uint64(l)) 1649 } 1650 return n 1651 } 1652 1653 func (m *QueryLatestRoundResponse) Size() (n int) { 1654 if m == nil { 1655 return 0 1656 } 1657 var l int 1658 _ = l 1659 if m.LatestRoundId != 0 { 1660 n += 1 + sovQuery(uint64(m.LatestRoundId)) 1661 } 1662 if m.Data != nil { 1663 l = m.Data.Size() 1664 n += 1 + l + sovQuery(uint64(l)) 1665 } 1666 return n 1667 } 1668 1669 func (m *QueryLatestTransmissionDetailsRequest) Size() (n int) { 1670 if m == nil { 1671 return 0 1672 } 1673 var l int 1674 _ = l 1675 l = len(m.FeedId) 1676 if l > 0 { 1677 n += 1 + l + sovQuery(uint64(l)) 1678 } 1679 return n 1680 } 1681 1682 func (m *QueryLatestTransmissionDetailsResponse) Size() (n int) { 1683 if m == nil { 1684 return 0 1685 } 1686 var l int 1687 _ = l 1688 l = len(m.ConfigDigest) 1689 if l > 0 { 1690 n += 1 + l + sovQuery(uint64(l)) 1691 } 1692 if m.EpochAndRound != nil { 1693 l = m.EpochAndRound.Size() 1694 n += 1 + l + sovQuery(uint64(l)) 1695 } 1696 if m.Data != nil { 1697 l = m.Data.Size() 1698 n += 1 + l + sovQuery(uint64(l)) 1699 } 1700 return n 1701 } 1702 1703 func (m *QueryOwedAmountRequest) Size() (n int) { 1704 if m == nil { 1705 return 0 1706 } 1707 var l int 1708 _ = l 1709 l = len(m.Transmitter) 1710 if l > 0 { 1711 n += 1 + l + sovQuery(uint64(l)) 1712 } 1713 return n 1714 } 1715 1716 func (m *QueryOwedAmountResponse) Size() (n int) { 1717 if m == nil { 1718 return 0 1719 } 1720 var l int 1721 _ = l 1722 l = m.Amount.Size() 1723 n += 1 + l + sovQuery(uint64(l)) 1724 return n 1725 } 1726 1727 func (m *QueryModuleStateRequest) Size() (n int) { 1728 if m == nil { 1729 return 0 1730 } 1731 var l int 1732 _ = l 1733 return n 1734 } 1735 1736 func (m *QueryModuleStateResponse) Size() (n int) { 1737 if m == nil { 1738 return 0 1739 } 1740 var l int 1741 _ = l 1742 if m.State != nil { 1743 l = m.State.Size() 1744 n += 1 + l + sovQuery(uint64(l)) 1745 } 1746 return n 1747 } 1748 1749 func sovQuery(x uint64) (n int) { 1750 return (math_bits.Len64(x|1) + 6) / 7 1751 } 1752 func sozQuery(x uint64) (n int) { 1753 return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 1754 } 1755 func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { 1756 l := len(dAtA) 1757 iNdEx := 0 1758 for iNdEx < l { 1759 preIndex := iNdEx 1760 var wire uint64 1761 for shift := uint(0); ; shift += 7 { 1762 if shift >= 64 { 1763 return ErrIntOverflowQuery 1764 } 1765 if iNdEx >= l { 1766 return io.ErrUnexpectedEOF 1767 } 1768 b := dAtA[iNdEx] 1769 iNdEx++ 1770 wire |= uint64(b&0x7F) << shift 1771 if b < 0x80 { 1772 break 1773 } 1774 } 1775 fieldNum := int32(wire >> 3) 1776 wireType := int(wire & 0x7) 1777 if wireType == 4 { 1778 return fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group") 1779 } 1780 if fieldNum <= 0 { 1781 return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 1782 } 1783 switch fieldNum { 1784 default: 1785 iNdEx = preIndex 1786 skippy, err := skipQuery(dAtA[iNdEx:]) 1787 if err != nil { 1788 return err 1789 } 1790 if (skippy < 0) || (iNdEx+skippy) < 0 { 1791 return ErrInvalidLengthQuery 1792 } 1793 if (iNdEx + skippy) > l { 1794 return io.ErrUnexpectedEOF 1795 } 1796 iNdEx += skippy 1797 } 1798 } 1799 1800 if iNdEx > l { 1801 return io.ErrUnexpectedEOF 1802 } 1803 return nil 1804 } 1805 func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { 1806 l := len(dAtA) 1807 iNdEx := 0 1808 for iNdEx < l { 1809 preIndex := iNdEx 1810 var wire uint64 1811 for shift := uint(0); ; shift += 7 { 1812 if shift >= 64 { 1813 return ErrIntOverflowQuery 1814 } 1815 if iNdEx >= l { 1816 return io.ErrUnexpectedEOF 1817 } 1818 b := dAtA[iNdEx] 1819 iNdEx++ 1820 wire |= uint64(b&0x7F) << shift 1821 if b < 0x80 { 1822 break 1823 } 1824 } 1825 fieldNum := int32(wire >> 3) 1826 wireType := int(wire & 0x7) 1827 if wireType == 4 { 1828 return fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group") 1829 } 1830 if fieldNum <= 0 { 1831 return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 1832 } 1833 switch fieldNum { 1834 case 1: 1835 if wireType != 2 { 1836 return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) 1837 } 1838 var msglen int 1839 for shift := uint(0); ; shift += 7 { 1840 if shift >= 64 { 1841 return ErrIntOverflowQuery 1842 } 1843 if iNdEx >= l { 1844 return io.ErrUnexpectedEOF 1845 } 1846 b := dAtA[iNdEx] 1847 iNdEx++ 1848 msglen |= int(b&0x7F) << shift 1849 if b < 0x80 { 1850 break 1851 } 1852 } 1853 if msglen < 0 { 1854 return ErrInvalidLengthQuery 1855 } 1856 postIndex := iNdEx + msglen 1857 if postIndex < 0 { 1858 return ErrInvalidLengthQuery 1859 } 1860 if postIndex > l { 1861 return io.ErrUnexpectedEOF 1862 } 1863 if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1864 return err 1865 } 1866 iNdEx = postIndex 1867 default: 1868 iNdEx = preIndex 1869 skippy, err := skipQuery(dAtA[iNdEx:]) 1870 if err != nil { 1871 return err 1872 } 1873 if (skippy < 0) || (iNdEx+skippy) < 0 { 1874 return ErrInvalidLengthQuery 1875 } 1876 if (iNdEx + skippy) > l { 1877 return io.ErrUnexpectedEOF 1878 } 1879 iNdEx += skippy 1880 } 1881 } 1882 1883 if iNdEx > l { 1884 return io.ErrUnexpectedEOF 1885 } 1886 return nil 1887 } 1888 func (m *QueryFeedConfigRequest) Unmarshal(dAtA []byte) error { 1889 l := len(dAtA) 1890 iNdEx := 0 1891 for iNdEx < l { 1892 preIndex := iNdEx 1893 var wire uint64 1894 for shift := uint(0); ; shift += 7 { 1895 if shift >= 64 { 1896 return ErrIntOverflowQuery 1897 } 1898 if iNdEx >= l { 1899 return io.ErrUnexpectedEOF 1900 } 1901 b := dAtA[iNdEx] 1902 iNdEx++ 1903 wire |= uint64(b&0x7F) << shift 1904 if b < 0x80 { 1905 break 1906 } 1907 } 1908 fieldNum := int32(wire >> 3) 1909 wireType := int(wire & 0x7) 1910 if wireType == 4 { 1911 return fmt.Errorf("proto: QueryFeedConfigRequest: wiretype end group for non-group") 1912 } 1913 if fieldNum <= 0 { 1914 return fmt.Errorf("proto: QueryFeedConfigRequest: illegal tag %d (wire type %d)", fieldNum, wire) 1915 } 1916 switch fieldNum { 1917 case 1: 1918 if wireType != 2 { 1919 return fmt.Errorf("proto: wrong wireType = %d for field FeedId", wireType) 1920 } 1921 var stringLen uint64 1922 for shift := uint(0); ; shift += 7 { 1923 if shift >= 64 { 1924 return ErrIntOverflowQuery 1925 } 1926 if iNdEx >= l { 1927 return io.ErrUnexpectedEOF 1928 } 1929 b := dAtA[iNdEx] 1930 iNdEx++ 1931 stringLen |= uint64(b&0x7F) << shift 1932 if b < 0x80 { 1933 break 1934 } 1935 } 1936 intStringLen := int(stringLen) 1937 if intStringLen < 0 { 1938 return ErrInvalidLengthQuery 1939 } 1940 postIndex := iNdEx + intStringLen 1941 if postIndex < 0 { 1942 return ErrInvalidLengthQuery 1943 } 1944 if postIndex > l { 1945 return io.ErrUnexpectedEOF 1946 } 1947 m.FeedId = string(dAtA[iNdEx:postIndex]) 1948 iNdEx = postIndex 1949 default: 1950 iNdEx = preIndex 1951 skippy, err := skipQuery(dAtA[iNdEx:]) 1952 if err != nil { 1953 return err 1954 } 1955 if (skippy < 0) || (iNdEx+skippy) < 0 { 1956 return ErrInvalidLengthQuery 1957 } 1958 if (iNdEx + skippy) > l { 1959 return io.ErrUnexpectedEOF 1960 } 1961 iNdEx += skippy 1962 } 1963 } 1964 1965 if iNdEx > l { 1966 return io.ErrUnexpectedEOF 1967 } 1968 return nil 1969 } 1970 func (m *QueryFeedConfigResponse) Unmarshal(dAtA []byte) error { 1971 l := len(dAtA) 1972 iNdEx := 0 1973 for iNdEx < l { 1974 preIndex := iNdEx 1975 var wire uint64 1976 for shift := uint(0); ; shift += 7 { 1977 if shift >= 64 { 1978 return ErrIntOverflowQuery 1979 } 1980 if iNdEx >= l { 1981 return io.ErrUnexpectedEOF 1982 } 1983 b := dAtA[iNdEx] 1984 iNdEx++ 1985 wire |= uint64(b&0x7F) << shift 1986 if b < 0x80 { 1987 break 1988 } 1989 } 1990 fieldNum := int32(wire >> 3) 1991 wireType := int(wire & 0x7) 1992 if wireType == 4 { 1993 return fmt.Errorf("proto: QueryFeedConfigResponse: wiretype end group for non-group") 1994 } 1995 if fieldNum <= 0 { 1996 return fmt.Errorf("proto: QueryFeedConfigResponse: illegal tag %d (wire type %d)", fieldNum, wire) 1997 } 1998 switch fieldNum { 1999 case 1: 2000 if wireType != 2 { 2001 return fmt.Errorf("proto: wrong wireType = %d for field FeedConfigInfo", wireType) 2002 } 2003 var msglen int 2004 for shift := uint(0); ; shift += 7 { 2005 if shift >= 64 { 2006 return ErrIntOverflowQuery 2007 } 2008 if iNdEx >= l { 2009 return io.ErrUnexpectedEOF 2010 } 2011 b := dAtA[iNdEx] 2012 iNdEx++ 2013 msglen |= int(b&0x7F) << shift 2014 if b < 0x80 { 2015 break 2016 } 2017 } 2018 if msglen < 0 { 2019 return ErrInvalidLengthQuery 2020 } 2021 postIndex := iNdEx + msglen 2022 if postIndex < 0 { 2023 return ErrInvalidLengthQuery 2024 } 2025 if postIndex > l { 2026 return io.ErrUnexpectedEOF 2027 } 2028 if m.FeedConfigInfo == nil { 2029 m.FeedConfigInfo = &FeedConfigInfo{} 2030 } 2031 if err := m.FeedConfigInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2032 return err 2033 } 2034 iNdEx = postIndex 2035 case 2: 2036 if wireType != 2 { 2037 return fmt.Errorf("proto: wrong wireType = %d for field FeedConfig", wireType) 2038 } 2039 var msglen int 2040 for shift := uint(0); ; shift += 7 { 2041 if shift >= 64 { 2042 return ErrIntOverflowQuery 2043 } 2044 if iNdEx >= l { 2045 return io.ErrUnexpectedEOF 2046 } 2047 b := dAtA[iNdEx] 2048 iNdEx++ 2049 msglen |= int(b&0x7F) << shift 2050 if b < 0x80 { 2051 break 2052 } 2053 } 2054 if msglen < 0 { 2055 return ErrInvalidLengthQuery 2056 } 2057 postIndex := iNdEx + msglen 2058 if postIndex < 0 { 2059 return ErrInvalidLengthQuery 2060 } 2061 if postIndex > l { 2062 return io.ErrUnexpectedEOF 2063 } 2064 if m.FeedConfig == nil { 2065 m.FeedConfig = &FeedConfig{} 2066 } 2067 if err := m.FeedConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2068 return err 2069 } 2070 iNdEx = postIndex 2071 default: 2072 iNdEx = preIndex 2073 skippy, err := skipQuery(dAtA[iNdEx:]) 2074 if err != nil { 2075 return err 2076 } 2077 if (skippy < 0) || (iNdEx+skippy) < 0 { 2078 return ErrInvalidLengthQuery 2079 } 2080 if (iNdEx + skippy) > l { 2081 return io.ErrUnexpectedEOF 2082 } 2083 iNdEx += skippy 2084 } 2085 } 2086 2087 if iNdEx > l { 2088 return io.ErrUnexpectedEOF 2089 } 2090 return nil 2091 } 2092 func (m *QueryFeedConfigInfoRequest) Unmarshal(dAtA []byte) error { 2093 l := len(dAtA) 2094 iNdEx := 0 2095 for iNdEx < l { 2096 preIndex := iNdEx 2097 var wire uint64 2098 for shift := uint(0); ; shift += 7 { 2099 if shift >= 64 { 2100 return ErrIntOverflowQuery 2101 } 2102 if iNdEx >= l { 2103 return io.ErrUnexpectedEOF 2104 } 2105 b := dAtA[iNdEx] 2106 iNdEx++ 2107 wire |= uint64(b&0x7F) << shift 2108 if b < 0x80 { 2109 break 2110 } 2111 } 2112 fieldNum := int32(wire >> 3) 2113 wireType := int(wire & 0x7) 2114 if wireType == 4 { 2115 return fmt.Errorf("proto: QueryFeedConfigInfoRequest: wiretype end group for non-group") 2116 } 2117 if fieldNum <= 0 { 2118 return fmt.Errorf("proto: QueryFeedConfigInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) 2119 } 2120 switch fieldNum { 2121 case 1: 2122 if wireType != 2 { 2123 return fmt.Errorf("proto: wrong wireType = %d for field FeedId", wireType) 2124 } 2125 var stringLen uint64 2126 for shift := uint(0); ; shift += 7 { 2127 if shift >= 64 { 2128 return ErrIntOverflowQuery 2129 } 2130 if iNdEx >= l { 2131 return io.ErrUnexpectedEOF 2132 } 2133 b := dAtA[iNdEx] 2134 iNdEx++ 2135 stringLen |= uint64(b&0x7F) << shift 2136 if b < 0x80 { 2137 break 2138 } 2139 } 2140 intStringLen := int(stringLen) 2141 if intStringLen < 0 { 2142 return ErrInvalidLengthQuery 2143 } 2144 postIndex := iNdEx + intStringLen 2145 if postIndex < 0 { 2146 return ErrInvalidLengthQuery 2147 } 2148 if postIndex > l { 2149 return io.ErrUnexpectedEOF 2150 } 2151 m.FeedId = string(dAtA[iNdEx:postIndex]) 2152 iNdEx = postIndex 2153 default: 2154 iNdEx = preIndex 2155 skippy, err := skipQuery(dAtA[iNdEx:]) 2156 if err != nil { 2157 return err 2158 } 2159 if (skippy < 0) || (iNdEx+skippy) < 0 { 2160 return ErrInvalidLengthQuery 2161 } 2162 if (iNdEx + skippy) > l { 2163 return io.ErrUnexpectedEOF 2164 } 2165 iNdEx += skippy 2166 } 2167 } 2168 2169 if iNdEx > l { 2170 return io.ErrUnexpectedEOF 2171 } 2172 return nil 2173 } 2174 func (m *QueryFeedConfigInfoResponse) Unmarshal(dAtA []byte) error { 2175 l := len(dAtA) 2176 iNdEx := 0 2177 for iNdEx < l { 2178 preIndex := iNdEx 2179 var wire uint64 2180 for shift := uint(0); ; shift += 7 { 2181 if shift >= 64 { 2182 return ErrIntOverflowQuery 2183 } 2184 if iNdEx >= l { 2185 return io.ErrUnexpectedEOF 2186 } 2187 b := dAtA[iNdEx] 2188 iNdEx++ 2189 wire |= uint64(b&0x7F) << shift 2190 if b < 0x80 { 2191 break 2192 } 2193 } 2194 fieldNum := int32(wire >> 3) 2195 wireType := int(wire & 0x7) 2196 if wireType == 4 { 2197 return fmt.Errorf("proto: QueryFeedConfigInfoResponse: wiretype end group for non-group") 2198 } 2199 if fieldNum <= 0 { 2200 return fmt.Errorf("proto: QueryFeedConfigInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) 2201 } 2202 switch fieldNum { 2203 case 1: 2204 if wireType != 2 { 2205 return fmt.Errorf("proto: wrong wireType = %d for field FeedConfigInfo", wireType) 2206 } 2207 var msglen int 2208 for shift := uint(0); ; shift += 7 { 2209 if shift >= 64 { 2210 return ErrIntOverflowQuery 2211 } 2212 if iNdEx >= l { 2213 return io.ErrUnexpectedEOF 2214 } 2215 b := dAtA[iNdEx] 2216 iNdEx++ 2217 msglen |= int(b&0x7F) << shift 2218 if b < 0x80 { 2219 break 2220 } 2221 } 2222 if msglen < 0 { 2223 return ErrInvalidLengthQuery 2224 } 2225 postIndex := iNdEx + msglen 2226 if postIndex < 0 { 2227 return ErrInvalidLengthQuery 2228 } 2229 if postIndex > l { 2230 return io.ErrUnexpectedEOF 2231 } 2232 if m.FeedConfigInfo == nil { 2233 m.FeedConfigInfo = &FeedConfigInfo{} 2234 } 2235 if err := m.FeedConfigInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2236 return err 2237 } 2238 iNdEx = postIndex 2239 case 2: 2240 if wireType != 2 { 2241 return fmt.Errorf("proto: wrong wireType = %d for field EpochAndRound", wireType) 2242 } 2243 var msglen int 2244 for shift := uint(0); ; shift += 7 { 2245 if shift >= 64 { 2246 return ErrIntOverflowQuery 2247 } 2248 if iNdEx >= l { 2249 return io.ErrUnexpectedEOF 2250 } 2251 b := dAtA[iNdEx] 2252 iNdEx++ 2253 msglen |= int(b&0x7F) << shift 2254 if b < 0x80 { 2255 break 2256 } 2257 } 2258 if msglen < 0 { 2259 return ErrInvalidLengthQuery 2260 } 2261 postIndex := iNdEx + msglen 2262 if postIndex < 0 { 2263 return ErrInvalidLengthQuery 2264 } 2265 if postIndex > l { 2266 return io.ErrUnexpectedEOF 2267 } 2268 if m.EpochAndRound == nil { 2269 m.EpochAndRound = &EpochAndRound{} 2270 } 2271 if err := m.EpochAndRound.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2272 return err 2273 } 2274 iNdEx = postIndex 2275 default: 2276 iNdEx = preIndex 2277 skippy, err := skipQuery(dAtA[iNdEx:]) 2278 if err != nil { 2279 return err 2280 } 2281 if (skippy < 0) || (iNdEx+skippy) < 0 { 2282 return ErrInvalidLengthQuery 2283 } 2284 if (iNdEx + skippy) > l { 2285 return io.ErrUnexpectedEOF 2286 } 2287 iNdEx += skippy 2288 } 2289 } 2290 2291 if iNdEx > l { 2292 return io.ErrUnexpectedEOF 2293 } 2294 return nil 2295 } 2296 func (m *QueryLatestRoundRequest) Unmarshal(dAtA []byte) error { 2297 l := len(dAtA) 2298 iNdEx := 0 2299 for iNdEx < l { 2300 preIndex := iNdEx 2301 var wire uint64 2302 for shift := uint(0); ; shift += 7 { 2303 if shift >= 64 { 2304 return ErrIntOverflowQuery 2305 } 2306 if iNdEx >= l { 2307 return io.ErrUnexpectedEOF 2308 } 2309 b := dAtA[iNdEx] 2310 iNdEx++ 2311 wire |= uint64(b&0x7F) << shift 2312 if b < 0x80 { 2313 break 2314 } 2315 } 2316 fieldNum := int32(wire >> 3) 2317 wireType := int(wire & 0x7) 2318 if wireType == 4 { 2319 return fmt.Errorf("proto: QueryLatestRoundRequest: wiretype end group for non-group") 2320 } 2321 if fieldNum <= 0 { 2322 return fmt.Errorf("proto: QueryLatestRoundRequest: illegal tag %d (wire type %d)", fieldNum, wire) 2323 } 2324 switch fieldNum { 2325 case 1: 2326 if wireType != 2 { 2327 return fmt.Errorf("proto: wrong wireType = %d for field FeedId", wireType) 2328 } 2329 var stringLen uint64 2330 for shift := uint(0); ; shift += 7 { 2331 if shift >= 64 { 2332 return ErrIntOverflowQuery 2333 } 2334 if iNdEx >= l { 2335 return io.ErrUnexpectedEOF 2336 } 2337 b := dAtA[iNdEx] 2338 iNdEx++ 2339 stringLen |= uint64(b&0x7F) << shift 2340 if b < 0x80 { 2341 break 2342 } 2343 } 2344 intStringLen := int(stringLen) 2345 if intStringLen < 0 { 2346 return ErrInvalidLengthQuery 2347 } 2348 postIndex := iNdEx + intStringLen 2349 if postIndex < 0 { 2350 return ErrInvalidLengthQuery 2351 } 2352 if postIndex > l { 2353 return io.ErrUnexpectedEOF 2354 } 2355 m.FeedId = string(dAtA[iNdEx:postIndex]) 2356 iNdEx = postIndex 2357 default: 2358 iNdEx = preIndex 2359 skippy, err := skipQuery(dAtA[iNdEx:]) 2360 if err != nil { 2361 return err 2362 } 2363 if (skippy < 0) || (iNdEx+skippy) < 0 { 2364 return ErrInvalidLengthQuery 2365 } 2366 if (iNdEx + skippy) > l { 2367 return io.ErrUnexpectedEOF 2368 } 2369 iNdEx += skippy 2370 } 2371 } 2372 2373 if iNdEx > l { 2374 return io.ErrUnexpectedEOF 2375 } 2376 return nil 2377 } 2378 func (m *QueryLatestRoundResponse) Unmarshal(dAtA []byte) error { 2379 l := len(dAtA) 2380 iNdEx := 0 2381 for iNdEx < l { 2382 preIndex := iNdEx 2383 var wire uint64 2384 for shift := uint(0); ; shift += 7 { 2385 if shift >= 64 { 2386 return ErrIntOverflowQuery 2387 } 2388 if iNdEx >= l { 2389 return io.ErrUnexpectedEOF 2390 } 2391 b := dAtA[iNdEx] 2392 iNdEx++ 2393 wire |= uint64(b&0x7F) << shift 2394 if b < 0x80 { 2395 break 2396 } 2397 } 2398 fieldNum := int32(wire >> 3) 2399 wireType := int(wire & 0x7) 2400 if wireType == 4 { 2401 return fmt.Errorf("proto: QueryLatestRoundResponse: wiretype end group for non-group") 2402 } 2403 if fieldNum <= 0 { 2404 return fmt.Errorf("proto: QueryLatestRoundResponse: illegal tag %d (wire type %d)", fieldNum, wire) 2405 } 2406 switch fieldNum { 2407 case 1: 2408 if wireType != 0 { 2409 return fmt.Errorf("proto: wrong wireType = %d for field LatestRoundId", wireType) 2410 } 2411 m.LatestRoundId = 0 2412 for shift := uint(0); ; shift += 7 { 2413 if shift >= 64 { 2414 return ErrIntOverflowQuery 2415 } 2416 if iNdEx >= l { 2417 return io.ErrUnexpectedEOF 2418 } 2419 b := dAtA[iNdEx] 2420 iNdEx++ 2421 m.LatestRoundId |= uint64(b&0x7F) << shift 2422 if b < 0x80 { 2423 break 2424 } 2425 } 2426 case 2: 2427 if wireType != 2 { 2428 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) 2429 } 2430 var msglen int 2431 for shift := uint(0); ; shift += 7 { 2432 if shift >= 64 { 2433 return ErrIntOverflowQuery 2434 } 2435 if iNdEx >= l { 2436 return io.ErrUnexpectedEOF 2437 } 2438 b := dAtA[iNdEx] 2439 iNdEx++ 2440 msglen |= int(b&0x7F) << shift 2441 if b < 0x80 { 2442 break 2443 } 2444 } 2445 if msglen < 0 { 2446 return ErrInvalidLengthQuery 2447 } 2448 postIndex := iNdEx + msglen 2449 if postIndex < 0 { 2450 return ErrInvalidLengthQuery 2451 } 2452 if postIndex > l { 2453 return io.ErrUnexpectedEOF 2454 } 2455 if m.Data == nil { 2456 m.Data = &Transmission{} 2457 } 2458 if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2459 return err 2460 } 2461 iNdEx = postIndex 2462 default: 2463 iNdEx = preIndex 2464 skippy, err := skipQuery(dAtA[iNdEx:]) 2465 if err != nil { 2466 return err 2467 } 2468 if (skippy < 0) || (iNdEx+skippy) < 0 { 2469 return ErrInvalidLengthQuery 2470 } 2471 if (iNdEx + skippy) > l { 2472 return io.ErrUnexpectedEOF 2473 } 2474 iNdEx += skippy 2475 } 2476 } 2477 2478 if iNdEx > l { 2479 return io.ErrUnexpectedEOF 2480 } 2481 return nil 2482 } 2483 func (m *QueryLatestTransmissionDetailsRequest) Unmarshal(dAtA []byte) error { 2484 l := len(dAtA) 2485 iNdEx := 0 2486 for iNdEx < l { 2487 preIndex := iNdEx 2488 var wire uint64 2489 for shift := uint(0); ; shift += 7 { 2490 if shift >= 64 { 2491 return ErrIntOverflowQuery 2492 } 2493 if iNdEx >= l { 2494 return io.ErrUnexpectedEOF 2495 } 2496 b := dAtA[iNdEx] 2497 iNdEx++ 2498 wire |= uint64(b&0x7F) << shift 2499 if b < 0x80 { 2500 break 2501 } 2502 } 2503 fieldNum := int32(wire >> 3) 2504 wireType := int(wire & 0x7) 2505 if wireType == 4 { 2506 return fmt.Errorf("proto: QueryLatestTransmissionDetailsRequest: wiretype end group for non-group") 2507 } 2508 if fieldNum <= 0 { 2509 return fmt.Errorf("proto: QueryLatestTransmissionDetailsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 2510 } 2511 switch fieldNum { 2512 case 1: 2513 if wireType != 2 { 2514 return fmt.Errorf("proto: wrong wireType = %d for field FeedId", wireType) 2515 } 2516 var stringLen uint64 2517 for shift := uint(0); ; shift += 7 { 2518 if shift >= 64 { 2519 return ErrIntOverflowQuery 2520 } 2521 if iNdEx >= l { 2522 return io.ErrUnexpectedEOF 2523 } 2524 b := dAtA[iNdEx] 2525 iNdEx++ 2526 stringLen |= uint64(b&0x7F) << shift 2527 if b < 0x80 { 2528 break 2529 } 2530 } 2531 intStringLen := int(stringLen) 2532 if intStringLen < 0 { 2533 return ErrInvalidLengthQuery 2534 } 2535 postIndex := iNdEx + intStringLen 2536 if postIndex < 0 { 2537 return ErrInvalidLengthQuery 2538 } 2539 if postIndex > l { 2540 return io.ErrUnexpectedEOF 2541 } 2542 m.FeedId = string(dAtA[iNdEx:postIndex]) 2543 iNdEx = postIndex 2544 default: 2545 iNdEx = preIndex 2546 skippy, err := skipQuery(dAtA[iNdEx:]) 2547 if err != nil { 2548 return err 2549 } 2550 if (skippy < 0) || (iNdEx+skippy) < 0 { 2551 return ErrInvalidLengthQuery 2552 } 2553 if (iNdEx + skippy) > l { 2554 return io.ErrUnexpectedEOF 2555 } 2556 iNdEx += skippy 2557 } 2558 } 2559 2560 if iNdEx > l { 2561 return io.ErrUnexpectedEOF 2562 } 2563 return nil 2564 } 2565 func (m *QueryLatestTransmissionDetailsResponse) Unmarshal(dAtA []byte) error { 2566 l := len(dAtA) 2567 iNdEx := 0 2568 for iNdEx < l { 2569 preIndex := iNdEx 2570 var wire uint64 2571 for shift := uint(0); ; shift += 7 { 2572 if shift >= 64 { 2573 return ErrIntOverflowQuery 2574 } 2575 if iNdEx >= l { 2576 return io.ErrUnexpectedEOF 2577 } 2578 b := dAtA[iNdEx] 2579 iNdEx++ 2580 wire |= uint64(b&0x7F) << shift 2581 if b < 0x80 { 2582 break 2583 } 2584 } 2585 fieldNum := int32(wire >> 3) 2586 wireType := int(wire & 0x7) 2587 if wireType == 4 { 2588 return fmt.Errorf("proto: QueryLatestTransmissionDetailsResponse: wiretype end group for non-group") 2589 } 2590 if fieldNum <= 0 { 2591 return fmt.Errorf("proto: QueryLatestTransmissionDetailsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 2592 } 2593 switch fieldNum { 2594 case 1: 2595 if wireType != 2 { 2596 return fmt.Errorf("proto: wrong wireType = %d for field ConfigDigest", wireType) 2597 } 2598 var byteLen int 2599 for shift := uint(0); ; shift += 7 { 2600 if shift >= 64 { 2601 return ErrIntOverflowQuery 2602 } 2603 if iNdEx >= l { 2604 return io.ErrUnexpectedEOF 2605 } 2606 b := dAtA[iNdEx] 2607 iNdEx++ 2608 byteLen |= int(b&0x7F) << shift 2609 if b < 0x80 { 2610 break 2611 } 2612 } 2613 if byteLen < 0 { 2614 return ErrInvalidLengthQuery 2615 } 2616 postIndex := iNdEx + byteLen 2617 if postIndex < 0 { 2618 return ErrInvalidLengthQuery 2619 } 2620 if postIndex > l { 2621 return io.ErrUnexpectedEOF 2622 } 2623 m.ConfigDigest = append(m.ConfigDigest[:0], dAtA[iNdEx:postIndex]...) 2624 if m.ConfigDigest == nil { 2625 m.ConfigDigest = []byte{} 2626 } 2627 iNdEx = postIndex 2628 case 2: 2629 if wireType != 2 { 2630 return fmt.Errorf("proto: wrong wireType = %d for field EpochAndRound", wireType) 2631 } 2632 var msglen int 2633 for shift := uint(0); ; shift += 7 { 2634 if shift >= 64 { 2635 return ErrIntOverflowQuery 2636 } 2637 if iNdEx >= l { 2638 return io.ErrUnexpectedEOF 2639 } 2640 b := dAtA[iNdEx] 2641 iNdEx++ 2642 msglen |= int(b&0x7F) << shift 2643 if b < 0x80 { 2644 break 2645 } 2646 } 2647 if msglen < 0 { 2648 return ErrInvalidLengthQuery 2649 } 2650 postIndex := iNdEx + msglen 2651 if postIndex < 0 { 2652 return ErrInvalidLengthQuery 2653 } 2654 if postIndex > l { 2655 return io.ErrUnexpectedEOF 2656 } 2657 if m.EpochAndRound == nil { 2658 m.EpochAndRound = &EpochAndRound{} 2659 } 2660 if err := m.EpochAndRound.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2661 return err 2662 } 2663 iNdEx = postIndex 2664 case 3: 2665 if wireType != 2 { 2666 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) 2667 } 2668 var msglen int 2669 for shift := uint(0); ; shift += 7 { 2670 if shift >= 64 { 2671 return ErrIntOverflowQuery 2672 } 2673 if iNdEx >= l { 2674 return io.ErrUnexpectedEOF 2675 } 2676 b := dAtA[iNdEx] 2677 iNdEx++ 2678 msglen |= int(b&0x7F) << shift 2679 if b < 0x80 { 2680 break 2681 } 2682 } 2683 if msglen < 0 { 2684 return ErrInvalidLengthQuery 2685 } 2686 postIndex := iNdEx + msglen 2687 if postIndex < 0 { 2688 return ErrInvalidLengthQuery 2689 } 2690 if postIndex > l { 2691 return io.ErrUnexpectedEOF 2692 } 2693 if m.Data == nil { 2694 m.Data = &Transmission{} 2695 } 2696 if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2697 return err 2698 } 2699 iNdEx = postIndex 2700 default: 2701 iNdEx = preIndex 2702 skippy, err := skipQuery(dAtA[iNdEx:]) 2703 if err != nil { 2704 return err 2705 } 2706 if (skippy < 0) || (iNdEx+skippy) < 0 { 2707 return ErrInvalidLengthQuery 2708 } 2709 if (iNdEx + skippy) > l { 2710 return io.ErrUnexpectedEOF 2711 } 2712 iNdEx += skippy 2713 } 2714 } 2715 2716 if iNdEx > l { 2717 return io.ErrUnexpectedEOF 2718 } 2719 return nil 2720 } 2721 func (m *QueryOwedAmountRequest) Unmarshal(dAtA []byte) error { 2722 l := len(dAtA) 2723 iNdEx := 0 2724 for iNdEx < l { 2725 preIndex := iNdEx 2726 var wire uint64 2727 for shift := uint(0); ; shift += 7 { 2728 if shift >= 64 { 2729 return ErrIntOverflowQuery 2730 } 2731 if iNdEx >= l { 2732 return io.ErrUnexpectedEOF 2733 } 2734 b := dAtA[iNdEx] 2735 iNdEx++ 2736 wire |= uint64(b&0x7F) << shift 2737 if b < 0x80 { 2738 break 2739 } 2740 } 2741 fieldNum := int32(wire >> 3) 2742 wireType := int(wire & 0x7) 2743 if wireType == 4 { 2744 return fmt.Errorf("proto: QueryOwedAmountRequest: wiretype end group for non-group") 2745 } 2746 if fieldNum <= 0 { 2747 return fmt.Errorf("proto: QueryOwedAmountRequest: illegal tag %d (wire type %d)", fieldNum, wire) 2748 } 2749 switch fieldNum { 2750 case 1: 2751 if wireType != 2 { 2752 return fmt.Errorf("proto: wrong wireType = %d for field Transmitter", wireType) 2753 } 2754 var stringLen uint64 2755 for shift := uint(0); ; shift += 7 { 2756 if shift >= 64 { 2757 return ErrIntOverflowQuery 2758 } 2759 if iNdEx >= l { 2760 return io.ErrUnexpectedEOF 2761 } 2762 b := dAtA[iNdEx] 2763 iNdEx++ 2764 stringLen |= uint64(b&0x7F) << shift 2765 if b < 0x80 { 2766 break 2767 } 2768 } 2769 intStringLen := int(stringLen) 2770 if intStringLen < 0 { 2771 return ErrInvalidLengthQuery 2772 } 2773 postIndex := iNdEx + intStringLen 2774 if postIndex < 0 { 2775 return ErrInvalidLengthQuery 2776 } 2777 if postIndex > l { 2778 return io.ErrUnexpectedEOF 2779 } 2780 m.Transmitter = string(dAtA[iNdEx:postIndex]) 2781 iNdEx = postIndex 2782 default: 2783 iNdEx = preIndex 2784 skippy, err := skipQuery(dAtA[iNdEx:]) 2785 if err != nil { 2786 return err 2787 } 2788 if (skippy < 0) || (iNdEx+skippy) < 0 { 2789 return ErrInvalidLengthQuery 2790 } 2791 if (iNdEx + skippy) > l { 2792 return io.ErrUnexpectedEOF 2793 } 2794 iNdEx += skippy 2795 } 2796 } 2797 2798 if iNdEx > l { 2799 return io.ErrUnexpectedEOF 2800 } 2801 return nil 2802 } 2803 func (m *QueryOwedAmountResponse) Unmarshal(dAtA []byte) error { 2804 l := len(dAtA) 2805 iNdEx := 0 2806 for iNdEx < l { 2807 preIndex := iNdEx 2808 var wire uint64 2809 for shift := uint(0); ; shift += 7 { 2810 if shift >= 64 { 2811 return ErrIntOverflowQuery 2812 } 2813 if iNdEx >= l { 2814 return io.ErrUnexpectedEOF 2815 } 2816 b := dAtA[iNdEx] 2817 iNdEx++ 2818 wire |= uint64(b&0x7F) << shift 2819 if b < 0x80 { 2820 break 2821 } 2822 } 2823 fieldNum := int32(wire >> 3) 2824 wireType := int(wire & 0x7) 2825 if wireType == 4 { 2826 return fmt.Errorf("proto: QueryOwedAmountResponse: wiretype end group for non-group") 2827 } 2828 if fieldNum <= 0 { 2829 return fmt.Errorf("proto: QueryOwedAmountResponse: illegal tag %d (wire type %d)", fieldNum, wire) 2830 } 2831 switch fieldNum { 2832 case 1: 2833 if wireType != 2 { 2834 return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) 2835 } 2836 var msglen int 2837 for shift := uint(0); ; shift += 7 { 2838 if shift >= 64 { 2839 return ErrIntOverflowQuery 2840 } 2841 if iNdEx >= l { 2842 return io.ErrUnexpectedEOF 2843 } 2844 b := dAtA[iNdEx] 2845 iNdEx++ 2846 msglen |= int(b&0x7F) << shift 2847 if b < 0x80 { 2848 break 2849 } 2850 } 2851 if msglen < 0 { 2852 return ErrInvalidLengthQuery 2853 } 2854 postIndex := iNdEx + msglen 2855 if postIndex < 0 { 2856 return ErrInvalidLengthQuery 2857 } 2858 if postIndex > l { 2859 return io.ErrUnexpectedEOF 2860 } 2861 if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2862 return err 2863 } 2864 iNdEx = postIndex 2865 default: 2866 iNdEx = preIndex 2867 skippy, err := skipQuery(dAtA[iNdEx:]) 2868 if err != nil { 2869 return err 2870 } 2871 if (skippy < 0) || (iNdEx+skippy) < 0 { 2872 return ErrInvalidLengthQuery 2873 } 2874 if (iNdEx + skippy) > l { 2875 return io.ErrUnexpectedEOF 2876 } 2877 iNdEx += skippy 2878 } 2879 } 2880 2881 if iNdEx > l { 2882 return io.ErrUnexpectedEOF 2883 } 2884 return nil 2885 } 2886 func (m *QueryModuleStateRequest) Unmarshal(dAtA []byte) error { 2887 l := len(dAtA) 2888 iNdEx := 0 2889 for iNdEx < l { 2890 preIndex := iNdEx 2891 var wire uint64 2892 for shift := uint(0); ; shift += 7 { 2893 if shift >= 64 { 2894 return ErrIntOverflowQuery 2895 } 2896 if iNdEx >= l { 2897 return io.ErrUnexpectedEOF 2898 } 2899 b := dAtA[iNdEx] 2900 iNdEx++ 2901 wire |= uint64(b&0x7F) << shift 2902 if b < 0x80 { 2903 break 2904 } 2905 } 2906 fieldNum := int32(wire >> 3) 2907 wireType := int(wire & 0x7) 2908 if wireType == 4 { 2909 return fmt.Errorf("proto: QueryModuleStateRequest: wiretype end group for non-group") 2910 } 2911 if fieldNum <= 0 { 2912 return fmt.Errorf("proto: QueryModuleStateRequest: illegal tag %d (wire type %d)", fieldNum, wire) 2913 } 2914 switch fieldNum { 2915 default: 2916 iNdEx = preIndex 2917 skippy, err := skipQuery(dAtA[iNdEx:]) 2918 if err != nil { 2919 return err 2920 } 2921 if (skippy < 0) || (iNdEx+skippy) < 0 { 2922 return ErrInvalidLengthQuery 2923 } 2924 if (iNdEx + skippy) > l { 2925 return io.ErrUnexpectedEOF 2926 } 2927 iNdEx += skippy 2928 } 2929 } 2930 2931 if iNdEx > l { 2932 return io.ErrUnexpectedEOF 2933 } 2934 return nil 2935 } 2936 func (m *QueryModuleStateResponse) Unmarshal(dAtA []byte) error { 2937 l := len(dAtA) 2938 iNdEx := 0 2939 for iNdEx < l { 2940 preIndex := iNdEx 2941 var wire uint64 2942 for shift := uint(0); ; shift += 7 { 2943 if shift >= 64 { 2944 return ErrIntOverflowQuery 2945 } 2946 if iNdEx >= l { 2947 return io.ErrUnexpectedEOF 2948 } 2949 b := dAtA[iNdEx] 2950 iNdEx++ 2951 wire |= uint64(b&0x7F) << shift 2952 if b < 0x80 { 2953 break 2954 } 2955 } 2956 fieldNum := int32(wire >> 3) 2957 wireType := int(wire & 0x7) 2958 if wireType == 4 { 2959 return fmt.Errorf("proto: QueryModuleStateResponse: wiretype end group for non-group") 2960 } 2961 if fieldNum <= 0 { 2962 return fmt.Errorf("proto: QueryModuleStateResponse: illegal tag %d (wire type %d)", fieldNum, wire) 2963 } 2964 switch fieldNum { 2965 case 1: 2966 if wireType != 2 { 2967 return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) 2968 } 2969 var msglen int 2970 for shift := uint(0); ; shift += 7 { 2971 if shift >= 64 { 2972 return ErrIntOverflowQuery 2973 } 2974 if iNdEx >= l { 2975 return io.ErrUnexpectedEOF 2976 } 2977 b := dAtA[iNdEx] 2978 iNdEx++ 2979 msglen |= int(b&0x7F) << shift 2980 if b < 0x80 { 2981 break 2982 } 2983 } 2984 if msglen < 0 { 2985 return ErrInvalidLengthQuery 2986 } 2987 postIndex := iNdEx + msglen 2988 if postIndex < 0 { 2989 return ErrInvalidLengthQuery 2990 } 2991 if postIndex > l { 2992 return io.ErrUnexpectedEOF 2993 } 2994 if m.State == nil { 2995 m.State = &GenesisState{} 2996 } 2997 if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2998 return err 2999 } 3000 iNdEx = postIndex 3001 default: 3002 iNdEx = preIndex 3003 skippy, err := skipQuery(dAtA[iNdEx:]) 3004 if err != nil { 3005 return err 3006 } 3007 if (skippy < 0) || (iNdEx+skippy) < 0 { 3008 return ErrInvalidLengthQuery 3009 } 3010 if (iNdEx + skippy) > l { 3011 return io.ErrUnexpectedEOF 3012 } 3013 iNdEx += skippy 3014 } 3015 } 3016 3017 if iNdEx > l { 3018 return io.ErrUnexpectedEOF 3019 } 3020 return nil 3021 } 3022 func skipQuery(dAtA []byte) (n int, err error) { 3023 l := len(dAtA) 3024 iNdEx := 0 3025 depth := 0 3026 for iNdEx < l { 3027 var wire uint64 3028 for shift := uint(0); ; shift += 7 { 3029 if shift >= 64 { 3030 return 0, ErrIntOverflowQuery 3031 } 3032 if iNdEx >= l { 3033 return 0, io.ErrUnexpectedEOF 3034 } 3035 b := dAtA[iNdEx] 3036 iNdEx++ 3037 wire |= (uint64(b) & 0x7F) << shift 3038 if b < 0x80 { 3039 break 3040 } 3041 } 3042 wireType := int(wire & 0x7) 3043 switch wireType { 3044 case 0: 3045 for shift := uint(0); ; shift += 7 { 3046 if shift >= 64 { 3047 return 0, ErrIntOverflowQuery 3048 } 3049 if iNdEx >= l { 3050 return 0, io.ErrUnexpectedEOF 3051 } 3052 iNdEx++ 3053 if dAtA[iNdEx-1] < 0x80 { 3054 break 3055 } 3056 } 3057 case 1: 3058 iNdEx += 8 3059 case 2: 3060 var length int 3061 for shift := uint(0); ; shift += 7 { 3062 if shift >= 64 { 3063 return 0, ErrIntOverflowQuery 3064 } 3065 if iNdEx >= l { 3066 return 0, io.ErrUnexpectedEOF 3067 } 3068 b := dAtA[iNdEx] 3069 iNdEx++ 3070 length |= (int(b) & 0x7F) << shift 3071 if b < 0x80 { 3072 break 3073 } 3074 } 3075 if length < 0 { 3076 return 0, ErrInvalidLengthQuery 3077 } 3078 iNdEx += length 3079 case 3: 3080 depth++ 3081 case 4: 3082 if depth == 0 { 3083 return 0, ErrUnexpectedEndOfGroupQuery 3084 } 3085 depth-- 3086 case 5: 3087 iNdEx += 4 3088 default: 3089 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 3090 } 3091 if iNdEx < 0 { 3092 return 0, ErrInvalidLengthQuery 3093 } 3094 if depth == 0 { 3095 return iNdEx, nil 3096 } 3097 } 3098 return 0, io.ErrUnexpectedEOF 3099 } 3100 3101 var ( 3102 ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") 3103 ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") 3104 ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") 3105 )