github.com/InjectiveLabs/sdk-go@v1.53.0/chain/exchange/types/query.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: injective/exchange/v1beta1/query.proto 3 4 package types 5 6 import ( 7 context "context" 8 cosmossdk_io_math "cosmossdk.io/math" 9 fmt "fmt" 10 types "github.com/InjectiveLabs/sdk-go/chain/oracle/types" 11 _ "github.com/cosmos/gogoproto/gogoproto" 12 grpc1 "github.com/cosmos/gogoproto/grpc" 13 proto "github.com/cosmos/gogoproto/proto" 14 _ "google.golang.org/genproto/googleapis/api/annotations" 15 grpc "google.golang.org/grpc" 16 codes "google.golang.org/grpc/codes" 17 status "google.golang.org/grpc/status" 18 io "io" 19 math "math" 20 math_bits "math/bits" 21 ) 22 23 // Reference imports to suppress errors if they are not otherwise used. 24 var _ = proto.Marshal 25 var _ = fmt.Errorf 26 var _ = math.Inf 27 28 // This is a compile-time assertion to ensure that this generated file 29 // is compatible with the proto package it is being compiled against. 30 // A compilation error at this line likely means your copy of the 31 // proto package needs to be updated. 32 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 33 34 type OrderSide int32 35 36 const ( 37 // will return both 38 OrderSide_Side_Unspecified OrderSide = 0 39 OrderSide_Buy OrderSide = 1 40 OrderSide_Sell OrderSide = 2 41 ) 42 43 var OrderSide_name = map[int32]string{ 44 0: "Side_Unspecified", 45 1: "Buy", 46 2: "Sell", 47 } 48 49 var OrderSide_value = map[string]int32{ 50 "Side_Unspecified": 0, 51 "Buy": 1, 52 "Sell": 2, 53 } 54 55 func (x OrderSide) String() string { 56 return proto.EnumName(OrderSide_name, int32(x)) 57 } 58 59 func (OrderSide) EnumDescriptor() ([]byte, []int) { 60 return fileDescriptor_523db28b8af54781, []int{0} 61 } 62 63 // CancellationStrategy is the list of cancellation strategies. 64 type CancellationStrategy int32 65 66 const ( 67 // just cancelling in random order in most efficient way 68 CancellationStrategy_UnspecifiedOrder CancellationStrategy = 0 69 // e.g. for buy orders from lowest to highest price 70 CancellationStrategy_FromWorstToBest CancellationStrategy = 1 71 // e.g. for buy orders from higest to lowest price 72 CancellationStrategy_FromBestToWorst CancellationStrategy = 2 73 ) 74 75 var CancellationStrategy_name = map[int32]string{ 76 0: "UnspecifiedOrder", 77 1: "FromWorstToBest", 78 2: "FromBestToWorst", 79 } 80 81 var CancellationStrategy_value = map[string]int32{ 82 "UnspecifiedOrder": 0, 83 "FromWorstToBest": 1, 84 "FromBestToWorst": 2, 85 } 86 87 func (x CancellationStrategy) String() string { 88 return proto.EnumName(CancellationStrategy_name, int32(x)) 89 } 90 91 func (CancellationStrategy) EnumDescriptor() ([]byte, []int) { 92 return fileDescriptor_523db28b8af54781, []int{1} 93 } 94 95 type Subaccount struct { 96 Trader string `protobuf:"bytes,1,opt,name=trader,proto3" json:"trader,omitempty"` 97 SubaccountNonce uint32 `protobuf:"varint,2,opt,name=subaccount_nonce,json=subaccountNonce,proto3" json:"subaccount_nonce,omitempty"` 98 } 99 100 func (m *Subaccount) Reset() { *m = Subaccount{} } 101 func (m *Subaccount) String() string { return proto.CompactTextString(m) } 102 func (*Subaccount) ProtoMessage() {} 103 func (*Subaccount) Descriptor() ([]byte, []int) { 104 return fileDescriptor_523db28b8af54781, []int{0} 105 } 106 func (m *Subaccount) XXX_Unmarshal(b []byte) error { 107 return m.Unmarshal(b) 108 } 109 func (m *Subaccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 110 if deterministic { 111 return xxx_messageInfo_Subaccount.Marshal(b, m, deterministic) 112 } else { 113 b = b[:cap(b)] 114 n, err := m.MarshalToSizedBuffer(b) 115 if err != nil { 116 return nil, err 117 } 118 return b[:n], nil 119 } 120 } 121 func (m *Subaccount) XXX_Merge(src proto.Message) { 122 xxx_messageInfo_Subaccount.Merge(m, src) 123 } 124 func (m *Subaccount) XXX_Size() int { 125 return m.Size() 126 } 127 func (m *Subaccount) XXX_DiscardUnknown() { 128 xxx_messageInfo_Subaccount.DiscardUnknown(m) 129 } 130 131 var xxx_messageInfo_Subaccount proto.InternalMessageInfo 132 133 func (m *Subaccount) GetTrader() string { 134 if m != nil { 135 return m.Trader 136 } 137 return "" 138 } 139 140 func (m *Subaccount) GetSubaccountNonce() uint32 { 141 if m != nil { 142 return m.SubaccountNonce 143 } 144 return 0 145 } 146 147 type QuerySubaccountOrdersRequest struct { 148 SubaccountId string `protobuf:"bytes,1,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"` 149 MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` 150 } 151 152 func (m *QuerySubaccountOrdersRequest) Reset() { *m = QuerySubaccountOrdersRequest{} } 153 func (m *QuerySubaccountOrdersRequest) String() string { return proto.CompactTextString(m) } 154 func (*QuerySubaccountOrdersRequest) ProtoMessage() {} 155 func (*QuerySubaccountOrdersRequest) Descriptor() ([]byte, []int) { 156 return fileDescriptor_523db28b8af54781, []int{1} 157 } 158 func (m *QuerySubaccountOrdersRequest) XXX_Unmarshal(b []byte) error { 159 return m.Unmarshal(b) 160 } 161 func (m *QuerySubaccountOrdersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 162 if deterministic { 163 return xxx_messageInfo_QuerySubaccountOrdersRequest.Marshal(b, m, deterministic) 164 } else { 165 b = b[:cap(b)] 166 n, err := m.MarshalToSizedBuffer(b) 167 if err != nil { 168 return nil, err 169 } 170 return b[:n], nil 171 } 172 } 173 func (m *QuerySubaccountOrdersRequest) XXX_Merge(src proto.Message) { 174 xxx_messageInfo_QuerySubaccountOrdersRequest.Merge(m, src) 175 } 176 func (m *QuerySubaccountOrdersRequest) XXX_Size() int { 177 return m.Size() 178 } 179 func (m *QuerySubaccountOrdersRequest) XXX_DiscardUnknown() { 180 xxx_messageInfo_QuerySubaccountOrdersRequest.DiscardUnknown(m) 181 } 182 183 var xxx_messageInfo_QuerySubaccountOrdersRequest proto.InternalMessageInfo 184 185 func (m *QuerySubaccountOrdersRequest) GetSubaccountId() string { 186 if m != nil { 187 return m.SubaccountId 188 } 189 return "" 190 } 191 192 func (m *QuerySubaccountOrdersRequest) GetMarketId() string { 193 if m != nil { 194 return m.MarketId 195 } 196 return "" 197 } 198 199 type QuerySubaccountOrdersResponse struct { 200 BuyOrders []*SubaccountOrderData `protobuf:"bytes,1,rep,name=buy_orders,json=buyOrders,proto3" json:"buy_orders,omitempty"` 201 SellOrders []*SubaccountOrderData `protobuf:"bytes,2,rep,name=sell_orders,json=sellOrders,proto3" json:"sell_orders,omitempty"` 202 } 203 204 func (m *QuerySubaccountOrdersResponse) Reset() { *m = QuerySubaccountOrdersResponse{} } 205 func (m *QuerySubaccountOrdersResponse) String() string { return proto.CompactTextString(m) } 206 func (*QuerySubaccountOrdersResponse) ProtoMessage() {} 207 func (*QuerySubaccountOrdersResponse) Descriptor() ([]byte, []int) { 208 return fileDescriptor_523db28b8af54781, []int{2} 209 } 210 func (m *QuerySubaccountOrdersResponse) XXX_Unmarshal(b []byte) error { 211 return m.Unmarshal(b) 212 } 213 func (m *QuerySubaccountOrdersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 214 if deterministic { 215 return xxx_messageInfo_QuerySubaccountOrdersResponse.Marshal(b, m, deterministic) 216 } else { 217 b = b[:cap(b)] 218 n, err := m.MarshalToSizedBuffer(b) 219 if err != nil { 220 return nil, err 221 } 222 return b[:n], nil 223 } 224 } 225 func (m *QuerySubaccountOrdersResponse) XXX_Merge(src proto.Message) { 226 xxx_messageInfo_QuerySubaccountOrdersResponse.Merge(m, src) 227 } 228 func (m *QuerySubaccountOrdersResponse) XXX_Size() int { 229 return m.Size() 230 } 231 func (m *QuerySubaccountOrdersResponse) XXX_DiscardUnknown() { 232 xxx_messageInfo_QuerySubaccountOrdersResponse.DiscardUnknown(m) 233 } 234 235 var xxx_messageInfo_QuerySubaccountOrdersResponse proto.InternalMessageInfo 236 237 func (m *QuerySubaccountOrdersResponse) GetBuyOrders() []*SubaccountOrderData { 238 if m != nil { 239 return m.BuyOrders 240 } 241 return nil 242 } 243 244 func (m *QuerySubaccountOrdersResponse) GetSellOrders() []*SubaccountOrderData { 245 if m != nil { 246 return m.SellOrders 247 } 248 return nil 249 } 250 251 type SubaccountOrderbookMetadataWithMarket struct { 252 Metadata *SubaccountOrderbookMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` 253 MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` 254 IsBuy bool `protobuf:"varint,3,opt,name=isBuy,proto3" json:"isBuy,omitempty"` 255 } 256 257 func (m *SubaccountOrderbookMetadataWithMarket) Reset() { *m = SubaccountOrderbookMetadataWithMarket{} } 258 func (m *SubaccountOrderbookMetadataWithMarket) String() string { return proto.CompactTextString(m) } 259 func (*SubaccountOrderbookMetadataWithMarket) ProtoMessage() {} 260 func (*SubaccountOrderbookMetadataWithMarket) Descriptor() ([]byte, []int) { 261 return fileDescriptor_523db28b8af54781, []int{3} 262 } 263 func (m *SubaccountOrderbookMetadataWithMarket) XXX_Unmarshal(b []byte) error { 264 return m.Unmarshal(b) 265 } 266 func (m *SubaccountOrderbookMetadataWithMarket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 267 if deterministic { 268 return xxx_messageInfo_SubaccountOrderbookMetadataWithMarket.Marshal(b, m, deterministic) 269 } else { 270 b = b[:cap(b)] 271 n, err := m.MarshalToSizedBuffer(b) 272 if err != nil { 273 return nil, err 274 } 275 return b[:n], nil 276 } 277 } 278 func (m *SubaccountOrderbookMetadataWithMarket) XXX_Merge(src proto.Message) { 279 xxx_messageInfo_SubaccountOrderbookMetadataWithMarket.Merge(m, src) 280 } 281 func (m *SubaccountOrderbookMetadataWithMarket) XXX_Size() int { 282 return m.Size() 283 } 284 func (m *SubaccountOrderbookMetadataWithMarket) XXX_DiscardUnknown() { 285 xxx_messageInfo_SubaccountOrderbookMetadataWithMarket.DiscardUnknown(m) 286 } 287 288 var xxx_messageInfo_SubaccountOrderbookMetadataWithMarket proto.InternalMessageInfo 289 290 func (m *SubaccountOrderbookMetadataWithMarket) GetMetadata() *SubaccountOrderbookMetadata { 291 if m != nil { 292 return m.Metadata 293 } 294 return nil 295 } 296 297 func (m *SubaccountOrderbookMetadataWithMarket) GetMarketId() string { 298 if m != nil { 299 return m.MarketId 300 } 301 return "" 302 } 303 304 func (m *SubaccountOrderbookMetadataWithMarket) GetIsBuy() bool { 305 if m != nil { 306 return m.IsBuy 307 } 308 return false 309 } 310 311 // QueryExchangeParamsRequest is the request type for the Query/ExchangeParams 312 // RPC method. 313 type QueryExchangeParamsRequest struct { 314 } 315 316 func (m *QueryExchangeParamsRequest) Reset() { *m = QueryExchangeParamsRequest{} } 317 func (m *QueryExchangeParamsRequest) String() string { return proto.CompactTextString(m) } 318 func (*QueryExchangeParamsRequest) ProtoMessage() {} 319 func (*QueryExchangeParamsRequest) Descriptor() ([]byte, []int) { 320 return fileDescriptor_523db28b8af54781, []int{4} 321 } 322 func (m *QueryExchangeParamsRequest) XXX_Unmarshal(b []byte) error { 323 return m.Unmarshal(b) 324 } 325 func (m *QueryExchangeParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 326 if deterministic { 327 return xxx_messageInfo_QueryExchangeParamsRequest.Marshal(b, m, deterministic) 328 } else { 329 b = b[:cap(b)] 330 n, err := m.MarshalToSizedBuffer(b) 331 if err != nil { 332 return nil, err 333 } 334 return b[:n], nil 335 } 336 } 337 func (m *QueryExchangeParamsRequest) XXX_Merge(src proto.Message) { 338 xxx_messageInfo_QueryExchangeParamsRequest.Merge(m, src) 339 } 340 func (m *QueryExchangeParamsRequest) XXX_Size() int { 341 return m.Size() 342 } 343 func (m *QueryExchangeParamsRequest) XXX_DiscardUnknown() { 344 xxx_messageInfo_QueryExchangeParamsRequest.DiscardUnknown(m) 345 } 346 347 var xxx_messageInfo_QueryExchangeParamsRequest proto.InternalMessageInfo 348 349 // QueryExchangeParamsRequest is the response type for the Query/ExchangeParams 350 // RPC method. 351 type QueryExchangeParamsResponse struct { 352 Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` 353 } 354 355 func (m *QueryExchangeParamsResponse) Reset() { *m = QueryExchangeParamsResponse{} } 356 func (m *QueryExchangeParamsResponse) String() string { return proto.CompactTextString(m) } 357 func (*QueryExchangeParamsResponse) ProtoMessage() {} 358 func (*QueryExchangeParamsResponse) Descriptor() ([]byte, []int) { 359 return fileDescriptor_523db28b8af54781, []int{5} 360 } 361 func (m *QueryExchangeParamsResponse) XXX_Unmarshal(b []byte) error { 362 return m.Unmarshal(b) 363 } 364 func (m *QueryExchangeParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 365 if deterministic { 366 return xxx_messageInfo_QueryExchangeParamsResponse.Marshal(b, m, deterministic) 367 } else { 368 b = b[:cap(b)] 369 n, err := m.MarshalToSizedBuffer(b) 370 if err != nil { 371 return nil, err 372 } 373 return b[:n], nil 374 } 375 } 376 func (m *QueryExchangeParamsResponse) XXX_Merge(src proto.Message) { 377 xxx_messageInfo_QueryExchangeParamsResponse.Merge(m, src) 378 } 379 func (m *QueryExchangeParamsResponse) XXX_Size() int { 380 return m.Size() 381 } 382 func (m *QueryExchangeParamsResponse) XXX_DiscardUnknown() { 383 xxx_messageInfo_QueryExchangeParamsResponse.DiscardUnknown(m) 384 } 385 386 var xxx_messageInfo_QueryExchangeParamsResponse proto.InternalMessageInfo 387 388 func (m *QueryExchangeParamsResponse) GetParams() Params { 389 if m != nil { 390 return m.Params 391 } 392 return Params{} 393 } 394 395 // QuerySubaccountDepositsRequest is the request type for the 396 // Query/SubaccountDeposits RPC method. 397 type QuerySubaccountDepositsRequest struct { 398 SubaccountId string `protobuf:"bytes,1,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"` 399 Subaccount *Subaccount `protobuf:"bytes,2,opt,name=subaccount,proto3" json:"subaccount,omitempty"` 400 } 401 402 func (m *QuerySubaccountDepositsRequest) Reset() { *m = QuerySubaccountDepositsRequest{} } 403 func (m *QuerySubaccountDepositsRequest) String() string { return proto.CompactTextString(m) } 404 func (*QuerySubaccountDepositsRequest) ProtoMessage() {} 405 func (*QuerySubaccountDepositsRequest) Descriptor() ([]byte, []int) { 406 return fileDescriptor_523db28b8af54781, []int{6} 407 } 408 func (m *QuerySubaccountDepositsRequest) XXX_Unmarshal(b []byte) error { 409 return m.Unmarshal(b) 410 } 411 func (m *QuerySubaccountDepositsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 412 if deterministic { 413 return xxx_messageInfo_QuerySubaccountDepositsRequest.Marshal(b, m, deterministic) 414 } else { 415 b = b[:cap(b)] 416 n, err := m.MarshalToSizedBuffer(b) 417 if err != nil { 418 return nil, err 419 } 420 return b[:n], nil 421 } 422 } 423 func (m *QuerySubaccountDepositsRequest) XXX_Merge(src proto.Message) { 424 xxx_messageInfo_QuerySubaccountDepositsRequest.Merge(m, src) 425 } 426 func (m *QuerySubaccountDepositsRequest) XXX_Size() int { 427 return m.Size() 428 } 429 func (m *QuerySubaccountDepositsRequest) XXX_DiscardUnknown() { 430 xxx_messageInfo_QuerySubaccountDepositsRequest.DiscardUnknown(m) 431 } 432 433 var xxx_messageInfo_QuerySubaccountDepositsRequest proto.InternalMessageInfo 434 435 func (m *QuerySubaccountDepositsRequest) GetSubaccountId() string { 436 if m != nil { 437 return m.SubaccountId 438 } 439 return "" 440 } 441 442 func (m *QuerySubaccountDepositsRequest) GetSubaccount() *Subaccount { 443 if m != nil { 444 return m.Subaccount 445 } 446 return nil 447 } 448 449 // QuerySubaccountDepositsResponse is the response type for the 450 // Query/SubaccountDeposits RPC method. 451 type QuerySubaccountDepositsResponse struct { 452 Deposits map[string]*Deposit `protobuf:"bytes,1,rep,name=deposits,proto3" json:"deposits,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 453 } 454 455 func (m *QuerySubaccountDepositsResponse) Reset() { *m = QuerySubaccountDepositsResponse{} } 456 func (m *QuerySubaccountDepositsResponse) String() string { return proto.CompactTextString(m) } 457 func (*QuerySubaccountDepositsResponse) ProtoMessage() {} 458 func (*QuerySubaccountDepositsResponse) Descriptor() ([]byte, []int) { 459 return fileDescriptor_523db28b8af54781, []int{7} 460 } 461 func (m *QuerySubaccountDepositsResponse) XXX_Unmarshal(b []byte) error { 462 return m.Unmarshal(b) 463 } 464 func (m *QuerySubaccountDepositsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 465 if deterministic { 466 return xxx_messageInfo_QuerySubaccountDepositsResponse.Marshal(b, m, deterministic) 467 } else { 468 b = b[:cap(b)] 469 n, err := m.MarshalToSizedBuffer(b) 470 if err != nil { 471 return nil, err 472 } 473 return b[:n], nil 474 } 475 } 476 func (m *QuerySubaccountDepositsResponse) XXX_Merge(src proto.Message) { 477 xxx_messageInfo_QuerySubaccountDepositsResponse.Merge(m, src) 478 } 479 func (m *QuerySubaccountDepositsResponse) XXX_Size() int { 480 return m.Size() 481 } 482 func (m *QuerySubaccountDepositsResponse) XXX_DiscardUnknown() { 483 xxx_messageInfo_QuerySubaccountDepositsResponse.DiscardUnknown(m) 484 } 485 486 var xxx_messageInfo_QuerySubaccountDepositsResponse proto.InternalMessageInfo 487 488 func (m *QuerySubaccountDepositsResponse) GetDeposits() map[string]*Deposit { 489 if m != nil { 490 return m.Deposits 491 } 492 return nil 493 } 494 495 // QueryExchangeBalancesRequest is the request type for the 496 // Query/ExchangeBalances RPC method. 497 type QueryExchangeBalancesRequest struct { 498 } 499 500 func (m *QueryExchangeBalancesRequest) Reset() { *m = QueryExchangeBalancesRequest{} } 501 func (m *QueryExchangeBalancesRequest) String() string { return proto.CompactTextString(m) } 502 func (*QueryExchangeBalancesRequest) ProtoMessage() {} 503 func (*QueryExchangeBalancesRequest) Descriptor() ([]byte, []int) { 504 return fileDescriptor_523db28b8af54781, []int{8} 505 } 506 func (m *QueryExchangeBalancesRequest) XXX_Unmarshal(b []byte) error { 507 return m.Unmarshal(b) 508 } 509 func (m *QueryExchangeBalancesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 510 if deterministic { 511 return xxx_messageInfo_QueryExchangeBalancesRequest.Marshal(b, m, deterministic) 512 } else { 513 b = b[:cap(b)] 514 n, err := m.MarshalToSizedBuffer(b) 515 if err != nil { 516 return nil, err 517 } 518 return b[:n], nil 519 } 520 } 521 func (m *QueryExchangeBalancesRequest) XXX_Merge(src proto.Message) { 522 xxx_messageInfo_QueryExchangeBalancesRequest.Merge(m, src) 523 } 524 func (m *QueryExchangeBalancesRequest) XXX_Size() int { 525 return m.Size() 526 } 527 func (m *QueryExchangeBalancesRequest) XXX_DiscardUnknown() { 528 xxx_messageInfo_QueryExchangeBalancesRequest.DiscardUnknown(m) 529 } 530 531 var xxx_messageInfo_QueryExchangeBalancesRequest proto.InternalMessageInfo 532 533 // QuerySubaccountDepositsResponse is the response type for the 534 // Query/SubaccountDeposits RPC method. 535 type QueryExchangeBalancesResponse struct { 536 Balances []Balance `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances"` 537 } 538 539 func (m *QueryExchangeBalancesResponse) Reset() { *m = QueryExchangeBalancesResponse{} } 540 func (m *QueryExchangeBalancesResponse) String() string { return proto.CompactTextString(m) } 541 func (*QueryExchangeBalancesResponse) ProtoMessage() {} 542 func (*QueryExchangeBalancesResponse) Descriptor() ([]byte, []int) { 543 return fileDescriptor_523db28b8af54781, []int{9} 544 } 545 func (m *QueryExchangeBalancesResponse) XXX_Unmarshal(b []byte) error { 546 return m.Unmarshal(b) 547 } 548 func (m *QueryExchangeBalancesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 549 if deterministic { 550 return xxx_messageInfo_QueryExchangeBalancesResponse.Marshal(b, m, deterministic) 551 } else { 552 b = b[:cap(b)] 553 n, err := m.MarshalToSizedBuffer(b) 554 if err != nil { 555 return nil, err 556 } 557 return b[:n], nil 558 } 559 } 560 func (m *QueryExchangeBalancesResponse) XXX_Merge(src proto.Message) { 561 xxx_messageInfo_QueryExchangeBalancesResponse.Merge(m, src) 562 } 563 func (m *QueryExchangeBalancesResponse) XXX_Size() int { 564 return m.Size() 565 } 566 func (m *QueryExchangeBalancesResponse) XXX_DiscardUnknown() { 567 xxx_messageInfo_QueryExchangeBalancesResponse.DiscardUnknown(m) 568 } 569 570 var xxx_messageInfo_QueryExchangeBalancesResponse proto.InternalMessageInfo 571 572 func (m *QueryExchangeBalancesResponse) GetBalances() []Balance { 573 if m != nil { 574 return m.Balances 575 } 576 return nil 577 } 578 579 // QueryAggregateVolumeRequest is the request type for the Query/AggregateVolume 580 // RPC method. 581 type QueryAggregateVolumeRequest struct { 582 // can either be an address or a subaccount 583 Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` 584 } 585 586 func (m *QueryAggregateVolumeRequest) Reset() { *m = QueryAggregateVolumeRequest{} } 587 func (m *QueryAggregateVolumeRequest) String() string { return proto.CompactTextString(m) } 588 func (*QueryAggregateVolumeRequest) ProtoMessage() {} 589 func (*QueryAggregateVolumeRequest) Descriptor() ([]byte, []int) { 590 return fileDescriptor_523db28b8af54781, []int{10} 591 } 592 func (m *QueryAggregateVolumeRequest) XXX_Unmarshal(b []byte) error { 593 return m.Unmarshal(b) 594 } 595 func (m *QueryAggregateVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 596 if deterministic { 597 return xxx_messageInfo_QueryAggregateVolumeRequest.Marshal(b, m, deterministic) 598 } else { 599 b = b[:cap(b)] 600 n, err := m.MarshalToSizedBuffer(b) 601 if err != nil { 602 return nil, err 603 } 604 return b[:n], nil 605 } 606 } 607 func (m *QueryAggregateVolumeRequest) XXX_Merge(src proto.Message) { 608 xxx_messageInfo_QueryAggregateVolumeRequest.Merge(m, src) 609 } 610 func (m *QueryAggregateVolumeRequest) XXX_Size() int { 611 return m.Size() 612 } 613 func (m *QueryAggregateVolumeRequest) XXX_DiscardUnknown() { 614 xxx_messageInfo_QueryAggregateVolumeRequest.DiscardUnknown(m) 615 } 616 617 var xxx_messageInfo_QueryAggregateVolumeRequest proto.InternalMessageInfo 618 619 func (m *QueryAggregateVolumeRequest) GetAccount() string { 620 if m != nil { 621 return m.Account 622 } 623 return "" 624 } 625 626 // QueryAggregateVolumeResponse is the response type for the 627 // Query/AggregateVolume RPC method. 628 type QueryAggregateVolumeResponse struct { 629 // if an address is specified, then the aggregate_volumes will aggregate the 630 // volumes across all subaccounts for the address 631 AggregateVolumes []*MarketVolume `protobuf:"bytes,1,rep,name=aggregate_volumes,json=aggregateVolumes,proto3" json:"aggregate_volumes,omitempty"` 632 } 633 634 func (m *QueryAggregateVolumeResponse) Reset() { *m = QueryAggregateVolumeResponse{} } 635 func (m *QueryAggregateVolumeResponse) String() string { return proto.CompactTextString(m) } 636 func (*QueryAggregateVolumeResponse) ProtoMessage() {} 637 func (*QueryAggregateVolumeResponse) Descriptor() ([]byte, []int) { 638 return fileDescriptor_523db28b8af54781, []int{11} 639 } 640 func (m *QueryAggregateVolumeResponse) XXX_Unmarshal(b []byte) error { 641 return m.Unmarshal(b) 642 } 643 func (m *QueryAggregateVolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 644 if deterministic { 645 return xxx_messageInfo_QueryAggregateVolumeResponse.Marshal(b, m, deterministic) 646 } else { 647 b = b[:cap(b)] 648 n, err := m.MarshalToSizedBuffer(b) 649 if err != nil { 650 return nil, err 651 } 652 return b[:n], nil 653 } 654 } 655 func (m *QueryAggregateVolumeResponse) XXX_Merge(src proto.Message) { 656 xxx_messageInfo_QueryAggregateVolumeResponse.Merge(m, src) 657 } 658 func (m *QueryAggregateVolumeResponse) XXX_Size() int { 659 return m.Size() 660 } 661 func (m *QueryAggregateVolumeResponse) XXX_DiscardUnknown() { 662 xxx_messageInfo_QueryAggregateVolumeResponse.DiscardUnknown(m) 663 } 664 665 var xxx_messageInfo_QueryAggregateVolumeResponse proto.InternalMessageInfo 666 667 func (m *QueryAggregateVolumeResponse) GetAggregateVolumes() []*MarketVolume { 668 if m != nil { 669 return m.AggregateVolumes 670 } 671 return nil 672 } 673 674 // QueryAggregateVolumesRequest is the request type for the 675 // Query/AggregateVolumes RPC method. 676 type QueryAggregateVolumesRequest struct { 677 Accounts []string `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` 678 MarketIds []string `protobuf:"bytes,2,rep,name=market_ids,json=marketIds,proto3" json:"market_ids,omitempty"` 679 } 680 681 func (m *QueryAggregateVolumesRequest) Reset() { *m = QueryAggregateVolumesRequest{} } 682 func (m *QueryAggregateVolumesRequest) String() string { return proto.CompactTextString(m) } 683 func (*QueryAggregateVolumesRequest) ProtoMessage() {} 684 func (*QueryAggregateVolumesRequest) Descriptor() ([]byte, []int) { 685 return fileDescriptor_523db28b8af54781, []int{12} 686 } 687 func (m *QueryAggregateVolumesRequest) XXX_Unmarshal(b []byte) error { 688 return m.Unmarshal(b) 689 } 690 func (m *QueryAggregateVolumesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 691 if deterministic { 692 return xxx_messageInfo_QueryAggregateVolumesRequest.Marshal(b, m, deterministic) 693 } else { 694 b = b[:cap(b)] 695 n, err := m.MarshalToSizedBuffer(b) 696 if err != nil { 697 return nil, err 698 } 699 return b[:n], nil 700 } 701 } 702 func (m *QueryAggregateVolumesRequest) XXX_Merge(src proto.Message) { 703 xxx_messageInfo_QueryAggregateVolumesRequest.Merge(m, src) 704 } 705 func (m *QueryAggregateVolumesRequest) XXX_Size() int { 706 return m.Size() 707 } 708 func (m *QueryAggregateVolumesRequest) XXX_DiscardUnknown() { 709 xxx_messageInfo_QueryAggregateVolumesRequest.DiscardUnknown(m) 710 } 711 712 var xxx_messageInfo_QueryAggregateVolumesRequest proto.InternalMessageInfo 713 714 func (m *QueryAggregateVolumesRequest) GetAccounts() []string { 715 if m != nil { 716 return m.Accounts 717 } 718 return nil 719 } 720 721 func (m *QueryAggregateVolumesRequest) GetMarketIds() []string { 722 if m != nil { 723 return m.MarketIds 724 } 725 return nil 726 } 727 728 // QueryAggregateVolumesResponse is the response type for the 729 // Query/AggregateVolumes RPC method. 730 type QueryAggregateVolumesResponse struct { 731 // the aggregate volume records for the accounts specified 732 AggregateAccountVolumes []*AggregateAccountVolumeRecord `protobuf:"bytes,1,rep,name=aggregate_account_volumes,json=aggregateAccountVolumes,proto3" json:"aggregate_account_volumes,omitempty"` 733 // the aggregate volumes for the markets specified 734 AggregateMarketVolumes []*MarketVolume `protobuf:"bytes,2,rep,name=aggregate_market_volumes,json=aggregateMarketVolumes,proto3" json:"aggregate_market_volumes,omitempty"` 735 } 736 737 func (m *QueryAggregateVolumesResponse) Reset() { *m = QueryAggregateVolumesResponse{} } 738 func (m *QueryAggregateVolumesResponse) String() string { return proto.CompactTextString(m) } 739 func (*QueryAggregateVolumesResponse) ProtoMessage() {} 740 func (*QueryAggregateVolumesResponse) Descriptor() ([]byte, []int) { 741 return fileDescriptor_523db28b8af54781, []int{13} 742 } 743 func (m *QueryAggregateVolumesResponse) XXX_Unmarshal(b []byte) error { 744 return m.Unmarshal(b) 745 } 746 func (m *QueryAggregateVolumesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 747 if deterministic { 748 return xxx_messageInfo_QueryAggregateVolumesResponse.Marshal(b, m, deterministic) 749 } else { 750 b = b[:cap(b)] 751 n, err := m.MarshalToSizedBuffer(b) 752 if err != nil { 753 return nil, err 754 } 755 return b[:n], nil 756 } 757 } 758 func (m *QueryAggregateVolumesResponse) XXX_Merge(src proto.Message) { 759 xxx_messageInfo_QueryAggregateVolumesResponse.Merge(m, src) 760 } 761 func (m *QueryAggregateVolumesResponse) XXX_Size() int { 762 return m.Size() 763 } 764 func (m *QueryAggregateVolumesResponse) XXX_DiscardUnknown() { 765 xxx_messageInfo_QueryAggregateVolumesResponse.DiscardUnknown(m) 766 } 767 768 var xxx_messageInfo_QueryAggregateVolumesResponse proto.InternalMessageInfo 769 770 func (m *QueryAggregateVolumesResponse) GetAggregateAccountVolumes() []*AggregateAccountVolumeRecord { 771 if m != nil { 772 return m.AggregateAccountVolumes 773 } 774 return nil 775 } 776 777 func (m *QueryAggregateVolumesResponse) GetAggregateMarketVolumes() []*MarketVolume { 778 if m != nil { 779 return m.AggregateMarketVolumes 780 } 781 return nil 782 } 783 784 // QueryAggregateMarketVolumeRequest is the request type for the 785 // Query/AggregateMarketVolume RPC method. 786 type QueryAggregateMarketVolumeRequest struct { 787 MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` 788 } 789 790 func (m *QueryAggregateMarketVolumeRequest) Reset() { *m = QueryAggregateMarketVolumeRequest{} } 791 func (m *QueryAggregateMarketVolumeRequest) String() string { return proto.CompactTextString(m) } 792 func (*QueryAggregateMarketVolumeRequest) ProtoMessage() {} 793 func (*QueryAggregateMarketVolumeRequest) Descriptor() ([]byte, []int) { 794 return fileDescriptor_523db28b8af54781, []int{14} 795 } 796 func (m *QueryAggregateMarketVolumeRequest) XXX_Unmarshal(b []byte) error { 797 return m.Unmarshal(b) 798 } 799 func (m *QueryAggregateMarketVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 800 if deterministic { 801 return xxx_messageInfo_QueryAggregateMarketVolumeRequest.Marshal(b, m, deterministic) 802 } else { 803 b = b[:cap(b)] 804 n, err := m.MarshalToSizedBuffer(b) 805 if err != nil { 806 return nil, err 807 } 808 return b[:n], nil 809 } 810 } 811 func (m *QueryAggregateMarketVolumeRequest) XXX_Merge(src proto.Message) { 812 xxx_messageInfo_QueryAggregateMarketVolumeRequest.Merge(m, src) 813 } 814 func (m *QueryAggregateMarketVolumeRequest) XXX_Size() int { 815 return m.Size() 816 } 817 func (m *QueryAggregateMarketVolumeRequest) XXX_DiscardUnknown() { 818 xxx_messageInfo_QueryAggregateMarketVolumeRequest.DiscardUnknown(m) 819 } 820 821 var xxx_messageInfo_QueryAggregateMarketVolumeRequest proto.InternalMessageInfo 822 823 func (m *QueryAggregateMarketVolumeRequest) GetMarketId() string { 824 if m != nil { 825 return m.MarketId 826 } 827 return "" 828 } 829 830 // QueryAggregateMarketVolumeResponse is the response type for the 831 // Query/AggregateMarketVolume RPC method. 832 type QueryAggregateMarketVolumeResponse struct { 833 Volume VolumeRecord `protobuf:"bytes,1,opt,name=volume,proto3" json:"volume"` 834 } 835 836 func (m *QueryAggregateMarketVolumeResponse) Reset() { *m = QueryAggregateMarketVolumeResponse{} } 837 func (m *QueryAggregateMarketVolumeResponse) String() string { return proto.CompactTextString(m) } 838 func (*QueryAggregateMarketVolumeResponse) ProtoMessage() {} 839 func (*QueryAggregateMarketVolumeResponse) Descriptor() ([]byte, []int) { 840 return fileDescriptor_523db28b8af54781, []int{15} 841 } 842 func (m *QueryAggregateMarketVolumeResponse) XXX_Unmarshal(b []byte) error { 843 return m.Unmarshal(b) 844 } 845 func (m *QueryAggregateMarketVolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 846 if deterministic { 847 return xxx_messageInfo_QueryAggregateMarketVolumeResponse.Marshal(b, m, deterministic) 848 } else { 849 b = b[:cap(b)] 850 n, err := m.MarshalToSizedBuffer(b) 851 if err != nil { 852 return nil, err 853 } 854 return b[:n], nil 855 } 856 } 857 func (m *QueryAggregateMarketVolumeResponse) XXX_Merge(src proto.Message) { 858 xxx_messageInfo_QueryAggregateMarketVolumeResponse.Merge(m, src) 859 } 860 func (m *QueryAggregateMarketVolumeResponse) XXX_Size() int { 861 return m.Size() 862 } 863 func (m *QueryAggregateMarketVolumeResponse) XXX_DiscardUnknown() { 864 xxx_messageInfo_QueryAggregateMarketVolumeResponse.DiscardUnknown(m) 865 } 866 867 var xxx_messageInfo_QueryAggregateMarketVolumeResponse proto.InternalMessageInfo 868 869 func (m *QueryAggregateMarketVolumeResponse) GetVolume() VolumeRecord { 870 if m != nil { 871 return m.Volume 872 } 873 return VolumeRecord{} 874 } 875 876 // QueryDenomDecimalRequest is the request type for the Query/DenomDecimal RPC 877 // method. 878 type QueryDenomDecimalRequest struct { 879 Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` 880 } 881 882 func (m *QueryDenomDecimalRequest) Reset() { *m = QueryDenomDecimalRequest{} } 883 func (m *QueryDenomDecimalRequest) String() string { return proto.CompactTextString(m) } 884 func (*QueryDenomDecimalRequest) ProtoMessage() {} 885 func (*QueryDenomDecimalRequest) Descriptor() ([]byte, []int) { 886 return fileDescriptor_523db28b8af54781, []int{16} 887 } 888 func (m *QueryDenomDecimalRequest) XXX_Unmarshal(b []byte) error { 889 return m.Unmarshal(b) 890 } 891 func (m *QueryDenomDecimalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 892 if deterministic { 893 return xxx_messageInfo_QueryDenomDecimalRequest.Marshal(b, m, deterministic) 894 } else { 895 b = b[:cap(b)] 896 n, err := m.MarshalToSizedBuffer(b) 897 if err != nil { 898 return nil, err 899 } 900 return b[:n], nil 901 } 902 } 903 func (m *QueryDenomDecimalRequest) XXX_Merge(src proto.Message) { 904 xxx_messageInfo_QueryDenomDecimalRequest.Merge(m, src) 905 } 906 func (m *QueryDenomDecimalRequest) XXX_Size() int { 907 return m.Size() 908 } 909 func (m *QueryDenomDecimalRequest) XXX_DiscardUnknown() { 910 xxx_messageInfo_QueryDenomDecimalRequest.DiscardUnknown(m) 911 } 912 913 var xxx_messageInfo_QueryDenomDecimalRequest proto.InternalMessageInfo 914 915 func (m *QueryDenomDecimalRequest) GetDenom() string { 916 if m != nil { 917 return m.Denom 918 } 919 return "" 920 } 921 922 // QueryDenomDecimalResponse is the response type for the Query/DenomDecimal RPC 923 // method. 924 type QueryDenomDecimalResponse struct { 925 Decimal uint64 `protobuf:"varint,1,opt,name=decimal,proto3" json:"decimal,omitempty"` 926 } 927 928 func (m *QueryDenomDecimalResponse) Reset() { *m = QueryDenomDecimalResponse{} } 929 func (m *QueryDenomDecimalResponse) String() string { return proto.CompactTextString(m) } 930 func (*QueryDenomDecimalResponse) ProtoMessage() {} 931 func (*QueryDenomDecimalResponse) Descriptor() ([]byte, []int) { 932 return fileDescriptor_523db28b8af54781, []int{17} 933 } 934 func (m *QueryDenomDecimalResponse) XXX_Unmarshal(b []byte) error { 935 return m.Unmarshal(b) 936 } 937 func (m *QueryDenomDecimalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 938 if deterministic { 939 return xxx_messageInfo_QueryDenomDecimalResponse.Marshal(b, m, deterministic) 940 } else { 941 b = b[:cap(b)] 942 n, err := m.MarshalToSizedBuffer(b) 943 if err != nil { 944 return nil, err 945 } 946 return b[:n], nil 947 } 948 } 949 func (m *QueryDenomDecimalResponse) XXX_Merge(src proto.Message) { 950 xxx_messageInfo_QueryDenomDecimalResponse.Merge(m, src) 951 } 952 func (m *QueryDenomDecimalResponse) XXX_Size() int { 953 return m.Size() 954 } 955 func (m *QueryDenomDecimalResponse) XXX_DiscardUnknown() { 956 xxx_messageInfo_QueryDenomDecimalResponse.DiscardUnknown(m) 957 } 958 959 var xxx_messageInfo_QueryDenomDecimalResponse proto.InternalMessageInfo 960 961 func (m *QueryDenomDecimalResponse) GetDecimal() uint64 { 962 if m != nil { 963 return m.Decimal 964 } 965 return 0 966 } 967 968 // QueryDenomDecimalsRequest is the request type for the Query/DenomDecimals RPC 969 // method. 970 type QueryDenomDecimalsRequest struct { 971 // denoms can be empty to query all denom decimals 972 Denoms []string `protobuf:"bytes,1,rep,name=denoms,proto3" json:"denoms,omitempty"` 973 } 974 975 func (m *QueryDenomDecimalsRequest) Reset() { *m = QueryDenomDecimalsRequest{} } 976 func (m *QueryDenomDecimalsRequest) String() string { return proto.CompactTextString(m) } 977 func (*QueryDenomDecimalsRequest) ProtoMessage() {} 978 func (*QueryDenomDecimalsRequest) Descriptor() ([]byte, []int) { 979 return fileDescriptor_523db28b8af54781, []int{18} 980 } 981 func (m *QueryDenomDecimalsRequest) XXX_Unmarshal(b []byte) error { 982 return m.Unmarshal(b) 983 } 984 func (m *QueryDenomDecimalsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 985 if deterministic { 986 return xxx_messageInfo_QueryDenomDecimalsRequest.Marshal(b, m, deterministic) 987 } else { 988 b = b[:cap(b)] 989 n, err := m.MarshalToSizedBuffer(b) 990 if err != nil { 991 return nil, err 992 } 993 return b[:n], nil 994 } 995 } 996 func (m *QueryDenomDecimalsRequest) XXX_Merge(src proto.Message) { 997 xxx_messageInfo_QueryDenomDecimalsRequest.Merge(m, src) 998 } 999 func (m *QueryDenomDecimalsRequest) XXX_Size() int { 1000 return m.Size() 1001 } 1002 func (m *QueryDenomDecimalsRequest) XXX_DiscardUnknown() { 1003 xxx_messageInfo_QueryDenomDecimalsRequest.DiscardUnknown(m) 1004 } 1005 1006 var xxx_messageInfo_QueryDenomDecimalsRequest proto.InternalMessageInfo 1007 1008 func (m *QueryDenomDecimalsRequest) GetDenoms() []string { 1009 if m != nil { 1010 return m.Denoms 1011 } 1012 return nil 1013 } 1014 1015 // QueryDenomDecimalsRequest is the response type for the Query/DenomDecimals 1016 // RPC method. 1017 type QueryDenomDecimalsResponse struct { 1018 DenomDecimals []DenomDecimals `protobuf:"bytes,1,rep,name=denom_decimals,json=denomDecimals,proto3" json:"denom_decimals"` 1019 } 1020 1021 func (m *QueryDenomDecimalsResponse) Reset() { *m = QueryDenomDecimalsResponse{} } 1022 func (m *QueryDenomDecimalsResponse) String() string { return proto.CompactTextString(m) } 1023 func (*QueryDenomDecimalsResponse) ProtoMessage() {} 1024 func (*QueryDenomDecimalsResponse) Descriptor() ([]byte, []int) { 1025 return fileDescriptor_523db28b8af54781, []int{19} 1026 } 1027 func (m *QueryDenomDecimalsResponse) XXX_Unmarshal(b []byte) error { 1028 return m.Unmarshal(b) 1029 } 1030 func (m *QueryDenomDecimalsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1031 if deterministic { 1032 return xxx_messageInfo_QueryDenomDecimalsResponse.Marshal(b, m, deterministic) 1033 } else { 1034 b = b[:cap(b)] 1035 n, err := m.MarshalToSizedBuffer(b) 1036 if err != nil { 1037 return nil, err 1038 } 1039 return b[:n], nil 1040 } 1041 } 1042 func (m *QueryDenomDecimalsResponse) XXX_Merge(src proto.Message) { 1043 xxx_messageInfo_QueryDenomDecimalsResponse.Merge(m, src) 1044 } 1045 func (m *QueryDenomDecimalsResponse) XXX_Size() int { 1046 return m.Size() 1047 } 1048 func (m *QueryDenomDecimalsResponse) XXX_DiscardUnknown() { 1049 xxx_messageInfo_QueryDenomDecimalsResponse.DiscardUnknown(m) 1050 } 1051 1052 var xxx_messageInfo_QueryDenomDecimalsResponse proto.InternalMessageInfo 1053 1054 func (m *QueryDenomDecimalsResponse) GetDenomDecimals() []DenomDecimals { 1055 if m != nil { 1056 return m.DenomDecimals 1057 } 1058 return nil 1059 } 1060 1061 // QueryAggregateMarketVolumesRequest is the request type for the 1062 // Query/AggregateMarketVolumes RPC method. 1063 type QueryAggregateMarketVolumesRequest struct { 1064 MarketIds []string `protobuf:"bytes,1,rep,name=market_ids,json=marketIds,proto3" json:"market_ids,omitempty"` 1065 } 1066 1067 func (m *QueryAggregateMarketVolumesRequest) Reset() { *m = QueryAggregateMarketVolumesRequest{} } 1068 func (m *QueryAggregateMarketVolumesRequest) String() string { return proto.CompactTextString(m) } 1069 func (*QueryAggregateMarketVolumesRequest) ProtoMessage() {} 1070 func (*QueryAggregateMarketVolumesRequest) Descriptor() ([]byte, []int) { 1071 return fileDescriptor_523db28b8af54781, []int{20} 1072 } 1073 func (m *QueryAggregateMarketVolumesRequest) XXX_Unmarshal(b []byte) error { 1074 return m.Unmarshal(b) 1075 } 1076 func (m *QueryAggregateMarketVolumesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1077 if deterministic { 1078 return xxx_messageInfo_QueryAggregateMarketVolumesRequest.Marshal(b, m, deterministic) 1079 } else { 1080 b = b[:cap(b)] 1081 n, err := m.MarshalToSizedBuffer(b) 1082 if err != nil { 1083 return nil, err 1084 } 1085 return b[:n], nil 1086 } 1087 } 1088 func (m *QueryAggregateMarketVolumesRequest) XXX_Merge(src proto.Message) { 1089 xxx_messageInfo_QueryAggregateMarketVolumesRequest.Merge(m, src) 1090 } 1091 func (m *QueryAggregateMarketVolumesRequest) XXX_Size() int { 1092 return m.Size() 1093 } 1094 func (m *QueryAggregateMarketVolumesRequest) XXX_DiscardUnknown() { 1095 xxx_messageInfo_QueryAggregateMarketVolumesRequest.DiscardUnknown(m) 1096 } 1097 1098 var xxx_messageInfo_QueryAggregateMarketVolumesRequest proto.InternalMessageInfo 1099 1100 func (m *QueryAggregateMarketVolumesRequest) GetMarketIds() []string { 1101 if m != nil { 1102 return m.MarketIds 1103 } 1104 return nil 1105 } 1106 1107 // QueryAggregateMarketVolumesResponse is the response type for the 1108 // Query/AggregateMarketVolumes RPC method. 1109 type QueryAggregateMarketVolumesResponse struct { 1110 // the aggregate volumes for the entire market 1111 Volumes []*MarketVolume `protobuf:"bytes,1,rep,name=volumes,proto3" json:"volumes,omitempty"` 1112 } 1113 1114 func (m *QueryAggregateMarketVolumesResponse) Reset() { *m = QueryAggregateMarketVolumesResponse{} } 1115 func (m *QueryAggregateMarketVolumesResponse) String() string { return proto.CompactTextString(m) } 1116 func (*QueryAggregateMarketVolumesResponse) ProtoMessage() {} 1117 func (*QueryAggregateMarketVolumesResponse) Descriptor() ([]byte, []int) { 1118 return fileDescriptor_523db28b8af54781, []int{21} 1119 } 1120 func (m *QueryAggregateMarketVolumesResponse) XXX_Unmarshal(b []byte) error { 1121 return m.Unmarshal(b) 1122 } 1123 func (m *QueryAggregateMarketVolumesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1124 if deterministic { 1125 return xxx_messageInfo_QueryAggregateMarketVolumesResponse.Marshal(b, m, deterministic) 1126 } else { 1127 b = b[:cap(b)] 1128 n, err := m.MarshalToSizedBuffer(b) 1129 if err != nil { 1130 return nil, err 1131 } 1132 return b[:n], nil 1133 } 1134 } 1135 func (m *QueryAggregateMarketVolumesResponse) XXX_Merge(src proto.Message) { 1136 xxx_messageInfo_QueryAggregateMarketVolumesResponse.Merge(m, src) 1137 } 1138 func (m *QueryAggregateMarketVolumesResponse) XXX_Size() int { 1139 return m.Size() 1140 } 1141 func (m *QueryAggregateMarketVolumesResponse) XXX_DiscardUnknown() { 1142 xxx_messageInfo_QueryAggregateMarketVolumesResponse.DiscardUnknown(m) 1143 } 1144 1145 var xxx_messageInfo_QueryAggregateMarketVolumesResponse proto.InternalMessageInfo 1146 1147 func (m *QueryAggregateMarketVolumesResponse) GetVolumes() []*MarketVolume { 1148 if m != nil { 1149 return m.Volumes 1150 } 1151 return nil 1152 } 1153 1154 // QuerySubaccountDepositsRequest is the request type for the 1155 // Query/SubaccountDeposits RPC method. 1156 type QuerySubaccountDepositRequest struct { 1157 SubaccountId string `protobuf:"bytes,1,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"` 1158 Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` 1159 } 1160 1161 func (m *QuerySubaccountDepositRequest) Reset() { *m = QuerySubaccountDepositRequest{} } 1162 func (m *QuerySubaccountDepositRequest) String() string { return proto.CompactTextString(m) } 1163 func (*QuerySubaccountDepositRequest) ProtoMessage() {} 1164 func (*QuerySubaccountDepositRequest) Descriptor() ([]byte, []int) { 1165 return fileDescriptor_523db28b8af54781, []int{22} 1166 } 1167 func (m *QuerySubaccountDepositRequest) XXX_Unmarshal(b []byte) error { 1168 return m.Unmarshal(b) 1169 } 1170 func (m *QuerySubaccountDepositRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1171 if deterministic { 1172 return xxx_messageInfo_QuerySubaccountDepositRequest.Marshal(b, m, deterministic) 1173 } else { 1174 b = b[:cap(b)] 1175 n, err := m.MarshalToSizedBuffer(b) 1176 if err != nil { 1177 return nil, err 1178 } 1179 return b[:n], nil 1180 } 1181 } 1182 func (m *QuerySubaccountDepositRequest) XXX_Merge(src proto.Message) { 1183 xxx_messageInfo_QuerySubaccountDepositRequest.Merge(m, src) 1184 } 1185 func (m *QuerySubaccountDepositRequest) XXX_Size() int { 1186 return m.Size() 1187 } 1188 func (m *QuerySubaccountDepositRequest) XXX_DiscardUnknown() { 1189 xxx_messageInfo_QuerySubaccountDepositRequest.DiscardUnknown(m) 1190 } 1191 1192 var xxx_messageInfo_QuerySubaccountDepositRequest proto.InternalMessageInfo 1193 1194 func (m *QuerySubaccountDepositRequest) GetSubaccountId() string { 1195 if m != nil { 1196 return m.SubaccountId 1197 } 1198 return "" 1199 } 1200 1201 func (m *QuerySubaccountDepositRequest) GetDenom() string { 1202 if m != nil { 1203 return m.Denom 1204 } 1205 return "" 1206 } 1207 1208 // QuerySubaccountDepositsResponse is the response type for the 1209 // Query/SubaccountDeposits RPC method. 1210 type QuerySubaccountDepositResponse struct { 1211 Deposits *Deposit `protobuf:"bytes,1,opt,name=deposits,proto3" json:"deposits,omitempty"` 1212 } 1213 1214 func (m *QuerySubaccountDepositResponse) Reset() { *m = QuerySubaccountDepositResponse{} } 1215 func (m *QuerySubaccountDepositResponse) String() string { return proto.CompactTextString(m) } 1216 func (*QuerySubaccountDepositResponse) ProtoMessage() {} 1217 func (*QuerySubaccountDepositResponse) Descriptor() ([]byte, []int) { 1218 return fileDescriptor_523db28b8af54781, []int{23} 1219 } 1220 func (m *QuerySubaccountDepositResponse) XXX_Unmarshal(b []byte) error { 1221 return m.Unmarshal(b) 1222 } 1223 func (m *QuerySubaccountDepositResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1224 if deterministic { 1225 return xxx_messageInfo_QuerySubaccountDepositResponse.Marshal(b, m, deterministic) 1226 } else { 1227 b = b[:cap(b)] 1228 n, err := m.MarshalToSizedBuffer(b) 1229 if err != nil { 1230 return nil, err 1231 } 1232 return b[:n], nil 1233 } 1234 } 1235 func (m *QuerySubaccountDepositResponse) XXX_Merge(src proto.Message) { 1236 xxx_messageInfo_QuerySubaccountDepositResponse.Merge(m, src) 1237 } 1238 func (m *QuerySubaccountDepositResponse) XXX_Size() int { 1239 return m.Size() 1240 } 1241 func (m *QuerySubaccountDepositResponse) XXX_DiscardUnknown() { 1242 xxx_messageInfo_QuerySubaccountDepositResponse.DiscardUnknown(m) 1243 } 1244 1245 var xxx_messageInfo_QuerySubaccountDepositResponse proto.InternalMessageInfo 1246 1247 func (m *QuerySubaccountDepositResponse) GetDeposits() *Deposit { 1248 if m != nil { 1249 return m.Deposits 1250 } 1251 return nil 1252 } 1253 1254 // QuerySpotMarketsRequest is the request type for the Query/SpotMarkets RPC 1255 // method. 1256 type QuerySpotMarketsRequest struct { 1257 // Status of the market, for convenience it is set to string - not enum 1258 Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` 1259 // Filter by market IDs 1260 MarketIds []string `protobuf:"bytes,2,rep,name=market_ids,json=marketIds,proto3" json:"market_ids,omitempty"` 1261 } 1262 1263 func (m *QuerySpotMarketsRequest) Reset() { *m = QuerySpotMarketsRequest{} } 1264 func (m *QuerySpotMarketsRequest) String() string { return proto.CompactTextString(m) } 1265 func (*QuerySpotMarketsRequest) ProtoMessage() {} 1266 func (*QuerySpotMarketsRequest) Descriptor() ([]byte, []int) { 1267 return fileDescriptor_523db28b8af54781, []int{24} 1268 } 1269 func (m *QuerySpotMarketsRequest) XXX_Unmarshal(b []byte) error { 1270 return m.Unmarshal(b) 1271 } 1272 func (m *QuerySpotMarketsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1273 if deterministic { 1274 return xxx_messageInfo_QuerySpotMarketsRequest.Marshal(b, m, deterministic) 1275 } else { 1276 b = b[:cap(b)] 1277 n, err := m.MarshalToSizedBuffer(b) 1278 if err != nil { 1279 return nil, err 1280 } 1281 return b[:n], nil 1282 } 1283 } 1284 func (m *QuerySpotMarketsRequest) XXX_Merge(src proto.Message) { 1285 xxx_messageInfo_QuerySpotMarketsRequest.Merge(m, src) 1286 } 1287 func (m *QuerySpotMarketsRequest) XXX_Size() int { 1288 return m.Size() 1289 } 1290 func (m *QuerySpotMarketsRequest) XXX_DiscardUnknown() { 1291 xxx_messageInfo_QuerySpotMarketsRequest.DiscardUnknown(m) 1292 } 1293 1294 var xxx_messageInfo_QuerySpotMarketsRequest proto.InternalMessageInfo 1295 1296 func (m *QuerySpotMarketsRequest) GetStatus() string { 1297 if m != nil { 1298 return m.Status 1299 } 1300 return "" 1301 } 1302 1303 func (m *QuerySpotMarketsRequest) GetMarketIds() []string { 1304 if m != nil { 1305 return m.MarketIds 1306 } 1307 return nil 1308 } 1309 1310 // QuerySpotMarketsResponse is the response type for the Query/SpotMarkets RPC 1311 // method. 1312 type QuerySpotMarketsResponse struct { 1313 Markets []*SpotMarket `protobuf:"bytes,1,rep,name=markets,proto3" json:"markets,omitempty"` 1314 } 1315 1316 func (m *QuerySpotMarketsResponse) Reset() { *m = QuerySpotMarketsResponse{} } 1317 func (m *QuerySpotMarketsResponse) String() string { return proto.CompactTextString(m) } 1318 func (*QuerySpotMarketsResponse) ProtoMessage() {} 1319 func (*QuerySpotMarketsResponse) Descriptor() ([]byte, []int) { 1320 return fileDescriptor_523db28b8af54781, []int{25} 1321 } 1322 func (m *QuerySpotMarketsResponse) XXX_Unmarshal(b []byte) error { 1323 return m.Unmarshal(b) 1324 } 1325 func (m *QuerySpotMarketsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1326 if deterministic { 1327 return xxx_messageInfo_QuerySpotMarketsResponse.Marshal(b, m, deterministic) 1328 } else { 1329 b = b[:cap(b)] 1330 n, err := m.MarshalToSizedBuffer(b) 1331 if err != nil { 1332 return nil, err 1333 } 1334 return b[:n], nil 1335 } 1336 } 1337 func (m *QuerySpotMarketsResponse) XXX_Merge(src proto.Message) { 1338 xxx_messageInfo_QuerySpotMarketsResponse.Merge(m, src) 1339 } 1340 func (m *QuerySpotMarketsResponse) XXX_Size() int { 1341 return m.Size() 1342 } 1343 func (m *QuerySpotMarketsResponse) XXX_DiscardUnknown() { 1344 xxx_messageInfo_QuerySpotMarketsResponse.DiscardUnknown(m) 1345 } 1346 1347 var xxx_messageInfo_QuerySpotMarketsResponse proto.InternalMessageInfo 1348 1349 func (m *QuerySpotMarketsResponse) GetMarkets() []*SpotMarket { 1350 if m != nil { 1351 return m.Markets 1352 } 1353 return nil 1354 } 1355 1356 // QuerySpotMarketRequest is the request type for the Query/SpotMarket RPC 1357 // method. 1358 type QuerySpotMarketRequest struct { 1359 // Market ID for the market 1360 MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` 1361 } 1362 1363 func (m *QuerySpotMarketRequest) Reset() { *m = QuerySpotMarketRequest{} } 1364 func (m *QuerySpotMarketRequest) String() string { return proto.CompactTextString(m) } 1365 func (*QuerySpotMarketRequest) ProtoMessage() {} 1366 func (*QuerySpotMarketRequest) Descriptor() ([]byte, []int) { 1367 return fileDescriptor_523db28b8af54781, []int{26} 1368 } 1369 func (m *QuerySpotMarketRequest) XXX_Unmarshal(b []byte) error { 1370 return m.Unmarshal(b) 1371 } 1372 func (m *QuerySpotMarketRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1373 if deterministic { 1374 return xxx_messageInfo_QuerySpotMarketRequest.Marshal(b, m, deterministic) 1375 } else { 1376 b = b[:cap(b)] 1377 n, err := m.MarshalToSizedBuffer(b) 1378 if err != nil { 1379 return nil, err 1380 } 1381 return b[:n], nil 1382 } 1383 } 1384 func (m *QuerySpotMarketRequest) XXX_Merge(src proto.Message) { 1385 xxx_messageInfo_QuerySpotMarketRequest.Merge(m, src) 1386 } 1387 func (m *QuerySpotMarketRequest) XXX_Size() int { 1388 return m.Size() 1389 } 1390 func (m *QuerySpotMarketRequest) XXX_DiscardUnknown() { 1391 xxx_messageInfo_QuerySpotMarketRequest.DiscardUnknown(m) 1392 } 1393 1394 var xxx_messageInfo_QuerySpotMarketRequest proto.InternalMessageInfo 1395 1396 func (m *QuerySpotMarketRequest) GetMarketId() string { 1397 if m != nil { 1398 return m.MarketId 1399 } 1400 return "" 1401 } 1402 1403 // QuerySpotMarketResponse is the response type for the Query/SpotMarket RPC 1404 // method. 1405 type QuerySpotMarketResponse struct { 1406 Market *SpotMarket `protobuf:"bytes,1,opt,name=market,proto3" json:"market,omitempty"` 1407 } 1408 1409 func (m *QuerySpotMarketResponse) Reset() { *m = QuerySpotMarketResponse{} } 1410 func (m *QuerySpotMarketResponse) String() string { return proto.CompactTextString(m) } 1411 func (*QuerySpotMarketResponse) ProtoMessage() {} 1412 func (*QuerySpotMarketResponse) Descriptor() ([]byte, []int) { 1413 return fileDescriptor_523db28b8af54781, []int{27} 1414 } 1415 func (m *QuerySpotMarketResponse) XXX_Unmarshal(b []byte) error { 1416 return m.Unmarshal(b) 1417 } 1418 func (m *QuerySpotMarketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1419 if deterministic { 1420 return xxx_messageInfo_QuerySpotMarketResponse.Marshal(b, m, deterministic) 1421 } else { 1422 b = b[:cap(b)] 1423 n, err := m.MarshalToSizedBuffer(b) 1424 if err != nil { 1425 return nil, err 1426 } 1427 return b[:n], nil 1428 } 1429 } 1430 func (m *QuerySpotMarketResponse) XXX_Merge(src proto.Message) { 1431 xxx_messageInfo_QuerySpotMarketResponse.Merge(m, src) 1432 } 1433 func (m *QuerySpotMarketResponse) XXX_Size() int { 1434 return m.Size() 1435 } 1436 func (m *QuerySpotMarketResponse) XXX_DiscardUnknown() { 1437 xxx_messageInfo_QuerySpotMarketResponse.DiscardUnknown(m) 1438 } 1439 1440 var xxx_messageInfo_QuerySpotMarketResponse proto.InternalMessageInfo 1441 1442 func (m *QuerySpotMarketResponse) GetMarket() *SpotMarket { 1443 if m != nil { 1444 return m.Market 1445 } 1446 return nil 1447 } 1448 1449 // QuerySpotOrderbookRequest is the request type for the Query/SpotOrderbook RPC 1450 // method. 1451 type QuerySpotOrderbookRequest struct { 1452 // Market ID for the market 1453 MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` 1454 Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` 1455 OrderSide OrderSide `protobuf:"varint,3,opt,name=order_side,json=orderSide,proto3,enum=injective.exchange.v1beta1.OrderSide" json:"order_side,omitempty"` 1456 LimitCumulativeNotional *cosmossdk_io_math.LegacyDec `protobuf:"bytes,4,opt,name=limit_cumulative_notional,json=limitCumulativeNotional,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"limit_cumulative_notional,omitempty"` 1457 LimitCumulativeQuantity *cosmossdk_io_math.LegacyDec `protobuf:"bytes,5,opt,name=limit_cumulative_quantity,json=limitCumulativeQuantity,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"limit_cumulative_quantity,omitempty"` 1458 } 1459 1460 func (m *QuerySpotOrderbookRequest) Reset() { *m = QuerySpotOrderbookRequest{} } 1461 func (m *QuerySpotOrderbookRequest) String() string { return proto.CompactTextString(m) } 1462 func (*QuerySpotOrderbookRequest) ProtoMessage() {} 1463 func (*QuerySpotOrderbookRequest) Descriptor() ([]byte, []int) { 1464 return fileDescriptor_523db28b8af54781, []int{28} 1465 } 1466 func (m *QuerySpotOrderbookRequest) XXX_Unmarshal(b []byte) error { 1467 return m.Unmarshal(b) 1468 } 1469 func (m *QuerySpotOrderbookRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1470 if deterministic { 1471 return xxx_messageInfo_QuerySpotOrderbookRequest.Marshal(b, m, deterministic) 1472 } else { 1473 b = b[:cap(b)] 1474 n, err := m.MarshalToSizedBuffer(b) 1475 if err != nil { 1476 return nil, err 1477 } 1478 return b[:n], nil 1479 } 1480 } 1481 func (m *QuerySpotOrderbookRequest) XXX_Merge(src proto.Message) { 1482 xxx_messageInfo_QuerySpotOrderbookRequest.Merge(m, src) 1483 } 1484 func (m *QuerySpotOrderbookRequest) XXX_Size() int { 1485 return m.Size() 1486 } 1487 func (m *QuerySpotOrderbookRequest) XXX_DiscardUnknown() { 1488 xxx_messageInfo_QuerySpotOrderbookRequest.DiscardUnknown(m) 1489 } 1490 1491 var xxx_messageInfo_QuerySpotOrderbookRequest proto.InternalMessageInfo 1492 1493 func (m *QuerySpotOrderbookRequest) GetMarketId() string { 1494 if m != nil { 1495 return m.MarketId 1496 } 1497 return "" 1498 } 1499 1500 func (m *QuerySpotOrderbookRequest) GetLimit() uint64 { 1501 if m != nil { 1502 return m.Limit 1503 } 1504 return 0 1505 } 1506 1507 func (m *QuerySpotOrderbookRequest) GetOrderSide() OrderSide { 1508 if m != nil { 1509 return m.OrderSide 1510 } 1511 return OrderSide_Side_Unspecified 1512 } 1513 1514 // QuerySpotOrderbookResponse is the response type for the Query/SpotOrderbook 1515 // RPC method. 1516 type QuerySpotOrderbookResponse struct { 1517 BuysPriceLevel []*Level `protobuf:"bytes,1,rep,name=buys_price_level,json=buysPriceLevel,proto3" json:"buys_price_level,omitempty"` 1518 SellsPriceLevel []*Level `protobuf:"bytes,2,rep,name=sells_price_level,json=sellsPriceLevel,proto3" json:"sells_price_level,omitempty"` 1519 } 1520 1521 func (m *QuerySpotOrderbookResponse) Reset() { *m = QuerySpotOrderbookResponse{} } 1522 func (m *QuerySpotOrderbookResponse) String() string { return proto.CompactTextString(m) } 1523 func (*QuerySpotOrderbookResponse) ProtoMessage() {} 1524 func (*QuerySpotOrderbookResponse) Descriptor() ([]byte, []int) { 1525 return fileDescriptor_523db28b8af54781, []int{29} 1526 } 1527 func (m *QuerySpotOrderbookResponse) XXX_Unmarshal(b []byte) error { 1528 return m.Unmarshal(b) 1529 } 1530 func (m *QuerySpotOrderbookResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1531 if deterministic { 1532 return xxx_messageInfo_QuerySpotOrderbookResponse.Marshal(b, m, deterministic) 1533 } else { 1534 b = b[:cap(b)] 1535 n, err := m.MarshalToSizedBuffer(b) 1536 if err != nil { 1537 return nil, err 1538 } 1539 return b[:n], nil 1540 } 1541 } 1542 func (m *QuerySpotOrderbookResponse) XXX_Merge(src proto.Message) { 1543 xxx_messageInfo_QuerySpotOrderbookResponse.Merge(m, src) 1544 } 1545 func (m *QuerySpotOrderbookResponse) XXX_Size() int { 1546 return m.Size() 1547 } 1548 func (m *QuerySpotOrderbookResponse) XXX_DiscardUnknown() { 1549 xxx_messageInfo_QuerySpotOrderbookResponse.DiscardUnknown(m) 1550 } 1551 1552 var xxx_messageInfo_QuerySpotOrderbookResponse proto.InternalMessageInfo 1553 1554 func (m *QuerySpotOrderbookResponse) GetBuysPriceLevel() []*Level { 1555 if m != nil { 1556 return m.BuysPriceLevel 1557 } 1558 return nil 1559 } 1560 1561 func (m *QuerySpotOrderbookResponse) GetSellsPriceLevel() []*Level { 1562 if m != nil { 1563 return m.SellsPriceLevel 1564 } 1565 return nil 1566 } 1567 1568 type FullSpotMarket struct { 1569 Market *SpotMarket `protobuf:"bytes,1,opt,name=market,proto3" json:"market,omitempty"` 1570 // mid_price_and_tob defines the mid price for this market and the best ask 1571 // and bid orders 1572 MidPriceAndTob *MidPriceAndTOB `protobuf:"bytes,2,opt,name=mid_price_and_tob,json=midPriceAndTob,proto3" json:"mid_price_and_tob,omitempty"` 1573 } 1574 1575 func (m *FullSpotMarket) Reset() { *m = FullSpotMarket{} } 1576 func (m *FullSpotMarket) String() string { return proto.CompactTextString(m) } 1577 func (*FullSpotMarket) ProtoMessage() {} 1578 func (*FullSpotMarket) Descriptor() ([]byte, []int) { 1579 return fileDescriptor_523db28b8af54781, []int{30} 1580 } 1581 func (m *FullSpotMarket) XXX_Unmarshal(b []byte) error { 1582 return m.Unmarshal(b) 1583 } 1584 func (m *FullSpotMarket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1585 if deterministic { 1586 return xxx_messageInfo_FullSpotMarket.Marshal(b, m, deterministic) 1587 } else { 1588 b = b[:cap(b)] 1589 n, err := m.MarshalToSizedBuffer(b) 1590 if err != nil { 1591 return nil, err 1592 } 1593 return b[:n], nil 1594 } 1595 } 1596 func (m *FullSpotMarket) XXX_Merge(src proto.Message) { 1597 xxx_messageInfo_FullSpotMarket.Merge(m, src) 1598 } 1599 func (m *FullSpotMarket) XXX_Size() int { 1600 return m.Size() 1601 } 1602 func (m *FullSpotMarket) XXX_DiscardUnknown() { 1603 xxx_messageInfo_FullSpotMarket.DiscardUnknown(m) 1604 } 1605 1606 var xxx_messageInfo_FullSpotMarket proto.InternalMessageInfo 1607 1608 func (m *FullSpotMarket) GetMarket() *SpotMarket { 1609 if m != nil { 1610 return m.Market 1611 } 1612 return nil 1613 } 1614 1615 func (m *FullSpotMarket) GetMidPriceAndTob() *MidPriceAndTOB { 1616 if m != nil { 1617 return m.MidPriceAndTob 1618 } 1619 return nil 1620 } 1621 1622 // QueryFullSpotMarketsRequest is the request type for the Query/FullSpotMarkets 1623 // RPC method. 1624 type QueryFullSpotMarketsRequest struct { 1625 // Status of the market, for convenience it is set to string - not enum 1626 Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` 1627 // Filter by market IDs 1628 MarketIds []string `protobuf:"bytes,2,rep,name=market_ids,json=marketIds,proto3" json:"market_ids,omitempty"` 1629 // Flag to return the markets mid price and top of the book buy and sell 1630 // orders. 1631 WithMidPriceAndTob bool `protobuf:"varint,3,opt,name=with_mid_price_and_tob,json=withMidPriceAndTob,proto3" json:"with_mid_price_and_tob,omitempty"` 1632 } 1633 1634 func (m *QueryFullSpotMarketsRequest) Reset() { *m = QueryFullSpotMarketsRequest{} } 1635 func (m *QueryFullSpotMarketsRequest) String() string { return proto.CompactTextString(m) } 1636 func (*QueryFullSpotMarketsRequest) ProtoMessage() {} 1637 func (*QueryFullSpotMarketsRequest) Descriptor() ([]byte, []int) { 1638 return fileDescriptor_523db28b8af54781, []int{31} 1639 } 1640 func (m *QueryFullSpotMarketsRequest) XXX_Unmarshal(b []byte) error { 1641 return m.Unmarshal(b) 1642 } 1643 func (m *QueryFullSpotMarketsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1644 if deterministic { 1645 return xxx_messageInfo_QueryFullSpotMarketsRequest.Marshal(b, m, deterministic) 1646 } else { 1647 b = b[:cap(b)] 1648 n, err := m.MarshalToSizedBuffer(b) 1649 if err != nil { 1650 return nil, err 1651 } 1652 return b[:n], nil 1653 } 1654 } 1655 func (m *QueryFullSpotMarketsRequest) XXX_Merge(src proto.Message) { 1656 xxx_messageInfo_QueryFullSpotMarketsRequest.Merge(m, src) 1657 } 1658 func (m *QueryFullSpotMarketsRequest) XXX_Size() int { 1659 return m.Size() 1660 } 1661 func (m *QueryFullSpotMarketsRequest) XXX_DiscardUnknown() { 1662 xxx_messageInfo_QueryFullSpotMarketsRequest.DiscardUnknown(m) 1663 } 1664 1665 var xxx_messageInfo_QueryFullSpotMarketsRequest proto.InternalMessageInfo 1666 1667 func (m *QueryFullSpotMarketsRequest) GetStatus() string { 1668 if m != nil { 1669 return m.Status 1670 } 1671 return "" 1672 } 1673 1674 func (m *QueryFullSpotMarketsRequest) GetMarketIds() []string { 1675 if m != nil { 1676 return m.MarketIds 1677 } 1678 return nil 1679 } 1680 1681 func (m *QueryFullSpotMarketsRequest) GetWithMidPriceAndTob() bool { 1682 if m != nil { 1683 return m.WithMidPriceAndTob 1684 } 1685 return false 1686 } 1687 1688 // QueryFullSpotMarketsResponse is the response type for the 1689 // Query/FullSpotMarkets RPC method. 1690 type QueryFullSpotMarketsResponse struct { 1691 Markets []*FullSpotMarket `protobuf:"bytes,1,rep,name=markets,proto3" json:"markets,omitempty"` 1692 } 1693 1694 func (m *QueryFullSpotMarketsResponse) Reset() { *m = QueryFullSpotMarketsResponse{} } 1695 func (m *QueryFullSpotMarketsResponse) String() string { return proto.CompactTextString(m) } 1696 func (*QueryFullSpotMarketsResponse) ProtoMessage() {} 1697 func (*QueryFullSpotMarketsResponse) Descriptor() ([]byte, []int) { 1698 return fileDescriptor_523db28b8af54781, []int{32} 1699 } 1700 func (m *QueryFullSpotMarketsResponse) XXX_Unmarshal(b []byte) error { 1701 return m.Unmarshal(b) 1702 } 1703 func (m *QueryFullSpotMarketsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1704 if deterministic { 1705 return xxx_messageInfo_QueryFullSpotMarketsResponse.Marshal(b, m, deterministic) 1706 } else { 1707 b = b[:cap(b)] 1708 n, err := m.MarshalToSizedBuffer(b) 1709 if err != nil { 1710 return nil, err 1711 } 1712 return b[:n], nil 1713 } 1714 } 1715 func (m *QueryFullSpotMarketsResponse) XXX_Merge(src proto.Message) { 1716 xxx_messageInfo_QueryFullSpotMarketsResponse.Merge(m, src) 1717 } 1718 func (m *QueryFullSpotMarketsResponse) XXX_Size() int { 1719 return m.Size() 1720 } 1721 func (m *QueryFullSpotMarketsResponse) XXX_DiscardUnknown() { 1722 xxx_messageInfo_QueryFullSpotMarketsResponse.DiscardUnknown(m) 1723 } 1724 1725 var xxx_messageInfo_QueryFullSpotMarketsResponse proto.InternalMessageInfo 1726 1727 func (m *QueryFullSpotMarketsResponse) GetMarkets() []*FullSpotMarket { 1728 if m != nil { 1729 return m.Markets 1730 } 1731 return nil 1732 } 1733 1734 // QuerySpotMarketRequest is the request type for the Query/SpotMarket RPC 1735 // method. 1736 type QueryFullSpotMarketRequest struct { 1737 // Market ID for the market 1738 MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` 1739 // Flag to return the markets mid price and top of the book buy and sell 1740 // orders. 1741 WithMidPriceAndTob bool `protobuf:"varint,2,opt,name=with_mid_price_and_tob,json=withMidPriceAndTob,proto3" json:"with_mid_price_and_tob,omitempty"` 1742 } 1743 1744 func (m *QueryFullSpotMarketRequest) Reset() { *m = QueryFullSpotMarketRequest{} } 1745 func (m *QueryFullSpotMarketRequest) String() string { return proto.CompactTextString(m) } 1746 func (*QueryFullSpotMarketRequest) ProtoMessage() {} 1747 func (*QueryFullSpotMarketRequest) Descriptor() ([]byte, []int) { 1748 return fileDescriptor_523db28b8af54781, []int{33} 1749 } 1750 func (m *QueryFullSpotMarketRequest) XXX_Unmarshal(b []byte) error { 1751 return m.Unmarshal(b) 1752 } 1753 func (m *QueryFullSpotMarketRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1754 if deterministic { 1755 return xxx_messageInfo_QueryFullSpotMarketRequest.Marshal(b, m, deterministic) 1756 } else { 1757 b = b[:cap(b)] 1758 n, err := m.MarshalToSizedBuffer(b) 1759 if err != nil { 1760 return nil, err 1761 } 1762 return b[:n], nil 1763 } 1764 } 1765 func (m *QueryFullSpotMarketRequest) XXX_Merge(src proto.Message) { 1766 xxx_messageInfo_QueryFullSpotMarketRequest.Merge(m, src) 1767 } 1768 func (m *QueryFullSpotMarketRequest) XXX_Size() int { 1769 return m.Size() 1770 } 1771 func (m *QueryFullSpotMarketRequest) XXX_DiscardUnknown() { 1772 xxx_messageInfo_QueryFullSpotMarketRequest.DiscardUnknown(m) 1773 } 1774 1775 var xxx_messageInfo_QueryFullSpotMarketRequest proto.InternalMessageInfo 1776 1777 func (m *QueryFullSpotMarketRequest) GetMarketId() string { 1778 if m != nil { 1779 return m.MarketId 1780 } 1781 return "" 1782 } 1783 1784 func (m *QueryFullSpotMarketRequest) GetWithMidPriceAndTob() bool { 1785 if m != nil { 1786 return m.WithMidPriceAndTob 1787 } 1788 return false 1789 } 1790 1791 // QuerySpotMarketResponse is the response type for the Query/SpotMarket RPC 1792 // method. 1793 type QueryFullSpotMarketResponse struct { 1794 Market *FullSpotMarket `protobuf:"bytes,1,opt,name=market,proto3" json:"market,omitempty"` 1795 } 1796 1797 func (m *QueryFullSpotMarketResponse) Reset() { *m = QueryFullSpotMarketResponse{} } 1798 func (m *QueryFullSpotMarketResponse) String() string { return proto.CompactTextString(m) } 1799 func (*QueryFullSpotMarketResponse) ProtoMessage() {} 1800 func (*QueryFullSpotMarketResponse) Descriptor() ([]byte, []int) { 1801 return fileDescriptor_523db28b8af54781, []int{34} 1802 } 1803 func (m *QueryFullSpotMarketResponse) XXX_Unmarshal(b []byte) error { 1804 return m.Unmarshal(b) 1805 } 1806 func (m *QueryFullSpotMarketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1807 if deterministic { 1808 return xxx_messageInfo_QueryFullSpotMarketResponse.Marshal(b, m, deterministic) 1809 } else { 1810 b = b[:cap(b)] 1811 n, err := m.MarshalToSizedBuffer(b) 1812 if err != nil { 1813 return nil, err 1814 } 1815 return b[:n], nil 1816 } 1817 } 1818 func (m *QueryFullSpotMarketResponse) XXX_Merge(src proto.Message) { 1819 xxx_messageInfo_QueryFullSpotMarketResponse.Merge(m, src) 1820 } 1821 func (m *QueryFullSpotMarketResponse) XXX_Size() int { 1822 return m.Size() 1823 } 1824 func (m *QueryFullSpotMarketResponse) XXX_DiscardUnknown() { 1825 xxx_messageInfo_QueryFullSpotMarketResponse.DiscardUnknown(m) 1826 } 1827 1828 var xxx_messageInfo_QueryFullSpotMarketResponse proto.InternalMessageInfo 1829 1830 func (m *QueryFullSpotMarketResponse) GetMarket() *FullSpotMarket { 1831 if m != nil { 1832 return m.Market 1833 } 1834 return nil 1835 } 1836 1837 // QuerySpotOrdersByHashesRequest is the request type for the 1838 // Query/SpotOrdersByHashes RPC method. 1839 type QuerySpotOrdersByHashesRequest struct { 1840 // Market ID for the market 1841 MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` 1842 // SubaccountID of the trader 1843 SubaccountId string `protobuf:"bytes,2,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"` 1844 // the order hashes 1845 OrderHashes []string `protobuf:"bytes,3,rep,name=order_hashes,json=orderHashes,proto3" json:"order_hashes,omitempty"` 1846 } 1847 1848 func (m *QuerySpotOrdersByHashesRequest) Reset() { *m = QuerySpotOrdersByHashesRequest{} } 1849 func (m *QuerySpotOrdersByHashesRequest) String() string { return proto.CompactTextString(m) } 1850 func (*QuerySpotOrdersByHashesRequest) ProtoMessage() {} 1851 func (*QuerySpotOrdersByHashesRequest) Descriptor() ([]byte, []int) { 1852 return fileDescriptor_523db28b8af54781, []int{35} 1853 } 1854 func (m *QuerySpotOrdersByHashesRequest) XXX_Unmarshal(b []byte) error { 1855 return m.Unmarshal(b) 1856 } 1857 func (m *QuerySpotOrdersByHashesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1858 if deterministic { 1859 return xxx_messageInfo_QuerySpotOrdersByHashesRequest.Marshal(b, m, deterministic) 1860 } else { 1861 b = b[:cap(b)] 1862 n, err := m.MarshalToSizedBuffer(b) 1863 if err != nil { 1864 return nil, err 1865 } 1866 return b[:n], nil 1867 } 1868 } 1869 func (m *QuerySpotOrdersByHashesRequest) XXX_Merge(src proto.Message) { 1870 xxx_messageInfo_QuerySpotOrdersByHashesRequest.Merge(m, src) 1871 } 1872 func (m *QuerySpotOrdersByHashesRequest) XXX_Size() int { 1873 return m.Size() 1874 } 1875 func (m *QuerySpotOrdersByHashesRequest) XXX_DiscardUnknown() { 1876 xxx_messageInfo_QuerySpotOrdersByHashesRequest.DiscardUnknown(m) 1877 } 1878 1879 var xxx_messageInfo_QuerySpotOrdersByHashesRequest proto.InternalMessageInfo 1880 1881 func (m *QuerySpotOrdersByHashesRequest) GetMarketId() string { 1882 if m != nil { 1883 return m.MarketId 1884 } 1885 return "" 1886 } 1887 1888 func (m *QuerySpotOrdersByHashesRequest) GetSubaccountId() string { 1889 if m != nil { 1890 return m.SubaccountId 1891 } 1892 return "" 1893 } 1894 1895 func (m *QuerySpotOrdersByHashesRequest) GetOrderHashes() []string { 1896 if m != nil { 1897 return m.OrderHashes 1898 } 1899 return nil 1900 } 1901 1902 // QuerySpotOrdersByHashesResponse is the response type for the 1903 // Query/SpotOrdersByHashes RPC method. 1904 type QuerySpotOrdersByHashesResponse struct { 1905 Orders []*TrimmedSpotLimitOrder `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"` 1906 } 1907 1908 func (m *QuerySpotOrdersByHashesResponse) Reset() { *m = QuerySpotOrdersByHashesResponse{} } 1909 func (m *QuerySpotOrdersByHashesResponse) String() string { return proto.CompactTextString(m) } 1910 func (*QuerySpotOrdersByHashesResponse) ProtoMessage() {} 1911 func (*QuerySpotOrdersByHashesResponse) Descriptor() ([]byte, []int) { 1912 return fileDescriptor_523db28b8af54781, []int{36} 1913 } 1914 func (m *QuerySpotOrdersByHashesResponse) XXX_Unmarshal(b []byte) error { 1915 return m.Unmarshal(b) 1916 } 1917 func (m *QuerySpotOrdersByHashesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1918 if deterministic { 1919 return xxx_messageInfo_QuerySpotOrdersByHashesResponse.Marshal(b, m, deterministic) 1920 } else { 1921 b = b[:cap(b)] 1922 n, err := m.MarshalToSizedBuffer(b) 1923 if err != nil { 1924 return nil, err 1925 } 1926 return b[:n], nil 1927 } 1928 } 1929 func (m *QuerySpotOrdersByHashesResponse) XXX_Merge(src proto.Message) { 1930 xxx_messageInfo_QuerySpotOrdersByHashesResponse.Merge(m, src) 1931 } 1932 func (m *QuerySpotOrdersByHashesResponse) XXX_Size() int { 1933 return m.Size() 1934 } 1935 func (m *QuerySpotOrdersByHashesResponse) XXX_DiscardUnknown() { 1936 xxx_messageInfo_QuerySpotOrdersByHashesResponse.DiscardUnknown(m) 1937 } 1938 1939 var xxx_messageInfo_QuerySpotOrdersByHashesResponse proto.InternalMessageInfo 1940 1941 func (m *QuerySpotOrdersByHashesResponse) GetOrders() []*TrimmedSpotLimitOrder { 1942 if m != nil { 1943 return m.Orders 1944 } 1945 return nil 1946 } 1947 1948 // QueryTraderSpotOrdersRequest is the request type for the 1949 // Query/TraderSpotOrders RPC method. 1950 type QueryTraderSpotOrdersRequest struct { 1951 // Market ID for the market 1952 MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` 1953 // SubaccountID of the trader 1954 SubaccountId string `protobuf:"bytes,2,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"` 1955 } 1956 1957 func (m *QueryTraderSpotOrdersRequest) Reset() { *m = QueryTraderSpotOrdersRequest{} } 1958 func (m *QueryTraderSpotOrdersRequest) String() string { return proto.CompactTextString(m) } 1959 func (*QueryTraderSpotOrdersRequest) ProtoMessage() {} 1960 func (*QueryTraderSpotOrdersRequest) Descriptor() ([]byte, []int) { 1961 return fileDescriptor_523db28b8af54781, []int{37} 1962 } 1963 func (m *QueryTraderSpotOrdersRequest) XXX_Unmarshal(b []byte) error { 1964 return m.Unmarshal(b) 1965 } 1966 func (m *QueryTraderSpotOrdersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1967 if deterministic { 1968 return xxx_messageInfo_QueryTraderSpotOrdersRequest.Marshal(b, m, deterministic) 1969 } else { 1970 b = b[:cap(b)] 1971 n, err := m.MarshalToSizedBuffer(b) 1972 if err != nil { 1973 return nil, err 1974 } 1975 return b[:n], nil 1976 } 1977 } 1978 func (m *QueryTraderSpotOrdersRequest) XXX_Merge(src proto.Message) { 1979 xxx_messageInfo_QueryTraderSpotOrdersRequest.Merge(m, src) 1980 } 1981 func (m *QueryTraderSpotOrdersRequest) XXX_Size() int { 1982 return m.Size() 1983 } 1984 func (m *QueryTraderSpotOrdersRequest) XXX_DiscardUnknown() { 1985 xxx_messageInfo_QueryTraderSpotOrdersRequest.DiscardUnknown(m) 1986 } 1987 1988 var xxx_messageInfo_QueryTraderSpotOrdersRequest proto.InternalMessageInfo 1989 1990 func (m *QueryTraderSpotOrdersRequest) GetMarketId() string { 1991 if m != nil { 1992 return m.MarketId 1993 } 1994 return "" 1995 } 1996 1997 func (m *QueryTraderSpotOrdersRequest) GetSubaccountId() string { 1998 if m != nil { 1999 return m.SubaccountId 2000 } 2001 return "" 2002 } 2003 2004 // QueryAccountAddressSpotOrdersRequest is the request type for the 2005 // Query/AccountAddressSpotOrders RPC method. 2006 type QueryAccountAddressSpotOrdersRequest struct { 2007 // Market ID for the market 2008 MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` 2009 // Account address of the trader 2010 AccountAddress string `protobuf:"bytes,2,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"` 2011 } 2012 2013 func (m *QueryAccountAddressSpotOrdersRequest) Reset() { *m = QueryAccountAddressSpotOrdersRequest{} } 2014 func (m *QueryAccountAddressSpotOrdersRequest) String() string { return proto.CompactTextString(m) } 2015 func (*QueryAccountAddressSpotOrdersRequest) ProtoMessage() {} 2016 func (*QueryAccountAddressSpotOrdersRequest) Descriptor() ([]byte, []int) { 2017 return fileDescriptor_523db28b8af54781, []int{38} 2018 } 2019 func (m *QueryAccountAddressSpotOrdersRequest) XXX_Unmarshal(b []byte) error { 2020 return m.Unmarshal(b) 2021 } 2022 func (m *QueryAccountAddressSpotOrdersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2023 if deterministic { 2024 return xxx_messageInfo_QueryAccountAddressSpotOrdersRequest.Marshal(b, m, deterministic) 2025 } else { 2026 b = b[:cap(b)] 2027 n, err := m.MarshalToSizedBuffer(b) 2028 if err != nil { 2029 return nil, err 2030 } 2031 return b[:n], nil 2032 } 2033 } 2034 func (m *QueryAccountAddressSpotOrdersRequest) XXX_Merge(src proto.Message) { 2035 xxx_messageInfo_QueryAccountAddressSpotOrdersRequest.Merge(m, src) 2036 } 2037 func (m *QueryAccountAddressSpotOrdersRequest) XXX_Size() int { 2038 return m.Size() 2039 } 2040 func (m *QueryAccountAddressSpotOrdersRequest) XXX_DiscardUnknown() { 2041 xxx_messageInfo_QueryAccountAddressSpotOrdersRequest.DiscardUnknown(m) 2042 } 2043 2044 var xxx_messageInfo_QueryAccountAddressSpotOrdersRequest proto.InternalMessageInfo 2045 2046 func (m *QueryAccountAddressSpotOrdersRequest) GetMarketId() string { 2047 if m != nil { 2048 return m.MarketId 2049 } 2050 return "" 2051 } 2052 2053 func (m *QueryAccountAddressSpotOrdersRequest) GetAccountAddress() string { 2054 if m != nil { 2055 return m.AccountAddress 2056 } 2057 return "" 2058 } 2059 2060 type TrimmedSpotLimitOrder struct { 2061 // price of the order 2062 Price cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=price,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"price"` 2063 // quantity of the order 2064 Quantity cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=quantity,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"quantity"` 2065 // the amount of the quantity remaining fillable 2066 Fillable cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=fillable,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"fillable"` 2067 // true if the order is a buy 2068 IsBuy bool `protobuf:"varint,4,opt,name=isBuy,proto3" json:"isBuy,omitempty"` 2069 OrderHash string `protobuf:"bytes,5,opt,name=order_hash,json=orderHash,proto3" json:"order_hash,omitempty"` 2070 Cid string `protobuf:"bytes,6,opt,name=cid,proto3" json:"cid,omitempty"` 2071 } 2072 2073 func (m *TrimmedSpotLimitOrder) Reset() { *m = TrimmedSpotLimitOrder{} } 2074 func (m *TrimmedSpotLimitOrder) String() string { return proto.CompactTextString(m) } 2075 func (*TrimmedSpotLimitOrder) ProtoMessage() {} 2076 func (*TrimmedSpotLimitOrder) Descriptor() ([]byte, []int) { 2077 return fileDescriptor_523db28b8af54781, []int{39} 2078 } 2079 func (m *TrimmedSpotLimitOrder) XXX_Unmarshal(b []byte) error { 2080 return m.Unmarshal(b) 2081 } 2082 func (m *TrimmedSpotLimitOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2083 if deterministic { 2084 return xxx_messageInfo_TrimmedSpotLimitOrder.Marshal(b, m, deterministic) 2085 } else { 2086 b = b[:cap(b)] 2087 n, err := m.MarshalToSizedBuffer(b) 2088 if err != nil { 2089 return nil, err 2090 } 2091 return b[:n], nil 2092 } 2093 } 2094 func (m *TrimmedSpotLimitOrder) XXX_Merge(src proto.Message) { 2095 xxx_messageInfo_TrimmedSpotLimitOrder.Merge(m, src) 2096 } 2097 func (m *TrimmedSpotLimitOrder) XXX_Size() int { 2098 return m.Size() 2099 } 2100 func (m *TrimmedSpotLimitOrder) XXX_DiscardUnknown() { 2101 xxx_messageInfo_TrimmedSpotLimitOrder.DiscardUnknown(m) 2102 } 2103 2104 var xxx_messageInfo_TrimmedSpotLimitOrder proto.InternalMessageInfo 2105 2106 func (m *TrimmedSpotLimitOrder) GetIsBuy() bool { 2107 if m != nil { 2108 return m.IsBuy 2109 } 2110 return false 2111 } 2112 2113 func (m *TrimmedSpotLimitOrder) GetOrderHash() string { 2114 if m != nil { 2115 return m.OrderHash 2116 } 2117 return "" 2118 } 2119 2120 func (m *TrimmedSpotLimitOrder) GetCid() string { 2121 if m != nil { 2122 return m.Cid 2123 } 2124 return "" 2125 } 2126 2127 // QueryTraderSpotOrdersResponse is the response type for the 2128 // Query/TraderSpotOrders RPC method. 2129 type QueryTraderSpotOrdersResponse struct { 2130 Orders []*TrimmedSpotLimitOrder `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"` 2131 } 2132 2133 func (m *QueryTraderSpotOrdersResponse) Reset() { *m = QueryTraderSpotOrdersResponse{} } 2134 func (m *QueryTraderSpotOrdersResponse) String() string { return proto.CompactTextString(m) } 2135 func (*QueryTraderSpotOrdersResponse) ProtoMessage() {} 2136 func (*QueryTraderSpotOrdersResponse) Descriptor() ([]byte, []int) { 2137 return fileDescriptor_523db28b8af54781, []int{40} 2138 } 2139 func (m *QueryTraderSpotOrdersResponse) XXX_Unmarshal(b []byte) error { 2140 return m.Unmarshal(b) 2141 } 2142 func (m *QueryTraderSpotOrdersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2143 if deterministic { 2144 return xxx_messageInfo_QueryTraderSpotOrdersResponse.Marshal(b, m, deterministic) 2145 } else { 2146 b = b[:cap(b)] 2147 n, err := m.MarshalToSizedBuffer(b) 2148 if err != nil { 2149 return nil, err 2150 } 2151 return b[:n], nil 2152 } 2153 } 2154 func (m *QueryTraderSpotOrdersResponse) XXX_Merge(src proto.Message) { 2155 xxx_messageInfo_QueryTraderSpotOrdersResponse.Merge(m, src) 2156 } 2157 func (m *QueryTraderSpotOrdersResponse) XXX_Size() int { 2158 return m.Size() 2159 } 2160 func (m *QueryTraderSpotOrdersResponse) XXX_DiscardUnknown() { 2161 xxx_messageInfo_QueryTraderSpotOrdersResponse.DiscardUnknown(m) 2162 } 2163 2164 var xxx_messageInfo_QueryTraderSpotOrdersResponse proto.InternalMessageInfo 2165 2166 func (m *QueryTraderSpotOrdersResponse) GetOrders() []*TrimmedSpotLimitOrder { 2167 if m != nil { 2168 return m.Orders 2169 } 2170 return nil 2171 } 2172 2173 // QueryAccountAddressSpotOrdersResponse is the response type for the 2174 // Query/AccountAddressSpotOrders RPC method. 2175 type QueryAccountAddressSpotOrdersResponse struct { 2176 Orders []*TrimmedSpotLimitOrder `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"` 2177 } 2178 2179 func (m *QueryAccountAddressSpotOrdersResponse) Reset() { *m = QueryAccountAddressSpotOrdersResponse{} } 2180 func (m *QueryAccountAddressSpotOrdersResponse) String() string { return proto.CompactTextString(m) } 2181 func (*QueryAccountAddressSpotOrdersResponse) ProtoMessage() {} 2182 func (*QueryAccountAddressSpotOrdersResponse) Descriptor() ([]byte, []int) { 2183 return fileDescriptor_523db28b8af54781, []int{41} 2184 } 2185 func (m *QueryAccountAddressSpotOrdersResponse) XXX_Unmarshal(b []byte) error { 2186 return m.Unmarshal(b) 2187 } 2188 func (m *QueryAccountAddressSpotOrdersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2189 if deterministic { 2190 return xxx_messageInfo_QueryAccountAddressSpotOrdersResponse.Marshal(b, m, deterministic) 2191 } else { 2192 b = b[:cap(b)] 2193 n, err := m.MarshalToSizedBuffer(b) 2194 if err != nil { 2195 return nil, err 2196 } 2197 return b[:n], nil 2198 } 2199 } 2200 func (m *QueryAccountAddressSpotOrdersResponse) XXX_Merge(src proto.Message) { 2201 xxx_messageInfo_QueryAccountAddressSpotOrdersResponse.Merge(m, src) 2202 } 2203 func (m *QueryAccountAddressSpotOrdersResponse) XXX_Size() int { 2204 return m.Size() 2205 } 2206 func (m *QueryAccountAddressSpotOrdersResponse) XXX_DiscardUnknown() { 2207 xxx_messageInfo_QueryAccountAddressSpotOrdersResponse.DiscardUnknown(m) 2208 } 2209 2210 var xxx_messageInfo_QueryAccountAddressSpotOrdersResponse proto.InternalMessageInfo 2211 2212 func (m *QueryAccountAddressSpotOrdersResponse) GetOrders() []*TrimmedSpotLimitOrder { 2213 if m != nil { 2214 return m.Orders 2215 } 2216 return nil 2217 } 2218 2219 // QuerySpotMidPriceAndTOBRequest is the request type for the 2220 // Query/SpotMidPriceAndTOB RPC method. 2221 type QuerySpotMidPriceAndTOBRequest struct { 2222 // Market ID for the market 2223 MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` 2224 } 2225 2226 func (m *QuerySpotMidPriceAndTOBRequest) Reset() { *m = QuerySpotMidPriceAndTOBRequest{} } 2227 func (m *QuerySpotMidPriceAndTOBRequest) String() string { return proto.CompactTextString(m) } 2228 func (*QuerySpotMidPriceAndTOBRequest) ProtoMessage() {} 2229 func (*QuerySpotMidPriceAndTOBRequest) Descriptor() ([]byte, []int) { 2230 return fileDescriptor_523db28b8af54781, []int{42} 2231 } 2232 func (m *QuerySpotMidPriceAndTOBRequest) XXX_Unmarshal(b []byte) error { 2233 return m.Unmarshal(b) 2234 } 2235 func (m *QuerySpotMidPriceAndTOBRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2236 if deterministic { 2237 return xxx_messageInfo_QuerySpotMidPriceAndTOBRequest.Marshal(b, m, deterministic) 2238 } else { 2239 b = b[:cap(b)] 2240 n, err := m.MarshalToSizedBuffer(b) 2241 if err != nil { 2242 return nil, err 2243 } 2244 return b[:n], nil 2245 } 2246 } 2247 func (m *QuerySpotMidPriceAndTOBRequest) XXX_Merge(src proto.Message) { 2248 xxx_messageInfo_QuerySpotMidPriceAndTOBRequest.Merge(m, src) 2249 } 2250 func (m *QuerySpotMidPriceAndTOBRequest) XXX_Size() int { 2251 return m.Size() 2252 } 2253 func (m *QuerySpotMidPriceAndTOBRequest) XXX_DiscardUnknown() { 2254 xxx_messageInfo_QuerySpotMidPriceAndTOBRequest.DiscardUnknown(m) 2255 } 2256 2257 var xxx_messageInfo_QuerySpotMidPriceAndTOBRequest proto.InternalMessageInfo 2258 2259 func (m *QuerySpotMidPriceAndTOBRequest) GetMarketId() string { 2260 if m != nil { 2261 return m.MarketId 2262 } 2263 return "" 2264 } 2265 2266 // QuerySpotMidPriceAndTOBResponse is the response type for the 2267 // Query/SpotMidPriceAndTOB RPC method. 2268 type QuerySpotMidPriceAndTOBResponse struct { 2269 // mid price of the market 2270 MidPrice *cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=mid_price,json=midPrice,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"mid_price,omitempty"` 2271 // best buy price of the market 2272 BestBuyPrice *cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=best_buy_price,json=bestBuyPrice,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"best_buy_price,omitempty"` 2273 // best sell price of the market 2274 BestSellPrice *cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=best_sell_price,json=bestSellPrice,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"best_sell_price,omitempty"` 2275 } 2276 2277 func (m *QuerySpotMidPriceAndTOBResponse) Reset() { *m = QuerySpotMidPriceAndTOBResponse{} } 2278 func (m *QuerySpotMidPriceAndTOBResponse) String() string { return proto.CompactTextString(m) } 2279 func (*QuerySpotMidPriceAndTOBResponse) ProtoMessage() {} 2280 func (*QuerySpotMidPriceAndTOBResponse) Descriptor() ([]byte, []int) { 2281 return fileDescriptor_523db28b8af54781, []int{43} 2282 } 2283 func (m *QuerySpotMidPriceAndTOBResponse) XXX_Unmarshal(b []byte) error { 2284 return m.Unmarshal(b) 2285 } 2286 func (m *QuerySpotMidPriceAndTOBResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2287 if deterministic { 2288 return xxx_messageInfo_QuerySpotMidPriceAndTOBResponse.Marshal(b, m, deterministic) 2289 } else { 2290 b = b[:cap(b)] 2291 n, err := m.MarshalToSizedBuffer(b) 2292 if err != nil { 2293 return nil, err 2294 } 2295 return b[:n], nil 2296 } 2297 } 2298 func (m *QuerySpotMidPriceAndTOBResponse) XXX_Merge(src proto.Message) { 2299 xxx_messageInfo_QuerySpotMidPriceAndTOBResponse.Merge(m, src) 2300 } 2301 func (m *QuerySpotMidPriceAndTOBResponse) XXX_Size() int { 2302 return m.Size() 2303 } 2304 func (m *QuerySpotMidPriceAndTOBResponse) XXX_DiscardUnknown() { 2305 xxx_messageInfo_QuerySpotMidPriceAndTOBResponse.DiscardUnknown(m) 2306 } 2307 2308 var xxx_messageInfo_QuerySpotMidPriceAndTOBResponse proto.InternalMessageInfo 2309 2310 // QueryDerivativeMidPriceAndTOBRequest is the request type for the 2311 // Query/GetDerivativeMidPriceAndTOB RPC method. 2312 type QueryDerivativeMidPriceAndTOBRequest struct { 2313 // Market ID for the market 2314 MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` 2315 } 2316 2317 func (m *QueryDerivativeMidPriceAndTOBRequest) Reset() { *m = QueryDerivativeMidPriceAndTOBRequest{} } 2318 func (m *QueryDerivativeMidPriceAndTOBRequest) String() string { return proto.CompactTextString(m) } 2319 func (*QueryDerivativeMidPriceAndTOBRequest) ProtoMessage() {} 2320 func (*QueryDerivativeMidPriceAndTOBRequest) Descriptor() ([]byte, []int) { 2321 return fileDescriptor_523db28b8af54781, []int{44} 2322 } 2323 func (m *QueryDerivativeMidPriceAndTOBRequest) XXX_Unmarshal(b []byte) error { 2324 return m.Unmarshal(b) 2325 } 2326 func (m *QueryDerivativeMidPriceAndTOBRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2327 if deterministic { 2328 return xxx_messageInfo_QueryDerivativeMidPriceAndTOBRequest.Marshal(b, m, deterministic) 2329 } else { 2330 b = b[:cap(b)] 2331 n, err := m.MarshalToSizedBuffer(b) 2332 if err != nil { 2333 return nil, err 2334 } 2335 return b[:n], nil 2336 } 2337 } 2338 func (m *QueryDerivativeMidPriceAndTOBRequest) XXX_Merge(src proto.Message) { 2339 xxx_messageInfo_QueryDerivativeMidPriceAndTOBRequest.Merge(m, src) 2340 } 2341 func (m *QueryDerivativeMidPriceAndTOBRequest) XXX_Size() int { 2342 return m.Size() 2343 } 2344 func (m *QueryDerivativeMidPriceAndTOBRequest) XXX_DiscardUnknown() { 2345 xxx_messageInfo_QueryDerivativeMidPriceAndTOBRequest.DiscardUnknown(m) 2346 } 2347 2348 var xxx_messageInfo_QueryDerivativeMidPriceAndTOBRequest proto.InternalMessageInfo 2349 2350 func (m *QueryDerivativeMidPriceAndTOBRequest) GetMarketId() string { 2351 if m != nil { 2352 return m.MarketId 2353 } 2354 return "" 2355 } 2356 2357 // QueryDerivativeMidPriceAndTOBResponse is the response type for the 2358 // Query/GetDerivativeMidPriceAndTOB RPC method. 2359 type QueryDerivativeMidPriceAndTOBResponse struct { 2360 // mid price of the market 2361 MidPrice *cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=mid_price,json=midPrice,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"mid_price,omitempty"` 2362 // best buy price of the market 2363 BestBuyPrice *cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=best_buy_price,json=bestBuyPrice,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"best_buy_price,omitempty"` 2364 // best sell price of the market 2365 BestSellPrice *cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=best_sell_price,json=bestSellPrice,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"best_sell_price,omitempty"` 2366 } 2367 2368 func (m *QueryDerivativeMidPriceAndTOBResponse) Reset() { *m = QueryDerivativeMidPriceAndTOBResponse{} } 2369 func (m *QueryDerivativeMidPriceAndTOBResponse) String() string { return proto.CompactTextString(m) } 2370 func (*QueryDerivativeMidPriceAndTOBResponse) ProtoMessage() {} 2371 func (*QueryDerivativeMidPriceAndTOBResponse) Descriptor() ([]byte, []int) { 2372 return fileDescriptor_523db28b8af54781, []int{45} 2373 } 2374 func (m *QueryDerivativeMidPriceAndTOBResponse) XXX_Unmarshal(b []byte) error { 2375 return m.Unmarshal(b) 2376 } 2377 func (m *QueryDerivativeMidPriceAndTOBResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2378 if deterministic { 2379 return xxx_messageInfo_QueryDerivativeMidPriceAndTOBResponse.Marshal(b, m, deterministic) 2380 } else { 2381 b = b[:cap(b)] 2382 n, err := m.MarshalToSizedBuffer(b) 2383 if err != nil { 2384 return nil, err 2385 } 2386 return b[:n], nil 2387 } 2388 } 2389 func (m *QueryDerivativeMidPriceAndTOBResponse) XXX_Merge(src proto.Message) { 2390 xxx_messageInfo_QueryDerivativeMidPriceAndTOBResponse.Merge(m, src) 2391 } 2392 func (m *QueryDerivativeMidPriceAndTOBResponse) XXX_Size() int { 2393 return m.Size() 2394 } 2395 func (m *QueryDerivativeMidPriceAndTOBResponse) XXX_DiscardUnknown() { 2396 xxx_messageInfo_QueryDerivativeMidPriceAndTOBResponse.DiscardUnknown(m) 2397 } 2398 2399 var xxx_messageInfo_QueryDerivativeMidPriceAndTOBResponse proto.InternalMessageInfo 2400 2401 // QueryDerivativeOrderbookRequest is the request type for the 2402 // Query/DerivativeOrderbook RPC method. 2403 type QueryDerivativeOrderbookRequest struct { 2404 // Market ID for the market 2405 MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` 2406 Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` 2407 LimitCumulativeNotional *cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=limit_cumulative_notional,json=limitCumulativeNotional,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"limit_cumulative_notional,omitempty"` 2408 } 2409 2410 func (m *QueryDerivativeOrderbookRequest) Reset() { *m = QueryDerivativeOrderbookRequest{} } 2411 func (m *QueryDerivativeOrderbookRequest) String() string { return proto.CompactTextString(m) } 2412 func (*QueryDerivativeOrderbookRequest) ProtoMessage() {} 2413 func (*QueryDerivativeOrderbookRequest) Descriptor() ([]byte, []int) { 2414 return fileDescriptor_523db28b8af54781, []int{46} 2415 } 2416 func (m *QueryDerivativeOrderbookRequest) XXX_Unmarshal(b []byte) error { 2417 return m.Unmarshal(b) 2418 } 2419 func (m *QueryDerivativeOrderbookRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2420 if deterministic { 2421 return xxx_messageInfo_QueryDerivativeOrderbookRequest.Marshal(b, m, deterministic) 2422 } else { 2423 b = b[:cap(b)] 2424 n, err := m.MarshalToSizedBuffer(b) 2425 if err != nil { 2426 return nil, err 2427 } 2428 return b[:n], nil 2429 } 2430 } 2431 func (m *QueryDerivativeOrderbookRequest) XXX_Merge(src proto.Message) { 2432 xxx_messageInfo_QueryDerivativeOrderbookRequest.Merge(m, src) 2433 } 2434 func (m *QueryDerivativeOrderbookRequest) XXX_Size() int { 2435 return m.Size() 2436 } 2437 func (m *QueryDerivativeOrderbookRequest) XXX_DiscardUnknown() { 2438 xxx_messageInfo_QueryDerivativeOrderbookRequest.DiscardUnknown(m) 2439 } 2440 2441 var xxx_messageInfo_QueryDerivativeOrderbookRequest proto.InternalMessageInfo 2442 2443 func (m *QueryDerivativeOrderbookRequest) GetMarketId() string { 2444 if m != nil { 2445 return m.MarketId 2446 } 2447 return "" 2448 } 2449 2450 func (m *QueryDerivativeOrderbookRequest) GetLimit() uint64 { 2451 if m != nil { 2452 return m.Limit 2453 } 2454 return 0 2455 } 2456 2457 // QueryDerivativeOrderbookResponse is the response type for the 2458 // Query/DerivativeOrderbook RPC method. 2459 type QueryDerivativeOrderbookResponse struct { 2460 BuysPriceLevel []*Level `protobuf:"bytes,1,rep,name=buys_price_level,json=buysPriceLevel,proto3" json:"buys_price_level,omitempty"` 2461 SellsPriceLevel []*Level `protobuf:"bytes,2,rep,name=sells_price_level,json=sellsPriceLevel,proto3" json:"sells_price_level,omitempty"` 2462 } 2463 2464 func (m *QueryDerivativeOrderbookResponse) Reset() { *m = QueryDerivativeOrderbookResponse{} } 2465 func (m *QueryDerivativeOrderbookResponse) String() string { return proto.CompactTextString(m) } 2466 func (*QueryDerivativeOrderbookResponse) ProtoMessage() {} 2467 func (*QueryDerivativeOrderbookResponse) Descriptor() ([]byte, []int) { 2468 return fileDescriptor_523db28b8af54781, []int{47} 2469 } 2470 func (m *QueryDerivativeOrderbookResponse) XXX_Unmarshal(b []byte) error { 2471 return m.Unmarshal(b) 2472 } 2473 func (m *QueryDerivativeOrderbookResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2474 if deterministic { 2475 return xxx_messageInfo_QueryDerivativeOrderbookResponse.Marshal(b, m, deterministic) 2476 } else { 2477 b = b[:cap(b)] 2478 n, err := m.MarshalToSizedBuffer(b) 2479 if err != nil { 2480 return nil, err 2481 } 2482 return b[:n], nil 2483 } 2484 } 2485 func (m *QueryDerivativeOrderbookResponse) XXX_Merge(src proto.Message) { 2486 xxx_messageInfo_QueryDerivativeOrderbookResponse.Merge(m, src) 2487 } 2488 func (m *QueryDerivativeOrderbookResponse) XXX_Size() int { 2489 return m.Size() 2490 } 2491 func (m *QueryDerivativeOrderbookResponse) XXX_DiscardUnknown() { 2492 xxx_messageInfo_QueryDerivativeOrderbookResponse.DiscardUnknown(m) 2493 } 2494 2495 var xxx_messageInfo_QueryDerivativeOrderbookResponse proto.InternalMessageInfo 2496 2497 func (m *QueryDerivativeOrderbookResponse) GetBuysPriceLevel() []*Level { 2498 if m != nil { 2499 return m.BuysPriceLevel 2500 } 2501 return nil 2502 } 2503 2504 func (m *QueryDerivativeOrderbookResponse) GetSellsPriceLevel() []*Level { 2505 if m != nil { 2506 return m.SellsPriceLevel 2507 } 2508 return nil 2509 } 2510 2511 // QueryTraderSpotOrdersToCancelUpToAmountRequest is the request type for the 2512 // Query/TraderSpotOrdersToCancelUpToAmountRequest RPC method. 2513 type QueryTraderSpotOrdersToCancelUpToAmountRequest struct { 2514 // Market ID for the market 2515 MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` 2516 // SubaccountID of the trader 2517 SubaccountId string `protobuf:"bytes,2,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"` 2518 // the base amount to cancel (free up) 2519 BaseAmount cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=base_amount,json=baseAmount,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"base_amount"` 2520 // the quote amount to cancel (free up) 2521 QuoteAmount cosmossdk_io_math.LegacyDec `protobuf:"bytes,4,opt,name=quote_amount,json=quoteAmount,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"quote_amount"` 2522 // The cancellation strategy 2523 Strategy CancellationStrategy `protobuf:"varint,5,opt,name=strategy,proto3,enum=injective.exchange.v1beta1.CancellationStrategy" json:"strategy,omitempty"` 2524 // The reference price for the cancellation strategy, e.g. mid price or mark 2525 // price 2526 ReferencePrice *cosmossdk_io_math.LegacyDec `protobuf:"bytes,6,opt,name=reference_price,json=referencePrice,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"reference_price,omitempty"` 2527 } 2528 2529 func (m *QueryTraderSpotOrdersToCancelUpToAmountRequest) Reset() { 2530 *m = QueryTraderSpotOrdersToCancelUpToAmountRequest{} 2531 } 2532 func (m *QueryTraderSpotOrdersToCancelUpToAmountRequest) String() string { 2533 return proto.CompactTextString(m) 2534 } 2535 func (*QueryTraderSpotOrdersToCancelUpToAmountRequest) ProtoMessage() {} 2536 func (*QueryTraderSpotOrdersToCancelUpToAmountRequest) Descriptor() ([]byte, []int) { 2537 return fileDescriptor_523db28b8af54781, []int{48} 2538 } 2539 func (m *QueryTraderSpotOrdersToCancelUpToAmountRequest) XXX_Unmarshal(b []byte) error { 2540 return m.Unmarshal(b) 2541 } 2542 func (m *QueryTraderSpotOrdersToCancelUpToAmountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2543 if deterministic { 2544 return xxx_messageInfo_QueryTraderSpotOrdersToCancelUpToAmountRequest.Marshal(b, m, deterministic) 2545 } else { 2546 b = b[:cap(b)] 2547 n, err := m.MarshalToSizedBuffer(b) 2548 if err != nil { 2549 return nil, err 2550 } 2551 return b[:n], nil 2552 } 2553 } 2554 func (m *QueryTraderSpotOrdersToCancelUpToAmountRequest) XXX_Merge(src proto.Message) { 2555 xxx_messageInfo_QueryTraderSpotOrdersToCancelUpToAmountRequest.Merge(m, src) 2556 } 2557 func (m *QueryTraderSpotOrdersToCancelUpToAmountRequest) XXX_Size() int { 2558 return m.Size() 2559 } 2560 func (m *QueryTraderSpotOrdersToCancelUpToAmountRequest) XXX_DiscardUnknown() { 2561 xxx_messageInfo_QueryTraderSpotOrdersToCancelUpToAmountRequest.DiscardUnknown(m) 2562 } 2563 2564 var xxx_messageInfo_QueryTraderSpotOrdersToCancelUpToAmountRequest proto.InternalMessageInfo 2565 2566 func (m *QueryTraderSpotOrdersToCancelUpToAmountRequest) GetMarketId() string { 2567 if m != nil { 2568 return m.MarketId 2569 } 2570 return "" 2571 } 2572 2573 func (m *QueryTraderSpotOrdersToCancelUpToAmountRequest) GetSubaccountId() string { 2574 if m != nil { 2575 return m.SubaccountId 2576 } 2577 return "" 2578 } 2579 2580 func (m *QueryTraderSpotOrdersToCancelUpToAmountRequest) GetStrategy() CancellationStrategy { 2581 if m != nil { 2582 return m.Strategy 2583 } 2584 return CancellationStrategy_UnspecifiedOrder 2585 } 2586 2587 // QueryTraderDerivativeOrdersToCancelUpToAmountRequest is the request type for 2588 // the Query/TraderDerivativeOrdersToCancelUpToAmountRequest RPC method. 2589 type QueryTraderDerivativeOrdersToCancelUpToAmountRequest struct { 2590 // Market ID for the market 2591 MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` 2592 // SubaccountID of the trader 2593 SubaccountId string `protobuf:"bytes,2,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"` 2594 // the quote amount to cancel (free up) 2595 QuoteAmount cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=quote_amount,json=quoteAmount,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"quote_amount"` 2596 // The cancellation strategy 2597 Strategy CancellationStrategy `protobuf:"varint,4,opt,name=strategy,proto3,enum=injective.exchange.v1beta1.CancellationStrategy" json:"strategy,omitempty"` 2598 // The reference price for the cancellation strategy, e.g. mid price or mark 2599 // price 2600 ReferencePrice *cosmossdk_io_math.LegacyDec `protobuf:"bytes,5,opt,name=reference_price,json=referencePrice,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"reference_price,omitempty"` 2601 } 2602 2603 func (m *QueryTraderDerivativeOrdersToCancelUpToAmountRequest) Reset() { 2604 *m = QueryTraderDerivativeOrdersToCancelUpToAmountRequest{} 2605 } 2606 func (m *QueryTraderDerivativeOrdersToCancelUpToAmountRequest) String() string { 2607 return proto.CompactTextString(m) 2608 } 2609 func (*QueryTraderDerivativeOrdersToCancelUpToAmountRequest) ProtoMessage() {} 2610 func (*QueryTraderDerivativeOrdersToCancelUpToAmountRequest) Descriptor() ([]byte, []int) { 2611 return fileDescriptor_523db28b8af54781, []int{49} 2612 } 2613 func (m *QueryTraderDerivativeOrdersToCancelUpToAmountRequest) XXX_Unmarshal(b []byte) error { 2614 return m.Unmarshal(b) 2615 } 2616 func (m *QueryTraderDerivativeOrdersToCancelUpToAmountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2617 if deterministic { 2618 return xxx_messageInfo_QueryTraderDerivativeOrdersToCancelUpToAmountRequest.Marshal(b, m, deterministic) 2619 } else { 2620 b = b[:cap(b)] 2621 n, err := m.MarshalToSizedBuffer(b) 2622 if err != nil { 2623 return nil, err 2624 } 2625 return b[:n], nil 2626 } 2627 } 2628 func (m *QueryTraderDerivativeOrdersToCancelUpToAmountRequest) XXX_Merge(src proto.Message) { 2629 xxx_messageInfo_QueryTraderDerivativeOrdersToCancelUpToAmountRequest.Merge(m, src) 2630 } 2631 func (m *QueryTraderDerivativeOrdersToCancelUpToAmountRequest) XXX_Size() int { 2632 return m.Size() 2633 } 2634 func (m *QueryTraderDerivativeOrdersToCancelUpToAmountRequest) XXX_DiscardUnknown() { 2635 xxx_messageInfo_QueryTraderDerivativeOrdersToCancelUpToAmountRequest.DiscardUnknown(m) 2636 } 2637 2638 var xxx_messageInfo_QueryTraderDerivativeOrdersToCancelUpToAmountRequest proto.InternalMessageInfo 2639 2640 func (m *QueryTraderDerivativeOrdersToCancelUpToAmountRequest) GetMarketId() string { 2641 if m != nil { 2642 return m.MarketId 2643 } 2644 return "" 2645 } 2646 2647 func (m *QueryTraderDerivativeOrdersToCancelUpToAmountRequest) GetSubaccountId() string { 2648 if m != nil { 2649 return m.SubaccountId 2650 } 2651 return "" 2652 } 2653 2654 func (m *QueryTraderDerivativeOrdersToCancelUpToAmountRequest) GetStrategy() CancellationStrategy { 2655 if m != nil { 2656 return m.Strategy 2657 } 2658 return CancellationStrategy_UnspecifiedOrder 2659 } 2660 2661 // QueryTraderDerivativeOrdersRequest is the request type for the 2662 // Query/TraderDerivativeOrders RPC method. 2663 type QueryTraderDerivativeOrdersRequest struct { 2664 // Market ID for the market 2665 MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` 2666 // SubaccountID of the trader 2667 SubaccountId string `protobuf:"bytes,2,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"` 2668 } 2669 2670 func (m *QueryTraderDerivativeOrdersRequest) Reset() { *m = QueryTraderDerivativeOrdersRequest{} } 2671 func (m *QueryTraderDerivativeOrdersRequest) String() string { return proto.CompactTextString(m) } 2672 func (*QueryTraderDerivativeOrdersRequest) ProtoMessage() {} 2673 func (*QueryTraderDerivativeOrdersRequest) Descriptor() ([]byte, []int) { 2674 return fileDescriptor_523db28b8af54781, []int{50} 2675 } 2676 func (m *QueryTraderDerivativeOrdersRequest) XXX_Unmarshal(b []byte) error { 2677 return m.Unmarshal(b) 2678 } 2679 func (m *QueryTraderDerivativeOrdersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2680 if deterministic { 2681 return xxx_messageInfo_QueryTraderDerivativeOrdersRequest.Marshal(b, m, deterministic) 2682 } else { 2683 b = b[:cap(b)] 2684 n, err := m.MarshalToSizedBuffer(b) 2685 if err != nil { 2686 return nil, err 2687 } 2688 return b[:n], nil 2689 } 2690 } 2691 func (m *QueryTraderDerivativeOrdersRequest) XXX_Merge(src proto.Message) { 2692 xxx_messageInfo_QueryTraderDerivativeOrdersRequest.Merge(m, src) 2693 } 2694 func (m *QueryTraderDerivativeOrdersRequest) XXX_Size() int { 2695 return m.Size() 2696 } 2697 func (m *QueryTraderDerivativeOrdersRequest) XXX_DiscardUnknown() { 2698 xxx_messageInfo_QueryTraderDerivativeOrdersRequest.DiscardUnknown(m) 2699 } 2700 2701 var xxx_messageInfo_QueryTraderDerivativeOrdersRequest proto.InternalMessageInfo 2702 2703 func (m *QueryTraderDerivativeOrdersRequest) GetMarketId() string { 2704 if m != nil { 2705 return m.MarketId 2706 } 2707 return "" 2708 } 2709 2710 func (m *QueryTraderDerivativeOrdersRequest) GetSubaccountId() string { 2711 if m != nil { 2712 return m.SubaccountId 2713 } 2714 return "" 2715 } 2716 2717 // QueryAccountAddressSpotOrdersRequest is the request type for the 2718 // Query/AccountAddressDerivativeOrders RPC method. 2719 type QueryAccountAddressDerivativeOrdersRequest struct { 2720 // Market ID for the market 2721 MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` 2722 // Account address of the trader 2723 AccountAddress string `protobuf:"bytes,2,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"` 2724 } 2725 2726 func (m *QueryAccountAddressDerivativeOrdersRequest) Reset() { 2727 *m = QueryAccountAddressDerivativeOrdersRequest{} 2728 } 2729 func (m *QueryAccountAddressDerivativeOrdersRequest) String() string { 2730 return proto.CompactTextString(m) 2731 } 2732 func (*QueryAccountAddressDerivativeOrdersRequest) ProtoMessage() {} 2733 func (*QueryAccountAddressDerivativeOrdersRequest) Descriptor() ([]byte, []int) { 2734 return fileDescriptor_523db28b8af54781, []int{51} 2735 } 2736 func (m *QueryAccountAddressDerivativeOrdersRequest) XXX_Unmarshal(b []byte) error { 2737 return m.Unmarshal(b) 2738 } 2739 func (m *QueryAccountAddressDerivativeOrdersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2740 if deterministic { 2741 return xxx_messageInfo_QueryAccountAddressDerivativeOrdersRequest.Marshal(b, m, deterministic) 2742 } else { 2743 b = b[:cap(b)] 2744 n, err := m.MarshalToSizedBuffer(b) 2745 if err != nil { 2746 return nil, err 2747 } 2748 return b[:n], nil 2749 } 2750 } 2751 func (m *QueryAccountAddressDerivativeOrdersRequest) XXX_Merge(src proto.Message) { 2752 xxx_messageInfo_QueryAccountAddressDerivativeOrdersRequest.Merge(m, src) 2753 } 2754 func (m *QueryAccountAddressDerivativeOrdersRequest) XXX_Size() int { 2755 return m.Size() 2756 } 2757 func (m *QueryAccountAddressDerivativeOrdersRequest) XXX_DiscardUnknown() { 2758 xxx_messageInfo_QueryAccountAddressDerivativeOrdersRequest.DiscardUnknown(m) 2759 } 2760 2761 var xxx_messageInfo_QueryAccountAddressDerivativeOrdersRequest proto.InternalMessageInfo 2762 2763 func (m *QueryAccountAddressDerivativeOrdersRequest) GetMarketId() string { 2764 if m != nil { 2765 return m.MarketId 2766 } 2767 return "" 2768 } 2769 2770 func (m *QueryAccountAddressDerivativeOrdersRequest) GetAccountAddress() string { 2771 if m != nil { 2772 return m.AccountAddress 2773 } 2774 return "" 2775 } 2776 2777 type TrimmedDerivativeLimitOrder struct { 2778 // price of the order 2779 Price cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=price,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"price"` 2780 // quantity of the order 2781 Quantity cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=quantity,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"quantity"` 2782 // margin of the order 2783 Margin cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=margin,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"margin"` 2784 // the amount of the quantity remaining fillable 2785 Fillable cosmossdk_io_math.LegacyDec `protobuf:"bytes,4,opt,name=fillable,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"fillable"` 2786 // true if the order is a buy 2787 IsBuy bool `protobuf:"varint,5,opt,name=isBuy,proto3" json:"isBuy"` 2788 OrderHash string `protobuf:"bytes,6,opt,name=order_hash,json=orderHash,proto3" json:"order_hash,omitempty"` 2789 Cid string `protobuf:"bytes,7,opt,name=cid,proto3" json:"cid,omitempty"` 2790 } 2791 2792 func (m *TrimmedDerivativeLimitOrder) Reset() { *m = TrimmedDerivativeLimitOrder{} } 2793 func (m *TrimmedDerivativeLimitOrder) String() string { return proto.CompactTextString(m) } 2794 func (*TrimmedDerivativeLimitOrder) ProtoMessage() {} 2795 func (*TrimmedDerivativeLimitOrder) Descriptor() ([]byte, []int) { 2796 return fileDescriptor_523db28b8af54781, []int{52} 2797 } 2798 func (m *TrimmedDerivativeLimitOrder) XXX_Unmarshal(b []byte) error { 2799 return m.Unmarshal(b) 2800 } 2801 func (m *TrimmedDerivativeLimitOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2802 if deterministic { 2803 return xxx_messageInfo_TrimmedDerivativeLimitOrder.Marshal(b, m, deterministic) 2804 } else { 2805 b = b[:cap(b)] 2806 n, err := m.MarshalToSizedBuffer(b) 2807 if err != nil { 2808 return nil, err 2809 } 2810 return b[:n], nil 2811 } 2812 } 2813 func (m *TrimmedDerivativeLimitOrder) XXX_Merge(src proto.Message) { 2814 xxx_messageInfo_TrimmedDerivativeLimitOrder.Merge(m, src) 2815 } 2816 func (m *TrimmedDerivativeLimitOrder) XXX_Size() int { 2817 return m.Size() 2818 } 2819 func (m *TrimmedDerivativeLimitOrder) XXX_DiscardUnknown() { 2820 xxx_messageInfo_TrimmedDerivativeLimitOrder.DiscardUnknown(m) 2821 } 2822 2823 var xxx_messageInfo_TrimmedDerivativeLimitOrder proto.InternalMessageInfo 2824 2825 func (m *TrimmedDerivativeLimitOrder) GetIsBuy() bool { 2826 if m != nil { 2827 return m.IsBuy 2828 } 2829 return false 2830 } 2831 2832 func (m *TrimmedDerivativeLimitOrder) GetOrderHash() string { 2833 if m != nil { 2834 return m.OrderHash 2835 } 2836 return "" 2837 } 2838 2839 func (m *TrimmedDerivativeLimitOrder) GetCid() string { 2840 if m != nil { 2841 return m.Cid 2842 } 2843 return "" 2844 } 2845 2846 // QueryTraderDerivativeOrdersResponse is the response type for the 2847 // Query/TraderDerivativeOrders RPC method. 2848 type QueryTraderDerivativeOrdersResponse struct { 2849 Orders []*TrimmedDerivativeLimitOrder `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"` 2850 } 2851 2852 func (m *QueryTraderDerivativeOrdersResponse) Reset() { *m = QueryTraderDerivativeOrdersResponse{} } 2853 func (m *QueryTraderDerivativeOrdersResponse) String() string { return proto.CompactTextString(m) } 2854 func (*QueryTraderDerivativeOrdersResponse) ProtoMessage() {} 2855 func (*QueryTraderDerivativeOrdersResponse) Descriptor() ([]byte, []int) { 2856 return fileDescriptor_523db28b8af54781, []int{53} 2857 } 2858 func (m *QueryTraderDerivativeOrdersResponse) XXX_Unmarshal(b []byte) error { 2859 return m.Unmarshal(b) 2860 } 2861 func (m *QueryTraderDerivativeOrdersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2862 if deterministic { 2863 return xxx_messageInfo_QueryTraderDerivativeOrdersResponse.Marshal(b, m, deterministic) 2864 } else { 2865 b = b[:cap(b)] 2866 n, err := m.MarshalToSizedBuffer(b) 2867 if err != nil { 2868 return nil, err 2869 } 2870 return b[:n], nil 2871 } 2872 } 2873 func (m *QueryTraderDerivativeOrdersResponse) XXX_Merge(src proto.Message) { 2874 xxx_messageInfo_QueryTraderDerivativeOrdersResponse.Merge(m, src) 2875 } 2876 func (m *QueryTraderDerivativeOrdersResponse) XXX_Size() int { 2877 return m.Size() 2878 } 2879 func (m *QueryTraderDerivativeOrdersResponse) XXX_DiscardUnknown() { 2880 xxx_messageInfo_QueryTraderDerivativeOrdersResponse.DiscardUnknown(m) 2881 } 2882 2883 var xxx_messageInfo_QueryTraderDerivativeOrdersResponse proto.InternalMessageInfo 2884 2885 func (m *QueryTraderDerivativeOrdersResponse) GetOrders() []*TrimmedDerivativeLimitOrder { 2886 if m != nil { 2887 return m.Orders 2888 } 2889 return nil 2890 } 2891 2892 // QueryAccountAddressDerivativeOrdersResponse is the response type for the 2893 // Query/AccountAddressDerivativeOrders RPC method. 2894 type QueryAccountAddressDerivativeOrdersResponse struct { 2895 Orders []*TrimmedDerivativeLimitOrder `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"` 2896 } 2897 2898 func (m *QueryAccountAddressDerivativeOrdersResponse) Reset() { 2899 *m = QueryAccountAddressDerivativeOrdersResponse{} 2900 } 2901 func (m *QueryAccountAddressDerivativeOrdersResponse) String() string { 2902 return proto.CompactTextString(m) 2903 } 2904 func (*QueryAccountAddressDerivativeOrdersResponse) ProtoMessage() {} 2905 func (*QueryAccountAddressDerivativeOrdersResponse) Descriptor() ([]byte, []int) { 2906 return fileDescriptor_523db28b8af54781, []int{54} 2907 } 2908 func (m *QueryAccountAddressDerivativeOrdersResponse) XXX_Unmarshal(b []byte) error { 2909 return m.Unmarshal(b) 2910 } 2911 func (m *QueryAccountAddressDerivativeOrdersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2912 if deterministic { 2913 return xxx_messageInfo_QueryAccountAddressDerivativeOrdersResponse.Marshal(b, m, deterministic) 2914 } else { 2915 b = b[:cap(b)] 2916 n, err := m.MarshalToSizedBuffer(b) 2917 if err != nil { 2918 return nil, err 2919 } 2920 return b[:n], nil 2921 } 2922 } 2923 func (m *QueryAccountAddressDerivativeOrdersResponse) XXX_Merge(src proto.Message) { 2924 xxx_messageInfo_QueryAccountAddressDerivativeOrdersResponse.Merge(m, src) 2925 } 2926 func (m *QueryAccountAddressDerivativeOrdersResponse) XXX_Size() int { 2927 return m.Size() 2928 } 2929 func (m *QueryAccountAddressDerivativeOrdersResponse) XXX_DiscardUnknown() { 2930 xxx_messageInfo_QueryAccountAddressDerivativeOrdersResponse.DiscardUnknown(m) 2931 } 2932 2933 var xxx_messageInfo_QueryAccountAddressDerivativeOrdersResponse proto.InternalMessageInfo 2934 2935 func (m *QueryAccountAddressDerivativeOrdersResponse) GetOrders() []*TrimmedDerivativeLimitOrder { 2936 if m != nil { 2937 return m.Orders 2938 } 2939 return nil 2940 } 2941 2942 // QueryTraderDerivativeOrdersRequest is the request type for the 2943 // Query/TraderDerivativeOrders RPC method. 2944 type QueryDerivativeOrdersByHashesRequest struct { 2945 // Market ID for the market 2946 MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` 2947 // SubaccountID of the trader 2948 SubaccountId string `protobuf:"bytes,2,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"` 2949 // the order hashes 2950 OrderHashes []string `protobuf:"bytes,3,rep,name=order_hashes,json=orderHashes,proto3" json:"order_hashes,omitempty"` 2951 } 2952 2953 func (m *QueryDerivativeOrdersByHashesRequest) Reset() { *m = QueryDerivativeOrdersByHashesRequest{} } 2954 func (m *QueryDerivativeOrdersByHashesRequest) String() string { return proto.CompactTextString(m) } 2955 func (*QueryDerivativeOrdersByHashesRequest) ProtoMessage() {} 2956 func (*QueryDerivativeOrdersByHashesRequest) Descriptor() ([]byte, []int) { 2957 return fileDescriptor_523db28b8af54781, []int{55} 2958 } 2959 func (m *QueryDerivativeOrdersByHashesRequest) XXX_Unmarshal(b []byte) error { 2960 return m.Unmarshal(b) 2961 } 2962 func (m *QueryDerivativeOrdersByHashesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2963 if deterministic { 2964 return xxx_messageInfo_QueryDerivativeOrdersByHashesRequest.Marshal(b, m, deterministic) 2965 } else { 2966 b = b[:cap(b)] 2967 n, err := m.MarshalToSizedBuffer(b) 2968 if err != nil { 2969 return nil, err 2970 } 2971 return b[:n], nil 2972 } 2973 } 2974 func (m *QueryDerivativeOrdersByHashesRequest) XXX_Merge(src proto.Message) { 2975 xxx_messageInfo_QueryDerivativeOrdersByHashesRequest.Merge(m, src) 2976 } 2977 func (m *QueryDerivativeOrdersByHashesRequest) XXX_Size() int { 2978 return m.Size() 2979 } 2980 func (m *QueryDerivativeOrdersByHashesRequest) XXX_DiscardUnknown() { 2981 xxx_messageInfo_QueryDerivativeOrdersByHashesRequest.DiscardUnknown(m) 2982 } 2983 2984 var xxx_messageInfo_QueryDerivativeOrdersByHashesRequest proto.InternalMessageInfo 2985 2986 func (m *QueryDerivativeOrdersByHashesRequest) GetMarketId() string { 2987 if m != nil { 2988 return m.MarketId 2989 } 2990 return "" 2991 } 2992 2993 func (m *QueryDerivativeOrdersByHashesRequest) GetSubaccountId() string { 2994 if m != nil { 2995 return m.SubaccountId 2996 } 2997 return "" 2998 } 2999 3000 func (m *QueryDerivativeOrdersByHashesRequest) GetOrderHashes() []string { 3001 if m != nil { 3002 return m.OrderHashes 3003 } 3004 return nil 3005 } 3006 3007 // QueryDerivativeOrdersByHashesResponse is the response type for the 3008 // Query/DerivativeOrdersByHashes RPC method. 3009 type QueryDerivativeOrdersByHashesResponse struct { 3010 Orders []*TrimmedDerivativeLimitOrder `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"` 3011 } 3012 3013 func (m *QueryDerivativeOrdersByHashesResponse) Reset() { *m = QueryDerivativeOrdersByHashesResponse{} } 3014 func (m *QueryDerivativeOrdersByHashesResponse) String() string { return proto.CompactTextString(m) } 3015 func (*QueryDerivativeOrdersByHashesResponse) ProtoMessage() {} 3016 func (*QueryDerivativeOrdersByHashesResponse) Descriptor() ([]byte, []int) { 3017 return fileDescriptor_523db28b8af54781, []int{56} 3018 } 3019 func (m *QueryDerivativeOrdersByHashesResponse) XXX_Unmarshal(b []byte) error { 3020 return m.Unmarshal(b) 3021 } 3022 func (m *QueryDerivativeOrdersByHashesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3023 if deterministic { 3024 return xxx_messageInfo_QueryDerivativeOrdersByHashesResponse.Marshal(b, m, deterministic) 3025 } else { 3026 b = b[:cap(b)] 3027 n, err := m.MarshalToSizedBuffer(b) 3028 if err != nil { 3029 return nil, err 3030 } 3031 return b[:n], nil 3032 } 3033 } 3034 func (m *QueryDerivativeOrdersByHashesResponse) XXX_Merge(src proto.Message) { 3035 xxx_messageInfo_QueryDerivativeOrdersByHashesResponse.Merge(m, src) 3036 } 3037 func (m *QueryDerivativeOrdersByHashesResponse) XXX_Size() int { 3038 return m.Size() 3039 } 3040 func (m *QueryDerivativeOrdersByHashesResponse) XXX_DiscardUnknown() { 3041 xxx_messageInfo_QueryDerivativeOrdersByHashesResponse.DiscardUnknown(m) 3042 } 3043 3044 var xxx_messageInfo_QueryDerivativeOrdersByHashesResponse proto.InternalMessageInfo 3045 3046 func (m *QueryDerivativeOrdersByHashesResponse) GetOrders() []*TrimmedDerivativeLimitOrder { 3047 if m != nil { 3048 return m.Orders 3049 } 3050 return nil 3051 } 3052 3053 // QueryDerivativeMarketsRequest is the request type for the 3054 // Query/DerivativeMarkets RPC method. 3055 type QueryDerivativeMarketsRequest struct { 3056 // Status of the market, for convenience it is set to string - not enum 3057 Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` 3058 // Filter by market IDs 3059 MarketIds []string `protobuf:"bytes,2,rep,name=market_ids,json=marketIds,proto3" json:"market_ids,omitempty"` 3060 // Flag to return the markets mid price and top of the book buy and sell 3061 // orders. 3062 WithMidPriceAndTob bool `protobuf:"varint,3,opt,name=with_mid_price_and_tob,json=withMidPriceAndTob,proto3" json:"with_mid_price_and_tob,omitempty"` 3063 } 3064 3065 func (m *QueryDerivativeMarketsRequest) Reset() { *m = QueryDerivativeMarketsRequest{} } 3066 func (m *QueryDerivativeMarketsRequest) String() string { return proto.CompactTextString(m) } 3067 func (*QueryDerivativeMarketsRequest) ProtoMessage() {} 3068 func (*QueryDerivativeMarketsRequest) Descriptor() ([]byte, []int) { 3069 return fileDescriptor_523db28b8af54781, []int{57} 3070 } 3071 func (m *QueryDerivativeMarketsRequest) XXX_Unmarshal(b []byte) error { 3072 return m.Unmarshal(b) 3073 } 3074 func (m *QueryDerivativeMarketsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3075 if deterministic { 3076 return xxx_messageInfo_QueryDerivativeMarketsRequest.Marshal(b, m, deterministic) 3077 } else { 3078 b = b[:cap(b)] 3079 n, err := m.MarshalToSizedBuffer(b) 3080 if err != nil { 3081 return nil, err 3082 } 3083 return b[:n], nil 3084 } 3085 } 3086 func (m *QueryDerivativeMarketsRequest) XXX_Merge(src proto.Message) { 3087 xxx_messageInfo_QueryDerivativeMarketsRequest.Merge(m, src) 3088 } 3089 func (m *QueryDerivativeMarketsRequest) XXX_Size() int { 3090 return m.Size() 3091 } 3092 func (m *QueryDerivativeMarketsRequest) XXX_DiscardUnknown() { 3093 xxx_messageInfo_QueryDerivativeMarketsRequest.DiscardUnknown(m) 3094 } 3095 3096 var xxx_messageInfo_QueryDerivativeMarketsRequest proto.InternalMessageInfo 3097 3098 func (m *QueryDerivativeMarketsRequest) GetStatus() string { 3099 if m != nil { 3100 return m.Status 3101 } 3102 return "" 3103 } 3104 3105 func (m *QueryDerivativeMarketsRequest) GetMarketIds() []string { 3106 if m != nil { 3107 return m.MarketIds 3108 } 3109 return nil 3110 } 3111 3112 func (m *QueryDerivativeMarketsRequest) GetWithMidPriceAndTob() bool { 3113 if m != nil { 3114 return m.WithMidPriceAndTob 3115 } 3116 return false 3117 } 3118 3119 type PriceLevel struct { 3120 Price cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=price,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"price"` 3121 // quantity 3122 Quantity cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=quantity,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"quantity"` 3123 } 3124 3125 func (m *PriceLevel) Reset() { *m = PriceLevel{} } 3126 func (m *PriceLevel) String() string { return proto.CompactTextString(m) } 3127 func (*PriceLevel) ProtoMessage() {} 3128 func (*PriceLevel) Descriptor() ([]byte, []int) { 3129 return fileDescriptor_523db28b8af54781, []int{58} 3130 } 3131 func (m *PriceLevel) XXX_Unmarshal(b []byte) error { 3132 return m.Unmarshal(b) 3133 } 3134 func (m *PriceLevel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3135 if deterministic { 3136 return xxx_messageInfo_PriceLevel.Marshal(b, m, deterministic) 3137 } else { 3138 b = b[:cap(b)] 3139 n, err := m.MarshalToSizedBuffer(b) 3140 if err != nil { 3141 return nil, err 3142 } 3143 return b[:n], nil 3144 } 3145 } 3146 func (m *PriceLevel) XXX_Merge(src proto.Message) { 3147 xxx_messageInfo_PriceLevel.Merge(m, src) 3148 } 3149 func (m *PriceLevel) XXX_Size() int { 3150 return m.Size() 3151 } 3152 func (m *PriceLevel) XXX_DiscardUnknown() { 3153 xxx_messageInfo_PriceLevel.DiscardUnknown(m) 3154 } 3155 3156 var xxx_messageInfo_PriceLevel proto.InternalMessageInfo 3157 3158 type PerpetualMarketState struct { 3159 MarketInfo *PerpetualMarketInfo `protobuf:"bytes,1,opt,name=market_info,json=marketInfo,proto3" json:"market_info,omitempty"` 3160 FundingInfo *PerpetualMarketFunding `protobuf:"bytes,2,opt,name=funding_info,json=fundingInfo,proto3" json:"funding_info,omitempty"` 3161 } 3162 3163 func (m *PerpetualMarketState) Reset() { *m = PerpetualMarketState{} } 3164 func (m *PerpetualMarketState) String() string { return proto.CompactTextString(m) } 3165 func (*PerpetualMarketState) ProtoMessage() {} 3166 func (*PerpetualMarketState) Descriptor() ([]byte, []int) { 3167 return fileDescriptor_523db28b8af54781, []int{59} 3168 } 3169 func (m *PerpetualMarketState) XXX_Unmarshal(b []byte) error { 3170 return m.Unmarshal(b) 3171 } 3172 func (m *PerpetualMarketState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3173 if deterministic { 3174 return xxx_messageInfo_PerpetualMarketState.Marshal(b, m, deterministic) 3175 } else { 3176 b = b[:cap(b)] 3177 n, err := m.MarshalToSizedBuffer(b) 3178 if err != nil { 3179 return nil, err 3180 } 3181 return b[:n], nil 3182 } 3183 } 3184 func (m *PerpetualMarketState) XXX_Merge(src proto.Message) { 3185 xxx_messageInfo_PerpetualMarketState.Merge(m, src) 3186 } 3187 func (m *PerpetualMarketState) XXX_Size() int { 3188 return m.Size() 3189 } 3190 func (m *PerpetualMarketState) XXX_DiscardUnknown() { 3191 xxx_messageInfo_PerpetualMarketState.DiscardUnknown(m) 3192 } 3193 3194 var xxx_messageInfo_PerpetualMarketState proto.InternalMessageInfo 3195 3196 func (m *PerpetualMarketState) GetMarketInfo() *PerpetualMarketInfo { 3197 if m != nil { 3198 return m.MarketInfo 3199 } 3200 return nil 3201 } 3202 3203 func (m *PerpetualMarketState) GetFundingInfo() *PerpetualMarketFunding { 3204 if m != nil { 3205 return m.FundingInfo 3206 } 3207 return nil 3208 } 3209 3210 type FullDerivativeMarket struct { 3211 Market *DerivativeMarket `protobuf:"bytes,1,opt,name=market,proto3" json:"market,omitempty"` 3212 // Types that are valid to be assigned to Info: 3213 // *FullDerivativeMarket_PerpetualInfo 3214 // *FullDerivativeMarket_FuturesInfo 3215 Info isFullDerivativeMarket_Info `protobuf_oneof:"info"` 3216 MarkPrice cosmossdk_io_math.LegacyDec `protobuf:"bytes,4,opt,name=mark_price,json=markPrice,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"mark_price"` 3217 // mid_price_and_tob defines the mid price for this market and the best ask 3218 // and bid orders 3219 MidPriceAndTob *MidPriceAndTOB `protobuf:"bytes,5,opt,name=mid_price_and_tob,json=midPriceAndTob,proto3" json:"mid_price_and_tob,omitempty"` 3220 } 3221 3222 func (m *FullDerivativeMarket) Reset() { *m = FullDerivativeMarket{} } 3223 func (m *FullDerivativeMarket) String() string { return proto.CompactTextString(m) } 3224 func (*FullDerivativeMarket) ProtoMessage() {} 3225 func (*FullDerivativeMarket) Descriptor() ([]byte, []int) { 3226 return fileDescriptor_523db28b8af54781, []int{60} 3227 } 3228 func (m *FullDerivativeMarket) XXX_Unmarshal(b []byte) error { 3229 return m.Unmarshal(b) 3230 } 3231 func (m *FullDerivativeMarket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3232 if deterministic { 3233 return xxx_messageInfo_FullDerivativeMarket.Marshal(b, m, deterministic) 3234 } else { 3235 b = b[:cap(b)] 3236 n, err := m.MarshalToSizedBuffer(b) 3237 if err != nil { 3238 return nil, err 3239 } 3240 return b[:n], nil 3241 } 3242 } 3243 func (m *FullDerivativeMarket) XXX_Merge(src proto.Message) { 3244 xxx_messageInfo_FullDerivativeMarket.Merge(m, src) 3245 } 3246 func (m *FullDerivativeMarket) XXX_Size() int { 3247 return m.Size() 3248 } 3249 func (m *FullDerivativeMarket) XXX_DiscardUnknown() { 3250 xxx_messageInfo_FullDerivativeMarket.DiscardUnknown(m) 3251 } 3252 3253 var xxx_messageInfo_FullDerivativeMarket proto.InternalMessageInfo 3254 3255 type isFullDerivativeMarket_Info interface { 3256 isFullDerivativeMarket_Info() 3257 MarshalTo([]byte) (int, error) 3258 Size() int 3259 } 3260 3261 type FullDerivativeMarket_PerpetualInfo struct { 3262 PerpetualInfo *PerpetualMarketState `protobuf:"bytes,2,opt,name=perpetual_info,json=perpetualInfo,proto3,oneof" json:"perpetual_info,omitempty"` 3263 } 3264 type FullDerivativeMarket_FuturesInfo struct { 3265 FuturesInfo *ExpiryFuturesMarketInfo `protobuf:"bytes,3,opt,name=futures_info,json=futuresInfo,proto3,oneof" json:"futures_info,omitempty"` 3266 } 3267 3268 func (*FullDerivativeMarket_PerpetualInfo) isFullDerivativeMarket_Info() {} 3269 func (*FullDerivativeMarket_FuturesInfo) isFullDerivativeMarket_Info() {} 3270 3271 func (m *FullDerivativeMarket) GetInfo() isFullDerivativeMarket_Info { 3272 if m != nil { 3273 return m.Info 3274 } 3275 return nil 3276 } 3277 3278 func (m *FullDerivativeMarket) GetMarket() *DerivativeMarket { 3279 if m != nil { 3280 return m.Market 3281 } 3282 return nil 3283 } 3284 3285 func (m *FullDerivativeMarket) GetPerpetualInfo() *PerpetualMarketState { 3286 if x, ok := m.GetInfo().(*FullDerivativeMarket_PerpetualInfo); ok { 3287 return x.PerpetualInfo 3288 } 3289 return nil 3290 } 3291 3292 func (m *FullDerivativeMarket) GetFuturesInfo() *ExpiryFuturesMarketInfo { 3293 if x, ok := m.GetInfo().(*FullDerivativeMarket_FuturesInfo); ok { 3294 return x.FuturesInfo 3295 } 3296 return nil 3297 } 3298 3299 func (m *FullDerivativeMarket) GetMidPriceAndTob() *MidPriceAndTOB { 3300 if m != nil { 3301 return m.MidPriceAndTob 3302 } 3303 return nil 3304 } 3305 3306 // XXX_OneofWrappers is for the internal use of the proto package. 3307 func (*FullDerivativeMarket) XXX_OneofWrappers() []interface{} { 3308 return []interface{}{ 3309 (*FullDerivativeMarket_PerpetualInfo)(nil), 3310 (*FullDerivativeMarket_FuturesInfo)(nil), 3311 } 3312 } 3313 3314 // QueryDerivativeMarketsResponse is the response type for the 3315 // Query/DerivativeMarkets RPC method. 3316 type QueryDerivativeMarketsResponse struct { 3317 Markets []*FullDerivativeMarket `protobuf:"bytes,1,rep,name=markets,proto3" json:"markets,omitempty"` 3318 } 3319 3320 func (m *QueryDerivativeMarketsResponse) Reset() { *m = QueryDerivativeMarketsResponse{} } 3321 func (m *QueryDerivativeMarketsResponse) String() string { return proto.CompactTextString(m) } 3322 func (*QueryDerivativeMarketsResponse) ProtoMessage() {} 3323 func (*QueryDerivativeMarketsResponse) Descriptor() ([]byte, []int) { 3324 return fileDescriptor_523db28b8af54781, []int{61} 3325 } 3326 func (m *QueryDerivativeMarketsResponse) XXX_Unmarshal(b []byte) error { 3327 return m.Unmarshal(b) 3328 } 3329 func (m *QueryDerivativeMarketsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3330 if deterministic { 3331 return xxx_messageInfo_QueryDerivativeMarketsResponse.Marshal(b, m, deterministic) 3332 } else { 3333 b = b[:cap(b)] 3334 n, err := m.MarshalToSizedBuffer(b) 3335 if err != nil { 3336 return nil, err 3337 } 3338 return b[:n], nil 3339 } 3340 } 3341 func (m *QueryDerivativeMarketsResponse) XXX_Merge(src proto.Message) { 3342 xxx_messageInfo_QueryDerivativeMarketsResponse.Merge(m, src) 3343 } 3344 func (m *QueryDerivativeMarketsResponse) XXX_Size() int { 3345 return m.Size() 3346 } 3347 func (m *QueryDerivativeMarketsResponse) XXX_DiscardUnknown() { 3348 xxx_messageInfo_QueryDerivativeMarketsResponse.DiscardUnknown(m) 3349 } 3350 3351 var xxx_messageInfo_QueryDerivativeMarketsResponse proto.InternalMessageInfo 3352 3353 func (m *QueryDerivativeMarketsResponse) GetMarkets() []*FullDerivativeMarket { 3354 if m != nil { 3355 return m.Markets 3356 } 3357 return nil 3358 } 3359 3360 // QueryDerivativeMarketRequest is the request type for the 3361 // Query/DerivativeMarket RPC method. 3362 type QueryDerivativeMarketRequest struct { 3363 // Market ID for the market 3364 MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` 3365 } 3366 3367 func (m *QueryDerivativeMarketRequest) Reset() { *m = QueryDerivativeMarketRequest{} } 3368 func (m *QueryDerivativeMarketRequest) String() string { return proto.CompactTextString(m) } 3369 func (*QueryDerivativeMarketRequest) ProtoMessage() {} 3370 func (*QueryDerivativeMarketRequest) Descriptor() ([]byte, []int) { 3371 return fileDescriptor_523db28b8af54781, []int{62} 3372 } 3373 func (m *QueryDerivativeMarketRequest) XXX_Unmarshal(b []byte) error { 3374 return m.Unmarshal(b) 3375 } 3376 func (m *QueryDerivativeMarketRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3377 if deterministic { 3378 return xxx_messageInfo_QueryDerivativeMarketRequest.Marshal(b, m, deterministic) 3379 } else { 3380 b = b[:cap(b)] 3381 n, err := m.MarshalToSizedBuffer(b) 3382 if err != nil { 3383 return nil, err 3384 } 3385 return b[:n], nil 3386 } 3387 } 3388 func (m *QueryDerivativeMarketRequest) XXX_Merge(src proto.Message) { 3389 xxx_messageInfo_QueryDerivativeMarketRequest.Merge(m, src) 3390 } 3391 func (m *QueryDerivativeMarketRequest) XXX_Size() int { 3392 return m.Size() 3393 } 3394 func (m *QueryDerivativeMarketRequest) XXX_DiscardUnknown() { 3395 xxx_messageInfo_QueryDerivativeMarketRequest.DiscardUnknown(m) 3396 } 3397 3398 var xxx_messageInfo_QueryDerivativeMarketRequest proto.InternalMessageInfo 3399 3400 func (m *QueryDerivativeMarketRequest) GetMarketId() string { 3401 if m != nil { 3402 return m.MarketId 3403 } 3404 return "" 3405 } 3406 3407 // QueryDerivativeMarketResponse is the response type for the 3408 // Query/DerivativeMarket RPC method. 3409 type QueryDerivativeMarketResponse struct { 3410 Market *FullDerivativeMarket `protobuf:"bytes,1,opt,name=market,proto3" json:"market,omitempty"` 3411 } 3412 3413 func (m *QueryDerivativeMarketResponse) Reset() { *m = QueryDerivativeMarketResponse{} } 3414 func (m *QueryDerivativeMarketResponse) String() string { return proto.CompactTextString(m) } 3415 func (*QueryDerivativeMarketResponse) ProtoMessage() {} 3416 func (*QueryDerivativeMarketResponse) Descriptor() ([]byte, []int) { 3417 return fileDescriptor_523db28b8af54781, []int{63} 3418 } 3419 func (m *QueryDerivativeMarketResponse) XXX_Unmarshal(b []byte) error { 3420 return m.Unmarshal(b) 3421 } 3422 func (m *QueryDerivativeMarketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3423 if deterministic { 3424 return xxx_messageInfo_QueryDerivativeMarketResponse.Marshal(b, m, deterministic) 3425 } else { 3426 b = b[:cap(b)] 3427 n, err := m.MarshalToSizedBuffer(b) 3428 if err != nil { 3429 return nil, err 3430 } 3431 return b[:n], nil 3432 } 3433 } 3434 func (m *QueryDerivativeMarketResponse) XXX_Merge(src proto.Message) { 3435 xxx_messageInfo_QueryDerivativeMarketResponse.Merge(m, src) 3436 } 3437 func (m *QueryDerivativeMarketResponse) XXX_Size() int { 3438 return m.Size() 3439 } 3440 func (m *QueryDerivativeMarketResponse) XXX_DiscardUnknown() { 3441 xxx_messageInfo_QueryDerivativeMarketResponse.DiscardUnknown(m) 3442 } 3443 3444 var xxx_messageInfo_QueryDerivativeMarketResponse proto.InternalMessageInfo 3445 3446 func (m *QueryDerivativeMarketResponse) GetMarket() *FullDerivativeMarket { 3447 if m != nil { 3448 return m.Market 3449 } 3450 return nil 3451 } 3452 3453 // QueryDerivativeMarketAddressRequest is the request type for the 3454 // Query/DerivativeMarketAddress RPC method. 3455 type QueryDerivativeMarketAddressRequest struct { 3456 // Market ID for the market 3457 MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` 3458 } 3459 3460 func (m *QueryDerivativeMarketAddressRequest) Reset() { *m = QueryDerivativeMarketAddressRequest{} } 3461 func (m *QueryDerivativeMarketAddressRequest) String() string { return proto.CompactTextString(m) } 3462 func (*QueryDerivativeMarketAddressRequest) ProtoMessage() {} 3463 func (*QueryDerivativeMarketAddressRequest) Descriptor() ([]byte, []int) { 3464 return fileDescriptor_523db28b8af54781, []int{64} 3465 } 3466 func (m *QueryDerivativeMarketAddressRequest) XXX_Unmarshal(b []byte) error { 3467 return m.Unmarshal(b) 3468 } 3469 func (m *QueryDerivativeMarketAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3470 if deterministic { 3471 return xxx_messageInfo_QueryDerivativeMarketAddressRequest.Marshal(b, m, deterministic) 3472 } else { 3473 b = b[:cap(b)] 3474 n, err := m.MarshalToSizedBuffer(b) 3475 if err != nil { 3476 return nil, err 3477 } 3478 return b[:n], nil 3479 } 3480 } 3481 func (m *QueryDerivativeMarketAddressRequest) XXX_Merge(src proto.Message) { 3482 xxx_messageInfo_QueryDerivativeMarketAddressRequest.Merge(m, src) 3483 } 3484 func (m *QueryDerivativeMarketAddressRequest) XXX_Size() int { 3485 return m.Size() 3486 } 3487 func (m *QueryDerivativeMarketAddressRequest) XXX_DiscardUnknown() { 3488 xxx_messageInfo_QueryDerivativeMarketAddressRequest.DiscardUnknown(m) 3489 } 3490 3491 var xxx_messageInfo_QueryDerivativeMarketAddressRequest proto.InternalMessageInfo 3492 3493 func (m *QueryDerivativeMarketAddressRequest) GetMarketId() string { 3494 if m != nil { 3495 return m.MarketId 3496 } 3497 return "" 3498 } 3499 3500 // QueryDerivativeMarketAddressResponse is the response type for the 3501 // Query/DerivativeMarketAddress RPC method. 3502 type QueryDerivativeMarketAddressResponse struct { 3503 // address for the market 3504 Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 3505 // subaccountID for the market 3506 SubaccountId string `protobuf:"bytes,2,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"` 3507 } 3508 3509 func (m *QueryDerivativeMarketAddressResponse) Reset() { *m = QueryDerivativeMarketAddressResponse{} } 3510 func (m *QueryDerivativeMarketAddressResponse) String() string { return proto.CompactTextString(m) } 3511 func (*QueryDerivativeMarketAddressResponse) ProtoMessage() {} 3512 func (*QueryDerivativeMarketAddressResponse) Descriptor() ([]byte, []int) { 3513 return fileDescriptor_523db28b8af54781, []int{65} 3514 } 3515 func (m *QueryDerivativeMarketAddressResponse) XXX_Unmarshal(b []byte) error { 3516 return m.Unmarshal(b) 3517 } 3518 func (m *QueryDerivativeMarketAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3519 if deterministic { 3520 return xxx_messageInfo_QueryDerivativeMarketAddressResponse.Marshal(b, m, deterministic) 3521 } else { 3522 b = b[:cap(b)] 3523 n, err := m.MarshalToSizedBuffer(b) 3524 if err != nil { 3525 return nil, err 3526 } 3527 return b[:n], nil 3528 } 3529 } 3530 func (m *QueryDerivativeMarketAddressResponse) XXX_Merge(src proto.Message) { 3531 xxx_messageInfo_QueryDerivativeMarketAddressResponse.Merge(m, src) 3532 } 3533 func (m *QueryDerivativeMarketAddressResponse) XXX_Size() int { 3534 return m.Size() 3535 } 3536 func (m *QueryDerivativeMarketAddressResponse) XXX_DiscardUnknown() { 3537 xxx_messageInfo_QueryDerivativeMarketAddressResponse.DiscardUnknown(m) 3538 } 3539 3540 var xxx_messageInfo_QueryDerivativeMarketAddressResponse proto.InternalMessageInfo 3541 3542 func (m *QueryDerivativeMarketAddressResponse) GetAddress() string { 3543 if m != nil { 3544 return m.Address 3545 } 3546 return "" 3547 } 3548 3549 func (m *QueryDerivativeMarketAddressResponse) GetSubaccountId() string { 3550 if m != nil { 3551 return m.SubaccountId 3552 } 3553 return "" 3554 } 3555 3556 // QuerySubaccountTradeNonceRequest is the request type for the 3557 // Query/SubaccountTradeNonce RPC method. 3558 type QuerySubaccountTradeNonceRequest struct { 3559 SubaccountId string `protobuf:"bytes,1,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"` 3560 } 3561 3562 func (m *QuerySubaccountTradeNonceRequest) Reset() { *m = QuerySubaccountTradeNonceRequest{} } 3563 func (m *QuerySubaccountTradeNonceRequest) String() string { return proto.CompactTextString(m) } 3564 func (*QuerySubaccountTradeNonceRequest) ProtoMessage() {} 3565 func (*QuerySubaccountTradeNonceRequest) Descriptor() ([]byte, []int) { 3566 return fileDescriptor_523db28b8af54781, []int{66} 3567 } 3568 func (m *QuerySubaccountTradeNonceRequest) XXX_Unmarshal(b []byte) error { 3569 return m.Unmarshal(b) 3570 } 3571 func (m *QuerySubaccountTradeNonceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3572 if deterministic { 3573 return xxx_messageInfo_QuerySubaccountTradeNonceRequest.Marshal(b, m, deterministic) 3574 } else { 3575 b = b[:cap(b)] 3576 n, err := m.MarshalToSizedBuffer(b) 3577 if err != nil { 3578 return nil, err 3579 } 3580 return b[:n], nil 3581 } 3582 } 3583 func (m *QuerySubaccountTradeNonceRequest) XXX_Merge(src proto.Message) { 3584 xxx_messageInfo_QuerySubaccountTradeNonceRequest.Merge(m, src) 3585 } 3586 func (m *QuerySubaccountTradeNonceRequest) XXX_Size() int { 3587 return m.Size() 3588 } 3589 func (m *QuerySubaccountTradeNonceRequest) XXX_DiscardUnknown() { 3590 xxx_messageInfo_QuerySubaccountTradeNonceRequest.DiscardUnknown(m) 3591 } 3592 3593 var xxx_messageInfo_QuerySubaccountTradeNonceRequest proto.InternalMessageInfo 3594 3595 func (m *QuerySubaccountTradeNonceRequest) GetSubaccountId() string { 3596 if m != nil { 3597 return m.SubaccountId 3598 } 3599 return "" 3600 } 3601 3602 // QuerySubaccountPositionsRequest is the request type for the 3603 // Query/SubaccountPositions RPC method. 3604 type QuerySubaccountPositionsRequest struct { 3605 SubaccountId string `protobuf:"bytes,1,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"` 3606 } 3607 3608 func (m *QuerySubaccountPositionsRequest) Reset() { *m = QuerySubaccountPositionsRequest{} } 3609 func (m *QuerySubaccountPositionsRequest) String() string { return proto.CompactTextString(m) } 3610 func (*QuerySubaccountPositionsRequest) ProtoMessage() {} 3611 func (*QuerySubaccountPositionsRequest) Descriptor() ([]byte, []int) { 3612 return fileDescriptor_523db28b8af54781, []int{67} 3613 } 3614 func (m *QuerySubaccountPositionsRequest) XXX_Unmarshal(b []byte) error { 3615 return m.Unmarshal(b) 3616 } 3617 func (m *QuerySubaccountPositionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3618 if deterministic { 3619 return xxx_messageInfo_QuerySubaccountPositionsRequest.Marshal(b, m, deterministic) 3620 } else { 3621 b = b[:cap(b)] 3622 n, err := m.MarshalToSizedBuffer(b) 3623 if err != nil { 3624 return nil, err 3625 } 3626 return b[:n], nil 3627 } 3628 } 3629 func (m *QuerySubaccountPositionsRequest) XXX_Merge(src proto.Message) { 3630 xxx_messageInfo_QuerySubaccountPositionsRequest.Merge(m, src) 3631 } 3632 func (m *QuerySubaccountPositionsRequest) XXX_Size() int { 3633 return m.Size() 3634 } 3635 func (m *QuerySubaccountPositionsRequest) XXX_DiscardUnknown() { 3636 xxx_messageInfo_QuerySubaccountPositionsRequest.DiscardUnknown(m) 3637 } 3638 3639 var xxx_messageInfo_QuerySubaccountPositionsRequest proto.InternalMessageInfo 3640 3641 func (m *QuerySubaccountPositionsRequest) GetSubaccountId() string { 3642 if m != nil { 3643 return m.SubaccountId 3644 } 3645 return "" 3646 } 3647 3648 // QuerySubaccountPositionInMarketRequest is the request type for the 3649 // Query/SubaccountPositionInMarket RPC method. 3650 type QuerySubaccountPositionInMarketRequest struct { 3651 SubaccountId string `protobuf:"bytes,1,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"` 3652 MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` 3653 } 3654 3655 func (m *QuerySubaccountPositionInMarketRequest) Reset() { 3656 *m = QuerySubaccountPositionInMarketRequest{} 3657 } 3658 func (m *QuerySubaccountPositionInMarketRequest) String() string { return proto.CompactTextString(m) } 3659 func (*QuerySubaccountPositionInMarketRequest) ProtoMessage() {} 3660 func (*QuerySubaccountPositionInMarketRequest) Descriptor() ([]byte, []int) { 3661 return fileDescriptor_523db28b8af54781, []int{68} 3662 } 3663 func (m *QuerySubaccountPositionInMarketRequest) XXX_Unmarshal(b []byte) error { 3664 return m.Unmarshal(b) 3665 } 3666 func (m *QuerySubaccountPositionInMarketRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3667 if deterministic { 3668 return xxx_messageInfo_QuerySubaccountPositionInMarketRequest.Marshal(b, m, deterministic) 3669 } else { 3670 b = b[:cap(b)] 3671 n, err := m.MarshalToSizedBuffer(b) 3672 if err != nil { 3673 return nil, err 3674 } 3675 return b[:n], nil 3676 } 3677 } 3678 func (m *QuerySubaccountPositionInMarketRequest) XXX_Merge(src proto.Message) { 3679 xxx_messageInfo_QuerySubaccountPositionInMarketRequest.Merge(m, src) 3680 } 3681 func (m *QuerySubaccountPositionInMarketRequest) XXX_Size() int { 3682 return m.Size() 3683 } 3684 func (m *QuerySubaccountPositionInMarketRequest) XXX_DiscardUnknown() { 3685 xxx_messageInfo_QuerySubaccountPositionInMarketRequest.DiscardUnknown(m) 3686 } 3687 3688 var xxx_messageInfo_QuerySubaccountPositionInMarketRequest proto.InternalMessageInfo 3689 3690 func (m *QuerySubaccountPositionInMarketRequest) GetSubaccountId() string { 3691 if m != nil { 3692 return m.SubaccountId 3693 } 3694 return "" 3695 } 3696 3697 func (m *QuerySubaccountPositionInMarketRequest) GetMarketId() string { 3698 if m != nil { 3699 return m.MarketId 3700 } 3701 return "" 3702 } 3703 3704 // QuerySubaccountEffectivePositionInMarketRequest is the request type for the 3705 // Query/SubaccountEffectivePositionInMarket RPC method. 3706 type QuerySubaccountEffectivePositionInMarketRequest struct { 3707 SubaccountId string `protobuf:"bytes,1,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"` 3708 MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` 3709 } 3710 3711 func (m *QuerySubaccountEffectivePositionInMarketRequest) Reset() { 3712 *m = QuerySubaccountEffectivePositionInMarketRequest{} 3713 } 3714 func (m *QuerySubaccountEffectivePositionInMarketRequest) String() string { 3715 return proto.CompactTextString(m) 3716 } 3717 func (*QuerySubaccountEffectivePositionInMarketRequest) ProtoMessage() {} 3718 func (*QuerySubaccountEffectivePositionInMarketRequest) Descriptor() ([]byte, []int) { 3719 return fileDescriptor_523db28b8af54781, []int{69} 3720 } 3721 func (m *QuerySubaccountEffectivePositionInMarketRequest) XXX_Unmarshal(b []byte) error { 3722 return m.Unmarshal(b) 3723 } 3724 func (m *QuerySubaccountEffectivePositionInMarketRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3725 if deterministic { 3726 return xxx_messageInfo_QuerySubaccountEffectivePositionInMarketRequest.Marshal(b, m, deterministic) 3727 } else { 3728 b = b[:cap(b)] 3729 n, err := m.MarshalToSizedBuffer(b) 3730 if err != nil { 3731 return nil, err 3732 } 3733 return b[:n], nil 3734 } 3735 } 3736 func (m *QuerySubaccountEffectivePositionInMarketRequest) XXX_Merge(src proto.Message) { 3737 xxx_messageInfo_QuerySubaccountEffectivePositionInMarketRequest.Merge(m, src) 3738 } 3739 func (m *QuerySubaccountEffectivePositionInMarketRequest) XXX_Size() int { 3740 return m.Size() 3741 } 3742 func (m *QuerySubaccountEffectivePositionInMarketRequest) XXX_DiscardUnknown() { 3743 xxx_messageInfo_QuerySubaccountEffectivePositionInMarketRequest.DiscardUnknown(m) 3744 } 3745 3746 var xxx_messageInfo_QuerySubaccountEffectivePositionInMarketRequest proto.InternalMessageInfo 3747 3748 func (m *QuerySubaccountEffectivePositionInMarketRequest) GetSubaccountId() string { 3749 if m != nil { 3750 return m.SubaccountId 3751 } 3752 return "" 3753 } 3754 3755 func (m *QuerySubaccountEffectivePositionInMarketRequest) GetMarketId() string { 3756 if m != nil { 3757 return m.MarketId 3758 } 3759 return "" 3760 } 3761 3762 // QuerySubaccountOrderMetadataRequest is the request type for the 3763 // Query/SubaccountOrderMetadata RPC method. 3764 type QuerySubaccountOrderMetadataRequest struct { 3765 SubaccountId string `protobuf:"bytes,1,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"` 3766 } 3767 3768 func (m *QuerySubaccountOrderMetadataRequest) Reset() { *m = QuerySubaccountOrderMetadataRequest{} } 3769 func (m *QuerySubaccountOrderMetadataRequest) String() string { return proto.CompactTextString(m) } 3770 func (*QuerySubaccountOrderMetadataRequest) ProtoMessage() {} 3771 func (*QuerySubaccountOrderMetadataRequest) Descriptor() ([]byte, []int) { 3772 return fileDescriptor_523db28b8af54781, []int{70} 3773 } 3774 func (m *QuerySubaccountOrderMetadataRequest) XXX_Unmarshal(b []byte) error { 3775 return m.Unmarshal(b) 3776 } 3777 func (m *QuerySubaccountOrderMetadataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3778 if deterministic { 3779 return xxx_messageInfo_QuerySubaccountOrderMetadataRequest.Marshal(b, m, deterministic) 3780 } else { 3781 b = b[:cap(b)] 3782 n, err := m.MarshalToSizedBuffer(b) 3783 if err != nil { 3784 return nil, err 3785 } 3786 return b[:n], nil 3787 } 3788 } 3789 func (m *QuerySubaccountOrderMetadataRequest) XXX_Merge(src proto.Message) { 3790 xxx_messageInfo_QuerySubaccountOrderMetadataRequest.Merge(m, src) 3791 } 3792 func (m *QuerySubaccountOrderMetadataRequest) XXX_Size() int { 3793 return m.Size() 3794 } 3795 func (m *QuerySubaccountOrderMetadataRequest) XXX_DiscardUnknown() { 3796 xxx_messageInfo_QuerySubaccountOrderMetadataRequest.DiscardUnknown(m) 3797 } 3798 3799 var xxx_messageInfo_QuerySubaccountOrderMetadataRequest proto.InternalMessageInfo 3800 3801 func (m *QuerySubaccountOrderMetadataRequest) GetSubaccountId() string { 3802 if m != nil { 3803 return m.SubaccountId 3804 } 3805 return "" 3806 } 3807 3808 // QuerySubaccountPositionsResponse is the response type for the 3809 // Query/SubaccountPositions RPC method. 3810 type QuerySubaccountPositionsResponse struct { 3811 State []DerivativePosition `protobuf:"bytes,1,rep,name=state,proto3" json:"state"` 3812 } 3813 3814 func (m *QuerySubaccountPositionsResponse) Reset() { *m = QuerySubaccountPositionsResponse{} } 3815 func (m *QuerySubaccountPositionsResponse) String() string { return proto.CompactTextString(m) } 3816 func (*QuerySubaccountPositionsResponse) ProtoMessage() {} 3817 func (*QuerySubaccountPositionsResponse) Descriptor() ([]byte, []int) { 3818 return fileDescriptor_523db28b8af54781, []int{71} 3819 } 3820 func (m *QuerySubaccountPositionsResponse) XXX_Unmarshal(b []byte) error { 3821 return m.Unmarshal(b) 3822 } 3823 func (m *QuerySubaccountPositionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3824 if deterministic { 3825 return xxx_messageInfo_QuerySubaccountPositionsResponse.Marshal(b, m, deterministic) 3826 } else { 3827 b = b[:cap(b)] 3828 n, err := m.MarshalToSizedBuffer(b) 3829 if err != nil { 3830 return nil, err 3831 } 3832 return b[:n], nil 3833 } 3834 } 3835 func (m *QuerySubaccountPositionsResponse) XXX_Merge(src proto.Message) { 3836 xxx_messageInfo_QuerySubaccountPositionsResponse.Merge(m, src) 3837 } 3838 func (m *QuerySubaccountPositionsResponse) XXX_Size() int { 3839 return m.Size() 3840 } 3841 func (m *QuerySubaccountPositionsResponse) XXX_DiscardUnknown() { 3842 xxx_messageInfo_QuerySubaccountPositionsResponse.DiscardUnknown(m) 3843 } 3844 3845 var xxx_messageInfo_QuerySubaccountPositionsResponse proto.InternalMessageInfo 3846 3847 func (m *QuerySubaccountPositionsResponse) GetState() []DerivativePosition { 3848 if m != nil { 3849 return m.State 3850 } 3851 return nil 3852 } 3853 3854 // QuerySubaccountPositionInMarketResponse is the response type for the 3855 // Query/SubaccountPositionInMarket RPC method. 3856 type QuerySubaccountPositionInMarketResponse struct { 3857 State *Position `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` 3858 } 3859 3860 func (m *QuerySubaccountPositionInMarketResponse) Reset() { 3861 *m = QuerySubaccountPositionInMarketResponse{} 3862 } 3863 func (m *QuerySubaccountPositionInMarketResponse) String() string { return proto.CompactTextString(m) } 3864 func (*QuerySubaccountPositionInMarketResponse) ProtoMessage() {} 3865 func (*QuerySubaccountPositionInMarketResponse) Descriptor() ([]byte, []int) { 3866 return fileDescriptor_523db28b8af54781, []int{72} 3867 } 3868 func (m *QuerySubaccountPositionInMarketResponse) XXX_Unmarshal(b []byte) error { 3869 return m.Unmarshal(b) 3870 } 3871 func (m *QuerySubaccountPositionInMarketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3872 if deterministic { 3873 return xxx_messageInfo_QuerySubaccountPositionInMarketResponse.Marshal(b, m, deterministic) 3874 } else { 3875 b = b[:cap(b)] 3876 n, err := m.MarshalToSizedBuffer(b) 3877 if err != nil { 3878 return nil, err 3879 } 3880 return b[:n], nil 3881 } 3882 } 3883 func (m *QuerySubaccountPositionInMarketResponse) XXX_Merge(src proto.Message) { 3884 xxx_messageInfo_QuerySubaccountPositionInMarketResponse.Merge(m, src) 3885 } 3886 func (m *QuerySubaccountPositionInMarketResponse) XXX_Size() int { 3887 return m.Size() 3888 } 3889 func (m *QuerySubaccountPositionInMarketResponse) XXX_DiscardUnknown() { 3890 xxx_messageInfo_QuerySubaccountPositionInMarketResponse.DiscardUnknown(m) 3891 } 3892 3893 var xxx_messageInfo_QuerySubaccountPositionInMarketResponse proto.InternalMessageInfo 3894 3895 func (m *QuerySubaccountPositionInMarketResponse) GetState() *Position { 3896 if m != nil { 3897 return m.State 3898 } 3899 return nil 3900 } 3901 3902 type EffectivePosition struct { 3903 IsLong bool `protobuf:"varint,1,opt,name=is_long,json=isLong,proto3" json:"is_long,omitempty"` 3904 Quantity cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=quantity,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"quantity"` 3905 EntryPrice cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=entry_price,json=entryPrice,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"entry_price"` 3906 EffectiveMargin cosmossdk_io_math.LegacyDec `protobuf:"bytes,4,opt,name=effective_margin,json=effectiveMargin,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"effective_margin"` 3907 } 3908 3909 func (m *EffectivePosition) Reset() { *m = EffectivePosition{} } 3910 func (m *EffectivePosition) String() string { return proto.CompactTextString(m) } 3911 func (*EffectivePosition) ProtoMessage() {} 3912 func (*EffectivePosition) Descriptor() ([]byte, []int) { 3913 return fileDescriptor_523db28b8af54781, []int{73} 3914 } 3915 func (m *EffectivePosition) XXX_Unmarshal(b []byte) error { 3916 return m.Unmarshal(b) 3917 } 3918 func (m *EffectivePosition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3919 if deterministic { 3920 return xxx_messageInfo_EffectivePosition.Marshal(b, m, deterministic) 3921 } else { 3922 b = b[:cap(b)] 3923 n, err := m.MarshalToSizedBuffer(b) 3924 if err != nil { 3925 return nil, err 3926 } 3927 return b[:n], nil 3928 } 3929 } 3930 func (m *EffectivePosition) XXX_Merge(src proto.Message) { 3931 xxx_messageInfo_EffectivePosition.Merge(m, src) 3932 } 3933 func (m *EffectivePosition) XXX_Size() int { 3934 return m.Size() 3935 } 3936 func (m *EffectivePosition) XXX_DiscardUnknown() { 3937 xxx_messageInfo_EffectivePosition.DiscardUnknown(m) 3938 } 3939 3940 var xxx_messageInfo_EffectivePosition proto.InternalMessageInfo 3941 3942 func (m *EffectivePosition) GetIsLong() bool { 3943 if m != nil { 3944 return m.IsLong 3945 } 3946 return false 3947 } 3948 3949 // QuerySubaccountEffectivePositionInMarketResponse is the response type for the 3950 // Query/SubaccountEffectivePositionInMarket RPC method. 3951 type QuerySubaccountEffectivePositionInMarketResponse struct { 3952 State *EffectivePosition `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` 3953 } 3954 3955 func (m *QuerySubaccountEffectivePositionInMarketResponse) Reset() { 3956 *m = QuerySubaccountEffectivePositionInMarketResponse{} 3957 } 3958 func (m *QuerySubaccountEffectivePositionInMarketResponse) String() string { 3959 return proto.CompactTextString(m) 3960 } 3961 func (*QuerySubaccountEffectivePositionInMarketResponse) ProtoMessage() {} 3962 func (*QuerySubaccountEffectivePositionInMarketResponse) Descriptor() ([]byte, []int) { 3963 return fileDescriptor_523db28b8af54781, []int{74} 3964 } 3965 func (m *QuerySubaccountEffectivePositionInMarketResponse) XXX_Unmarshal(b []byte) error { 3966 return m.Unmarshal(b) 3967 } 3968 func (m *QuerySubaccountEffectivePositionInMarketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3969 if deterministic { 3970 return xxx_messageInfo_QuerySubaccountEffectivePositionInMarketResponse.Marshal(b, m, deterministic) 3971 } else { 3972 b = b[:cap(b)] 3973 n, err := m.MarshalToSizedBuffer(b) 3974 if err != nil { 3975 return nil, err 3976 } 3977 return b[:n], nil 3978 } 3979 } 3980 func (m *QuerySubaccountEffectivePositionInMarketResponse) XXX_Merge(src proto.Message) { 3981 xxx_messageInfo_QuerySubaccountEffectivePositionInMarketResponse.Merge(m, src) 3982 } 3983 func (m *QuerySubaccountEffectivePositionInMarketResponse) XXX_Size() int { 3984 return m.Size() 3985 } 3986 func (m *QuerySubaccountEffectivePositionInMarketResponse) XXX_DiscardUnknown() { 3987 xxx_messageInfo_QuerySubaccountEffectivePositionInMarketResponse.DiscardUnknown(m) 3988 } 3989 3990 var xxx_messageInfo_QuerySubaccountEffectivePositionInMarketResponse proto.InternalMessageInfo 3991 3992 func (m *QuerySubaccountEffectivePositionInMarketResponse) GetState() *EffectivePosition { 3993 if m != nil { 3994 return m.State 3995 } 3996 return nil 3997 } 3998 3999 // QueryPerpetualMarketInfoRequest is the request type for the 4000 // Query/PerpetualMarketInfo RPC method. 4001 type QueryPerpetualMarketInfoRequest struct { 4002 MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` 4003 } 4004 4005 func (m *QueryPerpetualMarketInfoRequest) Reset() { *m = QueryPerpetualMarketInfoRequest{} } 4006 func (m *QueryPerpetualMarketInfoRequest) String() string { return proto.CompactTextString(m) } 4007 func (*QueryPerpetualMarketInfoRequest) ProtoMessage() {} 4008 func (*QueryPerpetualMarketInfoRequest) Descriptor() ([]byte, []int) { 4009 return fileDescriptor_523db28b8af54781, []int{75} 4010 } 4011 func (m *QueryPerpetualMarketInfoRequest) XXX_Unmarshal(b []byte) error { 4012 return m.Unmarshal(b) 4013 } 4014 func (m *QueryPerpetualMarketInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 4015 if deterministic { 4016 return xxx_messageInfo_QueryPerpetualMarketInfoRequest.Marshal(b, m, deterministic) 4017 } else { 4018 b = b[:cap(b)] 4019 n, err := m.MarshalToSizedBuffer(b) 4020 if err != nil { 4021 return nil, err 4022 } 4023 return b[:n], nil 4024 } 4025 } 4026 func (m *QueryPerpetualMarketInfoRequest) XXX_Merge(src proto.Message) { 4027 xxx_messageInfo_QueryPerpetualMarketInfoRequest.Merge(m, src) 4028 } 4029 func (m *QueryPerpetualMarketInfoRequest) XXX_Size() int { 4030 return m.Size() 4031 } 4032 func (m *QueryPerpetualMarketInfoRequest) XXX_DiscardUnknown() { 4033 xxx_messageInfo_QueryPerpetualMarketInfoRequest.DiscardUnknown(m) 4034 } 4035 4036 var xxx_messageInfo_QueryPerpetualMarketInfoRequest proto.InternalMessageInfo 4037 4038 func (m *QueryPerpetualMarketInfoRequest) GetMarketId() string { 4039 if m != nil { 4040 return m.MarketId 4041 } 4042 return "" 4043 } 4044 4045 // QueryPerpetualMarketInfoResponse is the response type for the 4046 // Query/PerpetualMarketInfo RPC method. 4047 type QueryPerpetualMarketInfoResponse struct { 4048 Info PerpetualMarketInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info"` 4049 } 4050 4051 func (m *QueryPerpetualMarketInfoResponse) Reset() { *m = QueryPerpetualMarketInfoResponse{} } 4052 func (m *QueryPerpetualMarketInfoResponse) String() string { return proto.CompactTextString(m) } 4053 func (*QueryPerpetualMarketInfoResponse) ProtoMessage() {} 4054 func (*QueryPerpetualMarketInfoResponse) Descriptor() ([]byte, []int) { 4055 return fileDescriptor_523db28b8af54781, []int{76} 4056 } 4057 func (m *QueryPerpetualMarketInfoResponse) XXX_Unmarshal(b []byte) error { 4058 return m.Unmarshal(b) 4059 } 4060 func (m *QueryPerpetualMarketInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 4061 if deterministic { 4062 return xxx_messageInfo_QueryPerpetualMarketInfoResponse.Marshal(b, m, deterministic) 4063 } else { 4064 b = b[:cap(b)] 4065 n, err := m.MarshalToSizedBuffer(b) 4066 if err != nil { 4067 return nil, err 4068 } 4069 return b[:n], nil 4070 } 4071 } 4072 func (m *QueryPerpetualMarketInfoResponse) XXX_Merge(src proto.Message) { 4073 xxx_messageInfo_QueryPerpetualMarketInfoResponse.Merge(m, src) 4074 } 4075 func (m *QueryPerpetualMarketInfoResponse) XXX_Size() int { 4076 return m.Size() 4077 } 4078 func (m *QueryPerpetualMarketInfoResponse) XXX_DiscardUnknown() { 4079 xxx_messageInfo_QueryPerpetualMarketInfoResponse.DiscardUnknown(m) 4080 } 4081 4082 var xxx_messageInfo_QueryPerpetualMarketInfoResponse proto.InternalMessageInfo 4083 4084 func (m *QueryPerpetualMarketInfoResponse) GetInfo() PerpetualMarketInfo { 4085 if m != nil { 4086 return m.Info 4087 } 4088 return PerpetualMarketInfo{} 4089 } 4090 4091 // QueryExpiryFuturesMarketInfoRequest is the request type for the Query/ 4092 // ExpiryFuturesMarketInfo RPC method. 4093 type QueryExpiryFuturesMarketInfoRequest struct { 4094 MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` 4095 } 4096 4097 func (m *QueryExpiryFuturesMarketInfoRequest) Reset() { *m = QueryExpiryFuturesMarketInfoRequest{} } 4098 func (m *QueryExpiryFuturesMarketInfoRequest) String() string { return proto.CompactTextString(m) } 4099 func (*QueryExpiryFuturesMarketInfoRequest) ProtoMessage() {} 4100 func (*QueryExpiryFuturesMarketInfoRequest) Descriptor() ([]byte, []int) { 4101 return fileDescriptor_523db28b8af54781, []int{77} 4102 } 4103 func (m *QueryExpiryFuturesMarketInfoRequest) XXX_Unmarshal(b []byte) error { 4104 return m.Unmarshal(b) 4105 } 4106 func (m *QueryExpiryFuturesMarketInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 4107 if deterministic { 4108 return xxx_messageInfo_QueryExpiryFuturesMarketInfoRequest.Marshal(b, m, deterministic) 4109 } else { 4110 b = b[:cap(b)] 4111 n, err := m.MarshalToSizedBuffer(b) 4112 if err != nil { 4113 return nil, err 4114 } 4115 return b[:n], nil 4116 } 4117 } 4118 func (m *QueryExpiryFuturesMarketInfoRequest) XXX_Merge(src proto.Message) { 4119 xxx_messageInfo_QueryExpiryFuturesMarketInfoRequest.Merge(m, src) 4120 } 4121 func (m *QueryExpiryFuturesMarketInfoRequest) XXX_Size() int { 4122 return m.Size() 4123 } 4124 func (m *QueryExpiryFuturesMarketInfoRequest) XXX_DiscardUnknown() { 4125 xxx_messageInfo_QueryExpiryFuturesMarketInfoRequest.DiscardUnknown(m) 4126 } 4127 4128 var xxx_messageInfo_QueryExpiryFuturesMarketInfoRequest proto.InternalMessageInfo 4129 4130 func (m *QueryExpiryFuturesMarketInfoRequest) GetMarketId() string { 4131 if m != nil { 4132 return m.MarketId 4133 } 4134 return "" 4135 } 4136 4137 // QueryExpiryFuturesMarketInfoResponse is the response type for the Query/ 4138 // ExpiryFuturesMarketInfo RPC method. 4139 type QueryExpiryFuturesMarketInfoResponse struct { 4140 Info ExpiryFuturesMarketInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info"` 4141 } 4142 4143 func (m *QueryExpiryFuturesMarketInfoResponse) Reset() { *m = QueryExpiryFuturesMarketInfoResponse{} } 4144 func (m *QueryExpiryFuturesMarketInfoResponse) String() string { return proto.CompactTextString(m) } 4145 func (*QueryExpiryFuturesMarketInfoResponse) ProtoMessage() {} 4146 func (*QueryExpiryFuturesMarketInfoResponse) Descriptor() ([]byte, []int) { 4147 return fileDescriptor_523db28b8af54781, []int{78} 4148 } 4149 func (m *QueryExpiryFuturesMarketInfoResponse) XXX_Unmarshal(b []byte) error { 4150 return m.Unmarshal(b) 4151 } 4152 func (m *QueryExpiryFuturesMarketInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 4153 if deterministic { 4154 return xxx_messageInfo_QueryExpiryFuturesMarketInfoResponse.Marshal(b, m, deterministic) 4155 } else { 4156 b = b[:cap(b)] 4157 n, err := m.MarshalToSizedBuffer(b) 4158 if err != nil { 4159 return nil, err 4160 } 4161 return b[:n], nil 4162 } 4163 } 4164 func (m *QueryExpiryFuturesMarketInfoResponse) XXX_Merge(src proto.Message) { 4165 xxx_messageInfo_QueryExpiryFuturesMarketInfoResponse.Merge(m, src) 4166 } 4167 func (m *QueryExpiryFuturesMarketInfoResponse) XXX_Size() int { 4168 return m.Size() 4169 } 4170 func (m *QueryExpiryFuturesMarketInfoResponse) XXX_DiscardUnknown() { 4171 xxx_messageInfo_QueryExpiryFuturesMarketInfoResponse.DiscardUnknown(m) 4172 } 4173 4174 var xxx_messageInfo_QueryExpiryFuturesMarketInfoResponse proto.InternalMessageInfo 4175 4176 func (m *QueryExpiryFuturesMarketInfoResponse) GetInfo() ExpiryFuturesMarketInfo { 4177 if m != nil { 4178 return m.Info 4179 } 4180 return ExpiryFuturesMarketInfo{} 4181 } 4182 4183 // QueryPerpetualMarketFundingRequest is the request type for the 4184 // Query/PerpetualMarketFunding RPC method. 4185 type QueryPerpetualMarketFundingRequest struct { 4186 MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` 4187 } 4188 4189 func (m *QueryPerpetualMarketFundingRequest) Reset() { *m = QueryPerpetualMarketFundingRequest{} } 4190 func (m *QueryPerpetualMarketFundingRequest) String() string { return proto.CompactTextString(m) } 4191 func (*QueryPerpetualMarketFundingRequest) ProtoMessage() {} 4192 func (*QueryPerpetualMarketFundingRequest) Descriptor() ([]byte, []int) { 4193 return fileDescriptor_523db28b8af54781, []int{79} 4194 } 4195 func (m *QueryPerpetualMarketFundingRequest) XXX_Unmarshal(b []byte) error { 4196 return m.Unmarshal(b) 4197 } 4198 func (m *QueryPerpetualMarketFundingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 4199 if deterministic { 4200 return xxx_messageInfo_QueryPerpetualMarketFundingRequest.Marshal(b, m, deterministic) 4201 } else { 4202 b = b[:cap(b)] 4203 n, err := m.MarshalToSizedBuffer(b) 4204 if err != nil { 4205 return nil, err 4206 } 4207 return b[:n], nil 4208 } 4209 } 4210 func (m *QueryPerpetualMarketFundingRequest) XXX_Merge(src proto.Message) { 4211 xxx_messageInfo_QueryPerpetualMarketFundingRequest.Merge(m, src) 4212 } 4213 func (m *QueryPerpetualMarketFundingRequest) XXX_Size() int { 4214 return m.Size() 4215 } 4216 func (m *QueryPerpetualMarketFundingRequest) XXX_DiscardUnknown() { 4217 xxx_messageInfo_QueryPerpetualMarketFundingRequest.DiscardUnknown(m) 4218 } 4219 4220 var xxx_messageInfo_QueryPerpetualMarketFundingRequest proto.InternalMessageInfo 4221 4222 func (m *QueryPerpetualMarketFundingRequest) GetMarketId() string { 4223 if m != nil { 4224 return m.MarketId 4225 } 4226 return "" 4227 } 4228 4229 // QueryPerpetualMarketFundingResponse is the response type for the 4230 // Query/PerpetualMarketFunding RPC method. 4231 type QueryPerpetualMarketFundingResponse struct { 4232 State PerpetualMarketFunding `protobuf:"bytes,1,opt,name=state,proto3" json:"state"` 4233 } 4234 4235 func (m *QueryPerpetualMarketFundingResponse) Reset() { *m = QueryPerpetualMarketFundingResponse{} } 4236 func (m *QueryPerpetualMarketFundingResponse) String() string { return proto.CompactTextString(m) } 4237 func (*QueryPerpetualMarketFundingResponse) ProtoMessage() {} 4238 func (*QueryPerpetualMarketFundingResponse) Descriptor() ([]byte, []int) { 4239 return fileDescriptor_523db28b8af54781, []int{80} 4240 } 4241 func (m *QueryPerpetualMarketFundingResponse) XXX_Unmarshal(b []byte) error { 4242 return m.Unmarshal(b) 4243 } 4244 func (m *QueryPerpetualMarketFundingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 4245 if deterministic { 4246 return xxx_messageInfo_QueryPerpetualMarketFundingResponse.Marshal(b, m, deterministic) 4247 } else { 4248 b = b[:cap(b)] 4249 n, err := m.MarshalToSizedBuffer(b) 4250 if err != nil { 4251 return nil, err 4252 } 4253 return b[:n], nil 4254 } 4255 } 4256 func (m *QueryPerpetualMarketFundingResponse) XXX_Merge(src proto.Message) { 4257 xxx_messageInfo_QueryPerpetualMarketFundingResponse.Merge(m, src) 4258 } 4259 func (m *QueryPerpetualMarketFundingResponse) XXX_Size() int { 4260 return m.Size() 4261 } 4262 func (m *QueryPerpetualMarketFundingResponse) XXX_DiscardUnknown() { 4263 xxx_messageInfo_QueryPerpetualMarketFundingResponse.DiscardUnknown(m) 4264 } 4265 4266 var xxx_messageInfo_QueryPerpetualMarketFundingResponse proto.InternalMessageInfo 4267 4268 func (m *QueryPerpetualMarketFundingResponse) GetState() PerpetualMarketFunding { 4269 if m != nil { 4270 return m.State 4271 } 4272 return PerpetualMarketFunding{} 4273 } 4274 4275 // QuerySubaccountOrderMetadataResponse is the response type for the 4276 // Query/SubaccountOrderMetadata RPC method. 4277 type QuerySubaccountOrderMetadataResponse struct { 4278 Metadata []SubaccountOrderbookMetadataWithMarket `protobuf:"bytes,1,rep,name=metadata,proto3" json:"metadata"` 4279 } 4280 4281 func (m *QuerySubaccountOrderMetadataResponse) Reset() { *m = QuerySubaccountOrderMetadataResponse{} } 4282 func (m *QuerySubaccountOrderMetadataResponse) String() string { return proto.CompactTextString(m) } 4283 func (*QuerySubaccountOrderMetadataResponse) ProtoMessage() {} 4284 func (*QuerySubaccountOrderMetadataResponse) Descriptor() ([]byte, []int) { 4285 return fileDescriptor_523db28b8af54781, []int{81} 4286 } 4287 func (m *QuerySubaccountOrderMetadataResponse) XXX_Unmarshal(b []byte) error { 4288 return m.Unmarshal(b) 4289 } 4290 func (m *QuerySubaccountOrderMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 4291 if deterministic { 4292 return xxx_messageInfo_QuerySubaccountOrderMetadataResponse.Marshal(b, m, deterministic) 4293 } else { 4294 b = b[:cap(b)] 4295 n, err := m.MarshalToSizedBuffer(b) 4296 if err != nil { 4297 return nil, err 4298 } 4299 return b[:n], nil 4300 } 4301 } 4302 func (m *QuerySubaccountOrderMetadataResponse) XXX_Merge(src proto.Message) { 4303 xxx_messageInfo_QuerySubaccountOrderMetadataResponse.Merge(m, src) 4304 } 4305 func (m *QuerySubaccountOrderMetadataResponse) XXX_Size() int { 4306 return m.Size() 4307 } 4308 func (m *QuerySubaccountOrderMetadataResponse) XXX_DiscardUnknown() { 4309 xxx_messageInfo_QuerySubaccountOrderMetadataResponse.DiscardUnknown(m) 4310 } 4311 4312 var xxx_messageInfo_QuerySubaccountOrderMetadataResponse proto.InternalMessageInfo 4313 4314 func (m *QuerySubaccountOrderMetadataResponse) GetMetadata() []SubaccountOrderbookMetadataWithMarket { 4315 if m != nil { 4316 return m.Metadata 4317 } 4318 return nil 4319 } 4320 4321 // QuerySubaccountTradeNonceResponse is the response type for the 4322 // Query/SubaccountTradeNonce RPC method. 4323 type QuerySubaccountTradeNonceResponse struct { 4324 Nonce uint32 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` 4325 } 4326 4327 func (m *QuerySubaccountTradeNonceResponse) Reset() { *m = QuerySubaccountTradeNonceResponse{} } 4328 func (m *QuerySubaccountTradeNonceResponse) String() string { return proto.CompactTextString(m) } 4329 func (*QuerySubaccountTradeNonceResponse) ProtoMessage() {} 4330 func (*QuerySubaccountTradeNonceResponse) Descriptor() ([]byte, []int) { 4331 return fileDescriptor_523db28b8af54781, []int{82} 4332 } 4333 func (m *QuerySubaccountTradeNonceResponse) XXX_Unmarshal(b []byte) error { 4334 return m.Unmarshal(b) 4335 } 4336 func (m *QuerySubaccountTradeNonceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 4337 if deterministic { 4338 return xxx_messageInfo_QuerySubaccountTradeNonceResponse.Marshal(b, m, deterministic) 4339 } else { 4340 b = b[:cap(b)] 4341 n, err := m.MarshalToSizedBuffer(b) 4342 if err != nil { 4343 return nil, err 4344 } 4345 return b[:n], nil 4346 } 4347 } 4348 func (m *QuerySubaccountTradeNonceResponse) XXX_Merge(src proto.Message) { 4349 xxx_messageInfo_QuerySubaccountTradeNonceResponse.Merge(m, src) 4350 } 4351 func (m *QuerySubaccountTradeNonceResponse) XXX_Size() int { 4352 return m.Size() 4353 } 4354 func (m *QuerySubaccountTradeNonceResponse) XXX_DiscardUnknown() { 4355 xxx_messageInfo_QuerySubaccountTradeNonceResponse.DiscardUnknown(m) 4356 } 4357 4358 var xxx_messageInfo_QuerySubaccountTradeNonceResponse proto.InternalMessageInfo 4359 4360 func (m *QuerySubaccountTradeNonceResponse) GetNonce() uint32 { 4361 if m != nil { 4362 return m.Nonce 4363 } 4364 return 0 4365 } 4366 4367 // QueryModuleStateRequest is the request type for the Query/ExchangeModuleState 4368 // RPC method. 4369 type QueryModuleStateRequest struct { 4370 } 4371 4372 func (m *QueryModuleStateRequest) Reset() { *m = QueryModuleStateRequest{} } 4373 func (m *QueryModuleStateRequest) String() string { return proto.CompactTextString(m) } 4374 func (*QueryModuleStateRequest) ProtoMessage() {} 4375 func (*QueryModuleStateRequest) Descriptor() ([]byte, []int) { 4376 return fileDescriptor_523db28b8af54781, []int{83} 4377 } 4378 func (m *QueryModuleStateRequest) XXX_Unmarshal(b []byte) error { 4379 return m.Unmarshal(b) 4380 } 4381 func (m *QueryModuleStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 4382 if deterministic { 4383 return xxx_messageInfo_QueryModuleStateRequest.Marshal(b, m, deterministic) 4384 } else { 4385 b = b[:cap(b)] 4386 n, err := m.MarshalToSizedBuffer(b) 4387 if err != nil { 4388 return nil, err 4389 } 4390 return b[:n], nil 4391 } 4392 } 4393 func (m *QueryModuleStateRequest) XXX_Merge(src proto.Message) { 4394 xxx_messageInfo_QueryModuleStateRequest.Merge(m, src) 4395 } 4396 func (m *QueryModuleStateRequest) XXX_Size() int { 4397 return m.Size() 4398 } 4399 func (m *QueryModuleStateRequest) XXX_DiscardUnknown() { 4400 xxx_messageInfo_QueryModuleStateRequest.DiscardUnknown(m) 4401 } 4402 4403 var xxx_messageInfo_QueryModuleStateRequest proto.InternalMessageInfo 4404 4405 // QueryModuleStateResponse is the response type for the 4406 // Query/ExchangeModuleState RPC method. 4407 type QueryModuleStateResponse struct { 4408 State *GenesisState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` 4409 } 4410 4411 func (m *QueryModuleStateResponse) Reset() { *m = QueryModuleStateResponse{} } 4412 func (m *QueryModuleStateResponse) String() string { return proto.CompactTextString(m) } 4413 func (*QueryModuleStateResponse) ProtoMessage() {} 4414 func (*QueryModuleStateResponse) Descriptor() ([]byte, []int) { 4415 return fileDescriptor_523db28b8af54781, []int{84} 4416 } 4417 func (m *QueryModuleStateResponse) XXX_Unmarshal(b []byte) error { 4418 return m.Unmarshal(b) 4419 } 4420 func (m *QueryModuleStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 4421 if deterministic { 4422 return xxx_messageInfo_QueryModuleStateResponse.Marshal(b, m, deterministic) 4423 } else { 4424 b = b[:cap(b)] 4425 n, err := m.MarshalToSizedBuffer(b) 4426 if err != nil { 4427 return nil, err 4428 } 4429 return b[:n], nil 4430 } 4431 } 4432 func (m *QueryModuleStateResponse) XXX_Merge(src proto.Message) { 4433 xxx_messageInfo_QueryModuleStateResponse.Merge(m, src) 4434 } 4435 func (m *QueryModuleStateResponse) XXX_Size() int { 4436 return m.Size() 4437 } 4438 func (m *QueryModuleStateResponse) XXX_DiscardUnknown() { 4439 xxx_messageInfo_QueryModuleStateResponse.DiscardUnknown(m) 4440 } 4441 4442 var xxx_messageInfo_QueryModuleStateResponse proto.InternalMessageInfo 4443 4444 func (m *QueryModuleStateResponse) GetState() *GenesisState { 4445 if m != nil { 4446 return m.State 4447 } 4448 return nil 4449 } 4450 4451 // QueryPositionsRequest is the request type for the Query/Positions RPC method. 4452 type QueryPositionsRequest struct { 4453 } 4454 4455 func (m *QueryPositionsRequest) Reset() { *m = QueryPositionsRequest{} } 4456 func (m *QueryPositionsRequest) String() string { return proto.CompactTextString(m) } 4457 func (*QueryPositionsRequest) ProtoMessage() {} 4458 func (*QueryPositionsRequest) Descriptor() ([]byte, []int) { 4459 return fileDescriptor_523db28b8af54781, []int{85} 4460 } 4461 func (m *QueryPositionsRequest) XXX_Unmarshal(b []byte) error { 4462 return m.Unmarshal(b) 4463 } 4464 func (m *QueryPositionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 4465 if deterministic { 4466 return xxx_messageInfo_QueryPositionsRequest.Marshal(b, m, deterministic) 4467 } else { 4468 b = b[:cap(b)] 4469 n, err := m.MarshalToSizedBuffer(b) 4470 if err != nil { 4471 return nil, err 4472 } 4473 return b[:n], nil 4474 } 4475 } 4476 func (m *QueryPositionsRequest) XXX_Merge(src proto.Message) { 4477 xxx_messageInfo_QueryPositionsRequest.Merge(m, src) 4478 } 4479 func (m *QueryPositionsRequest) XXX_Size() int { 4480 return m.Size() 4481 } 4482 func (m *QueryPositionsRequest) XXX_DiscardUnknown() { 4483 xxx_messageInfo_QueryPositionsRequest.DiscardUnknown(m) 4484 } 4485 4486 var xxx_messageInfo_QueryPositionsRequest proto.InternalMessageInfo 4487 4488 // QueryPositionsResponse is the response type for the Query/Positions RPC 4489 // method. 4490 type QueryPositionsResponse struct { 4491 State []DerivativePosition `protobuf:"bytes,1,rep,name=state,proto3" json:"state"` 4492 } 4493 4494 func (m *QueryPositionsResponse) Reset() { *m = QueryPositionsResponse{} } 4495 func (m *QueryPositionsResponse) String() string { return proto.CompactTextString(m) } 4496 func (*QueryPositionsResponse) ProtoMessage() {} 4497 func (*QueryPositionsResponse) Descriptor() ([]byte, []int) { 4498 return fileDescriptor_523db28b8af54781, []int{86} 4499 } 4500 func (m *QueryPositionsResponse) XXX_Unmarshal(b []byte) error { 4501 return m.Unmarshal(b) 4502 } 4503 func (m *QueryPositionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 4504 if deterministic { 4505 return xxx_messageInfo_QueryPositionsResponse.Marshal(b, m, deterministic) 4506 } else { 4507 b = b[:cap(b)] 4508 n, err := m.MarshalToSizedBuffer(b) 4509 if err != nil { 4510 return nil, err 4511 } 4512 return b[:n], nil 4513 } 4514 } 4515 func (m *QueryPositionsResponse) XXX_Merge(src proto.Message) { 4516 xxx_messageInfo_QueryPositionsResponse.Merge(m, src) 4517 } 4518 func (m *QueryPositionsResponse) XXX_Size() int { 4519 return m.Size() 4520 } 4521 func (m *QueryPositionsResponse) XXX_DiscardUnknown() { 4522 xxx_messageInfo_QueryPositionsResponse.DiscardUnknown(m) 4523 } 4524 4525 var xxx_messageInfo_QueryPositionsResponse proto.InternalMessageInfo 4526 4527 func (m *QueryPositionsResponse) GetState() []DerivativePosition { 4528 if m != nil { 4529 return m.State 4530 } 4531 return nil 4532 } 4533 4534 // QueryTradeRewardPointsRequest is the request type for the 4535 // Query/TradeRewardPoints RPC method. 4536 type QueryTradeRewardPointsRequest struct { 4537 Accounts []string `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` 4538 PendingPoolTimestamp int64 `protobuf:"varint,2,opt,name=pending_pool_timestamp,json=pendingPoolTimestamp,proto3" json:"pending_pool_timestamp,omitempty"` 4539 } 4540 4541 func (m *QueryTradeRewardPointsRequest) Reset() { *m = QueryTradeRewardPointsRequest{} } 4542 func (m *QueryTradeRewardPointsRequest) String() string { return proto.CompactTextString(m) } 4543 func (*QueryTradeRewardPointsRequest) ProtoMessage() {} 4544 func (*QueryTradeRewardPointsRequest) Descriptor() ([]byte, []int) { 4545 return fileDescriptor_523db28b8af54781, []int{87} 4546 } 4547 func (m *QueryTradeRewardPointsRequest) XXX_Unmarshal(b []byte) error { 4548 return m.Unmarshal(b) 4549 } 4550 func (m *QueryTradeRewardPointsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 4551 if deterministic { 4552 return xxx_messageInfo_QueryTradeRewardPointsRequest.Marshal(b, m, deterministic) 4553 } else { 4554 b = b[:cap(b)] 4555 n, err := m.MarshalToSizedBuffer(b) 4556 if err != nil { 4557 return nil, err 4558 } 4559 return b[:n], nil 4560 } 4561 } 4562 func (m *QueryTradeRewardPointsRequest) XXX_Merge(src proto.Message) { 4563 xxx_messageInfo_QueryTradeRewardPointsRequest.Merge(m, src) 4564 } 4565 func (m *QueryTradeRewardPointsRequest) XXX_Size() int { 4566 return m.Size() 4567 } 4568 func (m *QueryTradeRewardPointsRequest) XXX_DiscardUnknown() { 4569 xxx_messageInfo_QueryTradeRewardPointsRequest.DiscardUnknown(m) 4570 } 4571 4572 var xxx_messageInfo_QueryTradeRewardPointsRequest proto.InternalMessageInfo 4573 4574 func (m *QueryTradeRewardPointsRequest) GetAccounts() []string { 4575 if m != nil { 4576 return m.Accounts 4577 } 4578 return nil 4579 } 4580 4581 func (m *QueryTradeRewardPointsRequest) GetPendingPoolTimestamp() int64 { 4582 if m != nil { 4583 return m.PendingPoolTimestamp 4584 } 4585 return 0 4586 } 4587 4588 // QueryTradeRewardPointsResponse is the response type for the 4589 // Query/TradeRewardPoints RPC method. 4590 type QueryTradeRewardPointsResponse struct { 4591 AccountTradeRewardPoints []cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,rep,name=account_trade_reward_points,json=accountTradeRewardPoints,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"account_trade_reward_points"` 4592 } 4593 4594 func (m *QueryTradeRewardPointsResponse) Reset() { *m = QueryTradeRewardPointsResponse{} } 4595 func (m *QueryTradeRewardPointsResponse) String() string { return proto.CompactTextString(m) } 4596 func (*QueryTradeRewardPointsResponse) ProtoMessage() {} 4597 func (*QueryTradeRewardPointsResponse) Descriptor() ([]byte, []int) { 4598 return fileDescriptor_523db28b8af54781, []int{88} 4599 } 4600 func (m *QueryTradeRewardPointsResponse) XXX_Unmarshal(b []byte) error { 4601 return m.Unmarshal(b) 4602 } 4603 func (m *QueryTradeRewardPointsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 4604 if deterministic { 4605 return xxx_messageInfo_QueryTradeRewardPointsResponse.Marshal(b, m, deterministic) 4606 } else { 4607 b = b[:cap(b)] 4608 n, err := m.MarshalToSizedBuffer(b) 4609 if err != nil { 4610 return nil, err 4611 } 4612 return b[:n], nil 4613 } 4614 } 4615 func (m *QueryTradeRewardPointsResponse) XXX_Merge(src proto.Message) { 4616 xxx_messageInfo_QueryTradeRewardPointsResponse.Merge(m, src) 4617 } 4618 func (m *QueryTradeRewardPointsResponse) XXX_Size() int { 4619 return m.Size() 4620 } 4621 func (m *QueryTradeRewardPointsResponse) XXX_DiscardUnknown() { 4622 xxx_messageInfo_QueryTradeRewardPointsResponse.DiscardUnknown(m) 4623 } 4624 4625 var xxx_messageInfo_QueryTradeRewardPointsResponse proto.InternalMessageInfo 4626 4627 // QueryTradeRewardCampaignRequest is the request type for the 4628 // Query/TradeRewardCampaign RPC method. 4629 type QueryTradeRewardCampaignRequest struct { 4630 } 4631 4632 func (m *QueryTradeRewardCampaignRequest) Reset() { *m = QueryTradeRewardCampaignRequest{} } 4633 func (m *QueryTradeRewardCampaignRequest) String() string { return proto.CompactTextString(m) } 4634 func (*QueryTradeRewardCampaignRequest) ProtoMessage() {} 4635 func (*QueryTradeRewardCampaignRequest) Descriptor() ([]byte, []int) { 4636 return fileDescriptor_523db28b8af54781, []int{89} 4637 } 4638 func (m *QueryTradeRewardCampaignRequest) XXX_Unmarshal(b []byte) error { 4639 return m.Unmarshal(b) 4640 } 4641 func (m *QueryTradeRewardCampaignRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 4642 if deterministic { 4643 return xxx_messageInfo_QueryTradeRewardCampaignRequest.Marshal(b, m, deterministic) 4644 } else { 4645 b = b[:cap(b)] 4646 n, err := m.MarshalToSizedBuffer(b) 4647 if err != nil { 4648 return nil, err 4649 } 4650 return b[:n], nil 4651 } 4652 } 4653 func (m *QueryTradeRewardCampaignRequest) XXX_Merge(src proto.Message) { 4654 xxx_messageInfo_QueryTradeRewardCampaignRequest.Merge(m, src) 4655 } 4656 func (m *QueryTradeRewardCampaignRequest) XXX_Size() int { 4657 return m.Size() 4658 } 4659 func (m *QueryTradeRewardCampaignRequest) XXX_DiscardUnknown() { 4660 xxx_messageInfo_QueryTradeRewardCampaignRequest.DiscardUnknown(m) 4661 } 4662 4663 var xxx_messageInfo_QueryTradeRewardCampaignRequest proto.InternalMessageInfo 4664 4665 // QueryTradeRewardCampaignResponse is the response type for the 4666 // Query/TradeRewardCampaign RPC method. 4667 type QueryTradeRewardCampaignResponse struct { 4668 TradingRewardCampaignInfo *TradingRewardCampaignInfo `protobuf:"bytes,1,opt,name=trading_reward_campaign_info,json=tradingRewardCampaignInfo,proto3" json:"trading_reward_campaign_info,omitempty"` 4669 TradingRewardPoolCampaignSchedule []*CampaignRewardPool `protobuf:"bytes,2,rep,name=trading_reward_pool_campaign_schedule,json=tradingRewardPoolCampaignSchedule,proto3" json:"trading_reward_pool_campaign_schedule,omitempty"` 4670 TotalTradeRewardPoints cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=total_trade_reward_points,json=totalTradeRewardPoints,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"total_trade_reward_points"` 4671 PendingTradingRewardPoolCampaignSchedule []*CampaignRewardPool `protobuf:"bytes,4,rep,name=pending_trading_reward_pool_campaign_schedule,json=pendingTradingRewardPoolCampaignSchedule,proto3" json:"pending_trading_reward_pool_campaign_schedule,omitempty"` 4672 PendingTotalTradeRewardPoints []cosmossdk_io_math.LegacyDec `protobuf:"bytes,5,rep,name=pending_total_trade_reward_points,json=pendingTotalTradeRewardPoints,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"pending_total_trade_reward_points"` 4673 } 4674 4675 func (m *QueryTradeRewardCampaignResponse) Reset() { *m = QueryTradeRewardCampaignResponse{} } 4676 func (m *QueryTradeRewardCampaignResponse) String() string { return proto.CompactTextString(m) } 4677 func (*QueryTradeRewardCampaignResponse) ProtoMessage() {} 4678 func (*QueryTradeRewardCampaignResponse) Descriptor() ([]byte, []int) { 4679 return fileDescriptor_523db28b8af54781, []int{90} 4680 } 4681 func (m *QueryTradeRewardCampaignResponse) XXX_Unmarshal(b []byte) error { 4682 return m.Unmarshal(b) 4683 } 4684 func (m *QueryTradeRewardCampaignResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 4685 if deterministic { 4686 return xxx_messageInfo_QueryTradeRewardCampaignResponse.Marshal(b, m, deterministic) 4687 } else { 4688 b = b[:cap(b)] 4689 n, err := m.MarshalToSizedBuffer(b) 4690 if err != nil { 4691 return nil, err 4692 } 4693 return b[:n], nil 4694 } 4695 } 4696 func (m *QueryTradeRewardCampaignResponse) XXX_Merge(src proto.Message) { 4697 xxx_messageInfo_QueryTradeRewardCampaignResponse.Merge(m, src) 4698 } 4699 func (m *QueryTradeRewardCampaignResponse) XXX_Size() int { 4700 return m.Size() 4701 } 4702 func (m *QueryTradeRewardCampaignResponse) XXX_DiscardUnknown() { 4703 xxx_messageInfo_QueryTradeRewardCampaignResponse.DiscardUnknown(m) 4704 } 4705 4706 var xxx_messageInfo_QueryTradeRewardCampaignResponse proto.InternalMessageInfo 4707 4708 func (m *QueryTradeRewardCampaignResponse) GetTradingRewardCampaignInfo() *TradingRewardCampaignInfo { 4709 if m != nil { 4710 return m.TradingRewardCampaignInfo 4711 } 4712 return nil 4713 } 4714 4715 func (m *QueryTradeRewardCampaignResponse) GetTradingRewardPoolCampaignSchedule() []*CampaignRewardPool { 4716 if m != nil { 4717 return m.TradingRewardPoolCampaignSchedule 4718 } 4719 return nil 4720 } 4721 4722 func (m *QueryTradeRewardCampaignResponse) GetPendingTradingRewardPoolCampaignSchedule() []*CampaignRewardPool { 4723 if m != nil { 4724 return m.PendingTradingRewardPoolCampaignSchedule 4725 } 4726 return nil 4727 } 4728 4729 // QueryIsRegisteredDMMRequest is the request type for the Query/IsRegisteredDMM 4730 // RPC method. 4731 type QueryIsOptedOutOfRewardsRequest struct { 4732 Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` 4733 } 4734 4735 func (m *QueryIsOptedOutOfRewardsRequest) Reset() { *m = QueryIsOptedOutOfRewardsRequest{} } 4736 func (m *QueryIsOptedOutOfRewardsRequest) String() string { return proto.CompactTextString(m) } 4737 func (*QueryIsOptedOutOfRewardsRequest) ProtoMessage() {} 4738 func (*QueryIsOptedOutOfRewardsRequest) Descriptor() ([]byte, []int) { 4739 return fileDescriptor_523db28b8af54781, []int{91} 4740 } 4741 func (m *QueryIsOptedOutOfRewardsRequest) XXX_Unmarshal(b []byte) error { 4742 return m.Unmarshal(b) 4743 } 4744 func (m *QueryIsOptedOutOfRewardsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 4745 if deterministic { 4746 return xxx_messageInfo_QueryIsOptedOutOfRewardsRequest.Marshal(b, m, deterministic) 4747 } else { 4748 b = b[:cap(b)] 4749 n, err := m.MarshalToSizedBuffer(b) 4750 if err != nil { 4751 return nil, err 4752 } 4753 return b[:n], nil 4754 } 4755 } 4756 func (m *QueryIsOptedOutOfRewardsRequest) XXX_Merge(src proto.Message) { 4757 xxx_messageInfo_QueryIsOptedOutOfRewardsRequest.Merge(m, src) 4758 } 4759 func (m *QueryIsOptedOutOfRewardsRequest) XXX_Size() int { 4760 return m.Size() 4761 } 4762 func (m *QueryIsOptedOutOfRewardsRequest) XXX_DiscardUnknown() { 4763 xxx_messageInfo_QueryIsOptedOutOfRewardsRequest.DiscardUnknown(m) 4764 } 4765 4766 var xxx_messageInfo_QueryIsOptedOutOfRewardsRequest proto.InternalMessageInfo 4767 4768 func (m *QueryIsOptedOutOfRewardsRequest) GetAccount() string { 4769 if m != nil { 4770 return m.Account 4771 } 4772 return "" 4773 } 4774 4775 // QueryIsRegisteredDMMResponse is the response type for the 4776 // Query/IsRegisteredDMM RPC method. 4777 type QueryIsOptedOutOfRewardsResponse struct { 4778 IsOptedOut bool `protobuf:"varint,1,opt,name=is_opted_out,json=isOptedOut,proto3" json:"is_opted_out,omitempty"` 4779 } 4780 4781 func (m *QueryIsOptedOutOfRewardsResponse) Reset() { *m = QueryIsOptedOutOfRewardsResponse{} } 4782 func (m *QueryIsOptedOutOfRewardsResponse) String() string { return proto.CompactTextString(m) } 4783 func (*QueryIsOptedOutOfRewardsResponse) ProtoMessage() {} 4784 func (*QueryIsOptedOutOfRewardsResponse) Descriptor() ([]byte, []int) { 4785 return fileDescriptor_523db28b8af54781, []int{92} 4786 } 4787 func (m *QueryIsOptedOutOfRewardsResponse) XXX_Unmarshal(b []byte) error { 4788 return m.Unmarshal(b) 4789 } 4790 func (m *QueryIsOptedOutOfRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 4791 if deterministic { 4792 return xxx_messageInfo_QueryIsOptedOutOfRewardsResponse.Marshal(b, m, deterministic) 4793 } else { 4794 b = b[:cap(b)] 4795 n, err := m.MarshalToSizedBuffer(b) 4796 if err != nil { 4797 return nil, err 4798 } 4799 return b[:n], nil 4800 } 4801 } 4802 func (m *QueryIsOptedOutOfRewardsResponse) XXX_Merge(src proto.Message) { 4803 xxx_messageInfo_QueryIsOptedOutOfRewardsResponse.Merge(m, src) 4804 } 4805 func (m *QueryIsOptedOutOfRewardsResponse) XXX_Size() int { 4806 return m.Size() 4807 } 4808 func (m *QueryIsOptedOutOfRewardsResponse) XXX_DiscardUnknown() { 4809 xxx_messageInfo_QueryIsOptedOutOfRewardsResponse.DiscardUnknown(m) 4810 } 4811 4812 var xxx_messageInfo_QueryIsOptedOutOfRewardsResponse proto.InternalMessageInfo 4813 4814 func (m *QueryIsOptedOutOfRewardsResponse) GetIsOptedOut() bool { 4815 if m != nil { 4816 return m.IsOptedOut 4817 } 4818 return false 4819 } 4820 4821 // QueryRegisteredDMMsRequest is the request type for the Query/RegisteredDMMs 4822 // RPC method. 4823 type QueryOptedOutOfRewardsAccountsRequest struct { 4824 } 4825 4826 func (m *QueryOptedOutOfRewardsAccountsRequest) Reset() { *m = QueryOptedOutOfRewardsAccountsRequest{} } 4827 func (m *QueryOptedOutOfRewardsAccountsRequest) String() string { return proto.CompactTextString(m) } 4828 func (*QueryOptedOutOfRewardsAccountsRequest) ProtoMessage() {} 4829 func (*QueryOptedOutOfRewardsAccountsRequest) Descriptor() ([]byte, []int) { 4830 return fileDescriptor_523db28b8af54781, []int{93} 4831 } 4832 func (m *QueryOptedOutOfRewardsAccountsRequest) XXX_Unmarshal(b []byte) error { 4833 return m.Unmarshal(b) 4834 } 4835 func (m *QueryOptedOutOfRewardsAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 4836 if deterministic { 4837 return xxx_messageInfo_QueryOptedOutOfRewardsAccountsRequest.Marshal(b, m, deterministic) 4838 } else { 4839 b = b[:cap(b)] 4840 n, err := m.MarshalToSizedBuffer(b) 4841 if err != nil { 4842 return nil, err 4843 } 4844 return b[:n], nil 4845 } 4846 } 4847 func (m *QueryOptedOutOfRewardsAccountsRequest) XXX_Merge(src proto.Message) { 4848 xxx_messageInfo_QueryOptedOutOfRewardsAccountsRequest.Merge(m, src) 4849 } 4850 func (m *QueryOptedOutOfRewardsAccountsRequest) XXX_Size() int { 4851 return m.Size() 4852 } 4853 func (m *QueryOptedOutOfRewardsAccountsRequest) XXX_DiscardUnknown() { 4854 xxx_messageInfo_QueryOptedOutOfRewardsAccountsRequest.DiscardUnknown(m) 4855 } 4856 4857 var xxx_messageInfo_QueryOptedOutOfRewardsAccountsRequest proto.InternalMessageInfo 4858 4859 // QueryRegisteredDMMsResponse is the response type for the Query/RegisteredDMMs 4860 // RPC method. 4861 type QueryOptedOutOfRewardsAccountsResponse struct { 4862 Accounts []string `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` 4863 } 4864 4865 func (m *QueryOptedOutOfRewardsAccountsResponse) Reset() { 4866 *m = QueryOptedOutOfRewardsAccountsResponse{} 4867 } 4868 func (m *QueryOptedOutOfRewardsAccountsResponse) String() string { return proto.CompactTextString(m) } 4869 func (*QueryOptedOutOfRewardsAccountsResponse) ProtoMessage() {} 4870 func (*QueryOptedOutOfRewardsAccountsResponse) Descriptor() ([]byte, []int) { 4871 return fileDescriptor_523db28b8af54781, []int{94} 4872 } 4873 func (m *QueryOptedOutOfRewardsAccountsResponse) XXX_Unmarshal(b []byte) error { 4874 return m.Unmarshal(b) 4875 } 4876 func (m *QueryOptedOutOfRewardsAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 4877 if deterministic { 4878 return xxx_messageInfo_QueryOptedOutOfRewardsAccountsResponse.Marshal(b, m, deterministic) 4879 } else { 4880 b = b[:cap(b)] 4881 n, err := m.MarshalToSizedBuffer(b) 4882 if err != nil { 4883 return nil, err 4884 } 4885 return b[:n], nil 4886 } 4887 } 4888 func (m *QueryOptedOutOfRewardsAccountsResponse) XXX_Merge(src proto.Message) { 4889 xxx_messageInfo_QueryOptedOutOfRewardsAccountsResponse.Merge(m, src) 4890 } 4891 func (m *QueryOptedOutOfRewardsAccountsResponse) XXX_Size() int { 4892 return m.Size() 4893 } 4894 func (m *QueryOptedOutOfRewardsAccountsResponse) XXX_DiscardUnknown() { 4895 xxx_messageInfo_QueryOptedOutOfRewardsAccountsResponse.DiscardUnknown(m) 4896 } 4897 4898 var xxx_messageInfo_QueryOptedOutOfRewardsAccountsResponse proto.InternalMessageInfo 4899 4900 func (m *QueryOptedOutOfRewardsAccountsResponse) GetAccounts() []string { 4901 if m != nil { 4902 return m.Accounts 4903 } 4904 return nil 4905 } 4906 4907 // QueryFeeDiscountAccountInfoRequest is the request type for the 4908 // Query/FeeDiscountAccountInfo RPC method. 4909 type QueryFeeDiscountAccountInfoRequest struct { 4910 Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` 4911 } 4912 4913 func (m *QueryFeeDiscountAccountInfoRequest) Reset() { *m = QueryFeeDiscountAccountInfoRequest{} } 4914 func (m *QueryFeeDiscountAccountInfoRequest) String() string { return proto.CompactTextString(m) } 4915 func (*QueryFeeDiscountAccountInfoRequest) ProtoMessage() {} 4916 func (*QueryFeeDiscountAccountInfoRequest) Descriptor() ([]byte, []int) { 4917 return fileDescriptor_523db28b8af54781, []int{95} 4918 } 4919 func (m *QueryFeeDiscountAccountInfoRequest) XXX_Unmarshal(b []byte) error { 4920 return m.Unmarshal(b) 4921 } 4922 func (m *QueryFeeDiscountAccountInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 4923 if deterministic { 4924 return xxx_messageInfo_QueryFeeDiscountAccountInfoRequest.Marshal(b, m, deterministic) 4925 } else { 4926 b = b[:cap(b)] 4927 n, err := m.MarshalToSizedBuffer(b) 4928 if err != nil { 4929 return nil, err 4930 } 4931 return b[:n], nil 4932 } 4933 } 4934 func (m *QueryFeeDiscountAccountInfoRequest) XXX_Merge(src proto.Message) { 4935 xxx_messageInfo_QueryFeeDiscountAccountInfoRequest.Merge(m, src) 4936 } 4937 func (m *QueryFeeDiscountAccountInfoRequest) XXX_Size() int { 4938 return m.Size() 4939 } 4940 func (m *QueryFeeDiscountAccountInfoRequest) XXX_DiscardUnknown() { 4941 xxx_messageInfo_QueryFeeDiscountAccountInfoRequest.DiscardUnknown(m) 4942 } 4943 4944 var xxx_messageInfo_QueryFeeDiscountAccountInfoRequest proto.InternalMessageInfo 4945 4946 func (m *QueryFeeDiscountAccountInfoRequest) GetAccount() string { 4947 if m != nil { 4948 return m.Account 4949 } 4950 return "" 4951 } 4952 4953 // QueryFeeDiscountAccountInfoResponse is the response type for the 4954 // Query/FeeDiscountAccountInfo RPC method. 4955 type QueryFeeDiscountAccountInfoResponse struct { 4956 TierLevel uint64 `protobuf:"varint,1,opt,name=tier_level,json=tierLevel,proto3" json:"tier_level,omitempty"` 4957 AccountInfo *FeeDiscountTierInfo `protobuf:"bytes,2,opt,name=account_info,json=accountInfo,proto3" json:"account_info,omitempty"` 4958 AccountTtl *FeeDiscountTierTTL `protobuf:"bytes,3,opt,name=account_ttl,json=accountTtl,proto3" json:"account_ttl,omitempty"` 4959 } 4960 4961 func (m *QueryFeeDiscountAccountInfoResponse) Reset() { *m = QueryFeeDiscountAccountInfoResponse{} } 4962 func (m *QueryFeeDiscountAccountInfoResponse) String() string { return proto.CompactTextString(m) } 4963 func (*QueryFeeDiscountAccountInfoResponse) ProtoMessage() {} 4964 func (*QueryFeeDiscountAccountInfoResponse) Descriptor() ([]byte, []int) { 4965 return fileDescriptor_523db28b8af54781, []int{96} 4966 } 4967 func (m *QueryFeeDiscountAccountInfoResponse) XXX_Unmarshal(b []byte) error { 4968 return m.Unmarshal(b) 4969 } 4970 func (m *QueryFeeDiscountAccountInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 4971 if deterministic { 4972 return xxx_messageInfo_QueryFeeDiscountAccountInfoResponse.Marshal(b, m, deterministic) 4973 } else { 4974 b = b[:cap(b)] 4975 n, err := m.MarshalToSizedBuffer(b) 4976 if err != nil { 4977 return nil, err 4978 } 4979 return b[:n], nil 4980 } 4981 } 4982 func (m *QueryFeeDiscountAccountInfoResponse) XXX_Merge(src proto.Message) { 4983 xxx_messageInfo_QueryFeeDiscountAccountInfoResponse.Merge(m, src) 4984 } 4985 func (m *QueryFeeDiscountAccountInfoResponse) XXX_Size() int { 4986 return m.Size() 4987 } 4988 func (m *QueryFeeDiscountAccountInfoResponse) XXX_DiscardUnknown() { 4989 xxx_messageInfo_QueryFeeDiscountAccountInfoResponse.DiscardUnknown(m) 4990 } 4991 4992 var xxx_messageInfo_QueryFeeDiscountAccountInfoResponse proto.InternalMessageInfo 4993 4994 func (m *QueryFeeDiscountAccountInfoResponse) GetTierLevel() uint64 { 4995 if m != nil { 4996 return m.TierLevel 4997 } 4998 return 0 4999 } 5000 5001 func (m *QueryFeeDiscountAccountInfoResponse) GetAccountInfo() *FeeDiscountTierInfo { 5002 if m != nil { 5003 return m.AccountInfo 5004 } 5005 return nil 5006 } 5007 5008 func (m *QueryFeeDiscountAccountInfoResponse) GetAccountTtl() *FeeDiscountTierTTL { 5009 if m != nil { 5010 return m.AccountTtl 5011 } 5012 return nil 5013 } 5014 5015 // QueryFeeDiscountScheduleRequest is the request type for the 5016 // Query/FeeDiscountSchedule RPC method. 5017 type QueryFeeDiscountScheduleRequest struct { 5018 } 5019 5020 func (m *QueryFeeDiscountScheduleRequest) Reset() { *m = QueryFeeDiscountScheduleRequest{} } 5021 func (m *QueryFeeDiscountScheduleRequest) String() string { return proto.CompactTextString(m) } 5022 func (*QueryFeeDiscountScheduleRequest) ProtoMessage() {} 5023 func (*QueryFeeDiscountScheduleRequest) Descriptor() ([]byte, []int) { 5024 return fileDescriptor_523db28b8af54781, []int{97} 5025 } 5026 func (m *QueryFeeDiscountScheduleRequest) XXX_Unmarshal(b []byte) error { 5027 return m.Unmarshal(b) 5028 } 5029 func (m *QueryFeeDiscountScheduleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 5030 if deterministic { 5031 return xxx_messageInfo_QueryFeeDiscountScheduleRequest.Marshal(b, m, deterministic) 5032 } else { 5033 b = b[:cap(b)] 5034 n, err := m.MarshalToSizedBuffer(b) 5035 if err != nil { 5036 return nil, err 5037 } 5038 return b[:n], nil 5039 } 5040 } 5041 func (m *QueryFeeDiscountScheduleRequest) XXX_Merge(src proto.Message) { 5042 xxx_messageInfo_QueryFeeDiscountScheduleRequest.Merge(m, src) 5043 } 5044 func (m *QueryFeeDiscountScheduleRequest) XXX_Size() int { 5045 return m.Size() 5046 } 5047 func (m *QueryFeeDiscountScheduleRequest) XXX_DiscardUnknown() { 5048 xxx_messageInfo_QueryFeeDiscountScheduleRequest.DiscardUnknown(m) 5049 } 5050 5051 var xxx_messageInfo_QueryFeeDiscountScheduleRequest proto.InternalMessageInfo 5052 5053 // QueryFeeDiscountScheduleResponse is the response type for the 5054 // Query/FeeDiscountSchedule RPC method. 5055 type QueryFeeDiscountScheduleResponse struct { 5056 FeeDiscountSchedule *FeeDiscountSchedule `protobuf:"bytes,1,opt,name=fee_discount_schedule,json=feeDiscountSchedule,proto3" json:"fee_discount_schedule,omitempty"` 5057 } 5058 5059 func (m *QueryFeeDiscountScheduleResponse) Reset() { *m = QueryFeeDiscountScheduleResponse{} } 5060 func (m *QueryFeeDiscountScheduleResponse) String() string { return proto.CompactTextString(m) } 5061 func (*QueryFeeDiscountScheduleResponse) ProtoMessage() {} 5062 func (*QueryFeeDiscountScheduleResponse) Descriptor() ([]byte, []int) { 5063 return fileDescriptor_523db28b8af54781, []int{98} 5064 } 5065 func (m *QueryFeeDiscountScheduleResponse) XXX_Unmarshal(b []byte) error { 5066 return m.Unmarshal(b) 5067 } 5068 func (m *QueryFeeDiscountScheduleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 5069 if deterministic { 5070 return xxx_messageInfo_QueryFeeDiscountScheduleResponse.Marshal(b, m, deterministic) 5071 } else { 5072 b = b[:cap(b)] 5073 n, err := m.MarshalToSizedBuffer(b) 5074 if err != nil { 5075 return nil, err 5076 } 5077 return b[:n], nil 5078 } 5079 } 5080 func (m *QueryFeeDiscountScheduleResponse) XXX_Merge(src proto.Message) { 5081 xxx_messageInfo_QueryFeeDiscountScheduleResponse.Merge(m, src) 5082 } 5083 func (m *QueryFeeDiscountScheduleResponse) XXX_Size() int { 5084 return m.Size() 5085 } 5086 func (m *QueryFeeDiscountScheduleResponse) XXX_DiscardUnknown() { 5087 xxx_messageInfo_QueryFeeDiscountScheduleResponse.DiscardUnknown(m) 5088 } 5089 5090 var xxx_messageInfo_QueryFeeDiscountScheduleResponse proto.InternalMessageInfo 5091 5092 func (m *QueryFeeDiscountScheduleResponse) GetFeeDiscountSchedule() *FeeDiscountSchedule { 5093 if m != nil { 5094 return m.FeeDiscountSchedule 5095 } 5096 return nil 5097 } 5098 5099 // QueryBalanceMismatchesRequest is the request type for the 5100 // Query/QueryBalanceMismatches RPC method. 5101 type QueryBalanceMismatchesRequest struct { 5102 DustFactor int64 `protobuf:"varint,1,opt,name=dust_factor,json=dustFactor,proto3" json:"dust_factor,omitempty"` 5103 } 5104 5105 func (m *QueryBalanceMismatchesRequest) Reset() { *m = QueryBalanceMismatchesRequest{} } 5106 func (m *QueryBalanceMismatchesRequest) String() string { return proto.CompactTextString(m) } 5107 func (*QueryBalanceMismatchesRequest) ProtoMessage() {} 5108 func (*QueryBalanceMismatchesRequest) Descriptor() ([]byte, []int) { 5109 return fileDescriptor_523db28b8af54781, []int{99} 5110 } 5111 func (m *QueryBalanceMismatchesRequest) XXX_Unmarshal(b []byte) error { 5112 return m.Unmarshal(b) 5113 } 5114 func (m *QueryBalanceMismatchesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 5115 if deterministic { 5116 return xxx_messageInfo_QueryBalanceMismatchesRequest.Marshal(b, m, deterministic) 5117 } else { 5118 b = b[:cap(b)] 5119 n, err := m.MarshalToSizedBuffer(b) 5120 if err != nil { 5121 return nil, err 5122 } 5123 return b[:n], nil 5124 } 5125 } 5126 func (m *QueryBalanceMismatchesRequest) XXX_Merge(src proto.Message) { 5127 xxx_messageInfo_QueryBalanceMismatchesRequest.Merge(m, src) 5128 } 5129 func (m *QueryBalanceMismatchesRequest) XXX_Size() int { 5130 return m.Size() 5131 } 5132 func (m *QueryBalanceMismatchesRequest) XXX_DiscardUnknown() { 5133 xxx_messageInfo_QueryBalanceMismatchesRequest.DiscardUnknown(m) 5134 } 5135 5136 var xxx_messageInfo_QueryBalanceMismatchesRequest proto.InternalMessageInfo 5137 5138 func (m *QueryBalanceMismatchesRequest) GetDustFactor() int64 { 5139 if m != nil { 5140 return m.DustFactor 5141 } 5142 return 0 5143 } 5144 5145 type BalanceMismatch struct { 5146 SubaccountId string `protobuf:"bytes,1,opt,name=subaccountId,proto3" json:"subaccountId,omitempty"` 5147 Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` 5148 Available cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=available,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"available"` 5149 Total cosmossdk_io_math.LegacyDec `protobuf:"bytes,4,opt,name=total,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"total"` 5150 BalanceHold cosmossdk_io_math.LegacyDec `protobuf:"bytes,5,opt,name=balance_hold,json=balanceHold,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"balance_hold"` 5151 ExpectedTotal cosmossdk_io_math.LegacyDec `protobuf:"bytes,6,opt,name=expected_total,json=expectedTotal,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"expected_total"` 5152 Difference cosmossdk_io_math.LegacyDec `protobuf:"bytes,7,opt,name=difference,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"difference"` 5153 } 5154 5155 func (m *BalanceMismatch) Reset() { *m = BalanceMismatch{} } 5156 func (m *BalanceMismatch) String() string { return proto.CompactTextString(m) } 5157 func (*BalanceMismatch) ProtoMessage() {} 5158 func (*BalanceMismatch) Descriptor() ([]byte, []int) { 5159 return fileDescriptor_523db28b8af54781, []int{100} 5160 } 5161 func (m *BalanceMismatch) XXX_Unmarshal(b []byte) error { 5162 return m.Unmarshal(b) 5163 } 5164 func (m *BalanceMismatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 5165 if deterministic { 5166 return xxx_messageInfo_BalanceMismatch.Marshal(b, m, deterministic) 5167 } else { 5168 b = b[:cap(b)] 5169 n, err := m.MarshalToSizedBuffer(b) 5170 if err != nil { 5171 return nil, err 5172 } 5173 return b[:n], nil 5174 } 5175 } 5176 func (m *BalanceMismatch) XXX_Merge(src proto.Message) { 5177 xxx_messageInfo_BalanceMismatch.Merge(m, src) 5178 } 5179 func (m *BalanceMismatch) XXX_Size() int { 5180 return m.Size() 5181 } 5182 func (m *BalanceMismatch) XXX_DiscardUnknown() { 5183 xxx_messageInfo_BalanceMismatch.DiscardUnknown(m) 5184 } 5185 5186 var xxx_messageInfo_BalanceMismatch proto.InternalMessageInfo 5187 5188 func (m *BalanceMismatch) GetSubaccountId() string { 5189 if m != nil { 5190 return m.SubaccountId 5191 } 5192 return "" 5193 } 5194 5195 func (m *BalanceMismatch) GetDenom() string { 5196 if m != nil { 5197 return m.Denom 5198 } 5199 return "" 5200 } 5201 5202 // QueryBalanceMismatchesResponse is the response type for the 5203 // Query/QueryBalanceMismatches RPC method. 5204 type QueryBalanceMismatchesResponse struct { 5205 BalanceMismatches []*BalanceMismatch `protobuf:"bytes,1,rep,name=balance_mismatches,json=balanceMismatches,proto3" json:"balance_mismatches,omitempty"` 5206 } 5207 5208 func (m *QueryBalanceMismatchesResponse) Reset() { *m = QueryBalanceMismatchesResponse{} } 5209 func (m *QueryBalanceMismatchesResponse) String() string { return proto.CompactTextString(m) } 5210 func (*QueryBalanceMismatchesResponse) ProtoMessage() {} 5211 func (*QueryBalanceMismatchesResponse) Descriptor() ([]byte, []int) { 5212 return fileDescriptor_523db28b8af54781, []int{101} 5213 } 5214 func (m *QueryBalanceMismatchesResponse) XXX_Unmarshal(b []byte) error { 5215 return m.Unmarshal(b) 5216 } 5217 func (m *QueryBalanceMismatchesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 5218 if deterministic { 5219 return xxx_messageInfo_QueryBalanceMismatchesResponse.Marshal(b, m, deterministic) 5220 } else { 5221 b = b[:cap(b)] 5222 n, err := m.MarshalToSizedBuffer(b) 5223 if err != nil { 5224 return nil, err 5225 } 5226 return b[:n], nil 5227 } 5228 } 5229 func (m *QueryBalanceMismatchesResponse) XXX_Merge(src proto.Message) { 5230 xxx_messageInfo_QueryBalanceMismatchesResponse.Merge(m, src) 5231 } 5232 func (m *QueryBalanceMismatchesResponse) XXX_Size() int { 5233 return m.Size() 5234 } 5235 func (m *QueryBalanceMismatchesResponse) XXX_DiscardUnknown() { 5236 xxx_messageInfo_QueryBalanceMismatchesResponse.DiscardUnknown(m) 5237 } 5238 5239 var xxx_messageInfo_QueryBalanceMismatchesResponse proto.InternalMessageInfo 5240 5241 func (m *QueryBalanceMismatchesResponse) GetBalanceMismatches() []*BalanceMismatch { 5242 if m != nil { 5243 return m.BalanceMismatches 5244 } 5245 return nil 5246 } 5247 5248 // QueryBalanceWithBalanceHoldsRequest is the request type for the 5249 // Query/QueryBalanceWithBalanceHolds RPC method. 5250 type QueryBalanceWithBalanceHoldsRequest struct { 5251 } 5252 5253 func (m *QueryBalanceWithBalanceHoldsRequest) Reset() { *m = QueryBalanceWithBalanceHoldsRequest{} } 5254 func (m *QueryBalanceWithBalanceHoldsRequest) String() string { return proto.CompactTextString(m) } 5255 func (*QueryBalanceWithBalanceHoldsRequest) ProtoMessage() {} 5256 func (*QueryBalanceWithBalanceHoldsRequest) Descriptor() ([]byte, []int) { 5257 return fileDescriptor_523db28b8af54781, []int{102} 5258 } 5259 func (m *QueryBalanceWithBalanceHoldsRequest) XXX_Unmarshal(b []byte) error { 5260 return m.Unmarshal(b) 5261 } 5262 func (m *QueryBalanceWithBalanceHoldsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 5263 if deterministic { 5264 return xxx_messageInfo_QueryBalanceWithBalanceHoldsRequest.Marshal(b, m, deterministic) 5265 } else { 5266 b = b[:cap(b)] 5267 n, err := m.MarshalToSizedBuffer(b) 5268 if err != nil { 5269 return nil, err 5270 } 5271 return b[:n], nil 5272 } 5273 } 5274 func (m *QueryBalanceWithBalanceHoldsRequest) XXX_Merge(src proto.Message) { 5275 xxx_messageInfo_QueryBalanceWithBalanceHoldsRequest.Merge(m, src) 5276 } 5277 func (m *QueryBalanceWithBalanceHoldsRequest) XXX_Size() int { 5278 return m.Size() 5279 } 5280 func (m *QueryBalanceWithBalanceHoldsRequest) XXX_DiscardUnknown() { 5281 xxx_messageInfo_QueryBalanceWithBalanceHoldsRequest.DiscardUnknown(m) 5282 } 5283 5284 var xxx_messageInfo_QueryBalanceWithBalanceHoldsRequest proto.InternalMessageInfo 5285 5286 type BalanceWithMarginHold struct { 5287 SubaccountId string `protobuf:"bytes,1,opt,name=subaccountId,proto3" json:"subaccountId,omitempty"` 5288 Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` 5289 Available cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=available,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"available"` 5290 Total cosmossdk_io_math.LegacyDec `protobuf:"bytes,4,opt,name=total,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"total"` 5291 BalanceHold cosmossdk_io_math.LegacyDec `protobuf:"bytes,5,opt,name=balance_hold,json=balanceHold,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"balance_hold"` 5292 } 5293 5294 func (m *BalanceWithMarginHold) Reset() { *m = BalanceWithMarginHold{} } 5295 func (m *BalanceWithMarginHold) String() string { return proto.CompactTextString(m) } 5296 func (*BalanceWithMarginHold) ProtoMessage() {} 5297 func (*BalanceWithMarginHold) Descriptor() ([]byte, []int) { 5298 return fileDescriptor_523db28b8af54781, []int{103} 5299 } 5300 func (m *BalanceWithMarginHold) XXX_Unmarshal(b []byte) error { 5301 return m.Unmarshal(b) 5302 } 5303 func (m *BalanceWithMarginHold) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 5304 if deterministic { 5305 return xxx_messageInfo_BalanceWithMarginHold.Marshal(b, m, deterministic) 5306 } else { 5307 b = b[:cap(b)] 5308 n, err := m.MarshalToSizedBuffer(b) 5309 if err != nil { 5310 return nil, err 5311 } 5312 return b[:n], nil 5313 } 5314 } 5315 func (m *BalanceWithMarginHold) XXX_Merge(src proto.Message) { 5316 xxx_messageInfo_BalanceWithMarginHold.Merge(m, src) 5317 } 5318 func (m *BalanceWithMarginHold) XXX_Size() int { 5319 return m.Size() 5320 } 5321 func (m *BalanceWithMarginHold) XXX_DiscardUnknown() { 5322 xxx_messageInfo_BalanceWithMarginHold.DiscardUnknown(m) 5323 } 5324 5325 var xxx_messageInfo_BalanceWithMarginHold proto.InternalMessageInfo 5326 5327 func (m *BalanceWithMarginHold) GetSubaccountId() string { 5328 if m != nil { 5329 return m.SubaccountId 5330 } 5331 return "" 5332 } 5333 5334 func (m *BalanceWithMarginHold) GetDenom() string { 5335 if m != nil { 5336 return m.Denom 5337 } 5338 return "" 5339 } 5340 5341 // QueryBalanceWithBalanceHoldsResponse is the response type for the 5342 // Query/QueryBalanceWithBalanceHolds RPC method. 5343 type QueryBalanceWithBalanceHoldsResponse struct { 5344 BalanceWithBalanceHolds []*BalanceWithMarginHold `protobuf:"bytes,1,rep,name=balance_with_balance_holds,json=balanceWithBalanceHolds,proto3" json:"balance_with_balance_holds,omitempty"` 5345 } 5346 5347 func (m *QueryBalanceWithBalanceHoldsResponse) Reset() { *m = QueryBalanceWithBalanceHoldsResponse{} } 5348 func (m *QueryBalanceWithBalanceHoldsResponse) String() string { return proto.CompactTextString(m) } 5349 func (*QueryBalanceWithBalanceHoldsResponse) ProtoMessage() {} 5350 func (*QueryBalanceWithBalanceHoldsResponse) Descriptor() ([]byte, []int) { 5351 return fileDescriptor_523db28b8af54781, []int{104} 5352 } 5353 func (m *QueryBalanceWithBalanceHoldsResponse) XXX_Unmarshal(b []byte) error { 5354 return m.Unmarshal(b) 5355 } 5356 func (m *QueryBalanceWithBalanceHoldsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 5357 if deterministic { 5358 return xxx_messageInfo_QueryBalanceWithBalanceHoldsResponse.Marshal(b, m, deterministic) 5359 } else { 5360 b = b[:cap(b)] 5361 n, err := m.MarshalToSizedBuffer(b) 5362 if err != nil { 5363 return nil, err 5364 } 5365 return b[:n], nil 5366 } 5367 } 5368 func (m *QueryBalanceWithBalanceHoldsResponse) XXX_Merge(src proto.Message) { 5369 xxx_messageInfo_QueryBalanceWithBalanceHoldsResponse.Merge(m, src) 5370 } 5371 func (m *QueryBalanceWithBalanceHoldsResponse) XXX_Size() int { 5372 return m.Size() 5373 } 5374 func (m *QueryBalanceWithBalanceHoldsResponse) XXX_DiscardUnknown() { 5375 xxx_messageInfo_QueryBalanceWithBalanceHoldsResponse.DiscardUnknown(m) 5376 } 5377 5378 var xxx_messageInfo_QueryBalanceWithBalanceHoldsResponse proto.InternalMessageInfo 5379 5380 func (m *QueryBalanceWithBalanceHoldsResponse) GetBalanceWithBalanceHolds() []*BalanceWithMarginHold { 5381 if m != nil { 5382 return m.BalanceWithBalanceHolds 5383 } 5384 return nil 5385 } 5386 5387 // QueryFeeDiscountTierStatisticsRequest is the request type for the 5388 // Query/QueryFeeDiscountTierStatistics RPC method. 5389 type QueryFeeDiscountTierStatisticsRequest struct { 5390 } 5391 5392 func (m *QueryFeeDiscountTierStatisticsRequest) Reset() { *m = QueryFeeDiscountTierStatisticsRequest{} } 5393 func (m *QueryFeeDiscountTierStatisticsRequest) String() string { return proto.CompactTextString(m) } 5394 func (*QueryFeeDiscountTierStatisticsRequest) ProtoMessage() {} 5395 func (*QueryFeeDiscountTierStatisticsRequest) Descriptor() ([]byte, []int) { 5396 return fileDescriptor_523db28b8af54781, []int{105} 5397 } 5398 func (m *QueryFeeDiscountTierStatisticsRequest) XXX_Unmarshal(b []byte) error { 5399 return m.Unmarshal(b) 5400 } 5401 func (m *QueryFeeDiscountTierStatisticsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 5402 if deterministic { 5403 return xxx_messageInfo_QueryFeeDiscountTierStatisticsRequest.Marshal(b, m, deterministic) 5404 } else { 5405 b = b[:cap(b)] 5406 n, err := m.MarshalToSizedBuffer(b) 5407 if err != nil { 5408 return nil, err 5409 } 5410 return b[:n], nil 5411 } 5412 } 5413 func (m *QueryFeeDiscountTierStatisticsRequest) XXX_Merge(src proto.Message) { 5414 xxx_messageInfo_QueryFeeDiscountTierStatisticsRequest.Merge(m, src) 5415 } 5416 func (m *QueryFeeDiscountTierStatisticsRequest) XXX_Size() int { 5417 return m.Size() 5418 } 5419 func (m *QueryFeeDiscountTierStatisticsRequest) XXX_DiscardUnknown() { 5420 xxx_messageInfo_QueryFeeDiscountTierStatisticsRequest.DiscardUnknown(m) 5421 } 5422 5423 var xxx_messageInfo_QueryFeeDiscountTierStatisticsRequest proto.InternalMessageInfo 5424 5425 type TierStatistic struct { 5426 Tier uint64 `protobuf:"varint,1,opt,name=tier,proto3" json:"tier,omitempty"` 5427 Count uint64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` 5428 } 5429 5430 func (m *TierStatistic) Reset() { *m = TierStatistic{} } 5431 func (m *TierStatistic) String() string { return proto.CompactTextString(m) } 5432 func (*TierStatistic) ProtoMessage() {} 5433 func (*TierStatistic) Descriptor() ([]byte, []int) { 5434 return fileDescriptor_523db28b8af54781, []int{106} 5435 } 5436 func (m *TierStatistic) XXX_Unmarshal(b []byte) error { 5437 return m.Unmarshal(b) 5438 } 5439 func (m *TierStatistic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 5440 if deterministic { 5441 return xxx_messageInfo_TierStatistic.Marshal(b, m, deterministic) 5442 } else { 5443 b = b[:cap(b)] 5444 n, err := m.MarshalToSizedBuffer(b) 5445 if err != nil { 5446 return nil, err 5447 } 5448 return b[:n], nil 5449 } 5450 } 5451 func (m *TierStatistic) XXX_Merge(src proto.Message) { 5452 xxx_messageInfo_TierStatistic.Merge(m, src) 5453 } 5454 func (m *TierStatistic) XXX_Size() int { 5455 return m.Size() 5456 } 5457 func (m *TierStatistic) XXX_DiscardUnknown() { 5458 xxx_messageInfo_TierStatistic.DiscardUnknown(m) 5459 } 5460 5461 var xxx_messageInfo_TierStatistic proto.InternalMessageInfo 5462 5463 func (m *TierStatistic) GetTier() uint64 { 5464 if m != nil { 5465 return m.Tier 5466 } 5467 return 0 5468 } 5469 5470 func (m *TierStatistic) GetCount() uint64 { 5471 if m != nil { 5472 return m.Count 5473 } 5474 return 0 5475 } 5476 5477 // QueryFeeDiscountTierStatisticsResponse is the response type for the 5478 // Query/QueryFeeDiscountTierStatistics RPC method. 5479 type QueryFeeDiscountTierStatisticsResponse struct { 5480 Statistics []*TierStatistic `protobuf:"bytes,1,rep,name=statistics,proto3" json:"statistics,omitempty"` 5481 } 5482 5483 func (m *QueryFeeDiscountTierStatisticsResponse) Reset() { 5484 *m = QueryFeeDiscountTierStatisticsResponse{} 5485 } 5486 func (m *QueryFeeDiscountTierStatisticsResponse) String() string { return proto.CompactTextString(m) } 5487 func (*QueryFeeDiscountTierStatisticsResponse) ProtoMessage() {} 5488 func (*QueryFeeDiscountTierStatisticsResponse) Descriptor() ([]byte, []int) { 5489 return fileDescriptor_523db28b8af54781, []int{107} 5490 } 5491 func (m *QueryFeeDiscountTierStatisticsResponse) XXX_Unmarshal(b []byte) error { 5492 return m.Unmarshal(b) 5493 } 5494 func (m *QueryFeeDiscountTierStatisticsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 5495 if deterministic { 5496 return xxx_messageInfo_QueryFeeDiscountTierStatisticsResponse.Marshal(b, m, deterministic) 5497 } else { 5498 b = b[:cap(b)] 5499 n, err := m.MarshalToSizedBuffer(b) 5500 if err != nil { 5501 return nil, err 5502 } 5503 return b[:n], nil 5504 } 5505 } 5506 func (m *QueryFeeDiscountTierStatisticsResponse) XXX_Merge(src proto.Message) { 5507 xxx_messageInfo_QueryFeeDiscountTierStatisticsResponse.Merge(m, src) 5508 } 5509 func (m *QueryFeeDiscountTierStatisticsResponse) XXX_Size() int { 5510 return m.Size() 5511 } 5512 func (m *QueryFeeDiscountTierStatisticsResponse) XXX_DiscardUnknown() { 5513 xxx_messageInfo_QueryFeeDiscountTierStatisticsResponse.DiscardUnknown(m) 5514 } 5515 5516 var xxx_messageInfo_QueryFeeDiscountTierStatisticsResponse proto.InternalMessageInfo 5517 5518 func (m *QueryFeeDiscountTierStatisticsResponse) GetStatistics() []*TierStatistic { 5519 if m != nil { 5520 return m.Statistics 5521 } 5522 return nil 5523 } 5524 5525 // MitoVaultInfosRequest is the request type for the Query/MitoVaultInfos RPC 5526 // method. 5527 type MitoVaultInfosRequest struct { 5528 } 5529 5530 func (m *MitoVaultInfosRequest) Reset() { *m = MitoVaultInfosRequest{} } 5531 func (m *MitoVaultInfosRequest) String() string { return proto.CompactTextString(m) } 5532 func (*MitoVaultInfosRequest) ProtoMessage() {} 5533 func (*MitoVaultInfosRequest) Descriptor() ([]byte, []int) { 5534 return fileDescriptor_523db28b8af54781, []int{108} 5535 } 5536 func (m *MitoVaultInfosRequest) XXX_Unmarshal(b []byte) error { 5537 return m.Unmarshal(b) 5538 } 5539 func (m *MitoVaultInfosRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 5540 if deterministic { 5541 return xxx_messageInfo_MitoVaultInfosRequest.Marshal(b, m, deterministic) 5542 } else { 5543 b = b[:cap(b)] 5544 n, err := m.MarshalToSizedBuffer(b) 5545 if err != nil { 5546 return nil, err 5547 } 5548 return b[:n], nil 5549 } 5550 } 5551 func (m *MitoVaultInfosRequest) XXX_Merge(src proto.Message) { 5552 xxx_messageInfo_MitoVaultInfosRequest.Merge(m, src) 5553 } 5554 func (m *MitoVaultInfosRequest) XXX_Size() int { 5555 return m.Size() 5556 } 5557 func (m *MitoVaultInfosRequest) XXX_DiscardUnknown() { 5558 xxx_messageInfo_MitoVaultInfosRequest.DiscardUnknown(m) 5559 } 5560 5561 var xxx_messageInfo_MitoVaultInfosRequest proto.InternalMessageInfo 5562 5563 // MitoVaultInfosResponse is the response type for the Query/MitoVaultInfos RPC 5564 // method. 5565 type MitoVaultInfosResponse struct { 5566 MasterAddresses []string `protobuf:"bytes,1,rep,name=master_addresses,json=masterAddresses,proto3" json:"master_addresses,omitempty"` 5567 DerivativeAddresses []string `protobuf:"bytes,2,rep,name=derivative_addresses,json=derivativeAddresses,proto3" json:"derivative_addresses,omitempty"` 5568 SpotAddresses []string `protobuf:"bytes,3,rep,name=spot_addresses,json=spotAddresses,proto3" json:"spot_addresses,omitempty"` 5569 Cw20Addresses []string `protobuf:"bytes,4,rep,name=cw20_addresses,json=cw20Addresses,proto3" json:"cw20_addresses,omitempty"` 5570 } 5571 5572 func (m *MitoVaultInfosResponse) Reset() { *m = MitoVaultInfosResponse{} } 5573 func (m *MitoVaultInfosResponse) String() string { return proto.CompactTextString(m) } 5574 func (*MitoVaultInfosResponse) ProtoMessage() {} 5575 func (*MitoVaultInfosResponse) Descriptor() ([]byte, []int) { 5576 return fileDescriptor_523db28b8af54781, []int{109} 5577 } 5578 func (m *MitoVaultInfosResponse) XXX_Unmarshal(b []byte) error { 5579 return m.Unmarshal(b) 5580 } 5581 func (m *MitoVaultInfosResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 5582 if deterministic { 5583 return xxx_messageInfo_MitoVaultInfosResponse.Marshal(b, m, deterministic) 5584 } else { 5585 b = b[:cap(b)] 5586 n, err := m.MarshalToSizedBuffer(b) 5587 if err != nil { 5588 return nil, err 5589 } 5590 return b[:n], nil 5591 } 5592 } 5593 func (m *MitoVaultInfosResponse) XXX_Merge(src proto.Message) { 5594 xxx_messageInfo_MitoVaultInfosResponse.Merge(m, src) 5595 } 5596 func (m *MitoVaultInfosResponse) XXX_Size() int { 5597 return m.Size() 5598 } 5599 func (m *MitoVaultInfosResponse) XXX_DiscardUnknown() { 5600 xxx_messageInfo_MitoVaultInfosResponse.DiscardUnknown(m) 5601 } 5602 5603 var xxx_messageInfo_MitoVaultInfosResponse proto.InternalMessageInfo 5604 5605 func (m *MitoVaultInfosResponse) GetMasterAddresses() []string { 5606 if m != nil { 5607 return m.MasterAddresses 5608 } 5609 return nil 5610 } 5611 5612 func (m *MitoVaultInfosResponse) GetDerivativeAddresses() []string { 5613 if m != nil { 5614 return m.DerivativeAddresses 5615 } 5616 return nil 5617 } 5618 5619 func (m *MitoVaultInfosResponse) GetSpotAddresses() []string { 5620 if m != nil { 5621 return m.SpotAddresses 5622 } 5623 return nil 5624 } 5625 5626 func (m *MitoVaultInfosResponse) GetCw20Addresses() []string { 5627 if m != nil { 5628 return m.Cw20Addresses 5629 } 5630 return nil 5631 } 5632 5633 // QueryMarketIDFromVaultRequest is the request type for the 5634 // Query/QueryMarketIDFromVault RPC method. 5635 type QueryMarketIDFromVaultRequest struct { 5636 VaultAddress string `protobuf:"bytes,1,opt,name=vault_address,json=vaultAddress,proto3" json:"vault_address,omitempty"` 5637 } 5638 5639 func (m *QueryMarketIDFromVaultRequest) Reset() { *m = QueryMarketIDFromVaultRequest{} } 5640 func (m *QueryMarketIDFromVaultRequest) String() string { return proto.CompactTextString(m) } 5641 func (*QueryMarketIDFromVaultRequest) ProtoMessage() {} 5642 func (*QueryMarketIDFromVaultRequest) Descriptor() ([]byte, []int) { 5643 return fileDescriptor_523db28b8af54781, []int{110} 5644 } 5645 func (m *QueryMarketIDFromVaultRequest) XXX_Unmarshal(b []byte) error { 5646 return m.Unmarshal(b) 5647 } 5648 func (m *QueryMarketIDFromVaultRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 5649 if deterministic { 5650 return xxx_messageInfo_QueryMarketIDFromVaultRequest.Marshal(b, m, deterministic) 5651 } else { 5652 b = b[:cap(b)] 5653 n, err := m.MarshalToSizedBuffer(b) 5654 if err != nil { 5655 return nil, err 5656 } 5657 return b[:n], nil 5658 } 5659 } 5660 func (m *QueryMarketIDFromVaultRequest) XXX_Merge(src proto.Message) { 5661 xxx_messageInfo_QueryMarketIDFromVaultRequest.Merge(m, src) 5662 } 5663 func (m *QueryMarketIDFromVaultRequest) XXX_Size() int { 5664 return m.Size() 5665 } 5666 func (m *QueryMarketIDFromVaultRequest) XXX_DiscardUnknown() { 5667 xxx_messageInfo_QueryMarketIDFromVaultRequest.DiscardUnknown(m) 5668 } 5669 5670 var xxx_messageInfo_QueryMarketIDFromVaultRequest proto.InternalMessageInfo 5671 5672 func (m *QueryMarketIDFromVaultRequest) GetVaultAddress() string { 5673 if m != nil { 5674 return m.VaultAddress 5675 } 5676 return "" 5677 } 5678 5679 // QueryMarketIDFromVaultResponse is the response type for the 5680 // Query/QueryMarketIDFromVault RPC method. 5681 type QueryMarketIDFromVaultResponse struct { 5682 MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` 5683 } 5684 5685 func (m *QueryMarketIDFromVaultResponse) Reset() { *m = QueryMarketIDFromVaultResponse{} } 5686 func (m *QueryMarketIDFromVaultResponse) String() string { return proto.CompactTextString(m) } 5687 func (*QueryMarketIDFromVaultResponse) ProtoMessage() {} 5688 func (*QueryMarketIDFromVaultResponse) Descriptor() ([]byte, []int) { 5689 return fileDescriptor_523db28b8af54781, []int{111} 5690 } 5691 func (m *QueryMarketIDFromVaultResponse) XXX_Unmarshal(b []byte) error { 5692 return m.Unmarshal(b) 5693 } 5694 func (m *QueryMarketIDFromVaultResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 5695 if deterministic { 5696 return xxx_messageInfo_QueryMarketIDFromVaultResponse.Marshal(b, m, deterministic) 5697 } else { 5698 b = b[:cap(b)] 5699 n, err := m.MarshalToSizedBuffer(b) 5700 if err != nil { 5701 return nil, err 5702 } 5703 return b[:n], nil 5704 } 5705 } 5706 func (m *QueryMarketIDFromVaultResponse) XXX_Merge(src proto.Message) { 5707 xxx_messageInfo_QueryMarketIDFromVaultResponse.Merge(m, src) 5708 } 5709 func (m *QueryMarketIDFromVaultResponse) XXX_Size() int { 5710 return m.Size() 5711 } 5712 func (m *QueryMarketIDFromVaultResponse) XXX_DiscardUnknown() { 5713 xxx_messageInfo_QueryMarketIDFromVaultResponse.DiscardUnknown(m) 5714 } 5715 5716 var xxx_messageInfo_QueryMarketIDFromVaultResponse proto.InternalMessageInfo 5717 5718 func (m *QueryMarketIDFromVaultResponse) GetMarketId() string { 5719 if m != nil { 5720 return m.MarketId 5721 } 5722 return "" 5723 } 5724 5725 type QueryHistoricalTradeRecordsRequest struct { 5726 MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` 5727 } 5728 5729 func (m *QueryHistoricalTradeRecordsRequest) Reset() { *m = QueryHistoricalTradeRecordsRequest{} } 5730 func (m *QueryHistoricalTradeRecordsRequest) String() string { return proto.CompactTextString(m) } 5731 func (*QueryHistoricalTradeRecordsRequest) ProtoMessage() {} 5732 func (*QueryHistoricalTradeRecordsRequest) Descriptor() ([]byte, []int) { 5733 return fileDescriptor_523db28b8af54781, []int{112} 5734 } 5735 func (m *QueryHistoricalTradeRecordsRequest) XXX_Unmarshal(b []byte) error { 5736 return m.Unmarshal(b) 5737 } 5738 func (m *QueryHistoricalTradeRecordsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 5739 if deterministic { 5740 return xxx_messageInfo_QueryHistoricalTradeRecordsRequest.Marshal(b, m, deterministic) 5741 } else { 5742 b = b[:cap(b)] 5743 n, err := m.MarshalToSizedBuffer(b) 5744 if err != nil { 5745 return nil, err 5746 } 5747 return b[:n], nil 5748 } 5749 } 5750 func (m *QueryHistoricalTradeRecordsRequest) XXX_Merge(src proto.Message) { 5751 xxx_messageInfo_QueryHistoricalTradeRecordsRequest.Merge(m, src) 5752 } 5753 func (m *QueryHistoricalTradeRecordsRequest) XXX_Size() int { 5754 return m.Size() 5755 } 5756 func (m *QueryHistoricalTradeRecordsRequest) XXX_DiscardUnknown() { 5757 xxx_messageInfo_QueryHistoricalTradeRecordsRequest.DiscardUnknown(m) 5758 } 5759 5760 var xxx_messageInfo_QueryHistoricalTradeRecordsRequest proto.InternalMessageInfo 5761 5762 func (m *QueryHistoricalTradeRecordsRequest) GetMarketId() string { 5763 if m != nil { 5764 return m.MarketId 5765 } 5766 return "" 5767 } 5768 5769 type QueryHistoricalTradeRecordsResponse struct { 5770 TradeRecords []*TradeRecords `protobuf:"bytes,1,rep,name=trade_records,json=tradeRecords,proto3" json:"trade_records,omitempty"` 5771 } 5772 5773 func (m *QueryHistoricalTradeRecordsResponse) Reset() { *m = QueryHistoricalTradeRecordsResponse{} } 5774 func (m *QueryHistoricalTradeRecordsResponse) String() string { return proto.CompactTextString(m) } 5775 func (*QueryHistoricalTradeRecordsResponse) ProtoMessage() {} 5776 func (*QueryHistoricalTradeRecordsResponse) Descriptor() ([]byte, []int) { 5777 return fileDescriptor_523db28b8af54781, []int{113} 5778 } 5779 func (m *QueryHistoricalTradeRecordsResponse) XXX_Unmarshal(b []byte) error { 5780 return m.Unmarshal(b) 5781 } 5782 func (m *QueryHistoricalTradeRecordsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 5783 if deterministic { 5784 return xxx_messageInfo_QueryHistoricalTradeRecordsResponse.Marshal(b, m, deterministic) 5785 } else { 5786 b = b[:cap(b)] 5787 n, err := m.MarshalToSizedBuffer(b) 5788 if err != nil { 5789 return nil, err 5790 } 5791 return b[:n], nil 5792 } 5793 } 5794 func (m *QueryHistoricalTradeRecordsResponse) XXX_Merge(src proto.Message) { 5795 xxx_messageInfo_QueryHistoricalTradeRecordsResponse.Merge(m, src) 5796 } 5797 func (m *QueryHistoricalTradeRecordsResponse) XXX_Size() int { 5798 return m.Size() 5799 } 5800 func (m *QueryHistoricalTradeRecordsResponse) XXX_DiscardUnknown() { 5801 xxx_messageInfo_QueryHistoricalTradeRecordsResponse.DiscardUnknown(m) 5802 } 5803 5804 var xxx_messageInfo_QueryHistoricalTradeRecordsResponse proto.InternalMessageInfo 5805 5806 func (m *QueryHistoricalTradeRecordsResponse) GetTradeRecords() []*TradeRecords { 5807 if m != nil { 5808 return m.TradeRecords 5809 } 5810 return nil 5811 } 5812 5813 // TradeHistoryOptions are the optional params for Query/MarketVolatility RPC 5814 // method. 5815 type TradeHistoryOptions struct { 5816 // TradeGroupingSec of 0 means use the chain's default grouping 5817 TradeGroupingSec uint64 `protobuf:"varint,1,opt,name=trade_grouping_sec,json=tradeGroupingSec,proto3" json:"trade_grouping_sec,omitempty"` 5818 // MaxAge restricts the trade records oldest age in seconds from the current 5819 // block time to consider. A value of 0 means use all the records present on 5820 // the chain. 5821 MaxAge uint64 `protobuf:"varint,2,opt,name=max_age,json=maxAge,proto3" json:"max_age,omitempty"` 5822 // If IncludeRawHistory is true, the raw underlying data used for the 5823 // computation is included in the response 5824 IncludeRawHistory bool `protobuf:"varint,4,opt,name=include_raw_history,json=includeRawHistory,proto3" json:"include_raw_history,omitempty"` 5825 // If IncludeMetadata is true, metadata on the computation is included in the 5826 // response 5827 IncludeMetadata bool `protobuf:"varint,5,opt,name=include_metadata,json=includeMetadata,proto3" json:"include_metadata,omitempty"` 5828 } 5829 5830 func (m *TradeHistoryOptions) Reset() { *m = TradeHistoryOptions{} } 5831 func (m *TradeHistoryOptions) String() string { return proto.CompactTextString(m) } 5832 func (*TradeHistoryOptions) ProtoMessage() {} 5833 func (*TradeHistoryOptions) Descriptor() ([]byte, []int) { 5834 return fileDescriptor_523db28b8af54781, []int{114} 5835 } 5836 func (m *TradeHistoryOptions) XXX_Unmarshal(b []byte) error { 5837 return m.Unmarshal(b) 5838 } 5839 func (m *TradeHistoryOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 5840 if deterministic { 5841 return xxx_messageInfo_TradeHistoryOptions.Marshal(b, m, deterministic) 5842 } else { 5843 b = b[:cap(b)] 5844 n, err := m.MarshalToSizedBuffer(b) 5845 if err != nil { 5846 return nil, err 5847 } 5848 return b[:n], nil 5849 } 5850 } 5851 func (m *TradeHistoryOptions) XXX_Merge(src proto.Message) { 5852 xxx_messageInfo_TradeHistoryOptions.Merge(m, src) 5853 } 5854 func (m *TradeHistoryOptions) XXX_Size() int { 5855 return m.Size() 5856 } 5857 func (m *TradeHistoryOptions) XXX_DiscardUnknown() { 5858 xxx_messageInfo_TradeHistoryOptions.DiscardUnknown(m) 5859 } 5860 5861 var xxx_messageInfo_TradeHistoryOptions proto.InternalMessageInfo 5862 5863 func (m *TradeHistoryOptions) GetTradeGroupingSec() uint64 { 5864 if m != nil { 5865 return m.TradeGroupingSec 5866 } 5867 return 0 5868 } 5869 5870 func (m *TradeHistoryOptions) GetMaxAge() uint64 { 5871 if m != nil { 5872 return m.MaxAge 5873 } 5874 return 0 5875 } 5876 5877 func (m *TradeHistoryOptions) GetIncludeRawHistory() bool { 5878 if m != nil { 5879 return m.IncludeRawHistory 5880 } 5881 return false 5882 } 5883 5884 func (m *TradeHistoryOptions) GetIncludeMetadata() bool { 5885 if m != nil { 5886 return m.IncludeMetadata 5887 } 5888 return false 5889 } 5890 5891 // QueryMarketVolatilityRequest are the request params for the 5892 // Query/MarketVolatility RPC method. 5893 type QueryMarketVolatilityRequest struct { 5894 MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` 5895 TradeHistoryOptions *TradeHistoryOptions `protobuf:"bytes,2,opt,name=trade_history_options,json=tradeHistoryOptions,proto3" json:"trade_history_options,omitempty"` 5896 } 5897 5898 func (m *QueryMarketVolatilityRequest) Reset() { *m = QueryMarketVolatilityRequest{} } 5899 func (m *QueryMarketVolatilityRequest) String() string { return proto.CompactTextString(m) } 5900 func (*QueryMarketVolatilityRequest) ProtoMessage() {} 5901 func (*QueryMarketVolatilityRequest) Descriptor() ([]byte, []int) { 5902 return fileDescriptor_523db28b8af54781, []int{115} 5903 } 5904 func (m *QueryMarketVolatilityRequest) XXX_Unmarshal(b []byte) error { 5905 return m.Unmarshal(b) 5906 } 5907 func (m *QueryMarketVolatilityRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 5908 if deterministic { 5909 return xxx_messageInfo_QueryMarketVolatilityRequest.Marshal(b, m, deterministic) 5910 } else { 5911 b = b[:cap(b)] 5912 n, err := m.MarshalToSizedBuffer(b) 5913 if err != nil { 5914 return nil, err 5915 } 5916 return b[:n], nil 5917 } 5918 } 5919 func (m *QueryMarketVolatilityRequest) XXX_Merge(src proto.Message) { 5920 xxx_messageInfo_QueryMarketVolatilityRequest.Merge(m, src) 5921 } 5922 func (m *QueryMarketVolatilityRequest) XXX_Size() int { 5923 return m.Size() 5924 } 5925 func (m *QueryMarketVolatilityRequest) XXX_DiscardUnknown() { 5926 xxx_messageInfo_QueryMarketVolatilityRequest.DiscardUnknown(m) 5927 } 5928 5929 var xxx_messageInfo_QueryMarketVolatilityRequest proto.InternalMessageInfo 5930 5931 func (m *QueryMarketVolatilityRequest) GetMarketId() string { 5932 if m != nil { 5933 return m.MarketId 5934 } 5935 return "" 5936 } 5937 5938 func (m *QueryMarketVolatilityRequest) GetTradeHistoryOptions() *TradeHistoryOptions { 5939 if m != nil { 5940 return m.TradeHistoryOptions 5941 } 5942 return nil 5943 } 5944 5945 // QueryMarketVolatilityResponse is the response type for the 5946 // Query/MarketVolatility RPC method. 5947 type QueryMarketVolatilityResponse struct { 5948 Volatility *cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=volatility,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"volatility,omitempty"` 5949 HistoryMetadata *types.MetadataStatistics `protobuf:"bytes,2,opt,name=history_metadata,json=historyMetadata,proto3" json:"history_metadata,omitempty"` 5950 RawHistory []*TradeRecord `protobuf:"bytes,3,rep,name=raw_history,json=rawHistory,proto3" json:"raw_history,omitempty"` 5951 } 5952 5953 func (m *QueryMarketVolatilityResponse) Reset() { *m = QueryMarketVolatilityResponse{} } 5954 func (m *QueryMarketVolatilityResponse) String() string { return proto.CompactTextString(m) } 5955 func (*QueryMarketVolatilityResponse) ProtoMessage() {} 5956 func (*QueryMarketVolatilityResponse) Descriptor() ([]byte, []int) { 5957 return fileDescriptor_523db28b8af54781, []int{116} 5958 } 5959 func (m *QueryMarketVolatilityResponse) XXX_Unmarshal(b []byte) error { 5960 return m.Unmarshal(b) 5961 } 5962 func (m *QueryMarketVolatilityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 5963 if deterministic { 5964 return xxx_messageInfo_QueryMarketVolatilityResponse.Marshal(b, m, deterministic) 5965 } else { 5966 b = b[:cap(b)] 5967 n, err := m.MarshalToSizedBuffer(b) 5968 if err != nil { 5969 return nil, err 5970 } 5971 return b[:n], nil 5972 } 5973 } 5974 func (m *QueryMarketVolatilityResponse) XXX_Merge(src proto.Message) { 5975 xxx_messageInfo_QueryMarketVolatilityResponse.Merge(m, src) 5976 } 5977 func (m *QueryMarketVolatilityResponse) XXX_Size() int { 5978 return m.Size() 5979 } 5980 func (m *QueryMarketVolatilityResponse) XXX_DiscardUnknown() { 5981 xxx_messageInfo_QueryMarketVolatilityResponse.DiscardUnknown(m) 5982 } 5983 5984 var xxx_messageInfo_QueryMarketVolatilityResponse proto.InternalMessageInfo 5985 5986 func (m *QueryMarketVolatilityResponse) GetHistoryMetadata() *types.MetadataStatistics { 5987 if m != nil { 5988 return m.HistoryMetadata 5989 } 5990 return nil 5991 } 5992 5993 func (m *QueryMarketVolatilityResponse) GetRawHistory() []*TradeRecord { 5994 if m != nil { 5995 return m.RawHistory 5996 } 5997 return nil 5998 } 5999 6000 // QuerBinaryMarketsRequest is the request type for the Query/BinaryMarkets RPC 6001 // method. 6002 type QueryBinaryMarketsRequest struct { 6003 // Status of the market, for convenience it is set to string - not enum 6004 Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` 6005 } 6006 6007 func (m *QueryBinaryMarketsRequest) Reset() { *m = QueryBinaryMarketsRequest{} } 6008 func (m *QueryBinaryMarketsRequest) String() string { return proto.CompactTextString(m) } 6009 func (*QueryBinaryMarketsRequest) ProtoMessage() {} 6010 func (*QueryBinaryMarketsRequest) Descriptor() ([]byte, []int) { 6011 return fileDescriptor_523db28b8af54781, []int{117} 6012 } 6013 func (m *QueryBinaryMarketsRequest) XXX_Unmarshal(b []byte) error { 6014 return m.Unmarshal(b) 6015 } 6016 func (m *QueryBinaryMarketsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 6017 if deterministic { 6018 return xxx_messageInfo_QueryBinaryMarketsRequest.Marshal(b, m, deterministic) 6019 } else { 6020 b = b[:cap(b)] 6021 n, err := m.MarshalToSizedBuffer(b) 6022 if err != nil { 6023 return nil, err 6024 } 6025 return b[:n], nil 6026 } 6027 } 6028 func (m *QueryBinaryMarketsRequest) XXX_Merge(src proto.Message) { 6029 xxx_messageInfo_QueryBinaryMarketsRequest.Merge(m, src) 6030 } 6031 func (m *QueryBinaryMarketsRequest) XXX_Size() int { 6032 return m.Size() 6033 } 6034 func (m *QueryBinaryMarketsRequest) XXX_DiscardUnknown() { 6035 xxx_messageInfo_QueryBinaryMarketsRequest.DiscardUnknown(m) 6036 } 6037 6038 var xxx_messageInfo_QueryBinaryMarketsRequest proto.InternalMessageInfo 6039 6040 func (m *QueryBinaryMarketsRequest) GetStatus() string { 6041 if m != nil { 6042 return m.Status 6043 } 6044 return "" 6045 } 6046 6047 // QueryBinaryMarketsResponse is the response type for the Query/BinaryMarkets 6048 // RPC method. 6049 type QueryBinaryMarketsResponse struct { 6050 Markets []*BinaryOptionsMarket `protobuf:"bytes,1,rep,name=markets,proto3" json:"markets,omitempty"` 6051 } 6052 6053 func (m *QueryBinaryMarketsResponse) Reset() { *m = QueryBinaryMarketsResponse{} } 6054 func (m *QueryBinaryMarketsResponse) String() string { return proto.CompactTextString(m) } 6055 func (*QueryBinaryMarketsResponse) ProtoMessage() {} 6056 func (*QueryBinaryMarketsResponse) Descriptor() ([]byte, []int) { 6057 return fileDescriptor_523db28b8af54781, []int{118} 6058 } 6059 func (m *QueryBinaryMarketsResponse) XXX_Unmarshal(b []byte) error { 6060 return m.Unmarshal(b) 6061 } 6062 func (m *QueryBinaryMarketsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 6063 if deterministic { 6064 return xxx_messageInfo_QueryBinaryMarketsResponse.Marshal(b, m, deterministic) 6065 } else { 6066 b = b[:cap(b)] 6067 n, err := m.MarshalToSizedBuffer(b) 6068 if err != nil { 6069 return nil, err 6070 } 6071 return b[:n], nil 6072 } 6073 } 6074 func (m *QueryBinaryMarketsResponse) XXX_Merge(src proto.Message) { 6075 xxx_messageInfo_QueryBinaryMarketsResponse.Merge(m, src) 6076 } 6077 func (m *QueryBinaryMarketsResponse) XXX_Size() int { 6078 return m.Size() 6079 } 6080 func (m *QueryBinaryMarketsResponse) XXX_DiscardUnknown() { 6081 xxx_messageInfo_QueryBinaryMarketsResponse.DiscardUnknown(m) 6082 } 6083 6084 var xxx_messageInfo_QueryBinaryMarketsResponse proto.InternalMessageInfo 6085 6086 func (m *QueryBinaryMarketsResponse) GetMarkets() []*BinaryOptionsMarket { 6087 if m != nil { 6088 return m.Markets 6089 } 6090 return nil 6091 } 6092 6093 // QueryConditionalOrdersRequest is the request type for the 6094 // Query/ConditionalOrders RPC method. 6095 type QueryTraderDerivativeConditionalOrdersRequest struct { 6096 SubaccountId string `protobuf:"bytes,1,opt,name=subaccount_id,json=subaccountId,proto3" json:"subaccount_id,omitempty"` 6097 MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` 6098 } 6099 6100 func (m *QueryTraderDerivativeConditionalOrdersRequest) Reset() { 6101 *m = QueryTraderDerivativeConditionalOrdersRequest{} 6102 } 6103 func (m *QueryTraderDerivativeConditionalOrdersRequest) String() string { 6104 return proto.CompactTextString(m) 6105 } 6106 func (*QueryTraderDerivativeConditionalOrdersRequest) ProtoMessage() {} 6107 func (*QueryTraderDerivativeConditionalOrdersRequest) Descriptor() ([]byte, []int) { 6108 return fileDescriptor_523db28b8af54781, []int{119} 6109 } 6110 func (m *QueryTraderDerivativeConditionalOrdersRequest) XXX_Unmarshal(b []byte) error { 6111 return m.Unmarshal(b) 6112 } 6113 func (m *QueryTraderDerivativeConditionalOrdersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 6114 if deterministic { 6115 return xxx_messageInfo_QueryTraderDerivativeConditionalOrdersRequest.Marshal(b, m, deterministic) 6116 } else { 6117 b = b[:cap(b)] 6118 n, err := m.MarshalToSizedBuffer(b) 6119 if err != nil { 6120 return nil, err 6121 } 6122 return b[:n], nil 6123 } 6124 } 6125 func (m *QueryTraderDerivativeConditionalOrdersRequest) XXX_Merge(src proto.Message) { 6126 xxx_messageInfo_QueryTraderDerivativeConditionalOrdersRequest.Merge(m, src) 6127 } 6128 func (m *QueryTraderDerivativeConditionalOrdersRequest) XXX_Size() int { 6129 return m.Size() 6130 } 6131 func (m *QueryTraderDerivativeConditionalOrdersRequest) XXX_DiscardUnknown() { 6132 xxx_messageInfo_QueryTraderDerivativeConditionalOrdersRequest.DiscardUnknown(m) 6133 } 6134 6135 var xxx_messageInfo_QueryTraderDerivativeConditionalOrdersRequest proto.InternalMessageInfo 6136 6137 func (m *QueryTraderDerivativeConditionalOrdersRequest) GetSubaccountId() string { 6138 if m != nil { 6139 return m.SubaccountId 6140 } 6141 return "" 6142 } 6143 6144 func (m *QueryTraderDerivativeConditionalOrdersRequest) GetMarketId() string { 6145 if m != nil { 6146 return m.MarketId 6147 } 6148 return "" 6149 } 6150 6151 type TrimmedDerivativeConditionalOrder struct { 6152 // price of the order 6153 Price cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=price,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"price"` 6154 // quantity of the order 6155 Quantity cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=quantity,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"quantity"` 6156 // margin of the order 6157 Margin cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=margin,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"margin"` 6158 // price to trigger the order 6159 TriggerPrice cosmossdk_io_math.LegacyDec `protobuf:"bytes,4,opt,name=triggerPrice,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"triggerPrice"` 6160 // true if the order is a buy 6161 IsBuy bool `protobuf:"varint,5,opt,name=isBuy,proto3" json:"isBuy"` 6162 IsLimit bool `protobuf:"varint,6,opt,name=isLimit,proto3" json:"isLimit"` 6163 OrderHash string `protobuf:"bytes,7,opt,name=order_hash,json=orderHash,proto3" json:"order_hash,omitempty"` 6164 Cid string `protobuf:"bytes,8,opt,name=cid,proto3" json:"cid,omitempty"` 6165 } 6166 6167 func (m *TrimmedDerivativeConditionalOrder) Reset() { *m = TrimmedDerivativeConditionalOrder{} } 6168 func (m *TrimmedDerivativeConditionalOrder) String() string { return proto.CompactTextString(m) } 6169 func (*TrimmedDerivativeConditionalOrder) ProtoMessage() {} 6170 func (*TrimmedDerivativeConditionalOrder) Descriptor() ([]byte, []int) { 6171 return fileDescriptor_523db28b8af54781, []int{120} 6172 } 6173 func (m *TrimmedDerivativeConditionalOrder) XXX_Unmarshal(b []byte) error { 6174 return m.Unmarshal(b) 6175 } 6176 func (m *TrimmedDerivativeConditionalOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 6177 if deterministic { 6178 return xxx_messageInfo_TrimmedDerivativeConditionalOrder.Marshal(b, m, deterministic) 6179 } else { 6180 b = b[:cap(b)] 6181 n, err := m.MarshalToSizedBuffer(b) 6182 if err != nil { 6183 return nil, err 6184 } 6185 return b[:n], nil 6186 } 6187 } 6188 func (m *TrimmedDerivativeConditionalOrder) XXX_Merge(src proto.Message) { 6189 xxx_messageInfo_TrimmedDerivativeConditionalOrder.Merge(m, src) 6190 } 6191 func (m *TrimmedDerivativeConditionalOrder) XXX_Size() int { 6192 return m.Size() 6193 } 6194 func (m *TrimmedDerivativeConditionalOrder) XXX_DiscardUnknown() { 6195 xxx_messageInfo_TrimmedDerivativeConditionalOrder.DiscardUnknown(m) 6196 } 6197 6198 var xxx_messageInfo_TrimmedDerivativeConditionalOrder proto.InternalMessageInfo 6199 6200 func (m *TrimmedDerivativeConditionalOrder) GetIsBuy() bool { 6201 if m != nil { 6202 return m.IsBuy 6203 } 6204 return false 6205 } 6206 6207 func (m *TrimmedDerivativeConditionalOrder) GetIsLimit() bool { 6208 if m != nil { 6209 return m.IsLimit 6210 } 6211 return false 6212 } 6213 6214 func (m *TrimmedDerivativeConditionalOrder) GetOrderHash() string { 6215 if m != nil { 6216 return m.OrderHash 6217 } 6218 return "" 6219 } 6220 6221 func (m *TrimmedDerivativeConditionalOrder) GetCid() string { 6222 if m != nil { 6223 return m.Cid 6224 } 6225 return "" 6226 } 6227 6228 // QueryTraderDerivativeOrdersResponse is the response type for the 6229 // Query/TraderDerivativeOrders RPC method. 6230 type QueryTraderDerivativeConditionalOrdersResponse struct { 6231 Orders []*TrimmedDerivativeConditionalOrder `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"` 6232 } 6233 6234 func (m *QueryTraderDerivativeConditionalOrdersResponse) Reset() { 6235 *m = QueryTraderDerivativeConditionalOrdersResponse{} 6236 } 6237 func (m *QueryTraderDerivativeConditionalOrdersResponse) String() string { 6238 return proto.CompactTextString(m) 6239 } 6240 func (*QueryTraderDerivativeConditionalOrdersResponse) ProtoMessage() {} 6241 func (*QueryTraderDerivativeConditionalOrdersResponse) Descriptor() ([]byte, []int) { 6242 return fileDescriptor_523db28b8af54781, []int{121} 6243 } 6244 func (m *QueryTraderDerivativeConditionalOrdersResponse) XXX_Unmarshal(b []byte) error { 6245 return m.Unmarshal(b) 6246 } 6247 func (m *QueryTraderDerivativeConditionalOrdersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 6248 if deterministic { 6249 return xxx_messageInfo_QueryTraderDerivativeConditionalOrdersResponse.Marshal(b, m, deterministic) 6250 } else { 6251 b = b[:cap(b)] 6252 n, err := m.MarshalToSizedBuffer(b) 6253 if err != nil { 6254 return nil, err 6255 } 6256 return b[:n], nil 6257 } 6258 } 6259 func (m *QueryTraderDerivativeConditionalOrdersResponse) XXX_Merge(src proto.Message) { 6260 xxx_messageInfo_QueryTraderDerivativeConditionalOrdersResponse.Merge(m, src) 6261 } 6262 func (m *QueryTraderDerivativeConditionalOrdersResponse) XXX_Size() int { 6263 return m.Size() 6264 } 6265 func (m *QueryTraderDerivativeConditionalOrdersResponse) XXX_DiscardUnknown() { 6266 xxx_messageInfo_QueryTraderDerivativeConditionalOrdersResponse.DiscardUnknown(m) 6267 } 6268 6269 var xxx_messageInfo_QueryTraderDerivativeConditionalOrdersResponse proto.InternalMessageInfo 6270 6271 func (m *QueryTraderDerivativeConditionalOrdersResponse) GetOrders() []*TrimmedDerivativeConditionalOrder { 6272 if m != nil { 6273 return m.Orders 6274 } 6275 return nil 6276 } 6277 6278 type QueryMarketAtomicExecutionFeeMultiplierRequest struct { 6279 MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` 6280 } 6281 6282 func (m *QueryMarketAtomicExecutionFeeMultiplierRequest) Reset() { 6283 *m = QueryMarketAtomicExecutionFeeMultiplierRequest{} 6284 } 6285 func (m *QueryMarketAtomicExecutionFeeMultiplierRequest) String() string { 6286 return proto.CompactTextString(m) 6287 } 6288 func (*QueryMarketAtomicExecutionFeeMultiplierRequest) ProtoMessage() {} 6289 func (*QueryMarketAtomicExecutionFeeMultiplierRequest) Descriptor() ([]byte, []int) { 6290 return fileDescriptor_523db28b8af54781, []int{122} 6291 } 6292 func (m *QueryMarketAtomicExecutionFeeMultiplierRequest) XXX_Unmarshal(b []byte) error { 6293 return m.Unmarshal(b) 6294 } 6295 func (m *QueryMarketAtomicExecutionFeeMultiplierRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 6296 if deterministic { 6297 return xxx_messageInfo_QueryMarketAtomicExecutionFeeMultiplierRequest.Marshal(b, m, deterministic) 6298 } else { 6299 b = b[:cap(b)] 6300 n, err := m.MarshalToSizedBuffer(b) 6301 if err != nil { 6302 return nil, err 6303 } 6304 return b[:n], nil 6305 } 6306 } 6307 func (m *QueryMarketAtomicExecutionFeeMultiplierRequest) XXX_Merge(src proto.Message) { 6308 xxx_messageInfo_QueryMarketAtomicExecutionFeeMultiplierRequest.Merge(m, src) 6309 } 6310 func (m *QueryMarketAtomicExecutionFeeMultiplierRequest) XXX_Size() int { 6311 return m.Size() 6312 } 6313 func (m *QueryMarketAtomicExecutionFeeMultiplierRequest) XXX_DiscardUnknown() { 6314 xxx_messageInfo_QueryMarketAtomicExecutionFeeMultiplierRequest.DiscardUnknown(m) 6315 } 6316 6317 var xxx_messageInfo_QueryMarketAtomicExecutionFeeMultiplierRequest proto.InternalMessageInfo 6318 6319 func (m *QueryMarketAtomicExecutionFeeMultiplierRequest) GetMarketId() string { 6320 if m != nil { 6321 return m.MarketId 6322 } 6323 return "" 6324 } 6325 6326 type QueryMarketAtomicExecutionFeeMultiplierResponse struct { 6327 Multiplier cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=multiplier,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"multiplier"` 6328 } 6329 6330 func (m *QueryMarketAtomicExecutionFeeMultiplierResponse) Reset() { 6331 *m = QueryMarketAtomicExecutionFeeMultiplierResponse{} 6332 } 6333 func (m *QueryMarketAtomicExecutionFeeMultiplierResponse) String() string { 6334 return proto.CompactTextString(m) 6335 } 6336 func (*QueryMarketAtomicExecutionFeeMultiplierResponse) ProtoMessage() {} 6337 func (*QueryMarketAtomicExecutionFeeMultiplierResponse) Descriptor() ([]byte, []int) { 6338 return fileDescriptor_523db28b8af54781, []int{123} 6339 } 6340 func (m *QueryMarketAtomicExecutionFeeMultiplierResponse) XXX_Unmarshal(b []byte) error { 6341 return m.Unmarshal(b) 6342 } 6343 func (m *QueryMarketAtomicExecutionFeeMultiplierResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 6344 if deterministic { 6345 return xxx_messageInfo_QueryMarketAtomicExecutionFeeMultiplierResponse.Marshal(b, m, deterministic) 6346 } else { 6347 b = b[:cap(b)] 6348 n, err := m.MarshalToSizedBuffer(b) 6349 if err != nil { 6350 return nil, err 6351 } 6352 return b[:n], nil 6353 } 6354 } 6355 func (m *QueryMarketAtomicExecutionFeeMultiplierResponse) XXX_Merge(src proto.Message) { 6356 xxx_messageInfo_QueryMarketAtomicExecutionFeeMultiplierResponse.Merge(m, src) 6357 } 6358 func (m *QueryMarketAtomicExecutionFeeMultiplierResponse) XXX_Size() int { 6359 return m.Size() 6360 } 6361 func (m *QueryMarketAtomicExecutionFeeMultiplierResponse) XXX_DiscardUnknown() { 6362 xxx_messageInfo_QueryMarketAtomicExecutionFeeMultiplierResponse.DiscardUnknown(m) 6363 } 6364 6365 var xxx_messageInfo_QueryMarketAtomicExecutionFeeMultiplierResponse proto.InternalMessageInfo 6366 6367 type QueryActiveStakeGrantRequest struct { 6368 Grantee string `protobuf:"bytes,1,opt,name=grantee,proto3" json:"grantee,omitempty"` 6369 } 6370 6371 func (m *QueryActiveStakeGrantRequest) Reset() { *m = QueryActiveStakeGrantRequest{} } 6372 func (m *QueryActiveStakeGrantRequest) String() string { return proto.CompactTextString(m) } 6373 func (*QueryActiveStakeGrantRequest) ProtoMessage() {} 6374 func (*QueryActiveStakeGrantRequest) Descriptor() ([]byte, []int) { 6375 return fileDescriptor_523db28b8af54781, []int{124} 6376 } 6377 func (m *QueryActiveStakeGrantRequest) XXX_Unmarshal(b []byte) error { 6378 return m.Unmarshal(b) 6379 } 6380 func (m *QueryActiveStakeGrantRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 6381 if deterministic { 6382 return xxx_messageInfo_QueryActiveStakeGrantRequest.Marshal(b, m, deterministic) 6383 } else { 6384 b = b[:cap(b)] 6385 n, err := m.MarshalToSizedBuffer(b) 6386 if err != nil { 6387 return nil, err 6388 } 6389 return b[:n], nil 6390 } 6391 } 6392 func (m *QueryActiveStakeGrantRequest) XXX_Merge(src proto.Message) { 6393 xxx_messageInfo_QueryActiveStakeGrantRequest.Merge(m, src) 6394 } 6395 func (m *QueryActiveStakeGrantRequest) XXX_Size() int { 6396 return m.Size() 6397 } 6398 func (m *QueryActiveStakeGrantRequest) XXX_DiscardUnknown() { 6399 xxx_messageInfo_QueryActiveStakeGrantRequest.DiscardUnknown(m) 6400 } 6401 6402 var xxx_messageInfo_QueryActiveStakeGrantRequest proto.InternalMessageInfo 6403 6404 func (m *QueryActiveStakeGrantRequest) GetGrantee() string { 6405 if m != nil { 6406 return m.Grantee 6407 } 6408 return "" 6409 } 6410 6411 type QueryActiveStakeGrantResponse struct { 6412 Grant *ActiveGrant `protobuf:"bytes,1,opt,name=grant,proto3" json:"grant,omitempty"` 6413 EffectiveGrant *EffectiveGrant `protobuf:"bytes,2,opt,name=effective_grant,json=effectiveGrant,proto3" json:"effective_grant,omitempty"` 6414 } 6415 6416 func (m *QueryActiveStakeGrantResponse) Reset() { *m = QueryActiveStakeGrantResponse{} } 6417 func (m *QueryActiveStakeGrantResponse) String() string { return proto.CompactTextString(m) } 6418 func (*QueryActiveStakeGrantResponse) ProtoMessage() {} 6419 func (*QueryActiveStakeGrantResponse) Descriptor() ([]byte, []int) { 6420 return fileDescriptor_523db28b8af54781, []int{125} 6421 } 6422 func (m *QueryActiveStakeGrantResponse) XXX_Unmarshal(b []byte) error { 6423 return m.Unmarshal(b) 6424 } 6425 func (m *QueryActiveStakeGrantResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 6426 if deterministic { 6427 return xxx_messageInfo_QueryActiveStakeGrantResponse.Marshal(b, m, deterministic) 6428 } else { 6429 b = b[:cap(b)] 6430 n, err := m.MarshalToSizedBuffer(b) 6431 if err != nil { 6432 return nil, err 6433 } 6434 return b[:n], nil 6435 } 6436 } 6437 func (m *QueryActiveStakeGrantResponse) XXX_Merge(src proto.Message) { 6438 xxx_messageInfo_QueryActiveStakeGrantResponse.Merge(m, src) 6439 } 6440 func (m *QueryActiveStakeGrantResponse) XXX_Size() int { 6441 return m.Size() 6442 } 6443 func (m *QueryActiveStakeGrantResponse) XXX_DiscardUnknown() { 6444 xxx_messageInfo_QueryActiveStakeGrantResponse.DiscardUnknown(m) 6445 } 6446 6447 var xxx_messageInfo_QueryActiveStakeGrantResponse proto.InternalMessageInfo 6448 6449 func (m *QueryActiveStakeGrantResponse) GetGrant() *ActiveGrant { 6450 if m != nil { 6451 return m.Grant 6452 } 6453 return nil 6454 } 6455 6456 func (m *QueryActiveStakeGrantResponse) GetEffectiveGrant() *EffectiveGrant { 6457 if m != nil { 6458 return m.EffectiveGrant 6459 } 6460 return nil 6461 } 6462 6463 type QueryGrantAuthorizationRequest struct { 6464 Granter string `protobuf:"bytes,1,opt,name=granter,proto3" json:"granter,omitempty"` 6465 Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"` 6466 } 6467 6468 func (m *QueryGrantAuthorizationRequest) Reset() { *m = QueryGrantAuthorizationRequest{} } 6469 func (m *QueryGrantAuthorizationRequest) String() string { return proto.CompactTextString(m) } 6470 func (*QueryGrantAuthorizationRequest) ProtoMessage() {} 6471 func (*QueryGrantAuthorizationRequest) Descriptor() ([]byte, []int) { 6472 return fileDescriptor_523db28b8af54781, []int{126} 6473 } 6474 func (m *QueryGrantAuthorizationRequest) XXX_Unmarshal(b []byte) error { 6475 return m.Unmarshal(b) 6476 } 6477 func (m *QueryGrantAuthorizationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 6478 if deterministic { 6479 return xxx_messageInfo_QueryGrantAuthorizationRequest.Marshal(b, m, deterministic) 6480 } else { 6481 b = b[:cap(b)] 6482 n, err := m.MarshalToSizedBuffer(b) 6483 if err != nil { 6484 return nil, err 6485 } 6486 return b[:n], nil 6487 } 6488 } 6489 func (m *QueryGrantAuthorizationRequest) XXX_Merge(src proto.Message) { 6490 xxx_messageInfo_QueryGrantAuthorizationRequest.Merge(m, src) 6491 } 6492 func (m *QueryGrantAuthorizationRequest) XXX_Size() int { 6493 return m.Size() 6494 } 6495 func (m *QueryGrantAuthorizationRequest) XXX_DiscardUnknown() { 6496 xxx_messageInfo_QueryGrantAuthorizationRequest.DiscardUnknown(m) 6497 } 6498 6499 var xxx_messageInfo_QueryGrantAuthorizationRequest proto.InternalMessageInfo 6500 6501 func (m *QueryGrantAuthorizationRequest) GetGranter() string { 6502 if m != nil { 6503 return m.Granter 6504 } 6505 return "" 6506 } 6507 6508 func (m *QueryGrantAuthorizationRequest) GetGrantee() string { 6509 if m != nil { 6510 return m.Grantee 6511 } 6512 return "" 6513 } 6514 6515 type QueryGrantAuthorizationResponse struct { 6516 Amount cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` 6517 } 6518 6519 func (m *QueryGrantAuthorizationResponse) Reset() { *m = QueryGrantAuthorizationResponse{} } 6520 func (m *QueryGrantAuthorizationResponse) String() string { return proto.CompactTextString(m) } 6521 func (*QueryGrantAuthorizationResponse) ProtoMessage() {} 6522 func (*QueryGrantAuthorizationResponse) Descriptor() ([]byte, []int) { 6523 return fileDescriptor_523db28b8af54781, []int{127} 6524 } 6525 func (m *QueryGrantAuthorizationResponse) XXX_Unmarshal(b []byte) error { 6526 return m.Unmarshal(b) 6527 } 6528 func (m *QueryGrantAuthorizationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 6529 if deterministic { 6530 return xxx_messageInfo_QueryGrantAuthorizationResponse.Marshal(b, m, deterministic) 6531 } else { 6532 b = b[:cap(b)] 6533 n, err := m.MarshalToSizedBuffer(b) 6534 if err != nil { 6535 return nil, err 6536 } 6537 return b[:n], nil 6538 } 6539 } 6540 func (m *QueryGrantAuthorizationResponse) XXX_Merge(src proto.Message) { 6541 xxx_messageInfo_QueryGrantAuthorizationResponse.Merge(m, src) 6542 } 6543 func (m *QueryGrantAuthorizationResponse) XXX_Size() int { 6544 return m.Size() 6545 } 6546 func (m *QueryGrantAuthorizationResponse) XXX_DiscardUnknown() { 6547 xxx_messageInfo_QueryGrantAuthorizationResponse.DiscardUnknown(m) 6548 } 6549 6550 var xxx_messageInfo_QueryGrantAuthorizationResponse proto.InternalMessageInfo 6551 6552 type QueryGrantAuthorizationsRequest struct { 6553 Granter string `protobuf:"bytes,1,opt,name=granter,proto3" json:"granter,omitempty"` 6554 } 6555 6556 func (m *QueryGrantAuthorizationsRequest) Reset() { *m = QueryGrantAuthorizationsRequest{} } 6557 func (m *QueryGrantAuthorizationsRequest) String() string { return proto.CompactTextString(m) } 6558 func (*QueryGrantAuthorizationsRequest) ProtoMessage() {} 6559 func (*QueryGrantAuthorizationsRequest) Descriptor() ([]byte, []int) { 6560 return fileDescriptor_523db28b8af54781, []int{128} 6561 } 6562 func (m *QueryGrantAuthorizationsRequest) XXX_Unmarshal(b []byte) error { 6563 return m.Unmarshal(b) 6564 } 6565 func (m *QueryGrantAuthorizationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 6566 if deterministic { 6567 return xxx_messageInfo_QueryGrantAuthorizationsRequest.Marshal(b, m, deterministic) 6568 } else { 6569 b = b[:cap(b)] 6570 n, err := m.MarshalToSizedBuffer(b) 6571 if err != nil { 6572 return nil, err 6573 } 6574 return b[:n], nil 6575 } 6576 } 6577 func (m *QueryGrantAuthorizationsRequest) XXX_Merge(src proto.Message) { 6578 xxx_messageInfo_QueryGrantAuthorizationsRequest.Merge(m, src) 6579 } 6580 func (m *QueryGrantAuthorizationsRequest) XXX_Size() int { 6581 return m.Size() 6582 } 6583 func (m *QueryGrantAuthorizationsRequest) XXX_DiscardUnknown() { 6584 xxx_messageInfo_QueryGrantAuthorizationsRequest.DiscardUnknown(m) 6585 } 6586 6587 var xxx_messageInfo_QueryGrantAuthorizationsRequest proto.InternalMessageInfo 6588 6589 func (m *QueryGrantAuthorizationsRequest) GetGranter() string { 6590 if m != nil { 6591 return m.Granter 6592 } 6593 return "" 6594 } 6595 6596 type QueryGrantAuthorizationsResponse struct { 6597 TotalGrantAmount cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=total_grant_amount,json=totalGrantAmount,proto3,customtype=cosmossdk.io/math.Int" json:"total_grant_amount"` 6598 Grants []*GrantAuthorization `protobuf:"bytes,2,rep,name=grants,proto3" json:"grants,omitempty"` 6599 } 6600 6601 func (m *QueryGrantAuthorizationsResponse) Reset() { *m = QueryGrantAuthorizationsResponse{} } 6602 func (m *QueryGrantAuthorizationsResponse) String() string { return proto.CompactTextString(m) } 6603 func (*QueryGrantAuthorizationsResponse) ProtoMessage() {} 6604 func (*QueryGrantAuthorizationsResponse) Descriptor() ([]byte, []int) { 6605 return fileDescriptor_523db28b8af54781, []int{129} 6606 } 6607 func (m *QueryGrantAuthorizationsResponse) XXX_Unmarshal(b []byte) error { 6608 return m.Unmarshal(b) 6609 } 6610 func (m *QueryGrantAuthorizationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 6611 if deterministic { 6612 return xxx_messageInfo_QueryGrantAuthorizationsResponse.Marshal(b, m, deterministic) 6613 } else { 6614 b = b[:cap(b)] 6615 n, err := m.MarshalToSizedBuffer(b) 6616 if err != nil { 6617 return nil, err 6618 } 6619 return b[:n], nil 6620 } 6621 } 6622 func (m *QueryGrantAuthorizationsResponse) XXX_Merge(src proto.Message) { 6623 xxx_messageInfo_QueryGrantAuthorizationsResponse.Merge(m, src) 6624 } 6625 func (m *QueryGrantAuthorizationsResponse) XXX_Size() int { 6626 return m.Size() 6627 } 6628 func (m *QueryGrantAuthorizationsResponse) XXX_DiscardUnknown() { 6629 xxx_messageInfo_QueryGrantAuthorizationsResponse.DiscardUnknown(m) 6630 } 6631 6632 var xxx_messageInfo_QueryGrantAuthorizationsResponse proto.InternalMessageInfo 6633 6634 func (m *QueryGrantAuthorizationsResponse) GetGrants() []*GrantAuthorization { 6635 if m != nil { 6636 return m.Grants 6637 } 6638 return nil 6639 } 6640 6641 func init() { 6642 proto.RegisterEnum("injective.exchange.v1beta1.OrderSide", OrderSide_name, OrderSide_value) 6643 proto.RegisterEnum("injective.exchange.v1beta1.CancellationStrategy", CancellationStrategy_name, CancellationStrategy_value) 6644 proto.RegisterType((*Subaccount)(nil), "injective.exchange.v1beta1.Subaccount") 6645 proto.RegisterType((*QuerySubaccountOrdersRequest)(nil), "injective.exchange.v1beta1.QuerySubaccountOrdersRequest") 6646 proto.RegisterType((*QuerySubaccountOrdersResponse)(nil), "injective.exchange.v1beta1.QuerySubaccountOrdersResponse") 6647 proto.RegisterType((*SubaccountOrderbookMetadataWithMarket)(nil), "injective.exchange.v1beta1.SubaccountOrderbookMetadataWithMarket") 6648 proto.RegisterType((*QueryExchangeParamsRequest)(nil), "injective.exchange.v1beta1.QueryExchangeParamsRequest") 6649 proto.RegisterType((*QueryExchangeParamsResponse)(nil), "injective.exchange.v1beta1.QueryExchangeParamsResponse") 6650 proto.RegisterType((*QuerySubaccountDepositsRequest)(nil), "injective.exchange.v1beta1.QuerySubaccountDepositsRequest") 6651 proto.RegisterType((*QuerySubaccountDepositsResponse)(nil), "injective.exchange.v1beta1.QuerySubaccountDepositsResponse") 6652 proto.RegisterMapType((map[string]*Deposit)(nil), "injective.exchange.v1beta1.QuerySubaccountDepositsResponse.DepositsEntry") 6653 proto.RegisterType((*QueryExchangeBalancesRequest)(nil), "injective.exchange.v1beta1.QueryExchangeBalancesRequest") 6654 proto.RegisterType((*QueryExchangeBalancesResponse)(nil), "injective.exchange.v1beta1.QueryExchangeBalancesResponse") 6655 proto.RegisterType((*QueryAggregateVolumeRequest)(nil), "injective.exchange.v1beta1.QueryAggregateVolumeRequest") 6656 proto.RegisterType((*QueryAggregateVolumeResponse)(nil), "injective.exchange.v1beta1.QueryAggregateVolumeResponse") 6657 proto.RegisterType((*QueryAggregateVolumesRequest)(nil), "injective.exchange.v1beta1.QueryAggregateVolumesRequest") 6658 proto.RegisterType((*QueryAggregateVolumesResponse)(nil), "injective.exchange.v1beta1.QueryAggregateVolumesResponse") 6659 proto.RegisterType((*QueryAggregateMarketVolumeRequest)(nil), "injective.exchange.v1beta1.QueryAggregateMarketVolumeRequest") 6660 proto.RegisterType((*QueryAggregateMarketVolumeResponse)(nil), "injective.exchange.v1beta1.QueryAggregateMarketVolumeResponse") 6661 proto.RegisterType((*QueryDenomDecimalRequest)(nil), "injective.exchange.v1beta1.QueryDenomDecimalRequest") 6662 proto.RegisterType((*QueryDenomDecimalResponse)(nil), "injective.exchange.v1beta1.QueryDenomDecimalResponse") 6663 proto.RegisterType((*QueryDenomDecimalsRequest)(nil), "injective.exchange.v1beta1.QueryDenomDecimalsRequest") 6664 proto.RegisterType((*QueryDenomDecimalsResponse)(nil), "injective.exchange.v1beta1.QueryDenomDecimalsResponse") 6665 proto.RegisterType((*QueryAggregateMarketVolumesRequest)(nil), "injective.exchange.v1beta1.QueryAggregateMarketVolumesRequest") 6666 proto.RegisterType((*QueryAggregateMarketVolumesResponse)(nil), "injective.exchange.v1beta1.QueryAggregateMarketVolumesResponse") 6667 proto.RegisterType((*QuerySubaccountDepositRequest)(nil), "injective.exchange.v1beta1.QuerySubaccountDepositRequest") 6668 proto.RegisterType((*QuerySubaccountDepositResponse)(nil), "injective.exchange.v1beta1.QuerySubaccountDepositResponse") 6669 proto.RegisterType((*QuerySpotMarketsRequest)(nil), "injective.exchange.v1beta1.QuerySpotMarketsRequest") 6670 proto.RegisterType((*QuerySpotMarketsResponse)(nil), "injective.exchange.v1beta1.QuerySpotMarketsResponse") 6671 proto.RegisterType((*QuerySpotMarketRequest)(nil), "injective.exchange.v1beta1.QuerySpotMarketRequest") 6672 proto.RegisterType((*QuerySpotMarketResponse)(nil), "injective.exchange.v1beta1.QuerySpotMarketResponse") 6673 proto.RegisterType((*QuerySpotOrderbookRequest)(nil), "injective.exchange.v1beta1.QuerySpotOrderbookRequest") 6674 proto.RegisterType((*QuerySpotOrderbookResponse)(nil), "injective.exchange.v1beta1.QuerySpotOrderbookResponse") 6675 proto.RegisterType((*FullSpotMarket)(nil), "injective.exchange.v1beta1.FullSpotMarket") 6676 proto.RegisterType((*QueryFullSpotMarketsRequest)(nil), "injective.exchange.v1beta1.QueryFullSpotMarketsRequest") 6677 proto.RegisterType((*QueryFullSpotMarketsResponse)(nil), "injective.exchange.v1beta1.QueryFullSpotMarketsResponse") 6678 proto.RegisterType((*QueryFullSpotMarketRequest)(nil), "injective.exchange.v1beta1.QueryFullSpotMarketRequest") 6679 proto.RegisterType((*QueryFullSpotMarketResponse)(nil), "injective.exchange.v1beta1.QueryFullSpotMarketResponse") 6680 proto.RegisterType((*QuerySpotOrdersByHashesRequest)(nil), "injective.exchange.v1beta1.QuerySpotOrdersByHashesRequest") 6681 proto.RegisterType((*QuerySpotOrdersByHashesResponse)(nil), "injective.exchange.v1beta1.QuerySpotOrdersByHashesResponse") 6682 proto.RegisterType((*QueryTraderSpotOrdersRequest)(nil), "injective.exchange.v1beta1.QueryTraderSpotOrdersRequest") 6683 proto.RegisterType((*QueryAccountAddressSpotOrdersRequest)(nil), "injective.exchange.v1beta1.QueryAccountAddressSpotOrdersRequest") 6684 proto.RegisterType((*TrimmedSpotLimitOrder)(nil), "injective.exchange.v1beta1.TrimmedSpotLimitOrder") 6685 proto.RegisterType((*QueryTraderSpotOrdersResponse)(nil), "injective.exchange.v1beta1.QueryTraderSpotOrdersResponse") 6686 proto.RegisterType((*QueryAccountAddressSpotOrdersResponse)(nil), "injective.exchange.v1beta1.QueryAccountAddressSpotOrdersResponse") 6687 proto.RegisterType((*QuerySpotMidPriceAndTOBRequest)(nil), "injective.exchange.v1beta1.QuerySpotMidPriceAndTOBRequest") 6688 proto.RegisterType((*QuerySpotMidPriceAndTOBResponse)(nil), "injective.exchange.v1beta1.QuerySpotMidPriceAndTOBResponse") 6689 proto.RegisterType((*QueryDerivativeMidPriceAndTOBRequest)(nil), "injective.exchange.v1beta1.QueryDerivativeMidPriceAndTOBRequest") 6690 proto.RegisterType((*QueryDerivativeMidPriceAndTOBResponse)(nil), "injective.exchange.v1beta1.QueryDerivativeMidPriceAndTOBResponse") 6691 proto.RegisterType((*QueryDerivativeOrderbookRequest)(nil), "injective.exchange.v1beta1.QueryDerivativeOrderbookRequest") 6692 proto.RegisterType((*QueryDerivativeOrderbookResponse)(nil), "injective.exchange.v1beta1.QueryDerivativeOrderbookResponse") 6693 proto.RegisterType((*QueryTraderSpotOrdersToCancelUpToAmountRequest)(nil), "injective.exchange.v1beta1.QueryTraderSpotOrdersToCancelUpToAmountRequest") 6694 proto.RegisterType((*QueryTraderDerivativeOrdersToCancelUpToAmountRequest)(nil), "injective.exchange.v1beta1.QueryTraderDerivativeOrdersToCancelUpToAmountRequest") 6695 proto.RegisterType((*QueryTraderDerivativeOrdersRequest)(nil), "injective.exchange.v1beta1.QueryTraderDerivativeOrdersRequest") 6696 proto.RegisterType((*QueryAccountAddressDerivativeOrdersRequest)(nil), "injective.exchange.v1beta1.QueryAccountAddressDerivativeOrdersRequest") 6697 proto.RegisterType((*TrimmedDerivativeLimitOrder)(nil), "injective.exchange.v1beta1.TrimmedDerivativeLimitOrder") 6698 proto.RegisterType((*QueryTraderDerivativeOrdersResponse)(nil), "injective.exchange.v1beta1.QueryTraderDerivativeOrdersResponse") 6699 proto.RegisterType((*QueryAccountAddressDerivativeOrdersResponse)(nil), "injective.exchange.v1beta1.QueryAccountAddressDerivativeOrdersResponse") 6700 proto.RegisterType((*QueryDerivativeOrdersByHashesRequest)(nil), "injective.exchange.v1beta1.QueryDerivativeOrdersByHashesRequest") 6701 proto.RegisterType((*QueryDerivativeOrdersByHashesResponse)(nil), "injective.exchange.v1beta1.QueryDerivativeOrdersByHashesResponse") 6702 proto.RegisterType((*QueryDerivativeMarketsRequest)(nil), "injective.exchange.v1beta1.QueryDerivativeMarketsRequest") 6703 proto.RegisterType((*PriceLevel)(nil), "injective.exchange.v1beta1.PriceLevel") 6704 proto.RegisterType((*PerpetualMarketState)(nil), "injective.exchange.v1beta1.PerpetualMarketState") 6705 proto.RegisterType((*FullDerivativeMarket)(nil), "injective.exchange.v1beta1.FullDerivativeMarket") 6706 proto.RegisterType((*QueryDerivativeMarketsResponse)(nil), "injective.exchange.v1beta1.QueryDerivativeMarketsResponse") 6707 proto.RegisterType((*QueryDerivativeMarketRequest)(nil), "injective.exchange.v1beta1.QueryDerivativeMarketRequest") 6708 proto.RegisterType((*QueryDerivativeMarketResponse)(nil), "injective.exchange.v1beta1.QueryDerivativeMarketResponse") 6709 proto.RegisterType((*QueryDerivativeMarketAddressRequest)(nil), "injective.exchange.v1beta1.QueryDerivativeMarketAddressRequest") 6710 proto.RegisterType((*QueryDerivativeMarketAddressResponse)(nil), "injective.exchange.v1beta1.QueryDerivativeMarketAddressResponse") 6711 proto.RegisterType((*QuerySubaccountTradeNonceRequest)(nil), "injective.exchange.v1beta1.QuerySubaccountTradeNonceRequest") 6712 proto.RegisterType((*QuerySubaccountPositionsRequest)(nil), "injective.exchange.v1beta1.QuerySubaccountPositionsRequest") 6713 proto.RegisterType((*QuerySubaccountPositionInMarketRequest)(nil), "injective.exchange.v1beta1.QuerySubaccountPositionInMarketRequest") 6714 proto.RegisterType((*QuerySubaccountEffectivePositionInMarketRequest)(nil), "injective.exchange.v1beta1.QuerySubaccountEffectivePositionInMarketRequest") 6715 proto.RegisterType((*QuerySubaccountOrderMetadataRequest)(nil), "injective.exchange.v1beta1.QuerySubaccountOrderMetadataRequest") 6716 proto.RegisterType((*QuerySubaccountPositionsResponse)(nil), "injective.exchange.v1beta1.QuerySubaccountPositionsResponse") 6717 proto.RegisterType((*QuerySubaccountPositionInMarketResponse)(nil), "injective.exchange.v1beta1.QuerySubaccountPositionInMarketResponse") 6718 proto.RegisterType((*EffectivePosition)(nil), "injective.exchange.v1beta1.EffectivePosition") 6719 proto.RegisterType((*QuerySubaccountEffectivePositionInMarketResponse)(nil), "injective.exchange.v1beta1.QuerySubaccountEffectivePositionInMarketResponse") 6720 proto.RegisterType((*QueryPerpetualMarketInfoRequest)(nil), "injective.exchange.v1beta1.QueryPerpetualMarketInfoRequest") 6721 proto.RegisterType((*QueryPerpetualMarketInfoResponse)(nil), "injective.exchange.v1beta1.QueryPerpetualMarketInfoResponse") 6722 proto.RegisterType((*QueryExpiryFuturesMarketInfoRequest)(nil), "injective.exchange.v1beta1.QueryExpiryFuturesMarketInfoRequest") 6723 proto.RegisterType((*QueryExpiryFuturesMarketInfoResponse)(nil), "injective.exchange.v1beta1.QueryExpiryFuturesMarketInfoResponse") 6724 proto.RegisterType((*QueryPerpetualMarketFundingRequest)(nil), "injective.exchange.v1beta1.QueryPerpetualMarketFundingRequest") 6725 proto.RegisterType((*QueryPerpetualMarketFundingResponse)(nil), "injective.exchange.v1beta1.QueryPerpetualMarketFundingResponse") 6726 proto.RegisterType((*QuerySubaccountOrderMetadataResponse)(nil), "injective.exchange.v1beta1.QuerySubaccountOrderMetadataResponse") 6727 proto.RegisterType((*QuerySubaccountTradeNonceResponse)(nil), "injective.exchange.v1beta1.QuerySubaccountTradeNonceResponse") 6728 proto.RegisterType((*QueryModuleStateRequest)(nil), "injective.exchange.v1beta1.QueryModuleStateRequest") 6729 proto.RegisterType((*QueryModuleStateResponse)(nil), "injective.exchange.v1beta1.QueryModuleStateResponse") 6730 proto.RegisterType((*QueryPositionsRequest)(nil), "injective.exchange.v1beta1.QueryPositionsRequest") 6731 proto.RegisterType((*QueryPositionsResponse)(nil), "injective.exchange.v1beta1.QueryPositionsResponse") 6732 proto.RegisterType((*QueryTradeRewardPointsRequest)(nil), "injective.exchange.v1beta1.QueryTradeRewardPointsRequest") 6733 proto.RegisterType((*QueryTradeRewardPointsResponse)(nil), "injective.exchange.v1beta1.QueryTradeRewardPointsResponse") 6734 proto.RegisterType((*QueryTradeRewardCampaignRequest)(nil), "injective.exchange.v1beta1.QueryTradeRewardCampaignRequest") 6735 proto.RegisterType((*QueryTradeRewardCampaignResponse)(nil), "injective.exchange.v1beta1.QueryTradeRewardCampaignResponse") 6736 proto.RegisterType((*QueryIsOptedOutOfRewardsRequest)(nil), "injective.exchange.v1beta1.QueryIsOptedOutOfRewardsRequest") 6737 proto.RegisterType((*QueryIsOptedOutOfRewardsResponse)(nil), "injective.exchange.v1beta1.QueryIsOptedOutOfRewardsResponse") 6738 proto.RegisterType((*QueryOptedOutOfRewardsAccountsRequest)(nil), "injective.exchange.v1beta1.QueryOptedOutOfRewardsAccountsRequest") 6739 proto.RegisterType((*QueryOptedOutOfRewardsAccountsResponse)(nil), "injective.exchange.v1beta1.QueryOptedOutOfRewardsAccountsResponse") 6740 proto.RegisterType((*QueryFeeDiscountAccountInfoRequest)(nil), "injective.exchange.v1beta1.QueryFeeDiscountAccountInfoRequest") 6741 proto.RegisterType((*QueryFeeDiscountAccountInfoResponse)(nil), "injective.exchange.v1beta1.QueryFeeDiscountAccountInfoResponse") 6742 proto.RegisterType((*QueryFeeDiscountScheduleRequest)(nil), "injective.exchange.v1beta1.QueryFeeDiscountScheduleRequest") 6743 proto.RegisterType((*QueryFeeDiscountScheduleResponse)(nil), "injective.exchange.v1beta1.QueryFeeDiscountScheduleResponse") 6744 proto.RegisterType((*QueryBalanceMismatchesRequest)(nil), "injective.exchange.v1beta1.QueryBalanceMismatchesRequest") 6745 proto.RegisterType((*BalanceMismatch)(nil), "injective.exchange.v1beta1.BalanceMismatch") 6746 proto.RegisterType((*QueryBalanceMismatchesResponse)(nil), "injective.exchange.v1beta1.QueryBalanceMismatchesResponse") 6747 proto.RegisterType((*QueryBalanceWithBalanceHoldsRequest)(nil), "injective.exchange.v1beta1.QueryBalanceWithBalanceHoldsRequest") 6748 proto.RegisterType((*BalanceWithMarginHold)(nil), "injective.exchange.v1beta1.BalanceWithMarginHold") 6749 proto.RegisterType((*QueryBalanceWithBalanceHoldsResponse)(nil), "injective.exchange.v1beta1.QueryBalanceWithBalanceHoldsResponse") 6750 proto.RegisterType((*QueryFeeDiscountTierStatisticsRequest)(nil), "injective.exchange.v1beta1.QueryFeeDiscountTierStatisticsRequest") 6751 proto.RegisterType((*TierStatistic)(nil), "injective.exchange.v1beta1.TierStatistic") 6752 proto.RegisterType((*QueryFeeDiscountTierStatisticsResponse)(nil), "injective.exchange.v1beta1.QueryFeeDiscountTierStatisticsResponse") 6753 proto.RegisterType((*MitoVaultInfosRequest)(nil), "injective.exchange.v1beta1.MitoVaultInfosRequest") 6754 proto.RegisterType((*MitoVaultInfosResponse)(nil), "injective.exchange.v1beta1.MitoVaultInfosResponse") 6755 proto.RegisterType((*QueryMarketIDFromVaultRequest)(nil), "injective.exchange.v1beta1.QueryMarketIDFromVaultRequest") 6756 proto.RegisterType((*QueryMarketIDFromVaultResponse)(nil), "injective.exchange.v1beta1.QueryMarketIDFromVaultResponse") 6757 proto.RegisterType((*QueryHistoricalTradeRecordsRequest)(nil), "injective.exchange.v1beta1.QueryHistoricalTradeRecordsRequest") 6758 proto.RegisterType((*QueryHistoricalTradeRecordsResponse)(nil), "injective.exchange.v1beta1.QueryHistoricalTradeRecordsResponse") 6759 proto.RegisterType((*TradeHistoryOptions)(nil), "injective.exchange.v1beta1.TradeHistoryOptions") 6760 proto.RegisterType((*QueryMarketVolatilityRequest)(nil), "injective.exchange.v1beta1.QueryMarketVolatilityRequest") 6761 proto.RegisterType((*QueryMarketVolatilityResponse)(nil), "injective.exchange.v1beta1.QueryMarketVolatilityResponse") 6762 proto.RegisterType((*QueryBinaryMarketsRequest)(nil), "injective.exchange.v1beta1.QueryBinaryMarketsRequest") 6763 proto.RegisterType((*QueryBinaryMarketsResponse)(nil), "injective.exchange.v1beta1.QueryBinaryMarketsResponse") 6764 proto.RegisterType((*QueryTraderDerivativeConditionalOrdersRequest)(nil), "injective.exchange.v1beta1.QueryTraderDerivativeConditionalOrdersRequest") 6765 proto.RegisterType((*TrimmedDerivativeConditionalOrder)(nil), "injective.exchange.v1beta1.TrimmedDerivativeConditionalOrder") 6766 proto.RegisterType((*QueryTraderDerivativeConditionalOrdersResponse)(nil), "injective.exchange.v1beta1.QueryTraderDerivativeConditionalOrdersResponse") 6767 proto.RegisterType((*QueryMarketAtomicExecutionFeeMultiplierRequest)(nil), "injective.exchange.v1beta1.QueryMarketAtomicExecutionFeeMultiplierRequest") 6768 proto.RegisterType((*QueryMarketAtomicExecutionFeeMultiplierResponse)(nil), "injective.exchange.v1beta1.QueryMarketAtomicExecutionFeeMultiplierResponse") 6769 proto.RegisterType((*QueryActiveStakeGrantRequest)(nil), "injective.exchange.v1beta1.QueryActiveStakeGrantRequest") 6770 proto.RegisterType((*QueryActiveStakeGrantResponse)(nil), "injective.exchange.v1beta1.QueryActiveStakeGrantResponse") 6771 proto.RegisterType((*QueryGrantAuthorizationRequest)(nil), "injective.exchange.v1beta1.QueryGrantAuthorizationRequest") 6772 proto.RegisterType((*QueryGrantAuthorizationResponse)(nil), "injective.exchange.v1beta1.QueryGrantAuthorizationResponse") 6773 proto.RegisterType((*QueryGrantAuthorizationsRequest)(nil), "injective.exchange.v1beta1.QueryGrantAuthorizationsRequest") 6774 proto.RegisterType((*QueryGrantAuthorizationsResponse)(nil), "injective.exchange.v1beta1.QueryGrantAuthorizationsResponse") 6775 } 6776 6777 func init() { 6778 proto.RegisterFile("injective/exchange/v1beta1/query.proto", fileDescriptor_523db28b8af54781) 6779 } 6780 6781 var fileDescriptor_523db28b8af54781 = []byte{ 6782 // 5833 bytes of a gzipped FileDescriptorProto 6783 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x5d, 0x7d, 0x8c, 0x1c, 0xc9, 6784 0x55, 0x77, 0xcf, 0x7e, 0x78, 0xf7, 0xed, 0xa7, 0x6b, 0xd7, 0xeb, 0xf5, 0xdc, 0x9d, 0x3f, 0xda, 6785 0x71, 0xce, 0xe7, 0x9c, 0x77, 0xed, 0xf5, 0xf7, 0xb7, 0xf7, 0xc3, 0x6b, 0xef, 0xd9, 0x6b, 0x3b, 6786 0xb3, 0xeb, 0xbb, 0xe4, 0x02, 0x4c, 0x7a, 0x67, 0x6a, 0x67, 0x3b, 0xee, 0x99, 0x1e, 0x4f, 0xf7, 6787 0xec, 0x79, 0x31, 0x46, 0x40, 0x40, 0x89, 0x40, 0x02, 0xa4, 0x08, 0x10, 0x02, 0x21, 0xe0, 0x4f, 6788 0xa4, 0x08, 0x89, 0x08, 0x81, 0x12, 0x29, 0x51, 0x08, 0x42, 0x21, 0xe1, 0x23, 0x40, 0x08, 0x28, 6789 0x82, 0x23, 0xba, 0x0b, 0x44, 0x39, 0x81, 0xc4, 0x5f, 0x48, 0x08, 0x14, 0x50, 0x57, 0xbd, 0xaa, 6790 0xe9, 0xef, 0xa9, 0x9e, 0xdd, 0xd3, 0x25, 0xf0, 0xd7, 0x4e, 0x57, 0xd7, 0x7b, 0xf5, 0xde, 0xab, 6791 0x57, 0xaf, 0x5e, 0x7d, 0xfc, 0x7a, 0xe1, 0xfd, 0x66, 0xed, 0x63, 0xb4, 0xe4, 0x9a, 0x9b, 0x74, 6792 0x9a, 0x3e, 0x29, 0x6d, 0x18, 0xb5, 0x0a, 0x9d, 0xde, 0x3c, 0xb5, 0x46, 0x5d, 0xe3, 0xd4, 0xf4, 6793 0xe3, 0x26, 0x6d, 0x6c, 0x4d, 0xd5, 0x1b, 0xb6, 0x6b, 0x93, 0xbc, 0xac, 0x37, 0x25, 0xea, 0x4d, 6794 0x61, 0xbd, 0xfc, 0xf3, 0x15, 0xdb, 0xae, 0x58, 0x74, 0xda, 0xa8, 0x9b, 0xd3, 0x46, 0xad, 0x66, 6795 0xbb, 0x86, 0x6b, 0xda, 0x35, 0x87, 0x53, 0xe6, 0x5f, 0x4a, 0x69, 0x41, 0xb2, 0xe2, 0x55, 0x8f, 6796 0xa5, 0x54, 0xad, 0xd0, 0x1a, 0x75, 0x4c, 0xc1, 0xf4, 0x68, 0xab, 0xa6, 0xdd, 0x30, 0x4a, 0x56, 6797 0xab, 0x1e, 0x7f, 0xc4, 0x6a, 0xe3, 0x15, 0xbb, 0x62, 0xb3, 0x9f, 0xd3, 0xde, 0x2f, 0x5e, 0xaa, 6798 0xdf, 0x07, 0x58, 0x69, 0xae, 0x19, 0xa5, 0x92, 0xdd, 0xac, 0xb9, 0x64, 0x02, 0x7a, 0xdd, 0x86, 6799 0x51, 0xa6, 0x8d, 0x49, 0xed, 0x90, 0x76, 0xac, 0xbf, 0x80, 0x4f, 0xe4, 0x25, 0x18, 0x75, 0x64, 6800 0xad, 0x62, 0xcd, 0xae, 0x95, 0xe8, 0x64, 0xee, 0x90, 0x76, 0x6c, 0xa8, 0x30, 0xd2, 0x2a, 0xbf, 6801 0xe7, 0x15, 0xeb, 0x1f, 0x85, 0xe7, 0x3f, 0xe8, 0xd9, 0xaa, 0xc5, 0xf5, 0x7e, 0xa3, 0x4c, 0x1b, 6802 0x4e, 0x81, 0x3e, 0x6e, 0x52, 0xc7, 0x25, 0x47, 0x60, 0xc8, 0xc7, 0xca, 0x2c, 0x63, 0x4b, 0x83, 6803 0xad, 0xc2, 0xa5, 0x32, 0x79, 0x0e, 0xfa, 0xab, 0x46, 0xe3, 0x11, 0x65, 0x15, 0x72, 0xac, 0x42, 6804 0x1f, 0x2f, 0x58, 0x2a, 0xeb, 0x5f, 0xd4, 0xe0, 0x85, 0x84, 0x26, 0x9c, 0xba, 0x5d, 0x73, 0x28, 6805 0xb9, 0x07, 0xb0, 0xd6, 0xdc, 0x2a, 0xda, 0xac, 0x74, 0x52, 0x3b, 0xd4, 0x75, 0x6c, 0x60, 0x66, 6806 0x7a, 0x2a, 0xb9, 0xd7, 0xa6, 0x42, 0x9c, 0x16, 0x0c, 0xd7, 0x28, 0xf4, 0xaf, 0x35, 0xb7, 0x38, 6807 0x5f, 0xf2, 0x00, 0x06, 0x1c, 0x6a, 0x59, 0x82, 0x61, 0xae, 0x33, 0x86, 0xe0, 0xf1, 0xe0, 0x1c, 6808 0xf5, 0xdf, 0xd5, 0xe0, 0x68, 0xa8, 0xce, 0x9a, 0x6d, 0x3f, 0x5a, 0xa6, 0xae, 0x51, 0x36, 0x5c, 6809 0xe3, 0x35, 0xd3, 0xdd, 0x58, 0x66, 0xfa, 0x92, 0x15, 0xe8, 0xab, 0x62, 0x29, 0x33, 0xd5, 0xc0, 6810 0xcc, 0xf9, 0x0c, 0x0d, 0xfb, 0x99, 0x16, 0x24, 0xa3, 0x54, 0xfb, 0x92, 0x71, 0xe8, 0x31, 0x9d, 6811 0xb9, 0xe6, 0xd6, 0x64, 0xd7, 0x21, 0xed, 0x58, 0x5f, 0x81, 0x3f, 0xe8, 0xcf, 0x43, 0x9e, 0x19, 6812 0xfd, 0x26, 0xb6, 0xf8, 0xc0, 0x68, 0x18, 0x55, 0xd1, 0xab, 0x7a, 0x11, 0x9e, 0x8b, 0x7d, 0x8b, 6813 0x1d, 0x72, 0x03, 0x7a, 0xeb, 0xac, 0x04, 0x55, 0xd0, 0xd3, 0x54, 0xe0, 0xb4, 0x73, 0xdd, 0x5f, 6814 0x7e, 0xf3, 0xe0, 0xae, 0x02, 0xd2, 0xe9, 0x9f, 0xd2, 0xe0, 0x40, 0xa8, 0xd3, 0x17, 0x68, 0xdd, 6815 0x76, 0x4c, 0x37, 0x9b, 0x67, 0xdd, 0x05, 0x68, 0x3d, 0x33, 0xd5, 0x07, 0x66, 0xde, 0xaf, 0x66, 6816 0x50, 0x26, 0x91, 0x56, 0xf0, 0xd1, 0xeb, 0xef, 0x68, 0x70, 0x30, 0x51, 0x2a, 0xd4, 0x9d, 0x42, 6817 0x5f, 0x19, 0xcb, 0xd0, 0x15, 0x97, 0xd2, 0xda, 0x6b, 0xc3, 0x6e, 0x4a, 0x14, 0xdc, 0xac, 0xb9, 6818 0x8d, 0xad, 0x82, 0x64, 0x9d, 0xff, 0x28, 0x0c, 0x05, 0x5e, 0x91, 0x51, 0xe8, 0x7a, 0x44, 0xb7, 6819 0xd0, 0x08, 0xde, 0x4f, 0x72, 0x11, 0x7a, 0x36, 0x0d, 0xab, 0x49, 0x51, 0xed, 0x23, 0x69, 0x62, 6820 0x20, 0xaf, 0x02, 0xa7, 0xb8, 0x94, 0xbb, 0xa0, 0xe9, 0x07, 0x70, 0x64, 0x8b, 0x3e, 0x9e, 0x33, 6821 0x2c, 0xa3, 0x56, 0xa2, 0xd2, 0x07, 0xd6, 0x71, 0x58, 0x46, 0xdf, 0xa3, 0x25, 0x6e, 0x42, 0xdf, 6822 0x1a, 0x96, 0xa1, 0x25, 0x52, 0x45, 0x40, 0x7a, 0x74, 0x04, 0x49, 0xaa, 0x9f, 0x47, 0x5f, 0x9b, 6823 0xad, 0x54, 0x1a, 0xb4, 0x62, 0xb8, 0xf4, 0x55, 0xdb, 0x6a, 0x56, 0xa9, 0x70, 0x83, 0x49, 0xd8, 6824 0x2d, 0xba, 0x97, 0xeb, 0x2e, 0x1e, 0xf5, 0x26, 0x2a, 0x10, 0x21, 0x44, 0xf9, 0x1e, 0xc2, 0x1e, 6825 0x43, 0xbc, 0x2a, 0x6e, 0xb2, 0x77, 0x42, 0xd0, 0x63, 0x69, 0x82, 0xf2, 0x91, 0x8a, 0xcc, 0x46, 6826 0x8d, 0x20, 0x77, 0x47, 0xff, 0x70, 0x7c, 0xb3, 0xd2, 0x6f, 0xf3, 0xd0, 0x87, 0x12, 0xf2, 0xd6, 6827 0xfa, 0x0b, 0xf2, 0x99, 0xbc, 0x00, 0x20, 0x07, 0x2a, 0x0f, 0x3c, 0xfd, 0x85, 0x7e, 0x31, 0x52, 6828 0x1d, 0xfd, 0x3f, 0x45, 0x28, 0x8c, 0xf2, 0x46, 0x9d, 0x5c, 0xd8, 0xdf, 0xd2, 0x49, 0x8c, 0x8d, 6829 0xa0, 0x6e, 0x17, 0xd2, 0x74, 0x93, 0x8c, 0x67, 0x39, 0xad, 0x30, 0x59, 0xc9, 0x6e, 0x94, 0x0b, 6830 0xfb, 0x8c, 0xd8, 0xb7, 0x0e, 0x59, 0x83, 0xc9, 0x56, 0xab, 0xa8, 0x80, 0x68, 0x34, 0x97, 0xd1, 6831 0xa0, 0x13, 0x92, 0x93, 0xbf, 0xd8, 0xd1, 0x6f, 0xc0, 0xe1, 0xa0, 0xea, 0x01, 0x2a, 0xb4, 0x6d, 6832 0x20, 0xd0, 0x69, 0xa1, 0x89, 0xc4, 0x02, 0x3d, 0x8d, 0x03, 0x5a, 0x70, 0x11, 0x7a, 0xb9, 0xe8, 6833 0x18, 0xbb, 0x52, 0x25, 0xf7, 0x9b, 0x47, 0x44, 0x30, 0x4e, 0xad, 0x9f, 0x84, 0x49, 0xd6, 0xda, 6834 0x02, 0xad, 0xd9, 0xd5, 0x05, 0x5a, 0x32, 0xab, 0x86, 0x25, 0xc4, 0x1c, 0x87, 0x9e, 0xb2, 0x57, 6835 0x8c, 0x22, 0xf2, 0x07, 0xfd, 0x2c, 0xec, 0x8f, 0xa1, 0x40, 0xb1, 0x26, 0x61, 0x77, 0x99, 0x17, 6836 0x31, 0xa2, 0xee, 0x82, 0x78, 0xd4, 0x4f, 0xc7, 0x90, 0x49, 0x67, 0x9b, 0x80, 0x5e, 0xc6, 0x5c, 6837 0xb8, 0x1a, 0x3e, 0xe9, 0x2e, 0x86, 0xf7, 0x10, 0x11, 0x36, 0xf6, 0x2a, 0x0c, 0xb3, 0x7a, 0x45, 6838 0x6c, 0x43, 0xb8, 0xce, 0x4b, 0xe9, 0x21, 0xc4, 0xc7, 0x0a, 0x8d, 0x31, 0x54, 0xf6, 0x17, 0xea, 6839 0xf3, 0x69, 0x3d, 0x20, 0x65, 0x0e, 0x0e, 0x02, 0x2d, 0x3c, 0x08, 0x4c, 0x38, 0x92, 0xca, 0x04, 6840 0x75, 0x98, 0x83, 0xdd, 0x9d, 0x8e, 0x69, 0x41, 0xa8, 0xbf, 0x1e, 0xc9, 0x3c, 0x44, 0x9c, 0xcc, 6841 0x32, 0x07, 0xc9, 0xde, 0xce, 0xf9, 0x7b, 0xdb, 0x48, 0x9a, 0xe0, 0xa4, 0x06, 0xd7, 0x03, 0x33, 6842 0x89, 0x72, 0x08, 0x97, 0x44, 0xfa, 0x03, 0xd8, 0xc7, 0x9b, 0xa8, 0xdb, 0x2e, 0x57, 0xd0, 0xef, 6843 0x17, 0x8e, 0x6b, 0xb8, 0x4d, 0x47, 0x64, 0x7e, 0xfc, 0xa9, 0x5d, 0x00, 0xfa, 0x21, 0x74, 0xea, 6844 0x00, 0x47, 0x39, 0xe9, 0xef, 0xe6, 0x15, 0x85, 0xc1, 0xd3, 0xe7, 0x59, 0xc9, 0xa1, 0x20, 0xc8, 6845 0xf4, 0xb3, 0x30, 0x11, 0xe2, 0xae, 0x34, 0xae, 0x3f, 0x1c, 0x51, 0x53, 0xca, 0x74, 0x0d, 0x7a, 6846 0x79, 0x35, 0x34, 0xa0, 0xaa, 0x48, 0x48, 0xa5, 0x7f, 0x23, 0x87, 0x83, 0xcb, 0x7b, 0x27, 0x33, 6847 0x2c, 0x15, 0xa9, 0xbc, 0x5e, 0xb7, 0xcc, 0xaa, 0xc9, 0x93, 0x8e, 0xee, 0x02, 0x7f, 0x20, 0x0b, 6848 0x00, 0x2c, 0xab, 0x2c, 0x3a, 0x66, 0x99, 0xb2, 0x8c, 0x6b, 0x78, 0xe6, 0x68, 0x9a, 0x50, 0xac, 6849 0xd1, 0x15, 0xb3, 0x4c, 0x0b, 0xfd, 0xb6, 0xf8, 0x49, 0x8a, 0xb0, 0x9f, 0xb1, 0x2b, 0x96, 0x9a, 6850 0xd5, 0xa6, 0x65, 0x78, 0x94, 0xc5, 0x9a, 0xed, 0xad, 0x3c, 0x0c, 0x6b, 0xb2, 0xdb, 0x13, 0x64, 6851 0xee, 0x88, 0x97, 0xbc, 0x7c, 0xf3, 0xcd, 0x83, 0xcf, 0x95, 0x6c, 0xa7, 0x6a, 0x3b, 0x4e, 0xf9, 6852 0xd1, 0x94, 0x69, 0x4f, 0x57, 0x0d, 0x77, 0x63, 0xea, 0x2e, 0xad, 0x18, 0xa5, 0xad, 0x05, 0x5a, 6853 0x2a, 0xec, 0x63, 0x5c, 0xe6, 0x25, 0x93, 0x7b, 0xc8, 0x23, 0xb6, 0x81, 0xc7, 0x4d, 0xa3, 0xe6, 6854 0x9a, 0xee, 0xd6, 0x64, 0x4f, 0xe7, 0x0d, 0x7c, 0x10, 0x79, 0xe8, 0x7f, 0xa8, 0x61, 0x00, 0x0a, 6855 0x19, 0x16, 0xfb, 0xed, 0x0e, 0x8c, 0xae, 0x35, 0xb7, 0x9c, 0x62, 0xbd, 0x61, 0x96, 0x68, 0xd1, 6856 0xa2, 0x9b, 0xd4, 0x42, 0xa7, 0x3a, 0x9c, 0x66, 0xac, 0xbb, 0x5e, 0xc5, 0xc2, 0xb0, 0x47, 0xfa, 6857 0xc0, 0xa3, 0x64, 0xcf, 0x64, 0x19, 0xf6, 0x78, 0xa9, 0x78, 0x90, 0x5b, 0x4e, 0x95, 0xdb, 0x08, 6858 0xa3, 0x6d, 0xb1, 0xd3, 0x3f, 0xad, 0xc1, 0xf0, 0x62, 0xd3, 0xb2, 0x5a, 0xee, 0xb2, 0x5d, 0x37, 6859 0x23, 0x1f, 0x81, 0x3d, 0x55, 0xb3, 0x8c, 0xf2, 0x19, 0xb5, 0x72, 0xd1, 0xb5, 0xd7, 0x30, 0x6b, 6860 0x3b, 0x9e, 0x1a, 0xb5, 0xcc, 0x32, 0x13, 0x6c, 0xb6, 0x56, 0x5e, 0xbd, 0x3f, 0x87, 0x09, 0xeb, 6861 0x70, 0xd5, 0x57, 0x6a, 0xaf, 0xe9, 0x9f, 0xd4, 0x30, 0x81, 0x0a, 0x0a, 0xbd, 0xcd, 0x50, 0x40, 6862 0x66, 0x60, 0xe2, 0x0d, 0xd3, 0xdd, 0x28, 0x46, 0x05, 0xe7, 0xeb, 0x08, 0xe2, 0xbd, 0x5d, 0x0e, 6863 0x8a, 0x52, 0xc6, 0xd4, 0x28, 0x22, 0x09, 0x76, 0xfb, 0x42, 0x38, 0x84, 0xa4, 0x6a, 0x1f, 0xe4, 6864 0xd2, 0x0a, 0x23, 0x55, 0x74, 0xad, 0xd0, 0x7b, 0x95, 0x41, 0x9b, 0xac, 0x54, 0x2e, 0x51, 0x29, 6865 0x23, 0xd6, 0xbc, 0xbe, 0x79, 0x28, 0xe8, 0x1b, 0x59, 0x54, 0x12, 0x61, 0xe8, 0x67, 0xe4, 0x6a, 6866 0x48, 0x8c, 0x16, 0x67, 0x6e, 0xeb, 0xb6, 0xe1, 0x6c, 0xb4, 0x26, 0xcd, 0x54, 0xb5, 0x22, 0xd3, 6867 0x54, 0x2e, 0x66, 0x9a, 0x3a, 0x0c, 0x83, 0x3c, 0x34, 0x6d, 0x30, 0xc6, 0x93, 0x5d, 0xac, 0xc7, 6868 0x07, 0x58, 0x19, 0x6f, 0x4b, 0xb7, 0xc4, 0xf2, 0x27, 0x46, 0x0c, 0x54, 0x77, 0x09, 0x7a, 0x03, 6869 0xeb, 0xf0, 0x53, 0x69, 0xea, 0xae, 0x36, 0xcc, 0x6a, 0x95, 0x96, 0x3d, 0x76, 0x77, 0xbd, 0x40, 6870 0xc1, 0x78, 0x16, 0x90, 0x81, 0xdc, 0x5a, 0x58, 0x65, 0x9b, 0x12, 0xad, 0x36, 0x77, 0x4c, 0x65, 6871 0xdd, 0x82, 0xf7, 0xf1, 0x54, 0x82, 0x97, 0xcc, 0x96, 0xcb, 0x0d, 0xea, 0x38, 0x19, 0x5b, 0x7a, 6872 0x11, 0x46, 0x44, 0x33, 0x06, 0x67, 0x80, 0x6d, 0x0d, 0x1b, 0x01, 0xb6, 0xfa, 0xaf, 0xe5, 0x60, 6873 0x6f, 0xac, 0xc6, 0xde, 0x4a, 0x8d, 0x79, 0x1b, 0xe7, 0xcd, 0x42, 0xeb, 0xae, 0x76, 0xa1, 0x95, 6874 0x53, 0x78, 0x49, 0x82, 0x0c, 0xcc, 0x39, 0x75, 0x6a, 0x49, 0xe4, 0x31, 0x58, 0x37, 0x2d, 0xcb, 6875 0x58, 0xb3, 0xf8, 0x7c, 0xa4, 0xca, 0x40, 0x10, 0xb5, 0xf6, 0x0f, 0xba, 0x7d, 0xfb, 0x07, 0x5e, 6876 0xf4, 0x68, 0x79, 0x13, 0x9f, 0x32, 0x70, 0x06, 0xf3, 0x1c, 0xc6, 0x5b, 0xad, 0x96, 0xcc, 0xf2, 6877 0x64, 0x2f, 0x5f, 0xad, 0x96, 0xcc, 0xb2, 0xfe, 0x31, 0xcc, 0xb5, 0xa2, 0xbd, 0xbd, 0xf3, 0x9e, 6878 0xd5, 0x80, 0xa3, 0x6d, 0xfa, 0x7d, 0xe7, 0xdb, 0xbc, 0xea, 0x1b, 0xc2, 0xc1, 0xb8, 0xad, 0x94, 6879 0xe4, 0xfc, 0x97, 0xe6, 0x1b, 0x7b, 0x61, 0x7a, 0x99, 0x81, 0xf5, 0xcb, 0xc0, 0xe5, 0x73, 0xa5, 6880 0xb6, 0xb3, 0x74, 0x9f, 0x98, 0x31, 0xc8, 0x12, 0x0c, 0xaf, 0x51, 0xc7, 0x2d, 0xae, 0x35, 0xb7, 6881 0x90, 0x4d, 0x4e, 0x9d, 0xcd, 0xa0, 0x47, 0x3a, 0xd7, 0xdc, 0xe2, 0xac, 0xee, 0xc0, 0x08, 0x63, 6882 0xc5, 0x76, 0xd2, 0x38, 0xaf, 0x2e, 0x75, 0x5e, 0x43, 0x1e, 0xed, 0x0a, 0xb5, 0x2c, 0xc6, 0x4c, 6883 0x9f, 0xc7, 0x81, 0xba, 0x40, 0x1b, 0xe6, 0x26, 0xcb, 0x24, 0x3a, 0x30, 0xe1, 0x4f, 0xe6, 0xb0, 6884 0xdb, 0x93, 0xb9, 0xfc, 0x9f, 0x37, 0xe4, 0xef, 0x0b, 0x37, 0x6a, 0xd9, 0x60, 0x27, 0xd2, 0xda, 6885 0xd4, 0x84, 0xb4, 0x6b, 0xfb, 0x09, 0xa9, 0xfe, 0x79, 0x0d, 0x0e, 0x25, 0xcb, 0xfd, 0x03, 0x90, 6886 0x35, 0xfe, 0x7a, 0x17, 0x4c, 0xc5, 0xc6, 0xb7, 0x55, 0x7b, 0xde, 0xa8, 0x95, 0xa8, 0xf5, 0xb0, 6887 0xbe, 0x6a, 0xcf, 0x56, 0xbd, 0x70, 0xb4, 0x73, 0x53, 0xfa, 0x02, 0x0c, 0xac, 0x19, 0x0e, 0x2d, 6888 0x1a, 0x8c, 0x6f, 0x96, 0xf0, 0x0e, 0x1e, 0x1d, 0x17, 0x87, 0x2c, 0xc2, 0xe0, 0xe3, 0xa6, 0xed, 6889 0x4a, 0x36, 0xdd, 0xea, 0x6c, 0x06, 0x18, 0x21, 0xf2, 0xb9, 0x0b, 0x7d, 0x8e, 0xdb, 0x30, 0x5c, 6890 0x5a, 0xe1, 0x6b, 0x88, 0xe1, 0x99, 0x93, 0x69, 0x86, 0xe4, 0x66, 0xb1, 0xd8, 0x81, 0xca, 0x0a, 6891 0xd2, 0x15, 0x24, 0x07, 0x72, 0x17, 0x46, 0x1a, 0x74, 0x9d, 0x36, 0x68, 0xad, 0x44, 0x71, 0x58, 6892 0xf4, 0xaa, 0x3b, 0xda, 0xb0, 0xa4, 0xe5, 0xe3, 0xe2, 0x1f, 0x72, 0x70, 0xc6, 0xd7, 0x3d, 0x21, 6893 0x2f, 0x7b, 0x57, 0x3b, 0x29, 0x6c, 0xde, 0xae, 0x1d, 0x30, 0x6f, 0xf7, 0xbb, 0x61, 0xde, 0x9e, 6894 0xce, 0xcd, 0xbb, 0x8e, 0x1b, 0x3f, 0xf1, 0xd6, 0xdd, 0xb9, 0x84, 0xae, 0x01, 0xc7, 0x63, 0x26, 6895 0xf6, 0x8e, 0xda, 0x53, 0x4e, 0xeb, 0xbe, 0x9b, 0x83, 0xe7, 0x70, 0xea, 0x6f, 0x35, 0xf4, 0x7d, 6896 0x92, 0xdc, 0x5d, 0x66, 0x8b, 0x8f, 0x8a, 0x59, 0xcb, 0xe2, 0x55, 0x48, 0x12, 0xc8, 0x0c, 0xbb, 6897 0x3b, 0xc9, 0x0c, 0x0f, 0x8a, 0xcc, 0xd0, 0xf3, 0x9c, 0xbe, 0xb9, 0xfe, 0x77, 0xde, 0x3c, 0xc8, 6898 0x0b, 0xe2, 0x93, 0xc4, 0xde, 0x84, 0x24, 0x71, 0x77, 0x2b, 0x49, 0xdc, 0xc4, 0xbd, 0xbf, 0x24, 6899 0x3f, 0xc2, 0x89, 0xe0, 0x7e, 0x28, 0x6d, 0x3b, 0xaf, 0x90, 0xb6, 0xc5, 0xf5, 0x9d, 0x4c, 0xde, 6900 0x7e, 0x1c, 0x3e, 0xa0, 0xe4, 0x57, 0xef, 0x56, 0xfb, 0x3f, 0xa7, 0x45, 0x12, 0xa0, 0xf7, 0x70, 6901 0x19, 0xf8, 0x24, 0x92, 0x47, 0x25, 0x2c, 0x06, 0x77, 0xdc, 0x0e, 0x3f, 0x2b, 0x0e, 0x40, 0x7c, 6902 0x29, 0xdc, 0x7b, 0xb6, 0x9b, 0xf1, 0x49, 0x0d, 0xc0, 0x97, 0x30, 0xbc, 0x87, 0xe3, 0x5c, 0xff, 6903 0x82, 0x06, 0xe3, 0x0f, 0x68, 0xa3, 0x4e, 0xdd, 0xa6, 0x61, 0x71, 0x8b, 0xac, 0xb8, 0x86, 0x4b, 6904 0xc9, 0x03, 0x18, 0x10, 0x6a, 0xd7, 0xd6, 0x6d, 0xdc, 0x82, 0x48, 0x3d, 0xca, 0x0e, 0xb1, 0x59, 6905 0xaa, 0xad, 0xdb, 0x05, 0x34, 0x9d, 0xf7, 0x9b, 0x3c, 0x84, 0xc1, 0xf5, 0x66, 0xad, 0x6c, 0xd6, 6906 0x2a, 0x9c, 0x25, 0xdf, 0xa6, 0x9a, 0xc9, 0xc0, 0x72, 0x91, 0x93, 0x17, 0x06, 0x90, 0x8f, 0xc7, 6907 0x56, 0xff, 0x6c, 0x17, 0x8c, 0x2f, 0x36, 0x2d, 0x2b, 0xdc, 0xb1, 0x64, 0x21, 0xb4, 0x7f, 0xf2, 6908 0x72, 0xfa, 0x1e, 0x78, 0x90, 0x5a, 0xee, 0xb0, 0x7d, 0x18, 0x86, 0xeb, 0x42, 0x0a, 0xbf, 0xdc, 6909 0x27, 0x33, 0xc8, 0xcd, 0x2c, 0x7a, 0x7b, 0x57, 0x61, 0x48, 0x72, 0x62, 0x06, 0xf9, 0x90, 0x67, 6910 0x10, 0xb7, 0xd9, 0xa0, 0x0e, 0x67, 0xdc, 0xc5, 0x18, 0x9f, 0x4e, 0x63, 0x7c, 0xf3, 0x49, 0xdd, 6911 0x6c, 0x6c, 0x2d, 0x72, 0xaa, 0x96, 0x9d, 0x6f, 0xef, 0xf2, 0x6c, 0xc2, 0x0a, 0x19, 0xe7, 0x39, 6912 0xee, 0xb3, 0x38, 0xfd, 0x66, 0x08, 0xc1, 0xcc, 0xb1, 0xf9, 0xea, 0x21, 0x76, 0x6b, 0xb1, 0x67, 6913 0x67, 0xb6, 0x16, 0xe7, 0x7a, 0xa1, 0xdb, 0x53, 0x59, 0xb7, 0x70, 0x6d, 0x1b, 0x33, 0x2a, 0x31, 6914 0x12, 0xbc, 0x12, 0xde, 0xd9, 0x3b, 0xd9, 0x6e, 0x1b, 0x2c, 0xd2, 0x95, 0x72, 0x7f, 0xef, 0x32, 6915 0xee, 0x0b, 0x45, 0x6a, 0xa8, 0x2c, 0x02, 0xcd, 0x84, 0x00, 0x22, 0x25, 0xbd, 0x1d, 0xf2, 0xb7, 6916 0xec, 0x82, 0x8a, 0x5d, 0xbb, 0x39, 0x9c, 0xac, 0xc2, 0x15, 0x70, 0xf6, 0x50, 0x12, 0x97, 0x46, 6917 0x17, 0xbe, 0x41, 0x1e, 0xad, 0xe3, 0x41, 0x91, 0xa5, 0x88, 0x53, 0x70, 0xfe, 0xa8, 0x96, 0x37, 6918 0xdd, 0xc2, 0xd5, 0x55, 0xeb, 0x30, 0x8a, 0xcd, 0xb0, 0xec, 0x8a, 0x4f, 0x96, 0xb3, 0x2e, 0x7d, 6919 0x31, 0x72, 0x41, 0xe2, 0x81, 0xed, 0x98, 0xec, 0x4e, 0x54, 0x26, 0x3e, 0x1f, 0x83, 0xf7, 0x27, 6920 0xf0, 0x59, 0xaa, 0x05, 0x7b, 0x7b, 0xfb, 0x17, 0x8c, 0x1c, 0x98, 0x0e, 0xb5, 0x75, 0x73, 0x7d, 6921 0x9d, 0xf7, 0xf8, 0xbb, 0xd7, 0xe8, 0x2b, 0xe8, 0x1c, 0xa1, 0x0b, 0x3c, 0xf2, 0xf2, 0x4e, 0x16, 6922 0x63, 0xd5, 0x22, 0xbd, 0xe7, 0x33, 0xba, 0x1c, 0x80, 0x3d, 0xde, 0x4c, 0x48, 0x71, 0xf8, 0x4d, 6923 0xa9, 0x45, 0x51, 0xc1, 0x07, 0x8f, 0x73, 0x39, 0x0b, 0xfd, 0x11, 0xbc, 0xd8, 0xb6, 0x73, 0xe4, 6924 0x4e, 0x8a, 0x6c, 0xd6, 0x1b, 0x4c, 0xef, 0x4b, 0x0d, 0xb7, 0xfe, 0xc6, 0x34, 0xd1, 0xd8, 0xc7, 6925 0x73, 0xb0, 0x27, 0xd2, 0x1f, 0x64, 0x1f, 0xec, 0x36, 0x9d, 0xa2, 0x65, 0xd7, 0x2a, 0x8c, 0x73, 6926 0x5f, 0xa1, 0xd7, 0x74, 0xee, 0xda, 0xb5, 0xca, 0xf6, 0x53, 0xe6, 0x05, 0x18, 0xa0, 0x35, 0xb7, 6927 0xb1, 0x15, 0xd9, 0x6a, 0x69, 0xbf, 0x66, 0x66, 0x74, 0x3c, 0xec, 0xde, 0x83, 0x51, 0x2a, 0x84, 6928 0x2e, 0x62, 0x0a, 0x9e, 0x21, 0x80, 0x8f, 0x48, 0xe2, 0x65, 0x46, 0xab, 0x3f, 0x83, 0x93, 0xea, 6929 0x3e, 0x2a, 0x37, 0x2f, 0x03, 0xb6, 0x3f, 0x91, 0x3a, 0x23, 0x85, 0xb9, 0x05, 0x3b, 0xe1, 0x1a, 6930 0x0e, 0xeb, 0xb8, 0xe4, 0x40, 0x25, 0x8c, 0x55, 0xd1, 0x43, 0x63, 0xe9, 0xa5, 0xb8, 0xdd, 0xdb, 6931 0xc8, 0x51, 0xd0, 0x43, 0xf9, 0x7c, 0x24, 0x22, 0x6f, 0xc2, 0x3c, 0xab, 0x24, 0x72, 0x13, 0x23, 6932 0x6f, 0x22, 0x0f, 0x14, 0x7b, 0x39, 0x20, 0x76, 0x27, 0xd3, 0x7e, 0x40, 0xf4, 0x59, 0x5c, 0x29, 6933 0x27, 0xe4, 0x4c, 0x6a, 0x92, 0x1f, 0x49, 0x65, 0x21, 0x6f, 0x4d, 0x06, 0xdc, 0xa3, 0x83, 0x0c, 6934 0x2e, 0x18, 0x15, 0xe4, 0x1a, 0x25, 0x31, 0xa4, 0x61, 0xc3, 0xa5, 0xc0, 0x15, 0x47, 0x2f, 0x1a, 6935 0xcd, 0x76, 0x78, 0xc5, 0xb1, 0x75, 0x6f, 0x52, 0xdc, 0x1a, 0x13, 0x8c, 0xf5, 0x8b, 0x78, 0x5d, 6936 0x28, 0x7e, 0x46, 0x43, 0x49, 0xc6, 0xa1, 0x87, 0x5f, 0x6e, 0xd5, 0xd8, 0xe5, 0x56, 0xfe, 0xa0, 6937 0xef, 0xc7, 0xfb, 0x04, 0xcb, 0x76, 0xb9, 0x69, 0x51, 0x96, 0xf5, 0x89, 0x3b, 0x6f, 0xaf, 0xe3, 6938 0xfd, 0x87, 0xc0, 0x2b, 0x79, 0xd7, 0x20, 0x60, 0xcf, 0xd4, 0xeb, 0x26, 0xb7, 0xf8, 0x8d, 0x5e, 6939 0xce, 0x00, 0xed, 0xb7, 0x0f, 0xf6, 0xf2, 0x6e, 0x0b, 0x4d, 0x98, 0x7a, 0x19, 0xaf, 0x45, 0xbc, 6940 0xbb, 0x41, 0xfd, 0xb1, 0xff, 0xfc, 0xa5, 0x40, 0xdf, 0x30, 0x1a, 0xe5, 0x07, 0xb6, 0x59, 0x73, 6941 0x95, 0xee, 0xad, 0x9d, 0x81, 0x89, 0x3a, 0xe5, 0x8b, 0x82, 0xba, 0x6d, 0x5b, 0x45, 0xd7, 0xac, 6942 0x52, 0xc7, 0x35, 0xaa, 0x75, 0x16, 0x83, 0xbb, 0x0a, 0xe3, 0xf8, 0xf6, 0x81, 0x6d, 0x5b, 0xab, 6943 0xe2, 0x9d, 0xfe, 0xd3, 0xe2, 0x58, 0x33, 0xa6, 0x4d, 0xd4, 0x70, 0x0d, 0x9e, 0x13, 0x93, 0x1f, 6944 0xbb, 0x9b, 0x5c, 0x6c, 0xb0, 0x5a, 0xc5, 0x3a, 0xab, 0xc6, 0xe5, 0x50, 0x0b, 0xa9, 0x93, 0x7e, 6945 0x37, 0xf0, 0xb7, 0xa5, 0x1f, 0xc6, 0xe0, 0xe6, 0x7b, 0x33, 0x6f, 0x54, 0xeb, 0x86, 0x59, 0xa9, 6946 0x89, 0x2e, 0xf8, 0x5e, 0x37, 0x06, 0xb0, 0xd8, 0x3a, 0x28, 0xeb, 0x26, 0x3c, 0xef, 0xc9, 0xe8, 6947 0x19, 0x01, 0xa5, 0x2c, 0x61, 0x15, 0xff, 0xe2, 0xeb, 0x6c, 0xfa, 0x1a, 0xd8, 0xe0, 0x63, 0xd4, 6948 0xdf, 0x00, 0x0b, 0x37, 0xfb, 0xdd, 0xa4, 0x57, 0xe4, 0x27, 0x34, 0x38, 0x1a, 0x6a, 0x98, 0x75, 6949 0x82, 0x6c, 0xdd, 0x29, 0x6d, 0x50, 0xcf, 0x5f, 0x71, 0xfb, 0x7a, 0x2a, 0x7d, 0x5b, 0x50, 0x68, 6950 0xc5, 0x2d, 0x64, 0x5b, 0x85, 0xc3, 0x81, 0xa6, 0xbd, 0x22, 0x51, 0x69, 0x05, 0x19, 0x93, 0x1f, 6951 0x81, 0xfd, 0xae, 0xed, 0x1a, 0x56, 0x6c, 0x27, 0x65, 0x98, 0x42, 0x27, 0x18, 0x97, 0x48, 0x17, 6952 0x91, 0x5f, 0xd0, 0xe0, 0x84, 0x70, 0x30, 0x35, 0x55, 0xbb, 0x3b, 0x52, 0xf5, 0x18, 0x36, 0xb2, 6953 0xda, 0x56, 0xe3, 0x2a, 0x1c, 0x96, 0x02, 0x25, 0x6a, 0xde, 0xa3, 0xee, 0x9e, 0x2f, 0x88, 0x96, 6954 0x63, 0x0d, 0xa0, 0x5f, 0x46, 0x1f, 0x5d, 0x72, 0xee, 0xd7, 0x5d, 0x5a, 0xbe, 0xdf, 0x74, 0xef, 6955 0xaf, 0xf3, 0x0a, 0x4e, 0xfb, 0x8b, 0xb0, 0x0b, 0xe8, 0xbc, 0xb1, 0xc4, 0xe8, 0xbc, 0x87, 0x60, 6956 0xd0, 0x74, 0x8a, 0xb6, 0xf7, 0xbe, 0x68, 0x37, 0x5d, 0xcc, 0xaa, 0xc0, 0x94, 0x24, 0xfa, 0x8b, 6957 0xb8, 0xeb, 0x13, 0xe1, 0x81, 0x9b, 0x62, 0x32, 0x5e, 0x2d, 0x60, 0xee, 0x9e, 0x52, 0x11, 0x1b, 6958 0x4d, 0x09, 0x29, 0xfa, 0x35, 0x9c, 0x08, 0x17, 0x29, 0x5d, 0x30, 0x1d, 0xbe, 0xed, 0x86, 0x19, 6959 0xaf, 0x6f, 0x0a, 0x4f, 0x56, 0xfa, 0xbb, 0x1a, 0x4e, 0x83, 0x49, 0x0c, 0x50, 0x86, 0x17, 0x00, 6960 0x5c, 0x93, 0x36, 0xe4, 0x71, 0x91, 0x76, 0xac, 0xbb, 0xd0, 0xef, 0x95, 0xf0, 0x5d, 0x9d, 0x02, 6961 0x0c, 0xca, 0xec, 0xbb, 0xb5, 0x6d, 0x90, 0x9a, 0x9d, 0xf8, 0x1a, 0x5c, 0x35, 0x69, 0x83, 0xb5, 6962 0x36, 0x60, 0xb4, 0x9a, 0x26, 0xf7, 0x61, 0x40, 0x06, 0x35, 0xd7, 0xc2, 0x0d, 0x83, 0xa9, 0x0c, 6963 0x2c, 0x57, 0x57, 0xef, 0x16, 0x40, 0xc4, 0x33, 0xd7, 0x92, 0x11, 0xcc, 0x57, 0x4d, 0x38, 0xaa, 6964 0xe8, 0x94, 0x4f, 0x88, 0x03, 0xb4, 0xd8, 0x3a, 0x72, 0x66, 0xde, 0xbb, 0x4e, 0x69, 0xb1, 0x8c, 6965 0xef, 0x5b, 0xa3, 0x49, 0xcb, 0xa4, 0xb5, 0xe4, 0x3b, 0xb6, 0x1e, 0x2d, 0xd4, 0x6f, 0xe0, 0x44, 6966 0x83, 0xf7, 0xbd, 0x97, 0x4d, 0xa7, 0x6a, 0xb8, 0x25, 0xdf, 0x1e, 0xe6, 0x41, 0x18, 0x28, 0x37, 6967 0x1d, 0xb7, 0xb8, 0x6e, 0x94, 0x5c, 0x9b, 0x43, 0x53, 0xba, 0x0a, 0xe0, 0x15, 0x2d, 0xb2, 0x12, 6968 0xfd, 0xb7, 0xbb, 0x60, 0x24, 0x44, 0x4d, 0x74, 0x08, 0xac, 0x89, 0xd4, 0x2f, 0x62, 0x92, 0x59, 6969 0xe8, 0x37, 0x36, 0x0d, 0x33, 0xf3, 0x0d, 0x88, 0x16, 0x15, 0xb9, 0x08, 0x3d, 0x2c, 0x08, 0x64, 6970 0x49, 0xf1, 0x39, 0x05, 0x59, 0x84, 0x41, 0xbc, 0xe9, 0x5e, 0xdc, 0xb0, 0xad, 0xb2, 0xef, 0x90, 6971 0xa5, 0xfd, 0xe9, 0x0f, 0x12, 0xde, 0xb6, 0xad, 0x32, 0x79, 0x05, 0x86, 0xe9, 0x93, 0x3a, 0x2d, 6972 0x79, 0xe3, 0x97, 0xcb, 0xd2, 0xab, 0xce, 0x69, 0x48, 0x90, 0xb2, 0xe8, 0x43, 0xe6, 0x01, 0xca, 6973 0xe6, 0x3a, 0x1e, 0xe0, 0xf0, 0xed, 0x77, 0xc5, 0x15, 0x50, 0x8b, 0x4c, 0xff, 0x31, 0x9c, 0xdb, 6974 0x63, 0xba, 0x19, 0xbd, 0xed, 0x75, 0x20, 0x42, 0xf5, 0xaa, 0x7c, 0x8b, 0xa9, 0xcc, 0x07, 0x14, 6975 0x90, 0x02, 0x82, 0x65, 0x61, 0xcf, 0x5a, 0xb8, 0x0d, 0xfd, 0x28, 0x0e, 0x7e, 0xac, 0xea, 0x25, 6976 0x8a, 0x73, 0x2d, 0x6b, 0xc9, 0x50, 0xf5, 0x2b, 0x39, 0xd8, 0xeb, 0xab, 0xc2, 0x17, 0x5b, 0xcc, 6977 0x9e, 0xff, 0xcf, 0xfd, 0x49, 0xff, 0x65, 0x91, 0xcd, 0x27, 0x5a, 0x10, 0x7b, 0xb1, 0x06, 0x79, 6978 0xd1, 0x20, 0xdb, 0x41, 0xf7, 0xb7, 0xae, 0x74, 0x6d, 0x26, 0xd6, 0xfe, 0x85, 0x7d, 0x6b, 0xf1, 6979 0xed, 0xca, 0x69, 0x28, 0x14, 0x12, 0xbd, 0x54, 0xda, 0x74, 0x5c, 0xb3, 0x24, 0xfb, 0xf6, 0x22, 6980 0x0c, 0x05, 0x5e, 0x10, 0x02, 0xdd, 0x5e, 0x5c, 0xc7, 0x18, 0xcf, 0x7e, 0x7b, 0x5d, 0xd8, 0x82, 6981 0x06, 0x75, 0x17, 0xf8, 0x83, 0xee, 0xe0, 0x0c, 0x96, 0xd2, 0x86, 0x5c, 0xb4, 0x82, 0x23, 0x4b, 6982 0x55, 0x6e, 0xc9, 0x07, 0xf8, 0x14, 0x7c, 0xc4, 0x5e, 0xfe, 0xbf, 0x6c, 0xba, 0xf6, 0xab, 0x46, 6983 0xd3, 0x62, 0xd3, 0x84, 0x54, 0xe4, 0x8f, 0x35, 0x98, 0x08, 0xbf, 0xc1, 0xe6, 0x5f, 0x82, 0xd1, 6984 0xaa, 0xe1, 0xb8, 0xb4, 0x21, 0xce, 0x28, 0xa9, 0x98, 0x48, 0x47, 0x78, 0xf9, 0xac, 0x28, 0x26, 6985 0xa7, 0x60, 0xbc, 0x2c, 0x97, 0x00, 0xbe, 0xea, 0xfc, 0x28, 0x64, 0xac, 0xf5, 0xae, 0x45, 0x72, 6986 0x14, 0x86, 0x9d, 0xba, 0xed, 0xfa, 0x2a, 0xf3, 0xc3, 0xa0, 0x21, 0xaf, 0x34, 0x50, 0xad, 0xf4, 6987 0xc6, 0xcc, 0x49, 0x5f, 0xb5, 0x6e, 0x5e, 0xcd, 0x2b, 0x95, 0xd5, 0xf4, 0x05, 0x8c, 0xfb, 0xb8, 6988 0xf0, 0x5d, 0x58, 0x6c, 0xd8, 0x55, 0xa6, 0x92, 0x6f, 0xaf, 0x6b, 0xd3, 0x7b, 0x2e, 0x06, 0x77, 6989 0x32, 0x07, 0x59, 0xa1, 0x38, 0x6d, 0x15, 0xd7, 0xa8, 0x62, 0xb8, 0xa0, 0x4d, 0x52, 0xd7, 0xc6, 6990 0x62, 0x79, 0x7d, 0xdb, 0x74, 0x5c, 0xbb, 0x61, 0x96, 0x64, 0xae, 0x55, 0xb2, 0x7d, 0xa9, 0x54, 6991 0x2a, 0x0b, 0x17, 0x43, 0x4b, 0x12, 0x0b, 0xb9, 0x2f, 0x30, 0x24, 0x52, 0x42, 0xf6, 0x42, 0x05, 6992 0x85, 0x10, 0x60, 0x34, 0xe8, 0xfa, 0x9e, 0xf4, 0x3f, 0xd0, 0x60, 0x8c, 0xbd, 0xe6, 0xcd, 0x7a, 6993 0xc9, 0x95, 0xb7, 0x14, 0x24, 0x2f, 0x03, 0xe1, 0xcd, 0x54, 0x1a, 0x76, 0xb3, 0xee, 0xa5, 0xa3, 6994 0x0e, 0x2d, 0xa1, 0x8b, 0x8f, 0xb2, 0x37, 0xb7, 0xf0, 0xc5, 0x0a, 0x2d, 0x91, 0x7d, 0xb0, 0xbb, 6995 0x6a, 0x3c, 0x29, 0x1a, 0x15, 0x8a, 0x0e, 0xdf, 0x5b, 0x35, 0x9e, 0xcc, 0x56, 0x28, 0x99, 0x82, 6996 0x31, 0xb3, 0x56, 0xb2, 0x9a, 0x9e, 0xbc, 0xc6, 0x1b, 0xc5, 0x0d, 0xde, 0x08, 0x5e, 0xe9, 0xdb, 6997 0x83, 0xaf, 0x0a, 0xc6, 0x1b, 0xd8, 0xba, 0xe7, 0x78, 0xa2, 0xbe, 0x5c, 0xcb, 0xb3, 0x53, 0xde, 6998 0xc2, 0x08, 0x96, 0x8b, 0x35, 0xba, 0xfe, 0x9b, 0x1a, 0xee, 0xd7, 0x4b, 0x8c, 0x85, 0xe1, 0x9a, 6999 0x96, 0xe9, 0x6e, 0x29, 0x9d, 0x59, 0x96, 0x60, 0x2f, 0xd7, 0x0f, 0x45, 0xf2, 0x52, 0x54, 0x4f, 7000 0x71, 0x95, 0x44, 0x2c, 0xc6, 0x5e, 0x85, 0x31, 0x37, 0x5a, 0xa8, 0x7f, 0x3c, 0x17, 0xf0, 0x4d, 7001 0xbf, 0x88, 0x12, 0x8b, 0x01, 0x9b, 0xb2, 0x14, 0x4f, 0xf8, 0x0e, 0xb6, 0x9d, 0x0e, 0x5b, 0x24, 7002 0xe4, 0x35, 0x18, 0x15, 0x1a, 0x48, 0x83, 0xe5, 0x22, 0x07, 0x5a, 0x88, 0xe0, 0x95, 0x87, 0x30, 7003 0x58, 0xd3, 0x17, 0x78, 0x46, 0x90, 0x8b, 0x78, 0x45, 0x6e, 0xc3, 0x80, 0xbf, 0xc7, 0xba, 0x98, 7004 0x97, 0xbd, 0xa8, 0xe8, 0x65, 0x05, 0x68, 0xc8, 0x3e, 0x95, 0x40, 0xa2, 0x39, 0xb3, 0x66, 0x08, 7005 0x53, 0xb4, 0x3b, 0x57, 0xd5, 0x2b, 0x78, 0xd9, 0x3a, 0x44, 0x24, 0xc3, 0x63, 0xe8, 0xd8, 0x27, 7006 0xb5, 0xbf, 0x38, 0x0f, 0xec, 0x94, 0xf0, 0xa9, 0xcf, 0x63, 0x38, 0x11, 0x7b, 0xf4, 0x3f, 0x6f, 7007 0xd7, 0xca, 0x26, 0xbf, 0x25, 0xb6, 0xd3, 0xc8, 0xe3, 0xdf, 0xe8, 0x82, 0xc3, 0x91, 0x53, 0xe9, 7008 0x70, 0x7b, 0x3f, 0xb8, 0xf7, 0x3b, 0x6e, 0xc1, 0xa0, 0xdb, 0x30, 0x2b, 0x15, 0xda, 0x78, 0x90, 7009 0xf5, 0x80, 0x31, 0x40, 0xd8, 0xfe, 0x9e, 0xc7, 0x51, 0xd8, 0x6d, 0x3a, 0xec, 0x38, 0x9f, 0x65, 7010 0xa5, 0x7d, 0x73, 0x03, 0xef, 0xbc, 0x79, 0x50, 0x14, 0x15, 0xc4, 0x8f, 0xd0, 0x75, 0x90, 0xdd, 7011 0x09, 0xd7, 0x41, 0xfa, 0x5a, 0xd7, 0x41, 0x3e, 0xa1, 0x05, 0x2e, 0xd5, 0xa5, 0x3a, 0x85, 0x04, 7012 0x7d, 0x06, 0xaf, 0x24, 0x5c, 0xcd, 0x74, 0x25, 0x21, 0xcc, 0x57, 0x5e, 0x4c, 0x58, 0x46, 0x41, 7013 0xf0, 0x74, 0xce, 0xb5, 0xab, 0x66, 0xe9, 0xe6, 0x13, 0x5a, 0x6a, 0x7a, 0x95, 0x17, 0x29, 0x5d, 7014 0x6e, 0x5a, 0xae, 0x59, 0xb7, 0x4c, 0xda, 0x50, 0x9a, 0x63, 0x36, 0xf1, 0x48, 0x4a, 0x85, 0x1d, 7015 0x2a, 0x36, 0x0f, 0x50, 0x95, 0xa5, 0x59, 0x7c, 0xd1, 0x47, 0xa6, 0x5f, 0x10, 0xd8, 0x55, 0x66, 7016 0x90, 0x15, 0xd7, 0x78, 0x44, 0x6f, 0x35, 0x8c, 0xd6, 0x6d, 0xb7, 0x49, 0xd8, 0x5d, 0xf1, 0x9e, 7017 0x29, 0x15, 0xcb, 0x6d, 0x7c, 0xd4, 0x3f, 0x23, 0xa1, 0xa9, 0x11, 0x52, 0x14, 0xf0, 0x2a, 0xf4, 7018 0xb0, 0xca, 0xb8, 0x98, 0x4c, 0x0d, 0x51, 0x9c, 0x09, 0xa7, 0xe7, 0x54, 0x64, 0x05, 0x5a, 0x87, 7019 0x22, 0x45, 0xce, 0x48, 0x01, 0x21, 0x23, 0xcf, 0x35, 0x38, 0xaf, 0x61, 0x1a, 0x78, 0xd6, 0x57, 7020 0x31, 0x9b, 0x60, 0x4f, 0xb3, 0x4d, 0x77, 0xc3, 0x6e, 0x98, 0x3f, 0xca, 0xae, 0xc4, 0x45, 0x34, 7021 0x6e, 0x04, 0x35, 0x6e, 0xf8, 0x6d, 0x91, 0x0b, 0xda, 0xe2, 0x43, 0xb8, 0x1c, 0x8f, 0xe3, 0x8a, 7022 0xc6, 0x38, 0x0b, 0xbd, 0x78, 0xdd, 0x8f, 0xf7, 0xd4, 0x0b, 0xd8, 0x53, 0x7b, 0xa3, 0x3d, 0xb5, 7023 0x54, 0x73, 0x0b, 0x58, 0x59, 0x6e, 0x03, 0x45, 0x39, 0x3b, 0x6d, 0x05, 0xf6, 0x52, 0x88, 0x43, 7024 0xc9, 0xd4, 0xf2, 0x0e, 0x2d, 0xe1, 0xfb, 0x59, 0x8c, 0xaa, 0x98, 0x45, 0xc8, 0x51, 0x46, 0xc8, 7025 0x99, 0x8b, 0x9b, 0xa3, 0xbd, 0x8c, 0x8d, 0xa3, 0xb2, 0xf3, 0x18, 0x63, 0x2d, 0xa4, 0x3e, 0x7e, 7026 0x06, 0xfa, 0x25, 0x0e, 0x8e, 0x8c, 0xc3, 0xa8, 0xf7, 0xb7, 0xf8, 0xb0, 0xe6, 0xd4, 0x69, 0xc9, 7027 0x5c, 0x37, 0x69, 0x79, 0x74, 0x17, 0xd9, 0x0d, 0x5d, 0x73, 0xcd, 0xad, 0x51, 0x8d, 0xf4, 0x41, 7028 0xf7, 0x0a, 0xb5, 0xac, 0xd1, 0xdc, 0xf1, 0x57, 0x61, 0x3c, 0xee, 0x92, 0xa3, 0xc7, 0xc0, 0x47, 7029 0xcb, 0x18, 0x8f, 0xee, 0x22, 0x63, 0x30, 0xe2, 0xe5, 0x92, 0xaf, 0xd9, 0x0d, 0xc7, 0x5d, 0xb5, 7030 0xe7, 0xa8, 0xe3, 0x8e, 0x6a, 0xa2, 0xd0, 0x7b, 0x5a, 0xb5, 0xd9, 0xab, 0xd1, 0xdc, 0xcc, 0x9f, 7031 0x53, 0xe8, 0x61, 0x76, 0x24, 0x9f, 0xd5, 0x60, 0x2c, 0xe6, 0x3b, 0x08, 0xe4, 0x5c, 0x5b, 0xc4, 7032 0x7f, 0xec, 0x67, 0x15, 0xf2, 0xe7, 0x33, 0xd3, 0xf1, 0x5e, 0xd3, 0x67, 0x7e, 0xea, 0x6f, 0xbe, 7033 0xfd, 0xa9, 0xdc, 0xcb, 0xe4, 0xf8, 0xb4, 0xc2, 0x17, 0x47, 0x50, 0xc8, 0xbf, 0xd0, 0x80, 0x44, 7034 0x3f, 0x3c, 0x40, 0x2e, 0x75, 0xf4, 0xb5, 0x02, 0x2e, 0xff, 0xe5, 0x6d, 0x7c, 0xe9, 0x40, 0xbf, 7035 0xce, 0x74, 0xb8, 0x48, 0xce, 0xab, 0xe8, 0x30, 0xed, 0x44, 0x25, 0xff, 0x8a, 0x06, 0x7b, 0x22, 7036 0xfc, 0xc9, 0xc5, 0xec, 0x32, 0x09, 0x75, 0x2e, 0x75, 0x42, 0x8a, 0xda, 0x5c, 0x63, 0xda, 0x5c, 7037 0x20, 0xe7, 0x3a, 0xd3, 0x86, 0xfc, 0x89, 0x06, 0xa3, 0xe1, 0x2f, 0x2b, 0x90, 0x0b, 0xca, 0xfe, 7038 0x11, 0xfa, 0x58, 0x43, 0xfe, 0x62, 0x07, 0x94, 0xa8, 0xc9, 0x55, 0xa6, 0xc9, 0x79, 0x72, 0x56, 7039 0x49, 0x13, 0x1a, 0x96, 0xf9, 0xcf, 0x34, 0x18, 0x09, 0x7d, 0xae, 0x80, 0xb4, 0xf7, 0xf3, 0xf8, 7040 0x8f, 0x3d, 0xe4, 0x2f, 0x64, 0x27, 0x44, 0x2d, 0x16, 0x99, 0x16, 0x37, 0xc8, 0x35, 0x25, 0x2d, 7041 0x42, 0x1f, 0x75, 0x98, 0x7e, 0x8a, 0xbd, 0xf3, 0x8c, 0xf5, 0x4b, 0xf8, 0xeb, 0x0b, 0x24, 0xb3, 7042 0x58, 0x19, 0xfa, 0x25, 0xe9, 0x53, 0x0f, 0x19, 0xfb, 0x25, 0xfc, 0x99, 0x0a, 0xf2, 0x2f, 0x1a, 7043 0xec, 0x8d, 0x85, 0xd0, 0x93, 0xab, 0xea, 0x32, 0xc5, 0x7c, 0x83, 0x21, 0x7f, 0xad, 0x53, 0x72, 7044 0xd4, 0xeb, 0x1e, 0xd3, 0xeb, 0x36, 0x59, 0xcc, 0xa6, 0x97, 0x9f, 0xd7, 0xf4, 0x53, 0x99, 0x5a, 7045 0x3d, 0x23, 0x6f, 0x6a, 0x30, 0x11, 0xff, 0xad, 0x00, 0xd2, 0xa1, 0xa8, 0xb2, 0xf7, 0xae, 0x77, 7046 0x4c, 0x8f, 0xba, 0xce, 0x33, 0x5d, 0xaf, 0x92, 0xcb, 0x9d, 0xeb, 0xea, 0x90, 0x2f, 0x68, 0x30, 7047 0xe8, 0xff, 0xf8, 0x02, 0x39, 0xd3, 0x56, 0xac, 0x98, 0x8f, 0x52, 0xe4, 0xcf, 0x66, 0xa4, 0x42, 7048 0x15, 0xe6, 0x98, 0x0a, 0x57, 0xc8, 0x25, 0x25, 0x15, 0x02, 0x9f, 0x95, 0x98, 0x7e, 0xca, 0x1e, 7049 0x9f, 0x91, 0xcf, 0x69, 0x30, 0x14, 0xf8, 0x7c, 0x04, 0xc9, 0x26, 0x8c, 0xec, 0x90, 0x73, 0x59, 7050 0xc9, 0x50, 0x89, 0xcb, 0x4c, 0x89, 0xb3, 0xe4, 0x74, 0x76, 0x25, 0x1c, 0xf2, 0x3b, 0x1a, 0x0c, 7051 0xf8, 0xd0, 0xcc, 0xe4, 0x74, 0xfb, 0x69, 0x23, 0x82, 0xc2, 0xce, 0x9f, 0xc9, 0x46, 0x84, 0x72, 7052 0x9f, 0x64, 0x72, 0x1f, 0x27, 0xc7, 0xd2, 0xe4, 0x76, 0xea, 0xb6, 0x3b, 0x8d, 0xcb, 0x68, 0xf2, 7053 0x19, 0x0d, 0xc0, 0x87, 0x5c, 0x9f, 0xc9, 0xd0, 0xac, 0x10, 0xf5, 0x74, 0x26, 0x1a, 0x94, 0xf4, 7054 0x0a, 0x93, 0xf4, 0x1c, 0x39, 0xa3, 0x2a, 0x69, 0x60, 0x0c, 0x7f, 0x4e, 0x83, 0x91, 0x10, 0x68, 7055 0x5c, 0x61, 0x12, 0x89, 0x07, 0xbc, 0x2b, 0x4c, 0x22, 0x09, 0xf8, 0x74, 0xfd, 0x2c, 0x53, 0x62, 7056 0x9a, 0x9c, 0x68, 0xab, 0xc4, 0x7a, 0xd3, 0xb2, 0x8a, 0xc2, 0xe6, 0x5f, 0x8a, 0x7e, 0x31, 0xe0, 7057 0x5c, 0x46, 0x19, 0xd4, 0x33, 0xc4, 0x78, 0x18, 0xba, 0x7e, 0x83, 0x89, 0x7e, 0x89, 0x5c, 0xc8, 7058 0x22, 0x7a, 0xa0, 0x0f, 0x3e, 0xaf, 0xc1, 0x50, 0xe0, 0x6b, 0x0d, 0x0a, 0x83, 0x34, 0xee, 0xb3, 7059 0x19, 0x0a, 0x83, 0x34, 0xf6, 0xa3, 0x10, 0x6a, 0x29, 0x15, 0x53, 0xc1, 0x16, 0xb4, 0x01, 0x05, 7060 0xbe, 0xae, 0xc1, 0x68, 0x18, 0x7d, 0xa7, 0x30, 0x75, 0x27, 0xc0, 0xcf, 0x15, 0xa6, 0xee, 0x24, 7061 0x28, 0xb3, 0x7e, 0x87, 0x69, 0x72, 0x93, 0xcc, 0xab, 0x69, 0x12, 0x18, 0x0b, 0xd3, 0x4f, 0x03, 7062 0xbb, 0x5a, 0xcf, 0xc8, 0x7f, 0x68, 0x30, 0x99, 0x04, 0x64, 0x26, 0x37, 0xda, 0xcf, 0x50, 0xe9, 7063 0xd8, 0xf7, 0xfc, 0xec, 0x36, 0x38, 0xa0, 0xba, 0x0f, 0x99, 0xba, 0xf7, 0xc9, 0x72, 0x27, 0xea, 7064 0xa2, 0xaa, 0x32, 0x05, 0x13, 0xa7, 0x03, 0xcf, 0xc8, 0xb7, 0xbd, 0x05, 0x4c, 0xe4, 0x4b, 0x04, 7065 0x2a, 0x0b, 0x98, 0xa4, 0xaf, 0x28, 0xa8, 0x2c, 0x60, 0x12, 0x3f, 0x7d, 0x90, 0x59, 0xcd, 0xe2, 7066 0xda, 0x16, 0x82, 0x6c, 0x52, 0xfb, 0xf7, 0x4b, 0x1a, 0x8c, 0x86, 0x3f, 0x7d, 0xa8, 0xe0, 0xb6, 7067 0x09, 0x1f, 0x64, 0xcc, 0x5f, 0xec, 0x80, 0x12, 0x15, 0xbc, 0xc4, 0x14, 0x3c, 0x43, 0x66, 0xd2, 7068 0x14, 0x14, 0x5d, 0x18, 0xd2, 0xe2, 0x3b, 0x1a, 0xec, 0x6f, 0x8d, 0x87, 0xd5, 0x86, 0x51, 0x73, 7069 0x4c, 0x5a, 0x7b, 0x4f, 0x47, 0xa1, 0x7a, 0x7f, 0xb9, 0x42, 0xdc, 0xa2, 0xc2, 0x78, 0xfc, 0x5b, 7070 0x74, 0xcb, 0x20, 0x82, 0x42, 0xd1, 0x2d, 0x63, 0x61, 0xed, 0x8a, 0x6e, 0x19, 0x0f, 0x66, 0x57, 7071 0x5b, 0xf9, 0xf0, 0x99, 0x37, 0x0c, 0x14, 0x09, 0x84, 0xcf, 0x7f, 0xd3, 0x60, 0x32, 0x09, 0x39, 7072 0xaf, 0x10, 0x67, 0xda, 0x40, 0xf7, 0x15, 0xe2, 0x4c, 0x3b, 0xd8, 0xbe, 0x7e, 0x97, 0x69, 0xba, 7073 0x48, 0x16, 0xd2, 0x34, 0x6d, 0x1d, 0x74, 0xb6, 0xd1, 0xf7, 0x1b, 0x1a, 0x8c, 0xc5, 0xa0, 0xcd, 7074 0xc9, 0xe5, 0x0c, 0x82, 0x46, 0xe6, 0xbe, 0x2b, 0x9d, 0x11, 0xa3, 0x82, 0x0b, 0x4c, 0xc1, 0x6b, 7075 0xe4, 0x8a, 0xa2, 0x82, 0xf1, 0xf3, 0xe0, 0xbf, 0x6a, 0x30, 0x11, 0x0f, 0xa0, 0x54, 0x58, 0x10, 7076 0xa5, 0x22, 0x78, 0x15, 0x16, 0x44, 0xe9, 0xc8, 0x4d, 0xfd, 0x83, 0x4c, 0xc3, 0x3b, 0x64, 0x29, 7077 0x8b, 0x86, 0xe9, 0xe3, 0xf1, 0xe7, 0x73, 0x70, 0x20, 0x1d, 0xb7, 0x49, 0x16, 0x33, 0xce, 0x71, 7078 0x49, 0xea, 0xdf, 0xda, 0x36, 0x1f, 0x34, 0xc3, 0x47, 0x98, 0x19, 0x1e, 0x92, 0x95, 0xce, 0xcd, 7079 0x90, 0x3c, 0x6f, 0xfe, 0x77, 0x60, 0x20, 0x87, 0x66, 0xcf, 0x1b, 0x59, 0x1d, 0x34, 0x32, 0x87, 7080 0xce, 0x6e, 0x83, 0xc3, 0xb6, 0xd4, 0x57, 0x9c, 0x4f, 0xff, 0x47, 0x83, 0x83, 0x61, 0x2f, 0x0c, 7081 0xcf, 0x47, 0xef, 0xf9, 0x38, 0xc8, 0x6a, 0x81, 0x4c, 0x33, 0xd4, 0x1f, 0x69, 0xb0, 0x27, 0x02, 7082 0xd5, 0x53, 0xd8, 0x28, 0x4d, 0x02, 0xdd, 0x2a, 0x6c, 0x94, 0x26, 0x22, 0x03, 0xf5, 0x73, 0x4c, 7083 0xd3, 0x93, 0x64, 0x4a, 0x35, 0x68, 0xa3, 0xb8, 0x5f, 0xd5, 0x60, 0x34, 0x02, 0x16, 0xbd, 0x90, 7084 0x59, 0x10, 0xf5, 0x3c, 0x22, 0x09, 0x31, 0xa8, 0xb6, 0x03, 0x12, 0xd5, 0x20, 0x10, 0x93, 0xbf, 7085 0xa3, 0xc1, 0xbe, 0x04, 0x8c, 0x1f, 0xb9, 0x9e, 0x59, 0xb4, 0x20, 0xc2, 0x30, 0x7f, 0xa3, 0x73, 7086 0x06, 0xa8, 0xe2, 0x12, 0x53, 0x71, 0x9e, 0xcc, 0x66, 0x52, 0x51, 0x84, 0x9c, 0x80, 0xa6, 0x7f, 7087 0xa5, 0xc1, 0x78, 0x1c, 0x28, 0x83, 0x5c, 0xc9, 0x90, 0x98, 0x46, 0xd0, 0x89, 0xf9, 0xab, 0x1d, 7088 0x52, 0x67, 0xd9, 0x9e, 0x90, 0x05, 0xe1, 0x01, 0xf5, 0x7b, 0x1a, 0x8c, 0x89, 0xfd, 0x73, 0x1f, 7089 0x34, 0x44, 0x61, 0x27, 0x28, 0x8a, 0x31, 0x51, 0xd8, 0x09, 0x8a, 0x41, 0x9f, 0xa8, 0xed, 0x04, 7090 0x55, 0x19, 0x61, 0x91, 0x01, 0x3e, 0xc8, 0x6f, 0x69, 0xd0, 0x2f, 0x21, 0x25, 0xe4, 0x54, 0xdb, 7091 0x56, 0xc3, 0xb8, 0x94, 0xfc, 0x4c, 0x16, 0x12, 0x14, 0xf3, 0x04, 0x13, 0xf3, 0x45, 0x72, 0x34, 7092 0x4d, 0xcc, 0xba, 0x94, 0xea, 0x2f, 0x35, 0x18, 0x8b, 0x41, 0x35, 0x92, 0x2c, 0x07, 0x4d, 0x11, 7093 0xb9, 0xaf, 0x74, 0x46, 0x9c, 0x65, 0xdb, 0x5d, 0x6a, 0x10, 0x71, 0x95, 0x7f, 0xd7, 0x20, 0x9f, 7094 0x8c, 0x9b, 0x24, 0x73, 0x1d, 0xc8, 0x16, 0x02, 0xa7, 0xe6, 0xe7, 0xb7, 0xc5, 0x23, 0xcb, 0x88, 7095 0x4f, 0x54, 0x33, 0x30, 0xe2, 0x7f, 0x29, 0x07, 0x47, 0x14, 0x70, 0x8b, 0xe4, 0x4e, 0x06, 0xb9, 7096 0xdb, 0x21, 0x74, 0xf3, 0x77, 0x77, 0x86, 0x19, 0x5a, 0x63, 0x85, 0x59, 0x63, 0x99, 0xdc, 0x49, 7097 0x0d, 0x0f, 0xf2, 0x7a, 0x82, 0x9a, 0x5d, 0xfe, 0x4e, 0x83, 0xb1, 0x18, 0x24, 0xa3, 0x82, 0x73, 7098 0x27, 0xc3, 0x30, 0x15, 0x9c, 0x3b, 0x05, 0x83, 0xa9, 0xdf, 0x64, 0x7a, 0x5e, 0x27, 0x57, 0x53, 7099 0x7b, 0x5d, 0x7e, 0x48, 0xc1, 0xf7, 0x69, 0x89, 0x80, 0x66, 0xdf, 0xd2, 0x60, 0x5f, 0x02, 0xd8, 7100 0x51, 0x61, 0x36, 0x4b, 0x47, 0x6d, 0x2a, 0xcc, 0x66, 0x6d, 0x20, 0x9b, 0xaa, 0x47, 0x16, 0x1e, 7101 0x93, 0x44, 0x15, 0xdf, 0xd6, 0x60, 0x22, 0x1e, 0x15, 0xa9, 0x90, 0x3c, 0xa6, 0x82, 0x3b, 0x15, 7102 0x92, 0xc7, 0x74, 0x64, 0xa7, 0x7e, 0x9b, 0xe9, 0x37, 0x47, 0x6e, 0x64, 0xea, 0x45, 0xfc, 0x1a, 7103 0x47, 0xa4, 0x23, 0x13, 0xe0, 0x9c, 0x0a, 0x1d, 0x99, 0x8e, 0x6d, 0x57, 0xe8, 0xc8, 0x36, 0x48, 7104 0x52, 0xb5, 0x8e, 0xe4, 0x57, 0xca, 0xc4, 0xa5, 0xcb, 0xb8, 0xed, 0xb5, 0x3d, 0x51, 0xc0, 0x99, 7105 0xe2, 0xb6, 0x52, 0x0c, 0x4e, 0x52, 0x21, 0x19, 0x4e, 0x84, 0x3b, 0xea, 0xe7, 0x99, 0x42, 0xa7, 7106 0xc8, 0x74, 0x9a, 0x42, 0x31, 0x48, 0x33, 0xf2, 0xd7, 0x1a, 0x4c, 0x3e, 0x68, 0x61, 0xd7, 0xbe, 7107 0x2f, 0x94, 0x51, 0xba, 0xd0, 0xe1, 0x47, 0xf5, 0x85, 0x95, 0xfa, 0xaa, 0xb8, 0xf3, 0x1c, 0x04, 7108 0x3d, 0x2a, 0x04, 0xc8, 0x64, 0x28, 0xa7, 0x42, 0x80, 0x4c, 0xc1, 0x78, 0xea, 0x17, 0x99, 0x4e, 7109 0xa7, 0xc9, 0x29, 0xe5, 0x0e, 0x12, 0xd0, 0x44, 0xf2, 0x96, 0x06, 0x13, 0xf1, 0x58, 0x34, 0x85, 7110 0x88, 0x91, 0x8a, 0x82, 0x53, 0x88, 0x18, 0xe9, 0x20, 0x38, 0xfd, 0x16, 0x53, 0x6b, 0x96, 0x5c, 7111 0x4f, 0x53, 0x2b, 0x00, 0x0d, 0xf3, 0x83, 0xe2, 0x7c, 0xd7, 0x23, 0xbc, 0x2e, 0x8b, 0x41, 0x82, 7112 0x29, 0x74, 0x59, 0x32, 0x76, 0x4d, 0xa1, 0xcb, 0x52, 0x40, 0x6d, 0x6a, 0x5d, 0x16, 0x0b, 0x7b, 7113 0x23, 0x5f, 0xd3, 0x60, 0x4f, 0x04, 0xbf, 0xa4, 0x30, 0x9c, 0x92, 0xa0, 0x6d, 0x0a, 0xc3, 0x29, 7114 0x11, 0x2e, 0xa5, 0xb6, 0xf9, 0x17, 0x05, 0x54, 0x4d, 0x3f, 0xf5, 0x81, 0xe9, 0x9e, 0x91, 0x7f, 7115 0xd4, 0x60, 0x5f, 0x02, 0xa4, 0x47, 0x21, 0xa2, 0xa7, 0xc3, 0xa9, 0x14, 0x22, 0x7a, 0x1b, 0x34, 7116 0x91, 0x5a, 0xcc, 0x10, 0xff, 0x1a, 0x26, 0x06, 0x70, 0x44, 0xfe, 0x49, 0x83, 0xfd, 0x89, 0xb0, 7117 0x1d, 0x32, 0x9b, 0xc5, 0x93, 0x62, 0x61, 0x45, 0xf9, 0xb9, 0xed, 0xb0, 0xc8, 0x72, 0xdd, 0x20, 7118 0xe0, 0x92, 0x0c, 0xa2, 0xea, 0xad, 0xdb, 0x1c, 0xf2, 0x69, 0x0d, 0x86, 0x83, 0x70, 0xa0, 0xf4, 7119 0xc5, 0x5b, 0x2c, 0xa8, 0x28, 0x7d, 0xf1, 0x16, 0x8f, 0x36, 0xd2, 0xcf, 0x30, 0xb1, 0xa7, 0xc8, 7120 0xcb, 0xa9, 0x6b, 0x4c, 0xd3, 0xb5, 0x8b, 0x1c, 0xc7, 0x63, 0x32, 0xe1, 0xbe, 0xae, 0xe1, 0xf7, 7121 0x0b, 0x22, 0x90, 0x1d, 0x85, 0x91, 0x94, 0x04, 0x16, 0x52, 0x18, 0x49, 0x89, 0x08, 0x21, 0xb5, 7122 0x5b, 0x37, 0x5c, 0x05, 0x99, 0x0b, 0x4d, 0x3f, 0x0d, 0x60, 0x93, 0x58, 0xf6, 0x3e, 0x11, 0x0f, 7123 0x01, 0x52, 0x08, 0xe7, 0xa9, 0xf0, 0x23, 0x85, 0x70, 0x9e, 0x8e, 0x3d, 0x52, 0xdb, 0xcd, 0xd8, 7124 0x90, 0x3c, 0x8a, 0x01, 0xa0, 0x12, 0x5b, 0x97, 0xc4, 0x40, 0xc5, 0x15, 0x62, 0x78, 0x32, 0x3a, 7125 0x5d, 0x21, 0x86, 0xa7, 0xa0, 0xd3, 0xd5, 0xd6, 0x25, 0x7e, 0xfc, 0x7a, 0xd1, 0x5e, 0xc7, 0x09, 7126 0xd8, 0xf1, 0xcd, 0x4e, 0xff, 0xac, 0xc1, 0xfe, 0x44, 0x54, 0xba, 0x42, 0x70, 0x68, 0x07, 0x7d, 7127 0x57, 0x08, 0x0e, 0x6d, 0x41, 0xf1, 0xfa, 0x2c, 0xd3, 0xf5, 0x32, 0xb9, 0x98, 0x9a, 0xd4, 0xc6, 7128 0x28, 0x5a, 0x94, 0x9f, 0xe3, 0xf8, 0x8a, 0x06, 0xa3, 0x61, 0x28, 0x93, 0xc2, 0xde, 0x68, 0x02, 7129 0x40, 0x2b, 0x7f, 0xb1, 0x03, 0xca, 0x2c, 0xca, 0xb4, 0xfe, 0x63, 0x14, 0x92, 0x07, 0xd6, 0x20, 7130 0x5f, 0xd4, 0x60, 0x3c, 0x06, 0x19, 0xa4, 0x72, 0x47, 0x2c, 0x0e, 0xc9, 0xa4, 0x70, 0xfd, 0x24, 7131 0x16, 0xcb, 0xa4, 0x76, 0xfa, 0xbd, 0xc6, 0x48, 0x05, 0x48, 0x4d, 0x6e, 0x56, 0xff, 0x6a, 0x0e, 7132 0x0e, 0xb7, 0xc5, 0xa8, 0x90, 0xa5, 0xcc, 0xa7, 0x06, 0x49, 0xe0, 0xa7, 0xfc, 0x2b, 0x3b, 0xc1, 7133 0x0a, 0x15, 0xff, 0x61, 0xa6, 0xf8, 0x6b, 0xe4, 0x61, 0xb6, 0xc3, 0xa8, 0x52, 0x8b, 0x61, 0xea, 7134 0x69, 0xc4, 0xf7, 0x34, 0xd0, 0xdb, 0xe3, 0x5c, 0xc8, 0x2b, 0x8a, 0x4e, 0xa8, 0x80, 0xbd, 0xc9, 7135 0xdf, 0xd9, 0x11, 0x5e, 0x59, 0x52, 0x16, 0x83, 0x71, 0xe2, 0x87, 0x33, 0x45, 0x6f, 0x66, 0x6f, 7136 0x81, 0x6e, 0xc8, 0x9f, 0x6a, 0x30, 0x1a, 0x46, 0xcd, 0xa8, 0x5c, 0x29, 0x8e, 0xc7, 0xe8, 0xa8, 7137 0x5c, 0x29, 0x4e, 0x80, 0xe8, 0xa8, 0x5d, 0x12, 0x33, 0xf8, 0x1e, 0x97, 0xe3, 0x91, 0x73, 0x94, 7138 0xc8, 0xf4, 0x53, 0x44, 0xbe, 0x3c, 0x23, 0xdf, 0xd4, 0x80, 0x44, 0x81, 0x1c, 0x0a, 0x97, 0x1f, 7139 0x12, 0x11, 0x38, 0x0a, 0x97, 0x1f, 0x92, 0x71, 0x36, 0x6a, 0x37, 0xad, 0x10, 0xea, 0xe2, 0x67, 7140 0x20, 0x54, 0x6a, 0x3c, 0xf3, 0x29, 0xf7, 0x75, 0x0d, 0xc6, 0x62, 0xb0, 0x33, 0xa4, 0x13, 0x09, 7141 0x33, 0x4c, 0x8c, 0x29, 0x70, 0x1d, 0xb5, 0x1d, 0x90, 0x18, 0xfd, 0x9c, 0x96, 0x82, 0x73, 0x1b, 7142 0x5f, 0x7e, 0xeb, 0x80, 0xf6, 0xb5, 0xb7, 0x0e, 0x68, 0xdf, 0x7a, 0xeb, 0x80, 0xf6, 0x8b, 0x6f, 7143 0x1f, 0xd8, 0xf5, 0xb5, 0xb7, 0x0f, 0xec, 0xfa, 0xfb, 0xb7, 0x0f, 0xec, 0x7a, 0xfd, 0x5e, 0xc5, 7144 0x74, 0x37, 0x9a, 0x6b, 0x53, 0x25, 0xbb, 0x3a, 0xbd, 0x24, 0xf8, 0xdf, 0x35, 0xd6, 0x9c, 0x56, 7145 0x6b, 0x27, 0x4a, 0x76, 0x83, 0xfa, 0x1f, 0x37, 0x0c, 0xb3, 0x86, 0x07, 0x0d, 0x4e, 0x4b, 0x14, 7146 0x77, 0xab, 0x4e, 0x9d, 0xb5, 0x5e, 0xf6, 0x4f, 0x68, 0x4f, 0xff, 0x6f, 0x00, 0x00, 0x00, 0xff, 7147 0xff, 0x1e, 0xed, 0xe6, 0xe6, 0x7a, 0x77, 0x00, 0x00, 7148 } 7149 7150 // Reference imports to suppress errors if they are not otherwise used. 7151 var _ context.Context 7152 var _ grpc.ClientConn 7153 7154 // This is a compile-time assertion to ensure that this generated file 7155 // is compatible with the grpc package it is being compiled against. 7156 const _ = grpc.SupportPackageIsVersion4 7157 7158 // QueryClient is the client API for Query service. 7159 // 7160 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 7161 type QueryClient interface { 7162 // Retrieves exchange params 7163 QueryExchangeParams(ctx context.Context, in *QueryExchangeParamsRequest, opts ...grpc.CallOption) (*QueryExchangeParamsResponse, error) 7164 // Retrieves a Subaccount's Deposits 7165 SubaccountDeposits(ctx context.Context, in *QuerySubaccountDepositsRequest, opts ...grpc.CallOption) (*QuerySubaccountDepositsResponse, error) 7166 // Retrieves a Subaccount's Deposits 7167 SubaccountDeposit(ctx context.Context, in *QuerySubaccountDepositRequest, opts ...grpc.CallOption) (*QuerySubaccountDepositResponse, error) 7168 // Retrieves all of the balances of all users on the exchange. 7169 ExchangeBalances(ctx context.Context, in *QueryExchangeBalancesRequest, opts ...grpc.CallOption) (*QueryExchangeBalancesResponse, error) 7170 // Retrieves the aggregate volumes for the specified account or subaccount 7171 AggregateVolume(ctx context.Context, in *QueryAggregateVolumeRequest, opts ...grpc.CallOption) (*QueryAggregateVolumeResponse, error) 7172 // Retrieves the aggregate volumes for specified accounts 7173 AggregateVolumes(ctx context.Context, in *QueryAggregateVolumesRequest, opts ...grpc.CallOption) (*QueryAggregateVolumesResponse, error) 7174 // Retrieves the aggregate volume for the specified market 7175 AggregateMarketVolume(ctx context.Context, in *QueryAggregateMarketVolumeRequest, opts ...grpc.CallOption) (*QueryAggregateMarketVolumeResponse, error) 7176 // Retrieves the aggregate market volumes for specified markets 7177 AggregateMarketVolumes(ctx context.Context, in *QueryAggregateMarketVolumesRequest, opts ...grpc.CallOption) (*QueryAggregateMarketVolumesResponse, error) 7178 // Retrieves the denom decimals for a denom. 7179 DenomDecimal(ctx context.Context, in *QueryDenomDecimalRequest, opts ...grpc.CallOption) (*QueryDenomDecimalResponse, error) 7180 // Retrieves the denom decimals for multiple denoms. Returns all denom 7181 // decimals if unspecified. 7182 DenomDecimals(ctx context.Context, in *QueryDenomDecimalsRequest, opts ...grpc.CallOption) (*QueryDenomDecimalsResponse, error) 7183 // Retrieves a list of spot markets. 7184 SpotMarkets(ctx context.Context, in *QuerySpotMarketsRequest, opts ...grpc.CallOption) (*QuerySpotMarketsResponse, error) 7185 // Retrieves a spot market by ticker 7186 SpotMarket(ctx context.Context, in *QuerySpotMarketRequest, opts ...grpc.CallOption) (*QuerySpotMarketResponse, error) 7187 // Retrieves a list of spot markets with extra information. 7188 FullSpotMarkets(ctx context.Context, in *QueryFullSpotMarketsRequest, opts ...grpc.CallOption) (*QueryFullSpotMarketsResponse, error) 7189 // Retrieves a spot market with extra information. 7190 FullSpotMarket(ctx context.Context, in *QueryFullSpotMarketRequest, opts ...grpc.CallOption) (*QueryFullSpotMarketResponse, error) 7191 // Retrieves a spot market's orderbook by marketID 7192 SpotOrderbook(ctx context.Context, in *QuerySpotOrderbookRequest, opts ...grpc.CallOption) (*QuerySpotOrderbookResponse, error) 7193 // Retrieves a trader's spot orders 7194 TraderSpotOrders(ctx context.Context, in *QueryTraderSpotOrdersRequest, opts ...grpc.CallOption) (*QueryTraderSpotOrdersResponse, error) 7195 // Retrieves all account address spot orders 7196 AccountAddressSpotOrders(ctx context.Context, in *QueryAccountAddressSpotOrdersRequest, opts ...grpc.CallOption) (*QueryAccountAddressSpotOrdersResponse, error) 7197 // Retrieves spot orders corresponding to specified order hashes for a given 7198 // subaccountID and marketID 7199 SpotOrdersByHashes(ctx context.Context, in *QuerySpotOrdersByHashesRequest, opts ...grpc.CallOption) (*QuerySpotOrdersByHashesResponse, error) 7200 // Retrieves subaccount's orders 7201 SubaccountOrders(ctx context.Context, in *QuerySubaccountOrdersRequest, opts ...grpc.CallOption) (*QuerySubaccountOrdersResponse, error) 7202 // Retrieves a trader's transient spot orders 7203 TraderSpotTransientOrders(ctx context.Context, in *QueryTraderSpotOrdersRequest, opts ...grpc.CallOption) (*QueryTraderSpotOrdersResponse, error) 7204 // Retrieves a spot market's mid-price 7205 SpotMidPriceAndTOB(ctx context.Context, in *QuerySpotMidPriceAndTOBRequest, opts ...grpc.CallOption) (*QuerySpotMidPriceAndTOBResponse, error) 7206 // Retrieves a derivative market's mid-price 7207 DerivativeMidPriceAndTOB(ctx context.Context, in *QueryDerivativeMidPriceAndTOBRequest, opts ...grpc.CallOption) (*QueryDerivativeMidPriceAndTOBResponse, error) 7208 // Retrieves a derivative market's orderbook by marketID 7209 DerivativeOrderbook(ctx context.Context, in *QueryDerivativeOrderbookRequest, opts ...grpc.CallOption) (*QueryDerivativeOrderbookResponse, error) 7210 // Retrieves a trader's derivative orders 7211 TraderDerivativeOrders(ctx context.Context, in *QueryTraderDerivativeOrdersRequest, opts ...grpc.CallOption) (*QueryTraderDerivativeOrdersResponse, error) 7212 // Retrieves all account address derivative orders 7213 AccountAddressDerivativeOrders(ctx context.Context, in *QueryAccountAddressDerivativeOrdersRequest, opts ...grpc.CallOption) (*QueryAccountAddressDerivativeOrdersResponse, error) 7214 // Retrieves a trader's derivative orders 7215 DerivativeOrdersByHashes(ctx context.Context, in *QueryDerivativeOrdersByHashesRequest, opts ...grpc.CallOption) (*QueryDerivativeOrdersByHashesResponse, error) 7216 // Retrieves a trader's transient derivative orders 7217 TraderDerivativeTransientOrders(ctx context.Context, in *QueryTraderDerivativeOrdersRequest, opts ...grpc.CallOption) (*QueryTraderDerivativeOrdersResponse, error) 7218 // Retrieves a list of derivative markets. 7219 DerivativeMarkets(ctx context.Context, in *QueryDerivativeMarketsRequest, opts ...grpc.CallOption) (*QueryDerivativeMarketsResponse, error) 7220 // Retrieves a derivative market by ticker 7221 DerivativeMarket(ctx context.Context, in *QueryDerivativeMarketRequest, opts ...grpc.CallOption) (*QueryDerivativeMarketResponse, error) 7222 // Retrieves a derivative market's corresponding address for fees that 7223 // contribute to the market's insurance fund 7224 DerivativeMarketAddress(ctx context.Context, in *QueryDerivativeMarketAddressRequest, opts ...grpc.CallOption) (*QueryDerivativeMarketAddressResponse, error) 7225 // Retrieves a subaccount's trade nonce 7226 SubaccountTradeNonce(ctx context.Context, in *QuerySubaccountTradeNonceRequest, opts ...grpc.CallOption) (*QuerySubaccountTradeNonceResponse, error) 7227 // Retrieves the entire exchange module's state 7228 ExchangeModuleState(ctx context.Context, in *QueryModuleStateRequest, opts ...grpc.CallOption) (*QueryModuleStateResponse, error) 7229 // Retrieves the entire exchange module's positions 7230 Positions(ctx context.Context, in *QueryPositionsRequest, opts ...grpc.CallOption) (*QueryPositionsResponse, error) 7231 // Retrieves subaccount's positions 7232 SubaccountPositions(ctx context.Context, in *QuerySubaccountPositionsRequest, opts ...grpc.CallOption) (*QuerySubaccountPositionsResponse, error) 7233 // Retrieves subaccount's position in market 7234 SubaccountPositionInMarket(ctx context.Context, in *QuerySubaccountPositionInMarketRequest, opts ...grpc.CallOption) (*QuerySubaccountPositionInMarketResponse, error) 7235 // Retrieves subaccount's position in market 7236 SubaccountEffectivePositionInMarket(ctx context.Context, in *QuerySubaccountEffectivePositionInMarketRequest, opts ...grpc.CallOption) (*QuerySubaccountEffectivePositionInMarketResponse, error) 7237 // Retrieves perpetual market info 7238 PerpetualMarketInfo(ctx context.Context, in *QueryPerpetualMarketInfoRequest, opts ...grpc.CallOption) (*QueryPerpetualMarketInfoResponse, error) 7239 // Retrieves expiry market info 7240 ExpiryFuturesMarketInfo(ctx context.Context, in *QueryExpiryFuturesMarketInfoRequest, opts ...grpc.CallOption) (*QueryExpiryFuturesMarketInfoResponse, error) 7241 // Retrieves perpetual market funding 7242 PerpetualMarketFunding(ctx context.Context, in *QueryPerpetualMarketFundingRequest, opts ...grpc.CallOption) (*QueryPerpetualMarketFundingResponse, error) 7243 // Retrieves subaccount's order metadata 7244 SubaccountOrderMetadata(ctx context.Context, in *QuerySubaccountOrderMetadataRequest, opts ...grpc.CallOption) (*QuerySubaccountOrderMetadataResponse, error) 7245 // Retrieves the account and total trade rewards points 7246 TradeRewardPoints(ctx context.Context, in *QueryTradeRewardPointsRequest, opts ...grpc.CallOption) (*QueryTradeRewardPointsResponse, error) 7247 // Retrieves the pending account and total trade rewards points 7248 PendingTradeRewardPoints(ctx context.Context, in *QueryTradeRewardPointsRequest, opts ...grpc.CallOption) (*QueryTradeRewardPointsResponse, error) 7249 // Retrieves the trade reward campaign 7250 TradeRewardCampaign(ctx context.Context, in *QueryTradeRewardCampaignRequest, opts ...grpc.CallOption) (*QueryTradeRewardCampaignResponse, error) 7251 // Retrieves the account's fee discount info 7252 FeeDiscountAccountInfo(ctx context.Context, in *QueryFeeDiscountAccountInfoRequest, opts ...grpc.CallOption) (*QueryFeeDiscountAccountInfoResponse, error) 7253 // Retrieves the fee discount schedule 7254 FeeDiscountSchedule(ctx context.Context, in *QueryFeeDiscountScheduleRequest, opts ...grpc.CallOption) (*QueryFeeDiscountScheduleResponse, error) 7255 // Retrieves mismatches between available vs. total balance 7256 BalanceMismatches(ctx context.Context, in *QueryBalanceMismatchesRequest, opts ...grpc.CallOption) (*QueryBalanceMismatchesResponse, error) 7257 // Retrieves available and total balances with balance holds 7258 BalanceWithBalanceHolds(ctx context.Context, in *QueryBalanceWithBalanceHoldsRequest, opts ...grpc.CallOption) (*QueryBalanceWithBalanceHoldsResponse, error) 7259 // Retrieves fee discount tier stats 7260 FeeDiscountTierStatistics(ctx context.Context, in *QueryFeeDiscountTierStatisticsRequest, opts ...grpc.CallOption) (*QueryFeeDiscountTierStatisticsResponse, error) 7261 // Retrieves market making pool info 7262 MitoVaultInfos(ctx context.Context, in *MitoVaultInfosRequest, opts ...grpc.CallOption) (*MitoVaultInfosResponse, error) 7263 // QueryMarketIDFromVault returns the market ID for a given vault subaccount 7264 // ID 7265 QueryMarketIDFromVault(ctx context.Context, in *QueryMarketIDFromVaultRequest, opts ...grpc.CallOption) (*QueryMarketIDFromVaultResponse, error) 7266 // Retrieves historical trade records for a given market ID 7267 HistoricalTradeRecords(ctx context.Context, in *QueryHistoricalTradeRecordsRequest, opts ...grpc.CallOption) (*QueryHistoricalTradeRecordsResponse, error) 7268 // Retrieves if the account is opted out of rewards 7269 IsOptedOutOfRewards(ctx context.Context, in *QueryIsOptedOutOfRewardsRequest, opts ...grpc.CallOption) (*QueryIsOptedOutOfRewardsResponse, error) 7270 // Retrieves all accounts opted out of rewards 7271 OptedOutOfRewardsAccounts(ctx context.Context, in *QueryOptedOutOfRewardsAccountsRequest, opts ...grpc.CallOption) (*QueryOptedOutOfRewardsAccountsResponse, error) 7272 // MarketVolatility computes the volatility for spot and derivative markets 7273 // trading history. 7274 MarketVolatility(ctx context.Context, in *QueryMarketVolatilityRequest, opts ...grpc.CallOption) (*QueryMarketVolatilityResponse, error) 7275 // Retrieves a spot market's orderbook by marketID 7276 BinaryOptionsMarkets(ctx context.Context, in *QueryBinaryMarketsRequest, opts ...grpc.CallOption) (*QueryBinaryMarketsResponse, error) 7277 // Retrieves a trader's derivative conditional orders 7278 TraderDerivativeConditionalOrders(ctx context.Context, in *QueryTraderDerivativeConditionalOrdersRequest, opts ...grpc.CallOption) (*QueryTraderDerivativeConditionalOrdersResponse, error) 7279 MarketAtomicExecutionFeeMultiplier(ctx context.Context, in *QueryMarketAtomicExecutionFeeMultiplierRequest, opts ...grpc.CallOption) (*QueryMarketAtomicExecutionFeeMultiplierResponse, error) 7280 // Retrieves the active stake grant for a grantee 7281 ActiveStakeGrant(ctx context.Context, in *QueryActiveStakeGrantRequest, opts ...grpc.CallOption) (*QueryActiveStakeGrantResponse, error) 7282 // Retrieves the grant authorization amount for a granter and grantee 7283 GrantAuthorization(ctx context.Context, in *QueryGrantAuthorizationRequest, opts ...grpc.CallOption) (*QueryGrantAuthorizationResponse, error) 7284 // Retrieves the grant authorization amount for a granter and grantee 7285 GrantAuthorizations(ctx context.Context, in *QueryGrantAuthorizationsRequest, opts ...grpc.CallOption) (*QueryGrantAuthorizationsResponse, error) 7286 } 7287 7288 type queryClient struct { 7289 cc grpc1.ClientConn 7290 } 7291 7292 func NewQueryClient(cc grpc1.ClientConn) QueryClient { 7293 return &queryClient{cc} 7294 } 7295 7296 func (c *queryClient) QueryExchangeParams(ctx context.Context, in *QueryExchangeParamsRequest, opts ...grpc.CallOption) (*QueryExchangeParamsResponse, error) { 7297 out := new(QueryExchangeParamsResponse) 7298 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/QueryExchangeParams", in, out, opts...) 7299 if err != nil { 7300 return nil, err 7301 } 7302 return out, nil 7303 } 7304 7305 func (c *queryClient) SubaccountDeposits(ctx context.Context, in *QuerySubaccountDepositsRequest, opts ...grpc.CallOption) (*QuerySubaccountDepositsResponse, error) { 7306 out := new(QuerySubaccountDepositsResponse) 7307 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/SubaccountDeposits", in, out, opts...) 7308 if err != nil { 7309 return nil, err 7310 } 7311 return out, nil 7312 } 7313 7314 func (c *queryClient) SubaccountDeposit(ctx context.Context, in *QuerySubaccountDepositRequest, opts ...grpc.CallOption) (*QuerySubaccountDepositResponse, error) { 7315 out := new(QuerySubaccountDepositResponse) 7316 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/SubaccountDeposit", in, out, opts...) 7317 if err != nil { 7318 return nil, err 7319 } 7320 return out, nil 7321 } 7322 7323 func (c *queryClient) ExchangeBalances(ctx context.Context, in *QueryExchangeBalancesRequest, opts ...grpc.CallOption) (*QueryExchangeBalancesResponse, error) { 7324 out := new(QueryExchangeBalancesResponse) 7325 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/ExchangeBalances", in, out, opts...) 7326 if err != nil { 7327 return nil, err 7328 } 7329 return out, nil 7330 } 7331 7332 func (c *queryClient) AggregateVolume(ctx context.Context, in *QueryAggregateVolumeRequest, opts ...grpc.CallOption) (*QueryAggregateVolumeResponse, error) { 7333 out := new(QueryAggregateVolumeResponse) 7334 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/AggregateVolume", in, out, opts...) 7335 if err != nil { 7336 return nil, err 7337 } 7338 return out, nil 7339 } 7340 7341 func (c *queryClient) AggregateVolumes(ctx context.Context, in *QueryAggregateVolumesRequest, opts ...grpc.CallOption) (*QueryAggregateVolumesResponse, error) { 7342 out := new(QueryAggregateVolumesResponse) 7343 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/AggregateVolumes", in, out, opts...) 7344 if err != nil { 7345 return nil, err 7346 } 7347 return out, nil 7348 } 7349 7350 func (c *queryClient) AggregateMarketVolume(ctx context.Context, in *QueryAggregateMarketVolumeRequest, opts ...grpc.CallOption) (*QueryAggregateMarketVolumeResponse, error) { 7351 out := new(QueryAggregateMarketVolumeResponse) 7352 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/AggregateMarketVolume", in, out, opts...) 7353 if err != nil { 7354 return nil, err 7355 } 7356 return out, nil 7357 } 7358 7359 func (c *queryClient) AggregateMarketVolumes(ctx context.Context, in *QueryAggregateMarketVolumesRequest, opts ...grpc.CallOption) (*QueryAggregateMarketVolumesResponse, error) { 7360 out := new(QueryAggregateMarketVolumesResponse) 7361 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/AggregateMarketVolumes", in, out, opts...) 7362 if err != nil { 7363 return nil, err 7364 } 7365 return out, nil 7366 } 7367 7368 func (c *queryClient) DenomDecimal(ctx context.Context, in *QueryDenomDecimalRequest, opts ...grpc.CallOption) (*QueryDenomDecimalResponse, error) { 7369 out := new(QueryDenomDecimalResponse) 7370 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/DenomDecimal", in, out, opts...) 7371 if err != nil { 7372 return nil, err 7373 } 7374 return out, nil 7375 } 7376 7377 func (c *queryClient) DenomDecimals(ctx context.Context, in *QueryDenomDecimalsRequest, opts ...grpc.CallOption) (*QueryDenomDecimalsResponse, error) { 7378 out := new(QueryDenomDecimalsResponse) 7379 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/DenomDecimals", in, out, opts...) 7380 if err != nil { 7381 return nil, err 7382 } 7383 return out, nil 7384 } 7385 7386 func (c *queryClient) SpotMarkets(ctx context.Context, in *QuerySpotMarketsRequest, opts ...grpc.CallOption) (*QuerySpotMarketsResponse, error) { 7387 out := new(QuerySpotMarketsResponse) 7388 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/SpotMarkets", in, out, opts...) 7389 if err != nil { 7390 return nil, err 7391 } 7392 return out, nil 7393 } 7394 7395 func (c *queryClient) SpotMarket(ctx context.Context, in *QuerySpotMarketRequest, opts ...grpc.CallOption) (*QuerySpotMarketResponse, error) { 7396 out := new(QuerySpotMarketResponse) 7397 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/SpotMarket", in, out, opts...) 7398 if err != nil { 7399 return nil, err 7400 } 7401 return out, nil 7402 } 7403 7404 func (c *queryClient) FullSpotMarkets(ctx context.Context, in *QueryFullSpotMarketsRequest, opts ...grpc.CallOption) (*QueryFullSpotMarketsResponse, error) { 7405 out := new(QueryFullSpotMarketsResponse) 7406 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/FullSpotMarkets", in, out, opts...) 7407 if err != nil { 7408 return nil, err 7409 } 7410 return out, nil 7411 } 7412 7413 func (c *queryClient) FullSpotMarket(ctx context.Context, in *QueryFullSpotMarketRequest, opts ...grpc.CallOption) (*QueryFullSpotMarketResponse, error) { 7414 out := new(QueryFullSpotMarketResponse) 7415 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/FullSpotMarket", in, out, opts...) 7416 if err != nil { 7417 return nil, err 7418 } 7419 return out, nil 7420 } 7421 7422 func (c *queryClient) SpotOrderbook(ctx context.Context, in *QuerySpotOrderbookRequest, opts ...grpc.CallOption) (*QuerySpotOrderbookResponse, error) { 7423 out := new(QuerySpotOrderbookResponse) 7424 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/SpotOrderbook", in, out, opts...) 7425 if err != nil { 7426 return nil, err 7427 } 7428 return out, nil 7429 } 7430 7431 func (c *queryClient) TraderSpotOrders(ctx context.Context, in *QueryTraderSpotOrdersRequest, opts ...grpc.CallOption) (*QueryTraderSpotOrdersResponse, error) { 7432 out := new(QueryTraderSpotOrdersResponse) 7433 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/TraderSpotOrders", in, out, opts...) 7434 if err != nil { 7435 return nil, err 7436 } 7437 return out, nil 7438 } 7439 7440 func (c *queryClient) AccountAddressSpotOrders(ctx context.Context, in *QueryAccountAddressSpotOrdersRequest, opts ...grpc.CallOption) (*QueryAccountAddressSpotOrdersResponse, error) { 7441 out := new(QueryAccountAddressSpotOrdersResponse) 7442 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/AccountAddressSpotOrders", in, out, opts...) 7443 if err != nil { 7444 return nil, err 7445 } 7446 return out, nil 7447 } 7448 7449 func (c *queryClient) SpotOrdersByHashes(ctx context.Context, in *QuerySpotOrdersByHashesRequest, opts ...grpc.CallOption) (*QuerySpotOrdersByHashesResponse, error) { 7450 out := new(QuerySpotOrdersByHashesResponse) 7451 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/SpotOrdersByHashes", in, out, opts...) 7452 if err != nil { 7453 return nil, err 7454 } 7455 return out, nil 7456 } 7457 7458 func (c *queryClient) SubaccountOrders(ctx context.Context, in *QuerySubaccountOrdersRequest, opts ...grpc.CallOption) (*QuerySubaccountOrdersResponse, error) { 7459 out := new(QuerySubaccountOrdersResponse) 7460 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/SubaccountOrders", in, out, opts...) 7461 if err != nil { 7462 return nil, err 7463 } 7464 return out, nil 7465 } 7466 7467 func (c *queryClient) TraderSpotTransientOrders(ctx context.Context, in *QueryTraderSpotOrdersRequest, opts ...grpc.CallOption) (*QueryTraderSpotOrdersResponse, error) { 7468 out := new(QueryTraderSpotOrdersResponse) 7469 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/TraderSpotTransientOrders", in, out, opts...) 7470 if err != nil { 7471 return nil, err 7472 } 7473 return out, nil 7474 } 7475 7476 func (c *queryClient) SpotMidPriceAndTOB(ctx context.Context, in *QuerySpotMidPriceAndTOBRequest, opts ...grpc.CallOption) (*QuerySpotMidPriceAndTOBResponse, error) { 7477 out := new(QuerySpotMidPriceAndTOBResponse) 7478 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/SpotMidPriceAndTOB", in, out, opts...) 7479 if err != nil { 7480 return nil, err 7481 } 7482 return out, nil 7483 } 7484 7485 func (c *queryClient) DerivativeMidPriceAndTOB(ctx context.Context, in *QueryDerivativeMidPriceAndTOBRequest, opts ...grpc.CallOption) (*QueryDerivativeMidPriceAndTOBResponse, error) { 7486 out := new(QueryDerivativeMidPriceAndTOBResponse) 7487 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/DerivativeMidPriceAndTOB", in, out, opts...) 7488 if err != nil { 7489 return nil, err 7490 } 7491 return out, nil 7492 } 7493 7494 func (c *queryClient) DerivativeOrderbook(ctx context.Context, in *QueryDerivativeOrderbookRequest, opts ...grpc.CallOption) (*QueryDerivativeOrderbookResponse, error) { 7495 out := new(QueryDerivativeOrderbookResponse) 7496 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/DerivativeOrderbook", in, out, opts...) 7497 if err != nil { 7498 return nil, err 7499 } 7500 return out, nil 7501 } 7502 7503 func (c *queryClient) TraderDerivativeOrders(ctx context.Context, in *QueryTraderDerivativeOrdersRequest, opts ...grpc.CallOption) (*QueryTraderDerivativeOrdersResponse, error) { 7504 out := new(QueryTraderDerivativeOrdersResponse) 7505 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/TraderDerivativeOrders", in, out, opts...) 7506 if err != nil { 7507 return nil, err 7508 } 7509 return out, nil 7510 } 7511 7512 func (c *queryClient) AccountAddressDerivativeOrders(ctx context.Context, in *QueryAccountAddressDerivativeOrdersRequest, opts ...grpc.CallOption) (*QueryAccountAddressDerivativeOrdersResponse, error) { 7513 out := new(QueryAccountAddressDerivativeOrdersResponse) 7514 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/AccountAddressDerivativeOrders", in, out, opts...) 7515 if err != nil { 7516 return nil, err 7517 } 7518 return out, nil 7519 } 7520 7521 func (c *queryClient) DerivativeOrdersByHashes(ctx context.Context, in *QueryDerivativeOrdersByHashesRequest, opts ...grpc.CallOption) (*QueryDerivativeOrdersByHashesResponse, error) { 7522 out := new(QueryDerivativeOrdersByHashesResponse) 7523 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/DerivativeOrdersByHashes", in, out, opts...) 7524 if err != nil { 7525 return nil, err 7526 } 7527 return out, nil 7528 } 7529 7530 func (c *queryClient) TraderDerivativeTransientOrders(ctx context.Context, in *QueryTraderDerivativeOrdersRequest, opts ...grpc.CallOption) (*QueryTraderDerivativeOrdersResponse, error) { 7531 out := new(QueryTraderDerivativeOrdersResponse) 7532 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/TraderDerivativeTransientOrders", in, out, opts...) 7533 if err != nil { 7534 return nil, err 7535 } 7536 return out, nil 7537 } 7538 7539 func (c *queryClient) DerivativeMarkets(ctx context.Context, in *QueryDerivativeMarketsRequest, opts ...grpc.CallOption) (*QueryDerivativeMarketsResponse, error) { 7540 out := new(QueryDerivativeMarketsResponse) 7541 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/DerivativeMarkets", in, out, opts...) 7542 if err != nil { 7543 return nil, err 7544 } 7545 return out, nil 7546 } 7547 7548 func (c *queryClient) DerivativeMarket(ctx context.Context, in *QueryDerivativeMarketRequest, opts ...grpc.CallOption) (*QueryDerivativeMarketResponse, error) { 7549 out := new(QueryDerivativeMarketResponse) 7550 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/DerivativeMarket", in, out, opts...) 7551 if err != nil { 7552 return nil, err 7553 } 7554 return out, nil 7555 } 7556 7557 func (c *queryClient) DerivativeMarketAddress(ctx context.Context, in *QueryDerivativeMarketAddressRequest, opts ...grpc.CallOption) (*QueryDerivativeMarketAddressResponse, error) { 7558 out := new(QueryDerivativeMarketAddressResponse) 7559 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/DerivativeMarketAddress", in, out, opts...) 7560 if err != nil { 7561 return nil, err 7562 } 7563 return out, nil 7564 } 7565 7566 func (c *queryClient) SubaccountTradeNonce(ctx context.Context, in *QuerySubaccountTradeNonceRequest, opts ...grpc.CallOption) (*QuerySubaccountTradeNonceResponse, error) { 7567 out := new(QuerySubaccountTradeNonceResponse) 7568 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/SubaccountTradeNonce", in, out, opts...) 7569 if err != nil { 7570 return nil, err 7571 } 7572 return out, nil 7573 } 7574 7575 func (c *queryClient) ExchangeModuleState(ctx context.Context, in *QueryModuleStateRequest, opts ...grpc.CallOption) (*QueryModuleStateResponse, error) { 7576 out := new(QueryModuleStateResponse) 7577 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/ExchangeModuleState", in, out, opts...) 7578 if err != nil { 7579 return nil, err 7580 } 7581 return out, nil 7582 } 7583 7584 func (c *queryClient) Positions(ctx context.Context, in *QueryPositionsRequest, opts ...grpc.CallOption) (*QueryPositionsResponse, error) { 7585 out := new(QueryPositionsResponse) 7586 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/Positions", in, out, opts...) 7587 if err != nil { 7588 return nil, err 7589 } 7590 return out, nil 7591 } 7592 7593 func (c *queryClient) SubaccountPositions(ctx context.Context, in *QuerySubaccountPositionsRequest, opts ...grpc.CallOption) (*QuerySubaccountPositionsResponse, error) { 7594 out := new(QuerySubaccountPositionsResponse) 7595 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/SubaccountPositions", in, out, opts...) 7596 if err != nil { 7597 return nil, err 7598 } 7599 return out, nil 7600 } 7601 7602 func (c *queryClient) SubaccountPositionInMarket(ctx context.Context, in *QuerySubaccountPositionInMarketRequest, opts ...grpc.CallOption) (*QuerySubaccountPositionInMarketResponse, error) { 7603 out := new(QuerySubaccountPositionInMarketResponse) 7604 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/SubaccountPositionInMarket", in, out, opts...) 7605 if err != nil { 7606 return nil, err 7607 } 7608 return out, nil 7609 } 7610 7611 func (c *queryClient) SubaccountEffectivePositionInMarket(ctx context.Context, in *QuerySubaccountEffectivePositionInMarketRequest, opts ...grpc.CallOption) (*QuerySubaccountEffectivePositionInMarketResponse, error) { 7612 out := new(QuerySubaccountEffectivePositionInMarketResponse) 7613 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/SubaccountEffectivePositionInMarket", in, out, opts...) 7614 if err != nil { 7615 return nil, err 7616 } 7617 return out, nil 7618 } 7619 7620 func (c *queryClient) PerpetualMarketInfo(ctx context.Context, in *QueryPerpetualMarketInfoRequest, opts ...grpc.CallOption) (*QueryPerpetualMarketInfoResponse, error) { 7621 out := new(QueryPerpetualMarketInfoResponse) 7622 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/PerpetualMarketInfo", in, out, opts...) 7623 if err != nil { 7624 return nil, err 7625 } 7626 return out, nil 7627 } 7628 7629 func (c *queryClient) ExpiryFuturesMarketInfo(ctx context.Context, in *QueryExpiryFuturesMarketInfoRequest, opts ...grpc.CallOption) (*QueryExpiryFuturesMarketInfoResponse, error) { 7630 out := new(QueryExpiryFuturesMarketInfoResponse) 7631 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/ExpiryFuturesMarketInfo", in, out, opts...) 7632 if err != nil { 7633 return nil, err 7634 } 7635 return out, nil 7636 } 7637 7638 func (c *queryClient) PerpetualMarketFunding(ctx context.Context, in *QueryPerpetualMarketFundingRequest, opts ...grpc.CallOption) (*QueryPerpetualMarketFundingResponse, error) { 7639 out := new(QueryPerpetualMarketFundingResponse) 7640 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/PerpetualMarketFunding", in, out, opts...) 7641 if err != nil { 7642 return nil, err 7643 } 7644 return out, nil 7645 } 7646 7647 func (c *queryClient) SubaccountOrderMetadata(ctx context.Context, in *QuerySubaccountOrderMetadataRequest, opts ...grpc.CallOption) (*QuerySubaccountOrderMetadataResponse, error) { 7648 out := new(QuerySubaccountOrderMetadataResponse) 7649 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/SubaccountOrderMetadata", in, out, opts...) 7650 if err != nil { 7651 return nil, err 7652 } 7653 return out, nil 7654 } 7655 7656 func (c *queryClient) TradeRewardPoints(ctx context.Context, in *QueryTradeRewardPointsRequest, opts ...grpc.CallOption) (*QueryTradeRewardPointsResponse, error) { 7657 out := new(QueryTradeRewardPointsResponse) 7658 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/TradeRewardPoints", in, out, opts...) 7659 if err != nil { 7660 return nil, err 7661 } 7662 return out, nil 7663 } 7664 7665 func (c *queryClient) PendingTradeRewardPoints(ctx context.Context, in *QueryTradeRewardPointsRequest, opts ...grpc.CallOption) (*QueryTradeRewardPointsResponse, error) { 7666 out := new(QueryTradeRewardPointsResponse) 7667 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/PendingTradeRewardPoints", in, out, opts...) 7668 if err != nil { 7669 return nil, err 7670 } 7671 return out, nil 7672 } 7673 7674 func (c *queryClient) TradeRewardCampaign(ctx context.Context, in *QueryTradeRewardCampaignRequest, opts ...grpc.CallOption) (*QueryTradeRewardCampaignResponse, error) { 7675 out := new(QueryTradeRewardCampaignResponse) 7676 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/TradeRewardCampaign", in, out, opts...) 7677 if err != nil { 7678 return nil, err 7679 } 7680 return out, nil 7681 } 7682 7683 func (c *queryClient) FeeDiscountAccountInfo(ctx context.Context, in *QueryFeeDiscountAccountInfoRequest, opts ...grpc.CallOption) (*QueryFeeDiscountAccountInfoResponse, error) { 7684 out := new(QueryFeeDiscountAccountInfoResponse) 7685 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/FeeDiscountAccountInfo", in, out, opts...) 7686 if err != nil { 7687 return nil, err 7688 } 7689 return out, nil 7690 } 7691 7692 func (c *queryClient) FeeDiscountSchedule(ctx context.Context, in *QueryFeeDiscountScheduleRequest, opts ...grpc.CallOption) (*QueryFeeDiscountScheduleResponse, error) { 7693 out := new(QueryFeeDiscountScheduleResponse) 7694 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/FeeDiscountSchedule", in, out, opts...) 7695 if err != nil { 7696 return nil, err 7697 } 7698 return out, nil 7699 } 7700 7701 func (c *queryClient) BalanceMismatches(ctx context.Context, in *QueryBalanceMismatchesRequest, opts ...grpc.CallOption) (*QueryBalanceMismatchesResponse, error) { 7702 out := new(QueryBalanceMismatchesResponse) 7703 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/BalanceMismatches", in, out, opts...) 7704 if err != nil { 7705 return nil, err 7706 } 7707 return out, nil 7708 } 7709 7710 func (c *queryClient) BalanceWithBalanceHolds(ctx context.Context, in *QueryBalanceWithBalanceHoldsRequest, opts ...grpc.CallOption) (*QueryBalanceWithBalanceHoldsResponse, error) { 7711 out := new(QueryBalanceWithBalanceHoldsResponse) 7712 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/BalanceWithBalanceHolds", in, out, opts...) 7713 if err != nil { 7714 return nil, err 7715 } 7716 return out, nil 7717 } 7718 7719 func (c *queryClient) FeeDiscountTierStatistics(ctx context.Context, in *QueryFeeDiscountTierStatisticsRequest, opts ...grpc.CallOption) (*QueryFeeDiscountTierStatisticsResponse, error) { 7720 out := new(QueryFeeDiscountTierStatisticsResponse) 7721 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/FeeDiscountTierStatistics", in, out, opts...) 7722 if err != nil { 7723 return nil, err 7724 } 7725 return out, nil 7726 } 7727 7728 func (c *queryClient) MitoVaultInfos(ctx context.Context, in *MitoVaultInfosRequest, opts ...grpc.CallOption) (*MitoVaultInfosResponse, error) { 7729 out := new(MitoVaultInfosResponse) 7730 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/MitoVaultInfos", in, out, opts...) 7731 if err != nil { 7732 return nil, err 7733 } 7734 return out, nil 7735 } 7736 7737 func (c *queryClient) QueryMarketIDFromVault(ctx context.Context, in *QueryMarketIDFromVaultRequest, opts ...grpc.CallOption) (*QueryMarketIDFromVaultResponse, error) { 7738 out := new(QueryMarketIDFromVaultResponse) 7739 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/QueryMarketIDFromVault", in, out, opts...) 7740 if err != nil { 7741 return nil, err 7742 } 7743 return out, nil 7744 } 7745 7746 func (c *queryClient) HistoricalTradeRecords(ctx context.Context, in *QueryHistoricalTradeRecordsRequest, opts ...grpc.CallOption) (*QueryHistoricalTradeRecordsResponse, error) { 7747 out := new(QueryHistoricalTradeRecordsResponse) 7748 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/HistoricalTradeRecords", in, out, opts...) 7749 if err != nil { 7750 return nil, err 7751 } 7752 return out, nil 7753 } 7754 7755 func (c *queryClient) IsOptedOutOfRewards(ctx context.Context, in *QueryIsOptedOutOfRewardsRequest, opts ...grpc.CallOption) (*QueryIsOptedOutOfRewardsResponse, error) { 7756 out := new(QueryIsOptedOutOfRewardsResponse) 7757 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/IsOptedOutOfRewards", in, out, opts...) 7758 if err != nil { 7759 return nil, err 7760 } 7761 return out, nil 7762 } 7763 7764 func (c *queryClient) OptedOutOfRewardsAccounts(ctx context.Context, in *QueryOptedOutOfRewardsAccountsRequest, opts ...grpc.CallOption) (*QueryOptedOutOfRewardsAccountsResponse, error) { 7765 out := new(QueryOptedOutOfRewardsAccountsResponse) 7766 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/OptedOutOfRewardsAccounts", in, out, opts...) 7767 if err != nil { 7768 return nil, err 7769 } 7770 return out, nil 7771 } 7772 7773 func (c *queryClient) MarketVolatility(ctx context.Context, in *QueryMarketVolatilityRequest, opts ...grpc.CallOption) (*QueryMarketVolatilityResponse, error) { 7774 out := new(QueryMarketVolatilityResponse) 7775 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/MarketVolatility", in, out, opts...) 7776 if err != nil { 7777 return nil, err 7778 } 7779 return out, nil 7780 } 7781 7782 func (c *queryClient) BinaryOptionsMarkets(ctx context.Context, in *QueryBinaryMarketsRequest, opts ...grpc.CallOption) (*QueryBinaryMarketsResponse, error) { 7783 out := new(QueryBinaryMarketsResponse) 7784 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/BinaryOptionsMarkets", in, out, opts...) 7785 if err != nil { 7786 return nil, err 7787 } 7788 return out, nil 7789 } 7790 7791 func (c *queryClient) TraderDerivativeConditionalOrders(ctx context.Context, in *QueryTraderDerivativeConditionalOrdersRequest, opts ...grpc.CallOption) (*QueryTraderDerivativeConditionalOrdersResponse, error) { 7792 out := new(QueryTraderDerivativeConditionalOrdersResponse) 7793 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/TraderDerivativeConditionalOrders", in, out, opts...) 7794 if err != nil { 7795 return nil, err 7796 } 7797 return out, nil 7798 } 7799 7800 func (c *queryClient) MarketAtomicExecutionFeeMultiplier(ctx context.Context, in *QueryMarketAtomicExecutionFeeMultiplierRequest, opts ...grpc.CallOption) (*QueryMarketAtomicExecutionFeeMultiplierResponse, error) { 7801 out := new(QueryMarketAtomicExecutionFeeMultiplierResponse) 7802 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/MarketAtomicExecutionFeeMultiplier", in, out, opts...) 7803 if err != nil { 7804 return nil, err 7805 } 7806 return out, nil 7807 } 7808 7809 func (c *queryClient) ActiveStakeGrant(ctx context.Context, in *QueryActiveStakeGrantRequest, opts ...grpc.CallOption) (*QueryActiveStakeGrantResponse, error) { 7810 out := new(QueryActiveStakeGrantResponse) 7811 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/ActiveStakeGrant", in, out, opts...) 7812 if err != nil { 7813 return nil, err 7814 } 7815 return out, nil 7816 } 7817 7818 func (c *queryClient) GrantAuthorization(ctx context.Context, in *QueryGrantAuthorizationRequest, opts ...grpc.CallOption) (*QueryGrantAuthorizationResponse, error) { 7819 out := new(QueryGrantAuthorizationResponse) 7820 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/GrantAuthorization", in, out, opts...) 7821 if err != nil { 7822 return nil, err 7823 } 7824 return out, nil 7825 } 7826 7827 func (c *queryClient) GrantAuthorizations(ctx context.Context, in *QueryGrantAuthorizationsRequest, opts ...grpc.CallOption) (*QueryGrantAuthorizationsResponse, error) { 7828 out := new(QueryGrantAuthorizationsResponse) 7829 err := c.cc.Invoke(ctx, "/injective.exchange.v1beta1.Query/GrantAuthorizations", in, out, opts...) 7830 if err != nil { 7831 return nil, err 7832 } 7833 return out, nil 7834 } 7835 7836 // QueryServer is the server API for Query service. 7837 type QueryServer interface { 7838 // Retrieves exchange params 7839 QueryExchangeParams(context.Context, *QueryExchangeParamsRequest) (*QueryExchangeParamsResponse, error) 7840 // Retrieves a Subaccount's Deposits 7841 SubaccountDeposits(context.Context, *QuerySubaccountDepositsRequest) (*QuerySubaccountDepositsResponse, error) 7842 // Retrieves a Subaccount's Deposits 7843 SubaccountDeposit(context.Context, *QuerySubaccountDepositRequest) (*QuerySubaccountDepositResponse, error) 7844 // Retrieves all of the balances of all users on the exchange. 7845 ExchangeBalances(context.Context, *QueryExchangeBalancesRequest) (*QueryExchangeBalancesResponse, error) 7846 // Retrieves the aggregate volumes for the specified account or subaccount 7847 AggregateVolume(context.Context, *QueryAggregateVolumeRequest) (*QueryAggregateVolumeResponse, error) 7848 // Retrieves the aggregate volumes for specified accounts 7849 AggregateVolumes(context.Context, *QueryAggregateVolumesRequest) (*QueryAggregateVolumesResponse, error) 7850 // Retrieves the aggregate volume for the specified market 7851 AggregateMarketVolume(context.Context, *QueryAggregateMarketVolumeRequest) (*QueryAggregateMarketVolumeResponse, error) 7852 // Retrieves the aggregate market volumes for specified markets 7853 AggregateMarketVolumes(context.Context, *QueryAggregateMarketVolumesRequest) (*QueryAggregateMarketVolumesResponse, error) 7854 // Retrieves the denom decimals for a denom. 7855 DenomDecimal(context.Context, *QueryDenomDecimalRequest) (*QueryDenomDecimalResponse, error) 7856 // Retrieves the denom decimals for multiple denoms. Returns all denom 7857 // decimals if unspecified. 7858 DenomDecimals(context.Context, *QueryDenomDecimalsRequest) (*QueryDenomDecimalsResponse, error) 7859 // Retrieves a list of spot markets. 7860 SpotMarkets(context.Context, *QuerySpotMarketsRequest) (*QuerySpotMarketsResponse, error) 7861 // Retrieves a spot market by ticker 7862 SpotMarket(context.Context, *QuerySpotMarketRequest) (*QuerySpotMarketResponse, error) 7863 // Retrieves a list of spot markets with extra information. 7864 FullSpotMarkets(context.Context, *QueryFullSpotMarketsRequest) (*QueryFullSpotMarketsResponse, error) 7865 // Retrieves a spot market with extra information. 7866 FullSpotMarket(context.Context, *QueryFullSpotMarketRequest) (*QueryFullSpotMarketResponse, error) 7867 // Retrieves a spot market's orderbook by marketID 7868 SpotOrderbook(context.Context, *QuerySpotOrderbookRequest) (*QuerySpotOrderbookResponse, error) 7869 // Retrieves a trader's spot orders 7870 TraderSpotOrders(context.Context, *QueryTraderSpotOrdersRequest) (*QueryTraderSpotOrdersResponse, error) 7871 // Retrieves all account address spot orders 7872 AccountAddressSpotOrders(context.Context, *QueryAccountAddressSpotOrdersRequest) (*QueryAccountAddressSpotOrdersResponse, error) 7873 // Retrieves spot orders corresponding to specified order hashes for a given 7874 // subaccountID and marketID 7875 SpotOrdersByHashes(context.Context, *QuerySpotOrdersByHashesRequest) (*QuerySpotOrdersByHashesResponse, error) 7876 // Retrieves subaccount's orders 7877 SubaccountOrders(context.Context, *QuerySubaccountOrdersRequest) (*QuerySubaccountOrdersResponse, error) 7878 // Retrieves a trader's transient spot orders 7879 TraderSpotTransientOrders(context.Context, *QueryTraderSpotOrdersRequest) (*QueryTraderSpotOrdersResponse, error) 7880 // Retrieves a spot market's mid-price 7881 SpotMidPriceAndTOB(context.Context, *QuerySpotMidPriceAndTOBRequest) (*QuerySpotMidPriceAndTOBResponse, error) 7882 // Retrieves a derivative market's mid-price 7883 DerivativeMidPriceAndTOB(context.Context, *QueryDerivativeMidPriceAndTOBRequest) (*QueryDerivativeMidPriceAndTOBResponse, error) 7884 // Retrieves a derivative market's orderbook by marketID 7885 DerivativeOrderbook(context.Context, *QueryDerivativeOrderbookRequest) (*QueryDerivativeOrderbookResponse, error) 7886 // Retrieves a trader's derivative orders 7887 TraderDerivativeOrders(context.Context, *QueryTraderDerivativeOrdersRequest) (*QueryTraderDerivativeOrdersResponse, error) 7888 // Retrieves all account address derivative orders 7889 AccountAddressDerivativeOrders(context.Context, *QueryAccountAddressDerivativeOrdersRequest) (*QueryAccountAddressDerivativeOrdersResponse, error) 7890 // Retrieves a trader's derivative orders 7891 DerivativeOrdersByHashes(context.Context, *QueryDerivativeOrdersByHashesRequest) (*QueryDerivativeOrdersByHashesResponse, error) 7892 // Retrieves a trader's transient derivative orders 7893 TraderDerivativeTransientOrders(context.Context, *QueryTraderDerivativeOrdersRequest) (*QueryTraderDerivativeOrdersResponse, error) 7894 // Retrieves a list of derivative markets. 7895 DerivativeMarkets(context.Context, *QueryDerivativeMarketsRequest) (*QueryDerivativeMarketsResponse, error) 7896 // Retrieves a derivative market by ticker 7897 DerivativeMarket(context.Context, *QueryDerivativeMarketRequest) (*QueryDerivativeMarketResponse, error) 7898 // Retrieves a derivative market's corresponding address for fees that 7899 // contribute to the market's insurance fund 7900 DerivativeMarketAddress(context.Context, *QueryDerivativeMarketAddressRequest) (*QueryDerivativeMarketAddressResponse, error) 7901 // Retrieves a subaccount's trade nonce 7902 SubaccountTradeNonce(context.Context, *QuerySubaccountTradeNonceRequest) (*QuerySubaccountTradeNonceResponse, error) 7903 // Retrieves the entire exchange module's state 7904 ExchangeModuleState(context.Context, *QueryModuleStateRequest) (*QueryModuleStateResponse, error) 7905 // Retrieves the entire exchange module's positions 7906 Positions(context.Context, *QueryPositionsRequest) (*QueryPositionsResponse, error) 7907 // Retrieves subaccount's positions 7908 SubaccountPositions(context.Context, *QuerySubaccountPositionsRequest) (*QuerySubaccountPositionsResponse, error) 7909 // Retrieves subaccount's position in market 7910 SubaccountPositionInMarket(context.Context, *QuerySubaccountPositionInMarketRequest) (*QuerySubaccountPositionInMarketResponse, error) 7911 // Retrieves subaccount's position in market 7912 SubaccountEffectivePositionInMarket(context.Context, *QuerySubaccountEffectivePositionInMarketRequest) (*QuerySubaccountEffectivePositionInMarketResponse, error) 7913 // Retrieves perpetual market info 7914 PerpetualMarketInfo(context.Context, *QueryPerpetualMarketInfoRequest) (*QueryPerpetualMarketInfoResponse, error) 7915 // Retrieves expiry market info 7916 ExpiryFuturesMarketInfo(context.Context, *QueryExpiryFuturesMarketInfoRequest) (*QueryExpiryFuturesMarketInfoResponse, error) 7917 // Retrieves perpetual market funding 7918 PerpetualMarketFunding(context.Context, *QueryPerpetualMarketFundingRequest) (*QueryPerpetualMarketFundingResponse, error) 7919 // Retrieves subaccount's order metadata 7920 SubaccountOrderMetadata(context.Context, *QuerySubaccountOrderMetadataRequest) (*QuerySubaccountOrderMetadataResponse, error) 7921 // Retrieves the account and total trade rewards points 7922 TradeRewardPoints(context.Context, *QueryTradeRewardPointsRequest) (*QueryTradeRewardPointsResponse, error) 7923 // Retrieves the pending account and total trade rewards points 7924 PendingTradeRewardPoints(context.Context, *QueryTradeRewardPointsRequest) (*QueryTradeRewardPointsResponse, error) 7925 // Retrieves the trade reward campaign 7926 TradeRewardCampaign(context.Context, *QueryTradeRewardCampaignRequest) (*QueryTradeRewardCampaignResponse, error) 7927 // Retrieves the account's fee discount info 7928 FeeDiscountAccountInfo(context.Context, *QueryFeeDiscountAccountInfoRequest) (*QueryFeeDiscountAccountInfoResponse, error) 7929 // Retrieves the fee discount schedule 7930 FeeDiscountSchedule(context.Context, *QueryFeeDiscountScheduleRequest) (*QueryFeeDiscountScheduleResponse, error) 7931 // Retrieves mismatches between available vs. total balance 7932 BalanceMismatches(context.Context, *QueryBalanceMismatchesRequest) (*QueryBalanceMismatchesResponse, error) 7933 // Retrieves available and total balances with balance holds 7934 BalanceWithBalanceHolds(context.Context, *QueryBalanceWithBalanceHoldsRequest) (*QueryBalanceWithBalanceHoldsResponse, error) 7935 // Retrieves fee discount tier stats 7936 FeeDiscountTierStatistics(context.Context, *QueryFeeDiscountTierStatisticsRequest) (*QueryFeeDiscountTierStatisticsResponse, error) 7937 // Retrieves market making pool info 7938 MitoVaultInfos(context.Context, *MitoVaultInfosRequest) (*MitoVaultInfosResponse, error) 7939 // QueryMarketIDFromVault returns the market ID for a given vault subaccount 7940 // ID 7941 QueryMarketIDFromVault(context.Context, *QueryMarketIDFromVaultRequest) (*QueryMarketIDFromVaultResponse, error) 7942 // Retrieves historical trade records for a given market ID 7943 HistoricalTradeRecords(context.Context, *QueryHistoricalTradeRecordsRequest) (*QueryHistoricalTradeRecordsResponse, error) 7944 // Retrieves if the account is opted out of rewards 7945 IsOptedOutOfRewards(context.Context, *QueryIsOptedOutOfRewardsRequest) (*QueryIsOptedOutOfRewardsResponse, error) 7946 // Retrieves all accounts opted out of rewards 7947 OptedOutOfRewardsAccounts(context.Context, *QueryOptedOutOfRewardsAccountsRequest) (*QueryOptedOutOfRewardsAccountsResponse, error) 7948 // MarketVolatility computes the volatility for spot and derivative markets 7949 // trading history. 7950 MarketVolatility(context.Context, *QueryMarketVolatilityRequest) (*QueryMarketVolatilityResponse, error) 7951 // Retrieves a spot market's orderbook by marketID 7952 BinaryOptionsMarkets(context.Context, *QueryBinaryMarketsRequest) (*QueryBinaryMarketsResponse, error) 7953 // Retrieves a trader's derivative conditional orders 7954 TraderDerivativeConditionalOrders(context.Context, *QueryTraderDerivativeConditionalOrdersRequest) (*QueryTraderDerivativeConditionalOrdersResponse, error) 7955 MarketAtomicExecutionFeeMultiplier(context.Context, *QueryMarketAtomicExecutionFeeMultiplierRequest) (*QueryMarketAtomicExecutionFeeMultiplierResponse, error) 7956 // Retrieves the active stake grant for a grantee 7957 ActiveStakeGrant(context.Context, *QueryActiveStakeGrantRequest) (*QueryActiveStakeGrantResponse, error) 7958 // Retrieves the grant authorization amount for a granter and grantee 7959 GrantAuthorization(context.Context, *QueryGrantAuthorizationRequest) (*QueryGrantAuthorizationResponse, error) 7960 // Retrieves the grant authorization amount for a granter and grantee 7961 GrantAuthorizations(context.Context, *QueryGrantAuthorizationsRequest) (*QueryGrantAuthorizationsResponse, error) 7962 } 7963 7964 // UnimplementedQueryServer can be embedded to have forward compatible implementations. 7965 type UnimplementedQueryServer struct { 7966 } 7967 7968 func (*UnimplementedQueryServer) QueryExchangeParams(ctx context.Context, req *QueryExchangeParamsRequest) (*QueryExchangeParamsResponse, error) { 7969 return nil, status.Errorf(codes.Unimplemented, "method QueryExchangeParams not implemented") 7970 } 7971 func (*UnimplementedQueryServer) SubaccountDeposits(ctx context.Context, req *QuerySubaccountDepositsRequest) (*QuerySubaccountDepositsResponse, error) { 7972 return nil, status.Errorf(codes.Unimplemented, "method SubaccountDeposits not implemented") 7973 } 7974 func (*UnimplementedQueryServer) SubaccountDeposit(ctx context.Context, req *QuerySubaccountDepositRequest) (*QuerySubaccountDepositResponse, error) { 7975 return nil, status.Errorf(codes.Unimplemented, "method SubaccountDeposit not implemented") 7976 } 7977 func (*UnimplementedQueryServer) ExchangeBalances(ctx context.Context, req *QueryExchangeBalancesRequest) (*QueryExchangeBalancesResponse, error) { 7978 return nil, status.Errorf(codes.Unimplemented, "method ExchangeBalances not implemented") 7979 } 7980 func (*UnimplementedQueryServer) AggregateVolume(ctx context.Context, req *QueryAggregateVolumeRequest) (*QueryAggregateVolumeResponse, error) { 7981 return nil, status.Errorf(codes.Unimplemented, "method AggregateVolume not implemented") 7982 } 7983 func (*UnimplementedQueryServer) AggregateVolumes(ctx context.Context, req *QueryAggregateVolumesRequest) (*QueryAggregateVolumesResponse, error) { 7984 return nil, status.Errorf(codes.Unimplemented, "method AggregateVolumes not implemented") 7985 } 7986 func (*UnimplementedQueryServer) AggregateMarketVolume(ctx context.Context, req *QueryAggregateMarketVolumeRequest) (*QueryAggregateMarketVolumeResponse, error) { 7987 return nil, status.Errorf(codes.Unimplemented, "method AggregateMarketVolume not implemented") 7988 } 7989 func (*UnimplementedQueryServer) AggregateMarketVolumes(ctx context.Context, req *QueryAggregateMarketVolumesRequest) (*QueryAggregateMarketVolumesResponse, error) { 7990 return nil, status.Errorf(codes.Unimplemented, "method AggregateMarketVolumes not implemented") 7991 } 7992 func (*UnimplementedQueryServer) DenomDecimal(ctx context.Context, req *QueryDenomDecimalRequest) (*QueryDenomDecimalResponse, error) { 7993 return nil, status.Errorf(codes.Unimplemented, "method DenomDecimal not implemented") 7994 } 7995 func (*UnimplementedQueryServer) DenomDecimals(ctx context.Context, req *QueryDenomDecimalsRequest) (*QueryDenomDecimalsResponse, error) { 7996 return nil, status.Errorf(codes.Unimplemented, "method DenomDecimals not implemented") 7997 } 7998 func (*UnimplementedQueryServer) SpotMarkets(ctx context.Context, req *QuerySpotMarketsRequest) (*QuerySpotMarketsResponse, error) { 7999 return nil, status.Errorf(codes.Unimplemented, "method SpotMarkets not implemented") 8000 } 8001 func (*UnimplementedQueryServer) SpotMarket(ctx context.Context, req *QuerySpotMarketRequest) (*QuerySpotMarketResponse, error) { 8002 return nil, status.Errorf(codes.Unimplemented, "method SpotMarket not implemented") 8003 } 8004 func (*UnimplementedQueryServer) FullSpotMarkets(ctx context.Context, req *QueryFullSpotMarketsRequest) (*QueryFullSpotMarketsResponse, error) { 8005 return nil, status.Errorf(codes.Unimplemented, "method FullSpotMarkets not implemented") 8006 } 8007 func (*UnimplementedQueryServer) FullSpotMarket(ctx context.Context, req *QueryFullSpotMarketRequest) (*QueryFullSpotMarketResponse, error) { 8008 return nil, status.Errorf(codes.Unimplemented, "method FullSpotMarket not implemented") 8009 } 8010 func (*UnimplementedQueryServer) SpotOrderbook(ctx context.Context, req *QuerySpotOrderbookRequest) (*QuerySpotOrderbookResponse, error) { 8011 return nil, status.Errorf(codes.Unimplemented, "method SpotOrderbook not implemented") 8012 } 8013 func (*UnimplementedQueryServer) TraderSpotOrders(ctx context.Context, req *QueryTraderSpotOrdersRequest) (*QueryTraderSpotOrdersResponse, error) { 8014 return nil, status.Errorf(codes.Unimplemented, "method TraderSpotOrders not implemented") 8015 } 8016 func (*UnimplementedQueryServer) AccountAddressSpotOrders(ctx context.Context, req *QueryAccountAddressSpotOrdersRequest) (*QueryAccountAddressSpotOrdersResponse, error) { 8017 return nil, status.Errorf(codes.Unimplemented, "method AccountAddressSpotOrders not implemented") 8018 } 8019 func (*UnimplementedQueryServer) SpotOrdersByHashes(ctx context.Context, req *QuerySpotOrdersByHashesRequest) (*QuerySpotOrdersByHashesResponse, error) { 8020 return nil, status.Errorf(codes.Unimplemented, "method SpotOrdersByHashes not implemented") 8021 } 8022 func (*UnimplementedQueryServer) SubaccountOrders(ctx context.Context, req *QuerySubaccountOrdersRequest) (*QuerySubaccountOrdersResponse, error) { 8023 return nil, status.Errorf(codes.Unimplemented, "method SubaccountOrders not implemented") 8024 } 8025 func (*UnimplementedQueryServer) TraderSpotTransientOrders(ctx context.Context, req *QueryTraderSpotOrdersRequest) (*QueryTraderSpotOrdersResponse, error) { 8026 return nil, status.Errorf(codes.Unimplemented, "method TraderSpotTransientOrders not implemented") 8027 } 8028 func (*UnimplementedQueryServer) SpotMidPriceAndTOB(ctx context.Context, req *QuerySpotMidPriceAndTOBRequest) (*QuerySpotMidPriceAndTOBResponse, error) { 8029 return nil, status.Errorf(codes.Unimplemented, "method SpotMidPriceAndTOB not implemented") 8030 } 8031 func (*UnimplementedQueryServer) DerivativeMidPriceAndTOB(ctx context.Context, req *QueryDerivativeMidPriceAndTOBRequest) (*QueryDerivativeMidPriceAndTOBResponse, error) { 8032 return nil, status.Errorf(codes.Unimplemented, "method DerivativeMidPriceAndTOB not implemented") 8033 } 8034 func (*UnimplementedQueryServer) DerivativeOrderbook(ctx context.Context, req *QueryDerivativeOrderbookRequest) (*QueryDerivativeOrderbookResponse, error) { 8035 return nil, status.Errorf(codes.Unimplemented, "method DerivativeOrderbook not implemented") 8036 } 8037 func (*UnimplementedQueryServer) TraderDerivativeOrders(ctx context.Context, req *QueryTraderDerivativeOrdersRequest) (*QueryTraderDerivativeOrdersResponse, error) { 8038 return nil, status.Errorf(codes.Unimplemented, "method TraderDerivativeOrders not implemented") 8039 } 8040 func (*UnimplementedQueryServer) AccountAddressDerivativeOrders(ctx context.Context, req *QueryAccountAddressDerivativeOrdersRequest) (*QueryAccountAddressDerivativeOrdersResponse, error) { 8041 return nil, status.Errorf(codes.Unimplemented, "method AccountAddressDerivativeOrders not implemented") 8042 } 8043 func (*UnimplementedQueryServer) DerivativeOrdersByHashes(ctx context.Context, req *QueryDerivativeOrdersByHashesRequest) (*QueryDerivativeOrdersByHashesResponse, error) { 8044 return nil, status.Errorf(codes.Unimplemented, "method DerivativeOrdersByHashes not implemented") 8045 } 8046 func (*UnimplementedQueryServer) TraderDerivativeTransientOrders(ctx context.Context, req *QueryTraderDerivativeOrdersRequest) (*QueryTraderDerivativeOrdersResponse, error) { 8047 return nil, status.Errorf(codes.Unimplemented, "method TraderDerivativeTransientOrders not implemented") 8048 } 8049 func (*UnimplementedQueryServer) DerivativeMarkets(ctx context.Context, req *QueryDerivativeMarketsRequest) (*QueryDerivativeMarketsResponse, error) { 8050 return nil, status.Errorf(codes.Unimplemented, "method DerivativeMarkets not implemented") 8051 } 8052 func (*UnimplementedQueryServer) DerivativeMarket(ctx context.Context, req *QueryDerivativeMarketRequest) (*QueryDerivativeMarketResponse, error) { 8053 return nil, status.Errorf(codes.Unimplemented, "method DerivativeMarket not implemented") 8054 } 8055 func (*UnimplementedQueryServer) DerivativeMarketAddress(ctx context.Context, req *QueryDerivativeMarketAddressRequest) (*QueryDerivativeMarketAddressResponse, error) { 8056 return nil, status.Errorf(codes.Unimplemented, "method DerivativeMarketAddress not implemented") 8057 } 8058 func (*UnimplementedQueryServer) SubaccountTradeNonce(ctx context.Context, req *QuerySubaccountTradeNonceRequest) (*QuerySubaccountTradeNonceResponse, error) { 8059 return nil, status.Errorf(codes.Unimplemented, "method SubaccountTradeNonce not implemented") 8060 } 8061 func (*UnimplementedQueryServer) ExchangeModuleState(ctx context.Context, req *QueryModuleStateRequest) (*QueryModuleStateResponse, error) { 8062 return nil, status.Errorf(codes.Unimplemented, "method ExchangeModuleState not implemented") 8063 } 8064 func (*UnimplementedQueryServer) Positions(ctx context.Context, req *QueryPositionsRequest) (*QueryPositionsResponse, error) { 8065 return nil, status.Errorf(codes.Unimplemented, "method Positions not implemented") 8066 } 8067 func (*UnimplementedQueryServer) SubaccountPositions(ctx context.Context, req *QuerySubaccountPositionsRequest) (*QuerySubaccountPositionsResponse, error) { 8068 return nil, status.Errorf(codes.Unimplemented, "method SubaccountPositions not implemented") 8069 } 8070 func (*UnimplementedQueryServer) SubaccountPositionInMarket(ctx context.Context, req *QuerySubaccountPositionInMarketRequest) (*QuerySubaccountPositionInMarketResponse, error) { 8071 return nil, status.Errorf(codes.Unimplemented, "method SubaccountPositionInMarket not implemented") 8072 } 8073 func (*UnimplementedQueryServer) SubaccountEffectivePositionInMarket(ctx context.Context, req *QuerySubaccountEffectivePositionInMarketRequest) (*QuerySubaccountEffectivePositionInMarketResponse, error) { 8074 return nil, status.Errorf(codes.Unimplemented, "method SubaccountEffectivePositionInMarket not implemented") 8075 } 8076 func (*UnimplementedQueryServer) PerpetualMarketInfo(ctx context.Context, req *QueryPerpetualMarketInfoRequest) (*QueryPerpetualMarketInfoResponse, error) { 8077 return nil, status.Errorf(codes.Unimplemented, "method PerpetualMarketInfo not implemented") 8078 } 8079 func (*UnimplementedQueryServer) ExpiryFuturesMarketInfo(ctx context.Context, req *QueryExpiryFuturesMarketInfoRequest) (*QueryExpiryFuturesMarketInfoResponse, error) { 8080 return nil, status.Errorf(codes.Unimplemented, "method ExpiryFuturesMarketInfo not implemented") 8081 } 8082 func (*UnimplementedQueryServer) PerpetualMarketFunding(ctx context.Context, req *QueryPerpetualMarketFundingRequest) (*QueryPerpetualMarketFundingResponse, error) { 8083 return nil, status.Errorf(codes.Unimplemented, "method PerpetualMarketFunding not implemented") 8084 } 8085 func (*UnimplementedQueryServer) SubaccountOrderMetadata(ctx context.Context, req *QuerySubaccountOrderMetadataRequest) (*QuerySubaccountOrderMetadataResponse, error) { 8086 return nil, status.Errorf(codes.Unimplemented, "method SubaccountOrderMetadata not implemented") 8087 } 8088 func (*UnimplementedQueryServer) TradeRewardPoints(ctx context.Context, req *QueryTradeRewardPointsRequest) (*QueryTradeRewardPointsResponse, error) { 8089 return nil, status.Errorf(codes.Unimplemented, "method TradeRewardPoints not implemented") 8090 } 8091 func (*UnimplementedQueryServer) PendingTradeRewardPoints(ctx context.Context, req *QueryTradeRewardPointsRequest) (*QueryTradeRewardPointsResponse, error) { 8092 return nil, status.Errorf(codes.Unimplemented, "method PendingTradeRewardPoints not implemented") 8093 } 8094 func (*UnimplementedQueryServer) TradeRewardCampaign(ctx context.Context, req *QueryTradeRewardCampaignRequest) (*QueryTradeRewardCampaignResponse, error) { 8095 return nil, status.Errorf(codes.Unimplemented, "method TradeRewardCampaign not implemented") 8096 } 8097 func (*UnimplementedQueryServer) FeeDiscountAccountInfo(ctx context.Context, req *QueryFeeDiscountAccountInfoRequest) (*QueryFeeDiscountAccountInfoResponse, error) { 8098 return nil, status.Errorf(codes.Unimplemented, "method FeeDiscountAccountInfo not implemented") 8099 } 8100 func (*UnimplementedQueryServer) FeeDiscountSchedule(ctx context.Context, req *QueryFeeDiscountScheduleRequest) (*QueryFeeDiscountScheduleResponse, error) { 8101 return nil, status.Errorf(codes.Unimplemented, "method FeeDiscountSchedule not implemented") 8102 } 8103 func (*UnimplementedQueryServer) BalanceMismatches(ctx context.Context, req *QueryBalanceMismatchesRequest) (*QueryBalanceMismatchesResponse, error) { 8104 return nil, status.Errorf(codes.Unimplemented, "method BalanceMismatches not implemented") 8105 } 8106 func (*UnimplementedQueryServer) BalanceWithBalanceHolds(ctx context.Context, req *QueryBalanceWithBalanceHoldsRequest) (*QueryBalanceWithBalanceHoldsResponse, error) { 8107 return nil, status.Errorf(codes.Unimplemented, "method BalanceWithBalanceHolds not implemented") 8108 } 8109 func (*UnimplementedQueryServer) FeeDiscountTierStatistics(ctx context.Context, req *QueryFeeDiscountTierStatisticsRequest) (*QueryFeeDiscountTierStatisticsResponse, error) { 8110 return nil, status.Errorf(codes.Unimplemented, "method FeeDiscountTierStatistics not implemented") 8111 } 8112 func (*UnimplementedQueryServer) MitoVaultInfos(ctx context.Context, req *MitoVaultInfosRequest) (*MitoVaultInfosResponse, error) { 8113 return nil, status.Errorf(codes.Unimplemented, "method MitoVaultInfos not implemented") 8114 } 8115 func (*UnimplementedQueryServer) QueryMarketIDFromVault(ctx context.Context, req *QueryMarketIDFromVaultRequest) (*QueryMarketIDFromVaultResponse, error) { 8116 return nil, status.Errorf(codes.Unimplemented, "method QueryMarketIDFromVault not implemented") 8117 } 8118 func (*UnimplementedQueryServer) HistoricalTradeRecords(ctx context.Context, req *QueryHistoricalTradeRecordsRequest) (*QueryHistoricalTradeRecordsResponse, error) { 8119 return nil, status.Errorf(codes.Unimplemented, "method HistoricalTradeRecords not implemented") 8120 } 8121 func (*UnimplementedQueryServer) IsOptedOutOfRewards(ctx context.Context, req *QueryIsOptedOutOfRewardsRequest) (*QueryIsOptedOutOfRewardsResponse, error) { 8122 return nil, status.Errorf(codes.Unimplemented, "method IsOptedOutOfRewards not implemented") 8123 } 8124 func (*UnimplementedQueryServer) OptedOutOfRewardsAccounts(ctx context.Context, req *QueryOptedOutOfRewardsAccountsRequest) (*QueryOptedOutOfRewardsAccountsResponse, error) { 8125 return nil, status.Errorf(codes.Unimplemented, "method OptedOutOfRewardsAccounts not implemented") 8126 } 8127 func (*UnimplementedQueryServer) MarketVolatility(ctx context.Context, req *QueryMarketVolatilityRequest) (*QueryMarketVolatilityResponse, error) { 8128 return nil, status.Errorf(codes.Unimplemented, "method MarketVolatility not implemented") 8129 } 8130 func (*UnimplementedQueryServer) BinaryOptionsMarkets(ctx context.Context, req *QueryBinaryMarketsRequest) (*QueryBinaryMarketsResponse, error) { 8131 return nil, status.Errorf(codes.Unimplemented, "method BinaryOptionsMarkets not implemented") 8132 } 8133 func (*UnimplementedQueryServer) TraderDerivativeConditionalOrders(ctx context.Context, req *QueryTraderDerivativeConditionalOrdersRequest) (*QueryTraderDerivativeConditionalOrdersResponse, error) { 8134 return nil, status.Errorf(codes.Unimplemented, "method TraderDerivativeConditionalOrders not implemented") 8135 } 8136 func (*UnimplementedQueryServer) MarketAtomicExecutionFeeMultiplier(ctx context.Context, req *QueryMarketAtomicExecutionFeeMultiplierRequest) (*QueryMarketAtomicExecutionFeeMultiplierResponse, error) { 8137 return nil, status.Errorf(codes.Unimplemented, "method MarketAtomicExecutionFeeMultiplier not implemented") 8138 } 8139 func (*UnimplementedQueryServer) ActiveStakeGrant(ctx context.Context, req *QueryActiveStakeGrantRequest) (*QueryActiveStakeGrantResponse, error) { 8140 return nil, status.Errorf(codes.Unimplemented, "method ActiveStakeGrant not implemented") 8141 } 8142 func (*UnimplementedQueryServer) GrantAuthorization(ctx context.Context, req *QueryGrantAuthorizationRequest) (*QueryGrantAuthorizationResponse, error) { 8143 return nil, status.Errorf(codes.Unimplemented, "method GrantAuthorization not implemented") 8144 } 8145 func (*UnimplementedQueryServer) GrantAuthorizations(ctx context.Context, req *QueryGrantAuthorizationsRequest) (*QueryGrantAuthorizationsResponse, error) { 8146 return nil, status.Errorf(codes.Unimplemented, "method GrantAuthorizations not implemented") 8147 } 8148 8149 func RegisterQueryServer(s grpc1.Server, srv QueryServer) { 8150 s.RegisterService(&_Query_serviceDesc, srv) 8151 } 8152 8153 func _Query_QueryExchangeParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8154 in := new(QueryExchangeParamsRequest) 8155 if err := dec(in); err != nil { 8156 return nil, err 8157 } 8158 if interceptor == nil { 8159 return srv.(QueryServer).QueryExchangeParams(ctx, in) 8160 } 8161 info := &grpc.UnaryServerInfo{ 8162 Server: srv, 8163 FullMethod: "/injective.exchange.v1beta1.Query/QueryExchangeParams", 8164 } 8165 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8166 return srv.(QueryServer).QueryExchangeParams(ctx, req.(*QueryExchangeParamsRequest)) 8167 } 8168 return interceptor(ctx, in, info, handler) 8169 } 8170 8171 func _Query_SubaccountDeposits_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8172 in := new(QuerySubaccountDepositsRequest) 8173 if err := dec(in); err != nil { 8174 return nil, err 8175 } 8176 if interceptor == nil { 8177 return srv.(QueryServer).SubaccountDeposits(ctx, in) 8178 } 8179 info := &grpc.UnaryServerInfo{ 8180 Server: srv, 8181 FullMethod: "/injective.exchange.v1beta1.Query/SubaccountDeposits", 8182 } 8183 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8184 return srv.(QueryServer).SubaccountDeposits(ctx, req.(*QuerySubaccountDepositsRequest)) 8185 } 8186 return interceptor(ctx, in, info, handler) 8187 } 8188 8189 func _Query_SubaccountDeposit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8190 in := new(QuerySubaccountDepositRequest) 8191 if err := dec(in); err != nil { 8192 return nil, err 8193 } 8194 if interceptor == nil { 8195 return srv.(QueryServer).SubaccountDeposit(ctx, in) 8196 } 8197 info := &grpc.UnaryServerInfo{ 8198 Server: srv, 8199 FullMethod: "/injective.exchange.v1beta1.Query/SubaccountDeposit", 8200 } 8201 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8202 return srv.(QueryServer).SubaccountDeposit(ctx, req.(*QuerySubaccountDepositRequest)) 8203 } 8204 return interceptor(ctx, in, info, handler) 8205 } 8206 8207 func _Query_ExchangeBalances_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8208 in := new(QueryExchangeBalancesRequest) 8209 if err := dec(in); err != nil { 8210 return nil, err 8211 } 8212 if interceptor == nil { 8213 return srv.(QueryServer).ExchangeBalances(ctx, in) 8214 } 8215 info := &grpc.UnaryServerInfo{ 8216 Server: srv, 8217 FullMethod: "/injective.exchange.v1beta1.Query/ExchangeBalances", 8218 } 8219 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8220 return srv.(QueryServer).ExchangeBalances(ctx, req.(*QueryExchangeBalancesRequest)) 8221 } 8222 return interceptor(ctx, in, info, handler) 8223 } 8224 8225 func _Query_AggregateVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8226 in := new(QueryAggregateVolumeRequest) 8227 if err := dec(in); err != nil { 8228 return nil, err 8229 } 8230 if interceptor == nil { 8231 return srv.(QueryServer).AggregateVolume(ctx, in) 8232 } 8233 info := &grpc.UnaryServerInfo{ 8234 Server: srv, 8235 FullMethod: "/injective.exchange.v1beta1.Query/AggregateVolume", 8236 } 8237 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8238 return srv.(QueryServer).AggregateVolume(ctx, req.(*QueryAggregateVolumeRequest)) 8239 } 8240 return interceptor(ctx, in, info, handler) 8241 } 8242 8243 func _Query_AggregateVolumes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8244 in := new(QueryAggregateVolumesRequest) 8245 if err := dec(in); err != nil { 8246 return nil, err 8247 } 8248 if interceptor == nil { 8249 return srv.(QueryServer).AggregateVolumes(ctx, in) 8250 } 8251 info := &grpc.UnaryServerInfo{ 8252 Server: srv, 8253 FullMethod: "/injective.exchange.v1beta1.Query/AggregateVolumes", 8254 } 8255 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8256 return srv.(QueryServer).AggregateVolumes(ctx, req.(*QueryAggregateVolumesRequest)) 8257 } 8258 return interceptor(ctx, in, info, handler) 8259 } 8260 8261 func _Query_AggregateMarketVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8262 in := new(QueryAggregateMarketVolumeRequest) 8263 if err := dec(in); err != nil { 8264 return nil, err 8265 } 8266 if interceptor == nil { 8267 return srv.(QueryServer).AggregateMarketVolume(ctx, in) 8268 } 8269 info := &grpc.UnaryServerInfo{ 8270 Server: srv, 8271 FullMethod: "/injective.exchange.v1beta1.Query/AggregateMarketVolume", 8272 } 8273 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8274 return srv.(QueryServer).AggregateMarketVolume(ctx, req.(*QueryAggregateMarketVolumeRequest)) 8275 } 8276 return interceptor(ctx, in, info, handler) 8277 } 8278 8279 func _Query_AggregateMarketVolumes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8280 in := new(QueryAggregateMarketVolumesRequest) 8281 if err := dec(in); err != nil { 8282 return nil, err 8283 } 8284 if interceptor == nil { 8285 return srv.(QueryServer).AggregateMarketVolumes(ctx, in) 8286 } 8287 info := &grpc.UnaryServerInfo{ 8288 Server: srv, 8289 FullMethod: "/injective.exchange.v1beta1.Query/AggregateMarketVolumes", 8290 } 8291 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8292 return srv.(QueryServer).AggregateMarketVolumes(ctx, req.(*QueryAggregateMarketVolumesRequest)) 8293 } 8294 return interceptor(ctx, in, info, handler) 8295 } 8296 8297 func _Query_DenomDecimal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8298 in := new(QueryDenomDecimalRequest) 8299 if err := dec(in); err != nil { 8300 return nil, err 8301 } 8302 if interceptor == nil { 8303 return srv.(QueryServer).DenomDecimal(ctx, in) 8304 } 8305 info := &grpc.UnaryServerInfo{ 8306 Server: srv, 8307 FullMethod: "/injective.exchange.v1beta1.Query/DenomDecimal", 8308 } 8309 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8310 return srv.(QueryServer).DenomDecimal(ctx, req.(*QueryDenomDecimalRequest)) 8311 } 8312 return interceptor(ctx, in, info, handler) 8313 } 8314 8315 func _Query_DenomDecimals_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8316 in := new(QueryDenomDecimalsRequest) 8317 if err := dec(in); err != nil { 8318 return nil, err 8319 } 8320 if interceptor == nil { 8321 return srv.(QueryServer).DenomDecimals(ctx, in) 8322 } 8323 info := &grpc.UnaryServerInfo{ 8324 Server: srv, 8325 FullMethod: "/injective.exchange.v1beta1.Query/DenomDecimals", 8326 } 8327 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8328 return srv.(QueryServer).DenomDecimals(ctx, req.(*QueryDenomDecimalsRequest)) 8329 } 8330 return interceptor(ctx, in, info, handler) 8331 } 8332 8333 func _Query_SpotMarkets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8334 in := new(QuerySpotMarketsRequest) 8335 if err := dec(in); err != nil { 8336 return nil, err 8337 } 8338 if interceptor == nil { 8339 return srv.(QueryServer).SpotMarkets(ctx, in) 8340 } 8341 info := &grpc.UnaryServerInfo{ 8342 Server: srv, 8343 FullMethod: "/injective.exchange.v1beta1.Query/SpotMarkets", 8344 } 8345 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8346 return srv.(QueryServer).SpotMarkets(ctx, req.(*QuerySpotMarketsRequest)) 8347 } 8348 return interceptor(ctx, in, info, handler) 8349 } 8350 8351 func _Query_SpotMarket_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8352 in := new(QuerySpotMarketRequest) 8353 if err := dec(in); err != nil { 8354 return nil, err 8355 } 8356 if interceptor == nil { 8357 return srv.(QueryServer).SpotMarket(ctx, in) 8358 } 8359 info := &grpc.UnaryServerInfo{ 8360 Server: srv, 8361 FullMethod: "/injective.exchange.v1beta1.Query/SpotMarket", 8362 } 8363 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8364 return srv.(QueryServer).SpotMarket(ctx, req.(*QuerySpotMarketRequest)) 8365 } 8366 return interceptor(ctx, in, info, handler) 8367 } 8368 8369 func _Query_FullSpotMarkets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8370 in := new(QueryFullSpotMarketsRequest) 8371 if err := dec(in); err != nil { 8372 return nil, err 8373 } 8374 if interceptor == nil { 8375 return srv.(QueryServer).FullSpotMarkets(ctx, in) 8376 } 8377 info := &grpc.UnaryServerInfo{ 8378 Server: srv, 8379 FullMethod: "/injective.exchange.v1beta1.Query/FullSpotMarkets", 8380 } 8381 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8382 return srv.(QueryServer).FullSpotMarkets(ctx, req.(*QueryFullSpotMarketsRequest)) 8383 } 8384 return interceptor(ctx, in, info, handler) 8385 } 8386 8387 func _Query_FullSpotMarket_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8388 in := new(QueryFullSpotMarketRequest) 8389 if err := dec(in); err != nil { 8390 return nil, err 8391 } 8392 if interceptor == nil { 8393 return srv.(QueryServer).FullSpotMarket(ctx, in) 8394 } 8395 info := &grpc.UnaryServerInfo{ 8396 Server: srv, 8397 FullMethod: "/injective.exchange.v1beta1.Query/FullSpotMarket", 8398 } 8399 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8400 return srv.(QueryServer).FullSpotMarket(ctx, req.(*QueryFullSpotMarketRequest)) 8401 } 8402 return interceptor(ctx, in, info, handler) 8403 } 8404 8405 func _Query_SpotOrderbook_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8406 in := new(QuerySpotOrderbookRequest) 8407 if err := dec(in); err != nil { 8408 return nil, err 8409 } 8410 if interceptor == nil { 8411 return srv.(QueryServer).SpotOrderbook(ctx, in) 8412 } 8413 info := &grpc.UnaryServerInfo{ 8414 Server: srv, 8415 FullMethod: "/injective.exchange.v1beta1.Query/SpotOrderbook", 8416 } 8417 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8418 return srv.(QueryServer).SpotOrderbook(ctx, req.(*QuerySpotOrderbookRequest)) 8419 } 8420 return interceptor(ctx, in, info, handler) 8421 } 8422 8423 func _Query_TraderSpotOrders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8424 in := new(QueryTraderSpotOrdersRequest) 8425 if err := dec(in); err != nil { 8426 return nil, err 8427 } 8428 if interceptor == nil { 8429 return srv.(QueryServer).TraderSpotOrders(ctx, in) 8430 } 8431 info := &grpc.UnaryServerInfo{ 8432 Server: srv, 8433 FullMethod: "/injective.exchange.v1beta1.Query/TraderSpotOrders", 8434 } 8435 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8436 return srv.(QueryServer).TraderSpotOrders(ctx, req.(*QueryTraderSpotOrdersRequest)) 8437 } 8438 return interceptor(ctx, in, info, handler) 8439 } 8440 8441 func _Query_AccountAddressSpotOrders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8442 in := new(QueryAccountAddressSpotOrdersRequest) 8443 if err := dec(in); err != nil { 8444 return nil, err 8445 } 8446 if interceptor == nil { 8447 return srv.(QueryServer).AccountAddressSpotOrders(ctx, in) 8448 } 8449 info := &grpc.UnaryServerInfo{ 8450 Server: srv, 8451 FullMethod: "/injective.exchange.v1beta1.Query/AccountAddressSpotOrders", 8452 } 8453 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8454 return srv.(QueryServer).AccountAddressSpotOrders(ctx, req.(*QueryAccountAddressSpotOrdersRequest)) 8455 } 8456 return interceptor(ctx, in, info, handler) 8457 } 8458 8459 func _Query_SpotOrdersByHashes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8460 in := new(QuerySpotOrdersByHashesRequest) 8461 if err := dec(in); err != nil { 8462 return nil, err 8463 } 8464 if interceptor == nil { 8465 return srv.(QueryServer).SpotOrdersByHashes(ctx, in) 8466 } 8467 info := &grpc.UnaryServerInfo{ 8468 Server: srv, 8469 FullMethod: "/injective.exchange.v1beta1.Query/SpotOrdersByHashes", 8470 } 8471 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8472 return srv.(QueryServer).SpotOrdersByHashes(ctx, req.(*QuerySpotOrdersByHashesRequest)) 8473 } 8474 return interceptor(ctx, in, info, handler) 8475 } 8476 8477 func _Query_SubaccountOrders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8478 in := new(QuerySubaccountOrdersRequest) 8479 if err := dec(in); err != nil { 8480 return nil, err 8481 } 8482 if interceptor == nil { 8483 return srv.(QueryServer).SubaccountOrders(ctx, in) 8484 } 8485 info := &grpc.UnaryServerInfo{ 8486 Server: srv, 8487 FullMethod: "/injective.exchange.v1beta1.Query/SubaccountOrders", 8488 } 8489 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8490 return srv.(QueryServer).SubaccountOrders(ctx, req.(*QuerySubaccountOrdersRequest)) 8491 } 8492 return interceptor(ctx, in, info, handler) 8493 } 8494 8495 func _Query_TraderSpotTransientOrders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8496 in := new(QueryTraderSpotOrdersRequest) 8497 if err := dec(in); err != nil { 8498 return nil, err 8499 } 8500 if interceptor == nil { 8501 return srv.(QueryServer).TraderSpotTransientOrders(ctx, in) 8502 } 8503 info := &grpc.UnaryServerInfo{ 8504 Server: srv, 8505 FullMethod: "/injective.exchange.v1beta1.Query/TraderSpotTransientOrders", 8506 } 8507 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8508 return srv.(QueryServer).TraderSpotTransientOrders(ctx, req.(*QueryTraderSpotOrdersRequest)) 8509 } 8510 return interceptor(ctx, in, info, handler) 8511 } 8512 8513 func _Query_SpotMidPriceAndTOB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8514 in := new(QuerySpotMidPriceAndTOBRequest) 8515 if err := dec(in); err != nil { 8516 return nil, err 8517 } 8518 if interceptor == nil { 8519 return srv.(QueryServer).SpotMidPriceAndTOB(ctx, in) 8520 } 8521 info := &grpc.UnaryServerInfo{ 8522 Server: srv, 8523 FullMethod: "/injective.exchange.v1beta1.Query/SpotMidPriceAndTOB", 8524 } 8525 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8526 return srv.(QueryServer).SpotMidPriceAndTOB(ctx, req.(*QuerySpotMidPriceAndTOBRequest)) 8527 } 8528 return interceptor(ctx, in, info, handler) 8529 } 8530 8531 func _Query_DerivativeMidPriceAndTOB_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8532 in := new(QueryDerivativeMidPriceAndTOBRequest) 8533 if err := dec(in); err != nil { 8534 return nil, err 8535 } 8536 if interceptor == nil { 8537 return srv.(QueryServer).DerivativeMidPriceAndTOB(ctx, in) 8538 } 8539 info := &grpc.UnaryServerInfo{ 8540 Server: srv, 8541 FullMethod: "/injective.exchange.v1beta1.Query/DerivativeMidPriceAndTOB", 8542 } 8543 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8544 return srv.(QueryServer).DerivativeMidPriceAndTOB(ctx, req.(*QueryDerivativeMidPriceAndTOBRequest)) 8545 } 8546 return interceptor(ctx, in, info, handler) 8547 } 8548 8549 func _Query_DerivativeOrderbook_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8550 in := new(QueryDerivativeOrderbookRequest) 8551 if err := dec(in); err != nil { 8552 return nil, err 8553 } 8554 if interceptor == nil { 8555 return srv.(QueryServer).DerivativeOrderbook(ctx, in) 8556 } 8557 info := &grpc.UnaryServerInfo{ 8558 Server: srv, 8559 FullMethod: "/injective.exchange.v1beta1.Query/DerivativeOrderbook", 8560 } 8561 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8562 return srv.(QueryServer).DerivativeOrderbook(ctx, req.(*QueryDerivativeOrderbookRequest)) 8563 } 8564 return interceptor(ctx, in, info, handler) 8565 } 8566 8567 func _Query_TraderDerivativeOrders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8568 in := new(QueryTraderDerivativeOrdersRequest) 8569 if err := dec(in); err != nil { 8570 return nil, err 8571 } 8572 if interceptor == nil { 8573 return srv.(QueryServer).TraderDerivativeOrders(ctx, in) 8574 } 8575 info := &grpc.UnaryServerInfo{ 8576 Server: srv, 8577 FullMethod: "/injective.exchange.v1beta1.Query/TraderDerivativeOrders", 8578 } 8579 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8580 return srv.(QueryServer).TraderDerivativeOrders(ctx, req.(*QueryTraderDerivativeOrdersRequest)) 8581 } 8582 return interceptor(ctx, in, info, handler) 8583 } 8584 8585 func _Query_AccountAddressDerivativeOrders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8586 in := new(QueryAccountAddressDerivativeOrdersRequest) 8587 if err := dec(in); err != nil { 8588 return nil, err 8589 } 8590 if interceptor == nil { 8591 return srv.(QueryServer).AccountAddressDerivativeOrders(ctx, in) 8592 } 8593 info := &grpc.UnaryServerInfo{ 8594 Server: srv, 8595 FullMethod: "/injective.exchange.v1beta1.Query/AccountAddressDerivativeOrders", 8596 } 8597 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8598 return srv.(QueryServer).AccountAddressDerivativeOrders(ctx, req.(*QueryAccountAddressDerivativeOrdersRequest)) 8599 } 8600 return interceptor(ctx, in, info, handler) 8601 } 8602 8603 func _Query_DerivativeOrdersByHashes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8604 in := new(QueryDerivativeOrdersByHashesRequest) 8605 if err := dec(in); err != nil { 8606 return nil, err 8607 } 8608 if interceptor == nil { 8609 return srv.(QueryServer).DerivativeOrdersByHashes(ctx, in) 8610 } 8611 info := &grpc.UnaryServerInfo{ 8612 Server: srv, 8613 FullMethod: "/injective.exchange.v1beta1.Query/DerivativeOrdersByHashes", 8614 } 8615 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8616 return srv.(QueryServer).DerivativeOrdersByHashes(ctx, req.(*QueryDerivativeOrdersByHashesRequest)) 8617 } 8618 return interceptor(ctx, in, info, handler) 8619 } 8620 8621 func _Query_TraderDerivativeTransientOrders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8622 in := new(QueryTraderDerivativeOrdersRequest) 8623 if err := dec(in); err != nil { 8624 return nil, err 8625 } 8626 if interceptor == nil { 8627 return srv.(QueryServer).TraderDerivativeTransientOrders(ctx, in) 8628 } 8629 info := &grpc.UnaryServerInfo{ 8630 Server: srv, 8631 FullMethod: "/injective.exchange.v1beta1.Query/TraderDerivativeTransientOrders", 8632 } 8633 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8634 return srv.(QueryServer).TraderDerivativeTransientOrders(ctx, req.(*QueryTraderDerivativeOrdersRequest)) 8635 } 8636 return interceptor(ctx, in, info, handler) 8637 } 8638 8639 func _Query_DerivativeMarkets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8640 in := new(QueryDerivativeMarketsRequest) 8641 if err := dec(in); err != nil { 8642 return nil, err 8643 } 8644 if interceptor == nil { 8645 return srv.(QueryServer).DerivativeMarkets(ctx, in) 8646 } 8647 info := &grpc.UnaryServerInfo{ 8648 Server: srv, 8649 FullMethod: "/injective.exchange.v1beta1.Query/DerivativeMarkets", 8650 } 8651 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8652 return srv.(QueryServer).DerivativeMarkets(ctx, req.(*QueryDerivativeMarketsRequest)) 8653 } 8654 return interceptor(ctx, in, info, handler) 8655 } 8656 8657 func _Query_DerivativeMarket_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8658 in := new(QueryDerivativeMarketRequest) 8659 if err := dec(in); err != nil { 8660 return nil, err 8661 } 8662 if interceptor == nil { 8663 return srv.(QueryServer).DerivativeMarket(ctx, in) 8664 } 8665 info := &grpc.UnaryServerInfo{ 8666 Server: srv, 8667 FullMethod: "/injective.exchange.v1beta1.Query/DerivativeMarket", 8668 } 8669 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8670 return srv.(QueryServer).DerivativeMarket(ctx, req.(*QueryDerivativeMarketRequest)) 8671 } 8672 return interceptor(ctx, in, info, handler) 8673 } 8674 8675 func _Query_DerivativeMarketAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8676 in := new(QueryDerivativeMarketAddressRequest) 8677 if err := dec(in); err != nil { 8678 return nil, err 8679 } 8680 if interceptor == nil { 8681 return srv.(QueryServer).DerivativeMarketAddress(ctx, in) 8682 } 8683 info := &grpc.UnaryServerInfo{ 8684 Server: srv, 8685 FullMethod: "/injective.exchange.v1beta1.Query/DerivativeMarketAddress", 8686 } 8687 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8688 return srv.(QueryServer).DerivativeMarketAddress(ctx, req.(*QueryDerivativeMarketAddressRequest)) 8689 } 8690 return interceptor(ctx, in, info, handler) 8691 } 8692 8693 func _Query_SubaccountTradeNonce_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8694 in := new(QuerySubaccountTradeNonceRequest) 8695 if err := dec(in); err != nil { 8696 return nil, err 8697 } 8698 if interceptor == nil { 8699 return srv.(QueryServer).SubaccountTradeNonce(ctx, in) 8700 } 8701 info := &grpc.UnaryServerInfo{ 8702 Server: srv, 8703 FullMethod: "/injective.exchange.v1beta1.Query/SubaccountTradeNonce", 8704 } 8705 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8706 return srv.(QueryServer).SubaccountTradeNonce(ctx, req.(*QuerySubaccountTradeNonceRequest)) 8707 } 8708 return interceptor(ctx, in, info, handler) 8709 } 8710 8711 func _Query_ExchangeModuleState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8712 in := new(QueryModuleStateRequest) 8713 if err := dec(in); err != nil { 8714 return nil, err 8715 } 8716 if interceptor == nil { 8717 return srv.(QueryServer).ExchangeModuleState(ctx, in) 8718 } 8719 info := &grpc.UnaryServerInfo{ 8720 Server: srv, 8721 FullMethod: "/injective.exchange.v1beta1.Query/ExchangeModuleState", 8722 } 8723 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8724 return srv.(QueryServer).ExchangeModuleState(ctx, req.(*QueryModuleStateRequest)) 8725 } 8726 return interceptor(ctx, in, info, handler) 8727 } 8728 8729 func _Query_Positions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8730 in := new(QueryPositionsRequest) 8731 if err := dec(in); err != nil { 8732 return nil, err 8733 } 8734 if interceptor == nil { 8735 return srv.(QueryServer).Positions(ctx, in) 8736 } 8737 info := &grpc.UnaryServerInfo{ 8738 Server: srv, 8739 FullMethod: "/injective.exchange.v1beta1.Query/Positions", 8740 } 8741 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8742 return srv.(QueryServer).Positions(ctx, req.(*QueryPositionsRequest)) 8743 } 8744 return interceptor(ctx, in, info, handler) 8745 } 8746 8747 func _Query_SubaccountPositions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8748 in := new(QuerySubaccountPositionsRequest) 8749 if err := dec(in); err != nil { 8750 return nil, err 8751 } 8752 if interceptor == nil { 8753 return srv.(QueryServer).SubaccountPositions(ctx, in) 8754 } 8755 info := &grpc.UnaryServerInfo{ 8756 Server: srv, 8757 FullMethod: "/injective.exchange.v1beta1.Query/SubaccountPositions", 8758 } 8759 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8760 return srv.(QueryServer).SubaccountPositions(ctx, req.(*QuerySubaccountPositionsRequest)) 8761 } 8762 return interceptor(ctx, in, info, handler) 8763 } 8764 8765 func _Query_SubaccountPositionInMarket_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8766 in := new(QuerySubaccountPositionInMarketRequest) 8767 if err := dec(in); err != nil { 8768 return nil, err 8769 } 8770 if interceptor == nil { 8771 return srv.(QueryServer).SubaccountPositionInMarket(ctx, in) 8772 } 8773 info := &grpc.UnaryServerInfo{ 8774 Server: srv, 8775 FullMethod: "/injective.exchange.v1beta1.Query/SubaccountPositionInMarket", 8776 } 8777 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8778 return srv.(QueryServer).SubaccountPositionInMarket(ctx, req.(*QuerySubaccountPositionInMarketRequest)) 8779 } 8780 return interceptor(ctx, in, info, handler) 8781 } 8782 8783 func _Query_SubaccountEffectivePositionInMarket_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8784 in := new(QuerySubaccountEffectivePositionInMarketRequest) 8785 if err := dec(in); err != nil { 8786 return nil, err 8787 } 8788 if interceptor == nil { 8789 return srv.(QueryServer).SubaccountEffectivePositionInMarket(ctx, in) 8790 } 8791 info := &grpc.UnaryServerInfo{ 8792 Server: srv, 8793 FullMethod: "/injective.exchange.v1beta1.Query/SubaccountEffectivePositionInMarket", 8794 } 8795 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8796 return srv.(QueryServer).SubaccountEffectivePositionInMarket(ctx, req.(*QuerySubaccountEffectivePositionInMarketRequest)) 8797 } 8798 return interceptor(ctx, in, info, handler) 8799 } 8800 8801 func _Query_PerpetualMarketInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8802 in := new(QueryPerpetualMarketInfoRequest) 8803 if err := dec(in); err != nil { 8804 return nil, err 8805 } 8806 if interceptor == nil { 8807 return srv.(QueryServer).PerpetualMarketInfo(ctx, in) 8808 } 8809 info := &grpc.UnaryServerInfo{ 8810 Server: srv, 8811 FullMethod: "/injective.exchange.v1beta1.Query/PerpetualMarketInfo", 8812 } 8813 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8814 return srv.(QueryServer).PerpetualMarketInfo(ctx, req.(*QueryPerpetualMarketInfoRequest)) 8815 } 8816 return interceptor(ctx, in, info, handler) 8817 } 8818 8819 func _Query_ExpiryFuturesMarketInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8820 in := new(QueryExpiryFuturesMarketInfoRequest) 8821 if err := dec(in); err != nil { 8822 return nil, err 8823 } 8824 if interceptor == nil { 8825 return srv.(QueryServer).ExpiryFuturesMarketInfo(ctx, in) 8826 } 8827 info := &grpc.UnaryServerInfo{ 8828 Server: srv, 8829 FullMethod: "/injective.exchange.v1beta1.Query/ExpiryFuturesMarketInfo", 8830 } 8831 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8832 return srv.(QueryServer).ExpiryFuturesMarketInfo(ctx, req.(*QueryExpiryFuturesMarketInfoRequest)) 8833 } 8834 return interceptor(ctx, in, info, handler) 8835 } 8836 8837 func _Query_PerpetualMarketFunding_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8838 in := new(QueryPerpetualMarketFundingRequest) 8839 if err := dec(in); err != nil { 8840 return nil, err 8841 } 8842 if interceptor == nil { 8843 return srv.(QueryServer).PerpetualMarketFunding(ctx, in) 8844 } 8845 info := &grpc.UnaryServerInfo{ 8846 Server: srv, 8847 FullMethod: "/injective.exchange.v1beta1.Query/PerpetualMarketFunding", 8848 } 8849 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8850 return srv.(QueryServer).PerpetualMarketFunding(ctx, req.(*QueryPerpetualMarketFundingRequest)) 8851 } 8852 return interceptor(ctx, in, info, handler) 8853 } 8854 8855 func _Query_SubaccountOrderMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8856 in := new(QuerySubaccountOrderMetadataRequest) 8857 if err := dec(in); err != nil { 8858 return nil, err 8859 } 8860 if interceptor == nil { 8861 return srv.(QueryServer).SubaccountOrderMetadata(ctx, in) 8862 } 8863 info := &grpc.UnaryServerInfo{ 8864 Server: srv, 8865 FullMethod: "/injective.exchange.v1beta1.Query/SubaccountOrderMetadata", 8866 } 8867 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8868 return srv.(QueryServer).SubaccountOrderMetadata(ctx, req.(*QuerySubaccountOrderMetadataRequest)) 8869 } 8870 return interceptor(ctx, in, info, handler) 8871 } 8872 8873 func _Query_TradeRewardPoints_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8874 in := new(QueryTradeRewardPointsRequest) 8875 if err := dec(in); err != nil { 8876 return nil, err 8877 } 8878 if interceptor == nil { 8879 return srv.(QueryServer).TradeRewardPoints(ctx, in) 8880 } 8881 info := &grpc.UnaryServerInfo{ 8882 Server: srv, 8883 FullMethod: "/injective.exchange.v1beta1.Query/TradeRewardPoints", 8884 } 8885 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8886 return srv.(QueryServer).TradeRewardPoints(ctx, req.(*QueryTradeRewardPointsRequest)) 8887 } 8888 return interceptor(ctx, in, info, handler) 8889 } 8890 8891 func _Query_PendingTradeRewardPoints_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8892 in := new(QueryTradeRewardPointsRequest) 8893 if err := dec(in); err != nil { 8894 return nil, err 8895 } 8896 if interceptor == nil { 8897 return srv.(QueryServer).PendingTradeRewardPoints(ctx, in) 8898 } 8899 info := &grpc.UnaryServerInfo{ 8900 Server: srv, 8901 FullMethod: "/injective.exchange.v1beta1.Query/PendingTradeRewardPoints", 8902 } 8903 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8904 return srv.(QueryServer).PendingTradeRewardPoints(ctx, req.(*QueryTradeRewardPointsRequest)) 8905 } 8906 return interceptor(ctx, in, info, handler) 8907 } 8908 8909 func _Query_TradeRewardCampaign_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8910 in := new(QueryTradeRewardCampaignRequest) 8911 if err := dec(in); err != nil { 8912 return nil, err 8913 } 8914 if interceptor == nil { 8915 return srv.(QueryServer).TradeRewardCampaign(ctx, in) 8916 } 8917 info := &grpc.UnaryServerInfo{ 8918 Server: srv, 8919 FullMethod: "/injective.exchange.v1beta1.Query/TradeRewardCampaign", 8920 } 8921 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8922 return srv.(QueryServer).TradeRewardCampaign(ctx, req.(*QueryTradeRewardCampaignRequest)) 8923 } 8924 return interceptor(ctx, in, info, handler) 8925 } 8926 8927 func _Query_FeeDiscountAccountInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8928 in := new(QueryFeeDiscountAccountInfoRequest) 8929 if err := dec(in); err != nil { 8930 return nil, err 8931 } 8932 if interceptor == nil { 8933 return srv.(QueryServer).FeeDiscountAccountInfo(ctx, in) 8934 } 8935 info := &grpc.UnaryServerInfo{ 8936 Server: srv, 8937 FullMethod: "/injective.exchange.v1beta1.Query/FeeDiscountAccountInfo", 8938 } 8939 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8940 return srv.(QueryServer).FeeDiscountAccountInfo(ctx, req.(*QueryFeeDiscountAccountInfoRequest)) 8941 } 8942 return interceptor(ctx, in, info, handler) 8943 } 8944 8945 func _Query_FeeDiscountSchedule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8946 in := new(QueryFeeDiscountScheduleRequest) 8947 if err := dec(in); err != nil { 8948 return nil, err 8949 } 8950 if interceptor == nil { 8951 return srv.(QueryServer).FeeDiscountSchedule(ctx, in) 8952 } 8953 info := &grpc.UnaryServerInfo{ 8954 Server: srv, 8955 FullMethod: "/injective.exchange.v1beta1.Query/FeeDiscountSchedule", 8956 } 8957 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8958 return srv.(QueryServer).FeeDiscountSchedule(ctx, req.(*QueryFeeDiscountScheduleRequest)) 8959 } 8960 return interceptor(ctx, in, info, handler) 8961 } 8962 8963 func _Query_BalanceMismatches_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8964 in := new(QueryBalanceMismatchesRequest) 8965 if err := dec(in); err != nil { 8966 return nil, err 8967 } 8968 if interceptor == nil { 8969 return srv.(QueryServer).BalanceMismatches(ctx, in) 8970 } 8971 info := &grpc.UnaryServerInfo{ 8972 Server: srv, 8973 FullMethod: "/injective.exchange.v1beta1.Query/BalanceMismatches", 8974 } 8975 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8976 return srv.(QueryServer).BalanceMismatches(ctx, req.(*QueryBalanceMismatchesRequest)) 8977 } 8978 return interceptor(ctx, in, info, handler) 8979 } 8980 8981 func _Query_BalanceWithBalanceHolds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 8982 in := new(QueryBalanceWithBalanceHoldsRequest) 8983 if err := dec(in); err != nil { 8984 return nil, err 8985 } 8986 if interceptor == nil { 8987 return srv.(QueryServer).BalanceWithBalanceHolds(ctx, in) 8988 } 8989 info := &grpc.UnaryServerInfo{ 8990 Server: srv, 8991 FullMethod: "/injective.exchange.v1beta1.Query/BalanceWithBalanceHolds", 8992 } 8993 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 8994 return srv.(QueryServer).BalanceWithBalanceHolds(ctx, req.(*QueryBalanceWithBalanceHoldsRequest)) 8995 } 8996 return interceptor(ctx, in, info, handler) 8997 } 8998 8999 func _Query_FeeDiscountTierStatistics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 9000 in := new(QueryFeeDiscountTierStatisticsRequest) 9001 if err := dec(in); err != nil { 9002 return nil, err 9003 } 9004 if interceptor == nil { 9005 return srv.(QueryServer).FeeDiscountTierStatistics(ctx, in) 9006 } 9007 info := &grpc.UnaryServerInfo{ 9008 Server: srv, 9009 FullMethod: "/injective.exchange.v1beta1.Query/FeeDiscountTierStatistics", 9010 } 9011 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 9012 return srv.(QueryServer).FeeDiscountTierStatistics(ctx, req.(*QueryFeeDiscountTierStatisticsRequest)) 9013 } 9014 return interceptor(ctx, in, info, handler) 9015 } 9016 9017 func _Query_MitoVaultInfos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 9018 in := new(MitoVaultInfosRequest) 9019 if err := dec(in); err != nil { 9020 return nil, err 9021 } 9022 if interceptor == nil { 9023 return srv.(QueryServer).MitoVaultInfos(ctx, in) 9024 } 9025 info := &grpc.UnaryServerInfo{ 9026 Server: srv, 9027 FullMethod: "/injective.exchange.v1beta1.Query/MitoVaultInfos", 9028 } 9029 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 9030 return srv.(QueryServer).MitoVaultInfos(ctx, req.(*MitoVaultInfosRequest)) 9031 } 9032 return interceptor(ctx, in, info, handler) 9033 } 9034 9035 func _Query_QueryMarketIDFromVault_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 9036 in := new(QueryMarketIDFromVaultRequest) 9037 if err := dec(in); err != nil { 9038 return nil, err 9039 } 9040 if interceptor == nil { 9041 return srv.(QueryServer).QueryMarketIDFromVault(ctx, in) 9042 } 9043 info := &grpc.UnaryServerInfo{ 9044 Server: srv, 9045 FullMethod: "/injective.exchange.v1beta1.Query/QueryMarketIDFromVault", 9046 } 9047 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 9048 return srv.(QueryServer).QueryMarketIDFromVault(ctx, req.(*QueryMarketIDFromVaultRequest)) 9049 } 9050 return interceptor(ctx, in, info, handler) 9051 } 9052 9053 func _Query_HistoricalTradeRecords_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 9054 in := new(QueryHistoricalTradeRecordsRequest) 9055 if err := dec(in); err != nil { 9056 return nil, err 9057 } 9058 if interceptor == nil { 9059 return srv.(QueryServer).HistoricalTradeRecords(ctx, in) 9060 } 9061 info := &grpc.UnaryServerInfo{ 9062 Server: srv, 9063 FullMethod: "/injective.exchange.v1beta1.Query/HistoricalTradeRecords", 9064 } 9065 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 9066 return srv.(QueryServer).HistoricalTradeRecords(ctx, req.(*QueryHistoricalTradeRecordsRequest)) 9067 } 9068 return interceptor(ctx, in, info, handler) 9069 } 9070 9071 func _Query_IsOptedOutOfRewards_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 9072 in := new(QueryIsOptedOutOfRewardsRequest) 9073 if err := dec(in); err != nil { 9074 return nil, err 9075 } 9076 if interceptor == nil { 9077 return srv.(QueryServer).IsOptedOutOfRewards(ctx, in) 9078 } 9079 info := &grpc.UnaryServerInfo{ 9080 Server: srv, 9081 FullMethod: "/injective.exchange.v1beta1.Query/IsOptedOutOfRewards", 9082 } 9083 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 9084 return srv.(QueryServer).IsOptedOutOfRewards(ctx, req.(*QueryIsOptedOutOfRewardsRequest)) 9085 } 9086 return interceptor(ctx, in, info, handler) 9087 } 9088 9089 func _Query_OptedOutOfRewardsAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 9090 in := new(QueryOptedOutOfRewardsAccountsRequest) 9091 if err := dec(in); err != nil { 9092 return nil, err 9093 } 9094 if interceptor == nil { 9095 return srv.(QueryServer).OptedOutOfRewardsAccounts(ctx, in) 9096 } 9097 info := &grpc.UnaryServerInfo{ 9098 Server: srv, 9099 FullMethod: "/injective.exchange.v1beta1.Query/OptedOutOfRewardsAccounts", 9100 } 9101 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 9102 return srv.(QueryServer).OptedOutOfRewardsAccounts(ctx, req.(*QueryOptedOutOfRewardsAccountsRequest)) 9103 } 9104 return interceptor(ctx, in, info, handler) 9105 } 9106 9107 func _Query_MarketVolatility_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 9108 in := new(QueryMarketVolatilityRequest) 9109 if err := dec(in); err != nil { 9110 return nil, err 9111 } 9112 if interceptor == nil { 9113 return srv.(QueryServer).MarketVolatility(ctx, in) 9114 } 9115 info := &grpc.UnaryServerInfo{ 9116 Server: srv, 9117 FullMethod: "/injective.exchange.v1beta1.Query/MarketVolatility", 9118 } 9119 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 9120 return srv.(QueryServer).MarketVolatility(ctx, req.(*QueryMarketVolatilityRequest)) 9121 } 9122 return interceptor(ctx, in, info, handler) 9123 } 9124 9125 func _Query_BinaryOptionsMarkets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 9126 in := new(QueryBinaryMarketsRequest) 9127 if err := dec(in); err != nil { 9128 return nil, err 9129 } 9130 if interceptor == nil { 9131 return srv.(QueryServer).BinaryOptionsMarkets(ctx, in) 9132 } 9133 info := &grpc.UnaryServerInfo{ 9134 Server: srv, 9135 FullMethod: "/injective.exchange.v1beta1.Query/BinaryOptionsMarkets", 9136 } 9137 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 9138 return srv.(QueryServer).BinaryOptionsMarkets(ctx, req.(*QueryBinaryMarketsRequest)) 9139 } 9140 return interceptor(ctx, in, info, handler) 9141 } 9142 9143 func _Query_TraderDerivativeConditionalOrders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 9144 in := new(QueryTraderDerivativeConditionalOrdersRequest) 9145 if err := dec(in); err != nil { 9146 return nil, err 9147 } 9148 if interceptor == nil { 9149 return srv.(QueryServer).TraderDerivativeConditionalOrders(ctx, in) 9150 } 9151 info := &grpc.UnaryServerInfo{ 9152 Server: srv, 9153 FullMethod: "/injective.exchange.v1beta1.Query/TraderDerivativeConditionalOrders", 9154 } 9155 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 9156 return srv.(QueryServer).TraderDerivativeConditionalOrders(ctx, req.(*QueryTraderDerivativeConditionalOrdersRequest)) 9157 } 9158 return interceptor(ctx, in, info, handler) 9159 } 9160 9161 func _Query_MarketAtomicExecutionFeeMultiplier_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 9162 in := new(QueryMarketAtomicExecutionFeeMultiplierRequest) 9163 if err := dec(in); err != nil { 9164 return nil, err 9165 } 9166 if interceptor == nil { 9167 return srv.(QueryServer).MarketAtomicExecutionFeeMultiplier(ctx, in) 9168 } 9169 info := &grpc.UnaryServerInfo{ 9170 Server: srv, 9171 FullMethod: "/injective.exchange.v1beta1.Query/MarketAtomicExecutionFeeMultiplier", 9172 } 9173 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 9174 return srv.(QueryServer).MarketAtomicExecutionFeeMultiplier(ctx, req.(*QueryMarketAtomicExecutionFeeMultiplierRequest)) 9175 } 9176 return interceptor(ctx, in, info, handler) 9177 } 9178 9179 func _Query_ActiveStakeGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 9180 in := new(QueryActiveStakeGrantRequest) 9181 if err := dec(in); err != nil { 9182 return nil, err 9183 } 9184 if interceptor == nil { 9185 return srv.(QueryServer).ActiveStakeGrant(ctx, in) 9186 } 9187 info := &grpc.UnaryServerInfo{ 9188 Server: srv, 9189 FullMethod: "/injective.exchange.v1beta1.Query/ActiveStakeGrant", 9190 } 9191 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 9192 return srv.(QueryServer).ActiveStakeGrant(ctx, req.(*QueryActiveStakeGrantRequest)) 9193 } 9194 return interceptor(ctx, in, info, handler) 9195 } 9196 9197 func _Query_GrantAuthorization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 9198 in := new(QueryGrantAuthorizationRequest) 9199 if err := dec(in); err != nil { 9200 return nil, err 9201 } 9202 if interceptor == nil { 9203 return srv.(QueryServer).GrantAuthorization(ctx, in) 9204 } 9205 info := &grpc.UnaryServerInfo{ 9206 Server: srv, 9207 FullMethod: "/injective.exchange.v1beta1.Query/GrantAuthorization", 9208 } 9209 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 9210 return srv.(QueryServer).GrantAuthorization(ctx, req.(*QueryGrantAuthorizationRequest)) 9211 } 9212 return interceptor(ctx, in, info, handler) 9213 } 9214 9215 func _Query_GrantAuthorizations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 9216 in := new(QueryGrantAuthorizationsRequest) 9217 if err := dec(in); err != nil { 9218 return nil, err 9219 } 9220 if interceptor == nil { 9221 return srv.(QueryServer).GrantAuthorizations(ctx, in) 9222 } 9223 info := &grpc.UnaryServerInfo{ 9224 Server: srv, 9225 FullMethod: "/injective.exchange.v1beta1.Query/GrantAuthorizations", 9226 } 9227 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 9228 return srv.(QueryServer).GrantAuthorizations(ctx, req.(*QueryGrantAuthorizationsRequest)) 9229 } 9230 return interceptor(ctx, in, info, handler) 9231 } 9232 9233 var _Query_serviceDesc = grpc.ServiceDesc{ 9234 ServiceName: "injective.exchange.v1beta1.Query", 9235 HandlerType: (*QueryServer)(nil), 9236 Methods: []grpc.MethodDesc{ 9237 { 9238 MethodName: "QueryExchangeParams", 9239 Handler: _Query_QueryExchangeParams_Handler, 9240 }, 9241 { 9242 MethodName: "SubaccountDeposits", 9243 Handler: _Query_SubaccountDeposits_Handler, 9244 }, 9245 { 9246 MethodName: "SubaccountDeposit", 9247 Handler: _Query_SubaccountDeposit_Handler, 9248 }, 9249 { 9250 MethodName: "ExchangeBalances", 9251 Handler: _Query_ExchangeBalances_Handler, 9252 }, 9253 { 9254 MethodName: "AggregateVolume", 9255 Handler: _Query_AggregateVolume_Handler, 9256 }, 9257 { 9258 MethodName: "AggregateVolumes", 9259 Handler: _Query_AggregateVolumes_Handler, 9260 }, 9261 { 9262 MethodName: "AggregateMarketVolume", 9263 Handler: _Query_AggregateMarketVolume_Handler, 9264 }, 9265 { 9266 MethodName: "AggregateMarketVolumes", 9267 Handler: _Query_AggregateMarketVolumes_Handler, 9268 }, 9269 { 9270 MethodName: "DenomDecimal", 9271 Handler: _Query_DenomDecimal_Handler, 9272 }, 9273 { 9274 MethodName: "DenomDecimals", 9275 Handler: _Query_DenomDecimals_Handler, 9276 }, 9277 { 9278 MethodName: "SpotMarkets", 9279 Handler: _Query_SpotMarkets_Handler, 9280 }, 9281 { 9282 MethodName: "SpotMarket", 9283 Handler: _Query_SpotMarket_Handler, 9284 }, 9285 { 9286 MethodName: "FullSpotMarkets", 9287 Handler: _Query_FullSpotMarkets_Handler, 9288 }, 9289 { 9290 MethodName: "FullSpotMarket", 9291 Handler: _Query_FullSpotMarket_Handler, 9292 }, 9293 { 9294 MethodName: "SpotOrderbook", 9295 Handler: _Query_SpotOrderbook_Handler, 9296 }, 9297 { 9298 MethodName: "TraderSpotOrders", 9299 Handler: _Query_TraderSpotOrders_Handler, 9300 }, 9301 { 9302 MethodName: "AccountAddressSpotOrders", 9303 Handler: _Query_AccountAddressSpotOrders_Handler, 9304 }, 9305 { 9306 MethodName: "SpotOrdersByHashes", 9307 Handler: _Query_SpotOrdersByHashes_Handler, 9308 }, 9309 { 9310 MethodName: "SubaccountOrders", 9311 Handler: _Query_SubaccountOrders_Handler, 9312 }, 9313 { 9314 MethodName: "TraderSpotTransientOrders", 9315 Handler: _Query_TraderSpotTransientOrders_Handler, 9316 }, 9317 { 9318 MethodName: "SpotMidPriceAndTOB", 9319 Handler: _Query_SpotMidPriceAndTOB_Handler, 9320 }, 9321 { 9322 MethodName: "DerivativeMidPriceAndTOB", 9323 Handler: _Query_DerivativeMidPriceAndTOB_Handler, 9324 }, 9325 { 9326 MethodName: "DerivativeOrderbook", 9327 Handler: _Query_DerivativeOrderbook_Handler, 9328 }, 9329 { 9330 MethodName: "TraderDerivativeOrders", 9331 Handler: _Query_TraderDerivativeOrders_Handler, 9332 }, 9333 { 9334 MethodName: "AccountAddressDerivativeOrders", 9335 Handler: _Query_AccountAddressDerivativeOrders_Handler, 9336 }, 9337 { 9338 MethodName: "DerivativeOrdersByHashes", 9339 Handler: _Query_DerivativeOrdersByHashes_Handler, 9340 }, 9341 { 9342 MethodName: "TraderDerivativeTransientOrders", 9343 Handler: _Query_TraderDerivativeTransientOrders_Handler, 9344 }, 9345 { 9346 MethodName: "DerivativeMarkets", 9347 Handler: _Query_DerivativeMarkets_Handler, 9348 }, 9349 { 9350 MethodName: "DerivativeMarket", 9351 Handler: _Query_DerivativeMarket_Handler, 9352 }, 9353 { 9354 MethodName: "DerivativeMarketAddress", 9355 Handler: _Query_DerivativeMarketAddress_Handler, 9356 }, 9357 { 9358 MethodName: "SubaccountTradeNonce", 9359 Handler: _Query_SubaccountTradeNonce_Handler, 9360 }, 9361 { 9362 MethodName: "ExchangeModuleState", 9363 Handler: _Query_ExchangeModuleState_Handler, 9364 }, 9365 { 9366 MethodName: "Positions", 9367 Handler: _Query_Positions_Handler, 9368 }, 9369 { 9370 MethodName: "SubaccountPositions", 9371 Handler: _Query_SubaccountPositions_Handler, 9372 }, 9373 { 9374 MethodName: "SubaccountPositionInMarket", 9375 Handler: _Query_SubaccountPositionInMarket_Handler, 9376 }, 9377 { 9378 MethodName: "SubaccountEffectivePositionInMarket", 9379 Handler: _Query_SubaccountEffectivePositionInMarket_Handler, 9380 }, 9381 { 9382 MethodName: "PerpetualMarketInfo", 9383 Handler: _Query_PerpetualMarketInfo_Handler, 9384 }, 9385 { 9386 MethodName: "ExpiryFuturesMarketInfo", 9387 Handler: _Query_ExpiryFuturesMarketInfo_Handler, 9388 }, 9389 { 9390 MethodName: "PerpetualMarketFunding", 9391 Handler: _Query_PerpetualMarketFunding_Handler, 9392 }, 9393 { 9394 MethodName: "SubaccountOrderMetadata", 9395 Handler: _Query_SubaccountOrderMetadata_Handler, 9396 }, 9397 { 9398 MethodName: "TradeRewardPoints", 9399 Handler: _Query_TradeRewardPoints_Handler, 9400 }, 9401 { 9402 MethodName: "PendingTradeRewardPoints", 9403 Handler: _Query_PendingTradeRewardPoints_Handler, 9404 }, 9405 { 9406 MethodName: "TradeRewardCampaign", 9407 Handler: _Query_TradeRewardCampaign_Handler, 9408 }, 9409 { 9410 MethodName: "FeeDiscountAccountInfo", 9411 Handler: _Query_FeeDiscountAccountInfo_Handler, 9412 }, 9413 { 9414 MethodName: "FeeDiscountSchedule", 9415 Handler: _Query_FeeDiscountSchedule_Handler, 9416 }, 9417 { 9418 MethodName: "BalanceMismatches", 9419 Handler: _Query_BalanceMismatches_Handler, 9420 }, 9421 { 9422 MethodName: "BalanceWithBalanceHolds", 9423 Handler: _Query_BalanceWithBalanceHolds_Handler, 9424 }, 9425 { 9426 MethodName: "FeeDiscountTierStatistics", 9427 Handler: _Query_FeeDiscountTierStatistics_Handler, 9428 }, 9429 { 9430 MethodName: "MitoVaultInfos", 9431 Handler: _Query_MitoVaultInfos_Handler, 9432 }, 9433 { 9434 MethodName: "QueryMarketIDFromVault", 9435 Handler: _Query_QueryMarketIDFromVault_Handler, 9436 }, 9437 { 9438 MethodName: "HistoricalTradeRecords", 9439 Handler: _Query_HistoricalTradeRecords_Handler, 9440 }, 9441 { 9442 MethodName: "IsOptedOutOfRewards", 9443 Handler: _Query_IsOptedOutOfRewards_Handler, 9444 }, 9445 { 9446 MethodName: "OptedOutOfRewardsAccounts", 9447 Handler: _Query_OptedOutOfRewardsAccounts_Handler, 9448 }, 9449 { 9450 MethodName: "MarketVolatility", 9451 Handler: _Query_MarketVolatility_Handler, 9452 }, 9453 { 9454 MethodName: "BinaryOptionsMarkets", 9455 Handler: _Query_BinaryOptionsMarkets_Handler, 9456 }, 9457 { 9458 MethodName: "TraderDerivativeConditionalOrders", 9459 Handler: _Query_TraderDerivativeConditionalOrders_Handler, 9460 }, 9461 { 9462 MethodName: "MarketAtomicExecutionFeeMultiplier", 9463 Handler: _Query_MarketAtomicExecutionFeeMultiplier_Handler, 9464 }, 9465 { 9466 MethodName: "ActiveStakeGrant", 9467 Handler: _Query_ActiveStakeGrant_Handler, 9468 }, 9469 { 9470 MethodName: "GrantAuthorization", 9471 Handler: _Query_GrantAuthorization_Handler, 9472 }, 9473 { 9474 MethodName: "GrantAuthorizations", 9475 Handler: _Query_GrantAuthorizations_Handler, 9476 }, 9477 }, 9478 Streams: []grpc.StreamDesc{}, 9479 Metadata: "injective/exchange/v1beta1/query.proto", 9480 } 9481 9482 func (m *Subaccount) Marshal() (dAtA []byte, err error) { 9483 size := m.Size() 9484 dAtA = make([]byte, size) 9485 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 9486 if err != nil { 9487 return nil, err 9488 } 9489 return dAtA[:n], nil 9490 } 9491 9492 func (m *Subaccount) MarshalTo(dAtA []byte) (int, error) { 9493 size := m.Size() 9494 return m.MarshalToSizedBuffer(dAtA[:size]) 9495 } 9496 9497 func (m *Subaccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { 9498 i := len(dAtA) 9499 _ = i 9500 var l int 9501 _ = l 9502 if m.SubaccountNonce != 0 { 9503 i = encodeVarintQuery(dAtA, i, uint64(m.SubaccountNonce)) 9504 i-- 9505 dAtA[i] = 0x10 9506 } 9507 if len(m.Trader) > 0 { 9508 i -= len(m.Trader) 9509 copy(dAtA[i:], m.Trader) 9510 i = encodeVarintQuery(dAtA, i, uint64(len(m.Trader))) 9511 i-- 9512 dAtA[i] = 0xa 9513 } 9514 return len(dAtA) - i, nil 9515 } 9516 9517 func (m *QuerySubaccountOrdersRequest) Marshal() (dAtA []byte, err error) { 9518 size := m.Size() 9519 dAtA = make([]byte, size) 9520 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 9521 if err != nil { 9522 return nil, err 9523 } 9524 return dAtA[:n], nil 9525 } 9526 9527 func (m *QuerySubaccountOrdersRequest) MarshalTo(dAtA []byte) (int, error) { 9528 size := m.Size() 9529 return m.MarshalToSizedBuffer(dAtA[:size]) 9530 } 9531 9532 func (m *QuerySubaccountOrdersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 9533 i := len(dAtA) 9534 _ = i 9535 var l int 9536 _ = l 9537 if len(m.MarketId) > 0 { 9538 i -= len(m.MarketId) 9539 copy(dAtA[i:], m.MarketId) 9540 i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketId))) 9541 i-- 9542 dAtA[i] = 0x12 9543 } 9544 if len(m.SubaccountId) > 0 { 9545 i -= len(m.SubaccountId) 9546 copy(dAtA[i:], m.SubaccountId) 9547 i = encodeVarintQuery(dAtA, i, uint64(len(m.SubaccountId))) 9548 i-- 9549 dAtA[i] = 0xa 9550 } 9551 return len(dAtA) - i, nil 9552 } 9553 9554 func (m *QuerySubaccountOrdersResponse) Marshal() (dAtA []byte, err error) { 9555 size := m.Size() 9556 dAtA = make([]byte, size) 9557 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 9558 if err != nil { 9559 return nil, err 9560 } 9561 return dAtA[:n], nil 9562 } 9563 9564 func (m *QuerySubaccountOrdersResponse) MarshalTo(dAtA []byte) (int, error) { 9565 size := m.Size() 9566 return m.MarshalToSizedBuffer(dAtA[:size]) 9567 } 9568 9569 func (m *QuerySubaccountOrdersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 9570 i := len(dAtA) 9571 _ = i 9572 var l int 9573 _ = l 9574 if len(m.SellOrders) > 0 { 9575 for iNdEx := len(m.SellOrders) - 1; iNdEx >= 0; iNdEx-- { 9576 { 9577 size, err := m.SellOrders[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 9578 if err != nil { 9579 return 0, err 9580 } 9581 i -= size 9582 i = encodeVarintQuery(dAtA, i, uint64(size)) 9583 } 9584 i-- 9585 dAtA[i] = 0x12 9586 } 9587 } 9588 if len(m.BuyOrders) > 0 { 9589 for iNdEx := len(m.BuyOrders) - 1; iNdEx >= 0; iNdEx-- { 9590 { 9591 size, err := m.BuyOrders[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 9592 if err != nil { 9593 return 0, err 9594 } 9595 i -= size 9596 i = encodeVarintQuery(dAtA, i, uint64(size)) 9597 } 9598 i-- 9599 dAtA[i] = 0xa 9600 } 9601 } 9602 return len(dAtA) - i, nil 9603 } 9604 9605 func (m *SubaccountOrderbookMetadataWithMarket) Marshal() (dAtA []byte, err error) { 9606 size := m.Size() 9607 dAtA = make([]byte, size) 9608 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 9609 if err != nil { 9610 return nil, err 9611 } 9612 return dAtA[:n], nil 9613 } 9614 9615 func (m *SubaccountOrderbookMetadataWithMarket) MarshalTo(dAtA []byte) (int, error) { 9616 size := m.Size() 9617 return m.MarshalToSizedBuffer(dAtA[:size]) 9618 } 9619 9620 func (m *SubaccountOrderbookMetadataWithMarket) MarshalToSizedBuffer(dAtA []byte) (int, error) { 9621 i := len(dAtA) 9622 _ = i 9623 var l int 9624 _ = l 9625 if m.IsBuy { 9626 i-- 9627 if m.IsBuy { 9628 dAtA[i] = 1 9629 } else { 9630 dAtA[i] = 0 9631 } 9632 i-- 9633 dAtA[i] = 0x18 9634 } 9635 if len(m.MarketId) > 0 { 9636 i -= len(m.MarketId) 9637 copy(dAtA[i:], m.MarketId) 9638 i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketId))) 9639 i-- 9640 dAtA[i] = 0x12 9641 } 9642 if m.Metadata != nil { 9643 { 9644 size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) 9645 if err != nil { 9646 return 0, err 9647 } 9648 i -= size 9649 i = encodeVarintQuery(dAtA, i, uint64(size)) 9650 } 9651 i-- 9652 dAtA[i] = 0xa 9653 } 9654 return len(dAtA) - i, nil 9655 } 9656 9657 func (m *QueryExchangeParamsRequest) Marshal() (dAtA []byte, err error) { 9658 size := m.Size() 9659 dAtA = make([]byte, size) 9660 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 9661 if err != nil { 9662 return nil, err 9663 } 9664 return dAtA[:n], nil 9665 } 9666 9667 func (m *QueryExchangeParamsRequest) MarshalTo(dAtA []byte) (int, error) { 9668 size := m.Size() 9669 return m.MarshalToSizedBuffer(dAtA[:size]) 9670 } 9671 9672 func (m *QueryExchangeParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 9673 i := len(dAtA) 9674 _ = i 9675 var l int 9676 _ = l 9677 return len(dAtA) - i, nil 9678 } 9679 9680 func (m *QueryExchangeParamsResponse) Marshal() (dAtA []byte, err error) { 9681 size := m.Size() 9682 dAtA = make([]byte, size) 9683 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 9684 if err != nil { 9685 return nil, err 9686 } 9687 return dAtA[:n], nil 9688 } 9689 9690 func (m *QueryExchangeParamsResponse) MarshalTo(dAtA []byte) (int, error) { 9691 size := m.Size() 9692 return m.MarshalToSizedBuffer(dAtA[:size]) 9693 } 9694 9695 func (m *QueryExchangeParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 9696 i := len(dAtA) 9697 _ = i 9698 var l int 9699 _ = l 9700 { 9701 size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) 9702 if err != nil { 9703 return 0, err 9704 } 9705 i -= size 9706 i = encodeVarintQuery(dAtA, i, uint64(size)) 9707 } 9708 i-- 9709 dAtA[i] = 0xa 9710 return len(dAtA) - i, nil 9711 } 9712 9713 func (m *QuerySubaccountDepositsRequest) Marshal() (dAtA []byte, err error) { 9714 size := m.Size() 9715 dAtA = make([]byte, size) 9716 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 9717 if err != nil { 9718 return nil, err 9719 } 9720 return dAtA[:n], nil 9721 } 9722 9723 func (m *QuerySubaccountDepositsRequest) MarshalTo(dAtA []byte) (int, error) { 9724 size := m.Size() 9725 return m.MarshalToSizedBuffer(dAtA[:size]) 9726 } 9727 9728 func (m *QuerySubaccountDepositsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 9729 i := len(dAtA) 9730 _ = i 9731 var l int 9732 _ = l 9733 if m.Subaccount != nil { 9734 { 9735 size, err := m.Subaccount.MarshalToSizedBuffer(dAtA[:i]) 9736 if err != nil { 9737 return 0, err 9738 } 9739 i -= size 9740 i = encodeVarintQuery(dAtA, i, uint64(size)) 9741 } 9742 i-- 9743 dAtA[i] = 0x12 9744 } 9745 if len(m.SubaccountId) > 0 { 9746 i -= len(m.SubaccountId) 9747 copy(dAtA[i:], m.SubaccountId) 9748 i = encodeVarintQuery(dAtA, i, uint64(len(m.SubaccountId))) 9749 i-- 9750 dAtA[i] = 0xa 9751 } 9752 return len(dAtA) - i, nil 9753 } 9754 9755 func (m *QuerySubaccountDepositsResponse) Marshal() (dAtA []byte, err error) { 9756 size := m.Size() 9757 dAtA = make([]byte, size) 9758 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 9759 if err != nil { 9760 return nil, err 9761 } 9762 return dAtA[:n], nil 9763 } 9764 9765 func (m *QuerySubaccountDepositsResponse) MarshalTo(dAtA []byte) (int, error) { 9766 size := m.Size() 9767 return m.MarshalToSizedBuffer(dAtA[:size]) 9768 } 9769 9770 func (m *QuerySubaccountDepositsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 9771 i := len(dAtA) 9772 _ = i 9773 var l int 9774 _ = l 9775 if len(m.Deposits) > 0 { 9776 for k := range m.Deposits { 9777 v := m.Deposits[k] 9778 baseI := i 9779 if v != nil { 9780 { 9781 size, err := v.MarshalToSizedBuffer(dAtA[:i]) 9782 if err != nil { 9783 return 0, err 9784 } 9785 i -= size 9786 i = encodeVarintQuery(dAtA, i, uint64(size)) 9787 } 9788 i-- 9789 dAtA[i] = 0x12 9790 } 9791 i -= len(k) 9792 copy(dAtA[i:], k) 9793 i = encodeVarintQuery(dAtA, i, uint64(len(k))) 9794 i-- 9795 dAtA[i] = 0xa 9796 i = encodeVarintQuery(dAtA, i, uint64(baseI-i)) 9797 i-- 9798 dAtA[i] = 0xa 9799 } 9800 } 9801 return len(dAtA) - i, nil 9802 } 9803 9804 func (m *QueryExchangeBalancesRequest) Marshal() (dAtA []byte, err error) { 9805 size := m.Size() 9806 dAtA = make([]byte, size) 9807 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 9808 if err != nil { 9809 return nil, err 9810 } 9811 return dAtA[:n], nil 9812 } 9813 9814 func (m *QueryExchangeBalancesRequest) MarshalTo(dAtA []byte) (int, error) { 9815 size := m.Size() 9816 return m.MarshalToSizedBuffer(dAtA[:size]) 9817 } 9818 9819 func (m *QueryExchangeBalancesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 9820 i := len(dAtA) 9821 _ = i 9822 var l int 9823 _ = l 9824 return len(dAtA) - i, nil 9825 } 9826 9827 func (m *QueryExchangeBalancesResponse) Marshal() (dAtA []byte, err error) { 9828 size := m.Size() 9829 dAtA = make([]byte, size) 9830 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 9831 if err != nil { 9832 return nil, err 9833 } 9834 return dAtA[:n], nil 9835 } 9836 9837 func (m *QueryExchangeBalancesResponse) MarshalTo(dAtA []byte) (int, error) { 9838 size := m.Size() 9839 return m.MarshalToSizedBuffer(dAtA[:size]) 9840 } 9841 9842 func (m *QueryExchangeBalancesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 9843 i := len(dAtA) 9844 _ = i 9845 var l int 9846 _ = l 9847 if len(m.Balances) > 0 { 9848 for iNdEx := len(m.Balances) - 1; iNdEx >= 0; iNdEx-- { 9849 { 9850 size, err := m.Balances[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 9851 if err != nil { 9852 return 0, err 9853 } 9854 i -= size 9855 i = encodeVarintQuery(dAtA, i, uint64(size)) 9856 } 9857 i-- 9858 dAtA[i] = 0xa 9859 } 9860 } 9861 return len(dAtA) - i, nil 9862 } 9863 9864 func (m *QueryAggregateVolumeRequest) Marshal() (dAtA []byte, err error) { 9865 size := m.Size() 9866 dAtA = make([]byte, size) 9867 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 9868 if err != nil { 9869 return nil, err 9870 } 9871 return dAtA[:n], nil 9872 } 9873 9874 func (m *QueryAggregateVolumeRequest) MarshalTo(dAtA []byte) (int, error) { 9875 size := m.Size() 9876 return m.MarshalToSizedBuffer(dAtA[:size]) 9877 } 9878 9879 func (m *QueryAggregateVolumeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 9880 i := len(dAtA) 9881 _ = i 9882 var l int 9883 _ = l 9884 if len(m.Account) > 0 { 9885 i -= len(m.Account) 9886 copy(dAtA[i:], m.Account) 9887 i = encodeVarintQuery(dAtA, i, uint64(len(m.Account))) 9888 i-- 9889 dAtA[i] = 0xa 9890 } 9891 return len(dAtA) - i, nil 9892 } 9893 9894 func (m *QueryAggregateVolumeResponse) Marshal() (dAtA []byte, err error) { 9895 size := m.Size() 9896 dAtA = make([]byte, size) 9897 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 9898 if err != nil { 9899 return nil, err 9900 } 9901 return dAtA[:n], nil 9902 } 9903 9904 func (m *QueryAggregateVolumeResponse) MarshalTo(dAtA []byte) (int, error) { 9905 size := m.Size() 9906 return m.MarshalToSizedBuffer(dAtA[:size]) 9907 } 9908 9909 func (m *QueryAggregateVolumeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 9910 i := len(dAtA) 9911 _ = i 9912 var l int 9913 _ = l 9914 if len(m.AggregateVolumes) > 0 { 9915 for iNdEx := len(m.AggregateVolumes) - 1; iNdEx >= 0; iNdEx-- { 9916 { 9917 size, err := m.AggregateVolumes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 9918 if err != nil { 9919 return 0, err 9920 } 9921 i -= size 9922 i = encodeVarintQuery(dAtA, i, uint64(size)) 9923 } 9924 i-- 9925 dAtA[i] = 0xa 9926 } 9927 } 9928 return len(dAtA) - i, nil 9929 } 9930 9931 func (m *QueryAggregateVolumesRequest) Marshal() (dAtA []byte, err error) { 9932 size := m.Size() 9933 dAtA = make([]byte, size) 9934 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 9935 if err != nil { 9936 return nil, err 9937 } 9938 return dAtA[:n], nil 9939 } 9940 9941 func (m *QueryAggregateVolumesRequest) MarshalTo(dAtA []byte) (int, error) { 9942 size := m.Size() 9943 return m.MarshalToSizedBuffer(dAtA[:size]) 9944 } 9945 9946 func (m *QueryAggregateVolumesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 9947 i := len(dAtA) 9948 _ = i 9949 var l int 9950 _ = l 9951 if len(m.MarketIds) > 0 { 9952 for iNdEx := len(m.MarketIds) - 1; iNdEx >= 0; iNdEx-- { 9953 i -= len(m.MarketIds[iNdEx]) 9954 copy(dAtA[i:], m.MarketIds[iNdEx]) 9955 i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketIds[iNdEx]))) 9956 i-- 9957 dAtA[i] = 0x12 9958 } 9959 } 9960 if len(m.Accounts) > 0 { 9961 for iNdEx := len(m.Accounts) - 1; iNdEx >= 0; iNdEx-- { 9962 i -= len(m.Accounts[iNdEx]) 9963 copy(dAtA[i:], m.Accounts[iNdEx]) 9964 i = encodeVarintQuery(dAtA, i, uint64(len(m.Accounts[iNdEx]))) 9965 i-- 9966 dAtA[i] = 0xa 9967 } 9968 } 9969 return len(dAtA) - i, nil 9970 } 9971 9972 func (m *QueryAggregateVolumesResponse) Marshal() (dAtA []byte, err error) { 9973 size := m.Size() 9974 dAtA = make([]byte, size) 9975 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 9976 if err != nil { 9977 return nil, err 9978 } 9979 return dAtA[:n], nil 9980 } 9981 9982 func (m *QueryAggregateVolumesResponse) MarshalTo(dAtA []byte) (int, error) { 9983 size := m.Size() 9984 return m.MarshalToSizedBuffer(dAtA[:size]) 9985 } 9986 9987 func (m *QueryAggregateVolumesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 9988 i := len(dAtA) 9989 _ = i 9990 var l int 9991 _ = l 9992 if len(m.AggregateMarketVolumes) > 0 { 9993 for iNdEx := len(m.AggregateMarketVolumes) - 1; iNdEx >= 0; iNdEx-- { 9994 { 9995 size, err := m.AggregateMarketVolumes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 9996 if err != nil { 9997 return 0, err 9998 } 9999 i -= size 10000 i = encodeVarintQuery(dAtA, i, uint64(size)) 10001 } 10002 i-- 10003 dAtA[i] = 0x12 10004 } 10005 } 10006 if len(m.AggregateAccountVolumes) > 0 { 10007 for iNdEx := len(m.AggregateAccountVolumes) - 1; iNdEx >= 0; iNdEx-- { 10008 { 10009 size, err := m.AggregateAccountVolumes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 10010 if err != nil { 10011 return 0, err 10012 } 10013 i -= size 10014 i = encodeVarintQuery(dAtA, i, uint64(size)) 10015 } 10016 i-- 10017 dAtA[i] = 0xa 10018 } 10019 } 10020 return len(dAtA) - i, nil 10021 } 10022 10023 func (m *QueryAggregateMarketVolumeRequest) Marshal() (dAtA []byte, err error) { 10024 size := m.Size() 10025 dAtA = make([]byte, size) 10026 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 10027 if err != nil { 10028 return nil, err 10029 } 10030 return dAtA[:n], nil 10031 } 10032 10033 func (m *QueryAggregateMarketVolumeRequest) MarshalTo(dAtA []byte) (int, error) { 10034 size := m.Size() 10035 return m.MarshalToSizedBuffer(dAtA[:size]) 10036 } 10037 10038 func (m *QueryAggregateMarketVolumeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 10039 i := len(dAtA) 10040 _ = i 10041 var l int 10042 _ = l 10043 if len(m.MarketId) > 0 { 10044 i -= len(m.MarketId) 10045 copy(dAtA[i:], m.MarketId) 10046 i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketId))) 10047 i-- 10048 dAtA[i] = 0xa 10049 } 10050 return len(dAtA) - i, nil 10051 } 10052 10053 func (m *QueryAggregateMarketVolumeResponse) Marshal() (dAtA []byte, err error) { 10054 size := m.Size() 10055 dAtA = make([]byte, size) 10056 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 10057 if err != nil { 10058 return nil, err 10059 } 10060 return dAtA[:n], nil 10061 } 10062 10063 func (m *QueryAggregateMarketVolumeResponse) MarshalTo(dAtA []byte) (int, error) { 10064 size := m.Size() 10065 return m.MarshalToSizedBuffer(dAtA[:size]) 10066 } 10067 10068 func (m *QueryAggregateMarketVolumeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 10069 i := len(dAtA) 10070 _ = i 10071 var l int 10072 _ = l 10073 { 10074 size, err := m.Volume.MarshalToSizedBuffer(dAtA[:i]) 10075 if err != nil { 10076 return 0, err 10077 } 10078 i -= size 10079 i = encodeVarintQuery(dAtA, i, uint64(size)) 10080 } 10081 i-- 10082 dAtA[i] = 0xa 10083 return len(dAtA) - i, nil 10084 } 10085 10086 func (m *QueryDenomDecimalRequest) Marshal() (dAtA []byte, err error) { 10087 size := m.Size() 10088 dAtA = make([]byte, size) 10089 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 10090 if err != nil { 10091 return nil, err 10092 } 10093 return dAtA[:n], nil 10094 } 10095 10096 func (m *QueryDenomDecimalRequest) MarshalTo(dAtA []byte) (int, error) { 10097 size := m.Size() 10098 return m.MarshalToSizedBuffer(dAtA[:size]) 10099 } 10100 10101 func (m *QueryDenomDecimalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 10102 i := len(dAtA) 10103 _ = i 10104 var l int 10105 _ = l 10106 if len(m.Denom) > 0 { 10107 i -= len(m.Denom) 10108 copy(dAtA[i:], m.Denom) 10109 i = encodeVarintQuery(dAtA, i, uint64(len(m.Denom))) 10110 i-- 10111 dAtA[i] = 0xa 10112 } 10113 return len(dAtA) - i, nil 10114 } 10115 10116 func (m *QueryDenomDecimalResponse) Marshal() (dAtA []byte, err error) { 10117 size := m.Size() 10118 dAtA = make([]byte, size) 10119 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 10120 if err != nil { 10121 return nil, err 10122 } 10123 return dAtA[:n], nil 10124 } 10125 10126 func (m *QueryDenomDecimalResponse) MarshalTo(dAtA []byte) (int, error) { 10127 size := m.Size() 10128 return m.MarshalToSizedBuffer(dAtA[:size]) 10129 } 10130 10131 func (m *QueryDenomDecimalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 10132 i := len(dAtA) 10133 _ = i 10134 var l int 10135 _ = l 10136 if m.Decimal != 0 { 10137 i = encodeVarintQuery(dAtA, i, uint64(m.Decimal)) 10138 i-- 10139 dAtA[i] = 0x8 10140 } 10141 return len(dAtA) - i, nil 10142 } 10143 10144 func (m *QueryDenomDecimalsRequest) Marshal() (dAtA []byte, err error) { 10145 size := m.Size() 10146 dAtA = make([]byte, size) 10147 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 10148 if err != nil { 10149 return nil, err 10150 } 10151 return dAtA[:n], nil 10152 } 10153 10154 func (m *QueryDenomDecimalsRequest) MarshalTo(dAtA []byte) (int, error) { 10155 size := m.Size() 10156 return m.MarshalToSizedBuffer(dAtA[:size]) 10157 } 10158 10159 func (m *QueryDenomDecimalsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 10160 i := len(dAtA) 10161 _ = i 10162 var l int 10163 _ = l 10164 if len(m.Denoms) > 0 { 10165 for iNdEx := len(m.Denoms) - 1; iNdEx >= 0; iNdEx-- { 10166 i -= len(m.Denoms[iNdEx]) 10167 copy(dAtA[i:], m.Denoms[iNdEx]) 10168 i = encodeVarintQuery(dAtA, i, uint64(len(m.Denoms[iNdEx]))) 10169 i-- 10170 dAtA[i] = 0xa 10171 } 10172 } 10173 return len(dAtA) - i, nil 10174 } 10175 10176 func (m *QueryDenomDecimalsResponse) Marshal() (dAtA []byte, err error) { 10177 size := m.Size() 10178 dAtA = make([]byte, size) 10179 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 10180 if err != nil { 10181 return nil, err 10182 } 10183 return dAtA[:n], nil 10184 } 10185 10186 func (m *QueryDenomDecimalsResponse) MarshalTo(dAtA []byte) (int, error) { 10187 size := m.Size() 10188 return m.MarshalToSizedBuffer(dAtA[:size]) 10189 } 10190 10191 func (m *QueryDenomDecimalsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 10192 i := len(dAtA) 10193 _ = i 10194 var l int 10195 _ = l 10196 if len(m.DenomDecimals) > 0 { 10197 for iNdEx := len(m.DenomDecimals) - 1; iNdEx >= 0; iNdEx-- { 10198 { 10199 size, err := m.DenomDecimals[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 10200 if err != nil { 10201 return 0, err 10202 } 10203 i -= size 10204 i = encodeVarintQuery(dAtA, i, uint64(size)) 10205 } 10206 i-- 10207 dAtA[i] = 0xa 10208 } 10209 } 10210 return len(dAtA) - i, nil 10211 } 10212 10213 func (m *QueryAggregateMarketVolumesRequest) Marshal() (dAtA []byte, err error) { 10214 size := m.Size() 10215 dAtA = make([]byte, size) 10216 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 10217 if err != nil { 10218 return nil, err 10219 } 10220 return dAtA[:n], nil 10221 } 10222 10223 func (m *QueryAggregateMarketVolumesRequest) MarshalTo(dAtA []byte) (int, error) { 10224 size := m.Size() 10225 return m.MarshalToSizedBuffer(dAtA[:size]) 10226 } 10227 10228 func (m *QueryAggregateMarketVolumesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 10229 i := len(dAtA) 10230 _ = i 10231 var l int 10232 _ = l 10233 if len(m.MarketIds) > 0 { 10234 for iNdEx := len(m.MarketIds) - 1; iNdEx >= 0; iNdEx-- { 10235 i -= len(m.MarketIds[iNdEx]) 10236 copy(dAtA[i:], m.MarketIds[iNdEx]) 10237 i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketIds[iNdEx]))) 10238 i-- 10239 dAtA[i] = 0xa 10240 } 10241 } 10242 return len(dAtA) - i, nil 10243 } 10244 10245 func (m *QueryAggregateMarketVolumesResponse) Marshal() (dAtA []byte, err error) { 10246 size := m.Size() 10247 dAtA = make([]byte, size) 10248 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 10249 if err != nil { 10250 return nil, err 10251 } 10252 return dAtA[:n], nil 10253 } 10254 10255 func (m *QueryAggregateMarketVolumesResponse) MarshalTo(dAtA []byte) (int, error) { 10256 size := m.Size() 10257 return m.MarshalToSizedBuffer(dAtA[:size]) 10258 } 10259 10260 func (m *QueryAggregateMarketVolumesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 10261 i := len(dAtA) 10262 _ = i 10263 var l int 10264 _ = l 10265 if len(m.Volumes) > 0 { 10266 for iNdEx := len(m.Volumes) - 1; iNdEx >= 0; iNdEx-- { 10267 { 10268 size, err := m.Volumes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 10269 if err != nil { 10270 return 0, err 10271 } 10272 i -= size 10273 i = encodeVarintQuery(dAtA, i, uint64(size)) 10274 } 10275 i-- 10276 dAtA[i] = 0xa 10277 } 10278 } 10279 return len(dAtA) - i, nil 10280 } 10281 10282 func (m *QuerySubaccountDepositRequest) Marshal() (dAtA []byte, err error) { 10283 size := m.Size() 10284 dAtA = make([]byte, size) 10285 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 10286 if err != nil { 10287 return nil, err 10288 } 10289 return dAtA[:n], nil 10290 } 10291 10292 func (m *QuerySubaccountDepositRequest) MarshalTo(dAtA []byte) (int, error) { 10293 size := m.Size() 10294 return m.MarshalToSizedBuffer(dAtA[:size]) 10295 } 10296 10297 func (m *QuerySubaccountDepositRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 10298 i := len(dAtA) 10299 _ = i 10300 var l int 10301 _ = l 10302 if len(m.Denom) > 0 { 10303 i -= len(m.Denom) 10304 copy(dAtA[i:], m.Denom) 10305 i = encodeVarintQuery(dAtA, i, uint64(len(m.Denom))) 10306 i-- 10307 dAtA[i] = 0x12 10308 } 10309 if len(m.SubaccountId) > 0 { 10310 i -= len(m.SubaccountId) 10311 copy(dAtA[i:], m.SubaccountId) 10312 i = encodeVarintQuery(dAtA, i, uint64(len(m.SubaccountId))) 10313 i-- 10314 dAtA[i] = 0xa 10315 } 10316 return len(dAtA) - i, nil 10317 } 10318 10319 func (m *QuerySubaccountDepositResponse) Marshal() (dAtA []byte, err error) { 10320 size := m.Size() 10321 dAtA = make([]byte, size) 10322 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 10323 if err != nil { 10324 return nil, err 10325 } 10326 return dAtA[:n], nil 10327 } 10328 10329 func (m *QuerySubaccountDepositResponse) MarshalTo(dAtA []byte) (int, error) { 10330 size := m.Size() 10331 return m.MarshalToSizedBuffer(dAtA[:size]) 10332 } 10333 10334 func (m *QuerySubaccountDepositResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 10335 i := len(dAtA) 10336 _ = i 10337 var l int 10338 _ = l 10339 if m.Deposits != nil { 10340 { 10341 size, err := m.Deposits.MarshalToSizedBuffer(dAtA[:i]) 10342 if err != nil { 10343 return 0, err 10344 } 10345 i -= size 10346 i = encodeVarintQuery(dAtA, i, uint64(size)) 10347 } 10348 i-- 10349 dAtA[i] = 0xa 10350 } 10351 return len(dAtA) - i, nil 10352 } 10353 10354 func (m *QuerySpotMarketsRequest) Marshal() (dAtA []byte, err error) { 10355 size := m.Size() 10356 dAtA = make([]byte, size) 10357 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 10358 if err != nil { 10359 return nil, err 10360 } 10361 return dAtA[:n], nil 10362 } 10363 10364 func (m *QuerySpotMarketsRequest) MarshalTo(dAtA []byte) (int, error) { 10365 size := m.Size() 10366 return m.MarshalToSizedBuffer(dAtA[:size]) 10367 } 10368 10369 func (m *QuerySpotMarketsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 10370 i := len(dAtA) 10371 _ = i 10372 var l int 10373 _ = l 10374 if len(m.MarketIds) > 0 { 10375 for iNdEx := len(m.MarketIds) - 1; iNdEx >= 0; iNdEx-- { 10376 i -= len(m.MarketIds[iNdEx]) 10377 copy(dAtA[i:], m.MarketIds[iNdEx]) 10378 i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketIds[iNdEx]))) 10379 i-- 10380 dAtA[i] = 0x12 10381 } 10382 } 10383 if len(m.Status) > 0 { 10384 i -= len(m.Status) 10385 copy(dAtA[i:], m.Status) 10386 i = encodeVarintQuery(dAtA, i, uint64(len(m.Status))) 10387 i-- 10388 dAtA[i] = 0xa 10389 } 10390 return len(dAtA) - i, nil 10391 } 10392 10393 func (m *QuerySpotMarketsResponse) Marshal() (dAtA []byte, err error) { 10394 size := m.Size() 10395 dAtA = make([]byte, size) 10396 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 10397 if err != nil { 10398 return nil, err 10399 } 10400 return dAtA[:n], nil 10401 } 10402 10403 func (m *QuerySpotMarketsResponse) MarshalTo(dAtA []byte) (int, error) { 10404 size := m.Size() 10405 return m.MarshalToSizedBuffer(dAtA[:size]) 10406 } 10407 10408 func (m *QuerySpotMarketsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 10409 i := len(dAtA) 10410 _ = i 10411 var l int 10412 _ = l 10413 if len(m.Markets) > 0 { 10414 for iNdEx := len(m.Markets) - 1; iNdEx >= 0; iNdEx-- { 10415 { 10416 size, err := m.Markets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 10417 if err != nil { 10418 return 0, err 10419 } 10420 i -= size 10421 i = encodeVarintQuery(dAtA, i, uint64(size)) 10422 } 10423 i-- 10424 dAtA[i] = 0xa 10425 } 10426 } 10427 return len(dAtA) - i, nil 10428 } 10429 10430 func (m *QuerySpotMarketRequest) Marshal() (dAtA []byte, err error) { 10431 size := m.Size() 10432 dAtA = make([]byte, size) 10433 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 10434 if err != nil { 10435 return nil, err 10436 } 10437 return dAtA[:n], nil 10438 } 10439 10440 func (m *QuerySpotMarketRequest) MarshalTo(dAtA []byte) (int, error) { 10441 size := m.Size() 10442 return m.MarshalToSizedBuffer(dAtA[:size]) 10443 } 10444 10445 func (m *QuerySpotMarketRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 10446 i := len(dAtA) 10447 _ = i 10448 var l int 10449 _ = l 10450 if len(m.MarketId) > 0 { 10451 i -= len(m.MarketId) 10452 copy(dAtA[i:], m.MarketId) 10453 i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketId))) 10454 i-- 10455 dAtA[i] = 0xa 10456 } 10457 return len(dAtA) - i, nil 10458 } 10459 10460 func (m *QuerySpotMarketResponse) Marshal() (dAtA []byte, err error) { 10461 size := m.Size() 10462 dAtA = make([]byte, size) 10463 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 10464 if err != nil { 10465 return nil, err 10466 } 10467 return dAtA[:n], nil 10468 } 10469 10470 func (m *QuerySpotMarketResponse) MarshalTo(dAtA []byte) (int, error) { 10471 size := m.Size() 10472 return m.MarshalToSizedBuffer(dAtA[:size]) 10473 } 10474 10475 func (m *QuerySpotMarketResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 10476 i := len(dAtA) 10477 _ = i 10478 var l int 10479 _ = l 10480 if m.Market != nil { 10481 { 10482 size, err := m.Market.MarshalToSizedBuffer(dAtA[:i]) 10483 if err != nil { 10484 return 0, err 10485 } 10486 i -= size 10487 i = encodeVarintQuery(dAtA, i, uint64(size)) 10488 } 10489 i-- 10490 dAtA[i] = 0xa 10491 } 10492 return len(dAtA) - i, nil 10493 } 10494 10495 func (m *QuerySpotOrderbookRequest) Marshal() (dAtA []byte, err error) { 10496 size := m.Size() 10497 dAtA = make([]byte, size) 10498 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 10499 if err != nil { 10500 return nil, err 10501 } 10502 return dAtA[:n], nil 10503 } 10504 10505 func (m *QuerySpotOrderbookRequest) MarshalTo(dAtA []byte) (int, error) { 10506 size := m.Size() 10507 return m.MarshalToSizedBuffer(dAtA[:size]) 10508 } 10509 10510 func (m *QuerySpotOrderbookRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 10511 i := len(dAtA) 10512 _ = i 10513 var l int 10514 _ = l 10515 if m.LimitCumulativeQuantity != nil { 10516 { 10517 size := m.LimitCumulativeQuantity.Size() 10518 i -= size 10519 if _, err := m.LimitCumulativeQuantity.MarshalTo(dAtA[i:]); err != nil { 10520 return 0, err 10521 } 10522 i = encodeVarintQuery(dAtA, i, uint64(size)) 10523 } 10524 i-- 10525 dAtA[i] = 0x2a 10526 } 10527 if m.LimitCumulativeNotional != nil { 10528 { 10529 size := m.LimitCumulativeNotional.Size() 10530 i -= size 10531 if _, err := m.LimitCumulativeNotional.MarshalTo(dAtA[i:]); err != nil { 10532 return 0, err 10533 } 10534 i = encodeVarintQuery(dAtA, i, uint64(size)) 10535 } 10536 i-- 10537 dAtA[i] = 0x22 10538 } 10539 if m.OrderSide != 0 { 10540 i = encodeVarintQuery(dAtA, i, uint64(m.OrderSide)) 10541 i-- 10542 dAtA[i] = 0x18 10543 } 10544 if m.Limit != 0 { 10545 i = encodeVarintQuery(dAtA, i, uint64(m.Limit)) 10546 i-- 10547 dAtA[i] = 0x10 10548 } 10549 if len(m.MarketId) > 0 { 10550 i -= len(m.MarketId) 10551 copy(dAtA[i:], m.MarketId) 10552 i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketId))) 10553 i-- 10554 dAtA[i] = 0xa 10555 } 10556 return len(dAtA) - i, nil 10557 } 10558 10559 func (m *QuerySpotOrderbookResponse) Marshal() (dAtA []byte, err error) { 10560 size := m.Size() 10561 dAtA = make([]byte, size) 10562 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 10563 if err != nil { 10564 return nil, err 10565 } 10566 return dAtA[:n], nil 10567 } 10568 10569 func (m *QuerySpotOrderbookResponse) MarshalTo(dAtA []byte) (int, error) { 10570 size := m.Size() 10571 return m.MarshalToSizedBuffer(dAtA[:size]) 10572 } 10573 10574 func (m *QuerySpotOrderbookResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 10575 i := len(dAtA) 10576 _ = i 10577 var l int 10578 _ = l 10579 if len(m.SellsPriceLevel) > 0 { 10580 for iNdEx := len(m.SellsPriceLevel) - 1; iNdEx >= 0; iNdEx-- { 10581 { 10582 size, err := m.SellsPriceLevel[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 10583 if err != nil { 10584 return 0, err 10585 } 10586 i -= size 10587 i = encodeVarintQuery(dAtA, i, uint64(size)) 10588 } 10589 i-- 10590 dAtA[i] = 0x12 10591 } 10592 } 10593 if len(m.BuysPriceLevel) > 0 { 10594 for iNdEx := len(m.BuysPriceLevel) - 1; iNdEx >= 0; iNdEx-- { 10595 { 10596 size, err := m.BuysPriceLevel[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 10597 if err != nil { 10598 return 0, err 10599 } 10600 i -= size 10601 i = encodeVarintQuery(dAtA, i, uint64(size)) 10602 } 10603 i-- 10604 dAtA[i] = 0xa 10605 } 10606 } 10607 return len(dAtA) - i, nil 10608 } 10609 10610 func (m *FullSpotMarket) Marshal() (dAtA []byte, err error) { 10611 size := m.Size() 10612 dAtA = make([]byte, size) 10613 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 10614 if err != nil { 10615 return nil, err 10616 } 10617 return dAtA[:n], nil 10618 } 10619 10620 func (m *FullSpotMarket) MarshalTo(dAtA []byte) (int, error) { 10621 size := m.Size() 10622 return m.MarshalToSizedBuffer(dAtA[:size]) 10623 } 10624 10625 func (m *FullSpotMarket) MarshalToSizedBuffer(dAtA []byte) (int, error) { 10626 i := len(dAtA) 10627 _ = i 10628 var l int 10629 _ = l 10630 if m.MidPriceAndTob != nil { 10631 { 10632 size, err := m.MidPriceAndTob.MarshalToSizedBuffer(dAtA[:i]) 10633 if err != nil { 10634 return 0, err 10635 } 10636 i -= size 10637 i = encodeVarintQuery(dAtA, i, uint64(size)) 10638 } 10639 i-- 10640 dAtA[i] = 0x12 10641 } 10642 if m.Market != nil { 10643 { 10644 size, err := m.Market.MarshalToSizedBuffer(dAtA[:i]) 10645 if err != nil { 10646 return 0, err 10647 } 10648 i -= size 10649 i = encodeVarintQuery(dAtA, i, uint64(size)) 10650 } 10651 i-- 10652 dAtA[i] = 0xa 10653 } 10654 return len(dAtA) - i, nil 10655 } 10656 10657 func (m *QueryFullSpotMarketsRequest) Marshal() (dAtA []byte, err error) { 10658 size := m.Size() 10659 dAtA = make([]byte, size) 10660 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 10661 if err != nil { 10662 return nil, err 10663 } 10664 return dAtA[:n], nil 10665 } 10666 10667 func (m *QueryFullSpotMarketsRequest) MarshalTo(dAtA []byte) (int, error) { 10668 size := m.Size() 10669 return m.MarshalToSizedBuffer(dAtA[:size]) 10670 } 10671 10672 func (m *QueryFullSpotMarketsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 10673 i := len(dAtA) 10674 _ = i 10675 var l int 10676 _ = l 10677 if m.WithMidPriceAndTob { 10678 i-- 10679 if m.WithMidPriceAndTob { 10680 dAtA[i] = 1 10681 } else { 10682 dAtA[i] = 0 10683 } 10684 i-- 10685 dAtA[i] = 0x18 10686 } 10687 if len(m.MarketIds) > 0 { 10688 for iNdEx := len(m.MarketIds) - 1; iNdEx >= 0; iNdEx-- { 10689 i -= len(m.MarketIds[iNdEx]) 10690 copy(dAtA[i:], m.MarketIds[iNdEx]) 10691 i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketIds[iNdEx]))) 10692 i-- 10693 dAtA[i] = 0x12 10694 } 10695 } 10696 if len(m.Status) > 0 { 10697 i -= len(m.Status) 10698 copy(dAtA[i:], m.Status) 10699 i = encodeVarintQuery(dAtA, i, uint64(len(m.Status))) 10700 i-- 10701 dAtA[i] = 0xa 10702 } 10703 return len(dAtA) - i, nil 10704 } 10705 10706 func (m *QueryFullSpotMarketsResponse) Marshal() (dAtA []byte, err error) { 10707 size := m.Size() 10708 dAtA = make([]byte, size) 10709 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 10710 if err != nil { 10711 return nil, err 10712 } 10713 return dAtA[:n], nil 10714 } 10715 10716 func (m *QueryFullSpotMarketsResponse) MarshalTo(dAtA []byte) (int, error) { 10717 size := m.Size() 10718 return m.MarshalToSizedBuffer(dAtA[:size]) 10719 } 10720 10721 func (m *QueryFullSpotMarketsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 10722 i := len(dAtA) 10723 _ = i 10724 var l int 10725 _ = l 10726 if len(m.Markets) > 0 { 10727 for iNdEx := len(m.Markets) - 1; iNdEx >= 0; iNdEx-- { 10728 { 10729 size, err := m.Markets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 10730 if err != nil { 10731 return 0, err 10732 } 10733 i -= size 10734 i = encodeVarintQuery(dAtA, i, uint64(size)) 10735 } 10736 i-- 10737 dAtA[i] = 0xa 10738 } 10739 } 10740 return len(dAtA) - i, nil 10741 } 10742 10743 func (m *QueryFullSpotMarketRequest) Marshal() (dAtA []byte, err error) { 10744 size := m.Size() 10745 dAtA = make([]byte, size) 10746 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 10747 if err != nil { 10748 return nil, err 10749 } 10750 return dAtA[:n], nil 10751 } 10752 10753 func (m *QueryFullSpotMarketRequest) MarshalTo(dAtA []byte) (int, error) { 10754 size := m.Size() 10755 return m.MarshalToSizedBuffer(dAtA[:size]) 10756 } 10757 10758 func (m *QueryFullSpotMarketRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 10759 i := len(dAtA) 10760 _ = i 10761 var l int 10762 _ = l 10763 if m.WithMidPriceAndTob { 10764 i-- 10765 if m.WithMidPriceAndTob { 10766 dAtA[i] = 1 10767 } else { 10768 dAtA[i] = 0 10769 } 10770 i-- 10771 dAtA[i] = 0x10 10772 } 10773 if len(m.MarketId) > 0 { 10774 i -= len(m.MarketId) 10775 copy(dAtA[i:], m.MarketId) 10776 i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketId))) 10777 i-- 10778 dAtA[i] = 0xa 10779 } 10780 return len(dAtA) - i, nil 10781 } 10782 10783 func (m *QueryFullSpotMarketResponse) Marshal() (dAtA []byte, err error) { 10784 size := m.Size() 10785 dAtA = make([]byte, size) 10786 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 10787 if err != nil { 10788 return nil, err 10789 } 10790 return dAtA[:n], nil 10791 } 10792 10793 func (m *QueryFullSpotMarketResponse) MarshalTo(dAtA []byte) (int, error) { 10794 size := m.Size() 10795 return m.MarshalToSizedBuffer(dAtA[:size]) 10796 } 10797 10798 func (m *QueryFullSpotMarketResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 10799 i := len(dAtA) 10800 _ = i 10801 var l int 10802 _ = l 10803 if m.Market != nil { 10804 { 10805 size, err := m.Market.MarshalToSizedBuffer(dAtA[:i]) 10806 if err != nil { 10807 return 0, err 10808 } 10809 i -= size 10810 i = encodeVarintQuery(dAtA, i, uint64(size)) 10811 } 10812 i-- 10813 dAtA[i] = 0xa 10814 } 10815 return len(dAtA) - i, nil 10816 } 10817 10818 func (m *QuerySpotOrdersByHashesRequest) Marshal() (dAtA []byte, err error) { 10819 size := m.Size() 10820 dAtA = make([]byte, size) 10821 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 10822 if err != nil { 10823 return nil, err 10824 } 10825 return dAtA[:n], nil 10826 } 10827 10828 func (m *QuerySpotOrdersByHashesRequest) MarshalTo(dAtA []byte) (int, error) { 10829 size := m.Size() 10830 return m.MarshalToSizedBuffer(dAtA[:size]) 10831 } 10832 10833 func (m *QuerySpotOrdersByHashesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 10834 i := len(dAtA) 10835 _ = i 10836 var l int 10837 _ = l 10838 if len(m.OrderHashes) > 0 { 10839 for iNdEx := len(m.OrderHashes) - 1; iNdEx >= 0; iNdEx-- { 10840 i -= len(m.OrderHashes[iNdEx]) 10841 copy(dAtA[i:], m.OrderHashes[iNdEx]) 10842 i = encodeVarintQuery(dAtA, i, uint64(len(m.OrderHashes[iNdEx]))) 10843 i-- 10844 dAtA[i] = 0x1a 10845 } 10846 } 10847 if len(m.SubaccountId) > 0 { 10848 i -= len(m.SubaccountId) 10849 copy(dAtA[i:], m.SubaccountId) 10850 i = encodeVarintQuery(dAtA, i, uint64(len(m.SubaccountId))) 10851 i-- 10852 dAtA[i] = 0x12 10853 } 10854 if len(m.MarketId) > 0 { 10855 i -= len(m.MarketId) 10856 copy(dAtA[i:], m.MarketId) 10857 i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketId))) 10858 i-- 10859 dAtA[i] = 0xa 10860 } 10861 return len(dAtA) - i, nil 10862 } 10863 10864 func (m *QuerySpotOrdersByHashesResponse) Marshal() (dAtA []byte, err error) { 10865 size := m.Size() 10866 dAtA = make([]byte, size) 10867 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 10868 if err != nil { 10869 return nil, err 10870 } 10871 return dAtA[:n], nil 10872 } 10873 10874 func (m *QuerySpotOrdersByHashesResponse) MarshalTo(dAtA []byte) (int, error) { 10875 size := m.Size() 10876 return m.MarshalToSizedBuffer(dAtA[:size]) 10877 } 10878 10879 func (m *QuerySpotOrdersByHashesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 10880 i := len(dAtA) 10881 _ = i 10882 var l int 10883 _ = l 10884 if len(m.Orders) > 0 { 10885 for iNdEx := len(m.Orders) - 1; iNdEx >= 0; iNdEx-- { 10886 { 10887 size, err := m.Orders[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 10888 if err != nil { 10889 return 0, err 10890 } 10891 i -= size 10892 i = encodeVarintQuery(dAtA, i, uint64(size)) 10893 } 10894 i-- 10895 dAtA[i] = 0xa 10896 } 10897 } 10898 return len(dAtA) - i, nil 10899 } 10900 10901 func (m *QueryTraderSpotOrdersRequest) Marshal() (dAtA []byte, err error) { 10902 size := m.Size() 10903 dAtA = make([]byte, size) 10904 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 10905 if err != nil { 10906 return nil, err 10907 } 10908 return dAtA[:n], nil 10909 } 10910 10911 func (m *QueryTraderSpotOrdersRequest) MarshalTo(dAtA []byte) (int, error) { 10912 size := m.Size() 10913 return m.MarshalToSizedBuffer(dAtA[:size]) 10914 } 10915 10916 func (m *QueryTraderSpotOrdersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 10917 i := len(dAtA) 10918 _ = i 10919 var l int 10920 _ = l 10921 if len(m.SubaccountId) > 0 { 10922 i -= len(m.SubaccountId) 10923 copy(dAtA[i:], m.SubaccountId) 10924 i = encodeVarintQuery(dAtA, i, uint64(len(m.SubaccountId))) 10925 i-- 10926 dAtA[i] = 0x12 10927 } 10928 if len(m.MarketId) > 0 { 10929 i -= len(m.MarketId) 10930 copy(dAtA[i:], m.MarketId) 10931 i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketId))) 10932 i-- 10933 dAtA[i] = 0xa 10934 } 10935 return len(dAtA) - i, nil 10936 } 10937 10938 func (m *QueryAccountAddressSpotOrdersRequest) Marshal() (dAtA []byte, err error) { 10939 size := m.Size() 10940 dAtA = make([]byte, size) 10941 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 10942 if err != nil { 10943 return nil, err 10944 } 10945 return dAtA[:n], nil 10946 } 10947 10948 func (m *QueryAccountAddressSpotOrdersRequest) MarshalTo(dAtA []byte) (int, error) { 10949 size := m.Size() 10950 return m.MarshalToSizedBuffer(dAtA[:size]) 10951 } 10952 10953 func (m *QueryAccountAddressSpotOrdersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 10954 i := len(dAtA) 10955 _ = i 10956 var l int 10957 _ = l 10958 if len(m.AccountAddress) > 0 { 10959 i -= len(m.AccountAddress) 10960 copy(dAtA[i:], m.AccountAddress) 10961 i = encodeVarintQuery(dAtA, i, uint64(len(m.AccountAddress))) 10962 i-- 10963 dAtA[i] = 0x12 10964 } 10965 if len(m.MarketId) > 0 { 10966 i -= len(m.MarketId) 10967 copy(dAtA[i:], m.MarketId) 10968 i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketId))) 10969 i-- 10970 dAtA[i] = 0xa 10971 } 10972 return len(dAtA) - i, nil 10973 } 10974 10975 func (m *TrimmedSpotLimitOrder) Marshal() (dAtA []byte, err error) { 10976 size := m.Size() 10977 dAtA = make([]byte, size) 10978 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 10979 if err != nil { 10980 return nil, err 10981 } 10982 return dAtA[:n], nil 10983 } 10984 10985 func (m *TrimmedSpotLimitOrder) MarshalTo(dAtA []byte) (int, error) { 10986 size := m.Size() 10987 return m.MarshalToSizedBuffer(dAtA[:size]) 10988 } 10989 10990 func (m *TrimmedSpotLimitOrder) MarshalToSizedBuffer(dAtA []byte) (int, error) { 10991 i := len(dAtA) 10992 _ = i 10993 var l int 10994 _ = l 10995 if len(m.Cid) > 0 { 10996 i -= len(m.Cid) 10997 copy(dAtA[i:], m.Cid) 10998 i = encodeVarintQuery(dAtA, i, uint64(len(m.Cid))) 10999 i-- 11000 dAtA[i] = 0x32 11001 } 11002 if len(m.OrderHash) > 0 { 11003 i -= len(m.OrderHash) 11004 copy(dAtA[i:], m.OrderHash) 11005 i = encodeVarintQuery(dAtA, i, uint64(len(m.OrderHash))) 11006 i-- 11007 dAtA[i] = 0x2a 11008 } 11009 if m.IsBuy { 11010 i-- 11011 if m.IsBuy { 11012 dAtA[i] = 1 11013 } else { 11014 dAtA[i] = 0 11015 } 11016 i-- 11017 dAtA[i] = 0x20 11018 } 11019 { 11020 size := m.Fillable.Size() 11021 i -= size 11022 if _, err := m.Fillable.MarshalTo(dAtA[i:]); err != nil { 11023 return 0, err 11024 } 11025 i = encodeVarintQuery(dAtA, i, uint64(size)) 11026 } 11027 i-- 11028 dAtA[i] = 0x1a 11029 { 11030 size := m.Quantity.Size() 11031 i -= size 11032 if _, err := m.Quantity.MarshalTo(dAtA[i:]); err != nil { 11033 return 0, err 11034 } 11035 i = encodeVarintQuery(dAtA, i, uint64(size)) 11036 } 11037 i-- 11038 dAtA[i] = 0x12 11039 { 11040 size := m.Price.Size() 11041 i -= size 11042 if _, err := m.Price.MarshalTo(dAtA[i:]); err != nil { 11043 return 0, err 11044 } 11045 i = encodeVarintQuery(dAtA, i, uint64(size)) 11046 } 11047 i-- 11048 dAtA[i] = 0xa 11049 return len(dAtA) - i, nil 11050 } 11051 11052 func (m *QueryTraderSpotOrdersResponse) Marshal() (dAtA []byte, err error) { 11053 size := m.Size() 11054 dAtA = make([]byte, size) 11055 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 11056 if err != nil { 11057 return nil, err 11058 } 11059 return dAtA[:n], nil 11060 } 11061 11062 func (m *QueryTraderSpotOrdersResponse) MarshalTo(dAtA []byte) (int, error) { 11063 size := m.Size() 11064 return m.MarshalToSizedBuffer(dAtA[:size]) 11065 } 11066 11067 func (m *QueryTraderSpotOrdersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 11068 i := len(dAtA) 11069 _ = i 11070 var l int 11071 _ = l 11072 if len(m.Orders) > 0 { 11073 for iNdEx := len(m.Orders) - 1; iNdEx >= 0; iNdEx-- { 11074 { 11075 size, err := m.Orders[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 11076 if err != nil { 11077 return 0, err 11078 } 11079 i -= size 11080 i = encodeVarintQuery(dAtA, i, uint64(size)) 11081 } 11082 i-- 11083 dAtA[i] = 0xa 11084 } 11085 } 11086 return len(dAtA) - i, nil 11087 } 11088 11089 func (m *QueryAccountAddressSpotOrdersResponse) Marshal() (dAtA []byte, err error) { 11090 size := m.Size() 11091 dAtA = make([]byte, size) 11092 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 11093 if err != nil { 11094 return nil, err 11095 } 11096 return dAtA[:n], nil 11097 } 11098 11099 func (m *QueryAccountAddressSpotOrdersResponse) MarshalTo(dAtA []byte) (int, error) { 11100 size := m.Size() 11101 return m.MarshalToSizedBuffer(dAtA[:size]) 11102 } 11103 11104 func (m *QueryAccountAddressSpotOrdersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 11105 i := len(dAtA) 11106 _ = i 11107 var l int 11108 _ = l 11109 if len(m.Orders) > 0 { 11110 for iNdEx := len(m.Orders) - 1; iNdEx >= 0; iNdEx-- { 11111 { 11112 size, err := m.Orders[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 11113 if err != nil { 11114 return 0, err 11115 } 11116 i -= size 11117 i = encodeVarintQuery(dAtA, i, uint64(size)) 11118 } 11119 i-- 11120 dAtA[i] = 0xa 11121 } 11122 } 11123 return len(dAtA) - i, nil 11124 } 11125 11126 func (m *QuerySpotMidPriceAndTOBRequest) Marshal() (dAtA []byte, err error) { 11127 size := m.Size() 11128 dAtA = make([]byte, size) 11129 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 11130 if err != nil { 11131 return nil, err 11132 } 11133 return dAtA[:n], nil 11134 } 11135 11136 func (m *QuerySpotMidPriceAndTOBRequest) MarshalTo(dAtA []byte) (int, error) { 11137 size := m.Size() 11138 return m.MarshalToSizedBuffer(dAtA[:size]) 11139 } 11140 11141 func (m *QuerySpotMidPriceAndTOBRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 11142 i := len(dAtA) 11143 _ = i 11144 var l int 11145 _ = l 11146 if len(m.MarketId) > 0 { 11147 i -= len(m.MarketId) 11148 copy(dAtA[i:], m.MarketId) 11149 i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketId))) 11150 i-- 11151 dAtA[i] = 0xa 11152 } 11153 return len(dAtA) - i, nil 11154 } 11155 11156 func (m *QuerySpotMidPriceAndTOBResponse) Marshal() (dAtA []byte, err error) { 11157 size := m.Size() 11158 dAtA = make([]byte, size) 11159 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 11160 if err != nil { 11161 return nil, err 11162 } 11163 return dAtA[:n], nil 11164 } 11165 11166 func (m *QuerySpotMidPriceAndTOBResponse) MarshalTo(dAtA []byte) (int, error) { 11167 size := m.Size() 11168 return m.MarshalToSizedBuffer(dAtA[:size]) 11169 } 11170 11171 func (m *QuerySpotMidPriceAndTOBResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 11172 i := len(dAtA) 11173 _ = i 11174 var l int 11175 _ = l 11176 if m.BestSellPrice != nil { 11177 { 11178 size := m.BestSellPrice.Size() 11179 i -= size 11180 if _, err := m.BestSellPrice.MarshalTo(dAtA[i:]); err != nil { 11181 return 0, err 11182 } 11183 i = encodeVarintQuery(dAtA, i, uint64(size)) 11184 } 11185 i-- 11186 dAtA[i] = 0x1a 11187 } 11188 if m.BestBuyPrice != nil { 11189 { 11190 size := m.BestBuyPrice.Size() 11191 i -= size 11192 if _, err := m.BestBuyPrice.MarshalTo(dAtA[i:]); err != nil { 11193 return 0, err 11194 } 11195 i = encodeVarintQuery(dAtA, i, uint64(size)) 11196 } 11197 i-- 11198 dAtA[i] = 0x12 11199 } 11200 if m.MidPrice != nil { 11201 { 11202 size := m.MidPrice.Size() 11203 i -= size 11204 if _, err := m.MidPrice.MarshalTo(dAtA[i:]); err != nil { 11205 return 0, err 11206 } 11207 i = encodeVarintQuery(dAtA, i, uint64(size)) 11208 } 11209 i-- 11210 dAtA[i] = 0xa 11211 } 11212 return len(dAtA) - i, nil 11213 } 11214 11215 func (m *QueryDerivativeMidPriceAndTOBRequest) Marshal() (dAtA []byte, err error) { 11216 size := m.Size() 11217 dAtA = make([]byte, size) 11218 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 11219 if err != nil { 11220 return nil, err 11221 } 11222 return dAtA[:n], nil 11223 } 11224 11225 func (m *QueryDerivativeMidPriceAndTOBRequest) MarshalTo(dAtA []byte) (int, error) { 11226 size := m.Size() 11227 return m.MarshalToSizedBuffer(dAtA[:size]) 11228 } 11229 11230 func (m *QueryDerivativeMidPriceAndTOBRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 11231 i := len(dAtA) 11232 _ = i 11233 var l int 11234 _ = l 11235 if len(m.MarketId) > 0 { 11236 i -= len(m.MarketId) 11237 copy(dAtA[i:], m.MarketId) 11238 i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketId))) 11239 i-- 11240 dAtA[i] = 0xa 11241 } 11242 return len(dAtA) - i, nil 11243 } 11244 11245 func (m *QueryDerivativeMidPriceAndTOBResponse) Marshal() (dAtA []byte, err error) { 11246 size := m.Size() 11247 dAtA = make([]byte, size) 11248 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 11249 if err != nil { 11250 return nil, err 11251 } 11252 return dAtA[:n], nil 11253 } 11254 11255 func (m *QueryDerivativeMidPriceAndTOBResponse) MarshalTo(dAtA []byte) (int, error) { 11256 size := m.Size() 11257 return m.MarshalToSizedBuffer(dAtA[:size]) 11258 } 11259 11260 func (m *QueryDerivativeMidPriceAndTOBResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 11261 i := len(dAtA) 11262 _ = i 11263 var l int 11264 _ = l 11265 if m.BestSellPrice != nil { 11266 { 11267 size := m.BestSellPrice.Size() 11268 i -= size 11269 if _, err := m.BestSellPrice.MarshalTo(dAtA[i:]); err != nil { 11270 return 0, err 11271 } 11272 i = encodeVarintQuery(dAtA, i, uint64(size)) 11273 } 11274 i-- 11275 dAtA[i] = 0x1a 11276 } 11277 if m.BestBuyPrice != nil { 11278 { 11279 size := m.BestBuyPrice.Size() 11280 i -= size 11281 if _, err := m.BestBuyPrice.MarshalTo(dAtA[i:]); err != nil { 11282 return 0, err 11283 } 11284 i = encodeVarintQuery(dAtA, i, uint64(size)) 11285 } 11286 i-- 11287 dAtA[i] = 0x12 11288 } 11289 if m.MidPrice != nil { 11290 { 11291 size := m.MidPrice.Size() 11292 i -= size 11293 if _, err := m.MidPrice.MarshalTo(dAtA[i:]); err != nil { 11294 return 0, err 11295 } 11296 i = encodeVarintQuery(dAtA, i, uint64(size)) 11297 } 11298 i-- 11299 dAtA[i] = 0xa 11300 } 11301 return len(dAtA) - i, nil 11302 } 11303 11304 func (m *QueryDerivativeOrderbookRequest) Marshal() (dAtA []byte, err error) { 11305 size := m.Size() 11306 dAtA = make([]byte, size) 11307 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 11308 if err != nil { 11309 return nil, err 11310 } 11311 return dAtA[:n], nil 11312 } 11313 11314 func (m *QueryDerivativeOrderbookRequest) MarshalTo(dAtA []byte) (int, error) { 11315 size := m.Size() 11316 return m.MarshalToSizedBuffer(dAtA[:size]) 11317 } 11318 11319 func (m *QueryDerivativeOrderbookRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 11320 i := len(dAtA) 11321 _ = i 11322 var l int 11323 _ = l 11324 if m.LimitCumulativeNotional != nil { 11325 { 11326 size := m.LimitCumulativeNotional.Size() 11327 i -= size 11328 if _, err := m.LimitCumulativeNotional.MarshalTo(dAtA[i:]); err != nil { 11329 return 0, err 11330 } 11331 i = encodeVarintQuery(dAtA, i, uint64(size)) 11332 } 11333 i-- 11334 dAtA[i] = 0x1a 11335 } 11336 if m.Limit != 0 { 11337 i = encodeVarintQuery(dAtA, i, uint64(m.Limit)) 11338 i-- 11339 dAtA[i] = 0x10 11340 } 11341 if len(m.MarketId) > 0 { 11342 i -= len(m.MarketId) 11343 copy(dAtA[i:], m.MarketId) 11344 i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketId))) 11345 i-- 11346 dAtA[i] = 0xa 11347 } 11348 return len(dAtA) - i, nil 11349 } 11350 11351 func (m *QueryDerivativeOrderbookResponse) Marshal() (dAtA []byte, err error) { 11352 size := m.Size() 11353 dAtA = make([]byte, size) 11354 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 11355 if err != nil { 11356 return nil, err 11357 } 11358 return dAtA[:n], nil 11359 } 11360 11361 func (m *QueryDerivativeOrderbookResponse) MarshalTo(dAtA []byte) (int, error) { 11362 size := m.Size() 11363 return m.MarshalToSizedBuffer(dAtA[:size]) 11364 } 11365 11366 func (m *QueryDerivativeOrderbookResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 11367 i := len(dAtA) 11368 _ = i 11369 var l int 11370 _ = l 11371 if len(m.SellsPriceLevel) > 0 { 11372 for iNdEx := len(m.SellsPriceLevel) - 1; iNdEx >= 0; iNdEx-- { 11373 { 11374 size, err := m.SellsPriceLevel[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 11375 if err != nil { 11376 return 0, err 11377 } 11378 i -= size 11379 i = encodeVarintQuery(dAtA, i, uint64(size)) 11380 } 11381 i-- 11382 dAtA[i] = 0x12 11383 } 11384 } 11385 if len(m.BuysPriceLevel) > 0 { 11386 for iNdEx := len(m.BuysPriceLevel) - 1; iNdEx >= 0; iNdEx-- { 11387 { 11388 size, err := m.BuysPriceLevel[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 11389 if err != nil { 11390 return 0, err 11391 } 11392 i -= size 11393 i = encodeVarintQuery(dAtA, i, uint64(size)) 11394 } 11395 i-- 11396 dAtA[i] = 0xa 11397 } 11398 } 11399 return len(dAtA) - i, nil 11400 } 11401 11402 func (m *QueryTraderSpotOrdersToCancelUpToAmountRequest) Marshal() (dAtA []byte, err error) { 11403 size := m.Size() 11404 dAtA = make([]byte, size) 11405 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 11406 if err != nil { 11407 return nil, err 11408 } 11409 return dAtA[:n], nil 11410 } 11411 11412 func (m *QueryTraderSpotOrdersToCancelUpToAmountRequest) MarshalTo(dAtA []byte) (int, error) { 11413 size := m.Size() 11414 return m.MarshalToSizedBuffer(dAtA[:size]) 11415 } 11416 11417 func (m *QueryTraderSpotOrdersToCancelUpToAmountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 11418 i := len(dAtA) 11419 _ = i 11420 var l int 11421 _ = l 11422 if m.ReferencePrice != nil { 11423 { 11424 size := m.ReferencePrice.Size() 11425 i -= size 11426 if _, err := m.ReferencePrice.MarshalTo(dAtA[i:]); err != nil { 11427 return 0, err 11428 } 11429 i = encodeVarintQuery(dAtA, i, uint64(size)) 11430 } 11431 i-- 11432 dAtA[i] = 0x32 11433 } 11434 if m.Strategy != 0 { 11435 i = encodeVarintQuery(dAtA, i, uint64(m.Strategy)) 11436 i-- 11437 dAtA[i] = 0x28 11438 } 11439 { 11440 size := m.QuoteAmount.Size() 11441 i -= size 11442 if _, err := m.QuoteAmount.MarshalTo(dAtA[i:]); err != nil { 11443 return 0, err 11444 } 11445 i = encodeVarintQuery(dAtA, i, uint64(size)) 11446 } 11447 i-- 11448 dAtA[i] = 0x22 11449 { 11450 size := m.BaseAmount.Size() 11451 i -= size 11452 if _, err := m.BaseAmount.MarshalTo(dAtA[i:]); err != nil { 11453 return 0, err 11454 } 11455 i = encodeVarintQuery(dAtA, i, uint64(size)) 11456 } 11457 i-- 11458 dAtA[i] = 0x1a 11459 if len(m.SubaccountId) > 0 { 11460 i -= len(m.SubaccountId) 11461 copy(dAtA[i:], m.SubaccountId) 11462 i = encodeVarintQuery(dAtA, i, uint64(len(m.SubaccountId))) 11463 i-- 11464 dAtA[i] = 0x12 11465 } 11466 if len(m.MarketId) > 0 { 11467 i -= len(m.MarketId) 11468 copy(dAtA[i:], m.MarketId) 11469 i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketId))) 11470 i-- 11471 dAtA[i] = 0xa 11472 } 11473 return len(dAtA) - i, nil 11474 } 11475 11476 func (m *QueryTraderDerivativeOrdersToCancelUpToAmountRequest) Marshal() (dAtA []byte, err error) { 11477 size := m.Size() 11478 dAtA = make([]byte, size) 11479 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 11480 if err != nil { 11481 return nil, err 11482 } 11483 return dAtA[:n], nil 11484 } 11485 11486 func (m *QueryTraderDerivativeOrdersToCancelUpToAmountRequest) MarshalTo(dAtA []byte) (int, error) { 11487 size := m.Size() 11488 return m.MarshalToSizedBuffer(dAtA[:size]) 11489 } 11490 11491 func (m *QueryTraderDerivativeOrdersToCancelUpToAmountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 11492 i := len(dAtA) 11493 _ = i 11494 var l int 11495 _ = l 11496 if m.ReferencePrice != nil { 11497 { 11498 size := m.ReferencePrice.Size() 11499 i -= size 11500 if _, err := m.ReferencePrice.MarshalTo(dAtA[i:]); err != nil { 11501 return 0, err 11502 } 11503 i = encodeVarintQuery(dAtA, i, uint64(size)) 11504 } 11505 i-- 11506 dAtA[i] = 0x2a 11507 } 11508 if m.Strategy != 0 { 11509 i = encodeVarintQuery(dAtA, i, uint64(m.Strategy)) 11510 i-- 11511 dAtA[i] = 0x20 11512 } 11513 { 11514 size := m.QuoteAmount.Size() 11515 i -= size 11516 if _, err := m.QuoteAmount.MarshalTo(dAtA[i:]); err != nil { 11517 return 0, err 11518 } 11519 i = encodeVarintQuery(dAtA, i, uint64(size)) 11520 } 11521 i-- 11522 dAtA[i] = 0x1a 11523 if len(m.SubaccountId) > 0 { 11524 i -= len(m.SubaccountId) 11525 copy(dAtA[i:], m.SubaccountId) 11526 i = encodeVarintQuery(dAtA, i, uint64(len(m.SubaccountId))) 11527 i-- 11528 dAtA[i] = 0x12 11529 } 11530 if len(m.MarketId) > 0 { 11531 i -= len(m.MarketId) 11532 copy(dAtA[i:], m.MarketId) 11533 i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketId))) 11534 i-- 11535 dAtA[i] = 0xa 11536 } 11537 return len(dAtA) - i, nil 11538 } 11539 11540 func (m *QueryTraderDerivativeOrdersRequest) Marshal() (dAtA []byte, err error) { 11541 size := m.Size() 11542 dAtA = make([]byte, size) 11543 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 11544 if err != nil { 11545 return nil, err 11546 } 11547 return dAtA[:n], nil 11548 } 11549 11550 func (m *QueryTraderDerivativeOrdersRequest) MarshalTo(dAtA []byte) (int, error) { 11551 size := m.Size() 11552 return m.MarshalToSizedBuffer(dAtA[:size]) 11553 } 11554 11555 func (m *QueryTraderDerivativeOrdersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 11556 i := len(dAtA) 11557 _ = i 11558 var l int 11559 _ = l 11560 if len(m.SubaccountId) > 0 { 11561 i -= len(m.SubaccountId) 11562 copy(dAtA[i:], m.SubaccountId) 11563 i = encodeVarintQuery(dAtA, i, uint64(len(m.SubaccountId))) 11564 i-- 11565 dAtA[i] = 0x12 11566 } 11567 if len(m.MarketId) > 0 { 11568 i -= len(m.MarketId) 11569 copy(dAtA[i:], m.MarketId) 11570 i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketId))) 11571 i-- 11572 dAtA[i] = 0xa 11573 } 11574 return len(dAtA) - i, nil 11575 } 11576 11577 func (m *QueryAccountAddressDerivativeOrdersRequest) Marshal() (dAtA []byte, err error) { 11578 size := m.Size() 11579 dAtA = make([]byte, size) 11580 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 11581 if err != nil { 11582 return nil, err 11583 } 11584 return dAtA[:n], nil 11585 } 11586 11587 func (m *QueryAccountAddressDerivativeOrdersRequest) MarshalTo(dAtA []byte) (int, error) { 11588 size := m.Size() 11589 return m.MarshalToSizedBuffer(dAtA[:size]) 11590 } 11591 11592 func (m *QueryAccountAddressDerivativeOrdersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 11593 i := len(dAtA) 11594 _ = i 11595 var l int 11596 _ = l 11597 if len(m.AccountAddress) > 0 { 11598 i -= len(m.AccountAddress) 11599 copy(dAtA[i:], m.AccountAddress) 11600 i = encodeVarintQuery(dAtA, i, uint64(len(m.AccountAddress))) 11601 i-- 11602 dAtA[i] = 0x12 11603 } 11604 if len(m.MarketId) > 0 { 11605 i -= len(m.MarketId) 11606 copy(dAtA[i:], m.MarketId) 11607 i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketId))) 11608 i-- 11609 dAtA[i] = 0xa 11610 } 11611 return len(dAtA) - i, nil 11612 } 11613 11614 func (m *TrimmedDerivativeLimitOrder) Marshal() (dAtA []byte, err error) { 11615 size := m.Size() 11616 dAtA = make([]byte, size) 11617 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 11618 if err != nil { 11619 return nil, err 11620 } 11621 return dAtA[:n], nil 11622 } 11623 11624 func (m *TrimmedDerivativeLimitOrder) MarshalTo(dAtA []byte) (int, error) { 11625 size := m.Size() 11626 return m.MarshalToSizedBuffer(dAtA[:size]) 11627 } 11628 11629 func (m *TrimmedDerivativeLimitOrder) MarshalToSizedBuffer(dAtA []byte) (int, error) { 11630 i := len(dAtA) 11631 _ = i 11632 var l int 11633 _ = l 11634 if len(m.Cid) > 0 { 11635 i -= len(m.Cid) 11636 copy(dAtA[i:], m.Cid) 11637 i = encodeVarintQuery(dAtA, i, uint64(len(m.Cid))) 11638 i-- 11639 dAtA[i] = 0x3a 11640 } 11641 if len(m.OrderHash) > 0 { 11642 i -= len(m.OrderHash) 11643 copy(dAtA[i:], m.OrderHash) 11644 i = encodeVarintQuery(dAtA, i, uint64(len(m.OrderHash))) 11645 i-- 11646 dAtA[i] = 0x32 11647 } 11648 if m.IsBuy { 11649 i-- 11650 if m.IsBuy { 11651 dAtA[i] = 1 11652 } else { 11653 dAtA[i] = 0 11654 } 11655 i-- 11656 dAtA[i] = 0x28 11657 } 11658 { 11659 size := m.Fillable.Size() 11660 i -= size 11661 if _, err := m.Fillable.MarshalTo(dAtA[i:]); err != nil { 11662 return 0, err 11663 } 11664 i = encodeVarintQuery(dAtA, i, uint64(size)) 11665 } 11666 i-- 11667 dAtA[i] = 0x22 11668 { 11669 size := m.Margin.Size() 11670 i -= size 11671 if _, err := m.Margin.MarshalTo(dAtA[i:]); err != nil { 11672 return 0, err 11673 } 11674 i = encodeVarintQuery(dAtA, i, uint64(size)) 11675 } 11676 i-- 11677 dAtA[i] = 0x1a 11678 { 11679 size := m.Quantity.Size() 11680 i -= size 11681 if _, err := m.Quantity.MarshalTo(dAtA[i:]); err != nil { 11682 return 0, err 11683 } 11684 i = encodeVarintQuery(dAtA, i, uint64(size)) 11685 } 11686 i-- 11687 dAtA[i] = 0x12 11688 { 11689 size := m.Price.Size() 11690 i -= size 11691 if _, err := m.Price.MarshalTo(dAtA[i:]); err != nil { 11692 return 0, err 11693 } 11694 i = encodeVarintQuery(dAtA, i, uint64(size)) 11695 } 11696 i-- 11697 dAtA[i] = 0xa 11698 return len(dAtA) - i, nil 11699 } 11700 11701 func (m *QueryTraderDerivativeOrdersResponse) Marshal() (dAtA []byte, err error) { 11702 size := m.Size() 11703 dAtA = make([]byte, size) 11704 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 11705 if err != nil { 11706 return nil, err 11707 } 11708 return dAtA[:n], nil 11709 } 11710 11711 func (m *QueryTraderDerivativeOrdersResponse) MarshalTo(dAtA []byte) (int, error) { 11712 size := m.Size() 11713 return m.MarshalToSizedBuffer(dAtA[:size]) 11714 } 11715 11716 func (m *QueryTraderDerivativeOrdersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 11717 i := len(dAtA) 11718 _ = i 11719 var l int 11720 _ = l 11721 if len(m.Orders) > 0 { 11722 for iNdEx := len(m.Orders) - 1; iNdEx >= 0; iNdEx-- { 11723 { 11724 size, err := m.Orders[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 11725 if err != nil { 11726 return 0, err 11727 } 11728 i -= size 11729 i = encodeVarintQuery(dAtA, i, uint64(size)) 11730 } 11731 i-- 11732 dAtA[i] = 0xa 11733 } 11734 } 11735 return len(dAtA) - i, nil 11736 } 11737 11738 func (m *QueryAccountAddressDerivativeOrdersResponse) Marshal() (dAtA []byte, err error) { 11739 size := m.Size() 11740 dAtA = make([]byte, size) 11741 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 11742 if err != nil { 11743 return nil, err 11744 } 11745 return dAtA[:n], nil 11746 } 11747 11748 func (m *QueryAccountAddressDerivativeOrdersResponse) MarshalTo(dAtA []byte) (int, error) { 11749 size := m.Size() 11750 return m.MarshalToSizedBuffer(dAtA[:size]) 11751 } 11752 11753 func (m *QueryAccountAddressDerivativeOrdersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 11754 i := len(dAtA) 11755 _ = i 11756 var l int 11757 _ = l 11758 if len(m.Orders) > 0 { 11759 for iNdEx := len(m.Orders) - 1; iNdEx >= 0; iNdEx-- { 11760 { 11761 size, err := m.Orders[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 11762 if err != nil { 11763 return 0, err 11764 } 11765 i -= size 11766 i = encodeVarintQuery(dAtA, i, uint64(size)) 11767 } 11768 i-- 11769 dAtA[i] = 0xa 11770 } 11771 } 11772 return len(dAtA) - i, nil 11773 } 11774 11775 func (m *QueryDerivativeOrdersByHashesRequest) Marshal() (dAtA []byte, err error) { 11776 size := m.Size() 11777 dAtA = make([]byte, size) 11778 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 11779 if err != nil { 11780 return nil, err 11781 } 11782 return dAtA[:n], nil 11783 } 11784 11785 func (m *QueryDerivativeOrdersByHashesRequest) MarshalTo(dAtA []byte) (int, error) { 11786 size := m.Size() 11787 return m.MarshalToSizedBuffer(dAtA[:size]) 11788 } 11789 11790 func (m *QueryDerivativeOrdersByHashesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 11791 i := len(dAtA) 11792 _ = i 11793 var l int 11794 _ = l 11795 if len(m.OrderHashes) > 0 { 11796 for iNdEx := len(m.OrderHashes) - 1; iNdEx >= 0; iNdEx-- { 11797 i -= len(m.OrderHashes[iNdEx]) 11798 copy(dAtA[i:], m.OrderHashes[iNdEx]) 11799 i = encodeVarintQuery(dAtA, i, uint64(len(m.OrderHashes[iNdEx]))) 11800 i-- 11801 dAtA[i] = 0x1a 11802 } 11803 } 11804 if len(m.SubaccountId) > 0 { 11805 i -= len(m.SubaccountId) 11806 copy(dAtA[i:], m.SubaccountId) 11807 i = encodeVarintQuery(dAtA, i, uint64(len(m.SubaccountId))) 11808 i-- 11809 dAtA[i] = 0x12 11810 } 11811 if len(m.MarketId) > 0 { 11812 i -= len(m.MarketId) 11813 copy(dAtA[i:], m.MarketId) 11814 i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketId))) 11815 i-- 11816 dAtA[i] = 0xa 11817 } 11818 return len(dAtA) - i, nil 11819 } 11820 11821 func (m *QueryDerivativeOrdersByHashesResponse) Marshal() (dAtA []byte, err error) { 11822 size := m.Size() 11823 dAtA = make([]byte, size) 11824 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 11825 if err != nil { 11826 return nil, err 11827 } 11828 return dAtA[:n], nil 11829 } 11830 11831 func (m *QueryDerivativeOrdersByHashesResponse) MarshalTo(dAtA []byte) (int, error) { 11832 size := m.Size() 11833 return m.MarshalToSizedBuffer(dAtA[:size]) 11834 } 11835 11836 func (m *QueryDerivativeOrdersByHashesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 11837 i := len(dAtA) 11838 _ = i 11839 var l int 11840 _ = l 11841 if len(m.Orders) > 0 { 11842 for iNdEx := len(m.Orders) - 1; iNdEx >= 0; iNdEx-- { 11843 { 11844 size, err := m.Orders[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 11845 if err != nil { 11846 return 0, err 11847 } 11848 i -= size 11849 i = encodeVarintQuery(dAtA, i, uint64(size)) 11850 } 11851 i-- 11852 dAtA[i] = 0xa 11853 } 11854 } 11855 return len(dAtA) - i, nil 11856 } 11857 11858 func (m *QueryDerivativeMarketsRequest) Marshal() (dAtA []byte, err error) { 11859 size := m.Size() 11860 dAtA = make([]byte, size) 11861 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 11862 if err != nil { 11863 return nil, err 11864 } 11865 return dAtA[:n], nil 11866 } 11867 11868 func (m *QueryDerivativeMarketsRequest) MarshalTo(dAtA []byte) (int, error) { 11869 size := m.Size() 11870 return m.MarshalToSizedBuffer(dAtA[:size]) 11871 } 11872 11873 func (m *QueryDerivativeMarketsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 11874 i := len(dAtA) 11875 _ = i 11876 var l int 11877 _ = l 11878 if m.WithMidPriceAndTob { 11879 i-- 11880 if m.WithMidPriceAndTob { 11881 dAtA[i] = 1 11882 } else { 11883 dAtA[i] = 0 11884 } 11885 i-- 11886 dAtA[i] = 0x18 11887 } 11888 if len(m.MarketIds) > 0 { 11889 for iNdEx := len(m.MarketIds) - 1; iNdEx >= 0; iNdEx-- { 11890 i -= len(m.MarketIds[iNdEx]) 11891 copy(dAtA[i:], m.MarketIds[iNdEx]) 11892 i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketIds[iNdEx]))) 11893 i-- 11894 dAtA[i] = 0x12 11895 } 11896 } 11897 if len(m.Status) > 0 { 11898 i -= len(m.Status) 11899 copy(dAtA[i:], m.Status) 11900 i = encodeVarintQuery(dAtA, i, uint64(len(m.Status))) 11901 i-- 11902 dAtA[i] = 0xa 11903 } 11904 return len(dAtA) - i, nil 11905 } 11906 11907 func (m *PriceLevel) Marshal() (dAtA []byte, err error) { 11908 size := m.Size() 11909 dAtA = make([]byte, size) 11910 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 11911 if err != nil { 11912 return nil, err 11913 } 11914 return dAtA[:n], nil 11915 } 11916 11917 func (m *PriceLevel) MarshalTo(dAtA []byte) (int, error) { 11918 size := m.Size() 11919 return m.MarshalToSizedBuffer(dAtA[:size]) 11920 } 11921 11922 func (m *PriceLevel) MarshalToSizedBuffer(dAtA []byte) (int, error) { 11923 i := len(dAtA) 11924 _ = i 11925 var l int 11926 _ = l 11927 { 11928 size := m.Quantity.Size() 11929 i -= size 11930 if _, err := m.Quantity.MarshalTo(dAtA[i:]); err != nil { 11931 return 0, err 11932 } 11933 i = encodeVarintQuery(dAtA, i, uint64(size)) 11934 } 11935 i-- 11936 dAtA[i] = 0x12 11937 { 11938 size := m.Price.Size() 11939 i -= size 11940 if _, err := m.Price.MarshalTo(dAtA[i:]); err != nil { 11941 return 0, err 11942 } 11943 i = encodeVarintQuery(dAtA, i, uint64(size)) 11944 } 11945 i-- 11946 dAtA[i] = 0xa 11947 return len(dAtA) - i, nil 11948 } 11949 11950 func (m *PerpetualMarketState) Marshal() (dAtA []byte, err error) { 11951 size := m.Size() 11952 dAtA = make([]byte, size) 11953 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 11954 if err != nil { 11955 return nil, err 11956 } 11957 return dAtA[:n], nil 11958 } 11959 11960 func (m *PerpetualMarketState) MarshalTo(dAtA []byte) (int, error) { 11961 size := m.Size() 11962 return m.MarshalToSizedBuffer(dAtA[:size]) 11963 } 11964 11965 func (m *PerpetualMarketState) MarshalToSizedBuffer(dAtA []byte) (int, error) { 11966 i := len(dAtA) 11967 _ = i 11968 var l int 11969 _ = l 11970 if m.FundingInfo != nil { 11971 { 11972 size, err := m.FundingInfo.MarshalToSizedBuffer(dAtA[:i]) 11973 if err != nil { 11974 return 0, err 11975 } 11976 i -= size 11977 i = encodeVarintQuery(dAtA, i, uint64(size)) 11978 } 11979 i-- 11980 dAtA[i] = 0x12 11981 } 11982 if m.MarketInfo != nil { 11983 { 11984 size, err := m.MarketInfo.MarshalToSizedBuffer(dAtA[:i]) 11985 if err != nil { 11986 return 0, err 11987 } 11988 i -= size 11989 i = encodeVarintQuery(dAtA, i, uint64(size)) 11990 } 11991 i-- 11992 dAtA[i] = 0xa 11993 } 11994 return len(dAtA) - i, nil 11995 } 11996 11997 func (m *FullDerivativeMarket) Marshal() (dAtA []byte, err error) { 11998 size := m.Size() 11999 dAtA = make([]byte, size) 12000 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 12001 if err != nil { 12002 return nil, err 12003 } 12004 return dAtA[:n], nil 12005 } 12006 12007 func (m *FullDerivativeMarket) MarshalTo(dAtA []byte) (int, error) { 12008 size := m.Size() 12009 return m.MarshalToSizedBuffer(dAtA[:size]) 12010 } 12011 12012 func (m *FullDerivativeMarket) MarshalToSizedBuffer(dAtA []byte) (int, error) { 12013 i := len(dAtA) 12014 _ = i 12015 var l int 12016 _ = l 12017 if m.MidPriceAndTob != nil { 12018 { 12019 size, err := m.MidPriceAndTob.MarshalToSizedBuffer(dAtA[:i]) 12020 if err != nil { 12021 return 0, err 12022 } 12023 i -= size 12024 i = encodeVarintQuery(dAtA, i, uint64(size)) 12025 } 12026 i-- 12027 dAtA[i] = 0x2a 12028 } 12029 { 12030 size := m.MarkPrice.Size() 12031 i -= size 12032 if _, err := m.MarkPrice.MarshalTo(dAtA[i:]); err != nil { 12033 return 0, err 12034 } 12035 i = encodeVarintQuery(dAtA, i, uint64(size)) 12036 } 12037 i-- 12038 dAtA[i] = 0x22 12039 if m.Info != nil { 12040 { 12041 size := m.Info.Size() 12042 i -= size 12043 if _, err := m.Info.MarshalTo(dAtA[i:]); err != nil { 12044 return 0, err 12045 } 12046 } 12047 } 12048 if m.Market != nil { 12049 { 12050 size, err := m.Market.MarshalToSizedBuffer(dAtA[:i]) 12051 if err != nil { 12052 return 0, err 12053 } 12054 i -= size 12055 i = encodeVarintQuery(dAtA, i, uint64(size)) 12056 } 12057 i-- 12058 dAtA[i] = 0xa 12059 } 12060 return len(dAtA) - i, nil 12061 } 12062 12063 func (m *FullDerivativeMarket_PerpetualInfo) MarshalTo(dAtA []byte) (int, error) { 12064 size := m.Size() 12065 return m.MarshalToSizedBuffer(dAtA[:size]) 12066 } 12067 12068 func (m *FullDerivativeMarket_PerpetualInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 12069 i := len(dAtA) 12070 if m.PerpetualInfo != nil { 12071 { 12072 size, err := m.PerpetualInfo.MarshalToSizedBuffer(dAtA[:i]) 12073 if err != nil { 12074 return 0, err 12075 } 12076 i -= size 12077 i = encodeVarintQuery(dAtA, i, uint64(size)) 12078 } 12079 i-- 12080 dAtA[i] = 0x12 12081 } 12082 return len(dAtA) - i, nil 12083 } 12084 func (m *FullDerivativeMarket_FuturesInfo) MarshalTo(dAtA []byte) (int, error) { 12085 size := m.Size() 12086 return m.MarshalToSizedBuffer(dAtA[:size]) 12087 } 12088 12089 func (m *FullDerivativeMarket_FuturesInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 12090 i := len(dAtA) 12091 if m.FuturesInfo != nil { 12092 { 12093 size, err := m.FuturesInfo.MarshalToSizedBuffer(dAtA[:i]) 12094 if err != nil { 12095 return 0, err 12096 } 12097 i -= size 12098 i = encodeVarintQuery(dAtA, i, uint64(size)) 12099 } 12100 i-- 12101 dAtA[i] = 0x1a 12102 } 12103 return len(dAtA) - i, nil 12104 } 12105 func (m *QueryDerivativeMarketsResponse) Marshal() (dAtA []byte, err error) { 12106 size := m.Size() 12107 dAtA = make([]byte, size) 12108 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 12109 if err != nil { 12110 return nil, err 12111 } 12112 return dAtA[:n], nil 12113 } 12114 12115 func (m *QueryDerivativeMarketsResponse) MarshalTo(dAtA []byte) (int, error) { 12116 size := m.Size() 12117 return m.MarshalToSizedBuffer(dAtA[:size]) 12118 } 12119 12120 func (m *QueryDerivativeMarketsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 12121 i := len(dAtA) 12122 _ = i 12123 var l int 12124 _ = l 12125 if len(m.Markets) > 0 { 12126 for iNdEx := len(m.Markets) - 1; iNdEx >= 0; iNdEx-- { 12127 { 12128 size, err := m.Markets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 12129 if err != nil { 12130 return 0, err 12131 } 12132 i -= size 12133 i = encodeVarintQuery(dAtA, i, uint64(size)) 12134 } 12135 i-- 12136 dAtA[i] = 0xa 12137 } 12138 } 12139 return len(dAtA) - i, nil 12140 } 12141 12142 func (m *QueryDerivativeMarketRequest) Marshal() (dAtA []byte, err error) { 12143 size := m.Size() 12144 dAtA = make([]byte, size) 12145 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 12146 if err != nil { 12147 return nil, err 12148 } 12149 return dAtA[:n], nil 12150 } 12151 12152 func (m *QueryDerivativeMarketRequest) MarshalTo(dAtA []byte) (int, error) { 12153 size := m.Size() 12154 return m.MarshalToSizedBuffer(dAtA[:size]) 12155 } 12156 12157 func (m *QueryDerivativeMarketRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 12158 i := len(dAtA) 12159 _ = i 12160 var l int 12161 _ = l 12162 if len(m.MarketId) > 0 { 12163 i -= len(m.MarketId) 12164 copy(dAtA[i:], m.MarketId) 12165 i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketId))) 12166 i-- 12167 dAtA[i] = 0xa 12168 } 12169 return len(dAtA) - i, nil 12170 } 12171 12172 func (m *QueryDerivativeMarketResponse) Marshal() (dAtA []byte, err error) { 12173 size := m.Size() 12174 dAtA = make([]byte, size) 12175 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 12176 if err != nil { 12177 return nil, err 12178 } 12179 return dAtA[:n], nil 12180 } 12181 12182 func (m *QueryDerivativeMarketResponse) MarshalTo(dAtA []byte) (int, error) { 12183 size := m.Size() 12184 return m.MarshalToSizedBuffer(dAtA[:size]) 12185 } 12186 12187 func (m *QueryDerivativeMarketResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 12188 i := len(dAtA) 12189 _ = i 12190 var l int 12191 _ = l 12192 if m.Market != nil { 12193 { 12194 size, err := m.Market.MarshalToSizedBuffer(dAtA[:i]) 12195 if err != nil { 12196 return 0, err 12197 } 12198 i -= size 12199 i = encodeVarintQuery(dAtA, i, uint64(size)) 12200 } 12201 i-- 12202 dAtA[i] = 0xa 12203 } 12204 return len(dAtA) - i, nil 12205 } 12206 12207 func (m *QueryDerivativeMarketAddressRequest) Marshal() (dAtA []byte, err error) { 12208 size := m.Size() 12209 dAtA = make([]byte, size) 12210 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 12211 if err != nil { 12212 return nil, err 12213 } 12214 return dAtA[:n], nil 12215 } 12216 12217 func (m *QueryDerivativeMarketAddressRequest) MarshalTo(dAtA []byte) (int, error) { 12218 size := m.Size() 12219 return m.MarshalToSizedBuffer(dAtA[:size]) 12220 } 12221 12222 func (m *QueryDerivativeMarketAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 12223 i := len(dAtA) 12224 _ = i 12225 var l int 12226 _ = l 12227 if len(m.MarketId) > 0 { 12228 i -= len(m.MarketId) 12229 copy(dAtA[i:], m.MarketId) 12230 i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketId))) 12231 i-- 12232 dAtA[i] = 0xa 12233 } 12234 return len(dAtA) - i, nil 12235 } 12236 12237 func (m *QueryDerivativeMarketAddressResponse) Marshal() (dAtA []byte, err error) { 12238 size := m.Size() 12239 dAtA = make([]byte, size) 12240 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 12241 if err != nil { 12242 return nil, err 12243 } 12244 return dAtA[:n], nil 12245 } 12246 12247 func (m *QueryDerivativeMarketAddressResponse) MarshalTo(dAtA []byte) (int, error) { 12248 size := m.Size() 12249 return m.MarshalToSizedBuffer(dAtA[:size]) 12250 } 12251 12252 func (m *QueryDerivativeMarketAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 12253 i := len(dAtA) 12254 _ = i 12255 var l int 12256 _ = l 12257 if len(m.SubaccountId) > 0 { 12258 i -= len(m.SubaccountId) 12259 copy(dAtA[i:], m.SubaccountId) 12260 i = encodeVarintQuery(dAtA, i, uint64(len(m.SubaccountId))) 12261 i-- 12262 dAtA[i] = 0x12 12263 } 12264 if len(m.Address) > 0 { 12265 i -= len(m.Address) 12266 copy(dAtA[i:], m.Address) 12267 i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) 12268 i-- 12269 dAtA[i] = 0xa 12270 } 12271 return len(dAtA) - i, nil 12272 } 12273 12274 func (m *QuerySubaccountTradeNonceRequest) Marshal() (dAtA []byte, err error) { 12275 size := m.Size() 12276 dAtA = make([]byte, size) 12277 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 12278 if err != nil { 12279 return nil, err 12280 } 12281 return dAtA[:n], nil 12282 } 12283 12284 func (m *QuerySubaccountTradeNonceRequest) MarshalTo(dAtA []byte) (int, error) { 12285 size := m.Size() 12286 return m.MarshalToSizedBuffer(dAtA[:size]) 12287 } 12288 12289 func (m *QuerySubaccountTradeNonceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 12290 i := len(dAtA) 12291 _ = i 12292 var l int 12293 _ = l 12294 if len(m.SubaccountId) > 0 { 12295 i -= len(m.SubaccountId) 12296 copy(dAtA[i:], m.SubaccountId) 12297 i = encodeVarintQuery(dAtA, i, uint64(len(m.SubaccountId))) 12298 i-- 12299 dAtA[i] = 0xa 12300 } 12301 return len(dAtA) - i, nil 12302 } 12303 12304 func (m *QuerySubaccountPositionsRequest) Marshal() (dAtA []byte, err error) { 12305 size := m.Size() 12306 dAtA = make([]byte, size) 12307 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 12308 if err != nil { 12309 return nil, err 12310 } 12311 return dAtA[:n], nil 12312 } 12313 12314 func (m *QuerySubaccountPositionsRequest) MarshalTo(dAtA []byte) (int, error) { 12315 size := m.Size() 12316 return m.MarshalToSizedBuffer(dAtA[:size]) 12317 } 12318 12319 func (m *QuerySubaccountPositionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 12320 i := len(dAtA) 12321 _ = i 12322 var l int 12323 _ = l 12324 if len(m.SubaccountId) > 0 { 12325 i -= len(m.SubaccountId) 12326 copy(dAtA[i:], m.SubaccountId) 12327 i = encodeVarintQuery(dAtA, i, uint64(len(m.SubaccountId))) 12328 i-- 12329 dAtA[i] = 0xa 12330 } 12331 return len(dAtA) - i, nil 12332 } 12333 12334 func (m *QuerySubaccountPositionInMarketRequest) Marshal() (dAtA []byte, err error) { 12335 size := m.Size() 12336 dAtA = make([]byte, size) 12337 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 12338 if err != nil { 12339 return nil, err 12340 } 12341 return dAtA[:n], nil 12342 } 12343 12344 func (m *QuerySubaccountPositionInMarketRequest) MarshalTo(dAtA []byte) (int, error) { 12345 size := m.Size() 12346 return m.MarshalToSizedBuffer(dAtA[:size]) 12347 } 12348 12349 func (m *QuerySubaccountPositionInMarketRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 12350 i := len(dAtA) 12351 _ = i 12352 var l int 12353 _ = l 12354 if len(m.MarketId) > 0 { 12355 i -= len(m.MarketId) 12356 copy(dAtA[i:], m.MarketId) 12357 i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketId))) 12358 i-- 12359 dAtA[i] = 0x12 12360 } 12361 if len(m.SubaccountId) > 0 { 12362 i -= len(m.SubaccountId) 12363 copy(dAtA[i:], m.SubaccountId) 12364 i = encodeVarintQuery(dAtA, i, uint64(len(m.SubaccountId))) 12365 i-- 12366 dAtA[i] = 0xa 12367 } 12368 return len(dAtA) - i, nil 12369 } 12370 12371 func (m *QuerySubaccountEffectivePositionInMarketRequest) Marshal() (dAtA []byte, err error) { 12372 size := m.Size() 12373 dAtA = make([]byte, size) 12374 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 12375 if err != nil { 12376 return nil, err 12377 } 12378 return dAtA[:n], nil 12379 } 12380 12381 func (m *QuerySubaccountEffectivePositionInMarketRequest) MarshalTo(dAtA []byte) (int, error) { 12382 size := m.Size() 12383 return m.MarshalToSizedBuffer(dAtA[:size]) 12384 } 12385 12386 func (m *QuerySubaccountEffectivePositionInMarketRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 12387 i := len(dAtA) 12388 _ = i 12389 var l int 12390 _ = l 12391 if len(m.MarketId) > 0 { 12392 i -= len(m.MarketId) 12393 copy(dAtA[i:], m.MarketId) 12394 i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketId))) 12395 i-- 12396 dAtA[i] = 0x12 12397 } 12398 if len(m.SubaccountId) > 0 { 12399 i -= len(m.SubaccountId) 12400 copy(dAtA[i:], m.SubaccountId) 12401 i = encodeVarintQuery(dAtA, i, uint64(len(m.SubaccountId))) 12402 i-- 12403 dAtA[i] = 0xa 12404 } 12405 return len(dAtA) - i, nil 12406 } 12407 12408 func (m *QuerySubaccountOrderMetadataRequest) Marshal() (dAtA []byte, err error) { 12409 size := m.Size() 12410 dAtA = make([]byte, size) 12411 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 12412 if err != nil { 12413 return nil, err 12414 } 12415 return dAtA[:n], nil 12416 } 12417 12418 func (m *QuerySubaccountOrderMetadataRequest) MarshalTo(dAtA []byte) (int, error) { 12419 size := m.Size() 12420 return m.MarshalToSizedBuffer(dAtA[:size]) 12421 } 12422 12423 func (m *QuerySubaccountOrderMetadataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 12424 i := len(dAtA) 12425 _ = i 12426 var l int 12427 _ = l 12428 if len(m.SubaccountId) > 0 { 12429 i -= len(m.SubaccountId) 12430 copy(dAtA[i:], m.SubaccountId) 12431 i = encodeVarintQuery(dAtA, i, uint64(len(m.SubaccountId))) 12432 i-- 12433 dAtA[i] = 0xa 12434 } 12435 return len(dAtA) - i, nil 12436 } 12437 12438 func (m *QuerySubaccountPositionsResponse) Marshal() (dAtA []byte, err error) { 12439 size := m.Size() 12440 dAtA = make([]byte, size) 12441 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 12442 if err != nil { 12443 return nil, err 12444 } 12445 return dAtA[:n], nil 12446 } 12447 12448 func (m *QuerySubaccountPositionsResponse) MarshalTo(dAtA []byte) (int, error) { 12449 size := m.Size() 12450 return m.MarshalToSizedBuffer(dAtA[:size]) 12451 } 12452 12453 func (m *QuerySubaccountPositionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 12454 i := len(dAtA) 12455 _ = i 12456 var l int 12457 _ = l 12458 if len(m.State) > 0 { 12459 for iNdEx := len(m.State) - 1; iNdEx >= 0; iNdEx-- { 12460 { 12461 size, err := m.State[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 12462 if err != nil { 12463 return 0, err 12464 } 12465 i -= size 12466 i = encodeVarintQuery(dAtA, i, uint64(size)) 12467 } 12468 i-- 12469 dAtA[i] = 0xa 12470 } 12471 } 12472 return len(dAtA) - i, nil 12473 } 12474 12475 func (m *QuerySubaccountPositionInMarketResponse) Marshal() (dAtA []byte, err error) { 12476 size := m.Size() 12477 dAtA = make([]byte, size) 12478 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 12479 if err != nil { 12480 return nil, err 12481 } 12482 return dAtA[:n], nil 12483 } 12484 12485 func (m *QuerySubaccountPositionInMarketResponse) MarshalTo(dAtA []byte) (int, error) { 12486 size := m.Size() 12487 return m.MarshalToSizedBuffer(dAtA[:size]) 12488 } 12489 12490 func (m *QuerySubaccountPositionInMarketResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 12491 i := len(dAtA) 12492 _ = i 12493 var l int 12494 _ = l 12495 if m.State != nil { 12496 { 12497 size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) 12498 if err != nil { 12499 return 0, err 12500 } 12501 i -= size 12502 i = encodeVarintQuery(dAtA, i, uint64(size)) 12503 } 12504 i-- 12505 dAtA[i] = 0xa 12506 } 12507 return len(dAtA) - i, nil 12508 } 12509 12510 func (m *EffectivePosition) Marshal() (dAtA []byte, err error) { 12511 size := m.Size() 12512 dAtA = make([]byte, size) 12513 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 12514 if err != nil { 12515 return nil, err 12516 } 12517 return dAtA[:n], nil 12518 } 12519 12520 func (m *EffectivePosition) MarshalTo(dAtA []byte) (int, error) { 12521 size := m.Size() 12522 return m.MarshalToSizedBuffer(dAtA[:size]) 12523 } 12524 12525 func (m *EffectivePosition) MarshalToSizedBuffer(dAtA []byte) (int, error) { 12526 i := len(dAtA) 12527 _ = i 12528 var l int 12529 _ = l 12530 { 12531 size := m.EffectiveMargin.Size() 12532 i -= size 12533 if _, err := m.EffectiveMargin.MarshalTo(dAtA[i:]); err != nil { 12534 return 0, err 12535 } 12536 i = encodeVarintQuery(dAtA, i, uint64(size)) 12537 } 12538 i-- 12539 dAtA[i] = 0x22 12540 { 12541 size := m.EntryPrice.Size() 12542 i -= size 12543 if _, err := m.EntryPrice.MarshalTo(dAtA[i:]); err != nil { 12544 return 0, err 12545 } 12546 i = encodeVarintQuery(dAtA, i, uint64(size)) 12547 } 12548 i-- 12549 dAtA[i] = 0x1a 12550 { 12551 size := m.Quantity.Size() 12552 i -= size 12553 if _, err := m.Quantity.MarshalTo(dAtA[i:]); err != nil { 12554 return 0, err 12555 } 12556 i = encodeVarintQuery(dAtA, i, uint64(size)) 12557 } 12558 i-- 12559 dAtA[i] = 0x12 12560 if m.IsLong { 12561 i-- 12562 if m.IsLong { 12563 dAtA[i] = 1 12564 } else { 12565 dAtA[i] = 0 12566 } 12567 i-- 12568 dAtA[i] = 0x8 12569 } 12570 return len(dAtA) - i, nil 12571 } 12572 12573 func (m *QuerySubaccountEffectivePositionInMarketResponse) Marshal() (dAtA []byte, err error) { 12574 size := m.Size() 12575 dAtA = make([]byte, size) 12576 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 12577 if err != nil { 12578 return nil, err 12579 } 12580 return dAtA[:n], nil 12581 } 12582 12583 func (m *QuerySubaccountEffectivePositionInMarketResponse) MarshalTo(dAtA []byte) (int, error) { 12584 size := m.Size() 12585 return m.MarshalToSizedBuffer(dAtA[:size]) 12586 } 12587 12588 func (m *QuerySubaccountEffectivePositionInMarketResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 12589 i := len(dAtA) 12590 _ = i 12591 var l int 12592 _ = l 12593 if m.State != nil { 12594 { 12595 size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) 12596 if err != nil { 12597 return 0, err 12598 } 12599 i -= size 12600 i = encodeVarintQuery(dAtA, i, uint64(size)) 12601 } 12602 i-- 12603 dAtA[i] = 0xa 12604 } 12605 return len(dAtA) - i, nil 12606 } 12607 12608 func (m *QueryPerpetualMarketInfoRequest) Marshal() (dAtA []byte, err error) { 12609 size := m.Size() 12610 dAtA = make([]byte, size) 12611 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 12612 if err != nil { 12613 return nil, err 12614 } 12615 return dAtA[:n], nil 12616 } 12617 12618 func (m *QueryPerpetualMarketInfoRequest) MarshalTo(dAtA []byte) (int, error) { 12619 size := m.Size() 12620 return m.MarshalToSizedBuffer(dAtA[:size]) 12621 } 12622 12623 func (m *QueryPerpetualMarketInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 12624 i := len(dAtA) 12625 _ = i 12626 var l int 12627 _ = l 12628 if len(m.MarketId) > 0 { 12629 i -= len(m.MarketId) 12630 copy(dAtA[i:], m.MarketId) 12631 i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketId))) 12632 i-- 12633 dAtA[i] = 0xa 12634 } 12635 return len(dAtA) - i, nil 12636 } 12637 12638 func (m *QueryPerpetualMarketInfoResponse) Marshal() (dAtA []byte, err error) { 12639 size := m.Size() 12640 dAtA = make([]byte, size) 12641 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 12642 if err != nil { 12643 return nil, err 12644 } 12645 return dAtA[:n], nil 12646 } 12647 12648 func (m *QueryPerpetualMarketInfoResponse) MarshalTo(dAtA []byte) (int, error) { 12649 size := m.Size() 12650 return m.MarshalToSizedBuffer(dAtA[:size]) 12651 } 12652 12653 func (m *QueryPerpetualMarketInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 12654 i := len(dAtA) 12655 _ = i 12656 var l int 12657 _ = l 12658 { 12659 size, err := m.Info.MarshalToSizedBuffer(dAtA[:i]) 12660 if err != nil { 12661 return 0, err 12662 } 12663 i -= size 12664 i = encodeVarintQuery(dAtA, i, uint64(size)) 12665 } 12666 i-- 12667 dAtA[i] = 0xa 12668 return len(dAtA) - i, nil 12669 } 12670 12671 func (m *QueryExpiryFuturesMarketInfoRequest) Marshal() (dAtA []byte, err error) { 12672 size := m.Size() 12673 dAtA = make([]byte, size) 12674 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 12675 if err != nil { 12676 return nil, err 12677 } 12678 return dAtA[:n], nil 12679 } 12680 12681 func (m *QueryExpiryFuturesMarketInfoRequest) MarshalTo(dAtA []byte) (int, error) { 12682 size := m.Size() 12683 return m.MarshalToSizedBuffer(dAtA[:size]) 12684 } 12685 12686 func (m *QueryExpiryFuturesMarketInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 12687 i := len(dAtA) 12688 _ = i 12689 var l int 12690 _ = l 12691 if len(m.MarketId) > 0 { 12692 i -= len(m.MarketId) 12693 copy(dAtA[i:], m.MarketId) 12694 i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketId))) 12695 i-- 12696 dAtA[i] = 0xa 12697 } 12698 return len(dAtA) - i, nil 12699 } 12700 12701 func (m *QueryExpiryFuturesMarketInfoResponse) Marshal() (dAtA []byte, err error) { 12702 size := m.Size() 12703 dAtA = make([]byte, size) 12704 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 12705 if err != nil { 12706 return nil, err 12707 } 12708 return dAtA[:n], nil 12709 } 12710 12711 func (m *QueryExpiryFuturesMarketInfoResponse) MarshalTo(dAtA []byte) (int, error) { 12712 size := m.Size() 12713 return m.MarshalToSizedBuffer(dAtA[:size]) 12714 } 12715 12716 func (m *QueryExpiryFuturesMarketInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 12717 i := len(dAtA) 12718 _ = i 12719 var l int 12720 _ = l 12721 { 12722 size, err := m.Info.MarshalToSizedBuffer(dAtA[:i]) 12723 if err != nil { 12724 return 0, err 12725 } 12726 i -= size 12727 i = encodeVarintQuery(dAtA, i, uint64(size)) 12728 } 12729 i-- 12730 dAtA[i] = 0xa 12731 return len(dAtA) - i, nil 12732 } 12733 12734 func (m *QueryPerpetualMarketFundingRequest) Marshal() (dAtA []byte, err error) { 12735 size := m.Size() 12736 dAtA = make([]byte, size) 12737 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 12738 if err != nil { 12739 return nil, err 12740 } 12741 return dAtA[:n], nil 12742 } 12743 12744 func (m *QueryPerpetualMarketFundingRequest) MarshalTo(dAtA []byte) (int, error) { 12745 size := m.Size() 12746 return m.MarshalToSizedBuffer(dAtA[:size]) 12747 } 12748 12749 func (m *QueryPerpetualMarketFundingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 12750 i := len(dAtA) 12751 _ = i 12752 var l int 12753 _ = l 12754 if len(m.MarketId) > 0 { 12755 i -= len(m.MarketId) 12756 copy(dAtA[i:], m.MarketId) 12757 i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketId))) 12758 i-- 12759 dAtA[i] = 0xa 12760 } 12761 return len(dAtA) - i, nil 12762 } 12763 12764 func (m *QueryPerpetualMarketFundingResponse) Marshal() (dAtA []byte, err error) { 12765 size := m.Size() 12766 dAtA = make([]byte, size) 12767 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 12768 if err != nil { 12769 return nil, err 12770 } 12771 return dAtA[:n], nil 12772 } 12773 12774 func (m *QueryPerpetualMarketFundingResponse) MarshalTo(dAtA []byte) (int, error) { 12775 size := m.Size() 12776 return m.MarshalToSizedBuffer(dAtA[:size]) 12777 } 12778 12779 func (m *QueryPerpetualMarketFundingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 12780 i := len(dAtA) 12781 _ = i 12782 var l int 12783 _ = l 12784 { 12785 size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) 12786 if err != nil { 12787 return 0, err 12788 } 12789 i -= size 12790 i = encodeVarintQuery(dAtA, i, uint64(size)) 12791 } 12792 i-- 12793 dAtA[i] = 0xa 12794 return len(dAtA) - i, nil 12795 } 12796 12797 func (m *QuerySubaccountOrderMetadataResponse) Marshal() (dAtA []byte, err error) { 12798 size := m.Size() 12799 dAtA = make([]byte, size) 12800 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 12801 if err != nil { 12802 return nil, err 12803 } 12804 return dAtA[:n], nil 12805 } 12806 12807 func (m *QuerySubaccountOrderMetadataResponse) MarshalTo(dAtA []byte) (int, error) { 12808 size := m.Size() 12809 return m.MarshalToSizedBuffer(dAtA[:size]) 12810 } 12811 12812 func (m *QuerySubaccountOrderMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 12813 i := len(dAtA) 12814 _ = i 12815 var l int 12816 _ = l 12817 if len(m.Metadata) > 0 { 12818 for iNdEx := len(m.Metadata) - 1; iNdEx >= 0; iNdEx-- { 12819 { 12820 size, err := m.Metadata[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 12821 if err != nil { 12822 return 0, err 12823 } 12824 i -= size 12825 i = encodeVarintQuery(dAtA, i, uint64(size)) 12826 } 12827 i-- 12828 dAtA[i] = 0xa 12829 } 12830 } 12831 return len(dAtA) - i, nil 12832 } 12833 12834 func (m *QuerySubaccountTradeNonceResponse) Marshal() (dAtA []byte, err error) { 12835 size := m.Size() 12836 dAtA = make([]byte, size) 12837 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 12838 if err != nil { 12839 return nil, err 12840 } 12841 return dAtA[:n], nil 12842 } 12843 12844 func (m *QuerySubaccountTradeNonceResponse) MarshalTo(dAtA []byte) (int, error) { 12845 size := m.Size() 12846 return m.MarshalToSizedBuffer(dAtA[:size]) 12847 } 12848 12849 func (m *QuerySubaccountTradeNonceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 12850 i := len(dAtA) 12851 _ = i 12852 var l int 12853 _ = l 12854 if m.Nonce != 0 { 12855 i = encodeVarintQuery(dAtA, i, uint64(m.Nonce)) 12856 i-- 12857 dAtA[i] = 0x8 12858 } 12859 return len(dAtA) - i, nil 12860 } 12861 12862 func (m *QueryModuleStateRequest) Marshal() (dAtA []byte, err error) { 12863 size := m.Size() 12864 dAtA = make([]byte, size) 12865 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 12866 if err != nil { 12867 return nil, err 12868 } 12869 return dAtA[:n], nil 12870 } 12871 12872 func (m *QueryModuleStateRequest) MarshalTo(dAtA []byte) (int, error) { 12873 size := m.Size() 12874 return m.MarshalToSizedBuffer(dAtA[:size]) 12875 } 12876 12877 func (m *QueryModuleStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 12878 i := len(dAtA) 12879 _ = i 12880 var l int 12881 _ = l 12882 return len(dAtA) - i, nil 12883 } 12884 12885 func (m *QueryModuleStateResponse) Marshal() (dAtA []byte, err error) { 12886 size := m.Size() 12887 dAtA = make([]byte, size) 12888 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 12889 if err != nil { 12890 return nil, err 12891 } 12892 return dAtA[:n], nil 12893 } 12894 12895 func (m *QueryModuleStateResponse) MarshalTo(dAtA []byte) (int, error) { 12896 size := m.Size() 12897 return m.MarshalToSizedBuffer(dAtA[:size]) 12898 } 12899 12900 func (m *QueryModuleStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 12901 i := len(dAtA) 12902 _ = i 12903 var l int 12904 _ = l 12905 if m.State != nil { 12906 { 12907 size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) 12908 if err != nil { 12909 return 0, err 12910 } 12911 i -= size 12912 i = encodeVarintQuery(dAtA, i, uint64(size)) 12913 } 12914 i-- 12915 dAtA[i] = 0xa 12916 } 12917 return len(dAtA) - i, nil 12918 } 12919 12920 func (m *QueryPositionsRequest) Marshal() (dAtA []byte, err error) { 12921 size := m.Size() 12922 dAtA = make([]byte, size) 12923 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 12924 if err != nil { 12925 return nil, err 12926 } 12927 return dAtA[:n], nil 12928 } 12929 12930 func (m *QueryPositionsRequest) MarshalTo(dAtA []byte) (int, error) { 12931 size := m.Size() 12932 return m.MarshalToSizedBuffer(dAtA[:size]) 12933 } 12934 12935 func (m *QueryPositionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 12936 i := len(dAtA) 12937 _ = i 12938 var l int 12939 _ = l 12940 return len(dAtA) - i, nil 12941 } 12942 12943 func (m *QueryPositionsResponse) Marshal() (dAtA []byte, err error) { 12944 size := m.Size() 12945 dAtA = make([]byte, size) 12946 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 12947 if err != nil { 12948 return nil, err 12949 } 12950 return dAtA[:n], nil 12951 } 12952 12953 func (m *QueryPositionsResponse) MarshalTo(dAtA []byte) (int, error) { 12954 size := m.Size() 12955 return m.MarshalToSizedBuffer(dAtA[:size]) 12956 } 12957 12958 func (m *QueryPositionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 12959 i := len(dAtA) 12960 _ = i 12961 var l int 12962 _ = l 12963 if len(m.State) > 0 { 12964 for iNdEx := len(m.State) - 1; iNdEx >= 0; iNdEx-- { 12965 { 12966 size, err := m.State[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 12967 if err != nil { 12968 return 0, err 12969 } 12970 i -= size 12971 i = encodeVarintQuery(dAtA, i, uint64(size)) 12972 } 12973 i-- 12974 dAtA[i] = 0xa 12975 } 12976 } 12977 return len(dAtA) - i, nil 12978 } 12979 12980 func (m *QueryTradeRewardPointsRequest) Marshal() (dAtA []byte, err error) { 12981 size := m.Size() 12982 dAtA = make([]byte, size) 12983 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 12984 if err != nil { 12985 return nil, err 12986 } 12987 return dAtA[:n], nil 12988 } 12989 12990 func (m *QueryTradeRewardPointsRequest) MarshalTo(dAtA []byte) (int, error) { 12991 size := m.Size() 12992 return m.MarshalToSizedBuffer(dAtA[:size]) 12993 } 12994 12995 func (m *QueryTradeRewardPointsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 12996 i := len(dAtA) 12997 _ = i 12998 var l int 12999 _ = l 13000 if m.PendingPoolTimestamp != 0 { 13001 i = encodeVarintQuery(dAtA, i, uint64(m.PendingPoolTimestamp)) 13002 i-- 13003 dAtA[i] = 0x10 13004 } 13005 if len(m.Accounts) > 0 { 13006 for iNdEx := len(m.Accounts) - 1; iNdEx >= 0; iNdEx-- { 13007 i -= len(m.Accounts[iNdEx]) 13008 copy(dAtA[i:], m.Accounts[iNdEx]) 13009 i = encodeVarintQuery(dAtA, i, uint64(len(m.Accounts[iNdEx]))) 13010 i-- 13011 dAtA[i] = 0xa 13012 } 13013 } 13014 return len(dAtA) - i, nil 13015 } 13016 13017 func (m *QueryTradeRewardPointsResponse) Marshal() (dAtA []byte, err error) { 13018 size := m.Size() 13019 dAtA = make([]byte, size) 13020 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 13021 if err != nil { 13022 return nil, err 13023 } 13024 return dAtA[:n], nil 13025 } 13026 13027 func (m *QueryTradeRewardPointsResponse) MarshalTo(dAtA []byte) (int, error) { 13028 size := m.Size() 13029 return m.MarshalToSizedBuffer(dAtA[:size]) 13030 } 13031 13032 func (m *QueryTradeRewardPointsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 13033 i := len(dAtA) 13034 _ = i 13035 var l int 13036 _ = l 13037 if len(m.AccountTradeRewardPoints) > 0 { 13038 for iNdEx := len(m.AccountTradeRewardPoints) - 1; iNdEx >= 0; iNdEx-- { 13039 { 13040 size := m.AccountTradeRewardPoints[iNdEx].Size() 13041 i -= size 13042 if _, err := m.AccountTradeRewardPoints[iNdEx].MarshalTo(dAtA[i:]); err != nil { 13043 return 0, err 13044 } 13045 i = encodeVarintQuery(dAtA, i, uint64(size)) 13046 } 13047 i-- 13048 dAtA[i] = 0xa 13049 } 13050 } 13051 return len(dAtA) - i, nil 13052 } 13053 13054 func (m *QueryTradeRewardCampaignRequest) Marshal() (dAtA []byte, err error) { 13055 size := m.Size() 13056 dAtA = make([]byte, size) 13057 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 13058 if err != nil { 13059 return nil, err 13060 } 13061 return dAtA[:n], nil 13062 } 13063 13064 func (m *QueryTradeRewardCampaignRequest) MarshalTo(dAtA []byte) (int, error) { 13065 size := m.Size() 13066 return m.MarshalToSizedBuffer(dAtA[:size]) 13067 } 13068 13069 func (m *QueryTradeRewardCampaignRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 13070 i := len(dAtA) 13071 _ = i 13072 var l int 13073 _ = l 13074 return len(dAtA) - i, nil 13075 } 13076 13077 func (m *QueryTradeRewardCampaignResponse) Marshal() (dAtA []byte, err error) { 13078 size := m.Size() 13079 dAtA = make([]byte, size) 13080 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 13081 if err != nil { 13082 return nil, err 13083 } 13084 return dAtA[:n], nil 13085 } 13086 13087 func (m *QueryTradeRewardCampaignResponse) MarshalTo(dAtA []byte) (int, error) { 13088 size := m.Size() 13089 return m.MarshalToSizedBuffer(dAtA[:size]) 13090 } 13091 13092 func (m *QueryTradeRewardCampaignResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 13093 i := len(dAtA) 13094 _ = i 13095 var l int 13096 _ = l 13097 if len(m.PendingTotalTradeRewardPoints) > 0 { 13098 for iNdEx := len(m.PendingTotalTradeRewardPoints) - 1; iNdEx >= 0; iNdEx-- { 13099 { 13100 size := m.PendingTotalTradeRewardPoints[iNdEx].Size() 13101 i -= size 13102 if _, err := m.PendingTotalTradeRewardPoints[iNdEx].MarshalTo(dAtA[i:]); err != nil { 13103 return 0, err 13104 } 13105 i = encodeVarintQuery(dAtA, i, uint64(size)) 13106 } 13107 i-- 13108 dAtA[i] = 0x2a 13109 } 13110 } 13111 if len(m.PendingTradingRewardPoolCampaignSchedule) > 0 { 13112 for iNdEx := len(m.PendingTradingRewardPoolCampaignSchedule) - 1; iNdEx >= 0; iNdEx-- { 13113 { 13114 size, err := m.PendingTradingRewardPoolCampaignSchedule[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 13115 if err != nil { 13116 return 0, err 13117 } 13118 i -= size 13119 i = encodeVarintQuery(dAtA, i, uint64(size)) 13120 } 13121 i-- 13122 dAtA[i] = 0x22 13123 } 13124 } 13125 { 13126 size := m.TotalTradeRewardPoints.Size() 13127 i -= size 13128 if _, err := m.TotalTradeRewardPoints.MarshalTo(dAtA[i:]); err != nil { 13129 return 0, err 13130 } 13131 i = encodeVarintQuery(dAtA, i, uint64(size)) 13132 } 13133 i-- 13134 dAtA[i] = 0x1a 13135 if len(m.TradingRewardPoolCampaignSchedule) > 0 { 13136 for iNdEx := len(m.TradingRewardPoolCampaignSchedule) - 1; iNdEx >= 0; iNdEx-- { 13137 { 13138 size, err := m.TradingRewardPoolCampaignSchedule[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 13139 if err != nil { 13140 return 0, err 13141 } 13142 i -= size 13143 i = encodeVarintQuery(dAtA, i, uint64(size)) 13144 } 13145 i-- 13146 dAtA[i] = 0x12 13147 } 13148 } 13149 if m.TradingRewardCampaignInfo != nil { 13150 { 13151 size, err := m.TradingRewardCampaignInfo.MarshalToSizedBuffer(dAtA[:i]) 13152 if err != nil { 13153 return 0, err 13154 } 13155 i -= size 13156 i = encodeVarintQuery(dAtA, i, uint64(size)) 13157 } 13158 i-- 13159 dAtA[i] = 0xa 13160 } 13161 return len(dAtA) - i, nil 13162 } 13163 13164 func (m *QueryIsOptedOutOfRewardsRequest) Marshal() (dAtA []byte, err error) { 13165 size := m.Size() 13166 dAtA = make([]byte, size) 13167 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 13168 if err != nil { 13169 return nil, err 13170 } 13171 return dAtA[:n], nil 13172 } 13173 13174 func (m *QueryIsOptedOutOfRewardsRequest) MarshalTo(dAtA []byte) (int, error) { 13175 size := m.Size() 13176 return m.MarshalToSizedBuffer(dAtA[:size]) 13177 } 13178 13179 func (m *QueryIsOptedOutOfRewardsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 13180 i := len(dAtA) 13181 _ = i 13182 var l int 13183 _ = l 13184 if len(m.Account) > 0 { 13185 i -= len(m.Account) 13186 copy(dAtA[i:], m.Account) 13187 i = encodeVarintQuery(dAtA, i, uint64(len(m.Account))) 13188 i-- 13189 dAtA[i] = 0xa 13190 } 13191 return len(dAtA) - i, nil 13192 } 13193 13194 func (m *QueryIsOptedOutOfRewardsResponse) Marshal() (dAtA []byte, err error) { 13195 size := m.Size() 13196 dAtA = make([]byte, size) 13197 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 13198 if err != nil { 13199 return nil, err 13200 } 13201 return dAtA[:n], nil 13202 } 13203 13204 func (m *QueryIsOptedOutOfRewardsResponse) MarshalTo(dAtA []byte) (int, error) { 13205 size := m.Size() 13206 return m.MarshalToSizedBuffer(dAtA[:size]) 13207 } 13208 13209 func (m *QueryIsOptedOutOfRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 13210 i := len(dAtA) 13211 _ = i 13212 var l int 13213 _ = l 13214 if m.IsOptedOut { 13215 i-- 13216 if m.IsOptedOut { 13217 dAtA[i] = 1 13218 } else { 13219 dAtA[i] = 0 13220 } 13221 i-- 13222 dAtA[i] = 0x8 13223 } 13224 return len(dAtA) - i, nil 13225 } 13226 13227 func (m *QueryOptedOutOfRewardsAccountsRequest) Marshal() (dAtA []byte, err error) { 13228 size := m.Size() 13229 dAtA = make([]byte, size) 13230 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 13231 if err != nil { 13232 return nil, err 13233 } 13234 return dAtA[:n], nil 13235 } 13236 13237 func (m *QueryOptedOutOfRewardsAccountsRequest) MarshalTo(dAtA []byte) (int, error) { 13238 size := m.Size() 13239 return m.MarshalToSizedBuffer(dAtA[:size]) 13240 } 13241 13242 func (m *QueryOptedOutOfRewardsAccountsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 13243 i := len(dAtA) 13244 _ = i 13245 var l int 13246 _ = l 13247 return len(dAtA) - i, nil 13248 } 13249 13250 func (m *QueryOptedOutOfRewardsAccountsResponse) Marshal() (dAtA []byte, err error) { 13251 size := m.Size() 13252 dAtA = make([]byte, size) 13253 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 13254 if err != nil { 13255 return nil, err 13256 } 13257 return dAtA[:n], nil 13258 } 13259 13260 func (m *QueryOptedOutOfRewardsAccountsResponse) MarshalTo(dAtA []byte) (int, error) { 13261 size := m.Size() 13262 return m.MarshalToSizedBuffer(dAtA[:size]) 13263 } 13264 13265 func (m *QueryOptedOutOfRewardsAccountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 13266 i := len(dAtA) 13267 _ = i 13268 var l int 13269 _ = l 13270 if len(m.Accounts) > 0 { 13271 for iNdEx := len(m.Accounts) - 1; iNdEx >= 0; iNdEx-- { 13272 i -= len(m.Accounts[iNdEx]) 13273 copy(dAtA[i:], m.Accounts[iNdEx]) 13274 i = encodeVarintQuery(dAtA, i, uint64(len(m.Accounts[iNdEx]))) 13275 i-- 13276 dAtA[i] = 0xa 13277 } 13278 } 13279 return len(dAtA) - i, nil 13280 } 13281 13282 func (m *QueryFeeDiscountAccountInfoRequest) Marshal() (dAtA []byte, err error) { 13283 size := m.Size() 13284 dAtA = make([]byte, size) 13285 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 13286 if err != nil { 13287 return nil, err 13288 } 13289 return dAtA[:n], nil 13290 } 13291 13292 func (m *QueryFeeDiscountAccountInfoRequest) MarshalTo(dAtA []byte) (int, error) { 13293 size := m.Size() 13294 return m.MarshalToSizedBuffer(dAtA[:size]) 13295 } 13296 13297 func (m *QueryFeeDiscountAccountInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 13298 i := len(dAtA) 13299 _ = i 13300 var l int 13301 _ = l 13302 if len(m.Account) > 0 { 13303 i -= len(m.Account) 13304 copy(dAtA[i:], m.Account) 13305 i = encodeVarintQuery(dAtA, i, uint64(len(m.Account))) 13306 i-- 13307 dAtA[i] = 0xa 13308 } 13309 return len(dAtA) - i, nil 13310 } 13311 13312 func (m *QueryFeeDiscountAccountInfoResponse) Marshal() (dAtA []byte, err error) { 13313 size := m.Size() 13314 dAtA = make([]byte, size) 13315 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 13316 if err != nil { 13317 return nil, err 13318 } 13319 return dAtA[:n], nil 13320 } 13321 13322 func (m *QueryFeeDiscountAccountInfoResponse) MarshalTo(dAtA []byte) (int, error) { 13323 size := m.Size() 13324 return m.MarshalToSizedBuffer(dAtA[:size]) 13325 } 13326 13327 func (m *QueryFeeDiscountAccountInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 13328 i := len(dAtA) 13329 _ = i 13330 var l int 13331 _ = l 13332 if m.AccountTtl != nil { 13333 { 13334 size, err := m.AccountTtl.MarshalToSizedBuffer(dAtA[:i]) 13335 if err != nil { 13336 return 0, err 13337 } 13338 i -= size 13339 i = encodeVarintQuery(dAtA, i, uint64(size)) 13340 } 13341 i-- 13342 dAtA[i] = 0x1a 13343 } 13344 if m.AccountInfo != nil { 13345 { 13346 size, err := m.AccountInfo.MarshalToSizedBuffer(dAtA[:i]) 13347 if err != nil { 13348 return 0, err 13349 } 13350 i -= size 13351 i = encodeVarintQuery(dAtA, i, uint64(size)) 13352 } 13353 i-- 13354 dAtA[i] = 0x12 13355 } 13356 if m.TierLevel != 0 { 13357 i = encodeVarintQuery(dAtA, i, uint64(m.TierLevel)) 13358 i-- 13359 dAtA[i] = 0x8 13360 } 13361 return len(dAtA) - i, nil 13362 } 13363 13364 func (m *QueryFeeDiscountScheduleRequest) Marshal() (dAtA []byte, err error) { 13365 size := m.Size() 13366 dAtA = make([]byte, size) 13367 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 13368 if err != nil { 13369 return nil, err 13370 } 13371 return dAtA[:n], nil 13372 } 13373 13374 func (m *QueryFeeDiscountScheduleRequest) MarshalTo(dAtA []byte) (int, error) { 13375 size := m.Size() 13376 return m.MarshalToSizedBuffer(dAtA[:size]) 13377 } 13378 13379 func (m *QueryFeeDiscountScheduleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 13380 i := len(dAtA) 13381 _ = i 13382 var l int 13383 _ = l 13384 return len(dAtA) - i, nil 13385 } 13386 13387 func (m *QueryFeeDiscountScheduleResponse) Marshal() (dAtA []byte, err error) { 13388 size := m.Size() 13389 dAtA = make([]byte, size) 13390 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 13391 if err != nil { 13392 return nil, err 13393 } 13394 return dAtA[:n], nil 13395 } 13396 13397 func (m *QueryFeeDiscountScheduleResponse) MarshalTo(dAtA []byte) (int, error) { 13398 size := m.Size() 13399 return m.MarshalToSizedBuffer(dAtA[:size]) 13400 } 13401 13402 func (m *QueryFeeDiscountScheduleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 13403 i := len(dAtA) 13404 _ = i 13405 var l int 13406 _ = l 13407 if m.FeeDiscountSchedule != nil { 13408 { 13409 size, err := m.FeeDiscountSchedule.MarshalToSizedBuffer(dAtA[:i]) 13410 if err != nil { 13411 return 0, err 13412 } 13413 i -= size 13414 i = encodeVarintQuery(dAtA, i, uint64(size)) 13415 } 13416 i-- 13417 dAtA[i] = 0xa 13418 } 13419 return len(dAtA) - i, nil 13420 } 13421 13422 func (m *QueryBalanceMismatchesRequest) Marshal() (dAtA []byte, err error) { 13423 size := m.Size() 13424 dAtA = make([]byte, size) 13425 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 13426 if err != nil { 13427 return nil, err 13428 } 13429 return dAtA[:n], nil 13430 } 13431 13432 func (m *QueryBalanceMismatchesRequest) MarshalTo(dAtA []byte) (int, error) { 13433 size := m.Size() 13434 return m.MarshalToSizedBuffer(dAtA[:size]) 13435 } 13436 13437 func (m *QueryBalanceMismatchesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 13438 i := len(dAtA) 13439 _ = i 13440 var l int 13441 _ = l 13442 if m.DustFactor != 0 { 13443 i = encodeVarintQuery(dAtA, i, uint64(m.DustFactor)) 13444 i-- 13445 dAtA[i] = 0x8 13446 } 13447 return len(dAtA) - i, nil 13448 } 13449 13450 func (m *BalanceMismatch) Marshal() (dAtA []byte, err error) { 13451 size := m.Size() 13452 dAtA = make([]byte, size) 13453 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 13454 if err != nil { 13455 return nil, err 13456 } 13457 return dAtA[:n], nil 13458 } 13459 13460 func (m *BalanceMismatch) MarshalTo(dAtA []byte) (int, error) { 13461 size := m.Size() 13462 return m.MarshalToSizedBuffer(dAtA[:size]) 13463 } 13464 13465 func (m *BalanceMismatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { 13466 i := len(dAtA) 13467 _ = i 13468 var l int 13469 _ = l 13470 { 13471 size := m.Difference.Size() 13472 i -= size 13473 if _, err := m.Difference.MarshalTo(dAtA[i:]); err != nil { 13474 return 0, err 13475 } 13476 i = encodeVarintQuery(dAtA, i, uint64(size)) 13477 } 13478 i-- 13479 dAtA[i] = 0x3a 13480 { 13481 size := m.ExpectedTotal.Size() 13482 i -= size 13483 if _, err := m.ExpectedTotal.MarshalTo(dAtA[i:]); err != nil { 13484 return 0, err 13485 } 13486 i = encodeVarintQuery(dAtA, i, uint64(size)) 13487 } 13488 i-- 13489 dAtA[i] = 0x32 13490 { 13491 size := m.BalanceHold.Size() 13492 i -= size 13493 if _, err := m.BalanceHold.MarshalTo(dAtA[i:]); err != nil { 13494 return 0, err 13495 } 13496 i = encodeVarintQuery(dAtA, i, uint64(size)) 13497 } 13498 i-- 13499 dAtA[i] = 0x2a 13500 { 13501 size := m.Total.Size() 13502 i -= size 13503 if _, err := m.Total.MarshalTo(dAtA[i:]); err != nil { 13504 return 0, err 13505 } 13506 i = encodeVarintQuery(dAtA, i, uint64(size)) 13507 } 13508 i-- 13509 dAtA[i] = 0x22 13510 { 13511 size := m.Available.Size() 13512 i -= size 13513 if _, err := m.Available.MarshalTo(dAtA[i:]); err != nil { 13514 return 0, err 13515 } 13516 i = encodeVarintQuery(dAtA, i, uint64(size)) 13517 } 13518 i-- 13519 dAtA[i] = 0x1a 13520 if len(m.Denom) > 0 { 13521 i -= len(m.Denom) 13522 copy(dAtA[i:], m.Denom) 13523 i = encodeVarintQuery(dAtA, i, uint64(len(m.Denom))) 13524 i-- 13525 dAtA[i] = 0x12 13526 } 13527 if len(m.SubaccountId) > 0 { 13528 i -= len(m.SubaccountId) 13529 copy(dAtA[i:], m.SubaccountId) 13530 i = encodeVarintQuery(dAtA, i, uint64(len(m.SubaccountId))) 13531 i-- 13532 dAtA[i] = 0xa 13533 } 13534 return len(dAtA) - i, nil 13535 } 13536 13537 func (m *QueryBalanceMismatchesResponse) Marshal() (dAtA []byte, err error) { 13538 size := m.Size() 13539 dAtA = make([]byte, size) 13540 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 13541 if err != nil { 13542 return nil, err 13543 } 13544 return dAtA[:n], nil 13545 } 13546 13547 func (m *QueryBalanceMismatchesResponse) MarshalTo(dAtA []byte) (int, error) { 13548 size := m.Size() 13549 return m.MarshalToSizedBuffer(dAtA[:size]) 13550 } 13551 13552 func (m *QueryBalanceMismatchesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 13553 i := len(dAtA) 13554 _ = i 13555 var l int 13556 _ = l 13557 if len(m.BalanceMismatches) > 0 { 13558 for iNdEx := len(m.BalanceMismatches) - 1; iNdEx >= 0; iNdEx-- { 13559 { 13560 size, err := m.BalanceMismatches[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 13561 if err != nil { 13562 return 0, err 13563 } 13564 i -= size 13565 i = encodeVarintQuery(dAtA, i, uint64(size)) 13566 } 13567 i-- 13568 dAtA[i] = 0xa 13569 } 13570 } 13571 return len(dAtA) - i, nil 13572 } 13573 13574 func (m *QueryBalanceWithBalanceHoldsRequest) Marshal() (dAtA []byte, err error) { 13575 size := m.Size() 13576 dAtA = make([]byte, size) 13577 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 13578 if err != nil { 13579 return nil, err 13580 } 13581 return dAtA[:n], nil 13582 } 13583 13584 func (m *QueryBalanceWithBalanceHoldsRequest) MarshalTo(dAtA []byte) (int, error) { 13585 size := m.Size() 13586 return m.MarshalToSizedBuffer(dAtA[:size]) 13587 } 13588 13589 func (m *QueryBalanceWithBalanceHoldsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 13590 i := len(dAtA) 13591 _ = i 13592 var l int 13593 _ = l 13594 return len(dAtA) - i, nil 13595 } 13596 13597 func (m *BalanceWithMarginHold) Marshal() (dAtA []byte, err error) { 13598 size := m.Size() 13599 dAtA = make([]byte, size) 13600 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 13601 if err != nil { 13602 return nil, err 13603 } 13604 return dAtA[:n], nil 13605 } 13606 13607 func (m *BalanceWithMarginHold) MarshalTo(dAtA []byte) (int, error) { 13608 size := m.Size() 13609 return m.MarshalToSizedBuffer(dAtA[:size]) 13610 } 13611 13612 func (m *BalanceWithMarginHold) MarshalToSizedBuffer(dAtA []byte) (int, error) { 13613 i := len(dAtA) 13614 _ = i 13615 var l int 13616 _ = l 13617 { 13618 size := m.BalanceHold.Size() 13619 i -= size 13620 if _, err := m.BalanceHold.MarshalTo(dAtA[i:]); err != nil { 13621 return 0, err 13622 } 13623 i = encodeVarintQuery(dAtA, i, uint64(size)) 13624 } 13625 i-- 13626 dAtA[i] = 0x2a 13627 { 13628 size := m.Total.Size() 13629 i -= size 13630 if _, err := m.Total.MarshalTo(dAtA[i:]); err != nil { 13631 return 0, err 13632 } 13633 i = encodeVarintQuery(dAtA, i, uint64(size)) 13634 } 13635 i-- 13636 dAtA[i] = 0x22 13637 { 13638 size := m.Available.Size() 13639 i -= size 13640 if _, err := m.Available.MarshalTo(dAtA[i:]); err != nil { 13641 return 0, err 13642 } 13643 i = encodeVarintQuery(dAtA, i, uint64(size)) 13644 } 13645 i-- 13646 dAtA[i] = 0x1a 13647 if len(m.Denom) > 0 { 13648 i -= len(m.Denom) 13649 copy(dAtA[i:], m.Denom) 13650 i = encodeVarintQuery(dAtA, i, uint64(len(m.Denom))) 13651 i-- 13652 dAtA[i] = 0x12 13653 } 13654 if len(m.SubaccountId) > 0 { 13655 i -= len(m.SubaccountId) 13656 copy(dAtA[i:], m.SubaccountId) 13657 i = encodeVarintQuery(dAtA, i, uint64(len(m.SubaccountId))) 13658 i-- 13659 dAtA[i] = 0xa 13660 } 13661 return len(dAtA) - i, nil 13662 } 13663 13664 func (m *QueryBalanceWithBalanceHoldsResponse) Marshal() (dAtA []byte, err error) { 13665 size := m.Size() 13666 dAtA = make([]byte, size) 13667 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 13668 if err != nil { 13669 return nil, err 13670 } 13671 return dAtA[:n], nil 13672 } 13673 13674 func (m *QueryBalanceWithBalanceHoldsResponse) MarshalTo(dAtA []byte) (int, error) { 13675 size := m.Size() 13676 return m.MarshalToSizedBuffer(dAtA[:size]) 13677 } 13678 13679 func (m *QueryBalanceWithBalanceHoldsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 13680 i := len(dAtA) 13681 _ = i 13682 var l int 13683 _ = l 13684 if len(m.BalanceWithBalanceHolds) > 0 { 13685 for iNdEx := len(m.BalanceWithBalanceHolds) - 1; iNdEx >= 0; iNdEx-- { 13686 { 13687 size, err := m.BalanceWithBalanceHolds[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 13688 if err != nil { 13689 return 0, err 13690 } 13691 i -= size 13692 i = encodeVarintQuery(dAtA, i, uint64(size)) 13693 } 13694 i-- 13695 dAtA[i] = 0xa 13696 } 13697 } 13698 return len(dAtA) - i, nil 13699 } 13700 13701 func (m *QueryFeeDiscountTierStatisticsRequest) Marshal() (dAtA []byte, err error) { 13702 size := m.Size() 13703 dAtA = make([]byte, size) 13704 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 13705 if err != nil { 13706 return nil, err 13707 } 13708 return dAtA[:n], nil 13709 } 13710 13711 func (m *QueryFeeDiscountTierStatisticsRequest) MarshalTo(dAtA []byte) (int, error) { 13712 size := m.Size() 13713 return m.MarshalToSizedBuffer(dAtA[:size]) 13714 } 13715 13716 func (m *QueryFeeDiscountTierStatisticsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 13717 i := len(dAtA) 13718 _ = i 13719 var l int 13720 _ = l 13721 return len(dAtA) - i, nil 13722 } 13723 13724 func (m *TierStatistic) Marshal() (dAtA []byte, err error) { 13725 size := m.Size() 13726 dAtA = make([]byte, size) 13727 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 13728 if err != nil { 13729 return nil, err 13730 } 13731 return dAtA[:n], nil 13732 } 13733 13734 func (m *TierStatistic) MarshalTo(dAtA []byte) (int, error) { 13735 size := m.Size() 13736 return m.MarshalToSizedBuffer(dAtA[:size]) 13737 } 13738 13739 func (m *TierStatistic) MarshalToSizedBuffer(dAtA []byte) (int, error) { 13740 i := len(dAtA) 13741 _ = i 13742 var l int 13743 _ = l 13744 if m.Count != 0 { 13745 i = encodeVarintQuery(dAtA, i, uint64(m.Count)) 13746 i-- 13747 dAtA[i] = 0x10 13748 } 13749 if m.Tier != 0 { 13750 i = encodeVarintQuery(dAtA, i, uint64(m.Tier)) 13751 i-- 13752 dAtA[i] = 0x8 13753 } 13754 return len(dAtA) - i, nil 13755 } 13756 13757 func (m *QueryFeeDiscountTierStatisticsResponse) Marshal() (dAtA []byte, err error) { 13758 size := m.Size() 13759 dAtA = make([]byte, size) 13760 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 13761 if err != nil { 13762 return nil, err 13763 } 13764 return dAtA[:n], nil 13765 } 13766 13767 func (m *QueryFeeDiscountTierStatisticsResponse) MarshalTo(dAtA []byte) (int, error) { 13768 size := m.Size() 13769 return m.MarshalToSizedBuffer(dAtA[:size]) 13770 } 13771 13772 func (m *QueryFeeDiscountTierStatisticsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 13773 i := len(dAtA) 13774 _ = i 13775 var l int 13776 _ = l 13777 if len(m.Statistics) > 0 { 13778 for iNdEx := len(m.Statistics) - 1; iNdEx >= 0; iNdEx-- { 13779 { 13780 size, err := m.Statistics[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 13781 if err != nil { 13782 return 0, err 13783 } 13784 i -= size 13785 i = encodeVarintQuery(dAtA, i, uint64(size)) 13786 } 13787 i-- 13788 dAtA[i] = 0xa 13789 } 13790 } 13791 return len(dAtA) - i, nil 13792 } 13793 13794 func (m *MitoVaultInfosRequest) Marshal() (dAtA []byte, err error) { 13795 size := m.Size() 13796 dAtA = make([]byte, size) 13797 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 13798 if err != nil { 13799 return nil, err 13800 } 13801 return dAtA[:n], nil 13802 } 13803 13804 func (m *MitoVaultInfosRequest) MarshalTo(dAtA []byte) (int, error) { 13805 size := m.Size() 13806 return m.MarshalToSizedBuffer(dAtA[:size]) 13807 } 13808 13809 func (m *MitoVaultInfosRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 13810 i := len(dAtA) 13811 _ = i 13812 var l int 13813 _ = l 13814 return len(dAtA) - i, nil 13815 } 13816 13817 func (m *MitoVaultInfosResponse) Marshal() (dAtA []byte, err error) { 13818 size := m.Size() 13819 dAtA = make([]byte, size) 13820 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 13821 if err != nil { 13822 return nil, err 13823 } 13824 return dAtA[:n], nil 13825 } 13826 13827 func (m *MitoVaultInfosResponse) MarshalTo(dAtA []byte) (int, error) { 13828 size := m.Size() 13829 return m.MarshalToSizedBuffer(dAtA[:size]) 13830 } 13831 13832 func (m *MitoVaultInfosResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 13833 i := len(dAtA) 13834 _ = i 13835 var l int 13836 _ = l 13837 if len(m.Cw20Addresses) > 0 { 13838 for iNdEx := len(m.Cw20Addresses) - 1; iNdEx >= 0; iNdEx-- { 13839 i -= len(m.Cw20Addresses[iNdEx]) 13840 copy(dAtA[i:], m.Cw20Addresses[iNdEx]) 13841 i = encodeVarintQuery(dAtA, i, uint64(len(m.Cw20Addresses[iNdEx]))) 13842 i-- 13843 dAtA[i] = 0x22 13844 } 13845 } 13846 if len(m.SpotAddresses) > 0 { 13847 for iNdEx := len(m.SpotAddresses) - 1; iNdEx >= 0; iNdEx-- { 13848 i -= len(m.SpotAddresses[iNdEx]) 13849 copy(dAtA[i:], m.SpotAddresses[iNdEx]) 13850 i = encodeVarintQuery(dAtA, i, uint64(len(m.SpotAddresses[iNdEx]))) 13851 i-- 13852 dAtA[i] = 0x1a 13853 } 13854 } 13855 if len(m.DerivativeAddresses) > 0 { 13856 for iNdEx := len(m.DerivativeAddresses) - 1; iNdEx >= 0; iNdEx-- { 13857 i -= len(m.DerivativeAddresses[iNdEx]) 13858 copy(dAtA[i:], m.DerivativeAddresses[iNdEx]) 13859 i = encodeVarintQuery(dAtA, i, uint64(len(m.DerivativeAddresses[iNdEx]))) 13860 i-- 13861 dAtA[i] = 0x12 13862 } 13863 } 13864 if len(m.MasterAddresses) > 0 { 13865 for iNdEx := len(m.MasterAddresses) - 1; iNdEx >= 0; iNdEx-- { 13866 i -= len(m.MasterAddresses[iNdEx]) 13867 copy(dAtA[i:], m.MasterAddresses[iNdEx]) 13868 i = encodeVarintQuery(dAtA, i, uint64(len(m.MasterAddresses[iNdEx]))) 13869 i-- 13870 dAtA[i] = 0xa 13871 } 13872 } 13873 return len(dAtA) - i, nil 13874 } 13875 13876 func (m *QueryMarketIDFromVaultRequest) Marshal() (dAtA []byte, err error) { 13877 size := m.Size() 13878 dAtA = make([]byte, size) 13879 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 13880 if err != nil { 13881 return nil, err 13882 } 13883 return dAtA[:n], nil 13884 } 13885 13886 func (m *QueryMarketIDFromVaultRequest) MarshalTo(dAtA []byte) (int, error) { 13887 size := m.Size() 13888 return m.MarshalToSizedBuffer(dAtA[:size]) 13889 } 13890 13891 func (m *QueryMarketIDFromVaultRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 13892 i := len(dAtA) 13893 _ = i 13894 var l int 13895 _ = l 13896 if len(m.VaultAddress) > 0 { 13897 i -= len(m.VaultAddress) 13898 copy(dAtA[i:], m.VaultAddress) 13899 i = encodeVarintQuery(dAtA, i, uint64(len(m.VaultAddress))) 13900 i-- 13901 dAtA[i] = 0xa 13902 } 13903 return len(dAtA) - i, nil 13904 } 13905 13906 func (m *QueryMarketIDFromVaultResponse) Marshal() (dAtA []byte, err error) { 13907 size := m.Size() 13908 dAtA = make([]byte, size) 13909 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 13910 if err != nil { 13911 return nil, err 13912 } 13913 return dAtA[:n], nil 13914 } 13915 13916 func (m *QueryMarketIDFromVaultResponse) MarshalTo(dAtA []byte) (int, error) { 13917 size := m.Size() 13918 return m.MarshalToSizedBuffer(dAtA[:size]) 13919 } 13920 13921 func (m *QueryMarketIDFromVaultResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 13922 i := len(dAtA) 13923 _ = i 13924 var l int 13925 _ = l 13926 if len(m.MarketId) > 0 { 13927 i -= len(m.MarketId) 13928 copy(dAtA[i:], m.MarketId) 13929 i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketId))) 13930 i-- 13931 dAtA[i] = 0xa 13932 } 13933 return len(dAtA) - i, nil 13934 } 13935 13936 func (m *QueryHistoricalTradeRecordsRequest) Marshal() (dAtA []byte, err error) { 13937 size := m.Size() 13938 dAtA = make([]byte, size) 13939 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 13940 if err != nil { 13941 return nil, err 13942 } 13943 return dAtA[:n], nil 13944 } 13945 13946 func (m *QueryHistoricalTradeRecordsRequest) MarshalTo(dAtA []byte) (int, error) { 13947 size := m.Size() 13948 return m.MarshalToSizedBuffer(dAtA[:size]) 13949 } 13950 13951 func (m *QueryHistoricalTradeRecordsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 13952 i := len(dAtA) 13953 _ = i 13954 var l int 13955 _ = l 13956 if len(m.MarketId) > 0 { 13957 i -= len(m.MarketId) 13958 copy(dAtA[i:], m.MarketId) 13959 i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketId))) 13960 i-- 13961 dAtA[i] = 0xa 13962 } 13963 return len(dAtA) - i, nil 13964 } 13965 13966 func (m *QueryHistoricalTradeRecordsResponse) Marshal() (dAtA []byte, err error) { 13967 size := m.Size() 13968 dAtA = make([]byte, size) 13969 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 13970 if err != nil { 13971 return nil, err 13972 } 13973 return dAtA[:n], nil 13974 } 13975 13976 func (m *QueryHistoricalTradeRecordsResponse) MarshalTo(dAtA []byte) (int, error) { 13977 size := m.Size() 13978 return m.MarshalToSizedBuffer(dAtA[:size]) 13979 } 13980 13981 func (m *QueryHistoricalTradeRecordsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 13982 i := len(dAtA) 13983 _ = i 13984 var l int 13985 _ = l 13986 if len(m.TradeRecords) > 0 { 13987 for iNdEx := len(m.TradeRecords) - 1; iNdEx >= 0; iNdEx-- { 13988 { 13989 size, err := m.TradeRecords[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 13990 if err != nil { 13991 return 0, err 13992 } 13993 i -= size 13994 i = encodeVarintQuery(dAtA, i, uint64(size)) 13995 } 13996 i-- 13997 dAtA[i] = 0xa 13998 } 13999 } 14000 return len(dAtA) - i, nil 14001 } 14002 14003 func (m *TradeHistoryOptions) Marshal() (dAtA []byte, err error) { 14004 size := m.Size() 14005 dAtA = make([]byte, size) 14006 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 14007 if err != nil { 14008 return nil, err 14009 } 14010 return dAtA[:n], nil 14011 } 14012 14013 func (m *TradeHistoryOptions) MarshalTo(dAtA []byte) (int, error) { 14014 size := m.Size() 14015 return m.MarshalToSizedBuffer(dAtA[:size]) 14016 } 14017 14018 func (m *TradeHistoryOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { 14019 i := len(dAtA) 14020 _ = i 14021 var l int 14022 _ = l 14023 if m.IncludeMetadata { 14024 i-- 14025 if m.IncludeMetadata { 14026 dAtA[i] = 1 14027 } else { 14028 dAtA[i] = 0 14029 } 14030 i-- 14031 dAtA[i] = 0x28 14032 } 14033 if m.IncludeRawHistory { 14034 i-- 14035 if m.IncludeRawHistory { 14036 dAtA[i] = 1 14037 } else { 14038 dAtA[i] = 0 14039 } 14040 i-- 14041 dAtA[i] = 0x20 14042 } 14043 if m.MaxAge != 0 { 14044 i = encodeVarintQuery(dAtA, i, uint64(m.MaxAge)) 14045 i-- 14046 dAtA[i] = 0x10 14047 } 14048 if m.TradeGroupingSec != 0 { 14049 i = encodeVarintQuery(dAtA, i, uint64(m.TradeGroupingSec)) 14050 i-- 14051 dAtA[i] = 0x8 14052 } 14053 return len(dAtA) - i, nil 14054 } 14055 14056 func (m *QueryMarketVolatilityRequest) Marshal() (dAtA []byte, err error) { 14057 size := m.Size() 14058 dAtA = make([]byte, size) 14059 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 14060 if err != nil { 14061 return nil, err 14062 } 14063 return dAtA[:n], nil 14064 } 14065 14066 func (m *QueryMarketVolatilityRequest) MarshalTo(dAtA []byte) (int, error) { 14067 size := m.Size() 14068 return m.MarshalToSizedBuffer(dAtA[:size]) 14069 } 14070 14071 func (m *QueryMarketVolatilityRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 14072 i := len(dAtA) 14073 _ = i 14074 var l int 14075 _ = l 14076 if m.TradeHistoryOptions != nil { 14077 { 14078 size, err := m.TradeHistoryOptions.MarshalToSizedBuffer(dAtA[:i]) 14079 if err != nil { 14080 return 0, err 14081 } 14082 i -= size 14083 i = encodeVarintQuery(dAtA, i, uint64(size)) 14084 } 14085 i-- 14086 dAtA[i] = 0x12 14087 } 14088 if len(m.MarketId) > 0 { 14089 i -= len(m.MarketId) 14090 copy(dAtA[i:], m.MarketId) 14091 i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketId))) 14092 i-- 14093 dAtA[i] = 0xa 14094 } 14095 return len(dAtA) - i, nil 14096 } 14097 14098 func (m *QueryMarketVolatilityResponse) Marshal() (dAtA []byte, err error) { 14099 size := m.Size() 14100 dAtA = make([]byte, size) 14101 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 14102 if err != nil { 14103 return nil, err 14104 } 14105 return dAtA[:n], nil 14106 } 14107 14108 func (m *QueryMarketVolatilityResponse) MarshalTo(dAtA []byte) (int, error) { 14109 size := m.Size() 14110 return m.MarshalToSizedBuffer(dAtA[:size]) 14111 } 14112 14113 func (m *QueryMarketVolatilityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 14114 i := len(dAtA) 14115 _ = i 14116 var l int 14117 _ = l 14118 if len(m.RawHistory) > 0 { 14119 for iNdEx := len(m.RawHistory) - 1; iNdEx >= 0; iNdEx-- { 14120 { 14121 size, err := m.RawHistory[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 14122 if err != nil { 14123 return 0, err 14124 } 14125 i -= size 14126 i = encodeVarintQuery(dAtA, i, uint64(size)) 14127 } 14128 i-- 14129 dAtA[i] = 0x1a 14130 } 14131 } 14132 if m.HistoryMetadata != nil { 14133 { 14134 size, err := m.HistoryMetadata.MarshalToSizedBuffer(dAtA[:i]) 14135 if err != nil { 14136 return 0, err 14137 } 14138 i -= size 14139 i = encodeVarintQuery(dAtA, i, uint64(size)) 14140 } 14141 i-- 14142 dAtA[i] = 0x12 14143 } 14144 if m.Volatility != nil { 14145 { 14146 size := m.Volatility.Size() 14147 i -= size 14148 if _, err := m.Volatility.MarshalTo(dAtA[i:]); err != nil { 14149 return 0, err 14150 } 14151 i = encodeVarintQuery(dAtA, i, uint64(size)) 14152 } 14153 i-- 14154 dAtA[i] = 0xa 14155 } 14156 return len(dAtA) - i, nil 14157 } 14158 14159 func (m *QueryBinaryMarketsRequest) Marshal() (dAtA []byte, err error) { 14160 size := m.Size() 14161 dAtA = make([]byte, size) 14162 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 14163 if err != nil { 14164 return nil, err 14165 } 14166 return dAtA[:n], nil 14167 } 14168 14169 func (m *QueryBinaryMarketsRequest) MarshalTo(dAtA []byte) (int, error) { 14170 size := m.Size() 14171 return m.MarshalToSizedBuffer(dAtA[:size]) 14172 } 14173 14174 func (m *QueryBinaryMarketsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 14175 i := len(dAtA) 14176 _ = i 14177 var l int 14178 _ = l 14179 if len(m.Status) > 0 { 14180 i -= len(m.Status) 14181 copy(dAtA[i:], m.Status) 14182 i = encodeVarintQuery(dAtA, i, uint64(len(m.Status))) 14183 i-- 14184 dAtA[i] = 0xa 14185 } 14186 return len(dAtA) - i, nil 14187 } 14188 14189 func (m *QueryBinaryMarketsResponse) Marshal() (dAtA []byte, err error) { 14190 size := m.Size() 14191 dAtA = make([]byte, size) 14192 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 14193 if err != nil { 14194 return nil, err 14195 } 14196 return dAtA[:n], nil 14197 } 14198 14199 func (m *QueryBinaryMarketsResponse) MarshalTo(dAtA []byte) (int, error) { 14200 size := m.Size() 14201 return m.MarshalToSizedBuffer(dAtA[:size]) 14202 } 14203 14204 func (m *QueryBinaryMarketsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 14205 i := len(dAtA) 14206 _ = i 14207 var l int 14208 _ = l 14209 if len(m.Markets) > 0 { 14210 for iNdEx := len(m.Markets) - 1; iNdEx >= 0; iNdEx-- { 14211 { 14212 size, err := m.Markets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 14213 if err != nil { 14214 return 0, err 14215 } 14216 i -= size 14217 i = encodeVarintQuery(dAtA, i, uint64(size)) 14218 } 14219 i-- 14220 dAtA[i] = 0xa 14221 } 14222 } 14223 return len(dAtA) - i, nil 14224 } 14225 14226 func (m *QueryTraderDerivativeConditionalOrdersRequest) Marshal() (dAtA []byte, err error) { 14227 size := m.Size() 14228 dAtA = make([]byte, size) 14229 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 14230 if err != nil { 14231 return nil, err 14232 } 14233 return dAtA[:n], nil 14234 } 14235 14236 func (m *QueryTraderDerivativeConditionalOrdersRequest) MarshalTo(dAtA []byte) (int, error) { 14237 size := m.Size() 14238 return m.MarshalToSizedBuffer(dAtA[:size]) 14239 } 14240 14241 func (m *QueryTraderDerivativeConditionalOrdersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 14242 i := len(dAtA) 14243 _ = i 14244 var l int 14245 _ = l 14246 if len(m.MarketId) > 0 { 14247 i -= len(m.MarketId) 14248 copy(dAtA[i:], m.MarketId) 14249 i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketId))) 14250 i-- 14251 dAtA[i] = 0x12 14252 } 14253 if len(m.SubaccountId) > 0 { 14254 i -= len(m.SubaccountId) 14255 copy(dAtA[i:], m.SubaccountId) 14256 i = encodeVarintQuery(dAtA, i, uint64(len(m.SubaccountId))) 14257 i-- 14258 dAtA[i] = 0xa 14259 } 14260 return len(dAtA) - i, nil 14261 } 14262 14263 func (m *TrimmedDerivativeConditionalOrder) Marshal() (dAtA []byte, err error) { 14264 size := m.Size() 14265 dAtA = make([]byte, size) 14266 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 14267 if err != nil { 14268 return nil, err 14269 } 14270 return dAtA[:n], nil 14271 } 14272 14273 func (m *TrimmedDerivativeConditionalOrder) MarshalTo(dAtA []byte) (int, error) { 14274 size := m.Size() 14275 return m.MarshalToSizedBuffer(dAtA[:size]) 14276 } 14277 14278 func (m *TrimmedDerivativeConditionalOrder) MarshalToSizedBuffer(dAtA []byte) (int, error) { 14279 i := len(dAtA) 14280 _ = i 14281 var l int 14282 _ = l 14283 if len(m.Cid) > 0 { 14284 i -= len(m.Cid) 14285 copy(dAtA[i:], m.Cid) 14286 i = encodeVarintQuery(dAtA, i, uint64(len(m.Cid))) 14287 i-- 14288 dAtA[i] = 0x42 14289 } 14290 if len(m.OrderHash) > 0 { 14291 i -= len(m.OrderHash) 14292 copy(dAtA[i:], m.OrderHash) 14293 i = encodeVarintQuery(dAtA, i, uint64(len(m.OrderHash))) 14294 i-- 14295 dAtA[i] = 0x3a 14296 } 14297 if m.IsLimit { 14298 i-- 14299 if m.IsLimit { 14300 dAtA[i] = 1 14301 } else { 14302 dAtA[i] = 0 14303 } 14304 i-- 14305 dAtA[i] = 0x30 14306 } 14307 if m.IsBuy { 14308 i-- 14309 if m.IsBuy { 14310 dAtA[i] = 1 14311 } else { 14312 dAtA[i] = 0 14313 } 14314 i-- 14315 dAtA[i] = 0x28 14316 } 14317 { 14318 size := m.TriggerPrice.Size() 14319 i -= size 14320 if _, err := m.TriggerPrice.MarshalTo(dAtA[i:]); err != nil { 14321 return 0, err 14322 } 14323 i = encodeVarintQuery(dAtA, i, uint64(size)) 14324 } 14325 i-- 14326 dAtA[i] = 0x22 14327 { 14328 size := m.Margin.Size() 14329 i -= size 14330 if _, err := m.Margin.MarshalTo(dAtA[i:]); err != nil { 14331 return 0, err 14332 } 14333 i = encodeVarintQuery(dAtA, i, uint64(size)) 14334 } 14335 i-- 14336 dAtA[i] = 0x1a 14337 { 14338 size := m.Quantity.Size() 14339 i -= size 14340 if _, err := m.Quantity.MarshalTo(dAtA[i:]); err != nil { 14341 return 0, err 14342 } 14343 i = encodeVarintQuery(dAtA, i, uint64(size)) 14344 } 14345 i-- 14346 dAtA[i] = 0x12 14347 { 14348 size := m.Price.Size() 14349 i -= size 14350 if _, err := m.Price.MarshalTo(dAtA[i:]); err != nil { 14351 return 0, err 14352 } 14353 i = encodeVarintQuery(dAtA, i, uint64(size)) 14354 } 14355 i-- 14356 dAtA[i] = 0xa 14357 return len(dAtA) - i, nil 14358 } 14359 14360 func (m *QueryTraderDerivativeConditionalOrdersResponse) Marshal() (dAtA []byte, err error) { 14361 size := m.Size() 14362 dAtA = make([]byte, size) 14363 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 14364 if err != nil { 14365 return nil, err 14366 } 14367 return dAtA[:n], nil 14368 } 14369 14370 func (m *QueryTraderDerivativeConditionalOrdersResponse) MarshalTo(dAtA []byte) (int, error) { 14371 size := m.Size() 14372 return m.MarshalToSizedBuffer(dAtA[:size]) 14373 } 14374 14375 func (m *QueryTraderDerivativeConditionalOrdersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 14376 i := len(dAtA) 14377 _ = i 14378 var l int 14379 _ = l 14380 if len(m.Orders) > 0 { 14381 for iNdEx := len(m.Orders) - 1; iNdEx >= 0; iNdEx-- { 14382 { 14383 size, err := m.Orders[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 14384 if err != nil { 14385 return 0, err 14386 } 14387 i -= size 14388 i = encodeVarintQuery(dAtA, i, uint64(size)) 14389 } 14390 i-- 14391 dAtA[i] = 0xa 14392 } 14393 } 14394 return len(dAtA) - i, nil 14395 } 14396 14397 func (m *QueryMarketAtomicExecutionFeeMultiplierRequest) Marshal() (dAtA []byte, err error) { 14398 size := m.Size() 14399 dAtA = make([]byte, size) 14400 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 14401 if err != nil { 14402 return nil, err 14403 } 14404 return dAtA[:n], nil 14405 } 14406 14407 func (m *QueryMarketAtomicExecutionFeeMultiplierRequest) MarshalTo(dAtA []byte) (int, error) { 14408 size := m.Size() 14409 return m.MarshalToSizedBuffer(dAtA[:size]) 14410 } 14411 14412 func (m *QueryMarketAtomicExecutionFeeMultiplierRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 14413 i := len(dAtA) 14414 _ = i 14415 var l int 14416 _ = l 14417 if len(m.MarketId) > 0 { 14418 i -= len(m.MarketId) 14419 copy(dAtA[i:], m.MarketId) 14420 i = encodeVarintQuery(dAtA, i, uint64(len(m.MarketId))) 14421 i-- 14422 dAtA[i] = 0xa 14423 } 14424 return len(dAtA) - i, nil 14425 } 14426 14427 func (m *QueryMarketAtomicExecutionFeeMultiplierResponse) Marshal() (dAtA []byte, err error) { 14428 size := m.Size() 14429 dAtA = make([]byte, size) 14430 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 14431 if err != nil { 14432 return nil, err 14433 } 14434 return dAtA[:n], nil 14435 } 14436 14437 func (m *QueryMarketAtomicExecutionFeeMultiplierResponse) MarshalTo(dAtA []byte) (int, error) { 14438 size := m.Size() 14439 return m.MarshalToSizedBuffer(dAtA[:size]) 14440 } 14441 14442 func (m *QueryMarketAtomicExecutionFeeMultiplierResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 14443 i := len(dAtA) 14444 _ = i 14445 var l int 14446 _ = l 14447 { 14448 size := m.Multiplier.Size() 14449 i -= size 14450 if _, err := m.Multiplier.MarshalTo(dAtA[i:]); err != nil { 14451 return 0, err 14452 } 14453 i = encodeVarintQuery(dAtA, i, uint64(size)) 14454 } 14455 i-- 14456 dAtA[i] = 0xa 14457 return len(dAtA) - i, nil 14458 } 14459 14460 func (m *QueryActiveStakeGrantRequest) Marshal() (dAtA []byte, err error) { 14461 size := m.Size() 14462 dAtA = make([]byte, size) 14463 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 14464 if err != nil { 14465 return nil, err 14466 } 14467 return dAtA[:n], nil 14468 } 14469 14470 func (m *QueryActiveStakeGrantRequest) MarshalTo(dAtA []byte) (int, error) { 14471 size := m.Size() 14472 return m.MarshalToSizedBuffer(dAtA[:size]) 14473 } 14474 14475 func (m *QueryActiveStakeGrantRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 14476 i := len(dAtA) 14477 _ = i 14478 var l int 14479 _ = l 14480 if len(m.Grantee) > 0 { 14481 i -= len(m.Grantee) 14482 copy(dAtA[i:], m.Grantee) 14483 i = encodeVarintQuery(dAtA, i, uint64(len(m.Grantee))) 14484 i-- 14485 dAtA[i] = 0xa 14486 } 14487 return len(dAtA) - i, nil 14488 } 14489 14490 func (m *QueryActiveStakeGrantResponse) Marshal() (dAtA []byte, err error) { 14491 size := m.Size() 14492 dAtA = make([]byte, size) 14493 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 14494 if err != nil { 14495 return nil, err 14496 } 14497 return dAtA[:n], nil 14498 } 14499 14500 func (m *QueryActiveStakeGrantResponse) MarshalTo(dAtA []byte) (int, error) { 14501 size := m.Size() 14502 return m.MarshalToSizedBuffer(dAtA[:size]) 14503 } 14504 14505 func (m *QueryActiveStakeGrantResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 14506 i := len(dAtA) 14507 _ = i 14508 var l int 14509 _ = l 14510 if m.EffectiveGrant != nil { 14511 { 14512 size, err := m.EffectiveGrant.MarshalToSizedBuffer(dAtA[:i]) 14513 if err != nil { 14514 return 0, err 14515 } 14516 i -= size 14517 i = encodeVarintQuery(dAtA, i, uint64(size)) 14518 } 14519 i-- 14520 dAtA[i] = 0x12 14521 } 14522 if m.Grant != nil { 14523 { 14524 size, err := m.Grant.MarshalToSizedBuffer(dAtA[:i]) 14525 if err != nil { 14526 return 0, err 14527 } 14528 i -= size 14529 i = encodeVarintQuery(dAtA, i, uint64(size)) 14530 } 14531 i-- 14532 dAtA[i] = 0xa 14533 } 14534 return len(dAtA) - i, nil 14535 } 14536 14537 func (m *QueryGrantAuthorizationRequest) Marshal() (dAtA []byte, err error) { 14538 size := m.Size() 14539 dAtA = make([]byte, size) 14540 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 14541 if err != nil { 14542 return nil, err 14543 } 14544 return dAtA[:n], nil 14545 } 14546 14547 func (m *QueryGrantAuthorizationRequest) MarshalTo(dAtA []byte) (int, error) { 14548 size := m.Size() 14549 return m.MarshalToSizedBuffer(dAtA[:size]) 14550 } 14551 14552 func (m *QueryGrantAuthorizationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 14553 i := len(dAtA) 14554 _ = i 14555 var l int 14556 _ = l 14557 if len(m.Grantee) > 0 { 14558 i -= len(m.Grantee) 14559 copy(dAtA[i:], m.Grantee) 14560 i = encodeVarintQuery(dAtA, i, uint64(len(m.Grantee))) 14561 i-- 14562 dAtA[i] = 0x12 14563 } 14564 if len(m.Granter) > 0 { 14565 i -= len(m.Granter) 14566 copy(dAtA[i:], m.Granter) 14567 i = encodeVarintQuery(dAtA, i, uint64(len(m.Granter))) 14568 i-- 14569 dAtA[i] = 0xa 14570 } 14571 return len(dAtA) - i, nil 14572 } 14573 14574 func (m *QueryGrantAuthorizationResponse) Marshal() (dAtA []byte, err error) { 14575 size := m.Size() 14576 dAtA = make([]byte, size) 14577 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 14578 if err != nil { 14579 return nil, err 14580 } 14581 return dAtA[:n], nil 14582 } 14583 14584 func (m *QueryGrantAuthorizationResponse) MarshalTo(dAtA []byte) (int, error) { 14585 size := m.Size() 14586 return m.MarshalToSizedBuffer(dAtA[:size]) 14587 } 14588 14589 func (m *QueryGrantAuthorizationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 14590 i := len(dAtA) 14591 _ = i 14592 var l int 14593 _ = l 14594 { 14595 size := m.Amount.Size() 14596 i -= size 14597 if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { 14598 return 0, err 14599 } 14600 i = encodeVarintQuery(dAtA, i, uint64(size)) 14601 } 14602 i-- 14603 dAtA[i] = 0xa 14604 return len(dAtA) - i, nil 14605 } 14606 14607 func (m *QueryGrantAuthorizationsRequest) Marshal() (dAtA []byte, err error) { 14608 size := m.Size() 14609 dAtA = make([]byte, size) 14610 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 14611 if err != nil { 14612 return nil, err 14613 } 14614 return dAtA[:n], nil 14615 } 14616 14617 func (m *QueryGrantAuthorizationsRequest) MarshalTo(dAtA []byte) (int, error) { 14618 size := m.Size() 14619 return m.MarshalToSizedBuffer(dAtA[:size]) 14620 } 14621 14622 func (m *QueryGrantAuthorizationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 14623 i := len(dAtA) 14624 _ = i 14625 var l int 14626 _ = l 14627 if len(m.Granter) > 0 { 14628 i -= len(m.Granter) 14629 copy(dAtA[i:], m.Granter) 14630 i = encodeVarintQuery(dAtA, i, uint64(len(m.Granter))) 14631 i-- 14632 dAtA[i] = 0xa 14633 } 14634 return len(dAtA) - i, nil 14635 } 14636 14637 func (m *QueryGrantAuthorizationsResponse) Marshal() (dAtA []byte, err error) { 14638 size := m.Size() 14639 dAtA = make([]byte, size) 14640 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 14641 if err != nil { 14642 return nil, err 14643 } 14644 return dAtA[:n], nil 14645 } 14646 14647 func (m *QueryGrantAuthorizationsResponse) MarshalTo(dAtA []byte) (int, error) { 14648 size := m.Size() 14649 return m.MarshalToSizedBuffer(dAtA[:size]) 14650 } 14651 14652 func (m *QueryGrantAuthorizationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 14653 i := len(dAtA) 14654 _ = i 14655 var l int 14656 _ = l 14657 if len(m.Grants) > 0 { 14658 for iNdEx := len(m.Grants) - 1; iNdEx >= 0; iNdEx-- { 14659 { 14660 size, err := m.Grants[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 14661 if err != nil { 14662 return 0, err 14663 } 14664 i -= size 14665 i = encodeVarintQuery(dAtA, i, uint64(size)) 14666 } 14667 i-- 14668 dAtA[i] = 0x12 14669 } 14670 } 14671 { 14672 size := m.TotalGrantAmount.Size() 14673 i -= size 14674 if _, err := m.TotalGrantAmount.MarshalTo(dAtA[i:]); err != nil { 14675 return 0, err 14676 } 14677 i = encodeVarintQuery(dAtA, i, uint64(size)) 14678 } 14679 i-- 14680 dAtA[i] = 0xa 14681 return len(dAtA) - i, nil 14682 } 14683 14684 func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { 14685 offset -= sovQuery(v) 14686 base := offset 14687 for v >= 1<<7 { 14688 dAtA[offset] = uint8(v&0x7f | 0x80) 14689 v >>= 7 14690 offset++ 14691 } 14692 dAtA[offset] = uint8(v) 14693 return base 14694 } 14695 func (m *Subaccount) Size() (n int) { 14696 if m == nil { 14697 return 0 14698 } 14699 var l int 14700 _ = l 14701 l = len(m.Trader) 14702 if l > 0 { 14703 n += 1 + l + sovQuery(uint64(l)) 14704 } 14705 if m.SubaccountNonce != 0 { 14706 n += 1 + sovQuery(uint64(m.SubaccountNonce)) 14707 } 14708 return n 14709 } 14710 14711 func (m *QuerySubaccountOrdersRequest) Size() (n int) { 14712 if m == nil { 14713 return 0 14714 } 14715 var l int 14716 _ = l 14717 l = len(m.SubaccountId) 14718 if l > 0 { 14719 n += 1 + l + sovQuery(uint64(l)) 14720 } 14721 l = len(m.MarketId) 14722 if l > 0 { 14723 n += 1 + l + sovQuery(uint64(l)) 14724 } 14725 return n 14726 } 14727 14728 func (m *QuerySubaccountOrdersResponse) Size() (n int) { 14729 if m == nil { 14730 return 0 14731 } 14732 var l int 14733 _ = l 14734 if len(m.BuyOrders) > 0 { 14735 for _, e := range m.BuyOrders { 14736 l = e.Size() 14737 n += 1 + l + sovQuery(uint64(l)) 14738 } 14739 } 14740 if len(m.SellOrders) > 0 { 14741 for _, e := range m.SellOrders { 14742 l = e.Size() 14743 n += 1 + l + sovQuery(uint64(l)) 14744 } 14745 } 14746 return n 14747 } 14748 14749 func (m *SubaccountOrderbookMetadataWithMarket) Size() (n int) { 14750 if m == nil { 14751 return 0 14752 } 14753 var l int 14754 _ = l 14755 if m.Metadata != nil { 14756 l = m.Metadata.Size() 14757 n += 1 + l + sovQuery(uint64(l)) 14758 } 14759 l = len(m.MarketId) 14760 if l > 0 { 14761 n += 1 + l + sovQuery(uint64(l)) 14762 } 14763 if m.IsBuy { 14764 n += 2 14765 } 14766 return n 14767 } 14768 14769 func (m *QueryExchangeParamsRequest) Size() (n int) { 14770 if m == nil { 14771 return 0 14772 } 14773 var l int 14774 _ = l 14775 return n 14776 } 14777 14778 func (m *QueryExchangeParamsResponse) Size() (n int) { 14779 if m == nil { 14780 return 0 14781 } 14782 var l int 14783 _ = l 14784 l = m.Params.Size() 14785 n += 1 + l + sovQuery(uint64(l)) 14786 return n 14787 } 14788 14789 func (m *QuerySubaccountDepositsRequest) Size() (n int) { 14790 if m == nil { 14791 return 0 14792 } 14793 var l int 14794 _ = l 14795 l = len(m.SubaccountId) 14796 if l > 0 { 14797 n += 1 + l + sovQuery(uint64(l)) 14798 } 14799 if m.Subaccount != nil { 14800 l = m.Subaccount.Size() 14801 n += 1 + l + sovQuery(uint64(l)) 14802 } 14803 return n 14804 } 14805 14806 func (m *QuerySubaccountDepositsResponse) Size() (n int) { 14807 if m == nil { 14808 return 0 14809 } 14810 var l int 14811 _ = l 14812 if len(m.Deposits) > 0 { 14813 for k, v := range m.Deposits { 14814 _ = k 14815 _ = v 14816 l = 0 14817 if v != nil { 14818 l = v.Size() 14819 l += 1 + sovQuery(uint64(l)) 14820 } 14821 mapEntrySize := 1 + len(k) + sovQuery(uint64(len(k))) + l 14822 n += mapEntrySize + 1 + sovQuery(uint64(mapEntrySize)) 14823 } 14824 } 14825 return n 14826 } 14827 14828 func (m *QueryExchangeBalancesRequest) Size() (n int) { 14829 if m == nil { 14830 return 0 14831 } 14832 var l int 14833 _ = l 14834 return n 14835 } 14836 14837 func (m *QueryExchangeBalancesResponse) Size() (n int) { 14838 if m == nil { 14839 return 0 14840 } 14841 var l int 14842 _ = l 14843 if len(m.Balances) > 0 { 14844 for _, e := range m.Balances { 14845 l = e.Size() 14846 n += 1 + l + sovQuery(uint64(l)) 14847 } 14848 } 14849 return n 14850 } 14851 14852 func (m *QueryAggregateVolumeRequest) Size() (n int) { 14853 if m == nil { 14854 return 0 14855 } 14856 var l int 14857 _ = l 14858 l = len(m.Account) 14859 if l > 0 { 14860 n += 1 + l + sovQuery(uint64(l)) 14861 } 14862 return n 14863 } 14864 14865 func (m *QueryAggregateVolumeResponse) Size() (n int) { 14866 if m == nil { 14867 return 0 14868 } 14869 var l int 14870 _ = l 14871 if len(m.AggregateVolumes) > 0 { 14872 for _, e := range m.AggregateVolumes { 14873 l = e.Size() 14874 n += 1 + l + sovQuery(uint64(l)) 14875 } 14876 } 14877 return n 14878 } 14879 14880 func (m *QueryAggregateVolumesRequest) Size() (n int) { 14881 if m == nil { 14882 return 0 14883 } 14884 var l int 14885 _ = l 14886 if len(m.Accounts) > 0 { 14887 for _, s := range m.Accounts { 14888 l = len(s) 14889 n += 1 + l + sovQuery(uint64(l)) 14890 } 14891 } 14892 if len(m.MarketIds) > 0 { 14893 for _, s := range m.MarketIds { 14894 l = len(s) 14895 n += 1 + l + sovQuery(uint64(l)) 14896 } 14897 } 14898 return n 14899 } 14900 14901 func (m *QueryAggregateVolumesResponse) Size() (n int) { 14902 if m == nil { 14903 return 0 14904 } 14905 var l int 14906 _ = l 14907 if len(m.AggregateAccountVolumes) > 0 { 14908 for _, e := range m.AggregateAccountVolumes { 14909 l = e.Size() 14910 n += 1 + l + sovQuery(uint64(l)) 14911 } 14912 } 14913 if len(m.AggregateMarketVolumes) > 0 { 14914 for _, e := range m.AggregateMarketVolumes { 14915 l = e.Size() 14916 n += 1 + l + sovQuery(uint64(l)) 14917 } 14918 } 14919 return n 14920 } 14921 14922 func (m *QueryAggregateMarketVolumeRequest) Size() (n int) { 14923 if m == nil { 14924 return 0 14925 } 14926 var l int 14927 _ = l 14928 l = len(m.MarketId) 14929 if l > 0 { 14930 n += 1 + l + sovQuery(uint64(l)) 14931 } 14932 return n 14933 } 14934 14935 func (m *QueryAggregateMarketVolumeResponse) Size() (n int) { 14936 if m == nil { 14937 return 0 14938 } 14939 var l int 14940 _ = l 14941 l = m.Volume.Size() 14942 n += 1 + l + sovQuery(uint64(l)) 14943 return n 14944 } 14945 14946 func (m *QueryDenomDecimalRequest) Size() (n int) { 14947 if m == nil { 14948 return 0 14949 } 14950 var l int 14951 _ = l 14952 l = len(m.Denom) 14953 if l > 0 { 14954 n += 1 + l + sovQuery(uint64(l)) 14955 } 14956 return n 14957 } 14958 14959 func (m *QueryDenomDecimalResponse) Size() (n int) { 14960 if m == nil { 14961 return 0 14962 } 14963 var l int 14964 _ = l 14965 if m.Decimal != 0 { 14966 n += 1 + sovQuery(uint64(m.Decimal)) 14967 } 14968 return n 14969 } 14970 14971 func (m *QueryDenomDecimalsRequest) Size() (n int) { 14972 if m == nil { 14973 return 0 14974 } 14975 var l int 14976 _ = l 14977 if len(m.Denoms) > 0 { 14978 for _, s := range m.Denoms { 14979 l = len(s) 14980 n += 1 + l + sovQuery(uint64(l)) 14981 } 14982 } 14983 return n 14984 } 14985 14986 func (m *QueryDenomDecimalsResponse) Size() (n int) { 14987 if m == nil { 14988 return 0 14989 } 14990 var l int 14991 _ = l 14992 if len(m.DenomDecimals) > 0 { 14993 for _, e := range m.DenomDecimals { 14994 l = e.Size() 14995 n += 1 + l + sovQuery(uint64(l)) 14996 } 14997 } 14998 return n 14999 } 15000 15001 func (m *QueryAggregateMarketVolumesRequest) Size() (n int) { 15002 if m == nil { 15003 return 0 15004 } 15005 var l int 15006 _ = l 15007 if len(m.MarketIds) > 0 { 15008 for _, s := range m.MarketIds { 15009 l = len(s) 15010 n += 1 + l + sovQuery(uint64(l)) 15011 } 15012 } 15013 return n 15014 } 15015 15016 func (m *QueryAggregateMarketVolumesResponse) Size() (n int) { 15017 if m == nil { 15018 return 0 15019 } 15020 var l int 15021 _ = l 15022 if len(m.Volumes) > 0 { 15023 for _, e := range m.Volumes { 15024 l = e.Size() 15025 n += 1 + l + sovQuery(uint64(l)) 15026 } 15027 } 15028 return n 15029 } 15030 15031 func (m *QuerySubaccountDepositRequest) Size() (n int) { 15032 if m == nil { 15033 return 0 15034 } 15035 var l int 15036 _ = l 15037 l = len(m.SubaccountId) 15038 if l > 0 { 15039 n += 1 + l + sovQuery(uint64(l)) 15040 } 15041 l = len(m.Denom) 15042 if l > 0 { 15043 n += 1 + l + sovQuery(uint64(l)) 15044 } 15045 return n 15046 } 15047 15048 func (m *QuerySubaccountDepositResponse) Size() (n int) { 15049 if m == nil { 15050 return 0 15051 } 15052 var l int 15053 _ = l 15054 if m.Deposits != nil { 15055 l = m.Deposits.Size() 15056 n += 1 + l + sovQuery(uint64(l)) 15057 } 15058 return n 15059 } 15060 15061 func (m *QuerySpotMarketsRequest) Size() (n int) { 15062 if m == nil { 15063 return 0 15064 } 15065 var l int 15066 _ = l 15067 l = len(m.Status) 15068 if l > 0 { 15069 n += 1 + l + sovQuery(uint64(l)) 15070 } 15071 if len(m.MarketIds) > 0 { 15072 for _, s := range m.MarketIds { 15073 l = len(s) 15074 n += 1 + l + sovQuery(uint64(l)) 15075 } 15076 } 15077 return n 15078 } 15079 15080 func (m *QuerySpotMarketsResponse) Size() (n int) { 15081 if m == nil { 15082 return 0 15083 } 15084 var l int 15085 _ = l 15086 if len(m.Markets) > 0 { 15087 for _, e := range m.Markets { 15088 l = e.Size() 15089 n += 1 + l + sovQuery(uint64(l)) 15090 } 15091 } 15092 return n 15093 } 15094 15095 func (m *QuerySpotMarketRequest) Size() (n int) { 15096 if m == nil { 15097 return 0 15098 } 15099 var l int 15100 _ = l 15101 l = len(m.MarketId) 15102 if l > 0 { 15103 n += 1 + l + sovQuery(uint64(l)) 15104 } 15105 return n 15106 } 15107 15108 func (m *QuerySpotMarketResponse) Size() (n int) { 15109 if m == nil { 15110 return 0 15111 } 15112 var l int 15113 _ = l 15114 if m.Market != nil { 15115 l = m.Market.Size() 15116 n += 1 + l + sovQuery(uint64(l)) 15117 } 15118 return n 15119 } 15120 15121 func (m *QuerySpotOrderbookRequest) Size() (n int) { 15122 if m == nil { 15123 return 0 15124 } 15125 var l int 15126 _ = l 15127 l = len(m.MarketId) 15128 if l > 0 { 15129 n += 1 + l + sovQuery(uint64(l)) 15130 } 15131 if m.Limit != 0 { 15132 n += 1 + sovQuery(uint64(m.Limit)) 15133 } 15134 if m.OrderSide != 0 { 15135 n += 1 + sovQuery(uint64(m.OrderSide)) 15136 } 15137 if m.LimitCumulativeNotional != nil { 15138 l = m.LimitCumulativeNotional.Size() 15139 n += 1 + l + sovQuery(uint64(l)) 15140 } 15141 if m.LimitCumulativeQuantity != nil { 15142 l = m.LimitCumulativeQuantity.Size() 15143 n += 1 + l + sovQuery(uint64(l)) 15144 } 15145 return n 15146 } 15147 15148 func (m *QuerySpotOrderbookResponse) Size() (n int) { 15149 if m == nil { 15150 return 0 15151 } 15152 var l int 15153 _ = l 15154 if len(m.BuysPriceLevel) > 0 { 15155 for _, e := range m.BuysPriceLevel { 15156 l = e.Size() 15157 n += 1 + l + sovQuery(uint64(l)) 15158 } 15159 } 15160 if len(m.SellsPriceLevel) > 0 { 15161 for _, e := range m.SellsPriceLevel { 15162 l = e.Size() 15163 n += 1 + l + sovQuery(uint64(l)) 15164 } 15165 } 15166 return n 15167 } 15168 15169 func (m *FullSpotMarket) Size() (n int) { 15170 if m == nil { 15171 return 0 15172 } 15173 var l int 15174 _ = l 15175 if m.Market != nil { 15176 l = m.Market.Size() 15177 n += 1 + l + sovQuery(uint64(l)) 15178 } 15179 if m.MidPriceAndTob != nil { 15180 l = m.MidPriceAndTob.Size() 15181 n += 1 + l + sovQuery(uint64(l)) 15182 } 15183 return n 15184 } 15185 15186 func (m *QueryFullSpotMarketsRequest) Size() (n int) { 15187 if m == nil { 15188 return 0 15189 } 15190 var l int 15191 _ = l 15192 l = len(m.Status) 15193 if l > 0 { 15194 n += 1 + l + sovQuery(uint64(l)) 15195 } 15196 if len(m.MarketIds) > 0 { 15197 for _, s := range m.MarketIds { 15198 l = len(s) 15199 n += 1 + l + sovQuery(uint64(l)) 15200 } 15201 } 15202 if m.WithMidPriceAndTob { 15203 n += 2 15204 } 15205 return n 15206 } 15207 15208 func (m *QueryFullSpotMarketsResponse) Size() (n int) { 15209 if m == nil { 15210 return 0 15211 } 15212 var l int 15213 _ = l 15214 if len(m.Markets) > 0 { 15215 for _, e := range m.Markets { 15216 l = e.Size() 15217 n += 1 + l + sovQuery(uint64(l)) 15218 } 15219 } 15220 return n 15221 } 15222 15223 func (m *QueryFullSpotMarketRequest) Size() (n int) { 15224 if m == nil { 15225 return 0 15226 } 15227 var l int 15228 _ = l 15229 l = len(m.MarketId) 15230 if l > 0 { 15231 n += 1 + l + sovQuery(uint64(l)) 15232 } 15233 if m.WithMidPriceAndTob { 15234 n += 2 15235 } 15236 return n 15237 } 15238 15239 func (m *QueryFullSpotMarketResponse) Size() (n int) { 15240 if m == nil { 15241 return 0 15242 } 15243 var l int 15244 _ = l 15245 if m.Market != nil { 15246 l = m.Market.Size() 15247 n += 1 + l + sovQuery(uint64(l)) 15248 } 15249 return n 15250 } 15251 15252 func (m *QuerySpotOrdersByHashesRequest) Size() (n int) { 15253 if m == nil { 15254 return 0 15255 } 15256 var l int 15257 _ = l 15258 l = len(m.MarketId) 15259 if l > 0 { 15260 n += 1 + l + sovQuery(uint64(l)) 15261 } 15262 l = len(m.SubaccountId) 15263 if l > 0 { 15264 n += 1 + l + sovQuery(uint64(l)) 15265 } 15266 if len(m.OrderHashes) > 0 { 15267 for _, s := range m.OrderHashes { 15268 l = len(s) 15269 n += 1 + l + sovQuery(uint64(l)) 15270 } 15271 } 15272 return n 15273 } 15274 15275 func (m *QuerySpotOrdersByHashesResponse) Size() (n int) { 15276 if m == nil { 15277 return 0 15278 } 15279 var l int 15280 _ = l 15281 if len(m.Orders) > 0 { 15282 for _, e := range m.Orders { 15283 l = e.Size() 15284 n += 1 + l + sovQuery(uint64(l)) 15285 } 15286 } 15287 return n 15288 } 15289 15290 func (m *QueryTraderSpotOrdersRequest) Size() (n int) { 15291 if m == nil { 15292 return 0 15293 } 15294 var l int 15295 _ = l 15296 l = len(m.MarketId) 15297 if l > 0 { 15298 n += 1 + l + sovQuery(uint64(l)) 15299 } 15300 l = len(m.SubaccountId) 15301 if l > 0 { 15302 n += 1 + l + sovQuery(uint64(l)) 15303 } 15304 return n 15305 } 15306 15307 func (m *QueryAccountAddressSpotOrdersRequest) Size() (n int) { 15308 if m == nil { 15309 return 0 15310 } 15311 var l int 15312 _ = l 15313 l = len(m.MarketId) 15314 if l > 0 { 15315 n += 1 + l + sovQuery(uint64(l)) 15316 } 15317 l = len(m.AccountAddress) 15318 if l > 0 { 15319 n += 1 + l + sovQuery(uint64(l)) 15320 } 15321 return n 15322 } 15323 15324 func (m *TrimmedSpotLimitOrder) Size() (n int) { 15325 if m == nil { 15326 return 0 15327 } 15328 var l int 15329 _ = l 15330 l = m.Price.Size() 15331 n += 1 + l + sovQuery(uint64(l)) 15332 l = m.Quantity.Size() 15333 n += 1 + l + sovQuery(uint64(l)) 15334 l = m.Fillable.Size() 15335 n += 1 + l + sovQuery(uint64(l)) 15336 if m.IsBuy { 15337 n += 2 15338 } 15339 l = len(m.OrderHash) 15340 if l > 0 { 15341 n += 1 + l + sovQuery(uint64(l)) 15342 } 15343 l = len(m.Cid) 15344 if l > 0 { 15345 n += 1 + l + sovQuery(uint64(l)) 15346 } 15347 return n 15348 } 15349 15350 func (m *QueryTraderSpotOrdersResponse) Size() (n int) { 15351 if m == nil { 15352 return 0 15353 } 15354 var l int 15355 _ = l 15356 if len(m.Orders) > 0 { 15357 for _, e := range m.Orders { 15358 l = e.Size() 15359 n += 1 + l + sovQuery(uint64(l)) 15360 } 15361 } 15362 return n 15363 } 15364 15365 func (m *QueryAccountAddressSpotOrdersResponse) Size() (n int) { 15366 if m == nil { 15367 return 0 15368 } 15369 var l int 15370 _ = l 15371 if len(m.Orders) > 0 { 15372 for _, e := range m.Orders { 15373 l = e.Size() 15374 n += 1 + l + sovQuery(uint64(l)) 15375 } 15376 } 15377 return n 15378 } 15379 15380 func (m *QuerySpotMidPriceAndTOBRequest) Size() (n int) { 15381 if m == nil { 15382 return 0 15383 } 15384 var l int 15385 _ = l 15386 l = len(m.MarketId) 15387 if l > 0 { 15388 n += 1 + l + sovQuery(uint64(l)) 15389 } 15390 return n 15391 } 15392 15393 func (m *QuerySpotMidPriceAndTOBResponse) Size() (n int) { 15394 if m == nil { 15395 return 0 15396 } 15397 var l int 15398 _ = l 15399 if m.MidPrice != nil { 15400 l = m.MidPrice.Size() 15401 n += 1 + l + sovQuery(uint64(l)) 15402 } 15403 if m.BestBuyPrice != nil { 15404 l = m.BestBuyPrice.Size() 15405 n += 1 + l + sovQuery(uint64(l)) 15406 } 15407 if m.BestSellPrice != nil { 15408 l = m.BestSellPrice.Size() 15409 n += 1 + l + sovQuery(uint64(l)) 15410 } 15411 return n 15412 } 15413 15414 func (m *QueryDerivativeMidPriceAndTOBRequest) Size() (n int) { 15415 if m == nil { 15416 return 0 15417 } 15418 var l int 15419 _ = l 15420 l = len(m.MarketId) 15421 if l > 0 { 15422 n += 1 + l + sovQuery(uint64(l)) 15423 } 15424 return n 15425 } 15426 15427 func (m *QueryDerivativeMidPriceAndTOBResponse) Size() (n int) { 15428 if m == nil { 15429 return 0 15430 } 15431 var l int 15432 _ = l 15433 if m.MidPrice != nil { 15434 l = m.MidPrice.Size() 15435 n += 1 + l + sovQuery(uint64(l)) 15436 } 15437 if m.BestBuyPrice != nil { 15438 l = m.BestBuyPrice.Size() 15439 n += 1 + l + sovQuery(uint64(l)) 15440 } 15441 if m.BestSellPrice != nil { 15442 l = m.BestSellPrice.Size() 15443 n += 1 + l + sovQuery(uint64(l)) 15444 } 15445 return n 15446 } 15447 15448 func (m *QueryDerivativeOrderbookRequest) Size() (n int) { 15449 if m == nil { 15450 return 0 15451 } 15452 var l int 15453 _ = l 15454 l = len(m.MarketId) 15455 if l > 0 { 15456 n += 1 + l + sovQuery(uint64(l)) 15457 } 15458 if m.Limit != 0 { 15459 n += 1 + sovQuery(uint64(m.Limit)) 15460 } 15461 if m.LimitCumulativeNotional != nil { 15462 l = m.LimitCumulativeNotional.Size() 15463 n += 1 + l + sovQuery(uint64(l)) 15464 } 15465 return n 15466 } 15467 15468 func (m *QueryDerivativeOrderbookResponse) Size() (n int) { 15469 if m == nil { 15470 return 0 15471 } 15472 var l int 15473 _ = l 15474 if len(m.BuysPriceLevel) > 0 { 15475 for _, e := range m.BuysPriceLevel { 15476 l = e.Size() 15477 n += 1 + l + sovQuery(uint64(l)) 15478 } 15479 } 15480 if len(m.SellsPriceLevel) > 0 { 15481 for _, e := range m.SellsPriceLevel { 15482 l = e.Size() 15483 n += 1 + l + sovQuery(uint64(l)) 15484 } 15485 } 15486 return n 15487 } 15488 15489 func (m *QueryTraderSpotOrdersToCancelUpToAmountRequest) Size() (n int) { 15490 if m == nil { 15491 return 0 15492 } 15493 var l int 15494 _ = l 15495 l = len(m.MarketId) 15496 if l > 0 { 15497 n += 1 + l + sovQuery(uint64(l)) 15498 } 15499 l = len(m.SubaccountId) 15500 if l > 0 { 15501 n += 1 + l + sovQuery(uint64(l)) 15502 } 15503 l = m.BaseAmount.Size() 15504 n += 1 + l + sovQuery(uint64(l)) 15505 l = m.QuoteAmount.Size() 15506 n += 1 + l + sovQuery(uint64(l)) 15507 if m.Strategy != 0 { 15508 n += 1 + sovQuery(uint64(m.Strategy)) 15509 } 15510 if m.ReferencePrice != nil { 15511 l = m.ReferencePrice.Size() 15512 n += 1 + l + sovQuery(uint64(l)) 15513 } 15514 return n 15515 } 15516 15517 func (m *QueryTraderDerivativeOrdersToCancelUpToAmountRequest) Size() (n int) { 15518 if m == nil { 15519 return 0 15520 } 15521 var l int 15522 _ = l 15523 l = len(m.MarketId) 15524 if l > 0 { 15525 n += 1 + l + sovQuery(uint64(l)) 15526 } 15527 l = len(m.SubaccountId) 15528 if l > 0 { 15529 n += 1 + l + sovQuery(uint64(l)) 15530 } 15531 l = m.QuoteAmount.Size() 15532 n += 1 + l + sovQuery(uint64(l)) 15533 if m.Strategy != 0 { 15534 n += 1 + sovQuery(uint64(m.Strategy)) 15535 } 15536 if m.ReferencePrice != nil { 15537 l = m.ReferencePrice.Size() 15538 n += 1 + l + sovQuery(uint64(l)) 15539 } 15540 return n 15541 } 15542 15543 func (m *QueryTraderDerivativeOrdersRequest) Size() (n int) { 15544 if m == nil { 15545 return 0 15546 } 15547 var l int 15548 _ = l 15549 l = len(m.MarketId) 15550 if l > 0 { 15551 n += 1 + l + sovQuery(uint64(l)) 15552 } 15553 l = len(m.SubaccountId) 15554 if l > 0 { 15555 n += 1 + l + sovQuery(uint64(l)) 15556 } 15557 return n 15558 } 15559 15560 func (m *QueryAccountAddressDerivativeOrdersRequest) Size() (n int) { 15561 if m == nil { 15562 return 0 15563 } 15564 var l int 15565 _ = l 15566 l = len(m.MarketId) 15567 if l > 0 { 15568 n += 1 + l + sovQuery(uint64(l)) 15569 } 15570 l = len(m.AccountAddress) 15571 if l > 0 { 15572 n += 1 + l + sovQuery(uint64(l)) 15573 } 15574 return n 15575 } 15576 15577 func (m *TrimmedDerivativeLimitOrder) Size() (n int) { 15578 if m == nil { 15579 return 0 15580 } 15581 var l int 15582 _ = l 15583 l = m.Price.Size() 15584 n += 1 + l + sovQuery(uint64(l)) 15585 l = m.Quantity.Size() 15586 n += 1 + l + sovQuery(uint64(l)) 15587 l = m.Margin.Size() 15588 n += 1 + l + sovQuery(uint64(l)) 15589 l = m.Fillable.Size() 15590 n += 1 + l + sovQuery(uint64(l)) 15591 if m.IsBuy { 15592 n += 2 15593 } 15594 l = len(m.OrderHash) 15595 if l > 0 { 15596 n += 1 + l + sovQuery(uint64(l)) 15597 } 15598 l = len(m.Cid) 15599 if l > 0 { 15600 n += 1 + l + sovQuery(uint64(l)) 15601 } 15602 return n 15603 } 15604 15605 func (m *QueryTraderDerivativeOrdersResponse) Size() (n int) { 15606 if m == nil { 15607 return 0 15608 } 15609 var l int 15610 _ = l 15611 if len(m.Orders) > 0 { 15612 for _, e := range m.Orders { 15613 l = e.Size() 15614 n += 1 + l + sovQuery(uint64(l)) 15615 } 15616 } 15617 return n 15618 } 15619 15620 func (m *QueryAccountAddressDerivativeOrdersResponse) Size() (n int) { 15621 if m == nil { 15622 return 0 15623 } 15624 var l int 15625 _ = l 15626 if len(m.Orders) > 0 { 15627 for _, e := range m.Orders { 15628 l = e.Size() 15629 n += 1 + l + sovQuery(uint64(l)) 15630 } 15631 } 15632 return n 15633 } 15634 15635 func (m *QueryDerivativeOrdersByHashesRequest) Size() (n int) { 15636 if m == nil { 15637 return 0 15638 } 15639 var l int 15640 _ = l 15641 l = len(m.MarketId) 15642 if l > 0 { 15643 n += 1 + l + sovQuery(uint64(l)) 15644 } 15645 l = len(m.SubaccountId) 15646 if l > 0 { 15647 n += 1 + l + sovQuery(uint64(l)) 15648 } 15649 if len(m.OrderHashes) > 0 { 15650 for _, s := range m.OrderHashes { 15651 l = len(s) 15652 n += 1 + l + sovQuery(uint64(l)) 15653 } 15654 } 15655 return n 15656 } 15657 15658 func (m *QueryDerivativeOrdersByHashesResponse) Size() (n int) { 15659 if m == nil { 15660 return 0 15661 } 15662 var l int 15663 _ = l 15664 if len(m.Orders) > 0 { 15665 for _, e := range m.Orders { 15666 l = e.Size() 15667 n += 1 + l + sovQuery(uint64(l)) 15668 } 15669 } 15670 return n 15671 } 15672 15673 func (m *QueryDerivativeMarketsRequest) Size() (n int) { 15674 if m == nil { 15675 return 0 15676 } 15677 var l int 15678 _ = l 15679 l = len(m.Status) 15680 if l > 0 { 15681 n += 1 + l + sovQuery(uint64(l)) 15682 } 15683 if len(m.MarketIds) > 0 { 15684 for _, s := range m.MarketIds { 15685 l = len(s) 15686 n += 1 + l + sovQuery(uint64(l)) 15687 } 15688 } 15689 if m.WithMidPriceAndTob { 15690 n += 2 15691 } 15692 return n 15693 } 15694 15695 func (m *PriceLevel) Size() (n int) { 15696 if m == nil { 15697 return 0 15698 } 15699 var l int 15700 _ = l 15701 l = m.Price.Size() 15702 n += 1 + l + sovQuery(uint64(l)) 15703 l = m.Quantity.Size() 15704 n += 1 + l + sovQuery(uint64(l)) 15705 return n 15706 } 15707 15708 func (m *PerpetualMarketState) Size() (n int) { 15709 if m == nil { 15710 return 0 15711 } 15712 var l int 15713 _ = l 15714 if m.MarketInfo != nil { 15715 l = m.MarketInfo.Size() 15716 n += 1 + l + sovQuery(uint64(l)) 15717 } 15718 if m.FundingInfo != nil { 15719 l = m.FundingInfo.Size() 15720 n += 1 + l + sovQuery(uint64(l)) 15721 } 15722 return n 15723 } 15724 15725 func (m *FullDerivativeMarket) Size() (n int) { 15726 if m == nil { 15727 return 0 15728 } 15729 var l int 15730 _ = l 15731 if m.Market != nil { 15732 l = m.Market.Size() 15733 n += 1 + l + sovQuery(uint64(l)) 15734 } 15735 if m.Info != nil { 15736 n += m.Info.Size() 15737 } 15738 l = m.MarkPrice.Size() 15739 n += 1 + l + sovQuery(uint64(l)) 15740 if m.MidPriceAndTob != nil { 15741 l = m.MidPriceAndTob.Size() 15742 n += 1 + l + sovQuery(uint64(l)) 15743 } 15744 return n 15745 } 15746 15747 func (m *FullDerivativeMarket_PerpetualInfo) Size() (n int) { 15748 if m == nil { 15749 return 0 15750 } 15751 var l int 15752 _ = l 15753 if m.PerpetualInfo != nil { 15754 l = m.PerpetualInfo.Size() 15755 n += 1 + l + sovQuery(uint64(l)) 15756 } 15757 return n 15758 } 15759 func (m *FullDerivativeMarket_FuturesInfo) Size() (n int) { 15760 if m == nil { 15761 return 0 15762 } 15763 var l int 15764 _ = l 15765 if m.FuturesInfo != nil { 15766 l = m.FuturesInfo.Size() 15767 n += 1 + l + sovQuery(uint64(l)) 15768 } 15769 return n 15770 } 15771 func (m *QueryDerivativeMarketsResponse) Size() (n int) { 15772 if m == nil { 15773 return 0 15774 } 15775 var l int 15776 _ = l 15777 if len(m.Markets) > 0 { 15778 for _, e := range m.Markets { 15779 l = e.Size() 15780 n += 1 + l + sovQuery(uint64(l)) 15781 } 15782 } 15783 return n 15784 } 15785 15786 func (m *QueryDerivativeMarketRequest) Size() (n int) { 15787 if m == nil { 15788 return 0 15789 } 15790 var l int 15791 _ = l 15792 l = len(m.MarketId) 15793 if l > 0 { 15794 n += 1 + l + sovQuery(uint64(l)) 15795 } 15796 return n 15797 } 15798 15799 func (m *QueryDerivativeMarketResponse) Size() (n int) { 15800 if m == nil { 15801 return 0 15802 } 15803 var l int 15804 _ = l 15805 if m.Market != nil { 15806 l = m.Market.Size() 15807 n += 1 + l + sovQuery(uint64(l)) 15808 } 15809 return n 15810 } 15811 15812 func (m *QueryDerivativeMarketAddressRequest) Size() (n int) { 15813 if m == nil { 15814 return 0 15815 } 15816 var l int 15817 _ = l 15818 l = len(m.MarketId) 15819 if l > 0 { 15820 n += 1 + l + sovQuery(uint64(l)) 15821 } 15822 return n 15823 } 15824 15825 func (m *QueryDerivativeMarketAddressResponse) Size() (n int) { 15826 if m == nil { 15827 return 0 15828 } 15829 var l int 15830 _ = l 15831 l = len(m.Address) 15832 if l > 0 { 15833 n += 1 + l + sovQuery(uint64(l)) 15834 } 15835 l = len(m.SubaccountId) 15836 if l > 0 { 15837 n += 1 + l + sovQuery(uint64(l)) 15838 } 15839 return n 15840 } 15841 15842 func (m *QuerySubaccountTradeNonceRequest) Size() (n int) { 15843 if m == nil { 15844 return 0 15845 } 15846 var l int 15847 _ = l 15848 l = len(m.SubaccountId) 15849 if l > 0 { 15850 n += 1 + l + sovQuery(uint64(l)) 15851 } 15852 return n 15853 } 15854 15855 func (m *QuerySubaccountPositionsRequest) Size() (n int) { 15856 if m == nil { 15857 return 0 15858 } 15859 var l int 15860 _ = l 15861 l = len(m.SubaccountId) 15862 if l > 0 { 15863 n += 1 + l + sovQuery(uint64(l)) 15864 } 15865 return n 15866 } 15867 15868 func (m *QuerySubaccountPositionInMarketRequest) Size() (n int) { 15869 if m == nil { 15870 return 0 15871 } 15872 var l int 15873 _ = l 15874 l = len(m.SubaccountId) 15875 if l > 0 { 15876 n += 1 + l + sovQuery(uint64(l)) 15877 } 15878 l = len(m.MarketId) 15879 if l > 0 { 15880 n += 1 + l + sovQuery(uint64(l)) 15881 } 15882 return n 15883 } 15884 15885 func (m *QuerySubaccountEffectivePositionInMarketRequest) Size() (n int) { 15886 if m == nil { 15887 return 0 15888 } 15889 var l int 15890 _ = l 15891 l = len(m.SubaccountId) 15892 if l > 0 { 15893 n += 1 + l + sovQuery(uint64(l)) 15894 } 15895 l = len(m.MarketId) 15896 if l > 0 { 15897 n += 1 + l + sovQuery(uint64(l)) 15898 } 15899 return n 15900 } 15901 15902 func (m *QuerySubaccountOrderMetadataRequest) Size() (n int) { 15903 if m == nil { 15904 return 0 15905 } 15906 var l int 15907 _ = l 15908 l = len(m.SubaccountId) 15909 if l > 0 { 15910 n += 1 + l + sovQuery(uint64(l)) 15911 } 15912 return n 15913 } 15914 15915 func (m *QuerySubaccountPositionsResponse) Size() (n int) { 15916 if m == nil { 15917 return 0 15918 } 15919 var l int 15920 _ = l 15921 if len(m.State) > 0 { 15922 for _, e := range m.State { 15923 l = e.Size() 15924 n += 1 + l + sovQuery(uint64(l)) 15925 } 15926 } 15927 return n 15928 } 15929 15930 func (m *QuerySubaccountPositionInMarketResponse) Size() (n int) { 15931 if m == nil { 15932 return 0 15933 } 15934 var l int 15935 _ = l 15936 if m.State != nil { 15937 l = m.State.Size() 15938 n += 1 + l + sovQuery(uint64(l)) 15939 } 15940 return n 15941 } 15942 15943 func (m *EffectivePosition) Size() (n int) { 15944 if m == nil { 15945 return 0 15946 } 15947 var l int 15948 _ = l 15949 if m.IsLong { 15950 n += 2 15951 } 15952 l = m.Quantity.Size() 15953 n += 1 + l + sovQuery(uint64(l)) 15954 l = m.EntryPrice.Size() 15955 n += 1 + l + sovQuery(uint64(l)) 15956 l = m.EffectiveMargin.Size() 15957 n += 1 + l + sovQuery(uint64(l)) 15958 return n 15959 } 15960 15961 func (m *QuerySubaccountEffectivePositionInMarketResponse) Size() (n int) { 15962 if m == nil { 15963 return 0 15964 } 15965 var l int 15966 _ = l 15967 if m.State != nil { 15968 l = m.State.Size() 15969 n += 1 + l + sovQuery(uint64(l)) 15970 } 15971 return n 15972 } 15973 15974 func (m *QueryPerpetualMarketInfoRequest) Size() (n int) { 15975 if m == nil { 15976 return 0 15977 } 15978 var l int 15979 _ = l 15980 l = len(m.MarketId) 15981 if l > 0 { 15982 n += 1 + l + sovQuery(uint64(l)) 15983 } 15984 return n 15985 } 15986 15987 func (m *QueryPerpetualMarketInfoResponse) Size() (n int) { 15988 if m == nil { 15989 return 0 15990 } 15991 var l int 15992 _ = l 15993 l = m.Info.Size() 15994 n += 1 + l + sovQuery(uint64(l)) 15995 return n 15996 } 15997 15998 func (m *QueryExpiryFuturesMarketInfoRequest) Size() (n int) { 15999 if m == nil { 16000 return 0 16001 } 16002 var l int 16003 _ = l 16004 l = len(m.MarketId) 16005 if l > 0 { 16006 n += 1 + l + sovQuery(uint64(l)) 16007 } 16008 return n 16009 } 16010 16011 func (m *QueryExpiryFuturesMarketInfoResponse) Size() (n int) { 16012 if m == nil { 16013 return 0 16014 } 16015 var l int 16016 _ = l 16017 l = m.Info.Size() 16018 n += 1 + l + sovQuery(uint64(l)) 16019 return n 16020 } 16021 16022 func (m *QueryPerpetualMarketFundingRequest) Size() (n int) { 16023 if m == nil { 16024 return 0 16025 } 16026 var l int 16027 _ = l 16028 l = len(m.MarketId) 16029 if l > 0 { 16030 n += 1 + l + sovQuery(uint64(l)) 16031 } 16032 return n 16033 } 16034 16035 func (m *QueryPerpetualMarketFundingResponse) Size() (n int) { 16036 if m == nil { 16037 return 0 16038 } 16039 var l int 16040 _ = l 16041 l = m.State.Size() 16042 n += 1 + l + sovQuery(uint64(l)) 16043 return n 16044 } 16045 16046 func (m *QuerySubaccountOrderMetadataResponse) Size() (n int) { 16047 if m == nil { 16048 return 0 16049 } 16050 var l int 16051 _ = l 16052 if len(m.Metadata) > 0 { 16053 for _, e := range m.Metadata { 16054 l = e.Size() 16055 n += 1 + l + sovQuery(uint64(l)) 16056 } 16057 } 16058 return n 16059 } 16060 16061 func (m *QuerySubaccountTradeNonceResponse) Size() (n int) { 16062 if m == nil { 16063 return 0 16064 } 16065 var l int 16066 _ = l 16067 if m.Nonce != 0 { 16068 n += 1 + sovQuery(uint64(m.Nonce)) 16069 } 16070 return n 16071 } 16072 16073 func (m *QueryModuleStateRequest) Size() (n int) { 16074 if m == nil { 16075 return 0 16076 } 16077 var l int 16078 _ = l 16079 return n 16080 } 16081 16082 func (m *QueryModuleStateResponse) Size() (n int) { 16083 if m == nil { 16084 return 0 16085 } 16086 var l int 16087 _ = l 16088 if m.State != nil { 16089 l = m.State.Size() 16090 n += 1 + l + sovQuery(uint64(l)) 16091 } 16092 return n 16093 } 16094 16095 func (m *QueryPositionsRequest) Size() (n int) { 16096 if m == nil { 16097 return 0 16098 } 16099 var l int 16100 _ = l 16101 return n 16102 } 16103 16104 func (m *QueryPositionsResponse) Size() (n int) { 16105 if m == nil { 16106 return 0 16107 } 16108 var l int 16109 _ = l 16110 if len(m.State) > 0 { 16111 for _, e := range m.State { 16112 l = e.Size() 16113 n += 1 + l + sovQuery(uint64(l)) 16114 } 16115 } 16116 return n 16117 } 16118 16119 func (m *QueryTradeRewardPointsRequest) Size() (n int) { 16120 if m == nil { 16121 return 0 16122 } 16123 var l int 16124 _ = l 16125 if len(m.Accounts) > 0 { 16126 for _, s := range m.Accounts { 16127 l = len(s) 16128 n += 1 + l + sovQuery(uint64(l)) 16129 } 16130 } 16131 if m.PendingPoolTimestamp != 0 { 16132 n += 1 + sovQuery(uint64(m.PendingPoolTimestamp)) 16133 } 16134 return n 16135 } 16136 16137 func (m *QueryTradeRewardPointsResponse) Size() (n int) { 16138 if m == nil { 16139 return 0 16140 } 16141 var l int 16142 _ = l 16143 if len(m.AccountTradeRewardPoints) > 0 { 16144 for _, e := range m.AccountTradeRewardPoints { 16145 l = e.Size() 16146 n += 1 + l + sovQuery(uint64(l)) 16147 } 16148 } 16149 return n 16150 } 16151 16152 func (m *QueryTradeRewardCampaignRequest) Size() (n int) { 16153 if m == nil { 16154 return 0 16155 } 16156 var l int 16157 _ = l 16158 return n 16159 } 16160 16161 func (m *QueryTradeRewardCampaignResponse) Size() (n int) { 16162 if m == nil { 16163 return 0 16164 } 16165 var l int 16166 _ = l 16167 if m.TradingRewardCampaignInfo != nil { 16168 l = m.TradingRewardCampaignInfo.Size() 16169 n += 1 + l + sovQuery(uint64(l)) 16170 } 16171 if len(m.TradingRewardPoolCampaignSchedule) > 0 { 16172 for _, e := range m.TradingRewardPoolCampaignSchedule { 16173 l = e.Size() 16174 n += 1 + l + sovQuery(uint64(l)) 16175 } 16176 } 16177 l = m.TotalTradeRewardPoints.Size() 16178 n += 1 + l + sovQuery(uint64(l)) 16179 if len(m.PendingTradingRewardPoolCampaignSchedule) > 0 { 16180 for _, e := range m.PendingTradingRewardPoolCampaignSchedule { 16181 l = e.Size() 16182 n += 1 + l + sovQuery(uint64(l)) 16183 } 16184 } 16185 if len(m.PendingTotalTradeRewardPoints) > 0 { 16186 for _, e := range m.PendingTotalTradeRewardPoints { 16187 l = e.Size() 16188 n += 1 + l + sovQuery(uint64(l)) 16189 } 16190 } 16191 return n 16192 } 16193 16194 func (m *QueryIsOptedOutOfRewardsRequest) Size() (n int) { 16195 if m == nil { 16196 return 0 16197 } 16198 var l int 16199 _ = l 16200 l = len(m.Account) 16201 if l > 0 { 16202 n += 1 + l + sovQuery(uint64(l)) 16203 } 16204 return n 16205 } 16206 16207 func (m *QueryIsOptedOutOfRewardsResponse) Size() (n int) { 16208 if m == nil { 16209 return 0 16210 } 16211 var l int 16212 _ = l 16213 if m.IsOptedOut { 16214 n += 2 16215 } 16216 return n 16217 } 16218 16219 func (m *QueryOptedOutOfRewardsAccountsRequest) Size() (n int) { 16220 if m == nil { 16221 return 0 16222 } 16223 var l int 16224 _ = l 16225 return n 16226 } 16227 16228 func (m *QueryOptedOutOfRewardsAccountsResponse) Size() (n int) { 16229 if m == nil { 16230 return 0 16231 } 16232 var l int 16233 _ = l 16234 if len(m.Accounts) > 0 { 16235 for _, s := range m.Accounts { 16236 l = len(s) 16237 n += 1 + l + sovQuery(uint64(l)) 16238 } 16239 } 16240 return n 16241 } 16242 16243 func (m *QueryFeeDiscountAccountInfoRequest) Size() (n int) { 16244 if m == nil { 16245 return 0 16246 } 16247 var l int 16248 _ = l 16249 l = len(m.Account) 16250 if l > 0 { 16251 n += 1 + l + sovQuery(uint64(l)) 16252 } 16253 return n 16254 } 16255 16256 func (m *QueryFeeDiscountAccountInfoResponse) Size() (n int) { 16257 if m == nil { 16258 return 0 16259 } 16260 var l int 16261 _ = l 16262 if m.TierLevel != 0 { 16263 n += 1 + sovQuery(uint64(m.TierLevel)) 16264 } 16265 if m.AccountInfo != nil { 16266 l = m.AccountInfo.Size() 16267 n += 1 + l + sovQuery(uint64(l)) 16268 } 16269 if m.AccountTtl != nil { 16270 l = m.AccountTtl.Size() 16271 n += 1 + l + sovQuery(uint64(l)) 16272 } 16273 return n 16274 } 16275 16276 func (m *QueryFeeDiscountScheduleRequest) Size() (n int) { 16277 if m == nil { 16278 return 0 16279 } 16280 var l int 16281 _ = l 16282 return n 16283 } 16284 16285 func (m *QueryFeeDiscountScheduleResponse) Size() (n int) { 16286 if m == nil { 16287 return 0 16288 } 16289 var l int 16290 _ = l 16291 if m.FeeDiscountSchedule != nil { 16292 l = m.FeeDiscountSchedule.Size() 16293 n += 1 + l + sovQuery(uint64(l)) 16294 } 16295 return n 16296 } 16297 16298 func (m *QueryBalanceMismatchesRequest) Size() (n int) { 16299 if m == nil { 16300 return 0 16301 } 16302 var l int 16303 _ = l 16304 if m.DustFactor != 0 { 16305 n += 1 + sovQuery(uint64(m.DustFactor)) 16306 } 16307 return n 16308 } 16309 16310 func (m *BalanceMismatch) Size() (n int) { 16311 if m == nil { 16312 return 0 16313 } 16314 var l int 16315 _ = l 16316 l = len(m.SubaccountId) 16317 if l > 0 { 16318 n += 1 + l + sovQuery(uint64(l)) 16319 } 16320 l = len(m.Denom) 16321 if l > 0 { 16322 n += 1 + l + sovQuery(uint64(l)) 16323 } 16324 l = m.Available.Size() 16325 n += 1 + l + sovQuery(uint64(l)) 16326 l = m.Total.Size() 16327 n += 1 + l + sovQuery(uint64(l)) 16328 l = m.BalanceHold.Size() 16329 n += 1 + l + sovQuery(uint64(l)) 16330 l = m.ExpectedTotal.Size() 16331 n += 1 + l + sovQuery(uint64(l)) 16332 l = m.Difference.Size() 16333 n += 1 + l + sovQuery(uint64(l)) 16334 return n 16335 } 16336 16337 func (m *QueryBalanceMismatchesResponse) Size() (n int) { 16338 if m == nil { 16339 return 0 16340 } 16341 var l int 16342 _ = l 16343 if len(m.BalanceMismatches) > 0 { 16344 for _, e := range m.BalanceMismatches { 16345 l = e.Size() 16346 n += 1 + l + sovQuery(uint64(l)) 16347 } 16348 } 16349 return n 16350 } 16351 16352 func (m *QueryBalanceWithBalanceHoldsRequest) Size() (n int) { 16353 if m == nil { 16354 return 0 16355 } 16356 var l int 16357 _ = l 16358 return n 16359 } 16360 16361 func (m *BalanceWithMarginHold) Size() (n int) { 16362 if m == nil { 16363 return 0 16364 } 16365 var l int 16366 _ = l 16367 l = len(m.SubaccountId) 16368 if l > 0 { 16369 n += 1 + l + sovQuery(uint64(l)) 16370 } 16371 l = len(m.Denom) 16372 if l > 0 { 16373 n += 1 + l + sovQuery(uint64(l)) 16374 } 16375 l = m.Available.Size() 16376 n += 1 + l + sovQuery(uint64(l)) 16377 l = m.Total.Size() 16378 n += 1 + l + sovQuery(uint64(l)) 16379 l = m.BalanceHold.Size() 16380 n += 1 + l + sovQuery(uint64(l)) 16381 return n 16382 } 16383 16384 func (m *QueryBalanceWithBalanceHoldsResponse) Size() (n int) { 16385 if m == nil { 16386 return 0 16387 } 16388 var l int 16389 _ = l 16390 if len(m.BalanceWithBalanceHolds) > 0 { 16391 for _, e := range m.BalanceWithBalanceHolds { 16392 l = e.Size() 16393 n += 1 + l + sovQuery(uint64(l)) 16394 } 16395 } 16396 return n 16397 } 16398 16399 func (m *QueryFeeDiscountTierStatisticsRequest) Size() (n int) { 16400 if m == nil { 16401 return 0 16402 } 16403 var l int 16404 _ = l 16405 return n 16406 } 16407 16408 func (m *TierStatistic) Size() (n int) { 16409 if m == nil { 16410 return 0 16411 } 16412 var l int 16413 _ = l 16414 if m.Tier != 0 { 16415 n += 1 + sovQuery(uint64(m.Tier)) 16416 } 16417 if m.Count != 0 { 16418 n += 1 + sovQuery(uint64(m.Count)) 16419 } 16420 return n 16421 } 16422 16423 func (m *QueryFeeDiscountTierStatisticsResponse) Size() (n int) { 16424 if m == nil { 16425 return 0 16426 } 16427 var l int 16428 _ = l 16429 if len(m.Statistics) > 0 { 16430 for _, e := range m.Statistics { 16431 l = e.Size() 16432 n += 1 + l + sovQuery(uint64(l)) 16433 } 16434 } 16435 return n 16436 } 16437 16438 func (m *MitoVaultInfosRequest) Size() (n int) { 16439 if m == nil { 16440 return 0 16441 } 16442 var l int 16443 _ = l 16444 return n 16445 } 16446 16447 func (m *MitoVaultInfosResponse) Size() (n int) { 16448 if m == nil { 16449 return 0 16450 } 16451 var l int 16452 _ = l 16453 if len(m.MasterAddresses) > 0 { 16454 for _, s := range m.MasterAddresses { 16455 l = len(s) 16456 n += 1 + l + sovQuery(uint64(l)) 16457 } 16458 } 16459 if len(m.DerivativeAddresses) > 0 { 16460 for _, s := range m.DerivativeAddresses { 16461 l = len(s) 16462 n += 1 + l + sovQuery(uint64(l)) 16463 } 16464 } 16465 if len(m.SpotAddresses) > 0 { 16466 for _, s := range m.SpotAddresses { 16467 l = len(s) 16468 n += 1 + l + sovQuery(uint64(l)) 16469 } 16470 } 16471 if len(m.Cw20Addresses) > 0 { 16472 for _, s := range m.Cw20Addresses { 16473 l = len(s) 16474 n += 1 + l + sovQuery(uint64(l)) 16475 } 16476 } 16477 return n 16478 } 16479 16480 func (m *QueryMarketIDFromVaultRequest) Size() (n int) { 16481 if m == nil { 16482 return 0 16483 } 16484 var l int 16485 _ = l 16486 l = len(m.VaultAddress) 16487 if l > 0 { 16488 n += 1 + l + sovQuery(uint64(l)) 16489 } 16490 return n 16491 } 16492 16493 func (m *QueryMarketIDFromVaultResponse) Size() (n int) { 16494 if m == nil { 16495 return 0 16496 } 16497 var l int 16498 _ = l 16499 l = len(m.MarketId) 16500 if l > 0 { 16501 n += 1 + l + sovQuery(uint64(l)) 16502 } 16503 return n 16504 } 16505 16506 func (m *QueryHistoricalTradeRecordsRequest) Size() (n int) { 16507 if m == nil { 16508 return 0 16509 } 16510 var l int 16511 _ = l 16512 l = len(m.MarketId) 16513 if l > 0 { 16514 n += 1 + l + sovQuery(uint64(l)) 16515 } 16516 return n 16517 } 16518 16519 func (m *QueryHistoricalTradeRecordsResponse) Size() (n int) { 16520 if m == nil { 16521 return 0 16522 } 16523 var l int 16524 _ = l 16525 if len(m.TradeRecords) > 0 { 16526 for _, e := range m.TradeRecords { 16527 l = e.Size() 16528 n += 1 + l + sovQuery(uint64(l)) 16529 } 16530 } 16531 return n 16532 } 16533 16534 func (m *TradeHistoryOptions) Size() (n int) { 16535 if m == nil { 16536 return 0 16537 } 16538 var l int 16539 _ = l 16540 if m.TradeGroupingSec != 0 { 16541 n += 1 + sovQuery(uint64(m.TradeGroupingSec)) 16542 } 16543 if m.MaxAge != 0 { 16544 n += 1 + sovQuery(uint64(m.MaxAge)) 16545 } 16546 if m.IncludeRawHistory { 16547 n += 2 16548 } 16549 if m.IncludeMetadata { 16550 n += 2 16551 } 16552 return n 16553 } 16554 16555 func (m *QueryMarketVolatilityRequest) Size() (n int) { 16556 if m == nil { 16557 return 0 16558 } 16559 var l int 16560 _ = l 16561 l = len(m.MarketId) 16562 if l > 0 { 16563 n += 1 + l + sovQuery(uint64(l)) 16564 } 16565 if m.TradeHistoryOptions != nil { 16566 l = m.TradeHistoryOptions.Size() 16567 n += 1 + l + sovQuery(uint64(l)) 16568 } 16569 return n 16570 } 16571 16572 func (m *QueryMarketVolatilityResponse) Size() (n int) { 16573 if m == nil { 16574 return 0 16575 } 16576 var l int 16577 _ = l 16578 if m.Volatility != nil { 16579 l = m.Volatility.Size() 16580 n += 1 + l + sovQuery(uint64(l)) 16581 } 16582 if m.HistoryMetadata != nil { 16583 l = m.HistoryMetadata.Size() 16584 n += 1 + l + sovQuery(uint64(l)) 16585 } 16586 if len(m.RawHistory) > 0 { 16587 for _, e := range m.RawHistory { 16588 l = e.Size() 16589 n += 1 + l + sovQuery(uint64(l)) 16590 } 16591 } 16592 return n 16593 } 16594 16595 func (m *QueryBinaryMarketsRequest) Size() (n int) { 16596 if m == nil { 16597 return 0 16598 } 16599 var l int 16600 _ = l 16601 l = len(m.Status) 16602 if l > 0 { 16603 n += 1 + l + sovQuery(uint64(l)) 16604 } 16605 return n 16606 } 16607 16608 func (m *QueryBinaryMarketsResponse) Size() (n int) { 16609 if m == nil { 16610 return 0 16611 } 16612 var l int 16613 _ = l 16614 if len(m.Markets) > 0 { 16615 for _, e := range m.Markets { 16616 l = e.Size() 16617 n += 1 + l + sovQuery(uint64(l)) 16618 } 16619 } 16620 return n 16621 } 16622 16623 func (m *QueryTraderDerivativeConditionalOrdersRequest) Size() (n int) { 16624 if m == nil { 16625 return 0 16626 } 16627 var l int 16628 _ = l 16629 l = len(m.SubaccountId) 16630 if l > 0 { 16631 n += 1 + l + sovQuery(uint64(l)) 16632 } 16633 l = len(m.MarketId) 16634 if l > 0 { 16635 n += 1 + l + sovQuery(uint64(l)) 16636 } 16637 return n 16638 } 16639 16640 func (m *TrimmedDerivativeConditionalOrder) Size() (n int) { 16641 if m == nil { 16642 return 0 16643 } 16644 var l int 16645 _ = l 16646 l = m.Price.Size() 16647 n += 1 + l + sovQuery(uint64(l)) 16648 l = m.Quantity.Size() 16649 n += 1 + l + sovQuery(uint64(l)) 16650 l = m.Margin.Size() 16651 n += 1 + l + sovQuery(uint64(l)) 16652 l = m.TriggerPrice.Size() 16653 n += 1 + l + sovQuery(uint64(l)) 16654 if m.IsBuy { 16655 n += 2 16656 } 16657 if m.IsLimit { 16658 n += 2 16659 } 16660 l = len(m.OrderHash) 16661 if l > 0 { 16662 n += 1 + l + sovQuery(uint64(l)) 16663 } 16664 l = len(m.Cid) 16665 if l > 0 { 16666 n += 1 + l + sovQuery(uint64(l)) 16667 } 16668 return n 16669 } 16670 16671 func (m *QueryTraderDerivativeConditionalOrdersResponse) Size() (n int) { 16672 if m == nil { 16673 return 0 16674 } 16675 var l int 16676 _ = l 16677 if len(m.Orders) > 0 { 16678 for _, e := range m.Orders { 16679 l = e.Size() 16680 n += 1 + l + sovQuery(uint64(l)) 16681 } 16682 } 16683 return n 16684 } 16685 16686 func (m *QueryMarketAtomicExecutionFeeMultiplierRequest) Size() (n int) { 16687 if m == nil { 16688 return 0 16689 } 16690 var l int 16691 _ = l 16692 l = len(m.MarketId) 16693 if l > 0 { 16694 n += 1 + l + sovQuery(uint64(l)) 16695 } 16696 return n 16697 } 16698 16699 func (m *QueryMarketAtomicExecutionFeeMultiplierResponse) Size() (n int) { 16700 if m == nil { 16701 return 0 16702 } 16703 var l int 16704 _ = l 16705 l = m.Multiplier.Size() 16706 n += 1 + l + sovQuery(uint64(l)) 16707 return n 16708 } 16709 16710 func (m *QueryActiveStakeGrantRequest) Size() (n int) { 16711 if m == nil { 16712 return 0 16713 } 16714 var l int 16715 _ = l 16716 l = len(m.Grantee) 16717 if l > 0 { 16718 n += 1 + l + sovQuery(uint64(l)) 16719 } 16720 return n 16721 } 16722 16723 func (m *QueryActiveStakeGrantResponse) Size() (n int) { 16724 if m == nil { 16725 return 0 16726 } 16727 var l int 16728 _ = l 16729 if m.Grant != nil { 16730 l = m.Grant.Size() 16731 n += 1 + l + sovQuery(uint64(l)) 16732 } 16733 if m.EffectiveGrant != nil { 16734 l = m.EffectiveGrant.Size() 16735 n += 1 + l + sovQuery(uint64(l)) 16736 } 16737 return n 16738 } 16739 16740 func (m *QueryGrantAuthorizationRequest) Size() (n int) { 16741 if m == nil { 16742 return 0 16743 } 16744 var l int 16745 _ = l 16746 l = len(m.Granter) 16747 if l > 0 { 16748 n += 1 + l + sovQuery(uint64(l)) 16749 } 16750 l = len(m.Grantee) 16751 if l > 0 { 16752 n += 1 + l + sovQuery(uint64(l)) 16753 } 16754 return n 16755 } 16756 16757 func (m *QueryGrantAuthorizationResponse) Size() (n int) { 16758 if m == nil { 16759 return 0 16760 } 16761 var l int 16762 _ = l 16763 l = m.Amount.Size() 16764 n += 1 + l + sovQuery(uint64(l)) 16765 return n 16766 } 16767 16768 func (m *QueryGrantAuthorizationsRequest) Size() (n int) { 16769 if m == nil { 16770 return 0 16771 } 16772 var l int 16773 _ = l 16774 l = len(m.Granter) 16775 if l > 0 { 16776 n += 1 + l + sovQuery(uint64(l)) 16777 } 16778 return n 16779 } 16780 16781 func (m *QueryGrantAuthorizationsResponse) Size() (n int) { 16782 if m == nil { 16783 return 0 16784 } 16785 var l int 16786 _ = l 16787 l = m.TotalGrantAmount.Size() 16788 n += 1 + l + sovQuery(uint64(l)) 16789 if len(m.Grants) > 0 { 16790 for _, e := range m.Grants { 16791 l = e.Size() 16792 n += 1 + l + sovQuery(uint64(l)) 16793 } 16794 } 16795 return n 16796 } 16797 16798 func sovQuery(x uint64) (n int) { 16799 return (math_bits.Len64(x|1) + 6) / 7 16800 } 16801 func sozQuery(x uint64) (n int) { 16802 return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 16803 } 16804 func (m *Subaccount) Unmarshal(dAtA []byte) error { 16805 l := len(dAtA) 16806 iNdEx := 0 16807 for iNdEx < l { 16808 preIndex := iNdEx 16809 var wire uint64 16810 for shift := uint(0); ; shift += 7 { 16811 if shift >= 64 { 16812 return ErrIntOverflowQuery 16813 } 16814 if iNdEx >= l { 16815 return io.ErrUnexpectedEOF 16816 } 16817 b := dAtA[iNdEx] 16818 iNdEx++ 16819 wire |= uint64(b&0x7F) << shift 16820 if b < 0x80 { 16821 break 16822 } 16823 } 16824 fieldNum := int32(wire >> 3) 16825 wireType := int(wire & 0x7) 16826 if wireType == 4 { 16827 return fmt.Errorf("proto: Subaccount: wiretype end group for non-group") 16828 } 16829 if fieldNum <= 0 { 16830 return fmt.Errorf("proto: Subaccount: illegal tag %d (wire type %d)", fieldNum, wire) 16831 } 16832 switch fieldNum { 16833 case 1: 16834 if wireType != 2 { 16835 return fmt.Errorf("proto: wrong wireType = %d for field Trader", wireType) 16836 } 16837 var stringLen uint64 16838 for shift := uint(0); ; shift += 7 { 16839 if shift >= 64 { 16840 return ErrIntOverflowQuery 16841 } 16842 if iNdEx >= l { 16843 return io.ErrUnexpectedEOF 16844 } 16845 b := dAtA[iNdEx] 16846 iNdEx++ 16847 stringLen |= uint64(b&0x7F) << shift 16848 if b < 0x80 { 16849 break 16850 } 16851 } 16852 intStringLen := int(stringLen) 16853 if intStringLen < 0 { 16854 return ErrInvalidLengthQuery 16855 } 16856 postIndex := iNdEx + intStringLen 16857 if postIndex < 0 { 16858 return ErrInvalidLengthQuery 16859 } 16860 if postIndex > l { 16861 return io.ErrUnexpectedEOF 16862 } 16863 m.Trader = string(dAtA[iNdEx:postIndex]) 16864 iNdEx = postIndex 16865 case 2: 16866 if wireType != 0 { 16867 return fmt.Errorf("proto: wrong wireType = %d for field SubaccountNonce", wireType) 16868 } 16869 m.SubaccountNonce = 0 16870 for shift := uint(0); ; shift += 7 { 16871 if shift >= 64 { 16872 return ErrIntOverflowQuery 16873 } 16874 if iNdEx >= l { 16875 return io.ErrUnexpectedEOF 16876 } 16877 b := dAtA[iNdEx] 16878 iNdEx++ 16879 m.SubaccountNonce |= uint32(b&0x7F) << shift 16880 if b < 0x80 { 16881 break 16882 } 16883 } 16884 default: 16885 iNdEx = preIndex 16886 skippy, err := skipQuery(dAtA[iNdEx:]) 16887 if err != nil { 16888 return err 16889 } 16890 if (skippy < 0) || (iNdEx+skippy) < 0 { 16891 return ErrInvalidLengthQuery 16892 } 16893 if (iNdEx + skippy) > l { 16894 return io.ErrUnexpectedEOF 16895 } 16896 iNdEx += skippy 16897 } 16898 } 16899 16900 if iNdEx > l { 16901 return io.ErrUnexpectedEOF 16902 } 16903 return nil 16904 } 16905 func (m *QuerySubaccountOrdersRequest) Unmarshal(dAtA []byte) error { 16906 l := len(dAtA) 16907 iNdEx := 0 16908 for iNdEx < l { 16909 preIndex := iNdEx 16910 var wire uint64 16911 for shift := uint(0); ; shift += 7 { 16912 if shift >= 64 { 16913 return ErrIntOverflowQuery 16914 } 16915 if iNdEx >= l { 16916 return io.ErrUnexpectedEOF 16917 } 16918 b := dAtA[iNdEx] 16919 iNdEx++ 16920 wire |= uint64(b&0x7F) << shift 16921 if b < 0x80 { 16922 break 16923 } 16924 } 16925 fieldNum := int32(wire >> 3) 16926 wireType := int(wire & 0x7) 16927 if wireType == 4 { 16928 return fmt.Errorf("proto: QuerySubaccountOrdersRequest: wiretype end group for non-group") 16929 } 16930 if fieldNum <= 0 { 16931 return fmt.Errorf("proto: QuerySubaccountOrdersRequest: illegal tag %d (wire type %d)", fieldNum, wire) 16932 } 16933 switch fieldNum { 16934 case 1: 16935 if wireType != 2 { 16936 return fmt.Errorf("proto: wrong wireType = %d for field SubaccountId", wireType) 16937 } 16938 var stringLen uint64 16939 for shift := uint(0); ; shift += 7 { 16940 if shift >= 64 { 16941 return ErrIntOverflowQuery 16942 } 16943 if iNdEx >= l { 16944 return io.ErrUnexpectedEOF 16945 } 16946 b := dAtA[iNdEx] 16947 iNdEx++ 16948 stringLen |= uint64(b&0x7F) << shift 16949 if b < 0x80 { 16950 break 16951 } 16952 } 16953 intStringLen := int(stringLen) 16954 if intStringLen < 0 { 16955 return ErrInvalidLengthQuery 16956 } 16957 postIndex := iNdEx + intStringLen 16958 if postIndex < 0 { 16959 return ErrInvalidLengthQuery 16960 } 16961 if postIndex > l { 16962 return io.ErrUnexpectedEOF 16963 } 16964 m.SubaccountId = string(dAtA[iNdEx:postIndex]) 16965 iNdEx = postIndex 16966 case 2: 16967 if wireType != 2 { 16968 return fmt.Errorf("proto: wrong wireType = %d for field MarketId", wireType) 16969 } 16970 var stringLen uint64 16971 for shift := uint(0); ; shift += 7 { 16972 if shift >= 64 { 16973 return ErrIntOverflowQuery 16974 } 16975 if iNdEx >= l { 16976 return io.ErrUnexpectedEOF 16977 } 16978 b := dAtA[iNdEx] 16979 iNdEx++ 16980 stringLen |= uint64(b&0x7F) << shift 16981 if b < 0x80 { 16982 break 16983 } 16984 } 16985 intStringLen := int(stringLen) 16986 if intStringLen < 0 { 16987 return ErrInvalidLengthQuery 16988 } 16989 postIndex := iNdEx + intStringLen 16990 if postIndex < 0 { 16991 return ErrInvalidLengthQuery 16992 } 16993 if postIndex > l { 16994 return io.ErrUnexpectedEOF 16995 } 16996 m.MarketId = string(dAtA[iNdEx:postIndex]) 16997 iNdEx = postIndex 16998 default: 16999 iNdEx = preIndex 17000 skippy, err := skipQuery(dAtA[iNdEx:]) 17001 if err != nil { 17002 return err 17003 } 17004 if (skippy < 0) || (iNdEx+skippy) < 0 { 17005 return ErrInvalidLengthQuery 17006 } 17007 if (iNdEx + skippy) > l { 17008 return io.ErrUnexpectedEOF 17009 } 17010 iNdEx += skippy 17011 } 17012 } 17013 17014 if iNdEx > l { 17015 return io.ErrUnexpectedEOF 17016 } 17017 return nil 17018 } 17019 func (m *QuerySubaccountOrdersResponse) Unmarshal(dAtA []byte) error { 17020 l := len(dAtA) 17021 iNdEx := 0 17022 for iNdEx < l { 17023 preIndex := iNdEx 17024 var wire uint64 17025 for shift := uint(0); ; shift += 7 { 17026 if shift >= 64 { 17027 return ErrIntOverflowQuery 17028 } 17029 if iNdEx >= l { 17030 return io.ErrUnexpectedEOF 17031 } 17032 b := dAtA[iNdEx] 17033 iNdEx++ 17034 wire |= uint64(b&0x7F) << shift 17035 if b < 0x80 { 17036 break 17037 } 17038 } 17039 fieldNum := int32(wire >> 3) 17040 wireType := int(wire & 0x7) 17041 if wireType == 4 { 17042 return fmt.Errorf("proto: QuerySubaccountOrdersResponse: wiretype end group for non-group") 17043 } 17044 if fieldNum <= 0 { 17045 return fmt.Errorf("proto: QuerySubaccountOrdersResponse: illegal tag %d (wire type %d)", fieldNum, wire) 17046 } 17047 switch fieldNum { 17048 case 1: 17049 if wireType != 2 { 17050 return fmt.Errorf("proto: wrong wireType = %d for field BuyOrders", wireType) 17051 } 17052 var msglen int 17053 for shift := uint(0); ; shift += 7 { 17054 if shift >= 64 { 17055 return ErrIntOverflowQuery 17056 } 17057 if iNdEx >= l { 17058 return io.ErrUnexpectedEOF 17059 } 17060 b := dAtA[iNdEx] 17061 iNdEx++ 17062 msglen |= int(b&0x7F) << shift 17063 if b < 0x80 { 17064 break 17065 } 17066 } 17067 if msglen < 0 { 17068 return ErrInvalidLengthQuery 17069 } 17070 postIndex := iNdEx + msglen 17071 if postIndex < 0 { 17072 return ErrInvalidLengthQuery 17073 } 17074 if postIndex > l { 17075 return io.ErrUnexpectedEOF 17076 } 17077 m.BuyOrders = append(m.BuyOrders, &SubaccountOrderData{}) 17078 if err := m.BuyOrders[len(m.BuyOrders)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 17079 return err 17080 } 17081 iNdEx = postIndex 17082 case 2: 17083 if wireType != 2 { 17084 return fmt.Errorf("proto: wrong wireType = %d for field SellOrders", wireType) 17085 } 17086 var msglen int 17087 for shift := uint(0); ; shift += 7 { 17088 if shift >= 64 { 17089 return ErrIntOverflowQuery 17090 } 17091 if iNdEx >= l { 17092 return io.ErrUnexpectedEOF 17093 } 17094 b := dAtA[iNdEx] 17095 iNdEx++ 17096 msglen |= int(b&0x7F) << shift 17097 if b < 0x80 { 17098 break 17099 } 17100 } 17101 if msglen < 0 { 17102 return ErrInvalidLengthQuery 17103 } 17104 postIndex := iNdEx + msglen 17105 if postIndex < 0 { 17106 return ErrInvalidLengthQuery 17107 } 17108 if postIndex > l { 17109 return io.ErrUnexpectedEOF 17110 } 17111 m.SellOrders = append(m.SellOrders, &SubaccountOrderData{}) 17112 if err := m.SellOrders[len(m.SellOrders)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 17113 return err 17114 } 17115 iNdEx = postIndex 17116 default: 17117 iNdEx = preIndex 17118 skippy, err := skipQuery(dAtA[iNdEx:]) 17119 if err != nil { 17120 return err 17121 } 17122 if (skippy < 0) || (iNdEx+skippy) < 0 { 17123 return ErrInvalidLengthQuery 17124 } 17125 if (iNdEx + skippy) > l { 17126 return io.ErrUnexpectedEOF 17127 } 17128 iNdEx += skippy 17129 } 17130 } 17131 17132 if iNdEx > l { 17133 return io.ErrUnexpectedEOF 17134 } 17135 return nil 17136 } 17137 func (m *SubaccountOrderbookMetadataWithMarket) Unmarshal(dAtA []byte) error { 17138 l := len(dAtA) 17139 iNdEx := 0 17140 for iNdEx < l { 17141 preIndex := iNdEx 17142 var wire uint64 17143 for shift := uint(0); ; shift += 7 { 17144 if shift >= 64 { 17145 return ErrIntOverflowQuery 17146 } 17147 if iNdEx >= l { 17148 return io.ErrUnexpectedEOF 17149 } 17150 b := dAtA[iNdEx] 17151 iNdEx++ 17152 wire |= uint64(b&0x7F) << shift 17153 if b < 0x80 { 17154 break 17155 } 17156 } 17157 fieldNum := int32(wire >> 3) 17158 wireType := int(wire & 0x7) 17159 if wireType == 4 { 17160 return fmt.Errorf("proto: SubaccountOrderbookMetadataWithMarket: wiretype end group for non-group") 17161 } 17162 if fieldNum <= 0 { 17163 return fmt.Errorf("proto: SubaccountOrderbookMetadataWithMarket: illegal tag %d (wire type %d)", fieldNum, wire) 17164 } 17165 switch fieldNum { 17166 case 1: 17167 if wireType != 2 { 17168 return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) 17169 } 17170 var msglen int 17171 for shift := uint(0); ; shift += 7 { 17172 if shift >= 64 { 17173 return ErrIntOverflowQuery 17174 } 17175 if iNdEx >= l { 17176 return io.ErrUnexpectedEOF 17177 } 17178 b := dAtA[iNdEx] 17179 iNdEx++ 17180 msglen |= int(b&0x7F) << shift 17181 if b < 0x80 { 17182 break 17183 } 17184 } 17185 if msglen < 0 { 17186 return ErrInvalidLengthQuery 17187 } 17188 postIndex := iNdEx + msglen 17189 if postIndex < 0 { 17190 return ErrInvalidLengthQuery 17191 } 17192 if postIndex > l { 17193 return io.ErrUnexpectedEOF 17194 } 17195 if m.Metadata == nil { 17196 m.Metadata = &SubaccountOrderbookMetadata{} 17197 } 17198 if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 17199 return err 17200 } 17201 iNdEx = postIndex 17202 case 2: 17203 if wireType != 2 { 17204 return fmt.Errorf("proto: wrong wireType = %d for field MarketId", wireType) 17205 } 17206 var stringLen uint64 17207 for shift := uint(0); ; shift += 7 { 17208 if shift >= 64 { 17209 return ErrIntOverflowQuery 17210 } 17211 if iNdEx >= l { 17212 return io.ErrUnexpectedEOF 17213 } 17214 b := dAtA[iNdEx] 17215 iNdEx++ 17216 stringLen |= uint64(b&0x7F) << shift 17217 if b < 0x80 { 17218 break 17219 } 17220 } 17221 intStringLen := int(stringLen) 17222 if intStringLen < 0 { 17223 return ErrInvalidLengthQuery 17224 } 17225 postIndex := iNdEx + intStringLen 17226 if postIndex < 0 { 17227 return ErrInvalidLengthQuery 17228 } 17229 if postIndex > l { 17230 return io.ErrUnexpectedEOF 17231 } 17232 m.MarketId = string(dAtA[iNdEx:postIndex]) 17233 iNdEx = postIndex 17234 case 3: 17235 if wireType != 0 { 17236 return fmt.Errorf("proto: wrong wireType = %d for field IsBuy", wireType) 17237 } 17238 var v int 17239 for shift := uint(0); ; shift += 7 { 17240 if shift >= 64 { 17241 return ErrIntOverflowQuery 17242 } 17243 if iNdEx >= l { 17244 return io.ErrUnexpectedEOF 17245 } 17246 b := dAtA[iNdEx] 17247 iNdEx++ 17248 v |= int(b&0x7F) << shift 17249 if b < 0x80 { 17250 break 17251 } 17252 } 17253 m.IsBuy = bool(v != 0) 17254 default: 17255 iNdEx = preIndex 17256 skippy, err := skipQuery(dAtA[iNdEx:]) 17257 if err != nil { 17258 return err 17259 } 17260 if (skippy < 0) || (iNdEx+skippy) < 0 { 17261 return ErrInvalidLengthQuery 17262 } 17263 if (iNdEx + skippy) > l { 17264 return io.ErrUnexpectedEOF 17265 } 17266 iNdEx += skippy 17267 } 17268 } 17269 17270 if iNdEx > l { 17271 return io.ErrUnexpectedEOF 17272 } 17273 return nil 17274 } 17275 func (m *QueryExchangeParamsRequest) Unmarshal(dAtA []byte) error { 17276 l := len(dAtA) 17277 iNdEx := 0 17278 for iNdEx < l { 17279 preIndex := iNdEx 17280 var wire uint64 17281 for shift := uint(0); ; shift += 7 { 17282 if shift >= 64 { 17283 return ErrIntOverflowQuery 17284 } 17285 if iNdEx >= l { 17286 return io.ErrUnexpectedEOF 17287 } 17288 b := dAtA[iNdEx] 17289 iNdEx++ 17290 wire |= uint64(b&0x7F) << shift 17291 if b < 0x80 { 17292 break 17293 } 17294 } 17295 fieldNum := int32(wire >> 3) 17296 wireType := int(wire & 0x7) 17297 if wireType == 4 { 17298 return fmt.Errorf("proto: QueryExchangeParamsRequest: wiretype end group for non-group") 17299 } 17300 if fieldNum <= 0 { 17301 return fmt.Errorf("proto: QueryExchangeParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 17302 } 17303 switch fieldNum { 17304 default: 17305 iNdEx = preIndex 17306 skippy, err := skipQuery(dAtA[iNdEx:]) 17307 if err != nil { 17308 return err 17309 } 17310 if (skippy < 0) || (iNdEx+skippy) < 0 { 17311 return ErrInvalidLengthQuery 17312 } 17313 if (iNdEx + skippy) > l { 17314 return io.ErrUnexpectedEOF 17315 } 17316 iNdEx += skippy 17317 } 17318 } 17319 17320 if iNdEx > l { 17321 return io.ErrUnexpectedEOF 17322 } 17323 return nil 17324 } 17325 func (m *QueryExchangeParamsResponse) Unmarshal(dAtA []byte) error { 17326 l := len(dAtA) 17327 iNdEx := 0 17328 for iNdEx < l { 17329 preIndex := iNdEx 17330 var wire uint64 17331 for shift := uint(0); ; shift += 7 { 17332 if shift >= 64 { 17333 return ErrIntOverflowQuery 17334 } 17335 if iNdEx >= l { 17336 return io.ErrUnexpectedEOF 17337 } 17338 b := dAtA[iNdEx] 17339 iNdEx++ 17340 wire |= uint64(b&0x7F) << shift 17341 if b < 0x80 { 17342 break 17343 } 17344 } 17345 fieldNum := int32(wire >> 3) 17346 wireType := int(wire & 0x7) 17347 if wireType == 4 { 17348 return fmt.Errorf("proto: QueryExchangeParamsResponse: wiretype end group for non-group") 17349 } 17350 if fieldNum <= 0 { 17351 return fmt.Errorf("proto: QueryExchangeParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 17352 } 17353 switch fieldNum { 17354 case 1: 17355 if wireType != 2 { 17356 return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) 17357 } 17358 var msglen int 17359 for shift := uint(0); ; shift += 7 { 17360 if shift >= 64 { 17361 return ErrIntOverflowQuery 17362 } 17363 if iNdEx >= l { 17364 return io.ErrUnexpectedEOF 17365 } 17366 b := dAtA[iNdEx] 17367 iNdEx++ 17368 msglen |= int(b&0x7F) << shift 17369 if b < 0x80 { 17370 break 17371 } 17372 } 17373 if msglen < 0 { 17374 return ErrInvalidLengthQuery 17375 } 17376 postIndex := iNdEx + msglen 17377 if postIndex < 0 { 17378 return ErrInvalidLengthQuery 17379 } 17380 if postIndex > l { 17381 return io.ErrUnexpectedEOF 17382 } 17383 if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 17384 return err 17385 } 17386 iNdEx = postIndex 17387 default: 17388 iNdEx = preIndex 17389 skippy, err := skipQuery(dAtA[iNdEx:]) 17390 if err != nil { 17391 return err 17392 } 17393 if (skippy < 0) || (iNdEx+skippy) < 0 { 17394 return ErrInvalidLengthQuery 17395 } 17396 if (iNdEx + skippy) > l { 17397 return io.ErrUnexpectedEOF 17398 } 17399 iNdEx += skippy 17400 } 17401 } 17402 17403 if iNdEx > l { 17404 return io.ErrUnexpectedEOF 17405 } 17406 return nil 17407 } 17408 func (m *QuerySubaccountDepositsRequest) Unmarshal(dAtA []byte) error { 17409 l := len(dAtA) 17410 iNdEx := 0 17411 for iNdEx < l { 17412 preIndex := iNdEx 17413 var wire uint64 17414 for shift := uint(0); ; shift += 7 { 17415 if shift >= 64 { 17416 return ErrIntOverflowQuery 17417 } 17418 if iNdEx >= l { 17419 return io.ErrUnexpectedEOF 17420 } 17421 b := dAtA[iNdEx] 17422 iNdEx++ 17423 wire |= uint64(b&0x7F) << shift 17424 if b < 0x80 { 17425 break 17426 } 17427 } 17428 fieldNum := int32(wire >> 3) 17429 wireType := int(wire & 0x7) 17430 if wireType == 4 { 17431 return fmt.Errorf("proto: QuerySubaccountDepositsRequest: wiretype end group for non-group") 17432 } 17433 if fieldNum <= 0 { 17434 return fmt.Errorf("proto: QuerySubaccountDepositsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 17435 } 17436 switch fieldNum { 17437 case 1: 17438 if wireType != 2 { 17439 return fmt.Errorf("proto: wrong wireType = %d for field SubaccountId", wireType) 17440 } 17441 var stringLen uint64 17442 for shift := uint(0); ; shift += 7 { 17443 if shift >= 64 { 17444 return ErrIntOverflowQuery 17445 } 17446 if iNdEx >= l { 17447 return io.ErrUnexpectedEOF 17448 } 17449 b := dAtA[iNdEx] 17450 iNdEx++ 17451 stringLen |= uint64(b&0x7F) << shift 17452 if b < 0x80 { 17453 break 17454 } 17455 } 17456 intStringLen := int(stringLen) 17457 if intStringLen < 0 { 17458 return ErrInvalidLengthQuery 17459 } 17460 postIndex := iNdEx + intStringLen 17461 if postIndex < 0 { 17462 return ErrInvalidLengthQuery 17463 } 17464 if postIndex > l { 17465 return io.ErrUnexpectedEOF 17466 } 17467 m.SubaccountId = string(dAtA[iNdEx:postIndex]) 17468 iNdEx = postIndex 17469 case 2: 17470 if wireType != 2 { 17471 return fmt.Errorf("proto: wrong wireType = %d for field Subaccount", wireType) 17472 } 17473 var msglen int 17474 for shift := uint(0); ; shift += 7 { 17475 if shift >= 64 { 17476 return ErrIntOverflowQuery 17477 } 17478 if iNdEx >= l { 17479 return io.ErrUnexpectedEOF 17480 } 17481 b := dAtA[iNdEx] 17482 iNdEx++ 17483 msglen |= int(b&0x7F) << shift 17484 if b < 0x80 { 17485 break 17486 } 17487 } 17488 if msglen < 0 { 17489 return ErrInvalidLengthQuery 17490 } 17491 postIndex := iNdEx + msglen 17492 if postIndex < 0 { 17493 return ErrInvalidLengthQuery 17494 } 17495 if postIndex > l { 17496 return io.ErrUnexpectedEOF 17497 } 17498 if m.Subaccount == nil { 17499 m.Subaccount = &Subaccount{} 17500 } 17501 if err := m.Subaccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 17502 return err 17503 } 17504 iNdEx = postIndex 17505 default: 17506 iNdEx = preIndex 17507 skippy, err := skipQuery(dAtA[iNdEx:]) 17508 if err != nil { 17509 return err 17510 } 17511 if (skippy < 0) || (iNdEx+skippy) < 0 { 17512 return ErrInvalidLengthQuery 17513 } 17514 if (iNdEx + skippy) > l { 17515 return io.ErrUnexpectedEOF 17516 } 17517 iNdEx += skippy 17518 } 17519 } 17520 17521 if iNdEx > l { 17522 return io.ErrUnexpectedEOF 17523 } 17524 return nil 17525 } 17526 func (m *QuerySubaccountDepositsResponse) Unmarshal(dAtA []byte) error { 17527 l := len(dAtA) 17528 iNdEx := 0 17529 for iNdEx < l { 17530 preIndex := iNdEx 17531 var wire uint64 17532 for shift := uint(0); ; shift += 7 { 17533 if shift >= 64 { 17534 return ErrIntOverflowQuery 17535 } 17536 if iNdEx >= l { 17537 return io.ErrUnexpectedEOF 17538 } 17539 b := dAtA[iNdEx] 17540 iNdEx++ 17541 wire |= uint64(b&0x7F) << shift 17542 if b < 0x80 { 17543 break 17544 } 17545 } 17546 fieldNum := int32(wire >> 3) 17547 wireType := int(wire & 0x7) 17548 if wireType == 4 { 17549 return fmt.Errorf("proto: QuerySubaccountDepositsResponse: wiretype end group for non-group") 17550 } 17551 if fieldNum <= 0 { 17552 return fmt.Errorf("proto: QuerySubaccountDepositsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 17553 } 17554 switch fieldNum { 17555 case 1: 17556 if wireType != 2 { 17557 return fmt.Errorf("proto: wrong wireType = %d for field Deposits", wireType) 17558 } 17559 var msglen int 17560 for shift := uint(0); ; shift += 7 { 17561 if shift >= 64 { 17562 return ErrIntOverflowQuery 17563 } 17564 if iNdEx >= l { 17565 return io.ErrUnexpectedEOF 17566 } 17567 b := dAtA[iNdEx] 17568 iNdEx++ 17569 msglen |= int(b&0x7F) << shift 17570 if b < 0x80 { 17571 break 17572 } 17573 } 17574 if msglen < 0 { 17575 return ErrInvalidLengthQuery 17576 } 17577 postIndex := iNdEx + msglen 17578 if postIndex < 0 { 17579 return ErrInvalidLengthQuery 17580 } 17581 if postIndex > l { 17582 return io.ErrUnexpectedEOF 17583 } 17584 if m.Deposits == nil { 17585 m.Deposits = make(map[string]*Deposit) 17586 } 17587 var mapkey string 17588 var mapvalue *Deposit 17589 for iNdEx < postIndex { 17590 entryPreIndex := iNdEx 17591 var wire uint64 17592 for shift := uint(0); ; shift += 7 { 17593 if shift >= 64 { 17594 return ErrIntOverflowQuery 17595 } 17596 if iNdEx >= l { 17597 return io.ErrUnexpectedEOF 17598 } 17599 b := dAtA[iNdEx] 17600 iNdEx++ 17601 wire |= uint64(b&0x7F) << shift 17602 if b < 0x80 { 17603 break 17604 } 17605 } 17606 fieldNum := int32(wire >> 3) 17607 if fieldNum == 1 { 17608 var stringLenmapkey uint64 17609 for shift := uint(0); ; shift += 7 { 17610 if shift >= 64 { 17611 return ErrIntOverflowQuery 17612 } 17613 if iNdEx >= l { 17614 return io.ErrUnexpectedEOF 17615 } 17616 b := dAtA[iNdEx] 17617 iNdEx++ 17618 stringLenmapkey |= uint64(b&0x7F) << shift 17619 if b < 0x80 { 17620 break 17621 } 17622 } 17623 intStringLenmapkey := int(stringLenmapkey) 17624 if intStringLenmapkey < 0 { 17625 return ErrInvalidLengthQuery 17626 } 17627 postStringIndexmapkey := iNdEx + intStringLenmapkey 17628 if postStringIndexmapkey < 0 { 17629 return ErrInvalidLengthQuery 17630 } 17631 if postStringIndexmapkey > l { 17632 return io.ErrUnexpectedEOF 17633 } 17634 mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) 17635 iNdEx = postStringIndexmapkey 17636 } else if fieldNum == 2 { 17637 var mapmsglen int 17638 for shift := uint(0); ; shift += 7 { 17639 if shift >= 64 { 17640 return ErrIntOverflowQuery 17641 } 17642 if iNdEx >= l { 17643 return io.ErrUnexpectedEOF 17644 } 17645 b := dAtA[iNdEx] 17646 iNdEx++ 17647 mapmsglen |= int(b&0x7F) << shift 17648 if b < 0x80 { 17649 break 17650 } 17651 } 17652 if mapmsglen < 0 { 17653 return ErrInvalidLengthQuery 17654 } 17655 postmsgIndex := iNdEx + mapmsglen 17656 if postmsgIndex < 0 { 17657 return ErrInvalidLengthQuery 17658 } 17659 if postmsgIndex > l { 17660 return io.ErrUnexpectedEOF 17661 } 17662 mapvalue = &Deposit{} 17663 if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { 17664 return err 17665 } 17666 iNdEx = postmsgIndex 17667 } else { 17668 iNdEx = entryPreIndex 17669 skippy, err := skipQuery(dAtA[iNdEx:]) 17670 if err != nil { 17671 return err 17672 } 17673 if (skippy < 0) || (iNdEx+skippy) < 0 { 17674 return ErrInvalidLengthQuery 17675 } 17676 if (iNdEx + skippy) > postIndex { 17677 return io.ErrUnexpectedEOF 17678 } 17679 iNdEx += skippy 17680 } 17681 } 17682 m.Deposits[mapkey] = mapvalue 17683 iNdEx = postIndex 17684 default: 17685 iNdEx = preIndex 17686 skippy, err := skipQuery(dAtA[iNdEx:]) 17687 if err != nil { 17688 return err 17689 } 17690 if (skippy < 0) || (iNdEx+skippy) < 0 { 17691 return ErrInvalidLengthQuery 17692 } 17693 if (iNdEx + skippy) > l { 17694 return io.ErrUnexpectedEOF 17695 } 17696 iNdEx += skippy 17697 } 17698 } 17699 17700 if iNdEx > l { 17701 return io.ErrUnexpectedEOF 17702 } 17703 return nil 17704 } 17705 func (m *QueryExchangeBalancesRequest) Unmarshal(dAtA []byte) error { 17706 l := len(dAtA) 17707 iNdEx := 0 17708 for iNdEx < l { 17709 preIndex := iNdEx 17710 var wire uint64 17711 for shift := uint(0); ; shift += 7 { 17712 if shift >= 64 { 17713 return ErrIntOverflowQuery 17714 } 17715 if iNdEx >= l { 17716 return io.ErrUnexpectedEOF 17717 } 17718 b := dAtA[iNdEx] 17719 iNdEx++ 17720 wire |= uint64(b&0x7F) << shift 17721 if b < 0x80 { 17722 break 17723 } 17724 } 17725 fieldNum := int32(wire >> 3) 17726 wireType := int(wire & 0x7) 17727 if wireType == 4 { 17728 return fmt.Errorf("proto: QueryExchangeBalancesRequest: wiretype end group for non-group") 17729 } 17730 if fieldNum <= 0 { 17731 return fmt.Errorf("proto: QueryExchangeBalancesRequest: illegal tag %d (wire type %d)", fieldNum, wire) 17732 } 17733 switch fieldNum { 17734 default: 17735 iNdEx = preIndex 17736 skippy, err := skipQuery(dAtA[iNdEx:]) 17737 if err != nil { 17738 return err 17739 } 17740 if (skippy < 0) || (iNdEx+skippy) < 0 { 17741 return ErrInvalidLengthQuery 17742 } 17743 if (iNdEx + skippy) > l { 17744 return io.ErrUnexpectedEOF 17745 } 17746 iNdEx += skippy 17747 } 17748 } 17749 17750 if iNdEx > l { 17751 return io.ErrUnexpectedEOF 17752 } 17753 return nil 17754 } 17755 func (m *QueryExchangeBalancesResponse) Unmarshal(dAtA []byte) error { 17756 l := len(dAtA) 17757 iNdEx := 0 17758 for iNdEx < l { 17759 preIndex := iNdEx 17760 var wire uint64 17761 for shift := uint(0); ; shift += 7 { 17762 if shift >= 64 { 17763 return ErrIntOverflowQuery 17764 } 17765 if iNdEx >= l { 17766 return io.ErrUnexpectedEOF 17767 } 17768 b := dAtA[iNdEx] 17769 iNdEx++ 17770 wire |= uint64(b&0x7F) << shift 17771 if b < 0x80 { 17772 break 17773 } 17774 } 17775 fieldNum := int32(wire >> 3) 17776 wireType := int(wire & 0x7) 17777 if wireType == 4 { 17778 return fmt.Errorf("proto: QueryExchangeBalancesResponse: wiretype end group for non-group") 17779 } 17780 if fieldNum <= 0 { 17781 return fmt.Errorf("proto: QueryExchangeBalancesResponse: illegal tag %d (wire type %d)", fieldNum, wire) 17782 } 17783 switch fieldNum { 17784 case 1: 17785 if wireType != 2 { 17786 return fmt.Errorf("proto: wrong wireType = %d for field Balances", wireType) 17787 } 17788 var msglen int 17789 for shift := uint(0); ; shift += 7 { 17790 if shift >= 64 { 17791 return ErrIntOverflowQuery 17792 } 17793 if iNdEx >= l { 17794 return io.ErrUnexpectedEOF 17795 } 17796 b := dAtA[iNdEx] 17797 iNdEx++ 17798 msglen |= int(b&0x7F) << shift 17799 if b < 0x80 { 17800 break 17801 } 17802 } 17803 if msglen < 0 { 17804 return ErrInvalidLengthQuery 17805 } 17806 postIndex := iNdEx + msglen 17807 if postIndex < 0 { 17808 return ErrInvalidLengthQuery 17809 } 17810 if postIndex > l { 17811 return io.ErrUnexpectedEOF 17812 } 17813 m.Balances = append(m.Balances, Balance{}) 17814 if err := m.Balances[len(m.Balances)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 17815 return err 17816 } 17817 iNdEx = postIndex 17818 default: 17819 iNdEx = preIndex 17820 skippy, err := skipQuery(dAtA[iNdEx:]) 17821 if err != nil { 17822 return err 17823 } 17824 if (skippy < 0) || (iNdEx+skippy) < 0 { 17825 return ErrInvalidLengthQuery 17826 } 17827 if (iNdEx + skippy) > l { 17828 return io.ErrUnexpectedEOF 17829 } 17830 iNdEx += skippy 17831 } 17832 } 17833 17834 if iNdEx > l { 17835 return io.ErrUnexpectedEOF 17836 } 17837 return nil 17838 } 17839 func (m *QueryAggregateVolumeRequest) Unmarshal(dAtA []byte) error { 17840 l := len(dAtA) 17841 iNdEx := 0 17842 for iNdEx < l { 17843 preIndex := iNdEx 17844 var wire uint64 17845 for shift := uint(0); ; shift += 7 { 17846 if shift >= 64 { 17847 return ErrIntOverflowQuery 17848 } 17849 if iNdEx >= l { 17850 return io.ErrUnexpectedEOF 17851 } 17852 b := dAtA[iNdEx] 17853 iNdEx++ 17854 wire |= uint64(b&0x7F) << shift 17855 if b < 0x80 { 17856 break 17857 } 17858 } 17859 fieldNum := int32(wire >> 3) 17860 wireType := int(wire & 0x7) 17861 if wireType == 4 { 17862 return fmt.Errorf("proto: QueryAggregateVolumeRequest: wiretype end group for non-group") 17863 } 17864 if fieldNum <= 0 { 17865 return fmt.Errorf("proto: QueryAggregateVolumeRequest: illegal tag %d (wire type %d)", fieldNum, wire) 17866 } 17867 switch fieldNum { 17868 case 1: 17869 if wireType != 2 { 17870 return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) 17871 } 17872 var stringLen uint64 17873 for shift := uint(0); ; shift += 7 { 17874 if shift >= 64 { 17875 return ErrIntOverflowQuery 17876 } 17877 if iNdEx >= l { 17878 return io.ErrUnexpectedEOF 17879 } 17880 b := dAtA[iNdEx] 17881 iNdEx++ 17882 stringLen |= uint64(b&0x7F) << shift 17883 if b < 0x80 { 17884 break 17885 } 17886 } 17887 intStringLen := int(stringLen) 17888 if intStringLen < 0 { 17889 return ErrInvalidLengthQuery 17890 } 17891 postIndex := iNdEx + intStringLen 17892 if postIndex < 0 { 17893 return ErrInvalidLengthQuery 17894 } 17895 if postIndex > l { 17896 return io.ErrUnexpectedEOF 17897 } 17898 m.Account = string(dAtA[iNdEx:postIndex]) 17899 iNdEx = postIndex 17900 default: 17901 iNdEx = preIndex 17902 skippy, err := skipQuery(dAtA[iNdEx:]) 17903 if err != nil { 17904 return err 17905 } 17906 if (skippy < 0) || (iNdEx+skippy) < 0 { 17907 return ErrInvalidLengthQuery 17908 } 17909 if (iNdEx + skippy) > l { 17910 return io.ErrUnexpectedEOF 17911 } 17912 iNdEx += skippy 17913 } 17914 } 17915 17916 if iNdEx > l { 17917 return io.ErrUnexpectedEOF 17918 } 17919 return nil 17920 } 17921 func (m *QueryAggregateVolumeResponse) Unmarshal(dAtA []byte) error { 17922 l := len(dAtA) 17923 iNdEx := 0 17924 for iNdEx < l { 17925 preIndex := iNdEx 17926 var wire uint64 17927 for shift := uint(0); ; shift += 7 { 17928 if shift >= 64 { 17929 return ErrIntOverflowQuery 17930 } 17931 if iNdEx >= l { 17932 return io.ErrUnexpectedEOF 17933 } 17934 b := dAtA[iNdEx] 17935 iNdEx++ 17936 wire |= uint64(b&0x7F) << shift 17937 if b < 0x80 { 17938 break 17939 } 17940 } 17941 fieldNum := int32(wire >> 3) 17942 wireType := int(wire & 0x7) 17943 if wireType == 4 { 17944 return fmt.Errorf("proto: QueryAggregateVolumeResponse: wiretype end group for non-group") 17945 } 17946 if fieldNum <= 0 { 17947 return fmt.Errorf("proto: QueryAggregateVolumeResponse: illegal tag %d (wire type %d)", fieldNum, wire) 17948 } 17949 switch fieldNum { 17950 case 1: 17951 if wireType != 2 { 17952 return fmt.Errorf("proto: wrong wireType = %d for field AggregateVolumes", wireType) 17953 } 17954 var msglen int 17955 for shift := uint(0); ; shift += 7 { 17956 if shift >= 64 { 17957 return ErrIntOverflowQuery 17958 } 17959 if iNdEx >= l { 17960 return io.ErrUnexpectedEOF 17961 } 17962 b := dAtA[iNdEx] 17963 iNdEx++ 17964 msglen |= int(b&0x7F) << shift 17965 if b < 0x80 { 17966 break 17967 } 17968 } 17969 if msglen < 0 { 17970 return ErrInvalidLengthQuery 17971 } 17972 postIndex := iNdEx + msglen 17973 if postIndex < 0 { 17974 return ErrInvalidLengthQuery 17975 } 17976 if postIndex > l { 17977 return io.ErrUnexpectedEOF 17978 } 17979 m.AggregateVolumes = append(m.AggregateVolumes, &MarketVolume{}) 17980 if err := m.AggregateVolumes[len(m.AggregateVolumes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 17981 return err 17982 } 17983 iNdEx = postIndex 17984 default: 17985 iNdEx = preIndex 17986 skippy, err := skipQuery(dAtA[iNdEx:]) 17987 if err != nil { 17988 return err 17989 } 17990 if (skippy < 0) || (iNdEx+skippy) < 0 { 17991 return ErrInvalidLengthQuery 17992 } 17993 if (iNdEx + skippy) > l { 17994 return io.ErrUnexpectedEOF 17995 } 17996 iNdEx += skippy 17997 } 17998 } 17999 18000 if iNdEx > l { 18001 return io.ErrUnexpectedEOF 18002 } 18003 return nil 18004 } 18005 func (m *QueryAggregateVolumesRequest) Unmarshal(dAtA []byte) error { 18006 l := len(dAtA) 18007 iNdEx := 0 18008 for iNdEx < l { 18009 preIndex := iNdEx 18010 var wire uint64 18011 for shift := uint(0); ; shift += 7 { 18012 if shift >= 64 { 18013 return ErrIntOverflowQuery 18014 } 18015 if iNdEx >= l { 18016 return io.ErrUnexpectedEOF 18017 } 18018 b := dAtA[iNdEx] 18019 iNdEx++ 18020 wire |= uint64(b&0x7F) << shift 18021 if b < 0x80 { 18022 break 18023 } 18024 } 18025 fieldNum := int32(wire >> 3) 18026 wireType := int(wire & 0x7) 18027 if wireType == 4 { 18028 return fmt.Errorf("proto: QueryAggregateVolumesRequest: wiretype end group for non-group") 18029 } 18030 if fieldNum <= 0 { 18031 return fmt.Errorf("proto: QueryAggregateVolumesRequest: illegal tag %d (wire type %d)", fieldNum, wire) 18032 } 18033 switch fieldNum { 18034 case 1: 18035 if wireType != 2 { 18036 return fmt.Errorf("proto: wrong wireType = %d for field Accounts", wireType) 18037 } 18038 var stringLen uint64 18039 for shift := uint(0); ; shift += 7 { 18040 if shift >= 64 { 18041 return ErrIntOverflowQuery 18042 } 18043 if iNdEx >= l { 18044 return io.ErrUnexpectedEOF 18045 } 18046 b := dAtA[iNdEx] 18047 iNdEx++ 18048 stringLen |= uint64(b&0x7F) << shift 18049 if b < 0x80 { 18050 break 18051 } 18052 } 18053 intStringLen := int(stringLen) 18054 if intStringLen < 0 { 18055 return ErrInvalidLengthQuery 18056 } 18057 postIndex := iNdEx + intStringLen 18058 if postIndex < 0 { 18059 return ErrInvalidLengthQuery 18060 } 18061 if postIndex > l { 18062 return io.ErrUnexpectedEOF 18063 } 18064 m.Accounts = append(m.Accounts, string(dAtA[iNdEx:postIndex])) 18065 iNdEx = postIndex 18066 case 2: 18067 if wireType != 2 { 18068 return fmt.Errorf("proto: wrong wireType = %d for field MarketIds", wireType) 18069 } 18070 var stringLen uint64 18071 for shift := uint(0); ; shift += 7 { 18072 if shift >= 64 { 18073 return ErrIntOverflowQuery 18074 } 18075 if iNdEx >= l { 18076 return io.ErrUnexpectedEOF 18077 } 18078 b := dAtA[iNdEx] 18079 iNdEx++ 18080 stringLen |= uint64(b&0x7F) << shift 18081 if b < 0x80 { 18082 break 18083 } 18084 } 18085 intStringLen := int(stringLen) 18086 if intStringLen < 0 { 18087 return ErrInvalidLengthQuery 18088 } 18089 postIndex := iNdEx + intStringLen 18090 if postIndex < 0 { 18091 return ErrInvalidLengthQuery 18092 } 18093 if postIndex > l { 18094 return io.ErrUnexpectedEOF 18095 } 18096 m.MarketIds = append(m.MarketIds, string(dAtA[iNdEx:postIndex])) 18097 iNdEx = postIndex 18098 default: 18099 iNdEx = preIndex 18100 skippy, err := skipQuery(dAtA[iNdEx:]) 18101 if err != nil { 18102 return err 18103 } 18104 if (skippy < 0) || (iNdEx+skippy) < 0 { 18105 return ErrInvalidLengthQuery 18106 } 18107 if (iNdEx + skippy) > l { 18108 return io.ErrUnexpectedEOF 18109 } 18110 iNdEx += skippy 18111 } 18112 } 18113 18114 if iNdEx > l { 18115 return io.ErrUnexpectedEOF 18116 } 18117 return nil 18118 } 18119 func (m *QueryAggregateVolumesResponse) Unmarshal(dAtA []byte) error { 18120 l := len(dAtA) 18121 iNdEx := 0 18122 for iNdEx < l { 18123 preIndex := iNdEx 18124 var wire uint64 18125 for shift := uint(0); ; shift += 7 { 18126 if shift >= 64 { 18127 return ErrIntOverflowQuery 18128 } 18129 if iNdEx >= l { 18130 return io.ErrUnexpectedEOF 18131 } 18132 b := dAtA[iNdEx] 18133 iNdEx++ 18134 wire |= uint64(b&0x7F) << shift 18135 if b < 0x80 { 18136 break 18137 } 18138 } 18139 fieldNum := int32(wire >> 3) 18140 wireType := int(wire & 0x7) 18141 if wireType == 4 { 18142 return fmt.Errorf("proto: QueryAggregateVolumesResponse: wiretype end group for non-group") 18143 } 18144 if fieldNum <= 0 { 18145 return fmt.Errorf("proto: QueryAggregateVolumesResponse: illegal tag %d (wire type %d)", fieldNum, wire) 18146 } 18147 switch fieldNum { 18148 case 1: 18149 if wireType != 2 { 18150 return fmt.Errorf("proto: wrong wireType = %d for field AggregateAccountVolumes", wireType) 18151 } 18152 var msglen int 18153 for shift := uint(0); ; shift += 7 { 18154 if shift >= 64 { 18155 return ErrIntOverflowQuery 18156 } 18157 if iNdEx >= l { 18158 return io.ErrUnexpectedEOF 18159 } 18160 b := dAtA[iNdEx] 18161 iNdEx++ 18162 msglen |= int(b&0x7F) << shift 18163 if b < 0x80 { 18164 break 18165 } 18166 } 18167 if msglen < 0 { 18168 return ErrInvalidLengthQuery 18169 } 18170 postIndex := iNdEx + msglen 18171 if postIndex < 0 { 18172 return ErrInvalidLengthQuery 18173 } 18174 if postIndex > l { 18175 return io.ErrUnexpectedEOF 18176 } 18177 m.AggregateAccountVolumes = append(m.AggregateAccountVolumes, &AggregateAccountVolumeRecord{}) 18178 if err := m.AggregateAccountVolumes[len(m.AggregateAccountVolumes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 18179 return err 18180 } 18181 iNdEx = postIndex 18182 case 2: 18183 if wireType != 2 { 18184 return fmt.Errorf("proto: wrong wireType = %d for field AggregateMarketVolumes", wireType) 18185 } 18186 var msglen int 18187 for shift := uint(0); ; shift += 7 { 18188 if shift >= 64 { 18189 return ErrIntOverflowQuery 18190 } 18191 if iNdEx >= l { 18192 return io.ErrUnexpectedEOF 18193 } 18194 b := dAtA[iNdEx] 18195 iNdEx++ 18196 msglen |= int(b&0x7F) << shift 18197 if b < 0x80 { 18198 break 18199 } 18200 } 18201 if msglen < 0 { 18202 return ErrInvalidLengthQuery 18203 } 18204 postIndex := iNdEx + msglen 18205 if postIndex < 0 { 18206 return ErrInvalidLengthQuery 18207 } 18208 if postIndex > l { 18209 return io.ErrUnexpectedEOF 18210 } 18211 m.AggregateMarketVolumes = append(m.AggregateMarketVolumes, &MarketVolume{}) 18212 if err := m.AggregateMarketVolumes[len(m.AggregateMarketVolumes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 18213 return err 18214 } 18215 iNdEx = postIndex 18216 default: 18217 iNdEx = preIndex 18218 skippy, err := skipQuery(dAtA[iNdEx:]) 18219 if err != nil { 18220 return err 18221 } 18222 if (skippy < 0) || (iNdEx+skippy) < 0 { 18223 return ErrInvalidLengthQuery 18224 } 18225 if (iNdEx + skippy) > l { 18226 return io.ErrUnexpectedEOF 18227 } 18228 iNdEx += skippy 18229 } 18230 } 18231 18232 if iNdEx > l { 18233 return io.ErrUnexpectedEOF 18234 } 18235 return nil 18236 } 18237 func (m *QueryAggregateMarketVolumeRequest) Unmarshal(dAtA []byte) error { 18238 l := len(dAtA) 18239 iNdEx := 0 18240 for iNdEx < l { 18241 preIndex := iNdEx 18242 var wire uint64 18243 for shift := uint(0); ; shift += 7 { 18244 if shift >= 64 { 18245 return ErrIntOverflowQuery 18246 } 18247 if iNdEx >= l { 18248 return io.ErrUnexpectedEOF 18249 } 18250 b := dAtA[iNdEx] 18251 iNdEx++ 18252 wire |= uint64(b&0x7F) << shift 18253 if b < 0x80 { 18254 break 18255 } 18256 } 18257 fieldNum := int32(wire >> 3) 18258 wireType := int(wire & 0x7) 18259 if wireType == 4 { 18260 return fmt.Errorf("proto: QueryAggregateMarketVolumeRequest: wiretype end group for non-group") 18261 } 18262 if fieldNum <= 0 { 18263 return fmt.Errorf("proto: QueryAggregateMarketVolumeRequest: illegal tag %d (wire type %d)", fieldNum, wire) 18264 } 18265 switch fieldNum { 18266 case 1: 18267 if wireType != 2 { 18268 return fmt.Errorf("proto: wrong wireType = %d for field MarketId", wireType) 18269 } 18270 var stringLen uint64 18271 for shift := uint(0); ; shift += 7 { 18272 if shift >= 64 { 18273 return ErrIntOverflowQuery 18274 } 18275 if iNdEx >= l { 18276 return io.ErrUnexpectedEOF 18277 } 18278 b := dAtA[iNdEx] 18279 iNdEx++ 18280 stringLen |= uint64(b&0x7F) << shift 18281 if b < 0x80 { 18282 break 18283 } 18284 } 18285 intStringLen := int(stringLen) 18286 if intStringLen < 0 { 18287 return ErrInvalidLengthQuery 18288 } 18289 postIndex := iNdEx + intStringLen 18290 if postIndex < 0 { 18291 return ErrInvalidLengthQuery 18292 } 18293 if postIndex > l { 18294 return io.ErrUnexpectedEOF 18295 } 18296 m.MarketId = string(dAtA[iNdEx:postIndex]) 18297 iNdEx = postIndex 18298 default: 18299 iNdEx = preIndex 18300 skippy, err := skipQuery(dAtA[iNdEx:]) 18301 if err != nil { 18302 return err 18303 } 18304 if (skippy < 0) || (iNdEx+skippy) < 0 { 18305 return ErrInvalidLengthQuery 18306 } 18307 if (iNdEx + skippy) > l { 18308 return io.ErrUnexpectedEOF 18309 } 18310 iNdEx += skippy 18311 } 18312 } 18313 18314 if iNdEx > l { 18315 return io.ErrUnexpectedEOF 18316 } 18317 return nil 18318 } 18319 func (m *QueryAggregateMarketVolumeResponse) Unmarshal(dAtA []byte) error { 18320 l := len(dAtA) 18321 iNdEx := 0 18322 for iNdEx < l { 18323 preIndex := iNdEx 18324 var wire uint64 18325 for shift := uint(0); ; shift += 7 { 18326 if shift >= 64 { 18327 return ErrIntOverflowQuery 18328 } 18329 if iNdEx >= l { 18330 return io.ErrUnexpectedEOF 18331 } 18332 b := dAtA[iNdEx] 18333 iNdEx++ 18334 wire |= uint64(b&0x7F) << shift 18335 if b < 0x80 { 18336 break 18337 } 18338 } 18339 fieldNum := int32(wire >> 3) 18340 wireType := int(wire & 0x7) 18341 if wireType == 4 { 18342 return fmt.Errorf("proto: QueryAggregateMarketVolumeResponse: wiretype end group for non-group") 18343 } 18344 if fieldNum <= 0 { 18345 return fmt.Errorf("proto: QueryAggregateMarketVolumeResponse: illegal tag %d (wire type %d)", fieldNum, wire) 18346 } 18347 switch fieldNum { 18348 case 1: 18349 if wireType != 2 { 18350 return fmt.Errorf("proto: wrong wireType = %d for field Volume", wireType) 18351 } 18352 var msglen int 18353 for shift := uint(0); ; shift += 7 { 18354 if shift >= 64 { 18355 return ErrIntOverflowQuery 18356 } 18357 if iNdEx >= l { 18358 return io.ErrUnexpectedEOF 18359 } 18360 b := dAtA[iNdEx] 18361 iNdEx++ 18362 msglen |= int(b&0x7F) << shift 18363 if b < 0x80 { 18364 break 18365 } 18366 } 18367 if msglen < 0 { 18368 return ErrInvalidLengthQuery 18369 } 18370 postIndex := iNdEx + msglen 18371 if postIndex < 0 { 18372 return ErrInvalidLengthQuery 18373 } 18374 if postIndex > l { 18375 return io.ErrUnexpectedEOF 18376 } 18377 if err := m.Volume.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 18378 return err 18379 } 18380 iNdEx = postIndex 18381 default: 18382 iNdEx = preIndex 18383 skippy, err := skipQuery(dAtA[iNdEx:]) 18384 if err != nil { 18385 return err 18386 } 18387 if (skippy < 0) || (iNdEx+skippy) < 0 { 18388 return ErrInvalidLengthQuery 18389 } 18390 if (iNdEx + skippy) > l { 18391 return io.ErrUnexpectedEOF 18392 } 18393 iNdEx += skippy 18394 } 18395 } 18396 18397 if iNdEx > l { 18398 return io.ErrUnexpectedEOF 18399 } 18400 return nil 18401 } 18402 func (m *QueryDenomDecimalRequest) Unmarshal(dAtA []byte) error { 18403 l := len(dAtA) 18404 iNdEx := 0 18405 for iNdEx < l { 18406 preIndex := iNdEx 18407 var wire uint64 18408 for shift := uint(0); ; shift += 7 { 18409 if shift >= 64 { 18410 return ErrIntOverflowQuery 18411 } 18412 if iNdEx >= l { 18413 return io.ErrUnexpectedEOF 18414 } 18415 b := dAtA[iNdEx] 18416 iNdEx++ 18417 wire |= uint64(b&0x7F) << shift 18418 if b < 0x80 { 18419 break 18420 } 18421 } 18422 fieldNum := int32(wire >> 3) 18423 wireType := int(wire & 0x7) 18424 if wireType == 4 { 18425 return fmt.Errorf("proto: QueryDenomDecimalRequest: wiretype end group for non-group") 18426 } 18427 if fieldNum <= 0 { 18428 return fmt.Errorf("proto: QueryDenomDecimalRequest: illegal tag %d (wire type %d)", fieldNum, wire) 18429 } 18430 switch fieldNum { 18431 case 1: 18432 if wireType != 2 { 18433 return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) 18434 } 18435 var stringLen uint64 18436 for shift := uint(0); ; shift += 7 { 18437 if shift >= 64 { 18438 return ErrIntOverflowQuery 18439 } 18440 if iNdEx >= l { 18441 return io.ErrUnexpectedEOF 18442 } 18443 b := dAtA[iNdEx] 18444 iNdEx++ 18445 stringLen |= uint64(b&0x7F) << shift 18446 if b < 0x80 { 18447 break 18448 } 18449 } 18450 intStringLen := int(stringLen) 18451 if intStringLen < 0 { 18452 return ErrInvalidLengthQuery 18453 } 18454 postIndex := iNdEx + intStringLen 18455 if postIndex < 0 { 18456 return ErrInvalidLengthQuery 18457 } 18458 if postIndex > l { 18459 return io.ErrUnexpectedEOF 18460 } 18461 m.Denom = string(dAtA[iNdEx:postIndex]) 18462 iNdEx = postIndex 18463 default: 18464 iNdEx = preIndex 18465 skippy, err := skipQuery(dAtA[iNdEx:]) 18466 if err != nil { 18467 return err 18468 } 18469 if (skippy < 0) || (iNdEx+skippy) < 0 { 18470 return ErrInvalidLengthQuery 18471 } 18472 if (iNdEx + skippy) > l { 18473 return io.ErrUnexpectedEOF 18474 } 18475 iNdEx += skippy 18476 } 18477 } 18478 18479 if iNdEx > l { 18480 return io.ErrUnexpectedEOF 18481 } 18482 return nil 18483 } 18484 func (m *QueryDenomDecimalResponse) Unmarshal(dAtA []byte) error { 18485 l := len(dAtA) 18486 iNdEx := 0 18487 for iNdEx < l { 18488 preIndex := iNdEx 18489 var wire uint64 18490 for shift := uint(0); ; shift += 7 { 18491 if shift >= 64 { 18492 return ErrIntOverflowQuery 18493 } 18494 if iNdEx >= l { 18495 return io.ErrUnexpectedEOF 18496 } 18497 b := dAtA[iNdEx] 18498 iNdEx++ 18499 wire |= uint64(b&0x7F) << shift 18500 if b < 0x80 { 18501 break 18502 } 18503 } 18504 fieldNum := int32(wire >> 3) 18505 wireType := int(wire & 0x7) 18506 if wireType == 4 { 18507 return fmt.Errorf("proto: QueryDenomDecimalResponse: wiretype end group for non-group") 18508 } 18509 if fieldNum <= 0 { 18510 return fmt.Errorf("proto: QueryDenomDecimalResponse: illegal tag %d (wire type %d)", fieldNum, wire) 18511 } 18512 switch fieldNum { 18513 case 1: 18514 if wireType != 0 { 18515 return fmt.Errorf("proto: wrong wireType = %d for field Decimal", wireType) 18516 } 18517 m.Decimal = 0 18518 for shift := uint(0); ; shift += 7 { 18519 if shift >= 64 { 18520 return ErrIntOverflowQuery 18521 } 18522 if iNdEx >= l { 18523 return io.ErrUnexpectedEOF 18524 } 18525 b := dAtA[iNdEx] 18526 iNdEx++ 18527 m.Decimal |= uint64(b&0x7F) << shift 18528 if b < 0x80 { 18529 break 18530 } 18531 } 18532 default: 18533 iNdEx = preIndex 18534 skippy, err := skipQuery(dAtA[iNdEx:]) 18535 if err != nil { 18536 return err 18537 } 18538 if (skippy < 0) || (iNdEx+skippy) < 0 { 18539 return ErrInvalidLengthQuery 18540 } 18541 if (iNdEx + skippy) > l { 18542 return io.ErrUnexpectedEOF 18543 } 18544 iNdEx += skippy 18545 } 18546 } 18547 18548 if iNdEx > l { 18549 return io.ErrUnexpectedEOF 18550 } 18551 return nil 18552 } 18553 func (m *QueryDenomDecimalsRequest) Unmarshal(dAtA []byte) error { 18554 l := len(dAtA) 18555 iNdEx := 0 18556 for iNdEx < l { 18557 preIndex := iNdEx 18558 var wire uint64 18559 for shift := uint(0); ; shift += 7 { 18560 if shift >= 64 { 18561 return ErrIntOverflowQuery 18562 } 18563 if iNdEx >= l { 18564 return io.ErrUnexpectedEOF 18565 } 18566 b := dAtA[iNdEx] 18567 iNdEx++ 18568 wire |= uint64(b&0x7F) << shift 18569 if b < 0x80 { 18570 break 18571 } 18572 } 18573 fieldNum := int32(wire >> 3) 18574 wireType := int(wire & 0x7) 18575 if wireType == 4 { 18576 return fmt.Errorf("proto: QueryDenomDecimalsRequest: wiretype end group for non-group") 18577 } 18578 if fieldNum <= 0 { 18579 return fmt.Errorf("proto: QueryDenomDecimalsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 18580 } 18581 switch fieldNum { 18582 case 1: 18583 if wireType != 2 { 18584 return fmt.Errorf("proto: wrong wireType = %d for field Denoms", wireType) 18585 } 18586 var stringLen uint64 18587 for shift := uint(0); ; shift += 7 { 18588 if shift >= 64 { 18589 return ErrIntOverflowQuery 18590 } 18591 if iNdEx >= l { 18592 return io.ErrUnexpectedEOF 18593 } 18594 b := dAtA[iNdEx] 18595 iNdEx++ 18596 stringLen |= uint64(b&0x7F) << shift 18597 if b < 0x80 { 18598 break 18599 } 18600 } 18601 intStringLen := int(stringLen) 18602 if intStringLen < 0 { 18603 return ErrInvalidLengthQuery 18604 } 18605 postIndex := iNdEx + intStringLen 18606 if postIndex < 0 { 18607 return ErrInvalidLengthQuery 18608 } 18609 if postIndex > l { 18610 return io.ErrUnexpectedEOF 18611 } 18612 m.Denoms = append(m.Denoms, string(dAtA[iNdEx:postIndex])) 18613 iNdEx = postIndex 18614 default: 18615 iNdEx = preIndex 18616 skippy, err := skipQuery(dAtA[iNdEx:]) 18617 if err != nil { 18618 return err 18619 } 18620 if (skippy < 0) || (iNdEx+skippy) < 0 { 18621 return ErrInvalidLengthQuery 18622 } 18623 if (iNdEx + skippy) > l { 18624 return io.ErrUnexpectedEOF 18625 } 18626 iNdEx += skippy 18627 } 18628 } 18629 18630 if iNdEx > l { 18631 return io.ErrUnexpectedEOF 18632 } 18633 return nil 18634 } 18635 func (m *QueryDenomDecimalsResponse) Unmarshal(dAtA []byte) error { 18636 l := len(dAtA) 18637 iNdEx := 0 18638 for iNdEx < l { 18639 preIndex := iNdEx 18640 var wire uint64 18641 for shift := uint(0); ; shift += 7 { 18642 if shift >= 64 { 18643 return ErrIntOverflowQuery 18644 } 18645 if iNdEx >= l { 18646 return io.ErrUnexpectedEOF 18647 } 18648 b := dAtA[iNdEx] 18649 iNdEx++ 18650 wire |= uint64(b&0x7F) << shift 18651 if b < 0x80 { 18652 break 18653 } 18654 } 18655 fieldNum := int32(wire >> 3) 18656 wireType := int(wire & 0x7) 18657 if wireType == 4 { 18658 return fmt.Errorf("proto: QueryDenomDecimalsResponse: wiretype end group for non-group") 18659 } 18660 if fieldNum <= 0 { 18661 return fmt.Errorf("proto: QueryDenomDecimalsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 18662 } 18663 switch fieldNum { 18664 case 1: 18665 if wireType != 2 { 18666 return fmt.Errorf("proto: wrong wireType = %d for field DenomDecimals", wireType) 18667 } 18668 var msglen int 18669 for shift := uint(0); ; shift += 7 { 18670 if shift >= 64 { 18671 return ErrIntOverflowQuery 18672 } 18673 if iNdEx >= l { 18674 return io.ErrUnexpectedEOF 18675 } 18676 b := dAtA[iNdEx] 18677 iNdEx++ 18678 msglen |= int(b&0x7F) << shift 18679 if b < 0x80 { 18680 break 18681 } 18682 } 18683 if msglen < 0 { 18684 return ErrInvalidLengthQuery 18685 } 18686 postIndex := iNdEx + msglen 18687 if postIndex < 0 { 18688 return ErrInvalidLengthQuery 18689 } 18690 if postIndex > l { 18691 return io.ErrUnexpectedEOF 18692 } 18693 m.DenomDecimals = append(m.DenomDecimals, DenomDecimals{}) 18694 if err := m.DenomDecimals[len(m.DenomDecimals)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 18695 return err 18696 } 18697 iNdEx = postIndex 18698 default: 18699 iNdEx = preIndex 18700 skippy, err := skipQuery(dAtA[iNdEx:]) 18701 if err != nil { 18702 return err 18703 } 18704 if (skippy < 0) || (iNdEx+skippy) < 0 { 18705 return ErrInvalidLengthQuery 18706 } 18707 if (iNdEx + skippy) > l { 18708 return io.ErrUnexpectedEOF 18709 } 18710 iNdEx += skippy 18711 } 18712 } 18713 18714 if iNdEx > l { 18715 return io.ErrUnexpectedEOF 18716 } 18717 return nil 18718 } 18719 func (m *QueryAggregateMarketVolumesRequest) Unmarshal(dAtA []byte) error { 18720 l := len(dAtA) 18721 iNdEx := 0 18722 for iNdEx < l { 18723 preIndex := iNdEx 18724 var wire uint64 18725 for shift := uint(0); ; shift += 7 { 18726 if shift >= 64 { 18727 return ErrIntOverflowQuery 18728 } 18729 if iNdEx >= l { 18730 return io.ErrUnexpectedEOF 18731 } 18732 b := dAtA[iNdEx] 18733 iNdEx++ 18734 wire |= uint64(b&0x7F) << shift 18735 if b < 0x80 { 18736 break 18737 } 18738 } 18739 fieldNum := int32(wire >> 3) 18740 wireType := int(wire & 0x7) 18741 if wireType == 4 { 18742 return fmt.Errorf("proto: QueryAggregateMarketVolumesRequest: wiretype end group for non-group") 18743 } 18744 if fieldNum <= 0 { 18745 return fmt.Errorf("proto: QueryAggregateMarketVolumesRequest: illegal tag %d (wire type %d)", fieldNum, wire) 18746 } 18747 switch fieldNum { 18748 case 1: 18749 if wireType != 2 { 18750 return fmt.Errorf("proto: wrong wireType = %d for field MarketIds", wireType) 18751 } 18752 var stringLen uint64 18753 for shift := uint(0); ; shift += 7 { 18754 if shift >= 64 { 18755 return ErrIntOverflowQuery 18756 } 18757 if iNdEx >= l { 18758 return io.ErrUnexpectedEOF 18759 } 18760 b := dAtA[iNdEx] 18761 iNdEx++ 18762 stringLen |= uint64(b&0x7F) << shift 18763 if b < 0x80 { 18764 break 18765 } 18766 } 18767 intStringLen := int(stringLen) 18768 if intStringLen < 0 { 18769 return ErrInvalidLengthQuery 18770 } 18771 postIndex := iNdEx + intStringLen 18772 if postIndex < 0 { 18773 return ErrInvalidLengthQuery 18774 } 18775 if postIndex > l { 18776 return io.ErrUnexpectedEOF 18777 } 18778 m.MarketIds = append(m.MarketIds, string(dAtA[iNdEx:postIndex])) 18779 iNdEx = postIndex 18780 default: 18781 iNdEx = preIndex 18782 skippy, err := skipQuery(dAtA[iNdEx:]) 18783 if err != nil { 18784 return err 18785 } 18786 if (skippy < 0) || (iNdEx+skippy) < 0 { 18787 return ErrInvalidLengthQuery 18788 } 18789 if (iNdEx + skippy) > l { 18790 return io.ErrUnexpectedEOF 18791 } 18792 iNdEx += skippy 18793 } 18794 } 18795 18796 if iNdEx > l { 18797 return io.ErrUnexpectedEOF 18798 } 18799 return nil 18800 } 18801 func (m *QueryAggregateMarketVolumesResponse) Unmarshal(dAtA []byte) error { 18802 l := len(dAtA) 18803 iNdEx := 0 18804 for iNdEx < l { 18805 preIndex := iNdEx 18806 var wire uint64 18807 for shift := uint(0); ; shift += 7 { 18808 if shift >= 64 { 18809 return ErrIntOverflowQuery 18810 } 18811 if iNdEx >= l { 18812 return io.ErrUnexpectedEOF 18813 } 18814 b := dAtA[iNdEx] 18815 iNdEx++ 18816 wire |= uint64(b&0x7F) << shift 18817 if b < 0x80 { 18818 break 18819 } 18820 } 18821 fieldNum := int32(wire >> 3) 18822 wireType := int(wire & 0x7) 18823 if wireType == 4 { 18824 return fmt.Errorf("proto: QueryAggregateMarketVolumesResponse: wiretype end group for non-group") 18825 } 18826 if fieldNum <= 0 { 18827 return fmt.Errorf("proto: QueryAggregateMarketVolumesResponse: illegal tag %d (wire type %d)", fieldNum, wire) 18828 } 18829 switch fieldNum { 18830 case 1: 18831 if wireType != 2 { 18832 return fmt.Errorf("proto: wrong wireType = %d for field Volumes", wireType) 18833 } 18834 var msglen int 18835 for shift := uint(0); ; shift += 7 { 18836 if shift >= 64 { 18837 return ErrIntOverflowQuery 18838 } 18839 if iNdEx >= l { 18840 return io.ErrUnexpectedEOF 18841 } 18842 b := dAtA[iNdEx] 18843 iNdEx++ 18844 msglen |= int(b&0x7F) << shift 18845 if b < 0x80 { 18846 break 18847 } 18848 } 18849 if msglen < 0 { 18850 return ErrInvalidLengthQuery 18851 } 18852 postIndex := iNdEx + msglen 18853 if postIndex < 0 { 18854 return ErrInvalidLengthQuery 18855 } 18856 if postIndex > l { 18857 return io.ErrUnexpectedEOF 18858 } 18859 m.Volumes = append(m.Volumes, &MarketVolume{}) 18860 if err := m.Volumes[len(m.Volumes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 18861 return err 18862 } 18863 iNdEx = postIndex 18864 default: 18865 iNdEx = preIndex 18866 skippy, err := skipQuery(dAtA[iNdEx:]) 18867 if err != nil { 18868 return err 18869 } 18870 if (skippy < 0) || (iNdEx+skippy) < 0 { 18871 return ErrInvalidLengthQuery 18872 } 18873 if (iNdEx + skippy) > l { 18874 return io.ErrUnexpectedEOF 18875 } 18876 iNdEx += skippy 18877 } 18878 } 18879 18880 if iNdEx > l { 18881 return io.ErrUnexpectedEOF 18882 } 18883 return nil 18884 } 18885 func (m *QuerySubaccountDepositRequest) Unmarshal(dAtA []byte) error { 18886 l := len(dAtA) 18887 iNdEx := 0 18888 for iNdEx < l { 18889 preIndex := iNdEx 18890 var wire uint64 18891 for shift := uint(0); ; shift += 7 { 18892 if shift >= 64 { 18893 return ErrIntOverflowQuery 18894 } 18895 if iNdEx >= l { 18896 return io.ErrUnexpectedEOF 18897 } 18898 b := dAtA[iNdEx] 18899 iNdEx++ 18900 wire |= uint64(b&0x7F) << shift 18901 if b < 0x80 { 18902 break 18903 } 18904 } 18905 fieldNum := int32(wire >> 3) 18906 wireType := int(wire & 0x7) 18907 if wireType == 4 { 18908 return fmt.Errorf("proto: QuerySubaccountDepositRequest: wiretype end group for non-group") 18909 } 18910 if fieldNum <= 0 { 18911 return fmt.Errorf("proto: QuerySubaccountDepositRequest: illegal tag %d (wire type %d)", fieldNum, wire) 18912 } 18913 switch fieldNum { 18914 case 1: 18915 if wireType != 2 { 18916 return fmt.Errorf("proto: wrong wireType = %d for field SubaccountId", wireType) 18917 } 18918 var stringLen uint64 18919 for shift := uint(0); ; shift += 7 { 18920 if shift >= 64 { 18921 return ErrIntOverflowQuery 18922 } 18923 if iNdEx >= l { 18924 return io.ErrUnexpectedEOF 18925 } 18926 b := dAtA[iNdEx] 18927 iNdEx++ 18928 stringLen |= uint64(b&0x7F) << shift 18929 if b < 0x80 { 18930 break 18931 } 18932 } 18933 intStringLen := int(stringLen) 18934 if intStringLen < 0 { 18935 return ErrInvalidLengthQuery 18936 } 18937 postIndex := iNdEx + intStringLen 18938 if postIndex < 0 { 18939 return ErrInvalidLengthQuery 18940 } 18941 if postIndex > l { 18942 return io.ErrUnexpectedEOF 18943 } 18944 m.SubaccountId = string(dAtA[iNdEx:postIndex]) 18945 iNdEx = postIndex 18946 case 2: 18947 if wireType != 2 { 18948 return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) 18949 } 18950 var stringLen uint64 18951 for shift := uint(0); ; shift += 7 { 18952 if shift >= 64 { 18953 return ErrIntOverflowQuery 18954 } 18955 if iNdEx >= l { 18956 return io.ErrUnexpectedEOF 18957 } 18958 b := dAtA[iNdEx] 18959 iNdEx++ 18960 stringLen |= uint64(b&0x7F) << shift 18961 if b < 0x80 { 18962 break 18963 } 18964 } 18965 intStringLen := int(stringLen) 18966 if intStringLen < 0 { 18967 return ErrInvalidLengthQuery 18968 } 18969 postIndex := iNdEx + intStringLen 18970 if postIndex < 0 { 18971 return ErrInvalidLengthQuery 18972 } 18973 if postIndex > l { 18974 return io.ErrUnexpectedEOF 18975 } 18976 m.Denom = string(dAtA[iNdEx:postIndex]) 18977 iNdEx = postIndex 18978 default: 18979 iNdEx = preIndex 18980 skippy, err := skipQuery(dAtA[iNdEx:]) 18981 if err != nil { 18982 return err 18983 } 18984 if (skippy < 0) || (iNdEx+skippy) < 0 { 18985 return ErrInvalidLengthQuery 18986 } 18987 if (iNdEx + skippy) > l { 18988 return io.ErrUnexpectedEOF 18989 } 18990 iNdEx += skippy 18991 } 18992 } 18993 18994 if iNdEx > l { 18995 return io.ErrUnexpectedEOF 18996 } 18997 return nil 18998 } 18999 func (m *QuerySubaccountDepositResponse) Unmarshal(dAtA []byte) error { 19000 l := len(dAtA) 19001 iNdEx := 0 19002 for iNdEx < l { 19003 preIndex := iNdEx 19004 var wire uint64 19005 for shift := uint(0); ; shift += 7 { 19006 if shift >= 64 { 19007 return ErrIntOverflowQuery 19008 } 19009 if iNdEx >= l { 19010 return io.ErrUnexpectedEOF 19011 } 19012 b := dAtA[iNdEx] 19013 iNdEx++ 19014 wire |= uint64(b&0x7F) << shift 19015 if b < 0x80 { 19016 break 19017 } 19018 } 19019 fieldNum := int32(wire >> 3) 19020 wireType := int(wire & 0x7) 19021 if wireType == 4 { 19022 return fmt.Errorf("proto: QuerySubaccountDepositResponse: wiretype end group for non-group") 19023 } 19024 if fieldNum <= 0 { 19025 return fmt.Errorf("proto: QuerySubaccountDepositResponse: illegal tag %d (wire type %d)", fieldNum, wire) 19026 } 19027 switch fieldNum { 19028 case 1: 19029 if wireType != 2 { 19030 return fmt.Errorf("proto: wrong wireType = %d for field Deposits", wireType) 19031 } 19032 var msglen int 19033 for shift := uint(0); ; shift += 7 { 19034 if shift >= 64 { 19035 return ErrIntOverflowQuery 19036 } 19037 if iNdEx >= l { 19038 return io.ErrUnexpectedEOF 19039 } 19040 b := dAtA[iNdEx] 19041 iNdEx++ 19042 msglen |= int(b&0x7F) << shift 19043 if b < 0x80 { 19044 break 19045 } 19046 } 19047 if msglen < 0 { 19048 return ErrInvalidLengthQuery 19049 } 19050 postIndex := iNdEx + msglen 19051 if postIndex < 0 { 19052 return ErrInvalidLengthQuery 19053 } 19054 if postIndex > l { 19055 return io.ErrUnexpectedEOF 19056 } 19057 if m.Deposits == nil { 19058 m.Deposits = &Deposit{} 19059 } 19060 if err := m.Deposits.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 19061 return err 19062 } 19063 iNdEx = postIndex 19064 default: 19065 iNdEx = preIndex 19066 skippy, err := skipQuery(dAtA[iNdEx:]) 19067 if err != nil { 19068 return err 19069 } 19070 if (skippy < 0) || (iNdEx+skippy) < 0 { 19071 return ErrInvalidLengthQuery 19072 } 19073 if (iNdEx + skippy) > l { 19074 return io.ErrUnexpectedEOF 19075 } 19076 iNdEx += skippy 19077 } 19078 } 19079 19080 if iNdEx > l { 19081 return io.ErrUnexpectedEOF 19082 } 19083 return nil 19084 } 19085 func (m *QuerySpotMarketsRequest) Unmarshal(dAtA []byte) error { 19086 l := len(dAtA) 19087 iNdEx := 0 19088 for iNdEx < l { 19089 preIndex := iNdEx 19090 var wire uint64 19091 for shift := uint(0); ; shift += 7 { 19092 if shift >= 64 { 19093 return ErrIntOverflowQuery 19094 } 19095 if iNdEx >= l { 19096 return io.ErrUnexpectedEOF 19097 } 19098 b := dAtA[iNdEx] 19099 iNdEx++ 19100 wire |= uint64(b&0x7F) << shift 19101 if b < 0x80 { 19102 break 19103 } 19104 } 19105 fieldNum := int32(wire >> 3) 19106 wireType := int(wire & 0x7) 19107 if wireType == 4 { 19108 return fmt.Errorf("proto: QuerySpotMarketsRequest: wiretype end group for non-group") 19109 } 19110 if fieldNum <= 0 { 19111 return fmt.Errorf("proto: QuerySpotMarketsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 19112 } 19113 switch fieldNum { 19114 case 1: 19115 if wireType != 2 { 19116 return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) 19117 } 19118 var stringLen uint64 19119 for shift := uint(0); ; shift += 7 { 19120 if shift >= 64 { 19121 return ErrIntOverflowQuery 19122 } 19123 if iNdEx >= l { 19124 return io.ErrUnexpectedEOF 19125 } 19126 b := dAtA[iNdEx] 19127 iNdEx++ 19128 stringLen |= uint64(b&0x7F) << shift 19129 if b < 0x80 { 19130 break 19131 } 19132 } 19133 intStringLen := int(stringLen) 19134 if intStringLen < 0 { 19135 return ErrInvalidLengthQuery 19136 } 19137 postIndex := iNdEx + intStringLen 19138 if postIndex < 0 { 19139 return ErrInvalidLengthQuery 19140 } 19141 if postIndex > l { 19142 return io.ErrUnexpectedEOF 19143 } 19144 m.Status = string(dAtA[iNdEx:postIndex]) 19145 iNdEx = postIndex 19146 case 2: 19147 if wireType != 2 { 19148 return fmt.Errorf("proto: wrong wireType = %d for field MarketIds", wireType) 19149 } 19150 var stringLen uint64 19151 for shift := uint(0); ; shift += 7 { 19152 if shift >= 64 { 19153 return ErrIntOverflowQuery 19154 } 19155 if iNdEx >= l { 19156 return io.ErrUnexpectedEOF 19157 } 19158 b := dAtA[iNdEx] 19159 iNdEx++ 19160 stringLen |= uint64(b&0x7F) << shift 19161 if b < 0x80 { 19162 break 19163 } 19164 } 19165 intStringLen := int(stringLen) 19166 if intStringLen < 0 { 19167 return ErrInvalidLengthQuery 19168 } 19169 postIndex := iNdEx + intStringLen 19170 if postIndex < 0 { 19171 return ErrInvalidLengthQuery 19172 } 19173 if postIndex > l { 19174 return io.ErrUnexpectedEOF 19175 } 19176 m.MarketIds = append(m.MarketIds, string(dAtA[iNdEx:postIndex])) 19177 iNdEx = postIndex 19178 default: 19179 iNdEx = preIndex 19180 skippy, err := skipQuery(dAtA[iNdEx:]) 19181 if err != nil { 19182 return err 19183 } 19184 if (skippy < 0) || (iNdEx+skippy) < 0 { 19185 return ErrInvalidLengthQuery 19186 } 19187 if (iNdEx + skippy) > l { 19188 return io.ErrUnexpectedEOF 19189 } 19190 iNdEx += skippy 19191 } 19192 } 19193 19194 if iNdEx > l { 19195 return io.ErrUnexpectedEOF 19196 } 19197 return nil 19198 } 19199 func (m *QuerySpotMarketsResponse) Unmarshal(dAtA []byte) error { 19200 l := len(dAtA) 19201 iNdEx := 0 19202 for iNdEx < l { 19203 preIndex := iNdEx 19204 var wire uint64 19205 for shift := uint(0); ; shift += 7 { 19206 if shift >= 64 { 19207 return ErrIntOverflowQuery 19208 } 19209 if iNdEx >= l { 19210 return io.ErrUnexpectedEOF 19211 } 19212 b := dAtA[iNdEx] 19213 iNdEx++ 19214 wire |= uint64(b&0x7F) << shift 19215 if b < 0x80 { 19216 break 19217 } 19218 } 19219 fieldNum := int32(wire >> 3) 19220 wireType := int(wire & 0x7) 19221 if wireType == 4 { 19222 return fmt.Errorf("proto: QuerySpotMarketsResponse: wiretype end group for non-group") 19223 } 19224 if fieldNum <= 0 { 19225 return fmt.Errorf("proto: QuerySpotMarketsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 19226 } 19227 switch fieldNum { 19228 case 1: 19229 if wireType != 2 { 19230 return fmt.Errorf("proto: wrong wireType = %d for field Markets", wireType) 19231 } 19232 var msglen int 19233 for shift := uint(0); ; shift += 7 { 19234 if shift >= 64 { 19235 return ErrIntOverflowQuery 19236 } 19237 if iNdEx >= l { 19238 return io.ErrUnexpectedEOF 19239 } 19240 b := dAtA[iNdEx] 19241 iNdEx++ 19242 msglen |= int(b&0x7F) << shift 19243 if b < 0x80 { 19244 break 19245 } 19246 } 19247 if msglen < 0 { 19248 return ErrInvalidLengthQuery 19249 } 19250 postIndex := iNdEx + msglen 19251 if postIndex < 0 { 19252 return ErrInvalidLengthQuery 19253 } 19254 if postIndex > l { 19255 return io.ErrUnexpectedEOF 19256 } 19257 m.Markets = append(m.Markets, &SpotMarket{}) 19258 if err := m.Markets[len(m.Markets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 19259 return err 19260 } 19261 iNdEx = postIndex 19262 default: 19263 iNdEx = preIndex 19264 skippy, err := skipQuery(dAtA[iNdEx:]) 19265 if err != nil { 19266 return err 19267 } 19268 if (skippy < 0) || (iNdEx+skippy) < 0 { 19269 return ErrInvalidLengthQuery 19270 } 19271 if (iNdEx + skippy) > l { 19272 return io.ErrUnexpectedEOF 19273 } 19274 iNdEx += skippy 19275 } 19276 } 19277 19278 if iNdEx > l { 19279 return io.ErrUnexpectedEOF 19280 } 19281 return nil 19282 } 19283 func (m *QuerySpotMarketRequest) Unmarshal(dAtA []byte) error { 19284 l := len(dAtA) 19285 iNdEx := 0 19286 for iNdEx < l { 19287 preIndex := iNdEx 19288 var wire uint64 19289 for shift := uint(0); ; shift += 7 { 19290 if shift >= 64 { 19291 return ErrIntOverflowQuery 19292 } 19293 if iNdEx >= l { 19294 return io.ErrUnexpectedEOF 19295 } 19296 b := dAtA[iNdEx] 19297 iNdEx++ 19298 wire |= uint64(b&0x7F) << shift 19299 if b < 0x80 { 19300 break 19301 } 19302 } 19303 fieldNum := int32(wire >> 3) 19304 wireType := int(wire & 0x7) 19305 if wireType == 4 { 19306 return fmt.Errorf("proto: QuerySpotMarketRequest: wiretype end group for non-group") 19307 } 19308 if fieldNum <= 0 { 19309 return fmt.Errorf("proto: QuerySpotMarketRequest: illegal tag %d (wire type %d)", fieldNum, wire) 19310 } 19311 switch fieldNum { 19312 case 1: 19313 if wireType != 2 { 19314 return fmt.Errorf("proto: wrong wireType = %d for field MarketId", wireType) 19315 } 19316 var stringLen uint64 19317 for shift := uint(0); ; shift += 7 { 19318 if shift >= 64 { 19319 return ErrIntOverflowQuery 19320 } 19321 if iNdEx >= l { 19322 return io.ErrUnexpectedEOF 19323 } 19324 b := dAtA[iNdEx] 19325 iNdEx++ 19326 stringLen |= uint64(b&0x7F) << shift 19327 if b < 0x80 { 19328 break 19329 } 19330 } 19331 intStringLen := int(stringLen) 19332 if intStringLen < 0 { 19333 return ErrInvalidLengthQuery 19334 } 19335 postIndex := iNdEx + intStringLen 19336 if postIndex < 0 { 19337 return ErrInvalidLengthQuery 19338 } 19339 if postIndex > l { 19340 return io.ErrUnexpectedEOF 19341 } 19342 m.MarketId = string(dAtA[iNdEx:postIndex]) 19343 iNdEx = postIndex 19344 default: 19345 iNdEx = preIndex 19346 skippy, err := skipQuery(dAtA[iNdEx:]) 19347 if err != nil { 19348 return err 19349 } 19350 if (skippy < 0) || (iNdEx+skippy) < 0 { 19351 return ErrInvalidLengthQuery 19352 } 19353 if (iNdEx + skippy) > l { 19354 return io.ErrUnexpectedEOF 19355 } 19356 iNdEx += skippy 19357 } 19358 } 19359 19360 if iNdEx > l { 19361 return io.ErrUnexpectedEOF 19362 } 19363 return nil 19364 } 19365 func (m *QuerySpotMarketResponse) Unmarshal(dAtA []byte) error { 19366 l := len(dAtA) 19367 iNdEx := 0 19368 for iNdEx < l { 19369 preIndex := iNdEx 19370 var wire uint64 19371 for shift := uint(0); ; shift += 7 { 19372 if shift >= 64 { 19373 return ErrIntOverflowQuery 19374 } 19375 if iNdEx >= l { 19376 return io.ErrUnexpectedEOF 19377 } 19378 b := dAtA[iNdEx] 19379 iNdEx++ 19380 wire |= uint64(b&0x7F) << shift 19381 if b < 0x80 { 19382 break 19383 } 19384 } 19385 fieldNum := int32(wire >> 3) 19386 wireType := int(wire & 0x7) 19387 if wireType == 4 { 19388 return fmt.Errorf("proto: QuerySpotMarketResponse: wiretype end group for non-group") 19389 } 19390 if fieldNum <= 0 { 19391 return fmt.Errorf("proto: QuerySpotMarketResponse: illegal tag %d (wire type %d)", fieldNum, wire) 19392 } 19393 switch fieldNum { 19394 case 1: 19395 if wireType != 2 { 19396 return fmt.Errorf("proto: wrong wireType = %d for field Market", wireType) 19397 } 19398 var msglen int 19399 for shift := uint(0); ; shift += 7 { 19400 if shift >= 64 { 19401 return ErrIntOverflowQuery 19402 } 19403 if iNdEx >= l { 19404 return io.ErrUnexpectedEOF 19405 } 19406 b := dAtA[iNdEx] 19407 iNdEx++ 19408 msglen |= int(b&0x7F) << shift 19409 if b < 0x80 { 19410 break 19411 } 19412 } 19413 if msglen < 0 { 19414 return ErrInvalidLengthQuery 19415 } 19416 postIndex := iNdEx + msglen 19417 if postIndex < 0 { 19418 return ErrInvalidLengthQuery 19419 } 19420 if postIndex > l { 19421 return io.ErrUnexpectedEOF 19422 } 19423 if m.Market == nil { 19424 m.Market = &SpotMarket{} 19425 } 19426 if err := m.Market.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 19427 return err 19428 } 19429 iNdEx = postIndex 19430 default: 19431 iNdEx = preIndex 19432 skippy, err := skipQuery(dAtA[iNdEx:]) 19433 if err != nil { 19434 return err 19435 } 19436 if (skippy < 0) || (iNdEx+skippy) < 0 { 19437 return ErrInvalidLengthQuery 19438 } 19439 if (iNdEx + skippy) > l { 19440 return io.ErrUnexpectedEOF 19441 } 19442 iNdEx += skippy 19443 } 19444 } 19445 19446 if iNdEx > l { 19447 return io.ErrUnexpectedEOF 19448 } 19449 return nil 19450 } 19451 func (m *QuerySpotOrderbookRequest) Unmarshal(dAtA []byte) error { 19452 l := len(dAtA) 19453 iNdEx := 0 19454 for iNdEx < l { 19455 preIndex := iNdEx 19456 var wire uint64 19457 for shift := uint(0); ; shift += 7 { 19458 if shift >= 64 { 19459 return ErrIntOverflowQuery 19460 } 19461 if iNdEx >= l { 19462 return io.ErrUnexpectedEOF 19463 } 19464 b := dAtA[iNdEx] 19465 iNdEx++ 19466 wire |= uint64(b&0x7F) << shift 19467 if b < 0x80 { 19468 break 19469 } 19470 } 19471 fieldNum := int32(wire >> 3) 19472 wireType := int(wire & 0x7) 19473 if wireType == 4 { 19474 return fmt.Errorf("proto: QuerySpotOrderbookRequest: wiretype end group for non-group") 19475 } 19476 if fieldNum <= 0 { 19477 return fmt.Errorf("proto: QuerySpotOrderbookRequest: illegal tag %d (wire type %d)", fieldNum, wire) 19478 } 19479 switch fieldNum { 19480 case 1: 19481 if wireType != 2 { 19482 return fmt.Errorf("proto: wrong wireType = %d for field MarketId", wireType) 19483 } 19484 var stringLen uint64 19485 for shift := uint(0); ; shift += 7 { 19486 if shift >= 64 { 19487 return ErrIntOverflowQuery 19488 } 19489 if iNdEx >= l { 19490 return io.ErrUnexpectedEOF 19491 } 19492 b := dAtA[iNdEx] 19493 iNdEx++ 19494 stringLen |= uint64(b&0x7F) << shift 19495 if b < 0x80 { 19496 break 19497 } 19498 } 19499 intStringLen := int(stringLen) 19500 if intStringLen < 0 { 19501 return ErrInvalidLengthQuery 19502 } 19503 postIndex := iNdEx + intStringLen 19504 if postIndex < 0 { 19505 return ErrInvalidLengthQuery 19506 } 19507 if postIndex > l { 19508 return io.ErrUnexpectedEOF 19509 } 19510 m.MarketId = string(dAtA[iNdEx:postIndex]) 19511 iNdEx = postIndex 19512 case 2: 19513 if wireType != 0 { 19514 return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) 19515 } 19516 m.Limit = 0 19517 for shift := uint(0); ; shift += 7 { 19518 if shift >= 64 { 19519 return ErrIntOverflowQuery 19520 } 19521 if iNdEx >= l { 19522 return io.ErrUnexpectedEOF 19523 } 19524 b := dAtA[iNdEx] 19525 iNdEx++ 19526 m.Limit |= uint64(b&0x7F) << shift 19527 if b < 0x80 { 19528 break 19529 } 19530 } 19531 case 3: 19532 if wireType != 0 { 19533 return fmt.Errorf("proto: wrong wireType = %d for field OrderSide", wireType) 19534 } 19535 m.OrderSide = 0 19536 for shift := uint(0); ; shift += 7 { 19537 if shift >= 64 { 19538 return ErrIntOverflowQuery 19539 } 19540 if iNdEx >= l { 19541 return io.ErrUnexpectedEOF 19542 } 19543 b := dAtA[iNdEx] 19544 iNdEx++ 19545 m.OrderSide |= OrderSide(b&0x7F) << shift 19546 if b < 0x80 { 19547 break 19548 } 19549 } 19550 case 4: 19551 if wireType != 2 { 19552 return fmt.Errorf("proto: wrong wireType = %d for field LimitCumulativeNotional", wireType) 19553 } 19554 var stringLen uint64 19555 for shift := uint(0); ; shift += 7 { 19556 if shift >= 64 { 19557 return ErrIntOverflowQuery 19558 } 19559 if iNdEx >= l { 19560 return io.ErrUnexpectedEOF 19561 } 19562 b := dAtA[iNdEx] 19563 iNdEx++ 19564 stringLen |= uint64(b&0x7F) << shift 19565 if b < 0x80 { 19566 break 19567 } 19568 } 19569 intStringLen := int(stringLen) 19570 if intStringLen < 0 { 19571 return ErrInvalidLengthQuery 19572 } 19573 postIndex := iNdEx + intStringLen 19574 if postIndex < 0 { 19575 return ErrInvalidLengthQuery 19576 } 19577 if postIndex > l { 19578 return io.ErrUnexpectedEOF 19579 } 19580 var v cosmossdk_io_math.LegacyDec 19581 m.LimitCumulativeNotional = &v 19582 if err := m.LimitCumulativeNotional.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 19583 return err 19584 } 19585 iNdEx = postIndex 19586 case 5: 19587 if wireType != 2 { 19588 return fmt.Errorf("proto: wrong wireType = %d for field LimitCumulativeQuantity", wireType) 19589 } 19590 var stringLen uint64 19591 for shift := uint(0); ; shift += 7 { 19592 if shift >= 64 { 19593 return ErrIntOverflowQuery 19594 } 19595 if iNdEx >= l { 19596 return io.ErrUnexpectedEOF 19597 } 19598 b := dAtA[iNdEx] 19599 iNdEx++ 19600 stringLen |= uint64(b&0x7F) << shift 19601 if b < 0x80 { 19602 break 19603 } 19604 } 19605 intStringLen := int(stringLen) 19606 if intStringLen < 0 { 19607 return ErrInvalidLengthQuery 19608 } 19609 postIndex := iNdEx + intStringLen 19610 if postIndex < 0 { 19611 return ErrInvalidLengthQuery 19612 } 19613 if postIndex > l { 19614 return io.ErrUnexpectedEOF 19615 } 19616 var v cosmossdk_io_math.LegacyDec 19617 m.LimitCumulativeQuantity = &v 19618 if err := m.LimitCumulativeQuantity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 19619 return err 19620 } 19621 iNdEx = postIndex 19622 default: 19623 iNdEx = preIndex 19624 skippy, err := skipQuery(dAtA[iNdEx:]) 19625 if err != nil { 19626 return err 19627 } 19628 if (skippy < 0) || (iNdEx+skippy) < 0 { 19629 return ErrInvalidLengthQuery 19630 } 19631 if (iNdEx + skippy) > l { 19632 return io.ErrUnexpectedEOF 19633 } 19634 iNdEx += skippy 19635 } 19636 } 19637 19638 if iNdEx > l { 19639 return io.ErrUnexpectedEOF 19640 } 19641 return nil 19642 } 19643 func (m *QuerySpotOrderbookResponse) Unmarshal(dAtA []byte) error { 19644 l := len(dAtA) 19645 iNdEx := 0 19646 for iNdEx < l { 19647 preIndex := iNdEx 19648 var wire uint64 19649 for shift := uint(0); ; shift += 7 { 19650 if shift >= 64 { 19651 return ErrIntOverflowQuery 19652 } 19653 if iNdEx >= l { 19654 return io.ErrUnexpectedEOF 19655 } 19656 b := dAtA[iNdEx] 19657 iNdEx++ 19658 wire |= uint64(b&0x7F) << shift 19659 if b < 0x80 { 19660 break 19661 } 19662 } 19663 fieldNum := int32(wire >> 3) 19664 wireType := int(wire & 0x7) 19665 if wireType == 4 { 19666 return fmt.Errorf("proto: QuerySpotOrderbookResponse: wiretype end group for non-group") 19667 } 19668 if fieldNum <= 0 { 19669 return fmt.Errorf("proto: QuerySpotOrderbookResponse: illegal tag %d (wire type %d)", fieldNum, wire) 19670 } 19671 switch fieldNum { 19672 case 1: 19673 if wireType != 2 { 19674 return fmt.Errorf("proto: wrong wireType = %d for field BuysPriceLevel", wireType) 19675 } 19676 var msglen int 19677 for shift := uint(0); ; shift += 7 { 19678 if shift >= 64 { 19679 return ErrIntOverflowQuery 19680 } 19681 if iNdEx >= l { 19682 return io.ErrUnexpectedEOF 19683 } 19684 b := dAtA[iNdEx] 19685 iNdEx++ 19686 msglen |= int(b&0x7F) << shift 19687 if b < 0x80 { 19688 break 19689 } 19690 } 19691 if msglen < 0 { 19692 return ErrInvalidLengthQuery 19693 } 19694 postIndex := iNdEx + msglen 19695 if postIndex < 0 { 19696 return ErrInvalidLengthQuery 19697 } 19698 if postIndex > l { 19699 return io.ErrUnexpectedEOF 19700 } 19701 m.BuysPriceLevel = append(m.BuysPriceLevel, &Level{}) 19702 if err := m.BuysPriceLevel[len(m.BuysPriceLevel)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 19703 return err 19704 } 19705 iNdEx = postIndex 19706 case 2: 19707 if wireType != 2 { 19708 return fmt.Errorf("proto: wrong wireType = %d for field SellsPriceLevel", wireType) 19709 } 19710 var msglen int 19711 for shift := uint(0); ; shift += 7 { 19712 if shift >= 64 { 19713 return ErrIntOverflowQuery 19714 } 19715 if iNdEx >= l { 19716 return io.ErrUnexpectedEOF 19717 } 19718 b := dAtA[iNdEx] 19719 iNdEx++ 19720 msglen |= int(b&0x7F) << shift 19721 if b < 0x80 { 19722 break 19723 } 19724 } 19725 if msglen < 0 { 19726 return ErrInvalidLengthQuery 19727 } 19728 postIndex := iNdEx + msglen 19729 if postIndex < 0 { 19730 return ErrInvalidLengthQuery 19731 } 19732 if postIndex > l { 19733 return io.ErrUnexpectedEOF 19734 } 19735 m.SellsPriceLevel = append(m.SellsPriceLevel, &Level{}) 19736 if err := m.SellsPriceLevel[len(m.SellsPriceLevel)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 19737 return err 19738 } 19739 iNdEx = postIndex 19740 default: 19741 iNdEx = preIndex 19742 skippy, err := skipQuery(dAtA[iNdEx:]) 19743 if err != nil { 19744 return err 19745 } 19746 if (skippy < 0) || (iNdEx+skippy) < 0 { 19747 return ErrInvalidLengthQuery 19748 } 19749 if (iNdEx + skippy) > l { 19750 return io.ErrUnexpectedEOF 19751 } 19752 iNdEx += skippy 19753 } 19754 } 19755 19756 if iNdEx > l { 19757 return io.ErrUnexpectedEOF 19758 } 19759 return nil 19760 } 19761 func (m *FullSpotMarket) Unmarshal(dAtA []byte) error { 19762 l := len(dAtA) 19763 iNdEx := 0 19764 for iNdEx < l { 19765 preIndex := iNdEx 19766 var wire uint64 19767 for shift := uint(0); ; shift += 7 { 19768 if shift >= 64 { 19769 return ErrIntOverflowQuery 19770 } 19771 if iNdEx >= l { 19772 return io.ErrUnexpectedEOF 19773 } 19774 b := dAtA[iNdEx] 19775 iNdEx++ 19776 wire |= uint64(b&0x7F) << shift 19777 if b < 0x80 { 19778 break 19779 } 19780 } 19781 fieldNum := int32(wire >> 3) 19782 wireType := int(wire & 0x7) 19783 if wireType == 4 { 19784 return fmt.Errorf("proto: FullSpotMarket: wiretype end group for non-group") 19785 } 19786 if fieldNum <= 0 { 19787 return fmt.Errorf("proto: FullSpotMarket: illegal tag %d (wire type %d)", fieldNum, wire) 19788 } 19789 switch fieldNum { 19790 case 1: 19791 if wireType != 2 { 19792 return fmt.Errorf("proto: wrong wireType = %d for field Market", wireType) 19793 } 19794 var msglen int 19795 for shift := uint(0); ; shift += 7 { 19796 if shift >= 64 { 19797 return ErrIntOverflowQuery 19798 } 19799 if iNdEx >= l { 19800 return io.ErrUnexpectedEOF 19801 } 19802 b := dAtA[iNdEx] 19803 iNdEx++ 19804 msglen |= int(b&0x7F) << shift 19805 if b < 0x80 { 19806 break 19807 } 19808 } 19809 if msglen < 0 { 19810 return ErrInvalidLengthQuery 19811 } 19812 postIndex := iNdEx + msglen 19813 if postIndex < 0 { 19814 return ErrInvalidLengthQuery 19815 } 19816 if postIndex > l { 19817 return io.ErrUnexpectedEOF 19818 } 19819 if m.Market == nil { 19820 m.Market = &SpotMarket{} 19821 } 19822 if err := m.Market.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 19823 return err 19824 } 19825 iNdEx = postIndex 19826 case 2: 19827 if wireType != 2 { 19828 return fmt.Errorf("proto: wrong wireType = %d for field MidPriceAndTob", wireType) 19829 } 19830 var msglen int 19831 for shift := uint(0); ; shift += 7 { 19832 if shift >= 64 { 19833 return ErrIntOverflowQuery 19834 } 19835 if iNdEx >= l { 19836 return io.ErrUnexpectedEOF 19837 } 19838 b := dAtA[iNdEx] 19839 iNdEx++ 19840 msglen |= int(b&0x7F) << shift 19841 if b < 0x80 { 19842 break 19843 } 19844 } 19845 if msglen < 0 { 19846 return ErrInvalidLengthQuery 19847 } 19848 postIndex := iNdEx + msglen 19849 if postIndex < 0 { 19850 return ErrInvalidLengthQuery 19851 } 19852 if postIndex > l { 19853 return io.ErrUnexpectedEOF 19854 } 19855 if m.MidPriceAndTob == nil { 19856 m.MidPriceAndTob = &MidPriceAndTOB{} 19857 } 19858 if err := m.MidPriceAndTob.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 19859 return err 19860 } 19861 iNdEx = postIndex 19862 default: 19863 iNdEx = preIndex 19864 skippy, err := skipQuery(dAtA[iNdEx:]) 19865 if err != nil { 19866 return err 19867 } 19868 if (skippy < 0) || (iNdEx+skippy) < 0 { 19869 return ErrInvalidLengthQuery 19870 } 19871 if (iNdEx + skippy) > l { 19872 return io.ErrUnexpectedEOF 19873 } 19874 iNdEx += skippy 19875 } 19876 } 19877 19878 if iNdEx > l { 19879 return io.ErrUnexpectedEOF 19880 } 19881 return nil 19882 } 19883 func (m *QueryFullSpotMarketsRequest) Unmarshal(dAtA []byte) error { 19884 l := len(dAtA) 19885 iNdEx := 0 19886 for iNdEx < l { 19887 preIndex := iNdEx 19888 var wire uint64 19889 for shift := uint(0); ; shift += 7 { 19890 if shift >= 64 { 19891 return ErrIntOverflowQuery 19892 } 19893 if iNdEx >= l { 19894 return io.ErrUnexpectedEOF 19895 } 19896 b := dAtA[iNdEx] 19897 iNdEx++ 19898 wire |= uint64(b&0x7F) << shift 19899 if b < 0x80 { 19900 break 19901 } 19902 } 19903 fieldNum := int32(wire >> 3) 19904 wireType := int(wire & 0x7) 19905 if wireType == 4 { 19906 return fmt.Errorf("proto: QueryFullSpotMarketsRequest: wiretype end group for non-group") 19907 } 19908 if fieldNum <= 0 { 19909 return fmt.Errorf("proto: QueryFullSpotMarketsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 19910 } 19911 switch fieldNum { 19912 case 1: 19913 if wireType != 2 { 19914 return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) 19915 } 19916 var stringLen uint64 19917 for shift := uint(0); ; shift += 7 { 19918 if shift >= 64 { 19919 return ErrIntOverflowQuery 19920 } 19921 if iNdEx >= l { 19922 return io.ErrUnexpectedEOF 19923 } 19924 b := dAtA[iNdEx] 19925 iNdEx++ 19926 stringLen |= uint64(b&0x7F) << shift 19927 if b < 0x80 { 19928 break 19929 } 19930 } 19931 intStringLen := int(stringLen) 19932 if intStringLen < 0 { 19933 return ErrInvalidLengthQuery 19934 } 19935 postIndex := iNdEx + intStringLen 19936 if postIndex < 0 { 19937 return ErrInvalidLengthQuery 19938 } 19939 if postIndex > l { 19940 return io.ErrUnexpectedEOF 19941 } 19942 m.Status = string(dAtA[iNdEx:postIndex]) 19943 iNdEx = postIndex 19944 case 2: 19945 if wireType != 2 { 19946 return fmt.Errorf("proto: wrong wireType = %d for field MarketIds", wireType) 19947 } 19948 var stringLen uint64 19949 for shift := uint(0); ; shift += 7 { 19950 if shift >= 64 { 19951 return ErrIntOverflowQuery 19952 } 19953 if iNdEx >= l { 19954 return io.ErrUnexpectedEOF 19955 } 19956 b := dAtA[iNdEx] 19957 iNdEx++ 19958 stringLen |= uint64(b&0x7F) << shift 19959 if b < 0x80 { 19960 break 19961 } 19962 } 19963 intStringLen := int(stringLen) 19964 if intStringLen < 0 { 19965 return ErrInvalidLengthQuery 19966 } 19967 postIndex := iNdEx + intStringLen 19968 if postIndex < 0 { 19969 return ErrInvalidLengthQuery 19970 } 19971 if postIndex > l { 19972 return io.ErrUnexpectedEOF 19973 } 19974 m.MarketIds = append(m.MarketIds, string(dAtA[iNdEx:postIndex])) 19975 iNdEx = postIndex 19976 case 3: 19977 if wireType != 0 { 19978 return fmt.Errorf("proto: wrong wireType = %d for field WithMidPriceAndTob", wireType) 19979 } 19980 var v int 19981 for shift := uint(0); ; shift += 7 { 19982 if shift >= 64 { 19983 return ErrIntOverflowQuery 19984 } 19985 if iNdEx >= l { 19986 return io.ErrUnexpectedEOF 19987 } 19988 b := dAtA[iNdEx] 19989 iNdEx++ 19990 v |= int(b&0x7F) << shift 19991 if b < 0x80 { 19992 break 19993 } 19994 } 19995 m.WithMidPriceAndTob = bool(v != 0) 19996 default: 19997 iNdEx = preIndex 19998 skippy, err := skipQuery(dAtA[iNdEx:]) 19999 if err != nil { 20000 return err 20001 } 20002 if (skippy < 0) || (iNdEx+skippy) < 0 { 20003 return ErrInvalidLengthQuery 20004 } 20005 if (iNdEx + skippy) > l { 20006 return io.ErrUnexpectedEOF 20007 } 20008 iNdEx += skippy 20009 } 20010 } 20011 20012 if iNdEx > l { 20013 return io.ErrUnexpectedEOF 20014 } 20015 return nil 20016 } 20017 func (m *QueryFullSpotMarketsResponse) Unmarshal(dAtA []byte) error { 20018 l := len(dAtA) 20019 iNdEx := 0 20020 for iNdEx < l { 20021 preIndex := iNdEx 20022 var wire uint64 20023 for shift := uint(0); ; shift += 7 { 20024 if shift >= 64 { 20025 return ErrIntOverflowQuery 20026 } 20027 if iNdEx >= l { 20028 return io.ErrUnexpectedEOF 20029 } 20030 b := dAtA[iNdEx] 20031 iNdEx++ 20032 wire |= uint64(b&0x7F) << shift 20033 if b < 0x80 { 20034 break 20035 } 20036 } 20037 fieldNum := int32(wire >> 3) 20038 wireType := int(wire & 0x7) 20039 if wireType == 4 { 20040 return fmt.Errorf("proto: QueryFullSpotMarketsResponse: wiretype end group for non-group") 20041 } 20042 if fieldNum <= 0 { 20043 return fmt.Errorf("proto: QueryFullSpotMarketsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 20044 } 20045 switch fieldNum { 20046 case 1: 20047 if wireType != 2 { 20048 return fmt.Errorf("proto: wrong wireType = %d for field Markets", wireType) 20049 } 20050 var msglen int 20051 for shift := uint(0); ; shift += 7 { 20052 if shift >= 64 { 20053 return ErrIntOverflowQuery 20054 } 20055 if iNdEx >= l { 20056 return io.ErrUnexpectedEOF 20057 } 20058 b := dAtA[iNdEx] 20059 iNdEx++ 20060 msglen |= int(b&0x7F) << shift 20061 if b < 0x80 { 20062 break 20063 } 20064 } 20065 if msglen < 0 { 20066 return ErrInvalidLengthQuery 20067 } 20068 postIndex := iNdEx + msglen 20069 if postIndex < 0 { 20070 return ErrInvalidLengthQuery 20071 } 20072 if postIndex > l { 20073 return io.ErrUnexpectedEOF 20074 } 20075 m.Markets = append(m.Markets, &FullSpotMarket{}) 20076 if err := m.Markets[len(m.Markets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 20077 return err 20078 } 20079 iNdEx = postIndex 20080 default: 20081 iNdEx = preIndex 20082 skippy, err := skipQuery(dAtA[iNdEx:]) 20083 if err != nil { 20084 return err 20085 } 20086 if (skippy < 0) || (iNdEx+skippy) < 0 { 20087 return ErrInvalidLengthQuery 20088 } 20089 if (iNdEx + skippy) > l { 20090 return io.ErrUnexpectedEOF 20091 } 20092 iNdEx += skippy 20093 } 20094 } 20095 20096 if iNdEx > l { 20097 return io.ErrUnexpectedEOF 20098 } 20099 return nil 20100 } 20101 func (m *QueryFullSpotMarketRequest) Unmarshal(dAtA []byte) error { 20102 l := len(dAtA) 20103 iNdEx := 0 20104 for iNdEx < l { 20105 preIndex := iNdEx 20106 var wire uint64 20107 for shift := uint(0); ; shift += 7 { 20108 if shift >= 64 { 20109 return ErrIntOverflowQuery 20110 } 20111 if iNdEx >= l { 20112 return io.ErrUnexpectedEOF 20113 } 20114 b := dAtA[iNdEx] 20115 iNdEx++ 20116 wire |= uint64(b&0x7F) << shift 20117 if b < 0x80 { 20118 break 20119 } 20120 } 20121 fieldNum := int32(wire >> 3) 20122 wireType := int(wire & 0x7) 20123 if wireType == 4 { 20124 return fmt.Errorf("proto: QueryFullSpotMarketRequest: wiretype end group for non-group") 20125 } 20126 if fieldNum <= 0 { 20127 return fmt.Errorf("proto: QueryFullSpotMarketRequest: illegal tag %d (wire type %d)", fieldNum, wire) 20128 } 20129 switch fieldNum { 20130 case 1: 20131 if wireType != 2 { 20132 return fmt.Errorf("proto: wrong wireType = %d for field MarketId", wireType) 20133 } 20134 var stringLen uint64 20135 for shift := uint(0); ; shift += 7 { 20136 if shift >= 64 { 20137 return ErrIntOverflowQuery 20138 } 20139 if iNdEx >= l { 20140 return io.ErrUnexpectedEOF 20141 } 20142 b := dAtA[iNdEx] 20143 iNdEx++ 20144 stringLen |= uint64(b&0x7F) << shift 20145 if b < 0x80 { 20146 break 20147 } 20148 } 20149 intStringLen := int(stringLen) 20150 if intStringLen < 0 { 20151 return ErrInvalidLengthQuery 20152 } 20153 postIndex := iNdEx + intStringLen 20154 if postIndex < 0 { 20155 return ErrInvalidLengthQuery 20156 } 20157 if postIndex > l { 20158 return io.ErrUnexpectedEOF 20159 } 20160 m.MarketId = string(dAtA[iNdEx:postIndex]) 20161 iNdEx = postIndex 20162 case 2: 20163 if wireType != 0 { 20164 return fmt.Errorf("proto: wrong wireType = %d for field WithMidPriceAndTob", wireType) 20165 } 20166 var v int 20167 for shift := uint(0); ; shift += 7 { 20168 if shift >= 64 { 20169 return ErrIntOverflowQuery 20170 } 20171 if iNdEx >= l { 20172 return io.ErrUnexpectedEOF 20173 } 20174 b := dAtA[iNdEx] 20175 iNdEx++ 20176 v |= int(b&0x7F) << shift 20177 if b < 0x80 { 20178 break 20179 } 20180 } 20181 m.WithMidPriceAndTob = bool(v != 0) 20182 default: 20183 iNdEx = preIndex 20184 skippy, err := skipQuery(dAtA[iNdEx:]) 20185 if err != nil { 20186 return err 20187 } 20188 if (skippy < 0) || (iNdEx+skippy) < 0 { 20189 return ErrInvalidLengthQuery 20190 } 20191 if (iNdEx + skippy) > l { 20192 return io.ErrUnexpectedEOF 20193 } 20194 iNdEx += skippy 20195 } 20196 } 20197 20198 if iNdEx > l { 20199 return io.ErrUnexpectedEOF 20200 } 20201 return nil 20202 } 20203 func (m *QueryFullSpotMarketResponse) Unmarshal(dAtA []byte) error { 20204 l := len(dAtA) 20205 iNdEx := 0 20206 for iNdEx < l { 20207 preIndex := iNdEx 20208 var wire uint64 20209 for shift := uint(0); ; shift += 7 { 20210 if shift >= 64 { 20211 return ErrIntOverflowQuery 20212 } 20213 if iNdEx >= l { 20214 return io.ErrUnexpectedEOF 20215 } 20216 b := dAtA[iNdEx] 20217 iNdEx++ 20218 wire |= uint64(b&0x7F) << shift 20219 if b < 0x80 { 20220 break 20221 } 20222 } 20223 fieldNum := int32(wire >> 3) 20224 wireType := int(wire & 0x7) 20225 if wireType == 4 { 20226 return fmt.Errorf("proto: QueryFullSpotMarketResponse: wiretype end group for non-group") 20227 } 20228 if fieldNum <= 0 { 20229 return fmt.Errorf("proto: QueryFullSpotMarketResponse: illegal tag %d (wire type %d)", fieldNum, wire) 20230 } 20231 switch fieldNum { 20232 case 1: 20233 if wireType != 2 { 20234 return fmt.Errorf("proto: wrong wireType = %d for field Market", wireType) 20235 } 20236 var msglen int 20237 for shift := uint(0); ; shift += 7 { 20238 if shift >= 64 { 20239 return ErrIntOverflowQuery 20240 } 20241 if iNdEx >= l { 20242 return io.ErrUnexpectedEOF 20243 } 20244 b := dAtA[iNdEx] 20245 iNdEx++ 20246 msglen |= int(b&0x7F) << shift 20247 if b < 0x80 { 20248 break 20249 } 20250 } 20251 if msglen < 0 { 20252 return ErrInvalidLengthQuery 20253 } 20254 postIndex := iNdEx + msglen 20255 if postIndex < 0 { 20256 return ErrInvalidLengthQuery 20257 } 20258 if postIndex > l { 20259 return io.ErrUnexpectedEOF 20260 } 20261 if m.Market == nil { 20262 m.Market = &FullSpotMarket{} 20263 } 20264 if err := m.Market.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 20265 return err 20266 } 20267 iNdEx = postIndex 20268 default: 20269 iNdEx = preIndex 20270 skippy, err := skipQuery(dAtA[iNdEx:]) 20271 if err != nil { 20272 return err 20273 } 20274 if (skippy < 0) || (iNdEx+skippy) < 0 { 20275 return ErrInvalidLengthQuery 20276 } 20277 if (iNdEx + skippy) > l { 20278 return io.ErrUnexpectedEOF 20279 } 20280 iNdEx += skippy 20281 } 20282 } 20283 20284 if iNdEx > l { 20285 return io.ErrUnexpectedEOF 20286 } 20287 return nil 20288 } 20289 func (m *QuerySpotOrdersByHashesRequest) Unmarshal(dAtA []byte) error { 20290 l := len(dAtA) 20291 iNdEx := 0 20292 for iNdEx < l { 20293 preIndex := iNdEx 20294 var wire uint64 20295 for shift := uint(0); ; shift += 7 { 20296 if shift >= 64 { 20297 return ErrIntOverflowQuery 20298 } 20299 if iNdEx >= l { 20300 return io.ErrUnexpectedEOF 20301 } 20302 b := dAtA[iNdEx] 20303 iNdEx++ 20304 wire |= uint64(b&0x7F) << shift 20305 if b < 0x80 { 20306 break 20307 } 20308 } 20309 fieldNum := int32(wire >> 3) 20310 wireType := int(wire & 0x7) 20311 if wireType == 4 { 20312 return fmt.Errorf("proto: QuerySpotOrdersByHashesRequest: wiretype end group for non-group") 20313 } 20314 if fieldNum <= 0 { 20315 return fmt.Errorf("proto: QuerySpotOrdersByHashesRequest: illegal tag %d (wire type %d)", fieldNum, wire) 20316 } 20317 switch fieldNum { 20318 case 1: 20319 if wireType != 2 { 20320 return fmt.Errorf("proto: wrong wireType = %d for field MarketId", wireType) 20321 } 20322 var stringLen uint64 20323 for shift := uint(0); ; shift += 7 { 20324 if shift >= 64 { 20325 return ErrIntOverflowQuery 20326 } 20327 if iNdEx >= l { 20328 return io.ErrUnexpectedEOF 20329 } 20330 b := dAtA[iNdEx] 20331 iNdEx++ 20332 stringLen |= uint64(b&0x7F) << shift 20333 if b < 0x80 { 20334 break 20335 } 20336 } 20337 intStringLen := int(stringLen) 20338 if intStringLen < 0 { 20339 return ErrInvalidLengthQuery 20340 } 20341 postIndex := iNdEx + intStringLen 20342 if postIndex < 0 { 20343 return ErrInvalidLengthQuery 20344 } 20345 if postIndex > l { 20346 return io.ErrUnexpectedEOF 20347 } 20348 m.MarketId = string(dAtA[iNdEx:postIndex]) 20349 iNdEx = postIndex 20350 case 2: 20351 if wireType != 2 { 20352 return fmt.Errorf("proto: wrong wireType = %d for field SubaccountId", wireType) 20353 } 20354 var stringLen uint64 20355 for shift := uint(0); ; shift += 7 { 20356 if shift >= 64 { 20357 return ErrIntOverflowQuery 20358 } 20359 if iNdEx >= l { 20360 return io.ErrUnexpectedEOF 20361 } 20362 b := dAtA[iNdEx] 20363 iNdEx++ 20364 stringLen |= uint64(b&0x7F) << shift 20365 if b < 0x80 { 20366 break 20367 } 20368 } 20369 intStringLen := int(stringLen) 20370 if intStringLen < 0 { 20371 return ErrInvalidLengthQuery 20372 } 20373 postIndex := iNdEx + intStringLen 20374 if postIndex < 0 { 20375 return ErrInvalidLengthQuery 20376 } 20377 if postIndex > l { 20378 return io.ErrUnexpectedEOF 20379 } 20380 m.SubaccountId = string(dAtA[iNdEx:postIndex]) 20381 iNdEx = postIndex 20382 case 3: 20383 if wireType != 2 { 20384 return fmt.Errorf("proto: wrong wireType = %d for field OrderHashes", wireType) 20385 } 20386 var stringLen uint64 20387 for shift := uint(0); ; shift += 7 { 20388 if shift >= 64 { 20389 return ErrIntOverflowQuery 20390 } 20391 if iNdEx >= l { 20392 return io.ErrUnexpectedEOF 20393 } 20394 b := dAtA[iNdEx] 20395 iNdEx++ 20396 stringLen |= uint64(b&0x7F) << shift 20397 if b < 0x80 { 20398 break 20399 } 20400 } 20401 intStringLen := int(stringLen) 20402 if intStringLen < 0 { 20403 return ErrInvalidLengthQuery 20404 } 20405 postIndex := iNdEx + intStringLen 20406 if postIndex < 0 { 20407 return ErrInvalidLengthQuery 20408 } 20409 if postIndex > l { 20410 return io.ErrUnexpectedEOF 20411 } 20412 m.OrderHashes = append(m.OrderHashes, string(dAtA[iNdEx:postIndex])) 20413 iNdEx = postIndex 20414 default: 20415 iNdEx = preIndex 20416 skippy, err := skipQuery(dAtA[iNdEx:]) 20417 if err != nil { 20418 return err 20419 } 20420 if (skippy < 0) || (iNdEx+skippy) < 0 { 20421 return ErrInvalidLengthQuery 20422 } 20423 if (iNdEx + skippy) > l { 20424 return io.ErrUnexpectedEOF 20425 } 20426 iNdEx += skippy 20427 } 20428 } 20429 20430 if iNdEx > l { 20431 return io.ErrUnexpectedEOF 20432 } 20433 return nil 20434 } 20435 func (m *QuerySpotOrdersByHashesResponse) Unmarshal(dAtA []byte) error { 20436 l := len(dAtA) 20437 iNdEx := 0 20438 for iNdEx < l { 20439 preIndex := iNdEx 20440 var wire uint64 20441 for shift := uint(0); ; shift += 7 { 20442 if shift >= 64 { 20443 return ErrIntOverflowQuery 20444 } 20445 if iNdEx >= l { 20446 return io.ErrUnexpectedEOF 20447 } 20448 b := dAtA[iNdEx] 20449 iNdEx++ 20450 wire |= uint64(b&0x7F) << shift 20451 if b < 0x80 { 20452 break 20453 } 20454 } 20455 fieldNum := int32(wire >> 3) 20456 wireType := int(wire & 0x7) 20457 if wireType == 4 { 20458 return fmt.Errorf("proto: QuerySpotOrdersByHashesResponse: wiretype end group for non-group") 20459 } 20460 if fieldNum <= 0 { 20461 return fmt.Errorf("proto: QuerySpotOrdersByHashesResponse: illegal tag %d (wire type %d)", fieldNum, wire) 20462 } 20463 switch fieldNum { 20464 case 1: 20465 if wireType != 2 { 20466 return fmt.Errorf("proto: wrong wireType = %d for field Orders", wireType) 20467 } 20468 var msglen int 20469 for shift := uint(0); ; shift += 7 { 20470 if shift >= 64 { 20471 return ErrIntOverflowQuery 20472 } 20473 if iNdEx >= l { 20474 return io.ErrUnexpectedEOF 20475 } 20476 b := dAtA[iNdEx] 20477 iNdEx++ 20478 msglen |= int(b&0x7F) << shift 20479 if b < 0x80 { 20480 break 20481 } 20482 } 20483 if msglen < 0 { 20484 return ErrInvalidLengthQuery 20485 } 20486 postIndex := iNdEx + msglen 20487 if postIndex < 0 { 20488 return ErrInvalidLengthQuery 20489 } 20490 if postIndex > l { 20491 return io.ErrUnexpectedEOF 20492 } 20493 m.Orders = append(m.Orders, &TrimmedSpotLimitOrder{}) 20494 if err := m.Orders[len(m.Orders)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 20495 return err 20496 } 20497 iNdEx = postIndex 20498 default: 20499 iNdEx = preIndex 20500 skippy, err := skipQuery(dAtA[iNdEx:]) 20501 if err != nil { 20502 return err 20503 } 20504 if (skippy < 0) || (iNdEx+skippy) < 0 { 20505 return ErrInvalidLengthQuery 20506 } 20507 if (iNdEx + skippy) > l { 20508 return io.ErrUnexpectedEOF 20509 } 20510 iNdEx += skippy 20511 } 20512 } 20513 20514 if iNdEx > l { 20515 return io.ErrUnexpectedEOF 20516 } 20517 return nil 20518 } 20519 func (m *QueryTraderSpotOrdersRequest) Unmarshal(dAtA []byte) error { 20520 l := len(dAtA) 20521 iNdEx := 0 20522 for iNdEx < l { 20523 preIndex := iNdEx 20524 var wire uint64 20525 for shift := uint(0); ; shift += 7 { 20526 if shift >= 64 { 20527 return ErrIntOverflowQuery 20528 } 20529 if iNdEx >= l { 20530 return io.ErrUnexpectedEOF 20531 } 20532 b := dAtA[iNdEx] 20533 iNdEx++ 20534 wire |= uint64(b&0x7F) << shift 20535 if b < 0x80 { 20536 break 20537 } 20538 } 20539 fieldNum := int32(wire >> 3) 20540 wireType := int(wire & 0x7) 20541 if wireType == 4 { 20542 return fmt.Errorf("proto: QueryTraderSpotOrdersRequest: wiretype end group for non-group") 20543 } 20544 if fieldNum <= 0 { 20545 return fmt.Errorf("proto: QueryTraderSpotOrdersRequest: illegal tag %d (wire type %d)", fieldNum, wire) 20546 } 20547 switch fieldNum { 20548 case 1: 20549 if wireType != 2 { 20550 return fmt.Errorf("proto: wrong wireType = %d for field MarketId", wireType) 20551 } 20552 var stringLen uint64 20553 for shift := uint(0); ; shift += 7 { 20554 if shift >= 64 { 20555 return ErrIntOverflowQuery 20556 } 20557 if iNdEx >= l { 20558 return io.ErrUnexpectedEOF 20559 } 20560 b := dAtA[iNdEx] 20561 iNdEx++ 20562 stringLen |= uint64(b&0x7F) << shift 20563 if b < 0x80 { 20564 break 20565 } 20566 } 20567 intStringLen := int(stringLen) 20568 if intStringLen < 0 { 20569 return ErrInvalidLengthQuery 20570 } 20571 postIndex := iNdEx + intStringLen 20572 if postIndex < 0 { 20573 return ErrInvalidLengthQuery 20574 } 20575 if postIndex > l { 20576 return io.ErrUnexpectedEOF 20577 } 20578 m.MarketId = string(dAtA[iNdEx:postIndex]) 20579 iNdEx = postIndex 20580 case 2: 20581 if wireType != 2 { 20582 return fmt.Errorf("proto: wrong wireType = %d for field SubaccountId", wireType) 20583 } 20584 var stringLen uint64 20585 for shift := uint(0); ; shift += 7 { 20586 if shift >= 64 { 20587 return ErrIntOverflowQuery 20588 } 20589 if iNdEx >= l { 20590 return io.ErrUnexpectedEOF 20591 } 20592 b := dAtA[iNdEx] 20593 iNdEx++ 20594 stringLen |= uint64(b&0x7F) << shift 20595 if b < 0x80 { 20596 break 20597 } 20598 } 20599 intStringLen := int(stringLen) 20600 if intStringLen < 0 { 20601 return ErrInvalidLengthQuery 20602 } 20603 postIndex := iNdEx + intStringLen 20604 if postIndex < 0 { 20605 return ErrInvalidLengthQuery 20606 } 20607 if postIndex > l { 20608 return io.ErrUnexpectedEOF 20609 } 20610 m.SubaccountId = string(dAtA[iNdEx:postIndex]) 20611 iNdEx = postIndex 20612 default: 20613 iNdEx = preIndex 20614 skippy, err := skipQuery(dAtA[iNdEx:]) 20615 if err != nil { 20616 return err 20617 } 20618 if (skippy < 0) || (iNdEx+skippy) < 0 { 20619 return ErrInvalidLengthQuery 20620 } 20621 if (iNdEx + skippy) > l { 20622 return io.ErrUnexpectedEOF 20623 } 20624 iNdEx += skippy 20625 } 20626 } 20627 20628 if iNdEx > l { 20629 return io.ErrUnexpectedEOF 20630 } 20631 return nil 20632 } 20633 func (m *QueryAccountAddressSpotOrdersRequest) Unmarshal(dAtA []byte) error { 20634 l := len(dAtA) 20635 iNdEx := 0 20636 for iNdEx < l { 20637 preIndex := iNdEx 20638 var wire uint64 20639 for shift := uint(0); ; shift += 7 { 20640 if shift >= 64 { 20641 return ErrIntOverflowQuery 20642 } 20643 if iNdEx >= l { 20644 return io.ErrUnexpectedEOF 20645 } 20646 b := dAtA[iNdEx] 20647 iNdEx++ 20648 wire |= uint64(b&0x7F) << shift 20649 if b < 0x80 { 20650 break 20651 } 20652 } 20653 fieldNum := int32(wire >> 3) 20654 wireType := int(wire & 0x7) 20655 if wireType == 4 { 20656 return fmt.Errorf("proto: QueryAccountAddressSpotOrdersRequest: wiretype end group for non-group") 20657 } 20658 if fieldNum <= 0 { 20659 return fmt.Errorf("proto: QueryAccountAddressSpotOrdersRequest: illegal tag %d (wire type %d)", fieldNum, wire) 20660 } 20661 switch fieldNum { 20662 case 1: 20663 if wireType != 2 { 20664 return fmt.Errorf("proto: wrong wireType = %d for field MarketId", wireType) 20665 } 20666 var stringLen uint64 20667 for shift := uint(0); ; shift += 7 { 20668 if shift >= 64 { 20669 return ErrIntOverflowQuery 20670 } 20671 if iNdEx >= l { 20672 return io.ErrUnexpectedEOF 20673 } 20674 b := dAtA[iNdEx] 20675 iNdEx++ 20676 stringLen |= uint64(b&0x7F) << shift 20677 if b < 0x80 { 20678 break 20679 } 20680 } 20681 intStringLen := int(stringLen) 20682 if intStringLen < 0 { 20683 return ErrInvalidLengthQuery 20684 } 20685 postIndex := iNdEx + intStringLen 20686 if postIndex < 0 { 20687 return ErrInvalidLengthQuery 20688 } 20689 if postIndex > l { 20690 return io.ErrUnexpectedEOF 20691 } 20692 m.MarketId = string(dAtA[iNdEx:postIndex]) 20693 iNdEx = postIndex 20694 case 2: 20695 if wireType != 2 { 20696 return fmt.Errorf("proto: wrong wireType = %d for field AccountAddress", wireType) 20697 } 20698 var stringLen uint64 20699 for shift := uint(0); ; shift += 7 { 20700 if shift >= 64 { 20701 return ErrIntOverflowQuery 20702 } 20703 if iNdEx >= l { 20704 return io.ErrUnexpectedEOF 20705 } 20706 b := dAtA[iNdEx] 20707 iNdEx++ 20708 stringLen |= uint64(b&0x7F) << shift 20709 if b < 0x80 { 20710 break 20711 } 20712 } 20713 intStringLen := int(stringLen) 20714 if intStringLen < 0 { 20715 return ErrInvalidLengthQuery 20716 } 20717 postIndex := iNdEx + intStringLen 20718 if postIndex < 0 { 20719 return ErrInvalidLengthQuery 20720 } 20721 if postIndex > l { 20722 return io.ErrUnexpectedEOF 20723 } 20724 m.AccountAddress = string(dAtA[iNdEx:postIndex]) 20725 iNdEx = postIndex 20726 default: 20727 iNdEx = preIndex 20728 skippy, err := skipQuery(dAtA[iNdEx:]) 20729 if err != nil { 20730 return err 20731 } 20732 if (skippy < 0) || (iNdEx+skippy) < 0 { 20733 return ErrInvalidLengthQuery 20734 } 20735 if (iNdEx + skippy) > l { 20736 return io.ErrUnexpectedEOF 20737 } 20738 iNdEx += skippy 20739 } 20740 } 20741 20742 if iNdEx > l { 20743 return io.ErrUnexpectedEOF 20744 } 20745 return nil 20746 } 20747 func (m *TrimmedSpotLimitOrder) Unmarshal(dAtA []byte) error { 20748 l := len(dAtA) 20749 iNdEx := 0 20750 for iNdEx < l { 20751 preIndex := iNdEx 20752 var wire uint64 20753 for shift := uint(0); ; shift += 7 { 20754 if shift >= 64 { 20755 return ErrIntOverflowQuery 20756 } 20757 if iNdEx >= l { 20758 return io.ErrUnexpectedEOF 20759 } 20760 b := dAtA[iNdEx] 20761 iNdEx++ 20762 wire |= uint64(b&0x7F) << shift 20763 if b < 0x80 { 20764 break 20765 } 20766 } 20767 fieldNum := int32(wire >> 3) 20768 wireType := int(wire & 0x7) 20769 if wireType == 4 { 20770 return fmt.Errorf("proto: TrimmedSpotLimitOrder: wiretype end group for non-group") 20771 } 20772 if fieldNum <= 0 { 20773 return fmt.Errorf("proto: TrimmedSpotLimitOrder: illegal tag %d (wire type %d)", fieldNum, wire) 20774 } 20775 switch fieldNum { 20776 case 1: 20777 if wireType != 2 { 20778 return fmt.Errorf("proto: wrong wireType = %d for field Price", wireType) 20779 } 20780 var stringLen uint64 20781 for shift := uint(0); ; shift += 7 { 20782 if shift >= 64 { 20783 return ErrIntOverflowQuery 20784 } 20785 if iNdEx >= l { 20786 return io.ErrUnexpectedEOF 20787 } 20788 b := dAtA[iNdEx] 20789 iNdEx++ 20790 stringLen |= uint64(b&0x7F) << shift 20791 if b < 0x80 { 20792 break 20793 } 20794 } 20795 intStringLen := int(stringLen) 20796 if intStringLen < 0 { 20797 return ErrInvalidLengthQuery 20798 } 20799 postIndex := iNdEx + intStringLen 20800 if postIndex < 0 { 20801 return ErrInvalidLengthQuery 20802 } 20803 if postIndex > l { 20804 return io.ErrUnexpectedEOF 20805 } 20806 if err := m.Price.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 20807 return err 20808 } 20809 iNdEx = postIndex 20810 case 2: 20811 if wireType != 2 { 20812 return fmt.Errorf("proto: wrong wireType = %d for field Quantity", wireType) 20813 } 20814 var stringLen uint64 20815 for shift := uint(0); ; shift += 7 { 20816 if shift >= 64 { 20817 return ErrIntOverflowQuery 20818 } 20819 if iNdEx >= l { 20820 return io.ErrUnexpectedEOF 20821 } 20822 b := dAtA[iNdEx] 20823 iNdEx++ 20824 stringLen |= uint64(b&0x7F) << shift 20825 if b < 0x80 { 20826 break 20827 } 20828 } 20829 intStringLen := int(stringLen) 20830 if intStringLen < 0 { 20831 return ErrInvalidLengthQuery 20832 } 20833 postIndex := iNdEx + intStringLen 20834 if postIndex < 0 { 20835 return ErrInvalidLengthQuery 20836 } 20837 if postIndex > l { 20838 return io.ErrUnexpectedEOF 20839 } 20840 if err := m.Quantity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 20841 return err 20842 } 20843 iNdEx = postIndex 20844 case 3: 20845 if wireType != 2 { 20846 return fmt.Errorf("proto: wrong wireType = %d for field Fillable", wireType) 20847 } 20848 var stringLen uint64 20849 for shift := uint(0); ; shift += 7 { 20850 if shift >= 64 { 20851 return ErrIntOverflowQuery 20852 } 20853 if iNdEx >= l { 20854 return io.ErrUnexpectedEOF 20855 } 20856 b := dAtA[iNdEx] 20857 iNdEx++ 20858 stringLen |= uint64(b&0x7F) << shift 20859 if b < 0x80 { 20860 break 20861 } 20862 } 20863 intStringLen := int(stringLen) 20864 if intStringLen < 0 { 20865 return ErrInvalidLengthQuery 20866 } 20867 postIndex := iNdEx + intStringLen 20868 if postIndex < 0 { 20869 return ErrInvalidLengthQuery 20870 } 20871 if postIndex > l { 20872 return io.ErrUnexpectedEOF 20873 } 20874 if err := m.Fillable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 20875 return err 20876 } 20877 iNdEx = postIndex 20878 case 4: 20879 if wireType != 0 { 20880 return fmt.Errorf("proto: wrong wireType = %d for field IsBuy", wireType) 20881 } 20882 var v int 20883 for shift := uint(0); ; shift += 7 { 20884 if shift >= 64 { 20885 return ErrIntOverflowQuery 20886 } 20887 if iNdEx >= l { 20888 return io.ErrUnexpectedEOF 20889 } 20890 b := dAtA[iNdEx] 20891 iNdEx++ 20892 v |= int(b&0x7F) << shift 20893 if b < 0x80 { 20894 break 20895 } 20896 } 20897 m.IsBuy = bool(v != 0) 20898 case 5: 20899 if wireType != 2 { 20900 return fmt.Errorf("proto: wrong wireType = %d for field OrderHash", wireType) 20901 } 20902 var stringLen uint64 20903 for shift := uint(0); ; shift += 7 { 20904 if shift >= 64 { 20905 return ErrIntOverflowQuery 20906 } 20907 if iNdEx >= l { 20908 return io.ErrUnexpectedEOF 20909 } 20910 b := dAtA[iNdEx] 20911 iNdEx++ 20912 stringLen |= uint64(b&0x7F) << shift 20913 if b < 0x80 { 20914 break 20915 } 20916 } 20917 intStringLen := int(stringLen) 20918 if intStringLen < 0 { 20919 return ErrInvalidLengthQuery 20920 } 20921 postIndex := iNdEx + intStringLen 20922 if postIndex < 0 { 20923 return ErrInvalidLengthQuery 20924 } 20925 if postIndex > l { 20926 return io.ErrUnexpectedEOF 20927 } 20928 m.OrderHash = string(dAtA[iNdEx:postIndex]) 20929 iNdEx = postIndex 20930 case 6: 20931 if wireType != 2 { 20932 return fmt.Errorf("proto: wrong wireType = %d for field Cid", wireType) 20933 } 20934 var stringLen uint64 20935 for shift := uint(0); ; shift += 7 { 20936 if shift >= 64 { 20937 return ErrIntOverflowQuery 20938 } 20939 if iNdEx >= l { 20940 return io.ErrUnexpectedEOF 20941 } 20942 b := dAtA[iNdEx] 20943 iNdEx++ 20944 stringLen |= uint64(b&0x7F) << shift 20945 if b < 0x80 { 20946 break 20947 } 20948 } 20949 intStringLen := int(stringLen) 20950 if intStringLen < 0 { 20951 return ErrInvalidLengthQuery 20952 } 20953 postIndex := iNdEx + intStringLen 20954 if postIndex < 0 { 20955 return ErrInvalidLengthQuery 20956 } 20957 if postIndex > l { 20958 return io.ErrUnexpectedEOF 20959 } 20960 m.Cid = string(dAtA[iNdEx:postIndex]) 20961 iNdEx = postIndex 20962 default: 20963 iNdEx = preIndex 20964 skippy, err := skipQuery(dAtA[iNdEx:]) 20965 if err != nil { 20966 return err 20967 } 20968 if (skippy < 0) || (iNdEx+skippy) < 0 { 20969 return ErrInvalidLengthQuery 20970 } 20971 if (iNdEx + skippy) > l { 20972 return io.ErrUnexpectedEOF 20973 } 20974 iNdEx += skippy 20975 } 20976 } 20977 20978 if iNdEx > l { 20979 return io.ErrUnexpectedEOF 20980 } 20981 return nil 20982 } 20983 func (m *QueryTraderSpotOrdersResponse) Unmarshal(dAtA []byte) error { 20984 l := len(dAtA) 20985 iNdEx := 0 20986 for iNdEx < l { 20987 preIndex := iNdEx 20988 var wire uint64 20989 for shift := uint(0); ; shift += 7 { 20990 if shift >= 64 { 20991 return ErrIntOverflowQuery 20992 } 20993 if iNdEx >= l { 20994 return io.ErrUnexpectedEOF 20995 } 20996 b := dAtA[iNdEx] 20997 iNdEx++ 20998 wire |= uint64(b&0x7F) << shift 20999 if b < 0x80 { 21000 break 21001 } 21002 } 21003 fieldNum := int32(wire >> 3) 21004 wireType := int(wire & 0x7) 21005 if wireType == 4 { 21006 return fmt.Errorf("proto: QueryTraderSpotOrdersResponse: wiretype end group for non-group") 21007 } 21008 if fieldNum <= 0 { 21009 return fmt.Errorf("proto: QueryTraderSpotOrdersResponse: illegal tag %d (wire type %d)", fieldNum, wire) 21010 } 21011 switch fieldNum { 21012 case 1: 21013 if wireType != 2 { 21014 return fmt.Errorf("proto: wrong wireType = %d for field Orders", wireType) 21015 } 21016 var msglen int 21017 for shift := uint(0); ; shift += 7 { 21018 if shift >= 64 { 21019 return ErrIntOverflowQuery 21020 } 21021 if iNdEx >= l { 21022 return io.ErrUnexpectedEOF 21023 } 21024 b := dAtA[iNdEx] 21025 iNdEx++ 21026 msglen |= int(b&0x7F) << shift 21027 if b < 0x80 { 21028 break 21029 } 21030 } 21031 if msglen < 0 { 21032 return ErrInvalidLengthQuery 21033 } 21034 postIndex := iNdEx + msglen 21035 if postIndex < 0 { 21036 return ErrInvalidLengthQuery 21037 } 21038 if postIndex > l { 21039 return io.ErrUnexpectedEOF 21040 } 21041 m.Orders = append(m.Orders, &TrimmedSpotLimitOrder{}) 21042 if err := m.Orders[len(m.Orders)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 21043 return err 21044 } 21045 iNdEx = postIndex 21046 default: 21047 iNdEx = preIndex 21048 skippy, err := skipQuery(dAtA[iNdEx:]) 21049 if err != nil { 21050 return err 21051 } 21052 if (skippy < 0) || (iNdEx+skippy) < 0 { 21053 return ErrInvalidLengthQuery 21054 } 21055 if (iNdEx + skippy) > l { 21056 return io.ErrUnexpectedEOF 21057 } 21058 iNdEx += skippy 21059 } 21060 } 21061 21062 if iNdEx > l { 21063 return io.ErrUnexpectedEOF 21064 } 21065 return nil 21066 } 21067 func (m *QueryAccountAddressSpotOrdersResponse) Unmarshal(dAtA []byte) error { 21068 l := len(dAtA) 21069 iNdEx := 0 21070 for iNdEx < l { 21071 preIndex := iNdEx 21072 var wire uint64 21073 for shift := uint(0); ; shift += 7 { 21074 if shift >= 64 { 21075 return ErrIntOverflowQuery 21076 } 21077 if iNdEx >= l { 21078 return io.ErrUnexpectedEOF 21079 } 21080 b := dAtA[iNdEx] 21081 iNdEx++ 21082 wire |= uint64(b&0x7F) << shift 21083 if b < 0x80 { 21084 break 21085 } 21086 } 21087 fieldNum := int32(wire >> 3) 21088 wireType := int(wire & 0x7) 21089 if wireType == 4 { 21090 return fmt.Errorf("proto: QueryAccountAddressSpotOrdersResponse: wiretype end group for non-group") 21091 } 21092 if fieldNum <= 0 { 21093 return fmt.Errorf("proto: QueryAccountAddressSpotOrdersResponse: illegal tag %d (wire type %d)", fieldNum, wire) 21094 } 21095 switch fieldNum { 21096 case 1: 21097 if wireType != 2 { 21098 return fmt.Errorf("proto: wrong wireType = %d for field Orders", wireType) 21099 } 21100 var msglen int 21101 for shift := uint(0); ; shift += 7 { 21102 if shift >= 64 { 21103 return ErrIntOverflowQuery 21104 } 21105 if iNdEx >= l { 21106 return io.ErrUnexpectedEOF 21107 } 21108 b := dAtA[iNdEx] 21109 iNdEx++ 21110 msglen |= int(b&0x7F) << shift 21111 if b < 0x80 { 21112 break 21113 } 21114 } 21115 if msglen < 0 { 21116 return ErrInvalidLengthQuery 21117 } 21118 postIndex := iNdEx + msglen 21119 if postIndex < 0 { 21120 return ErrInvalidLengthQuery 21121 } 21122 if postIndex > l { 21123 return io.ErrUnexpectedEOF 21124 } 21125 m.Orders = append(m.Orders, &TrimmedSpotLimitOrder{}) 21126 if err := m.Orders[len(m.Orders)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 21127 return err 21128 } 21129 iNdEx = postIndex 21130 default: 21131 iNdEx = preIndex 21132 skippy, err := skipQuery(dAtA[iNdEx:]) 21133 if err != nil { 21134 return err 21135 } 21136 if (skippy < 0) || (iNdEx+skippy) < 0 { 21137 return ErrInvalidLengthQuery 21138 } 21139 if (iNdEx + skippy) > l { 21140 return io.ErrUnexpectedEOF 21141 } 21142 iNdEx += skippy 21143 } 21144 } 21145 21146 if iNdEx > l { 21147 return io.ErrUnexpectedEOF 21148 } 21149 return nil 21150 } 21151 func (m *QuerySpotMidPriceAndTOBRequest) Unmarshal(dAtA []byte) error { 21152 l := len(dAtA) 21153 iNdEx := 0 21154 for iNdEx < l { 21155 preIndex := iNdEx 21156 var wire uint64 21157 for shift := uint(0); ; shift += 7 { 21158 if shift >= 64 { 21159 return ErrIntOverflowQuery 21160 } 21161 if iNdEx >= l { 21162 return io.ErrUnexpectedEOF 21163 } 21164 b := dAtA[iNdEx] 21165 iNdEx++ 21166 wire |= uint64(b&0x7F) << shift 21167 if b < 0x80 { 21168 break 21169 } 21170 } 21171 fieldNum := int32(wire >> 3) 21172 wireType := int(wire & 0x7) 21173 if wireType == 4 { 21174 return fmt.Errorf("proto: QuerySpotMidPriceAndTOBRequest: wiretype end group for non-group") 21175 } 21176 if fieldNum <= 0 { 21177 return fmt.Errorf("proto: QuerySpotMidPriceAndTOBRequest: illegal tag %d (wire type %d)", fieldNum, wire) 21178 } 21179 switch fieldNum { 21180 case 1: 21181 if wireType != 2 { 21182 return fmt.Errorf("proto: wrong wireType = %d for field MarketId", wireType) 21183 } 21184 var stringLen uint64 21185 for shift := uint(0); ; shift += 7 { 21186 if shift >= 64 { 21187 return ErrIntOverflowQuery 21188 } 21189 if iNdEx >= l { 21190 return io.ErrUnexpectedEOF 21191 } 21192 b := dAtA[iNdEx] 21193 iNdEx++ 21194 stringLen |= uint64(b&0x7F) << shift 21195 if b < 0x80 { 21196 break 21197 } 21198 } 21199 intStringLen := int(stringLen) 21200 if intStringLen < 0 { 21201 return ErrInvalidLengthQuery 21202 } 21203 postIndex := iNdEx + intStringLen 21204 if postIndex < 0 { 21205 return ErrInvalidLengthQuery 21206 } 21207 if postIndex > l { 21208 return io.ErrUnexpectedEOF 21209 } 21210 m.MarketId = string(dAtA[iNdEx:postIndex]) 21211 iNdEx = postIndex 21212 default: 21213 iNdEx = preIndex 21214 skippy, err := skipQuery(dAtA[iNdEx:]) 21215 if err != nil { 21216 return err 21217 } 21218 if (skippy < 0) || (iNdEx+skippy) < 0 { 21219 return ErrInvalidLengthQuery 21220 } 21221 if (iNdEx + skippy) > l { 21222 return io.ErrUnexpectedEOF 21223 } 21224 iNdEx += skippy 21225 } 21226 } 21227 21228 if iNdEx > l { 21229 return io.ErrUnexpectedEOF 21230 } 21231 return nil 21232 } 21233 func (m *QuerySpotMidPriceAndTOBResponse) Unmarshal(dAtA []byte) error { 21234 l := len(dAtA) 21235 iNdEx := 0 21236 for iNdEx < l { 21237 preIndex := iNdEx 21238 var wire uint64 21239 for shift := uint(0); ; shift += 7 { 21240 if shift >= 64 { 21241 return ErrIntOverflowQuery 21242 } 21243 if iNdEx >= l { 21244 return io.ErrUnexpectedEOF 21245 } 21246 b := dAtA[iNdEx] 21247 iNdEx++ 21248 wire |= uint64(b&0x7F) << shift 21249 if b < 0x80 { 21250 break 21251 } 21252 } 21253 fieldNum := int32(wire >> 3) 21254 wireType := int(wire & 0x7) 21255 if wireType == 4 { 21256 return fmt.Errorf("proto: QuerySpotMidPriceAndTOBResponse: wiretype end group for non-group") 21257 } 21258 if fieldNum <= 0 { 21259 return fmt.Errorf("proto: QuerySpotMidPriceAndTOBResponse: illegal tag %d (wire type %d)", fieldNum, wire) 21260 } 21261 switch fieldNum { 21262 case 1: 21263 if wireType != 2 { 21264 return fmt.Errorf("proto: wrong wireType = %d for field MidPrice", wireType) 21265 } 21266 var stringLen uint64 21267 for shift := uint(0); ; shift += 7 { 21268 if shift >= 64 { 21269 return ErrIntOverflowQuery 21270 } 21271 if iNdEx >= l { 21272 return io.ErrUnexpectedEOF 21273 } 21274 b := dAtA[iNdEx] 21275 iNdEx++ 21276 stringLen |= uint64(b&0x7F) << shift 21277 if b < 0x80 { 21278 break 21279 } 21280 } 21281 intStringLen := int(stringLen) 21282 if intStringLen < 0 { 21283 return ErrInvalidLengthQuery 21284 } 21285 postIndex := iNdEx + intStringLen 21286 if postIndex < 0 { 21287 return ErrInvalidLengthQuery 21288 } 21289 if postIndex > l { 21290 return io.ErrUnexpectedEOF 21291 } 21292 var v cosmossdk_io_math.LegacyDec 21293 m.MidPrice = &v 21294 if err := m.MidPrice.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 21295 return err 21296 } 21297 iNdEx = postIndex 21298 case 2: 21299 if wireType != 2 { 21300 return fmt.Errorf("proto: wrong wireType = %d for field BestBuyPrice", wireType) 21301 } 21302 var stringLen uint64 21303 for shift := uint(0); ; shift += 7 { 21304 if shift >= 64 { 21305 return ErrIntOverflowQuery 21306 } 21307 if iNdEx >= l { 21308 return io.ErrUnexpectedEOF 21309 } 21310 b := dAtA[iNdEx] 21311 iNdEx++ 21312 stringLen |= uint64(b&0x7F) << shift 21313 if b < 0x80 { 21314 break 21315 } 21316 } 21317 intStringLen := int(stringLen) 21318 if intStringLen < 0 { 21319 return ErrInvalidLengthQuery 21320 } 21321 postIndex := iNdEx + intStringLen 21322 if postIndex < 0 { 21323 return ErrInvalidLengthQuery 21324 } 21325 if postIndex > l { 21326 return io.ErrUnexpectedEOF 21327 } 21328 var v cosmossdk_io_math.LegacyDec 21329 m.BestBuyPrice = &v 21330 if err := m.BestBuyPrice.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 21331 return err 21332 } 21333 iNdEx = postIndex 21334 case 3: 21335 if wireType != 2 { 21336 return fmt.Errorf("proto: wrong wireType = %d for field BestSellPrice", wireType) 21337 } 21338 var stringLen uint64 21339 for shift := uint(0); ; shift += 7 { 21340 if shift >= 64 { 21341 return ErrIntOverflowQuery 21342 } 21343 if iNdEx >= l { 21344 return io.ErrUnexpectedEOF 21345 } 21346 b := dAtA[iNdEx] 21347 iNdEx++ 21348 stringLen |= uint64(b&0x7F) << shift 21349 if b < 0x80 { 21350 break 21351 } 21352 } 21353 intStringLen := int(stringLen) 21354 if intStringLen < 0 { 21355 return ErrInvalidLengthQuery 21356 } 21357 postIndex := iNdEx + intStringLen 21358 if postIndex < 0 { 21359 return ErrInvalidLengthQuery 21360 } 21361 if postIndex > l { 21362 return io.ErrUnexpectedEOF 21363 } 21364 var v cosmossdk_io_math.LegacyDec 21365 m.BestSellPrice = &v 21366 if err := m.BestSellPrice.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 21367 return err 21368 } 21369 iNdEx = postIndex 21370 default: 21371 iNdEx = preIndex 21372 skippy, err := skipQuery(dAtA[iNdEx:]) 21373 if err != nil { 21374 return err 21375 } 21376 if (skippy < 0) || (iNdEx+skippy) < 0 { 21377 return ErrInvalidLengthQuery 21378 } 21379 if (iNdEx + skippy) > l { 21380 return io.ErrUnexpectedEOF 21381 } 21382 iNdEx += skippy 21383 } 21384 } 21385 21386 if iNdEx > l { 21387 return io.ErrUnexpectedEOF 21388 } 21389 return nil 21390 } 21391 func (m *QueryDerivativeMidPriceAndTOBRequest) Unmarshal(dAtA []byte) error { 21392 l := len(dAtA) 21393 iNdEx := 0 21394 for iNdEx < l { 21395 preIndex := iNdEx 21396 var wire uint64 21397 for shift := uint(0); ; shift += 7 { 21398 if shift >= 64 { 21399 return ErrIntOverflowQuery 21400 } 21401 if iNdEx >= l { 21402 return io.ErrUnexpectedEOF 21403 } 21404 b := dAtA[iNdEx] 21405 iNdEx++ 21406 wire |= uint64(b&0x7F) << shift 21407 if b < 0x80 { 21408 break 21409 } 21410 } 21411 fieldNum := int32(wire >> 3) 21412 wireType := int(wire & 0x7) 21413 if wireType == 4 { 21414 return fmt.Errorf("proto: QueryDerivativeMidPriceAndTOBRequest: wiretype end group for non-group") 21415 } 21416 if fieldNum <= 0 { 21417 return fmt.Errorf("proto: QueryDerivativeMidPriceAndTOBRequest: illegal tag %d (wire type %d)", fieldNum, wire) 21418 } 21419 switch fieldNum { 21420 case 1: 21421 if wireType != 2 { 21422 return fmt.Errorf("proto: wrong wireType = %d for field MarketId", wireType) 21423 } 21424 var stringLen uint64 21425 for shift := uint(0); ; shift += 7 { 21426 if shift >= 64 { 21427 return ErrIntOverflowQuery 21428 } 21429 if iNdEx >= l { 21430 return io.ErrUnexpectedEOF 21431 } 21432 b := dAtA[iNdEx] 21433 iNdEx++ 21434 stringLen |= uint64(b&0x7F) << shift 21435 if b < 0x80 { 21436 break 21437 } 21438 } 21439 intStringLen := int(stringLen) 21440 if intStringLen < 0 { 21441 return ErrInvalidLengthQuery 21442 } 21443 postIndex := iNdEx + intStringLen 21444 if postIndex < 0 { 21445 return ErrInvalidLengthQuery 21446 } 21447 if postIndex > l { 21448 return io.ErrUnexpectedEOF 21449 } 21450 m.MarketId = string(dAtA[iNdEx:postIndex]) 21451 iNdEx = postIndex 21452 default: 21453 iNdEx = preIndex 21454 skippy, err := skipQuery(dAtA[iNdEx:]) 21455 if err != nil { 21456 return err 21457 } 21458 if (skippy < 0) || (iNdEx+skippy) < 0 { 21459 return ErrInvalidLengthQuery 21460 } 21461 if (iNdEx + skippy) > l { 21462 return io.ErrUnexpectedEOF 21463 } 21464 iNdEx += skippy 21465 } 21466 } 21467 21468 if iNdEx > l { 21469 return io.ErrUnexpectedEOF 21470 } 21471 return nil 21472 } 21473 func (m *QueryDerivativeMidPriceAndTOBResponse) Unmarshal(dAtA []byte) error { 21474 l := len(dAtA) 21475 iNdEx := 0 21476 for iNdEx < l { 21477 preIndex := iNdEx 21478 var wire uint64 21479 for shift := uint(0); ; shift += 7 { 21480 if shift >= 64 { 21481 return ErrIntOverflowQuery 21482 } 21483 if iNdEx >= l { 21484 return io.ErrUnexpectedEOF 21485 } 21486 b := dAtA[iNdEx] 21487 iNdEx++ 21488 wire |= uint64(b&0x7F) << shift 21489 if b < 0x80 { 21490 break 21491 } 21492 } 21493 fieldNum := int32(wire >> 3) 21494 wireType := int(wire & 0x7) 21495 if wireType == 4 { 21496 return fmt.Errorf("proto: QueryDerivativeMidPriceAndTOBResponse: wiretype end group for non-group") 21497 } 21498 if fieldNum <= 0 { 21499 return fmt.Errorf("proto: QueryDerivativeMidPriceAndTOBResponse: illegal tag %d (wire type %d)", fieldNum, wire) 21500 } 21501 switch fieldNum { 21502 case 1: 21503 if wireType != 2 { 21504 return fmt.Errorf("proto: wrong wireType = %d for field MidPrice", wireType) 21505 } 21506 var stringLen uint64 21507 for shift := uint(0); ; shift += 7 { 21508 if shift >= 64 { 21509 return ErrIntOverflowQuery 21510 } 21511 if iNdEx >= l { 21512 return io.ErrUnexpectedEOF 21513 } 21514 b := dAtA[iNdEx] 21515 iNdEx++ 21516 stringLen |= uint64(b&0x7F) << shift 21517 if b < 0x80 { 21518 break 21519 } 21520 } 21521 intStringLen := int(stringLen) 21522 if intStringLen < 0 { 21523 return ErrInvalidLengthQuery 21524 } 21525 postIndex := iNdEx + intStringLen 21526 if postIndex < 0 { 21527 return ErrInvalidLengthQuery 21528 } 21529 if postIndex > l { 21530 return io.ErrUnexpectedEOF 21531 } 21532 var v cosmossdk_io_math.LegacyDec 21533 m.MidPrice = &v 21534 if err := m.MidPrice.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 21535 return err 21536 } 21537 iNdEx = postIndex 21538 case 2: 21539 if wireType != 2 { 21540 return fmt.Errorf("proto: wrong wireType = %d for field BestBuyPrice", wireType) 21541 } 21542 var stringLen uint64 21543 for shift := uint(0); ; shift += 7 { 21544 if shift >= 64 { 21545 return ErrIntOverflowQuery 21546 } 21547 if iNdEx >= l { 21548 return io.ErrUnexpectedEOF 21549 } 21550 b := dAtA[iNdEx] 21551 iNdEx++ 21552 stringLen |= uint64(b&0x7F) << shift 21553 if b < 0x80 { 21554 break 21555 } 21556 } 21557 intStringLen := int(stringLen) 21558 if intStringLen < 0 { 21559 return ErrInvalidLengthQuery 21560 } 21561 postIndex := iNdEx + intStringLen 21562 if postIndex < 0 { 21563 return ErrInvalidLengthQuery 21564 } 21565 if postIndex > l { 21566 return io.ErrUnexpectedEOF 21567 } 21568 var v cosmossdk_io_math.LegacyDec 21569 m.BestBuyPrice = &v 21570 if err := m.BestBuyPrice.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 21571 return err 21572 } 21573 iNdEx = postIndex 21574 case 3: 21575 if wireType != 2 { 21576 return fmt.Errorf("proto: wrong wireType = %d for field BestSellPrice", wireType) 21577 } 21578 var stringLen uint64 21579 for shift := uint(0); ; shift += 7 { 21580 if shift >= 64 { 21581 return ErrIntOverflowQuery 21582 } 21583 if iNdEx >= l { 21584 return io.ErrUnexpectedEOF 21585 } 21586 b := dAtA[iNdEx] 21587 iNdEx++ 21588 stringLen |= uint64(b&0x7F) << shift 21589 if b < 0x80 { 21590 break 21591 } 21592 } 21593 intStringLen := int(stringLen) 21594 if intStringLen < 0 { 21595 return ErrInvalidLengthQuery 21596 } 21597 postIndex := iNdEx + intStringLen 21598 if postIndex < 0 { 21599 return ErrInvalidLengthQuery 21600 } 21601 if postIndex > l { 21602 return io.ErrUnexpectedEOF 21603 } 21604 var v cosmossdk_io_math.LegacyDec 21605 m.BestSellPrice = &v 21606 if err := m.BestSellPrice.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 21607 return err 21608 } 21609 iNdEx = postIndex 21610 default: 21611 iNdEx = preIndex 21612 skippy, err := skipQuery(dAtA[iNdEx:]) 21613 if err != nil { 21614 return err 21615 } 21616 if (skippy < 0) || (iNdEx+skippy) < 0 { 21617 return ErrInvalidLengthQuery 21618 } 21619 if (iNdEx + skippy) > l { 21620 return io.ErrUnexpectedEOF 21621 } 21622 iNdEx += skippy 21623 } 21624 } 21625 21626 if iNdEx > l { 21627 return io.ErrUnexpectedEOF 21628 } 21629 return nil 21630 } 21631 func (m *QueryDerivativeOrderbookRequest) Unmarshal(dAtA []byte) error { 21632 l := len(dAtA) 21633 iNdEx := 0 21634 for iNdEx < l { 21635 preIndex := iNdEx 21636 var wire uint64 21637 for shift := uint(0); ; shift += 7 { 21638 if shift >= 64 { 21639 return ErrIntOverflowQuery 21640 } 21641 if iNdEx >= l { 21642 return io.ErrUnexpectedEOF 21643 } 21644 b := dAtA[iNdEx] 21645 iNdEx++ 21646 wire |= uint64(b&0x7F) << shift 21647 if b < 0x80 { 21648 break 21649 } 21650 } 21651 fieldNum := int32(wire >> 3) 21652 wireType := int(wire & 0x7) 21653 if wireType == 4 { 21654 return fmt.Errorf("proto: QueryDerivativeOrderbookRequest: wiretype end group for non-group") 21655 } 21656 if fieldNum <= 0 { 21657 return fmt.Errorf("proto: QueryDerivativeOrderbookRequest: illegal tag %d (wire type %d)", fieldNum, wire) 21658 } 21659 switch fieldNum { 21660 case 1: 21661 if wireType != 2 { 21662 return fmt.Errorf("proto: wrong wireType = %d for field MarketId", wireType) 21663 } 21664 var stringLen uint64 21665 for shift := uint(0); ; shift += 7 { 21666 if shift >= 64 { 21667 return ErrIntOverflowQuery 21668 } 21669 if iNdEx >= l { 21670 return io.ErrUnexpectedEOF 21671 } 21672 b := dAtA[iNdEx] 21673 iNdEx++ 21674 stringLen |= uint64(b&0x7F) << shift 21675 if b < 0x80 { 21676 break 21677 } 21678 } 21679 intStringLen := int(stringLen) 21680 if intStringLen < 0 { 21681 return ErrInvalidLengthQuery 21682 } 21683 postIndex := iNdEx + intStringLen 21684 if postIndex < 0 { 21685 return ErrInvalidLengthQuery 21686 } 21687 if postIndex > l { 21688 return io.ErrUnexpectedEOF 21689 } 21690 m.MarketId = string(dAtA[iNdEx:postIndex]) 21691 iNdEx = postIndex 21692 case 2: 21693 if wireType != 0 { 21694 return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) 21695 } 21696 m.Limit = 0 21697 for shift := uint(0); ; shift += 7 { 21698 if shift >= 64 { 21699 return ErrIntOverflowQuery 21700 } 21701 if iNdEx >= l { 21702 return io.ErrUnexpectedEOF 21703 } 21704 b := dAtA[iNdEx] 21705 iNdEx++ 21706 m.Limit |= uint64(b&0x7F) << shift 21707 if b < 0x80 { 21708 break 21709 } 21710 } 21711 case 3: 21712 if wireType != 2 { 21713 return fmt.Errorf("proto: wrong wireType = %d for field LimitCumulativeNotional", wireType) 21714 } 21715 var stringLen uint64 21716 for shift := uint(0); ; shift += 7 { 21717 if shift >= 64 { 21718 return ErrIntOverflowQuery 21719 } 21720 if iNdEx >= l { 21721 return io.ErrUnexpectedEOF 21722 } 21723 b := dAtA[iNdEx] 21724 iNdEx++ 21725 stringLen |= uint64(b&0x7F) << shift 21726 if b < 0x80 { 21727 break 21728 } 21729 } 21730 intStringLen := int(stringLen) 21731 if intStringLen < 0 { 21732 return ErrInvalidLengthQuery 21733 } 21734 postIndex := iNdEx + intStringLen 21735 if postIndex < 0 { 21736 return ErrInvalidLengthQuery 21737 } 21738 if postIndex > l { 21739 return io.ErrUnexpectedEOF 21740 } 21741 var v cosmossdk_io_math.LegacyDec 21742 m.LimitCumulativeNotional = &v 21743 if err := m.LimitCumulativeNotional.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 21744 return err 21745 } 21746 iNdEx = postIndex 21747 default: 21748 iNdEx = preIndex 21749 skippy, err := skipQuery(dAtA[iNdEx:]) 21750 if err != nil { 21751 return err 21752 } 21753 if (skippy < 0) || (iNdEx+skippy) < 0 { 21754 return ErrInvalidLengthQuery 21755 } 21756 if (iNdEx + skippy) > l { 21757 return io.ErrUnexpectedEOF 21758 } 21759 iNdEx += skippy 21760 } 21761 } 21762 21763 if iNdEx > l { 21764 return io.ErrUnexpectedEOF 21765 } 21766 return nil 21767 } 21768 func (m *QueryDerivativeOrderbookResponse) Unmarshal(dAtA []byte) error { 21769 l := len(dAtA) 21770 iNdEx := 0 21771 for iNdEx < l { 21772 preIndex := iNdEx 21773 var wire uint64 21774 for shift := uint(0); ; shift += 7 { 21775 if shift >= 64 { 21776 return ErrIntOverflowQuery 21777 } 21778 if iNdEx >= l { 21779 return io.ErrUnexpectedEOF 21780 } 21781 b := dAtA[iNdEx] 21782 iNdEx++ 21783 wire |= uint64(b&0x7F) << shift 21784 if b < 0x80 { 21785 break 21786 } 21787 } 21788 fieldNum := int32(wire >> 3) 21789 wireType := int(wire & 0x7) 21790 if wireType == 4 { 21791 return fmt.Errorf("proto: QueryDerivativeOrderbookResponse: wiretype end group for non-group") 21792 } 21793 if fieldNum <= 0 { 21794 return fmt.Errorf("proto: QueryDerivativeOrderbookResponse: illegal tag %d (wire type %d)", fieldNum, wire) 21795 } 21796 switch fieldNum { 21797 case 1: 21798 if wireType != 2 { 21799 return fmt.Errorf("proto: wrong wireType = %d for field BuysPriceLevel", wireType) 21800 } 21801 var msglen int 21802 for shift := uint(0); ; shift += 7 { 21803 if shift >= 64 { 21804 return ErrIntOverflowQuery 21805 } 21806 if iNdEx >= l { 21807 return io.ErrUnexpectedEOF 21808 } 21809 b := dAtA[iNdEx] 21810 iNdEx++ 21811 msglen |= int(b&0x7F) << shift 21812 if b < 0x80 { 21813 break 21814 } 21815 } 21816 if msglen < 0 { 21817 return ErrInvalidLengthQuery 21818 } 21819 postIndex := iNdEx + msglen 21820 if postIndex < 0 { 21821 return ErrInvalidLengthQuery 21822 } 21823 if postIndex > l { 21824 return io.ErrUnexpectedEOF 21825 } 21826 m.BuysPriceLevel = append(m.BuysPriceLevel, &Level{}) 21827 if err := m.BuysPriceLevel[len(m.BuysPriceLevel)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 21828 return err 21829 } 21830 iNdEx = postIndex 21831 case 2: 21832 if wireType != 2 { 21833 return fmt.Errorf("proto: wrong wireType = %d for field SellsPriceLevel", wireType) 21834 } 21835 var msglen int 21836 for shift := uint(0); ; shift += 7 { 21837 if shift >= 64 { 21838 return ErrIntOverflowQuery 21839 } 21840 if iNdEx >= l { 21841 return io.ErrUnexpectedEOF 21842 } 21843 b := dAtA[iNdEx] 21844 iNdEx++ 21845 msglen |= int(b&0x7F) << shift 21846 if b < 0x80 { 21847 break 21848 } 21849 } 21850 if msglen < 0 { 21851 return ErrInvalidLengthQuery 21852 } 21853 postIndex := iNdEx + msglen 21854 if postIndex < 0 { 21855 return ErrInvalidLengthQuery 21856 } 21857 if postIndex > l { 21858 return io.ErrUnexpectedEOF 21859 } 21860 m.SellsPriceLevel = append(m.SellsPriceLevel, &Level{}) 21861 if err := m.SellsPriceLevel[len(m.SellsPriceLevel)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 21862 return err 21863 } 21864 iNdEx = postIndex 21865 default: 21866 iNdEx = preIndex 21867 skippy, err := skipQuery(dAtA[iNdEx:]) 21868 if err != nil { 21869 return err 21870 } 21871 if (skippy < 0) || (iNdEx+skippy) < 0 { 21872 return ErrInvalidLengthQuery 21873 } 21874 if (iNdEx + skippy) > l { 21875 return io.ErrUnexpectedEOF 21876 } 21877 iNdEx += skippy 21878 } 21879 } 21880 21881 if iNdEx > l { 21882 return io.ErrUnexpectedEOF 21883 } 21884 return nil 21885 } 21886 func (m *QueryTraderSpotOrdersToCancelUpToAmountRequest) Unmarshal(dAtA []byte) error { 21887 l := len(dAtA) 21888 iNdEx := 0 21889 for iNdEx < l { 21890 preIndex := iNdEx 21891 var wire uint64 21892 for shift := uint(0); ; shift += 7 { 21893 if shift >= 64 { 21894 return ErrIntOverflowQuery 21895 } 21896 if iNdEx >= l { 21897 return io.ErrUnexpectedEOF 21898 } 21899 b := dAtA[iNdEx] 21900 iNdEx++ 21901 wire |= uint64(b&0x7F) << shift 21902 if b < 0x80 { 21903 break 21904 } 21905 } 21906 fieldNum := int32(wire >> 3) 21907 wireType := int(wire & 0x7) 21908 if wireType == 4 { 21909 return fmt.Errorf("proto: QueryTraderSpotOrdersToCancelUpToAmountRequest: wiretype end group for non-group") 21910 } 21911 if fieldNum <= 0 { 21912 return fmt.Errorf("proto: QueryTraderSpotOrdersToCancelUpToAmountRequest: illegal tag %d (wire type %d)", fieldNum, wire) 21913 } 21914 switch fieldNum { 21915 case 1: 21916 if wireType != 2 { 21917 return fmt.Errorf("proto: wrong wireType = %d for field MarketId", wireType) 21918 } 21919 var stringLen uint64 21920 for shift := uint(0); ; shift += 7 { 21921 if shift >= 64 { 21922 return ErrIntOverflowQuery 21923 } 21924 if iNdEx >= l { 21925 return io.ErrUnexpectedEOF 21926 } 21927 b := dAtA[iNdEx] 21928 iNdEx++ 21929 stringLen |= uint64(b&0x7F) << shift 21930 if b < 0x80 { 21931 break 21932 } 21933 } 21934 intStringLen := int(stringLen) 21935 if intStringLen < 0 { 21936 return ErrInvalidLengthQuery 21937 } 21938 postIndex := iNdEx + intStringLen 21939 if postIndex < 0 { 21940 return ErrInvalidLengthQuery 21941 } 21942 if postIndex > l { 21943 return io.ErrUnexpectedEOF 21944 } 21945 m.MarketId = string(dAtA[iNdEx:postIndex]) 21946 iNdEx = postIndex 21947 case 2: 21948 if wireType != 2 { 21949 return fmt.Errorf("proto: wrong wireType = %d for field SubaccountId", wireType) 21950 } 21951 var stringLen uint64 21952 for shift := uint(0); ; shift += 7 { 21953 if shift >= 64 { 21954 return ErrIntOverflowQuery 21955 } 21956 if iNdEx >= l { 21957 return io.ErrUnexpectedEOF 21958 } 21959 b := dAtA[iNdEx] 21960 iNdEx++ 21961 stringLen |= uint64(b&0x7F) << shift 21962 if b < 0x80 { 21963 break 21964 } 21965 } 21966 intStringLen := int(stringLen) 21967 if intStringLen < 0 { 21968 return ErrInvalidLengthQuery 21969 } 21970 postIndex := iNdEx + intStringLen 21971 if postIndex < 0 { 21972 return ErrInvalidLengthQuery 21973 } 21974 if postIndex > l { 21975 return io.ErrUnexpectedEOF 21976 } 21977 m.SubaccountId = string(dAtA[iNdEx:postIndex]) 21978 iNdEx = postIndex 21979 case 3: 21980 if wireType != 2 { 21981 return fmt.Errorf("proto: wrong wireType = %d for field BaseAmount", wireType) 21982 } 21983 var stringLen uint64 21984 for shift := uint(0); ; shift += 7 { 21985 if shift >= 64 { 21986 return ErrIntOverflowQuery 21987 } 21988 if iNdEx >= l { 21989 return io.ErrUnexpectedEOF 21990 } 21991 b := dAtA[iNdEx] 21992 iNdEx++ 21993 stringLen |= uint64(b&0x7F) << shift 21994 if b < 0x80 { 21995 break 21996 } 21997 } 21998 intStringLen := int(stringLen) 21999 if intStringLen < 0 { 22000 return ErrInvalidLengthQuery 22001 } 22002 postIndex := iNdEx + intStringLen 22003 if postIndex < 0 { 22004 return ErrInvalidLengthQuery 22005 } 22006 if postIndex > l { 22007 return io.ErrUnexpectedEOF 22008 } 22009 if err := m.BaseAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 22010 return err 22011 } 22012 iNdEx = postIndex 22013 case 4: 22014 if wireType != 2 { 22015 return fmt.Errorf("proto: wrong wireType = %d for field QuoteAmount", wireType) 22016 } 22017 var stringLen uint64 22018 for shift := uint(0); ; shift += 7 { 22019 if shift >= 64 { 22020 return ErrIntOverflowQuery 22021 } 22022 if iNdEx >= l { 22023 return io.ErrUnexpectedEOF 22024 } 22025 b := dAtA[iNdEx] 22026 iNdEx++ 22027 stringLen |= uint64(b&0x7F) << shift 22028 if b < 0x80 { 22029 break 22030 } 22031 } 22032 intStringLen := int(stringLen) 22033 if intStringLen < 0 { 22034 return ErrInvalidLengthQuery 22035 } 22036 postIndex := iNdEx + intStringLen 22037 if postIndex < 0 { 22038 return ErrInvalidLengthQuery 22039 } 22040 if postIndex > l { 22041 return io.ErrUnexpectedEOF 22042 } 22043 if err := m.QuoteAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 22044 return err 22045 } 22046 iNdEx = postIndex 22047 case 5: 22048 if wireType != 0 { 22049 return fmt.Errorf("proto: wrong wireType = %d for field Strategy", wireType) 22050 } 22051 m.Strategy = 0 22052 for shift := uint(0); ; shift += 7 { 22053 if shift >= 64 { 22054 return ErrIntOverflowQuery 22055 } 22056 if iNdEx >= l { 22057 return io.ErrUnexpectedEOF 22058 } 22059 b := dAtA[iNdEx] 22060 iNdEx++ 22061 m.Strategy |= CancellationStrategy(b&0x7F) << shift 22062 if b < 0x80 { 22063 break 22064 } 22065 } 22066 case 6: 22067 if wireType != 2 { 22068 return fmt.Errorf("proto: wrong wireType = %d for field ReferencePrice", wireType) 22069 } 22070 var stringLen uint64 22071 for shift := uint(0); ; shift += 7 { 22072 if shift >= 64 { 22073 return ErrIntOverflowQuery 22074 } 22075 if iNdEx >= l { 22076 return io.ErrUnexpectedEOF 22077 } 22078 b := dAtA[iNdEx] 22079 iNdEx++ 22080 stringLen |= uint64(b&0x7F) << shift 22081 if b < 0x80 { 22082 break 22083 } 22084 } 22085 intStringLen := int(stringLen) 22086 if intStringLen < 0 { 22087 return ErrInvalidLengthQuery 22088 } 22089 postIndex := iNdEx + intStringLen 22090 if postIndex < 0 { 22091 return ErrInvalidLengthQuery 22092 } 22093 if postIndex > l { 22094 return io.ErrUnexpectedEOF 22095 } 22096 var v cosmossdk_io_math.LegacyDec 22097 m.ReferencePrice = &v 22098 if err := m.ReferencePrice.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 22099 return err 22100 } 22101 iNdEx = postIndex 22102 default: 22103 iNdEx = preIndex 22104 skippy, err := skipQuery(dAtA[iNdEx:]) 22105 if err != nil { 22106 return err 22107 } 22108 if (skippy < 0) || (iNdEx+skippy) < 0 { 22109 return ErrInvalidLengthQuery 22110 } 22111 if (iNdEx + skippy) > l { 22112 return io.ErrUnexpectedEOF 22113 } 22114 iNdEx += skippy 22115 } 22116 } 22117 22118 if iNdEx > l { 22119 return io.ErrUnexpectedEOF 22120 } 22121 return nil 22122 } 22123 func (m *QueryTraderDerivativeOrdersToCancelUpToAmountRequest) Unmarshal(dAtA []byte) error { 22124 l := len(dAtA) 22125 iNdEx := 0 22126 for iNdEx < l { 22127 preIndex := iNdEx 22128 var wire uint64 22129 for shift := uint(0); ; shift += 7 { 22130 if shift >= 64 { 22131 return ErrIntOverflowQuery 22132 } 22133 if iNdEx >= l { 22134 return io.ErrUnexpectedEOF 22135 } 22136 b := dAtA[iNdEx] 22137 iNdEx++ 22138 wire |= uint64(b&0x7F) << shift 22139 if b < 0x80 { 22140 break 22141 } 22142 } 22143 fieldNum := int32(wire >> 3) 22144 wireType := int(wire & 0x7) 22145 if wireType == 4 { 22146 return fmt.Errorf("proto: QueryTraderDerivativeOrdersToCancelUpToAmountRequest: wiretype end group for non-group") 22147 } 22148 if fieldNum <= 0 { 22149 return fmt.Errorf("proto: QueryTraderDerivativeOrdersToCancelUpToAmountRequest: illegal tag %d (wire type %d)", fieldNum, wire) 22150 } 22151 switch fieldNum { 22152 case 1: 22153 if wireType != 2 { 22154 return fmt.Errorf("proto: wrong wireType = %d for field MarketId", wireType) 22155 } 22156 var stringLen uint64 22157 for shift := uint(0); ; shift += 7 { 22158 if shift >= 64 { 22159 return ErrIntOverflowQuery 22160 } 22161 if iNdEx >= l { 22162 return io.ErrUnexpectedEOF 22163 } 22164 b := dAtA[iNdEx] 22165 iNdEx++ 22166 stringLen |= uint64(b&0x7F) << shift 22167 if b < 0x80 { 22168 break 22169 } 22170 } 22171 intStringLen := int(stringLen) 22172 if intStringLen < 0 { 22173 return ErrInvalidLengthQuery 22174 } 22175 postIndex := iNdEx + intStringLen 22176 if postIndex < 0 { 22177 return ErrInvalidLengthQuery 22178 } 22179 if postIndex > l { 22180 return io.ErrUnexpectedEOF 22181 } 22182 m.MarketId = string(dAtA[iNdEx:postIndex]) 22183 iNdEx = postIndex 22184 case 2: 22185 if wireType != 2 { 22186 return fmt.Errorf("proto: wrong wireType = %d for field SubaccountId", wireType) 22187 } 22188 var stringLen uint64 22189 for shift := uint(0); ; shift += 7 { 22190 if shift >= 64 { 22191 return ErrIntOverflowQuery 22192 } 22193 if iNdEx >= l { 22194 return io.ErrUnexpectedEOF 22195 } 22196 b := dAtA[iNdEx] 22197 iNdEx++ 22198 stringLen |= uint64(b&0x7F) << shift 22199 if b < 0x80 { 22200 break 22201 } 22202 } 22203 intStringLen := int(stringLen) 22204 if intStringLen < 0 { 22205 return ErrInvalidLengthQuery 22206 } 22207 postIndex := iNdEx + intStringLen 22208 if postIndex < 0 { 22209 return ErrInvalidLengthQuery 22210 } 22211 if postIndex > l { 22212 return io.ErrUnexpectedEOF 22213 } 22214 m.SubaccountId = string(dAtA[iNdEx:postIndex]) 22215 iNdEx = postIndex 22216 case 3: 22217 if wireType != 2 { 22218 return fmt.Errorf("proto: wrong wireType = %d for field QuoteAmount", wireType) 22219 } 22220 var stringLen uint64 22221 for shift := uint(0); ; shift += 7 { 22222 if shift >= 64 { 22223 return ErrIntOverflowQuery 22224 } 22225 if iNdEx >= l { 22226 return io.ErrUnexpectedEOF 22227 } 22228 b := dAtA[iNdEx] 22229 iNdEx++ 22230 stringLen |= uint64(b&0x7F) << shift 22231 if b < 0x80 { 22232 break 22233 } 22234 } 22235 intStringLen := int(stringLen) 22236 if intStringLen < 0 { 22237 return ErrInvalidLengthQuery 22238 } 22239 postIndex := iNdEx + intStringLen 22240 if postIndex < 0 { 22241 return ErrInvalidLengthQuery 22242 } 22243 if postIndex > l { 22244 return io.ErrUnexpectedEOF 22245 } 22246 if err := m.QuoteAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 22247 return err 22248 } 22249 iNdEx = postIndex 22250 case 4: 22251 if wireType != 0 { 22252 return fmt.Errorf("proto: wrong wireType = %d for field Strategy", wireType) 22253 } 22254 m.Strategy = 0 22255 for shift := uint(0); ; shift += 7 { 22256 if shift >= 64 { 22257 return ErrIntOverflowQuery 22258 } 22259 if iNdEx >= l { 22260 return io.ErrUnexpectedEOF 22261 } 22262 b := dAtA[iNdEx] 22263 iNdEx++ 22264 m.Strategy |= CancellationStrategy(b&0x7F) << shift 22265 if b < 0x80 { 22266 break 22267 } 22268 } 22269 case 5: 22270 if wireType != 2 { 22271 return fmt.Errorf("proto: wrong wireType = %d for field ReferencePrice", wireType) 22272 } 22273 var stringLen uint64 22274 for shift := uint(0); ; shift += 7 { 22275 if shift >= 64 { 22276 return ErrIntOverflowQuery 22277 } 22278 if iNdEx >= l { 22279 return io.ErrUnexpectedEOF 22280 } 22281 b := dAtA[iNdEx] 22282 iNdEx++ 22283 stringLen |= uint64(b&0x7F) << shift 22284 if b < 0x80 { 22285 break 22286 } 22287 } 22288 intStringLen := int(stringLen) 22289 if intStringLen < 0 { 22290 return ErrInvalidLengthQuery 22291 } 22292 postIndex := iNdEx + intStringLen 22293 if postIndex < 0 { 22294 return ErrInvalidLengthQuery 22295 } 22296 if postIndex > l { 22297 return io.ErrUnexpectedEOF 22298 } 22299 var v cosmossdk_io_math.LegacyDec 22300 m.ReferencePrice = &v 22301 if err := m.ReferencePrice.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 22302 return err 22303 } 22304 iNdEx = postIndex 22305 default: 22306 iNdEx = preIndex 22307 skippy, err := skipQuery(dAtA[iNdEx:]) 22308 if err != nil { 22309 return err 22310 } 22311 if (skippy < 0) || (iNdEx+skippy) < 0 { 22312 return ErrInvalidLengthQuery 22313 } 22314 if (iNdEx + skippy) > l { 22315 return io.ErrUnexpectedEOF 22316 } 22317 iNdEx += skippy 22318 } 22319 } 22320 22321 if iNdEx > l { 22322 return io.ErrUnexpectedEOF 22323 } 22324 return nil 22325 } 22326 func (m *QueryTraderDerivativeOrdersRequest) Unmarshal(dAtA []byte) error { 22327 l := len(dAtA) 22328 iNdEx := 0 22329 for iNdEx < l { 22330 preIndex := iNdEx 22331 var wire uint64 22332 for shift := uint(0); ; shift += 7 { 22333 if shift >= 64 { 22334 return ErrIntOverflowQuery 22335 } 22336 if iNdEx >= l { 22337 return io.ErrUnexpectedEOF 22338 } 22339 b := dAtA[iNdEx] 22340 iNdEx++ 22341 wire |= uint64(b&0x7F) << shift 22342 if b < 0x80 { 22343 break 22344 } 22345 } 22346 fieldNum := int32(wire >> 3) 22347 wireType := int(wire & 0x7) 22348 if wireType == 4 { 22349 return fmt.Errorf("proto: QueryTraderDerivativeOrdersRequest: wiretype end group for non-group") 22350 } 22351 if fieldNum <= 0 { 22352 return fmt.Errorf("proto: QueryTraderDerivativeOrdersRequest: illegal tag %d (wire type %d)", fieldNum, wire) 22353 } 22354 switch fieldNum { 22355 case 1: 22356 if wireType != 2 { 22357 return fmt.Errorf("proto: wrong wireType = %d for field MarketId", wireType) 22358 } 22359 var stringLen uint64 22360 for shift := uint(0); ; shift += 7 { 22361 if shift >= 64 { 22362 return ErrIntOverflowQuery 22363 } 22364 if iNdEx >= l { 22365 return io.ErrUnexpectedEOF 22366 } 22367 b := dAtA[iNdEx] 22368 iNdEx++ 22369 stringLen |= uint64(b&0x7F) << shift 22370 if b < 0x80 { 22371 break 22372 } 22373 } 22374 intStringLen := int(stringLen) 22375 if intStringLen < 0 { 22376 return ErrInvalidLengthQuery 22377 } 22378 postIndex := iNdEx + intStringLen 22379 if postIndex < 0 { 22380 return ErrInvalidLengthQuery 22381 } 22382 if postIndex > l { 22383 return io.ErrUnexpectedEOF 22384 } 22385 m.MarketId = string(dAtA[iNdEx:postIndex]) 22386 iNdEx = postIndex 22387 case 2: 22388 if wireType != 2 { 22389 return fmt.Errorf("proto: wrong wireType = %d for field SubaccountId", wireType) 22390 } 22391 var stringLen uint64 22392 for shift := uint(0); ; shift += 7 { 22393 if shift >= 64 { 22394 return ErrIntOverflowQuery 22395 } 22396 if iNdEx >= l { 22397 return io.ErrUnexpectedEOF 22398 } 22399 b := dAtA[iNdEx] 22400 iNdEx++ 22401 stringLen |= uint64(b&0x7F) << shift 22402 if b < 0x80 { 22403 break 22404 } 22405 } 22406 intStringLen := int(stringLen) 22407 if intStringLen < 0 { 22408 return ErrInvalidLengthQuery 22409 } 22410 postIndex := iNdEx + intStringLen 22411 if postIndex < 0 { 22412 return ErrInvalidLengthQuery 22413 } 22414 if postIndex > l { 22415 return io.ErrUnexpectedEOF 22416 } 22417 m.SubaccountId = string(dAtA[iNdEx:postIndex]) 22418 iNdEx = postIndex 22419 default: 22420 iNdEx = preIndex 22421 skippy, err := skipQuery(dAtA[iNdEx:]) 22422 if err != nil { 22423 return err 22424 } 22425 if (skippy < 0) || (iNdEx+skippy) < 0 { 22426 return ErrInvalidLengthQuery 22427 } 22428 if (iNdEx + skippy) > l { 22429 return io.ErrUnexpectedEOF 22430 } 22431 iNdEx += skippy 22432 } 22433 } 22434 22435 if iNdEx > l { 22436 return io.ErrUnexpectedEOF 22437 } 22438 return nil 22439 } 22440 func (m *QueryAccountAddressDerivativeOrdersRequest) Unmarshal(dAtA []byte) error { 22441 l := len(dAtA) 22442 iNdEx := 0 22443 for iNdEx < l { 22444 preIndex := iNdEx 22445 var wire uint64 22446 for shift := uint(0); ; shift += 7 { 22447 if shift >= 64 { 22448 return ErrIntOverflowQuery 22449 } 22450 if iNdEx >= l { 22451 return io.ErrUnexpectedEOF 22452 } 22453 b := dAtA[iNdEx] 22454 iNdEx++ 22455 wire |= uint64(b&0x7F) << shift 22456 if b < 0x80 { 22457 break 22458 } 22459 } 22460 fieldNum := int32(wire >> 3) 22461 wireType := int(wire & 0x7) 22462 if wireType == 4 { 22463 return fmt.Errorf("proto: QueryAccountAddressDerivativeOrdersRequest: wiretype end group for non-group") 22464 } 22465 if fieldNum <= 0 { 22466 return fmt.Errorf("proto: QueryAccountAddressDerivativeOrdersRequest: illegal tag %d (wire type %d)", fieldNum, wire) 22467 } 22468 switch fieldNum { 22469 case 1: 22470 if wireType != 2 { 22471 return fmt.Errorf("proto: wrong wireType = %d for field MarketId", wireType) 22472 } 22473 var stringLen uint64 22474 for shift := uint(0); ; shift += 7 { 22475 if shift >= 64 { 22476 return ErrIntOverflowQuery 22477 } 22478 if iNdEx >= l { 22479 return io.ErrUnexpectedEOF 22480 } 22481 b := dAtA[iNdEx] 22482 iNdEx++ 22483 stringLen |= uint64(b&0x7F) << shift 22484 if b < 0x80 { 22485 break 22486 } 22487 } 22488 intStringLen := int(stringLen) 22489 if intStringLen < 0 { 22490 return ErrInvalidLengthQuery 22491 } 22492 postIndex := iNdEx + intStringLen 22493 if postIndex < 0 { 22494 return ErrInvalidLengthQuery 22495 } 22496 if postIndex > l { 22497 return io.ErrUnexpectedEOF 22498 } 22499 m.MarketId = string(dAtA[iNdEx:postIndex]) 22500 iNdEx = postIndex 22501 case 2: 22502 if wireType != 2 { 22503 return fmt.Errorf("proto: wrong wireType = %d for field AccountAddress", wireType) 22504 } 22505 var stringLen uint64 22506 for shift := uint(0); ; shift += 7 { 22507 if shift >= 64 { 22508 return ErrIntOverflowQuery 22509 } 22510 if iNdEx >= l { 22511 return io.ErrUnexpectedEOF 22512 } 22513 b := dAtA[iNdEx] 22514 iNdEx++ 22515 stringLen |= uint64(b&0x7F) << shift 22516 if b < 0x80 { 22517 break 22518 } 22519 } 22520 intStringLen := int(stringLen) 22521 if intStringLen < 0 { 22522 return ErrInvalidLengthQuery 22523 } 22524 postIndex := iNdEx + intStringLen 22525 if postIndex < 0 { 22526 return ErrInvalidLengthQuery 22527 } 22528 if postIndex > l { 22529 return io.ErrUnexpectedEOF 22530 } 22531 m.AccountAddress = string(dAtA[iNdEx:postIndex]) 22532 iNdEx = postIndex 22533 default: 22534 iNdEx = preIndex 22535 skippy, err := skipQuery(dAtA[iNdEx:]) 22536 if err != nil { 22537 return err 22538 } 22539 if (skippy < 0) || (iNdEx+skippy) < 0 { 22540 return ErrInvalidLengthQuery 22541 } 22542 if (iNdEx + skippy) > l { 22543 return io.ErrUnexpectedEOF 22544 } 22545 iNdEx += skippy 22546 } 22547 } 22548 22549 if iNdEx > l { 22550 return io.ErrUnexpectedEOF 22551 } 22552 return nil 22553 } 22554 func (m *TrimmedDerivativeLimitOrder) Unmarshal(dAtA []byte) error { 22555 l := len(dAtA) 22556 iNdEx := 0 22557 for iNdEx < l { 22558 preIndex := iNdEx 22559 var wire uint64 22560 for shift := uint(0); ; shift += 7 { 22561 if shift >= 64 { 22562 return ErrIntOverflowQuery 22563 } 22564 if iNdEx >= l { 22565 return io.ErrUnexpectedEOF 22566 } 22567 b := dAtA[iNdEx] 22568 iNdEx++ 22569 wire |= uint64(b&0x7F) << shift 22570 if b < 0x80 { 22571 break 22572 } 22573 } 22574 fieldNum := int32(wire >> 3) 22575 wireType := int(wire & 0x7) 22576 if wireType == 4 { 22577 return fmt.Errorf("proto: TrimmedDerivativeLimitOrder: wiretype end group for non-group") 22578 } 22579 if fieldNum <= 0 { 22580 return fmt.Errorf("proto: TrimmedDerivativeLimitOrder: illegal tag %d (wire type %d)", fieldNum, wire) 22581 } 22582 switch fieldNum { 22583 case 1: 22584 if wireType != 2 { 22585 return fmt.Errorf("proto: wrong wireType = %d for field Price", wireType) 22586 } 22587 var stringLen uint64 22588 for shift := uint(0); ; shift += 7 { 22589 if shift >= 64 { 22590 return ErrIntOverflowQuery 22591 } 22592 if iNdEx >= l { 22593 return io.ErrUnexpectedEOF 22594 } 22595 b := dAtA[iNdEx] 22596 iNdEx++ 22597 stringLen |= uint64(b&0x7F) << shift 22598 if b < 0x80 { 22599 break 22600 } 22601 } 22602 intStringLen := int(stringLen) 22603 if intStringLen < 0 { 22604 return ErrInvalidLengthQuery 22605 } 22606 postIndex := iNdEx + intStringLen 22607 if postIndex < 0 { 22608 return ErrInvalidLengthQuery 22609 } 22610 if postIndex > l { 22611 return io.ErrUnexpectedEOF 22612 } 22613 if err := m.Price.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 22614 return err 22615 } 22616 iNdEx = postIndex 22617 case 2: 22618 if wireType != 2 { 22619 return fmt.Errorf("proto: wrong wireType = %d for field Quantity", wireType) 22620 } 22621 var stringLen uint64 22622 for shift := uint(0); ; shift += 7 { 22623 if shift >= 64 { 22624 return ErrIntOverflowQuery 22625 } 22626 if iNdEx >= l { 22627 return io.ErrUnexpectedEOF 22628 } 22629 b := dAtA[iNdEx] 22630 iNdEx++ 22631 stringLen |= uint64(b&0x7F) << shift 22632 if b < 0x80 { 22633 break 22634 } 22635 } 22636 intStringLen := int(stringLen) 22637 if intStringLen < 0 { 22638 return ErrInvalidLengthQuery 22639 } 22640 postIndex := iNdEx + intStringLen 22641 if postIndex < 0 { 22642 return ErrInvalidLengthQuery 22643 } 22644 if postIndex > l { 22645 return io.ErrUnexpectedEOF 22646 } 22647 if err := m.Quantity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 22648 return err 22649 } 22650 iNdEx = postIndex 22651 case 3: 22652 if wireType != 2 { 22653 return fmt.Errorf("proto: wrong wireType = %d for field Margin", wireType) 22654 } 22655 var stringLen uint64 22656 for shift := uint(0); ; shift += 7 { 22657 if shift >= 64 { 22658 return ErrIntOverflowQuery 22659 } 22660 if iNdEx >= l { 22661 return io.ErrUnexpectedEOF 22662 } 22663 b := dAtA[iNdEx] 22664 iNdEx++ 22665 stringLen |= uint64(b&0x7F) << shift 22666 if b < 0x80 { 22667 break 22668 } 22669 } 22670 intStringLen := int(stringLen) 22671 if intStringLen < 0 { 22672 return ErrInvalidLengthQuery 22673 } 22674 postIndex := iNdEx + intStringLen 22675 if postIndex < 0 { 22676 return ErrInvalidLengthQuery 22677 } 22678 if postIndex > l { 22679 return io.ErrUnexpectedEOF 22680 } 22681 if err := m.Margin.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 22682 return err 22683 } 22684 iNdEx = postIndex 22685 case 4: 22686 if wireType != 2 { 22687 return fmt.Errorf("proto: wrong wireType = %d for field Fillable", wireType) 22688 } 22689 var stringLen uint64 22690 for shift := uint(0); ; shift += 7 { 22691 if shift >= 64 { 22692 return ErrIntOverflowQuery 22693 } 22694 if iNdEx >= l { 22695 return io.ErrUnexpectedEOF 22696 } 22697 b := dAtA[iNdEx] 22698 iNdEx++ 22699 stringLen |= uint64(b&0x7F) << shift 22700 if b < 0x80 { 22701 break 22702 } 22703 } 22704 intStringLen := int(stringLen) 22705 if intStringLen < 0 { 22706 return ErrInvalidLengthQuery 22707 } 22708 postIndex := iNdEx + intStringLen 22709 if postIndex < 0 { 22710 return ErrInvalidLengthQuery 22711 } 22712 if postIndex > l { 22713 return io.ErrUnexpectedEOF 22714 } 22715 if err := m.Fillable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 22716 return err 22717 } 22718 iNdEx = postIndex 22719 case 5: 22720 if wireType != 0 { 22721 return fmt.Errorf("proto: wrong wireType = %d for field IsBuy", wireType) 22722 } 22723 var v int 22724 for shift := uint(0); ; shift += 7 { 22725 if shift >= 64 { 22726 return ErrIntOverflowQuery 22727 } 22728 if iNdEx >= l { 22729 return io.ErrUnexpectedEOF 22730 } 22731 b := dAtA[iNdEx] 22732 iNdEx++ 22733 v |= int(b&0x7F) << shift 22734 if b < 0x80 { 22735 break 22736 } 22737 } 22738 m.IsBuy = bool(v != 0) 22739 case 6: 22740 if wireType != 2 { 22741 return fmt.Errorf("proto: wrong wireType = %d for field OrderHash", wireType) 22742 } 22743 var stringLen uint64 22744 for shift := uint(0); ; shift += 7 { 22745 if shift >= 64 { 22746 return ErrIntOverflowQuery 22747 } 22748 if iNdEx >= l { 22749 return io.ErrUnexpectedEOF 22750 } 22751 b := dAtA[iNdEx] 22752 iNdEx++ 22753 stringLen |= uint64(b&0x7F) << shift 22754 if b < 0x80 { 22755 break 22756 } 22757 } 22758 intStringLen := int(stringLen) 22759 if intStringLen < 0 { 22760 return ErrInvalidLengthQuery 22761 } 22762 postIndex := iNdEx + intStringLen 22763 if postIndex < 0 { 22764 return ErrInvalidLengthQuery 22765 } 22766 if postIndex > l { 22767 return io.ErrUnexpectedEOF 22768 } 22769 m.OrderHash = string(dAtA[iNdEx:postIndex]) 22770 iNdEx = postIndex 22771 case 7: 22772 if wireType != 2 { 22773 return fmt.Errorf("proto: wrong wireType = %d for field Cid", wireType) 22774 } 22775 var stringLen uint64 22776 for shift := uint(0); ; shift += 7 { 22777 if shift >= 64 { 22778 return ErrIntOverflowQuery 22779 } 22780 if iNdEx >= l { 22781 return io.ErrUnexpectedEOF 22782 } 22783 b := dAtA[iNdEx] 22784 iNdEx++ 22785 stringLen |= uint64(b&0x7F) << shift 22786 if b < 0x80 { 22787 break 22788 } 22789 } 22790 intStringLen := int(stringLen) 22791 if intStringLen < 0 { 22792 return ErrInvalidLengthQuery 22793 } 22794 postIndex := iNdEx + intStringLen 22795 if postIndex < 0 { 22796 return ErrInvalidLengthQuery 22797 } 22798 if postIndex > l { 22799 return io.ErrUnexpectedEOF 22800 } 22801 m.Cid = string(dAtA[iNdEx:postIndex]) 22802 iNdEx = postIndex 22803 default: 22804 iNdEx = preIndex 22805 skippy, err := skipQuery(dAtA[iNdEx:]) 22806 if err != nil { 22807 return err 22808 } 22809 if (skippy < 0) || (iNdEx+skippy) < 0 { 22810 return ErrInvalidLengthQuery 22811 } 22812 if (iNdEx + skippy) > l { 22813 return io.ErrUnexpectedEOF 22814 } 22815 iNdEx += skippy 22816 } 22817 } 22818 22819 if iNdEx > l { 22820 return io.ErrUnexpectedEOF 22821 } 22822 return nil 22823 } 22824 func (m *QueryTraderDerivativeOrdersResponse) Unmarshal(dAtA []byte) error { 22825 l := len(dAtA) 22826 iNdEx := 0 22827 for iNdEx < l { 22828 preIndex := iNdEx 22829 var wire uint64 22830 for shift := uint(0); ; shift += 7 { 22831 if shift >= 64 { 22832 return ErrIntOverflowQuery 22833 } 22834 if iNdEx >= l { 22835 return io.ErrUnexpectedEOF 22836 } 22837 b := dAtA[iNdEx] 22838 iNdEx++ 22839 wire |= uint64(b&0x7F) << shift 22840 if b < 0x80 { 22841 break 22842 } 22843 } 22844 fieldNum := int32(wire >> 3) 22845 wireType := int(wire & 0x7) 22846 if wireType == 4 { 22847 return fmt.Errorf("proto: QueryTraderDerivativeOrdersResponse: wiretype end group for non-group") 22848 } 22849 if fieldNum <= 0 { 22850 return fmt.Errorf("proto: QueryTraderDerivativeOrdersResponse: illegal tag %d (wire type %d)", fieldNum, wire) 22851 } 22852 switch fieldNum { 22853 case 1: 22854 if wireType != 2 { 22855 return fmt.Errorf("proto: wrong wireType = %d for field Orders", wireType) 22856 } 22857 var msglen int 22858 for shift := uint(0); ; shift += 7 { 22859 if shift >= 64 { 22860 return ErrIntOverflowQuery 22861 } 22862 if iNdEx >= l { 22863 return io.ErrUnexpectedEOF 22864 } 22865 b := dAtA[iNdEx] 22866 iNdEx++ 22867 msglen |= int(b&0x7F) << shift 22868 if b < 0x80 { 22869 break 22870 } 22871 } 22872 if msglen < 0 { 22873 return ErrInvalidLengthQuery 22874 } 22875 postIndex := iNdEx + msglen 22876 if postIndex < 0 { 22877 return ErrInvalidLengthQuery 22878 } 22879 if postIndex > l { 22880 return io.ErrUnexpectedEOF 22881 } 22882 m.Orders = append(m.Orders, &TrimmedDerivativeLimitOrder{}) 22883 if err := m.Orders[len(m.Orders)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 22884 return err 22885 } 22886 iNdEx = postIndex 22887 default: 22888 iNdEx = preIndex 22889 skippy, err := skipQuery(dAtA[iNdEx:]) 22890 if err != nil { 22891 return err 22892 } 22893 if (skippy < 0) || (iNdEx+skippy) < 0 { 22894 return ErrInvalidLengthQuery 22895 } 22896 if (iNdEx + skippy) > l { 22897 return io.ErrUnexpectedEOF 22898 } 22899 iNdEx += skippy 22900 } 22901 } 22902 22903 if iNdEx > l { 22904 return io.ErrUnexpectedEOF 22905 } 22906 return nil 22907 } 22908 func (m *QueryAccountAddressDerivativeOrdersResponse) Unmarshal(dAtA []byte) error { 22909 l := len(dAtA) 22910 iNdEx := 0 22911 for iNdEx < l { 22912 preIndex := iNdEx 22913 var wire uint64 22914 for shift := uint(0); ; shift += 7 { 22915 if shift >= 64 { 22916 return ErrIntOverflowQuery 22917 } 22918 if iNdEx >= l { 22919 return io.ErrUnexpectedEOF 22920 } 22921 b := dAtA[iNdEx] 22922 iNdEx++ 22923 wire |= uint64(b&0x7F) << shift 22924 if b < 0x80 { 22925 break 22926 } 22927 } 22928 fieldNum := int32(wire >> 3) 22929 wireType := int(wire & 0x7) 22930 if wireType == 4 { 22931 return fmt.Errorf("proto: QueryAccountAddressDerivativeOrdersResponse: wiretype end group for non-group") 22932 } 22933 if fieldNum <= 0 { 22934 return fmt.Errorf("proto: QueryAccountAddressDerivativeOrdersResponse: illegal tag %d (wire type %d)", fieldNum, wire) 22935 } 22936 switch fieldNum { 22937 case 1: 22938 if wireType != 2 { 22939 return fmt.Errorf("proto: wrong wireType = %d for field Orders", wireType) 22940 } 22941 var msglen int 22942 for shift := uint(0); ; shift += 7 { 22943 if shift >= 64 { 22944 return ErrIntOverflowQuery 22945 } 22946 if iNdEx >= l { 22947 return io.ErrUnexpectedEOF 22948 } 22949 b := dAtA[iNdEx] 22950 iNdEx++ 22951 msglen |= int(b&0x7F) << shift 22952 if b < 0x80 { 22953 break 22954 } 22955 } 22956 if msglen < 0 { 22957 return ErrInvalidLengthQuery 22958 } 22959 postIndex := iNdEx + msglen 22960 if postIndex < 0 { 22961 return ErrInvalidLengthQuery 22962 } 22963 if postIndex > l { 22964 return io.ErrUnexpectedEOF 22965 } 22966 m.Orders = append(m.Orders, &TrimmedDerivativeLimitOrder{}) 22967 if err := m.Orders[len(m.Orders)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 22968 return err 22969 } 22970 iNdEx = postIndex 22971 default: 22972 iNdEx = preIndex 22973 skippy, err := skipQuery(dAtA[iNdEx:]) 22974 if err != nil { 22975 return err 22976 } 22977 if (skippy < 0) || (iNdEx+skippy) < 0 { 22978 return ErrInvalidLengthQuery 22979 } 22980 if (iNdEx + skippy) > l { 22981 return io.ErrUnexpectedEOF 22982 } 22983 iNdEx += skippy 22984 } 22985 } 22986 22987 if iNdEx > l { 22988 return io.ErrUnexpectedEOF 22989 } 22990 return nil 22991 } 22992 func (m *QueryDerivativeOrdersByHashesRequest) Unmarshal(dAtA []byte) error { 22993 l := len(dAtA) 22994 iNdEx := 0 22995 for iNdEx < l { 22996 preIndex := iNdEx 22997 var wire uint64 22998 for shift := uint(0); ; shift += 7 { 22999 if shift >= 64 { 23000 return ErrIntOverflowQuery 23001 } 23002 if iNdEx >= l { 23003 return io.ErrUnexpectedEOF 23004 } 23005 b := dAtA[iNdEx] 23006 iNdEx++ 23007 wire |= uint64(b&0x7F) << shift 23008 if b < 0x80 { 23009 break 23010 } 23011 } 23012 fieldNum := int32(wire >> 3) 23013 wireType := int(wire & 0x7) 23014 if wireType == 4 { 23015 return fmt.Errorf("proto: QueryDerivativeOrdersByHashesRequest: wiretype end group for non-group") 23016 } 23017 if fieldNum <= 0 { 23018 return fmt.Errorf("proto: QueryDerivativeOrdersByHashesRequest: illegal tag %d (wire type %d)", fieldNum, wire) 23019 } 23020 switch fieldNum { 23021 case 1: 23022 if wireType != 2 { 23023 return fmt.Errorf("proto: wrong wireType = %d for field MarketId", wireType) 23024 } 23025 var stringLen uint64 23026 for shift := uint(0); ; shift += 7 { 23027 if shift >= 64 { 23028 return ErrIntOverflowQuery 23029 } 23030 if iNdEx >= l { 23031 return io.ErrUnexpectedEOF 23032 } 23033 b := dAtA[iNdEx] 23034 iNdEx++ 23035 stringLen |= uint64(b&0x7F) << shift 23036 if b < 0x80 { 23037 break 23038 } 23039 } 23040 intStringLen := int(stringLen) 23041 if intStringLen < 0 { 23042 return ErrInvalidLengthQuery 23043 } 23044 postIndex := iNdEx + intStringLen 23045 if postIndex < 0 { 23046 return ErrInvalidLengthQuery 23047 } 23048 if postIndex > l { 23049 return io.ErrUnexpectedEOF 23050 } 23051 m.MarketId = string(dAtA[iNdEx:postIndex]) 23052 iNdEx = postIndex 23053 case 2: 23054 if wireType != 2 { 23055 return fmt.Errorf("proto: wrong wireType = %d for field SubaccountId", wireType) 23056 } 23057 var stringLen uint64 23058 for shift := uint(0); ; shift += 7 { 23059 if shift >= 64 { 23060 return ErrIntOverflowQuery 23061 } 23062 if iNdEx >= l { 23063 return io.ErrUnexpectedEOF 23064 } 23065 b := dAtA[iNdEx] 23066 iNdEx++ 23067 stringLen |= uint64(b&0x7F) << shift 23068 if b < 0x80 { 23069 break 23070 } 23071 } 23072 intStringLen := int(stringLen) 23073 if intStringLen < 0 { 23074 return ErrInvalidLengthQuery 23075 } 23076 postIndex := iNdEx + intStringLen 23077 if postIndex < 0 { 23078 return ErrInvalidLengthQuery 23079 } 23080 if postIndex > l { 23081 return io.ErrUnexpectedEOF 23082 } 23083 m.SubaccountId = string(dAtA[iNdEx:postIndex]) 23084 iNdEx = postIndex 23085 case 3: 23086 if wireType != 2 { 23087 return fmt.Errorf("proto: wrong wireType = %d for field OrderHashes", wireType) 23088 } 23089 var stringLen uint64 23090 for shift := uint(0); ; shift += 7 { 23091 if shift >= 64 { 23092 return ErrIntOverflowQuery 23093 } 23094 if iNdEx >= l { 23095 return io.ErrUnexpectedEOF 23096 } 23097 b := dAtA[iNdEx] 23098 iNdEx++ 23099 stringLen |= uint64(b&0x7F) << shift 23100 if b < 0x80 { 23101 break 23102 } 23103 } 23104 intStringLen := int(stringLen) 23105 if intStringLen < 0 { 23106 return ErrInvalidLengthQuery 23107 } 23108 postIndex := iNdEx + intStringLen 23109 if postIndex < 0 { 23110 return ErrInvalidLengthQuery 23111 } 23112 if postIndex > l { 23113 return io.ErrUnexpectedEOF 23114 } 23115 m.OrderHashes = append(m.OrderHashes, string(dAtA[iNdEx:postIndex])) 23116 iNdEx = postIndex 23117 default: 23118 iNdEx = preIndex 23119 skippy, err := skipQuery(dAtA[iNdEx:]) 23120 if err != nil { 23121 return err 23122 } 23123 if (skippy < 0) || (iNdEx+skippy) < 0 { 23124 return ErrInvalidLengthQuery 23125 } 23126 if (iNdEx + skippy) > l { 23127 return io.ErrUnexpectedEOF 23128 } 23129 iNdEx += skippy 23130 } 23131 } 23132 23133 if iNdEx > l { 23134 return io.ErrUnexpectedEOF 23135 } 23136 return nil 23137 } 23138 func (m *QueryDerivativeOrdersByHashesResponse) Unmarshal(dAtA []byte) error { 23139 l := len(dAtA) 23140 iNdEx := 0 23141 for iNdEx < l { 23142 preIndex := iNdEx 23143 var wire uint64 23144 for shift := uint(0); ; shift += 7 { 23145 if shift >= 64 { 23146 return ErrIntOverflowQuery 23147 } 23148 if iNdEx >= l { 23149 return io.ErrUnexpectedEOF 23150 } 23151 b := dAtA[iNdEx] 23152 iNdEx++ 23153 wire |= uint64(b&0x7F) << shift 23154 if b < 0x80 { 23155 break 23156 } 23157 } 23158 fieldNum := int32(wire >> 3) 23159 wireType := int(wire & 0x7) 23160 if wireType == 4 { 23161 return fmt.Errorf("proto: QueryDerivativeOrdersByHashesResponse: wiretype end group for non-group") 23162 } 23163 if fieldNum <= 0 { 23164 return fmt.Errorf("proto: QueryDerivativeOrdersByHashesResponse: illegal tag %d (wire type %d)", fieldNum, wire) 23165 } 23166 switch fieldNum { 23167 case 1: 23168 if wireType != 2 { 23169 return fmt.Errorf("proto: wrong wireType = %d for field Orders", wireType) 23170 } 23171 var msglen int 23172 for shift := uint(0); ; shift += 7 { 23173 if shift >= 64 { 23174 return ErrIntOverflowQuery 23175 } 23176 if iNdEx >= l { 23177 return io.ErrUnexpectedEOF 23178 } 23179 b := dAtA[iNdEx] 23180 iNdEx++ 23181 msglen |= int(b&0x7F) << shift 23182 if b < 0x80 { 23183 break 23184 } 23185 } 23186 if msglen < 0 { 23187 return ErrInvalidLengthQuery 23188 } 23189 postIndex := iNdEx + msglen 23190 if postIndex < 0 { 23191 return ErrInvalidLengthQuery 23192 } 23193 if postIndex > l { 23194 return io.ErrUnexpectedEOF 23195 } 23196 m.Orders = append(m.Orders, &TrimmedDerivativeLimitOrder{}) 23197 if err := m.Orders[len(m.Orders)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 23198 return err 23199 } 23200 iNdEx = postIndex 23201 default: 23202 iNdEx = preIndex 23203 skippy, err := skipQuery(dAtA[iNdEx:]) 23204 if err != nil { 23205 return err 23206 } 23207 if (skippy < 0) || (iNdEx+skippy) < 0 { 23208 return ErrInvalidLengthQuery 23209 } 23210 if (iNdEx + skippy) > l { 23211 return io.ErrUnexpectedEOF 23212 } 23213 iNdEx += skippy 23214 } 23215 } 23216 23217 if iNdEx > l { 23218 return io.ErrUnexpectedEOF 23219 } 23220 return nil 23221 } 23222 func (m *QueryDerivativeMarketsRequest) Unmarshal(dAtA []byte) error { 23223 l := len(dAtA) 23224 iNdEx := 0 23225 for iNdEx < l { 23226 preIndex := iNdEx 23227 var wire uint64 23228 for shift := uint(0); ; shift += 7 { 23229 if shift >= 64 { 23230 return ErrIntOverflowQuery 23231 } 23232 if iNdEx >= l { 23233 return io.ErrUnexpectedEOF 23234 } 23235 b := dAtA[iNdEx] 23236 iNdEx++ 23237 wire |= uint64(b&0x7F) << shift 23238 if b < 0x80 { 23239 break 23240 } 23241 } 23242 fieldNum := int32(wire >> 3) 23243 wireType := int(wire & 0x7) 23244 if wireType == 4 { 23245 return fmt.Errorf("proto: QueryDerivativeMarketsRequest: wiretype end group for non-group") 23246 } 23247 if fieldNum <= 0 { 23248 return fmt.Errorf("proto: QueryDerivativeMarketsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 23249 } 23250 switch fieldNum { 23251 case 1: 23252 if wireType != 2 { 23253 return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) 23254 } 23255 var stringLen uint64 23256 for shift := uint(0); ; shift += 7 { 23257 if shift >= 64 { 23258 return ErrIntOverflowQuery 23259 } 23260 if iNdEx >= l { 23261 return io.ErrUnexpectedEOF 23262 } 23263 b := dAtA[iNdEx] 23264 iNdEx++ 23265 stringLen |= uint64(b&0x7F) << shift 23266 if b < 0x80 { 23267 break 23268 } 23269 } 23270 intStringLen := int(stringLen) 23271 if intStringLen < 0 { 23272 return ErrInvalidLengthQuery 23273 } 23274 postIndex := iNdEx + intStringLen 23275 if postIndex < 0 { 23276 return ErrInvalidLengthQuery 23277 } 23278 if postIndex > l { 23279 return io.ErrUnexpectedEOF 23280 } 23281 m.Status = string(dAtA[iNdEx:postIndex]) 23282 iNdEx = postIndex 23283 case 2: 23284 if wireType != 2 { 23285 return fmt.Errorf("proto: wrong wireType = %d for field MarketIds", wireType) 23286 } 23287 var stringLen uint64 23288 for shift := uint(0); ; shift += 7 { 23289 if shift >= 64 { 23290 return ErrIntOverflowQuery 23291 } 23292 if iNdEx >= l { 23293 return io.ErrUnexpectedEOF 23294 } 23295 b := dAtA[iNdEx] 23296 iNdEx++ 23297 stringLen |= uint64(b&0x7F) << shift 23298 if b < 0x80 { 23299 break 23300 } 23301 } 23302 intStringLen := int(stringLen) 23303 if intStringLen < 0 { 23304 return ErrInvalidLengthQuery 23305 } 23306 postIndex := iNdEx + intStringLen 23307 if postIndex < 0 { 23308 return ErrInvalidLengthQuery 23309 } 23310 if postIndex > l { 23311 return io.ErrUnexpectedEOF 23312 } 23313 m.MarketIds = append(m.MarketIds, string(dAtA[iNdEx:postIndex])) 23314 iNdEx = postIndex 23315 case 3: 23316 if wireType != 0 { 23317 return fmt.Errorf("proto: wrong wireType = %d for field WithMidPriceAndTob", wireType) 23318 } 23319 var v int 23320 for shift := uint(0); ; shift += 7 { 23321 if shift >= 64 { 23322 return ErrIntOverflowQuery 23323 } 23324 if iNdEx >= l { 23325 return io.ErrUnexpectedEOF 23326 } 23327 b := dAtA[iNdEx] 23328 iNdEx++ 23329 v |= int(b&0x7F) << shift 23330 if b < 0x80 { 23331 break 23332 } 23333 } 23334 m.WithMidPriceAndTob = bool(v != 0) 23335 default: 23336 iNdEx = preIndex 23337 skippy, err := skipQuery(dAtA[iNdEx:]) 23338 if err != nil { 23339 return err 23340 } 23341 if (skippy < 0) || (iNdEx+skippy) < 0 { 23342 return ErrInvalidLengthQuery 23343 } 23344 if (iNdEx + skippy) > l { 23345 return io.ErrUnexpectedEOF 23346 } 23347 iNdEx += skippy 23348 } 23349 } 23350 23351 if iNdEx > l { 23352 return io.ErrUnexpectedEOF 23353 } 23354 return nil 23355 } 23356 func (m *PriceLevel) Unmarshal(dAtA []byte) error { 23357 l := len(dAtA) 23358 iNdEx := 0 23359 for iNdEx < l { 23360 preIndex := iNdEx 23361 var wire uint64 23362 for shift := uint(0); ; shift += 7 { 23363 if shift >= 64 { 23364 return ErrIntOverflowQuery 23365 } 23366 if iNdEx >= l { 23367 return io.ErrUnexpectedEOF 23368 } 23369 b := dAtA[iNdEx] 23370 iNdEx++ 23371 wire |= uint64(b&0x7F) << shift 23372 if b < 0x80 { 23373 break 23374 } 23375 } 23376 fieldNum := int32(wire >> 3) 23377 wireType := int(wire & 0x7) 23378 if wireType == 4 { 23379 return fmt.Errorf("proto: PriceLevel: wiretype end group for non-group") 23380 } 23381 if fieldNum <= 0 { 23382 return fmt.Errorf("proto: PriceLevel: illegal tag %d (wire type %d)", fieldNum, wire) 23383 } 23384 switch fieldNum { 23385 case 1: 23386 if wireType != 2 { 23387 return fmt.Errorf("proto: wrong wireType = %d for field Price", wireType) 23388 } 23389 var stringLen uint64 23390 for shift := uint(0); ; shift += 7 { 23391 if shift >= 64 { 23392 return ErrIntOverflowQuery 23393 } 23394 if iNdEx >= l { 23395 return io.ErrUnexpectedEOF 23396 } 23397 b := dAtA[iNdEx] 23398 iNdEx++ 23399 stringLen |= uint64(b&0x7F) << shift 23400 if b < 0x80 { 23401 break 23402 } 23403 } 23404 intStringLen := int(stringLen) 23405 if intStringLen < 0 { 23406 return ErrInvalidLengthQuery 23407 } 23408 postIndex := iNdEx + intStringLen 23409 if postIndex < 0 { 23410 return ErrInvalidLengthQuery 23411 } 23412 if postIndex > l { 23413 return io.ErrUnexpectedEOF 23414 } 23415 if err := m.Price.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 23416 return err 23417 } 23418 iNdEx = postIndex 23419 case 2: 23420 if wireType != 2 { 23421 return fmt.Errorf("proto: wrong wireType = %d for field Quantity", wireType) 23422 } 23423 var stringLen uint64 23424 for shift := uint(0); ; shift += 7 { 23425 if shift >= 64 { 23426 return ErrIntOverflowQuery 23427 } 23428 if iNdEx >= l { 23429 return io.ErrUnexpectedEOF 23430 } 23431 b := dAtA[iNdEx] 23432 iNdEx++ 23433 stringLen |= uint64(b&0x7F) << shift 23434 if b < 0x80 { 23435 break 23436 } 23437 } 23438 intStringLen := int(stringLen) 23439 if intStringLen < 0 { 23440 return ErrInvalidLengthQuery 23441 } 23442 postIndex := iNdEx + intStringLen 23443 if postIndex < 0 { 23444 return ErrInvalidLengthQuery 23445 } 23446 if postIndex > l { 23447 return io.ErrUnexpectedEOF 23448 } 23449 if err := m.Quantity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 23450 return err 23451 } 23452 iNdEx = postIndex 23453 default: 23454 iNdEx = preIndex 23455 skippy, err := skipQuery(dAtA[iNdEx:]) 23456 if err != nil { 23457 return err 23458 } 23459 if (skippy < 0) || (iNdEx+skippy) < 0 { 23460 return ErrInvalidLengthQuery 23461 } 23462 if (iNdEx + skippy) > l { 23463 return io.ErrUnexpectedEOF 23464 } 23465 iNdEx += skippy 23466 } 23467 } 23468 23469 if iNdEx > l { 23470 return io.ErrUnexpectedEOF 23471 } 23472 return nil 23473 } 23474 func (m *PerpetualMarketState) Unmarshal(dAtA []byte) error { 23475 l := len(dAtA) 23476 iNdEx := 0 23477 for iNdEx < l { 23478 preIndex := iNdEx 23479 var wire uint64 23480 for shift := uint(0); ; shift += 7 { 23481 if shift >= 64 { 23482 return ErrIntOverflowQuery 23483 } 23484 if iNdEx >= l { 23485 return io.ErrUnexpectedEOF 23486 } 23487 b := dAtA[iNdEx] 23488 iNdEx++ 23489 wire |= uint64(b&0x7F) << shift 23490 if b < 0x80 { 23491 break 23492 } 23493 } 23494 fieldNum := int32(wire >> 3) 23495 wireType := int(wire & 0x7) 23496 if wireType == 4 { 23497 return fmt.Errorf("proto: PerpetualMarketState: wiretype end group for non-group") 23498 } 23499 if fieldNum <= 0 { 23500 return fmt.Errorf("proto: PerpetualMarketState: illegal tag %d (wire type %d)", fieldNum, wire) 23501 } 23502 switch fieldNum { 23503 case 1: 23504 if wireType != 2 { 23505 return fmt.Errorf("proto: wrong wireType = %d for field MarketInfo", wireType) 23506 } 23507 var msglen int 23508 for shift := uint(0); ; shift += 7 { 23509 if shift >= 64 { 23510 return ErrIntOverflowQuery 23511 } 23512 if iNdEx >= l { 23513 return io.ErrUnexpectedEOF 23514 } 23515 b := dAtA[iNdEx] 23516 iNdEx++ 23517 msglen |= int(b&0x7F) << shift 23518 if b < 0x80 { 23519 break 23520 } 23521 } 23522 if msglen < 0 { 23523 return ErrInvalidLengthQuery 23524 } 23525 postIndex := iNdEx + msglen 23526 if postIndex < 0 { 23527 return ErrInvalidLengthQuery 23528 } 23529 if postIndex > l { 23530 return io.ErrUnexpectedEOF 23531 } 23532 if m.MarketInfo == nil { 23533 m.MarketInfo = &PerpetualMarketInfo{} 23534 } 23535 if err := m.MarketInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 23536 return err 23537 } 23538 iNdEx = postIndex 23539 case 2: 23540 if wireType != 2 { 23541 return fmt.Errorf("proto: wrong wireType = %d for field FundingInfo", wireType) 23542 } 23543 var msglen int 23544 for shift := uint(0); ; shift += 7 { 23545 if shift >= 64 { 23546 return ErrIntOverflowQuery 23547 } 23548 if iNdEx >= l { 23549 return io.ErrUnexpectedEOF 23550 } 23551 b := dAtA[iNdEx] 23552 iNdEx++ 23553 msglen |= int(b&0x7F) << shift 23554 if b < 0x80 { 23555 break 23556 } 23557 } 23558 if msglen < 0 { 23559 return ErrInvalidLengthQuery 23560 } 23561 postIndex := iNdEx + msglen 23562 if postIndex < 0 { 23563 return ErrInvalidLengthQuery 23564 } 23565 if postIndex > l { 23566 return io.ErrUnexpectedEOF 23567 } 23568 if m.FundingInfo == nil { 23569 m.FundingInfo = &PerpetualMarketFunding{} 23570 } 23571 if err := m.FundingInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 23572 return err 23573 } 23574 iNdEx = postIndex 23575 default: 23576 iNdEx = preIndex 23577 skippy, err := skipQuery(dAtA[iNdEx:]) 23578 if err != nil { 23579 return err 23580 } 23581 if (skippy < 0) || (iNdEx+skippy) < 0 { 23582 return ErrInvalidLengthQuery 23583 } 23584 if (iNdEx + skippy) > l { 23585 return io.ErrUnexpectedEOF 23586 } 23587 iNdEx += skippy 23588 } 23589 } 23590 23591 if iNdEx > l { 23592 return io.ErrUnexpectedEOF 23593 } 23594 return nil 23595 } 23596 func (m *FullDerivativeMarket) Unmarshal(dAtA []byte) error { 23597 l := len(dAtA) 23598 iNdEx := 0 23599 for iNdEx < l { 23600 preIndex := iNdEx 23601 var wire uint64 23602 for shift := uint(0); ; shift += 7 { 23603 if shift >= 64 { 23604 return ErrIntOverflowQuery 23605 } 23606 if iNdEx >= l { 23607 return io.ErrUnexpectedEOF 23608 } 23609 b := dAtA[iNdEx] 23610 iNdEx++ 23611 wire |= uint64(b&0x7F) << shift 23612 if b < 0x80 { 23613 break 23614 } 23615 } 23616 fieldNum := int32(wire >> 3) 23617 wireType := int(wire & 0x7) 23618 if wireType == 4 { 23619 return fmt.Errorf("proto: FullDerivativeMarket: wiretype end group for non-group") 23620 } 23621 if fieldNum <= 0 { 23622 return fmt.Errorf("proto: FullDerivativeMarket: illegal tag %d (wire type %d)", fieldNum, wire) 23623 } 23624 switch fieldNum { 23625 case 1: 23626 if wireType != 2 { 23627 return fmt.Errorf("proto: wrong wireType = %d for field Market", wireType) 23628 } 23629 var msglen int 23630 for shift := uint(0); ; shift += 7 { 23631 if shift >= 64 { 23632 return ErrIntOverflowQuery 23633 } 23634 if iNdEx >= l { 23635 return io.ErrUnexpectedEOF 23636 } 23637 b := dAtA[iNdEx] 23638 iNdEx++ 23639 msglen |= int(b&0x7F) << shift 23640 if b < 0x80 { 23641 break 23642 } 23643 } 23644 if msglen < 0 { 23645 return ErrInvalidLengthQuery 23646 } 23647 postIndex := iNdEx + msglen 23648 if postIndex < 0 { 23649 return ErrInvalidLengthQuery 23650 } 23651 if postIndex > l { 23652 return io.ErrUnexpectedEOF 23653 } 23654 if m.Market == nil { 23655 m.Market = &DerivativeMarket{} 23656 } 23657 if err := m.Market.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 23658 return err 23659 } 23660 iNdEx = postIndex 23661 case 2: 23662 if wireType != 2 { 23663 return fmt.Errorf("proto: wrong wireType = %d for field PerpetualInfo", wireType) 23664 } 23665 var msglen int 23666 for shift := uint(0); ; shift += 7 { 23667 if shift >= 64 { 23668 return ErrIntOverflowQuery 23669 } 23670 if iNdEx >= l { 23671 return io.ErrUnexpectedEOF 23672 } 23673 b := dAtA[iNdEx] 23674 iNdEx++ 23675 msglen |= int(b&0x7F) << shift 23676 if b < 0x80 { 23677 break 23678 } 23679 } 23680 if msglen < 0 { 23681 return ErrInvalidLengthQuery 23682 } 23683 postIndex := iNdEx + msglen 23684 if postIndex < 0 { 23685 return ErrInvalidLengthQuery 23686 } 23687 if postIndex > l { 23688 return io.ErrUnexpectedEOF 23689 } 23690 v := &PerpetualMarketState{} 23691 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 23692 return err 23693 } 23694 m.Info = &FullDerivativeMarket_PerpetualInfo{v} 23695 iNdEx = postIndex 23696 case 3: 23697 if wireType != 2 { 23698 return fmt.Errorf("proto: wrong wireType = %d for field FuturesInfo", wireType) 23699 } 23700 var msglen int 23701 for shift := uint(0); ; shift += 7 { 23702 if shift >= 64 { 23703 return ErrIntOverflowQuery 23704 } 23705 if iNdEx >= l { 23706 return io.ErrUnexpectedEOF 23707 } 23708 b := dAtA[iNdEx] 23709 iNdEx++ 23710 msglen |= int(b&0x7F) << shift 23711 if b < 0x80 { 23712 break 23713 } 23714 } 23715 if msglen < 0 { 23716 return ErrInvalidLengthQuery 23717 } 23718 postIndex := iNdEx + msglen 23719 if postIndex < 0 { 23720 return ErrInvalidLengthQuery 23721 } 23722 if postIndex > l { 23723 return io.ErrUnexpectedEOF 23724 } 23725 v := &ExpiryFuturesMarketInfo{} 23726 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 23727 return err 23728 } 23729 m.Info = &FullDerivativeMarket_FuturesInfo{v} 23730 iNdEx = postIndex 23731 case 4: 23732 if wireType != 2 { 23733 return fmt.Errorf("proto: wrong wireType = %d for field MarkPrice", wireType) 23734 } 23735 var stringLen uint64 23736 for shift := uint(0); ; shift += 7 { 23737 if shift >= 64 { 23738 return ErrIntOverflowQuery 23739 } 23740 if iNdEx >= l { 23741 return io.ErrUnexpectedEOF 23742 } 23743 b := dAtA[iNdEx] 23744 iNdEx++ 23745 stringLen |= uint64(b&0x7F) << shift 23746 if b < 0x80 { 23747 break 23748 } 23749 } 23750 intStringLen := int(stringLen) 23751 if intStringLen < 0 { 23752 return ErrInvalidLengthQuery 23753 } 23754 postIndex := iNdEx + intStringLen 23755 if postIndex < 0 { 23756 return ErrInvalidLengthQuery 23757 } 23758 if postIndex > l { 23759 return io.ErrUnexpectedEOF 23760 } 23761 if err := m.MarkPrice.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 23762 return err 23763 } 23764 iNdEx = postIndex 23765 case 5: 23766 if wireType != 2 { 23767 return fmt.Errorf("proto: wrong wireType = %d for field MidPriceAndTob", wireType) 23768 } 23769 var msglen int 23770 for shift := uint(0); ; shift += 7 { 23771 if shift >= 64 { 23772 return ErrIntOverflowQuery 23773 } 23774 if iNdEx >= l { 23775 return io.ErrUnexpectedEOF 23776 } 23777 b := dAtA[iNdEx] 23778 iNdEx++ 23779 msglen |= int(b&0x7F) << shift 23780 if b < 0x80 { 23781 break 23782 } 23783 } 23784 if msglen < 0 { 23785 return ErrInvalidLengthQuery 23786 } 23787 postIndex := iNdEx + msglen 23788 if postIndex < 0 { 23789 return ErrInvalidLengthQuery 23790 } 23791 if postIndex > l { 23792 return io.ErrUnexpectedEOF 23793 } 23794 if m.MidPriceAndTob == nil { 23795 m.MidPriceAndTob = &MidPriceAndTOB{} 23796 } 23797 if err := m.MidPriceAndTob.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 23798 return err 23799 } 23800 iNdEx = postIndex 23801 default: 23802 iNdEx = preIndex 23803 skippy, err := skipQuery(dAtA[iNdEx:]) 23804 if err != nil { 23805 return err 23806 } 23807 if (skippy < 0) || (iNdEx+skippy) < 0 { 23808 return ErrInvalidLengthQuery 23809 } 23810 if (iNdEx + skippy) > l { 23811 return io.ErrUnexpectedEOF 23812 } 23813 iNdEx += skippy 23814 } 23815 } 23816 23817 if iNdEx > l { 23818 return io.ErrUnexpectedEOF 23819 } 23820 return nil 23821 } 23822 func (m *QueryDerivativeMarketsResponse) Unmarshal(dAtA []byte) error { 23823 l := len(dAtA) 23824 iNdEx := 0 23825 for iNdEx < l { 23826 preIndex := iNdEx 23827 var wire uint64 23828 for shift := uint(0); ; shift += 7 { 23829 if shift >= 64 { 23830 return ErrIntOverflowQuery 23831 } 23832 if iNdEx >= l { 23833 return io.ErrUnexpectedEOF 23834 } 23835 b := dAtA[iNdEx] 23836 iNdEx++ 23837 wire |= uint64(b&0x7F) << shift 23838 if b < 0x80 { 23839 break 23840 } 23841 } 23842 fieldNum := int32(wire >> 3) 23843 wireType := int(wire & 0x7) 23844 if wireType == 4 { 23845 return fmt.Errorf("proto: QueryDerivativeMarketsResponse: wiretype end group for non-group") 23846 } 23847 if fieldNum <= 0 { 23848 return fmt.Errorf("proto: QueryDerivativeMarketsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 23849 } 23850 switch fieldNum { 23851 case 1: 23852 if wireType != 2 { 23853 return fmt.Errorf("proto: wrong wireType = %d for field Markets", wireType) 23854 } 23855 var msglen int 23856 for shift := uint(0); ; shift += 7 { 23857 if shift >= 64 { 23858 return ErrIntOverflowQuery 23859 } 23860 if iNdEx >= l { 23861 return io.ErrUnexpectedEOF 23862 } 23863 b := dAtA[iNdEx] 23864 iNdEx++ 23865 msglen |= int(b&0x7F) << shift 23866 if b < 0x80 { 23867 break 23868 } 23869 } 23870 if msglen < 0 { 23871 return ErrInvalidLengthQuery 23872 } 23873 postIndex := iNdEx + msglen 23874 if postIndex < 0 { 23875 return ErrInvalidLengthQuery 23876 } 23877 if postIndex > l { 23878 return io.ErrUnexpectedEOF 23879 } 23880 m.Markets = append(m.Markets, &FullDerivativeMarket{}) 23881 if err := m.Markets[len(m.Markets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 23882 return err 23883 } 23884 iNdEx = postIndex 23885 default: 23886 iNdEx = preIndex 23887 skippy, err := skipQuery(dAtA[iNdEx:]) 23888 if err != nil { 23889 return err 23890 } 23891 if (skippy < 0) || (iNdEx+skippy) < 0 { 23892 return ErrInvalidLengthQuery 23893 } 23894 if (iNdEx + skippy) > l { 23895 return io.ErrUnexpectedEOF 23896 } 23897 iNdEx += skippy 23898 } 23899 } 23900 23901 if iNdEx > l { 23902 return io.ErrUnexpectedEOF 23903 } 23904 return nil 23905 } 23906 func (m *QueryDerivativeMarketRequest) Unmarshal(dAtA []byte) error { 23907 l := len(dAtA) 23908 iNdEx := 0 23909 for iNdEx < l { 23910 preIndex := iNdEx 23911 var wire uint64 23912 for shift := uint(0); ; shift += 7 { 23913 if shift >= 64 { 23914 return ErrIntOverflowQuery 23915 } 23916 if iNdEx >= l { 23917 return io.ErrUnexpectedEOF 23918 } 23919 b := dAtA[iNdEx] 23920 iNdEx++ 23921 wire |= uint64(b&0x7F) << shift 23922 if b < 0x80 { 23923 break 23924 } 23925 } 23926 fieldNum := int32(wire >> 3) 23927 wireType := int(wire & 0x7) 23928 if wireType == 4 { 23929 return fmt.Errorf("proto: QueryDerivativeMarketRequest: wiretype end group for non-group") 23930 } 23931 if fieldNum <= 0 { 23932 return fmt.Errorf("proto: QueryDerivativeMarketRequest: illegal tag %d (wire type %d)", fieldNum, wire) 23933 } 23934 switch fieldNum { 23935 case 1: 23936 if wireType != 2 { 23937 return fmt.Errorf("proto: wrong wireType = %d for field MarketId", wireType) 23938 } 23939 var stringLen uint64 23940 for shift := uint(0); ; shift += 7 { 23941 if shift >= 64 { 23942 return ErrIntOverflowQuery 23943 } 23944 if iNdEx >= l { 23945 return io.ErrUnexpectedEOF 23946 } 23947 b := dAtA[iNdEx] 23948 iNdEx++ 23949 stringLen |= uint64(b&0x7F) << shift 23950 if b < 0x80 { 23951 break 23952 } 23953 } 23954 intStringLen := int(stringLen) 23955 if intStringLen < 0 { 23956 return ErrInvalidLengthQuery 23957 } 23958 postIndex := iNdEx + intStringLen 23959 if postIndex < 0 { 23960 return ErrInvalidLengthQuery 23961 } 23962 if postIndex > l { 23963 return io.ErrUnexpectedEOF 23964 } 23965 m.MarketId = string(dAtA[iNdEx:postIndex]) 23966 iNdEx = postIndex 23967 default: 23968 iNdEx = preIndex 23969 skippy, err := skipQuery(dAtA[iNdEx:]) 23970 if err != nil { 23971 return err 23972 } 23973 if (skippy < 0) || (iNdEx+skippy) < 0 { 23974 return ErrInvalidLengthQuery 23975 } 23976 if (iNdEx + skippy) > l { 23977 return io.ErrUnexpectedEOF 23978 } 23979 iNdEx += skippy 23980 } 23981 } 23982 23983 if iNdEx > l { 23984 return io.ErrUnexpectedEOF 23985 } 23986 return nil 23987 } 23988 func (m *QueryDerivativeMarketResponse) Unmarshal(dAtA []byte) error { 23989 l := len(dAtA) 23990 iNdEx := 0 23991 for iNdEx < l { 23992 preIndex := iNdEx 23993 var wire uint64 23994 for shift := uint(0); ; shift += 7 { 23995 if shift >= 64 { 23996 return ErrIntOverflowQuery 23997 } 23998 if iNdEx >= l { 23999 return io.ErrUnexpectedEOF 24000 } 24001 b := dAtA[iNdEx] 24002 iNdEx++ 24003 wire |= uint64(b&0x7F) << shift 24004 if b < 0x80 { 24005 break 24006 } 24007 } 24008 fieldNum := int32(wire >> 3) 24009 wireType := int(wire & 0x7) 24010 if wireType == 4 { 24011 return fmt.Errorf("proto: QueryDerivativeMarketResponse: wiretype end group for non-group") 24012 } 24013 if fieldNum <= 0 { 24014 return fmt.Errorf("proto: QueryDerivativeMarketResponse: illegal tag %d (wire type %d)", fieldNum, wire) 24015 } 24016 switch fieldNum { 24017 case 1: 24018 if wireType != 2 { 24019 return fmt.Errorf("proto: wrong wireType = %d for field Market", wireType) 24020 } 24021 var msglen int 24022 for shift := uint(0); ; shift += 7 { 24023 if shift >= 64 { 24024 return ErrIntOverflowQuery 24025 } 24026 if iNdEx >= l { 24027 return io.ErrUnexpectedEOF 24028 } 24029 b := dAtA[iNdEx] 24030 iNdEx++ 24031 msglen |= int(b&0x7F) << shift 24032 if b < 0x80 { 24033 break 24034 } 24035 } 24036 if msglen < 0 { 24037 return ErrInvalidLengthQuery 24038 } 24039 postIndex := iNdEx + msglen 24040 if postIndex < 0 { 24041 return ErrInvalidLengthQuery 24042 } 24043 if postIndex > l { 24044 return io.ErrUnexpectedEOF 24045 } 24046 if m.Market == nil { 24047 m.Market = &FullDerivativeMarket{} 24048 } 24049 if err := m.Market.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 24050 return err 24051 } 24052 iNdEx = postIndex 24053 default: 24054 iNdEx = preIndex 24055 skippy, err := skipQuery(dAtA[iNdEx:]) 24056 if err != nil { 24057 return err 24058 } 24059 if (skippy < 0) || (iNdEx+skippy) < 0 { 24060 return ErrInvalidLengthQuery 24061 } 24062 if (iNdEx + skippy) > l { 24063 return io.ErrUnexpectedEOF 24064 } 24065 iNdEx += skippy 24066 } 24067 } 24068 24069 if iNdEx > l { 24070 return io.ErrUnexpectedEOF 24071 } 24072 return nil 24073 } 24074 func (m *QueryDerivativeMarketAddressRequest) Unmarshal(dAtA []byte) error { 24075 l := len(dAtA) 24076 iNdEx := 0 24077 for iNdEx < l { 24078 preIndex := iNdEx 24079 var wire uint64 24080 for shift := uint(0); ; shift += 7 { 24081 if shift >= 64 { 24082 return ErrIntOverflowQuery 24083 } 24084 if iNdEx >= l { 24085 return io.ErrUnexpectedEOF 24086 } 24087 b := dAtA[iNdEx] 24088 iNdEx++ 24089 wire |= uint64(b&0x7F) << shift 24090 if b < 0x80 { 24091 break 24092 } 24093 } 24094 fieldNum := int32(wire >> 3) 24095 wireType := int(wire & 0x7) 24096 if wireType == 4 { 24097 return fmt.Errorf("proto: QueryDerivativeMarketAddressRequest: wiretype end group for non-group") 24098 } 24099 if fieldNum <= 0 { 24100 return fmt.Errorf("proto: QueryDerivativeMarketAddressRequest: illegal tag %d (wire type %d)", fieldNum, wire) 24101 } 24102 switch fieldNum { 24103 case 1: 24104 if wireType != 2 { 24105 return fmt.Errorf("proto: wrong wireType = %d for field MarketId", wireType) 24106 } 24107 var stringLen uint64 24108 for shift := uint(0); ; shift += 7 { 24109 if shift >= 64 { 24110 return ErrIntOverflowQuery 24111 } 24112 if iNdEx >= l { 24113 return io.ErrUnexpectedEOF 24114 } 24115 b := dAtA[iNdEx] 24116 iNdEx++ 24117 stringLen |= uint64(b&0x7F) << shift 24118 if b < 0x80 { 24119 break 24120 } 24121 } 24122 intStringLen := int(stringLen) 24123 if intStringLen < 0 { 24124 return ErrInvalidLengthQuery 24125 } 24126 postIndex := iNdEx + intStringLen 24127 if postIndex < 0 { 24128 return ErrInvalidLengthQuery 24129 } 24130 if postIndex > l { 24131 return io.ErrUnexpectedEOF 24132 } 24133 m.MarketId = string(dAtA[iNdEx:postIndex]) 24134 iNdEx = postIndex 24135 default: 24136 iNdEx = preIndex 24137 skippy, err := skipQuery(dAtA[iNdEx:]) 24138 if err != nil { 24139 return err 24140 } 24141 if (skippy < 0) || (iNdEx+skippy) < 0 { 24142 return ErrInvalidLengthQuery 24143 } 24144 if (iNdEx + skippy) > l { 24145 return io.ErrUnexpectedEOF 24146 } 24147 iNdEx += skippy 24148 } 24149 } 24150 24151 if iNdEx > l { 24152 return io.ErrUnexpectedEOF 24153 } 24154 return nil 24155 } 24156 func (m *QueryDerivativeMarketAddressResponse) Unmarshal(dAtA []byte) error { 24157 l := len(dAtA) 24158 iNdEx := 0 24159 for iNdEx < l { 24160 preIndex := iNdEx 24161 var wire uint64 24162 for shift := uint(0); ; shift += 7 { 24163 if shift >= 64 { 24164 return ErrIntOverflowQuery 24165 } 24166 if iNdEx >= l { 24167 return io.ErrUnexpectedEOF 24168 } 24169 b := dAtA[iNdEx] 24170 iNdEx++ 24171 wire |= uint64(b&0x7F) << shift 24172 if b < 0x80 { 24173 break 24174 } 24175 } 24176 fieldNum := int32(wire >> 3) 24177 wireType := int(wire & 0x7) 24178 if wireType == 4 { 24179 return fmt.Errorf("proto: QueryDerivativeMarketAddressResponse: wiretype end group for non-group") 24180 } 24181 if fieldNum <= 0 { 24182 return fmt.Errorf("proto: QueryDerivativeMarketAddressResponse: illegal tag %d (wire type %d)", fieldNum, wire) 24183 } 24184 switch fieldNum { 24185 case 1: 24186 if wireType != 2 { 24187 return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) 24188 } 24189 var stringLen uint64 24190 for shift := uint(0); ; shift += 7 { 24191 if shift >= 64 { 24192 return ErrIntOverflowQuery 24193 } 24194 if iNdEx >= l { 24195 return io.ErrUnexpectedEOF 24196 } 24197 b := dAtA[iNdEx] 24198 iNdEx++ 24199 stringLen |= uint64(b&0x7F) << shift 24200 if b < 0x80 { 24201 break 24202 } 24203 } 24204 intStringLen := int(stringLen) 24205 if intStringLen < 0 { 24206 return ErrInvalidLengthQuery 24207 } 24208 postIndex := iNdEx + intStringLen 24209 if postIndex < 0 { 24210 return ErrInvalidLengthQuery 24211 } 24212 if postIndex > l { 24213 return io.ErrUnexpectedEOF 24214 } 24215 m.Address = string(dAtA[iNdEx:postIndex]) 24216 iNdEx = postIndex 24217 case 2: 24218 if wireType != 2 { 24219 return fmt.Errorf("proto: wrong wireType = %d for field SubaccountId", wireType) 24220 } 24221 var stringLen uint64 24222 for shift := uint(0); ; shift += 7 { 24223 if shift >= 64 { 24224 return ErrIntOverflowQuery 24225 } 24226 if iNdEx >= l { 24227 return io.ErrUnexpectedEOF 24228 } 24229 b := dAtA[iNdEx] 24230 iNdEx++ 24231 stringLen |= uint64(b&0x7F) << shift 24232 if b < 0x80 { 24233 break 24234 } 24235 } 24236 intStringLen := int(stringLen) 24237 if intStringLen < 0 { 24238 return ErrInvalidLengthQuery 24239 } 24240 postIndex := iNdEx + intStringLen 24241 if postIndex < 0 { 24242 return ErrInvalidLengthQuery 24243 } 24244 if postIndex > l { 24245 return io.ErrUnexpectedEOF 24246 } 24247 m.SubaccountId = string(dAtA[iNdEx:postIndex]) 24248 iNdEx = postIndex 24249 default: 24250 iNdEx = preIndex 24251 skippy, err := skipQuery(dAtA[iNdEx:]) 24252 if err != nil { 24253 return err 24254 } 24255 if (skippy < 0) || (iNdEx+skippy) < 0 { 24256 return ErrInvalidLengthQuery 24257 } 24258 if (iNdEx + skippy) > l { 24259 return io.ErrUnexpectedEOF 24260 } 24261 iNdEx += skippy 24262 } 24263 } 24264 24265 if iNdEx > l { 24266 return io.ErrUnexpectedEOF 24267 } 24268 return nil 24269 } 24270 func (m *QuerySubaccountTradeNonceRequest) Unmarshal(dAtA []byte) error { 24271 l := len(dAtA) 24272 iNdEx := 0 24273 for iNdEx < l { 24274 preIndex := iNdEx 24275 var wire uint64 24276 for shift := uint(0); ; shift += 7 { 24277 if shift >= 64 { 24278 return ErrIntOverflowQuery 24279 } 24280 if iNdEx >= l { 24281 return io.ErrUnexpectedEOF 24282 } 24283 b := dAtA[iNdEx] 24284 iNdEx++ 24285 wire |= uint64(b&0x7F) << shift 24286 if b < 0x80 { 24287 break 24288 } 24289 } 24290 fieldNum := int32(wire >> 3) 24291 wireType := int(wire & 0x7) 24292 if wireType == 4 { 24293 return fmt.Errorf("proto: QuerySubaccountTradeNonceRequest: wiretype end group for non-group") 24294 } 24295 if fieldNum <= 0 { 24296 return fmt.Errorf("proto: QuerySubaccountTradeNonceRequest: illegal tag %d (wire type %d)", fieldNum, wire) 24297 } 24298 switch fieldNum { 24299 case 1: 24300 if wireType != 2 { 24301 return fmt.Errorf("proto: wrong wireType = %d for field SubaccountId", wireType) 24302 } 24303 var stringLen uint64 24304 for shift := uint(0); ; shift += 7 { 24305 if shift >= 64 { 24306 return ErrIntOverflowQuery 24307 } 24308 if iNdEx >= l { 24309 return io.ErrUnexpectedEOF 24310 } 24311 b := dAtA[iNdEx] 24312 iNdEx++ 24313 stringLen |= uint64(b&0x7F) << shift 24314 if b < 0x80 { 24315 break 24316 } 24317 } 24318 intStringLen := int(stringLen) 24319 if intStringLen < 0 { 24320 return ErrInvalidLengthQuery 24321 } 24322 postIndex := iNdEx + intStringLen 24323 if postIndex < 0 { 24324 return ErrInvalidLengthQuery 24325 } 24326 if postIndex > l { 24327 return io.ErrUnexpectedEOF 24328 } 24329 m.SubaccountId = string(dAtA[iNdEx:postIndex]) 24330 iNdEx = postIndex 24331 default: 24332 iNdEx = preIndex 24333 skippy, err := skipQuery(dAtA[iNdEx:]) 24334 if err != nil { 24335 return err 24336 } 24337 if (skippy < 0) || (iNdEx+skippy) < 0 { 24338 return ErrInvalidLengthQuery 24339 } 24340 if (iNdEx + skippy) > l { 24341 return io.ErrUnexpectedEOF 24342 } 24343 iNdEx += skippy 24344 } 24345 } 24346 24347 if iNdEx > l { 24348 return io.ErrUnexpectedEOF 24349 } 24350 return nil 24351 } 24352 func (m *QuerySubaccountPositionsRequest) Unmarshal(dAtA []byte) error { 24353 l := len(dAtA) 24354 iNdEx := 0 24355 for iNdEx < l { 24356 preIndex := iNdEx 24357 var wire uint64 24358 for shift := uint(0); ; shift += 7 { 24359 if shift >= 64 { 24360 return ErrIntOverflowQuery 24361 } 24362 if iNdEx >= l { 24363 return io.ErrUnexpectedEOF 24364 } 24365 b := dAtA[iNdEx] 24366 iNdEx++ 24367 wire |= uint64(b&0x7F) << shift 24368 if b < 0x80 { 24369 break 24370 } 24371 } 24372 fieldNum := int32(wire >> 3) 24373 wireType := int(wire & 0x7) 24374 if wireType == 4 { 24375 return fmt.Errorf("proto: QuerySubaccountPositionsRequest: wiretype end group for non-group") 24376 } 24377 if fieldNum <= 0 { 24378 return fmt.Errorf("proto: QuerySubaccountPositionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 24379 } 24380 switch fieldNum { 24381 case 1: 24382 if wireType != 2 { 24383 return fmt.Errorf("proto: wrong wireType = %d for field SubaccountId", wireType) 24384 } 24385 var stringLen uint64 24386 for shift := uint(0); ; shift += 7 { 24387 if shift >= 64 { 24388 return ErrIntOverflowQuery 24389 } 24390 if iNdEx >= l { 24391 return io.ErrUnexpectedEOF 24392 } 24393 b := dAtA[iNdEx] 24394 iNdEx++ 24395 stringLen |= uint64(b&0x7F) << shift 24396 if b < 0x80 { 24397 break 24398 } 24399 } 24400 intStringLen := int(stringLen) 24401 if intStringLen < 0 { 24402 return ErrInvalidLengthQuery 24403 } 24404 postIndex := iNdEx + intStringLen 24405 if postIndex < 0 { 24406 return ErrInvalidLengthQuery 24407 } 24408 if postIndex > l { 24409 return io.ErrUnexpectedEOF 24410 } 24411 m.SubaccountId = string(dAtA[iNdEx:postIndex]) 24412 iNdEx = postIndex 24413 default: 24414 iNdEx = preIndex 24415 skippy, err := skipQuery(dAtA[iNdEx:]) 24416 if err != nil { 24417 return err 24418 } 24419 if (skippy < 0) || (iNdEx+skippy) < 0 { 24420 return ErrInvalidLengthQuery 24421 } 24422 if (iNdEx + skippy) > l { 24423 return io.ErrUnexpectedEOF 24424 } 24425 iNdEx += skippy 24426 } 24427 } 24428 24429 if iNdEx > l { 24430 return io.ErrUnexpectedEOF 24431 } 24432 return nil 24433 } 24434 func (m *QuerySubaccountPositionInMarketRequest) Unmarshal(dAtA []byte) error { 24435 l := len(dAtA) 24436 iNdEx := 0 24437 for iNdEx < l { 24438 preIndex := iNdEx 24439 var wire uint64 24440 for shift := uint(0); ; shift += 7 { 24441 if shift >= 64 { 24442 return ErrIntOverflowQuery 24443 } 24444 if iNdEx >= l { 24445 return io.ErrUnexpectedEOF 24446 } 24447 b := dAtA[iNdEx] 24448 iNdEx++ 24449 wire |= uint64(b&0x7F) << shift 24450 if b < 0x80 { 24451 break 24452 } 24453 } 24454 fieldNum := int32(wire >> 3) 24455 wireType := int(wire & 0x7) 24456 if wireType == 4 { 24457 return fmt.Errorf("proto: QuerySubaccountPositionInMarketRequest: wiretype end group for non-group") 24458 } 24459 if fieldNum <= 0 { 24460 return fmt.Errorf("proto: QuerySubaccountPositionInMarketRequest: illegal tag %d (wire type %d)", fieldNum, wire) 24461 } 24462 switch fieldNum { 24463 case 1: 24464 if wireType != 2 { 24465 return fmt.Errorf("proto: wrong wireType = %d for field SubaccountId", wireType) 24466 } 24467 var stringLen uint64 24468 for shift := uint(0); ; shift += 7 { 24469 if shift >= 64 { 24470 return ErrIntOverflowQuery 24471 } 24472 if iNdEx >= l { 24473 return io.ErrUnexpectedEOF 24474 } 24475 b := dAtA[iNdEx] 24476 iNdEx++ 24477 stringLen |= uint64(b&0x7F) << shift 24478 if b < 0x80 { 24479 break 24480 } 24481 } 24482 intStringLen := int(stringLen) 24483 if intStringLen < 0 { 24484 return ErrInvalidLengthQuery 24485 } 24486 postIndex := iNdEx + intStringLen 24487 if postIndex < 0 { 24488 return ErrInvalidLengthQuery 24489 } 24490 if postIndex > l { 24491 return io.ErrUnexpectedEOF 24492 } 24493 m.SubaccountId = string(dAtA[iNdEx:postIndex]) 24494 iNdEx = postIndex 24495 case 2: 24496 if wireType != 2 { 24497 return fmt.Errorf("proto: wrong wireType = %d for field MarketId", wireType) 24498 } 24499 var stringLen uint64 24500 for shift := uint(0); ; shift += 7 { 24501 if shift >= 64 { 24502 return ErrIntOverflowQuery 24503 } 24504 if iNdEx >= l { 24505 return io.ErrUnexpectedEOF 24506 } 24507 b := dAtA[iNdEx] 24508 iNdEx++ 24509 stringLen |= uint64(b&0x7F) << shift 24510 if b < 0x80 { 24511 break 24512 } 24513 } 24514 intStringLen := int(stringLen) 24515 if intStringLen < 0 { 24516 return ErrInvalidLengthQuery 24517 } 24518 postIndex := iNdEx + intStringLen 24519 if postIndex < 0 { 24520 return ErrInvalidLengthQuery 24521 } 24522 if postIndex > l { 24523 return io.ErrUnexpectedEOF 24524 } 24525 m.MarketId = string(dAtA[iNdEx:postIndex]) 24526 iNdEx = postIndex 24527 default: 24528 iNdEx = preIndex 24529 skippy, err := skipQuery(dAtA[iNdEx:]) 24530 if err != nil { 24531 return err 24532 } 24533 if (skippy < 0) || (iNdEx+skippy) < 0 { 24534 return ErrInvalidLengthQuery 24535 } 24536 if (iNdEx + skippy) > l { 24537 return io.ErrUnexpectedEOF 24538 } 24539 iNdEx += skippy 24540 } 24541 } 24542 24543 if iNdEx > l { 24544 return io.ErrUnexpectedEOF 24545 } 24546 return nil 24547 } 24548 func (m *QuerySubaccountEffectivePositionInMarketRequest) Unmarshal(dAtA []byte) error { 24549 l := len(dAtA) 24550 iNdEx := 0 24551 for iNdEx < l { 24552 preIndex := iNdEx 24553 var wire uint64 24554 for shift := uint(0); ; shift += 7 { 24555 if shift >= 64 { 24556 return ErrIntOverflowQuery 24557 } 24558 if iNdEx >= l { 24559 return io.ErrUnexpectedEOF 24560 } 24561 b := dAtA[iNdEx] 24562 iNdEx++ 24563 wire |= uint64(b&0x7F) << shift 24564 if b < 0x80 { 24565 break 24566 } 24567 } 24568 fieldNum := int32(wire >> 3) 24569 wireType := int(wire & 0x7) 24570 if wireType == 4 { 24571 return fmt.Errorf("proto: QuerySubaccountEffectivePositionInMarketRequest: wiretype end group for non-group") 24572 } 24573 if fieldNum <= 0 { 24574 return fmt.Errorf("proto: QuerySubaccountEffectivePositionInMarketRequest: illegal tag %d (wire type %d)", fieldNum, wire) 24575 } 24576 switch fieldNum { 24577 case 1: 24578 if wireType != 2 { 24579 return fmt.Errorf("proto: wrong wireType = %d for field SubaccountId", wireType) 24580 } 24581 var stringLen uint64 24582 for shift := uint(0); ; shift += 7 { 24583 if shift >= 64 { 24584 return ErrIntOverflowQuery 24585 } 24586 if iNdEx >= l { 24587 return io.ErrUnexpectedEOF 24588 } 24589 b := dAtA[iNdEx] 24590 iNdEx++ 24591 stringLen |= uint64(b&0x7F) << shift 24592 if b < 0x80 { 24593 break 24594 } 24595 } 24596 intStringLen := int(stringLen) 24597 if intStringLen < 0 { 24598 return ErrInvalidLengthQuery 24599 } 24600 postIndex := iNdEx + intStringLen 24601 if postIndex < 0 { 24602 return ErrInvalidLengthQuery 24603 } 24604 if postIndex > l { 24605 return io.ErrUnexpectedEOF 24606 } 24607 m.SubaccountId = string(dAtA[iNdEx:postIndex]) 24608 iNdEx = postIndex 24609 case 2: 24610 if wireType != 2 { 24611 return fmt.Errorf("proto: wrong wireType = %d for field MarketId", wireType) 24612 } 24613 var stringLen uint64 24614 for shift := uint(0); ; shift += 7 { 24615 if shift >= 64 { 24616 return ErrIntOverflowQuery 24617 } 24618 if iNdEx >= l { 24619 return io.ErrUnexpectedEOF 24620 } 24621 b := dAtA[iNdEx] 24622 iNdEx++ 24623 stringLen |= uint64(b&0x7F) << shift 24624 if b < 0x80 { 24625 break 24626 } 24627 } 24628 intStringLen := int(stringLen) 24629 if intStringLen < 0 { 24630 return ErrInvalidLengthQuery 24631 } 24632 postIndex := iNdEx + intStringLen 24633 if postIndex < 0 { 24634 return ErrInvalidLengthQuery 24635 } 24636 if postIndex > l { 24637 return io.ErrUnexpectedEOF 24638 } 24639 m.MarketId = string(dAtA[iNdEx:postIndex]) 24640 iNdEx = postIndex 24641 default: 24642 iNdEx = preIndex 24643 skippy, err := skipQuery(dAtA[iNdEx:]) 24644 if err != nil { 24645 return err 24646 } 24647 if (skippy < 0) || (iNdEx+skippy) < 0 { 24648 return ErrInvalidLengthQuery 24649 } 24650 if (iNdEx + skippy) > l { 24651 return io.ErrUnexpectedEOF 24652 } 24653 iNdEx += skippy 24654 } 24655 } 24656 24657 if iNdEx > l { 24658 return io.ErrUnexpectedEOF 24659 } 24660 return nil 24661 } 24662 func (m *QuerySubaccountOrderMetadataRequest) Unmarshal(dAtA []byte) error { 24663 l := len(dAtA) 24664 iNdEx := 0 24665 for iNdEx < l { 24666 preIndex := iNdEx 24667 var wire uint64 24668 for shift := uint(0); ; shift += 7 { 24669 if shift >= 64 { 24670 return ErrIntOverflowQuery 24671 } 24672 if iNdEx >= l { 24673 return io.ErrUnexpectedEOF 24674 } 24675 b := dAtA[iNdEx] 24676 iNdEx++ 24677 wire |= uint64(b&0x7F) << shift 24678 if b < 0x80 { 24679 break 24680 } 24681 } 24682 fieldNum := int32(wire >> 3) 24683 wireType := int(wire & 0x7) 24684 if wireType == 4 { 24685 return fmt.Errorf("proto: QuerySubaccountOrderMetadataRequest: wiretype end group for non-group") 24686 } 24687 if fieldNum <= 0 { 24688 return fmt.Errorf("proto: QuerySubaccountOrderMetadataRequest: illegal tag %d (wire type %d)", fieldNum, wire) 24689 } 24690 switch fieldNum { 24691 case 1: 24692 if wireType != 2 { 24693 return fmt.Errorf("proto: wrong wireType = %d for field SubaccountId", wireType) 24694 } 24695 var stringLen uint64 24696 for shift := uint(0); ; shift += 7 { 24697 if shift >= 64 { 24698 return ErrIntOverflowQuery 24699 } 24700 if iNdEx >= l { 24701 return io.ErrUnexpectedEOF 24702 } 24703 b := dAtA[iNdEx] 24704 iNdEx++ 24705 stringLen |= uint64(b&0x7F) << shift 24706 if b < 0x80 { 24707 break 24708 } 24709 } 24710 intStringLen := int(stringLen) 24711 if intStringLen < 0 { 24712 return ErrInvalidLengthQuery 24713 } 24714 postIndex := iNdEx + intStringLen 24715 if postIndex < 0 { 24716 return ErrInvalidLengthQuery 24717 } 24718 if postIndex > l { 24719 return io.ErrUnexpectedEOF 24720 } 24721 m.SubaccountId = string(dAtA[iNdEx:postIndex]) 24722 iNdEx = postIndex 24723 default: 24724 iNdEx = preIndex 24725 skippy, err := skipQuery(dAtA[iNdEx:]) 24726 if err != nil { 24727 return err 24728 } 24729 if (skippy < 0) || (iNdEx+skippy) < 0 { 24730 return ErrInvalidLengthQuery 24731 } 24732 if (iNdEx + skippy) > l { 24733 return io.ErrUnexpectedEOF 24734 } 24735 iNdEx += skippy 24736 } 24737 } 24738 24739 if iNdEx > l { 24740 return io.ErrUnexpectedEOF 24741 } 24742 return nil 24743 } 24744 func (m *QuerySubaccountPositionsResponse) Unmarshal(dAtA []byte) error { 24745 l := len(dAtA) 24746 iNdEx := 0 24747 for iNdEx < l { 24748 preIndex := iNdEx 24749 var wire uint64 24750 for shift := uint(0); ; shift += 7 { 24751 if shift >= 64 { 24752 return ErrIntOverflowQuery 24753 } 24754 if iNdEx >= l { 24755 return io.ErrUnexpectedEOF 24756 } 24757 b := dAtA[iNdEx] 24758 iNdEx++ 24759 wire |= uint64(b&0x7F) << shift 24760 if b < 0x80 { 24761 break 24762 } 24763 } 24764 fieldNum := int32(wire >> 3) 24765 wireType := int(wire & 0x7) 24766 if wireType == 4 { 24767 return fmt.Errorf("proto: QuerySubaccountPositionsResponse: wiretype end group for non-group") 24768 } 24769 if fieldNum <= 0 { 24770 return fmt.Errorf("proto: QuerySubaccountPositionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 24771 } 24772 switch fieldNum { 24773 case 1: 24774 if wireType != 2 { 24775 return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) 24776 } 24777 var msglen int 24778 for shift := uint(0); ; shift += 7 { 24779 if shift >= 64 { 24780 return ErrIntOverflowQuery 24781 } 24782 if iNdEx >= l { 24783 return io.ErrUnexpectedEOF 24784 } 24785 b := dAtA[iNdEx] 24786 iNdEx++ 24787 msglen |= int(b&0x7F) << shift 24788 if b < 0x80 { 24789 break 24790 } 24791 } 24792 if msglen < 0 { 24793 return ErrInvalidLengthQuery 24794 } 24795 postIndex := iNdEx + msglen 24796 if postIndex < 0 { 24797 return ErrInvalidLengthQuery 24798 } 24799 if postIndex > l { 24800 return io.ErrUnexpectedEOF 24801 } 24802 m.State = append(m.State, DerivativePosition{}) 24803 if err := m.State[len(m.State)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 24804 return err 24805 } 24806 iNdEx = postIndex 24807 default: 24808 iNdEx = preIndex 24809 skippy, err := skipQuery(dAtA[iNdEx:]) 24810 if err != nil { 24811 return err 24812 } 24813 if (skippy < 0) || (iNdEx+skippy) < 0 { 24814 return ErrInvalidLengthQuery 24815 } 24816 if (iNdEx + skippy) > l { 24817 return io.ErrUnexpectedEOF 24818 } 24819 iNdEx += skippy 24820 } 24821 } 24822 24823 if iNdEx > l { 24824 return io.ErrUnexpectedEOF 24825 } 24826 return nil 24827 } 24828 func (m *QuerySubaccountPositionInMarketResponse) Unmarshal(dAtA []byte) error { 24829 l := len(dAtA) 24830 iNdEx := 0 24831 for iNdEx < l { 24832 preIndex := iNdEx 24833 var wire uint64 24834 for shift := uint(0); ; shift += 7 { 24835 if shift >= 64 { 24836 return ErrIntOverflowQuery 24837 } 24838 if iNdEx >= l { 24839 return io.ErrUnexpectedEOF 24840 } 24841 b := dAtA[iNdEx] 24842 iNdEx++ 24843 wire |= uint64(b&0x7F) << shift 24844 if b < 0x80 { 24845 break 24846 } 24847 } 24848 fieldNum := int32(wire >> 3) 24849 wireType := int(wire & 0x7) 24850 if wireType == 4 { 24851 return fmt.Errorf("proto: QuerySubaccountPositionInMarketResponse: wiretype end group for non-group") 24852 } 24853 if fieldNum <= 0 { 24854 return fmt.Errorf("proto: QuerySubaccountPositionInMarketResponse: illegal tag %d (wire type %d)", fieldNum, wire) 24855 } 24856 switch fieldNum { 24857 case 1: 24858 if wireType != 2 { 24859 return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) 24860 } 24861 var msglen int 24862 for shift := uint(0); ; shift += 7 { 24863 if shift >= 64 { 24864 return ErrIntOverflowQuery 24865 } 24866 if iNdEx >= l { 24867 return io.ErrUnexpectedEOF 24868 } 24869 b := dAtA[iNdEx] 24870 iNdEx++ 24871 msglen |= int(b&0x7F) << shift 24872 if b < 0x80 { 24873 break 24874 } 24875 } 24876 if msglen < 0 { 24877 return ErrInvalidLengthQuery 24878 } 24879 postIndex := iNdEx + msglen 24880 if postIndex < 0 { 24881 return ErrInvalidLengthQuery 24882 } 24883 if postIndex > l { 24884 return io.ErrUnexpectedEOF 24885 } 24886 if m.State == nil { 24887 m.State = &Position{} 24888 } 24889 if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 24890 return err 24891 } 24892 iNdEx = postIndex 24893 default: 24894 iNdEx = preIndex 24895 skippy, err := skipQuery(dAtA[iNdEx:]) 24896 if err != nil { 24897 return err 24898 } 24899 if (skippy < 0) || (iNdEx+skippy) < 0 { 24900 return ErrInvalidLengthQuery 24901 } 24902 if (iNdEx + skippy) > l { 24903 return io.ErrUnexpectedEOF 24904 } 24905 iNdEx += skippy 24906 } 24907 } 24908 24909 if iNdEx > l { 24910 return io.ErrUnexpectedEOF 24911 } 24912 return nil 24913 } 24914 func (m *EffectivePosition) Unmarshal(dAtA []byte) error { 24915 l := len(dAtA) 24916 iNdEx := 0 24917 for iNdEx < l { 24918 preIndex := iNdEx 24919 var wire uint64 24920 for shift := uint(0); ; shift += 7 { 24921 if shift >= 64 { 24922 return ErrIntOverflowQuery 24923 } 24924 if iNdEx >= l { 24925 return io.ErrUnexpectedEOF 24926 } 24927 b := dAtA[iNdEx] 24928 iNdEx++ 24929 wire |= uint64(b&0x7F) << shift 24930 if b < 0x80 { 24931 break 24932 } 24933 } 24934 fieldNum := int32(wire >> 3) 24935 wireType := int(wire & 0x7) 24936 if wireType == 4 { 24937 return fmt.Errorf("proto: EffectivePosition: wiretype end group for non-group") 24938 } 24939 if fieldNum <= 0 { 24940 return fmt.Errorf("proto: EffectivePosition: illegal tag %d (wire type %d)", fieldNum, wire) 24941 } 24942 switch fieldNum { 24943 case 1: 24944 if wireType != 0 { 24945 return fmt.Errorf("proto: wrong wireType = %d for field IsLong", wireType) 24946 } 24947 var v int 24948 for shift := uint(0); ; shift += 7 { 24949 if shift >= 64 { 24950 return ErrIntOverflowQuery 24951 } 24952 if iNdEx >= l { 24953 return io.ErrUnexpectedEOF 24954 } 24955 b := dAtA[iNdEx] 24956 iNdEx++ 24957 v |= int(b&0x7F) << shift 24958 if b < 0x80 { 24959 break 24960 } 24961 } 24962 m.IsLong = bool(v != 0) 24963 case 2: 24964 if wireType != 2 { 24965 return fmt.Errorf("proto: wrong wireType = %d for field Quantity", wireType) 24966 } 24967 var stringLen uint64 24968 for shift := uint(0); ; shift += 7 { 24969 if shift >= 64 { 24970 return ErrIntOverflowQuery 24971 } 24972 if iNdEx >= l { 24973 return io.ErrUnexpectedEOF 24974 } 24975 b := dAtA[iNdEx] 24976 iNdEx++ 24977 stringLen |= uint64(b&0x7F) << shift 24978 if b < 0x80 { 24979 break 24980 } 24981 } 24982 intStringLen := int(stringLen) 24983 if intStringLen < 0 { 24984 return ErrInvalidLengthQuery 24985 } 24986 postIndex := iNdEx + intStringLen 24987 if postIndex < 0 { 24988 return ErrInvalidLengthQuery 24989 } 24990 if postIndex > l { 24991 return io.ErrUnexpectedEOF 24992 } 24993 if err := m.Quantity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 24994 return err 24995 } 24996 iNdEx = postIndex 24997 case 3: 24998 if wireType != 2 { 24999 return fmt.Errorf("proto: wrong wireType = %d for field EntryPrice", wireType) 25000 } 25001 var stringLen uint64 25002 for shift := uint(0); ; shift += 7 { 25003 if shift >= 64 { 25004 return ErrIntOverflowQuery 25005 } 25006 if iNdEx >= l { 25007 return io.ErrUnexpectedEOF 25008 } 25009 b := dAtA[iNdEx] 25010 iNdEx++ 25011 stringLen |= uint64(b&0x7F) << shift 25012 if b < 0x80 { 25013 break 25014 } 25015 } 25016 intStringLen := int(stringLen) 25017 if intStringLen < 0 { 25018 return ErrInvalidLengthQuery 25019 } 25020 postIndex := iNdEx + intStringLen 25021 if postIndex < 0 { 25022 return ErrInvalidLengthQuery 25023 } 25024 if postIndex > l { 25025 return io.ErrUnexpectedEOF 25026 } 25027 if err := m.EntryPrice.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 25028 return err 25029 } 25030 iNdEx = postIndex 25031 case 4: 25032 if wireType != 2 { 25033 return fmt.Errorf("proto: wrong wireType = %d for field EffectiveMargin", wireType) 25034 } 25035 var stringLen uint64 25036 for shift := uint(0); ; shift += 7 { 25037 if shift >= 64 { 25038 return ErrIntOverflowQuery 25039 } 25040 if iNdEx >= l { 25041 return io.ErrUnexpectedEOF 25042 } 25043 b := dAtA[iNdEx] 25044 iNdEx++ 25045 stringLen |= uint64(b&0x7F) << shift 25046 if b < 0x80 { 25047 break 25048 } 25049 } 25050 intStringLen := int(stringLen) 25051 if intStringLen < 0 { 25052 return ErrInvalidLengthQuery 25053 } 25054 postIndex := iNdEx + intStringLen 25055 if postIndex < 0 { 25056 return ErrInvalidLengthQuery 25057 } 25058 if postIndex > l { 25059 return io.ErrUnexpectedEOF 25060 } 25061 if err := m.EffectiveMargin.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 25062 return err 25063 } 25064 iNdEx = postIndex 25065 default: 25066 iNdEx = preIndex 25067 skippy, err := skipQuery(dAtA[iNdEx:]) 25068 if err != nil { 25069 return err 25070 } 25071 if (skippy < 0) || (iNdEx+skippy) < 0 { 25072 return ErrInvalidLengthQuery 25073 } 25074 if (iNdEx + skippy) > l { 25075 return io.ErrUnexpectedEOF 25076 } 25077 iNdEx += skippy 25078 } 25079 } 25080 25081 if iNdEx > l { 25082 return io.ErrUnexpectedEOF 25083 } 25084 return nil 25085 } 25086 func (m *QuerySubaccountEffectivePositionInMarketResponse) Unmarshal(dAtA []byte) error { 25087 l := len(dAtA) 25088 iNdEx := 0 25089 for iNdEx < l { 25090 preIndex := iNdEx 25091 var wire uint64 25092 for shift := uint(0); ; shift += 7 { 25093 if shift >= 64 { 25094 return ErrIntOverflowQuery 25095 } 25096 if iNdEx >= l { 25097 return io.ErrUnexpectedEOF 25098 } 25099 b := dAtA[iNdEx] 25100 iNdEx++ 25101 wire |= uint64(b&0x7F) << shift 25102 if b < 0x80 { 25103 break 25104 } 25105 } 25106 fieldNum := int32(wire >> 3) 25107 wireType := int(wire & 0x7) 25108 if wireType == 4 { 25109 return fmt.Errorf("proto: QuerySubaccountEffectivePositionInMarketResponse: wiretype end group for non-group") 25110 } 25111 if fieldNum <= 0 { 25112 return fmt.Errorf("proto: QuerySubaccountEffectivePositionInMarketResponse: illegal tag %d (wire type %d)", fieldNum, wire) 25113 } 25114 switch fieldNum { 25115 case 1: 25116 if wireType != 2 { 25117 return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) 25118 } 25119 var msglen int 25120 for shift := uint(0); ; shift += 7 { 25121 if shift >= 64 { 25122 return ErrIntOverflowQuery 25123 } 25124 if iNdEx >= l { 25125 return io.ErrUnexpectedEOF 25126 } 25127 b := dAtA[iNdEx] 25128 iNdEx++ 25129 msglen |= int(b&0x7F) << shift 25130 if b < 0x80 { 25131 break 25132 } 25133 } 25134 if msglen < 0 { 25135 return ErrInvalidLengthQuery 25136 } 25137 postIndex := iNdEx + msglen 25138 if postIndex < 0 { 25139 return ErrInvalidLengthQuery 25140 } 25141 if postIndex > l { 25142 return io.ErrUnexpectedEOF 25143 } 25144 if m.State == nil { 25145 m.State = &EffectivePosition{} 25146 } 25147 if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 25148 return err 25149 } 25150 iNdEx = postIndex 25151 default: 25152 iNdEx = preIndex 25153 skippy, err := skipQuery(dAtA[iNdEx:]) 25154 if err != nil { 25155 return err 25156 } 25157 if (skippy < 0) || (iNdEx+skippy) < 0 { 25158 return ErrInvalidLengthQuery 25159 } 25160 if (iNdEx + skippy) > l { 25161 return io.ErrUnexpectedEOF 25162 } 25163 iNdEx += skippy 25164 } 25165 } 25166 25167 if iNdEx > l { 25168 return io.ErrUnexpectedEOF 25169 } 25170 return nil 25171 } 25172 func (m *QueryPerpetualMarketInfoRequest) Unmarshal(dAtA []byte) error { 25173 l := len(dAtA) 25174 iNdEx := 0 25175 for iNdEx < l { 25176 preIndex := iNdEx 25177 var wire uint64 25178 for shift := uint(0); ; shift += 7 { 25179 if shift >= 64 { 25180 return ErrIntOverflowQuery 25181 } 25182 if iNdEx >= l { 25183 return io.ErrUnexpectedEOF 25184 } 25185 b := dAtA[iNdEx] 25186 iNdEx++ 25187 wire |= uint64(b&0x7F) << shift 25188 if b < 0x80 { 25189 break 25190 } 25191 } 25192 fieldNum := int32(wire >> 3) 25193 wireType := int(wire & 0x7) 25194 if wireType == 4 { 25195 return fmt.Errorf("proto: QueryPerpetualMarketInfoRequest: wiretype end group for non-group") 25196 } 25197 if fieldNum <= 0 { 25198 return fmt.Errorf("proto: QueryPerpetualMarketInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) 25199 } 25200 switch fieldNum { 25201 case 1: 25202 if wireType != 2 { 25203 return fmt.Errorf("proto: wrong wireType = %d for field MarketId", wireType) 25204 } 25205 var stringLen uint64 25206 for shift := uint(0); ; shift += 7 { 25207 if shift >= 64 { 25208 return ErrIntOverflowQuery 25209 } 25210 if iNdEx >= l { 25211 return io.ErrUnexpectedEOF 25212 } 25213 b := dAtA[iNdEx] 25214 iNdEx++ 25215 stringLen |= uint64(b&0x7F) << shift 25216 if b < 0x80 { 25217 break 25218 } 25219 } 25220 intStringLen := int(stringLen) 25221 if intStringLen < 0 { 25222 return ErrInvalidLengthQuery 25223 } 25224 postIndex := iNdEx + intStringLen 25225 if postIndex < 0 { 25226 return ErrInvalidLengthQuery 25227 } 25228 if postIndex > l { 25229 return io.ErrUnexpectedEOF 25230 } 25231 m.MarketId = string(dAtA[iNdEx:postIndex]) 25232 iNdEx = postIndex 25233 default: 25234 iNdEx = preIndex 25235 skippy, err := skipQuery(dAtA[iNdEx:]) 25236 if err != nil { 25237 return err 25238 } 25239 if (skippy < 0) || (iNdEx+skippy) < 0 { 25240 return ErrInvalidLengthQuery 25241 } 25242 if (iNdEx + skippy) > l { 25243 return io.ErrUnexpectedEOF 25244 } 25245 iNdEx += skippy 25246 } 25247 } 25248 25249 if iNdEx > l { 25250 return io.ErrUnexpectedEOF 25251 } 25252 return nil 25253 } 25254 func (m *QueryPerpetualMarketInfoResponse) Unmarshal(dAtA []byte) error { 25255 l := len(dAtA) 25256 iNdEx := 0 25257 for iNdEx < l { 25258 preIndex := iNdEx 25259 var wire uint64 25260 for shift := uint(0); ; shift += 7 { 25261 if shift >= 64 { 25262 return ErrIntOverflowQuery 25263 } 25264 if iNdEx >= l { 25265 return io.ErrUnexpectedEOF 25266 } 25267 b := dAtA[iNdEx] 25268 iNdEx++ 25269 wire |= uint64(b&0x7F) << shift 25270 if b < 0x80 { 25271 break 25272 } 25273 } 25274 fieldNum := int32(wire >> 3) 25275 wireType := int(wire & 0x7) 25276 if wireType == 4 { 25277 return fmt.Errorf("proto: QueryPerpetualMarketInfoResponse: wiretype end group for non-group") 25278 } 25279 if fieldNum <= 0 { 25280 return fmt.Errorf("proto: QueryPerpetualMarketInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) 25281 } 25282 switch fieldNum { 25283 case 1: 25284 if wireType != 2 { 25285 return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) 25286 } 25287 var msglen int 25288 for shift := uint(0); ; shift += 7 { 25289 if shift >= 64 { 25290 return ErrIntOverflowQuery 25291 } 25292 if iNdEx >= l { 25293 return io.ErrUnexpectedEOF 25294 } 25295 b := dAtA[iNdEx] 25296 iNdEx++ 25297 msglen |= int(b&0x7F) << shift 25298 if b < 0x80 { 25299 break 25300 } 25301 } 25302 if msglen < 0 { 25303 return ErrInvalidLengthQuery 25304 } 25305 postIndex := iNdEx + msglen 25306 if postIndex < 0 { 25307 return ErrInvalidLengthQuery 25308 } 25309 if postIndex > l { 25310 return io.ErrUnexpectedEOF 25311 } 25312 if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 25313 return err 25314 } 25315 iNdEx = postIndex 25316 default: 25317 iNdEx = preIndex 25318 skippy, err := skipQuery(dAtA[iNdEx:]) 25319 if err != nil { 25320 return err 25321 } 25322 if (skippy < 0) || (iNdEx+skippy) < 0 { 25323 return ErrInvalidLengthQuery 25324 } 25325 if (iNdEx + skippy) > l { 25326 return io.ErrUnexpectedEOF 25327 } 25328 iNdEx += skippy 25329 } 25330 } 25331 25332 if iNdEx > l { 25333 return io.ErrUnexpectedEOF 25334 } 25335 return nil 25336 } 25337 func (m *QueryExpiryFuturesMarketInfoRequest) Unmarshal(dAtA []byte) error { 25338 l := len(dAtA) 25339 iNdEx := 0 25340 for iNdEx < l { 25341 preIndex := iNdEx 25342 var wire uint64 25343 for shift := uint(0); ; shift += 7 { 25344 if shift >= 64 { 25345 return ErrIntOverflowQuery 25346 } 25347 if iNdEx >= l { 25348 return io.ErrUnexpectedEOF 25349 } 25350 b := dAtA[iNdEx] 25351 iNdEx++ 25352 wire |= uint64(b&0x7F) << shift 25353 if b < 0x80 { 25354 break 25355 } 25356 } 25357 fieldNum := int32(wire >> 3) 25358 wireType := int(wire & 0x7) 25359 if wireType == 4 { 25360 return fmt.Errorf("proto: QueryExpiryFuturesMarketInfoRequest: wiretype end group for non-group") 25361 } 25362 if fieldNum <= 0 { 25363 return fmt.Errorf("proto: QueryExpiryFuturesMarketInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) 25364 } 25365 switch fieldNum { 25366 case 1: 25367 if wireType != 2 { 25368 return fmt.Errorf("proto: wrong wireType = %d for field MarketId", wireType) 25369 } 25370 var stringLen uint64 25371 for shift := uint(0); ; shift += 7 { 25372 if shift >= 64 { 25373 return ErrIntOverflowQuery 25374 } 25375 if iNdEx >= l { 25376 return io.ErrUnexpectedEOF 25377 } 25378 b := dAtA[iNdEx] 25379 iNdEx++ 25380 stringLen |= uint64(b&0x7F) << shift 25381 if b < 0x80 { 25382 break 25383 } 25384 } 25385 intStringLen := int(stringLen) 25386 if intStringLen < 0 { 25387 return ErrInvalidLengthQuery 25388 } 25389 postIndex := iNdEx + intStringLen 25390 if postIndex < 0 { 25391 return ErrInvalidLengthQuery 25392 } 25393 if postIndex > l { 25394 return io.ErrUnexpectedEOF 25395 } 25396 m.MarketId = string(dAtA[iNdEx:postIndex]) 25397 iNdEx = postIndex 25398 default: 25399 iNdEx = preIndex 25400 skippy, err := skipQuery(dAtA[iNdEx:]) 25401 if err != nil { 25402 return err 25403 } 25404 if (skippy < 0) || (iNdEx+skippy) < 0 { 25405 return ErrInvalidLengthQuery 25406 } 25407 if (iNdEx + skippy) > l { 25408 return io.ErrUnexpectedEOF 25409 } 25410 iNdEx += skippy 25411 } 25412 } 25413 25414 if iNdEx > l { 25415 return io.ErrUnexpectedEOF 25416 } 25417 return nil 25418 } 25419 func (m *QueryExpiryFuturesMarketInfoResponse) Unmarshal(dAtA []byte) error { 25420 l := len(dAtA) 25421 iNdEx := 0 25422 for iNdEx < l { 25423 preIndex := iNdEx 25424 var wire uint64 25425 for shift := uint(0); ; shift += 7 { 25426 if shift >= 64 { 25427 return ErrIntOverflowQuery 25428 } 25429 if iNdEx >= l { 25430 return io.ErrUnexpectedEOF 25431 } 25432 b := dAtA[iNdEx] 25433 iNdEx++ 25434 wire |= uint64(b&0x7F) << shift 25435 if b < 0x80 { 25436 break 25437 } 25438 } 25439 fieldNum := int32(wire >> 3) 25440 wireType := int(wire & 0x7) 25441 if wireType == 4 { 25442 return fmt.Errorf("proto: QueryExpiryFuturesMarketInfoResponse: wiretype end group for non-group") 25443 } 25444 if fieldNum <= 0 { 25445 return fmt.Errorf("proto: QueryExpiryFuturesMarketInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) 25446 } 25447 switch fieldNum { 25448 case 1: 25449 if wireType != 2 { 25450 return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) 25451 } 25452 var msglen int 25453 for shift := uint(0); ; shift += 7 { 25454 if shift >= 64 { 25455 return ErrIntOverflowQuery 25456 } 25457 if iNdEx >= l { 25458 return io.ErrUnexpectedEOF 25459 } 25460 b := dAtA[iNdEx] 25461 iNdEx++ 25462 msglen |= int(b&0x7F) << shift 25463 if b < 0x80 { 25464 break 25465 } 25466 } 25467 if msglen < 0 { 25468 return ErrInvalidLengthQuery 25469 } 25470 postIndex := iNdEx + msglen 25471 if postIndex < 0 { 25472 return ErrInvalidLengthQuery 25473 } 25474 if postIndex > l { 25475 return io.ErrUnexpectedEOF 25476 } 25477 if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 25478 return err 25479 } 25480 iNdEx = postIndex 25481 default: 25482 iNdEx = preIndex 25483 skippy, err := skipQuery(dAtA[iNdEx:]) 25484 if err != nil { 25485 return err 25486 } 25487 if (skippy < 0) || (iNdEx+skippy) < 0 { 25488 return ErrInvalidLengthQuery 25489 } 25490 if (iNdEx + skippy) > l { 25491 return io.ErrUnexpectedEOF 25492 } 25493 iNdEx += skippy 25494 } 25495 } 25496 25497 if iNdEx > l { 25498 return io.ErrUnexpectedEOF 25499 } 25500 return nil 25501 } 25502 func (m *QueryPerpetualMarketFundingRequest) Unmarshal(dAtA []byte) error { 25503 l := len(dAtA) 25504 iNdEx := 0 25505 for iNdEx < l { 25506 preIndex := iNdEx 25507 var wire uint64 25508 for shift := uint(0); ; shift += 7 { 25509 if shift >= 64 { 25510 return ErrIntOverflowQuery 25511 } 25512 if iNdEx >= l { 25513 return io.ErrUnexpectedEOF 25514 } 25515 b := dAtA[iNdEx] 25516 iNdEx++ 25517 wire |= uint64(b&0x7F) << shift 25518 if b < 0x80 { 25519 break 25520 } 25521 } 25522 fieldNum := int32(wire >> 3) 25523 wireType := int(wire & 0x7) 25524 if wireType == 4 { 25525 return fmt.Errorf("proto: QueryPerpetualMarketFundingRequest: wiretype end group for non-group") 25526 } 25527 if fieldNum <= 0 { 25528 return fmt.Errorf("proto: QueryPerpetualMarketFundingRequest: illegal tag %d (wire type %d)", fieldNum, wire) 25529 } 25530 switch fieldNum { 25531 case 1: 25532 if wireType != 2 { 25533 return fmt.Errorf("proto: wrong wireType = %d for field MarketId", wireType) 25534 } 25535 var stringLen uint64 25536 for shift := uint(0); ; shift += 7 { 25537 if shift >= 64 { 25538 return ErrIntOverflowQuery 25539 } 25540 if iNdEx >= l { 25541 return io.ErrUnexpectedEOF 25542 } 25543 b := dAtA[iNdEx] 25544 iNdEx++ 25545 stringLen |= uint64(b&0x7F) << shift 25546 if b < 0x80 { 25547 break 25548 } 25549 } 25550 intStringLen := int(stringLen) 25551 if intStringLen < 0 { 25552 return ErrInvalidLengthQuery 25553 } 25554 postIndex := iNdEx + intStringLen 25555 if postIndex < 0 { 25556 return ErrInvalidLengthQuery 25557 } 25558 if postIndex > l { 25559 return io.ErrUnexpectedEOF 25560 } 25561 m.MarketId = string(dAtA[iNdEx:postIndex]) 25562 iNdEx = postIndex 25563 default: 25564 iNdEx = preIndex 25565 skippy, err := skipQuery(dAtA[iNdEx:]) 25566 if err != nil { 25567 return err 25568 } 25569 if (skippy < 0) || (iNdEx+skippy) < 0 { 25570 return ErrInvalidLengthQuery 25571 } 25572 if (iNdEx + skippy) > l { 25573 return io.ErrUnexpectedEOF 25574 } 25575 iNdEx += skippy 25576 } 25577 } 25578 25579 if iNdEx > l { 25580 return io.ErrUnexpectedEOF 25581 } 25582 return nil 25583 } 25584 func (m *QueryPerpetualMarketFundingResponse) Unmarshal(dAtA []byte) error { 25585 l := len(dAtA) 25586 iNdEx := 0 25587 for iNdEx < l { 25588 preIndex := iNdEx 25589 var wire uint64 25590 for shift := uint(0); ; shift += 7 { 25591 if shift >= 64 { 25592 return ErrIntOverflowQuery 25593 } 25594 if iNdEx >= l { 25595 return io.ErrUnexpectedEOF 25596 } 25597 b := dAtA[iNdEx] 25598 iNdEx++ 25599 wire |= uint64(b&0x7F) << shift 25600 if b < 0x80 { 25601 break 25602 } 25603 } 25604 fieldNum := int32(wire >> 3) 25605 wireType := int(wire & 0x7) 25606 if wireType == 4 { 25607 return fmt.Errorf("proto: QueryPerpetualMarketFundingResponse: wiretype end group for non-group") 25608 } 25609 if fieldNum <= 0 { 25610 return fmt.Errorf("proto: QueryPerpetualMarketFundingResponse: illegal tag %d (wire type %d)", fieldNum, wire) 25611 } 25612 switch fieldNum { 25613 case 1: 25614 if wireType != 2 { 25615 return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) 25616 } 25617 var msglen int 25618 for shift := uint(0); ; shift += 7 { 25619 if shift >= 64 { 25620 return ErrIntOverflowQuery 25621 } 25622 if iNdEx >= l { 25623 return io.ErrUnexpectedEOF 25624 } 25625 b := dAtA[iNdEx] 25626 iNdEx++ 25627 msglen |= int(b&0x7F) << shift 25628 if b < 0x80 { 25629 break 25630 } 25631 } 25632 if msglen < 0 { 25633 return ErrInvalidLengthQuery 25634 } 25635 postIndex := iNdEx + msglen 25636 if postIndex < 0 { 25637 return ErrInvalidLengthQuery 25638 } 25639 if postIndex > l { 25640 return io.ErrUnexpectedEOF 25641 } 25642 if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 25643 return err 25644 } 25645 iNdEx = postIndex 25646 default: 25647 iNdEx = preIndex 25648 skippy, err := skipQuery(dAtA[iNdEx:]) 25649 if err != nil { 25650 return err 25651 } 25652 if (skippy < 0) || (iNdEx+skippy) < 0 { 25653 return ErrInvalidLengthQuery 25654 } 25655 if (iNdEx + skippy) > l { 25656 return io.ErrUnexpectedEOF 25657 } 25658 iNdEx += skippy 25659 } 25660 } 25661 25662 if iNdEx > l { 25663 return io.ErrUnexpectedEOF 25664 } 25665 return nil 25666 } 25667 func (m *QuerySubaccountOrderMetadataResponse) Unmarshal(dAtA []byte) error { 25668 l := len(dAtA) 25669 iNdEx := 0 25670 for iNdEx < l { 25671 preIndex := iNdEx 25672 var wire uint64 25673 for shift := uint(0); ; shift += 7 { 25674 if shift >= 64 { 25675 return ErrIntOverflowQuery 25676 } 25677 if iNdEx >= l { 25678 return io.ErrUnexpectedEOF 25679 } 25680 b := dAtA[iNdEx] 25681 iNdEx++ 25682 wire |= uint64(b&0x7F) << shift 25683 if b < 0x80 { 25684 break 25685 } 25686 } 25687 fieldNum := int32(wire >> 3) 25688 wireType := int(wire & 0x7) 25689 if wireType == 4 { 25690 return fmt.Errorf("proto: QuerySubaccountOrderMetadataResponse: wiretype end group for non-group") 25691 } 25692 if fieldNum <= 0 { 25693 return fmt.Errorf("proto: QuerySubaccountOrderMetadataResponse: illegal tag %d (wire type %d)", fieldNum, wire) 25694 } 25695 switch fieldNum { 25696 case 1: 25697 if wireType != 2 { 25698 return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) 25699 } 25700 var msglen int 25701 for shift := uint(0); ; shift += 7 { 25702 if shift >= 64 { 25703 return ErrIntOverflowQuery 25704 } 25705 if iNdEx >= l { 25706 return io.ErrUnexpectedEOF 25707 } 25708 b := dAtA[iNdEx] 25709 iNdEx++ 25710 msglen |= int(b&0x7F) << shift 25711 if b < 0x80 { 25712 break 25713 } 25714 } 25715 if msglen < 0 { 25716 return ErrInvalidLengthQuery 25717 } 25718 postIndex := iNdEx + msglen 25719 if postIndex < 0 { 25720 return ErrInvalidLengthQuery 25721 } 25722 if postIndex > l { 25723 return io.ErrUnexpectedEOF 25724 } 25725 m.Metadata = append(m.Metadata, SubaccountOrderbookMetadataWithMarket{}) 25726 if err := m.Metadata[len(m.Metadata)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 25727 return err 25728 } 25729 iNdEx = postIndex 25730 default: 25731 iNdEx = preIndex 25732 skippy, err := skipQuery(dAtA[iNdEx:]) 25733 if err != nil { 25734 return err 25735 } 25736 if (skippy < 0) || (iNdEx+skippy) < 0 { 25737 return ErrInvalidLengthQuery 25738 } 25739 if (iNdEx + skippy) > l { 25740 return io.ErrUnexpectedEOF 25741 } 25742 iNdEx += skippy 25743 } 25744 } 25745 25746 if iNdEx > l { 25747 return io.ErrUnexpectedEOF 25748 } 25749 return nil 25750 } 25751 func (m *QuerySubaccountTradeNonceResponse) Unmarshal(dAtA []byte) error { 25752 l := len(dAtA) 25753 iNdEx := 0 25754 for iNdEx < l { 25755 preIndex := iNdEx 25756 var wire uint64 25757 for shift := uint(0); ; shift += 7 { 25758 if shift >= 64 { 25759 return ErrIntOverflowQuery 25760 } 25761 if iNdEx >= l { 25762 return io.ErrUnexpectedEOF 25763 } 25764 b := dAtA[iNdEx] 25765 iNdEx++ 25766 wire |= uint64(b&0x7F) << shift 25767 if b < 0x80 { 25768 break 25769 } 25770 } 25771 fieldNum := int32(wire >> 3) 25772 wireType := int(wire & 0x7) 25773 if wireType == 4 { 25774 return fmt.Errorf("proto: QuerySubaccountTradeNonceResponse: wiretype end group for non-group") 25775 } 25776 if fieldNum <= 0 { 25777 return fmt.Errorf("proto: QuerySubaccountTradeNonceResponse: illegal tag %d (wire type %d)", fieldNum, wire) 25778 } 25779 switch fieldNum { 25780 case 1: 25781 if wireType != 0 { 25782 return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) 25783 } 25784 m.Nonce = 0 25785 for shift := uint(0); ; shift += 7 { 25786 if shift >= 64 { 25787 return ErrIntOverflowQuery 25788 } 25789 if iNdEx >= l { 25790 return io.ErrUnexpectedEOF 25791 } 25792 b := dAtA[iNdEx] 25793 iNdEx++ 25794 m.Nonce |= uint32(b&0x7F) << shift 25795 if b < 0x80 { 25796 break 25797 } 25798 } 25799 default: 25800 iNdEx = preIndex 25801 skippy, err := skipQuery(dAtA[iNdEx:]) 25802 if err != nil { 25803 return err 25804 } 25805 if (skippy < 0) || (iNdEx+skippy) < 0 { 25806 return ErrInvalidLengthQuery 25807 } 25808 if (iNdEx + skippy) > l { 25809 return io.ErrUnexpectedEOF 25810 } 25811 iNdEx += skippy 25812 } 25813 } 25814 25815 if iNdEx > l { 25816 return io.ErrUnexpectedEOF 25817 } 25818 return nil 25819 } 25820 func (m *QueryModuleStateRequest) Unmarshal(dAtA []byte) error { 25821 l := len(dAtA) 25822 iNdEx := 0 25823 for iNdEx < l { 25824 preIndex := iNdEx 25825 var wire uint64 25826 for shift := uint(0); ; shift += 7 { 25827 if shift >= 64 { 25828 return ErrIntOverflowQuery 25829 } 25830 if iNdEx >= l { 25831 return io.ErrUnexpectedEOF 25832 } 25833 b := dAtA[iNdEx] 25834 iNdEx++ 25835 wire |= uint64(b&0x7F) << shift 25836 if b < 0x80 { 25837 break 25838 } 25839 } 25840 fieldNum := int32(wire >> 3) 25841 wireType := int(wire & 0x7) 25842 if wireType == 4 { 25843 return fmt.Errorf("proto: QueryModuleStateRequest: wiretype end group for non-group") 25844 } 25845 if fieldNum <= 0 { 25846 return fmt.Errorf("proto: QueryModuleStateRequest: illegal tag %d (wire type %d)", fieldNum, wire) 25847 } 25848 switch fieldNum { 25849 default: 25850 iNdEx = preIndex 25851 skippy, err := skipQuery(dAtA[iNdEx:]) 25852 if err != nil { 25853 return err 25854 } 25855 if (skippy < 0) || (iNdEx+skippy) < 0 { 25856 return ErrInvalidLengthQuery 25857 } 25858 if (iNdEx + skippy) > l { 25859 return io.ErrUnexpectedEOF 25860 } 25861 iNdEx += skippy 25862 } 25863 } 25864 25865 if iNdEx > l { 25866 return io.ErrUnexpectedEOF 25867 } 25868 return nil 25869 } 25870 func (m *QueryModuleStateResponse) Unmarshal(dAtA []byte) error { 25871 l := len(dAtA) 25872 iNdEx := 0 25873 for iNdEx < l { 25874 preIndex := iNdEx 25875 var wire uint64 25876 for shift := uint(0); ; shift += 7 { 25877 if shift >= 64 { 25878 return ErrIntOverflowQuery 25879 } 25880 if iNdEx >= l { 25881 return io.ErrUnexpectedEOF 25882 } 25883 b := dAtA[iNdEx] 25884 iNdEx++ 25885 wire |= uint64(b&0x7F) << shift 25886 if b < 0x80 { 25887 break 25888 } 25889 } 25890 fieldNum := int32(wire >> 3) 25891 wireType := int(wire & 0x7) 25892 if wireType == 4 { 25893 return fmt.Errorf("proto: QueryModuleStateResponse: wiretype end group for non-group") 25894 } 25895 if fieldNum <= 0 { 25896 return fmt.Errorf("proto: QueryModuleStateResponse: illegal tag %d (wire type %d)", fieldNum, wire) 25897 } 25898 switch fieldNum { 25899 case 1: 25900 if wireType != 2 { 25901 return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) 25902 } 25903 var msglen int 25904 for shift := uint(0); ; shift += 7 { 25905 if shift >= 64 { 25906 return ErrIntOverflowQuery 25907 } 25908 if iNdEx >= l { 25909 return io.ErrUnexpectedEOF 25910 } 25911 b := dAtA[iNdEx] 25912 iNdEx++ 25913 msglen |= int(b&0x7F) << shift 25914 if b < 0x80 { 25915 break 25916 } 25917 } 25918 if msglen < 0 { 25919 return ErrInvalidLengthQuery 25920 } 25921 postIndex := iNdEx + msglen 25922 if postIndex < 0 { 25923 return ErrInvalidLengthQuery 25924 } 25925 if postIndex > l { 25926 return io.ErrUnexpectedEOF 25927 } 25928 if m.State == nil { 25929 m.State = &GenesisState{} 25930 } 25931 if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 25932 return err 25933 } 25934 iNdEx = postIndex 25935 default: 25936 iNdEx = preIndex 25937 skippy, err := skipQuery(dAtA[iNdEx:]) 25938 if err != nil { 25939 return err 25940 } 25941 if (skippy < 0) || (iNdEx+skippy) < 0 { 25942 return ErrInvalidLengthQuery 25943 } 25944 if (iNdEx + skippy) > l { 25945 return io.ErrUnexpectedEOF 25946 } 25947 iNdEx += skippy 25948 } 25949 } 25950 25951 if iNdEx > l { 25952 return io.ErrUnexpectedEOF 25953 } 25954 return nil 25955 } 25956 func (m *QueryPositionsRequest) Unmarshal(dAtA []byte) error { 25957 l := len(dAtA) 25958 iNdEx := 0 25959 for iNdEx < l { 25960 preIndex := iNdEx 25961 var wire uint64 25962 for shift := uint(0); ; shift += 7 { 25963 if shift >= 64 { 25964 return ErrIntOverflowQuery 25965 } 25966 if iNdEx >= l { 25967 return io.ErrUnexpectedEOF 25968 } 25969 b := dAtA[iNdEx] 25970 iNdEx++ 25971 wire |= uint64(b&0x7F) << shift 25972 if b < 0x80 { 25973 break 25974 } 25975 } 25976 fieldNum := int32(wire >> 3) 25977 wireType := int(wire & 0x7) 25978 if wireType == 4 { 25979 return fmt.Errorf("proto: QueryPositionsRequest: wiretype end group for non-group") 25980 } 25981 if fieldNum <= 0 { 25982 return fmt.Errorf("proto: QueryPositionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 25983 } 25984 switch fieldNum { 25985 default: 25986 iNdEx = preIndex 25987 skippy, err := skipQuery(dAtA[iNdEx:]) 25988 if err != nil { 25989 return err 25990 } 25991 if (skippy < 0) || (iNdEx+skippy) < 0 { 25992 return ErrInvalidLengthQuery 25993 } 25994 if (iNdEx + skippy) > l { 25995 return io.ErrUnexpectedEOF 25996 } 25997 iNdEx += skippy 25998 } 25999 } 26000 26001 if iNdEx > l { 26002 return io.ErrUnexpectedEOF 26003 } 26004 return nil 26005 } 26006 func (m *QueryPositionsResponse) Unmarshal(dAtA []byte) error { 26007 l := len(dAtA) 26008 iNdEx := 0 26009 for iNdEx < l { 26010 preIndex := iNdEx 26011 var wire uint64 26012 for shift := uint(0); ; shift += 7 { 26013 if shift >= 64 { 26014 return ErrIntOverflowQuery 26015 } 26016 if iNdEx >= l { 26017 return io.ErrUnexpectedEOF 26018 } 26019 b := dAtA[iNdEx] 26020 iNdEx++ 26021 wire |= uint64(b&0x7F) << shift 26022 if b < 0x80 { 26023 break 26024 } 26025 } 26026 fieldNum := int32(wire >> 3) 26027 wireType := int(wire & 0x7) 26028 if wireType == 4 { 26029 return fmt.Errorf("proto: QueryPositionsResponse: wiretype end group for non-group") 26030 } 26031 if fieldNum <= 0 { 26032 return fmt.Errorf("proto: QueryPositionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 26033 } 26034 switch fieldNum { 26035 case 1: 26036 if wireType != 2 { 26037 return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) 26038 } 26039 var msglen int 26040 for shift := uint(0); ; shift += 7 { 26041 if shift >= 64 { 26042 return ErrIntOverflowQuery 26043 } 26044 if iNdEx >= l { 26045 return io.ErrUnexpectedEOF 26046 } 26047 b := dAtA[iNdEx] 26048 iNdEx++ 26049 msglen |= int(b&0x7F) << shift 26050 if b < 0x80 { 26051 break 26052 } 26053 } 26054 if msglen < 0 { 26055 return ErrInvalidLengthQuery 26056 } 26057 postIndex := iNdEx + msglen 26058 if postIndex < 0 { 26059 return ErrInvalidLengthQuery 26060 } 26061 if postIndex > l { 26062 return io.ErrUnexpectedEOF 26063 } 26064 m.State = append(m.State, DerivativePosition{}) 26065 if err := m.State[len(m.State)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 26066 return err 26067 } 26068 iNdEx = postIndex 26069 default: 26070 iNdEx = preIndex 26071 skippy, err := skipQuery(dAtA[iNdEx:]) 26072 if err != nil { 26073 return err 26074 } 26075 if (skippy < 0) || (iNdEx+skippy) < 0 { 26076 return ErrInvalidLengthQuery 26077 } 26078 if (iNdEx + skippy) > l { 26079 return io.ErrUnexpectedEOF 26080 } 26081 iNdEx += skippy 26082 } 26083 } 26084 26085 if iNdEx > l { 26086 return io.ErrUnexpectedEOF 26087 } 26088 return nil 26089 } 26090 func (m *QueryTradeRewardPointsRequest) Unmarshal(dAtA []byte) error { 26091 l := len(dAtA) 26092 iNdEx := 0 26093 for iNdEx < l { 26094 preIndex := iNdEx 26095 var wire uint64 26096 for shift := uint(0); ; shift += 7 { 26097 if shift >= 64 { 26098 return ErrIntOverflowQuery 26099 } 26100 if iNdEx >= l { 26101 return io.ErrUnexpectedEOF 26102 } 26103 b := dAtA[iNdEx] 26104 iNdEx++ 26105 wire |= uint64(b&0x7F) << shift 26106 if b < 0x80 { 26107 break 26108 } 26109 } 26110 fieldNum := int32(wire >> 3) 26111 wireType := int(wire & 0x7) 26112 if wireType == 4 { 26113 return fmt.Errorf("proto: QueryTradeRewardPointsRequest: wiretype end group for non-group") 26114 } 26115 if fieldNum <= 0 { 26116 return fmt.Errorf("proto: QueryTradeRewardPointsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 26117 } 26118 switch fieldNum { 26119 case 1: 26120 if wireType != 2 { 26121 return fmt.Errorf("proto: wrong wireType = %d for field Accounts", wireType) 26122 } 26123 var stringLen uint64 26124 for shift := uint(0); ; shift += 7 { 26125 if shift >= 64 { 26126 return ErrIntOverflowQuery 26127 } 26128 if iNdEx >= l { 26129 return io.ErrUnexpectedEOF 26130 } 26131 b := dAtA[iNdEx] 26132 iNdEx++ 26133 stringLen |= uint64(b&0x7F) << shift 26134 if b < 0x80 { 26135 break 26136 } 26137 } 26138 intStringLen := int(stringLen) 26139 if intStringLen < 0 { 26140 return ErrInvalidLengthQuery 26141 } 26142 postIndex := iNdEx + intStringLen 26143 if postIndex < 0 { 26144 return ErrInvalidLengthQuery 26145 } 26146 if postIndex > l { 26147 return io.ErrUnexpectedEOF 26148 } 26149 m.Accounts = append(m.Accounts, string(dAtA[iNdEx:postIndex])) 26150 iNdEx = postIndex 26151 case 2: 26152 if wireType != 0 { 26153 return fmt.Errorf("proto: wrong wireType = %d for field PendingPoolTimestamp", wireType) 26154 } 26155 m.PendingPoolTimestamp = 0 26156 for shift := uint(0); ; shift += 7 { 26157 if shift >= 64 { 26158 return ErrIntOverflowQuery 26159 } 26160 if iNdEx >= l { 26161 return io.ErrUnexpectedEOF 26162 } 26163 b := dAtA[iNdEx] 26164 iNdEx++ 26165 m.PendingPoolTimestamp |= int64(b&0x7F) << shift 26166 if b < 0x80 { 26167 break 26168 } 26169 } 26170 default: 26171 iNdEx = preIndex 26172 skippy, err := skipQuery(dAtA[iNdEx:]) 26173 if err != nil { 26174 return err 26175 } 26176 if (skippy < 0) || (iNdEx+skippy) < 0 { 26177 return ErrInvalidLengthQuery 26178 } 26179 if (iNdEx + skippy) > l { 26180 return io.ErrUnexpectedEOF 26181 } 26182 iNdEx += skippy 26183 } 26184 } 26185 26186 if iNdEx > l { 26187 return io.ErrUnexpectedEOF 26188 } 26189 return nil 26190 } 26191 func (m *QueryTradeRewardPointsResponse) Unmarshal(dAtA []byte) error { 26192 l := len(dAtA) 26193 iNdEx := 0 26194 for iNdEx < l { 26195 preIndex := iNdEx 26196 var wire uint64 26197 for shift := uint(0); ; shift += 7 { 26198 if shift >= 64 { 26199 return ErrIntOverflowQuery 26200 } 26201 if iNdEx >= l { 26202 return io.ErrUnexpectedEOF 26203 } 26204 b := dAtA[iNdEx] 26205 iNdEx++ 26206 wire |= uint64(b&0x7F) << shift 26207 if b < 0x80 { 26208 break 26209 } 26210 } 26211 fieldNum := int32(wire >> 3) 26212 wireType := int(wire & 0x7) 26213 if wireType == 4 { 26214 return fmt.Errorf("proto: QueryTradeRewardPointsResponse: wiretype end group for non-group") 26215 } 26216 if fieldNum <= 0 { 26217 return fmt.Errorf("proto: QueryTradeRewardPointsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 26218 } 26219 switch fieldNum { 26220 case 1: 26221 if wireType != 2 { 26222 return fmt.Errorf("proto: wrong wireType = %d for field AccountTradeRewardPoints", wireType) 26223 } 26224 var stringLen uint64 26225 for shift := uint(0); ; shift += 7 { 26226 if shift >= 64 { 26227 return ErrIntOverflowQuery 26228 } 26229 if iNdEx >= l { 26230 return io.ErrUnexpectedEOF 26231 } 26232 b := dAtA[iNdEx] 26233 iNdEx++ 26234 stringLen |= uint64(b&0x7F) << shift 26235 if b < 0x80 { 26236 break 26237 } 26238 } 26239 intStringLen := int(stringLen) 26240 if intStringLen < 0 { 26241 return ErrInvalidLengthQuery 26242 } 26243 postIndex := iNdEx + intStringLen 26244 if postIndex < 0 { 26245 return ErrInvalidLengthQuery 26246 } 26247 if postIndex > l { 26248 return io.ErrUnexpectedEOF 26249 } 26250 var v cosmossdk_io_math.LegacyDec 26251 m.AccountTradeRewardPoints = append(m.AccountTradeRewardPoints, v) 26252 if err := m.AccountTradeRewardPoints[len(m.AccountTradeRewardPoints)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 26253 return err 26254 } 26255 iNdEx = postIndex 26256 default: 26257 iNdEx = preIndex 26258 skippy, err := skipQuery(dAtA[iNdEx:]) 26259 if err != nil { 26260 return err 26261 } 26262 if (skippy < 0) || (iNdEx+skippy) < 0 { 26263 return ErrInvalidLengthQuery 26264 } 26265 if (iNdEx + skippy) > l { 26266 return io.ErrUnexpectedEOF 26267 } 26268 iNdEx += skippy 26269 } 26270 } 26271 26272 if iNdEx > l { 26273 return io.ErrUnexpectedEOF 26274 } 26275 return nil 26276 } 26277 func (m *QueryTradeRewardCampaignRequest) Unmarshal(dAtA []byte) error { 26278 l := len(dAtA) 26279 iNdEx := 0 26280 for iNdEx < l { 26281 preIndex := iNdEx 26282 var wire uint64 26283 for shift := uint(0); ; shift += 7 { 26284 if shift >= 64 { 26285 return ErrIntOverflowQuery 26286 } 26287 if iNdEx >= l { 26288 return io.ErrUnexpectedEOF 26289 } 26290 b := dAtA[iNdEx] 26291 iNdEx++ 26292 wire |= uint64(b&0x7F) << shift 26293 if b < 0x80 { 26294 break 26295 } 26296 } 26297 fieldNum := int32(wire >> 3) 26298 wireType := int(wire & 0x7) 26299 if wireType == 4 { 26300 return fmt.Errorf("proto: QueryTradeRewardCampaignRequest: wiretype end group for non-group") 26301 } 26302 if fieldNum <= 0 { 26303 return fmt.Errorf("proto: QueryTradeRewardCampaignRequest: illegal tag %d (wire type %d)", fieldNum, wire) 26304 } 26305 switch fieldNum { 26306 default: 26307 iNdEx = preIndex 26308 skippy, err := skipQuery(dAtA[iNdEx:]) 26309 if err != nil { 26310 return err 26311 } 26312 if (skippy < 0) || (iNdEx+skippy) < 0 { 26313 return ErrInvalidLengthQuery 26314 } 26315 if (iNdEx + skippy) > l { 26316 return io.ErrUnexpectedEOF 26317 } 26318 iNdEx += skippy 26319 } 26320 } 26321 26322 if iNdEx > l { 26323 return io.ErrUnexpectedEOF 26324 } 26325 return nil 26326 } 26327 func (m *QueryTradeRewardCampaignResponse) Unmarshal(dAtA []byte) error { 26328 l := len(dAtA) 26329 iNdEx := 0 26330 for iNdEx < l { 26331 preIndex := iNdEx 26332 var wire uint64 26333 for shift := uint(0); ; shift += 7 { 26334 if shift >= 64 { 26335 return ErrIntOverflowQuery 26336 } 26337 if iNdEx >= l { 26338 return io.ErrUnexpectedEOF 26339 } 26340 b := dAtA[iNdEx] 26341 iNdEx++ 26342 wire |= uint64(b&0x7F) << shift 26343 if b < 0x80 { 26344 break 26345 } 26346 } 26347 fieldNum := int32(wire >> 3) 26348 wireType := int(wire & 0x7) 26349 if wireType == 4 { 26350 return fmt.Errorf("proto: QueryTradeRewardCampaignResponse: wiretype end group for non-group") 26351 } 26352 if fieldNum <= 0 { 26353 return fmt.Errorf("proto: QueryTradeRewardCampaignResponse: illegal tag %d (wire type %d)", fieldNum, wire) 26354 } 26355 switch fieldNum { 26356 case 1: 26357 if wireType != 2 { 26358 return fmt.Errorf("proto: wrong wireType = %d for field TradingRewardCampaignInfo", wireType) 26359 } 26360 var msglen int 26361 for shift := uint(0); ; shift += 7 { 26362 if shift >= 64 { 26363 return ErrIntOverflowQuery 26364 } 26365 if iNdEx >= l { 26366 return io.ErrUnexpectedEOF 26367 } 26368 b := dAtA[iNdEx] 26369 iNdEx++ 26370 msglen |= int(b&0x7F) << shift 26371 if b < 0x80 { 26372 break 26373 } 26374 } 26375 if msglen < 0 { 26376 return ErrInvalidLengthQuery 26377 } 26378 postIndex := iNdEx + msglen 26379 if postIndex < 0 { 26380 return ErrInvalidLengthQuery 26381 } 26382 if postIndex > l { 26383 return io.ErrUnexpectedEOF 26384 } 26385 if m.TradingRewardCampaignInfo == nil { 26386 m.TradingRewardCampaignInfo = &TradingRewardCampaignInfo{} 26387 } 26388 if err := m.TradingRewardCampaignInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 26389 return err 26390 } 26391 iNdEx = postIndex 26392 case 2: 26393 if wireType != 2 { 26394 return fmt.Errorf("proto: wrong wireType = %d for field TradingRewardPoolCampaignSchedule", wireType) 26395 } 26396 var msglen int 26397 for shift := uint(0); ; shift += 7 { 26398 if shift >= 64 { 26399 return ErrIntOverflowQuery 26400 } 26401 if iNdEx >= l { 26402 return io.ErrUnexpectedEOF 26403 } 26404 b := dAtA[iNdEx] 26405 iNdEx++ 26406 msglen |= int(b&0x7F) << shift 26407 if b < 0x80 { 26408 break 26409 } 26410 } 26411 if msglen < 0 { 26412 return ErrInvalidLengthQuery 26413 } 26414 postIndex := iNdEx + msglen 26415 if postIndex < 0 { 26416 return ErrInvalidLengthQuery 26417 } 26418 if postIndex > l { 26419 return io.ErrUnexpectedEOF 26420 } 26421 m.TradingRewardPoolCampaignSchedule = append(m.TradingRewardPoolCampaignSchedule, &CampaignRewardPool{}) 26422 if err := m.TradingRewardPoolCampaignSchedule[len(m.TradingRewardPoolCampaignSchedule)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 26423 return err 26424 } 26425 iNdEx = postIndex 26426 case 3: 26427 if wireType != 2 { 26428 return fmt.Errorf("proto: wrong wireType = %d for field TotalTradeRewardPoints", wireType) 26429 } 26430 var stringLen uint64 26431 for shift := uint(0); ; shift += 7 { 26432 if shift >= 64 { 26433 return ErrIntOverflowQuery 26434 } 26435 if iNdEx >= l { 26436 return io.ErrUnexpectedEOF 26437 } 26438 b := dAtA[iNdEx] 26439 iNdEx++ 26440 stringLen |= uint64(b&0x7F) << shift 26441 if b < 0x80 { 26442 break 26443 } 26444 } 26445 intStringLen := int(stringLen) 26446 if intStringLen < 0 { 26447 return ErrInvalidLengthQuery 26448 } 26449 postIndex := iNdEx + intStringLen 26450 if postIndex < 0 { 26451 return ErrInvalidLengthQuery 26452 } 26453 if postIndex > l { 26454 return io.ErrUnexpectedEOF 26455 } 26456 if err := m.TotalTradeRewardPoints.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 26457 return err 26458 } 26459 iNdEx = postIndex 26460 case 4: 26461 if wireType != 2 { 26462 return fmt.Errorf("proto: wrong wireType = %d for field PendingTradingRewardPoolCampaignSchedule", wireType) 26463 } 26464 var msglen int 26465 for shift := uint(0); ; shift += 7 { 26466 if shift >= 64 { 26467 return ErrIntOverflowQuery 26468 } 26469 if iNdEx >= l { 26470 return io.ErrUnexpectedEOF 26471 } 26472 b := dAtA[iNdEx] 26473 iNdEx++ 26474 msglen |= int(b&0x7F) << shift 26475 if b < 0x80 { 26476 break 26477 } 26478 } 26479 if msglen < 0 { 26480 return ErrInvalidLengthQuery 26481 } 26482 postIndex := iNdEx + msglen 26483 if postIndex < 0 { 26484 return ErrInvalidLengthQuery 26485 } 26486 if postIndex > l { 26487 return io.ErrUnexpectedEOF 26488 } 26489 m.PendingTradingRewardPoolCampaignSchedule = append(m.PendingTradingRewardPoolCampaignSchedule, &CampaignRewardPool{}) 26490 if err := m.PendingTradingRewardPoolCampaignSchedule[len(m.PendingTradingRewardPoolCampaignSchedule)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 26491 return err 26492 } 26493 iNdEx = postIndex 26494 case 5: 26495 if wireType != 2 { 26496 return fmt.Errorf("proto: wrong wireType = %d for field PendingTotalTradeRewardPoints", wireType) 26497 } 26498 var stringLen uint64 26499 for shift := uint(0); ; shift += 7 { 26500 if shift >= 64 { 26501 return ErrIntOverflowQuery 26502 } 26503 if iNdEx >= l { 26504 return io.ErrUnexpectedEOF 26505 } 26506 b := dAtA[iNdEx] 26507 iNdEx++ 26508 stringLen |= uint64(b&0x7F) << shift 26509 if b < 0x80 { 26510 break 26511 } 26512 } 26513 intStringLen := int(stringLen) 26514 if intStringLen < 0 { 26515 return ErrInvalidLengthQuery 26516 } 26517 postIndex := iNdEx + intStringLen 26518 if postIndex < 0 { 26519 return ErrInvalidLengthQuery 26520 } 26521 if postIndex > l { 26522 return io.ErrUnexpectedEOF 26523 } 26524 var v cosmossdk_io_math.LegacyDec 26525 m.PendingTotalTradeRewardPoints = append(m.PendingTotalTradeRewardPoints, v) 26526 if err := m.PendingTotalTradeRewardPoints[len(m.PendingTotalTradeRewardPoints)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 26527 return err 26528 } 26529 iNdEx = postIndex 26530 default: 26531 iNdEx = preIndex 26532 skippy, err := skipQuery(dAtA[iNdEx:]) 26533 if err != nil { 26534 return err 26535 } 26536 if (skippy < 0) || (iNdEx+skippy) < 0 { 26537 return ErrInvalidLengthQuery 26538 } 26539 if (iNdEx + skippy) > l { 26540 return io.ErrUnexpectedEOF 26541 } 26542 iNdEx += skippy 26543 } 26544 } 26545 26546 if iNdEx > l { 26547 return io.ErrUnexpectedEOF 26548 } 26549 return nil 26550 } 26551 func (m *QueryIsOptedOutOfRewardsRequest) Unmarshal(dAtA []byte) error { 26552 l := len(dAtA) 26553 iNdEx := 0 26554 for iNdEx < l { 26555 preIndex := iNdEx 26556 var wire uint64 26557 for shift := uint(0); ; shift += 7 { 26558 if shift >= 64 { 26559 return ErrIntOverflowQuery 26560 } 26561 if iNdEx >= l { 26562 return io.ErrUnexpectedEOF 26563 } 26564 b := dAtA[iNdEx] 26565 iNdEx++ 26566 wire |= uint64(b&0x7F) << shift 26567 if b < 0x80 { 26568 break 26569 } 26570 } 26571 fieldNum := int32(wire >> 3) 26572 wireType := int(wire & 0x7) 26573 if wireType == 4 { 26574 return fmt.Errorf("proto: QueryIsOptedOutOfRewardsRequest: wiretype end group for non-group") 26575 } 26576 if fieldNum <= 0 { 26577 return fmt.Errorf("proto: QueryIsOptedOutOfRewardsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 26578 } 26579 switch fieldNum { 26580 case 1: 26581 if wireType != 2 { 26582 return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) 26583 } 26584 var stringLen uint64 26585 for shift := uint(0); ; shift += 7 { 26586 if shift >= 64 { 26587 return ErrIntOverflowQuery 26588 } 26589 if iNdEx >= l { 26590 return io.ErrUnexpectedEOF 26591 } 26592 b := dAtA[iNdEx] 26593 iNdEx++ 26594 stringLen |= uint64(b&0x7F) << shift 26595 if b < 0x80 { 26596 break 26597 } 26598 } 26599 intStringLen := int(stringLen) 26600 if intStringLen < 0 { 26601 return ErrInvalidLengthQuery 26602 } 26603 postIndex := iNdEx + intStringLen 26604 if postIndex < 0 { 26605 return ErrInvalidLengthQuery 26606 } 26607 if postIndex > l { 26608 return io.ErrUnexpectedEOF 26609 } 26610 m.Account = string(dAtA[iNdEx:postIndex]) 26611 iNdEx = postIndex 26612 default: 26613 iNdEx = preIndex 26614 skippy, err := skipQuery(dAtA[iNdEx:]) 26615 if err != nil { 26616 return err 26617 } 26618 if (skippy < 0) || (iNdEx+skippy) < 0 { 26619 return ErrInvalidLengthQuery 26620 } 26621 if (iNdEx + skippy) > l { 26622 return io.ErrUnexpectedEOF 26623 } 26624 iNdEx += skippy 26625 } 26626 } 26627 26628 if iNdEx > l { 26629 return io.ErrUnexpectedEOF 26630 } 26631 return nil 26632 } 26633 func (m *QueryIsOptedOutOfRewardsResponse) Unmarshal(dAtA []byte) error { 26634 l := len(dAtA) 26635 iNdEx := 0 26636 for iNdEx < l { 26637 preIndex := iNdEx 26638 var wire uint64 26639 for shift := uint(0); ; shift += 7 { 26640 if shift >= 64 { 26641 return ErrIntOverflowQuery 26642 } 26643 if iNdEx >= l { 26644 return io.ErrUnexpectedEOF 26645 } 26646 b := dAtA[iNdEx] 26647 iNdEx++ 26648 wire |= uint64(b&0x7F) << shift 26649 if b < 0x80 { 26650 break 26651 } 26652 } 26653 fieldNum := int32(wire >> 3) 26654 wireType := int(wire & 0x7) 26655 if wireType == 4 { 26656 return fmt.Errorf("proto: QueryIsOptedOutOfRewardsResponse: wiretype end group for non-group") 26657 } 26658 if fieldNum <= 0 { 26659 return fmt.Errorf("proto: QueryIsOptedOutOfRewardsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 26660 } 26661 switch fieldNum { 26662 case 1: 26663 if wireType != 0 { 26664 return fmt.Errorf("proto: wrong wireType = %d for field IsOptedOut", wireType) 26665 } 26666 var v int 26667 for shift := uint(0); ; shift += 7 { 26668 if shift >= 64 { 26669 return ErrIntOverflowQuery 26670 } 26671 if iNdEx >= l { 26672 return io.ErrUnexpectedEOF 26673 } 26674 b := dAtA[iNdEx] 26675 iNdEx++ 26676 v |= int(b&0x7F) << shift 26677 if b < 0x80 { 26678 break 26679 } 26680 } 26681 m.IsOptedOut = bool(v != 0) 26682 default: 26683 iNdEx = preIndex 26684 skippy, err := skipQuery(dAtA[iNdEx:]) 26685 if err != nil { 26686 return err 26687 } 26688 if (skippy < 0) || (iNdEx+skippy) < 0 { 26689 return ErrInvalidLengthQuery 26690 } 26691 if (iNdEx + skippy) > l { 26692 return io.ErrUnexpectedEOF 26693 } 26694 iNdEx += skippy 26695 } 26696 } 26697 26698 if iNdEx > l { 26699 return io.ErrUnexpectedEOF 26700 } 26701 return nil 26702 } 26703 func (m *QueryOptedOutOfRewardsAccountsRequest) Unmarshal(dAtA []byte) error { 26704 l := len(dAtA) 26705 iNdEx := 0 26706 for iNdEx < l { 26707 preIndex := iNdEx 26708 var wire uint64 26709 for shift := uint(0); ; shift += 7 { 26710 if shift >= 64 { 26711 return ErrIntOverflowQuery 26712 } 26713 if iNdEx >= l { 26714 return io.ErrUnexpectedEOF 26715 } 26716 b := dAtA[iNdEx] 26717 iNdEx++ 26718 wire |= uint64(b&0x7F) << shift 26719 if b < 0x80 { 26720 break 26721 } 26722 } 26723 fieldNum := int32(wire >> 3) 26724 wireType := int(wire & 0x7) 26725 if wireType == 4 { 26726 return fmt.Errorf("proto: QueryOptedOutOfRewardsAccountsRequest: wiretype end group for non-group") 26727 } 26728 if fieldNum <= 0 { 26729 return fmt.Errorf("proto: QueryOptedOutOfRewardsAccountsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 26730 } 26731 switch fieldNum { 26732 default: 26733 iNdEx = preIndex 26734 skippy, err := skipQuery(dAtA[iNdEx:]) 26735 if err != nil { 26736 return err 26737 } 26738 if (skippy < 0) || (iNdEx+skippy) < 0 { 26739 return ErrInvalidLengthQuery 26740 } 26741 if (iNdEx + skippy) > l { 26742 return io.ErrUnexpectedEOF 26743 } 26744 iNdEx += skippy 26745 } 26746 } 26747 26748 if iNdEx > l { 26749 return io.ErrUnexpectedEOF 26750 } 26751 return nil 26752 } 26753 func (m *QueryOptedOutOfRewardsAccountsResponse) Unmarshal(dAtA []byte) error { 26754 l := len(dAtA) 26755 iNdEx := 0 26756 for iNdEx < l { 26757 preIndex := iNdEx 26758 var wire uint64 26759 for shift := uint(0); ; shift += 7 { 26760 if shift >= 64 { 26761 return ErrIntOverflowQuery 26762 } 26763 if iNdEx >= l { 26764 return io.ErrUnexpectedEOF 26765 } 26766 b := dAtA[iNdEx] 26767 iNdEx++ 26768 wire |= uint64(b&0x7F) << shift 26769 if b < 0x80 { 26770 break 26771 } 26772 } 26773 fieldNum := int32(wire >> 3) 26774 wireType := int(wire & 0x7) 26775 if wireType == 4 { 26776 return fmt.Errorf("proto: QueryOptedOutOfRewardsAccountsResponse: wiretype end group for non-group") 26777 } 26778 if fieldNum <= 0 { 26779 return fmt.Errorf("proto: QueryOptedOutOfRewardsAccountsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 26780 } 26781 switch fieldNum { 26782 case 1: 26783 if wireType != 2 { 26784 return fmt.Errorf("proto: wrong wireType = %d for field Accounts", wireType) 26785 } 26786 var stringLen uint64 26787 for shift := uint(0); ; shift += 7 { 26788 if shift >= 64 { 26789 return ErrIntOverflowQuery 26790 } 26791 if iNdEx >= l { 26792 return io.ErrUnexpectedEOF 26793 } 26794 b := dAtA[iNdEx] 26795 iNdEx++ 26796 stringLen |= uint64(b&0x7F) << shift 26797 if b < 0x80 { 26798 break 26799 } 26800 } 26801 intStringLen := int(stringLen) 26802 if intStringLen < 0 { 26803 return ErrInvalidLengthQuery 26804 } 26805 postIndex := iNdEx + intStringLen 26806 if postIndex < 0 { 26807 return ErrInvalidLengthQuery 26808 } 26809 if postIndex > l { 26810 return io.ErrUnexpectedEOF 26811 } 26812 m.Accounts = append(m.Accounts, string(dAtA[iNdEx:postIndex])) 26813 iNdEx = postIndex 26814 default: 26815 iNdEx = preIndex 26816 skippy, err := skipQuery(dAtA[iNdEx:]) 26817 if err != nil { 26818 return err 26819 } 26820 if (skippy < 0) || (iNdEx+skippy) < 0 { 26821 return ErrInvalidLengthQuery 26822 } 26823 if (iNdEx + skippy) > l { 26824 return io.ErrUnexpectedEOF 26825 } 26826 iNdEx += skippy 26827 } 26828 } 26829 26830 if iNdEx > l { 26831 return io.ErrUnexpectedEOF 26832 } 26833 return nil 26834 } 26835 func (m *QueryFeeDiscountAccountInfoRequest) Unmarshal(dAtA []byte) error { 26836 l := len(dAtA) 26837 iNdEx := 0 26838 for iNdEx < l { 26839 preIndex := iNdEx 26840 var wire uint64 26841 for shift := uint(0); ; shift += 7 { 26842 if shift >= 64 { 26843 return ErrIntOverflowQuery 26844 } 26845 if iNdEx >= l { 26846 return io.ErrUnexpectedEOF 26847 } 26848 b := dAtA[iNdEx] 26849 iNdEx++ 26850 wire |= uint64(b&0x7F) << shift 26851 if b < 0x80 { 26852 break 26853 } 26854 } 26855 fieldNum := int32(wire >> 3) 26856 wireType := int(wire & 0x7) 26857 if wireType == 4 { 26858 return fmt.Errorf("proto: QueryFeeDiscountAccountInfoRequest: wiretype end group for non-group") 26859 } 26860 if fieldNum <= 0 { 26861 return fmt.Errorf("proto: QueryFeeDiscountAccountInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) 26862 } 26863 switch fieldNum { 26864 case 1: 26865 if wireType != 2 { 26866 return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) 26867 } 26868 var stringLen uint64 26869 for shift := uint(0); ; shift += 7 { 26870 if shift >= 64 { 26871 return ErrIntOverflowQuery 26872 } 26873 if iNdEx >= l { 26874 return io.ErrUnexpectedEOF 26875 } 26876 b := dAtA[iNdEx] 26877 iNdEx++ 26878 stringLen |= uint64(b&0x7F) << shift 26879 if b < 0x80 { 26880 break 26881 } 26882 } 26883 intStringLen := int(stringLen) 26884 if intStringLen < 0 { 26885 return ErrInvalidLengthQuery 26886 } 26887 postIndex := iNdEx + intStringLen 26888 if postIndex < 0 { 26889 return ErrInvalidLengthQuery 26890 } 26891 if postIndex > l { 26892 return io.ErrUnexpectedEOF 26893 } 26894 m.Account = string(dAtA[iNdEx:postIndex]) 26895 iNdEx = postIndex 26896 default: 26897 iNdEx = preIndex 26898 skippy, err := skipQuery(dAtA[iNdEx:]) 26899 if err != nil { 26900 return err 26901 } 26902 if (skippy < 0) || (iNdEx+skippy) < 0 { 26903 return ErrInvalidLengthQuery 26904 } 26905 if (iNdEx + skippy) > l { 26906 return io.ErrUnexpectedEOF 26907 } 26908 iNdEx += skippy 26909 } 26910 } 26911 26912 if iNdEx > l { 26913 return io.ErrUnexpectedEOF 26914 } 26915 return nil 26916 } 26917 func (m *QueryFeeDiscountAccountInfoResponse) Unmarshal(dAtA []byte) error { 26918 l := len(dAtA) 26919 iNdEx := 0 26920 for iNdEx < l { 26921 preIndex := iNdEx 26922 var wire uint64 26923 for shift := uint(0); ; shift += 7 { 26924 if shift >= 64 { 26925 return ErrIntOverflowQuery 26926 } 26927 if iNdEx >= l { 26928 return io.ErrUnexpectedEOF 26929 } 26930 b := dAtA[iNdEx] 26931 iNdEx++ 26932 wire |= uint64(b&0x7F) << shift 26933 if b < 0x80 { 26934 break 26935 } 26936 } 26937 fieldNum := int32(wire >> 3) 26938 wireType := int(wire & 0x7) 26939 if wireType == 4 { 26940 return fmt.Errorf("proto: QueryFeeDiscountAccountInfoResponse: wiretype end group for non-group") 26941 } 26942 if fieldNum <= 0 { 26943 return fmt.Errorf("proto: QueryFeeDiscountAccountInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) 26944 } 26945 switch fieldNum { 26946 case 1: 26947 if wireType != 0 { 26948 return fmt.Errorf("proto: wrong wireType = %d for field TierLevel", wireType) 26949 } 26950 m.TierLevel = 0 26951 for shift := uint(0); ; shift += 7 { 26952 if shift >= 64 { 26953 return ErrIntOverflowQuery 26954 } 26955 if iNdEx >= l { 26956 return io.ErrUnexpectedEOF 26957 } 26958 b := dAtA[iNdEx] 26959 iNdEx++ 26960 m.TierLevel |= uint64(b&0x7F) << shift 26961 if b < 0x80 { 26962 break 26963 } 26964 } 26965 case 2: 26966 if wireType != 2 { 26967 return fmt.Errorf("proto: wrong wireType = %d for field AccountInfo", wireType) 26968 } 26969 var msglen int 26970 for shift := uint(0); ; shift += 7 { 26971 if shift >= 64 { 26972 return ErrIntOverflowQuery 26973 } 26974 if iNdEx >= l { 26975 return io.ErrUnexpectedEOF 26976 } 26977 b := dAtA[iNdEx] 26978 iNdEx++ 26979 msglen |= int(b&0x7F) << shift 26980 if b < 0x80 { 26981 break 26982 } 26983 } 26984 if msglen < 0 { 26985 return ErrInvalidLengthQuery 26986 } 26987 postIndex := iNdEx + msglen 26988 if postIndex < 0 { 26989 return ErrInvalidLengthQuery 26990 } 26991 if postIndex > l { 26992 return io.ErrUnexpectedEOF 26993 } 26994 if m.AccountInfo == nil { 26995 m.AccountInfo = &FeeDiscountTierInfo{} 26996 } 26997 if err := m.AccountInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 26998 return err 26999 } 27000 iNdEx = postIndex 27001 case 3: 27002 if wireType != 2 { 27003 return fmt.Errorf("proto: wrong wireType = %d for field AccountTtl", wireType) 27004 } 27005 var msglen int 27006 for shift := uint(0); ; shift += 7 { 27007 if shift >= 64 { 27008 return ErrIntOverflowQuery 27009 } 27010 if iNdEx >= l { 27011 return io.ErrUnexpectedEOF 27012 } 27013 b := dAtA[iNdEx] 27014 iNdEx++ 27015 msglen |= int(b&0x7F) << shift 27016 if b < 0x80 { 27017 break 27018 } 27019 } 27020 if msglen < 0 { 27021 return ErrInvalidLengthQuery 27022 } 27023 postIndex := iNdEx + msglen 27024 if postIndex < 0 { 27025 return ErrInvalidLengthQuery 27026 } 27027 if postIndex > l { 27028 return io.ErrUnexpectedEOF 27029 } 27030 if m.AccountTtl == nil { 27031 m.AccountTtl = &FeeDiscountTierTTL{} 27032 } 27033 if err := m.AccountTtl.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 27034 return err 27035 } 27036 iNdEx = postIndex 27037 default: 27038 iNdEx = preIndex 27039 skippy, err := skipQuery(dAtA[iNdEx:]) 27040 if err != nil { 27041 return err 27042 } 27043 if (skippy < 0) || (iNdEx+skippy) < 0 { 27044 return ErrInvalidLengthQuery 27045 } 27046 if (iNdEx + skippy) > l { 27047 return io.ErrUnexpectedEOF 27048 } 27049 iNdEx += skippy 27050 } 27051 } 27052 27053 if iNdEx > l { 27054 return io.ErrUnexpectedEOF 27055 } 27056 return nil 27057 } 27058 func (m *QueryFeeDiscountScheduleRequest) Unmarshal(dAtA []byte) error { 27059 l := len(dAtA) 27060 iNdEx := 0 27061 for iNdEx < l { 27062 preIndex := iNdEx 27063 var wire uint64 27064 for shift := uint(0); ; shift += 7 { 27065 if shift >= 64 { 27066 return ErrIntOverflowQuery 27067 } 27068 if iNdEx >= l { 27069 return io.ErrUnexpectedEOF 27070 } 27071 b := dAtA[iNdEx] 27072 iNdEx++ 27073 wire |= uint64(b&0x7F) << shift 27074 if b < 0x80 { 27075 break 27076 } 27077 } 27078 fieldNum := int32(wire >> 3) 27079 wireType := int(wire & 0x7) 27080 if wireType == 4 { 27081 return fmt.Errorf("proto: QueryFeeDiscountScheduleRequest: wiretype end group for non-group") 27082 } 27083 if fieldNum <= 0 { 27084 return fmt.Errorf("proto: QueryFeeDiscountScheduleRequest: illegal tag %d (wire type %d)", fieldNum, wire) 27085 } 27086 switch fieldNum { 27087 default: 27088 iNdEx = preIndex 27089 skippy, err := skipQuery(dAtA[iNdEx:]) 27090 if err != nil { 27091 return err 27092 } 27093 if (skippy < 0) || (iNdEx+skippy) < 0 { 27094 return ErrInvalidLengthQuery 27095 } 27096 if (iNdEx + skippy) > l { 27097 return io.ErrUnexpectedEOF 27098 } 27099 iNdEx += skippy 27100 } 27101 } 27102 27103 if iNdEx > l { 27104 return io.ErrUnexpectedEOF 27105 } 27106 return nil 27107 } 27108 func (m *QueryFeeDiscountScheduleResponse) Unmarshal(dAtA []byte) error { 27109 l := len(dAtA) 27110 iNdEx := 0 27111 for iNdEx < l { 27112 preIndex := iNdEx 27113 var wire uint64 27114 for shift := uint(0); ; shift += 7 { 27115 if shift >= 64 { 27116 return ErrIntOverflowQuery 27117 } 27118 if iNdEx >= l { 27119 return io.ErrUnexpectedEOF 27120 } 27121 b := dAtA[iNdEx] 27122 iNdEx++ 27123 wire |= uint64(b&0x7F) << shift 27124 if b < 0x80 { 27125 break 27126 } 27127 } 27128 fieldNum := int32(wire >> 3) 27129 wireType := int(wire & 0x7) 27130 if wireType == 4 { 27131 return fmt.Errorf("proto: QueryFeeDiscountScheduleResponse: wiretype end group for non-group") 27132 } 27133 if fieldNum <= 0 { 27134 return fmt.Errorf("proto: QueryFeeDiscountScheduleResponse: illegal tag %d (wire type %d)", fieldNum, wire) 27135 } 27136 switch fieldNum { 27137 case 1: 27138 if wireType != 2 { 27139 return fmt.Errorf("proto: wrong wireType = %d for field FeeDiscountSchedule", wireType) 27140 } 27141 var msglen int 27142 for shift := uint(0); ; shift += 7 { 27143 if shift >= 64 { 27144 return ErrIntOverflowQuery 27145 } 27146 if iNdEx >= l { 27147 return io.ErrUnexpectedEOF 27148 } 27149 b := dAtA[iNdEx] 27150 iNdEx++ 27151 msglen |= int(b&0x7F) << shift 27152 if b < 0x80 { 27153 break 27154 } 27155 } 27156 if msglen < 0 { 27157 return ErrInvalidLengthQuery 27158 } 27159 postIndex := iNdEx + msglen 27160 if postIndex < 0 { 27161 return ErrInvalidLengthQuery 27162 } 27163 if postIndex > l { 27164 return io.ErrUnexpectedEOF 27165 } 27166 if m.FeeDiscountSchedule == nil { 27167 m.FeeDiscountSchedule = &FeeDiscountSchedule{} 27168 } 27169 if err := m.FeeDiscountSchedule.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 27170 return err 27171 } 27172 iNdEx = postIndex 27173 default: 27174 iNdEx = preIndex 27175 skippy, err := skipQuery(dAtA[iNdEx:]) 27176 if err != nil { 27177 return err 27178 } 27179 if (skippy < 0) || (iNdEx+skippy) < 0 { 27180 return ErrInvalidLengthQuery 27181 } 27182 if (iNdEx + skippy) > l { 27183 return io.ErrUnexpectedEOF 27184 } 27185 iNdEx += skippy 27186 } 27187 } 27188 27189 if iNdEx > l { 27190 return io.ErrUnexpectedEOF 27191 } 27192 return nil 27193 } 27194 func (m *QueryBalanceMismatchesRequest) Unmarshal(dAtA []byte) error { 27195 l := len(dAtA) 27196 iNdEx := 0 27197 for iNdEx < l { 27198 preIndex := iNdEx 27199 var wire uint64 27200 for shift := uint(0); ; shift += 7 { 27201 if shift >= 64 { 27202 return ErrIntOverflowQuery 27203 } 27204 if iNdEx >= l { 27205 return io.ErrUnexpectedEOF 27206 } 27207 b := dAtA[iNdEx] 27208 iNdEx++ 27209 wire |= uint64(b&0x7F) << shift 27210 if b < 0x80 { 27211 break 27212 } 27213 } 27214 fieldNum := int32(wire >> 3) 27215 wireType := int(wire & 0x7) 27216 if wireType == 4 { 27217 return fmt.Errorf("proto: QueryBalanceMismatchesRequest: wiretype end group for non-group") 27218 } 27219 if fieldNum <= 0 { 27220 return fmt.Errorf("proto: QueryBalanceMismatchesRequest: illegal tag %d (wire type %d)", fieldNum, wire) 27221 } 27222 switch fieldNum { 27223 case 1: 27224 if wireType != 0 { 27225 return fmt.Errorf("proto: wrong wireType = %d for field DustFactor", wireType) 27226 } 27227 m.DustFactor = 0 27228 for shift := uint(0); ; shift += 7 { 27229 if shift >= 64 { 27230 return ErrIntOverflowQuery 27231 } 27232 if iNdEx >= l { 27233 return io.ErrUnexpectedEOF 27234 } 27235 b := dAtA[iNdEx] 27236 iNdEx++ 27237 m.DustFactor |= int64(b&0x7F) << shift 27238 if b < 0x80 { 27239 break 27240 } 27241 } 27242 default: 27243 iNdEx = preIndex 27244 skippy, err := skipQuery(dAtA[iNdEx:]) 27245 if err != nil { 27246 return err 27247 } 27248 if (skippy < 0) || (iNdEx+skippy) < 0 { 27249 return ErrInvalidLengthQuery 27250 } 27251 if (iNdEx + skippy) > l { 27252 return io.ErrUnexpectedEOF 27253 } 27254 iNdEx += skippy 27255 } 27256 } 27257 27258 if iNdEx > l { 27259 return io.ErrUnexpectedEOF 27260 } 27261 return nil 27262 } 27263 func (m *BalanceMismatch) Unmarshal(dAtA []byte) error { 27264 l := len(dAtA) 27265 iNdEx := 0 27266 for iNdEx < l { 27267 preIndex := iNdEx 27268 var wire uint64 27269 for shift := uint(0); ; shift += 7 { 27270 if shift >= 64 { 27271 return ErrIntOverflowQuery 27272 } 27273 if iNdEx >= l { 27274 return io.ErrUnexpectedEOF 27275 } 27276 b := dAtA[iNdEx] 27277 iNdEx++ 27278 wire |= uint64(b&0x7F) << shift 27279 if b < 0x80 { 27280 break 27281 } 27282 } 27283 fieldNum := int32(wire >> 3) 27284 wireType := int(wire & 0x7) 27285 if wireType == 4 { 27286 return fmt.Errorf("proto: BalanceMismatch: wiretype end group for non-group") 27287 } 27288 if fieldNum <= 0 { 27289 return fmt.Errorf("proto: BalanceMismatch: illegal tag %d (wire type %d)", fieldNum, wire) 27290 } 27291 switch fieldNum { 27292 case 1: 27293 if wireType != 2 { 27294 return fmt.Errorf("proto: wrong wireType = %d for field SubaccountId", wireType) 27295 } 27296 var stringLen uint64 27297 for shift := uint(0); ; shift += 7 { 27298 if shift >= 64 { 27299 return ErrIntOverflowQuery 27300 } 27301 if iNdEx >= l { 27302 return io.ErrUnexpectedEOF 27303 } 27304 b := dAtA[iNdEx] 27305 iNdEx++ 27306 stringLen |= uint64(b&0x7F) << shift 27307 if b < 0x80 { 27308 break 27309 } 27310 } 27311 intStringLen := int(stringLen) 27312 if intStringLen < 0 { 27313 return ErrInvalidLengthQuery 27314 } 27315 postIndex := iNdEx + intStringLen 27316 if postIndex < 0 { 27317 return ErrInvalidLengthQuery 27318 } 27319 if postIndex > l { 27320 return io.ErrUnexpectedEOF 27321 } 27322 m.SubaccountId = string(dAtA[iNdEx:postIndex]) 27323 iNdEx = postIndex 27324 case 2: 27325 if wireType != 2 { 27326 return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) 27327 } 27328 var stringLen uint64 27329 for shift := uint(0); ; shift += 7 { 27330 if shift >= 64 { 27331 return ErrIntOverflowQuery 27332 } 27333 if iNdEx >= l { 27334 return io.ErrUnexpectedEOF 27335 } 27336 b := dAtA[iNdEx] 27337 iNdEx++ 27338 stringLen |= uint64(b&0x7F) << shift 27339 if b < 0x80 { 27340 break 27341 } 27342 } 27343 intStringLen := int(stringLen) 27344 if intStringLen < 0 { 27345 return ErrInvalidLengthQuery 27346 } 27347 postIndex := iNdEx + intStringLen 27348 if postIndex < 0 { 27349 return ErrInvalidLengthQuery 27350 } 27351 if postIndex > l { 27352 return io.ErrUnexpectedEOF 27353 } 27354 m.Denom = string(dAtA[iNdEx:postIndex]) 27355 iNdEx = postIndex 27356 case 3: 27357 if wireType != 2 { 27358 return fmt.Errorf("proto: wrong wireType = %d for field Available", wireType) 27359 } 27360 var stringLen uint64 27361 for shift := uint(0); ; shift += 7 { 27362 if shift >= 64 { 27363 return ErrIntOverflowQuery 27364 } 27365 if iNdEx >= l { 27366 return io.ErrUnexpectedEOF 27367 } 27368 b := dAtA[iNdEx] 27369 iNdEx++ 27370 stringLen |= uint64(b&0x7F) << shift 27371 if b < 0x80 { 27372 break 27373 } 27374 } 27375 intStringLen := int(stringLen) 27376 if intStringLen < 0 { 27377 return ErrInvalidLengthQuery 27378 } 27379 postIndex := iNdEx + intStringLen 27380 if postIndex < 0 { 27381 return ErrInvalidLengthQuery 27382 } 27383 if postIndex > l { 27384 return io.ErrUnexpectedEOF 27385 } 27386 if err := m.Available.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 27387 return err 27388 } 27389 iNdEx = postIndex 27390 case 4: 27391 if wireType != 2 { 27392 return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType) 27393 } 27394 var stringLen uint64 27395 for shift := uint(0); ; shift += 7 { 27396 if shift >= 64 { 27397 return ErrIntOverflowQuery 27398 } 27399 if iNdEx >= l { 27400 return io.ErrUnexpectedEOF 27401 } 27402 b := dAtA[iNdEx] 27403 iNdEx++ 27404 stringLen |= uint64(b&0x7F) << shift 27405 if b < 0x80 { 27406 break 27407 } 27408 } 27409 intStringLen := int(stringLen) 27410 if intStringLen < 0 { 27411 return ErrInvalidLengthQuery 27412 } 27413 postIndex := iNdEx + intStringLen 27414 if postIndex < 0 { 27415 return ErrInvalidLengthQuery 27416 } 27417 if postIndex > l { 27418 return io.ErrUnexpectedEOF 27419 } 27420 if err := m.Total.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 27421 return err 27422 } 27423 iNdEx = postIndex 27424 case 5: 27425 if wireType != 2 { 27426 return fmt.Errorf("proto: wrong wireType = %d for field BalanceHold", wireType) 27427 } 27428 var stringLen uint64 27429 for shift := uint(0); ; shift += 7 { 27430 if shift >= 64 { 27431 return ErrIntOverflowQuery 27432 } 27433 if iNdEx >= l { 27434 return io.ErrUnexpectedEOF 27435 } 27436 b := dAtA[iNdEx] 27437 iNdEx++ 27438 stringLen |= uint64(b&0x7F) << shift 27439 if b < 0x80 { 27440 break 27441 } 27442 } 27443 intStringLen := int(stringLen) 27444 if intStringLen < 0 { 27445 return ErrInvalidLengthQuery 27446 } 27447 postIndex := iNdEx + intStringLen 27448 if postIndex < 0 { 27449 return ErrInvalidLengthQuery 27450 } 27451 if postIndex > l { 27452 return io.ErrUnexpectedEOF 27453 } 27454 if err := m.BalanceHold.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 27455 return err 27456 } 27457 iNdEx = postIndex 27458 case 6: 27459 if wireType != 2 { 27460 return fmt.Errorf("proto: wrong wireType = %d for field ExpectedTotal", wireType) 27461 } 27462 var stringLen uint64 27463 for shift := uint(0); ; shift += 7 { 27464 if shift >= 64 { 27465 return ErrIntOverflowQuery 27466 } 27467 if iNdEx >= l { 27468 return io.ErrUnexpectedEOF 27469 } 27470 b := dAtA[iNdEx] 27471 iNdEx++ 27472 stringLen |= uint64(b&0x7F) << shift 27473 if b < 0x80 { 27474 break 27475 } 27476 } 27477 intStringLen := int(stringLen) 27478 if intStringLen < 0 { 27479 return ErrInvalidLengthQuery 27480 } 27481 postIndex := iNdEx + intStringLen 27482 if postIndex < 0 { 27483 return ErrInvalidLengthQuery 27484 } 27485 if postIndex > l { 27486 return io.ErrUnexpectedEOF 27487 } 27488 if err := m.ExpectedTotal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 27489 return err 27490 } 27491 iNdEx = postIndex 27492 case 7: 27493 if wireType != 2 { 27494 return fmt.Errorf("proto: wrong wireType = %d for field Difference", wireType) 27495 } 27496 var stringLen uint64 27497 for shift := uint(0); ; shift += 7 { 27498 if shift >= 64 { 27499 return ErrIntOverflowQuery 27500 } 27501 if iNdEx >= l { 27502 return io.ErrUnexpectedEOF 27503 } 27504 b := dAtA[iNdEx] 27505 iNdEx++ 27506 stringLen |= uint64(b&0x7F) << shift 27507 if b < 0x80 { 27508 break 27509 } 27510 } 27511 intStringLen := int(stringLen) 27512 if intStringLen < 0 { 27513 return ErrInvalidLengthQuery 27514 } 27515 postIndex := iNdEx + intStringLen 27516 if postIndex < 0 { 27517 return ErrInvalidLengthQuery 27518 } 27519 if postIndex > l { 27520 return io.ErrUnexpectedEOF 27521 } 27522 if err := m.Difference.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 27523 return err 27524 } 27525 iNdEx = postIndex 27526 default: 27527 iNdEx = preIndex 27528 skippy, err := skipQuery(dAtA[iNdEx:]) 27529 if err != nil { 27530 return err 27531 } 27532 if (skippy < 0) || (iNdEx+skippy) < 0 { 27533 return ErrInvalidLengthQuery 27534 } 27535 if (iNdEx + skippy) > l { 27536 return io.ErrUnexpectedEOF 27537 } 27538 iNdEx += skippy 27539 } 27540 } 27541 27542 if iNdEx > l { 27543 return io.ErrUnexpectedEOF 27544 } 27545 return nil 27546 } 27547 func (m *QueryBalanceMismatchesResponse) Unmarshal(dAtA []byte) error { 27548 l := len(dAtA) 27549 iNdEx := 0 27550 for iNdEx < l { 27551 preIndex := iNdEx 27552 var wire uint64 27553 for shift := uint(0); ; shift += 7 { 27554 if shift >= 64 { 27555 return ErrIntOverflowQuery 27556 } 27557 if iNdEx >= l { 27558 return io.ErrUnexpectedEOF 27559 } 27560 b := dAtA[iNdEx] 27561 iNdEx++ 27562 wire |= uint64(b&0x7F) << shift 27563 if b < 0x80 { 27564 break 27565 } 27566 } 27567 fieldNum := int32(wire >> 3) 27568 wireType := int(wire & 0x7) 27569 if wireType == 4 { 27570 return fmt.Errorf("proto: QueryBalanceMismatchesResponse: wiretype end group for non-group") 27571 } 27572 if fieldNum <= 0 { 27573 return fmt.Errorf("proto: QueryBalanceMismatchesResponse: illegal tag %d (wire type %d)", fieldNum, wire) 27574 } 27575 switch fieldNum { 27576 case 1: 27577 if wireType != 2 { 27578 return fmt.Errorf("proto: wrong wireType = %d for field BalanceMismatches", wireType) 27579 } 27580 var msglen int 27581 for shift := uint(0); ; shift += 7 { 27582 if shift >= 64 { 27583 return ErrIntOverflowQuery 27584 } 27585 if iNdEx >= l { 27586 return io.ErrUnexpectedEOF 27587 } 27588 b := dAtA[iNdEx] 27589 iNdEx++ 27590 msglen |= int(b&0x7F) << shift 27591 if b < 0x80 { 27592 break 27593 } 27594 } 27595 if msglen < 0 { 27596 return ErrInvalidLengthQuery 27597 } 27598 postIndex := iNdEx + msglen 27599 if postIndex < 0 { 27600 return ErrInvalidLengthQuery 27601 } 27602 if postIndex > l { 27603 return io.ErrUnexpectedEOF 27604 } 27605 m.BalanceMismatches = append(m.BalanceMismatches, &BalanceMismatch{}) 27606 if err := m.BalanceMismatches[len(m.BalanceMismatches)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 27607 return err 27608 } 27609 iNdEx = postIndex 27610 default: 27611 iNdEx = preIndex 27612 skippy, err := skipQuery(dAtA[iNdEx:]) 27613 if err != nil { 27614 return err 27615 } 27616 if (skippy < 0) || (iNdEx+skippy) < 0 { 27617 return ErrInvalidLengthQuery 27618 } 27619 if (iNdEx + skippy) > l { 27620 return io.ErrUnexpectedEOF 27621 } 27622 iNdEx += skippy 27623 } 27624 } 27625 27626 if iNdEx > l { 27627 return io.ErrUnexpectedEOF 27628 } 27629 return nil 27630 } 27631 func (m *QueryBalanceWithBalanceHoldsRequest) Unmarshal(dAtA []byte) error { 27632 l := len(dAtA) 27633 iNdEx := 0 27634 for iNdEx < l { 27635 preIndex := iNdEx 27636 var wire uint64 27637 for shift := uint(0); ; shift += 7 { 27638 if shift >= 64 { 27639 return ErrIntOverflowQuery 27640 } 27641 if iNdEx >= l { 27642 return io.ErrUnexpectedEOF 27643 } 27644 b := dAtA[iNdEx] 27645 iNdEx++ 27646 wire |= uint64(b&0x7F) << shift 27647 if b < 0x80 { 27648 break 27649 } 27650 } 27651 fieldNum := int32(wire >> 3) 27652 wireType := int(wire & 0x7) 27653 if wireType == 4 { 27654 return fmt.Errorf("proto: QueryBalanceWithBalanceHoldsRequest: wiretype end group for non-group") 27655 } 27656 if fieldNum <= 0 { 27657 return fmt.Errorf("proto: QueryBalanceWithBalanceHoldsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 27658 } 27659 switch fieldNum { 27660 default: 27661 iNdEx = preIndex 27662 skippy, err := skipQuery(dAtA[iNdEx:]) 27663 if err != nil { 27664 return err 27665 } 27666 if (skippy < 0) || (iNdEx+skippy) < 0 { 27667 return ErrInvalidLengthQuery 27668 } 27669 if (iNdEx + skippy) > l { 27670 return io.ErrUnexpectedEOF 27671 } 27672 iNdEx += skippy 27673 } 27674 } 27675 27676 if iNdEx > l { 27677 return io.ErrUnexpectedEOF 27678 } 27679 return nil 27680 } 27681 func (m *BalanceWithMarginHold) Unmarshal(dAtA []byte) error { 27682 l := len(dAtA) 27683 iNdEx := 0 27684 for iNdEx < l { 27685 preIndex := iNdEx 27686 var wire uint64 27687 for shift := uint(0); ; shift += 7 { 27688 if shift >= 64 { 27689 return ErrIntOverflowQuery 27690 } 27691 if iNdEx >= l { 27692 return io.ErrUnexpectedEOF 27693 } 27694 b := dAtA[iNdEx] 27695 iNdEx++ 27696 wire |= uint64(b&0x7F) << shift 27697 if b < 0x80 { 27698 break 27699 } 27700 } 27701 fieldNum := int32(wire >> 3) 27702 wireType := int(wire & 0x7) 27703 if wireType == 4 { 27704 return fmt.Errorf("proto: BalanceWithMarginHold: wiretype end group for non-group") 27705 } 27706 if fieldNum <= 0 { 27707 return fmt.Errorf("proto: BalanceWithMarginHold: illegal tag %d (wire type %d)", fieldNum, wire) 27708 } 27709 switch fieldNum { 27710 case 1: 27711 if wireType != 2 { 27712 return fmt.Errorf("proto: wrong wireType = %d for field SubaccountId", wireType) 27713 } 27714 var stringLen uint64 27715 for shift := uint(0); ; shift += 7 { 27716 if shift >= 64 { 27717 return ErrIntOverflowQuery 27718 } 27719 if iNdEx >= l { 27720 return io.ErrUnexpectedEOF 27721 } 27722 b := dAtA[iNdEx] 27723 iNdEx++ 27724 stringLen |= uint64(b&0x7F) << shift 27725 if b < 0x80 { 27726 break 27727 } 27728 } 27729 intStringLen := int(stringLen) 27730 if intStringLen < 0 { 27731 return ErrInvalidLengthQuery 27732 } 27733 postIndex := iNdEx + intStringLen 27734 if postIndex < 0 { 27735 return ErrInvalidLengthQuery 27736 } 27737 if postIndex > l { 27738 return io.ErrUnexpectedEOF 27739 } 27740 m.SubaccountId = string(dAtA[iNdEx:postIndex]) 27741 iNdEx = postIndex 27742 case 2: 27743 if wireType != 2 { 27744 return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) 27745 } 27746 var stringLen uint64 27747 for shift := uint(0); ; shift += 7 { 27748 if shift >= 64 { 27749 return ErrIntOverflowQuery 27750 } 27751 if iNdEx >= l { 27752 return io.ErrUnexpectedEOF 27753 } 27754 b := dAtA[iNdEx] 27755 iNdEx++ 27756 stringLen |= uint64(b&0x7F) << shift 27757 if b < 0x80 { 27758 break 27759 } 27760 } 27761 intStringLen := int(stringLen) 27762 if intStringLen < 0 { 27763 return ErrInvalidLengthQuery 27764 } 27765 postIndex := iNdEx + intStringLen 27766 if postIndex < 0 { 27767 return ErrInvalidLengthQuery 27768 } 27769 if postIndex > l { 27770 return io.ErrUnexpectedEOF 27771 } 27772 m.Denom = string(dAtA[iNdEx:postIndex]) 27773 iNdEx = postIndex 27774 case 3: 27775 if wireType != 2 { 27776 return fmt.Errorf("proto: wrong wireType = %d for field Available", wireType) 27777 } 27778 var stringLen uint64 27779 for shift := uint(0); ; shift += 7 { 27780 if shift >= 64 { 27781 return ErrIntOverflowQuery 27782 } 27783 if iNdEx >= l { 27784 return io.ErrUnexpectedEOF 27785 } 27786 b := dAtA[iNdEx] 27787 iNdEx++ 27788 stringLen |= uint64(b&0x7F) << shift 27789 if b < 0x80 { 27790 break 27791 } 27792 } 27793 intStringLen := int(stringLen) 27794 if intStringLen < 0 { 27795 return ErrInvalidLengthQuery 27796 } 27797 postIndex := iNdEx + intStringLen 27798 if postIndex < 0 { 27799 return ErrInvalidLengthQuery 27800 } 27801 if postIndex > l { 27802 return io.ErrUnexpectedEOF 27803 } 27804 if err := m.Available.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 27805 return err 27806 } 27807 iNdEx = postIndex 27808 case 4: 27809 if wireType != 2 { 27810 return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType) 27811 } 27812 var stringLen uint64 27813 for shift := uint(0); ; shift += 7 { 27814 if shift >= 64 { 27815 return ErrIntOverflowQuery 27816 } 27817 if iNdEx >= l { 27818 return io.ErrUnexpectedEOF 27819 } 27820 b := dAtA[iNdEx] 27821 iNdEx++ 27822 stringLen |= uint64(b&0x7F) << shift 27823 if b < 0x80 { 27824 break 27825 } 27826 } 27827 intStringLen := int(stringLen) 27828 if intStringLen < 0 { 27829 return ErrInvalidLengthQuery 27830 } 27831 postIndex := iNdEx + intStringLen 27832 if postIndex < 0 { 27833 return ErrInvalidLengthQuery 27834 } 27835 if postIndex > l { 27836 return io.ErrUnexpectedEOF 27837 } 27838 if err := m.Total.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 27839 return err 27840 } 27841 iNdEx = postIndex 27842 case 5: 27843 if wireType != 2 { 27844 return fmt.Errorf("proto: wrong wireType = %d for field BalanceHold", wireType) 27845 } 27846 var stringLen uint64 27847 for shift := uint(0); ; shift += 7 { 27848 if shift >= 64 { 27849 return ErrIntOverflowQuery 27850 } 27851 if iNdEx >= l { 27852 return io.ErrUnexpectedEOF 27853 } 27854 b := dAtA[iNdEx] 27855 iNdEx++ 27856 stringLen |= uint64(b&0x7F) << shift 27857 if b < 0x80 { 27858 break 27859 } 27860 } 27861 intStringLen := int(stringLen) 27862 if intStringLen < 0 { 27863 return ErrInvalidLengthQuery 27864 } 27865 postIndex := iNdEx + intStringLen 27866 if postIndex < 0 { 27867 return ErrInvalidLengthQuery 27868 } 27869 if postIndex > l { 27870 return io.ErrUnexpectedEOF 27871 } 27872 if err := m.BalanceHold.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 27873 return err 27874 } 27875 iNdEx = postIndex 27876 default: 27877 iNdEx = preIndex 27878 skippy, err := skipQuery(dAtA[iNdEx:]) 27879 if err != nil { 27880 return err 27881 } 27882 if (skippy < 0) || (iNdEx+skippy) < 0 { 27883 return ErrInvalidLengthQuery 27884 } 27885 if (iNdEx + skippy) > l { 27886 return io.ErrUnexpectedEOF 27887 } 27888 iNdEx += skippy 27889 } 27890 } 27891 27892 if iNdEx > l { 27893 return io.ErrUnexpectedEOF 27894 } 27895 return nil 27896 } 27897 func (m *QueryBalanceWithBalanceHoldsResponse) Unmarshal(dAtA []byte) error { 27898 l := len(dAtA) 27899 iNdEx := 0 27900 for iNdEx < l { 27901 preIndex := iNdEx 27902 var wire uint64 27903 for shift := uint(0); ; shift += 7 { 27904 if shift >= 64 { 27905 return ErrIntOverflowQuery 27906 } 27907 if iNdEx >= l { 27908 return io.ErrUnexpectedEOF 27909 } 27910 b := dAtA[iNdEx] 27911 iNdEx++ 27912 wire |= uint64(b&0x7F) << shift 27913 if b < 0x80 { 27914 break 27915 } 27916 } 27917 fieldNum := int32(wire >> 3) 27918 wireType := int(wire & 0x7) 27919 if wireType == 4 { 27920 return fmt.Errorf("proto: QueryBalanceWithBalanceHoldsResponse: wiretype end group for non-group") 27921 } 27922 if fieldNum <= 0 { 27923 return fmt.Errorf("proto: QueryBalanceWithBalanceHoldsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 27924 } 27925 switch fieldNum { 27926 case 1: 27927 if wireType != 2 { 27928 return fmt.Errorf("proto: wrong wireType = %d for field BalanceWithBalanceHolds", wireType) 27929 } 27930 var msglen int 27931 for shift := uint(0); ; shift += 7 { 27932 if shift >= 64 { 27933 return ErrIntOverflowQuery 27934 } 27935 if iNdEx >= l { 27936 return io.ErrUnexpectedEOF 27937 } 27938 b := dAtA[iNdEx] 27939 iNdEx++ 27940 msglen |= int(b&0x7F) << shift 27941 if b < 0x80 { 27942 break 27943 } 27944 } 27945 if msglen < 0 { 27946 return ErrInvalidLengthQuery 27947 } 27948 postIndex := iNdEx + msglen 27949 if postIndex < 0 { 27950 return ErrInvalidLengthQuery 27951 } 27952 if postIndex > l { 27953 return io.ErrUnexpectedEOF 27954 } 27955 m.BalanceWithBalanceHolds = append(m.BalanceWithBalanceHolds, &BalanceWithMarginHold{}) 27956 if err := m.BalanceWithBalanceHolds[len(m.BalanceWithBalanceHolds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 27957 return err 27958 } 27959 iNdEx = postIndex 27960 default: 27961 iNdEx = preIndex 27962 skippy, err := skipQuery(dAtA[iNdEx:]) 27963 if err != nil { 27964 return err 27965 } 27966 if (skippy < 0) || (iNdEx+skippy) < 0 { 27967 return ErrInvalidLengthQuery 27968 } 27969 if (iNdEx + skippy) > l { 27970 return io.ErrUnexpectedEOF 27971 } 27972 iNdEx += skippy 27973 } 27974 } 27975 27976 if iNdEx > l { 27977 return io.ErrUnexpectedEOF 27978 } 27979 return nil 27980 } 27981 func (m *QueryFeeDiscountTierStatisticsRequest) Unmarshal(dAtA []byte) error { 27982 l := len(dAtA) 27983 iNdEx := 0 27984 for iNdEx < l { 27985 preIndex := iNdEx 27986 var wire uint64 27987 for shift := uint(0); ; shift += 7 { 27988 if shift >= 64 { 27989 return ErrIntOverflowQuery 27990 } 27991 if iNdEx >= l { 27992 return io.ErrUnexpectedEOF 27993 } 27994 b := dAtA[iNdEx] 27995 iNdEx++ 27996 wire |= uint64(b&0x7F) << shift 27997 if b < 0x80 { 27998 break 27999 } 28000 } 28001 fieldNum := int32(wire >> 3) 28002 wireType := int(wire & 0x7) 28003 if wireType == 4 { 28004 return fmt.Errorf("proto: QueryFeeDiscountTierStatisticsRequest: wiretype end group for non-group") 28005 } 28006 if fieldNum <= 0 { 28007 return fmt.Errorf("proto: QueryFeeDiscountTierStatisticsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 28008 } 28009 switch fieldNum { 28010 default: 28011 iNdEx = preIndex 28012 skippy, err := skipQuery(dAtA[iNdEx:]) 28013 if err != nil { 28014 return err 28015 } 28016 if (skippy < 0) || (iNdEx+skippy) < 0 { 28017 return ErrInvalidLengthQuery 28018 } 28019 if (iNdEx + skippy) > l { 28020 return io.ErrUnexpectedEOF 28021 } 28022 iNdEx += skippy 28023 } 28024 } 28025 28026 if iNdEx > l { 28027 return io.ErrUnexpectedEOF 28028 } 28029 return nil 28030 } 28031 func (m *TierStatistic) Unmarshal(dAtA []byte) error { 28032 l := len(dAtA) 28033 iNdEx := 0 28034 for iNdEx < l { 28035 preIndex := iNdEx 28036 var wire uint64 28037 for shift := uint(0); ; shift += 7 { 28038 if shift >= 64 { 28039 return ErrIntOverflowQuery 28040 } 28041 if iNdEx >= l { 28042 return io.ErrUnexpectedEOF 28043 } 28044 b := dAtA[iNdEx] 28045 iNdEx++ 28046 wire |= uint64(b&0x7F) << shift 28047 if b < 0x80 { 28048 break 28049 } 28050 } 28051 fieldNum := int32(wire >> 3) 28052 wireType := int(wire & 0x7) 28053 if wireType == 4 { 28054 return fmt.Errorf("proto: TierStatistic: wiretype end group for non-group") 28055 } 28056 if fieldNum <= 0 { 28057 return fmt.Errorf("proto: TierStatistic: illegal tag %d (wire type %d)", fieldNum, wire) 28058 } 28059 switch fieldNum { 28060 case 1: 28061 if wireType != 0 { 28062 return fmt.Errorf("proto: wrong wireType = %d for field Tier", wireType) 28063 } 28064 m.Tier = 0 28065 for shift := uint(0); ; shift += 7 { 28066 if shift >= 64 { 28067 return ErrIntOverflowQuery 28068 } 28069 if iNdEx >= l { 28070 return io.ErrUnexpectedEOF 28071 } 28072 b := dAtA[iNdEx] 28073 iNdEx++ 28074 m.Tier |= uint64(b&0x7F) << shift 28075 if b < 0x80 { 28076 break 28077 } 28078 } 28079 case 2: 28080 if wireType != 0 { 28081 return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) 28082 } 28083 m.Count = 0 28084 for shift := uint(0); ; shift += 7 { 28085 if shift >= 64 { 28086 return ErrIntOverflowQuery 28087 } 28088 if iNdEx >= l { 28089 return io.ErrUnexpectedEOF 28090 } 28091 b := dAtA[iNdEx] 28092 iNdEx++ 28093 m.Count |= uint64(b&0x7F) << shift 28094 if b < 0x80 { 28095 break 28096 } 28097 } 28098 default: 28099 iNdEx = preIndex 28100 skippy, err := skipQuery(dAtA[iNdEx:]) 28101 if err != nil { 28102 return err 28103 } 28104 if (skippy < 0) || (iNdEx+skippy) < 0 { 28105 return ErrInvalidLengthQuery 28106 } 28107 if (iNdEx + skippy) > l { 28108 return io.ErrUnexpectedEOF 28109 } 28110 iNdEx += skippy 28111 } 28112 } 28113 28114 if iNdEx > l { 28115 return io.ErrUnexpectedEOF 28116 } 28117 return nil 28118 } 28119 func (m *QueryFeeDiscountTierStatisticsResponse) Unmarshal(dAtA []byte) error { 28120 l := len(dAtA) 28121 iNdEx := 0 28122 for iNdEx < l { 28123 preIndex := iNdEx 28124 var wire uint64 28125 for shift := uint(0); ; shift += 7 { 28126 if shift >= 64 { 28127 return ErrIntOverflowQuery 28128 } 28129 if iNdEx >= l { 28130 return io.ErrUnexpectedEOF 28131 } 28132 b := dAtA[iNdEx] 28133 iNdEx++ 28134 wire |= uint64(b&0x7F) << shift 28135 if b < 0x80 { 28136 break 28137 } 28138 } 28139 fieldNum := int32(wire >> 3) 28140 wireType := int(wire & 0x7) 28141 if wireType == 4 { 28142 return fmt.Errorf("proto: QueryFeeDiscountTierStatisticsResponse: wiretype end group for non-group") 28143 } 28144 if fieldNum <= 0 { 28145 return fmt.Errorf("proto: QueryFeeDiscountTierStatisticsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 28146 } 28147 switch fieldNum { 28148 case 1: 28149 if wireType != 2 { 28150 return fmt.Errorf("proto: wrong wireType = %d for field Statistics", wireType) 28151 } 28152 var msglen int 28153 for shift := uint(0); ; shift += 7 { 28154 if shift >= 64 { 28155 return ErrIntOverflowQuery 28156 } 28157 if iNdEx >= l { 28158 return io.ErrUnexpectedEOF 28159 } 28160 b := dAtA[iNdEx] 28161 iNdEx++ 28162 msglen |= int(b&0x7F) << shift 28163 if b < 0x80 { 28164 break 28165 } 28166 } 28167 if msglen < 0 { 28168 return ErrInvalidLengthQuery 28169 } 28170 postIndex := iNdEx + msglen 28171 if postIndex < 0 { 28172 return ErrInvalidLengthQuery 28173 } 28174 if postIndex > l { 28175 return io.ErrUnexpectedEOF 28176 } 28177 m.Statistics = append(m.Statistics, &TierStatistic{}) 28178 if err := m.Statistics[len(m.Statistics)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 28179 return err 28180 } 28181 iNdEx = postIndex 28182 default: 28183 iNdEx = preIndex 28184 skippy, err := skipQuery(dAtA[iNdEx:]) 28185 if err != nil { 28186 return err 28187 } 28188 if (skippy < 0) || (iNdEx+skippy) < 0 { 28189 return ErrInvalidLengthQuery 28190 } 28191 if (iNdEx + skippy) > l { 28192 return io.ErrUnexpectedEOF 28193 } 28194 iNdEx += skippy 28195 } 28196 } 28197 28198 if iNdEx > l { 28199 return io.ErrUnexpectedEOF 28200 } 28201 return nil 28202 } 28203 func (m *MitoVaultInfosRequest) Unmarshal(dAtA []byte) error { 28204 l := len(dAtA) 28205 iNdEx := 0 28206 for iNdEx < l { 28207 preIndex := iNdEx 28208 var wire uint64 28209 for shift := uint(0); ; shift += 7 { 28210 if shift >= 64 { 28211 return ErrIntOverflowQuery 28212 } 28213 if iNdEx >= l { 28214 return io.ErrUnexpectedEOF 28215 } 28216 b := dAtA[iNdEx] 28217 iNdEx++ 28218 wire |= uint64(b&0x7F) << shift 28219 if b < 0x80 { 28220 break 28221 } 28222 } 28223 fieldNum := int32(wire >> 3) 28224 wireType := int(wire & 0x7) 28225 if wireType == 4 { 28226 return fmt.Errorf("proto: MitoVaultInfosRequest: wiretype end group for non-group") 28227 } 28228 if fieldNum <= 0 { 28229 return fmt.Errorf("proto: MitoVaultInfosRequest: illegal tag %d (wire type %d)", fieldNum, wire) 28230 } 28231 switch fieldNum { 28232 default: 28233 iNdEx = preIndex 28234 skippy, err := skipQuery(dAtA[iNdEx:]) 28235 if err != nil { 28236 return err 28237 } 28238 if (skippy < 0) || (iNdEx+skippy) < 0 { 28239 return ErrInvalidLengthQuery 28240 } 28241 if (iNdEx + skippy) > l { 28242 return io.ErrUnexpectedEOF 28243 } 28244 iNdEx += skippy 28245 } 28246 } 28247 28248 if iNdEx > l { 28249 return io.ErrUnexpectedEOF 28250 } 28251 return nil 28252 } 28253 func (m *MitoVaultInfosResponse) Unmarshal(dAtA []byte) error { 28254 l := len(dAtA) 28255 iNdEx := 0 28256 for iNdEx < l { 28257 preIndex := iNdEx 28258 var wire uint64 28259 for shift := uint(0); ; shift += 7 { 28260 if shift >= 64 { 28261 return ErrIntOverflowQuery 28262 } 28263 if iNdEx >= l { 28264 return io.ErrUnexpectedEOF 28265 } 28266 b := dAtA[iNdEx] 28267 iNdEx++ 28268 wire |= uint64(b&0x7F) << shift 28269 if b < 0x80 { 28270 break 28271 } 28272 } 28273 fieldNum := int32(wire >> 3) 28274 wireType := int(wire & 0x7) 28275 if wireType == 4 { 28276 return fmt.Errorf("proto: MitoVaultInfosResponse: wiretype end group for non-group") 28277 } 28278 if fieldNum <= 0 { 28279 return fmt.Errorf("proto: MitoVaultInfosResponse: illegal tag %d (wire type %d)", fieldNum, wire) 28280 } 28281 switch fieldNum { 28282 case 1: 28283 if wireType != 2 { 28284 return fmt.Errorf("proto: wrong wireType = %d for field MasterAddresses", wireType) 28285 } 28286 var stringLen uint64 28287 for shift := uint(0); ; shift += 7 { 28288 if shift >= 64 { 28289 return ErrIntOverflowQuery 28290 } 28291 if iNdEx >= l { 28292 return io.ErrUnexpectedEOF 28293 } 28294 b := dAtA[iNdEx] 28295 iNdEx++ 28296 stringLen |= uint64(b&0x7F) << shift 28297 if b < 0x80 { 28298 break 28299 } 28300 } 28301 intStringLen := int(stringLen) 28302 if intStringLen < 0 { 28303 return ErrInvalidLengthQuery 28304 } 28305 postIndex := iNdEx + intStringLen 28306 if postIndex < 0 { 28307 return ErrInvalidLengthQuery 28308 } 28309 if postIndex > l { 28310 return io.ErrUnexpectedEOF 28311 } 28312 m.MasterAddresses = append(m.MasterAddresses, string(dAtA[iNdEx:postIndex])) 28313 iNdEx = postIndex 28314 case 2: 28315 if wireType != 2 { 28316 return fmt.Errorf("proto: wrong wireType = %d for field DerivativeAddresses", wireType) 28317 } 28318 var stringLen uint64 28319 for shift := uint(0); ; shift += 7 { 28320 if shift >= 64 { 28321 return ErrIntOverflowQuery 28322 } 28323 if iNdEx >= l { 28324 return io.ErrUnexpectedEOF 28325 } 28326 b := dAtA[iNdEx] 28327 iNdEx++ 28328 stringLen |= uint64(b&0x7F) << shift 28329 if b < 0x80 { 28330 break 28331 } 28332 } 28333 intStringLen := int(stringLen) 28334 if intStringLen < 0 { 28335 return ErrInvalidLengthQuery 28336 } 28337 postIndex := iNdEx + intStringLen 28338 if postIndex < 0 { 28339 return ErrInvalidLengthQuery 28340 } 28341 if postIndex > l { 28342 return io.ErrUnexpectedEOF 28343 } 28344 m.DerivativeAddresses = append(m.DerivativeAddresses, string(dAtA[iNdEx:postIndex])) 28345 iNdEx = postIndex 28346 case 3: 28347 if wireType != 2 { 28348 return fmt.Errorf("proto: wrong wireType = %d for field SpotAddresses", wireType) 28349 } 28350 var stringLen uint64 28351 for shift := uint(0); ; shift += 7 { 28352 if shift >= 64 { 28353 return ErrIntOverflowQuery 28354 } 28355 if iNdEx >= l { 28356 return io.ErrUnexpectedEOF 28357 } 28358 b := dAtA[iNdEx] 28359 iNdEx++ 28360 stringLen |= uint64(b&0x7F) << shift 28361 if b < 0x80 { 28362 break 28363 } 28364 } 28365 intStringLen := int(stringLen) 28366 if intStringLen < 0 { 28367 return ErrInvalidLengthQuery 28368 } 28369 postIndex := iNdEx + intStringLen 28370 if postIndex < 0 { 28371 return ErrInvalidLengthQuery 28372 } 28373 if postIndex > l { 28374 return io.ErrUnexpectedEOF 28375 } 28376 m.SpotAddresses = append(m.SpotAddresses, string(dAtA[iNdEx:postIndex])) 28377 iNdEx = postIndex 28378 case 4: 28379 if wireType != 2 { 28380 return fmt.Errorf("proto: wrong wireType = %d for field Cw20Addresses", wireType) 28381 } 28382 var stringLen uint64 28383 for shift := uint(0); ; shift += 7 { 28384 if shift >= 64 { 28385 return ErrIntOverflowQuery 28386 } 28387 if iNdEx >= l { 28388 return io.ErrUnexpectedEOF 28389 } 28390 b := dAtA[iNdEx] 28391 iNdEx++ 28392 stringLen |= uint64(b&0x7F) << shift 28393 if b < 0x80 { 28394 break 28395 } 28396 } 28397 intStringLen := int(stringLen) 28398 if intStringLen < 0 { 28399 return ErrInvalidLengthQuery 28400 } 28401 postIndex := iNdEx + intStringLen 28402 if postIndex < 0 { 28403 return ErrInvalidLengthQuery 28404 } 28405 if postIndex > l { 28406 return io.ErrUnexpectedEOF 28407 } 28408 m.Cw20Addresses = append(m.Cw20Addresses, string(dAtA[iNdEx:postIndex])) 28409 iNdEx = postIndex 28410 default: 28411 iNdEx = preIndex 28412 skippy, err := skipQuery(dAtA[iNdEx:]) 28413 if err != nil { 28414 return err 28415 } 28416 if (skippy < 0) || (iNdEx+skippy) < 0 { 28417 return ErrInvalidLengthQuery 28418 } 28419 if (iNdEx + skippy) > l { 28420 return io.ErrUnexpectedEOF 28421 } 28422 iNdEx += skippy 28423 } 28424 } 28425 28426 if iNdEx > l { 28427 return io.ErrUnexpectedEOF 28428 } 28429 return nil 28430 } 28431 func (m *QueryMarketIDFromVaultRequest) Unmarshal(dAtA []byte) error { 28432 l := len(dAtA) 28433 iNdEx := 0 28434 for iNdEx < l { 28435 preIndex := iNdEx 28436 var wire uint64 28437 for shift := uint(0); ; shift += 7 { 28438 if shift >= 64 { 28439 return ErrIntOverflowQuery 28440 } 28441 if iNdEx >= l { 28442 return io.ErrUnexpectedEOF 28443 } 28444 b := dAtA[iNdEx] 28445 iNdEx++ 28446 wire |= uint64(b&0x7F) << shift 28447 if b < 0x80 { 28448 break 28449 } 28450 } 28451 fieldNum := int32(wire >> 3) 28452 wireType := int(wire & 0x7) 28453 if wireType == 4 { 28454 return fmt.Errorf("proto: QueryMarketIDFromVaultRequest: wiretype end group for non-group") 28455 } 28456 if fieldNum <= 0 { 28457 return fmt.Errorf("proto: QueryMarketIDFromVaultRequest: illegal tag %d (wire type %d)", fieldNum, wire) 28458 } 28459 switch fieldNum { 28460 case 1: 28461 if wireType != 2 { 28462 return fmt.Errorf("proto: wrong wireType = %d for field VaultAddress", wireType) 28463 } 28464 var stringLen uint64 28465 for shift := uint(0); ; shift += 7 { 28466 if shift >= 64 { 28467 return ErrIntOverflowQuery 28468 } 28469 if iNdEx >= l { 28470 return io.ErrUnexpectedEOF 28471 } 28472 b := dAtA[iNdEx] 28473 iNdEx++ 28474 stringLen |= uint64(b&0x7F) << shift 28475 if b < 0x80 { 28476 break 28477 } 28478 } 28479 intStringLen := int(stringLen) 28480 if intStringLen < 0 { 28481 return ErrInvalidLengthQuery 28482 } 28483 postIndex := iNdEx + intStringLen 28484 if postIndex < 0 { 28485 return ErrInvalidLengthQuery 28486 } 28487 if postIndex > l { 28488 return io.ErrUnexpectedEOF 28489 } 28490 m.VaultAddress = string(dAtA[iNdEx:postIndex]) 28491 iNdEx = postIndex 28492 default: 28493 iNdEx = preIndex 28494 skippy, err := skipQuery(dAtA[iNdEx:]) 28495 if err != nil { 28496 return err 28497 } 28498 if (skippy < 0) || (iNdEx+skippy) < 0 { 28499 return ErrInvalidLengthQuery 28500 } 28501 if (iNdEx + skippy) > l { 28502 return io.ErrUnexpectedEOF 28503 } 28504 iNdEx += skippy 28505 } 28506 } 28507 28508 if iNdEx > l { 28509 return io.ErrUnexpectedEOF 28510 } 28511 return nil 28512 } 28513 func (m *QueryMarketIDFromVaultResponse) Unmarshal(dAtA []byte) error { 28514 l := len(dAtA) 28515 iNdEx := 0 28516 for iNdEx < l { 28517 preIndex := iNdEx 28518 var wire uint64 28519 for shift := uint(0); ; shift += 7 { 28520 if shift >= 64 { 28521 return ErrIntOverflowQuery 28522 } 28523 if iNdEx >= l { 28524 return io.ErrUnexpectedEOF 28525 } 28526 b := dAtA[iNdEx] 28527 iNdEx++ 28528 wire |= uint64(b&0x7F) << shift 28529 if b < 0x80 { 28530 break 28531 } 28532 } 28533 fieldNum := int32(wire >> 3) 28534 wireType := int(wire & 0x7) 28535 if wireType == 4 { 28536 return fmt.Errorf("proto: QueryMarketIDFromVaultResponse: wiretype end group for non-group") 28537 } 28538 if fieldNum <= 0 { 28539 return fmt.Errorf("proto: QueryMarketIDFromVaultResponse: illegal tag %d (wire type %d)", fieldNum, wire) 28540 } 28541 switch fieldNum { 28542 case 1: 28543 if wireType != 2 { 28544 return fmt.Errorf("proto: wrong wireType = %d for field MarketId", wireType) 28545 } 28546 var stringLen uint64 28547 for shift := uint(0); ; shift += 7 { 28548 if shift >= 64 { 28549 return ErrIntOverflowQuery 28550 } 28551 if iNdEx >= l { 28552 return io.ErrUnexpectedEOF 28553 } 28554 b := dAtA[iNdEx] 28555 iNdEx++ 28556 stringLen |= uint64(b&0x7F) << shift 28557 if b < 0x80 { 28558 break 28559 } 28560 } 28561 intStringLen := int(stringLen) 28562 if intStringLen < 0 { 28563 return ErrInvalidLengthQuery 28564 } 28565 postIndex := iNdEx + intStringLen 28566 if postIndex < 0 { 28567 return ErrInvalidLengthQuery 28568 } 28569 if postIndex > l { 28570 return io.ErrUnexpectedEOF 28571 } 28572 m.MarketId = string(dAtA[iNdEx:postIndex]) 28573 iNdEx = postIndex 28574 default: 28575 iNdEx = preIndex 28576 skippy, err := skipQuery(dAtA[iNdEx:]) 28577 if err != nil { 28578 return err 28579 } 28580 if (skippy < 0) || (iNdEx+skippy) < 0 { 28581 return ErrInvalidLengthQuery 28582 } 28583 if (iNdEx + skippy) > l { 28584 return io.ErrUnexpectedEOF 28585 } 28586 iNdEx += skippy 28587 } 28588 } 28589 28590 if iNdEx > l { 28591 return io.ErrUnexpectedEOF 28592 } 28593 return nil 28594 } 28595 func (m *QueryHistoricalTradeRecordsRequest) Unmarshal(dAtA []byte) error { 28596 l := len(dAtA) 28597 iNdEx := 0 28598 for iNdEx < l { 28599 preIndex := iNdEx 28600 var wire uint64 28601 for shift := uint(0); ; shift += 7 { 28602 if shift >= 64 { 28603 return ErrIntOverflowQuery 28604 } 28605 if iNdEx >= l { 28606 return io.ErrUnexpectedEOF 28607 } 28608 b := dAtA[iNdEx] 28609 iNdEx++ 28610 wire |= uint64(b&0x7F) << shift 28611 if b < 0x80 { 28612 break 28613 } 28614 } 28615 fieldNum := int32(wire >> 3) 28616 wireType := int(wire & 0x7) 28617 if wireType == 4 { 28618 return fmt.Errorf("proto: QueryHistoricalTradeRecordsRequest: wiretype end group for non-group") 28619 } 28620 if fieldNum <= 0 { 28621 return fmt.Errorf("proto: QueryHistoricalTradeRecordsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 28622 } 28623 switch fieldNum { 28624 case 1: 28625 if wireType != 2 { 28626 return fmt.Errorf("proto: wrong wireType = %d for field MarketId", wireType) 28627 } 28628 var stringLen uint64 28629 for shift := uint(0); ; shift += 7 { 28630 if shift >= 64 { 28631 return ErrIntOverflowQuery 28632 } 28633 if iNdEx >= l { 28634 return io.ErrUnexpectedEOF 28635 } 28636 b := dAtA[iNdEx] 28637 iNdEx++ 28638 stringLen |= uint64(b&0x7F) << shift 28639 if b < 0x80 { 28640 break 28641 } 28642 } 28643 intStringLen := int(stringLen) 28644 if intStringLen < 0 { 28645 return ErrInvalidLengthQuery 28646 } 28647 postIndex := iNdEx + intStringLen 28648 if postIndex < 0 { 28649 return ErrInvalidLengthQuery 28650 } 28651 if postIndex > l { 28652 return io.ErrUnexpectedEOF 28653 } 28654 m.MarketId = string(dAtA[iNdEx:postIndex]) 28655 iNdEx = postIndex 28656 default: 28657 iNdEx = preIndex 28658 skippy, err := skipQuery(dAtA[iNdEx:]) 28659 if err != nil { 28660 return err 28661 } 28662 if (skippy < 0) || (iNdEx+skippy) < 0 { 28663 return ErrInvalidLengthQuery 28664 } 28665 if (iNdEx + skippy) > l { 28666 return io.ErrUnexpectedEOF 28667 } 28668 iNdEx += skippy 28669 } 28670 } 28671 28672 if iNdEx > l { 28673 return io.ErrUnexpectedEOF 28674 } 28675 return nil 28676 } 28677 func (m *QueryHistoricalTradeRecordsResponse) Unmarshal(dAtA []byte) error { 28678 l := len(dAtA) 28679 iNdEx := 0 28680 for iNdEx < l { 28681 preIndex := iNdEx 28682 var wire uint64 28683 for shift := uint(0); ; shift += 7 { 28684 if shift >= 64 { 28685 return ErrIntOverflowQuery 28686 } 28687 if iNdEx >= l { 28688 return io.ErrUnexpectedEOF 28689 } 28690 b := dAtA[iNdEx] 28691 iNdEx++ 28692 wire |= uint64(b&0x7F) << shift 28693 if b < 0x80 { 28694 break 28695 } 28696 } 28697 fieldNum := int32(wire >> 3) 28698 wireType := int(wire & 0x7) 28699 if wireType == 4 { 28700 return fmt.Errorf("proto: QueryHistoricalTradeRecordsResponse: wiretype end group for non-group") 28701 } 28702 if fieldNum <= 0 { 28703 return fmt.Errorf("proto: QueryHistoricalTradeRecordsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 28704 } 28705 switch fieldNum { 28706 case 1: 28707 if wireType != 2 { 28708 return fmt.Errorf("proto: wrong wireType = %d for field TradeRecords", wireType) 28709 } 28710 var msglen int 28711 for shift := uint(0); ; shift += 7 { 28712 if shift >= 64 { 28713 return ErrIntOverflowQuery 28714 } 28715 if iNdEx >= l { 28716 return io.ErrUnexpectedEOF 28717 } 28718 b := dAtA[iNdEx] 28719 iNdEx++ 28720 msglen |= int(b&0x7F) << shift 28721 if b < 0x80 { 28722 break 28723 } 28724 } 28725 if msglen < 0 { 28726 return ErrInvalidLengthQuery 28727 } 28728 postIndex := iNdEx + msglen 28729 if postIndex < 0 { 28730 return ErrInvalidLengthQuery 28731 } 28732 if postIndex > l { 28733 return io.ErrUnexpectedEOF 28734 } 28735 m.TradeRecords = append(m.TradeRecords, &TradeRecords{}) 28736 if err := m.TradeRecords[len(m.TradeRecords)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 28737 return err 28738 } 28739 iNdEx = postIndex 28740 default: 28741 iNdEx = preIndex 28742 skippy, err := skipQuery(dAtA[iNdEx:]) 28743 if err != nil { 28744 return err 28745 } 28746 if (skippy < 0) || (iNdEx+skippy) < 0 { 28747 return ErrInvalidLengthQuery 28748 } 28749 if (iNdEx + skippy) > l { 28750 return io.ErrUnexpectedEOF 28751 } 28752 iNdEx += skippy 28753 } 28754 } 28755 28756 if iNdEx > l { 28757 return io.ErrUnexpectedEOF 28758 } 28759 return nil 28760 } 28761 func (m *TradeHistoryOptions) Unmarshal(dAtA []byte) error { 28762 l := len(dAtA) 28763 iNdEx := 0 28764 for iNdEx < l { 28765 preIndex := iNdEx 28766 var wire uint64 28767 for shift := uint(0); ; shift += 7 { 28768 if shift >= 64 { 28769 return ErrIntOverflowQuery 28770 } 28771 if iNdEx >= l { 28772 return io.ErrUnexpectedEOF 28773 } 28774 b := dAtA[iNdEx] 28775 iNdEx++ 28776 wire |= uint64(b&0x7F) << shift 28777 if b < 0x80 { 28778 break 28779 } 28780 } 28781 fieldNum := int32(wire >> 3) 28782 wireType := int(wire & 0x7) 28783 if wireType == 4 { 28784 return fmt.Errorf("proto: TradeHistoryOptions: wiretype end group for non-group") 28785 } 28786 if fieldNum <= 0 { 28787 return fmt.Errorf("proto: TradeHistoryOptions: illegal tag %d (wire type %d)", fieldNum, wire) 28788 } 28789 switch fieldNum { 28790 case 1: 28791 if wireType != 0 { 28792 return fmt.Errorf("proto: wrong wireType = %d for field TradeGroupingSec", wireType) 28793 } 28794 m.TradeGroupingSec = 0 28795 for shift := uint(0); ; shift += 7 { 28796 if shift >= 64 { 28797 return ErrIntOverflowQuery 28798 } 28799 if iNdEx >= l { 28800 return io.ErrUnexpectedEOF 28801 } 28802 b := dAtA[iNdEx] 28803 iNdEx++ 28804 m.TradeGroupingSec |= uint64(b&0x7F) << shift 28805 if b < 0x80 { 28806 break 28807 } 28808 } 28809 case 2: 28810 if wireType != 0 { 28811 return fmt.Errorf("proto: wrong wireType = %d for field MaxAge", wireType) 28812 } 28813 m.MaxAge = 0 28814 for shift := uint(0); ; shift += 7 { 28815 if shift >= 64 { 28816 return ErrIntOverflowQuery 28817 } 28818 if iNdEx >= l { 28819 return io.ErrUnexpectedEOF 28820 } 28821 b := dAtA[iNdEx] 28822 iNdEx++ 28823 m.MaxAge |= uint64(b&0x7F) << shift 28824 if b < 0x80 { 28825 break 28826 } 28827 } 28828 case 4: 28829 if wireType != 0 { 28830 return fmt.Errorf("proto: wrong wireType = %d for field IncludeRawHistory", wireType) 28831 } 28832 var v int 28833 for shift := uint(0); ; shift += 7 { 28834 if shift >= 64 { 28835 return ErrIntOverflowQuery 28836 } 28837 if iNdEx >= l { 28838 return io.ErrUnexpectedEOF 28839 } 28840 b := dAtA[iNdEx] 28841 iNdEx++ 28842 v |= int(b&0x7F) << shift 28843 if b < 0x80 { 28844 break 28845 } 28846 } 28847 m.IncludeRawHistory = bool(v != 0) 28848 case 5: 28849 if wireType != 0 { 28850 return fmt.Errorf("proto: wrong wireType = %d for field IncludeMetadata", wireType) 28851 } 28852 var v int 28853 for shift := uint(0); ; shift += 7 { 28854 if shift >= 64 { 28855 return ErrIntOverflowQuery 28856 } 28857 if iNdEx >= l { 28858 return io.ErrUnexpectedEOF 28859 } 28860 b := dAtA[iNdEx] 28861 iNdEx++ 28862 v |= int(b&0x7F) << shift 28863 if b < 0x80 { 28864 break 28865 } 28866 } 28867 m.IncludeMetadata = bool(v != 0) 28868 default: 28869 iNdEx = preIndex 28870 skippy, err := skipQuery(dAtA[iNdEx:]) 28871 if err != nil { 28872 return err 28873 } 28874 if (skippy < 0) || (iNdEx+skippy) < 0 { 28875 return ErrInvalidLengthQuery 28876 } 28877 if (iNdEx + skippy) > l { 28878 return io.ErrUnexpectedEOF 28879 } 28880 iNdEx += skippy 28881 } 28882 } 28883 28884 if iNdEx > l { 28885 return io.ErrUnexpectedEOF 28886 } 28887 return nil 28888 } 28889 func (m *QueryMarketVolatilityRequest) Unmarshal(dAtA []byte) error { 28890 l := len(dAtA) 28891 iNdEx := 0 28892 for iNdEx < l { 28893 preIndex := iNdEx 28894 var wire uint64 28895 for shift := uint(0); ; shift += 7 { 28896 if shift >= 64 { 28897 return ErrIntOverflowQuery 28898 } 28899 if iNdEx >= l { 28900 return io.ErrUnexpectedEOF 28901 } 28902 b := dAtA[iNdEx] 28903 iNdEx++ 28904 wire |= uint64(b&0x7F) << shift 28905 if b < 0x80 { 28906 break 28907 } 28908 } 28909 fieldNum := int32(wire >> 3) 28910 wireType := int(wire & 0x7) 28911 if wireType == 4 { 28912 return fmt.Errorf("proto: QueryMarketVolatilityRequest: wiretype end group for non-group") 28913 } 28914 if fieldNum <= 0 { 28915 return fmt.Errorf("proto: QueryMarketVolatilityRequest: illegal tag %d (wire type %d)", fieldNum, wire) 28916 } 28917 switch fieldNum { 28918 case 1: 28919 if wireType != 2 { 28920 return fmt.Errorf("proto: wrong wireType = %d for field MarketId", wireType) 28921 } 28922 var stringLen uint64 28923 for shift := uint(0); ; shift += 7 { 28924 if shift >= 64 { 28925 return ErrIntOverflowQuery 28926 } 28927 if iNdEx >= l { 28928 return io.ErrUnexpectedEOF 28929 } 28930 b := dAtA[iNdEx] 28931 iNdEx++ 28932 stringLen |= uint64(b&0x7F) << shift 28933 if b < 0x80 { 28934 break 28935 } 28936 } 28937 intStringLen := int(stringLen) 28938 if intStringLen < 0 { 28939 return ErrInvalidLengthQuery 28940 } 28941 postIndex := iNdEx + intStringLen 28942 if postIndex < 0 { 28943 return ErrInvalidLengthQuery 28944 } 28945 if postIndex > l { 28946 return io.ErrUnexpectedEOF 28947 } 28948 m.MarketId = string(dAtA[iNdEx:postIndex]) 28949 iNdEx = postIndex 28950 case 2: 28951 if wireType != 2 { 28952 return fmt.Errorf("proto: wrong wireType = %d for field TradeHistoryOptions", wireType) 28953 } 28954 var msglen int 28955 for shift := uint(0); ; shift += 7 { 28956 if shift >= 64 { 28957 return ErrIntOverflowQuery 28958 } 28959 if iNdEx >= l { 28960 return io.ErrUnexpectedEOF 28961 } 28962 b := dAtA[iNdEx] 28963 iNdEx++ 28964 msglen |= int(b&0x7F) << shift 28965 if b < 0x80 { 28966 break 28967 } 28968 } 28969 if msglen < 0 { 28970 return ErrInvalidLengthQuery 28971 } 28972 postIndex := iNdEx + msglen 28973 if postIndex < 0 { 28974 return ErrInvalidLengthQuery 28975 } 28976 if postIndex > l { 28977 return io.ErrUnexpectedEOF 28978 } 28979 if m.TradeHistoryOptions == nil { 28980 m.TradeHistoryOptions = &TradeHistoryOptions{} 28981 } 28982 if err := m.TradeHistoryOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 28983 return err 28984 } 28985 iNdEx = postIndex 28986 default: 28987 iNdEx = preIndex 28988 skippy, err := skipQuery(dAtA[iNdEx:]) 28989 if err != nil { 28990 return err 28991 } 28992 if (skippy < 0) || (iNdEx+skippy) < 0 { 28993 return ErrInvalidLengthQuery 28994 } 28995 if (iNdEx + skippy) > l { 28996 return io.ErrUnexpectedEOF 28997 } 28998 iNdEx += skippy 28999 } 29000 } 29001 29002 if iNdEx > l { 29003 return io.ErrUnexpectedEOF 29004 } 29005 return nil 29006 } 29007 func (m *QueryMarketVolatilityResponse) Unmarshal(dAtA []byte) error { 29008 l := len(dAtA) 29009 iNdEx := 0 29010 for iNdEx < l { 29011 preIndex := iNdEx 29012 var wire uint64 29013 for shift := uint(0); ; shift += 7 { 29014 if shift >= 64 { 29015 return ErrIntOverflowQuery 29016 } 29017 if iNdEx >= l { 29018 return io.ErrUnexpectedEOF 29019 } 29020 b := dAtA[iNdEx] 29021 iNdEx++ 29022 wire |= uint64(b&0x7F) << shift 29023 if b < 0x80 { 29024 break 29025 } 29026 } 29027 fieldNum := int32(wire >> 3) 29028 wireType := int(wire & 0x7) 29029 if wireType == 4 { 29030 return fmt.Errorf("proto: QueryMarketVolatilityResponse: wiretype end group for non-group") 29031 } 29032 if fieldNum <= 0 { 29033 return fmt.Errorf("proto: QueryMarketVolatilityResponse: illegal tag %d (wire type %d)", fieldNum, wire) 29034 } 29035 switch fieldNum { 29036 case 1: 29037 if wireType != 2 { 29038 return fmt.Errorf("proto: wrong wireType = %d for field Volatility", wireType) 29039 } 29040 var stringLen uint64 29041 for shift := uint(0); ; shift += 7 { 29042 if shift >= 64 { 29043 return ErrIntOverflowQuery 29044 } 29045 if iNdEx >= l { 29046 return io.ErrUnexpectedEOF 29047 } 29048 b := dAtA[iNdEx] 29049 iNdEx++ 29050 stringLen |= uint64(b&0x7F) << shift 29051 if b < 0x80 { 29052 break 29053 } 29054 } 29055 intStringLen := int(stringLen) 29056 if intStringLen < 0 { 29057 return ErrInvalidLengthQuery 29058 } 29059 postIndex := iNdEx + intStringLen 29060 if postIndex < 0 { 29061 return ErrInvalidLengthQuery 29062 } 29063 if postIndex > l { 29064 return io.ErrUnexpectedEOF 29065 } 29066 var v cosmossdk_io_math.LegacyDec 29067 m.Volatility = &v 29068 if err := m.Volatility.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 29069 return err 29070 } 29071 iNdEx = postIndex 29072 case 2: 29073 if wireType != 2 { 29074 return fmt.Errorf("proto: wrong wireType = %d for field HistoryMetadata", wireType) 29075 } 29076 var msglen int 29077 for shift := uint(0); ; shift += 7 { 29078 if shift >= 64 { 29079 return ErrIntOverflowQuery 29080 } 29081 if iNdEx >= l { 29082 return io.ErrUnexpectedEOF 29083 } 29084 b := dAtA[iNdEx] 29085 iNdEx++ 29086 msglen |= int(b&0x7F) << shift 29087 if b < 0x80 { 29088 break 29089 } 29090 } 29091 if msglen < 0 { 29092 return ErrInvalidLengthQuery 29093 } 29094 postIndex := iNdEx + msglen 29095 if postIndex < 0 { 29096 return ErrInvalidLengthQuery 29097 } 29098 if postIndex > l { 29099 return io.ErrUnexpectedEOF 29100 } 29101 if m.HistoryMetadata == nil { 29102 m.HistoryMetadata = &types.MetadataStatistics{} 29103 } 29104 if err := m.HistoryMetadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 29105 return err 29106 } 29107 iNdEx = postIndex 29108 case 3: 29109 if wireType != 2 { 29110 return fmt.Errorf("proto: wrong wireType = %d for field RawHistory", wireType) 29111 } 29112 var msglen int 29113 for shift := uint(0); ; shift += 7 { 29114 if shift >= 64 { 29115 return ErrIntOverflowQuery 29116 } 29117 if iNdEx >= l { 29118 return io.ErrUnexpectedEOF 29119 } 29120 b := dAtA[iNdEx] 29121 iNdEx++ 29122 msglen |= int(b&0x7F) << shift 29123 if b < 0x80 { 29124 break 29125 } 29126 } 29127 if msglen < 0 { 29128 return ErrInvalidLengthQuery 29129 } 29130 postIndex := iNdEx + msglen 29131 if postIndex < 0 { 29132 return ErrInvalidLengthQuery 29133 } 29134 if postIndex > l { 29135 return io.ErrUnexpectedEOF 29136 } 29137 m.RawHistory = append(m.RawHistory, &TradeRecord{}) 29138 if err := m.RawHistory[len(m.RawHistory)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 29139 return err 29140 } 29141 iNdEx = postIndex 29142 default: 29143 iNdEx = preIndex 29144 skippy, err := skipQuery(dAtA[iNdEx:]) 29145 if err != nil { 29146 return err 29147 } 29148 if (skippy < 0) || (iNdEx+skippy) < 0 { 29149 return ErrInvalidLengthQuery 29150 } 29151 if (iNdEx + skippy) > l { 29152 return io.ErrUnexpectedEOF 29153 } 29154 iNdEx += skippy 29155 } 29156 } 29157 29158 if iNdEx > l { 29159 return io.ErrUnexpectedEOF 29160 } 29161 return nil 29162 } 29163 func (m *QueryBinaryMarketsRequest) Unmarshal(dAtA []byte) error { 29164 l := len(dAtA) 29165 iNdEx := 0 29166 for iNdEx < l { 29167 preIndex := iNdEx 29168 var wire uint64 29169 for shift := uint(0); ; shift += 7 { 29170 if shift >= 64 { 29171 return ErrIntOverflowQuery 29172 } 29173 if iNdEx >= l { 29174 return io.ErrUnexpectedEOF 29175 } 29176 b := dAtA[iNdEx] 29177 iNdEx++ 29178 wire |= uint64(b&0x7F) << shift 29179 if b < 0x80 { 29180 break 29181 } 29182 } 29183 fieldNum := int32(wire >> 3) 29184 wireType := int(wire & 0x7) 29185 if wireType == 4 { 29186 return fmt.Errorf("proto: QueryBinaryMarketsRequest: wiretype end group for non-group") 29187 } 29188 if fieldNum <= 0 { 29189 return fmt.Errorf("proto: QueryBinaryMarketsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 29190 } 29191 switch fieldNum { 29192 case 1: 29193 if wireType != 2 { 29194 return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) 29195 } 29196 var stringLen uint64 29197 for shift := uint(0); ; shift += 7 { 29198 if shift >= 64 { 29199 return ErrIntOverflowQuery 29200 } 29201 if iNdEx >= l { 29202 return io.ErrUnexpectedEOF 29203 } 29204 b := dAtA[iNdEx] 29205 iNdEx++ 29206 stringLen |= uint64(b&0x7F) << shift 29207 if b < 0x80 { 29208 break 29209 } 29210 } 29211 intStringLen := int(stringLen) 29212 if intStringLen < 0 { 29213 return ErrInvalidLengthQuery 29214 } 29215 postIndex := iNdEx + intStringLen 29216 if postIndex < 0 { 29217 return ErrInvalidLengthQuery 29218 } 29219 if postIndex > l { 29220 return io.ErrUnexpectedEOF 29221 } 29222 m.Status = string(dAtA[iNdEx:postIndex]) 29223 iNdEx = postIndex 29224 default: 29225 iNdEx = preIndex 29226 skippy, err := skipQuery(dAtA[iNdEx:]) 29227 if err != nil { 29228 return err 29229 } 29230 if (skippy < 0) || (iNdEx+skippy) < 0 { 29231 return ErrInvalidLengthQuery 29232 } 29233 if (iNdEx + skippy) > l { 29234 return io.ErrUnexpectedEOF 29235 } 29236 iNdEx += skippy 29237 } 29238 } 29239 29240 if iNdEx > l { 29241 return io.ErrUnexpectedEOF 29242 } 29243 return nil 29244 } 29245 func (m *QueryBinaryMarketsResponse) Unmarshal(dAtA []byte) error { 29246 l := len(dAtA) 29247 iNdEx := 0 29248 for iNdEx < l { 29249 preIndex := iNdEx 29250 var wire uint64 29251 for shift := uint(0); ; shift += 7 { 29252 if shift >= 64 { 29253 return ErrIntOverflowQuery 29254 } 29255 if iNdEx >= l { 29256 return io.ErrUnexpectedEOF 29257 } 29258 b := dAtA[iNdEx] 29259 iNdEx++ 29260 wire |= uint64(b&0x7F) << shift 29261 if b < 0x80 { 29262 break 29263 } 29264 } 29265 fieldNum := int32(wire >> 3) 29266 wireType := int(wire & 0x7) 29267 if wireType == 4 { 29268 return fmt.Errorf("proto: QueryBinaryMarketsResponse: wiretype end group for non-group") 29269 } 29270 if fieldNum <= 0 { 29271 return fmt.Errorf("proto: QueryBinaryMarketsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 29272 } 29273 switch fieldNum { 29274 case 1: 29275 if wireType != 2 { 29276 return fmt.Errorf("proto: wrong wireType = %d for field Markets", wireType) 29277 } 29278 var msglen int 29279 for shift := uint(0); ; shift += 7 { 29280 if shift >= 64 { 29281 return ErrIntOverflowQuery 29282 } 29283 if iNdEx >= l { 29284 return io.ErrUnexpectedEOF 29285 } 29286 b := dAtA[iNdEx] 29287 iNdEx++ 29288 msglen |= int(b&0x7F) << shift 29289 if b < 0x80 { 29290 break 29291 } 29292 } 29293 if msglen < 0 { 29294 return ErrInvalidLengthQuery 29295 } 29296 postIndex := iNdEx + msglen 29297 if postIndex < 0 { 29298 return ErrInvalidLengthQuery 29299 } 29300 if postIndex > l { 29301 return io.ErrUnexpectedEOF 29302 } 29303 m.Markets = append(m.Markets, &BinaryOptionsMarket{}) 29304 if err := m.Markets[len(m.Markets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 29305 return err 29306 } 29307 iNdEx = postIndex 29308 default: 29309 iNdEx = preIndex 29310 skippy, err := skipQuery(dAtA[iNdEx:]) 29311 if err != nil { 29312 return err 29313 } 29314 if (skippy < 0) || (iNdEx+skippy) < 0 { 29315 return ErrInvalidLengthQuery 29316 } 29317 if (iNdEx + skippy) > l { 29318 return io.ErrUnexpectedEOF 29319 } 29320 iNdEx += skippy 29321 } 29322 } 29323 29324 if iNdEx > l { 29325 return io.ErrUnexpectedEOF 29326 } 29327 return nil 29328 } 29329 func (m *QueryTraderDerivativeConditionalOrdersRequest) Unmarshal(dAtA []byte) error { 29330 l := len(dAtA) 29331 iNdEx := 0 29332 for iNdEx < l { 29333 preIndex := iNdEx 29334 var wire uint64 29335 for shift := uint(0); ; shift += 7 { 29336 if shift >= 64 { 29337 return ErrIntOverflowQuery 29338 } 29339 if iNdEx >= l { 29340 return io.ErrUnexpectedEOF 29341 } 29342 b := dAtA[iNdEx] 29343 iNdEx++ 29344 wire |= uint64(b&0x7F) << shift 29345 if b < 0x80 { 29346 break 29347 } 29348 } 29349 fieldNum := int32(wire >> 3) 29350 wireType := int(wire & 0x7) 29351 if wireType == 4 { 29352 return fmt.Errorf("proto: QueryTraderDerivativeConditionalOrdersRequest: wiretype end group for non-group") 29353 } 29354 if fieldNum <= 0 { 29355 return fmt.Errorf("proto: QueryTraderDerivativeConditionalOrdersRequest: illegal tag %d (wire type %d)", fieldNum, wire) 29356 } 29357 switch fieldNum { 29358 case 1: 29359 if wireType != 2 { 29360 return fmt.Errorf("proto: wrong wireType = %d for field SubaccountId", wireType) 29361 } 29362 var stringLen uint64 29363 for shift := uint(0); ; shift += 7 { 29364 if shift >= 64 { 29365 return ErrIntOverflowQuery 29366 } 29367 if iNdEx >= l { 29368 return io.ErrUnexpectedEOF 29369 } 29370 b := dAtA[iNdEx] 29371 iNdEx++ 29372 stringLen |= uint64(b&0x7F) << shift 29373 if b < 0x80 { 29374 break 29375 } 29376 } 29377 intStringLen := int(stringLen) 29378 if intStringLen < 0 { 29379 return ErrInvalidLengthQuery 29380 } 29381 postIndex := iNdEx + intStringLen 29382 if postIndex < 0 { 29383 return ErrInvalidLengthQuery 29384 } 29385 if postIndex > l { 29386 return io.ErrUnexpectedEOF 29387 } 29388 m.SubaccountId = string(dAtA[iNdEx:postIndex]) 29389 iNdEx = postIndex 29390 case 2: 29391 if wireType != 2 { 29392 return fmt.Errorf("proto: wrong wireType = %d for field MarketId", wireType) 29393 } 29394 var stringLen uint64 29395 for shift := uint(0); ; shift += 7 { 29396 if shift >= 64 { 29397 return ErrIntOverflowQuery 29398 } 29399 if iNdEx >= l { 29400 return io.ErrUnexpectedEOF 29401 } 29402 b := dAtA[iNdEx] 29403 iNdEx++ 29404 stringLen |= uint64(b&0x7F) << shift 29405 if b < 0x80 { 29406 break 29407 } 29408 } 29409 intStringLen := int(stringLen) 29410 if intStringLen < 0 { 29411 return ErrInvalidLengthQuery 29412 } 29413 postIndex := iNdEx + intStringLen 29414 if postIndex < 0 { 29415 return ErrInvalidLengthQuery 29416 } 29417 if postIndex > l { 29418 return io.ErrUnexpectedEOF 29419 } 29420 m.MarketId = string(dAtA[iNdEx:postIndex]) 29421 iNdEx = postIndex 29422 default: 29423 iNdEx = preIndex 29424 skippy, err := skipQuery(dAtA[iNdEx:]) 29425 if err != nil { 29426 return err 29427 } 29428 if (skippy < 0) || (iNdEx+skippy) < 0 { 29429 return ErrInvalidLengthQuery 29430 } 29431 if (iNdEx + skippy) > l { 29432 return io.ErrUnexpectedEOF 29433 } 29434 iNdEx += skippy 29435 } 29436 } 29437 29438 if iNdEx > l { 29439 return io.ErrUnexpectedEOF 29440 } 29441 return nil 29442 } 29443 func (m *TrimmedDerivativeConditionalOrder) Unmarshal(dAtA []byte) error { 29444 l := len(dAtA) 29445 iNdEx := 0 29446 for iNdEx < l { 29447 preIndex := iNdEx 29448 var wire uint64 29449 for shift := uint(0); ; shift += 7 { 29450 if shift >= 64 { 29451 return ErrIntOverflowQuery 29452 } 29453 if iNdEx >= l { 29454 return io.ErrUnexpectedEOF 29455 } 29456 b := dAtA[iNdEx] 29457 iNdEx++ 29458 wire |= uint64(b&0x7F) << shift 29459 if b < 0x80 { 29460 break 29461 } 29462 } 29463 fieldNum := int32(wire >> 3) 29464 wireType := int(wire & 0x7) 29465 if wireType == 4 { 29466 return fmt.Errorf("proto: TrimmedDerivativeConditionalOrder: wiretype end group for non-group") 29467 } 29468 if fieldNum <= 0 { 29469 return fmt.Errorf("proto: TrimmedDerivativeConditionalOrder: illegal tag %d (wire type %d)", fieldNum, wire) 29470 } 29471 switch fieldNum { 29472 case 1: 29473 if wireType != 2 { 29474 return fmt.Errorf("proto: wrong wireType = %d for field Price", wireType) 29475 } 29476 var stringLen uint64 29477 for shift := uint(0); ; shift += 7 { 29478 if shift >= 64 { 29479 return ErrIntOverflowQuery 29480 } 29481 if iNdEx >= l { 29482 return io.ErrUnexpectedEOF 29483 } 29484 b := dAtA[iNdEx] 29485 iNdEx++ 29486 stringLen |= uint64(b&0x7F) << shift 29487 if b < 0x80 { 29488 break 29489 } 29490 } 29491 intStringLen := int(stringLen) 29492 if intStringLen < 0 { 29493 return ErrInvalidLengthQuery 29494 } 29495 postIndex := iNdEx + intStringLen 29496 if postIndex < 0 { 29497 return ErrInvalidLengthQuery 29498 } 29499 if postIndex > l { 29500 return io.ErrUnexpectedEOF 29501 } 29502 if err := m.Price.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 29503 return err 29504 } 29505 iNdEx = postIndex 29506 case 2: 29507 if wireType != 2 { 29508 return fmt.Errorf("proto: wrong wireType = %d for field Quantity", wireType) 29509 } 29510 var stringLen uint64 29511 for shift := uint(0); ; shift += 7 { 29512 if shift >= 64 { 29513 return ErrIntOverflowQuery 29514 } 29515 if iNdEx >= l { 29516 return io.ErrUnexpectedEOF 29517 } 29518 b := dAtA[iNdEx] 29519 iNdEx++ 29520 stringLen |= uint64(b&0x7F) << shift 29521 if b < 0x80 { 29522 break 29523 } 29524 } 29525 intStringLen := int(stringLen) 29526 if intStringLen < 0 { 29527 return ErrInvalidLengthQuery 29528 } 29529 postIndex := iNdEx + intStringLen 29530 if postIndex < 0 { 29531 return ErrInvalidLengthQuery 29532 } 29533 if postIndex > l { 29534 return io.ErrUnexpectedEOF 29535 } 29536 if err := m.Quantity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 29537 return err 29538 } 29539 iNdEx = postIndex 29540 case 3: 29541 if wireType != 2 { 29542 return fmt.Errorf("proto: wrong wireType = %d for field Margin", wireType) 29543 } 29544 var stringLen uint64 29545 for shift := uint(0); ; shift += 7 { 29546 if shift >= 64 { 29547 return ErrIntOverflowQuery 29548 } 29549 if iNdEx >= l { 29550 return io.ErrUnexpectedEOF 29551 } 29552 b := dAtA[iNdEx] 29553 iNdEx++ 29554 stringLen |= uint64(b&0x7F) << shift 29555 if b < 0x80 { 29556 break 29557 } 29558 } 29559 intStringLen := int(stringLen) 29560 if intStringLen < 0 { 29561 return ErrInvalidLengthQuery 29562 } 29563 postIndex := iNdEx + intStringLen 29564 if postIndex < 0 { 29565 return ErrInvalidLengthQuery 29566 } 29567 if postIndex > l { 29568 return io.ErrUnexpectedEOF 29569 } 29570 if err := m.Margin.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 29571 return err 29572 } 29573 iNdEx = postIndex 29574 case 4: 29575 if wireType != 2 { 29576 return fmt.Errorf("proto: wrong wireType = %d for field TriggerPrice", wireType) 29577 } 29578 var stringLen uint64 29579 for shift := uint(0); ; shift += 7 { 29580 if shift >= 64 { 29581 return ErrIntOverflowQuery 29582 } 29583 if iNdEx >= l { 29584 return io.ErrUnexpectedEOF 29585 } 29586 b := dAtA[iNdEx] 29587 iNdEx++ 29588 stringLen |= uint64(b&0x7F) << shift 29589 if b < 0x80 { 29590 break 29591 } 29592 } 29593 intStringLen := int(stringLen) 29594 if intStringLen < 0 { 29595 return ErrInvalidLengthQuery 29596 } 29597 postIndex := iNdEx + intStringLen 29598 if postIndex < 0 { 29599 return ErrInvalidLengthQuery 29600 } 29601 if postIndex > l { 29602 return io.ErrUnexpectedEOF 29603 } 29604 if err := m.TriggerPrice.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 29605 return err 29606 } 29607 iNdEx = postIndex 29608 case 5: 29609 if wireType != 0 { 29610 return fmt.Errorf("proto: wrong wireType = %d for field IsBuy", wireType) 29611 } 29612 var v int 29613 for shift := uint(0); ; shift += 7 { 29614 if shift >= 64 { 29615 return ErrIntOverflowQuery 29616 } 29617 if iNdEx >= l { 29618 return io.ErrUnexpectedEOF 29619 } 29620 b := dAtA[iNdEx] 29621 iNdEx++ 29622 v |= int(b&0x7F) << shift 29623 if b < 0x80 { 29624 break 29625 } 29626 } 29627 m.IsBuy = bool(v != 0) 29628 case 6: 29629 if wireType != 0 { 29630 return fmt.Errorf("proto: wrong wireType = %d for field IsLimit", wireType) 29631 } 29632 var v int 29633 for shift := uint(0); ; shift += 7 { 29634 if shift >= 64 { 29635 return ErrIntOverflowQuery 29636 } 29637 if iNdEx >= l { 29638 return io.ErrUnexpectedEOF 29639 } 29640 b := dAtA[iNdEx] 29641 iNdEx++ 29642 v |= int(b&0x7F) << shift 29643 if b < 0x80 { 29644 break 29645 } 29646 } 29647 m.IsLimit = bool(v != 0) 29648 case 7: 29649 if wireType != 2 { 29650 return fmt.Errorf("proto: wrong wireType = %d for field OrderHash", wireType) 29651 } 29652 var stringLen uint64 29653 for shift := uint(0); ; shift += 7 { 29654 if shift >= 64 { 29655 return ErrIntOverflowQuery 29656 } 29657 if iNdEx >= l { 29658 return io.ErrUnexpectedEOF 29659 } 29660 b := dAtA[iNdEx] 29661 iNdEx++ 29662 stringLen |= uint64(b&0x7F) << shift 29663 if b < 0x80 { 29664 break 29665 } 29666 } 29667 intStringLen := int(stringLen) 29668 if intStringLen < 0 { 29669 return ErrInvalidLengthQuery 29670 } 29671 postIndex := iNdEx + intStringLen 29672 if postIndex < 0 { 29673 return ErrInvalidLengthQuery 29674 } 29675 if postIndex > l { 29676 return io.ErrUnexpectedEOF 29677 } 29678 m.OrderHash = string(dAtA[iNdEx:postIndex]) 29679 iNdEx = postIndex 29680 case 8: 29681 if wireType != 2 { 29682 return fmt.Errorf("proto: wrong wireType = %d for field Cid", wireType) 29683 } 29684 var stringLen uint64 29685 for shift := uint(0); ; shift += 7 { 29686 if shift >= 64 { 29687 return ErrIntOverflowQuery 29688 } 29689 if iNdEx >= l { 29690 return io.ErrUnexpectedEOF 29691 } 29692 b := dAtA[iNdEx] 29693 iNdEx++ 29694 stringLen |= uint64(b&0x7F) << shift 29695 if b < 0x80 { 29696 break 29697 } 29698 } 29699 intStringLen := int(stringLen) 29700 if intStringLen < 0 { 29701 return ErrInvalidLengthQuery 29702 } 29703 postIndex := iNdEx + intStringLen 29704 if postIndex < 0 { 29705 return ErrInvalidLengthQuery 29706 } 29707 if postIndex > l { 29708 return io.ErrUnexpectedEOF 29709 } 29710 m.Cid = string(dAtA[iNdEx:postIndex]) 29711 iNdEx = postIndex 29712 default: 29713 iNdEx = preIndex 29714 skippy, err := skipQuery(dAtA[iNdEx:]) 29715 if err != nil { 29716 return err 29717 } 29718 if (skippy < 0) || (iNdEx+skippy) < 0 { 29719 return ErrInvalidLengthQuery 29720 } 29721 if (iNdEx + skippy) > l { 29722 return io.ErrUnexpectedEOF 29723 } 29724 iNdEx += skippy 29725 } 29726 } 29727 29728 if iNdEx > l { 29729 return io.ErrUnexpectedEOF 29730 } 29731 return nil 29732 } 29733 func (m *QueryTraderDerivativeConditionalOrdersResponse) Unmarshal(dAtA []byte) error { 29734 l := len(dAtA) 29735 iNdEx := 0 29736 for iNdEx < l { 29737 preIndex := iNdEx 29738 var wire uint64 29739 for shift := uint(0); ; shift += 7 { 29740 if shift >= 64 { 29741 return ErrIntOverflowQuery 29742 } 29743 if iNdEx >= l { 29744 return io.ErrUnexpectedEOF 29745 } 29746 b := dAtA[iNdEx] 29747 iNdEx++ 29748 wire |= uint64(b&0x7F) << shift 29749 if b < 0x80 { 29750 break 29751 } 29752 } 29753 fieldNum := int32(wire >> 3) 29754 wireType := int(wire & 0x7) 29755 if wireType == 4 { 29756 return fmt.Errorf("proto: QueryTraderDerivativeConditionalOrdersResponse: wiretype end group for non-group") 29757 } 29758 if fieldNum <= 0 { 29759 return fmt.Errorf("proto: QueryTraderDerivativeConditionalOrdersResponse: illegal tag %d (wire type %d)", fieldNum, wire) 29760 } 29761 switch fieldNum { 29762 case 1: 29763 if wireType != 2 { 29764 return fmt.Errorf("proto: wrong wireType = %d for field Orders", wireType) 29765 } 29766 var msglen int 29767 for shift := uint(0); ; shift += 7 { 29768 if shift >= 64 { 29769 return ErrIntOverflowQuery 29770 } 29771 if iNdEx >= l { 29772 return io.ErrUnexpectedEOF 29773 } 29774 b := dAtA[iNdEx] 29775 iNdEx++ 29776 msglen |= int(b&0x7F) << shift 29777 if b < 0x80 { 29778 break 29779 } 29780 } 29781 if msglen < 0 { 29782 return ErrInvalidLengthQuery 29783 } 29784 postIndex := iNdEx + msglen 29785 if postIndex < 0 { 29786 return ErrInvalidLengthQuery 29787 } 29788 if postIndex > l { 29789 return io.ErrUnexpectedEOF 29790 } 29791 m.Orders = append(m.Orders, &TrimmedDerivativeConditionalOrder{}) 29792 if err := m.Orders[len(m.Orders)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 29793 return err 29794 } 29795 iNdEx = postIndex 29796 default: 29797 iNdEx = preIndex 29798 skippy, err := skipQuery(dAtA[iNdEx:]) 29799 if err != nil { 29800 return err 29801 } 29802 if (skippy < 0) || (iNdEx+skippy) < 0 { 29803 return ErrInvalidLengthQuery 29804 } 29805 if (iNdEx + skippy) > l { 29806 return io.ErrUnexpectedEOF 29807 } 29808 iNdEx += skippy 29809 } 29810 } 29811 29812 if iNdEx > l { 29813 return io.ErrUnexpectedEOF 29814 } 29815 return nil 29816 } 29817 func (m *QueryMarketAtomicExecutionFeeMultiplierRequest) Unmarshal(dAtA []byte) error { 29818 l := len(dAtA) 29819 iNdEx := 0 29820 for iNdEx < l { 29821 preIndex := iNdEx 29822 var wire uint64 29823 for shift := uint(0); ; shift += 7 { 29824 if shift >= 64 { 29825 return ErrIntOverflowQuery 29826 } 29827 if iNdEx >= l { 29828 return io.ErrUnexpectedEOF 29829 } 29830 b := dAtA[iNdEx] 29831 iNdEx++ 29832 wire |= uint64(b&0x7F) << shift 29833 if b < 0x80 { 29834 break 29835 } 29836 } 29837 fieldNum := int32(wire >> 3) 29838 wireType := int(wire & 0x7) 29839 if wireType == 4 { 29840 return fmt.Errorf("proto: QueryMarketAtomicExecutionFeeMultiplierRequest: wiretype end group for non-group") 29841 } 29842 if fieldNum <= 0 { 29843 return fmt.Errorf("proto: QueryMarketAtomicExecutionFeeMultiplierRequest: illegal tag %d (wire type %d)", fieldNum, wire) 29844 } 29845 switch fieldNum { 29846 case 1: 29847 if wireType != 2 { 29848 return fmt.Errorf("proto: wrong wireType = %d for field MarketId", wireType) 29849 } 29850 var stringLen uint64 29851 for shift := uint(0); ; shift += 7 { 29852 if shift >= 64 { 29853 return ErrIntOverflowQuery 29854 } 29855 if iNdEx >= l { 29856 return io.ErrUnexpectedEOF 29857 } 29858 b := dAtA[iNdEx] 29859 iNdEx++ 29860 stringLen |= uint64(b&0x7F) << shift 29861 if b < 0x80 { 29862 break 29863 } 29864 } 29865 intStringLen := int(stringLen) 29866 if intStringLen < 0 { 29867 return ErrInvalidLengthQuery 29868 } 29869 postIndex := iNdEx + intStringLen 29870 if postIndex < 0 { 29871 return ErrInvalidLengthQuery 29872 } 29873 if postIndex > l { 29874 return io.ErrUnexpectedEOF 29875 } 29876 m.MarketId = string(dAtA[iNdEx:postIndex]) 29877 iNdEx = postIndex 29878 default: 29879 iNdEx = preIndex 29880 skippy, err := skipQuery(dAtA[iNdEx:]) 29881 if err != nil { 29882 return err 29883 } 29884 if (skippy < 0) || (iNdEx+skippy) < 0 { 29885 return ErrInvalidLengthQuery 29886 } 29887 if (iNdEx + skippy) > l { 29888 return io.ErrUnexpectedEOF 29889 } 29890 iNdEx += skippy 29891 } 29892 } 29893 29894 if iNdEx > l { 29895 return io.ErrUnexpectedEOF 29896 } 29897 return nil 29898 } 29899 func (m *QueryMarketAtomicExecutionFeeMultiplierResponse) Unmarshal(dAtA []byte) error { 29900 l := len(dAtA) 29901 iNdEx := 0 29902 for iNdEx < l { 29903 preIndex := iNdEx 29904 var wire uint64 29905 for shift := uint(0); ; shift += 7 { 29906 if shift >= 64 { 29907 return ErrIntOverflowQuery 29908 } 29909 if iNdEx >= l { 29910 return io.ErrUnexpectedEOF 29911 } 29912 b := dAtA[iNdEx] 29913 iNdEx++ 29914 wire |= uint64(b&0x7F) << shift 29915 if b < 0x80 { 29916 break 29917 } 29918 } 29919 fieldNum := int32(wire >> 3) 29920 wireType := int(wire & 0x7) 29921 if wireType == 4 { 29922 return fmt.Errorf("proto: QueryMarketAtomicExecutionFeeMultiplierResponse: wiretype end group for non-group") 29923 } 29924 if fieldNum <= 0 { 29925 return fmt.Errorf("proto: QueryMarketAtomicExecutionFeeMultiplierResponse: illegal tag %d (wire type %d)", fieldNum, wire) 29926 } 29927 switch fieldNum { 29928 case 1: 29929 if wireType != 2 { 29930 return fmt.Errorf("proto: wrong wireType = %d for field Multiplier", wireType) 29931 } 29932 var stringLen uint64 29933 for shift := uint(0); ; shift += 7 { 29934 if shift >= 64 { 29935 return ErrIntOverflowQuery 29936 } 29937 if iNdEx >= l { 29938 return io.ErrUnexpectedEOF 29939 } 29940 b := dAtA[iNdEx] 29941 iNdEx++ 29942 stringLen |= uint64(b&0x7F) << shift 29943 if b < 0x80 { 29944 break 29945 } 29946 } 29947 intStringLen := int(stringLen) 29948 if intStringLen < 0 { 29949 return ErrInvalidLengthQuery 29950 } 29951 postIndex := iNdEx + intStringLen 29952 if postIndex < 0 { 29953 return ErrInvalidLengthQuery 29954 } 29955 if postIndex > l { 29956 return io.ErrUnexpectedEOF 29957 } 29958 if err := m.Multiplier.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 29959 return err 29960 } 29961 iNdEx = postIndex 29962 default: 29963 iNdEx = preIndex 29964 skippy, err := skipQuery(dAtA[iNdEx:]) 29965 if err != nil { 29966 return err 29967 } 29968 if (skippy < 0) || (iNdEx+skippy) < 0 { 29969 return ErrInvalidLengthQuery 29970 } 29971 if (iNdEx + skippy) > l { 29972 return io.ErrUnexpectedEOF 29973 } 29974 iNdEx += skippy 29975 } 29976 } 29977 29978 if iNdEx > l { 29979 return io.ErrUnexpectedEOF 29980 } 29981 return nil 29982 } 29983 func (m *QueryActiveStakeGrantRequest) Unmarshal(dAtA []byte) error { 29984 l := len(dAtA) 29985 iNdEx := 0 29986 for iNdEx < l { 29987 preIndex := iNdEx 29988 var wire uint64 29989 for shift := uint(0); ; shift += 7 { 29990 if shift >= 64 { 29991 return ErrIntOverflowQuery 29992 } 29993 if iNdEx >= l { 29994 return io.ErrUnexpectedEOF 29995 } 29996 b := dAtA[iNdEx] 29997 iNdEx++ 29998 wire |= uint64(b&0x7F) << shift 29999 if b < 0x80 { 30000 break 30001 } 30002 } 30003 fieldNum := int32(wire >> 3) 30004 wireType := int(wire & 0x7) 30005 if wireType == 4 { 30006 return fmt.Errorf("proto: QueryActiveStakeGrantRequest: wiretype end group for non-group") 30007 } 30008 if fieldNum <= 0 { 30009 return fmt.Errorf("proto: QueryActiveStakeGrantRequest: illegal tag %d (wire type %d)", fieldNum, wire) 30010 } 30011 switch fieldNum { 30012 case 1: 30013 if wireType != 2 { 30014 return fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType) 30015 } 30016 var stringLen uint64 30017 for shift := uint(0); ; shift += 7 { 30018 if shift >= 64 { 30019 return ErrIntOverflowQuery 30020 } 30021 if iNdEx >= l { 30022 return io.ErrUnexpectedEOF 30023 } 30024 b := dAtA[iNdEx] 30025 iNdEx++ 30026 stringLen |= uint64(b&0x7F) << shift 30027 if b < 0x80 { 30028 break 30029 } 30030 } 30031 intStringLen := int(stringLen) 30032 if intStringLen < 0 { 30033 return ErrInvalidLengthQuery 30034 } 30035 postIndex := iNdEx + intStringLen 30036 if postIndex < 0 { 30037 return ErrInvalidLengthQuery 30038 } 30039 if postIndex > l { 30040 return io.ErrUnexpectedEOF 30041 } 30042 m.Grantee = string(dAtA[iNdEx:postIndex]) 30043 iNdEx = postIndex 30044 default: 30045 iNdEx = preIndex 30046 skippy, err := skipQuery(dAtA[iNdEx:]) 30047 if err != nil { 30048 return err 30049 } 30050 if (skippy < 0) || (iNdEx+skippy) < 0 { 30051 return ErrInvalidLengthQuery 30052 } 30053 if (iNdEx + skippy) > l { 30054 return io.ErrUnexpectedEOF 30055 } 30056 iNdEx += skippy 30057 } 30058 } 30059 30060 if iNdEx > l { 30061 return io.ErrUnexpectedEOF 30062 } 30063 return nil 30064 } 30065 func (m *QueryActiveStakeGrantResponse) Unmarshal(dAtA []byte) error { 30066 l := len(dAtA) 30067 iNdEx := 0 30068 for iNdEx < l { 30069 preIndex := iNdEx 30070 var wire uint64 30071 for shift := uint(0); ; shift += 7 { 30072 if shift >= 64 { 30073 return ErrIntOverflowQuery 30074 } 30075 if iNdEx >= l { 30076 return io.ErrUnexpectedEOF 30077 } 30078 b := dAtA[iNdEx] 30079 iNdEx++ 30080 wire |= uint64(b&0x7F) << shift 30081 if b < 0x80 { 30082 break 30083 } 30084 } 30085 fieldNum := int32(wire >> 3) 30086 wireType := int(wire & 0x7) 30087 if wireType == 4 { 30088 return fmt.Errorf("proto: QueryActiveStakeGrantResponse: wiretype end group for non-group") 30089 } 30090 if fieldNum <= 0 { 30091 return fmt.Errorf("proto: QueryActiveStakeGrantResponse: illegal tag %d (wire type %d)", fieldNum, wire) 30092 } 30093 switch fieldNum { 30094 case 1: 30095 if wireType != 2 { 30096 return fmt.Errorf("proto: wrong wireType = %d for field Grant", wireType) 30097 } 30098 var msglen int 30099 for shift := uint(0); ; shift += 7 { 30100 if shift >= 64 { 30101 return ErrIntOverflowQuery 30102 } 30103 if iNdEx >= l { 30104 return io.ErrUnexpectedEOF 30105 } 30106 b := dAtA[iNdEx] 30107 iNdEx++ 30108 msglen |= int(b&0x7F) << shift 30109 if b < 0x80 { 30110 break 30111 } 30112 } 30113 if msglen < 0 { 30114 return ErrInvalidLengthQuery 30115 } 30116 postIndex := iNdEx + msglen 30117 if postIndex < 0 { 30118 return ErrInvalidLengthQuery 30119 } 30120 if postIndex > l { 30121 return io.ErrUnexpectedEOF 30122 } 30123 if m.Grant == nil { 30124 m.Grant = &ActiveGrant{} 30125 } 30126 if err := m.Grant.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 30127 return err 30128 } 30129 iNdEx = postIndex 30130 case 2: 30131 if wireType != 2 { 30132 return fmt.Errorf("proto: wrong wireType = %d for field EffectiveGrant", wireType) 30133 } 30134 var msglen int 30135 for shift := uint(0); ; shift += 7 { 30136 if shift >= 64 { 30137 return ErrIntOverflowQuery 30138 } 30139 if iNdEx >= l { 30140 return io.ErrUnexpectedEOF 30141 } 30142 b := dAtA[iNdEx] 30143 iNdEx++ 30144 msglen |= int(b&0x7F) << shift 30145 if b < 0x80 { 30146 break 30147 } 30148 } 30149 if msglen < 0 { 30150 return ErrInvalidLengthQuery 30151 } 30152 postIndex := iNdEx + msglen 30153 if postIndex < 0 { 30154 return ErrInvalidLengthQuery 30155 } 30156 if postIndex > l { 30157 return io.ErrUnexpectedEOF 30158 } 30159 if m.EffectiveGrant == nil { 30160 m.EffectiveGrant = &EffectiveGrant{} 30161 } 30162 if err := m.EffectiveGrant.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 30163 return err 30164 } 30165 iNdEx = postIndex 30166 default: 30167 iNdEx = preIndex 30168 skippy, err := skipQuery(dAtA[iNdEx:]) 30169 if err != nil { 30170 return err 30171 } 30172 if (skippy < 0) || (iNdEx+skippy) < 0 { 30173 return ErrInvalidLengthQuery 30174 } 30175 if (iNdEx + skippy) > l { 30176 return io.ErrUnexpectedEOF 30177 } 30178 iNdEx += skippy 30179 } 30180 } 30181 30182 if iNdEx > l { 30183 return io.ErrUnexpectedEOF 30184 } 30185 return nil 30186 } 30187 func (m *QueryGrantAuthorizationRequest) Unmarshal(dAtA []byte) error { 30188 l := len(dAtA) 30189 iNdEx := 0 30190 for iNdEx < l { 30191 preIndex := iNdEx 30192 var wire uint64 30193 for shift := uint(0); ; shift += 7 { 30194 if shift >= 64 { 30195 return ErrIntOverflowQuery 30196 } 30197 if iNdEx >= l { 30198 return io.ErrUnexpectedEOF 30199 } 30200 b := dAtA[iNdEx] 30201 iNdEx++ 30202 wire |= uint64(b&0x7F) << shift 30203 if b < 0x80 { 30204 break 30205 } 30206 } 30207 fieldNum := int32(wire >> 3) 30208 wireType := int(wire & 0x7) 30209 if wireType == 4 { 30210 return fmt.Errorf("proto: QueryGrantAuthorizationRequest: wiretype end group for non-group") 30211 } 30212 if fieldNum <= 0 { 30213 return fmt.Errorf("proto: QueryGrantAuthorizationRequest: illegal tag %d (wire type %d)", fieldNum, wire) 30214 } 30215 switch fieldNum { 30216 case 1: 30217 if wireType != 2 { 30218 return fmt.Errorf("proto: wrong wireType = %d for field Granter", wireType) 30219 } 30220 var stringLen uint64 30221 for shift := uint(0); ; shift += 7 { 30222 if shift >= 64 { 30223 return ErrIntOverflowQuery 30224 } 30225 if iNdEx >= l { 30226 return io.ErrUnexpectedEOF 30227 } 30228 b := dAtA[iNdEx] 30229 iNdEx++ 30230 stringLen |= uint64(b&0x7F) << shift 30231 if b < 0x80 { 30232 break 30233 } 30234 } 30235 intStringLen := int(stringLen) 30236 if intStringLen < 0 { 30237 return ErrInvalidLengthQuery 30238 } 30239 postIndex := iNdEx + intStringLen 30240 if postIndex < 0 { 30241 return ErrInvalidLengthQuery 30242 } 30243 if postIndex > l { 30244 return io.ErrUnexpectedEOF 30245 } 30246 m.Granter = string(dAtA[iNdEx:postIndex]) 30247 iNdEx = postIndex 30248 case 2: 30249 if wireType != 2 { 30250 return fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType) 30251 } 30252 var stringLen uint64 30253 for shift := uint(0); ; shift += 7 { 30254 if shift >= 64 { 30255 return ErrIntOverflowQuery 30256 } 30257 if iNdEx >= l { 30258 return io.ErrUnexpectedEOF 30259 } 30260 b := dAtA[iNdEx] 30261 iNdEx++ 30262 stringLen |= uint64(b&0x7F) << shift 30263 if b < 0x80 { 30264 break 30265 } 30266 } 30267 intStringLen := int(stringLen) 30268 if intStringLen < 0 { 30269 return ErrInvalidLengthQuery 30270 } 30271 postIndex := iNdEx + intStringLen 30272 if postIndex < 0 { 30273 return ErrInvalidLengthQuery 30274 } 30275 if postIndex > l { 30276 return io.ErrUnexpectedEOF 30277 } 30278 m.Grantee = string(dAtA[iNdEx:postIndex]) 30279 iNdEx = postIndex 30280 default: 30281 iNdEx = preIndex 30282 skippy, err := skipQuery(dAtA[iNdEx:]) 30283 if err != nil { 30284 return err 30285 } 30286 if (skippy < 0) || (iNdEx+skippy) < 0 { 30287 return ErrInvalidLengthQuery 30288 } 30289 if (iNdEx + skippy) > l { 30290 return io.ErrUnexpectedEOF 30291 } 30292 iNdEx += skippy 30293 } 30294 } 30295 30296 if iNdEx > l { 30297 return io.ErrUnexpectedEOF 30298 } 30299 return nil 30300 } 30301 func (m *QueryGrantAuthorizationResponse) Unmarshal(dAtA []byte) error { 30302 l := len(dAtA) 30303 iNdEx := 0 30304 for iNdEx < l { 30305 preIndex := iNdEx 30306 var wire uint64 30307 for shift := uint(0); ; shift += 7 { 30308 if shift >= 64 { 30309 return ErrIntOverflowQuery 30310 } 30311 if iNdEx >= l { 30312 return io.ErrUnexpectedEOF 30313 } 30314 b := dAtA[iNdEx] 30315 iNdEx++ 30316 wire |= uint64(b&0x7F) << shift 30317 if b < 0x80 { 30318 break 30319 } 30320 } 30321 fieldNum := int32(wire >> 3) 30322 wireType := int(wire & 0x7) 30323 if wireType == 4 { 30324 return fmt.Errorf("proto: QueryGrantAuthorizationResponse: wiretype end group for non-group") 30325 } 30326 if fieldNum <= 0 { 30327 return fmt.Errorf("proto: QueryGrantAuthorizationResponse: illegal tag %d (wire type %d)", fieldNum, wire) 30328 } 30329 switch fieldNum { 30330 case 1: 30331 if wireType != 2 { 30332 return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) 30333 } 30334 var stringLen uint64 30335 for shift := uint(0); ; shift += 7 { 30336 if shift >= 64 { 30337 return ErrIntOverflowQuery 30338 } 30339 if iNdEx >= l { 30340 return io.ErrUnexpectedEOF 30341 } 30342 b := dAtA[iNdEx] 30343 iNdEx++ 30344 stringLen |= uint64(b&0x7F) << shift 30345 if b < 0x80 { 30346 break 30347 } 30348 } 30349 intStringLen := int(stringLen) 30350 if intStringLen < 0 { 30351 return ErrInvalidLengthQuery 30352 } 30353 postIndex := iNdEx + intStringLen 30354 if postIndex < 0 { 30355 return ErrInvalidLengthQuery 30356 } 30357 if postIndex > l { 30358 return io.ErrUnexpectedEOF 30359 } 30360 if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 30361 return err 30362 } 30363 iNdEx = postIndex 30364 default: 30365 iNdEx = preIndex 30366 skippy, err := skipQuery(dAtA[iNdEx:]) 30367 if err != nil { 30368 return err 30369 } 30370 if (skippy < 0) || (iNdEx+skippy) < 0 { 30371 return ErrInvalidLengthQuery 30372 } 30373 if (iNdEx + skippy) > l { 30374 return io.ErrUnexpectedEOF 30375 } 30376 iNdEx += skippy 30377 } 30378 } 30379 30380 if iNdEx > l { 30381 return io.ErrUnexpectedEOF 30382 } 30383 return nil 30384 } 30385 func (m *QueryGrantAuthorizationsRequest) Unmarshal(dAtA []byte) error { 30386 l := len(dAtA) 30387 iNdEx := 0 30388 for iNdEx < l { 30389 preIndex := iNdEx 30390 var wire uint64 30391 for shift := uint(0); ; shift += 7 { 30392 if shift >= 64 { 30393 return ErrIntOverflowQuery 30394 } 30395 if iNdEx >= l { 30396 return io.ErrUnexpectedEOF 30397 } 30398 b := dAtA[iNdEx] 30399 iNdEx++ 30400 wire |= uint64(b&0x7F) << shift 30401 if b < 0x80 { 30402 break 30403 } 30404 } 30405 fieldNum := int32(wire >> 3) 30406 wireType := int(wire & 0x7) 30407 if wireType == 4 { 30408 return fmt.Errorf("proto: QueryGrantAuthorizationsRequest: wiretype end group for non-group") 30409 } 30410 if fieldNum <= 0 { 30411 return fmt.Errorf("proto: QueryGrantAuthorizationsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 30412 } 30413 switch fieldNum { 30414 case 1: 30415 if wireType != 2 { 30416 return fmt.Errorf("proto: wrong wireType = %d for field Granter", wireType) 30417 } 30418 var stringLen uint64 30419 for shift := uint(0); ; shift += 7 { 30420 if shift >= 64 { 30421 return ErrIntOverflowQuery 30422 } 30423 if iNdEx >= l { 30424 return io.ErrUnexpectedEOF 30425 } 30426 b := dAtA[iNdEx] 30427 iNdEx++ 30428 stringLen |= uint64(b&0x7F) << shift 30429 if b < 0x80 { 30430 break 30431 } 30432 } 30433 intStringLen := int(stringLen) 30434 if intStringLen < 0 { 30435 return ErrInvalidLengthQuery 30436 } 30437 postIndex := iNdEx + intStringLen 30438 if postIndex < 0 { 30439 return ErrInvalidLengthQuery 30440 } 30441 if postIndex > l { 30442 return io.ErrUnexpectedEOF 30443 } 30444 m.Granter = string(dAtA[iNdEx:postIndex]) 30445 iNdEx = postIndex 30446 default: 30447 iNdEx = preIndex 30448 skippy, err := skipQuery(dAtA[iNdEx:]) 30449 if err != nil { 30450 return err 30451 } 30452 if (skippy < 0) || (iNdEx+skippy) < 0 { 30453 return ErrInvalidLengthQuery 30454 } 30455 if (iNdEx + skippy) > l { 30456 return io.ErrUnexpectedEOF 30457 } 30458 iNdEx += skippy 30459 } 30460 } 30461 30462 if iNdEx > l { 30463 return io.ErrUnexpectedEOF 30464 } 30465 return nil 30466 } 30467 func (m *QueryGrantAuthorizationsResponse) Unmarshal(dAtA []byte) error { 30468 l := len(dAtA) 30469 iNdEx := 0 30470 for iNdEx < l { 30471 preIndex := iNdEx 30472 var wire uint64 30473 for shift := uint(0); ; shift += 7 { 30474 if shift >= 64 { 30475 return ErrIntOverflowQuery 30476 } 30477 if iNdEx >= l { 30478 return io.ErrUnexpectedEOF 30479 } 30480 b := dAtA[iNdEx] 30481 iNdEx++ 30482 wire |= uint64(b&0x7F) << shift 30483 if b < 0x80 { 30484 break 30485 } 30486 } 30487 fieldNum := int32(wire >> 3) 30488 wireType := int(wire & 0x7) 30489 if wireType == 4 { 30490 return fmt.Errorf("proto: QueryGrantAuthorizationsResponse: wiretype end group for non-group") 30491 } 30492 if fieldNum <= 0 { 30493 return fmt.Errorf("proto: QueryGrantAuthorizationsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 30494 } 30495 switch fieldNum { 30496 case 1: 30497 if wireType != 2 { 30498 return fmt.Errorf("proto: wrong wireType = %d for field TotalGrantAmount", wireType) 30499 } 30500 var stringLen uint64 30501 for shift := uint(0); ; shift += 7 { 30502 if shift >= 64 { 30503 return ErrIntOverflowQuery 30504 } 30505 if iNdEx >= l { 30506 return io.ErrUnexpectedEOF 30507 } 30508 b := dAtA[iNdEx] 30509 iNdEx++ 30510 stringLen |= uint64(b&0x7F) << shift 30511 if b < 0x80 { 30512 break 30513 } 30514 } 30515 intStringLen := int(stringLen) 30516 if intStringLen < 0 { 30517 return ErrInvalidLengthQuery 30518 } 30519 postIndex := iNdEx + intStringLen 30520 if postIndex < 0 { 30521 return ErrInvalidLengthQuery 30522 } 30523 if postIndex > l { 30524 return io.ErrUnexpectedEOF 30525 } 30526 if err := m.TotalGrantAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 30527 return err 30528 } 30529 iNdEx = postIndex 30530 case 2: 30531 if wireType != 2 { 30532 return fmt.Errorf("proto: wrong wireType = %d for field Grants", wireType) 30533 } 30534 var msglen int 30535 for shift := uint(0); ; shift += 7 { 30536 if shift >= 64 { 30537 return ErrIntOverflowQuery 30538 } 30539 if iNdEx >= l { 30540 return io.ErrUnexpectedEOF 30541 } 30542 b := dAtA[iNdEx] 30543 iNdEx++ 30544 msglen |= int(b&0x7F) << shift 30545 if b < 0x80 { 30546 break 30547 } 30548 } 30549 if msglen < 0 { 30550 return ErrInvalidLengthQuery 30551 } 30552 postIndex := iNdEx + msglen 30553 if postIndex < 0 { 30554 return ErrInvalidLengthQuery 30555 } 30556 if postIndex > l { 30557 return io.ErrUnexpectedEOF 30558 } 30559 m.Grants = append(m.Grants, &GrantAuthorization{}) 30560 if err := m.Grants[len(m.Grants)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 30561 return err 30562 } 30563 iNdEx = postIndex 30564 default: 30565 iNdEx = preIndex 30566 skippy, err := skipQuery(dAtA[iNdEx:]) 30567 if err != nil { 30568 return err 30569 } 30570 if (skippy < 0) || (iNdEx+skippy) < 0 { 30571 return ErrInvalidLengthQuery 30572 } 30573 if (iNdEx + skippy) > l { 30574 return io.ErrUnexpectedEOF 30575 } 30576 iNdEx += skippy 30577 } 30578 } 30579 30580 if iNdEx > l { 30581 return io.ErrUnexpectedEOF 30582 } 30583 return nil 30584 } 30585 func skipQuery(dAtA []byte) (n int, err error) { 30586 l := len(dAtA) 30587 iNdEx := 0 30588 depth := 0 30589 for iNdEx < l { 30590 var wire uint64 30591 for shift := uint(0); ; shift += 7 { 30592 if shift >= 64 { 30593 return 0, ErrIntOverflowQuery 30594 } 30595 if iNdEx >= l { 30596 return 0, io.ErrUnexpectedEOF 30597 } 30598 b := dAtA[iNdEx] 30599 iNdEx++ 30600 wire |= (uint64(b) & 0x7F) << shift 30601 if b < 0x80 { 30602 break 30603 } 30604 } 30605 wireType := int(wire & 0x7) 30606 switch wireType { 30607 case 0: 30608 for shift := uint(0); ; shift += 7 { 30609 if shift >= 64 { 30610 return 0, ErrIntOverflowQuery 30611 } 30612 if iNdEx >= l { 30613 return 0, io.ErrUnexpectedEOF 30614 } 30615 iNdEx++ 30616 if dAtA[iNdEx-1] < 0x80 { 30617 break 30618 } 30619 } 30620 case 1: 30621 iNdEx += 8 30622 case 2: 30623 var length int 30624 for shift := uint(0); ; shift += 7 { 30625 if shift >= 64 { 30626 return 0, ErrIntOverflowQuery 30627 } 30628 if iNdEx >= l { 30629 return 0, io.ErrUnexpectedEOF 30630 } 30631 b := dAtA[iNdEx] 30632 iNdEx++ 30633 length |= (int(b) & 0x7F) << shift 30634 if b < 0x80 { 30635 break 30636 } 30637 } 30638 if length < 0 { 30639 return 0, ErrInvalidLengthQuery 30640 } 30641 iNdEx += length 30642 case 3: 30643 depth++ 30644 case 4: 30645 if depth == 0 { 30646 return 0, ErrUnexpectedEndOfGroupQuery 30647 } 30648 depth-- 30649 case 5: 30650 iNdEx += 4 30651 default: 30652 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 30653 } 30654 if iNdEx < 0 { 30655 return 0, ErrInvalidLengthQuery 30656 } 30657 if depth == 0 { 30658 return iNdEx, nil 30659 } 30660 } 30661 return 0, io.ErrUnexpectedEOF 30662 } 30663 30664 var ( 30665 ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") 30666 ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") 30667 ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") 30668 )