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