github.com/Finschia/finschia-sdk@v0.49.1/x/collection/query.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: lbm/collection/v1/query.proto 3 4 package collection 5 6 import ( 7 context "context" 8 fmt "fmt" 9 types "github.com/Finschia/finschia-sdk/codec/types" 10 github_com_Finschia_finschia_sdk_types "github.com/Finschia/finschia-sdk/types" 11 query "github.com/Finschia/finschia-sdk/types/query" 12 _ "github.com/gogo/protobuf/gogoproto" 13 grpc1 "github.com/gogo/protobuf/grpc" 14 proto "github.com/gogo/protobuf/proto" 15 _ "google.golang.org/genproto/googleapis/api/annotations" 16 grpc "google.golang.org/grpc" 17 codes "google.golang.org/grpc/codes" 18 status "google.golang.org/grpc/status" 19 io "io" 20 math "math" 21 math_bits "math/bits" 22 ) 23 24 // Reference imports to suppress errors if they are not otherwise used. 25 var _ = proto.Marshal 26 var _ = fmt.Errorf 27 var _ = math.Inf 28 29 // This is a compile-time assertion to ensure that this generated file 30 // is compatible with the proto package it is being compiled against. 31 // A compilation error at this line likely means your copy of the 32 // proto package needs to be updated. 33 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 34 35 // QueryBalanceRequest is the request type for the Query/Balance RPC method. 36 type QueryBalanceRequest struct { 37 // contract id associated with the contract. 38 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 39 // address is the address to query the balance for. 40 Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` 41 // token id associated with the token. 42 TokenId string `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` 43 } 44 45 func (m *QueryBalanceRequest) Reset() { *m = QueryBalanceRequest{} } 46 func (m *QueryBalanceRequest) String() string { return proto.CompactTextString(m) } 47 func (*QueryBalanceRequest) ProtoMessage() {} 48 func (*QueryBalanceRequest) Descriptor() ([]byte, []int) { 49 return fileDescriptor_a09de688aac2ee73, []int{0} 50 } 51 func (m *QueryBalanceRequest) XXX_Unmarshal(b []byte) error { 52 return m.Unmarshal(b) 53 } 54 func (m *QueryBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 55 if deterministic { 56 return xxx_messageInfo_QueryBalanceRequest.Marshal(b, m, deterministic) 57 } else { 58 b = b[:cap(b)] 59 n, err := m.MarshalToSizedBuffer(b) 60 if err != nil { 61 return nil, err 62 } 63 return b[:n], nil 64 } 65 } 66 func (m *QueryBalanceRequest) XXX_Merge(src proto.Message) { 67 xxx_messageInfo_QueryBalanceRequest.Merge(m, src) 68 } 69 func (m *QueryBalanceRequest) XXX_Size() int { 70 return m.Size() 71 } 72 func (m *QueryBalanceRequest) XXX_DiscardUnknown() { 73 xxx_messageInfo_QueryBalanceRequest.DiscardUnknown(m) 74 } 75 76 var xxx_messageInfo_QueryBalanceRequest proto.InternalMessageInfo 77 78 func (m *QueryBalanceRequest) GetContractId() string { 79 if m != nil { 80 return m.ContractId 81 } 82 return "" 83 } 84 85 func (m *QueryBalanceRequest) GetAddress() string { 86 if m != nil { 87 return m.Address 88 } 89 return "" 90 } 91 92 func (m *QueryBalanceRequest) GetTokenId() string { 93 if m != nil { 94 return m.TokenId 95 } 96 return "" 97 } 98 99 // QueryBalanceResponse is the response type for the Query/Balance RPC method. 100 type QueryBalanceResponse struct { 101 // balance is the balance of the token. 102 Balance Coin `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance"` 103 } 104 105 func (m *QueryBalanceResponse) Reset() { *m = QueryBalanceResponse{} } 106 func (m *QueryBalanceResponse) String() string { return proto.CompactTextString(m) } 107 func (*QueryBalanceResponse) ProtoMessage() {} 108 func (*QueryBalanceResponse) Descriptor() ([]byte, []int) { 109 return fileDescriptor_a09de688aac2ee73, []int{1} 110 } 111 func (m *QueryBalanceResponse) XXX_Unmarshal(b []byte) error { 112 return m.Unmarshal(b) 113 } 114 func (m *QueryBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 115 if deterministic { 116 return xxx_messageInfo_QueryBalanceResponse.Marshal(b, m, deterministic) 117 } else { 118 b = b[:cap(b)] 119 n, err := m.MarshalToSizedBuffer(b) 120 if err != nil { 121 return nil, err 122 } 123 return b[:n], nil 124 } 125 } 126 func (m *QueryBalanceResponse) XXX_Merge(src proto.Message) { 127 xxx_messageInfo_QueryBalanceResponse.Merge(m, src) 128 } 129 func (m *QueryBalanceResponse) XXX_Size() int { 130 return m.Size() 131 } 132 func (m *QueryBalanceResponse) XXX_DiscardUnknown() { 133 xxx_messageInfo_QueryBalanceResponse.DiscardUnknown(m) 134 } 135 136 var xxx_messageInfo_QueryBalanceResponse proto.InternalMessageInfo 137 138 func (m *QueryBalanceResponse) GetBalance() Coin { 139 if m != nil { 140 return m.Balance 141 } 142 return Coin{} 143 } 144 145 // QueryAllBalancesRequest is the request type for the Query/AllBalances RPC method. 146 type QueryAllBalancesRequest struct { 147 // contract id associated with the contract. 148 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 149 // address is the address to query the balances for. 150 Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` 151 // pagination defines an optional pagination for the request. 152 Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` 153 } 154 155 func (m *QueryAllBalancesRequest) Reset() { *m = QueryAllBalancesRequest{} } 156 func (m *QueryAllBalancesRequest) String() string { return proto.CompactTextString(m) } 157 func (*QueryAllBalancesRequest) ProtoMessage() {} 158 func (*QueryAllBalancesRequest) Descriptor() ([]byte, []int) { 159 return fileDescriptor_a09de688aac2ee73, []int{2} 160 } 161 func (m *QueryAllBalancesRequest) XXX_Unmarshal(b []byte) error { 162 return m.Unmarshal(b) 163 } 164 func (m *QueryAllBalancesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 165 if deterministic { 166 return xxx_messageInfo_QueryAllBalancesRequest.Marshal(b, m, deterministic) 167 } else { 168 b = b[:cap(b)] 169 n, err := m.MarshalToSizedBuffer(b) 170 if err != nil { 171 return nil, err 172 } 173 return b[:n], nil 174 } 175 } 176 func (m *QueryAllBalancesRequest) XXX_Merge(src proto.Message) { 177 xxx_messageInfo_QueryAllBalancesRequest.Merge(m, src) 178 } 179 func (m *QueryAllBalancesRequest) XXX_Size() int { 180 return m.Size() 181 } 182 func (m *QueryAllBalancesRequest) XXX_DiscardUnknown() { 183 xxx_messageInfo_QueryAllBalancesRequest.DiscardUnknown(m) 184 } 185 186 var xxx_messageInfo_QueryAllBalancesRequest proto.InternalMessageInfo 187 188 func (m *QueryAllBalancesRequest) GetContractId() string { 189 if m != nil { 190 return m.ContractId 191 } 192 return "" 193 } 194 195 func (m *QueryAllBalancesRequest) GetAddress() string { 196 if m != nil { 197 return m.Address 198 } 199 return "" 200 } 201 202 func (m *QueryAllBalancesRequest) GetPagination() *query.PageRequest { 203 if m != nil { 204 return m.Pagination 205 } 206 return nil 207 } 208 209 // QueryAllBalancesResponse is the response type for the Query/AllBalances RPC method. 210 type QueryAllBalancesResponse struct { 211 // balances is the balalces of all the tokens. 212 Balances []Coin `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances"` 213 // pagination defines the pagination in the response. 214 Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` 215 } 216 217 func (m *QueryAllBalancesResponse) Reset() { *m = QueryAllBalancesResponse{} } 218 func (m *QueryAllBalancesResponse) String() string { return proto.CompactTextString(m) } 219 func (*QueryAllBalancesResponse) ProtoMessage() {} 220 func (*QueryAllBalancesResponse) Descriptor() ([]byte, []int) { 221 return fileDescriptor_a09de688aac2ee73, []int{3} 222 } 223 func (m *QueryAllBalancesResponse) XXX_Unmarshal(b []byte) error { 224 return m.Unmarshal(b) 225 } 226 func (m *QueryAllBalancesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 227 if deterministic { 228 return xxx_messageInfo_QueryAllBalancesResponse.Marshal(b, m, deterministic) 229 } else { 230 b = b[:cap(b)] 231 n, err := m.MarshalToSizedBuffer(b) 232 if err != nil { 233 return nil, err 234 } 235 return b[:n], nil 236 } 237 } 238 func (m *QueryAllBalancesResponse) XXX_Merge(src proto.Message) { 239 xxx_messageInfo_QueryAllBalancesResponse.Merge(m, src) 240 } 241 func (m *QueryAllBalancesResponse) XXX_Size() int { 242 return m.Size() 243 } 244 func (m *QueryAllBalancesResponse) XXX_DiscardUnknown() { 245 xxx_messageInfo_QueryAllBalancesResponse.DiscardUnknown(m) 246 } 247 248 var xxx_messageInfo_QueryAllBalancesResponse proto.InternalMessageInfo 249 250 func (m *QueryAllBalancesResponse) GetBalances() []Coin { 251 if m != nil { 252 return m.Balances 253 } 254 return nil 255 } 256 257 func (m *QueryAllBalancesResponse) GetPagination() *query.PageResponse { 258 if m != nil { 259 return m.Pagination 260 } 261 return nil 262 } 263 264 // QueryFTSupplyRequest is the request type for the Query/FTSupply RPC method. 265 // 266 // Deprecated: Do not use. 267 type QueryFTSupplyRequest struct { 268 // contract id associated with the contract. 269 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 270 // token id associated with the fungible token. 271 TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` 272 } 273 274 func (m *QueryFTSupplyRequest) Reset() { *m = QueryFTSupplyRequest{} } 275 func (m *QueryFTSupplyRequest) String() string { return proto.CompactTextString(m) } 276 func (*QueryFTSupplyRequest) ProtoMessage() {} 277 func (*QueryFTSupplyRequest) Descriptor() ([]byte, []int) { 278 return fileDescriptor_a09de688aac2ee73, []int{4} 279 } 280 func (m *QueryFTSupplyRequest) XXX_Unmarshal(b []byte) error { 281 return m.Unmarshal(b) 282 } 283 func (m *QueryFTSupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 284 if deterministic { 285 return xxx_messageInfo_QueryFTSupplyRequest.Marshal(b, m, deterministic) 286 } else { 287 b = b[:cap(b)] 288 n, err := m.MarshalToSizedBuffer(b) 289 if err != nil { 290 return nil, err 291 } 292 return b[:n], nil 293 } 294 } 295 func (m *QueryFTSupplyRequest) XXX_Merge(src proto.Message) { 296 xxx_messageInfo_QueryFTSupplyRequest.Merge(m, src) 297 } 298 func (m *QueryFTSupplyRequest) XXX_Size() int { 299 return m.Size() 300 } 301 func (m *QueryFTSupplyRequest) XXX_DiscardUnknown() { 302 xxx_messageInfo_QueryFTSupplyRequest.DiscardUnknown(m) 303 } 304 305 var xxx_messageInfo_QueryFTSupplyRequest proto.InternalMessageInfo 306 307 func (m *QueryFTSupplyRequest) GetContractId() string { 308 if m != nil { 309 return m.ContractId 310 } 311 return "" 312 } 313 314 func (m *QueryFTSupplyRequest) GetTokenId() string { 315 if m != nil { 316 return m.TokenId 317 } 318 return "" 319 } 320 321 // QueryFTSupplyResponse is the response type for the Query/FTSupply RPC method. 322 // 323 // Deprecated: Do not use. 324 type QueryFTSupplyResponse struct { 325 // supply is the supply of the tokens. 326 Supply github_com_Finschia_finschia_sdk_types.Int `protobuf:"bytes,1,opt,name=supply,proto3,customtype=github.com/Finschia/finschia-sdk/types.Int" json:"supply"` 327 } 328 329 func (m *QueryFTSupplyResponse) Reset() { *m = QueryFTSupplyResponse{} } 330 func (m *QueryFTSupplyResponse) String() string { return proto.CompactTextString(m) } 331 func (*QueryFTSupplyResponse) ProtoMessage() {} 332 func (*QueryFTSupplyResponse) Descriptor() ([]byte, []int) { 333 return fileDescriptor_a09de688aac2ee73, []int{5} 334 } 335 func (m *QueryFTSupplyResponse) XXX_Unmarshal(b []byte) error { 336 return m.Unmarshal(b) 337 } 338 func (m *QueryFTSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 339 if deterministic { 340 return xxx_messageInfo_QueryFTSupplyResponse.Marshal(b, m, deterministic) 341 } else { 342 b = b[:cap(b)] 343 n, err := m.MarshalToSizedBuffer(b) 344 if err != nil { 345 return nil, err 346 } 347 return b[:n], nil 348 } 349 } 350 func (m *QueryFTSupplyResponse) XXX_Merge(src proto.Message) { 351 xxx_messageInfo_QueryFTSupplyResponse.Merge(m, src) 352 } 353 func (m *QueryFTSupplyResponse) XXX_Size() int { 354 return m.Size() 355 } 356 func (m *QueryFTSupplyResponse) XXX_DiscardUnknown() { 357 xxx_messageInfo_QueryFTSupplyResponse.DiscardUnknown(m) 358 } 359 360 var xxx_messageInfo_QueryFTSupplyResponse proto.InternalMessageInfo 361 362 // QueryFTMintedRequest is the request type for the Query/FTMinted RPC method. 363 // 364 // Deprecated: Do not use. 365 type QueryFTMintedRequest struct { 366 // contract id associated with the contract. 367 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 368 // token id associated with the fungible token. 369 TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` 370 } 371 372 func (m *QueryFTMintedRequest) Reset() { *m = QueryFTMintedRequest{} } 373 func (m *QueryFTMintedRequest) String() string { return proto.CompactTextString(m) } 374 func (*QueryFTMintedRequest) ProtoMessage() {} 375 func (*QueryFTMintedRequest) Descriptor() ([]byte, []int) { 376 return fileDescriptor_a09de688aac2ee73, []int{6} 377 } 378 func (m *QueryFTMintedRequest) XXX_Unmarshal(b []byte) error { 379 return m.Unmarshal(b) 380 } 381 func (m *QueryFTMintedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 382 if deterministic { 383 return xxx_messageInfo_QueryFTMintedRequest.Marshal(b, m, deterministic) 384 } else { 385 b = b[:cap(b)] 386 n, err := m.MarshalToSizedBuffer(b) 387 if err != nil { 388 return nil, err 389 } 390 return b[:n], nil 391 } 392 } 393 func (m *QueryFTMintedRequest) XXX_Merge(src proto.Message) { 394 xxx_messageInfo_QueryFTMintedRequest.Merge(m, src) 395 } 396 func (m *QueryFTMintedRequest) XXX_Size() int { 397 return m.Size() 398 } 399 func (m *QueryFTMintedRequest) XXX_DiscardUnknown() { 400 xxx_messageInfo_QueryFTMintedRequest.DiscardUnknown(m) 401 } 402 403 var xxx_messageInfo_QueryFTMintedRequest proto.InternalMessageInfo 404 405 func (m *QueryFTMintedRequest) GetContractId() string { 406 if m != nil { 407 return m.ContractId 408 } 409 return "" 410 } 411 412 func (m *QueryFTMintedRequest) GetTokenId() string { 413 if m != nil { 414 return m.TokenId 415 } 416 return "" 417 } 418 419 // QueryFTMintedResponse is the response type for the Query/FTMinted RPC method. 420 // 421 // Deprecated: Do not use. 422 type QueryFTMintedResponse struct { 423 // minted is the amount of the minted tokens. 424 Minted github_com_Finschia_finschia_sdk_types.Int `protobuf:"bytes,1,opt,name=minted,proto3,customtype=github.com/Finschia/finschia-sdk/types.Int" json:"minted"` 425 } 426 427 func (m *QueryFTMintedResponse) Reset() { *m = QueryFTMintedResponse{} } 428 func (m *QueryFTMintedResponse) String() string { return proto.CompactTextString(m) } 429 func (*QueryFTMintedResponse) ProtoMessage() {} 430 func (*QueryFTMintedResponse) Descriptor() ([]byte, []int) { 431 return fileDescriptor_a09de688aac2ee73, []int{7} 432 } 433 func (m *QueryFTMintedResponse) XXX_Unmarshal(b []byte) error { 434 return m.Unmarshal(b) 435 } 436 func (m *QueryFTMintedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 437 if deterministic { 438 return xxx_messageInfo_QueryFTMintedResponse.Marshal(b, m, deterministic) 439 } else { 440 b = b[:cap(b)] 441 n, err := m.MarshalToSizedBuffer(b) 442 if err != nil { 443 return nil, err 444 } 445 return b[:n], nil 446 } 447 } 448 func (m *QueryFTMintedResponse) XXX_Merge(src proto.Message) { 449 xxx_messageInfo_QueryFTMintedResponse.Merge(m, src) 450 } 451 func (m *QueryFTMintedResponse) XXX_Size() int { 452 return m.Size() 453 } 454 func (m *QueryFTMintedResponse) XXX_DiscardUnknown() { 455 xxx_messageInfo_QueryFTMintedResponse.DiscardUnknown(m) 456 } 457 458 var xxx_messageInfo_QueryFTMintedResponse proto.InternalMessageInfo 459 460 // QueryFTBurntRequest is the request type for the Query/FTBurnt RPC method. 461 // 462 // Deprecated: Do not use. 463 type QueryFTBurntRequest struct { 464 // contract id associated with the contract. 465 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 466 // token id associated with the fungible token. 467 TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` 468 } 469 470 func (m *QueryFTBurntRequest) Reset() { *m = QueryFTBurntRequest{} } 471 func (m *QueryFTBurntRequest) String() string { return proto.CompactTextString(m) } 472 func (*QueryFTBurntRequest) ProtoMessage() {} 473 func (*QueryFTBurntRequest) Descriptor() ([]byte, []int) { 474 return fileDescriptor_a09de688aac2ee73, []int{8} 475 } 476 func (m *QueryFTBurntRequest) XXX_Unmarshal(b []byte) error { 477 return m.Unmarshal(b) 478 } 479 func (m *QueryFTBurntRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 480 if deterministic { 481 return xxx_messageInfo_QueryFTBurntRequest.Marshal(b, m, deterministic) 482 } else { 483 b = b[:cap(b)] 484 n, err := m.MarshalToSizedBuffer(b) 485 if err != nil { 486 return nil, err 487 } 488 return b[:n], nil 489 } 490 } 491 func (m *QueryFTBurntRequest) XXX_Merge(src proto.Message) { 492 xxx_messageInfo_QueryFTBurntRequest.Merge(m, src) 493 } 494 func (m *QueryFTBurntRequest) XXX_Size() int { 495 return m.Size() 496 } 497 func (m *QueryFTBurntRequest) XXX_DiscardUnknown() { 498 xxx_messageInfo_QueryFTBurntRequest.DiscardUnknown(m) 499 } 500 501 var xxx_messageInfo_QueryFTBurntRequest proto.InternalMessageInfo 502 503 func (m *QueryFTBurntRequest) GetContractId() string { 504 if m != nil { 505 return m.ContractId 506 } 507 return "" 508 } 509 510 func (m *QueryFTBurntRequest) GetTokenId() string { 511 if m != nil { 512 return m.TokenId 513 } 514 return "" 515 } 516 517 // QueryFTBurntResponse is the response type for the Query/FTBurnt RPC method. 518 // 519 // Deprecated: Do not use. 520 type QueryFTBurntResponse struct { 521 // burnt is the amount of the burnt tokens. 522 Burnt github_com_Finschia_finschia_sdk_types.Int `protobuf:"bytes,1,opt,name=burnt,proto3,customtype=github.com/Finschia/finschia-sdk/types.Int" json:"burnt"` 523 } 524 525 func (m *QueryFTBurntResponse) Reset() { *m = QueryFTBurntResponse{} } 526 func (m *QueryFTBurntResponse) String() string { return proto.CompactTextString(m) } 527 func (*QueryFTBurntResponse) ProtoMessage() {} 528 func (*QueryFTBurntResponse) Descriptor() ([]byte, []int) { 529 return fileDescriptor_a09de688aac2ee73, []int{9} 530 } 531 func (m *QueryFTBurntResponse) XXX_Unmarshal(b []byte) error { 532 return m.Unmarshal(b) 533 } 534 func (m *QueryFTBurntResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 535 if deterministic { 536 return xxx_messageInfo_QueryFTBurntResponse.Marshal(b, m, deterministic) 537 } else { 538 b = b[:cap(b)] 539 n, err := m.MarshalToSizedBuffer(b) 540 if err != nil { 541 return nil, err 542 } 543 return b[:n], nil 544 } 545 } 546 func (m *QueryFTBurntResponse) XXX_Merge(src proto.Message) { 547 xxx_messageInfo_QueryFTBurntResponse.Merge(m, src) 548 } 549 func (m *QueryFTBurntResponse) XXX_Size() int { 550 return m.Size() 551 } 552 func (m *QueryFTBurntResponse) XXX_DiscardUnknown() { 553 xxx_messageInfo_QueryFTBurntResponse.DiscardUnknown(m) 554 } 555 556 var xxx_messageInfo_QueryFTBurntResponse proto.InternalMessageInfo 557 558 // QueryNFTSupplyRequest is the request type for the Query/NFTSupply RPC method. 559 type QueryNFTSupplyRequest struct { 560 // contract id associated with the contract. 561 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 562 // token type associated with the token type. 563 // refer to TokenType for the definition. 564 TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` 565 } 566 567 func (m *QueryNFTSupplyRequest) Reset() { *m = QueryNFTSupplyRequest{} } 568 func (m *QueryNFTSupplyRequest) String() string { return proto.CompactTextString(m) } 569 func (*QueryNFTSupplyRequest) ProtoMessage() {} 570 func (*QueryNFTSupplyRequest) Descriptor() ([]byte, []int) { 571 return fileDescriptor_a09de688aac2ee73, []int{10} 572 } 573 func (m *QueryNFTSupplyRequest) XXX_Unmarshal(b []byte) error { 574 return m.Unmarshal(b) 575 } 576 func (m *QueryNFTSupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 577 if deterministic { 578 return xxx_messageInfo_QueryNFTSupplyRequest.Marshal(b, m, deterministic) 579 } else { 580 b = b[:cap(b)] 581 n, err := m.MarshalToSizedBuffer(b) 582 if err != nil { 583 return nil, err 584 } 585 return b[:n], nil 586 } 587 } 588 func (m *QueryNFTSupplyRequest) XXX_Merge(src proto.Message) { 589 xxx_messageInfo_QueryNFTSupplyRequest.Merge(m, src) 590 } 591 func (m *QueryNFTSupplyRequest) XXX_Size() int { 592 return m.Size() 593 } 594 func (m *QueryNFTSupplyRequest) XXX_DiscardUnknown() { 595 xxx_messageInfo_QueryNFTSupplyRequest.DiscardUnknown(m) 596 } 597 598 var xxx_messageInfo_QueryNFTSupplyRequest proto.InternalMessageInfo 599 600 func (m *QueryNFTSupplyRequest) GetContractId() string { 601 if m != nil { 602 return m.ContractId 603 } 604 return "" 605 } 606 607 func (m *QueryNFTSupplyRequest) GetTokenType() string { 608 if m != nil { 609 return m.TokenType 610 } 611 return "" 612 } 613 614 // QueryNFTSupplyResponse is the response type for the Query/NFTSupply RPC method. 615 type QueryNFTSupplyResponse struct { 616 // supply is the supply of the non-fungible token. 617 Supply github_com_Finschia_finschia_sdk_types.Int `protobuf:"bytes,1,opt,name=supply,proto3,customtype=github.com/Finschia/finschia-sdk/types.Int" json:"supply"` 618 } 619 620 func (m *QueryNFTSupplyResponse) Reset() { *m = QueryNFTSupplyResponse{} } 621 func (m *QueryNFTSupplyResponse) String() string { return proto.CompactTextString(m) } 622 func (*QueryNFTSupplyResponse) ProtoMessage() {} 623 func (*QueryNFTSupplyResponse) Descriptor() ([]byte, []int) { 624 return fileDescriptor_a09de688aac2ee73, []int{11} 625 } 626 func (m *QueryNFTSupplyResponse) XXX_Unmarshal(b []byte) error { 627 return m.Unmarshal(b) 628 } 629 func (m *QueryNFTSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 630 if deterministic { 631 return xxx_messageInfo_QueryNFTSupplyResponse.Marshal(b, m, deterministic) 632 } else { 633 b = b[:cap(b)] 634 n, err := m.MarshalToSizedBuffer(b) 635 if err != nil { 636 return nil, err 637 } 638 return b[:n], nil 639 } 640 } 641 func (m *QueryNFTSupplyResponse) XXX_Merge(src proto.Message) { 642 xxx_messageInfo_QueryNFTSupplyResponse.Merge(m, src) 643 } 644 func (m *QueryNFTSupplyResponse) XXX_Size() int { 645 return m.Size() 646 } 647 func (m *QueryNFTSupplyResponse) XXX_DiscardUnknown() { 648 xxx_messageInfo_QueryNFTSupplyResponse.DiscardUnknown(m) 649 } 650 651 var xxx_messageInfo_QueryNFTSupplyResponse proto.InternalMessageInfo 652 653 // QueryNFTMintedRequest is the request type for the Query/NFTMinted RPC method. 654 type QueryNFTMintedRequest struct { 655 // contract id associated with the contract. 656 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 657 // token type associated with the token type. 658 // refer to TokenType for the definition. 659 TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` 660 } 661 662 func (m *QueryNFTMintedRequest) Reset() { *m = QueryNFTMintedRequest{} } 663 func (m *QueryNFTMintedRequest) String() string { return proto.CompactTextString(m) } 664 func (*QueryNFTMintedRequest) ProtoMessage() {} 665 func (*QueryNFTMintedRequest) Descriptor() ([]byte, []int) { 666 return fileDescriptor_a09de688aac2ee73, []int{12} 667 } 668 func (m *QueryNFTMintedRequest) XXX_Unmarshal(b []byte) error { 669 return m.Unmarshal(b) 670 } 671 func (m *QueryNFTMintedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 672 if deterministic { 673 return xxx_messageInfo_QueryNFTMintedRequest.Marshal(b, m, deterministic) 674 } else { 675 b = b[:cap(b)] 676 n, err := m.MarshalToSizedBuffer(b) 677 if err != nil { 678 return nil, err 679 } 680 return b[:n], nil 681 } 682 } 683 func (m *QueryNFTMintedRequest) XXX_Merge(src proto.Message) { 684 xxx_messageInfo_QueryNFTMintedRequest.Merge(m, src) 685 } 686 func (m *QueryNFTMintedRequest) XXX_Size() int { 687 return m.Size() 688 } 689 func (m *QueryNFTMintedRequest) XXX_DiscardUnknown() { 690 xxx_messageInfo_QueryNFTMintedRequest.DiscardUnknown(m) 691 } 692 693 var xxx_messageInfo_QueryNFTMintedRequest proto.InternalMessageInfo 694 695 func (m *QueryNFTMintedRequest) GetContractId() string { 696 if m != nil { 697 return m.ContractId 698 } 699 return "" 700 } 701 702 func (m *QueryNFTMintedRequest) GetTokenType() string { 703 if m != nil { 704 return m.TokenType 705 } 706 return "" 707 } 708 709 // QueryNFTMintedResponse is the response type for the Query/NFTMinted RPC method. 710 type QueryNFTMintedResponse struct { 711 // minted is the amount of minted tokens. 712 Minted github_com_Finschia_finschia_sdk_types.Int `protobuf:"bytes,1,opt,name=minted,proto3,customtype=github.com/Finschia/finschia-sdk/types.Int" json:"minted"` 713 } 714 715 func (m *QueryNFTMintedResponse) Reset() { *m = QueryNFTMintedResponse{} } 716 func (m *QueryNFTMintedResponse) String() string { return proto.CompactTextString(m) } 717 func (*QueryNFTMintedResponse) ProtoMessage() {} 718 func (*QueryNFTMintedResponse) Descriptor() ([]byte, []int) { 719 return fileDescriptor_a09de688aac2ee73, []int{13} 720 } 721 func (m *QueryNFTMintedResponse) XXX_Unmarshal(b []byte) error { 722 return m.Unmarshal(b) 723 } 724 func (m *QueryNFTMintedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 725 if deterministic { 726 return xxx_messageInfo_QueryNFTMintedResponse.Marshal(b, m, deterministic) 727 } else { 728 b = b[:cap(b)] 729 n, err := m.MarshalToSizedBuffer(b) 730 if err != nil { 731 return nil, err 732 } 733 return b[:n], nil 734 } 735 } 736 func (m *QueryNFTMintedResponse) XXX_Merge(src proto.Message) { 737 xxx_messageInfo_QueryNFTMintedResponse.Merge(m, src) 738 } 739 func (m *QueryNFTMintedResponse) XXX_Size() int { 740 return m.Size() 741 } 742 func (m *QueryNFTMintedResponse) XXX_DiscardUnknown() { 743 xxx_messageInfo_QueryNFTMintedResponse.DiscardUnknown(m) 744 } 745 746 var xxx_messageInfo_QueryNFTMintedResponse proto.InternalMessageInfo 747 748 // QueryNFTBurntRequest is the request type for the Query/NFTBurnt RPC method. 749 type QueryNFTBurntRequest struct { 750 // contract id associated with the contract. 751 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 752 // token type associated with the token type. 753 // refer to TokenType for the definition. 754 TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` 755 } 756 757 func (m *QueryNFTBurntRequest) Reset() { *m = QueryNFTBurntRequest{} } 758 func (m *QueryNFTBurntRequest) String() string { return proto.CompactTextString(m) } 759 func (*QueryNFTBurntRequest) ProtoMessage() {} 760 func (*QueryNFTBurntRequest) Descriptor() ([]byte, []int) { 761 return fileDescriptor_a09de688aac2ee73, []int{14} 762 } 763 func (m *QueryNFTBurntRequest) XXX_Unmarshal(b []byte) error { 764 return m.Unmarshal(b) 765 } 766 func (m *QueryNFTBurntRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 767 if deterministic { 768 return xxx_messageInfo_QueryNFTBurntRequest.Marshal(b, m, deterministic) 769 } else { 770 b = b[:cap(b)] 771 n, err := m.MarshalToSizedBuffer(b) 772 if err != nil { 773 return nil, err 774 } 775 return b[:n], nil 776 } 777 } 778 func (m *QueryNFTBurntRequest) XXX_Merge(src proto.Message) { 779 xxx_messageInfo_QueryNFTBurntRequest.Merge(m, src) 780 } 781 func (m *QueryNFTBurntRequest) XXX_Size() int { 782 return m.Size() 783 } 784 func (m *QueryNFTBurntRequest) XXX_DiscardUnknown() { 785 xxx_messageInfo_QueryNFTBurntRequest.DiscardUnknown(m) 786 } 787 788 var xxx_messageInfo_QueryNFTBurntRequest proto.InternalMessageInfo 789 790 func (m *QueryNFTBurntRequest) GetContractId() string { 791 if m != nil { 792 return m.ContractId 793 } 794 return "" 795 } 796 797 func (m *QueryNFTBurntRequest) GetTokenType() string { 798 if m != nil { 799 return m.TokenType 800 } 801 return "" 802 } 803 804 // QueryNFTBurntResponse is the response type for the Query/NFTBurnt RPC method. 805 type QueryNFTBurntResponse struct { 806 // burnt is the amount of the burnt tokens. 807 Burnt github_com_Finschia_finschia_sdk_types.Int `protobuf:"bytes,1,opt,name=burnt,proto3,customtype=github.com/Finschia/finschia-sdk/types.Int" json:"burnt"` 808 } 809 810 func (m *QueryNFTBurntResponse) Reset() { *m = QueryNFTBurntResponse{} } 811 func (m *QueryNFTBurntResponse) String() string { return proto.CompactTextString(m) } 812 func (*QueryNFTBurntResponse) ProtoMessage() {} 813 func (*QueryNFTBurntResponse) Descriptor() ([]byte, []int) { 814 return fileDescriptor_a09de688aac2ee73, []int{15} 815 } 816 func (m *QueryNFTBurntResponse) XXX_Unmarshal(b []byte) error { 817 return m.Unmarshal(b) 818 } 819 func (m *QueryNFTBurntResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 820 if deterministic { 821 return xxx_messageInfo_QueryNFTBurntResponse.Marshal(b, m, deterministic) 822 } else { 823 b = b[:cap(b)] 824 n, err := m.MarshalToSizedBuffer(b) 825 if err != nil { 826 return nil, err 827 } 828 return b[:n], nil 829 } 830 } 831 func (m *QueryNFTBurntResponse) XXX_Merge(src proto.Message) { 832 xxx_messageInfo_QueryNFTBurntResponse.Merge(m, src) 833 } 834 func (m *QueryNFTBurntResponse) XXX_Size() int { 835 return m.Size() 836 } 837 func (m *QueryNFTBurntResponse) XXX_DiscardUnknown() { 838 xxx_messageInfo_QueryNFTBurntResponse.DiscardUnknown(m) 839 } 840 841 var xxx_messageInfo_QueryNFTBurntResponse proto.InternalMessageInfo 842 843 // QueryContractRequest is the request type for the Query/Contract RPC method. 844 type QueryContractRequest struct { 845 // contract id associated with the contract. 846 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 847 } 848 849 func (m *QueryContractRequest) Reset() { *m = QueryContractRequest{} } 850 func (m *QueryContractRequest) String() string { return proto.CompactTextString(m) } 851 func (*QueryContractRequest) ProtoMessage() {} 852 func (*QueryContractRequest) Descriptor() ([]byte, []int) { 853 return fileDescriptor_a09de688aac2ee73, []int{16} 854 } 855 func (m *QueryContractRequest) XXX_Unmarshal(b []byte) error { 856 return m.Unmarshal(b) 857 } 858 func (m *QueryContractRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 859 if deterministic { 860 return xxx_messageInfo_QueryContractRequest.Marshal(b, m, deterministic) 861 } else { 862 b = b[:cap(b)] 863 n, err := m.MarshalToSizedBuffer(b) 864 if err != nil { 865 return nil, err 866 } 867 return b[:n], nil 868 } 869 } 870 func (m *QueryContractRequest) XXX_Merge(src proto.Message) { 871 xxx_messageInfo_QueryContractRequest.Merge(m, src) 872 } 873 func (m *QueryContractRequest) XXX_Size() int { 874 return m.Size() 875 } 876 func (m *QueryContractRequest) XXX_DiscardUnknown() { 877 xxx_messageInfo_QueryContractRequest.DiscardUnknown(m) 878 } 879 880 var xxx_messageInfo_QueryContractRequest proto.InternalMessageInfo 881 882 func (m *QueryContractRequest) GetContractId() string { 883 if m != nil { 884 return m.ContractId 885 } 886 return "" 887 } 888 889 // QueryContractResponse is the response type for the Query/Contract RPC method. 890 type QueryContractResponse struct { 891 // contract is the information of the contract. 892 Contract Contract `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract"` 893 } 894 895 func (m *QueryContractResponse) Reset() { *m = QueryContractResponse{} } 896 func (m *QueryContractResponse) String() string { return proto.CompactTextString(m) } 897 func (*QueryContractResponse) ProtoMessage() {} 898 func (*QueryContractResponse) Descriptor() ([]byte, []int) { 899 return fileDescriptor_a09de688aac2ee73, []int{17} 900 } 901 func (m *QueryContractResponse) XXX_Unmarshal(b []byte) error { 902 return m.Unmarshal(b) 903 } 904 func (m *QueryContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 905 if deterministic { 906 return xxx_messageInfo_QueryContractResponse.Marshal(b, m, deterministic) 907 } else { 908 b = b[:cap(b)] 909 n, err := m.MarshalToSizedBuffer(b) 910 if err != nil { 911 return nil, err 912 } 913 return b[:n], nil 914 } 915 } 916 func (m *QueryContractResponse) XXX_Merge(src proto.Message) { 917 xxx_messageInfo_QueryContractResponse.Merge(m, src) 918 } 919 func (m *QueryContractResponse) XXX_Size() int { 920 return m.Size() 921 } 922 func (m *QueryContractResponse) XXX_DiscardUnknown() { 923 xxx_messageInfo_QueryContractResponse.DiscardUnknown(m) 924 } 925 926 var xxx_messageInfo_QueryContractResponse proto.InternalMessageInfo 927 928 func (m *QueryContractResponse) GetContract() Contract { 929 if m != nil { 930 return m.Contract 931 } 932 return Contract{} 933 } 934 935 // QueryTokenClassTypeNameRequest is the request type for the Query/TokenClassTypeName RPC method. 936 // 937 // Since: 0.46.0 (finschia) 938 type QueryTokenClassTypeNameRequest struct { 939 // contract id associated with the contract. 940 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 941 // class id associated with the token class. 942 ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` 943 } 944 945 func (m *QueryTokenClassTypeNameRequest) Reset() { *m = QueryTokenClassTypeNameRequest{} } 946 func (m *QueryTokenClassTypeNameRequest) String() string { return proto.CompactTextString(m) } 947 func (*QueryTokenClassTypeNameRequest) ProtoMessage() {} 948 func (*QueryTokenClassTypeNameRequest) Descriptor() ([]byte, []int) { 949 return fileDescriptor_a09de688aac2ee73, []int{18} 950 } 951 func (m *QueryTokenClassTypeNameRequest) XXX_Unmarshal(b []byte) error { 952 return m.Unmarshal(b) 953 } 954 func (m *QueryTokenClassTypeNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 955 if deterministic { 956 return xxx_messageInfo_QueryTokenClassTypeNameRequest.Marshal(b, m, deterministic) 957 } else { 958 b = b[:cap(b)] 959 n, err := m.MarshalToSizedBuffer(b) 960 if err != nil { 961 return nil, err 962 } 963 return b[:n], nil 964 } 965 } 966 func (m *QueryTokenClassTypeNameRequest) XXX_Merge(src proto.Message) { 967 xxx_messageInfo_QueryTokenClassTypeNameRequest.Merge(m, src) 968 } 969 func (m *QueryTokenClassTypeNameRequest) XXX_Size() int { 970 return m.Size() 971 } 972 func (m *QueryTokenClassTypeNameRequest) XXX_DiscardUnknown() { 973 xxx_messageInfo_QueryTokenClassTypeNameRequest.DiscardUnknown(m) 974 } 975 976 var xxx_messageInfo_QueryTokenClassTypeNameRequest proto.InternalMessageInfo 977 978 func (m *QueryTokenClassTypeNameRequest) GetContractId() string { 979 if m != nil { 980 return m.ContractId 981 } 982 return "" 983 } 984 985 func (m *QueryTokenClassTypeNameRequest) GetClassId() string { 986 if m != nil { 987 return m.ClassId 988 } 989 return "" 990 } 991 992 // QueryTokenClassTypeNameResponse is the response type for the Query/TokenClassTypeName RPC method. 993 // 994 // Since: 0.46.0 (finschia) 995 type QueryTokenClassTypeNameResponse struct { 996 // type name of the token class. 997 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 998 } 999 1000 func (m *QueryTokenClassTypeNameResponse) Reset() { *m = QueryTokenClassTypeNameResponse{} } 1001 func (m *QueryTokenClassTypeNameResponse) String() string { return proto.CompactTextString(m) } 1002 func (*QueryTokenClassTypeNameResponse) ProtoMessage() {} 1003 func (*QueryTokenClassTypeNameResponse) Descriptor() ([]byte, []int) { 1004 return fileDescriptor_a09de688aac2ee73, []int{19} 1005 } 1006 func (m *QueryTokenClassTypeNameResponse) XXX_Unmarshal(b []byte) error { 1007 return m.Unmarshal(b) 1008 } 1009 func (m *QueryTokenClassTypeNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1010 if deterministic { 1011 return xxx_messageInfo_QueryTokenClassTypeNameResponse.Marshal(b, m, deterministic) 1012 } else { 1013 b = b[:cap(b)] 1014 n, err := m.MarshalToSizedBuffer(b) 1015 if err != nil { 1016 return nil, err 1017 } 1018 return b[:n], nil 1019 } 1020 } 1021 func (m *QueryTokenClassTypeNameResponse) XXX_Merge(src proto.Message) { 1022 xxx_messageInfo_QueryTokenClassTypeNameResponse.Merge(m, src) 1023 } 1024 func (m *QueryTokenClassTypeNameResponse) XXX_Size() int { 1025 return m.Size() 1026 } 1027 func (m *QueryTokenClassTypeNameResponse) XXX_DiscardUnknown() { 1028 xxx_messageInfo_QueryTokenClassTypeNameResponse.DiscardUnknown(m) 1029 } 1030 1031 var xxx_messageInfo_QueryTokenClassTypeNameResponse proto.InternalMessageInfo 1032 1033 func (m *QueryTokenClassTypeNameResponse) GetName() string { 1034 if m != nil { 1035 return m.Name 1036 } 1037 return "" 1038 } 1039 1040 // QueryTokenTypeRequest is the request type for the Query/TokenType RPC method. 1041 type QueryTokenTypeRequest struct { 1042 // contract id associated with the contract. 1043 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 1044 // token type associated with the token type. 1045 // refer to TokenType for the definition. 1046 TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` 1047 } 1048 1049 func (m *QueryTokenTypeRequest) Reset() { *m = QueryTokenTypeRequest{} } 1050 func (m *QueryTokenTypeRequest) String() string { return proto.CompactTextString(m) } 1051 func (*QueryTokenTypeRequest) ProtoMessage() {} 1052 func (*QueryTokenTypeRequest) Descriptor() ([]byte, []int) { 1053 return fileDescriptor_a09de688aac2ee73, []int{20} 1054 } 1055 func (m *QueryTokenTypeRequest) XXX_Unmarshal(b []byte) error { 1056 return m.Unmarshal(b) 1057 } 1058 func (m *QueryTokenTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1059 if deterministic { 1060 return xxx_messageInfo_QueryTokenTypeRequest.Marshal(b, m, deterministic) 1061 } else { 1062 b = b[:cap(b)] 1063 n, err := m.MarshalToSizedBuffer(b) 1064 if err != nil { 1065 return nil, err 1066 } 1067 return b[:n], nil 1068 } 1069 } 1070 func (m *QueryTokenTypeRequest) XXX_Merge(src proto.Message) { 1071 xxx_messageInfo_QueryTokenTypeRequest.Merge(m, src) 1072 } 1073 func (m *QueryTokenTypeRequest) XXX_Size() int { 1074 return m.Size() 1075 } 1076 func (m *QueryTokenTypeRequest) XXX_DiscardUnknown() { 1077 xxx_messageInfo_QueryTokenTypeRequest.DiscardUnknown(m) 1078 } 1079 1080 var xxx_messageInfo_QueryTokenTypeRequest proto.InternalMessageInfo 1081 1082 func (m *QueryTokenTypeRequest) GetContractId() string { 1083 if m != nil { 1084 return m.ContractId 1085 } 1086 return "" 1087 } 1088 1089 func (m *QueryTokenTypeRequest) GetTokenType() string { 1090 if m != nil { 1091 return m.TokenType 1092 } 1093 return "" 1094 } 1095 1096 // QueryTokenTypeResponse is the response type for the Query/TokenType RPC method. 1097 type QueryTokenTypeResponse struct { 1098 // token type is the information of the token type. 1099 TokenType TokenType `protobuf:"bytes,1,opt,name=token_type,json=tokenType,proto3" json:"token_type"` 1100 } 1101 1102 func (m *QueryTokenTypeResponse) Reset() { *m = QueryTokenTypeResponse{} } 1103 func (m *QueryTokenTypeResponse) String() string { return proto.CompactTextString(m) } 1104 func (*QueryTokenTypeResponse) ProtoMessage() {} 1105 func (*QueryTokenTypeResponse) Descriptor() ([]byte, []int) { 1106 return fileDescriptor_a09de688aac2ee73, []int{21} 1107 } 1108 func (m *QueryTokenTypeResponse) XXX_Unmarshal(b []byte) error { 1109 return m.Unmarshal(b) 1110 } 1111 func (m *QueryTokenTypeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1112 if deterministic { 1113 return xxx_messageInfo_QueryTokenTypeResponse.Marshal(b, m, deterministic) 1114 } else { 1115 b = b[:cap(b)] 1116 n, err := m.MarshalToSizedBuffer(b) 1117 if err != nil { 1118 return nil, err 1119 } 1120 return b[:n], nil 1121 } 1122 } 1123 func (m *QueryTokenTypeResponse) XXX_Merge(src proto.Message) { 1124 xxx_messageInfo_QueryTokenTypeResponse.Merge(m, src) 1125 } 1126 func (m *QueryTokenTypeResponse) XXX_Size() int { 1127 return m.Size() 1128 } 1129 func (m *QueryTokenTypeResponse) XXX_DiscardUnknown() { 1130 xxx_messageInfo_QueryTokenTypeResponse.DiscardUnknown(m) 1131 } 1132 1133 var xxx_messageInfo_QueryTokenTypeResponse proto.InternalMessageInfo 1134 1135 func (m *QueryTokenTypeResponse) GetTokenType() TokenType { 1136 if m != nil { 1137 return m.TokenType 1138 } 1139 return TokenType{} 1140 } 1141 1142 // QueryTokenRequest is the request type for the Query/Token RPC method. 1143 type QueryTokenRequest struct { 1144 // contract id associated with the contract. 1145 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 1146 // token id associated with the fungible token. 1147 TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` 1148 } 1149 1150 func (m *QueryTokenRequest) Reset() { *m = QueryTokenRequest{} } 1151 func (m *QueryTokenRequest) String() string { return proto.CompactTextString(m) } 1152 func (*QueryTokenRequest) ProtoMessage() {} 1153 func (*QueryTokenRequest) Descriptor() ([]byte, []int) { 1154 return fileDescriptor_a09de688aac2ee73, []int{22} 1155 } 1156 func (m *QueryTokenRequest) XXX_Unmarshal(b []byte) error { 1157 return m.Unmarshal(b) 1158 } 1159 func (m *QueryTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1160 if deterministic { 1161 return xxx_messageInfo_QueryTokenRequest.Marshal(b, m, deterministic) 1162 } else { 1163 b = b[:cap(b)] 1164 n, err := m.MarshalToSizedBuffer(b) 1165 if err != nil { 1166 return nil, err 1167 } 1168 return b[:n], nil 1169 } 1170 } 1171 func (m *QueryTokenRequest) XXX_Merge(src proto.Message) { 1172 xxx_messageInfo_QueryTokenRequest.Merge(m, src) 1173 } 1174 func (m *QueryTokenRequest) XXX_Size() int { 1175 return m.Size() 1176 } 1177 func (m *QueryTokenRequest) XXX_DiscardUnknown() { 1178 xxx_messageInfo_QueryTokenRequest.DiscardUnknown(m) 1179 } 1180 1181 var xxx_messageInfo_QueryTokenRequest proto.InternalMessageInfo 1182 1183 func (m *QueryTokenRequest) GetContractId() string { 1184 if m != nil { 1185 return m.ContractId 1186 } 1187 return "" 1188 } 1189 1190 func (m *QueryTokenRequest) GetTokenId() string { 1191 if m != nil { 1192 return m.TokenId 1193 } 1194 return "" 1195 } 1196 1197 // QueryTokenResponse is the response type for the Query/Token RPC method. 1198 type QueryTokenResponse struct { 1199 // information of the token. 1200 Token types.Any `protobuf:"bytes,1,opt,name=token,proto3" json:"token"` 1201 } 1202 1203 func (m *QueryTokenResponse) Reset() { *m = QueryTokenResponse{} } 1204 func (m *QueryTokenResponse) String() string { return proto.CompactTextString(m) } 1205 func (*QueryTokenResponse) ProtoMessage() {} 1206 func (*QueryTokenResponse) Descriptor() ([]byte, []int) { 1207 return fileDescriptor_a09de688aac2ee73, []int{23} 1208 } 1209 func (m *QueryTokenResponse) XXX_Unmarshal(b []byte) error { 1210 return m.Unmarshal(b) 1211 } 1212 func (m *QueryTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1213 if deterministic { 1214 return xxx_messageInfo_QueryTokenResponse.Marshal(b, m, deterministic) 1215 } else { 1216 b = b[:cap(b)] 1217 n, err := m.MarshalToSizedBuffer(b) 1218 if err != nil { 1219 return nil, err 1220 } 1221 return b[:n], nil 1222 } 1223 } 1224 func (m *QueryTokenResponse) XXX_Merge(src proto.Message) { 1225 xxx_messageInfo_QueryTokenResponse.Merge(m, src) 1226 } 1227 func (m *QueryTokenResponse) XXX_Size() int { 1228 return m.Size() 1229 } 1230 func (m *QueryTokenResponse) XXX_DiscardUnknown() { 1231 xxx_messageInfo_QueryTokenResponse.DiscardUnknown(m) 1232 } 1233 1234 var xxx_messageInfo_QueryTokenResponse proto.InternalMessageInfo 1235 1236 func (m *QueryTokenResponse) GetToken() types.Any { 1237 if m != nil { 1238 return m.Token 1239 } 1240 return types.Any{} 1241 } 1242 1243 // QueryRootRequest is the request type for the Query/Root RPC method. 1244 // 1245 // Deprecated: Do not use. 1246 type QueryRootRequest struct { 1247 // contract id associated with the contract. 1248 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 1249 // token id associated with the non-fungible token. 1250 TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` 1251 } 1252 1253 func (m *QueryRootRequest) Reset() { *m = QueryRootRequest{} } 1254 func (m *QueryRootRequest) String() string { return proto.CompactTextString(m) } 1255 func (*QueryRootRequest) ProtoMessage() {} 1256 func (*QueryRootRequest) Descriptor() ([]byte, []int) { 1257 return fileDescriptor_a09de688aac2ee73, []int{24} 1258 } 1259 func (m *QueryRootRequest) XXX_Unmarshal(b []byte) error { 1260 return m.Unmarshal(b) 1261 } 1262 func (m *QueryRootRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1263 if deterministic { 1264 return xxx_messageInfo_QueryRootRequest.Marshal(b, m, deterministic) 1265 } else { 1266 b = b[:cap(b)] 1267 n, err := m.MarshalToSizedBuffer(b) 1268 if err != nil { 1269 return nil, err 1270 } 1271 return b[:n], nil 1272 } 1273 } 1274 func (m *QueryRootRequest) XXX_Merge(src proto.Message) { 1275 xxx_messageInfo_QueryRootRequest.Merge(m, src) 1276 } 1277 func (m *QueryRootRequest) XXX_Size() int { 1278 return m.Size() 1279 } 1280 func (m *QueryRootRequest) XXX_DiscardUnknown() { 1281 xxx_messageInfo_QueryRootRequest.DiscardUnknown(m) 1282 } 1283 1284 var xxx_messageInfo_QueryRootRequest proto.InternalMessageInfo 1285 1286 func (m *QueryRootRequest) GetContractId() string { 1287 if m != nil { 1288 return m.ContractId 1289 } 1290 return "" 1291 } 1292 1293 func (m *QueryRootRequest) GetTokenId() string { 1294 if m != nil { 1295 return m.TokenId 1296 } 1297 return "" 1298 } 1299 1300 // QueryRootResponse is the response type for the Query/Root RPC method. 1301 // 1302 // Deprecated: Do not use. 1303 type QueryRootResponse struct { 1304 // root is the information of the root token. 1305 // it would return itself if it's the root token. 1306 Root NFT `protobuf:"bytes,1,opt,name=root,proto3" json:"root"` 1307 } 1308 1309 func (m *QueryRootResponse) Reset() { *m = QueryRootResponse{} } 1310 func (m *QueryRootResponse) String() string { return proto.CompactTextString(m) } 1311 func (*QueryRootResponse) ProtoMessage() {} 1312 func (*QueryRootResponse) Descriptor() ([]byte, []int) { 1313 return fileDescriptor_a09de688aac2ee73, []int{25} 1314 } 1315 func (m *QueryRootResponse) XXX_Unmarshal(b []byte) error { 1316 return m.Unmarshal(b) 1317 } 1318 func (m *QueryRootResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1319 if deterministic { 1320 return xxx_messageInfo_QueryRootResponse.Marshal(b, m, deterministic) 1321 } else { 1322 b = b[:cap(b)] 1323 n, err := m.MarshalToSizedBuffer(b) 1324 if err != nil { 1325 return nil, err 1326 } 1327 return b[:n], nil 1328 } 1329 } 1330 func (m *QueryRootResponse) XXX_Merge(src proto.Message) { 1331 xxx_messageInfo_QueryRootResponse.Merge(m, src) 1332 } 1333 func (m *QueryRootResponse) XXX_Size() int { 1334 return m.Size() 1335 } 1336 func (m *QueryRootResponse) XXX_DiscardUnknown() { 1337 xxx_messageInfo_QueryRootResponse.DiscardUnknown(m) 1338 } 1339 1340 var xxx_messageInfo_QueryRootResponse proto.InternalMessageInfo 1341 1342 func (m *QueryRootResponse) GetRoot() NFT { 1343 if m != nil { 1344 return m.Root 1345 } 1346 return NFT{} 1347 } 1348 1349 // QueryHasParentRequest is the request type for the Query/HasParent RPC method. 1350 // 1351 // Deprecated: Do not use. 1352 type QueryHasParentRequest struct { 1353 // contract id associated with the contract. 1354 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 1355 // token id associated wit the non-fungible token. 1356 TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` 1357 } 1358 1359 func (m *QueryHasParentRequest) Reset() { *m = QueryHasParentRequest{} } 1360 func (m *QueryHasParentRequest) String() string { return proto.CompactTextString(m) } 1361 func (*QueryHasParentRequest) ProtoMessage() {} 1362 func (*QueryHasParentRequest) Descriptor() ([]byte, []int) { 1363 return fileDescriptor_a09de688aac2ee73, []int{26} 1364 } 1365 func (m *QueryHasParentRequest) XXX_Unmarshal(b []byte) error { 1366 return m.Unmarshal(b) 1367 } 1368 func (m *QueryHasParentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1369 if deterministic { 1370 return xxx_messageInfo_QueryHasParentRequest.Marshal(b, m, deterministic) 1371 } else { 1372 b = b[:cap(b)] 1373 n, err := m.MarshalToSizedBuffer(b) 1374 if err != nil { 1375 return nil, err 1376 } 1377 return b[:n], nil 1378 } 1379 } 1380 func (m *QueryHasParentRequest) XXX_Merge(src proto.Message) { 1381 xxx_messageInfo_QueryHasParentRequest.Merge(m, src) 1382 } 1383 func (m *QueryHasParentRequest) XXX_Size() int { 1384 return m.Size() 1385 } 1386 func (m *QueryHasParentRequest) XXX_DiscardUnknown() { 1387 xxx_messageInfo_QueryHasParentRequest.DiscardUnknown(m) 1388 } 1389 1390 var xxx_messageInfo_QueryHasParentRequest proto.InternalMessageInfo 1391 1392 func (m *QueryHasParentRequest) GetContractId() string { 1393 if m != nil { 1394 return m.ContractId 1395 } 1396 return "" 1397 } 1398 1399 func (m *QueryHasParentRequest) GetTokenId() string { 1400 if m != nil { 1401 return m.TokenId 1402 } 1403 return "" 1404 } 1405 1406 // QueryHasParentResponse is the response type for the Query/HasParent RPC method. 1407 // 1408 // Deprecated: Do not use. 1409 type QueryHasParentResponse struct { 1410 // whether the token has its parent. 1411 HasParent bool `protobuf:"varint,1,opt,name=has_parent,json=hasParent,proto3" json:"has_parent,omitempty"` 1412 } 1413 1414 func (m *QueryHasParentResponse) Reset() { *m = QueryHasParentResponse{} } 1415 func (m *QueryHasParentResponse) String() string { return proto.CompactTextString(m) } 1416 func (*QueryHasParentResponse) ProtoMessage() {} 1417 func (*QueryHasParentResponse) Descriptor() ([]byte, []int) { 1418 return fileDescriptor_a09de688aac2ee73, []int{27} 1419 } 1420 func (m *QueryHasParentResponse) XXX_Unmarshal(b []byte) error { 1421 return m.Unmarshal(b) 1422 } 1423 func (m *QueryHasParentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1424 if deterministic { 1425 return xxx_messageInfo_QueryHasParentResponse.Marshal(b, m, deterministic) 1426 } else { 1427 b = b[:cap(b)] 1428 n, err := m.MarshalToSizedBuffer(b) 1429 if err != nil { 1430 return nil, err 1431 } 1432 return b[:n], nil 1433 } 1434 } 1435 func (m *QueryHasParentResponse) XXX_Merge(src proto.Message) { 1436 xxx_messageInfo_QueryHasParentResponse.Merge(m, src) 1437 } 1438 func (m *QueryHasParentResponse) XXX_Size() int { 1439 return m.Size() 1440 } 1441 func (m *QueryHasParentResponse) XXX_DiscardUnknown() { 1442 xxx_messageInfo_QueryHasParentResponse.DiscardUnknown(m) 1443 } 1444 1445 var xxx_messageInfo_QueryHasParentResponse proto.InternalMessageInfo 1446 1447 func (m *QueryHasParentResponse) GetHasParent() bool { 1448 if m != nil { 1449 return m.HasParent 1450 } 1451 return false 1452 } 1453 1454 // QueryParentRequest is the request type for the Query/Parent RPC method. 1455 // 1456 // Deprecated: Do not use. 1457 type QueryParentRequest struct { 1458 // contract id associated with the contract. 1459 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 1460 // token id associated wit the non-fungible token. 1461 TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` 1462 } 1463 1464 func (m *QueryParentRequest) Reset() { *m = QueryParentRequest{} } 1465 func (m *QueryParentRequest) String() string { return proto.CompactTextString(m) } 1466 func (*QueryParentRequest) ProtoMessage() {} 1467 func (*QueryParentRequest) Descriptor() ([]byte, []int) { 1468 return fileDescriptor_a09de688aac2ee73, []int{28} 1469 } 1470 func (m *QueryParentRequest) XXX_Unmarshal(b []byte) error { 1471 return m.Unmarshal(b) 1472 } 1473 func (m *QueryParentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1474 if deterministic { 1475 return xxx_messageInfo_QueryParentRequest.Marshal(b, m, deterministic) 1476 } else { 1477 b = b[:cap(b)] 1478 n, err := m.MarshalToSizedBuffer(b) 1479 if err != nil { 1480 return nil, err 1481 } 1482 return b[:n], nil 1483 } 1484 } 1485 func (m *QueryParentRequest) XXX_Merge(src proto.Message) { 1486 xxx_messageInfo_QueryParentRequest.Merge(m, src) 1487 } 1488 func (m *QueryParentRequest) XXX_Size() int { 1489 return m.Size() 1490 } 1491 func (m *QueryParentRequest) XXX_DiscardUnknown() { 1492 xxx_messageInfo_QueryParentRequest.DiscardUnknown(m) 1493 } 1494 1495 var xxx_messageInfo_QueryParentRequest proto.InternalMessageInfo 1496 1497 func (m *QueryParentRequest) GetContractId() string { 1498 if m != nil { 1499 return m.ContractId 1500 } 1501 return "" 1502 } 1503 1504 func (m *QueryParentRequest) GetTokenId() string { 1505 if m != nil { 1506 return m.TokenId 1507 } 1508 return "" 1509 } 1510 1511 // QueryParentResponse is the response type for the Query/Parent RPC method. 1512 // 1513 // Deprecated: Do not use. 1514 type QueryParentResponse struct { 1515 // parent is the information of the parent token. 1516 Parent NFT `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent"` 1517 } 1518 1519 func (m *QueryParentResponse) Reset() { *m = QueryParentResponse{} } 1520 func (m *QueryParentResponse) String() string { return proto.CompactTextString(m) } 1521 func (*QueryParentResponse) ProtoMessage() {} 1522 func (*QueryParentResponse) Descriptor() ([]byte, []int) { 1523 return fileDescriptor_a09de688aac2ee73, []int{29} 1524 } 1525 func (m *QueryParentResponse) XXX_Unmarshal(b []byte) error { 1526 return m.Unmarshal(b) 1527 } 1528 func (m *QueryParentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1529 if deterministic { 1530 return xxx_messageInfo_QueryParentResponse.Marshal(b, m, deterministic) 1531 } else { 1532 b = b[:cap(b)] 1533 n, err := m.MarshalToSizedBuffer(b) 1534 if err != nil { 1535 return nil, err 1536 } 1537 return b[:n], nil 1538 } 1539 } 1540 func (m *QueryParentResponse) XXX_Merge(src proto.Message) { 1541 xxx_messageInfo_QueryParentResponse.Merge(m, src) 1542 } 1543 func (m *QueryParentResponse) XXX_Size() int { 1544 return m.Size() 1545 } 1546 func (m *QueryParentResponse) XXX_DiscardUnknown() { 1547 xxx_messageInfo_QueryParentResponse.DiscardUnknown(m) 1548 } 1549 1550 var xxx_messageInfo_QueryParentResponse proto.InternalMessageInfo 1551 1552 func (m *QueryParentResponse) GetParent() NFT { 1553 if m != nil { 1554 return m.Parent 1555 } 1556 return NFT{} 1557 } 1558 1559 // QueryChildrenRequest is the request type for the Query/Children RPC method. 1560 // 1561 // Deprecated: Do not use. 1562 type QueryChildrenRequest struct { 1563 // contract id associated with the contract. 1564 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 1565 // token id associated with the non-fungible token. 1566 TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` 1567 // pagination defines an optional pagination for the request. 1568 Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` 1569 } 1570 1571 func (m *QueryChildrenRequest) Reset() { *m = QueryChildrenRequest{} } 1572 func (m *QueryChildrenRequest) String() string { return proto.CompactTextString(m) } 1573 func (*QueryChildrenRequest) ProtoMessage() {} 1574 func (*QueryChildrenRequest) Descriptor() ([]byte, []int) { 1575 return fileDescriptor_a09de688aac2ee73, []int{30} 1576 } 1577 func (m *QueryChildrenRequest) XXX_Unmarshal(b []byte) error { 1578 return m.Unmarshal(b) 1579 } 1580 func (m *QueryChildrenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1581 if deterministic { 1582 return xxx_messageInfo_QueryChildrenRequest.Marshal(b, m, deterministic) 1583 } else { 1584 b = b[:cap(b)] 1585 n, err := m.MarshalToSizedBuffer(b) 1586 if err != nil { 1587 return nil, err 1588 } 1589 return b[:n], nil 1590 } 1591 } 1592 func (m *QueryChildrenRequest) XXX_Merge(src proto.Message) { 1593 xxx_messageInfo_QueryChildrenRequest.Merge(m, src) 1594 } 1595 func (m *QueryChildrenRequest) XXX_Size() int { 1596 return m.Size() 1597 } 1598 func (m *QueryChildrenRequest) XXX_DiscardUnknown() { 1599 xxx_messageInfo_QueryChildrenRequest.DiscardUnknown(m) 1600 } 1601 1602 var xxx_messageInfo_QueryChildrenRequest proto.InternalMessageInfo 1603 1604 func (m *QueryChildrenRequest) GetContractId() string { 1605 if m != nil { 1606 return m.ContractId 1607 } 1608 return "" 1609 } 1610 1611 func (m *QueryChildrenRequest) GetTokenId() string { 1612 if m != nil { 1613 return m.TokenId 1614 } 1615 return "" 1616 } 1617 1618 func (m *QueryChildrenRequest) GetPagination() *query.PageRequest { 1619 if m != nil { 1620 return m.Pagination 1621 } 1622 return nil 1623 } 1624 1625 // QueryChildrenResponse is the response type for the Query/Children RPC method. 1626 // 1627 // Deprecated: Do not use. 1628 type QueryChildrenResponse struct { 1629 // children is the information of the child tokens. 1630 Children []NFT `protobuf:"bytes,1,rep,name=children,proto3" json:"children"` 1631 // pagination defines the pagination in the response. 1632 Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` 1633 } 1634 1635 func (m *QueryChildrenResponse) Reset() { *m = QueryChildrenResponse{} } 1636 func (m *QueryChildrenResponse) String() string { return proto.CompactTextString(m) } 1637 func (*QueryChildrenResponse) ProtoMessage() {} 1638 func (*QueryChildrenResponse) Descriptor() ([]byte, []int) { 1639 return fileDescriptor_a09de688aac2ee73, []int{31} 1640 } 1641 func (m *QueryChildrenResponse) XXX_Unmarshal(b []byte) error { 1642 return m.Unmarshal(b) 1643 } 1644 func (m *QueryChildrenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1645 if deterministic { 1646 return xxx_messageInfo_QueryChildrenResponse.Marshal(b, m, deterministic) 1647 } else { 1648 b = b[:cap(b)] 1649 n, err := m.MarshalToSizedBuffer(b) 1650 if err != nil { 1651 return nil, err 1652 } 1653 return b[:n], nil 1654 } 1655 } 1656 func (m *QueryChildrenResponse) XXX_Merge(src proto.Message) { 1657 xxx_messageInfo_QueryChildrenResponse.Merge(m, src) 1658 } 1659 func (m *QueryChildrenResponse) XXX_Size() int { 1660 return m.Size() 1661 } 1662 func (m *QueryChildrenResponse) XXX_DiscardUnknown() { 1663 xxx_messageInfo_QueryChildrenResponse.DiscardUnknown(m) 1664 } 1665 1666 var xxx_messageInfo_QueryChildrenResponse proto.InternalMessageInfo 1667 1668 func (m *QueryChildrenResponse) GetChildren() []NFT { 1669 if m != nil { 1670 return m.Children 1671 } 1672 return nil 1673 } 1674 1675 func (m *QueryChildrenResponse) GetPagination() *query.PageResponse { 1676 if m != nil { 1677 return m.Pagination 1678 } 1679 return nil 1680 } 1681 1682 // QueryGranteeGrantsRequest is the request type for the Query/GranteeGrants RPC method. 1683 type QueryGranteeGrantsRequest struct { 1684 // contract id associated with the contract. 1685 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 1686 // the address of the grantee. 1687 Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"` 1688 // pagination defines an optional pagination for the request. 1689 Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` 1690 } 1691 1692 func (m *QueryGranteeGrantsRequest) Reset() { *m = QueryGranteeGrantsRequest{} } 1693 func (m *QueryGranteeGrantsRequest) String() string { return proto.CompactTextString(m) } 1694 func (*QueryGranteeGrantsRequest) ProtoMessage() {} 1695 func (*QueryGranteeGrantsRequest) Descriptor() ([]byte, []int) { 1696 return fileDescriptor_a09de688aac2ee73, []int{32} 1697 } 1698 func (m *QueryGranteeGrantsRequest) XXX_Unmarshal(b []byte) error { 1699 return m.Unmarshal(b) 1700 } 1701 func (m *QueryGranteeGrantsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1702 if deterministic { 1703 return xxx_messageInfo_QueryGranteeGrantsRequest.Marshal(b, m, deterministic) 1704 } else { 1705 b = b[:cap(b)] 1706 n, err := m.MarshalToSizedBuffer(b) 1707 if err != nil { 1708 return nil, err 1709 } 1710 return b[:n], nil 1711 } 1712 } 1713 func (m *QueryGranteeGrantsRequest) XXX_Merge(src proto.Message) { 1714 xxx_messageInfo_QueryGranteeGrantsRequest.Merge(m, src) 1715 } 1716 func (m *QueryGranteeGrantsRequest) XXX_Size() int { 1717 return m.Size() 1718 } 1719 func (m *QueryGranteeGrantsRequest) XXX_DiscardUnknown() { 1720 xxx_messageInfo_QueryGranteeGrantsRequest.DiscardUnknown(m) 1721 } 1722 1723 var xxx_messageInfo_QueryGranteeGrantsRequest proto.InternalMessageInfo 1724 1725 func (m *QueryGranteeGrantsRequest) GetContractId() string { 1726 if m != nil { 1727 return m.ContractId 1728 } 1729 return "" 1730 } 1731 1732 func (m *QueryGranteeGrantsRequest) GetGrantee() string { 1733 if m != nil { 1734 return m.Grantee 1735 } 1736 return "" 1737 } 1738 1739 func (m *QueryGranteeGrantsRequest) GetPagination() *query.PageRequest { 1740 if m != nil { 1741 return m.Pagination 1742 } 1743 return nil 1744 } 1745 1746 // QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. 1747 type QueryGranteeGrantsResponse struct { 1748 Grants []Grant `protobuf:"bytes,1,rep,name=grants,proto3" json:"grants"` 1749 // pagination defines the pagination in the response. 1750 Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` 1751 } 1752 1753 func (m *QueryGranteeGrantsResponse) Reset() { *m = QueryGranteeGrantsResponse{} } 1754 func (m *QueryGranteeGrantsResponse) String() string { return proto.CompactTextString(m) } 1755 func (*QueryGranteeGrantsResponse) ProtoMessage() {} 1756 func (*QueryGranteeGrantsResponse) Descriptor() ([]byte, []int) { 1757 return fileDescriptor_a09de688aac2ee73, []int{33} 1758 } 1759 func (m *QueryGranteeGrantsResponse) XXX_Unmarshal(b []byte) error { 1760 return m.Unmarshal(b) 1761 } 1762 func (m *QueryGranteeGrantsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1763 if deterministic { 1764 return xxx_messageInfo_QueryGranteeGrantsResponse.Marshal(b, m, deterministic) 1765 } else { 1766 b = b[:cap(b)] 1767 n, err := m.MarshalToSizedBuffer(b) 1768 if err != nil { 1769 return nil, err 1770 } 1771 return b[:n], nil 1772 } 1773 } 1774 func (m *QueryGranteeGrantsResponse) XXX_Merge(src proto.Message) { 1775 xxx_messageInfo_QueryGranteeGrantsResponse.Merge(m, src) 1776 } 1777 func (m *QueryGranteeGrantsResponse) XXX_Size() int { 1778 return m.Size() 1779 } 1780 func (m *QueryGranteeGrantsResponse) XXX_DiscardUnknown() { 1781 xxx_messageInfo_QueryGranteeGrantsResponse.DiscardUnknown(m) 1782 } 1783 1784 var xxx_messageInfo_QueryGranteeGrantsResponse proto.InternalMessageInfo 1785 1786 func (m *QueryGranteeGrantsResponse) GetGrants() []Grant { 1787 if m != nil { 1788 return m.Grants 1789 } 1790 return nil 1791 } 1792 1793 func (m *QueryGranteeGrantsResponse) GetPagination() *query.PageResponse { 1794 if m != nil { 1795 return m.Pagination 1796 } 1797 return nil 1798 } 1799 1800 // QueryIsOperatorForRequest is the request type for the Query/IsOperatorFor RPC method. 1801 type QueryIsOperatorForRequest struct { 1802 // contract id associated with the contract. 1803 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 1804 // the address of the operator. 1805 Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` 1806 // the address of the token holder. 1807 Holder string `protobuf:"bytes,3,opt,name=holder,proto3" json:"holder,omitempty"` 1808 } 1809 1810 func (m *QueryIsOperatorForRequest) Reset() { *m = QueryIsOperatorForRequest{} } 1811 func (m *QueryIsOperatorForRequest) String() string { return proto.CompactTextString(m) } 1812 func (*QueryIsOperatorForRequest) ProtoMessage() {} 1813 func (*QueryIsOperatorForRequest) Descriptor() ([]byte, []int) { 1814 return fileDescriptor_a09de688aac2ee73, []int{34} 1815 } 1816 func (m *QueryIsOperatorForRequest) XXX_Unmarshal(b []byte) error { 1817 return m.Unmarshal(b) 1818 } 1819 func (m *QueryIsOperatorForRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1820 if deterministic { 1821 return xxx_messageInfo_QueryIsOperatorForRequest.Marshal(b, m, deterministic) 1822 } else { 1823 b = b[:cap(b)] 1824 n, err := m.MarshalToSizedBuffer(b) 1825 if err != nil { 1826 return nil, err 1827 } 1828 return b[:n], nil 1829 } 1830 } 1831 func (m *QueryIsOperatorForRequest) XXX_Merge(src proto.Message) { 1832 xxx_messageInfo_QueryIsOperatorForRequest.Merge(m, src) 1833 } 1834 func (m *QueryIsOperatorForRequest) XXX_Size() int { 1835 return m.Size() 1836 } 1837 func (m *QueryIsOperatorForRequest) XXX_DiscardUnknown() { 1838 xxx_messageInfo_QueryIsOperatorForRequest.DiscardUnknown(m) 1839 } 1840 1841 var xxx_messageInfo_QueryIsOperatorForRequest proto.InternalMessageInfo 1842 1843 func (m *QueryIsOperatorForRequest) GetContractId() string { 1844 if m != nil { 1845 return m.ContractId 1846 } 1847 return "" 1848 } 1849 1850 func (m *QueryIsOperatorForRequest) GetOperator() string { 1851 if m != nil { 1852 return m.Operator 1853 } 1854 return "" 1855 } 1856 1857 func (m *QueryIsOperatorForRequest) GetHolder() string { 1858 if m != nil { 1859 return m.Holder 1860 } 1861 return "" 1862 } 1863 1864 // QueryIsOperatorForResponse is the response type for the Query/IsOperatorFor RPC method. 1865 type QueryIsOperatorForResponse struct { 1866 Authorized bool `protobuf:"varint,1,opt,name=authorized,proto3" json:"authorized,omitempty"` 1867 } 1868 1869 func (m *QueryIsOperatorForResponse) Reset() { *m = QueryIsOperatorForResponse{} } 1870 func (m *QueryIsOperatorForResponse) String() string { return proto.CompactTextString(m) } 1871 func (*QueryIsOperatorForResponse) ProtoMessage() {} 1872 func (*QueryIsOperatorForResponse) Descriptor() ([]byte, []int) { 1873 return fileDescriptor_a09de688aac2ee73, []int{35} 1874 } 1875 func (m *QueryIsOperatorForResponse) XXX_Unmarshal(b []byte) error { 1876 return m.Unmarshal(b) 1877 } 1878 func (m *QueryIsOperatorForResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1879 if deterministic { 1880 return xxx_messageInfo_QueryIsOperatorForResponse.Marshal(b, m, deterministic) 1881 } else { 1882 b = b[:cap(b)] 1883 n, err := m.MarshalToSizedBuffer(b) 1884 if err != nil { 1885 return nil, err 1886 } 1887 return b[:n], nil 1888 } 1889 } 1890 func (m *QueryIsOperatorForResponse) XXX_Merge(src proto.Message) { 1891 xxx_messageInfo_QueryIsOperatorForResponse.Merge(m, src) 1892 } 1893 func (m *QueryIsOperatorForResponse) XXX_Size() int { 1894 return m.Size() 1895 } 1896 func (m *QueryIsOperatorForResponse) XXX_DiscardUnknown() { 1897 xxx_messageInfo_QueryIsOperatorForResponse.DiscardUnknown(m) 1898 } 1899 1900 var xxx_messageInfo_QueryIsOperatorForResponse proto.InternalMessageInfo 1901 1902 func (m *QueryIsOperatorForResponse) GetAuthorized() bool { 1903 if m != nil { 1904 return m.Authorized 1905 } 1906 return false 1907 } 1908 1909 // QueryHoldersByOperatorRequest is the request type for the Query/HoldersByOperator RPC method. 1910 type QueryHoldersByOperatorRequest struct { 1911 // contract id associated with the contract. 1912 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 1913 // address of the operator. 1914 Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` 1915 // pagination defines an optional pagination for the request. 1916 Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` 1917 } 1918 1919 func (m *QueryHoldersByOperatorRequest) Reset() { *m = QueryHoldersByOperatorRequest{} } 1920 func (m *QueryHoldersByOperatorRequest) String() string { return proto.CompactTextString(m) } 1921 func (*QueryHoldersByOperatorRequest) ProtoMessage() {} 1922 func (*QueryHoldersByOperatorRequest) Descriptor() ([]byte, []int) { 1923 return fileDescriptor_a09de688aac2ee73, []int{36} 1924 } 1925 func (m *QueryHoldersByOperatorRequest) XXX_Unmarshal(b []byte) error { 1926 return m.Unmarshal(b) 1927 } 1928 func (m *QueryHoldersByOperatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1929 if deterministic { 1930 return xxx_messageInfo_QueryHoldersByOperatorRequest.Marshal(b, m, deterministic) 1931 } else { 1932 b = b[:cap(b)] 1933 n, err := m.MarshalToSizedBuffer(b) 1934 if err != nil { 1935 return nil, err 1936 } 1937 return b[:n], nil 1938 } 1939 } 1940 func (m *QueryHoldersByOperatorRequest) XXX_Merge(src proto.Message) { 1941 xxx_messageInfo_QueryHoldersByOperatorRequest.Merge(m, src) 1942 } 1943 func (m *QueryHoldersByOperatorRequest) XXX_Size() int { 1944 return m.Size() 1945 } 1946 func (m *QueryHoldersByOperatorRequest) XXX_DiscardUnknown() { 1947 xxx_messageInfo_QueryHoldersByOperatorRequest.DiscardUnknown(m) 1948 } 1949 1950 var xxx_messageInfo_QueryHoldersByOperatorRequest proto.InternalMessageInfo 1951 1952 func (m *QueryHoldersByOperatorRequest) GetContractId() string { 1953 if m != nil { 1954 return m.ContractId 1955 } 1956 return "" 1957 } 1958 1959 func (m *QueryHoldersByOperatorRequest) GetOperator() string { 1960 if m != nil { 1961 return m.Operator 1962 } 1963 return "" 1964 } 1965 1966 func (m *QueryHoldersByOperatorRequest) GetPagination() *query.PageRequest { 1967 if m != nil { 1968 return m.Pagination 1969 } 1970 return nil 1971 } 1972 1973 // QueryHoldersByOperatorResponse is the response type for the Query/HoldersByOperator RPC method. 1974 type QueryHoldersByOperatorResponse struct { 1975 Holders []string `protobuf:"bytes,1,rep,name=holders,proto3" json:"holders,omitempty"` 1976 // pagination defines the pagination in the response. 1977 Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` 1978 } 1979 1980 func (m *QueryHoldersByOperatorResponse) Reset() { *m = QueryHoldersByOperatorResponse{} } 1981 func (m *QueryHoldersByOperatorResponse) String() string { return proto.CompactTextString(m) } 1982 func (*QueryHoldersByOperatorResponse) ProtoMessage() {} 1983 func (*QueryHoldersByOperatorResponse) Descriptor() ([]byte, []int) { 1984 return fileDescriptor_a09de688aac2ee73, []int{37} 1985 } 1986 func (m *QueryHoldersByOperatorResponse) XXX_Unmarshal(b []byte) error { 1987 return m.Unmarshal(b) 1988 } 1989 func (m *QueryHoldersByOperatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1990 if deterministic { 1991 return xxx_messageInfo_QueryHoldersByOperatorResponse.Marshal(b, m, deterministic) 1992 } else { 1993 b = b[:cap(b)] 1994 n, err := m.MarshalToSizedBuffer(b) 1995 if err != nil { 1996 return nil, err 1997 } 1998 return b[:n], nil 1999 } 2000 } 2001 func (m *QueryHoldersByOperatorResponse) XXX_Merge(src proto.Message) { 2002 xxx_messageInfo_QueryHoldersByOperatorResponse.Merge(m, src) 2003 } 2004 func (m *QueryHoldersByOperatorResponse) XXX_Size() int { 2005 return m.Size() 2006 } 2007 func (m *QueryHoldersByOperatorResponse) XXX_DiscardUnknown() { 2008 xxx_messageInfo_QueryHoldersByOperatorResponse.DiscardUnknown(m) 2009 } 2010 2011 var xxx_messageInfo_QueryHoldersByOperatorResponse proto.InternalMessageInfo 2012 2013 func (m *QueryHoldersByOperatorResponse) GetHolders() []string { 2014 if m != nil { 2015 return m.Holders 2016 } 2017 return nil 2018 } 2019 2020 func (m *QueryHoldersByOperatorResponse) GetPagination() *query.PageResponse { 2021 if m != nil { 2022 return m.Pagination 2023 } 2024 return nil 2025 } 2026 2027 func init() { 2028 proto.RegisterType((*QueryBalanceRequest)(nil), "lbm.collection.v1.QueryBalanceRequest") 2029 proto.RegisterType((*QueryBalanceResponse)(nil), "lbm.collection.v1.QueryBalanceResponse") 2030 proto.RegisterType((*QueryAllBalancesRequest)(nil), "lbm.collection.v1.QueryAllBalancesRequest") 2031 proto.RegisterType((*QueryAllBalancesResponse)(nil), "lbm.collection.v1.QueryAllBalancesResponse") 2032 proto.RegisterType((*QueryFTSupplyRequest)(nil), "lbm.collection.v1.QueryFTSupplyRequest") 2033 proto.RegisterType((*QueryFTSupplyResponse)(nil), "lbm.collection.v1.QueryFTSupplyResponse") 2034 proto.RegisterType((*QueryFTMintedRequest)(nil), "lbm.collection.v1.QueryFTMintedRequest") 2035 proto.RegisterType((*QueryFTMintedResponse)(nil), "lbm.collection.v1.QueryFTMintedResponse") 2036 proto.RegisterType((*QueryFTBurntRequest)(nil), "lbm.collection.v1.QueryFTBurntRequest") 2037 proto.RegisterType((*QueryFTBurntResponse)(nil), "lbm.collection.v1.QueryFTBurntResponse") 2038 proto.RegisterType((*QueryNFTSupplyRequest)(nil), "lbm.collection.v1.QueryNFTSupplyRequest") 2039 proto.RegisterType((*QueryNFTSupplyResponse)(nil), "lbm.collection.v1.QueryNFTSupplyResponse") 2040 proto.RegisterType((*QueryNFTMintedRequest)(nil), "lbm.collection.v1.QueryNFTMintedRequest") 2041 proto.RegisterType((*QueryNFTMintedResponse)(nil), "lbm.collection.v1.QueryNFTMintedResponse") 2042 proto.RegisterType((*QueryNFTBurntRequest)(nil), "lbm.collection.v1.QueryNFTBurntRequest") 2043 proto.RegisterType((*QueryNFTBurntResponse)(nil), "lbm.collection.v1.QueryNFTBurntResponse") 2044 proto.RegisterType((*QueryContractRequest)(nil), "lbm.collection.v1.QueryContractRequest") 2045 proto.RegisterType((*QueryContractResponse)(nil), "lbm.collection.v1.QueryContractResponse") 2046 proto.RegisterType((*QueryTokenClassTypeNameRequest)(nil), "lbm.collection.v1.QueryTokenClassTypeNameRequest") 2047 proto.RegisterType((*QueryTokenClassTypeNameResponse)(nil), "lbm.collection.v1.QueryTokenClassTypeNameResponse") 2048 proto.RegisterType((*QueryTokenTypeRequest)(nil), "lbm.collection.v1.QueryTokenTypeRequest") 2049 proto.RegisterType((*QueryTokenTypeResponse)(nil), "lbm.collection.v1.QueryTokenTypeResponse") 2050 proto.RegisterType((*QueryTokenRequest)(nil), "lbm.collection.v1.QueryTokenRequest") 2051 proto.RegisterType((*QueryTokenResponse)(nil), "lbm.collection.v1.QueryTokenResponse") 2052 proto.RegisterType((*QueryRootRequest)(nil), "lbm.collection.v1.QueryRootRequest") 2053 proto.RegisterType((*QueryRootResponse)(nil), "lbm.collection.v1.QueryRootResponse") 2054 proto.RegisterType((*QueryHasParentRequest)(nil), "lbm.collection.v1.QueryHasParentRequest") 2055 proto.RegisterType((*QueryHasParentResponse)(nil), "lbm.collection.v1.QueryHasParentResponse") 2056 proto.RegisterType((*QueryParentRequest)(nil), "lbm.collection.v1.QueryParentRequest") 2057 proto.RegisterType((*QueryParentResponse)(nil), "lbm.collection.v1.QueryParentResponse") 2058 proto.RegisterType((*QueryChildrenRequest)(nil), "lbm.collection.v1.QueryChildrenRequest") 2059 proto.RegisterType((*QueryChildrenResponse)(nil), "lbm.collection.v1.QueryChildrenResponse") 2060 proto.RegisterType((*QueryGranteeGrantsRequest)(nil), "lbm.collection.v1.QueryGranteeGrantsRequest") 2061 proto.RegisterType((*QueryGranteeGrantsResponse)(nil), "lbm.collection.v1.QueryGranteeGrantsResponse") 2062 proto.RegisterType((*QueryIsOperatorForRequest)(nil), "lbm.collection.v1.QueryIsOperatorForRequest") 2063 proto.RegisterType((*QueryIsOperatorForResponse)(nil), "lbm.collection.v1.QueryIsOperatorForResponse") 2064 proto.RegisterType((*QueryHoldersByOperatorRequest)(nil), "lbm.collection.v1.QueryHoldersByOperatorRequest") 2065 proto.RegisterType((*QueryHoldersByOperatorResponse)(nil), "lbm.collection.v1.QueryHoldersByOperatorResponse") 2066 } 2067 2068 func init() { proto.RegisterFile("lbm/collection/v1/query.proto", fileDescriptor_a09de688aac2ee73) } 2069 2070 var fileDescriptor_a09de688aac2ee73 = []byte{ 2071 // 1584 bytes of a gzipped FileDescriptorProto 2072 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x98, 0xdb, 0x6f, 0x1b, 0xc5, 2073 0x17, 0xc7, 0x33, 0x69, 0x2e, 0xf6, 0x89, 0x2a, 0xfd, 0x3a, 0xbf, 0x5e, 0x9c, 0xa5, 0x71, 0xaa, 2074 0xa5, 0xf4, 0x12, 0xda, 0xdd, 0x26, 0x5c, 0x0a, 0xb4, 0xa5, 0xc4, 0xa1, 0x49, 0x9d, 0xb6, 0x49, 2075 0x6b, 0xd2, 0x22, 0x01, 0x52, 0xb5, 0xb6, 0xb7, 0xb6, 0x55, 0x7b, 0xc7, 0xdd, 0x5d, 0x57, 0xa4, 2076 0x51, 0x5e, 0xe0, 0x85, 0x17, 0x24, 0x10, 0x6f, 0x88, 0xf6, 0x09, 0x78, 0x40, 0x54, 0x02, 0xc4, 2077 0x1f, 0xd1, 0xc7, 0x0a, 0x5e, 0x10, 0x0f, 0x15, 0x6a, 0xf9, 0x43, 0xd0, 0xce, 0x9c, 0x59, 0xef, 2078 0xae, 0xbd, 0xbe, 0x34, 0xdb, 0xa7, 0x78, 0x66, 0xcf, 0x9c, 0xf9, 0xcc, 0x39, 0x67, 0xcf, 0xce, 2079 0x37, 0x30, 0x53, 0x2f, 0x36, 0xf4, 0x12, 0xab, 0xd7, 0xcd, 0x92, 0x5b, 0x63, 0x96, 0x7e, 0x77, 2080 0x5e, 0xbf, 0xd3, 0x32, 0xed, 0x4d, 0xad, 0x69, 0x33, 0x97, 0xd1, 0x3d, 0xf5, 0x62, 0x43, 0x6b, 2081 0x3f, 0xd6, 0xee, 0xce, 0x2b, 0x73, 0x25, 0xe6, 0x34, 0x98, 0xa3, 0x17, 0x0d, 0xc7, 0x14, 0xb6, 2082 0xfa, 0xdd, 0xf9, 0xa2, 0xe9, 0x1a, 0xf3, 0x7a, 0xd3, 0xa8, 0xd4, 0x2c, 0x83, 0x1b, 0xf2, 0xe5, 2083 0xca, 0xc1, 0x0a, 0x63, 0x95, 0xba, 0xa9, 0x1b, 0xcd, 0x9a, 0x6e, 0x58, 0x16, 0x73, 0xf9, 0x43, 2084 0x07, 0x9f, 0xaa, 0x9d, 0x7b, 0x07, 0xb6, 0x12, 0x36, 0xd3, 0xe8, 0x81, 0x8f, 0x8a, 0xad, 0x5b, 2085 0xba, 0x61, 0x21, 0x9b, 0xb2, 0xb7, 0xc2, 0x2a, 0x8c, 0xff, 0xd4, 0xbd, 0x5f, 0x62, 0x56, 0xbd, 2086 0x0d, 0xff, 0xbf, 0xe6, 0x41, 0xe5, 0x8c, 0xba, 0x61, 0x95, 0xcc, 0x82, 0x79, 0xa7, 0x65, 0x3a, 2087 0x2e, 0x9d, 0x85, 0xa9, 0x12, 0xb3, 0x5c, 0xdb, 0x28, 0xb9, 0x37, 0x6b, 0xe5, 0x0c, 0x39, 0x44, 2088 0x8e, 0xa5, 0x0b, 0x20, 0xa7, 0xf2, 0x65, 0x9a, 0x81, 0x49, 0xa3, 0x5c, 0xb6, 0x4d, 0xc7, 0xc9, 2089 0x8c, 0xf2, 0x87, 0x72, 0x48, 0xa7, 0x21, 0xe5, 0xb2, 0xdb, 0xa6, 0xe5, 0xad, 0xdb, 0x25, 0x1e, 2090 0xf1, 0x71, 0xbe, 0xac, 0xae, 0xc3, 0xde, 0xf0, 0x66, 0x4e, 0x93, 0x59, 0x8e, 0x49, 0x4f, 0xc3, 2091 0x64, 0x51, 0x4c, 0xf1, 0x9d, 0xa6, 0x16, 0x0e, 0x68, 0x1d, 0x81, 0xd4, 0x96, 0x58, 0xcd, 0xca, 2092 0x8d, 0x3d, 0x7a, 0x32, 0x3b, 0x52, 0x90, 0xd6, 0xea, 0x77, 0x04, 0x0e, 0x70, 0x8f, 0x8b, 0xf5, 2093 0x3a, 0x3a, 0x75, 0x12, 0x38, 0xc2, 0x32, 0x40, 0x3b, 0x37, 0xfc, 0x10, 0x53, 0x0b, 0x47, 0x34, 2094 0x91, 0x48, 0xcd, 0x4b, 0xa4, 0x26, 0x92, 0x8e, 0x89, 0xd4, 0xae, 0x1a, 0x15, 0x19, 0xb9, 0x42, 2095 0x60, 0xa5, 0xfa, 0x80, 0x40, 0xa6, 0x13, 0x0f, 0x0f, 0xfd, 0x36, 0xa4, 0xf0, 0x18, 0x4e, 0x86, 2096 0x1c, 0xda, 0xd5, 0xff, 0xd4, 0xbe, 0x39, 0x5d, 0x09, 0xf1, 0x8d, 0x72, 0xbe, 0xa3, 0x7d, 0xf9, 2097 0xc4, 0xbe, 0x21, 0xc0, 0x1b, 0x98, 0x90, 0xe5, 0x8d, 0x0f, 0x5a, 0xcd, 0x66, 0x7d, 0x73, 0xe0, 2098 0xd8, 0x05, 0x93, 0x3c, 0x1a, 0x4a, 0xf2, 0x3b, 0xa3, 0x19, 0xa2, 0x56, 0x60, 0x5f, 0xc4, 0x2f, 2099 0x1e, 0x7a, 0x15, 0x26, 0x1c, 0x3e, 0x23, 0x7c, 0xe6, 0x16, 0xbc, 0x93, 0xfd, 0xfd, 0x64, 0x76, 2100 0xae, 0x52, 0x73, 0xab, 0xad, 0xa2, 0x56, 0x62, 0x0d, 0x7d, 0xb9, 0x66, 0x39, 0xa5, 0x6a, 0xcd, 2101 0xd0, 0x6f, 0xe1, 0x8f, 0x93, 0x4e, 0xf9, 0xb6, 0xee, 0x6e, 0x36, 0x4d, 0x47, 0xcb, 0x5b, 0x6e, 2102 0x01, 0x3d, 0xf0, 0x8d, 0xda, 0x07, 0xb8, 0x52, 0xb3, 0x5c, 0xb3, 0x9c, 0xfc, 0x01, 0xa4, 0xdf, 2103 0xf6, 0x01, 0x1a, 0x7c, 0x66, 0x27, 0x07, 0x10, 0x1e, 0xf8, 0x46, 0xd7, 0xf1, 0xfd, 0x5b, 0xde, 2104 0xc8, 0xb5, 0x6c, 0xcb, 0x4d, 0x8a, 0xbf, 0xec, 0xc7, 0x05, 0xdd, 0x22, 0xfe, 0x45, 0x18, 0x2f, 2105 0x7a, 0x13, 0x3b, 0xa0, 0x17, 0x0e, 0xf8, 0x2e, 0x1f, 0x62, 0x94, 0xd6, 0x86, 0xae, 0x9f, 0x19, 2106 0x00, 0x81, 0xef, 0xf9, 0xc5, 0x03, 0xa4, 0xf9, 0xcc, 0xc6, 0x66, 0xd3, 0x54, 0xcb, 0xb0, 0x3f, 2107 0xea, 0x38, 0xf9, 0x02, 0x0a, 0xe2, 0x0f, 0x59, 0x3d, 0x83, 0xe3, 0xbf, 0xb8, 0xf2, 0xf1, 0x6b, 2108 0x7f, 0x6d, 0xd8, 0xda, 0xe9, 0x43, 0x6f, 0xb4, 0xc3, 0xf2, 0x82, 0x8a, 0x47, 0x3d, 0x8d, 0xe8, 2109 0x4b, 0x08, 0x35, 0x28, 0xba, 0x7a, 0x03, 0xd9, 0xda, 0x0b, 0x91, 0xed, 0x1c, 0xa4, 0xa4, 0x19, 2110 0x7e, 0x43, 0x5e, 0xea, 0xda, 0x4d, 0x85, 0x89, 0xec, 0xa8, 0x72, 0x89, 0xfa, 0x09, 0x64, 0xb9, 2111 0xdf, 0x0d, 0x2f, 0x0a, 0x4b, 0x75, 0xc3, 0x71, 0xbc, 0x50, 0xac, 0x19, 0x0d, 0x73, 0x98, 0x37, 2112 0xb2, 0xe4, 0x2d, 0x0c, 0xbc, 0x91, 0x7c, 0x9c, 0x2f, 0xab, 0x6f, 0xc0, 0x6c, 0xac, 0x77, 0xe4, 2113 0xa7, 0x30, 0x66, 0x19, 0x0d, 0x13, 0xfd, 0xf2, 0xdf, 0x7e, 0x7d, 0x6e, 0xc8, 0xd4, 0x24, 0x95, 2114 0xe1, 0x8f, 0xb1, 0x3e, 0x03, 0x8e, 0x11, 0x63, 0x31, 0xb4, 0x50, 0x04, 0xf2, 0x60, 0x97, 0x40, 2115 0xfa, 0x2b, 0x31, 0x92, 0x01, 0xe7, 0xeb, 0xb0, 0xa7, 0xed, 0x3c, 0x81, 0x7e, 0xa6, 0x2e, 0x03, 2116 0x0d, 0x3a, 0x44, 0xd2, 0x53, 0x30, 0xce, 0x0d, 0x10, 0x72, 0xaf, 0x26, 0x6e, 0x3e, 0x9a, 0xbc, 2117 0xf9, 0x68, 0x8b, 0xd6, 0x26, 0xc2, 0x09, 0x43, 0xb5, 0x00, 0xff, 0xe3, 0x7e, 0x0a, 0x8c, 0x25, 2118 0xd6, 0x67, 0xf3, 0x78, 0x58, 0xe1, 0xd3, 0x47, 0x1b, 0xb3, 0x19, 0x93, 0x75, 0xb8, 0xbf, 0x4b, 2119 0xf8, 0xbc, 0x57, 0x4b, 0xb0, 0x71, 0xcb, 0x50, 0x33, 0xbd, 0x68, 0x38, 0x57, 0x0d, 0xdb, 0x4c, 2120 0xee, 0x5b, 0x70, 0x06, 0xb3, 0x1d, 0x70, 0x8c, 0xa0, 0x33, 0x00, 0x55, 0xc3, 0xb9, 0xd9, 0xe4, 2121 0xb3, 0xdc, 0x71, 0xaa, 0x90, 0xae, 0x4a, 0x33, 0xbe, 0x78, 0x03, 0x83, 0x9f, 0x2c, 0xd2, 0x3a, 2122 0x7e, 0xf5, 0x22, 0x3c, 0xaf, 0xc3, 0x44, 0x80, 0xa5, 0x5f, 0xe8, 0xd0, 0x96, 0x3b, 0x7c, 0x40, 2123 0x64, 0x47, 0xa9, 0xd6, 0xea, 0x65, 0x3b, 0x91, 0xc2, 0x4b, 0xea, 0x1a, 0x28, 0x01, 0xf7, 0x45, 2124 0x00, 0xf1, 0xd0, 0x6f, 0x41, 0xaa, 0x84, 0x73, 0x78, 0x0f, 0xec, 0x7d, 0x6c, 0xdf, 0x3a, 0xb1, 2125 0x6b, 0xa0, 0x04, 0x9c, 0xe6, 0x80, 0x2b, 0xb6, 0x61, 0xb9, 0xa6, 0xc9, 0xff, 0x0c, 0x75, 0x99, 2126 0xae, 0x88, 0x85, 0x32, 0x8a, 0x38, 0x4c, 0xec, 0x32, 0x7d, 0x9f, 0x80, 0xd2, 0x0d, 0x10, 0xc3, 2127 0xf8, 0x26, 0x4c, 0xf0, 0x1d, 0xe5, 0x65, 0x3a, 0xd3, 0x25, 0x88, 0x7c, 0x89, 0xac, 0x1e, 0x61, 2128 0x9d, 0xdc, 0x5d, 0xba, 0x89, 0xf1, 0xcb, 0x3b, 0xeb, 0x4d, 0xd3, 0x36, 0x5c, 0x66, 0x2f, 0x33, 2129 0x7b, 0xe0, 0xf8, 0x29, 0x90, 0x62, 0xb8, 0x0c, 0x03, 0xe8, 0x8f, 0xe9, 0x7e, 0x98, 0xa8, 0xb2, 2130 0x7a, 0xd9, 0xb4, 0x51, 0x4f, 0xe1, 0x48, 0x3d, 0x8b, 0x01, 0x89, 0xec, 0x88, 0x01, 0xc9, 0x02, 2131 0x18, 0x2d, 0xb7, 0xca, 0xec, 0xda, 0x3d, 0xbc, 0x6e, 0xa4, 0x0a, 0x81, 0x19, 0xf5, 0x7b, 0x02, 2132 0x33, 0xa2, 0x2f, 0x70, 0x6f, 0x4e, 0x6e, 0x53, 0x7a, 0x49, 0x04, 0x3a, 0xa9, 0xb4, 0x7f, 0x4e, 2133 0xf0, 0xd3, 0xdc, 0x05, 0x13, 0x4f, 0x9a, 0x81, 0x49, 0x11, 0x11, 0x91, 0xfb, 0x74, 0x41, 0x0e, 2134 0x13, 0x4b, 0xee, 0xc2, 0x97, 0xd3, 0x30, 0xce, 0x29, 0xe8, 0xcf, 0x04, 0x26, 0x51, 0xcb, 0xd1, 2135 0x23, 0x5d, 0x6a, 0xac, 0x8b, 0x9a, 0x56, 0x8e, 0xf6, 0xb5, 0x13, 0x5b, 0xaa, 0x57, 0x3f, 0xfb, 2136 0xf3, 0xdf, 0x6f, 0x46, 0x57, 0xe9, 0x45, 0xbd, 0x9b, 0xd6, 0x17, 0x71, 0x77, 0xf4, 0xad, 0x40, 2137 0x56, 0xb6, 0x75, 0xa9, 0x0a, 0xf5, 0x2d, 0x94, 0xaf, 0xdb, 0xfa, 0x96, 0xec, 0x68, 0xdb, 0xf4, 2138 0x21, 0x81, 0xa9, 0x80, 0xfa, 0xa4, 0x73, 0x71, 0x28, 0x9d, 0x0a, 0x5a, 0x79, 0x75, 0x20, 0x5b, 2139 0x44, 0xbf, 0xc0, 0xd1, 0xcf, 0xd3, 0x73, 0x3b, 0x42, 0xa7, 0x3f, 0x11, 0x48, 0xc9, 0x4b, 0x3f, 2140 0x8d, 0x8d, 0x5b, 0x44, 0x6f, 0x28, 0xc7, 0xfa, 0x1b, 0x22, 0xe6, 0x25, 0x8e, 0x99, 0xa3, 0xef, 2141 0x0d, 0x81, 0x79, 0xcb, 0x9b, 0xf1, 0x43, 0xaa, 0x0b, 0xf5, 0xf0, 0xc5, 0x28, 0x41, 0x58, 0x71, 2142 0xc5, 0xef, 0x05, 0x1b, 0x52, 0x17, 0xbd, 0x60, 0xc3, 0x6a, 0x21, 0x09, 0x58, 0xa1, 0x15, 0x3c, 2143 0xd8, 0x1f, 0x09, 0x4c, 0xe2, 0x8d, 0x3e, 0xbe, 0x70, 0xc3, 0x52, 0x42, 0x39, 0xda, 0xd7, 0x0e, 2144 0x49, 0x57, 0x39, 0xe9, 0x22, 0x3d, 0xff, 0xfc, 0xa4, 0x5c, 0x19, 0x78, 0xa0, 0xbf, 0x13, 0x48, 2145 0xfb, 0xc2, 0x8f, 0xc6, 0x46, 0x2b, 0x2a, 0x3a, 0x95, 0xe3, 0x03, 0x58, 0x22, 0x6e, 0x81, 0xe3, 2146 0x5e, 0xa6, 0xab, 0x43, 0xe0, 0xb6, 0xef, 0xc5, 0x3e, 0xb6, 0x37, 0x90, 0xf5, 0x20, 0xb1, 0xb1, 2147 0x1a, 0x7a, 0x61, 0x87, 0xcb, 0xe1, 0xf8, 0x00, 0x96, 0x2f, 0x02, 0x5b, 0x54, 0x06, 0xfd, 0x85, 2148 0x40, 0x4a, 0x2a, 0xbd, 0xf8, 0x1a, 0x8e, 0x68, 0x4c, 0xe5, 0x58, 0x7f, 0x43, 0x64, 0xbe, 0xc6, 2149 0x99, 0x2f, 0xd1, 0x7c, 0x12, 0xcc, 0xbc, 0x46, 0xe8, 0xd7, 0x04, 0x52, 0x52, 0xc9, 0xc5, 0x23, 2150 0x47, 0xb4, 0x65, 0x3c, 0x72, 0x54, 0x4b, 0xaa, 0x0b, 0x1c, 0xf9, 0x04, 0x9d, 0x1b, 0x1c, 0x99, 2151 0xfe, 0x41, 0x80, 0x76, 0xca, 0x3b, 0x3a, 0x1f, 0xb7, 0x69, 0xac, 0xd0, 0x54, 0x16, 0x86, 0x59, 2152 0x82, 0xc4, 0xd7, 0x39, 0xf1, 0x3a, 0xbd, 0x32, 0x74, 0x90, 0xb9, 0x44, 0xf5, 0xc2, 0x2c, 0xb5, 2153 0xeb, 0x36, 0x57, 0xeb, 0x37, 0x3d, 0x01, 0xea, 0x7d, 0x3c, 0xd2, 0xbe, 0xd2, 0x8b, 0x2f, 0xe9, 2154 0xa8, 0x3e, 0x8d, 0x2f, 0xe9, 0x0e, 0xc1, 0x89, 0x2d, 0xee, 0x02, 0x5d, 0x4a, 0xa0, 0x3c, 0xe8, 2155 0xb7, 0x04, 0xc6, 0xf9, 0x16, 0xf4, 0x70, 0x4f, 0x02, 0xc9, 0xf9, 0x4a, 0x1f, 0x2b, 0x64, 0x7c, 2156 0x9f, 0x33, 0xbe, 0x4b, 0xcf, 0x0e, 0xcb, 0x18, 0xec, 0x6f, 0xf4, 0x3e, 0x81, 0x31, 0x4f, 0x26, 2157 0xd2, 0x97, 0xe3, 0x76, 0x0d, 0x08, 0x53, 0xe5, 0x70, 0x6f, 0xa3, 0x1d, 0xb4, 0x5d, 0x2b, 0xd2, 2158 0x77, 0x3d, 0x01, 0xea, 0xb5, 0xdd, 0xdf, 0x08, 0xa4, 0x7d, 0x89, 0x18, 0x9f, 0xec, 0xa8, 0x3c, 2159 0x8d, 0x4f, 0x76, 0x87, 0xde, 0xc4, 0xeb, 0xcd, 0x0a, 0xbd, 0xb0, 0x03, 0xdc, 0xb6, 0x60, 0xf5, 2160 0xa0, 0x7f, 0x20, 0x30, 0x81, 0xc4, 0xb1, 0xc9, 0x0c, 0xe3, 0x1e, 0xe9, 0x67, 0x86, 0xac, 0x97, 2161 0x39, 0xeb, 0x12, 0x5d, 0xdc, 0x01, 0x6b, 0x9b, 0xf3, 0xa1, 0xd7, 0xb2, 0xa4, 0x6e, 0x8b, 0x6f, 2162 0x59, 0x61, 0xf1, 0xda, 0xa3, 0x65, 0x45, 0x44, 0xa4, 0xba, 0xf6, 0x1c, 0xaf, 0x51, 0x94, 0x56, 2163 0xea, 0x4a, 0x8f, 0xf7, 0x57, 0x02, 0xbb, 0x43, 0x3a, 0x8b, 0x9e, 0x88, 0x63, 0xe9, 0xa6, 0x17, 2164 0x95, 0x93, 0x03, 0x5a, 0x23, 0xfe, 0x12, 0xc7, 0x3f, 0x47, 0xcf, 0x0c, 0x81, 0x2f, 0xf4, 0x9b, 2165 0xbe, 0x85, 0x3a, 0x73, 0x9b, 0x5a, 0xb0, 0x3b, 0xa4, 0x84, 0xe2, 0x91, 0xbb, 0x49, 0xb4, 0x78, 2166 0xe4, 0xae, 0xf2, 0x4a, 0x1d, 0xa1, 0xf7, 0x60, 0x4f, 0x87, 0x26, 0xa1, 0xa7, 0x62, 0xdf, 0x86, 2167 0x18, 0x95, 0xa5, 0xcc, 0x0f, 0xb1, 0x42, 0xee, 0x9d, 0x5b, 0x79, 0xf4, 0x34, 0x4b, 0x1e, 0x3f, 2168 0xcd, 0x92, 0x7f, 0x9e, 0x66, 0xc9, 0x57, 0xcf, 0xb2, 0x23, 0x8f, 0x9f, 0x65, 0x47, 0xfe, 0x7a, 2169 0x96, 0x1d, 0xf9, 0xe8, 0x64, 0xdf, 0xff, 0xc6, 0x7e, 0x1a, 0x08, 0x70, 0x71, 0x82, 0xff, 0xbf, 2170 0xec, 0xb5, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0xd7, 0x78, 0xf1, 0xf0, 0xd9, 0x1c, 0x00, 0x00, 2171 } 2172 2173 // Reference imports to suppress errors if they are not otherwise used. 2174 var _ context.Context 2175 var _ grpc.ClientConn 2176 2177 // This is a compile-time assertion to ensure that this generated file 2178 // is compatible with the grpc package it is being compiled against. 2179 const _ = grpc.SupportPackageIsVersion4 2180 2181 // QueryClient is the client API for Query service. 2182 // 2183 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 2184 type QueryClient interface { 2185 // Balance queries the balance of a single token class for a single account. 2186 Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error) 2187 // AllBalances queries the balance of all token classes for a single account. 2188 AllBalances(ctx context.Context, in *QueryAllBalancesRequest, opts ...grpc.CallOption) (*QueryAllBalancesResponse, error) 2189 // FTSupply queries the number of tokens from a given contract id and token id. 2190 FTSupply(ctx context.Context, in *QueryFTSupplyRequest, opts ...grpc.CallOption) (*QueryFTSupplyResponse, error) 2191 // FTMinted queries the number of minted tokens from a given contract id and token id. 2192 FTMinted(ctx context.Context, in *QueryFTMintedRequest, opts ...grpc.CallOption) (*QueryFTMintedResponse, error) 2193 // FTBurnt queries the number of burnt tokens from a given contract id and token id. 2194 FTBurnt(ctx context.Context, in *QueryFTBurntRequest, opts ...grpc.CallOption) (*QueryFTBurntResponse, error) 2195 // NFTSupply queries the number of tokens from a given contract id and token type. 2196 NFTSupply(ctx context.Context, in *QueryNFTSupplyRequest, opts ...grpc.CallOption) (*QueryNFTSupplyResponse, error) 2197 // NFTMinted queries the number of minted tokens from a given contract id and token type. 2198 NFTMinted(ctx context.Context, in *QueryNFTMintedRequest, opts ...grpc.CallOption) (*QueryNFTMintedResponse, error) 2199 // NFTBurnt queries the number of burnt tokens from a given contract id and token type. 2200 NFTBurnt(ctx context.Context, in *QueryNFTBurntRequest, opts ...grpc.CallOption) (*QueryNFTBurntResponse, error) 2201 // Contract queries a contract metadata based on its contract id. 2202 Contract(ctx context.Context, in *QueryContractRequest, opts ...grpc.CallOption) (*QueryContractResponse, error) 2203 // TokenClassTypeName queries the fully qualified message type name of a token class from its class id. 2204 // 2205 // Since: 0.46.0 (finschia) 2206 TokenClassTypeName(ctx context.Context, in *QueryTokenClassTypeNameRequest, opts ...grpc.CallOption) (*QueryTokenClassTypeNameResponse, error) 2207 // TokenType queries metadata of a token type. 2208 TokenType(ctx context.Context, in *QueryTokenTypeRequest, opts ...grpc.CallOption) (*QueryTokenTypeResponse, error) 2209 // Token queries a metadata of a token from its token id. 2210 Token(ctx context.Context, in *QueryTokenRequest, opts ...grpc.CallOption) (*QueryTokenResponse, error) 2211 // Root queries the root of a given nft. 2212 Root(ctx context.Context, in *QueryRootRequest, opts ...grpc.CallOption) (*QueryRootResponse, error) 2213 // HasParent queries whether a given nft has its parent. 2214 HasParent(ctx context.Context, in *QueryHasParentRequest, opts ...grpc.CallOption) (*QueryHasParentResponse, error) 2215 // Parent queries the parent of a given nft. 2216 Parent(ctx context.Context, in *QueryParentRequest, opts ...grpc.CallOption) (*QueryParentResponse, error) 2217 // Children queries the children of a given nft. 2218 Children(ctx context.Context, in *QueryChildrenRequest, opts ...grpc.CallOption) (*QueryChildrenResponse, error) 2219 // GranteeGrants queries all permissions on a given grantee. 2220 GranteeGrants(ctx context.Context, in *QueryGranteeGrantsRequest, opts ...grpc.CallOption) (*QueryGranteeGrantsResponse, error) 2221 // IsOperatorFor queries whether the operator is authorized by the holder. 2222 IsOperatorFor(ctx context.Context, in *QueryIsOperatorForRequest, opts ...grpc.CallOption) (*QueryIsOperatorForResponse, error) 2223 // HoldersByOperator queries holders of a given operator. 2224 HoldersByOperator(ctx context.Context, in *QueryHoldersByOperatorRequest, opts ...grpc.CallOption) (*QueryHoldersByOperatorResponse, error) 2225 } 2226 2227 type queryClient struct { 2228 cc grpc1.ClientConn 2229 } 2230 2231 func NewQueryClient(cc grpc1.ClientConn) QueryClient { 2232 return &queryClient{cc} 2233 } 2234 2235 func (c *queryClient) Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error) { 2236 out := new(QueryBalanceResponse) 2237 err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Balance", in, out, opts...) 2238 if err != nil { 2239 return nil, err 2240 } 2241 return out, nil 2242 } 2243 2244 func (c *queryClient) AllBalances(ctx context.Context, in *QueryAllBalancesRequest, opts ...grpc.CallOption) (*QueryAllBalancesResponse, error) { 2245 out := new(QueryAllBalancesResponse) 2246 err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/AllBalances", in, out, opts...) 2247 if err != nil { 2248 return nil, err 2249 } 2250 return out, nil 2251 } 2252 2253 // Deprecated: Do not use. 2254 func (c *queryClient) FTSupply(ctx context.Context, in *QueryFTSupplyRequest, opts ...grpc.CallOption) (*QueryFTSupplyResponse, error) { 2255 out := new(QueryFTSupplyResponse) 2256 err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/FTSupply", in, out, opts...) 2257 if err != nil { 2258 return nil, err 2259 } 2260 return out, nil 2261 } 2262 2263 // Deprecated: Do not use. 2264 func (c *queryClient) FTMinted(ctx context.Context, in *QueryFTMintedRequest, opts ...grpc.CallOption) (*QueryFTMintedResponse, error) { 2265 out := new(QueryFTMintedResponse) 2266 err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/FTMinted", in, out, opts...) 2267 if err != nil { 2268 return nil, err 2269 } 2270 return out, nil 2271 } 2272 2273 // Deprecated: Do not use. 2274 func (c *queryClient) FTBurnt(ctx context.Context, in *QueryFTBurntRequest, opts ...grpc.CallOption) (*QueryFTBurntResponse, error) { 2275 out := new(QueryFTBurntResponse) 2276 err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/FTBurnt", in, out, opts...) 2277 if err != nil { 2278 return nil, err 2279 } 2280 return out, nil 2281 } 2282 2283 func (c *queryClient) NFTSupply(ctx context.Context, in *QueryNFTSupplyRequest, opts ...grpc.CallOption) (*QueryNFTSupplyResponse, error) { 2284 out := new(QueryNFTSupplyResponse) 2285 err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/NFTSupply", in, out, opts...) 2286 if err != nil { 2287 return nil, err 2288 } 2289 return out, nil 2290 } 2291 2292 func (c *queryClient) NFTMinted(ctx context.Context, in *QueryNFTMintedRequest, opts ...grpc.CallOption) (*QueryNFTMintedResponse, error) { 2293 out := new(QueryNFTMintedResponse) 2294 err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/NFTMinted", in, out, opts...) 2295 if err != nil { 2296 return nil, err 2297 } 2298 return out, nil 2299 } 2300 2301 func (c *queryClient) NFTBurnt(ctx context.Context, in *QueryNFTBurntRequest, opts ...grpc.CallOption) (*QueryNFTBurntResponse, error) { 2302 out := new(QueryNFTBurntResponse) 2303 err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/NFTBurnt", in, out, opts...) 2304 if err != nil { 2305 return nil, err 2306 } 2307 return out, nil 2308 } 2309 2310 func (c *queryClient) Contract(ctx context.Context, in *QueryContractRequest, opts ...grpc.CallOption) (*QueryContractResponse, error) { 2311 out := new(QueryContractResponse) 2312 err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Contract", in, out, opts...) 2313 if err != nil { 2314 return nil, err 2315 } 2316 return out, nil 2317 } 2318 2319 func (c *queryClient) TokenClassTypeName(ctx context.Context, in *QueryTokenClassTypeNameRequest, opts ...grpc.CallOption) (*QueryTokenClassTypeNameResponse, error) { 2320 out := new(QueryTokenClassTypeNameResponse) 2321 err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/TokenClassTypeName", in, out, opts...) 2322 if err != nil { 2323 return nil, err 2324 } 2325 return out, nil 2326 } 2327 2328 func (c *queryClient) TokenType(ctx context.Context, in *QueryTokenTypeRequest, opts ...grpc.CallOption) (*QueryTokenTypeResponse, error) { 2329 out := new(QueryTokenTypeResponse) 2330 err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/TokenType", in, out, opts...) 2331 if err != nil { 2332 return nil, err 2333 } 2334 return out, nil 2335 } 2336 2337 func (c *queryClient) Token(ctx context.Context, in *QueryTokenRequest, opts ...grpc.CallOption) (*QueryTokenResponse, error) { 2338 out := new(QueryTokenResponse) 2339 err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Token", in, out, opts...) 2340 if err != nil { 2341 return nil, err 2342 } 2343 return out, nil 2344 } 2345 2346 // Deprecated: Do not use. 2347 func (c *queryClient) Root(ctx context.Context, in *QueryRootRequest, opts ...grpc.CallOption) (*QueryRootResponse, error) { 2348 out := new(QueryRootResponse) 2349 err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Root", in, out, opts...) 2350 if err != nil { 2351 return nil, err 2352 } 2353 return out, nil 2354 } 2355 2356 // Deprecated: Do not use. 2357 func (c *queryClient) HasParent(ctx context.Context, in *QueryHasParentRequest, opts ...grpc.CallOption) (*QueryHasParentResponse, error) { 2358 out := new(QueryHasParentResponse) 2359 err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/HasParent", in, out, opts...) 2360 if err != nil { 2361 return nil, err 2362 } 2363 return out, nil 2364 } 2365 2366 // Deprecated: Do not use. 2367 func (c *queryClient) Parent(ctx context.Context, in *QueryParentRequest, opts ...grpc.CallOption) (*QueryParentResponse, error) { 2368 out := new(QueryParentResponse) 2369 err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Parent", in, out, opts...) 2370 if err != nil { 2371 return nil, err 2372 } 2373 return out, nil 2374 } 2375 2376 // Deprecated: Do not use. 2377 func (c *queryClient) Children(ctx context.Context, in *QueryChildrenRequest, opts ...grpc.CallOption) (*QueryChildrenResponse, error) { 2378 out := new(QueryChildrenResponse) 2379 err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/Children", in, out, opts...) 2380 if err != nil { 2381 return nil, err 2382 } 2383 return out, nil 2384 } 2385 2386 func (c *queryClient) GranteeGrants(ctx context.Context, in *QueryGranteeGrantsRequest, opts ...grpc.CallOption) (*QueryGranteeGrantsResponse, error) { 2387 out := new(QueryGranteeGrantsResponse) 2388 err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/GranteeGrants", in, out, opts...) 2389 if err != nil { 2390 return nil, err 2391 } 2392 return out, nil 2393 } 2394 2395 func (c *queryClient) IsOperatorFor(ctx context.Context, in *QueryIsOperatorForRequest, opts ...grpc.CallOption) (*QueryIsOperatorForResponse, error) { 2396 out := new(QueryIsOperatorForResponse) 2397 err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/IsOperatorFor", in, out, opts...) 2398 if err != nil { 2399 return nil, err 2400 } 2401 return out, nil 2402 } 2403 2404 func (c *queryClient) HoldersByOperator(ctx context.Context, in *QueryHoldersByOperatorRequest, opts ...grpc.CallOption) (*QueryHoldersByOperatorResponse, error) { 2405 out := new(QueryHoldersByOperatorResponse) 2406 err := c.cc.Invoke(ctx, "/lbm.collection.v1.Query/HoldersByOperator", in, out, opts...) 2407 if err != nil { 2408 return nil, err 2409 } 2410 return out, nil 2411 } 2412 2413 // QueryServer is the server API for Query service. 2414 type QueryServer interface { 2415 // Balance queries the balance of a single token class for a single account. 2416 Balance(context.Context, *QueryBalanceRequest) (*QueryBalanceResponse, error) 2417 // AllBalances queries the balance of all token classes for a single account. 2418 AllBalances(context.Context, *QueryAllBalancesRequest) (*QueryAllBalancesResponse, error) 2419 // FTSupply queries the number of tokens from a given contract id and token id. 2420 FTSupply(context.Context, *QueryFTSupplyRequest) (*QueryFTSupplyResponse, error) 2421 // FTMinted queries the number of minted tokens from a given contract id and token id. 2422 FTMinted(context.Context, *QueryFTMintedRequest) (*QueryFTMintedResponse, error) 2423 // FTBurnt queries the number of burnt tokens from a given contract id and token id. 2424 FTBurnt(context.Context, *QueryFTBurntRequest) (*QueryFTBurntResponse, error) 2425 // NFTSupply queries the number of tokens from a given contract id and token type. 2426 NFTSupply(context.Context, *QueryNFTSupplyRequest) (*QueryNFTSupplyResponse, error) 2427 // NFTMinted queries the number of minted tokens from a given contract id and token type. 2428 NFTMinted(context.Context, *QueryNFTMintedRequest) (*QueryNFTMintedResponse, error) 2429 // NFTBurnt queries the number of burnt tokens from a given contract id and token type. 2430 NFTBurnt(context.Context, *QueryNFTBurntRequest) (*QueryNFTBurntResponse, error) 2431 // Contract queries a contract metadata based on its contract id. 2432 Contract(context.Context, *QueryContractRequest) (*QueryContractResponse, error) 2433 // TokenClassTypeName queries the fully qualified message type name of a token class from its class id. 2434 // 2435 // Since: 0.46.0 (finschia) 2436 TokenClassTypeName(context.Context, *QueryTokenClassTypeNameRequest) (*QueryTokenClassTypeNameResponse, error) 2437 // TokenType queries metadata of a token type. 2438 TokenType(context.Context, *QueryTokenTypeRequest) (*QueryTokenTypeResponse, error) 2439 // Token queries a metadata of a token from its token id. 2440 Token(context.Context, *QueryTokenRequest) (*QueryTokenResponse, error) 2441 // Root queries the root of a given nft. 2442 Root(context.Context, *QueryRootRequest) (*QueryRootResponse, error) 2443 // HasParent queries whether a given nft has its parent. 2444 HasParent(context.Context, *QueryHasParentRequest) (*QueryHasParentResponse, error) 2445 // Parent queries the parent of a given nft. 2446 Parent(context.Context, *QueryParentRequest) (*QueryParentResponse, error) 2447 // Children queries the children of a given nft. 2448 Children(context.Context, *QueryChildrenRequest) (*QueryChildrenResponse, error) 2449 // GranteeGrants queries all permissions on a given grantee. 2450 GranteeGrants(context.Context, *QueryGranteeGrantsRequest) (*QueryGranteeGrantsResponse, error) 2451 // IsOperatorFor queries whether the operator is authorized by the holder. 2452 IsOperatorFor(context.Context, *QueryIsOperatorForRequest) (*QueryIsOperatorForResponse, error) 2453 // HoldersByOperator queries holders of a given operator. 2454 HoldersByOperator(context.Context, *QueryHoldersByOperatorRequest) (*QueryHoldersByOperatorResponse, error) 2455 } 2456 2457 // UnimplementedQueryServer can be embedded to have forward compatible implementations. 2458 type UnimplementedQueryServer struct { 2459 } 2460 2461 func (*UnimplementedQueryServer) Balance(ctx context.Context, req *QueryBalanceRequest) (*QueryBalanceResponse, error) { 2462 return nil, status.Errorf(codes.Unimplemented, "method Balance not implemented") 2463 } 2464 func (*UnimplementedQueryServer) AllBalances(ctx context.Context, req *QueryAllBalancesRequest) (*QueryAllBalancesResponse, error) { 2465 return nil, status.Errorf(codes.Unimplemented, "method AllBalances not implemented") 2466 } 2467 func (*UnimplementedQueryServer) FTSupply(ctx context.Context, req *QueryFTSupplyRequest) (*QueryFTSupplyResponse, error) { 2468 return nil, status.Errorf(codes.Unimplemented, "method FTSupply not implemented") 2469 } 2470 func (*UnimplementedQueryServer) FTMinted(ctx context.Context, req *QueryFTMintedRequest) (*QueryFTMintedResponse, error) { 2471 return nil, status.Errorf(codes.Unimplemented, "method FTMinted not implemented") 2472 } 2473 func (*UnimplementedQueryServer) FTBurnt(ctx context.Context, req *QueryFTBurntRequest) (*QueryFTBurntResponse, error) { 2474 return nil, status.Errorf(codes.Unimplemented, "method FTBurnt not implemented") 2475 } 2476 func (*UnimplementedQueryServer) NFTSupply(ctx context.Context, req *QueryNFTSupplyRequest) (*QueryNFTSupplyResponse, error) { 2477 return nil, status.Errorf(codes.Unimplemented, "method NFTSupply not implemented") 2478 } 2479 func (*UnimplementedQueryServer) NFTMinted(ctx context.Context, req *QueryNFTMintedRequest) (*QueryNFTMintedResponse, error) { 2480 return nil, status.Errorf(codes.Unimplemented, "method NFTMinted not implemented") 2481 } 2482 func (*UnimplementedQueryServer) NFTBurnt(ctx context.Context, req *QueryNFTBurntRequest) (*QueryNFTBurntResponse, error) { 2483 return nil, status.Errorf(codes.Unimplemented, "method NFTBurnt not implemented") 2484 } 2485 func (*UnimplementedQueryServer) Contract(ctx context.Context, req *QueryContractRequest) (*QueryContractResponse, error) { 2486 return nil, status.Errorf(codes.Unimplemented, "method Contract not implemented") 2487 } 2488 func (*UnimplementedQueryServer) TokenClassTypeName(ctx context.Context, req *QueryTokenClassTypeNameRequest) (*QueryTokenClassTypeNameResponse, error) { 2489 return nil, status.Errorf(codes.Unimplemented, "method TokenClassTypeName not implemented") 2490 } 2491 func (*UnimplementedQueryServer) TokenType(ctx context.Context, req *QueryTokenTypeRequest) (*QueryTokenTypeResponse, error) { 2492 return nil, status.Errorf(codes.Unimplemented, "method TokenType not implemented") 2493 } 2494 func (*UnimplementedQueryServer) Token(ctx context.Context, req *QueryTokenRequest) (*QueryTokenResponse, error) { 2495 return nil, status.Errorf(codes.Unimplemented, "method Token not implemented") 2496 } 2497 func (*UnimplementedQueryServer) Root(ctx context.Context, req *QueryRootRequest) (*QueryRootResponse, error) { 2498 return nil, status.Errorf(codes.Unimplemented, "method Root not implemented") 2499 } 2500 func (*UnimplementedQueryServer) HasParent(ctx context.Context, req *QueryHasParentRequest) (*QueryHasParentResponse, error) { 2501 return nil, status.Errorf(codes.Unimplemented, "method HasParent not implemented") 2502 } 2503 func (*UnimplementedQueryServer) Parent(ctx context.Context, req *QueryParentRequest) (*QueryParentResponse, error) { 2504 return nil, status.Errorf(codes.Unimplemented, "method Parent not implemented") 2505 } 2506 func (*UnimplementedQueryServer) Children(ctx context.Context, req *QueryChildrenRequest) (*QueryChildrenResponse, error) { 2507 return nil, status.Errorf(codes.Unimplemented, "method Children not implemented") 2508 } 2509 func (*UnimplementedQueryServer) GranteeGrants(ctx context.Context, req *QueryGranteeGrantsRequest) (*QueryGranteeGrantsResponse, error) { 2510 return nil, status.Errorf(codes.Unimplemented, "method GranteeGrants not implemented") 2511 } 2512 func (*UnimplementedQueryServer) IsOperatorFor(ctx context.Context, req *QueryIsOperatorForRequest) (*QueryIsOperatorForResponse, error) { 2513 return nil, status.Errorf(codes.Unimplemented, "method IsOperatorFor not implemented") 2514 } 2515 func (*UnimplementedQueryServer) HoldersByOperator(ctx context.Context, req *QueryHoldersByOperatorRequest) (*QueryHoldersByOperatorResponse, error) { 2516 return nil, status.Errorf(codes.Unimplemented, "method HoldersByOperator not implemented") 2517 } 2518 2519 func RegisterQueryServer(s grpc1.Server, srv QueryServer) { 2520 s.RegisterService(&_Query_serviceDesc, srv) 2521 } 2522 2523 func _Query_Balance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2524 in := new(QueryBalanceRequest) 2525 if err := dec(in); err != nil { 2526 return nil, err 2527 } 2528 if interceptor == nil { 2529 return srv.(QueryServer).Balance(ctx, in) 2530 } 2531 info := &grpc.UnaryServerInfo{ 2532 Server: srv, 2533 FullMethod: "/lbm.collection.v1.Query/Balance", 2534 } 2535 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2536 return srv.(QueryServer).Balance(ctx, req.(*QueryBalanceRequest)) 2537 } 2538 return interceptor(ctx, in, info, handler) 2539 } 2540 2541 func _Query_AllBalances_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2542 in := new(QueryAllBalancesRequest) 2543 if err := dec(in); err != nil { 2544 return nil, err 2545 } 2546 if interceptor == nil { 2547 return srv.(QueryServer).AllBalances(ctx, in) 2548 } 2549 info := &grpc.UnaryServerInfo{ 2550 Server: srv, 2551 FullMethod: "/lbm.collection.v1.Query/AllBalances", 2552 } 2553 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2554 return srv.(QueryServer).AllBalances(ctx, req.(*QueryAllBalancesRequest)) 2555 } 2556 return interceptor(ctx, in, info, handler) 2557 } 2558 2559 func _Query_FTSupply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2560 in := new(QueryFTSupplyRequest) 2561 if err := dec(in); err != nil { 2562 return nil, err 2563 } 2564 if interceptor == nil { 2565 return srv.(QueryServer).FTSupply(ctx, in) 2566 } 2567 info := &grpc.UnaryServerInfo{ 2568 Server: srv, 2569 FullMethod: "/lbm.collection.v1.Query/FTSupply", 2570 } 2571 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2572 return srv.(QueryServer).FTSupply(ctx, req.(*QueryFTSupplyRequest)) 2573 } 2574 return interceptor(ctx, in, info, handler) 2575 } 2576 2577 func _Query_FTMinted_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2578 in := new(QueryFTMintedRequest) 2579 if err := dec(in); err != nil { 2580 return nil, err 2581 } 2582 if interceptor == nil { 2583 return srv.(QueryServer).FTMinted(ctx, in) 2584 } 2585 info := &grpc.UnaryServerInfo{ 2586 Server: srv, 2587 FullMethod: "/lbm.collection.v1.Query/FTMinted", 2588 } 2589 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2590 return srv.(QueryServer).FTMinted(ctx, req.(*QueryFTMintedRequest)) 2591 } 2592 return interceptor(ctx, in, info, handler) 2593 } 2594 2595 func _Query_FTBurnt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2596 in := new(QueryFTBurntRequest) 2597 if err := dec(in); err != nil { 2598 return nil, err 2599 } 2600 if interceptor == nil { 2601 return srv.(QueryServer).FTBurnt(ctx, in) 2602 } 2603 info := &grpc.UnaryServerInfo{ 2604 Server: srv, 2605 FullMethod: "/lbm.collection.v1.Query/FTBurnt", 2606 } 2607 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2608 return srv.(QueryServer).FTBurnt(ctx, req.(*QueryFTBurntRequest)) 2609 } 2610 return interceptor(ctx, in, info, handler) 2611 } 2612 2613 func _Query_NFTSupply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2614 in := new(QueryNFTSupplyRequest) 2615 if err := dec(in); err != nil { 2616 return nil, err 2617 } 2618 if interceptor == nil { 2619 return srv.(QueryServer).NFTSupply(ctx, in) 2620 } 2621 info := &grpc.UnaryServerInfo{ 2622 Server: srv, 2623 FullMethod: "/lbm.collection.v1.Query/NFTSupply", 2624 } 2625 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2626 return srv.(QueryServer).NFTSupply(ctx, req.(*QueryNFTSupplyRequest)) 2627 } 2628 return interceptor(ctx, in, info, handler) 2629 } 2630 2631 func _Query_NFTMinted_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2632 in := new(QueryNFTMintedRequest) 2633 if err := dec(in); err != nil { 2634 return nil, err 2635 } 2636 if interceptor == nil { 2637 return srv.(QueryServer).NFTMinted(ctx, in) 2638 } 2639 info := &grpc.UnaryServerInfo{ 2640 Server: srv, 2641 FullMethod: "/lbm.collection.v1.Query/NFTMinted", 2642 } 2643 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2644 return srv.(QueryServer).NFTMinted(ctx, req.(*QueryNFTMintedRequest)) 2645 } 2646 return interceptor(ctx, in, info, handler) 2647 } 2648 2649 func _Query_NFTBurnt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2650 in := new(QueryNFTBurntRequest) 2651 if err := dec(in); err != nil { 2652 return nil, err 2653 } 2654 if interceptor == nil { 2655 return srv.(QueryServer).NFTBurnt(ctx, in) 2656 } 2657 info := &grpc.UnaryServerInfo{ 2658 Server: srv, 2659 FullMethod: "/lbm.collection.v1.Query/NFTBurnt", 2660 } 2661 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2662 return srv.(QueryServer).NFTBurnt(ctx, req.(*QueryNFTBurntRequest)) 2663 } 2664 return interceptor(ctx, in, info, handler) 2665 } 2666 2667 func _Query_Contract_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2668 in := new(QueryContractRequest) 2669 if err := dec(in); err != nil { 2670 return nil, err 2671 } 2672 if interceptor == nil { 2673 return srv.(QueryServer).Contract(ctx, in) 2674 } 2675 info := &grpc.UnaryServerInfo{ 2676 Server: srv, 2677 FullMethod: "/lbm.collection.v1.Query/Contract", 2678 } 2679 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2680 return srv.(QueryServer).Contract(ctx, req.(*QueryContractRequest)) 2681 } 2682 return interceptor(ctx, in, info, handler) 2683 } 2684 2685 func _Query_TokenClassTypeName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2686 in := new(QueryTokenClassTypeNameRequest) 2687 if err := dec(in); err != nil { 2688 return nil, err 2689 } 2690 if interceptor == nil { 2691 return srv.(QueryServer).TokenClassTypeName(ctx, in) 2692 } 2693 info := &grpc.UnaryServerInfo{ 2694 Server: srv, 2695 FullMethod: "/lbm.collection.v1.Query/TokenClassTypeName", 2696 } 2697 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2698 return srv.(QueryServer).TokenClassTypeName(ctx, req.(*QueryTokenClassTypeNameRequest)) 2699 } 2700 return interceptor(ctx, in, info, handler) 2701 } 2702 2703 func _Query_TokenType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2704 in := new(QueryTokenTypeRequest) 2705 if err := dec(in); err != nil { 2706 return nil, err 2707 } 2708 if interceptor == nil { 2709 return srv.(QueryServer).TokenType(ctx, in) 2710 } 2711 info := &grpc.UnaryServerInfo{ 2712 Server: srv, 2713 FullMethod: "/lbm.collection.v1.Query/TokenType", 2714 } 2715 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2716 return srv.(QueryServer).TokenType(ctx, req.(*QueryTokenTypeRequest)) 2717 } 2718 return interceptor(ctx, in, info, handler) 2719 } 2720 2721 func _Query_Token_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2722 in := new(QueryTokenRequest) 2723 if err := dec(in); err != nil { 2724 return nil, err 2725 } 2726 if interceptor == nil { 2727 return srv.(QueryServer).Token(ctx, in) 2728 } 2729 info := &grpc.UnaryServerInfo{ 2730 Server: srv, 2731 FullMethod: "/lbm.collection.v1.Query/Token", 2732 } 2733 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2734 return srv.(QueryServer).Token(ctx, req.(*QueryTokenRequest)) 2735 } 2736 return interceptor(ctx, in, info, handler) 2737 } 2738 2739 func _Query_Root_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2740 in := new(QueryRootRequest) 2741 if err := dec(in); err != nil { 2742 return nil, err 2743 } 2744 if interceptor == nil { 2745 return srv.(QueryServer).Root(ctx, in) 2746 } 2747 info := &grpc.UnaryServerInfo{ 2748 Server: srv, 2749 FullMethod: "/lbm.collection.v1.Query/Root", 2750 } 2751 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2752 return srv.(QueryServer).Root(ctx, req.(*QueryRootRequest)) 2753 } 2754 return interceptor(ctx, in, info, handler) 2755 } 2756 2757 func _Query_HasParent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2758 in := new(QueryHasParentRequest) 2759 if err := dec(in); err != nil { 2760 return nil, err 2761 } 2762 if interceptor == nil { 2763 return srv.(QueryServer).HasParent(ctx, in) 2764 } 2765 info := &grpc.UnaryServerInfo{ 2766 Server: srv, 2767 FullMethod: "/lbm.collection.v1.Query/HasParent", 2768 } 2769 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2770 return srv.(QueryServer).HasParent(ctx, req.(*QueryHasParentRequest)) 2771 } 2772 return interceptor(ctx, in, info, handler) 2773 } 2774 2775 func _Query_Parent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2776 in := new(QueryParentRequest) 2777 if err := dec(in); err != nil { 2778 return nil, err 2779 } 2780 if interceptor == nil { 2781 return srv.(QueryServer).Parent(ctx, in) 2782 } 2783 info := &grpc.UnaryServerInfo{ 2784 Server: srv, 2785 FullMethod: "/lbm.collection.v1.Query/Parent", 2786 } 2787 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2788 return srv.(QueryServer).Parent(ctx, req.(*QueryParentRequest)) 2789 } 2790 return interceptor(ctx, in, info, handler) 2791 } 2792 2793 func _Query_Children_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2794 in := new(QueryChildrenRequest) 2795 if err := dec(in); err != nil { 2796 return nil, err 2797 } 2798 if interceptor == nil { 2799 return srv.(QueryServer).Children(ctx, in) 2800 } 2801 info := &grpc.UnaryServerInfo{ 2802 Server: srv, 2803 FullMethod: "/lbm.collection.v1.Query/Children", 2804 } 2805 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2806 return srv.(QueryServer).Children(ctx, req.(*QueryChildrenRequest)) 2807 } 2808 return interceptor(ctx, in, info, handler) 2809 } 2810 2811 func _Query_GranteeGrants_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2812 in := new(QueryGranteeGrantsRequest) 2813 if err := dec(in); err != nil { 2814 return nil, err 2815 } 2816 if interceptor == nil { 2817 return srv.(QueryServer).GranteeGrants(ctx, in) 2818 } 2819 info := &grpc.UnaryServerInfo{ 2820 Server: srv, 2821 FullMethod: "/lbm.collection.v1.Query/GranteeGrants", 2822 } 2823 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2824 return srv.(QueryServer).GranteeGrants(ctx, req.(*QueryGranteeGrantsRequest)) 2825 } 2826 return interceptor(ctx, in, info, handler) 2827 } 2828 2829 func _Query_IsOperatorFor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2830 in := new(QueryIsOperatorForRequest) 2831 if err := dec(in); err != nil { 2832 return nil, err 2833 } 2834 if interceptor == nil { 2835 return srv.(QueryServer).IsOperatorFor(ctx, in) 2836 } 2837 info := &grpc.UnaryServerInfo{ 2838 Server: srv, 2839 FullMethod: "/lbm.collection.v1.Query/IsOperatorFor", 2840 } 2841 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2842 return srv.(QueryServer).IsOperatorFor(ctx, req.(*QueryIsOperatorForRequest)) 2843 } 2844 return interceptor(ctx, in, info, handler) 2845 } 2846 2847 func _Query_HoldersByOperator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2848 in := new(QueryHoldersByOperatorRequest) 2849 if err := dec(in); err != nil { 2850 return nil, err 2851 } 2852 if interceptor == nil { 2853 return srv.(QueryServer).HoldersByOperator(ctx, in) 2854 } 2855 info := &grpc.UnaryServerInfo{ 2856 Server: srv, 2857 FullMethod: "/lbm.collection.v1.Query/HoldersByOperator", 2858 } 2859 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2860 return srv.(QueryServer).HoldersByOperator(ctx, req.(*QueryHoldersByOperatorRequest)) 2861 } 2862 return interceptor(ctx, in, info, handler) 2863 } 2864 2865 var _Query_serviceDesc = grpc.ServiceDesc{ 2866 ServiceName: "lbm.collection.v1.Query", 2867 HandlerType: (*QueryServer)(nil), 2868 Methods: []grpc.MethodDesc{ 2869 { 2870 MethodName: "Balance", 2871 Handler: _Query_Balance_Handler, 2872 }, 2873 { 2874 MethodName: "AllBalances", 2875 Handler: _Query_AllBalances_Handler, 2876 }, 2877 { 2878 MethodName: "FTSupply", 2879 Handler: _Query_FTSupply_Handler, 2880 }, 2881 { 2882 MethodName: "FTMinted", 2883 Handler: _Query_FTMinted_Handler, 2884 }, 2885 { 2886 MethodName: "FTBurnt", 2887 Handler: _Query_FTBurnt_Handler, 2888 }, 2889 { 2890 MethodName: "NFTSupply", 2891 Handler: _Query_NFTSupply_Handler, 2892 }, 2893 { 2894 MethodName: "NFTMinted", 2895 Handler: _Query_NFTMinted_Handler, 2896 }, 2897 { 2898 MethodName: "NFTBurnt", 2899 Handler: _Query_NFTBurnt_Handler, 2900 }, 2901 { 2902 MethodName: "Contract", 2903 Handler: _Query_Contract_Handler, 2904 }, 2905 { 2906 MethodName: "TokenClassTypeName", 2907 Handler: _Query_TokenClassTypeName_Handler, 2908 }, 2909 { 2910 MethodName: "TokenType", 2911 Handler: _Query_TokenType_Handler, 2912 }, 2913 { 2914 MethodName: "Token", 2915 Handler: _Query_Token_Handler, 2916 }, 2917 { 2918 MethodName: "Root", 2919 Handler: _Query_Root_Handler, 2920 }, 2921 { 2922 MethodName: "HasParent", 2923 Handler: _Query_HasParent_Handler, 2924 }, 2925 { 2926 MethodName: "Parent", 2927 Handler: _Query_Parent_Handler, 2928 }, 2929 { 2930 MethodName: "Children", 2931 Handler: _Query_Children_Handler, 2932 }, 2933 { 2934 MethodName: "GranteeGrants", 2935 Handler: _Query_GranteeGrants_Handler, 2936 }, 2937 { 2938 MethodName: "IsOperatorFor", 2939 Handler: _Query_IsOperatorFor_Handler, 2940 }, 2941 { 2942 MethodName: "HoldersByOperator", 2943 Handler: _Query_HoldersByOperator_Handler, 2944 }, 2945 }, 2946 Streams: []grpc.StreamDesc{}, 2947 Metadata: "lbm/collection/v1/query.proto", 2948 } 2949 2950 func (m *QueryBalanceRequest) Marshal() (dAtA []byte, err error) { 2951 size := m.Size() 2952 dAtA = make([]byte, size) 2953 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2954 if err != nil { 2955 return nil, err 2956 } 2957 return dAtA[:n], nil 2958 } 2959 2960 func (m *QueryBalanceRequest) MarshalTo(dAtA []byte) (int, error) { 2961 size := m.Size() 2962 return m.MarshalToSizedBuffer(dAtA[:size]) 2963 } 2964 2965 func (m *QueryBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2966 i := len(dAtA) 2967 _ = i 2968 var l int 2969 _ = l 2970 if len(m.TokenId) > 0 { 2971 i -= len(m.TokenId) 2972 copy(dAtA[i:], m.TokenId) 2973 i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenId))) 2974 i-- 2975 dAtA[i] = 0x1a 2976 } 2977 if len(m.Address) > 0 { 2978 i -= len(m.Address) 2979 copy(dAtA[i:], m.Address) 2980 i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) 2981 i-- 2982 dAtA[i] = 0x12 2983 } 2984 if len(m.ContractId) > 0 { 2985 i -= len(m.ContractId) 2986 copy(dAtA[i:], m.ContractId) 2987 i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) 2988 i-- 2989 dAtA[i] = 0xa 2990 } 2991 return len(dAtA) - i, nil 2992 } 2993 2994 func (m *QueryBalanceResponse) Marshal() (dAtA []byte, err error) { 2995 size := m.Size() 2996 dAtA = make([]byte, size) 2997 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2998 if err != nil { 2999 return nil, err 3000 } 3001 return dAtA[:n], nil 3002 } 3003 3004 func (m *QueryBalanceResponse) MarshalTo(dAtA []byte) (int, error) { 3005 size := m.Size() 3006 return m.MarshalToSizedBuffer(dAtA[:size]) 3007 } 3008 3009 func (m *QueryBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3010 i := len(dAtA) 3011 _ = i 3012 var l int 3013 _ = l 3014 { 3015 size, err := m.Balance.MarshalToSizedBuffer(dAtA[:i]) 3016 if err != nil { 3017 return 0, err 3018 } 3019 i -= size 3020 i = encodeVarintQuery(dAtA, i, uint64(size)) 3021 } 3022 i-- 3023 dAtA[i] = 0xa 3024 return len(dAtA) - i, nil 3025 } 3026 3027 func (m *QueryAllBalancesRequest) Marshal() (dAtA []byte, err error) { 3028 size := m.Size() 3029 dAtA = make([]byte, size) 3030 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3031 if err != nil { 3032 return nil, err 3033 } 3034 return dAtA[:n], nil 3035 } 3036 3037 func (m *QueryAllBalancesRequest) MarshalTo(dAtA []byte) (int, error) { 3038 size := m.Size() 3039 return m.MarshalToSizedBuffer(dAtA[:size]) 3040 } 3041 3042 func (m *QueryAllBalancesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3043 i := len(dAtA) 3044 _ = i 3045 var l int 3046 _ = l 3047 if m.Pagination != nil { 3048 { 3049 size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) 3050 if err != nil { 3051 return 0, err 3052 } 3053 i -= size 3054 i = encodeVarintQuery(dAtA, i, uint64(size)) 3055 } 3056 i-- 3057 dAtA[i] = 0x1a 3058 } 3059 if len(m.Address) > 0 { 3060 i -= len(m.Address) 3061 copy(dAtA[i:], m.Address) 3062 i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) 3063 i-- 3064 dAtA[i] = 0x12 3065 } 3066 if len(m.ContractId) > 0 { 3067 i -= len(m.ContractId) 3068 copy(dAtA[i:], m.ContractId) 3069 i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) 3070 i-- 3071 dAtA[i] = 0xa 3072 } 3073 return len(dAtA) - i, nil 3074 } 3075 3076 func (m *QueryAllBalancesResponse) Marshal() (dAtA []byte, err error) { 3077 size := m.Size() 3078 dAtA = make([]byte, size) 3079 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3080 if err != nil { 3081 return nil, err 3082 } 3083 return dAtA[:n], nil 3084 } 3085 3086 func (m *QueryAllBalancesResponse) MarshalTo(dAtA []byte) (int, error) { 3087 size := m.Size() 3088 return m.MarshalToSizedBuffer(dAtA[:size]) 3089 } 3090 3091 func (m *QueryAllBalancesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3092 i := len(dAtA) 3093 _ = i 3094 var l int 3095 _ = l 3096 if m.Pagination != nil { 3097 { 3098 size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) 3099 if err != nil { 3100 return 0, err 3101 } 3102 i -= size 3103 i = encodeVarintQuery(dAtA, i, uint64(size)) 3104 } 3105 i-- 3106 dAtA[i] = 0x12 3107 } 3108 if len(m.Balances) > 0 { 3109 for iNdEx := len(m.Balances) - 1; iNdEx >= 0; iNdEx-- { 3110 { 3111 size, err := m.Balances[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 3112 if err != nil { 3113 return 0, err 3114 } 3115 i -= size 3116 i = encodeVarintQuery(dAtA, i, uint64(size)) 3117 } 3118 i-- 3119 dAtA[i] = 0xa 3120 } 3121 } 3122 return len(dAtA) - i, nil 3123 } 3124 3125 func (m *QueryFTSupplyRequest) Marshal() (dAtA []byte, err error) { 3126 size := m.Size() 3127 dAtA = make([]byte, size) 3128 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3129 if err != nil { 3130 return nil, err 3131 } 3132 return dAtA[:n], nil 3133 } 3134 3135 func (m *QueryFTSupplyRequest) MarshalTo(dAtA []byte) (int, error) { 3136 size := m.Size() 3137 return m.MarshalToSizedBuffer(dAtA[:size]) 3138 } 3139 3140 func (m *QueryFTSupplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3141 i := len(dAtA) 3142 _ = i 3143 var l int 3144 _ = l 3145 if len(m.TokenId) > 0 { 3146 i -= len(m.TokenId) 3147 copy(dAtA[i:], m.TokenId) 3148 i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenId))) 3149 i-- 3150 dAtA[i] = 0x12 3151 } 3152 if len(m.ContractId) > 0 { 3153 i -= len(m.ContractId) 3154 copy(dAtA[i:], m.ContractId) 3155 i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) 3156 i-- 3157 dAtA[i] = 0xa 3158 } 3159 return len(dAtA) - i, nil 3160 } 3161 3162 func (m *QueryFTSupplyResponse) Marshal() (dAtA []byte, err error) { 3163 size := m.Size() 3164 dAtA = make([]byte, size) 3165 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3166 if err != nil { 3167 return nil, err 3168 } 3169 return dAtA[:n], nil 3170 } 3171 3172 func (m *QueryFTSupplyResponse) MarshalTo(dAtA []byte) (int, error) { 3173 size := m.Size() 3174 return m.MarshalToSizedBuffer(dAtA[:size]) 3175 } 3176 3177 func (m *QueryFTSupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3178 i := len(dAtA) 3179 _ = i 3180 var l int 3181 _ = l 3182 { 3183 size := m.Supply.Size() 3184 i -= size 3185 if _, err := m.Supply.MarshalTo(dAtA[i:]); err != nil { 3186 return 0, err 3187 } 3188 i = encodeVarintQuery(dAtA, i, uint64(size)) 3189 } 3190 i-- 3191 dAtA[i] = 0xa 3192 return len(dAtA) - i, nil 3193 } 3194 3195 func (m *QueryFTMintedRequest) Marshal() (dAtA []byte, err error) { 3196 size := m.Size() 3197 dAtA = make([]byte, size) 3198 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3199 if err != nil { 3200 return nil, err 3201 } 3202 return dAtA[:n], nil 3203 } 3204 3205 func (m *QueryFTMintedRequest) MarshalTo(dAtA []byte) (int, error) { 3206 size := m.Size() 3207 return m.MarshalToSizedBuffer(dAtA[:size]) 3208 } 3209 3210 func (m *QueryFTMintedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3211 i := len(dAtA) 3212 _ = i 3213 var l int 3214 _ = l 3215 if len(m.TokenId) > 0 { 3216 i -= len(m.TokenId) 3217 copy(dAtA[i:], m.TokenId) 3218 i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenId))) 3219 i-- 3220 dAtA[i] = 0x12 3221 } 3222 if len(m.ContractId) > 0 { 3223 i -= len(m.ContractId) 3224 copy(dAtA[i:], m.ContractId) 3225 i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) 3226 i-- 3227 dAtA[i] = 0xa 3228 } 3229 return len(dAtA) - i, nil 3230 } 3231 3232 func (m *QueryFTMintedResponse) Marshal() (dAtA []byte, err error) { 3233 size := m.Size() 3234 dAtA = make([]byte, size) 3235 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3236 if err != nil { 3237 return nil, err 3238 } 3239 return dAtA[:n], nil 3240 } 3241 3242 func (m *QueryFTMintedResponse) MarshalTo(dAtA []byte) (int, error) { 3243 size := m.Size() 3244 return m.MarshalToSizedBuffer(dAtA[:size]) 3245 } 3246 3247 func (m *QueryFTMintedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3248 i := len(dAtA) 3249 _ = i 3250 var l int 3251 _ = l 3252 { 3253 size := m.Minted.Size() 3254 i -= size 3255 if _, err := m.Minted.MarshalTo(dAtA[i:]); err != nil { 3256 return 0, err 3257 } 3258 i = encodeVarintQuery(dAtA, i, uint64(size)) 3259 } 3260 i-- 3261 dAtA[i] = 0xa 3262 return len(dAtA) - i, nil 3263 } 3264 3265 func (m *QueryFTBurntRequest) Marshal() (dAtA []byte, err error) { 3266 size := m.Size() 3267 dAtA = make([]byte, size) 3268 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3269 if err != nil { 3270 return nil, err 3271 } 3272 return dAtA[:n], nil 3273 } 3274 3275 func (m *QueryFTBurntRequest) MarshalTo(dAtA []byte) (int, error) { 3276 size := m.Size() 3277 return m.MarshalToSizedBuffer(dAtA[:size]) 3278 } 3279 3280 func (m *QueryFTBurntRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3281 i := len(dAtA) 3282 _ = i 3283 var l int 3284 _ = l 3285 if len(m.TokenId) > 0 { 3286 i -= len(m.TokenId) 3287 copy(dAtA[i:], m.TokenId) 3288 i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenId))) 3289 i-- 3290 dAtA[i] = 0x12 3291 } 3292 if len(m.ContractId) > 0 { 3293 i -= len(m.ContractId) 3294 copy(dAtA[i:], m.ContractId) 3295 i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) 3296 i-- 3297 dAtA[i] = 0xa 3298 } 3299 return len(dAtA) - i, nil 3300 } 3301 3302 func (m *QueryFTBurntResponse) Marshal() (dAtA []byte, err error) { 3303 size := m.Size() 3304 dAtA = make([]byte, size) 3305 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3306 if err != nil { 3307 return nil, err 3308 } 3309 return dAtA[:n], nil 3310 } 3311 3312 func (m *QueryFTBurntResponse) MarshalTo(dAtA []byte) (int, error) { 3313 size := m.Size() 3314 return m.MarshalToSizedBuffer(dAtA[:size]) 3315 } 3316 3317 func (m *QueryFTBurntResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3318 i := len(dAtA) 3319 _ = i 3320 var l int 3321 _ = l 3322 { 3323 size := m.Burnt.Size() 3324 i -= size 3325 if _, err := m.Burnt.MarshalTo(dAtA[i:]); err != nil { 3326 return 0, err 3327 } 3328 i = encodeVarintQuery(dAtA, i, uint64(size)) 3329 } 3330 i-- 3331 dAtA[i] = 0xa 3332 return len(dAtA) - i, nil 3333 } 3334 3335 func (m *QueryNFTSupplyRequest) Marshal() (dAtA []byte, err error) { 3336 size := m.Size() 3337 dAtA = make([]byte, size) 3338 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3339 if err != nil { 3340 return nil, err 3341 } 3342 return dAtA[:n], nil 3343 } 3344 3345 func (m *QueryNFTSupplyRequest) MarshalTo(dAtA []byte) (int, error) { 3346 size := m.Size() 3347 return m.MarshalToSizedBuffer(dAtA[:size]) 3348 } 3349 3350 func (m *QueryNFTSupplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3351 i := len(dAtA) 3352 _ = i 3353 var l int 3354 _ = l 3355 if len(m.TokenType) > 0 { 3356 i -= len(m.TokenType) 3357 copy(dAtA[i:], m.TokenType) 3358 i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenType))) 3359 i-- 3360 dAtA[i] = 0x12 3361 } 3362 if len(m.ContractId) > 0 { 3363 i -= len(m.ContractId) 3364 copy(dAtA[i:], m.ContractId) 3365 i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) 3366 i-- 3367 dAtA[i] = 0xa 3368 } 3369 return len(dAtA) - i, nil 3370 } 3371 3372 func (m *QueryNFTSupplyResponse) Marshal() (dAtA []byte, err error) { 3373 size := m.Size() 3374 dAtA = make([]byte, size) 3375 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3376 if err != nil { 3377 return nil, err 3378 } 3379 return dAtA[:n], nil 3380 } 3381 3382 func (m *QueryNFTSupplyResponse) MarshalTo(dAtA []byte) (int, error) { 3383 size := m.Size() 3384 return m.MarshalToSizedBuffer(dAtA[:size]) 3385 } 3386 3387 func (m *QueryNFTSupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3388 i := len(dAtA) 3389 _ = i 3390 var l int 3391 _ = l 3392 { 3393 size := m.Supply.Size() 3394 i -= size 3395 if _, err := m.Supply.MarshalTo(dAtA[i:]); err != nil { 3396 return 0, err 3397 } 3398 i = encodeVarintQuery(dAtA, i, uint64(size)) 3399 } 3400 i-- 3401 dAtA[i] = 0xa 3402 return len(dAtA) - i, nil 3403 } 3404 3405 func (m *QueryNFTMintedRequest) Marshal() (dAtA []byte, err error) { 3406 size := m.Size() 3407 dAtA = make([]byte, size) 3408 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3409 if err != nil { 3410 return nil, err 3411 } 3412 return dAtA[:n], nil 3413 } 3414 3415 func (m *QueryNFTMintedRequest) MarshalTo(dAtA []byte) (int, error) { 3416 size := m.Size() 3417 return m.MarshalToSizedBuffer(dAtA[:size]) 3418 } 3419 3420 func (m *QueryNFTMintedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3421 i := len(dAtA) 3422 _ = i 3423 var l int 3424 _ = l 3425 if len(m.TokenType) > 0 { 3426 i -= len(m.TokenType) 3427 copy(dAtA[i:], m.TokenType) 3428 i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenType))) 3429 i-- 3430 dAtA[i] = 0x12 3431 } 3432 if len(m.ContractId) > 0 { 3433 i -= len(m.ContractId) 3434 copy(dAtA[i:], m.ContractId) 3435 i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) 3436 i-- 3437 dAtA[i] = 0xa 3438 } 3439 return len(dAtA) - i, nil 3440 } 3441 3442 func (m *QueryNFTMintedResponse) Marshal() (dAtA []byte, err error) { 3443 size := m.Size() 3444 dAtA = make([]byte, size) 3445 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3446 if err != nil { 3447 return nil, err 3448 } 3449 return dAtA[:n], nil 3450 } 3451 3452 func (m *QueryNFTMintedResponse) MarshalTo(dAtA []byte) (int, error) { 3453 size := m.Size() 3454 return m.MarshalToSizedBuffer(dAtA[:size]) 3455 } 3456 3457 func (m *QueryNFTMintedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3458 i := len(dAtA) 3459 _ = i 3460 var l int 3461 _ = l 3462 { 3463 size := m.Minted.Size() 3464 i -= size 3465 if _, err := m.Minted.MarshalTo(dAtA[i:]); err != nil { 3466 return 0, err 3467 } 3468 i = encodeVarintQuery(dAtA, i, uint64(size)) 3469 } 3470 i-- 3471 dAtA[i] = 0xa 3472 return len(dAtA) - i, nil 3473 } 3474 3475 func (m *QueryNFTBurntRequest) Marshal() (dAtA []byte, err error) { 3476 size := m.Size() 3477 dAtA = make([]byte, size) 3478 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3479 if err != nil { 3480 return nil, err 3481 } 3482 return dAtA[:n], nil 3483 } 3484 3485 func (m *QueryNFTBurntRequest) MarshalTo(dAtA []byte) (int, error) { 3486 size := m.Size() 3487 return m.MarshalToSizedBuffer(dAtA[:size]) 3488 } 3489 3490 func (m *QueryNFTBurntRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3491 i := len(dAtA) 3492 _ = i 3493 var l int 3494 _ = l 3495 if len(m.TokenType) > 0 { 3496 i -= len(m.TokenType) 3497 copy(dAtA[i:], m.TokenType) 3498 i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenType))) 3499 i-- 3500 dAtA[i] = 0x12 3501 } 3502 if len(m.ContractId) > 0 { 3503 i -= len(m.ContractId) 3504 copy(dAtA[i:], m.ContractId) 3505 i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) 3506 i-- 3507 dAtA[i] = 0xa 3508 } 3509 return len(dAtA) - i, nil 3510 } 3511 3512 func (m *QueryNFTBurntResponse) Marshal() (dAtA []byte, err error) { 3513 size := m.Size() 3514 dAtA = make([]byte, size) 3515 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3516 if err != nil { 3517 return nil, err 3518 } 3519 return dAtA[:n], nil 3520 } 3521 3522 func (m *QueryNFTBurntResponse) MarshalTo(dAtA []byte) (int, error) { 3523 size := m.Size() 3524 return m.MarshalToSizedBuffer(dAtA[:size]) 3525 } 3526 3527 func (m *QueryNFTBurntResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3528 i := len(dAtA) 3529 _ = i 3530 var l int 3531 _ = l 3532 { 3533 size := m.Burnt.Size() 3534 i -= size 3535 if _, err := m.Burnt.MarshalTo(dAtA[i:]); err != nil { 3536 return 0, err 3537 } 3538 i = encodeVarintQuery(dAtA, i, uint64(size)) 3539 } 3540 i-- 3541 dAtA[i] = 0xa 3542 return len(dAtA) - i, nil 3543 } 3544 3545 func (m *QueryContractRequest) Marshal() (dAtA []byte, err error) { 3546 size := m.Size() 3547 dAtA = make([]byte, size) 3548 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3549 if err != nil { 3550 return nil, err 3551 } 3552 return dAtA[:n], nil 3553 } 3554 3555 func (m *QueryContractRequest) MarshalTo(dAtA []byte) (int, error) { 3556 size := m.Size() 3557 return m.MarshalToSizedBuffer(dAtA[:size]) 3558 } 3559 3560 func (m *QueryContractRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3561 i := len(dAtA) 3562 _ = i 3563 var l int 3564 _ = l 3565 if len(m.ContractId) > 0 { 3566 i -= len(m.ContractId) 3567 copy(dAtA[i:], m.ContractId) 3568 i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) 3569 i-- 3570 dAtA[i] = 0xa 3571 } 3572 return len(dAtA) - i, nil 3573 } 3574 3575 func (m *QueryContractResponse) Marshal() (dAtA []byte, err error) { 3576 size := m.Size() 3577 dAtA = make([]byte, size) 3578 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3579 if err != nil { 3580 return nil, err 3581 } 3582 return dAtA[:n], nil 3583 } 3584 3585 func (m *QueryContractResponse) MarshalTo(dAtA []byte) (int, error) { 3586 size := m.Size() 3587 return m.MarshalToSizedBuffer(dAtA[:size]) 3588 } 3589 3590 func (m *QueryContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3591 i := len(dAtA) 3592 _ = i 3593 var l int 3594 _ = l 3595 { 3596 size, err := m.Contract.MarshalToSizedBuffer(dAtA[:i]) 3597 if err != nil { 3598 return 0, err 3599 } 3600 i -= size 3601 i = encodeVarintQuery(dAtA, i, uint64(size)) 3602 } 3603 i-- 3604 dAtA[i] = 0xa 3605 return len(dAtA) - i, nil 3606 } 3607 3608 func (m *QueryTokenClassTypeNameRequest) Marshal() (dAtA []byte, err error) { 3609 size := m.Size() 3610 dAtA = make([]byte, size) 3611 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3612 if err != nil { 3613 return nil, err 3614 } 3615 return dAtA[:n], nil 3616 } 3617 3618 func (m *QueryTokenClassTypeNameRequest) MarshalTo(dAtA []byte) (int, error) { 3619 size := m.Size() 3620 return m.MarshalToSizedBuffer(dAtA[:size]) 3621 } 3622 3623 func (m *QueryTokenClassTypeNameRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3624 i := len(dAtA) 3625 _ = i 3626 var l int 3627 _ = l 3628 if len(m.ClassId) > 0 { 3629 i -= len(m.ClassId) 3630 copy(dAtA[i:], m.ClassId) 3631 i = encodeVarintQuery(dAtA, i, uint64(len(m.ClassId))) 3632 i-- 3633 dAtA[i] = 0x12 3634 } 3635 if len(m.ContractId) > 0 { 3636 i -= len(m.ContractId) 3637 copy(dAtA[i:], m.ContractId) 3638 i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) 3639 i-- 3640 dAtA[i] = 0xa 3641 } 3642 return len(dAtA) - i, nil 3643 } 3644 3645 func (m *QueryTokenClassTypeNameResponse) Marshal() (dAtA []byte, err error) { 3646 size := m.Size() 3647 dAtA = make([]byte, size) 3648 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3649 if err != nil { 3650 return nil, err 3651 } 3652 return dAtA[:n], nil 3653 } 3654 3655 func (m *QueryTokenClassTypeNameResponse) MarshalTo(dAtA []byte) (int, error) { 3656 size := m.Size() 3657 return m.MarshalToSizedBuffer(dAtA[:size]) 3658 } 3659 3660 func (m *QueryTokenClassTypeNameResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3661 i := len(dAtA) 3662 _ = i 3663 var l int 3664 _ = l 3665 if len(m.Name) > 0 { 3666 i -= len(m.Name) 3667 copy(dAtA[i:], m.Name) 3668 i = encodeVarintQuery(dAtA, i, uint64(len(m.Name))) 3669 i-- 3670 dAtA[i] = 0xa 3671 } 3672 return len(dAtA) - i, nil 3673 } 3674 3675 func (m *QueryTokenTypeRequest) Marshal() (dAtA []byte, err error) { 3676 size := m.Size() 3677 dAtA = make([]byte, size) 3678 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3679 if err != nil { 3680 return nil, err 3681 } 3682 return dAtA[:n], nil 3683 } 3684 3685 func (m *QueryTokenTypeRequest) MarshalTo(dAtA []byte) (int, error) { 3686 size := m.Size() 3687 return m.MarshalToSizedBuffer(dAtA[:size]) 3688 } 3689 3690 func (m *QueryTokenTypeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3691 i := len(dAtA) 3692 _ = i 3693 var l int 3694 _ = l 3695 if len(m.TokenType) > 0 { 3696 i -= len(m.TokenType) 3697 copy(dAtA[i:], m.TokenType) 3698 i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenType))) 3699 i-- 3700 dAtA[i] = 0x12 3701 } 3702 if len(m.ContractId) > 0 { 3703 i -= len(m.ContractId) 3704 copy(dAtA[i:], m.ContractId) 3705 i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) 3706 i-- 3707 dAtA[i] = 0xa 3708 } 3709 return len(dAtA) - i, nil 3710 } 3711 3712 func (m *QueryTokenTypeResponse) Marshal() (dAtA []byte, err error) { 3713 size := m.Size() 3714 dAtA = make([]byte, size) 3715 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3716 if err != nil { 3717 return nil, err 3718 } 3719 return dAtA[:n], nil 3720 } 3721 3722 func (m *QueryTokenTypeResponse) MarshalTo(dAtA []byte) (int, error) { 3723 size := m.Size() 3724 return m.MarshalToSizedBuffer(dAtA[:size]) 3725 } 3726 3727 func (m *QueryTokenTypeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3728 i := len(dAtA) 3729 _ = i 3730 var l int 3731 _ = l 3732 { 3733 size, err := m.TokenType.MarshalToSizedBuffer(dAtA[:i]) 3734 if err != nil { 3735 return 0, err 3736 } 3737 i -= size 3738 i = encodeVarintQuery(dAtA, i, uint64(size)) 3739 } 3740 i-- 3741 dAtA[i] = 0xa 3742 return len(dAtA) - i, nil 3743 } 3744 3745 func (m *QueryTokenRequest) Marshal() (dAtA []byte, err error) { 3746 size := m.Size() 3747 dAtA = make([]byte, size) 3748 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3749 if err != nil { 3750 return nil, err 3751 } 3752 return dAtA[:n], nil 3753 } 3754 3755 func (m *QueryTokenRequest) MarshalTo(dAtA []byte) (int, error) { 3756 size := m.Size() 3757 return m.MarshalToSizedBuffer(dAtA[:size]) 3758 } 3759 3760 func (m *QueryTokenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3761 i := len(dAtA) 3762 _ = i 3763 var l int 3764 _ = l 3765 if len(m.TokenId) > 0 { 3766 i -= len(m.TokenId) 3767 copy(dAtA[i:], m.TokenId) 3768 i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenId))) 3769 i-- 3770 dAtA[i] = 0x12 3771 } 3772 if len(m.ContractId) > 0 { 3773 i -= len(m.ContractId) 3774 copy(dAtA[i:], m.ContractId) 3775 i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) 3776 i-- 3777 dAtA[i] = 0xa 3778 } 3779 return len(dAtA) - i, nil 3780 } 3781 3782 func (m *QueryTokenResponse) Marshal() (dAtA []byte, err error) { 3783 size := m.Size() 3784 dAtA = make([]byte, size) 3785 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3786 if err != nil { 3787 return nil, err 3788 } 3789 return dAtA[:n], nil 3790 } 3791 3792 func (m *QueryTokenResponse) MarshalTo(dAtA []byte) (int, error) { 3793 size := m.Size() 3794 return m.MarshalToSizedBuffer(dAtA[:size]) 3795 } 3796 3797 func (m *QueryTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3798 i := len(dAtA) 3799 _ = i 3800 var l int 3801 _ = l 3802 { 3803 size, err := m.Token.MarshalToSizedBuffer(dAtA[:i]) 3804 if err != nil { 3805 return 0, err 3806 } 3807 i -= size 3808 i = encodeVarintQuery(dAtA, i, uint64(size)) 3809 } 3810 i-- 3811 dAtA[i] = 0xa 3812 return len(dAtA) - i, nil 3813 } 3814 3815 func (m *QueryRootRequest) Marshal() (dAtA []byte, err error) { 3816 size := m.Size() 3817 dAtA = make([]byte, size) 3818 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3819 if err != nil { 3820 return nil, err 3821 } 3822 return dAtA[:n], nil 3823 } 3824 3825 func (m *QueryRootRequest) MarshalTo(dAtA []byte) (int, error) { 3826 size := m.Size() 3827 return m.MarshalToSizedBuffer(dAtA[:size]) 3828 } 3829 3830 func (m *QueryRootRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3831 i := len(dAtA) 3832 _ = i 3833 var l int 3834 _ = l 3835 if len(m.TokenId) > 0 { 3836 i -= len(m.TokenId) 3837 copy(dAtA[i:], m.TokenId) 3838 i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenId))) 3839 i-- 3840 dAtA[i] = 0x12 3841 } 3842 if len(m.ContractId) > 0 { 3843 i -= len(m.ContractId) 3844 copy(dAtA[i:], m.ContractId) 3845 i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) 3846 i-- 3847 dAtA[i] = 0xa 3848 } 3849 return len(dAtA) - i, nil 3850 } 3851 3852 func (m *QueryRootResponse) Marshal() (dAtA []byte, err error) { 3853 size := m.Size() 3854 dAtA = make([]byte, size) 3855 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3856 if err != nil { 3857 return nil, err 3858 } 3859 return dAtA[:n], nil 3860 } 3861 3862 func (m *QueryRootResponse) MarshalTo(dAtA []byte) (int, error) { 3863 size := m.Size() 3864 return m.MarshalToSizedBuffer(dAtA[:size]) 3865 } 3866 3867 func (m *QueryRootResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3868 i := len(dAtA) 3869 _ = i 3870 var l int 3871 _ = l 3872 { 3873 size, err := m.Root.MarshalToSizedBuffer(dAtA[:i]) 3874 if err != nil { 3875 return 0, err 3876 } 3877 i -= size 3878 i = encodeVarintQuery(dAtA, i, uint64(size)) 3879 } 3880 i-- 3881 dAtA[i] = 0xa 3882 return len(dAtA) - i, nil 3883 } 3884 3885 func (m *QueryHasParentRequest) Marshal() (dAtA []byte, err error) { 3886 size := m.Size() 3887 dAtA = make([]byte, size) 3888 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3889 if err != nil { 3890 return nil, err 3891 } 3892 return dAtA[:n], nil 3893 } 3894 3895 func (m *QueryHasParentRequest) MarshalTo(dAtA []byte) (int, error) { 3896 size := m.Size() 3897 return m.MarshalToSizedBuffer(dAtA[:size]) 3898 } 3899 3900 func (m *QueryHasParentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3901 i := len(dAtA) 3902 _ = i 3903 var l int 3904 _ = l 3905 if len(m.TokenId) > 0 { 3906 i -= len(m.TokenId) 3907 copy(dAtA[i:], m.TokenId) 3908 i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenId))) 3909 i-- 3910 dAtA[i] = 0x12 3911 } 3912 if len(m.ContractId) > 0 { 3913 i -= len(m.ContractId) 3914 copy(dAtA[i:], m.ContractId) 3915 i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) 3916 i-- 3917 dAtA[i] = 0xa 3918 } 3919 return len(dAtA) - i, nil 3920 } 3921 3922 func (m *QueryHasParentResponse) Marshal() (dAtA []byte, err error) { 3923 size := m.Size() 3924 dAtA = make([]byte, size) 3925 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3926 if err != nil { 3927 return nil, err 3928 } 3929 return dAtA[:n], nil 3930 } 3931 3932 func (m *QueryHasParentResponse) MarshalTo(dAtA []byte) (int, error) { 3933 size := m.Size() 3934 return m.MarshalToSizedBuffer(dAtA[:size]) 3935 } 3936 3937 func (m *QueryHasParentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3938 i := len(dAtA) 3939 _ = i 3940 var l int 3941 _ = l 3942 if m.HasParent { 3943 i-- 3944 if m.HasParent { 3945 dAtA[i] = 1 3946 } else { 3947 dAtA[i] = 0 3948 } 3949 i-- 3950 dAtA[i] = 0x8 3951 } 3952 return len(dAtA) - i, nil 3953 } 3954 3955 func (m *QueryParentRequest) Marshal() (dAtA []byte, err error) { 3956 size := m.Size() 3957 dAtA = make([]byte, size) 3958 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3959 if err != nil { 3960 return nil, err 3961 } 3962 return dAtA[:n], nil 3963 } 3964 3965 func (m *QueryParentRequest) MarshalTo(dAtA []byte) (int, error) { 3966 size := m.Size() 3967 return m.MarshalToSizedBuffer(dAtA[:size]) 3968 } 3969 3970 func (m *QueryParentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3971 i := len(dAtA) 3972 _ = i 3973 var l int 3974 _ = l 3975 if len(m.TokenId) > 0 { 3976 i -= len(m.TokenId) 3977 copy(dAtA[i:], m.TokenId) 3978 i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenId))) 3979 i-- 3980 dAtA[i] = 0x12 3981 } 3982 if len(m.ContractId) > 0 { 3983 i -= len(m.ContractId) 3984 copy(dAtA[i:], m.ContractId) 3985 i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) 3986 i-- 3987 dAtA[i] = 0xa 3988 } 3989 return len(dAtA) - i, nil 3990 } 3991 3992 func (m *QueryParentResponse) Marshal() (dAtA []byte, err error) { 3993 size := m.Size() 3994 dAtA = make([]byte, size) 3995 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3996 if err != nil { 3997 return nil, err 3998 } 3999 return dAtA[:n], nil 4000 } 4001 4002 func (m *QueryParentResponse) MarshalTo(dAtA []byte) (int, error) { 4003 size := m.Size() 4004 return m.MarshalToSizedBuffer(dAtA[:size]) 4005 } 4006 4007 func (m *QueryParentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4008 i := len(dAtA) 4009 _ = i 4010 var l int 4011 _ = l 4012 { 4013 size, err := m.Parent.MarshalToSizedBuffer(dAtA[:i]) 4014 if err != nil { 4015 return 0, err 4016 } 4017 i -= size 4018 i = encodeVarintQuery(dAtA, i, uint64(size)) 4019 } 4020 i-- 4021 dAtA[i] = 0xa 4022 return len(dAtA) - i, nil 4023 } 4024 4025 func (m *QueryChildrenRequest) Marshal() (dAtA []byte, err error) { 4026 size := m.Size() 4027 dAtA = make([]byte, size) 4028 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4029 if err != nil { 4030 return nil, err 4031 } 4032 return dAtA[:n], nil 4033 } 4034 4035 func (m *QueryChildrenRequest) MarshalTo(dAtA []byte) (int, error) { 4036 size := m.Size() 4037 return m.MarshalToSizedBuffer(dAtA[:size]) 4038 } 4039 4040 func (m *QueryChildrenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4041 i := len(dAtA) 4042 _ = i 4043 var l int 4044 _ = l 4045 if m.Pagination != nil { 4046 { 4047 size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) 4048 if err != nil { 4049 return 0, err 4050 } 4051 i -= size 4052 i = encodeVarintQuery(dAtA, i, uint64(size)) 4053 } 4054 i-- 4055 dAtA[i] = 0x1a 4056 } 4057 if len(m.TokenId) > 0 { 4058 i -= len(m.TokenId) 4059 copy(dAtA[i:], m.TokenId) 4060 i = encodeVarintQuery(dAtA, i, uint64(len(m.TokenId))) 4061 i-- 4062 dAtA[i] = 0x12 4063 } 4064 if len(m.ContractId) > 0 { 4065 i -= len(m.ContractId) 4066 copy(dAtA[i:], m.ContractId) 4067 i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) 4068 i-- 4069 dAtA[i] = 0xa 4070 } 4071 return len(dAtA) - i, nil 4072 } 4073 4074 func (m *QueryChildrenResponse) Marshal() (dAtA []byte, err error) { 4075 size := m.Size() 4076 dAtA = make([]byte, size) 4077 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4078 if err != nil { 4079 return nil, err 4080 } 4081 return dAtA[:n], nil 4082 } 4083 4084 func (m *QueryChildrenResponse) MarshalTo(dAtA []byte) (int, error) { 4085 size := m.Size() 4086 return m.MarshalToSizedBuffer(dAtA[:size]) 4087 } 4088 4089 func (m *QueryChildrenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4090 i := len(dAtA) 4091 _ = i 4092 var l int 4093 _ = l 4094 if m.Pagination != nil { 4095 { 4096 size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) 4097 if err != nil { 4098 return 0, err 4099 } 4100 i -= size 4101 i = encodeVarintQuery(dAtA, i, uint64(size)) 4102 } 4103 i-- 4104 dAtA[i] = 0x12 4105 } 4106 if len(m.Children) > 0 { 4107 for iNdEx := len(m.Children) - 1; iNdEx >= 0; iNdEx-- { 4108 { 4109 size, err := m.Children[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 4110 if err != nil { 4111 return 0, err 4112 } 4113 i -= size 4114 i = encodeVarintQuery(dAtA, i, uint64(size)) 4115 } 4116 i-- 4117 dAtA[i] = 0xa 4118 } 4119 } 4120 return len(dAtA) - i, nil 4121 } 4122 4123 func (m *QueryGranteeGrantsRequest) Marshal() (dAtA []byte, err error) { 4124 size := m.Size() 4125 dAtA = make([]byte, size) 4126 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4127 if err != nil { 4128 return nil, err 4129 } 4130 return dAtA[:n], nil 4131 } 4132 4133 func (m *QueryGranteeGrantsRequest) MarshalTo(dAtA []byte) (int, error) { 4134 size := m.Size() 4135 return m.MarshalToSizedBuffer(dAtA[:size]) 4136 } 4137 4138 func (m *QueryGranteeGrantsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4139 i := len(dAtA) 4140 _ = i 4141 var l int 4142 _ = l 4143 if m.Pagination != nil { 4144 { 4145 size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) 4146 if err != nil { 4147 return 0, err 4148 } 4149 i -= size 4150 i = encodeVarintQuery(dAtA, i, uint64(size)) 4151 } 4152 i-- 4153 dAtA[i] = 0x1a 4154 } 4155 if len(m.Grantee) > 0 { 4156 i -= len(m.Grantee) 4157 copy(dAtA[i:], m.Grantee) 4158 i = encodeVarintQuery(dAtA, i, uint64(len(m.Grantee))) 4159 i-- 4160 dAtA[i] = 0x12 4161 } 4162 if len(m.ContractId) > 0 { 4163 i -= len(m.ContractId) 4164 copy(dAtA[i:], m.ContractId) 4165 i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) 4166 i-- 4167 dAtA[i] = 0xa 4168 } 4169 return len(dAtA) - i, nil 4170 } 4171 4172 func (m *QueryGranteeGrantsResponse) Marshal() (dAtA []byte, err error) { 4173 size := m.Size() 4174 dAtA = make([]byte, size) 4175 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4176 if err != nil { 4177 return nil, err 4178 } 4179 return dAtA[:n], nil 4180 } 4181 4182 func (m *QueryGranteeGrantsResponse) MarshalTo(dAtA []byte) (int, error) { 4183 size := m.Size() 4184 return m.MarshalToSizedBuffer(dAtA[:size]) 4185 } 4186 4187 func (m *QueryGranteeGrantsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4188 i := len(dAtA) 4189 _ = i 4190 var l int 4191 _ = l 4192 if m.Pagination != nil { 4193 { 4194 size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) 4195 if err != nil { 4196 return 0, err 4197 } 4198 i -= size 4199 i = encodeVarintQuery(dAtA, i, uint64(size)) 4200 } 4201 i-- 4202 dAtA[i] = 0x12 4203 } 4204 if len(m.Grants) > 0 { 4205 for iNdEx := len(m.Grants) - 1; iNdEx >= 0; iNdEx-- { 4206 { 4207 size, err := m.Grants[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 4208 if err != nil { 4209 return 0, err 4210 } 4211 i -= size 4212 i = encodeVarintQuery(dAtA, i, uint64(size)) 4213 } 4214 i-- 4215 dAtA[i] = 0xa 4216 } 4217 } 4218 return len(dAtA) - i, nil 4219 } 4220 4221 func (m *QueryIsOperatorForRequest) Marshal() (dAtA []byte, err error) { 4222 size := m.Size() 4223 dAtA = make([]byte, size) 4224 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4225 if err != nil { 4226 return nil, err 4227 } 4228 return dAtA[:n], nil 4229 } 4230 4231 func (m *QueryIsOperatorForRequest) MarshalTo(dAtA []byte) (int, error) { 4232 size := m.Size() 4233 return m.MarshalToSizedBuffer(dAtA[:size]) 4234 } 4235 4236 func (m *QueryIsOperatorForRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4237 i := len(dAtA) 4238 _ = i 4239 var l int 4240 _ = l 4241 if len(m.Holder) > 0 { 4242 i -= len(m.Holder) 4243 copy(dAtA[i:], m.Holder) 4244 i = encodeVarintQuery(dAtA, i, uint64(len(m.Holder))) 4245 i-- 4246 dAtA[i] = 0x1a 4247 } 4248 if len(m.Operator) > 0 { 4249 i -= len(m.Operator) 4250 copy(dAtA[i:], m.Operator) 4251 i = encodeVarintQuery(dAtA, i, uint64(len(m.Operator))) 4252 i-- 4253 dAtA[i] = 0x12 4254 } 4255 if len(m.ContractId) > 0 { 4256 i -= len(m.ContractId) 4257 copy(dAtA[i:], m.ContractId) 4258 i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) 4259 i-- 4260 dAtA[i] = 0xa 4261 } 4262 return len(dAtA) - i, nil 4263 } 4264 4265 func (m *QueryIsOperatorForResponse) Marshal() (dAtA []byte, err error) { 4266 size := m.Size() 4267 dAtA = make([]byte, size) 4268 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4269 if err != nil { 4270 return nil, err 4271 } 4272 return dAtA[:n], nil 4273 } 4274 4275 func (m *QueryIsOperatorForResponse) MarshalTo(dAtA []byte) (int, error) { 4276 size := m.Size() 4277 return m.MarshalToSizedBuffer(dAtA[:size]) 4278 } 4279 4280 func (m *QueryIsOperatorForResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4281 i := len(dAtA) 4282 _ = i 4283 var l int 4284 _ = l 4285 if m.Authorized { 4286 i-- 4287 if m.Authorized { 4288 dAtA[i] = 1 4289 } else { 4290 dAtA[i] = 0 4291 } 4292 i-- 4293 dAtA[i] = 0x8 4294 } 4295 return len(dAtA) - i, nil 4296 } 4297 4298 func (m *QueryHoldersByOperatorRequest) Marshal() (dAtA []byte, err error) { 4299 size := m.Size() 4300 dAtA = make([]byte, size) 4301 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4302 if err != nil { 4303 return nil, err 4304 } 4305 return dAtA[:n], nil 4306 } 4307 4308 func (m *QueryHoldersByOperatorRequest) MarshalTo(dAtA []byte) (int, error) { 4309 size := m.Size() 4310 return m.MarshalToSizedBuffer(dAtA[:size]) 4311 } 4312 4313 func (m *QueryHoldersByOperatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4314 i := len(dAtA) 4315 _ = i 4316 var l int 4317 _ = l 4318 if m.Pagination != nil { 4319 { 4320 size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) 4321 if err != nil { 4322 return 0, err 4323 } 4324 i -= size 4325 i = encodeVarintQuery(dAtA, i, uint64(size)) 4326 } 4327 i-- 4328 dAtA[i] = 0x1a 4329 } 4330 if len(m.Operator) > 0 { 4331 i -= len(m.Operator) 4332 copy(dAtA[i:], m.Operator) 4333 i = encodeVarintQuery(dAtA, i, uint64(len(m.Operator))) 4334 i-- 4335 dAtA[i] = 0x12 4336 } 4337 if len(m.ContractId) > 0 { 4338 i -= len(m.ContractId) 4339 copy(dAtA[i:], m.ContractId) 4340 i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractId))) 4341 i-- 4342 dAtA[i] = 0xa 4343 } 4344 return len(dAtA) - i, nil 4345 } 4346 4347 func (m *QueryHoldersByOperatorResponse) Marshal() (dAtA []byte, err error) { 4348 size := m.Size() 4349 dAtA = make([]byte, size) 4350 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4351 if err != nil { 4352 return nil, err 4353 } 4354 return dAtA[:n], nil 4355 } 4356 4357 func (m *QueryHoldersByOperatorResponse) MarshalTo(dAtA []byte) (int, error) { 4358 size := m.Size() 4359 return m.MarshalToSizedBuffer(dAtA[:size]) 4360 } 4361 4362 func (m *QueryHoldersByOperatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4363 i := len(dAtA) 4364 _ = i 4365 var l int 4366 _ = l 4367 if m.Pagination != nil { 4368 { 4369 size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) 4370 if err != nil { 4371 return 0, err 4372 } 4373 i -= size 4374 i = encodeVarintQuery(dAtA, i, uint64(size)) 4375 } 4376 i-- 4377 dAtA[i] = 0x12 4378 } 4379 if len(m.Holders) > 0 { 4380 for iNdEx := len(m.Holders) - 1; iNdEx >= 0; iNdEx-- { 4381 i -= len(m.Holders[iNdEx]) 4382 copy(dAtA[i:], m.Holders[iNdEx]) 4383 i = encodeVarintQuery(dAtA, i, uint64(len(m.Holders[iNdEx]))) 4384 i-- 4385 dAtA[i] = 0xa 4386 } 4387 } 4388 return len(dAtA) - i, nil 4389 } 4390 4391 func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { 4392 offset -= sovQuery(v) 4393 base := offset 4394 for v >= 1<<7 { 4395 dAtA[offset] = uint8(v&0x7f | 0x80) 4396 v >>= 7 4397 offset++ 4398 } 4399 dAtA[offset] = uint8(v) 4400 return base 4401 } 4402 func (m *QueryBalanceRequest) Size() (n int) { 4403 if m == nil { 4404 return 0 4405 } 4406 var l int 4407 _ = l 4408 l = len(m.ContractId) 4409 if l > 0 { 4410 n += 1 + l + sovQuery(uint64(l)) 4411 } 4412 l = len(m.Address) 4413 if l > 0 { 4414 n += 1 + l + sovQuery(uint64(l)) 4415 } 4416 l = len(m.TokenId) 4417 if l > 0 { 4418 n += 1 + l + sovQuery(uint64(l)) 4419 } 4420 return n 4421 } 4422 4423 func (m *QueryBalanceResponse) Size() (n int) { 4424 if m == nil { 4425 return 0 4426 } 4427 var l int 4428 _ = l 4429 l = m.Balance.Size() 4430 n += 1 + l + sovQuery(uint64(l)) 4431 return n 4432 } 4433 4434 func (m *QueryAllBalancesRequest) Size() (n int) { 4435 if m == nil { 4436 return 0 4437 } 4438 var l int 4439 _ = l 4440 l = len(m.ContractId) 4441 if l > 0 { 4442 n += 1 + l + sovQuery(uint64(l)) 4443 } 4444 l = len(m.Address) 4445 if l > 0 { 4446 n += 1 + l + sovQuery(uint64(l)) 4447 } 4448 if m.Pagination != nil { 4449 l = m.Pagination.Size() 4450 n += 1 + l + sovQuery(uint64(l)) 4451 } 4452 return n 4453 } 4454 4455 func (m *QueryAllBalancesResponse) Size() (n int) { 4456 if m == nil { 4457 return 0 4458 } 4459 var l int 4460 _ = l 4461 if len(m.Balances) > 0 { 4462 for _, e := range m.Balances { 4463 l = e.Size() 4464 n += 1 + l + sovQuery(uint64(l)) 4465 } 4466 } 4467 if m.Pagination != nil { 4468 l = m.Pagination.Size() 4469 n += 1 + l + sovQuery(uint64(l)) 4470 } 4471 return n 4472 } 4473 4474 func (m *QueryFTSupplyRequest) Size() (n int) { 4475 if m == nil { 4476 return 0 4477 } 4478 var l int 4479 _ = l 4480 l = len(m.ContractId) 4481 if l > 0 { 4482 n += 1 + l + sovQuery(uint64(l)) 4483 } 4484 l = len(m.TokenId) 4485 if l > 0 { 4486 n += 1 + l + sovQuery(uint64(l)) 4487 } 4488 return n 4489 } 4490 4491 func (m *QueryFTSupplyResponse) Size() (n int) { 4492 if m == nil { 4493 return 0 4494 } 4495 var l int 4496 _ = l 4497 l = m.Supply.Size() 4498 n += 1 + l + sovQuery(uint64(l)) 4499 return n 4500 } 4501 4502 func (m *QueryFTMintedRequest) Size() (n int) { 4503 if m == nil { 4504 return 0 4505 } 4506 var l int 4507 _ = l 4508 l = len(m.ContractId) 4509 if l > 0 { 4510 n += 1 + l + sovQuery(uint64(l)) 4511 } 4512 l = len(m.TokenId) 4513 if l > 0 { 4514 n += 1 + l + sovQuery(uint64(l)) 4515 } 4516 return n 4517 } 4518 4519 func (m *QueryFTMintedResponse) Size() (n int) { 4520 if m == nil { 4521 return 0 4522 } 4523 var l int 4524 _ = l 4525 l = m.Minted.Size() 4526 n += 1 + l + sovQuery(uint64(l)) 4527 return n 4528 } 4529 4530 func (m *QueryFTBurntRequest) Size() (n int) { 4531 if m == nil { 4532 return 0 4533 } 4534 var l int 4535 _ = l 4536 l = len(m.ContractId) 4537 if l > 0 { 4538 n += 1 + l + sovQuery(uint64(l)) 4539 } 4540 l = len(m.TokenId) 4541 if l > 0 { 4542 n += 1 + l + sovQuery(uint64(l)) 4543 } 4544 return n 4545 } 4546 4547 func (m *QueryFTBurntResponse) Size() (n int) { 4548 if m == nil { 4549 return 0 4550 } 4551 var l int 4552 _ = l 4553 l = m.Burnt.Size() 4554 n += 1 + l + sovQuery(uint64(l)) 4555 return n 4556 } 4557 4558 func (m *QueryNFTSupplyRequest) Size() (n int) { 4559 if m == nil { 4560 return 0 4561 } 4562 var l int 4563 _ = l 4564 l = len(m.ContractId) 4565 if l > 0 { 4566 n += 1 + l + sovQuery(uint64(l)) 4567 } 4568 l = len(m.TokenType) 4569 if l > 0 { 4570 n += 1 + l + sovQuery(uint64(l)) 4571 } 4572 return n 4573 } 4574 4575 func (m *QueryNFTSupplyResponse) Size() (n int) { 4576 if m == nil { 4577 return 0 4578 } 4579 var l int 4580 _ = l 4581 l = m.Supply.Size() 4582 n += 1 + l + sovQuery(uint64(l)) 4583 return n 4584 } 4585 4586 func (m *QueryNFTMintedRequest) Size() (n int) { 4587 if m == nil { 4588 return 0 4589 } 4590 var l int 4591 _ = l 4592 l = len(m.ContractId) 4593 if l > 0 { 4594 n += 1 + l + sovQuery(uint64(l)) 4595 } 4596 l = len(m.TokenType) 4597 if l > 0 { 4598 n += 1 + l + sovQuery(uint64(l)) 4599 } 4600 return n 4601 } 4602 4603 func (m *QueryNFTMintedResponse) Size() (n int) { 4604 if m == nil { 4605 return 0 4606 } 4607 var l int 4608 _ = l 4609 l = m.Minted.Size() 4610 n += 1 + l + sovQuery(uint64(l)) 4611 return n 4612 } 4613 4614 func (m *QueryNFTBurntRequest) Size() (n int) { 4615 if m == nil { 4616 return 0 4617 } 4618 var l int 4619 _ = l 4620 l = len(m.ContractId) 4621 if l > 0 { 4622 n += 1 + l + sovQuery(uint64(l)) 4623 } 4624 l = len(m.TokenType) 4625 if l > 0 { 4626 n += 1 + l + sovQuery(uint64(l)) 4627 } 4628 return n 4629 } 4630 4631 func (m *QueryNFTBurntResponse) Size() (n int) { 4632 if m == nil { 4633 return 0 4634 } 4635 var l int 4636 _ = l 4637 l = m.Burnt.Size() 4638 n += 1 + l + sovQuery(uint64(l)) 4639 return n 4640 } 4641 4642 func (m *QueryContractRequest) Size() (n int) { 4643 if m == nil { 4644 return 0 4645 } 4646 var l int 4647 _ = l 4648 l = len(m.ContractId) 4649 if l > 0 { 4650 n += 1 + l + sovQuery(uint64(l)) 4651 } 4652 return n 4653 } 4654 4655 func (m *QueryContractResponse) Size() (n int) { 4656 if m == nil { 4657 return 0 4658 } 4659 var l int 4660 _ = l 4661 l = m.Contract.Size() 4662 n += 1 + l + sovQuery(uint64(l)) 4663 return n 4664 } 4665 4666 func (m *QueryTokenClassTypeNameRequest) Size() (n int) { 4667 if m == nil { 4668 return 0 4669 } 4670 var l int 4671 _ = l 4672 l = len(m.ContractId) 4673 if l > 0 { 4674 n += 1 + l + sovQuery(uint64(l)) 4675 } 4676 l = len(m.ClassId) 4677 if l > 0 { 4678 n += 1 + l + sovQuery(uint64(l)) 4679 } 4680 return n 4681 } 4682 4683 func (m *QueryTokenClassTypeNameResponse) Size() (n int) { 4684 if m == nil { 4685 return 0 4686 } 4687 var l int 4688 _ = l 4689 l = len(m.Name) 4690 if l > 0 { 4691 n += 1 + l + sovQuery(uint64(l)) 4692 } 4693 return n 4694 } 4695 4696 func (m *QueryTokenTypeRequest) Size() (n int) { 4697 if m == nil { 4698 return 0 4699 } 4700 var l int 4701 _ = l 4702 l = len(m.ContractId) 4703 if l > 0 { 4704 n += 1 + l + sovQuery(uint64(l)) 4705 } 4706 l = len(m.TokenType) 4707 if l > 0 { 4708 n += 1 + l + sovQuery(uint64(l)) 4709 } 4710 return n 4711 } 4712 4713 func (m *QueryTokenTypeResponse) Size() (n int) { 4714 if m == nil { 4715 return 0 4716 } 4717 var l int 4718 _ = l 4719 l = m.TokenType.Size() 4720 n += 1 + l + sovQuery(uint64(l)) 4721 return n 4722 } 4723 4724 func (m *QueryTokenRequest) Size() (n int) { 4725 if m == nil { 4726 return 0 4727 } 4728 var l int 4729 _ = l 4730 l = len(m.ContractId) 4731 if l > 0 { 4732 n += 1 + l + sovQuery(uint64(l)) 4733 } 4734 l = len(m.TokenId) 4735 if l > 0 { 4736 n += 1 + l + sovQuery(uint64(l)) 4737 } 4738 return n 4739 } 4740 4741 func (m *QueryTokenResponse) Size() (n int) { 4742 if m == nil { 4743 return 0 4744 } 4745 var l int 4746 _ = l 4747 l = m.Token.Size() 4748 n += 1 + l + sovQuery(uint64(l)) 4749 return n 4750 } 4751 4752 func (m *QueryRootRequest) Size() (n int) { 4753 if m == nil { 4754 return 0 4755 } 4756 var l int 4757 _ = l 4758 l = len(m.ContractId) 4759 if l > 0 { 4760 n += 1 + l + sovQuery(uint64(l)) 4761 } 4762 l = len(m.TokenId) 4763 if l > 0 { 4764 n += 1 + l + sovQuery(uint64(l)) 4765 } 4766 return n 4767 } 4768 4769 func (m *QueryRootResponse) Size() (n int) { 4770 if m == nil { 4771 return 0 4772 } 4773 var l int 4774 _ = l 4775 l = m.Root.Size() 4776 n += 1 + l + sovQuery(uint64(l)) 4777 return n 4778 } 4779 4780 func (m *QueryHasParentRequest) Size() (n int) { 4781 if m == nil { 4782 return 0 4783 } 4784 var l int 4785 _ = l 4786 l = len(m.ContractId) 4787 if l > 0 { 4788 n += 1 + l + sovQuery(uint64(l)) 4789 } 4790 l = len(m.TokenId) 4791 if l > 0 { 4792 n += 1 + l + sovQuery(uint64(l)) 4793 } 4794 return n 4795 } 4796 4797 func (m *QueryHasParentResponse) Size() (n int) { 4798 if m == nil { 4799 return 0 4800 } 4801 var l int 4802 _ = l 4803 if m.HasParent { 4804 n += 2 4805 } 4806 return n 4807 } 4808 4809 func (m *QueryParentRequest) Size() (n int) { 4810 if m == nil { 4811 return 0 4812 } 4813 var l int 4814 _ = l 4815 l = len(m.ContractId) 4816 if l > 0 { 4817 n += 1 + l + sovQuery(uint64(l)) 4818 } 4819 l = len(m.TokenId) 4820 if l > 0 { 4821 n += 1 + l + sovQuery(uint64(l)) 4822 } 4823 return n 4824 } 4825 4826 func (m *QueryParentResponse) Size() (n int) { 4827 if m == nil { 4828 return 0 4829 } 4830 var l int 4831 _ = l 4832 l = m.Parent.Size() 4833 n += 1 + l + sovQuery(uint64(l)) 4834 return n 4835 } 4836 4837 func (m *QueryChildrenRequest) Size() (n int) { 4838 if m == nil { 4839 return 0 4840 } 4841 var l int 4842 _ = l 4843 l = len(m.ContractId) 4844 if l > 0 { 4845 n += 1 + l + sovQuery(uint64(l)) 4846 } 4847 l = len(m.TokenId) 4848 if l > 0 { 4849 n += 1 + l + sovQuery(uint64(l)) 4850 } 4851 if m.Pagination != nil { 4852 l = m.Pagination.Size() 4853 n += 1 + l + sovQuery(uint64(l)) 4854 } 4855 return n 4856 } 4857 4858 func (m *QueryChildrenResponse) Size() (n int) { 4859 if m == nil { 4860 return 0 4861 } 4862 var l int 4863 _ = l 4864 if len(m.Children) > 0 { 4865 for _, e := range m.Children { 4866 l = e.Size() 4867 n += 1 + l + sovQuery(uint64(l)) 4868 } 4869 } 4870 if m.Pagination != nil { 4871 l = m.Pagination.Size() 4872 n += 1 + l + sovQuery(uint64(l)) 4873 } 4874 return n 4875 } 4876 4877 func (m *QueryGranteeGrantsRequest) Size() (n int) { 4878 if m == nil { 4879 return 0 4880 } 4881 var l int 4882 _ = l 4883 l = len(m.ContractId) 4884 if l > 0 { 4885 n += 1 + l + sovQuery(uint64(l)) 4886 } 4887 l = len(m.Grantee) 4888 if l > 0 { 4889 n += 1 + l + sovQuery(uint64(l)) 4890 } 4891 if m.Pagination != nil { 4892 l = m.Pagination.Size() 4893 n += 1 + l + sovQuery(uint64(l)) 4894 } 4895 return n 4896 } 4897 4898 func (m *QueryGranteeGrantsResponse) Size() (n int) { 4899 if m == nil { 4900 return 0 4901 } 4902 var l int 4903 _ = l 4904 if len(m.Grants) > 0 { 4905 for _, e := range m.Grants { 4906 l = e.Size() 4907 n += 1 + l + sovQuery(uint64(l)) 4908 } 4909 } 4910 if m.Pagination != nil { 4911 l = m.Pagination.Size() 4912 n += 1 + l + sovQuery(uint64(l)) 4913 } 4914 return n 4915 } 4916 4917 func (m *QueryIsOperatorForRequest) Size() (n int) { 4918 if m == nil { 4919 return 0 4920 } 4921 var l int 4922 _ = l 4923 l = len(m.ContractId) 4924 if l > 0 { 4925 n += 1 + l + sovQuery(uint64(l)) 4926 } 4927 l = len(m.Operator) 4928 if l > 0 { 4929 n += 1 + l + sovQuery(uint64(l)) 4930 } 4931 l = len(m.Holder) 4932 if l > 0 { 4933 n += 1 + l + sovQuery(uint64(l)) 4934 } 4935 return n 4936 } 4937 4938 func (m *QueryIsOperatorForResponse) Size() (n int) { 4939 if m == nil { 4940 return 0 4941 } 4942 var l int 4943 _ = l 4944 if m.Authorized { 4945 n += 2 4946 } 4947 return n 4948 } 4949 4950 func (m *QueryHoldersByOperatorRequest) Size() (n int) { 4951 if m == nil { 4952 return 0 4953 } 4954 var l int 4955 _ = l 4956 l = len(m.ContractId) 4957 if l > 0 { 4958 n += 1 + l + sovQuery(uint64(l)) 4959 } 4960 l = len(m.Operator) 4961 if l > 0 { 4962 n += 1 + l + sovQuery(uint64(l)) 4963 } 4964 if m.Pagination != nil { 4965 l = m.Pagination.Size() 4966 n += 1 + l + sovQuery(uint64(l)) 4967 } 4968 return n 4969 } 4970 4971 func (m *QueryHoldersByOperatorResponse) Size() (n int) { 4972 if m == nil { 4973 return 0 4974 } 4975 var l int 4976 _ = l 4977 if len(m.Holders) > 0 { 4978 for _, s := range m.Holders { 4979 l = len(s) 4980 n += 1 + l + sovQuery(uint64(l)) 4981 } 4982 } 4983 if m.Pagination != nil { 4984 l = m.Pagination.Size() 4985 n += 1 + l + sovQuery(uint64(l)) 4986 } 4987 return n 4988 } 4989 4990 func sovQuery(x uint64) (n int) { 4991 return (math_bits.Len64(x|1) + 6) / 7 4992 } 4993 func sozQuery(x uint64) (n int) { 4994 return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 4995 } 4996 func (m *QueryBalanceRequest) Unmarshal(dAtA []byte) error { 4997 l := len(dAtA) 4998 iNdEx := 0 4999 for iNdEx < l { 5000 preIndex := iNdEx 5001 var wire uint64 5002 for shift := uint(0); ; shift += 7 { 5003 if shift >= 64 { 5004 return ErrIntOverflowQuery 5005 } 5006 if iNdEx >= l { 5007 return io.ErrUnexpectedEOF 5008 } 5009 b := dAtA[iNdEx] 5010 iNdEx++ 5011 wire |= uint64(b&0x7F) << shift 5012 if b < 0x80 { 5013 break 5014 } 5015 } 5016 fieldNum := int32(wire >> 3) 5017 wireType := int(wire & 0x7) 5018 if wireType == 4 { 5019 return fmt.Errorf("proto: QueryBalanceRequest: wiretype end group for non-group") 5020 } 5021 if fieldNum <= 0 { 5022 return fmt.Errorf("proto: QueryBalanceRequest: illegal tag %d (wire type %d)", fieldNum, wire) 5023 } 5024 switch fieldNum { 5025 case 1: 5026 if wireType != 2 { 5027 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 5028 } 5029 var stringLen uint64 5030 for shift := uint(0); ; shift += 7 { 5031 if shift >= 64 { 5032 return ErrIntOverflowQuery 5033 } 5034 if iNdEx >= l { 5035 return io.ErrUnexpectedEOF 5036 } 5037 b := dAtA[iNdEx] 5038 iNdEx++ 5039 stringLen |= uint64(b&0x7F) << shift 5040 if b < 0x80 { 5041 break 5042 } 5043 } 5044 intStringLen := int(stringLen) 5045 if intStringLen < 0 { 5046 return ErrInvalidLengthQuery 5047 } 5048 postIndex := iNdEx + intStringLen 5049 if postIndex < 0 { 5050 return ErrInvalidLengthQuery 5051 } 5052 if postIndex > l { 5053 return io.ErrUnexpectedEOF 5054 } 5055 m.ContractId = string(dAtA[iNdEx:postIndex]) 5056 iNdEx = postIndex 5057 case 2: 5058 if wireType != 2 { 5059 return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) 5060 } 5061 var stringLen uint64 5062 for shift := uint(0); ; shift += 7 { 5063 if shift >= 64 { 5064 return ErrIntOverflowQuery 5065 } 5066 if iNdEx >= l { 5067 return io.ErrUnexpectedEOF 5068 } 5069 b := dAtA[iNdEx] 5070 iNdEx++ 5071 stringLen |= uint64(b&0x7F) << shift 5072 if b < 0x80 { 5073 break 5074 } 5075 } 5076 intStringLen := int(stringLen) 5077 if intStringLen < 0 { 5078 return ErrInvalidLengthQuery 5079 } 5080 postIndex := iNdEx + intStringLen 5081 if postIndex < 0 { 5082 return ErrInvalidLengthQuery 5083 } 5084 if postIndex > l { 5085 return io.ErrUnexpectedEOF 5086 } 5087 m.Address = string(dAtA[iNdEx:postIndex]) 5088 iNdEx = postIndex 5089 case 3: 5090 if wireType != 2 { 5091 return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) 5092 } 5093 var stringLen uint64 5094 for shift := uint(0); ; shift += 7 { 5095 if shift >= 64 { 5096 return ErrIntOverflowQuery 5097 } 5098 if iNdEx >= l { 5099 return io.ErrUnexpectedEOF 5100 } 5101 b := dAtA[iNdEx] 5102 iNdEx++ 5103 stringLen |= uint64(b&0x7F) << shift 5104 if b < 0x80 { 5105 break 5106 } 5107 } 5108 intStringLen := int(stringLen) 5109 if intStringLen < 0 { 5110 return ErrInvalidLengthQuery 5111 } 5112 postIndex := iNdEx + intStringLen 5113 if postIndex < 0 { 5114 return ErrInvalidLengthQuery 5115 } 5116 if postIndex > l { 5117 return io.ErrUnexpectedEOF 5118 } 5119 m.TokenId = string(dAtA[iNdEx:postIndex]) 5120 iNdEx = postIndex 5121 default: 5122 iNdEx = preIndex 5123 skippy, err := skipQuery(dAtA[iNdEx:]) 5124 if err != nil { 5125 return err 5126 } 5127 if (skippy < 0) || (iNdEx+skippy) < 0 { 5128 return ErrInvalidLengthQuery 5129 } 5130 if (iNdEx + skippy) > l { 5131 return io.ErrUnexpectedEOF 5132 } 5133 iNdEx += skippy 5134 } 5135 } 5136 5137 if iNdEx > l { 5138 return io.ErrUnexpectedEOF 5139 } 5140 return nil 5141 } 5142 func (m *QueryBalanceResponse) Unmarshal(dAtA []byte) error { 5143 l := len(dAtA) 5144 iNdEx := 0 5145 for iNdEx < l { 5146 preIndex := iNdEx 5147 var wire uint64 5148 for shift := uint(0); ; shift += 7 { 5149 if shift >= 64 { 5150 return ErrIntOverflowQuery 5151 } 5152 if iNdEx >= l { 5153 return io.ErrUnexpectedEOF 5154 } 5155 b := dAtA[iNdEx] 5156 iNdEx++ 5157 wire |= uint64(b&0x7F) << shift 5158 if b < 0x80 { 5159 break 5160 } 5161 } 5162 fieldNum := int32(wire >> 3) 5163 wireType := int(wire & 0x7) 5164 if wireType == 4 { 5165 return fmt.Errorf("proto: QueryBalanceResponse: wiretype end group for non-group") 5166 } 5167 if fieldNum <= 0 { 5168 return fmt.Errorf("proto: QueryBalanceResponse: illegal tag %d (wire type %d)", fieldNum, wire) 5169 } 5170 switch fieldNum { 5171 case 1: 5172 if wireType != 2 { 5173 return fmt.Errorf("proto: wrong wireType = %d for field Balance", wireType) 5174 } 5175 var msglen int 5176 for shift := uint(0); ; shift += 7 { 5177 if shift >= 64 { 5178 return ErrIntOverflowQuery 5179 } 5180 if iNdEx >= l { 5181 return io.ErrUnexpectedEOF 5182 } 5183 b := dAtA[iNdEx] 5184 iNdEx++ 5185 msglen |= int(b&0x7F) << shift 5186 if b < 0x80 { 5187 break 5188 } 5189 } 5190 if msglen < 0 { 5191 return ErrInvalidLengthQuery 5192 } 5193 postIndex := iNdEx + msglen 5194 if postIndex < 0 { 5195 return ErrInvalidLengthQuery 5196 } 5197 if postIndex > l { 5198 return io.ErrUnexpectedEOF 5199 } 5200 if err := m.Balance.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5201 return err 5202 } 5203 iNdEx = postIndex 5204 default: 5205 iNdEx = preIndex 5206 skippy, err := skipQuery(dAtA[iNdEx:]) 5207 if err != nil { 5208 return err 5209 } 5210 if (skippy < 0) || (iNdEx+skippy) < 0 { 5211 return ErrInvalidLengthQuery 5212 } 5213 if (iNdEx + skippy) > l { 5214 return io.ErrUnexpectedEOF 5215 } 5216 iNdEx += skippy 5217 } 5218 } 5219 5220 if iNdEx > l { 5221 return io.ErrUnexpectedEOF 5222 } 5223 return nil 5224 } 5225 func (m *QueryAllBalancesRequest) Unmarshal(dAtA []byte) error { 5226 l := len(dAtA) 5227 iNdEx := 0 5228 for iNdEx < l { 5229 preIndex := iNdEx 5230 var wire uint64 5231 for shift := uint(0); ; shift += 7 { 5232 if shift >= 64 { 5233 return ErrIntOverflowQuery 5234 } 5235 if iNdEx >= l { 5236 return io.ErrUnexpectedEOF 5237 } 5238 b := dAtA[iNdEx] 5239 iNdEx++ 5240 wire |= uint64(b&0x7F) << shift 5241 if b < 0x80 { 5242 break 5243 } 5244 } 5245 fieldNum := int32(wire >> 3) 5246 wireType := int(wire & 0x7) 5247 if wireType == 4 { 5248 return fmt.Errorf("proto: QueryAllBalancesRequest: wiretype end group for non-group") 5249 } 5250 if fieldNum <= 0 { 5251 return fmt.Errorf("proto: QueryAllBalancesRequest: illegal tag %d (wire type %d)", fieldNum, wire) 5252 } 5253 switch fieldNum { 5254 case 1: 5255 if wireType != 2 { 5256 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 5257 } 5258 var stringLen uint64 5259 for shift := uint(0); ; shift += 7 { 5260 if shift >= 64 { 5261 return ErrIntOverflowQuery 5262 } 5263 if iNdEx >= l { 5264 return io.ErrUnexpectedEOF 5265 } 5266 b := dAtA[iNdEx] 5267 iNdEx++ 5268 stringLen |= uint64(b&0x7F) << shift 5269 if b < 0x80 { 5270 break 5271 } 5272 } 5273 intStringLen := int(stringLen) 5274 if intStringLen < 0 { 5275 return ErrInvalidLengthQuery 5276 } 5277 postIndex := iNdEx + intStringLen 5278 if postIndex < 0 { 5279 return ErrInvalidLengthQuery 5280 } 5281 if postIndex > l { 5282 return io.ErrUnexpectedEOF 5283 } 5284 m.ContractId = string(dAtA[iNdEx:postIndex]) 5285 iNdEx = postIndex 5286 case 2: 5287 if wireType != 2 { 5288 return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) 5289 } 5290 var stringLen uint64 5291 for shift := uint(0); ; shift += 7 { 5292 if shift >= 64 { 5293 return ErrIntOverflowQuery 5294 } 5295 if iNdEx >= l { 5296 return io.ErrUnexpectedEOF 5297 } 5298 b := dAtA[iNdEx] 5299 iNdEx++ 5300 stringLen |= uint64(b&0x7F) << shift 5301 if b < 0x80 { 5302 break 5303 } 5304 } 5305 intStringLen := int(stringLen) 5306 if intStringLen < 0 { 5307 return ErrInvalidLengthQuery 5308 } 5309 postIndex := iNdEx + intStringLen 5310 if postIndex < 0 { 5311 return ErrInvalidLengthQuery 5312 } 5313 if postIndex > l { 5314 return io.ErrUnexpectedEOF 5315 } 5316 m.Address = string(dAtA[iNdEx:postIndex]) 5317 iNdEx = postIndex 5318 case 3: 5319 if wireType != 2 { 5320 return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) 5321 } 5322 var msglen int 5323 for shift := uint(0); ; shift += 7 { 5324 if shift >= 64 { 5325 return ErrIntOverflowQuery 5326 } 5327 if iNdEx >= l { 5328 return io.ErrUnexpectedEOF 5329 } 5330 b := dAtA[iNdEx] 5331 iNdEx++ 5332 msglen |= int(b&0x7F) << shift 5333 if b < 0x80 { 5334 break 5335 } 5336 } 5337 if msglen < 0 { 5338 return ErrInvalidLengthQuery 5339 } 5340 postIndex := iNdEx + msglen 5341 if postIndex < 0 { 5342 return ErrInvalidLengthQuery 5343 } 5344 if postIndex > l { 5345 return io.ErrUnexpectedEOF 5346 } 5347 if m.Pagination == nil { 5348 m.Pagination = &query.PageRequest{} 5349 } 5350 if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5351 return err 5352 } 5353 iNdEx = postIndex 5354 default: 5355 iNdEx = preIndex 5356 skippy, err := skipQuery(dAtA[iNdEx:]) 5357 if err != nil { 5358 return err 5359 } 5360 if (skippy < 0) || (iNdEx+skippy) < 0 { 5361 return ErrInvalidLengthQuery 5362 } 5363 if (iNdEx + skippy) > l { 5364 return io.ErrUnexpectedEOF 5365 } 5366 iNdEx += skippy 5367 } 5368 } 5369 5370 if iNdEx > l { 5371 return io.ErrUnexpectedEOF 5372 } 5373 return nil 5374 } 5375 func (m *QueryAllBalancesResponse) Unmarshal(dAtA []byte) error { 5376 l := len(dAtA) 5377 iNdEx := 0 5378 for iNdEx < l { 5379 preIndex := iNdEx 5380 var wire uint64 5381 for shift := uint(0); ; shift += 7 { 5382 if shift >= 64 { 5383 return ErrIntOverflowQuery 5384 } 5385 if iNdEx >= l { 5386 return io.ErrUnexpectedEOF 5387 } 5388 b := dAtA[iNdEx] 5389 iNdEx++ 5390 wire |= uint64(b&0x7F) << shift 5391 if b < 0x80 { 5392 break 5393 } 5394 } 5395 fieldNum := int32(wire >> 3) 5396 wireType := int(wire & 0x7) 5397 if wireType == 4 { 5398 return fmt.Errorf("proto: QueryAllBalancesResponse: wiretype end group for non-group") 5399 } 5400 if fieldNum <= 0 { 5401 return fmt.Errorf("proto: QueryAllBalancesResponse: illegal tag %d (wire type %d)", fieldNum, wire) 5402 } 5403 switch fieldNum { 5404 case 1: 5405 if wireType != 2 { 5406 return fmt.Errorf("proto: wrong wireType = %d for field Balances", wireType) 5407 } 5408 var msglen int 5409 for shift := uint(0); ; shift += 7 { 5410 if shift >= 64 { 5411 return ErrIntOverflowQuery 5412 } 5413 if iNdEx >= l { 5414 return io.ErrUnexpectedEOF 5415 } 5416 b := dAtA[iNdEx] 5417 iNdEx++ 5418 msglen |= int(b&0x7F) << shift 5419 if b < 0x80 { 5420 break 5421 } 5422 } 5423 if msglen < 0 { 5424 return ErrInvalidLengthQuery 5425 } 5426 postIndex := iNdEx + msglen 5427 if postIndex < 0 { 5428 return ErrInvalidLengthQuery 5429 } 5430 if postIndex > l { 5431 return io.ErrUnexpectedEOF 5432 } 5433 m.Balances = append(m.Balances, Coin{}) 5434 if err := m.Balances[len(m.Balances)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5435 return err 5436 } 5437 iNdEx = postIndex 5438 case 2: 5439 if wireType != 2 { 5440 return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) 5441 } 5442 var msglen int 5443 for shift := uint(0); ; shift += 7 { 5444 if shift >= 64 { 5445 return ErrIntOverflowQuery 5446 } 5447 if iNdEx >= l { 5448 return io.ErrUnexpectedEOF 5449 } 5450 b := dAtA[iNdEx] 5451 iNdEx++ 5452 msglen |= int(b&0x7F) << shift 5453 if b < 0x80 { 5454 break 5455 } 5456 } 5457 if msglen < 0 { 5458 return ErrInvalidLengthQuery 5459 } 5460 postIndex := iNdEx + msglen 5461 if postIndex < 0 { 5462 return ErrInvalidLengthQuery 5463 } 5464 if postIndex > l { 5465 return io.ErrUnexpectedEOF 5466 } 5467 if m.Pagination == nil { 5468 m.Pagination = &query.PageResponse{} 5469 } 5470 if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5471 return err 5472 } 5473 iNdEx = postIndex 5474 default: 5475 iNdEx = preIndex 5476 skippy, err := skipQuery(dAtA[iNdEx:]) 5477 if err != nil { 5478 return err 5479 } 5480 if (skippy < 0) || (iNdEx+skippy) < 0 { 5481 return ErrInvalidLengthQuery 5482 } 5483 if (iNdEx + skippy) > l { 5484 return io.ErrUnexpectedEOF 5485 } 5486 iNdEx += skippy 5487 } 5488 } 5489 5490 if iNdEx > l { 5491 return io.ErrUnexpectedEOF 5492 } 5493 return nil 5494 } 5495 func (m *QueryFTSupplyRequest) Unmarshal(dAtA []byte) error { 5496 l := len(dAtA) 5497 iNdEx := 0 5498 for iNdEx < l { 5499 preIndex := iNdEx 5500 var wire uint64 5501 for shift := uint(0); ; shift += 7 { 5502 if shift >= 64 { 5503 return ErrIntOverflowQuery 5504 } 5505 if iNdEx >= l { 5506 return io.ErrUnexpectedEOF 5507 } 5508 b := dAtA[iNdEx] 5509 iNdEx++ 5510 wire |= uint64(b&0x7F) << shift 5511 if b < 0x80 { 5512 break 5513 } 5514 } 5515 fieldNum := int32(wire >> 3) 5516 wireType := int(wire & 0x7) 5517 if wireType == 4 { 5518 return fmt.Errorf("proto: QueryFTSupplyRequest: wiretype end group for non-group") 5519 } 5520 if fieldNum <= 0 { 5521 return fmt.Errorf("proto: QueryFTSupplyRequest: illegal tag %d (wire type %d)", fieldNum, wire) 5522 } 5523 switch fieldNum { 5524 case 1: 5525 if wireType != 2 { 5526 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 5527 } 5528 var stringLen uint64 5529 for shift := uint(0); ; shift += 7 { 5530 if shift >= 64 { 5531 return ErrIntOverflowQuery 5532 } 5533 if iNdEx >= l { 5534 return io.ErrUnexpectedEOF 5535 } 5536 b := dAtA[iNdEx] 5537 iNdEx++ 5538 stringLen |= uint64(b&0x7F) << shift 5539 if b < 0x80 { 5540 break 5541 } 5542 } 5543 intStringLen := int(stringLen) 5544 if intStringLen < 0 { 5545 return ErrInvalidLengthQuery 5546 } 5547 postIndex := iNdEx + intStringLen 5548 if postIndex < 0 { 5549 return ErrInvalidLengthQuery 5550 } 5551 if postIndex > l { 5552 return io.ErrUnexpectedEOF 5553 } 5554 m.ContractId = string(dAtA[iNdEx:postIndex]) 5555 iNdEx = postIndex 5556 case 2: 5557 if wireType != 2 { 5558 return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) 5559 } 5560 var stringLen uint64 5561 for shift := uint(0); ; shift += 7 { 5562 if shift >= 64 { 5563 return ErrIntOverflowQuery 5564 } 5565 if iNdEx >= l { 5566 return io.ErrUnexpectedEOF 5567 } 5568 b := dAtA[iNdEx] 5569 iNdEx++ 5570 stringLen |= uint64(b&0x7F) << shift 5571 if b < 0x80 { 5572 break 5573 } 5574 } 5575 intStringLen := int(stringLen) 5576 if intStringLen < 0 { 5577 return ErrInvalidLengthQuery 5578 } 5579 postIndex := iNdEx + intStringLen 5580 if postIndex < 0 { 5581 return ErrInvalidLengthQuery 5582 } 5583 if postIndex > l { 5584 return io.ErrUnexpectedEOF 5585 } 5586 m.TokenId = string(dAtA[iNdEx:postIndex]) 5587 iNdEx = postIndex 5588 default: 5589 iNdEx = preIndex 5590 skippy, err := skipQuery(dAtA[iNdEx:]) 5591 if err != nil { 5592 return err 5593 } 5594 if (skippy < 0) || (iNdEx+skippy) < 0 { 5595 return ErrInvalidLengthQuery 5596 } 5597 if (iNdEx + skippy) > l { 5598 return io.ErrUnexpectedEOF 5599 } 5600 iNdEx += skippy 5601 } 5602 } 5603 5604 if iNdEx > l { 5605 return io.ErrUnexpectedEOF 5606 } 5607 return nil 5608 } 5609 func (m *QueryFTSupplyResponse) Unmarshal(dAtA []byte) error { 5610 l := len(dAtA) 5611 iNdEx := 0 5612 for iNdEx < l { 5613 preIndex := iNdEx 5614 var wire uint64 5615 for shift := uint(0); ; shift += 7 { 5616 if shift >= 64 { 5617 return ErrIntOverflowQuery 5618 } 5619 if iNdEx >= l { 5620 return io.ErrUnexpectedEOF 5621 } 5622 b := dAtA[iNdEx] 5623 iNdEx++ 5624 wire |= uint64(b&0x7F) << shift 5625 if b < 0x80 { 5626 break 5627 } 5628 } 5629 fieldNum := int32(wire >> 3) 5630 wireType := int(wire & 0x7) 5631 if wireType == 4 { 5632 return fmt.Errorf("proto: QueryFTSupplyResponse: wiretype end group for non-group") 5633 } 5634 if fieldNum <= 0 { 5635 return fmt.Errorf("proto: QueryFTSupplyResponse: illegal tag %d (wire type %d)", fieldNum, wire) 5636 } 5637 switch fieldNum { 5638 case 1: 5639 if wireType != 2 { 5640 return fmt.Errorf("proto: wrong wireType = %d for field Supply", wireType) 5641 } 5642 var stringLen uint64 5643 for shift := uint(0); ; shift += 7 { 5644 if shift >= 64 { 5645 return ErrIntOverflowQuery 5646 } 5647 if iNdEx >= l { 5648 return io.ErrUnexpectedEOF 5649 } 5650 b := dAtA[iNdEx] 5651 iNdEx++ 5652 stringLen |= uint64(b&0x7F) << shift 5653 if b < 0x80 { 5654 break 5655 } 5656 } 5657 intStringLen := int(stringLen) 5658 if intStringLen < 0 { 5659 return ErrInvalidLengthQuery 5660 } 5661 postIndex := iNdEx + intStringLen 5662 if postIndex < 0 { 5663 return ErrInvalidLengthQuery 5664 } 5665 if postIndex > l { 5666 return io.ErrUnexpectedEOF 5667 } 5668 if err := m.Supply.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5669 return err 5670 } 5671 iNdEx = postIndex 5672 default: 5673 iNdEx = preIndex 5674 skippy, err := skipQuery(dAtA[iNdEx:]) 5675 if err != nil { 5676 return err 5677 } 5678 if (skippy < 0) || (iNdEx+skippy) < 0 { 5679 return ErrInvalidLengthQuery 5680 } 5681 if (iNdEx + skippy) > l { 5682 return io.ErrUnexpectedEOF 5683 } 5684 iNdEx += skippy 5685 } 5686 } 5687 5688 if iNdEx > l { 5689 return io.ErrUnexpectedEOF 5690 } 5691 return nil 5692 } 5693 func (m *QueryFTMintedRequest) Unmarshal(dAtA []byte) error { 5694 l := len(dAtA) 5695 iNdEx := 0 5696 for iNdEx < l { 5697 preIndex := iNdEx 5698 var wire uint64 5699 for shift := uint(0); ; shift += 7 { 5700 if shift >= 64 { 5701 return ErrIntOverflowQuery 5702 } 5703 if iNdEx >= l { 5704 return io.ErrUnexpectedEOF 5705 } 5706 b := dAtA[iNdEx] 5707 iNdEx++ 5708 wire |= uint64(b&0x7F) << shift 5709 if b < 0x80 { 5710 break 5711 } 5712 } 5713 fieldNum := int32(wire >> 3) 5714 wireType := int(wire & 0x7) 5715 if wireType == 4 { 5716 return fmt.Errorf("proto: QueryFTMintedRequest: wiretype end group for non-group") 5717 } 5718 if fieldNum <= 0 { 5719 return fmt.Errorf("proto: QueryFTMintedRequest: illegal tag %d (wire type %d)", fieldNum, wire) 5720 } 5721 switch fieldNum { 5722 case 1: 5723 if wireType != 2 { 5724 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 5725 } 5726 var stringLen uint64 5727 for shift := uint(0); ; shift += 7 { 5728 if shift >= 64 { 5729 return ErrIntOverflowQuery 5730 } 5731 if iNdEx >= l { 5732 return io.ErrUnexpectedEOF 5733 } 5734 b := dAtA[iNdEx] 5735 iNdEx++ 5736 stringLen |= uint64(b&0x7F) << shift 5737 if b < 0x80 { 5738 break 5739 } 5740 } 5741 intStringLen := int(stringLen) 5742 if intStringLen < 0 { 5743 return ErrInvalidLengthQuery 5744 } 5745 postIndex := iNdEx + intStringLen 5746 if postIndex < 0 { 5747 return ErrInvalidLengthQuery 5748 } 5749 if postIndex > l { 5750 return io.ErrUnexpectedEOF 5751 } 5752 m.ContractId = string(dAtA[iNdEx:postIndex]) 5753 iNdEx = postIndex 5754 case 2: 5755 if wireType != 2 { 5756 return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) 5757 } 5758 var stringLen uint64 5759 for shift := uint(0); ; shift += 7 { 5760 if shift >= 64 { 5761 return ErrIntOverflowQuery 5762 } 5763 if iNdEx >= l { 5764 return io.ErrUnexpectedEOF 5765 } 5766 b := dAtA[iNdEx] 5767 iNdEx++ 5768 stringLen |= uint64(b&0x7F) << shift 5769 if b < 0x80 { 5770 break 5771 } 5772 } 5773 intStringLen := int(stringLen) 5774 if intStringLen < 0 { 5775 return ErrInvalidLengthQuery 5776 } 5777 postIndex := iNdEx + intStringLen 5778 if postIndex < 0 { 5779 return ErrInvalidLengthQuery 5780 } 5781 if postIndex > l { 5782 return io.ErrUnexpectedEOF 5783 } 5784 m.TokenId = string(dAtA[iNdEx:postIndex]) 5785 iNdEx = postIndex 5786 default: 5787 iNdEx = preIndex 5788 skippy, err := skipQuery(dAtA[iNdEx:]) 5789 if err != nil { 5790 return err 5791 } 5792 if (skippy < 0) || (iNdEx+skippy) < 0 { 5793 return ErrInvalidLengthQuery 5794 } 5795 if (iNdEx + skippy) > l { 5796 return io.ErrUnexpectedEOF 5797 } 5798 iNdEx += skippy 5799 } 5800 } 5801 5802 if iNdEx > l { 5803 return io.ErrUnexpectedEOF 5804 } 5805 return nil 5806 } 5807 func (m *QueryFTMintedResponse) Unmarshal(dAtA []byte) error { 5808 l := len(dAtA) 5809 iNdEx := 0 5810 for iNdEx < l { 5811 preIndex := iNdEx 5812 var wire uint64 5813 for shift := uint(0); ; shift += 7 { 5814 if shift >= 64 { 5815 return ErrIntOverflowQuery 5816 } 5817 if iNdEx >= l { 5818 return io.ErrUnexpectedEOF 5819 } 5820 b := dAtA[iNdEx] 5821 iNdEx++ 5822 wire |= uint64(b&0x7F) << shift 5823 if b < 0x80 { 5824 break 5825 } 5826 } 5827 fieldNum := int32(wire >> 3) 5828 wireType := int(wire & 0x7) 5829 if wireType == 4 { 5830 return fmt.Errorf("proto: QueryFTMintedResponse: wiretype end group for non-group") 5831 } 5832 if fieldNum <= 0 { 5833 return fmt.Errorf("proto: QueryFTMintedResponse: illegal tag %d (wire type %d)", fieldNum, wire) 5834 } 5835 switch fieldNum { 5836 case 1: 5837 if wireType != 2 { 5838 return fmt.Errorf("proto: wrong wireType = %d for field Minted", wireType) 5839 } 5840 var stringLen uint64 5841 for shift := uint(0); ; shift += 7 { 5842 if shift >= 64 { 5843 return ErrIntOverflowQuery 5844 } 5845 if iNdEx >= l { 5846 return io.ErrUnexpectedEOF 5847 } 5848 b := dAtA[iNdEx] 5849 iNdEx++ 5850 stringLen |= uint64(b&0x7F) << shift 5851 if b < 0x80 { 5852 break 5853 } 5854 } 5855 intStringLen := int(stringLen) 5856 if intStringLen < 0 { 5857 return ErrInvalidLengthQuery 5858 } 5859 postIndex := iNdEx + intStringLen 5860 if postIndex < 0 { 5861 return ErrInvalidLengthQuery 5862 } 5863 if postIndex > l { 5864 return io.ErrUnexpectedEOF 5865 } 5866 if err := m.Minted.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5867 return err 5868 } 5869 iNdEx = postIndex 5870 default: 5871 iNdEx = preIndex 5872 skippy, err := skipQuery(dAtA[iNdEx:]) 5873 if err != nil { 5874 return err 5875 } 5876 if (skippy < 0) || (iNdEx+skippy) < 0 { 5877 return ErrInvalidLengthQuery 5878 } 5879 if (iNdEx + skippy) > l { 5880 return io.ErrUnexpectedEOF 5881 } 5882 iNdEx += skippy 5883 } 5884 } 5885 5886 if iNdEx > l { 5887 return io.ErrUnexpectedEOF 5888 } 5889 return nil 5890 } 5891 func (m *QueryFTBurntRequest) Unmarshal(dAtA []byte) error { 5892 l := len(dAtA) 5893 iNdEx := 0 5894 for iNdEx < l { 5895 preIndex := iNdEx 5896 var wire uint64 5897 for shift := uint(0); ; shift += 7 { 5898 if shift >= 64 { 5899 return ErrIntOverflowQuery 5900 } 5901 if iNdEx >= l { 5902 return io.ErrUnexpectedEOF 5903 } 5904 b := dAtA[iNdEx] 5905 iNdEx++ 5906 wire |= uint64(b&0x7F) << shift 5907 if b < 0x80 { 5908 break 5909 } 5910 } 5911 fieldNum := int32(wire >> 3) 5912 wireType := int(wire & 0x7) 5913 if wireType == 4 { 5914 return fmt.Errorf("proto: QueryFTBurntRequest: wiretype end group for non-group") 5915 } 5916 if fieldNum <= 0 { 5917 return fmt.Errorf("proto: QueryFTBurntRequest: illegal tag %d (wire type %d)", fieldNum, wire) 5918 } 5919 switch fieldNum { 5920 case 1: 5921 if wireType != 2 { 5922 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 5923 } 5924 var stringLen uint64 5925 for shift := uint(0); ; shift += 7 { 5926 if shift >= 64 { 5927 return ErrIntOverflowQuery 5928 } 5929 if iNdEx >= l { 5930 return io.ErrUnexpectedEOF 5931 } 5932 b := dAtA[iNdEx] 5933 iNdEx++ 5934 stringLen |= uint64(b&0x7F) << shift 5935 if b < 0x80 { 5936 break 5937 } 5938 } 5939 intStringLen := int(stringLen) 5940 if intStringLen < 0 { 5941 return ErrInvalidLengthQuery 5942 } 5943 postIndex := iNdEx + intStringLen 5944 if postIndex < 0 { 5945 return ErrInvalidLengthQuery 5946 } 5947 if postIndex > l { 5948 return io.ErrUnexpectedEOF 5949 } 5950 m.ContractId = string(dAtA[iNdEx:postIndex]) 5951 iNdEx = postIndex 5952 case 2: 5953 if wireType != 2 { 5954 return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) 5955 } 5956 var stringLen uint64 5957 for shift := uint(0); ; shift += 7 { 5958 if shift >= 64 { 5959 return ErrIntOverflowQuery 5960 } 5961 if iNdEx >= l { 5962 return io.ErrUnexpectedEOF 5963 } 5964 b := dAtA[iNdEx] 5965 iNdEx++ 5966 stringLen |= uint64(b&0x7F) << shift 5967 if b < 0x80 { 5968 break 5969 } 5970 } 5971 intStringLen := int(stringLen) 5972 if intStringLen < 0 { 5973 return ErrInvalidLengthQuery 5974 } 5975 postIndex := iNdEx + intStringLen 5976 if postIndex < 0 { 5977 return ErrInvalidLengthQuery 5978 } 5979 if postIndex > l { 5980 return io.ErrUnexpectedEOF 5981 } 5982 m.TokenId = string(dAtA[iNdEx:postIndex]) 5983 iNdEx = postIndex 5984 default: 5985 iNdEx = preIndex 5986 skippy, err := skipQuery(dAtA[iNdEx:]) 5987 if err != nil { 5988 return err 5989 } 5990 if (skippy < 0) || (iNdEx+skippy) < 0 { 5991 return ErrInvalidLengthQuery 5992 } 5993 if (iNdEx + skippy) > l { 5994 return io.ErrUnexpectedEOF 5995 } 5996 iNdEx += skippy 5997 } 5998 } 5999 6000 if iNdEx > l { 6001 return io.ErrUnexpectedEOF 6002 } 6003 return nil 6004 } 6005 func (m *QueryFTBurntResponse) Unmarshal(dAtA []byte) error { 6006 l := len(dAtA) 6007 iNdEx := 0 6008 for iNdEx < l { 6009 preIndex := iNdEx 6010 var wire uint64 6011 for shift := uint(0); ; shift += 7 { 6012 if shift >= 64 { 6013 return ErrIntOverflowQuery 6014 } 6015 if iNdEx >= l { 6016 return io.ErrUnexpectedEOF 6017 } 6018 b := dAtA[iNdEx] 6019 iNdEx++ 6020 wire |= uint64(b&0x7F) << shift 6021 if b < 0x80 { 6022 break 6023 } 6024 } 6025 fieldNum := int32(wire >> 3) 6026 wireType := int(wire & 0x7) 6027 if wireType == 4 { 6028 return fmt.Errorf("proto: QueryFTBurntResponse: wiretype end group for non-group") 6029 } 6030 if fieldNum <= 0 { 6031 return fmt.Errorf("proto: QueryFTBurntResponse: illegal tag %d (wire type %d)", fieldNum, wire) 6032 } 6033 switch fieldNum { 6034 case 1: 6035 if wireType != 2 { 6036 return fmt.Errorf("proto: wrong wireType = %d for field Burnt", wireType) 6037 } 6038 var stringLen uint64 6039 for shift := uint(0); ; shift += 7 { 6040 if shift >= 64 { 6041 return ErrIntOverflowQuery 6042 } 6043 if iNdEx >= l { 6044 return io.ErrUnexpectedEOF 6045 } 6046 b := dAtA[iNdEx] 6047 iNdEx++ 6048 stringLen |= uint64(b&0x7F) << shift 6049 if b < 0x80 { 6050 break 6051 } 6052 } 6053 intStringLen := int(stringLen) 6054 if intStringLen < 0 { 6055 return ErrInvalidLengthQuery 6056 } 6057 postIndex := iNdEx + intStringLen 6058 if postIndex < 0 { 6059 return ErrInvalidLengthQuery 6060 } 6061 if postIndex > l { 6062 return io.ErrUnexpectedEOF 6063 } 6064 if err := m.Burnt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6065 return err 6066 } 6067 iNdEx = postIndex 6068 default: 6069 iNdEx = preIndex 6070 skippy, err := skipQuery(dAtA[iNdEx:]) 6071 if err != nil { 6072 return err 6073 } 6074 if (skippy < 0) || (iNdEx+skippy) < 0 { 6075 return ErrInvalidLengthQuery 6076 } 6077 if (iNdEx + skippy) > l { 6078 return io.ErrUnexpectedEOF 6079 } 6080 iNdEx += skippy 6081 } 6082 } 6083 6084 if iNdEx > l { 6085 return io.ErrUnexpectedEOF 6086 } 6087 return nil 6088 } 6089 func (m *QueryNFTSupplyRequest) Unmarshal(dAtA []byte) error { 6090 l := len(dAtA) 6091 iNdEx := 0 6092 for iNdEx < l { 6093 preIndex := iNdEx 6094 var wire uint64 6095 for shift := uint(0); ; shift += 7 { 6096 if shift >= 64 { 6097 return ErrIntOverflowQuery 6098 } 6099 if iNdEx >= l { 6100 return io.ErrUnexpectedEOF 6101 } 6102 b := dAtA[iNdEx] 6103 iNdEx++ 6104 wire |= uint64(b&0x7F) << shift 6105 if b < 0x80 { 6106 break 6107 } 6108 } 6109 fieldNum := int32(wire >> 3) 6110 wireType := int(wire & 0x7) 6111 if wireType == 4 { 6112 return fmt.Errorf("proto: QueryNFTSupplyRequest: wiretype end group for non-group") 6113 } 6114 if fieldNum <= 0 { 6115 return fmt.Errorf("proto: QueryNFTSupplyRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6116 } 6117 switch fieldNum { 6118 case 1: 6119 if wireType != 2 { 6120 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 6121 } 6122 var stringLen uint64 6123 for shift := uint(0); ; shift += 7 { 6124 if shift >= 64 { 6125 return ErrIntOverflowQuery 6126 } 6127 if iNdEx >= l { 6128 return io.ErrUnexpectedEOF 6129 } 6130 b := dAtA[iNdEx] 6131 iNdEx++ 6132 stringLen |= uint64(b&0x7F) << shift 6133 if b < 0x80 { 6134 break 6135 } 6136 } 6137 intStringLen := int(stringLen) 6138 if intStringLen < 0 { 6139 return ErrInvalidLengthQuery 6140 } 6141 postIndex := iNdEx + intStringLen 6142 if postIndex < 0 { 6143 return ErrInvalidLengthQuery 6144 } 6145 if postIndex > l { 6146 return io.ErrUnexpectedEOF 6147 } 6148 m.ContractId = string(dAtA[iNdEx:postIndex]) 6149 iNdEx = postIndex 6150 case 2: 6151 if wireType != 2 { 6152 return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) 6153 } 6154 var stringLen uint64 6155 for shift := uint(0); ; shift += 7 { 6156 if shift >= 64 { 6157 return ErrIntOverflowQuery 6158 } 6159 if iNdEx >= l { 6160 return io.ErrUnexpectedEOF 6161 } 6162 b := dAtA[iNdEx] 6163 iNdEx++ 6164 stringLen |= uint64(b&0x7F) << shift 6165 if b < 0x80 { 6166 break 6167 } 6168 } 6169 intStringLen := int(stringLen) 6170 if intStringLen < 0 { 6171 return ErrInvalidLengthQuery 6172 } 6173 postIndex := iNdEx + intStringLen 6174 if postIndex < 0 { 6175 return ErrInvalidLengthQuery 6176 } 6177 if postIndex > l { 6178 return io.ErrUnexpectedEOF 6179 } 6180 m.TokenType = string(dAtA[iNdEx:postIndex]) 6181 iNdEx = postIndex 6182 default: 6183 iNdEx = preIndex 6184 skippy, err := skipQuery(dAtA[iNdEx:]) 6185 if err != nil { 6186 return err 6187 } 6188 if (skippy < 0) || (iNdEx+skippy) < 0 { 6189 return ErrInvalidLengthQuery 6190 } 6191 if (iNdEx + skippy) > l { 6192 return io.ErrUnexpectedEOF 6193 } 6194 iNdEx += skippy 6195 } 6196 } 6197 6198 if iNdEx > l { 6199 return io.ErrUnexpectedEOF 6200 } 6201 return nil 6202 } 6203 func (m *QueryNFTSupplyResponse) Unmarshal(dAtA []byte) error { 6204 l := len(dAtA) 6205 iNdEx := 0 6206 for iNdEx < l { 6207 preIndex := iNdEx 6208 var wire uint64 6209 for shift := uint(0); ; shift += 7 { 6210 if shift >= 64 { 6211 return ErrIntOverflowQuery 6212 } 6213 if iNdEx >= l { 6214 return io.ErrUnexpectedEOF 6215 } 6216 b := dAtA[iNdEx] 6217 iNdEx++ 6218 wire |= uint64(b&0x7F) << shift 6219 if b < 0x80 { 6220 break 6221 } 6222 } 6223 fieldNum := int32(wire >> 3) 6224 wireType := int(wire & 0x7) 6225 if wireType == 4 { 6226 return fmt.Errorf("proto: QueryNFTSupplyResponse: wiretype end group for non-group") 6227 } 6228 if fieldNum <= 0 { 6229 return fmt.Errorf("proto: QueryNFTSupplyResponse: illegal tag %d (wire type %d)", fieldNum, wire) 6230 } 6231 switch fieldNum { 6232 case 1: 6233 if wireType != 2 { 6234 return fmt.Errorf("proto: wrong wireType = %d for field Supply", wireType) 6235 } 6236 var stringLen uint64 6237 for shift := uint(0); ; shift += 7 { 6238 if shift >= 64 { 6239 return ErrIntOverflowQuery 6240 } 6241 if iNdEx >= l { 6242 return io.ErrUnexpectedEOF 6243 } 6244 b := dAtA[iNdEx] 6245 iNdEx++ 6246 stringLen |= uint64(b&0x7F) << shift 6247 if b < 0x80 { 6248 break 6249 } 6250 } 6251 intStringLen := int(stringLen) 6252 if intStringLen < 0 { 6253 return ErrInvalidLengthQuery 6254 } 6255 postIndex := iNdEx + intStringLen 6256 if postIndex < 0 { 6257 return ErrInvalidLengthQuery 6258 } 6259 if postIndex > l { 6260 return io.ErrUnexpectedEOF 6261 } 6262 if err := m.Supply.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6263 return err 6264 } 6265 iNdEx = postIndex 6266 default: 6267 iNdEx = preIndex 6268 skippy, err := skipQuery(dAtA[iNdEx:]) 6269 if err != nil { 6270 return err 6271 } 6272 if (skippy < 0) || (iNdEx+skippy) < 0 { 6273 return ErrInvalidLengthQuery 6274 } 6275 if (iNdEx + skippy) > l { 6276 return io.ErrUnexpectedEOF 6277 } 6278 iNdEx += skippy 6279 } 6280 } 6281 6282 if iNdEx > l { 6283 return io.ErrUnexpectedEOF 6284 } 6285 return nil 6286 } 6287 func (m *QueryNFTMintedRequest) Unmarshal(dAtA []byte) error { 6288 l := len(dAtA) 6289 iNdEx := 0 6290 for iNdEx < l { 6291 preIndex := iNdEx 6292 var wire uint64 6293 for shift := uint(0); ; shift += 7 { 6294 if shift >= 64 { 6295 return ErrIntOverflowQuery 6296 } 6297 if iNdEx >= l { 6298 return io.ErrUnexpectedEOF 6299 } 6300 b := dAtA[iNdEx] 6301 iNdEx++ 6302 wire |= uint64(b&0x7F) << shift 6303 if b < 0x80 { 6304 break 6305 } 6306 } 6307 fieldNum := int32(wire >> 3) 6308 wireType := int(wire & 0x7) 6309 if wireType == 4 { 6310 return fmt.Errorf("proto: QueryNFTMintedRequest: wiretype end group for non-group") 6311 } 6312 if fieldNum <= 0 { 6313 return fmt.Errorf("proto: QueryNFTMintedRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6314 } 6315 switch fieldNum { 6316 case 1: 6317 if wireType != 2 { 6318 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 6319 } 6320 var stringLen uint64 6321 for shift := uint(0); ; shift += 7 { 6322 if shift >= 64 { 6323 return ErrIntOverflowQuery 6324 } 6325 if iNdEx >= l { 6326 return io.ErrUnexpectedEOF 6327 } 6328 b := dAtA[iNdEx] 6329 iNdEx++ 6330 stringLen |= uint64(b&0x7F) << shift 6331 if b < 0x80 { 6332 break 6333 } 6334 } 6335 intStringLen := int(stringLen) 6336 if intStringLen < 0 { 6337 return ErrInvalidLengthQuery 6338 } 6339 postIndex := iNdEx + intStringLen 6340 if postIndex < 0 { 6341 return ErrInvalidLengthQuery 6342 } 6343 if postIndex > l { 6344 return io.ErrUnexpectedEOF 6345 } 6346 m.ContractId = string(dAtA[iNdEx:postIndex]) 6347 iNdEx = postIndex 6348 case 2: 6349 if wireType != 2 { 6350 return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) 6351 } 6352 var stringLen uint64 6353 for shift := uint(0); ; shift += 7 { 6354 if shift >= 64 { 6355 return ErrIntOverflowQuery 6356 } 6357 if iNdEx >= l { 6358 return io.ErrUnexpectedEOF 6359 } 6360 b := dAtA[iNdEx] 6361 iNdEx++ 6362 stringLen |= uint64(b&0x7F) << shift 6363 if b < 0x80 { 6364 break 6365 } 6366 } 6367 intStringLen := int(stringLen) 6368 if intStringLen < 0 { 6369 return ErrInvalidLengthQuery 6370 } 6371 postIndex := iNdEx + intStringLen 6372 if postIndex < 0 { 6373 return ErrInvalidLengthQuery 6374 } 6375 if postIndex > l { 6376 return io.ErrUnexpectedEOF 6377 } 6378 m.TokenType = string(dAtA[iNdEx:postIndex]) 6379 iNdEx = postIndex 6380 default: 6381 iNdEx = preIndex 6382 skippy, err := skipQuery(dAtA[iNdEx:]) 6383 if err != nil { 6384 return err 6385 } 6386 if (skippy < 0) || (iNdEx+skippy) < 0 { 6387 return ErrInvalidLengthQuery 6388 } 6389 if (iNdEx + skippy) > l { 6390 return io.ErrUnexpectedEOF 6391 } 6392 iNdEx += skippy 6393 } 6394 } 6395 6396 if iNdEx > l { 6397 return io.ErrUnexpectedEOF 6398 } 6399 return nil 6400 } 6401 func (m *QueryNFTMintedResponse) Unmarshal(dAtA []byte) error { 6402 l := len(dAtA) 6403 iNdEx := 0 6404 for iNdEx < l { 6405 preIndex := iNdEx 6406 var wire uint64 6407 for shift := uint(0); ; shift += 7 { 6408 if shift >= 64 { 6409 return ErrIntOverflowQuery 6410 } 6411 if iNdEx >= l { 6412 return io.ErrUnexpectedEOF 6413 } 6414 b := dAtA[iNdEx] 6415 iNdEx++ 6416 wire |= uint64(b&0x7F) << shift 6417 if b < 0x80 { 6418 break 6419 } 6420 } 6421 fieldNum := int32(wire >> 3) 6422 wireType := int(wire & 0x7) 6423 if wireType == 4 { 6424 return fmt.Errorf("proto: QueryNFTMintedResponse: wiretype end group for non-group") 6425 } 6426 if fieldNum <= 0 { 6427 return fmt.Errorf("proto: QueryNFTMintedResponse: illegal tag %d (wire type %d)", fieldNum, wire) 6428 } 6429 switch fieldNum { 6430 case 1: 6431 if wireType != 2 { 6432 return fmt.Errorf("proto: wrong wireType = %d for field Minted", wireType) 6433 } 6434 var stringLen uint64 6435 for shift := uint(0); ; shift += 7 { 6436 if shift >= 64 { 6437 return ErrIntOverflowQuery 6438 } 6439 if iNdEx >= l { 6440 return io.ErrUnexpectedEOF 6441 } 6442 b := dAtA[iNdEx] 6443 iNdEx++ 6444 stringLen |= uint64(b&0x7F) << shift 6445 if b < 0x80 { 6446 break 6447 } 6448 } 6449 intStringLen := int(stringLen) 6450 if intStringLen < 0 { 6451 return ErrInvalidLengthQuery 6452 } 6453 postIndex := iNdEx + intStringLen 6454 if postIndex < 0 { 6455 return ErrInvalidLengthQuery 6456 } 6457 if postIndex > l { 6458 return io.ErrUnexpectedEOF 6459 } 6460 if err := m.Minted.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6461 return err 6462 } 6463 iNdEx = postIndex 6464 default: 6465 iNdEx = preIndex 6466 skippy, err := skipQuery(dAtA[iNdEx:]) 6467 if err != nil { 6468 return err 6469 } 6470 if (skippy < 0) || (iNdEx+skippy) < 0 { 6471 return ErrInvalidLengthQuery 6472 } 6473 if (iNdEx + skippy) > l { 6474 return io.ErrUnexpectedEOF 6475 } 6476 iNdEx += skippy 6477 } 6478 } 6479 6480 if iNdEx > l { 6481 return io.ErrUnexpectedEOF 6482 } 6483 return nil 6484 } 6485 func (m *QueryNFTBurntRequest) Unmarshal(dAtA []byte) error { 6486 l := len(dAtA) 6487 iNdEx := 0 6488 for iNdEx < l { 6489 preIndex := iNdEx 6490 var wire uint64 6491 for shift := uint(0); ; shift += 7 { 6492 if shift >= 64 { 6493 return ErrIntOverflowQuery 6494 } 6495 if iNdEx >= l { 6496 return io.ErrUnexpectedEOF 6497 } 6498 b := dAtA[iNdEx] 6499 iNdEx++ 6500 wire |= uint64(b&0x7F) << shift 6501 if b < 0x80 { 6502 break 6503 } 6504 } 6505 fieldNum := int32(wire >> 3) 6506 wireType := int(wire & 0x7) 6507 if wireType == 4 { 6508 return fmt.Errorf("proto: QueryNFTBurntRequest: wiretype end group for non-group") 6509 } 6510 if fieldNum <= 0 { 6511 return fmt.Errorf("proto: QueryNFTBurntRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6512 } 6513 switch fieldNum { 6514 case 1: 6515 if wireType != 2 { 6516 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 6517 } 6518 var stringLen uint64 6519 for shift := uint(0); ; shift += 7 { 6520 if shift >= 64 { 6521 return ErrIntOverflowQuery 6522 } 6523 if iNdEx >= l { 6524 return io.ErrUnexpectedEOF 6525 } 6526 b := dAtA[iNdEx] 6527 iNdEx++ 6528 stringLen |= uint64(b&0x7F) << shift 6529 if b < 0x80 { 6530 break 6531 } 6532 } 6533 intStringLen := int(stringLen) 6534 if intStringLen < 0 { 6535 return ErrInvalidLengthQuery 6536 } 6537 postIndex := iNdEx + intStringLen 6538 if postIndex < 0 { 6539 return ErrInvalidLengthQuery 6540 } 6541 if postIndex > l { 6542 return io.ErrUnexpectedEOF 6543 } 6544 m.ContractId = string(dAtA[iNdEx:postIndex]) 6545 iNdEx = postIndex 6546 case 2: 6547 if wireType != 2 { 6548 return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) 6549 } 6550 var stringLen uint64 6551 for shift := uint(0); ; shift += 7 { 6552 if shift >= 64 { 6553 return ErrIntOverflowQuery 6554 } 6555 if iNdEx >= l { 6556 return io.ErrUnexpectedEOF 6557 } 6558 b := dAtA[iNdEx] 6559 iNdEx++ 6560 stringLen |= uint64(b&0x7F) << shift 6561 if b < 0x80 { 6562 break 6563 } 6564 } 6565 intStringLen := int(stringLen) 6566 if intStringLen < 0 { 6567 return ErrInvalidLengthQuery 6568 } 6569 postIndex := iNdEx + intStringLen 6570 if postIndex < 0 { 6571 return ErrInvalidLengthQuery 6572 } 6573 if postIndex > l { 6574 return io.ErrUnexpectedEOF 6575 } 6576 m.TokenType = string(dAtA[iNdEx:postIndex]) 6577 iNdEx = postIndex 6578 default: 6579 iNdEx = preIndex 6580 skippy, err := skipQuery(dAtA[iNdEx:]) 6581 if err != nil { 6582 return err 6583 } 6584 if (skippy < 0) || (iNdEx+skippy) < 0 { 6585 return ErrInvalidLengthQuery 6586 } 6587 if (iNdEx + skippy) > l { 6588 return io.ErrUnexpectedEOF 6589 } 6590 iNdEx += skippy 6591 } 6592 } 6593 6594 if iNdEx > l { 6595 return io.ErrUnexpectedEOF 6596 } 6597 return nil 6598 } 6599 func (m *QueryNFTBurntResponse) Unmarshal(dAtA []byte) error { 6600 l := len(dAtA) 6601 iNdEx := 0 6602 for iNdEx < l { 6603 preIndex := iNdEx 6604 var wire uint64 6605 for shift := uint(0); ; shift += 7 { 6606 if shift >= 64 { 6607 return ErrIntOverflowQuery 6608 } 6609 if iNdEx >= l { 6610 return io.ErrUnexpectedEOF 6611 } 6612 b := dAtA[iNdEx] 6613 iNdEx++ 6614 wire |= uint64(b&0x7F) << shift 6615 if b < 0x80 { 6616 break 6617 } 6618 } 6619 fieldNum := int32(wire >> 3) 6620 wireType := int(wire & 0x7) 6621 if wireType == 4 { 6622 return fmt.Errorf("proto: QueryNFTBurntResponse: wiretype end group for non-group") 6623 } 6624 if fieldNum <= 0 { 6625 return fmt.Errorf("proto: QueryNFTBurntResponse: illegal tag %d (wire type %d)", fieldNum, wire) 6626 } 6627 switch fieldNum { 6628 case 1: 6629 if wireType != 2 { 6630 return fmt.Errorf("proto: wrong wireType = %d for field Burnt", wireType) 6631 } 6632 var stringLen uint64 6633 for shift := uint(0); ; shift += 7 { 6634 if shift >= 64 { 6635 return ErrIntOverflowQuery 6636 } 6637 if iNdEx >= l { 6638 return io.ErrUnexpectedEOF 6639 } 6640 b := dAtA[iNdEx] 6641 iNdEx++ 6642 stringLen |= uint64(b&0x7F) << shift 6643 if b < 0x80 { 6644 break 6645 } 6646 } 6647 intStringLen := int(stringLen) 6648 if intStringLen < 0 { 6649 return ErrInvalidLengthQuery 6650 } 6651 postIndex := iNdEx + intStringLen 6652 if postIndex < 0 { 6653 return ErrInvalidLengthQuery 6654 } 6655 if postIndex > l { 6656 return io.ErrUnexpectedEOF 6657 } 6658 if err := m.Burnt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6659 return err 6660 } 6661 iNdEx = postIndex 6662 default: 6663 iNdEx = preIndex 6664 skippy, err := skipQuery(dAtA[iNdEx:]) 6665 if err != nil { 6666 return err 6667 } 6668 if (skippy < 0) || (iNdEx+skippy) < 0 { 6669 return ErrInvalidLengthQuery 6670 } 6671 if (iNdEx + skippy) > l { 6672 return io.ErrUnexpectedEOF 6673 } 6674 iNdEx += skippy 6675 } 6676 } 6677 6678 if iNdEx > l { 6679 return io.ErrUnexpectedEOF 6680 } 6681 return nil 6682 } 6683 func (m *QueryContractRequest) Unmarshal(dAtA []byte) error { 6684 l := len(dAtA) 6685 iNdEx := 0 6686 for iNdEx < l { 6687 preIndex := iNdEx 6688 var wire uint64 6689 for shift := uint(0); ; shift += 7 { 6690 if shift >= 64 { 6691 return ErrIntOverflowQuery 6692 } 6693 if iNdEx >= l { 6694 return io.ErrUnexpectedEOF 6695 } 6696 b := dAtA[iNdEx] 6697 iNdEx++ 6698 wire |= uint64(b&0x7F) << shift 6699 if b < 0x80 { 6700 break 6701 } 6702 } 6703 fieldNum := int32(wire >> 3) 6704 wireType := int(wire & 0x7) 6705 if wireType == 4 { 6706 return fmt.Errorf("proto: QueryContractRequest: wiretype end group for non-group") 6707 } 6708 if fieldNum <= 0 { 6709 return fmt.Errorf("proto: QueryContractRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6710 } 6711 switch fieldNum { 6712 case 1: 6713 if wireType != 2 { 6714 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 6715 } 6716 var stringLen uint64 6717 for shift := uint(0); ; shift += 7 { 6718 if shift >= 64 { 6719 return ErrIntOverflowQuery 6720 } 6721 if iNdEx >= l { 6722 return io.ErrUnexpectedEOF 6723 } 6724 b := dAtA[iNdEx] 6725 iNdEx++ 6726 stringLen |= uint64(b&0x7F) << shift 6727 if b < 0x80 { 6728 break 6729 } 6730 } 6731 intStringLen := int(stringLen) 6732 if intStringLen < 0 { 6733 return ErrInvalidLengthQuery 6734 } 6735 postIndex := iNdEx + intStringLen 6736 if postIndex < 0 { 6737 return ErrInvalidLengthQuery 6738 } 6739 if postIndex > l { 6740 return io.ErrUnexpectedEOF 6741 } 6742 m.ContractId = string(dAtA[iNdEx:postIndex]) 6743 iNdEx = postIndex 6744 default: 6745 iNdEx = preIndex 6746 skippy, err := skipQuery(dAtA[iNdEx:]) 6747 if err != nil { 6748 return err 6749 } 6750 if (skippy < 0) || (iNdEx+skippy) < 0 { 6751 return ErrInvalidLengthQuery 6752 } 6753 if (iNdEx + skippy) > l { 6754 return io.ErrUnexpectedEOF 6755 } 6756 iNdEx += skippy 6757 } 6758 } 6759 6760 if iNdEx > l { 6761 return io.ErrUnexpectedEOF 6762 } 6763 return nil 6764 } 6765 func (m *QueryContractResponse) Unmarshal(dAtA []byte) error { 6766 l := len(dAtA) 6767 iNdEx := 0 6768 for iNdEx < l { 6769 preIndex := iNdEx 6770 var wire uint64 6771 for shift := uint(0); ; shift += 7 { 6772 if shift >= 64 { 6773 return ErrIntOverflowQuery 6774 } 6775 if iNdEx >= l { 6776 return io.ErrUnexpectedEOF 6777 } 6778 b := dAtA[iNdEx] 6779 iNdEx++ 6780 wire |= uint64(b&0x7F) << shift 6781 if b < 0x80 { 6782 break 6783 } 6784 } 6785 fieldNum := int32(wire >> 3) 6786 wireType := int(wire & 0x7) 6787 if wireType == 4 { 6788 return fmt.Errorf("proto: QueryContractResponse: wiretype end group for non-group") 6789 } 6790 if fieldNum <= 0 { 6791 return fmt.Errorf("proto: QueryContractResponse: illegal tag %d (wire type %d)", fieldNum, wire) 6792 } 6793 switch fieldNum { 6794 case 1: 6795 if wireType != 2 { 6796 return fmt.Errorf("proto: wrong wireType = %d for field Contract", wireType) 6797 } 6798 var msglen int 6799 for shift := uint(0); ; shift += 7 { 6800 if shift >= 64 { 6801 return ErrIntOverflowQuery 6802 } 6803 if iNdEx >= l { 6804 return io.ErrUnexpectedEOF 6805 } 6806 b := dAtA[iNdEx] 6807 iNdEx++ 6808 msglen |= int(b&0x7F) << shift 6809 if b < 0x80 { 6810 break 6811 } 6812 } 6813 if msglen < 0 { 6814 return ErrInvalidLengthQuery 6815 } 6816 postIndex := iNdEx + msglen 6817 if postIndex < 0 { 6818 return ErrInvalidLengthQuery 6819 } 6820 if postIndex > l { 6821 return io.ErrUnexpectedEOF 6822 } 6823 if err := m.Contract.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6824 return err 6825 } 6826 iNdEx = postIndex 6827 default: 6828 iNdEx = preIndex 6829 skippy, err := skipQuery(dAtA[iNdEx:]) 6830 if err != nil { 6831 return err 6832 } 6833 if (skippy < 0) || (iNdEx+skippy) < 0 { 6834 return ErrInvalidLengthQuery 6835 } 6836 if (iNdEx + skippy) > l { 6837 return io.ErrUnexpectedEOF 6838 } 6839 iNdEx += skippy 6840 } 6841 } 6842 6843 if iNdEx > l { 6844 return io.ErrUnexpectedEOF 6845 } 6846 return nil 6847 } 6848 func (m *QueryTokenClassTypeNameRequest) Unmarshal(dAtA []byte) error { 6849 l := len(dAtA) 6850 iNdEx := 0 6851 for iNdEx < l { 6852 preIndex := iNdEx 6853 var wire uint64 6854 for shift := uint(0); ; shift += 7 { 6855 if shift >= 64 { 6856 return ErrIntOverflowQuery 6857 } 6858 if iNdEx >= l { 6859 return io.ErrUnexpectedEOF 6860 } 6861 b := dAtA[iNdEx] 6862 iNdEx++ 6863 wire |= uint64(b&0x7F) << shift 6864 if b < 0x80 { 6865 break 6866 } 6867 } 6868 fieldNum := int32(wire >> 3) 6869 wireType := int(wire & 0x7) 6870 if wireType == 4 { 6871 return fmt.Errorf("proto: QueryTokenClassTypeNameRequest: wiretype end group for non-group") 6872 } 6873 if fieldNum <= 0 { 6874 return fmt.Errorf("proto: QueryTokenClassTypeNameRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6875 } 6876 switch fieldNum { 6877 case 1: 6878 if wireType != 2 { 6879 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 6880 } 6881 var stringLen uint64 6882 for shift := uint(0); ; shift += 7 { 6883 if shift >= 64 { 6884 return ErrIntOverflowQuery 6885 } 6886 if iNdEx >= l { 6887 return io.ErrUnexpectedEOF 6888 } 6889 b := dAtA[iNdEx] 6890 iNdEx++ 6891 stringLen |= uint64(b&0x7F) << shift 6892 if b < 0x80 { 6893 break 6894 } 6895 } 6896 intStringLen := int(stringLen) 6897 if intStringLen < 0 { 6898 return ErrInvalidLengthQuery 6899 } 6900 postIndex := iNdEx + intStringLen 6901 if postIndex < 0 { 6902 return ErrInvalidLengthQuery 6903 } 6904 if postIndex > l { 6905 return io.ErrUnexpectedEOF 6906 } 6907 m.ContractId = string(dAtA[iNdEx:postIndex]) 6908 iNdEx = postIndex 6909 case 2: 6910 if wireType != 2 { 6911 return fmt.Errorf("proto: wrong wireType = %d for field ClassId", wireType) 6912 } 6913 var stringLen uint64 6914 for shift := uint(0); ; shift += 7 { 6915 if shift >= 64 { 6916 return ErrIntOverflowQuery 6917 } 6918 if iNdEx >= l { 6919 return io.ErrUnexpectedEOF 6920 } 6921 b := dAtA[iNdEx] 6922 iNdEx++ 6923 stringLen |= uint64(b&0x7F) << shift 6924 if b < 0x80 { 6925 break 6926 } 6927 } 6928 intStringLen := int(stringLen) 6929 if intStringLen < 0 { 6930 return ErrInvalidLengthQuery 6931 } 6932 postIndex := iNdEx + intStringLen 6933 if postIndex < 0 { 6934 return ErrInvalidLengthQuery 6935 } 6936 if postIndex > l { 6937 return io.ErrUnexpectedEOF 6938 } 6939 m.ClassId = string(dAtA[iNdEx:postIndex]) 6940 iNdEx = postIndex 6941 default: 6942 iNdEx = preIndex 6943 skippy, err := skipQuery(dAtA[iNdEx:]) 6944 if err != nil { 6945 return err 6946 } 6947 if (skippy < 0) || (iNdEx+skippy) < 0 { 6948 return ErrInvalidLengthQuery 6949 } 6950 if (iNdEx + skippy) > l { 6951 return io.ErrUnexpectedEOF 6952 } 6953 iNdEx += skippy 6954 } 6955 } 6956 6957 if iNdEx > l { 6958 return io.ErrUnexpectedEOF 6959 } 6960 return nil 6961 } 6962 func (m *QueryTokenClassTypeNameResponse) Unmarshal(dAtA []byte) error { 6963 l := len(dAtA) 6964 iNdEx := 0 6965 for iNdEx < l { 6966 preIndex := iNdEx 6967 var wire uint64 6968 for shift := uint(0); ; shift += 7 { 6969 if shift >= 64 { 6970 return ErrIntOverflowQuery 6971 } 6972 if iNdEx >= l { 6973 return io.ErrUnexpectedEOF 6974 } 6975 b := dAtA[iNdEx] 6976 iNdEx++ 6977 wire |= uint64(b&0x7F) << shift 6978 if b < 0x80 { 6979 break 6980 } 6981 } 6982 fieldNum := int32(wire >> 3) 6983 wireType := int(wire & 0x7) 6984 if wireType == 4 { 6985 return fmt.Errorf("proto: QueryTokenClassTypeNameResponse: wiretype end group for non-group") 6986 } 6987 if fieldNum <= 0 { 6988 return fmt.Errorf("proto: QueryTokenClassTypeNameResponse: illegal tag %d (wire type %d)", fieldNum, wire) 6989 } 6990 switch fieldNum { 6991 case 1: 6992 if wireType != 2 { 6993 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 6994 } 6995 var stringLen uint64 6996 for shift := uint(0); ; shift += 7 { 6997 if shift >= 64 { 6998 return ErrIntOverflowQuery 6999 } 7000 if iNdEx >= l { 7001 return io.ErrUnexpectedEOF 7002 } 7003 b := dAtA[iNdEx] 7004 iNdEx++ 7005 stringLen |= uint64(b&0x7F) << shift 7006 if b < 0x80 { 7007 break 7008 } 7009 } 7010 intStringLen := int(stringLen) 7011 if intStringLen < 0 { 7012 return ErrInvalidLengthQuery 7013 } 7014 postIndex := iNdEx + intStringLen 7015 if postIndex < 0 { 7016 return ErrInvalidLengthQuery 7017 } 7018 if postIndex > l { 7019 return io.ErrUnexpectedEOF 7020 } 7021 m.Name = string(dAtA[iNdEx:postIndex]) 7022 iNdEx = postIndex 7023 default: 7024 iNdEx = preIndex 7025 skippy, err := skipQuery(dAtA[iNdEx:]) 7026 if err != nil { 7027 return err 7028 } 7029 if (skippy < 0) || (iNdEx+skippy) < 0 { 7030 return ErrInvalidLengthQuery 7031 } 7032 if (iNdEx + skippy) > l { 7033 return io.ErrUnexpectedEOF 7034 } 7035 iNdEx += skippy 7036 } 7037 } 7038 7039 if iNdEx > l { 7040 return io.ErrUnexpectedEOF 7041 } 7042 return nil 7043 } 7044 func (m *QueryTokenTypeRequest) Unmarshal(dAtA []byte) error { 7045 l := len(dAtA) 7046 iNdEx := 0 7047 for iNdEx < l { 7048 preIndex := iNdEx 7049 var wire uint64 7050 for shift := uint(0); ; shift += 7 { 7051 if shift >= 64 { 7052 return ErrIntOverflowQuery 7053 } 7054 if iNdEx >= l { 7055 return io.ErrUnexpectedEOF 7056 } 7057 b := dAtA[iNdEx] 7058 iNdEx++ 7059 wire |= uint64(b&0x7F) << shift 7060 if b < 0x80 { 7061 break 7062 } 7063 } 7064 fieldNum := int32(wire >> 3) 7065 wireType := int(wire & 0x7) 7066 if wireType == 4 { 7067 return fmt.Errorf("proto: QueryTokenTypeRequest: wiretype end group for non-group") 7068 } 7069 if fieldNum <= 0 { 7070 return fmt.Errorf("proto: QueryTokenTypeRequest: illegal tag %d (wire type %d)", fieldNum, wire) 7071 } 7072 switch fieldNum { 7073 case 1: 7074 if wireType != 2 { 7075 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 7076 } 7077 var stringLen uint64 7078 for shift := uint(0); ; shift += 7 { 7079 if shift >= 64 { 7080 return ErrIntOverflowQuery 7081 } 7082 if iNdEx >= l { 7083 return io.ErrUnexpectedEOF 7084 } 7085 b := dAtA[iNdEx] 7086 iNdEx++ 7087 stringLen |= uint64(b&0x7F) << shift 7088 if b < 0x80 { 7089 break 7090 } 7091 } 7092 intStringLen := int(stringLen) 7093 if intStringLen < 0 { 7094 return ErrInvalidLengthQuery 7095 } 7096 postIndex := iNdEx + intStringLen 7097 if postIndex < 0 { 7098 return ErrInvalidLengthQuery 7099 } 7100 if postIndex > l { 7101 return io.ErrUnexpectedEOF 7102 } 7103 m.ContractId = string(dAtA[iNdEx:postIndex]) 7104 iNdEx = postIndex 7105 case 2: 7106 if wireType != 2 { 7107 return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) 7108 } 7109 var stringLen uint64 7110 for shift := uint(0); ; shift += 7 { 7111 if shift >= 64 { 7112 return ErrIntOverflowQuery 7113 } 7114 if iNdEx >= l { 7115 return io.ErrUnexpectedEOF 7116 } 7117 b := dAtA[iNdEx] 7118 iNdEx++ 7119 stringLen |= uint64(b&0x7F) << shift 7120 if b < 0x80 { 7121 break 7122 } 7123 } 7124 intStringLen := int(stringLen) 7125 if intStringLen < 0 { 7126 return ErrInvalidLengthQuery 7127 } 7128 postIndex := iNdEx + intStringLen 7129 if postIndex < 0 { 7130 return ErrInvalidLengthQuery 7131 } 7132 if postIndex > l { 7133 return io.ErrUnexpectedEOF 7134 } 7135 m.TokenType = string(dAtA[iNdEx:postIndex]) 7136 iNdEx = postIndex 7137 default: 7138 iNdEx = preIndex 7139 skippy, err := skipQuery(dAtA[iNdEx:]) 7140 if err != nil { 7141 return err 7142 } 7143 if (skippy < 0) || (iNdEx+skippy) < 0 { 7144 return ErrInvalidLengthQuery 7145 } 7146 if (iNdEx + skippy) > l { 7147 return io.ErrUnexpectedEOF 7148 } 7149 iNdEx += skippy 7150 } 7151 } 7152 7153 if iNdEx > l { 7154 return io.ErrUnexpectedEOF 7155 } 7156 return nil 7157 } 7158 func (m *QueryTokenTypeResponse) Unmarshal(dAtA []byte) error { 7159 l := len(dAtA) 7160 iNdEx := 0 7161 for iNdEx < l { 7162 preIndex := iNdEx 7163 var wire uint64 7164 for shift := uint(0); ; shift += 7 { 7165 if shift >= 64 { 7166 return ErrIntOverflowQuery 7167 } 7168 if iNdEx >= l { 7169 return io.ErrUnexpectedEOF 7170 } 7171 b := dAtA[iNdEx] 7172 iNdEx++ 7173 wire |= uint64(b&0x7F) << shift 7174 if b < 0x80 { 7175 break 7176 } 7177 } 7178 fieldNum := int32(wire >> 3) 7179 wireType := int(wire & 0x7) 7180 if wireType == 4 { 7181 return fmt.Errorf("proto: QueryTokenTypeResponse: wiretype end group for non-group") 7182 } 7183 if fieldNum <= 0 { 7184 return fmt.Errorf("proto: QueryTokenTypeResponse: illegal tag %d (wire type %d)", fieldNum, wire) 7185 } 7186 switch fieldNum { 7187 case 1: 7188 if wireType != 2 { 7189 return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) 7190 } 7191 var msglen int 7192 for shift := uint(0); ; shift += 7 { 7193 if shift >= 64 { 7194 return ErrIntOverflowQuery 7195 } 7196 if iNdEx >= l { 7197 return io.ErrUnexpectedEOF 7198 } 7199 b := dAtA[iNdEx] 7200 iNdEx++ 7201 msglen |= int(b&0x7F) << shift 7202 if b < 0x80 { 7203 break 7204 } 7205 } 7206 if msglen < 0 { 7207 return ErrInvalidLengthQuery 7208 } 7209 postIndex := iNdEx + msglen 7210 if postIndex < 0 { 7211 return ErrInvalidLengthQuery 7212 } 7213 if postIndex > l { 7214 return io.ErrUnexpectedEOF 7215 } 7216 if err := m.TokenType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7217 return err 7218 } 7219 iNdEx = postIndex 7220 default: 7221 iNdEx = preIndex 7222 skippy, err := skipQuery(dAtA[iNdEx:]) 7223 if err != nil { 7224 return err 7225 } 7226 if (skippy < 0) || (iNdEx+skippy) < 0 { 7227 return ErrInvalidLengthQuery 7228 } 7229 if (iNdEx + skippy) > l { 7230 return io.ErrUnexpectedEOF 7231 } 7232 iNdEx += skippy 7233 } 7234 } 7235 7236 if iNdEx > l { 7237 return io.ErrUnexpectedEOF 7238 } 7239 return nil 7240 } 7241 func (m *QueryTokenRequest) Unmarshal(dAtA []byte) error { 7242 l := len(dAtA) 7243 iNdEx := 0 7244 for iNdEx < l { 7245 preIndex := iNdEx 7246 var wire uint64 7247 for shift := uint(0); ; shift += 7 { 7248 if shift >= 64 { 7249 return ErrIntOverflowQuery 7250 } 7251 if iNdEx >= l { 7252 return io.ErrUnexpectedEOF 7253 } 7254 b := dAtA[iNdEx] 7255 iNdEx++ 7256 wire |= uint64(b&0x7F) << shift 7257 if b < 0x80 { 7258 break 7259 } 7260 } 7261 fieldNum := int32(wire >> 3) 7262 wireType := int(wire & 0x7) 7263 if wireType == 4 { 7264 return fmt.Errorf("proto: QueryTokenRequest: wiretype end group for non-group") 7265 } 7266 if fieldNum <= 0 { 7267 return fmt.Errorf("proto: QueryTokenRequest: illegal tag %d (wire type %d)", fieldNum, wire) 7268 } 7269 switch fieldNum { 7270 case 1: 7271 if wireType != 2 { 7272 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 7273 } 7274 var stringLen uint64 7275 for shift := uint(0); ; shift += 7 { 7276 if shift >= 64 { 7277 return ErrIntOverflowQuery 7278 } 7279 if iNdEx >= l { 7280 return io.ErrUnexpectedEOF 7281 } 7282 b := dAtA[iNdEx] 7283 iNdEx++ 7284 stringLen |= uint64(b&0x7F) << shift 7285 if b < 0x80 { 7286 break 7287 } 7288 } 7289 intStringLen := int(stringLen) 7290 if intStringLen < 0 { 7291 return ErrInvalidLengthQuery 7292 } 7293 postIndex := iNdEx + intStringLen 7294 if postIndex < 0 { 7295 return ErrInvalidLengthQuery 7296 } 7297 if postIndex > l { 7298 return io.ErrUnexpectedEOF 7299 } 7300 m.ContractId = string(dAtA[iNdEx:postIndex]) 7301 iNdEx = postIndex 7302 case 2: 7303 if wireType != 2 { 7304 return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) 7305 } 7306 var stringLen uint64 7307 for shift := uint(0); ; shift += 7 { 7308 if shift >= 64 { 7309 return ErrIntOverflowQuery 7310 } 7311 if iNdEx >= l { 7312 return io.ErrUnexpectedEOF 7313 } 7314 b := dAtA[iNdEx] 7315 iNdEx++ 7316 stringLen |= uint64(b&0x7F) << shift 7317 if b < 0x80 { 7318 break 7319 } 7320 } 7321 intStringLen := int(stringLen) 7322 if intStringLen < 0 { 7323 return ErrInvalidLengthQuery 7324 } 7325 postIndex := iNdEx + intStringLen 7326 if postIndex < 0 { 7327 return ErrInvalidLengthQuery 7328 } 7329 if postIndex > l { 7330 return io.ErrUnexpectedEOF 7331 } 7332 m.TokenId = string(dAtA[iNdEx:postIndex]) 7333 iNdEx = postIndex 7334 default: 7335 iNdEx = preIndex 7336 skippy, err := skipQuery(dAtA[iNdEx:]) 7337 if err != nil { 7338 return err 7339 } 7340 if (skippy < 0) || (iNdEx+skippy) < 0 { 7341 return ErrInvalidLengthQuery 7342 } 7343 if (iNdEx + skippy) > l { 7344 return io.ErrUnexpectedEOF 7345 } 7346 iNdEx += skippy 7347 } 7348 } 7349 7350 if iNdEx > l { 7351 return io.ErrUnexpectedEOF 7352 } 7353 return nil 7354 } 7355 func (m *QueryTokenResponse) Unmarshal(dAtA []byte) error { 7356 l := len(dAtA) 7357 iNdEx := 0 7358 for iNdEx < l { 7359 preIndex := iNdEx 7360 var wire uint64 7361 for shift := uint(0); ; shift += 7 { 7362 if shift >= 64 { 7363 return ErrIntOverflowQuery 7364 } 7365 if iNdEx >= l { 7366 return io.ErrUnexpectedEOF 7367 } 7368 b := dAtA[iNdEx] 7369 iNdEx++ 7370 wire |= uint64(b&0x7F) << shift 7371 if b < 0x80 { 7372 break 7373 } 7374 } 7375 fieldNum := int32(wire >> 3) 7376 wireType := int(wire & 0x7) 7377 if wireType == 4 { 7378 return fmt.Errorf("proto: QueryTokenResponse: wiretype end group for non-group") 7379 } 7380 if fieldNum <= 0 { 7381 return fmt.Errorf("proto: QueryTokenResponse: illegal tag %d (wire type %d)", fieldNum, wire) 7382 } 7383 switch fieldNum { 7384 case 1: 7385 if wireType != 2 { 7386 return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType) 7387 } 7388 var msglen int 7389 for shift := uint(0); ; shift += 7 { 7390 if shift >= 64 { 7391 return ErrIntOverflowQuery 7392 } 7393 if iNdEx >= l { 7394 return io.ErrUnexpectedEOF 7395 } 7396 b := dAtA[iNdEx] 7397 iNdEx++ 7398 msglen |= int(b&0x7F) << shift 7399 if b < 0x80 { 7400 break 7401 } 7402 } 7403 if msglen < 0 { 7404 return ErrInvalidLengthQuery 7405 } 7406 postIndex := iNdEx + msglen 7407 if postIndex < 0 { 7408 return ErrInvalidLengthQuery 7409 } 7410 if postIndex > l { 7411 return io.ErrUnexpectedEOF 7412 } 7413 if err := m.Token.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7414 return err 7415 } 7416 iNdEx = postIndex 7417 default: 7418 iNdEx = preIndex 7419 skippy, err := skipQuery(dAtA[iNdEx:]) 7420 if err != nil { 7421 return err 7422 } 7423 if (skippy < 0) || (iNdEx+skippy) < 0 { 7424 return ErrInvalidLengthQuery 7425 } 7426 if (iNdEx + skippy) > l { 7427 return io.ErrUnexpectedEOF 7428 } 7429 iNdEx += skippy 7430 } 7431 } 7432 7433 if iNdEx > l { 7434 return io.ErrUnexpectedEOF 7435 } 7436 return nil 7437 } 7438 func (m *QueryRootRequest) Unmarshal(dAtA []byte) error { 7439 l := len(dAtA) 7440 iNdEx := 0 7441 for iNdEx < l { 7442 preIndex := iNdEx 7443 var wire uint64 7444 for shift := uint(0); ; shift += 7 { 7445 if shift >= 64 { 7446 return ErrIntOverflowQuery 7447 } 7448 if iNdEx >= l { 7449 return io.ErrUnexpectedEOF 7450 } 7451 b := dAtA[iNdEx] 7452 iNdEx++ 7453 wire |= uint64(b&0x7F) << shift 7454 if b < 0x80 { 7455 break 7456 } 7457 } 7458 fieldNum := int32(wire >> 3) 7459 wireType := int(wire & 0x7) 7460 if wireType == 4 { 7461 return fmt.Errorf("proto: QueryRootRequest: wiretype end group for non-group") 7462 } 7463 if fieldNum <= 0 { 7464 return fmt.Errorf("proto: QueryRootRequest: illegal tag %d (wire type %d)", fieldNum, wire) 7465 } 7466 switch fieldNum { 7467 case 1: 7468 if wireType != 2 { 7469 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 7470 } 7471 var stringLen uint64 7472 for shift := uint(0); ; shift += 7 { 7473 if shift >= 64 { 7474 return ErrIntOverflowQuery 7475 } 7476 if iNdEx >= l { 7477 return io.ErrUnexpectedEOF 7478 } 7479 b := dAtA[iNdEx] 7480 iNdEx++ 7481 stringLen |= uint64(b&0x7F) << shift 7482 if b < 0x80 { 7483 break 7484 } 7485 } 7486 intStringLen := int(stringLen) 7487 if intStringLen < 0 { 7488 return ErrInvalidLengthQuery 7489 } 7490 postIndex := iNdEx + intStringLen 7491 if postIndex < 0 { 7492 return ErrInvalidLengthQuery 7493 } 7494 if postIndex > l { 7495 return io.ErrUnexpectedEOF 7496 } 7497 m.ContractId = string(dAtA[iNdEx:postIndex]) 7498 iNdEx = postIndex 7499 case 2: 7500 if wireType != 2 { 7501 return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) 7502 } 7503 var stringLen uint64 7504 for shift := uint(0); ; shift += 7 { 7505 if shift >= 64 { 7506 return ErrIntOverflowQuery 7507 } 7508 if iNdEx >= l { 7509 return io.ErrUnexpectedEOF 7510 } 7511 b := dAtA[iNdEx] 7512 iNdEx++ 7513 stringLen |= uint64(b&0x7F) << shift 7514 if b < 0x80 { 7515 break 7516 } 7517 } 7518 intStringLen := int(stringLen) 7519 if intStringLen < 0 { 7520 return ErrInvalidLengthQuery 7521 } 7522 postIndex := iNdEx + intStringLen 7523 if postIndex < 0 { 7524 return ErrInvalidLengthQuery 7525 } 7526 if postIndex > l { 7527 return io.ErrUnexpectedEOF 7528 } 7529 m.TokenId = string(dAtA[iNdEx:postIndex]) 7530 iNdEx = postIndex 7531 default: 7532 iNdEx = preIndex 7533 skippy, err := skipQuery(dAtA[iNdEx:]) 7534 if err != nil { 7535 return err 7536 } 7537 if (skippy < 0) || (iNdEx+skippy) < 0 { 7538 return ErrInvalidLengthQuery 7539 } 7540 if (iNdEx + skippy) > l { 7541 return io.ErrUnexpectedEOF 7542 } 7543 iNdEx += skippy 7544 } 7545 } 7546 7547 if iNdEx > l { 7548 return io.ErrUnexpectedEOF 7549 } 7550 return nil 7551 } 7552 func (m *QueryRootResponse) Unmarshal(dAtA []byte) error { 7553 l := len(dAtA) 7554 iNdEx := 0 7555 for iNdEx < l { 7556 preIndex := iNdEx 7557 var wire uint64 7558 for shift := uint(0); ; shift += 7 { 7559 if shift >= 64 { 7560 return ErrIntOverflowQuery 7561 } 7562 if iNdEx >= l { 7563 return io.ErrUnexpectedEOF 7564 } 7565 b := dAtA[iNdEx] 7566 iNdEx++ 7567 wire |= uint64(b&0x7F) << shift 7568 if b < 0x80 { 7569 break 7570 } 7571 } 7572 fieldNum := int32(wire >> 3) 7573 wireType := int(wire & 0x7) 7574 if wireType == 4 { 7575 return fmt.Errorf("proto: QueryRootResponse: wiretype end group for non-group") 7576 } 7577 if fieldNum <= 0 { 7578 return fmt.Errorf("proto: QueryRootResponse: illegal tag %d (wire type %d)", fieldNum, wire) 7579 } 7580 switch fieldNum { 7581 case 1: 7582 if wireType != 2 { 7583 return fmt.Errorf("proto: wrong wireType = %d for field Root", wireType) 7584 } 7585 var msglen int 7586 for shift := uint(0); ; shift += 7 { 7587 if shift >= 64 { 7588 return ErrIntOverflowQuery 7589 } 7590 if iNdEx >= l { 7591 return io.ErrUnexpectedEOF 7592 } 7593 b := dAtA[iNdEx] 7594 iNdEx++ 7595 msglen |= int(b&0x7F) << shift 7596 if b < 0x80 { 7597 break 7598 } 7599 } 7600 if msglen < 0 { 7601 return ErrInvalidLengthQuery 7602 } 7603 postIndex := iNdEx + msglen 7604 if postIndex < 0 { 7605 return ErrInvalidLengthQuery 7606 } 7607 if postIndex > l { 7608 return io.ErrUnexpectedEOF 7609 } 7610 if err := m.Root.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7611 return err 7612 } 7613 iNdEx = postIndex 7614 default: 7615 iNdEx = preIndex 7616 skippy, err := skipQuery(dAtA[iNdEx:]) 7617 if err != nil { 7618 return err 7619 } 7620 if (skippy < 0) || (iNdEx+skippy) < 0 { 7621 return ErrInvalidLengthQuery 7622 } 7623 if (iNdEx + skippy) > l { 7624 return io.ErrUnexpectedEOF 7625 } 7626 iNdEx += skippy 7627 } 7628 } 7629 7630 if iNdEx > l { 7631 return io.ErrUnexpectedEOF 7632 } 7633 return nil 7634 } 7635 func (m *QueryHasParentRequest) Unmarshal(dAtA []byte) error { 7636 l := len(dAtA) 7637 iNdEx := 0 7638 for iNdEx < l { 7639 preIndex := iNdEx 7640 var wire uint64 7641 for shift := uint(0); ; shift += 7 { 7642 if shift >= 64 { 7643 return ErrIntOverflowQuery 7644 } 7645 if iNdEx >= l { 7646 return io.ErrUnexpectedEOF 7647 } 7648 b := dAtA[iNdEx] 7649 iNdEx++ 7650 wire |= uint64(b&0x7F) << shift 7651 if b < 0x80 { 7652 break 7653 } 7654 } 7655 fieldNum := int32(wire >> 3) 7656 wireType := int(wire & 0x7) 7657 if wireType == 4 { 7658 return fmt.Errorf("proto: QueryHasParentRequest: wiretype end group for non-group") 7659 } 7660 if fieldNum <= 0 { 7661 return fmt.Errorf("proto: QueryHasParentRequest: illegal tag %d (wire type %d)", fieldNum, wire) 7662 } 7663 switch fieldNum { 7664 case 1: 7665 if wireType != 2 { 7666 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 7667 } 7668 var stringLen uint64 7669 for shift := uint(0); ; shift += 7 { 7670 if shift >= 64 { 7671 return ErrIntOverflowQuery 7672 } 7673 if iNdEx >= l { 7674 return io.ErrUnexpectedEOF 7675 } 7676 b := dAtA[iNdEx] 7677 iNdEx++ 7678 stringLen |= uint64(b&0x7F) << shift 7679 if b < 0x80 { 7680 break 7681 } 7682 } 7683 intStringLen := int(stringLen) 7684 if intStringLen < 0 { 7685 return ErrInvalidLengthQuery 7686 } 7687 postIndex := iNdEx + intStringLen 7688 if postIndex < 0 { 7689 return ErrInvalidLengthQuery 7690 } 7691 if postIndex > l { 7692 return io.ErrUnexpectedEOF 7693 } 7694 m.ContractId = string(dAtA[iNdEx:postIndex]) 7695 iNdEx = postIndex 7696 case 2: 7697 if wireType != 2 { 7698 return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) 7699 } 7700 var stringLen uint64 7701 for shift := uint(0); ; shift += 7 { 7702 if shift >= 64 { 7703 return ErrIntOverflowQuery 7704 } 7705 if iNdEx >= l { 7706 return io.ErrUnexpectedEOF 7707 } 7708 b := dAtA[iNdEx] 7709 iNdEx++ 7710 stringLen |= uint64(b&0x7F) << shift 7711 if b < 0x80 { 7712 break 7713 } 7714 } 7715 intStringLen := int(stringLen) 7716 if intStringLen < 0 { 7717 return ErrInvalidLengthQuery 7718 } 7719 postIndex := iNdEx + intStringLen 7720 if postIndex < 0 { 7721 return ErrInvalidLengthQuery 7722 } 7723 if postIndex > l { 7724 return io.ErrUnexpectedEOF 7725 } 7726 m.TokenId = string(dAtA[iNdEx:postIndex]) 7727 iNdEx = postIndex 7728 default: 7729 iNdEx = preIndex 7730 skippy, err := skipQuery(dAtA[iNdEx:]) 7731 if err != nil { 7732 return err 7733 } 7734 if (skippy < 0) || (iNdEx+skippy) < 0 { 7735 return ErrInvalidLengthQuery 7736 } 7737 if (iNdEx + skippy) > l { 7738 return io.ErrUnexpectedEOF 7739 } 7740 iNdEx += skippy 7741 } 7742 } 7743 7744 if iNdEx > l { 7745 return io.ErrUnexpectedEOF 7746 } 7747 return nil 7748 } 7749 func (m *QueryHasParentResponse) Unmarshal(dAtA []byte) error { 7750 l := len(dAtA) 7751 iNdEx := 0 7752 for iNdEx < l { 7753 preIndex := iNdEx 7754 var wire uint64 7755 for shift := uint(0); ; shift += 7 { 7756 if shift >= 64 { 7757 return ErrIntOverflowQuery 7758 } 7759 if iNdEx >= l { 7760 return io.ErrUnexpectedEOF 7761 } 7762 b := dAtA[iNdEx] 7763 iNdEx++ 7764 wire |= uint64(b&0x7F) << shift 7765 if b < 0x80 { 7766 break 7767 } 7768 } 7769 fieldNum := int32(wire >> 3) 7770 wireType := int(wire & 0x7) 7771 if wireType == 4 { 7772 return fmt.Errorf("proto: QueryHasParentResponse: wiretype end group for non-group") 7773 } 7774 if fieldNum <= 0 { 7775 return fmt.Errorf("proto: QueryHasParentResponse: illegal tag %d (wire type %d)", fieldNum, wire) 7776 } 7777 switch fieldNum { 7778 case 1: 7779 if wireType != 0 { 7780 return fmt.Errorf("proto: wrong wireType = %d for field HasParent", wireType) 7781 } 7782 var v int 7783 for shift := uint(0); ; shift += 7 { 7784 if shift >= 64 { 7785 return ErrIntOverflowQuery 7786 } 7787 if iNdEx >= l { 7788 return io.ErrUnexpectedEOF 7789 } 7790 b := dAtA[iNdEx] 7791 iNdEx++ 7792 v |= int(b&0x7F) << shift 7793 if b < 0x80 { 7794 break 7795 } 7796 } 7797 m.HasParent = bool(v != 0) 7798 default: 7799 iNdEx = preIndex 7800 skippy, err := skipQuery(dAtA[iNdEx:]) 7801 if err != nil { 7802 return err 7803 } 7804 if (skippy < 0) || (iNdEx+skippy) < 0 { 7805 return ErrInvalidLengthQuery 7806 } 7807 if (iNdEx + skippy) > l { 7808 return io.ErrUnexpectedEOF 7809 } 7810 iNdEx += skippy 7811 } 7812 } 7813 7814 if iNdEx > l { 7815 return io.ErrUnexpectedEOF 7816 } 7817 return nil 7818 } 7819 func (m *QueryParentRequest) Unmarshal(dAtA []byte) error { 7820 l := len(dAtA) 7821 iNdEx := 0 7822 for iNdEx < l { 7823 preIndex := iNdEx 7824 var wire uint64 7825 for shift := uint(0); ; shift += 7 { 7826 if shift >= 64 { 7827 return ErrIntOverflowQuery 7828 } 7829 if iNdEx >= l { 7830 return io.ErrUnexpectedEOF 7831 } 7832 b := dAtA[iNdEx] 7833 iNdEx++ 7834 wire |= uint64(b&0x7F) << shift 7835 if b < 0x80 { 7836 break 7837 } 7838 } 7839 fieldNum := int32(wire >> 3) 7840 wireType := int(wire & 0x7) 7841 if wireType == 4 { 7842 return fmt.Errorf("proto: QueryParentRequest: wiretype end group for non-group") 7843 } 7844 if fieldNum <= 0 { 7845 return fmt.Errorf("proto: QueryParentRequest: illegal tag %d (wire type %d)", fieldNum, wire) 7846 } 7847 switch fieldNum { 7848 case 1: 7849 if wireType != 2 { 7850 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 7851 } 7852 var stringLen uint64 7853 for shift := uint(0); ; shift += 7 { 7854 if shift >= 64 { 7855 return ErrIntOverflowQuery 7856 } 7857 if iNdEx >= l { 7858 return io.ErrUnexpectedEOF 7859 } 7860 b := dAtA[iNdEx] 7861 iNdEx++ 7862 stringLen |= uint64(b&0x7F) << shift 7863 if b < 0x80 { 7864 break 7865 } 7866 } 7867 intStringLen := int(stringLen) 7868 if intStringLen < 0 { 7869 return ErrInvalidLengthQuery 7870 } 7871 postIndex := iNdEx + intStringLen 7872 if postIndex < 0 { 7873 return ErrInvalidLengthQuery 7874 } 7875 if postIndex > l { 7876 return io.ErrUnexpectedEOF 7877 } 7878 m.ContractId = string(dAtA[iNdEx:postIndex]) 7879 iNdEx = postIndex 7880 case 2: 7881 if wireType != 2 { 7882 return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) 7883 } 7884 var stringLen uint64 7885 for shift := uint(0); ; shift += 7 { 7886 if shift >= 64 { 7887 return ErrIntOverflowQuery 7888 } 7889 if iNdEx >= l { 7890 return io.ErrUnexpectedEOF 7891 } 7892 b := dAtA[iNdEx] 7893 iNdEx++ 7894 stringLen |= uint64(b&0x7F) << shift 7895 if b < 0x80 { 7896 break 7897 } 7898 } 7899 intStringLen := int(stringLen) 7900 if intStringLen < 0 { 7901 return ErrInvalidLengthQuery 7902 } 7903 postIndex := iNdEx + intStringLen 7904 if postIndex < 0 { 7905 return ErrInvalidLengthQuery 7906 } 7907 if postIndex > l { 7908 return io.ErrUnexpectedEOF 7909 } 7910 m.TokenId = string(dAtA[iNdEx:postIndex]) 7911 iNdEx = postIndex 7912 default: 7913 iNdEx = preIndex 7914 skippy, err := skipQuery(dAtA[iNdEx:]) 7915 if err != nil { 7916 return err 7917 } 7918 if (skippy < 0) || (iNdEx+skippy) < 0 { 7919 return ErrInvalidLengthQuery 7920 } 7921 if (iNdEx + skippy) > l { 7922 return io.ErrUnexpectedEOF 7923 } 7924 iNdEx += skippy 7925 } 7926 } 7927 7928 if iNdEx > l { 7929 return io.ErrUnexpectedEOF 7930 } 7931 return nil 7932 } 7933 func (m *QueryParentResponse) Unmarshal(dAtA []byte) error { 7934 l := len(dAtA) 7935 iNdEx := 0 7936 for iNdEx < l { 7937 preIndex := iNdEx 7938 var wire uint64 7939 for shift := uint(0); ; shift += 7 { 7940 if shift >= 64 { 7941 return ErrIntOverflowQuery 7942 } 7943 if iNdEx >= l { 7944 return io.ErrUnexpectedEOF 7945 } 7946 b := dAtA[iNdEx] 7947 iNdEx++ 7948 wire |= uint64(b&0x7F) << shift 7949 if b < 0x80 { 7950 break 7951 } 7952 } 7953 fieldNum := int32(wire >> 3) 7954 wireType := int(wire & 0x7) 7955 if wireType == 4 { 7956 return fmt.Errorf("proto: QueryParentResponse: wiretype end group for non-group") 7957 } 7958 if fieldNum <= 0 { 7959 return fmt.Errorf("proto: QueryParentResponse: illegal tag %d (wire type %d)", fieldNum, wire) 7960 } 7961 switch fieldNum { 7962 case 1: 7963 if wireType != 2 { 7964 return fmt.Errorf("proto: wrong wireType = %d for field Parent", wireType) 7965 } 7966 var msglen int 7967 for shift := uint(0); ; shift += 7 { 7968 if shift >= 64 { 7969 return ErrIntOverflowQuery 7970 } 7971 if iNdEx >= l { 7972 return io.ErrUnexpectedEOF 7973 } 7974 b := dAtA[iNdEx] 7975 iNdEx++ 7976 msglen |= int(b&0x7F) << shift 7977 if b < 0x80 { 7978 break 7979 } 7980 } 7981 if msglen < 0 { 7982 return ErrInvalidLengthQuery 7983 } 7984 postIndex := iNdEx + msglen 7985 if postIndex < 0 { 7986 return ErrInvalidLengthQuery 7987 } 7988 if postIndex > l { 7989 return io.ErrUnexpectedEOF 7990 } 7991 if err := m.Parent.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7992 return err 7993 } 7994 iNdEx = postIndex 7995 default: 7996 iNdEx = preIndex 7997 skippy, err := skipQuery(dAtA[iNdEx:]) 7998 if err != nil { 7999 return err 8000 } 8001 if (skippy < 0) || (iNdEx+skippy) < 0 { 8002 return ErrInvalidLengthQuery 8003 } 8004 if (iNdEx + skippy) > l { 8005 return io.ErrUnexpectedEOF 8006 } 8007 iNdEx += skippy 8008 } 8009 } 8010 8011 if iNdEx > l { 8012 return io.ErrUnexpectedEOF 8013 } 8014 return nil 8015 } 8016 func (m *QueryChildrenRequest) Unmarshal(dAtA []byte) error { 8017 l := len(dAtA) 8018 iNdEx := 0 8019 for iNdEx < l { 8020 preIndex := iNdEx 8021 var wire uint64 8022 for shift := uint(0); ; shift += 7 { 8023 if shift >= 64 { 8024 return ErrIntOverflowQuery 8025 } 8026 if iNdEx >= l { 8027 return io.ErrUnexpectedEOF 8028 } 8029 b := dAtA[iNdEx] 8030 iNdEx++ 8031 wire |= uint64(b&0x7F) << shift 8032 if b < 0x80 { 8033 break 8034 } 8035 } 8036 fieldNum := int32(wire >> 3) 8037 wireType := int(wire & 0x7) 8038 if wireType == 4 { 8039 return fmt.Errorf("proto: QueryChildrenRequest: wiretype end group for non-group") 8040 } 8041 if fieldNum <= 0 { 8042 return fmt.Errorf("proto: QueryChildrenRequest: illegal tag %d (wire type %d)", fieldNum, wire) 8043 } 8044 switch fieldNum { 8045 case 1: 8046 if wireType != 2 { 8047 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 8048 } 8049 var stringLen uint64 8050 for shift := uint(0); ; shift += 7 { 8051 if shift >= 64 { 8052 return ErrIntOverflowQuery 8053 } 8054 if iNdEx >= l { 8055 return io.ErrUnexpectedEOF 8056 } 8057 b := dAtA[iNdEx] 8058 iNdEx++ 8059 stringLen |= uint64(b&0x7F) << shift 8060 if b < 0x80 { 8061 break 8062 } 8063 } 8064 intStringLen := int(stringLen) 8065 if intStringLen < 0 { 8066 return ErrInvalidLengthQuery 8067 } 8068 postIndex := iNdEx + intStringLen 8069 if postIndex < 0 { 8070 return ErrInvalidLengthQuery 8071 } 8072 if postIndex > l { 8073 return io.ErrUnexpectedEOF 8074 } 8075 m.ContractId = string(dAtA[iNdEx:postIndex]) 8076 iNdEx = postIndex 8077 case 2: 8078 if wireType != 2 { 8079 return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) 8080 } 8081 var stringLen uint64 8082 for shift := uint(0); ; shift += 7 { 8083 if shift >= 64 { 8084 return ErrIntOverflowQuery 8085 } 8086 if iNdEx >= l { 8087 return io.ErrUnexpectedEOF 8088 } 8089 b := dAtA[iNdEx] 8090 iNdEx++ 8091 stringLen |= uint64(b&0x7F) << shift 8092 if b < 0x80 { 8093 break 8094 } 8095 } 8096 intStringLen := int(stringLen) 8097 if intStringLen < 0 { 8098 return ErrInvalidLengthQuery 8099 } 8100 postIndex := iNdEx + intStringLen 8101 if postIndex < 0 { 8102 return ErrInvalidLengthQuery 8103 } 8104 if postIndex > l { 8105 return io.ErrUnexpectedEOF 8106 } 8107 m.TokenId = string(dAtA[iNdEx:postIndex]) 8108 iNdEx = postIndex 8109 case 3: 8110 if wireType != 2 { 8111 return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) 8112 } 8113 var msglen int 8114 for shift := uint(0); ; shift += 7 { 8115 if shift >= 64 { 8116 return ErrIntOverflowQuery 8117 } 8118 if iNdEx >= l { 8119 return io.ErrUnexpectedEOF 8120 } 8121 b := dAtA[iNdEx] 8122 iNdEx++ 8123 msglen |= int(b&0x7F) << shift 8124 if b < 0x80 { 8125 break 8126 } 8127 } 8128 if msglen < 0 { 8129 return ErrInvalidLengthQuery 8130 } 8131 postIndex := iNdEx + msglen 8132 if postIndex < 0 { 8133 return ErrInvalidLengthQuery 8134 } 8135 if postIndex > l { 8136 return io.ErrUnexpectedEOF 8137 } 8138 if m.Pagination == nil { 8139 m.Pagination = &query.PageRequest{} 8140 } 8141 if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 8142 return err 8143 } 8144 iNdEx = postIndex 8145 default: 8146 iNdEx = preIndex 8147 skippy, err := skipQuery(dAtA[iNdEx:]) 8148 if err != nil { 8149 return err 8150 } 8151 if (skippy < 0) || (iNdEx+skippy) < 0 { 8152 return ErrInvalidLengthQuery 8153 } 8154 if (iNdEx + skippy) > l { 8155 return io.ErrUnexpectedEOF 8156 } 8157 iNdEx += skippy 8158 } 8159 } 8160 8161 if iNdEx > l { 8162 return io.ErrUnexpectedEOF 8163 } 8164 return nil 8165 } 8166 func (m *QueryChildrenResponse) Unmarshal(dAtA []byte) error { 8167 l := len(dAtA) 8168 iNdEx := 0 8169 for iNdEx < l { 8170 preIndex := iNdEx 8171 var wire uint64 8172 for shift := uint(0); ; shift += 7 { 8173 if shift >= 64 { 8174 return ErrIntOverflowQuery 8175 } 8176 if iNdEx >= l { 8177 return io.ErrUnexpectedEOF 8178 } 8179 b := dAtA[iNdEx] 8180 iNdEx++ 8181 wire |= uint64(b&0x7F) << shift 8182 if b < 0x80 { 8183 break 8184 } 8185 } 8186 fieldNum := int32(wire >> 3) 8187 wireType := int(wire & 0x7) 8188 if wireType == 4 { 8189 return fmt.Errorf("proto: QueryChildrenResponse: wiretype end group for non-group") 8190 } 8191 if fieldNum <= 0 { 8192 return fmt.Errorf("proto: QueryChildrenResponse: illegal tag %d (wire type %d)", fieldNum, wire) 8193 } 8194 switch fieldNum { 8195 case 1: 8196 if wireType != 2 { 8197 return fmt.Errorf("proto: wrong wireType = %d for field Children", wireType) 8198 } 8199 var msglen int 8200 for shift := uint(0); ; shift += 7 { 8201 if shift >= 64 { 8202 return ErrIntOverflowQuery 8203 } 8204 if iNdEx >= l { 8205 return io.ErrUnexpectedEOF 8206 } 8207 b := dAtA[iNdEx] 8208 iNdEx++ 8209 msglen |= int(b&0x7F) << shift 8210 if b < 0x80 { 8211 break 8212 } 8213 } 8214 if msglen < 0 { 8215 return ErrInvalidLengthQuery 8216 } 8217 postIndex := iNdEx + msglen 8218 if postIndex < 0 { 8219 return ErrInvalidLengthQuery 8220 } 8221 if postIndex > l { 8222 return io.ErrUnexpectedEOF 8223 } 8224 m.Children = append(m.Children, NFT{}) 8225 if err := m.Children[len(m.Children)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 8226 return err 8227 } 8228 iNdEx = postIndex 8229 case 2: 8230 if wireType != 2 { 8231 return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) 8232 } 8233 var msglen int 8234 for shift := uint(0); ; shift += 7 { 8235 if shift >= 64 { 8236 return ErrIntOverflowQuery 8237 } 8238 if iNdEx >= l { 8239 return io.ErrUnexpectedEOF 8240 } 8241 b := dAtA[iNdEx] 8242 iNdEx++ 8243 msglen |= int(b&0x7F) << shift 8244 if b < 0x80 { 8245 break 8246 } 8247 } 8248 if msglen < 0 { 8249 return ErrInvalidLengthQuery 8250 } 8251 postIndex := iNdEx + msglen 8252 if postIndex < 0 { 8253 return ErrInvalidLengthQuery 8254 } 8255 if postIndex > l { 8256 return io.ErrUnexpectedEOF 8257 } 8258 if m.Pagination == nil { 8259 m.Pagination = &query.PageResponse{} 8260 } 8261 if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 8262 return err 8263 } 8264 iNdEx = postIndex 8265 default: 8266 iNdEx = preIndex 8267 skippy, err := skipQuery(dAtA[iNdEx:]) 8268 if err != nil { 8269 return err 8270 } 8271 if (skippy < 0) || (iNdEx+skippy) < 0 { 8272 return ErrInvalidLengthQuery 8273 } 8274 if (iNdEx + skippy) > l { 8275 return io.ErrUnexpectedEOF 8276 } 8277 iNdEx += skippy 8278 } 8279 } 8280 8281 if iNdEx > l { 8282 return io.ErrUnexpectedEOF 8283 } 8284 return nil 8285 } 8286 func (m *QueryGranteeGrantsRequest) Unmarshal(dAtA []byte) error { 8287 l := len(dAtA) 8288 iNdEx := 0 8289 for iNdEx < l { 8290 preIndex := iNdEx 8291 var wire uint64 8292 for shift := uint(0); ; shift += 7 { 8293 if shift >= 64 { 8294 return ErrIntOverflowQuery 8295 } 8296 if iNdEx >= l { 8297 return io.ErrUnexpectedEOF 8298 } 8299 b := dAtA[iNdEx] 8300 iNdEx++ 8301 wire |= uint64(b&0x7F) << shift 8302 if b < 0x80 { 8303 break 8304 } 8305 } 8306 fieldNum := int32(wire >> 3) 8307 wireType := int(wire & 0x7) 8308 if wireType == 4 { 8309 return fmt.Errorf("proto: QueryGranteeGrantsRequest: wiretype end group for non-group") 8310 } 8311 if fieldNum <= 0 { 8312 return fmt.Errorf("proto: QueryGranteeGrantsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 8313 } 8314 switch fieldNum { 8315 case 1: 8316 if wireType != 2 { 8317 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 8318 } 8319 var stringLen uint64 8320 for shift := uint(0); ; shift += 7 { 8321 if shift >= 64 { 8322 return ErrIntOverflowQuery 8323 } 8324 if iNdEx >= l { 8325 return io.ErrUnexpectedEOF 8326 } 8327 b := dAtA[iNdEx] 8328 iNdEx++ 8329 stringLen |= uint64(b&0x7F) << shift 8330 if b < 0x80 { 8331 break 8332 } 8333 } 8334 intStringLen := int(stringLen) 8335 if intStringLen < 0 { 8336 return ErrInvalidLengthQuery 8337 } 8338 postIndex := iNdEx + intStringLen 8339 if postIndex < 0 { 8340 return ErrInvalidLengthQuery 8341 } 8342 if postIndex > l { 8343 return io.ErrUnexpectedEOF 8344 } 8345 m.ContractId = string(dAtA[iNdEx:postIndex]) 8346 iNdEx = postIndex 8347 case 2: 8348 if wireType != 2 { 8349 return fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType) 8350 } 8351 var stringLen uint64 8352 for shift := uint(0); ; shift += 7 { 8353 if shift >= 64 { 8354 return ErrIntOverflowQuery 8355 } 8356 if iNdEx >= l { 8357 return io.ErrUnexpectedEOF 8358 } 8359 b := dAtA[iNdEx] 8360 iNdEx++ 8361 stringLen |= uint64(b&0x7F) << shift 8362 if b < 0x80 { 8363 break 8364 } 8365 } 8366 intStringLen := int(stringLen) 8367 if intStringLen < 0 { 8368 return ErrInvalidLengthQuery 8369 } 8370 postIndex := iNdEx + intStringLen 8371 if postIndex < 0 { 8372 return ErrInvalidLengthQuery 8373 } 8374 if postIndex > l { 8375 return io.ErrUnexpectedEOF 8376 } 8377 m.Grantee = string(dAtA[iNdEx:postIndex]) 8378 iNdEx = postIndex 8379 case 3: 8380 if wireType != 2 { 8381 return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) 8382 } 8383 var msglen int 8384 for shift := uint(0); ; shift += 7 { 8385 if shift >= 64 { 8386 return ErrIntOverflowQuery 8387 } 8388 if iNdEx >= l { 8389 return io.ErrUnexpectedEOF 8390 } 8391 b := dAtA[iNdEx] 8392 iNdEx++ 8393 msglen |= int(b&0x7F) << shift 8394 if b < 0x80 { 8395 break 8396 } 8397 } 8398 if msglen < 0 { 8399 return ErrInvalidLengthQuery 8400 } 8401 postIndex := iNdEx + msglen 8402 if postIndex < 0 { 8403 return ErrInvalidLengthQuery 8404 } 8405 if postIndex > l { 8406 return io.ErrUnexpectedEOF 8407 } 8408 if m.Pagination == nil { 8409 m.Pagination = &query.PageRequest{} 8410 } 8411 if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 8412 return err 8413 } 8414 iNdEx = postIndex 8415 default: 8416 iNdEx = preIndex 8417 skippy, err := skipQuery(dAtA[iNdEx:]) 8418 if err != nil { 8419 return err 8420 } 8421 if (skippy < 0) || (iNdEx+skippy) < 0 { 8422 return ErrInvalidLengthQuery 8423 } 8424 if (iNdEx + skippy) > l { 8425 return io.ErrUnexpectedEOF 8426 } 8427 iNdEx += skippy 8428 } 8429 } 8430 8431 if iNdEx > l { 8432 return io.ErrUnexpectedEOF 8433 } 8434 return nil 8435 } 8436 func (m *QueryGranteeGrantsResponse) Unmarshal(dAtA []byte) error { 8437 l := len(dAtA) 8438 iNdEx := 0 8439 for iNdEx < l { 8440 preIndex := iNdEx 8441 var wire uint64 8442 for shift := uint(0); ; shift += 7 { 8443 if shift >= 64 { 8444 return ErrIntOverflowQuery 8445 } 8446 if iNdEx >= l { 8447 return io.ErrUnexpectedEOF 8448 } 8449 b := dAtA[iNdEx] 8450 iNdEx++ 8451 wire |= uint64(b&0x7F) << shift 8452 if b < 0x80 { 8453 break 8454 } 8455 } 8456 fieldNum := int32(wire >> 3) 8457 wireType := int(wire & 0x7) 8458 if wireType == 4 { 8459 return fmt.Errorf("proto: QueryGranteeGrantsResponse: wiretype end group for non-group") 8460 } 8461 if fieldNum <= 0 { 8462 return fmt.Errorf("proto: QueryGranteeGrantsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 8463 } 8464 switch fieldNum { 8465 case 1: 8466 if wireType != 2 { 8467 return fmt.Errorf("proto: wrong wireType = %d for field Grants", wireType) 8468 } 8469 var msglen int 8470 for shift := uint(0); ; shift += 7 { 8471 if shift >= 64 { 8472 return ErrIntOverflowQuery 8473 } 8474 if iNdEx >= l { 8475 return io.ErrUnexpectedEOF 8476 } 8477 b := dAtA[iNdEx] 8478 iNdEx++ 8479 msglen |= int(b&0x7F) << shift 8480 if b < 0x80 { 8481 break 8482 } 8483 } 8484 if msglen < 0 { 8485 return ErrInvalidLengthQuery 8486 } 8487 postIndex := iNdEx + msglen 8488 if postIndex < 0 { 8489 return ErrInvalidLengthQuery 8490 } 8491 if postIndex > l { 8492 return io.ErrUnexpectedEOF 8493 } 8494 m.Grants = append(m.Grants, Grant{}) 8495 if err := m.Grants[len(m.Grants)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 8496 return err 8497 } 8498 iNdEx = postIndex 8499 case 2: 8500 if wireType != 2 { 8501 return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) 8502 } 8503 var msglen int 8504 for shift := uint(0); ; shift += 7 { 8505 if shift >= 64 { 8506 return ErrIntOverflowQuery 8507 } 8508 if iNdEx >= l { 8509 return io.ErrUnexpectedEOF 8510 } 8511 b := dAtA[iNdEx] 8512 iNdEx++ 8513 msglen |= int(b&0x7F) << shift 8514 if b < 0x80 { 8515 break 8516 } 8517 } 8518 if msglen < 0 { 8519 return ErrInvalidLengthQuery 8520 } 8521 postIndex := iNdEx + msglen 8522 if postIndex < 0 { 8523 return ErrInvalidLengthQuery 8524 } 8525 if postIndex > l { 8526 return io.ErrUnexpectedEOF 8527 } 8528 if m.Pagination == nil { 8529 m.Pagination = &query.PageResponse{} 8530 } 8531 if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 8532 return err 8533 } 8534 iNdEx = postIndex 8535 default: 8536 iNdEx = preIndex 8537 skippy, err := skipQuery(dAtA[iNdEx:]) 8538 if err != nil { 8539 return err 8540 } 8541 if (skippy < 0) || (iNdEx+skippy) < 0 { 8542 return ErrInvalidLengthQuery 8543 } 8544 if (iNdEx + skippy) > l { 8545 return io.ErrUnexpectedEOF 8546 } 8547 iNdEx += skippy 8548 } 8549 } 8550 8551 if iNdEx > l { 8552 return io.ErrUnexpectedEOF 8553 } 8554 return nil 8555 } 8556 func (m *QueryIsOperatorForRequest) Unmarshal(dAtA []byte) error { 8557 l := len(dAtA) 8558 iNdEx := 0 8559 for iNdEx < l { 8560 preIndex := iNdEx 8561 var wire uint64 8562 for shift := uint(0); ; shift += 7 { 8563 if shift >= 64 { 8564 return ErrIntOverflowQuery 8565 } 8566 if iNdEx >= l { 8567 return io.ErrUnexpectedEOF 8568 } 8569 b := dAtA[iNdEx] 8570 iNdEx++ 8571 wire |= uint64(b&0x7F) << shift 8572 if b < 0x80 { 8573 break 8574 } 8575 } 8576 fieldNum := int32(wire >> 3) 8577 wireType := int(wire & 0x7) 8578 if wireType == 4 { 8579 return fmt.Errorf("proto: QueryIsOperatorForRequest: wiretype end group for non-group") 8580 } 8581 if fieldNum <= 0 { 8582 return fmt.Errorf("proto: QueryIsOperatorForRequest: illegal tag %d (wire type %d)", fieldNum, wire) 8583 } 8584 switch fieldNum { 8585 case 1: 8586 if wireType != 2 { 8587 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 8588 } 8589 var stringLen uint64 8590 for shift := uint(0); ; shift += 7 { 8591 if shift >= 64 { 8592 return ErrIntOverflowQuery 8593 } 8594 if iNdEx >= l { 8595 return io.ErrUnexpectedEOF 8596 } 8597 b := dAtA[iNdEx] 8598 iNdEx++ 8599 stringLen |= uint64(b&0x7F) << shift 8600 if b < 0x80 { 8601 break 8602 } 8603 } 8604 intStringLen := int(stringLen) 8605 if intStringLen < 0 { 8606 return ErrInvalidLengthQuery 8607 } 8608 postIndex := iNdEx + intStringLen 8609 if postIndex < 0 { 8610 return ErrInvalidLengthQuery 8611 } 8612 if postIndex > l { 8613 return io.ErrUnexpectedEOF 8614 } 8615 m.ContractId = string(dAtA[iNdEx:postIndex]) 8616 iNdEx = postIndex 8617 case 2: 8618 if wireType != 2 { 8619 return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) 8620 } 8621 var stringLen uint64 8622 for shift := uint(0); ; shift += 7 { 8623 if shift >= 64 { 8624 return ErrIntOverflowQuery 8625 } 8626 if iNdEx >= l { 8627 return io.ErrUnexpectedEOF 8628 } 8629 b := dAtA[iNdEx] 8630 iNdEx++ 8631 stringLen |= uint64(b&0x7F) << shift 8632 if b < 0x80 { 8633 break 8634 } 8635 } 8636 intStringLen := int(stringLen) 8637 if intStringLen < 0 { 8638 return ErrInvalidLengthQuery 8639 } 8640 postIndex := iNdEx + intStringLen 8641 if postIndex < 0 { 8642 return ErrInvalidLengthQuery 8643 } 8644 if postIndex > l { 8645 return io.ErrUnexpectedEOF 8646 } 8647 m.Operator = string(dAtA[iNdEx:postIndex]) 8648 iNdEx = postIndex 8649 case 3: 8650 if wireType != 2 { 8651 return fmt.Errorf("proto: wrong wireType = %d for field Holder", wireType) 8652 } 8653 var stringLen uint64 8654 for shift := uint(0); ; shift += 7 { 8655 if shift >= 64 { 8656 return ErrIntOverflowQuery 8657 } 8658 if iNdEx >= l { 8659 return io.ErrUnexpectedEOF 8660 } 8661 b := dAtA[iNdEx] 8662 iNdEx++ 8663 stringLen |= uint64(b&0x7F) << shift 8664 if b < 0x80 { 8665 break 8666 } 8667 } 8668 intStringLen := int(stringLen) 8669 if intStringLen < 0 { 8670 return ErrInvalidLengthQuery 8671 } 8672 postIndex := iNdEx + intStringLen 8673 if postIndex < 0 { 8674 return ErrInvalidLengthQuery 8675 } 8676 if postIndex > l { 8677 return io.ErrUnexpectedEOF 8678 } 8679 m.Holder = string(dAtA[iNdEx:postIndex]) 8680 iNdEx = postIndex 8681 default: 8682 iNdEx = preIndex 8683 skippy, err := skipQuery(dAtA[iNdEx:]) 8684 if err != nil { 8685 return err 8686 } 8687 if (skippy < 0) || (iNdEx+skippy) < 0 { 8688 return ErrInvalidLengthQuery 8689 } 8690 if (iNdEx + skippy) > l { 8691 return io.ErrUnexpectedEOF 8692 } 8693 iNdEx += skippy 8694 } 8695 } 8696 8697 if iNdEx > l { 8698 return io.ErrUnexpectedEOF 8699 } 8700 return nil 8701 } 8702 func (m *QueryIsOperatorForResponse) Unmarshal(dAtA []byte) error { 8703 l := len(dAtA) 8704 iNdEx := 0 8705 for iNdEx < l { 8706 preIndex := iNdEx 8707 var wire uint64 8708 for shift := uint(0); ; shift += 7 { 8709 if shift >= 64 { 8710 return ErrIntOverflowQuery 8711 } 8712 if iNdEx >= l { 8713 return io.ErrUnexpectedEOF 8714 } 8715 b := dAtA[iNdEx] 8716 iNdEx++ 8717 wire |= uint64(b&0x7F) << shift 8718 if b < 0x80 { 8719 break 8720 } 8721 } 8722 fieldNum := int32(wire >> 3) 8723 wireType := int(wire & 0x7) 8724 if wireType == 4 { 8725 return fmt.Errorf("proto: QueryIsOperatorForResponse: wiretype end group for non-group") 8726 } 8727 if fieldNum <= 0 { 8728 return fmt.Errorf("proto: QueryIsOperatorForResponse: illegal tag %d (wire type %d)", fieldNum, wire) 8729 } 8730 switch fieldNum { 8731 case 1: 8732 if wireType != 0 { 8733 return fmt.Errorf("proto: wrong wireType = %d for field Authorized", wireType) 8734 } 8735 var v int 8736 for shift := uint(0); ; shift += 7 { 8737 if shift >= 64 { 8738 return ErrIntOverflowQuery 8739 } 8740 if iNdEx >= l { 8741 return io.ErrUnexpectedEOF 8742 } 8743 b := dAtA[iNdEx] 8744 iNdEx++ 8745 v |= int(b&0x7F) << shift 8746 if b < 0x80 { 8747 break 8748 } 8749 } 8750 m.Authorized = bool(v != 0) 8751 default: 8752 iNdEx = preIndex 8753 skippy, err := skipQuery(dAtA[iNdEx:]) 8754 if err != nil { 8755 return err 8756 } 8757 if (skippy < 0) || (iNdEx+skippy) < 0 { 8758 return ErrInvalidLengthQuery 8759 } 8760 if (iNdEx + skippy) > l { 8761 return io.ErrUnexpectedEOF 8762 } 8763 iNdEx += skippy 8764 } 8765 } 8766 8767 if iNdEx > l { 8768 return io.ErrUnexpectedEOF 8769 } 8770 return nil 8771 } 8772 func (m *QueryHoldersByOperatorRequest) Unmarshal(dAtA []byte) error { 8773 l := len(dAtA) 8774 iNdEx := 0 8775 for iNdEx < l { 8776 preIndex := iNdEx 8777 var wire uint64 8778 for shift := uint(0); ; shift += 7 { 8779 if shift >= 64 { 8780 return ErrIntOverflowQuery 8781 } 8782 if iNdEx >= l { 8783 return io.ErrUnexpectedEOF 8784 } 8785 b := dAtA[iNdEx] 8786 iNdEx++ 8787 wire |= uint64(b&0x7F) << shift 8788 if b < 0x80 { 8789 break 8790 } 8791 } 8792 fieldNum := int32(wire >> 3) 8793 wireType := int(wire & 0x7) 8794 if wireType == 4 { 8795 return fmt.Errorf("proto: QueryHoldersByOperatorRequest: wiretype end group for non-group") 8796 } 8797 if fieldNum <= 0 { 8798 return fmt.Errorf("proto: QueryHoldersByOperatorRequest: illegal tag %d (wire type %d)", fieldNum, wire) 8799 } 8800 switch fieldNum { 8801 case 1: 8802 if wireType != 2 { 8803 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 8804 } 8805 var stringLen uint64 8806 for shift := uint(0); ; shift += 7 { 8807 if shift >= 64 { 8808 return ErrIntOverflowQuery 8809 } 8810 if iNdEx >= l { 8811 return io.ErrUnexpectedEOF 8812 } 8813 b := dAtA[iNdEx] 8814 iNdEx++ 8815 stringLen |= uint64(b&0x7F) << shift 8816 if b < 0x80 { 8817 break 8818 } 8819 } 8820 intStringLen := int(stringLen) 8821 if intStringLen < 0 { 8822 return ErrInvalidLengthQuery 8823 } 8824 postIndex := iNdEx + intStringLen 8825 if postIndex < 0 { 8826 return ErrInvalidLengthQuery 8827 } 8828 if postIndex > l { 8829 return io.ErrUnexpectedEOF 8830 } 8831 m.ContractId = string(dAtA[iNdEx:postIndex]) 8832 iNdEx = postIndex 8833 case 2: 8834 if wireType != 2 { 8835 return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) 8836 } 8837 var stringLen uint64 8838 for shift := uint(0); ; shift += 7 { 8839 if shift >= 64 { 8840 return ErrIntOverflowQuery 8841 } 8842 if iNdEx >= l { 8843 return io.ErrUnexpectedEOF 8844 } 8845 b := dAtA[iNdEx] 8846 iNdEx++ 8847 stringLen |= uint64(b&0x7F) << shift 8848 if b < 0x80 { 8849 break 8850 } 8851 } 8852 intStringLen := int(stringLen) 8853 if intStringLen < 0 { 8854 return ErrInvalidLengthQuery 8855 } 8856 postIndex := iNdEx + intStringLen 8857 if postIndex < 0 { 8858 return ErrInvalidLengthQuery 8859 } 8860 if postIndex > l { 8861 return io.ErrUnexpectedEOF 8862 } 8863 m.Operator = string(dAtA[iNdEx:postIndex]) 8864 iNdEx = postIndex 8865 case 3: 8866 if wireType != 2 { 8867 return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) 8868 } 8869 var msglen int 8870 for shift := uint(0); ; shift += 7 { 8871 if shift >= 64 { 8872 return ErrIntOverflowQuery 8873 } 8874 if iNdEx >= l { 8875 return io.ErrUnexpectedEOF 8876 } 8877 b := dAtA[iNdEx] 8878 iNdEx++ 8879 msglen |= int(b&0x7F) << shift 8880 if b < 0x80 { 8881 break 8882 } 8883 } 8884 if msglen < 0 { 8885 return ErrInvalidLengthQuery 8886 } 8887 postIndex := iNdEx + msglen 8888 if postIndex < 0 { 8889 return ErrInvalidLengthQuery 8890 } 8891 if postIndex > l { 8892 return io.ErrUnexpectedEOF 8893 } 8894 if m.Pagination == nil { 8895 m.Pagination = &query.PageRequest{} 8896 } 8897 if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 8898 return err 8899 } 8900 iNdEx = postIndex 8901 default: 8902 iNdEx = preIndex 8903 skippy, err := skipQuery(dAtA[iNdEx:]) 8904 if err != nil { 8905 return err 8906 } 8907 if (skippy < 0) || (iNdEx+skippy) < 0 { 8908 return ErrInvalidLengthQuery 8909 } 8910 if (iNdEx + skippy) > l { 8911 return io.ErrUnexpectedEOF 8912 } 8913 iNdEx += skippy 8914 } 8915 } 8916 8917 if iNdEx > l { 8918 return io.ErrUnexpectedEOF 8919 } 8920 return nil 8921 } 8922 func (m *QueryHoldersByOperatorResponse) Unmarshal(dAtA []byte) error { 8923 l := len(dAtA) 8924 iNdEx := 0 8925 for iNdEx < l { 8926 preIndex := iNdEx 8927 var wire uint64 8928 for shift := uint(0); ; shift += 7 { 8929 if shift >= 64 { 8930 return ErrIntOverflowQuery 8931 } 8932 if iNdEx >= l { 8933 return io.ErrUnexpectedEOF 8934 } 8935 b := dAtA[iNdEx] 8936 iNdEx++ 8937 wire |= uint64(b&0x7F) << shift 8938 if b < 0x80 { 8939 break 8940 } 8941 } 8942 fieldNum := int32(wire >> 3) 8943 wireType := int(wire & 0x7) 8944 if wireType == 4 { 8945 return fmt.Errorf("proto: QueryHoldersByOperatorResponse: wiretype end group for non-group") 8946 } 8947 if fieldNum <= 0 { 8948 return fmt.Errorf("proto: QueryHoldersByOperatorResponse: illegal tag %d (wire type %d)", fieldNum, wire) 8949 } 8950 switch fieldNum { 8951 case 1: 8952 if wireType != 2 { 8953 return fmt.Errorf("proto: wrong wireType = %d for field Holders", wireType) 8954 } 8955 var stringLen uint64 8956 for shift := uint(0); ; shift += 7 { 8957 if shift >= 64 { 8958 return ErrIntOverflowQuery 8959 } 8960 if iNdEx >= l { 8961 return io.ErrUnexpectedEOF 8962 } 8963 b := dAtA[iNdEx] 8964 iNdEx++ 8965 stringLen |= uint64(b&0x7F) << shift 8966 if b < 0x80 { 8967 break 8968 } 8969 } 8970 intStringLen := int(stringLen) 8971 if intStringLen < 0 { 8972 return ErrInvalidLengthQuery 8973 } 8974 postIndex := iNdEx + intStringLen 8975 if postIndex < 0 { 8976 return ErrInvalidLengthQuery 8977 } 8978 if postIndex > l { 8979 return io.ErrUnexpectedEOF 8980 } 8981 m.Holders = append(m.Holders, string(dAtA[iNdEx:postIndex])) 8982 iNdEx = postIndex 8983 case 2: 8984 if wireType != 2 { 8985 return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) 8986 } 8987 var msglen int 8988 for shift := uint(0); ; shift += 7 { 8989 if shift >= 64 { 8990 return ErrIntOverflowQuery 8991 } 8992 if iNdEx >= l { 8993 return io.ErrUnexpectedEOF 8994 } 8995 b := dAtA[iNdEx] 8996 iNdEx++ 8997 msglen |= int(b&0x7F) << shift 8998 if b < 0x80 { 8999 break 9000 } 9001 } 9002 if msglen < 0 { 9003 return ErrInvalidLengthQuery 9004 } 9005 postIndex := iNdEx + msglen 9006 if postIndex < 0 { 9007 return ErrInvalidLengthQuery 9008 } 9009 if postIndex > l { 9010 return io.ErrUnexpectedEOF 9011 } 9012 if m.Pagination == nil { 9013 m.Pagination = &query.PageResponse{} 9014 } 9015 if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 9016 return err 9017 } 9018 iNdEx = postIndex 9019 default: 9020 iNdEx = preIndex 9021 skippy, err := skipQuery(dAtA[iNdEx:]) 9022 if err != nil { 9023 return err 9024 } 9025 if (skippy < 0) || (iNdEx+skippy) < 0 { 9026 return ErrInvalidLengthQuery 9027 } 9028 if (iNdEx + skippy) > l { 9029 return io.ErrUnexpectedEOF 9030 } 9031 iNdEx += skippy 9032 } 9033 } 9034 9035 if iNdEx > l { 9036 return io.ErrUnexpectedEOF 9037 } 9038 return nil 9039 } 9040 func skipQuery(dAtA []byte) (n int, err error) { 9041 l := len(dAtA) 9042 iNdEx := 0 9043 depth := 0 9044 for iNdEx < l { 9045 var wire uint64 9046 for shift := uint(0); ; shift += 7 { 9047 if shift >= 64 { 9048 return 0, ErrIntOverflowQuery 9049 } 9050 if iNdEx >= l { 9051 return 0, io.ErrUnexpectedEOF 9052 } 9053 b := dAtA[iNdEx] 9054 iNdEx++ 9055 wire |= (uint64(b) & 0x7F) << shift 9056 if b < 0x80 { 9057 break 9058 } 9059 } 9060 wireType := int(wire & 0x7) 9061 switch wireType { 9062 case 0: 9063 for shift := uint(0); ; shift += 7 { 9064 if shift >= 64 { 9065 return 0, ErrIntOverflowQuery 9066 } 9067 if iNdEx >= l { 9068 return 0, io.ErrUnexpectedEOF 9069 } 9070 iNdEx++ 9071 if dAtA[iNdEx-1] < 0x80 { 9072 break 9073 } 9074 } 9075 case 1: 9076 iNdEx += 8 9077 case 2: 9078 var length int 9079 for shift := uint(0); ; shift += 7 { 9080 if shift >= 64 { 9081 return 0, ErrIntOverflowQuery 9082 } 9083 if iNdEx >= l { 9084 return 0, io.ErrUnexpectedEOF 9085 } 9086 b := dAtA[iNdEx] 9087 iNdEx++ 9088 length |= (int(b) & 0x7F) << shift 9089 if b < 0x80 { 9090 break 9091 } 9092 } 9093 if length < 0 { 9094 return 0, ErrInvalidLengthQuery 9095 } 9096 iNdEx += length 9097 case 3: 9098 depth++ 9099 case 4: 9100 if depth == 0 { 9101 return 0, ErrUnexpectedEndOfGroupQuery 9102 } 9103 depth-- 9104 case 5: 9105 iNdEx += 4 9106 default: 9107 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 9108 } 9109 if iNdEx < 0 { 9110 return 0, ErrInvalidLengthQuery 9111 } 9112 if depth == 0 { 9113 return iNdEx, nil 9114 } 9115 } 9116 return 0, io.ErrUnexpectedEOF 9117 } 9118 9119 var ( 9120 ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") 9121 ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") 9122 ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") 9123 )