@injectivelabs/indexer-proto-ts-v2 1.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/esm/generated/event_provider_api_pb.client.d.ts +156 -0
  2. package/esm/generated/event_provider_api_pb.client.mjs +76 -0
  3. package/esm/generated/event_provider_api_pb.d.ts +1966 -0
  4. package/esm/generated/event_provider_api_pb.mjs +1761 -0
  5. package/esm/generated/health_pb.client.d.ts +53 -0
  6. package/esm/generated/health_pb.client.mjs +22 -0
  7. package/esm/generated/health_pb.d.ts +309 -0
  8. package/esm/generated/health_pb.mjs +265 -0
  9. package/esm/generated/injective_accounts_rpc_pb.client.d.ts +211 -0
  10. package/esm/generated/injective_accounts_rpc_pb.client.mjs +105 -0
  11. package/esm/generated/injective_accounts_rpc_pb.d.ts +5307 -0
  12. package/esm/generated/injective_accounts_rpc_pb.mjs +4784 -0
  13. package/esm/generated/injective_archiver_rpc_pb.client.d.ts +224 -0
  14. package/esm/generated/injective_archiver_rpc_pb.client.mjs +112 -0
  15. package/esm/generated/injective_archiver_rpc_pb.d.ts +2902 -0
  16. package/esm/generated/injective_archiver_rpc_pb.mjs +2561 -0
  17. package/esm/generated/injective_auction_rpc_pb.client.d.ts +173 -0
  18. package/esm/generated/injective_auction_rpc_pb.client.mjs +85 -0
  19. package/esm/generated/injective_auction_rpc_pb.d.ts +1986 -0
  20. package/esm/generated/injective_auction_rpc_pb.mjs +1787 -0
  21. package/esm/generated/injective_campaign_rpc_pb.client.d.ts +138 -0
  22. package/esm/generated/injective_campaign_rpc_pb.client.mjs +67 -0
  23. package/esm/generated/injective_campaign_rpc_pb.d.ts +2766 -0
  24. package/esm/generated/injective_campaign_rpc_pb.mjs +2542 -0
  25. package/esm/generated/injective_chart_rpc_pb.client.d.ts +159 -0
  26. package/esm/generated/injective_chart_rpc_pb.client.mjs +78 -0
  27. package/esm/generated/injective_chart_rpc_pb.d.ts +1840 -0
  28. package/esm/generated/injective_chart_rpc_pb.mjs +1690 -0
  29. package/esm/generated/injective_derivative_exchange_rpc_pb.client.d.ts +504 -0
  30. package/esm/generated/injective_derivative_exchange_rpc_pb.client.mjs +259 -0
  31. package/esm/generated/injective_derivative_exchange_rpc_pb.d.ts +9158 -0
  32. package/esm/generated/injective_derivative_exchange_rpc_pb.mjs +8351 -0
  33. package/esm/generated/injective_exchange_rpc_pb.client.d.ts +155 -0
  34. package/esm/generated/injective_exchange_rpc_pb.client.mjs +76 -0
  35. package/esm/generated/injective_exchange_rpc_pb.d.ts +1925 -0
  36. package/esm/generated/injective_exchange_rpc_pb.mjs +1740 -0
  37. package/esm/generated/injective_explorer_rpc_pb.client.d.ts +495 -0
  38. package/esm/generated/injective_explorer_rpc_pb.client.mjs +255 -0
  39. package/esm/generated/injective_explorer_rpc_pb.d.ts +9394 -0
  40. package/esm/generated/injective_explorer_rpc_pb.mjs +8921 -0
  41. package/esm/generated/injective_insurance_rpc_pb.client.d.ts +87 -0
  42. package/esm/generated/injective_insurance_rpc_pb.client.mjs +40 -0
  43. package/esm/generated/injective_insurance_rpc_pb.d.ts +904 -0
  44. package/esm/generated/injective_insurance_rpc_pb.mjs +807 -0
  45. package/esm/generated/injective_megavault_rpc_pb.client.d.ts +155 -0
  46. package/esm/generated/injective_megavault_rpc_pb.client.mjs +76 -0
  47. package/esm/generated/injective_megavault_rpc_pb.d.ts +3380 -0
  48. package/esm/generated/injective_megavault_rpc_pb.mjs +2987 -0
  49. package/esm/generated/injective_meta_rpc_pb.client.d.ts +124 -0
  50. package/esm/generated/injective_meta_rpc_pb.client.mjs +59 -0
  51. package/esm/generated/injective_meta_rpc_pb.d.ts +825 -0
  52. package/esm/generated/injective_meta_rpc_pb.mjs +716 -0
  53. package/esm/generated/injective_oracle_rpc_pb.client.d.ts +124 -0
  54. package/esm/generated/injective_oracle_rpc_pb.client.mjs +59 -0
  55. package/esm/generated/injective_oracle_rpc_pb.d.ts +1044 -0
  56. package/esm/generated/injective_oracle_rpc_pb.mjs +915 -0
  57. package/esm/generated/injective_portfolio_rpc_pb.client.d.ts +105 -0
  58. package/esm/generated/injective_portfolio_rpc_pb.client.mjs +49 -0
  59. package/esm/generated/injective_portfolio_rpc_pb.d.ts +1464 -0
  60. package/esm/generated/injective_portfolio_rpc_pb.mjs +1286 -0
  61. package/esm/generated/injective_referral_rpc_pb.client.d.ts +89 -0
  62. package/esm/generated/injective_referral_rpc_pb.client.mjs +41 -0
  63. package/esm/generated/injective_referral_rpc_pb.d.ts +575 -0
  64. package/esm/generated/injective_referral_rpc_pb.mjs +497 -0
  65. package/esm/generated/injective_spot_exchange_rpc_pb.client.d.ts +343 -0
  66. package/esm/generated/injective_spot_exchange_rpc_pb.client.mjs +175 -0
  67. package/esm/generated/injective_spot_exchange_rpc_pb.d.ts +5958 -0
  68. package/esm/generated/injective_spot_exchange_rpc_pb.mjs +5426 -0
  69. package/esm/generated/injective_trading_rpc_pb.client.d.ts +90 -0
  70. package/esm/generated/injective_trading_rpc_pb.client.mjs +40 -0
  71. package/esm/generated/injective_trading_rpc_pb.d.ts +1882 -0
  72. package/esm/generated/injective_trading_rpc_pb.mjs +1754 -0
  73. package/esm/index.d.ts +42 -0
  74. package/esm/index.mjs +74 -0
  75. package/package.json +48 -0
@@ -0,0 +1,1986 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
2
+ // @generated from protobuf file "injective_auction_rpc.proto" (package "injective_auction_rpc", syntax proto3)
3
+ // tslint:disable
4
+ //
5
+ // Code generated with goa v3.7.0, DO NOT EDIT.
6
+ //
7
+ // InjectiveAuctionRPC protocol buffer definition
8
+ //
9
+ // Command:
10
+ // $ goa gen github.com/InjectiveLabs/injective-indexer/api/design -o ../
11
+ //
12
+ import { ServiceType } from "@protobuf-ts/runtime-rpc";
13
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
14
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
15
+ import { WireType } from "@protobuf-ts/runtime";
16
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
17
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
18
+ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
19
+ import type { PartialMessage } from "@protobuf-ts/runtime";
20
+ import { reflectionMergePartial } from "@protobuf-ts/runtime";
21
+ import { MessageType } from "@protobuf-ts/runtime";
22
+ /**
23
+ * @generated from protobuf message injective_auction_rpc.AuctionEndpointRequest
24
+ */
25
+ export interface AuctionEndpointRequest {
26
+ /**
27
+ * The auction round number. -1 for latest.
28
+ *
29
+ * @generated from protobuf field: sint64 round = 1
30
+ */
31
+ round: bigint;
32
+ }
33
+ /**
34
+ * @generated from protobuf message injective_auction_rpc.AuctionEndpointResponse
35
+ */
36
+ export interface AuctionEndpointResponse {
37
+ /**
38
+ * The auction
39
+ *
40
+ * @generated from protobuf field: injective_auction_rpc.Auction auction = 1
41
+ */
42
+ auction?: Auction;
43
+ /**
44
+ * Bids of the auction
45
+ *
46
+ * @generated from protobuf field: repeated injective_auction_rpc.Bid bids = 2
47
+ */
48
+ bids: Bid[];
49
+ }
50
+ /**
51
+ * @generated from protobuf message injective_auction_rpc.Auction
52
+ */
53
+ export interface Auction {
54
+ /**
55
+ * Account address of the auction winner
56
+ *
57
+ * @generated from protobuf field: string winner = 1
58
+ */
59
+ winner: string;
60
+ /**
61
+ * Coins in the basket
62
+ *
63
+ * @generated from protobuf field: repeated injective_auction_rpc.Coin basket = 2
64
+ */
65
+ basket: Coin[];
66
+ /**
67
+ * @generated from protobuf field: string winning_bid_amount = 3
68
+ */
69
+ winningBidAmount: string;
70
+ /**
71
+ * @generated from protobuf field: uint64 round = 4
72
+ */
73
+ round: bigint;
74
+ /**
75
+ * Auction end timestamp in UNIX millis.
76
+ *
77
+ * @generated from protobuf field: sint64 end_timestamp = 5
78
+ */
79
+ endTimestamp: bigint;
80
+ /**
81
+ * UpdatedAt timestamp in UNIX millis.
82
+ *
83
+ * @generated from protobuf field: sint64 updated_at = 6
84
+ */
85
+ updatedAt: bigint;
86
+ /**
87
+ * @generated from protobuf field: injective_auction_rpc.AuctionContract contract = 7
88
+ */
89
+ contract?: AuctionContract;
90
+ }
91
+ /**
92
+ * @generated from protobuf message injective_auction_rpc.Coin
93
+ */
94
+ export interface Coin {
95
+ /**
96
+ * Denom of the coin
97
+ *
98
+ * @generated from protobuf field: string denom = 1
99
+ */
100
+ denom: string;
101
+ /**
102
+ * @generated from protobuf field: string amount = 2
103
+ */
104
+ amount: string;
105
+ /**
106
+ * @generated from protobuf field: string usd_value = 3
107
+ */
108
+ usdValue: string;
109
+ }
110
+ /**
111
+ * @generated from protobuf message injective_auction_rpc.AuctionContract
112
+ */
113
+ export interface AuctionContract {
114
+ /**
115
+ * @generated from protobuf field: uint64 id = 1
116
+ */
117
+ id: bigint;
118
+ /**
119
+ * Bid target of the auction
120
+ *
121
+ * @generated from protobuf field: string bid_target = 2
122
+ */
123
+ bidTarget: string;
124
+ /**
125
+ * Total slots of the auction
126
+ *
127
+ * @generated from protobuf field: uint64 current_slots = 3
128
+ */
129
+ currentSlots: bigint;
130
+ /**
131
+ * Total slots of the auction
132
+ *
133
+ * @generated from protobuf field: uint64 total_slots = 4
134
+ */
135
+ totalSlots: bigint;
136
+ /**
137
+ * Max user allocation of the auction
138
+ *
139
+ * @generated from protobuf field: string max_user_allocation = 5
140
+ */
141
+ maxUserAllocation: string;
142
+ /**
143
+ * Total committed amount of the auction
144
+ *
145
+ * @generated from protobuf field: string total_committed = 6
146
+ */
147
+ totalCommitted: string;
148
+ /**
149
+ * Whitelist addresses for the auction
150
+ *
151
+ * @generated from protobuf field: repeated string whitelist_addresses = 7
152
+ */
153
+ whitelistAddresses: string[];
154
+ /**
155
+ * Auction start timestamp in UNIX millis.
156
+ *
157
+ * @generated from protobuf field: uint64 start_timestamp = 8
158
+ */
159
+ startTimestamp: bigint;
160
+ /**
161
+ * Auction end timestamp in UNIX millis.
162
+ *
163
+ * @generated from protobuf field: uint64 end_timestamp = 9
164
+ */
165
+ endTimestamp: bigint;
166
+ /**
167
+ * Max round allocation of the auction
168
+ *
169
+ * @generated from protobuf field: string max_round_allocation = 10
170
+ */
171
+ maxRoundAllocation: string;
172
+ }
173
+ /**
174
+ * @generated from protobuf message injective_auction_rpc.Bid
175
+ */
176
+ export interface Bid {
177
+ /**
178
+ * Account address of the bidder
179
+ *
180
+ * @generated from protobuf field: string bidder = 1
181
+ */
182
+ bidder: string;
183
+ /**
184
+ * @generated from protobuf field: string amount = 2
185
+ */
186
+ amount: string;
187
+ /**
188
+ * Bid timestamp in UNIX millis.
189
+ *
190
+ * @generated from protobuf field: sint64 timestamp = 3
191
+ */
192
+ timestamp: bigint;
193
+ }
194
+ /**
195
+ * @generated from protobuf message injective_auction_rpc.AuctionsRequest
196
+ */
197
+ export interface AuctionsRequest {
198
+ }
199
+ /**
200
+ * @generated from protobuf message injective_auction_rpc.AuctionsResponse
201
+ */
202
+ export interface AuctionsResponse {
203
+ /**
204
+ * The historical auctions
205
+ *
206
+ * @generated from protobuf field: repeated injective_auction_rpc.Auction auctions = 1
207
+ */
208
+ auctions: Auction[];
209
+ }
210
+ /**
211
+ * @generated from protobuf message injective_auction_rpc.AuctionsHistoryV2Request
212
+ */
213
+ export interface AuctionsHistoryV2Request {
214
+ /**
215
+ * @generated from protobuf field: sint32 per_page = 1
216
+ */
217
+ perPage: number;
218
+ /**
219
+ * Pagination token
220
+ *
221
+ * @generated from protobuf field: string token = 2
222
+ */
223
+ token: string;
224
+ /**
225
+ * The ending timestamp in UNIX milliseconds to filter the auctions
226
+ *
227
+ * @generated from protobuf field: sint64 end_time = 3
228
+ */
229
+ endTime: bigint;
230
+ }
231
+ /**
232
+ * @generated from protobuf message injective_auction_rpc.AuctionsHistoryV2Response
233
+ */
234
+ export interface AuctionsHistoryV2Response {
235
+ /**
236
+ * The historical auctions
237
+ *
238
+ * @generated from protobuf field: repeated injective_auction_rpc.AuctionV2Result auctions = 1
239
+ */
240
+ auctions: AuctionV2Result[];
241
+ /**
242
+ * Next tokens for pagination
243
+ *
244
+ * @generated from protobuf field: repeated string next = 2
245
+ */
246
+ next: string[];
247
+ }
248
+ /**
249
+ * @generated from protobuf message injective_auction_rpc.AuctionV2Result
250
+ */
251
+ export interface AuctionV2Result {
252
+ /**
253
+ * Account address of the auction winner
254
+ *
255
+ * @generated from protobuf field: string winner = 1
256
+ */
257
+ winner: string;
258
+ /**
259
+ * Coins in the basket
260
+ *
261
+ * @generated from protobuf field: repeated injective_auction_rpc.CoinPrices basket = 2
262
+ */
263
+ basket: CoinPrices[];
264
+ /**
265
+ * @generated from protobuf field: string winning_bid_amount = 3
266
+ */
267
+ winningBidAmount: string;
268
+ /**
269
+ * @generated from protobuf field: uint64 round = 4
270
+ */
271
+ round: bigint;
272
+ /**
273
+ * Auction end timestamp in UNIX millis.
274
+ *
275
+ * @generated from protobuf field: sint64 end_timestamp = 5
276
+ */
277
+ endTimestamp: bigint;
278
+ /**
279
+ * UpdatedAt timestamp in UNIX millis.
280
+ *
281
+ * @generated from protobuf field: sint64 updated_at = 6
282
+ */
283
+ updatedAt: bigint;
284
+ /**
285
+ * @generated from protobuf field: injective_auction_rpc.AuctionContract contract = 7
286
+ */
287
+ contract?: AuctionContract;
288
+ /**
289
+ * @generated from protobuf field: string winning_bid_amount_usd = 8
290
+ */
291
+ winningBidAmountUsd: string;
292
+ }
293
+ /**
294
+ * @generated from protobuf message injective_auction_rpc.CoinPrices
295
+ */
296
+ export interface CoinPrices {
297
+ /**
298
+ * Denom of the coin
299
+ *
300
+ * @generated from protobuf field: string denom = 1
301
+ */
302
+ denom: string;
303
+ /**
304
+ * @generated from protobuf field: string amount = 2
305
+ */
306
+ amount: string;
307
+ /**
308
+ * Map of historical prices.
309
+ *
310
+ * @generated from protobuf field: map<string, string> prices = 3
311
+ */
312
+ prices: {
313
+ [key: string]: string;
314
+ };
315
+ }
316
+ /**
317
+ * @generated from protobuf message injective_auction_rpc.AuctionV2Request
318
+ */
319
+ export interface AuctionV2Request {
320
+ /**
321
+ * The auction round number.
322
+ *
323
+ * @generated from protobuf field: sint64 round = 1
324
+ */
325
+ round: bigint;
326
+ }
327
+ /**
328
+ * @generated from protobuf message injective_auction_rpc.AuctionV2Response
329
+ */
330
+ export interface AuctionV2Response {
331
+ /**
332
+ * Account address of the auction winner
333
+ *
334
+ * @generated from protobuf field: string winner = 1
335
+ */
336
+ winner: string;
337
+ /**
338
+ * Coins in the basket
339
+ *
340
+ * @generated from protobuf field: repeated injective_auction_rpc.CoinPrices basket = 2
341
+ */
342
+ basket: CoinPrices[];
343
+ /**
344
+ * @generated from protobuf field: string winning_bid_amount = 3
345
+ */
346
+ winningBidAmount: string;
347
+ /**
348
+ * @generated from protobuf field: uint64 round = 4
349
+ */
350
+ round: bigint;
351
+ /**
352
+ * Auction end timestamp in UNIX millis.
353
+ *
354
+ * @generated from protobuf field: sint64 end_timestamp = 5
355
+ */
356
+ endTimestamp: bigint;
357
+ /**
358
+ * UpdatedAt timestamp in UNIX millis.
359
+ *
360
+ * @generated from protobuf field: sint64 updated_at = 6
361
+ */
362
+ updatedAt: bigint;
363
+ /**
364
+ * @generated from protobuf field: injective_auction_rpc.AuctionContract contract = 7
365
+ */
366
+ contract?: AuctionContract;
367
+ /**
368
+ * @generated from protobuf field: string winning_bid_amount_usd = 8
369
+ */
370
+ winningBidAmountUsd: string;
371
+ }
372
+ /**
373
+ * @generated from protobuf message injective_auction_rpc.AccountAuctionsV2Request
374
+ */
375
+ export interface AccountAuctionsV2Request {
376
+ /**
377
+ * Address of account
378
+ *
379
+ * @generated from protobuf field: string address = 1
380
+ */
381
+ address: string;
382
+ /**
383
+ * @generated from protobuf field: sint32 per_page = 2
384
+ */
385
+ perPage: number;
386
+ /**
387
+ * Pagination token
388
+ *
389
+ * @generated from protobuf field: string token = 3
390
+ */
391
+ token: string;
392
+ }
393
+ /**
394
+ * @generated from protobuf message injective_auction_rpc.AccountAuctionsV2Response
395
+ */
396
+ export interface AccountAuctionsV2Response {
397
+ /**
398
+ * The historical auctions
399
+ *
400
+ * @generated from protobuf field: repeated injective_auction_rpc.AccountAuctionV2 auctions = 1
401
+ */
402
+ auctions: AccountAuctionV2[];
403
+ /**
404
+ * Next tokens for pagination
405
+ *
406
+ * @generated from protobuf field: repeated string next = 2
407
+ */
408
+ next: string[];
409
+ /**
410
+ * Total number of auctions
411
+ *
412
+ * @generated from protobuf field: sint64 total = 3
413
+ */
414
+ total: bigint;
415
+ }
416
+ /**
417
+ * @generated from protobuf message injective_auction_rpc.AccountAuctionV2
418
+ */
419
+ export interface AccountAuctionV2 {
420
+ /**
421
+ * @generated from protobuf field: uint64 id = 1
422
+ */
423
+ id: bigint;
424
+ /**
425
+ * @generated from protobuf field: uint64 round = 2
426
+ */
427
+ round: bigint;
428
+ /**
429
+ * @generated from protobuf field: string amount_deposited = 3
430
+ */
431
+ amountDeposited: string;
432
+ /**
433
+ * Whether the auction rewards can be claimed.
434
+ *
435
+ * @generated from protobuf field: bool is_claimable = 4
436
+ */
437
+ isClaimable: boolean;
438
+ /**
439
+ * @generated from protobuf field: repeated injective_auction_rpc.CoinPrices claimed_assets = 5
440
+ */
441
+ claimedAssets: CoinPrices[];
442
+ }
443
+ /**
444
+ * @generated from protobuf message injective_auction_rpc.StreamBidsRequest
445
+ */
446
+ export interface StreamBidsRequest {
447
+ }
448
+ /**
449
+ * @generated from protobuf message injective_auction_rpc.StreamBidsResponse
450
+ */
451
+ export interface StreamBidsResponse {
452
+ /**
453
+ * Account address of the bidder
454
+ *
455
+ * @generated from protobuf field: string bidder = 1
456
+ */
457
+ bidder: string;
458
+ /**
459
+ * @generated from protobuf field: string bid_amount = 2
460
+ */
461
+ bidAmount: string;
462
+ /**
463
+ * @generated from protobuf field: uint64 round = 3
464
+ */
465
+ round: bigint;
466
+ /**
467
+ * Operation timestamp in UNIX millis.
468
+ *
469
+ * @generated from protobuf field: sint64 timestamp = 4
470
+ */
471
+ timestamp: bigint;
472
+ }
473
+ /**
474
+ * @generated from protobuf message injective_auction_rpc.InjBurntEndpointRequest
475
+ */
476
+ export interface InjBurntEndpointRequest {
477
+ }
478
+ /**
479
+ * @generated from protobuf message injective_auction_rpc.InjBurntEndpointResponse
480
+ */
481
+ export interface InjBurntEndpointResponse {
482
+ /**
483
+ * @generated from protobuf field: string total_inj_burnt = 1
484
+ */
485
+ totalInjBurnt: string;
486
+ }
487
+ /**
488
+ * @generated from protobuf message injective_auction_rpc.AuctionsStatsRequest
489
+ */
490
+ export interface AuctionsStatsRequest {
491
+ }
492
+ /**
493
+ * @generated from protobuf message injective_auction_rpc.AuctionsStatsResponse
494
+ */
495
+ export interface AuctionsStatsResponse {
496
+ /**
497
+ * Total cumulative amount of INJ burnt in auctions
498
+ *
499
+ * @generated from protobuf field: string total_burnt = 1
500
+ */
501
+ totalBurnt: string;
502
+ /**
503
+ * Total cumulative historical basket value in USD of all auctions
504
+ *
505
+ * @generated from protobuf field: string total_usd_value = 2
506
+ */
507
+ totalUsdValue: string;
508
+ }
509
+ // @generated message type with reflection information, may provide speed optimized methods
510
+ class AuctionEndpointRequest$Type extends MessageType<AuctionEndpointRequest> {
511
+ constructor() {
512
+ super("injective_auction_rpc.AuctionEndpointRequest", [
513
+ { no: 1, name: "round", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ }
514
+ ]);
515
+ }
516
+ create(value?: PartialMessage<AuctionEndpointRequest>): AuctionEndpointRequest {
517
+ const message = globalThis.Object.create((this.messagePrototype!));
518
+ message.round = 0n;
519
+ if (value !== undefined)
520
+ reflectionMergePartial<AuctionEndpointRequest>(this, message, value);
521
+ return message;
522
+ }
523
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuctionEndpointRequest): AuctionEndpointRequest {
524
+ let message = target ?? this.create(), end = reader.pos + length;
525
+ while (reader.pos < end) {
526
+ let [fieldNo, wireType] = reader.tag();
527
+ switch (fieldNo) {
528
+ case /* sint64 round */ 1:
529
+ message.round = reader.sint64().toBigInt();
530
+ break;
531
+ default:
532
+ let u = options.readUnknownField;
533
+ if (u === "throw")
534
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
535
+ let d = reader.skip(wireType);
536
+ if (u !== false)
537
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
538
+ }
539
+ }
540
+ return message;
541
+ }
542
+ internalBinaryWrite(message: AuctionEndpointRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
543
+ /* sint64 round = 1; */
544
+ if (message.round !== 0n)
545
+ writer.tag(1, WireType.Varint).sint64(message.round);
546
+ let u = options.writeUnknownFields;
547
+ if (u !== false)
548
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
549
+ return writer;
550
+ }
551
+ }
552
+ /**
553
+ * @generated MessageType for protobuf message injective_auction_rpc.AuctionEndpointRequest
554
+ */
555
+ export const AuctionEndpointRequest = new AuctionEndpointRequest$Type();
556
+ // @generated message type with reflection information, may provide speed optimized methods
557
+ class AuctionEndpointResponse$Type extends MessageType<AuctionEndpointResponse> {
558
+ constructor() {
559
+ super("injective_auction_rpc.AuctionEndpointResponse", [
560
+ { no: 1, name: "auction", kind: "message", T: () => Auction },
561
+ { no: 2, name: "bids", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Bid }
562
+ ]);
563
+ }
564
+ create(value?: PartialMessage<AuctionEndpointResponse>): AuctionEndpointResponse {
565
+ const message = globalThis.Object.create((this.messagePrototype!));
566
+ message.bids = [];
567
+ if (value !== undefined)
568
+ reflectionMergePartial<AuctionEndpointResponse>(this, message, value);
569
+ return message;
570
+ }
571
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuctionEndpointResponse): AuctionEndpointResponse {
572
+ let message = target ?? this.create(), end = reader.pos + length;
573
+ while (reader.pos < end) {
574
+ let [fieldNo, wireType] = reader.tag();
575
+ switch (fieldNo) {
576
+ case /* injective_auction_rpc.Auction auction */ 1:
577
+ message.auction = Auction.internalBinaryRead(reader, reader.uint32(), options, message.auction);
578
+ break;
579
+ case /* repeated injective_auction_rpc.Bid bids */ 2:
580
+ message.bids.push(Bid.internalBinaryRead(reader, reader.uint32(), options));
581
+ break;
582
+ default:
583
+ let u = options.readUnknownField;
584
+ if (u === "throw")
585
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
586
+ let d = reader.skip(wireType);
587
+ if (u !== false)
588
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
589
+ }
590
+ }
591
+ return message;
592
+ }
593
+ internalBinaryWrite(message: AuctionEndpointResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
594
+ /* injective_auction_rpc.Auction auction = 1; */
595
+ if (message.auction)
596
+ Auction.internalBinaryWrite(message.auction, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
597
+ /* repeated injective_auction_rpc.Bid bids = 2; */
598
+ for (let i = 0; i < message.bids.length; i++)
599
+ Bid.internalBinaryWrite(message.bids[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
600
+ let u = options.writeUnknownFields;
601
+ if (u !== false)
602
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
603
+ return writer;
604
+ }
605
+ }
606
+ /**
607
+ * @generated MessageType for protobuf message injective_auction_rpc.AuctionEndpointResponse
608
+ */
609
+ export const AuctionEndpointResponse = new AuctionEndpointResponse$Type();
610
+ // @generated message type with reflection information, may provide speed optimized methods
611
+ class Auction$Type extends MessageType<Auction> {
612
+ constructor() {
613
+ super("injective_auction_rpc.Auction", [
614
+ { no: 1, name: "winner", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
615
+ { no: 2, name: "basket", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Coin },
616
+ { no: 3, name: "winning_bid_amount", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
617
+ { no: 4, name: "round", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
618
+ { no: 5, name: "end_timestamp", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
619
+ { no: 6, name: "updated_at", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
620
+ { no: 7, name: "contract", kind: "message", T: () => AuctionContract }
621
+ ]);
622
+ }
623
+ create(value?: PartialMessage<Auction>): Auction {
624
+ const message = globalThis.Object.create((this.messagePrototype!));
625
+ message.winner = "";
626
+ message.basket = [];
627
+ message.winningBidAmount = "";
628
+ message.round = 0n;
629
+ message.endTimestamp = 0n;
630
+ message.updatedAt = 0n;
631
+ if (value !== undefined)
632
+ reflectionMergePartial<Auction>(this, message, value);
633
+ return message;
634
+ }
635
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Auction): Auction {
636
+ let message = target ?? this.create(), end = reader.pos + length;
637
+ while (reader.pos < end) {
638
+ let [fieldNo, wireType] = reader.tag();
639
+ switch (fieldNo) {
640
+ case /* string winner */ 1:
641
+ message.winner = reader.string();
642
+ break;
643
+ case /* repeated injective_auction_rpc.Coin basket */ 2:
644
+ message.basket.push(Coin.internalBinaryRead(reader, reader.uint32(), options));
645
+ break;
646
+ case /* string winning_bid_amount */ 3:
647
+ message.winningBidAmount = reader.string();
648
+ break;
649
+ case /* uint64 round */ 4:
650
+ message.round = reader.uint64().toBigInt();
651
+ break;
652
+ case /* sint64 end_timestamp */ 5:
653
+ message.endTimestamp = reader.sint64().toBigInt();
654
+ break;
655
+ case /* sint64 updated_at */ 6:
656
+ message.updatedAt = reader.sint64().toBigInt();
657
+ break;
658
+ case /* injective_auction_rpc.AuctionContract contract */ 7:
659
+ message.contract = AuctionContract.internalBinaryRead(reader, reader.uint32(), options, message.contract);
660
+ break;
661
+ default:
662
+ let u = options.readUnknownField;
663
+ if (u === "throw")
664
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
665
+ let d = reader.skip(wireType);
666
+ if (u !== false)
667
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
668
+ }
669
+ }
670
+ return message;
671
+ }
672
+ internalBinaryWrite(message: Auction, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
673
+ /* string winner = 1; */
674
+ if (message.winner !== "")
675
+ writer.tag(1, WireType.LengthDelimited).string(message.winner);
676
+ /* repeated injective_auction_rpc.Coin basket = 2; */
677
+ for (let i = 0; i < message.basket.length; i++)
678
+ Coin.internalBinaryWrite(message.basket[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
679
+ /* string winning_bid_amount = 3; */
680
+ if (message.winningBidAmount !== "")
681
+ writer.tag(3, WireType.LengthDelimited).string(message.winningBidAmount);
682
+ /* uint64 round = 4; */
683
+ if (message.round !== 0n)
684
+ writer.tag(4, WireType.Varint).uint64(message.round);
685
+ /* sint64 end_timestamp = 5; */
686
+ if (message.endTimestamp !== 0n)
687
+ writer.tag(5, WireType.Varint).sint64(message.endTimestamp);
688
+ /* sint64 updated_at = 6; */
689
+ if (message.updatedAt !== 0n)
690
+ writer.tag(6, WireType.Varint).sint64(message.updatedAt);
691
+ /* injective_auction_rpc.AuctionContract contract = 7; */
692
+ if (message.contract)
693
+ AuctionContract.internalBinaryWrite(message.contract, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
694
+ let u = options.writeUnknownFields;
695
+ if (u !== false)
696
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
697
+ return writer;
698
+ }
699
+ }
700
+ /**
701
+ * @generated MessageType for protobuf message injective_auction_rpc.Auction
702
+ */
703
+ export const Auction = new Auction$Type();
704
+ // @generated message type with reflection information, may provide speed optimized methods
705
+ class Coin$Type extends MessageType<Coin> {
706
+ constructor() {
707
+ super("injective_auction_rpc.Coin", [
708
+ { no: 1, name: "denom", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
709
+ { no: 2, name: "amount", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
710
+ { no: 3, name: "usd_value", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
711
+ ]);
712
+ }
713
+ create(value?: PartialMessage<Coin>): Coin {
714
+ const message = globalThis.Object.create((this.messagePrototype!));
715
+ message.denom = "";
716
+ message.amount = "";
717
+ message.usdValue = "";
718
+ if (value !== undefined)
719
+ reflectionMergePartial<Coin>(this, message, value);
720
+ return message;
721
+ }
722
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Coin): Coin {
723
+ let message = target ?? this.create(), end = reader.pos + length;
724
+ while (reader.pos < end) {
725
+ let [fieldNo, wireType] = reader.tag();
726
+ switch (fieldNo) {
727
+ case /* string denom */ 1:
728
+ message.denom = reader.string();
729
+ break;
730
+ case /* string amount */ 2:
731
+ message.amount = reader.string();
732
+ break;
733
+ case /* string usd_value */ 3:
734
+ message.usdValue = reader.string();
735
+ break;
736
+ default:
737
+ let u = options.readUnknownField;
738
+ if (u === "throw")
739
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
740
+ let d = reader.skip(wireType);
741
+ if (u !== false)
742
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
743
+ }
744
+ }
745
+ return message;
746
+ }
747
+ internalBinaryWrite(message: Coin, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
748
+ /* string denom = 1; */
749
+ if (message.denom !== "")
750
+ writer.tag(1, WireType.LengthDelimited).string(message.denom);
751
+ /* string amount = 2; */
752
+ if (message.amount !== "")
753
+ writer.tag(2, WireType.LengthDelimited).string(message.amount);
754
+ /* string usd_value = 3; */
755
+ if (message.usdValue !== "")
756
+ writer.tag(3, WireType.LengthDelimited).string(message.usdValue);
757
+ let u = options.writeUnknownFields;
758
+ if (u !== false)
759
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
760
+ return writer;
761
+ }
762
+ }
763
+ /**
764
+ * @generated MessageType for protobuf message injective_auction_rpc.Coin
765
+ */
766
+ export const Coin = new Coin$Type();
767
+ // @generated message type with reflection information, may provide speed optimized methods
768
+ class AuctionContract$Type extends MessageType<AuctionContract> {
769
+ constructor() {
770
+ super("injective_auction_rpc.AuctionContract", [
771
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
772
+ { no: 2, name: "bid_target", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
773
+ { no: 3, name: "current_slots", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
774
+ { no: 4, name: "total_slots", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
775
+ { no: 5, name: "max_user_allocation", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
776
+ { no: 6, name: "total_committed", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
777
+ { no: 7, name: "whitelist_addresses", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
778
+ { no: 8, name: "start_timestamp", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
779
+ { no: 9, name: "end_timestamp", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
780
+ { no: 10, name: "max_round_allocation", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
781
+ ]);
782
+ }
783
+ create(value?: PartialMessage<AuctionContract>): AuctionContract {
784
+ const message = globalThis.Object.create((this.messagePrototype!));
785
+ message.id = 0n;
786
+ message.bidTarget = "";
787
+ message.currentSlots = 0n;
788
+ message.totalSlots = 0n;
789
+ message.maxUserAllocation = "";
790
+ message.totalCommitted = "";
791
+ message.whitelistAddresses = [];
792
+ message.startTimestamp = 0n;
793
+ message.endTimestamp = 0n;
794
+ message.maxRoundAllocation = "";
795
+ if (value !== undefined)
796
+ reflectionMergePartial<AuctionContract>(this, message, value);
797
+ return message;
798
+ }
799
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuctionContract): AuctionContract {
800
+ let message = target ?? this.create(), end = reader.pos + length;
801
+ while (reader.pos < end) {
802
+ let [fieldNo, wireType] = reader.tag();
803
+ switch (fieldNo) {
804
+ case /* uint64 id */ 1:
805
+ message.id = reader.uint64().toBigInt();
806
+ break;
807
+ case /* string bid_target */ 2:
808
+ message.bidTarget = reader.string();
809
+ break;
810
+ case /* uint64 current_slots */ 3:
811
+ message.currentSlots = reader.uint64().toBigInt();
812
+ break;
813
+ case /* uint64 total_slots */ 4:
814
+ message.totalSlots = reader.uint64().toBigInt();
815
+ break;
816
+ case /* string max_user_allocation */ 5:
817
+ message.maxUserAllocation = reader.string();
818
+ break;
819
+ case /* string total_committed */ 6:
820
+ message.totalCommitted = reader.string();
821
+ break;
822
+ case /* repeated string whitelist_addresses */ 7:
823
+ message.whitelistAddresses.push(reader.string());
824
+ break;
825
+ case /* uint64 start_timestamp */ 8:
826
+ message.startTimestamp = reader.uint64().toBigInt();
827
+ break;
828
+ case /* uint64 end_timestamp */ 9:
829
+ message.endTimestamp = reader.uint64().toBigInt();
830
+ break;
831
+ case /* string max_round_allocation */ 10:
832
+ message.maxRoundAllocation = reader.string();
833
+ break;
834
+ default:
835
+ let u = options.readUnknownField;
836
+ if (u === "throw")
837
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
838
+ let d = reader.skip(wireType);
839
+ if (u !== false)
840
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
841
+ }
842
+ }
843
+ return message;
844
+ }
845
+ internalBinaryWrite(message: AuctionContract, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
846
+ /* uint64 id = 1; */
847
+ if (message.id !== 0n)
848
+ writer.tag(1, WireType.Varint).uint64(message.id);
849
+ /* string bid_target = 2; */
850
+ if (message.bidTarget !== "")
851
+ writer.tag(2, WireType.LengthDelimited).string(message.bidTarget);
852
+ /* uint64 current_slots = 3; */
853
+ if (message.currentSlots !== 0n)
854
+ writer.tag(3, WireType.Varint).uint64(message.currentSlots);
855
+ /* uint64 total_slots = 4; */
856
+ if (message.totalSlots !== 0n)
857
+ writer.tag(4, WireType.Varint).uint64(message.totalSlots);
858
+ /* string max_user_allocation = 5; */
859
+ if (message.maxUserAllocation !== "")
860
+ writer.tag(5, WireType.LengthDelimited).string(message.maxUserAllocation);
861
+ /* string total_committed = 6; */
862
+ if (message.totalCommitted !== "")
863
+ writer.tag(6, WireType.LengthDelimited).string(message.totalCommitted);
864
+ /* repeated string whitelist_addresses = 7; */
865
+ for (let i = 0; i < message.whitelistAddresses.length; i++)
866
+ writer.tag(7, WireType.LengthDelimited).string(message.whitelistAddresses[i]);
867
+ /* uint64 start_timestamp = 8; */
868
+ if (message.startTimestamp !== 0n)
869
+ writer.tag(8, WireType.Varint).uint64(message.startTimestamp);
870
+ /* uint64 end_timestamp = 9; */
871
+ if (message.endTimestamp !== 0n)
872
+ writer.tag(9, WireType.Varint).uint64(message.endTimestamp);
873
+ /* string max_round_allocation = 10; */
874
+ if (message.maxRoundAllocation !== "")
875
+ writer.tag(10, WireType.LengthDelimited).string(message.maxRoundAllocation);
876
+ let u = options.writeUnknownFields;
877
+ if (u !== false)
878
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
879
+ return writer;
880
+ }
881
+ }
882
+ /**
883
+ * @generated MessageType for protobuf message injective_auction_rpc.AuctionContract
884
+ */
885
+ export const AuctionContract = new AuctionContract$Type();
886
+ // @generated message type with reflection information, may provide speed optimized methods
887
+ class Bid$Type extends MessageType<Bid> {
888
+ constructor() {
889
+ super("injective_auction_rpc.Bid", [
890
+ { no: 1, name: "bidder", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
891
+ { no: 2, name: "amount", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
892
+ { no: 3, name: "timestamp", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ }
893
+ ]);
894
+ }
895
+ create(value?: PartialMessage<Bid>): Bid {
896
+ const message = globalThis.Object.create((this.messagePrototype!));
897
+ message.bidder = "";
898
+ message.amount = "";
899
+ message.timestamp = 0n;
900
+ if (value !== undefined)
901
+ reflectionMergePartial<Bid>(this, message, value);
902
+ return message;
903
+ }
904
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Bid): Bid {
905
+ let message = target ?? this.create(), end = reader.pos + length;
906
+ while (reader.pos < end) {
907
+ let [fieldNo, wireType] = reader.tag();
908
+ switch (fieldNo) {
909
+ case /* string bidder */ 1:
910
+ message.bidder = reader.string();
911
+ break;
912
+ case /* string amount */ 2:
913
+ message.amount = reader.string();
914
+ break;
915
+ case /* sint64 timestamp */ 3:
916
+ message.timestamp = reader.sint64().toBigInt();
917
+ break;
918
+ default:
919
+ let u = options.readUnknownField;
920
+ if (u === "throw")
921
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
922
+ let d = reader.skip(wireType);
923
+ if (u !== false)
924
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
925
+ }
926
+ }
927
+ return message;
928
+ }
929
+ internalBinaryWrite(message: Bid, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
930
+ /* string bidder = 1; */
931
+ if (message.bidder !== "")
932
+ writer.tag(1, WireType.LengthDelimited).string(message.bidder);
933
+ /* string amount = 2; */
934
+ if (message.amount !== "")
935
+ writer.tag(2, WireType.LengthDelimited).string(message.amount);
936
+ /* sint64 timestamp = 3; */
937
+ if (message.timestamp !== 0n)
938
+ writer.tag(3, WireType.Varint).sint64(message.timestamp);
939
+ let u = options.writeUnknownFields;
940
+ if (u !== false)
941
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
942
+ return writer;
943
+ }
944
+ }
945
+ /**
946
+ * @generated MessageType for protobuf message injective_auction_rpc.Bid
947
+ */
948
+ export const Bid = new Bid$Type();
949
+ // @generated message type with reflection information, may provide speed optimized methods
950
+ class AuctionsRequest$Type extends MessageType<AuctionsRequest> {
951
+ constructor() {
952
+ super("injective_auction_rpc.AuctionsRequest", []);
953
+ }
954
+ create(value?: PartialMessage<AuctionsRequest>): AuctionsRequest {
955
+ const message = globalThis.Object.create((this.messagePrototype!));
956
+ if (value !== undefined)
957
+ reflectionMergePartial<AuctionsRequest>(this, message, value);
958
+ return message;
959
+ }
960
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuctionsRequest): AuctionsRequest {
961
+ let message = target ?? this.create(), end = reader.pos + length;
962
+ while (reader.pos < end) {
963
+ let [fieldNo, wireType] = reader.tag();
964
+ switch (fieldNo) {
965
+ default:
966
+ let u = options.readUnknownField;
967
+ if (u === "throw")
968
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
969
+ let d = reader.skip(wireType);
970
+ if (u !== false)
971
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
972
+ }
973
+ }
974
+ return message;
975
+ }
976
+ internalBinaryWrite(message: AuctionsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
977
+ let u = options.writeUnknownFields;
978
+ if (u !== false)
979
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
980
+ return writer;
981
+ }
982
+ }
983
+ /**
984
+ * @generated MessageType for protobuf message injective_auction_rpc.AuctionsRequest
985
+ */
986
+ export const AuctionsRequest = new AuctionsRequest$Type();
987
+ // @generated message type with reflection information, may provide speed optimized methods
988
+ class AuctionsResponse$Type extends MessageType<AuctionsResponse> {
989
+ constructor() {
990
+ super("injective_auction_rpc.AuctionsResponse", [
991
+ { no: 1, name: "auctions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Auction }
992
+ ]);
993
+ }
994
+ create(value?: PartialMessage<AuctionsResponse>): AuctionsResponse {
995
+ const message = globalThis.Object.create((this.messagePrototype!));
996
+ message.auctions = [];
997
+ if (value !== undefined)
998
+ reflectionMergePartial<AuctionsResponse>(this, message, value);
999
+ return message;
1000
+ }
1001
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuctionsResponse): AuctionsResponse {
1002
+ let message = target ?? this.create(), end = reader.pos + length;
1003
+ while (reader.pos < end) {
1004
+ let [fieldNo, wireType] = reader.tag();
1005
+ switch (fieldNo) {
1006
+ case /* repeated injective_auction_rpc.Auction auctions */ 1:
1007
+ message.auctions.push(Auction.internalBinaryRead(reader, reader.uint32(), options));
1008
+ break;
1009
+ default:
1010
+ let u = options.readUnknownField;
1011
+ if (u === "throw")
1012
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1013
+ let d = reader.skip(wireType);
1014
+ if (u !== false)
1015
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1016
+ }
1017
+ }
1018
+ return message;
1019
+ }
1020
+ internalBinaryWrite(message: AuctionsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1021
+ /* repeated injective_auction_rpc.Auction auctions = 1; */
1022
+ for (let i = 0; i < message.auctions.length; i++)
1023
+ Auction.internalBinaryWrite(message.auctions[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1024
+ let u = options.writeUnknownFields;
1025
+ if (u !== false)
1026
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1027
+ return writer;
1028
+ }
1029
+ }
1030
+ /**
1031
+ * @generated MessageType for protobuf message injective_auction_rpc.AuctionsResponse
1032
+ */
1033
+ export const AuctionsResponse = new AuctionsResponse$Type();
1034
+ // @generated message type with reflection information, may provide speed optimized methods
1035
+ class AuctionsHistoryV2Request$Type extends MessageType<AuctionsHistoryV2Request> {
1036
+ constructor() {
1037
+ super("injective_auction_rpc.AuctionsHistoryV2Request", [
1038
+ { no: 1, name: "per_page", kind: "scalar", T: 17 /*ScalarType.SINT32*/ },
1039
+ { no: 2, name: "token", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1040
+ { no: 3, name: "end_time", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ }
1041
+ ]);
1042
+ }
1043
+ create(value?: PartialMessage<AuctionsHistoryV2Request>): AuctionsHistoryV2Request {
1044
+ const message = globalThis.Object.create((this.messagePrototype!));
1045
+ message.perPage = 0;
1046
+ message.token = "";
1047
+ message.endTime = 0n;
1048
+ if (value !== undefined)
1049
+ reflectionMergePartial<AuctionsHistoryV2Request>(this, message, value);
1050
+ return message;
1051
+ }
1052
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuctionsHistoryV2Request): AuctionsHistoryV2Request {
1053
+ let message = target ?? this.create(), end = reader.pos + length;
1054
+ while (reader.pos < end) {
1055
+ let [fieldNo, wireType] = reader.tag();
1056
+ switch (fieldNo) {
1057
+ case /* sint32 per_page */ 1:
1058
+ message.perPage = reader.sint32();
1059
+ break;
1060
+ case /* string token */ 2:
1061
+ message.token = reader.string();
1062
+ break;
1063
+ case /* sint64 end_time */ 3:
1064
+ message.endTime = reader.sint64().toBigInt();
1065
+ break;
1066
+ default:
1067
+ let u = options.readUnknownField;
1068
+ if (u === "throw")
1069
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1070
+ let d = reader.skip(wireType);
1071
+ if (u !== false)
1072
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1073
+ }
1074
+ }
1075
+ return message;
1076
+ }
1077
+ internalBinaryWrite(message: AuctionsHistoryV2Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1078
+ /* sint32 per_page = 1; */
1079
+ if (message.perPage !== 0)
1080
+ writer.tag(1, WireType.Varint).sint32(message.perPage);
1081
+ /* string token = 2; */
1082
+ if (message.token !== "")
1083
+ writer.tag(2, WireType.LengthDelimited).string(message.token);
1084
+ /* sint64 end_time = 3; */
1085
+ if (message.endTime !== 0n)
1086
+ writer.tag(3, WireType.Varint).sint64(message.endTime);
1087
+ let u = options.writeUnknownFields;
1088
+ if (u !== false)
1089
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1090
+ return writer;
1091
+ }
1092
+ }
1093
+ /**
1094
+ * @generated MessageType for protobuf message injective_auction_rpc.AuctionsHistoryV2Request
1095
+ */
1096
+ export const AuctionsHistoryV2Request = new AuctionsHistoryV2Request$Type();
1097
+ // @generated message type with reflection information, may provide speed optimized methods
1098
+ class AuctionsHistoryV2Response$Type extends MessageType<AuctionsHistoryV2Response> {
1099
+ constructor() {
1100
+ super("injective_auction_rpc.AuctionsHistoryV2Response", [
1101
+ { no: 1, name: "auctions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AuctionV2Result },
1102
+ { no: 2, name: "next", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
1103
+ ]);
1104
+ }
1105
+ create(value?: PartialMessage<AuctionsHistoryV2Response>): AuctionsHistoryV2Response {
1106
+ const message = globalThis.Object.create((this.messagePrototype!));
1107
+ message.auctions = [];
1108
+ message.next = [];
1109
+ if (value !== undefined)
1110
+ reflectionMergePartial<AuctionsHistoryV2Response>(this, message, value);
1111
+ return message;
1112
+ }
1113
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuctionsHistoryV2Response): AuctionsHistoryV2Response {
1114
+ let message = target ?? this.create(), end = reader.pos + length;
1115
+ while (reader.pos < end) {
1116
+ let [fieldNo, wireType] = reader.tag();
1117
+ switch (fieldNo) {
1118
+ case /* repeated injective_auction_rpc.AuctionV2Result auctions */ 1:
1119
+ message.auctions.push(AuctionV2Result.internalBinaryRead(reader, reader.uint32(), options));
1120
+ break;
1121
+ case /* repeated string next */ 2:
1122
+ message.next.push(reader.string());
1123
+ break;
1124
+ default:
1125
+ let u = options.readUnknownField;
1126
+ if (u === "throw")
1127
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1128
+ let d = reader.skip(wireType);
1129
+ if (u !== false)
1130
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1131
+ }
1132
+ }
1133
+ return message;
1134
+ }
1135
+ internalBinaryWrite(message: AuctionsHistoryV2Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1136
+ /* repeated injective_auction_rpc.AuctionV2Result auctions = 1; */
1137
+ for (let i = 0; i < message.auctions.length; i++)
1138
+ AuctionV2Result.internalBinaryWrite(message.auctions[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1139
+ /* repeated string next = 2; */
1140
+ for (let i = 0; i < message.next.length; i++)
1141
+ writer.tag(2, WireType.LengthDelimited).string(message.next[i]);
1142
+ let u = options.writeUnknownFields;
1143
+ if (u !== false)
1144
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1145
+ return writer;
1146
+ }
1147
+ }
1148
+ /**
1149
+ * @generated MessageType for protobuf message injective_auction_rpc.AuctionsHistoryV2Response
1150
+ */
1151
+ export const AuctionsHistoryV2Response = new AuctionsHistoryV2Response$Type();
1152
+ // @generated message type with reflection information, may provide speed optimized methods
1153
+ class AuctionV2Result$Type extends MessageType<AuctionV2Result> {
1154
+ constructor() {
1155
+ super("injective_auction_rpc.AuctionV2Result", [
1156
+ { no: 1, name: "winner", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1157
+ { no: 2, name: "basket", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CoinPrices },
1158
+ { no: 3, name: "winning_bid_amount", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1159
+ { no: 4, name: "round", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
1160
+ { no: 5, name: "end_timestamp", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
1161
+ { no: 6, name: "updated_at", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
1162
+ { no: 7, name: "contract", kind: "message", T: () => AuctionContract },
1163
+ { no: 8, name: "winning_bid_amount_usd", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1164
+ ]);
1165
+ }
1166
+ create(value?: PartialMessage<AuctionV2Result>): AuctionV2Result {
1167
+ const message = globalThis.Object.create((this.messagePrototype!));
1168
+ message.winner = "";
1169
+ message.basket = [];
1170
+ message.winningBidAmount = "";
1171
+ message.round = 0n;
1172
+ message.endTimestamp = 0n;
1173
+ message.updatedAt = 0n;
1174
+ message.winningBidAmountUsd = "";
1175
+ if (value !== undefined)
1176
+ reflectionMergePartial<AuctionV2Result>(this, message, value);
1177
+ return message;
1178
+ }
1179
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuctionV2Result): AuctionV2Result {
1180
+ let message = target ?? this.create(), end = reader.pos + length;
1181
+ while (reader.pos < end) {
1182
+ let [fieldNo, wireType] = reader.tag();
1183
+ switch (fieldNo) {
1184
+ case /* string winner */ 1:
1185
+ message.winner = reader.string();
1186
+ break;
1187
+ case /* repeated injective_auction_rpc.CoinPrices basket */ 2:
1188
+ message.basket.push(CoinPrices.internalBinaryRead(reader, reader.uint32(), options));
1189
+ break;
1190
+ case /* string winning_bid_amount */ 3:
1191
+ message.winningBidAmount = reader.string();
1192
+ break;
1193
+ case /* uint64 round */ 4:
1194
+ message.round = reader.uint64().toBigInt();
1195
+ break;
1196
+ case /* sint64 end_timestamp */ 5:
1197
+ message.endTimestamp = reader.sint64().toBigInt();
1198
+ break;
1199
+ case /* sint64 updated_at */ 6:
1200
+ message.updatedAt = reader.sint64().toBigInt();
1201
+ break;
1202
+ case /* injective_auction_rpc.AuctionContract contract */ 7:
1203
+ message.contract = AuctionContract.internalBinaryRead(reader, reader.uint32(), options, message.contract);
1204
+ break;
1205
+ case /* string winning_bid_amount_usd */ 8:
1206
+ message.winningBidAmountUsd = reader.string();
1207
+ break;
1208
+ default:
1209
+ let u = options.readUnknownField;
1210
+ if (u === "throw")
1211
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1212
+ let d = reader.skip(wireType);
1213
+ if (u !== false)
1214
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1215
+ }
1216
+ }
1217
+ return message;
1218
+ }
1219
+ internalBinaryWrite(message: AuctionV2Result, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1220
+ /* string winner = 1; */
1221
+ if (message.winner !== "")
1222
+ writer.tag(1, WireType.LengthDelimited).string(message.winner);
1223
+ /* repeated injective_auction_rpc.CoinPrices basket = 2; */
1224
+ for (let i = 0; i < message.basket.length; i++)
1225
+ CoinPrices.internalBinaryWrite(message.basket[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
1226
+ /* string winning_bid_amount = 3; */
1227
+ if (message.winningBidAmount !== "")
1228
+ writer.tag(3, WireType.LengthDelimited).string(message.winningBidAmount);
1229
+ /* uint64 round = 4; */
1230
+ if (message.round !== 0n)
1231
+ writer.tag(4, WireType.Varint).uint64(message.round);
1232
+ /* sint64 end_timestamp = 5; */
1233
+ if (message.endTimestamp !== 0n)
1234
+ writer.tag(5, WireType.Varint).sint64(message.endTimestamp);
1235
+ /* sint64 updated_at = 6; */
1236
+ if (message.updatedAt !== 0n)
1237
+ writer.tag(6, WireType.Varint).sint64(message.updatedAt);
1238
+ /* injective_auction_rpc.AuctionContract contract = 7; */
1239
+ if (message.contract)
1240
+ AuctionContract.internalBinaryWrite(message.contract, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
1241
+ /* string winning_bid_amount_usd = 8; */
1242
+ if (message.winningBidAmountUsd !== "")
1243
+ writer.tag(8, WireType.LengthDelimited).string(message.winningBidAmountUsd);
1244
+ let u = options.writeUnknownFields;
1245
+ if (u !== false)
1246
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1247
+ return writer;
1248
+ }
1249
+ }
1250
+ /**
1251
+ * @generated MessageType for protobuf message injective_auction_rpc.AuctionV2Result
1252
+ */
1253
+ export const AuctionV2Result = new AuctionV2Result$Type();
1254
+ // @generated message type with reflection information, may provide speed optimized methods
1255
+ class CoinPrices$Type extends MessageType<CoinPrices> {
1256
+ constructor() {
1257
+ super("injective_auction_rpc.CoinPrices", [
1258
+ { no: 1, name: "denom", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1259
+ { no: 2, name: "amount", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1260
+ { no: 3, name: "prices", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } }
1261
+ ]);
1262
+ }
1263
+ create(value?: PartialMessage<CoinPrices>): CoinPrices {
1264
+ const message = globalThis.Object.create((this.messagePrototype!));
1265
+ message.denom = "";
1266
+ message.amount = "";
1267
+ message.prices = {};
1268
+ if (value !== undefined)
1269
+ reflectionMergePartial<CoinPrices>(this, message, value);
1270
+ return message;
1271
+ }
1272
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CoinPrices): CoinPrices {
1273
+ let message = target ?? this.create(), end = reader.pos + length;
1274
+ while (reader.pos < end) {
1275
+ let [fieldNo, wireType] = reader.tag();
1276
+ switch (fieldNo) {
1277
+ case /* string denom */ 1:
1278
+ message.denom = reader.string();
1279
+ break;
1280
+ case /* string amount */ 2:
1281
+ message.amount = reader.string();
1282
+ break;
1283
+ case /* map<string, string> prices */ 3:
1284
+ this.binaryReadMap3(message.prices, reader, options);
1285
+ break;
1286
+ default:
1287
+ let u = options.readUnknownField;
1288
+ if (u === "throw")
1289
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1290
+ let d = reader.skip(wireType);
1291
+ if (u !== false)
1292
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1293
+ }
1294
+ }
1295
+ return message;
1296
+ }
1297
+ private binaryReadMap3(map: CoinPrices["prices"], reader: IBinaryReader, options: BinaryReadOptions): void {
1298
+ let len = reader.uint32(), end = reader.pos + len, key: keyof CoinPrices["prices"] | undefined, val: CoinPrices["prices"][any] | undefined;
1299
+ while (reader.pos < end) {
1300
+ let [fieldNo, wireType] = reader.tag();
1301
+ switch (fieldNo) {
1302
+ case 1:
1303
+ key = reader.string();
1304
+ break;
1305
+ case 2:
1306
+ val = reader.string();
1307
+ break;
1308
+ default: throw new globalThis.Error("unknown map entry field for injective_auction_rpc.CoinPrices.prices");
1309
+ }
1310
+ }
1311
+ map[key ?? ""] = val ?? "";
1312
+ }
1313
+ internalBinaryWrite(message: CoinPrices, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1314
+ /* string denom = 1; */
1315
+ if (message.denom !== "")
1316
+ writer.tag(1, WireType.LengthDelimited).string(message.denom);
1317
+ /* string amount = 2; */
1318
+ if (message.amount !== "")
1319
+ writer.tag(2, WireType.LengthDelimited).string(message.amount);
1320
+ /* map<string, string> prices = 3; */
1321
+ for (let k of globalThis.Object.keys(message.prices))
1322
+ writer.tag(3, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.prices[k]).join();
1323
+ let u = options.writeUnknownFields;
1324
+ if (u !== false)
1325
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1326
+ return writer;
1327
+ }
1328
+ }
1329
+ /**
1330
+ * @generated MessageType for protobuf message injective_auction_rpc.CoinPrices
1331
+ */
1332
+ export const CoinPrices = new CoinPrices$Type();
1333
+ // @generated message type with reflection information, may provide speed optimized methods
1334
+ class AuctionV2Request$Type extends MessageType<AuctionV2Request> {
1335
+ constructor() {
1336
+ super("injective_auction_rpc.AuctionV2Request", [
1337
+ { no: 1, name: "round", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ }
1338
+ ]);
1339
+ }
1340
+ create(value?: PartialMessage<AuctionV2Request>): AuctionV2Request {
1341
+ const message = globalThis.Object.create((this.messagePrototype!));
1342
+ message.round = 0n;
1343
+ if (value !== undefined)
1344
+ reflectionMergePartial<AuctionV2Request>(this, message, value);
1345
+ return message;
1346
+ }
1347
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuctionV2Request): AuctionV2Request {
1348
+ let message = target ?? this.create(), end = reader.pos + length;
1349
+ while (reader.pos < end) {
1350
+ let [fieldNo, wireType] = reader.tag();
1351
+ switch (fieldNo) {
1352
+ case /* sint64 round */ 1:
1353
+ message.round = reader.sint64().toBigInt();
1354
+ break;
1355
+ default:
1356
+ let u = options.readUnknownField;
1357
+ if (u === "throw")
1358
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1359
+ let d = reader.skip(wireType);
1360
+ if (u !== false)
1361
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1362
+ }
1363
+ }
1364
+ return message;
1365
+ }
1366
+ internalBinaryWrite(message: AuctionV2Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1367
+ /* sint64 round = 1; */
1368
+ if (message.round !== 0n)
1369
+ writer.tag(1, WireType.Varint).sint64(message.round);
1370
+ let u = options.writeUnknownFields;
1371
+ if (u !== false)
1372
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1373
+ return writer;
1374
+ }
1375
+ }
1376
+ /**
1377
+ * @generated MessageType for protobuf message injective_auction_rpc.AuctionV2Request
1378
+ */
1379
+ export const AuctionV2Request = new AuctionV2Request$Type();
1380
+ // @generated message type with reflection information, may provide speed optimized methods
1381
+ class AuctionV2Response$Type extends MessageType<AuctionV2Response> {
1382
+ constructor() {
1383
+ super("injective_auction_rpc.AuctionV2Response", [
1384
+ { no: 1, name: "winner", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1385
+ { no: 2, name: "basket", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CoinPrices },
1386
+ { no: 3, name: "winning_bid_amount", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1387
+ { no: 4, name: "round", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
1388
+ { no: 5, name: "end_timestamp", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
1389
+ { no: 6, name: "updated_at", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
1390
+ { no: 7, name: "contract", kind: "message", T: () => AuctionContract },
1391
+ { no: 8, name: "winning_bid_amount_usd", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1392
+ ]);
1393
+ }
1394
+ create(value?: PartialMessage<AuctionV2Response>): AuctionV2Response {
1395
+ const message = globalThis.Object.create((this.messagePrototype!));
1396
+ message.winner = "";
1397
+ message.basket = [];
1398
+ message.winningBidAmount = "";
1399
+ message.round = 0n;
1400
+ message.endTimestamp = 0n;
1401
+ message.updatedAt = 0n;
1402
+ message.winningBidAmountUsd = "";
1403
+ if (value !== undefined)
1404
+ reflectionMergePartial<AuctionV2Response>(this, message, value);
1405
+ return message;
1406
+ }
1407
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuctionV2Response): AuctionV2Response {
1408
+ let message = target ?? this.create(), end = reader.pos + length;
1409
+ while (reader.pos < end) {
1410
+ let [fieldNo, wireType] = reader.tag();
1411
+ switch (fieldNo) {
1412
+ case /* string winner */ 1:
1413
+ message.winner = reader.string();
1414
+ break;
1415
+ case /* repeated injective_auction_rpc.CoinPrices basket */ 2:
1416
+ message.basket.push(CoinPrices.internalBinaryRead(reader, reader.uint32(), options));
1417
+ break;
1418
+ case /* string winning_bid_amount */ 3:
1419
+ message.winningBidAmount = reader.string();
1420
+ break;
1421
+ case /* uint64 round */ 4:
1422
+ message.round = reader.uint64().toBigInt();
1423
+ break;
1424
+ case /* sint64 end_timestamp */ 5:
1425
+ message.endTimestamp = reader.sint64().toBigInt();
1426
+ break;
1427
+ case /* sint64 updated_at */ 6:
1428
+ message.updatedAt = reader.sint64().toBigInt();
1429
+ break;
1430
+ case /* injective_auction_rpc.AuctionContract contract */ 7:
1431
+ message.contract = AuctionContract.internalBinaryRead(reader, reader.uint32(), options, message.contract);
1432
+ break;
1433
+ case /* string winning_bid_amount_usd */ 8:
1434
+ message.winningBidAmountUsd = reader.string();
1435
+ break;
1436
+ default:
1437
+ let u = options.readUnknownField;
1438
+ if (u === "throw")
1439
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1440
+ let d = reader.skip(wireType);
1441
+ if (u !== false)
1442
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1443
+ }
1444
+ }
1445
+ return message;
1446
+ }
1447
+ internalBinaryWrite(message: AuctionV2Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1448
+ /* string winner = 1; */
1449
+ if (message.winner !== "")
1450
+ writer.tag(1, WireType.LengthDelimited).string(message.winner);
1451
+ /* repeated injective_auction_rpc.CoinPrices basket = 2; */
1452
+ for (let i = 0; i < message.basket.length; i++)
1453
+ CoinPrices.internalBinaryWrite(message.basket[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
1454
+ /* string winning_bid_amount = 3; */
1455
+ if (message.winningBidAmount !== "")
1456
+ writer.tag(3, WireType.LengthDelimited).string(message.winningBidAmount);
1457
+ /* uint64 round = 4; */
1458
+ if (message.round !== 0n)
1459
+ writer.tag(4, WireType.Varint).uint64(message.round);
1460
+ /* sint64 end_timestamp = 5; */
1461
+ if (message.endTimestamp !== 0n)
1462
+ writer.tag(5, WireType.Varint).sint64(message.endTimestamp);
1463
+ /* sint64 updated_at = 6; */
1464
+ if (message.updatedAt !== 0n)
1465
+ writer.tag(6, WireType.Varint).sint64(message.updatedAt);
1466
+ /* injective_auction_rpc.AuctionContract contract = 7; */
1467
+ if (message.contract)
1468
+ AuctionContract.internalBinaryWrite(message.contract, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
1469
+ /* string winning_bid_amount_usd = 8; */
1470
+ if (message.winningBidAmountUsd !== "")
1471
+ writer.tag(8, WireType.LengthDelimited).string(message.winningBidAmountUsd);
1472
+ let u = options.writeUnknownFields;
1473
+ if (u !== false)
1474
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1475
+ return writer;
1476
+ }
1477
+ }
1478
+ /**
1479
+ * @generated MessageType for protobuf message injective_auction_rpc.AuctionV2Response
1480
+ */
1481
+ export const AuctionV2Response = new AuctionV2Response$Type();
1482
+ // @generated message type with reflection information, may provide speed optimized methods
1483
+ class AccountAuctionsV2Request$Type extends MessageType<AccountAuctionsV2Request> {
1484
+ constructor() {
1485
+ super("injective_auction_rpc.AccountAuctionsV2Request", [
1486
+ { no: 1, name: "address", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1487
+ { no: 2, name: "per_page", kind: "scalar", T: 17 /*ScalarType.SINT32*/ },
1488
+ { no: 3, name: "token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1489
+ ]);
1490
+ }
1491
+ create(value?: PartialMessage<AccountAuctionsV2Request>): AccountAuctionsV2Request {
1492
+ const message = globalThis.Object.create((this.messagePrototype!));
1493
+ message.address = "";
1494
+ message.perPage = 0;
1495
+ message.token = "";
1496
+ if (value !== undefined)
1497
+ reflectionMergePartial<AccountAuctionsV2Request>(this, message, value);
1498
+ return message;
1499
+ }
1500
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AccountAuctionsV2Request): AccountAuctionsV2Request {
1501
+ let message = target ?? this.create(), end = reader.pos + length;
1502
+ while (reader.pos < end) {
1503
+ let [fieldNo, wireType] = reader.tag();
1504
+ switch (fieldNo) {
1505
+ case /* string address */ 1:
1506
+ message.address = reader.string();
1507
+ break;
1508
+ case /* sint32 per_page */ 2:
1509
+ message.perPage = reader.sint32();
1510
+ break;
1511
+ case /* string token */ 3:
1512
+ message.token = reader.string();
1513
+ break;
1514
+ default:
1515
+ let u = options.readUnknownField;
1516
+ if (u === "throw")
1517
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1518
+ let d = reader.skip(wireType);
1519
+ if (u !== false)
1520
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1521
+ }
1522
+ }
1523
+ return message;
1524
+ }
1525
+ internalBinaryWrite(message: AccountAuctionsV2Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1526
+ /* string address = 1; */
1527
+ if (message.address !== "")
1528
+ writer.tag(1, WireType.LengthDelimited).string(message.address);
1529
+ /* sint32 per_page = 2; */
1530
+ if (message.perPage !== 0)
1531
+ writer.tag(2, WireType.Varint).sint32(message.perPage);
1532
+ /* string token = 3; */
1533
+ if (message.token !== "")
1534
+ writer.tag(3, WireType.LengthDelimited).string(message.token);
1535
+ let u = options.writeUnknownFields;
1536
+ if (u !== false)
1537
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1538
+ return writer;
1539
+ }
1540
+ }
1541
+ /**
1542
+ * @generated MessageType for protobuf message injective_auction_rpc.AccountAuctionsV2Request
1543
+ */
1544
+ export const AccountAuctionsV2Request = new AccountAuctionsV2Request$Type();
1545
+ // @generated message type with reflection information, may provide speed optimized methods
1546
+ class AccountAuctionsV2Response$Type extends MessageType<AccountAuctionsV2Response> {
1547
+ constructor() {
1548
+ super("injective_auction_rpc.AccountAuctionsV2Response", [
1549
+ { no: 1, name: "auctions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AccountAuctionV2 },
1550
+ { no: 2, name: "next", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
1551
+ { no: 3, name: "total", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ }
1552
+ ]);
1553
+ }
1554
+ create(value?: PartialMessage<AccountAuctionsV2Response>): AccountAuctionsV2Response {
1555
+ const message = globalThis.Object.create((this.messagePrototype!));
1556
+ message.auctions = [];
1557
+ message.next = [];
1558
+ message.total = 0n;
1559
+ if (value !== undefined)
1560
+ reflectionMergePartial<AccountAuctionsV2Response>(this, message, value);
1561
+ return message;
1562
+ }
1563
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AccountAuctionsV2Response): AccountAuctionsV2Response {
1564
+ let message = target ?? this.create(), end = reader.pos + length;
1565
+ while (reader.pos < end) {
1566
+ let [fieldNo, wireType] = reader.tag();
1567
+ switch (fieldNo) {
1568
+ case /* repeated injective_auction_rpc.AccountAuctionV2 auctions */ 1:
1569
+ message.auctions.push(AccountAuctionV2.internalBinaryRead(reader, reader.uint32(), options));
1570
+ break;
1571
+ case /* repeated string next */ 2:
1572
+ message.next.push(reader.string());
1573
+ break;
1574
+ case /* sint64 total */ 3:
1575
+ message.total = reader.sint64().toBigInt();
1576
+ break;
1577
+ default:
1578
+ let u = options.readUnknownField;
1579
+ if (u === "throw")
1580
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1581
+ let d = reader.skip(wireType);
1582
+ if (u !== false)
1583
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1584
+ }
1585
+ }
1586
+ return message;
1587
+ }
1588
+ internalBinaryWrite(message: AccountAuctionsV2Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1589
+ /* repeated injective_auction_rpc.AccountAuctionV2 auctions = 1; */
1590
+ for (let i = 0; i < message.auctions.length; i++)
1591
+ AccountAuctionV2.internalBinaryWrite(message.auctions[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1592
+ /* repeated string next = 2; */
1593
+ for (let i = 0; i < message.next.length; i++)
1594
+ writer.tag(2, WireType.LengthDelimited).string(message.next[i]);
1595
+ /* sint64 total = 3; */
1596
+ if (message.total !== 0n)
1597
+ writer.tag(3, WireType.Varint).sint64(message.total);
1598
+ let u = options.writeUnknownFields;
1599
+ if (u !== false)
1600
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1601
+ return writer;
1602
+ }
1603
+ }
1604
+ /**
1605
+ * @generated MessageType for protobuf message injective_auction_rpc.AccountAuctionsV2Response
1606
+ */
1607
+ export const AccountAuctionsV2Response = new AccountAuctionsV2Response$Type();
1608
+ // @generated message type with reflection information, may provide speed optimized methods
1609
+ class AccountAuctionV2$Type extends MessageType<AccountAuctionV2> {
1610
+ constructor() {
1611
+ super("injective_auction_rpc.AccountAuctionV2", [
1612
+ { no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
1613
+ { no: 2, name: "round", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
1614
+ { no: 3, name: "amount_deposited", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1615
+ { no: 4, name: "is_claimable", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
1616
+ { no: 5, name: "claimed_assets", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CoinPrices }
1617
+ ]);
1618
+ }
1619
+ create(value?: PartialMessage<AccountAuctionV2>): AccountAuctionV2 {
1620
+ const message = globalThis.Object.create((this.messagePrototype!));
1621
+ message.id = 0n;
1622
+ message.round = 0n;
1623
+ message.amountDeposited = "";
1624
+ message.isClaimable = false;
1625
+ message.claimedAssets = [];
1626
+ if (value !== undefined)
1627
+ reflectionMergePartial<AccountAuctionV2>(this, message, value);
1628
+ return message;
1629
+ }
1630
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AccountAuctionV2): AccountAuctionV2 {
1631
+ let message = target ?? this.create(), end = reader.pos + length;
1632
+ while (reader.pos < end) {
1633
+ let [fieldNo, wireType] = reader.tag();
1634
+ switch (fieldNo) {
1635
+ case /* uint64 id */ 1:
1636
+ message.id = reader.uint64().toBigInt();
1637
+ break;
1638
+ case /* uint64 round */ 2:
1639
+ message.round = reader.uint64().toBigInt();
1640
+ break;
1641
+ case /* string amount_deposited */ 3:
1642
+ message.amountDeposited = reader.string();
1643
+ break;
1644
+ case /* bool is_claimable */ 4:
1645
+ message.isClaimable = reader.bool();
1646
+ break;
1647
+ case /* repeated injective_auction_rpc.CoinPrices claimed_assets */ 5:
1648
+ message.claimedAssets.push(CoinPrices.internalBinaryRead(reader, reader.uint32(), options));
1649
+ break;
1650
+ default:
1651
+ let u = options.readUnknownField;
1652
+ if (u === "throw")
1653
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1654
+ let d = reader.skip(wireType);
1655
+ if (u !== false)
1656
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1657
+ }
1658
+ }
1659
+ return message;
1660
+ }
1661
+ internalBinaryWrite(message: AccountAuctionV2, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1662
+ /* uint64 id = 1; */
1663
+ if (message.id !== 0n)
1664
+ writer.tag(1, WireType.Varint).uint64(message.id);
1665
+ /* uint64 round = 2; */
1666
+ if (message.round !== 0n)
1667
+ writer.tag(2, WireType.Varint).uint64(message.round);
1668
+ /* string amount_deposited = 3; */
1669
+ if (message.amountDeposited !== "")
1670
+ writer.tag(3, WireType.LengthDelimited).string(message.amountDeposited);
1671
+ /* bool is_claimable = 4; */
1672
+ if (message.isClaimable !== false)
1673
+ writer.tag(4, WireType.Varint).bool(message.isClaimable);
1674
+ /* repeated injective_auction_rpc.CoinPrices claimed_assets = 5; */
1675
+ for (let i = 0; i < message.claimedAssets.length; i++)
1676
+ CoinPrices.internalBinaryWrite(message.claimedAssets[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
1677
+ let u = options.writeUnknownFields;
1678
+ if (u !== false)
1679
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1680
+ return writer;
1681
+ }
1682
+ }
1683
+ /**
1684
+ * @generated MessageType for protobuf message injective_auction_rpc.AccountAuctionV2
1685
+ */
1686
+ export const AccountAuctionV2 = new AccountAuctionV2$Type();
1687
+ // @generated message type with reflection information, may provide speed optimized methods
1688
+ class StreamBidsRequest$Type extends MessageType<StreamBidsRequest> {
1689
+ constructor() {
1690
+ super("injective_auction_rpc.StreamBidsRequest", []);
1691
+ }
1692
+ create(value?: PartialMessage<StreamBidsRequest>): StreamBidsRequest {
1693
+ const message = globalThis.Object.create((this.messagePrototype!));
1694
+ if (value !== undefined)
1695
+ reflectionMergePartial<StreamBidsRequest>(this, message, value);
1696
+ return message;
1697
+ }
1698
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamBidsRequest): StreamBidsRequest {
1699
+ let message = target ?? this.create(), end = reader.pos + length;
1700
+ while (reader.pos < end) {
1701
+ let [fieldNo, wireType] = reader.tag();
1702
+ switch (fieldNo) {
1703
+ default:
1704
+ let u = options.readUnknownField;
1705
+ if (u === "throw")
1706
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1707
+ let d = reader.skip(wireType);
1708
+ if (u !== false)
1709
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1710
+ }
1711
+ }
1712
+ return message;
1713
+ }
1714
+ internalBinaryWrite(message: StreamBidsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1715
+ let u = options.writeUnknownFields;
1716
+ if (u !== false)
1717
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1718
+ return writer;
1719
+ }
1720
+ }
1721
+ /**
1722
+ * @generated MessageType for protobuf message injective_auction_rpc.StreamBidsRequest
1723
+ */
1724
+ export const StreamBidsRequest = new StreamBidsRequest$Type();
1725
+ // @generated message type with reflection information, may provide speed optimized methods
1726
+ class StreamBidsResponse$Type extends MessageType<StreamBidsResponse> {
1727
+ constructor() {
1728
+ super("injective_auction_rpc.StreamBidsResponse", [
1729
+ { no: 1, name: "bidder", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1730
+ { no: 2, name: "bid_amount", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1731
+ { no: 3, name: "round", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
1732
+ { no: 4, name: "timestamp", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ }
1733
+ ]);
1734
+ }
1735
+ create(value?: PartialMessage<StreamBidsResponse>): StreamBidsResponse {
1736
+ const message = globalThis.Object.create((this.messagePrototype!));
1737
+ message.bidder = "";
1738
+ message.bidAmount = "";
1739
+ message.round = 0n;
1740
+ message.timestamp = 0n;
1741
+ if (value !== undefined)
1742
+ reflectionMergePartial<StreamBidsResponse>(this, message, value);
1743
+ return message;
1744
+ }
1745
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamBidsResponse): StreamBidsResponse {
1746
+ let message = target ?? this.create(), end = reader.pos + length;
1747
+ while (reader.pos < end) {
1748
+ let [fieldNo, wireType] = reader.tag();
1749
+ switch (fieldNo) {
1750
+ case /* string bidder */ 1:
1751
+ message.bidder = reader.string();
1752
+ break;
1753
+ case /* string bid_amount */ 2:
1754
+ message.bidAmount = reader.string();
1755
+ break;
1756
+ case /* uint64 round */ 3:
1757
+ message.round = reader.uint64().toBigInt();
1758
+ break;
1759
+ case /* sint64 timestamp */ 4:
1760
+ message.timestamp = reader.sint64().toBigInt();
1761
+ break;
1762
+ default:
1763
+ let u = options.readUnknownField;
1764
+ if (u === "throw")
1765
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1766
+ let d = reader.skip(wireType);
1767
+ if (u !== false)
1768
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1769
+ }
1770
+ }
1771
+ return message;
1772
+ }
1773
+ internalBinaryWrite(message: StreamBidsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1774
+ /* string bidder = 1; */
1775
+ if (message.bidder !== "")
1776
+ writer.tag(1, WireType.LengthDelimited).string(message.bidder);
1777
+ /* string bid_amount = 2; */
1778
+ if (message.bidAmount !== "")
1779
+ writer.tag(2, WireType.LengthDelimited).string(message.bidAmount);
1780
+ /* uint64 round = 3; */
1781
+ if (message.round !== 0n)
1782
+ writer.tag(3, WireType.Varint).uint64(message.round);
1783
+ /* sint64 timestamp = 4; */
1784
+ if (message.timestamp !== 0n)
1785
+ writer.tag(4, WireType.Varint).sint64(message.timestamp);
1786
+ let u = options.writeUnknownFields;
1787
+ if (u !== false)
1788
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1789
+ return writer;
1790
+ }
1791
+ }
1792
+ /**
1793
+ * @generated MessageType for protobuf message injective_auction_rpc.StreamBidsResponse
1794
+ */
1795
+ export const StreamBidsResponse = new StreamBidsResponse$Type();
1796
+ // @generated message type with reflection information, may provide speed optimized methods
1797
+ class InjBurntEndpointRequest$Type extends MessageType<InjBurntEndpointRequest> {
1798
+ constructor() {
1799
+ super("injective_auction_rpc.InjBurntEndpointRequest", []);
1800
+ }
1801
+ create(value?: PartialMessage<InjBurntEndpointRequest>): InjBurntEndpointRequest {
1802
+ const message = globalThis.Object.create((this.messagePrototype!));
1803
+ if (value !== undefined)
1804
+ reflectionMergePartial<InjBurntEndpointRequest>(this, message, value);
1805
+ return message;
1806
+ }
1807
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: InjBurntEndpointRequest): InjBurntEndpointRequest {
1808
+ let message = target ?? this.create(), end = reader.pos + length;
1809
+ while (reader.pos < end) {
1810
+ let [fieldNo, wireType] = reader.tag();
1811
+ switch (fieldNo) {
1812
+ default:
1813
+ let u = options.readUnknownField;
1814
+ if (u === "throw")
1815
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1816
+ let d = reader.skip(wireType);
1817
+ if (u !== false)
1818
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1819
+ }
1820
+ }
1821
+ return message;
1822
+ }
1823
+ internalBinaryWrite(message: InjBurntEndpointRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1824
+ let u = options.writeUnknownFields;
1825
+ if (u !== false)
1826
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1827
+ return writer;
1828
+ }
1829
+ }
1830
+ /**
1831
+ * @generated MessageType for protobuf message injective_auction_rpc.InjBurntEndpointRequest
1832
+ */
1833
+ export const InjBurntEndpointRequest = new InjBurntEndpointRequest$Type();
1834
+ // @generated message type with reflection information, may provide speed optimized methods
1835
+ class InjBurntEndpointResponse$Type extends MessageType<InjBurntEndpointResponse> {
1836
+ constructor() {
1837
+ super("injective_auction_rpc.InjBurntEndpointResponse", [
1838
+ { no: 1, name: "total_inj_burnt", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1839
+ ]);
1840
+ }
1841
+ create(value?: PartialMessage<InjBurntEndpointResponse>): InjBurntEndpointResponse {
1842
+ const message = globalThis.Object.create((this.messagePrototype!));
1843
+ message.totalInjBurnt = "";
1844
+ if (value !== undefined)
1845
+ reflectionMergePartial<InjBurntEndpointResponse>(this, message, value);
1846
+ return message;
1847
+ }
1848
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: InjBurntEndpointResponse): InjBurntEndpointResponse {
1849
+ let message = target ?? this.create(), end = reader.pos + length;
1850
+ while (reader.pos < end) {
1851
+ let [fieldNo, wireType] = reader.tag();
1852
+ switch (fieldNo) {
1853
+ case /* string total_inj_burnt */ 1:
1854
+ message.totalInjBurnt = reader.string();
1855
+ break;
1856
+ default:
1857
+ let u = options.readUnknownField;
1858
+ if (u === "throw")
1859
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1860
+ let d = reader.skip(wireType);
1861
+ if (u !== false)
1862
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1863
+ }
1864
+ }
1865
+ return message;
1866
+ }
1867
+ internalBinaryWrite(message: InjBurntEndpointResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1868
+ /* string total_inj_burnt = 1; */
1869
+ if (message.totalInjBurnt !== "")
1870
+ writer.tag(1, WireType.LengthDelimited).string(message.totalInjBurnt);
1871
+ let u = options.writeUnknownFields;
1872
+ if (u !== false)
1873
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1874
+ return writer;
1875
+ }
1876
+ }
1877
+ /**
1878
+ * @generated MessageType for protobuf message injective_auction_rpc.InjBurntEndpointResponse
1879
+ */
1880
+ export const InjBurntEndpointResponse = new InjBurntEndpointResponse$Type();
1881
+ // @generated message type with reflection information, may provide speed optimized methods
1882
+ class AuctionsStatsRequest$Type extends MessageType<AuctionsStatsRequest> {
1883
+ constructor() {
1884
+ super("injective_auction_rpc.AuctionsStatsRequest", []);
1885
+ }
1886
+ create(value?: PartialMessage<AuctionsStatsRequest>): AuctionsStatsRequest {
1887
+ const message = globalThis.Object.create((this.messagePrototype!));
1888
+ if (value !== undefined)
1889
+ reflectionMergePartial<AuctionsStatsRequest>(this, message, value);
1890
+ return message;
1891
+ }
1892
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuctionsStatsRequest): AuctionsStatsRequest {
1893
+ let message = target ?? this.create(), end = reader.pos + length;
1894
+ while (reader.pos < end) {
1895
+ let [fieldNo, wireType] = reader.tag();
1896
+ switch (fieldNo) {
1897
+ default:
1898
+ let u = options.readUnknownField;
1899
+ if (u === "throw")
1900
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1901
+ let d = reader.skip(wireType);
1902
+ if (u !== false)
1903
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1904
+ }
1905
+ }
1906
+ return message;
1907
+ }
1908
+ internalBinaryWrite(message: AuctionsStatsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1909
+ let u = options.writeUnknownFields;
1910
+ if (u !== false)
1911
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1912
+ return writer;
1913
+ }
1914
+ }
1915
+ /**
1916
+ * @generated MessageType for protobuf message injective_auction_rpc.AuctionsStatsRequest
1917
+ */
1918
+ export const AuctionsStatsRequest = new AuctionsStatsRequest$Type();
1919
+ // @generated message type with reflection information, may provide speed optimized methods
1920
+ class AuctionsStatsResponse$Type extends MessageType<AuctionsStatsResponse> {
1921
+ constructor() {
1922
+ super("injective_auction_rpc.AuctionsStatsResponse", [
1923
+ { no: 1, name: "total_burnt", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1924
+ { no: 2, name: "total_usd_value", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1925
+ ]);
1926
+ }
1927
+ create(value?: PartialMessage<AuctionsStatsResponse>): AuctionsStatsResponse {
1928
+ const message = globalThis.Object.create((this.messagePrototype!));
1929
+ message.totalBurnt = "";
1930
+ message.totalUsdValue = "";
1931
+ if (value !== undefined)
1932
+ reflectionMergePartial<AuctionsStatsResponse>(this, message, value);
1933
+ return message;
1934
+ }
1935
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AuctionsStatsResponse): AuctionsStatsResponse {
1936
+ let message = target ?? this.create(), end = reader.pos + length;
1937
+ while (reader.pos < end) {
1938
+ let [fieldNo, wireType] = reader.tag();
1939
+ switch (fieldNo) {
1940
+ case /* string total_burnt */ 1:
1941
+ message.totalBurnt = reader.string();
1942
+ break;
1943
+ case /* string total_usd_value */ 2:
1944
+ message.totalUsdValue = reader.string();
1945
+ break;
1946
+ default:
1947
+ let u = options.readUnknownField;
1948
+ if (u === "throw")
1949
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1950
+ let d = reader.skip(wireType);
1951
+ if (u !== false)
1952
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1953
+ }
1954
+ }
1955
+ return message;
1956
+ }
1957
+ internalBinaryWrite(message: AuctionsStatsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1958
+ /* string total_burnt = 1; */
1959
+ if (message.totalBurnt !== "")
1960
+ writer.tag(1, WireType.LengthDelimited).string(message.totalBurnt);
1961
+ /* string total_usd_value = 2; */
1962
+ if (message.totalUsdValue !== "")
1963
+ writer.tag(2, WireType.LengthDelimited).string(message.totalUsdValue);
1964
+ let u = options.writeUnknownFields;
1965
+ if (u !== false)
1966
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1967
+ return writer;
1968
+ }
1969
+ }
1970
+ /**
1971
+ * @generated MessageType for protobuf message injective_auction_rpc.AuctionsStatsResponse
1972
+ */
1973
+ export const AuctionsStatsResponse = new AuctionsStatsResponse$Type();
1974
+ /**
1975
+ * @generated ServiceType for protobuf service injective_auction_rpc.InjectiveAuctionRPC
1976
+ */
1977
+ export const InjectiveAuctionRPC = new ServiceType("injective_auction_rpc.InjectiveAuctionRPC", [
1978
+ { name: "AuctionEndpoint", options: {}, I: AuctionEndpointRequest, O: AuctionEndpointResponse },
1979
+ { name: "Auctions", options: {}, I: AuctionsRequest, O: AuctionsResponse },
1980
+ { name: "AuctionsHistoryV2", options: {}, I: AuctionsHistoryV2Request, O: AuctionsHistoryV2Response },
1981
+ { name: "AuctionV2", options: {}, I: AuctionV2Request, O: AuctionV2Response },
1982
+ { name: "AccountAuctionsV2", options: {}, I: AccountAuctionsV2Request, O: AccountAuctionsV2Response },
1983
+ { name: "StreamBids", serverStreaming: true, options: {}, I: StreamBidsRequest, O: StreamBidsResponse },
1984
+ { name: "InjBurntEndpoint", options: {}, I: InjBurntEndpointRequest, O: InjBurntEndpointResponse },
1985
+ { name: "AuctionsStats", options: {}, I: AuctionsStatsRequest, O: AuctionsStatsResponse }
1986
+ ]);