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