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