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