@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,2241 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
|
|
2
|
+
// @generated from protobuf file "injective_rfqrpc.proto" (package "injective_rfqrpc", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
//
|
|
5
|
+
// Code generated with goa v3.7.0, DO NOT EDIT.
|
|
6
|
+
//
|
|
7
|
+
// InjectiveRFQRPC 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_rfqrpc.RequestRequest
|
|
24
|
+
*/
|
|
25
|
+
export interface RequestRequest {
|
|
26
|
+
/**
|
|
27
|
+
* RFQ request to create
|
|
28
|
+
*
|
|
29
|
+
* @generated from protobuf field: injective_rfqrpc.RFQRequestType request = 1
|
|
30
|
+
*/
|
|
31
|
+
request?: RFQRequestType;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* RFQ request
|
|
35
|
+
*
|
|
36
|
+
* @generated from protobuf message injective_rfqrpc.RFQRequestType
|
|
37
|
+
*/
|
|
38
|
+
export interface RFQRequestType {
|
|
39
|
+
/**
|
|
40
|
+
* RFQ ID
|
|
41
|
+
*
|
|
42
|
+
* @generated from protobuf field: uint64 rfq_id = 1
|
|
43
|
+
*/
|
|
44
|
+
rfqId: bigint;
|
|
45
|
+
/**
|
|
46
|
+
* Market ID
|
|
47
|
+
*
|
|
48
|
+
* @generated from protobuf field: string market_id = 2
|
|
49
|
+
*/
|
|
50
|
+
marketId: string;
|
|
51
|
+
/**
|
|
52
|
+
* Direction (LONG/SHORT)
|
|
53
|
+
*
|
|
54
|
+
* @generated from protobuf field: string direction = 3
|
|
55
|
+
*/
|
|
56
|
+
direction: string;
|
|
57
|
+
/**
|
|
58
|
+
* Margin amount
|
|
59
|
+
*
|
|
60
|
+
* @generated from protobuf field: string margin = 4
|
|
61
|
+
*/
|
|
62
|
+
margin: string;
|
|
63
|
+
/**
|
|
64
|
+
* Quantity
|
|
65
|
+
*
|
|
66
|
+
* @generated from protobuf field: string quantity = 5
|
|
67
|
+
*/
|
|
68
|
+
quantity: string;
|
|
69
|
+
/**
|
|
70
|
+
* Worst acceptable price
|
|
71
|
+
*
|
|
72
|
+
* @generated from protobuf field: string worst_price = 6
|
|
73
|
+
*/
|
|
74
|
+
worstPrice: string;
|
|
75
|
+
/**
|
|
76
|
+
* Requester address
|
|
77
|
+
*
|
|
78
|
+
* @generated from protobuf field: string request_address = 7
|
|
79
|
+
*/
|
|
80
|
+
requestAddress: string;
|
|
81
|
+
/**
|
|
82
|
+
* Expiry timestamp
|
|
83
|
+
*
|
|
84
|
+
* @generated from protobuf field: uint64 expiry = 8
|
|
85
|
+
*/
|
|
86
|
+
expiry: bigint;
|
|
87
|
+
/**
|
|
88
|
+
* Status (open, cancelled, completed)
|
|
89
|
+
*
|
|
90
|
+
* @generated from protobuf field: string status = 9
|
|
91
|
+
*/
|
|
92
|
+
status: string;
|
|
93
|
+
/**
|
|
94
|
+
* Creation timestamp
|
|
95
|
+
*
|
|
96
|
+
* @generated from protobuf field: sint64 created_at = 10
|
|
97
|
+
*/
|
|
98
|
+
createdAt: bigint;
|
|
99
|
+
/**
|
|
100
|
+
* Last update timestamp
|
|
101
|
+
*
|
|
102
|
+
* @generated from protobuf field: sint64 updated_at = 11
|
|
103
|
+
*/
|
|
104
|
+
updatedAt: bigint;
|
|
105
|
+
/**
|
|
106
|
+
* Transaction time timestamp
|
|
107
|
+
*
|
|
108
|
+
* @generated from protobuf field: uint64 transaction_time = 12
|
|
109
|
+
*/
|
|
110
|
+
transactionTime: bigint;
|
|
111
|
+
/**
|
|
112
|
+
* Block height
|
|
113
|
+
*
|
|
114
|
+
* @generated from protobuf field: uint64 height = 13
|
|
115
|
+
*/
|
|
116
|
+
height: bigint;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* @generated from protobuf message injective_rfqrpc.RequestResponse
|
|
120
|
+
*/
|
|
121
|
+
export interface RequestResponse {
|
|
122
|
+
/**
|
|
123
|
+
* Status of the operation
|
|
124
|
+
*
|
|
125
|
+
* @generated from protobuf field: string status = 1
|
|
126
|
+
*/
|
|
127
|
+
status: string;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* @generated from protobuf message injective_rfqrpc.StreamRequestRequest
|
|
131
|
+
*/
|
|
132
|
+
export interface StreamRequestRequest {
|
|
133
|
+
/**
|
|
134
|
+
* Filter by market IDs
|
|
135
|
+
*
|
|
136
|
+
* @generated from protobuf field: repeated string market_ids = 1
|
|
137
|
+
*/
|
|
138
|
+
marketIds: string[];
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* @generated from protobuf message injective_rfqrpc.StreamRequestResponse
|
|
142
|
+
*/
|
|
143
|
+
export interface StreamRequestResponse {
|
|
144
|
+
/**
|
|
145
|
+
* RFQ request update
|
|
146
|
+
*
|
|
147
|
+
* @generated from protobuf field: injective_rfqrpc.RFQRequestType request = 1
|
|
148
|
+
*/
|
|
149
|
+
request?: RFQRequestType;
|
|
150
|
+
/**
|
|
151
|
+
* Operation type (insert, update, delete)
|
|
152
|
+
*
|
|
153
|
+
* @generated from protobuf field: string stream_operation = 2
|
|
154
|
+
*/
|
|
155
|
+
streamOperation: string;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* @generated from protobuf message injective_rfqrpc.QuoteRequest
|
|
159
|
+
*/
|
|
160
|
+
export interface QuoteRequest {
|
|
161
|
+
/**
|
|
162
|
+
* RFQ quote to create
|
|
163
|
+
*
|
|
164
|
+
* @generated from protobuf field: injective_rfqrpc.RFQQuoteType quote = 1
|
|
165
|
+
*/
|
|
166
|
+
quote?: RFQQuoteType;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* RFQ quote
|
|
170
|
+
*
|
|
171
|
+
* @generated from protobuf message injective_rfqrpc.RFQQuoteType
|
|
172
|
+
*/
|
|
173
|
+
export interface RFQQuoteType {
|
|
174
|
+
/**
|
|
175
|
+
* Market ID
|
|
176
|
+
*
|
|
177
|
+
* @generated from protobuf field: string market_id = 1
|
|
178
|
+
*/
|
|
179
|
+
marketId: string;
|
|
180
|
+
/**
|
|
181
|
+
* RFQ ID
|
|
182
|
+
*
|
|
183
|
+
* @generated from protobuf field: uint64 rfq_id = 2
|
|
184
|
+
*/
|
|
185
|
+
rfqId: bigint;
|
|
186
|
+
/**
|
|
187
|
+
* Taker direction (LONG/SHORT)
|
|
188
|
+
*
|
|
189
|
+
* @generated from protobuf field: string taker_direction = 3
|
|
190
|
+
*/
|
|
191
|
+
takerDirection: string;
|
|
192
|
+
/**
|
|
193
|
+
* Margin amount
|
|
194
|
+
*
|
|
195
|
+
* @generated from protobuf field: string margin = 4
|
|
196
|
+
*/
|
|
197
|
+
margin: string;
|
|
198
|
+
/**
|
|
199
|
+
* Quantity
|
|
200
|
+
*
|
|
201
|
+
* @generated from protobuf field: string quantity = 5
|
|
202
|
+
*/
|
|
203
|
+
quantity: string;
|
|
204
|
+
/**
|
|
205
|
+
* Price
|
|
206
|
+
*
|
|
207
|
+
* @generated from protobuf field: string price = 6
|
|
208
|
+
*/
|
|
209
|
+
price: string;
|
|
210
|
+
/**
|
|
211
|
+
* Expiry timestamp
|
|
212
|
+
*
|
|
213
|
+
* @generated from protobuf field: uint64 expiry = 7
|
|
214
|
+
*/
|
|
215
|
+
expiry: bigint;
|
|
216
|
+
/**
|
|
217
|
+
* Maker address
|
|
218
|
+
*
|
|
219
|
+
* @generated from protobuf field: string maker = 8
|
|
220
|
+
*/
|
|
221
|
+
maker: string;
|
|
222
|
+
/**
|
|
223
|
+
* Taker address
|
|
224
|
+
*
|
|
225
|
+
* @generated from protobuf field: string taker = 9
|
|
226
|
+
*/
|
|
227
|
+
taker: string;
|
|
228
|
+
/**
|
|
229
|
+
* Signature
|
|
230
|
+
*
|
|
231
|
+
* @generated from protobuf field: string signature = 10
|
|
232
|
+
*/
|
|
233
|
+
signature: string;
|
|
234
|
+
/**
|
|
235
|
+
* Status (pending, accepted, rejected, expired)
|
|
236
|
+
*
|
|
237
|
+
* @generated from protobuf field: string status = 11
|
|
238
|
+
*/
|
|
239
|
+
status: string;
|
|
240
|
+
/**
|
|
241
|
+
* Creation timestamp
|
|
242
|
+
*
|
|
243
|
+
* @generated from protobuf field: sint64 created_at = 12
|
|
244
|
+
*/
|
|
245
|
+
createdAt: bigint;
|
|
246
|
+
/**
|
|
247
|
+
* Last update timestamp
|
|
248
|
+
*
|
|
249
|
+
* @generated from protobuf field: sint64 updated_at = 13
|
|
250
|
+
*/
|
|
251
|
+
updatedAt: bigint;
|
|
252
|
+
/**
|
|
253
|
+
* Block height
|
|
254
|
+
*
|
|
255
|
+
* @generated from protobuf field: uint64 height = 14
|
|
256
|
+
*/
|
|
257
|
+
height: bigint;
|
|
258
|
+
/**
|
|
259
|
+
* Event time timestamp
|
|
260
|
+
*
|
|
261
|
+
* @generated from protobuf field: uint64 event_time = 15
|
|
262
|
+
*/
|
|
263
|
+
eventTime: bigint;
|
|
264
|
+
/**
|
|
265
|
+
* Transaction time timestamp
|
|
266
|
+
*
|
|
267
|
+
* @generated from protobuf field: uint64 transaction_time = 16
|
|
268
|
+
*/
|
|
269
|
+
transactionTime: bigint;
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* @generated from protobuf message injective_rfqrpc.QuoteResponse
|
|
273
|
+
*/
|
|
274
|
+
export interface QuoteResponse {
|
|
275
|
+
/**
|
|
276
|
+
* Status of the operation
|
|
277
|
+
*
|
|
278
|
+
* @generated from protobuf field: string status = 1
|
|
279
|
+
*/
|
|
280
|
+
status: string;
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* @generated from protobuf message injective_rfqrpc.StreamQuoteRequest
|
|
284
|
+
*/
|
|
285
|
+
export interface StreamQuoteRequest {
|
|
286
|
+
/**
|
|
287
|
+
* Filter by addresses
|
|
288
|
+
*
|
|
289
|
+
* @generated from protobuf field: repeated string addresses = 1
|
|
290
|
+
*/
|
|
291
|
+
addresses: string[];
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* @generated from protobuf message injective_rfqrpc.StreamQuoteResponse
|
|
295
|
+
*/
|
|
296
|
+
export interface StreamQuoteResponse {
|
|
297
|
+
/**
|
|
298
|
+
* RFQ quote update
|
|
299
|
+
*
|
|
300
|
+
* @generated from protobuf field: injective_rfqrpc.RFQQuoteType quote = 1
|
|
301
|
+
*/
|
|
302
|
+
quote?: RFQQuoteType;
|
|
303
|
+
/**
|
|
304
|
+
* Operation type (insert, update, delete)
|
|
305
|
+
*
|
|
306
|
+
* @generated from protobuf field: string stream_operation = 2
|
|
307
|
+
*/
|
|
308
|
+
streamOperation: string;
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* @generated from protobuf message injective_rfqrpc.GetOpenRequestsRequest
|
|
312
|
+
*/
|
|
313
|
+
export interface GetOpenRequestsRequest {
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* @generated from protobuf message injective_rfqrpc.GetOpenRequestsResponse
|
|
317
|
+
*/
|
|
318
|
+
export interface GetOpenRequestsResponse {
|
|
319
|
+
/**
|
|
320
|
+
* List of open requests
|
|
321
|
+
*
|
|
322
|
+
* @generated from protobuf field: repeated injective_rfqrpc.RFQRequestType requests = 1
|
|
323
|
+
*/
|
|
324
|
+
requests: RFQRequestType[];
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* @generated from protobuf message injective_rfqrpc.GetPendingQuotesRequest
|
|
328
|
+
*/
|
|
329
|
+
export interface GetPendingQuotesRequest {
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* @generated from protobuf message injective_rfqrpc.GetPendingQuotesResponse
|
|
333
|
+
*/
|
|
334
|
+
export interface GetPendingQuotesResponse {
|
|
335
|
+
/**
|
|
336
|
+
* List of pending quotes
|
|
337
|
+
*
|
|
338
|
+
* @generated from protobuf field: repeated injective_rfqrpc.RFQQuoteType quotes = 1
|
|
339
|
+
*/
|
|
340
|
+
quotes: RFQQuoteType[];
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* @generated from protobuf message injective_rfqrpc.ListSettlementRequest
|
|
344
|
+
*/
|
|
345
|
+
export interface ListSettlementRequest {
|
|
346
|
+
/**
|
|
347
|
+
* Filter by taker addresses
|
|
348
|
+
*
|
|
349
|
+
* @generated from protobuf field: repeated string addresses = 1
|
|
350
|
+
*/
|
|
351
|
+
addresses: string[];
|
|
352
|
+
/**
|
|
353
|
+
* Skip records for pagination
|
|
354
|
+
*
|
|
355
|
+
* @generated from protobuf field: sint64 skip = 2
|
|
356
|
+
*/
|
|
357
|
+
skip: bigint;
|
|
358
|
+
/**
|
|
359
|
+
* Limit records for pagination
|
|
360
|
+
*
|
|
361
|
+
* @generated from protobuf field: sint64 limit = 3
|
|
362
|
+
*/
|
|
363
|
+
limit: bigint;
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* @generated from protobuf message injective_rfqrpc.ListSettlementResponse
|
|
367
|
+
*/
|
|
368
|
+
export interface ListSettlementResponse {
|
|
369
|
+
/**
|
|
370
|
+
* List of RFQ settlements
|
|
371
|
+
*
|
|
372
|
+
* @generated from protobuf field: repeated injective_rfqrpc.RFQSettlementType settlements = 1
|
|
373
|
+
*/
|
|
374
|
+
settlements: RFQSettlementType[];
|
|
375
|
+
/**
|
|
376
|
+
* Total count of records
|
|
377
|
+
*
|
|
378
|
+
* @generated from protobuf field: sint64 total = 2
|
|
379
|
+
*/
|
|
380
|
+
total: bigint;
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* RFQ settlement
|
|
384
|
+
*
|
|
385
|
+
* @generated from protobuf message injective_rfqrpc.RFQSettlementType
|
|
386
|
+
*/
|
|
387
|
+
export interface RFQSettlementType {
|
|
388
|
+
/**
|
|
389
|
+
* RFQ ID
|
|
390
|
+
*
|
|
391
|
+
* @generated from protobuf field: uint64 rfq_id = 1
|
|
392
|
+
*/
|
|
393
|
+
rfqId: bigint;
|
|
394
|
+
/**
|
|
395
|
+
* Market ID
|
|
396
|
+
*
|
|
397
|
+
* @generated from protobuf field: string market_id = 2
|
|
398
|
+
*/
|
|
399
|
+
marketId: string;
|
|
400
|
+
/**
|
|
401
|
+
* Taker address
|
|
402
|
+
*
|
|
403
|
+
* @generated from protobuf field: string taker = 3
|
|
404
|
+
*/
|
|
405
|
+
taker: string;
|
|
406
|
+
/**
|
|
407
|
+
* Direction (LONG/SHORT)
|
|
408
|
+
*
|
|
409
|
+
* @generated from protobuf field: string direction = 4
|
|
410
|
+
*/
|
|
411
|
+
direction: string;
|
|
412
|
+
/**
|
|
413
|
+
* Margin amount
|
|
414
|
+
*
|
|
415
|
+
* @generated from protobuf field: string margin = 5
|
|
416
|
+
*/
|
|
417
|
+
margin: string;
|
|
418
|
+
/**
|
|
419
|
+
* Quantity
|
|
420
|
+
*
|
|
421
|
+
* @generated from protobuf field: string quantity = 6
|
|
422
|
+
*/
|
|
423
|
+
quantity: string;
|
|
424
|
+
/**
|
|
425
|
+
* Worst acceptable price
|
|
426
|
+
*
|
|
427
|
+
* @generated from protobuf field: string worst_price = 7
|
|
428
|
+
*/
|
|
429
|
+
worstPrice: string;
|
|
430
|
+
/**
|
|
431
|
+
* Maker address
|
|
432
|
+
*
|
|
433
|
+
* @generated from protobuf field: string maker = 8
|
|
434
|
+
*/
|
|
435
|
+
maker: string;
|
|
436
|
+
/**
|
|
437
|
+
* Settlement price
|
|
438
|
+
*
|
|
439
|
+
* @generated from protobuf field: string price = 9
|
|
440
|
+
*/
|
|
441
|
+
price: string;
|
|
442
|
+
/**
|
|
443
|
+
* Creation timestamp
|
|
444
|
+
*
|
|
445
|
+
* @generated from protobuf field: sint64 created_at = 10
|
|
446
|
+
*/
|
|
447
|
+
createdAt: bigint;
|
|
448
|
+
/**
|
|
449
|
+
* Event time timestamp
|
|
450
|
+
*
|
|
451
|
+
* @generated from protobuf field: uint64 event_time = 11
|
|
452
|
+
*/
|
|
453
|
+
eventTime: bigint;
|
|
454
|
+
/**
|
|
455
|
+
* Block height
|
|
456
|
+
*
|
|
457
|
+
* @generated from protobuf field: uint64 height = 12
|
|
458
|
+
*/
|
|
459
|
+
height: bigint;
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
* @generated from protobuf message injective_rfqrpc.StreamSettlementRequest
|
|
463
|
+
*/
|
|
464
|
+
export interface StreamSettlementRequest {
|
|
465
|
+
/**
|
|
466
|
+
* Filter by addresses
|
|
467
|
+
*
|
|
468
|
+
* @generated from protobuf field: repeated string addresses = 1
|
|
469
|
+
*/
|
|
470
|
+
addresses: string[];
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* @generated from protobuf message injective_rfqrpc.StreamSettlementResponse
|
|
474
|
+
*/
|
|
475
|
+
export interface StreamSettlementResponse {
|
|
476
|
+
/**
|
|
477
|
+
* RFQ settlement update
|
|
478
|
+
*
|
|
479
|
+
* @generated from protobuf field: injective_rfqrpc.RFQSettlementType settlement = 1
|
|
480
|
+
*/
|
|
481
|
+
settlement?: RFQSettlementType;
|
|
482
|
+
/**
|
|
483
|
+
* Operation type (insert, update, delete)
|
|
484
|
+
*
|
|
485
|
+
* @generated from protobuf field: string stream_operation = 2
|
|
486
|
+
*/
|
|
487
|
+
streamOperation: string;
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* Message sent by taker in bidirectional stream
|
|
491
|
+
*
|
|
492
|
+
* @generated from protobuf message injective_rfqrpc.TakerStreamStreamingRequest
|
|
493
|
+
*/
|
|
494
|
+
export interface TakerStreamStreamingRequest {
|
|
495
|
+
/**
|
|
496
|
+
* Type: 'request', 'ping'
|
|
497
|
+
*
|
|
498
|
+
* @generated from protobuf field: string message_type = 1
|
|
499
|
+
*/
|
|
500
|
+
messageType: string;
|
|
501
|
+
/**
|
|
502
|
+
* RFQ request to create
|
|
503
|
+
*
|
|
504
|
+
* @generated from protobuf field: injective_rfqrpc.RFQRequestType request = 2
|
|
505
|
+
*/
|
|
506
|
+
request?: RFQRequestType;
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
* @generated from protobuf message injective_rfqrpc.TakerStreamResponse
|
|
510
|
+
*/
|
|
511
|
+
export interface TakerStreamResponse {
|
|
512
|
+
/**
|
|
513
|
+
* Type: 'quote', 'request_ack', 'error', 'pong'
|
|
514
|
+
*
|
|
515
|
+
* @generated from protobuf field: string message_type = 1
|
|
516
|
+
*/
|
|
517
|
+
messageType: string;
|
|
518
|
+
/**
|
|
519
|
+
* Quote from market maker
|
|
520
|
+
*
|
|
521
|
+
* @generated from protobuf field: injective_rfqrpc.RFQQuoteType quote = 2
|
|
522
|
+
*/
|
|
523
|
+
quote?: RFQQuoteType;
|
|
524
|
+
/**
|
|
525
|
+
* Acknowledgment for request creation
|
|
526
|
+
*
|
|
527
|
+
* @generated from protobuf field: injective_rfqrpc.StreamAck request_ack = 3
|
|
528
|
+
*/
|
|
529
|
+
requestAck?: StreamAck;
|
|
530
|
+
/**
|
|
531
|
+
* Error message
|
|
532
|
+
*
|
|
533
|
+
* @generated from protobuf field: injective_rfqrpc.StreamError error = 4
|
|
534
|
+
*/
|
|
535
|
+
error?: StreamError;
|
|
536
|
+
/**
|
|
537
|
+
* Operation type (insert, update, delete)
|
|
538
|
+
*
|
|
539
|
+
* @generated from protobuf field: string stream_operation = 5
|
|
540
|
+
*/
|
|
541
|
+
streamOperation: string;
|
|
542
|
+
}
|
|
543
|
+
/**
|
|
544
|
+
* Acknowledgment for stream operations
|
|
545
|
+
*
|
|
546
|
+
* @generated from protobuf message injective_rfqrpc.StreamAck
|
|
547
|
+
*/
|
|
548
|
+
export interface StreamAck {
|
|
549
|
+
/**
|
|
550
|
+
* RFQ ID
|
|
551
|
+
*
|
|
552
|
+
* @generated from protobuf field: uint64 rfq_id = 1
|
|
553
|
+
*/
|
|
554
|
+
rfqId: bigint;
|
|
555
|
+
/**
|
|
556
|
+
* Status of the operation
|
|
557
|
+
*
|
|
558
|
+
* @generated from protobuf field: string status = 2
|
|
559
|
+
*/
|
|
560
|
+
status: string;
|
|
561
|
+
}
|
|
562
|
+
/**
|
|
563
|
+
* Error message in stream
|
|
564
|
+
*
|
|
565
|
+
* @generated from protobuf message injective_rfqrpc.StreamError
|
|
566
|
+
*/
|
|
567
|
+
export interface StreamError {
|
|
568
|
+
/**
|
|
569
|
+
* Error code
|
|
570
|
+
*
|
|
571
|
+
* @generated from protobuf field: string code = 1
|
|
572
|
+
*/
|
|
573
|
+
code: string;
|
|
574
|
+
/**
|
|
575
|
+
* Error message
|
|
576
|
+
*
|
|
577
|
+
* @generated from protobuf field: string message_ = 2
|
|
578
|
+
*/
|
|
579
|
+
message: string;
|
|
580
|
+
}
|
|
581
|
+
/**
|
|
582
|
+
* Message sent by maker in bidirectional stream
|
|
583
|
+
*
|
|
584
|
+
* @generated from protobuf message injective_rfqrpc.MakerStreamStreamingRequest
|
|
585
|
+
*/
|
|
586
|
+
export interface MakerStreamStreamingRequest {
|
|
587
|
+
/**
|
|
588
|
+
* Type: 'quote', 'ping'
|
|
589
|
+
*
|
|
590
|
+
* @generated from protobuf field: string message_type = 1
|
|
591
|
+
*/
|
|
592
|
+
messageType: string;
|
|
593
|
+
/**
|
|
594
|
+
* Quote to submit
|
|
595
|
+
*
|
|
596
|
+
* @generated from protobuf field: injective_rfqrpc.RFQQuoteType quote = 2
|
|
597
|
+
*/
|
|
598
|
+
quote?: RFQQuoteType;
|
|
599
|
+
}
|
|
600
|
+
/**
|
|
601
|
+
* @generated from protobuf message injective_rfqrpc.MakerStreamResponse
|
|
602
|
+
*/
|
|
603
|
+
export interface MakerStreamResponse {
|
|
604
|
+
/**
|
|
605
|
+
* Type: 'request', 'quote_ack', 'error', 'pong'
|
|
606
|
+
*
|
|
607
|
+
* @generated from protobuf field: string message_type = 1
|
|
608
|
+
*/
|
|
609
|
+
messageType: string;
|
|
610
|
+
/**
|
|
611
|
+
* RFQ request from taker
|
|
612
|
+
*
|
|
613
|
+
* @generated from protobuf field: injective_rfqrpc.RFQRequestType request = 2
|
|
614
|
+
*/
|
|
615
|
+
request?: RFQRequestType;
|
|
616
|
+
/**
|
|
617
|
+
* Acknowledgment for quote submission
|
|
618
|
+
*
|
|
619
|
+
* @generated from protobuf field: injective_rfqrpc.StreamAck quote_ack = 3
|
|
620
|
+
*/
|
|
621
|
+
quoteAck?: StreamAck;
|
|
622
|
+
/**
|
|
623
|
+
* Error message
|
|
624
|
+
*
|
|
625
|
+
* @generated from protobuf field: injective_rfqrpc.StreamError error = 4
|
|
626
|
+
*/
|
|
627
|
+
error?: StreamError;
|
|
628
|
+
/**
|
|
629
|
+
* Operation type (insert, update, delete)
|
|
630
|
+
*
|
|
631
|
+
* @generated from protobuf field: string stream_operation = 5
|
|
632
|
+
*/
|
|
633
|
+
streamOperation: string;
|
|
634
|
+
}
|
|
635
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
636
|
+
class RequestRequest$Type extends MessageType<RequestRequest> {
|
|
637
|
+
constructor() {
|
|
638
|
+
super("injective_rfqrpc.RequestRequest", [
|
|
639
|
+
{ no: 1, name: "request", kind: "message", T: () => RFQRequestType }
|
|
640
|
+
]);
|
|
641
|
+
}
|
|
642
|
+
create(value?: PartialMessage<RequestRequest>): RequestRequest {
|
|
643
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
644
|
+
if (value !== undefined)
|
|
645
|
+
reflectionMergePartial<RequestRequest>(this, message, value);
|
|
646
|
+
return message;
|
|
647
|
+
}
|
|
648
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RequestRequest): RequestRequest {
|
|
649
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
650
|
+
while (reader.pos < end) {
|
|
651
|
+
let [fieldNo, wireType] = reader.tag();
|
|
652
|
+
switch (fieldNo) {
|
|
653
|
+
case /* injective_rfqrpc.RFQRequestType request */ 1:
|
|
654
|
+
message.request = RFQRequestType.internalBinaryRead(reader, reader.uint32(), options, message.request);
|
|
655
|
+
break;
|
|
656
|
+
default:
|
|
657
|
+
let u = options.readUnknownField;
|
|
658
|
+
if (u === "throw")
|
|
659
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
660
|
+
let d = reader.skip(wireType);
|
|
661
|
+
if (u !== false)
|
|
662
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
return message;
|
|
666
|
+
}
|
|
667
|
+
internalBinaryWrite(message: RequestRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
668
|
+
/* injective_rfqrpc.RFQRequestType request = 1; */
|
|
669
|
+
if (message.request)
|
|
670
|
+
RFQRequestType.internalBinaryWrite(message.request, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
671
|
+
let u = options.writeUnknownFields;
|
|
672
|
+
if (u !== false)
|
|
673
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
674
|
+
return writer;
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
/**
|
|
678
|
+
* @generated MessageType for protobuf message injective_rfqrpc.RequestRequest
|
|
679
|
+
*/
|
|
680
|
+
export const RequestRequest = new RequestRequest$Type();
|
|
681
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
682
|
+
class RFQRequestType$Type extends MessageType<RFQRequestType> {
|
|
683
|
+
constructor() {
|
|
684
|
+
super("injective_rfqrpc.RFQRequestType", [
|
|
685
|
+
{ no: 1, name: "rfq_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
686
|
+
{ no: 2, name: "market_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
687
|
+
{ no: 3, name: "direction", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
688
|
+
{ no: 4, name: "margin", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
689
|
+
{ no: 5, name: "quantity", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
690
|
+
{ no: 6, name: "worst_price", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
691
|
+
{ no: 7, name: "request_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
692
|
+
{ no: 8, name: "expiry", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
693
|
+
{ no: 9, name: "status", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
694
|
+
{ no: 10, name: "created_at", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
695
|
+
{ no: 11, name: "updated_at", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
696
|
+
{ no: 12, name: "transaction_time", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
697
|
+
{ no: 13, name: "height", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
698
|
+
]);
|
|
699
|
+
}
|
|
700
|
+
create(value?: PartialMessage<RFQRequestType>): RFQRequestType {
|
|
701
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
702
|
+
message.rfqId = 0n;
|
|
703
|
+
message.marketId = "";
|
|
704
|
+
message.direction = "";
|
|
705
|
+
message.margin = "";
|
|
706
|
+
message.quantity = "";
|
|
707
|
+
message.worstPrice = "";
|
|
708
|
+
message.requestAddress = "";
|
|
709
|
+
message.expiry = 0n;
|
|
710
|
+
message.status = "";
|
|
711
|
+
message.createdAt = 0n;
|
|
712
|
+
message.updatedAt = 0n;
|
|
713
|
+
message.transactionTime = 0n;
|
|
714
|
+
message.height = 0n;
|
|
715
|
+
if (value !== undefined)
|
|
716
|
+
reflectionMergePartial<RFQRequestType>(this, message, value);
|
|
717
|
+
return message;
|
|
718
|
+
}
|
|
719
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RFQRequestType): RFQRequestType {
|
|
720
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
721
|
+
while (reader.pos < end) {
|
|
722
|
+
let [fieldNo, wireType] = reader.tag();
|
|
723
|
+
switch (fieldNo) {
|
|
724
|
+
case /* uint64 rfq_id */ 1:
|
|
725
|
+
message.rfqId = reader.uint64().toBigInt();
|
|
726
|
+
break;
|
|
727
|
+
case /* string market_id */ 2:
|
|
728
|
+
message.marketId = reader.string();
|
|
729
|
+
break;
|
|
730
|
+
case /* string direction */ 3:
|
|
731
|
+
message.direction = reader.string();
|
|
732
|
+
break;
|
|
733
|
+
case /* string margin */ 4:
|
|
734
|
+
message.margin = reader.string();
|
|
735
|
+
break;
|
|
736
|
+
case /* string quantity */ 5:
|
|
737
|
+
message.quantity = reader.string();
|
|
738
|
+
break;
|
|
739
|
+
case /* string worst_price */ 6:
|
|
740
|
+
message.worstPrice = reader.string();
|
|
741
|
+
break;
|
|
742
|
+
case /* string request_address */ 7:
|
|
743
|
+
message.requestAddress = reader.string();
|
|
744
|
+
break;
|
|
745
|
+
case /* uint64 expiry */ 8:
|
|
746
|
+
message.expiry = reader.uint64().toBigInt();
|
|
747
|
+
break;
|
|
748
|
+
case /* string status */ 9:
|
|
749
|
+
message.status = reader.string();
|
|
750
|
+
break;
|
|
751
|
+
case /* sint64 created_at */ 10:
|
|
752
|
+
message.createdAt = reader.sint64().toBigInt();
|
|
753
|
+
break;
|
|
754
|
+
case /* sint64 updated_at */ 11:
|
|
755
|
+
message.updatedAt = reader.sint64().toBigInt();
|
|
756
|
+
break;
|
|
757
|
+
case /* uint64 transaction_time */ 12:
|
|
758
|
+
message.transactionTime = reader.uint64().toBigInt();
|
|
759
|
+
break;
|
|
760
|
+
case /* uint64 height */ 13:
|
|
761
|
+
message.height = reader.uint64().toBigInt();
|
|
762
|
+
break;
|
|
763
|
+
default:
|
|
764
|
+
let u = options.readUnknownField;
|
|
765
|
+
if (u === "throw")
|
|
766
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
767
|
+
let d = reader.skip(wireType);
|
|
768
|
+
if (u !== false)
|
|
769
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
return message;
|
|
773
|
+
}
|
|
774
|
+
internalBinaryWrite(message: RFQRequestType, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
775
|
+
/* uint64 rfq_id = 1; */
|
|
776
|
+
if (message.rfqId !== 0n)
|
|
777
|
+
writer.tag(1, WireType.Varint).uint64(message.rfqId);
|
|
778
|
+
/* string market_id = 2; */
|
|
779
|
+
if (message.marketId !== "")
|
|
780
|
+
writer.tag(2, WireType.LengthDelimited).string(message.marketId);
|
|
781
|
+
/* string direction = 3; */
|
|
782
|
+
if (message.direction !== "")
|
|
783
|
+
writer.tag(3, WireType.LengthDelimited).string(message.direction);
|
|
784
|
+
/* string margin = 4; */
|
|
785
|
+
if (message.margin !== "")
|
|
786
|
+
writer.tag(4, WireType.LengthDelimited).string(message.margin);
|
|
787
|
+
/* string quantity = 5; */
|
|
788
|
+
if (message.quantity !== "")
|
|
789
|
+
writer.tag(5, WireType.LengthDelimited).string(message.quantity);
|
|
790
|
+
/* string worst_price = 6; */
|
|
791
|
+
if (message.worstPrice !== "")
|
|
792
|
+
writer.tag(6, WireType.LengthDelimited).string(message.worstPrice);
|
|
793
|
+
/* string request_address = 7; */
|
|
794
|
+
if (message.requestAddress !== "")
|
|
795
|
+
writer.tag(7, WireType.LengthDelimited).string(message.requestAddress);
|
|
796
|
+
/* uint64 expiry = 8; */
|
|
797
|
+
if (message.expiry !== 0n)
|
|
798
|
+
writer.tag(8, WireType.Varint).uint64(message.expiry);
|
|
799
|
+
/* string status = 9; */
|
|
800
|
+
if (message.status !== "")
|
|
801
|
+
writer.tag(9, WireType.LengthDelimited).string(message.status);
|
|
802
|
+
/* sint64 created_at = 10; */
|
|
803
|
+
if (message.createdAt !== 0n)
|
|
804
|
+
writer.tag(10, WireType.Varint).sint64(message.createdAt);
|
|
805
|
+
/* sint64 updated_at = 11; */
|
|
806
|
+
if (message.updatedAt !== 0n)
|
|
807
|
+
writer.tag(11, WireType.Varint).sint64(message.updatedAt);
|
|
808
|
+
/* uint64 transaction_time = 12; */
|
|
809
|
+
if (message.transactionTime !== 0n)
|
|
810
|
+
writer.tag(12, WireType.Varint).uint64(message.transactionTime);
|
|
811
|
+
/* uint64 height = 13; */
|
|
812
|
+
if (message.height !== 0n)
|
|
813
|
+
writer.tag(13, WireType.Varint).uint64(message.height);
|
|
814
|
+
let u = options.writeUnknownFields;
|
|
815
|
+
if (u !== false)
|
|
816
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
817
|
+
return writer;
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
/**
|
|
821
|
+
* @generated MessageType for protobuf message injective_rfqrpc.RFQRequestType
|
|
822
|
+
*/
|
|
823
|
+
export const RFQRequestType = new RFQRequestType$Type();
|
|
824
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
825
|
+
class RequestResponse$Type extends MessageType<RequestResponse> {
|
|
826
|
+
constructor() {
|
|
827
|
+
super("injective_rfqrpc.RequestResponse", [
|
|
828
|
+
{ no: 1, name: "status", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
829
|
+
]);
|
|
830
|
+
}
|
|
831
|
+
create(value?: PartialMessage<RequestResponse>): RequestResponse {
|
|
832
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
833
|
+
message.status = "";
|
|
834
|
+
if (value !== undefined)
|
|
835
|
+
reflectionMergePartial<RequestResponse>(this, message, value);
|
|
836
|
+
return message;
|
|
837
|
+
}
|
|
838
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RequestResponse): RequestResponse {
|
|
839
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
840
|
+
while (reader.pos < end) {
|
|
841
|
+
let [fieldNo, wireType] = reader.tag();
|
|
842
|
+
switch (fieldNo) {
|
|
843
|
+
case /* string status */ 1:
|
|
844
|
+
message.status = reader.string();
|
|
845
|
+
break;
|
|
846
|
+
default:
|
|
847
|
+
let u = options.readUnknownField;
|
|
848
|
+
if (u === "throw")
|
|
849
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
850
|
+
let d = reader.skip(wireType);
|
|
851
|
+
if (u !== false)
|
|
852
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
return message;
|
|
856
|
+
}
|
|
857
|
+
internalBinaryWrite(message: RequestResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
858
|
+
/* string status = 1; */
|
|
859
|
+
if (message.status !== "")
|
|
860
|
+
writer.tag(1, WireType.LengthDelimited).string(message.status);
|
|
861
|
+
let u = options.writeUnknownFields;
|
|
862
|
+
if (u !== false)
|
|
863
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
864
|
+
return writer;
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
/**
|
|
868
|
+
* @generated MessageType for protobuf message injective_rfqrpc.RequestResponse
|
|
869
|
+
*/
|
|
870
|
+
export const RequestResponse = new RequestResponse$Type();
|
|
871
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
872
|
+
class StreamRequestRequest$Type extends MessageType<StreamRequestRequest> {
|
|
873
|
+
constructor() {
|
|
874
|
+
super("injective_rfqrpc.StreamRequestRequest", [
|
|
875
|
+
{ no: 1, name: "market_ids", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
876
|
+
]);
|
|
877
|
+
}
|
|
878
|
+
create(value?: PartialMessage<StreamRequestRequest>): StreamRequestRequest {
|
|
879
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
880
|
+
message.marketIds = [];
|
|
881
|
+
if (value !== undefined)
|
|
882
|
+
reflectionMergePartial<StreamRequestRequest>(this, message, value);
|
|
883
|
+
return message;
|
|
884
|
+
}
|
|
885
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamRequestRequest): StreamRequestRequest {
|
|
886
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
887
|
+
while (reader.pos < end) {
|
|
888
|
+
let [fieldNo, wireType] = reader.tag();
|
|
889
|
+
switch (fieldNo) {
|
|
890
|
+
case /* repeated string market_ids */ 1:
|
|
891
|
+
message.marketIds.push(reader.string());
|
|
892
|
+
break;
|
|
893
|
+
default:
|
|
894
|
+
let u = options.readUnknownField;
|
|
895
|
+
if (u === "throw")
|
|
896
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
897
|
+
let d = reader.skip(wireType);
|
|
898
|
+
if (u !== false)
|
|
899
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
return message;
|
|
903
|
+
}
|
|
904
|
+
internalBinaryWrite(message: StreamRequestRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
905
|
+
/* repeated string market_ids = 1; */
|
|
906
|
+
for (let i = 0; i < message.marketIds.length; i++)
|
|
907
|
+
writer.tag(1, WireType.LengthDelimited).string(message.marketIds[i]);
|
|
908
|
+
let u = options.writeUnknownFields;
|
|
909
|
+
if (u !== false)
|
|
910
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
911
|
+
return writer;
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
/**
|
|
915
|
+
* @generated MessageType for protobuf message injective_rfqrpc.StreamRequestRequest
|
|
916
|
+
*/
|
|
917
|
+
export const StreamRequestRequest = new StreamRequestRequest$Type();
|
|
918
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
919
|
+
class StreamRequestResponse$Type extends MessageType<StreamRequestResponse> {
|
|
920
|
+
constructor() {
|
|
921
|
+
super("injective_rfqrpc.StreamRequestResponse", [
|
|
922
|
+
{ no: 1, name: "request", kind: "message", T: () => RFQRequestType },
|
|
923
|
+
{ no: 2, name: "stream_operation", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
924
|
+
]);
|
|
925
|
+
}
|
|
926
|
+
create(value?: PartialMessage<StreamRequestResponse>): StreamRequestResponse {
|
|
927
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
928
|
+
message.streamOperation = "";
|
|
929
|
+
if (value !== undefined)
|
|
930
|
+
reflectionMergePartial<StreamRequestResponse>(this, message, value);
|
|
931
|
+
return message;
|
|
932
|
+
}
|
|
933
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamRequestResponse): StreamRequestResponse {
|
|
934
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
935
|
+
while (reader.pos < end) {
|
|
936
|
+
let [fieldNo, wireType] = reader.tag();
|
|
937
|
+
switch (fieldNo) {
|
|
938
|
+
case /* injective_rfqrpc.RFQRequestType request */ 1:
|
|
939
|
+
message.request = RFQRequestType.internalBinaryRead(reader, reader.uint32(), options, message.request);
|
|
940
|
+
break;
|
|
941
|
+
case /* string stream_operation */ 2:
|
|
942
|
+
message.streamOperation = reader.string();
|
|
943
|
+
break;
|
|
944
|
+
default:
|
|
945
|
+
let u = options.readUnknownField;
|
|
946
|
+
if (u === "throw")
|
|
947
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
948
|
+
let d = reader.skip(wireType);
|
|
949
|
+
if (u !== false)
|
|
950
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
return message;
|
|
954
|
+
}
|
|
955
|
+
internalBinaryWrite(message: StreamRequestResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
956
|
+
/* injective_rfqrpc.RFQRequestType request = 1; */
|
|
957
|
+
if (message.request)
|
|
958
|
+
RFQRequestType.internalBinaryWrite(message.request, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
959
|
+
/* string stream_operation = 2; */
|
|
960
|
+
if (message.streamOperation !== "")
|
|
961
|
+
writer.tag(2, WireType.LengthDelimited).string(message.streamOperation);
|
|
962
|
+
let u = options.writeUnknownFields;
|
|
963
|
+
if (u !== false)
|
|
964
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
965
|
+
return writer;
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
/**
|
|
969
|
+
* @generated MessageType for protobuf message injective_rfqrpc.StreamRequestResponse
|
|
970
|
+
*/
|
|
971
|
+
export const StreamRequestResponse = new StreamRequestResponse$Type();
|
|
972
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
973
|
+
class QuoteRequest$Type extends MessageType<QuoteRequest> {
|
|
974
|
+
constructor() {
|
|
975
|
+
super("injective_rfqrpc.QuoteRequest", [
|
|
976
|
+
{ no: 1, name: "quote", kind: "message", T: () => RFQQuoteType }
|
|
977
|
+
]);
|
|
978
|
+
}
|
|
979
|
+
create(value?: PartialMessage<QuoteRequest>): QuoteRequest {
|
|
980
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
981
|
+
if (value !== undefined)
|
|
982
|
+
reflectionMergePartial<QuoteRequest>(this, message, value);
|
|
983
|
+
return message;
|
|
984
|
+
}
|
|
985
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QuoteRequest): QuoteRequest {
|
|
986
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
987
|
+
while (reader.pos < end) {
|
|
988
|
+
let [fieldNo, wireType] = reader.tag();
|
|
989
|
+
switch (fieldNo) {
|
|
990
|
+
case /* injective_rfqrpc.RFQQuoteType quote */ 1:
|
|
991
|
+
message.quote = RFQQuoteType.internalBinaryRead(reader, reader.uint32(), options, message.quote);
|
|
992
|
+
break;
|
|
993
|
+
default:
|
|
994
|
+
let u = options.readUnknownField;
|
|
995
|
+
if (u === "throw")
|
|
996
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
997
|
+
let d = reader.skip(wireType);
|
|
998
|
+
if (u !== false)
|
|
999
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
return message;
|
|
1003
|
+
}
|
|
1004
|
+
internalBinaryWrite(message: QuoteRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1005
|
+
/* injective_rfqrpc.RFQQuoteType quote = 1; */
|
|
1006
|
+
if (message.quote)
|
|
1007
|
+
RFQQuoteType.internalBinaryWrite(message.quote, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1008
|
+
let u = options.writeUnknownFields;
|
|
1009
|
+
if (u !== false)
|
|
1010
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1011
|
+
return writer;
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
/**
|
|
1015
|
+
* @generated MessageType for protobuf message injective_rfqrpc.QuoteRequest
|
|
1016
|
+
*/
|
|
1017
|
+
export const QuoteRequest = new QuoteRequest$Type();
|
|
1018
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1019
|
+
class RFQQuoteType$Type extends MessageType<RFQQuoteType> {
|
|
1020
|
+
constructor() {
|
|
1021
|
+
super("injective_rfqrpc.RFQQuoteType", [
|
|
1022
|
+
{ no: 1, name: "market_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1023
|
+
{ no: 2, name: "rfq_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1024
|
+
{ no: 3, name: "taker_direction", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1025
|
+
{ no: 4, name: "margin", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1026
|
+
{ no: 5, name: "quantity", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1027
|
+
{ no: 6, name: "price", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1028
|
+
{ no: 7, name: "expiry", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1029
|
+
{ no: 8, name: "maker", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1030
|
+
{ no: 9, name: "taker", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1031
|
+
{ no: 10, name: "signature", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1032
|
+
{ no: 11, name: "status", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1033
|
+
{ no: 12, name: "created_at", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1034
|
+
{ no: 13, name: "updated_at", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1035
|
+
{ no: 14, name: "height", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1036
|
+
{ no: 15, name: "event_time", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1037
|
+
{ no: 16, name: "transaction_time", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
1038
|
+
]);
|
|
1039
|
+
}
|
|
1040
|
+
create(value?: PartialMessage<RFQQuoteType>): RFQQuoteType {
|
|
1041
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1042
|
+
message.marketId = "";
|
|
1043
|
+
message.rfqId = 0n;
|
|
1044
|
+
message.takerDirection = "";
|
|
1045
|
+
message.margin = "";
|
|
1046
|
+
message.quantity = "";
|
|
1047
|
+
message.price = "";
|
|
1048
|
+
message.expiry = 0n;
|
|
1049
|
+
message.maker = "";
|
|
1050
|
+
message.taker = "";
|
|
1051
|
+
message.signature = "";
|
|
1052
|
+
message.status = "";
|
|
1053
|
+
message.createdAt = 0n;
|
|
1054
|
+
message.updatedAt = 0n;
|
|
1055
|
+
message.height = 0n;
|
|
1056
|
+
message.eventTime = 0n;
|
|
1057
|
+
message.transactionTime = 0n;
|
|
1058
|
+
if (value !== undefined)
|
|
1059
|
+
reflectionMergePartial<RFQQuoteType>(this, message, value);
|
|
1060
|
+
return message;
|
|
1061
|
+
}
|
|
1062
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RFQQuoteType): RFQQuoteType {
|
|
1063
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1064
|
+
while (reader.pos < end) {
|
|
1065
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1066
|
+
switch (fieldNo) {
|
|
1067
|
+
case /* string market_id */ 1:
|
|
1068
|
+
message.marketId = reader.string();
|
|
1069
|
+
break;
|
|
1070
|
+
case /* uint64 rfq_id */ 2:
|
|
1071
|
+
message.rfqId = reader.uint64().toBigInt();
|
|
1072
|
+
break;
|
|
1073
|
+
case /* string taker_direction */ 3:
|
|
1074
|
+
message.takerDirection = reader.string();
|
|
1075
|
+
break;
|
|
1076
|
+
case /* string margin */ 4:
|
|
1077
|
+
message.margin = reader.string();
|
|
1078
|
+
break;
|
|
1079
|
+
case /* string quantity */ 5:
|
|
1080
|
+
message.quantity = reader.string();
|
|
1081
|
+
break;
|
|
1082
|
+
case /* string price */ 6:
|
|
1083
|
+
message.price = reader.string();
|
|
1084
|
+
break;
|
|
1085
|
+
case /* uint64 expiry */ 7:
|
|
1086
|
+
message.expiry = reader.uint64().toBigInt();
|
|
1087
|
+
break;
|
|
1088
|
+
case /* string maker */ 8:
|
|
1089
|
+
message.maker = reader.string();
|
|
1090
|
+
break;
|
|
1091
|
+
case /* string taker */ 9:
|
|
1092
|
+
message.taker = reader.string();
|
|
1093
|
+
break;
|
|
1094
|
+
case /* string signature */ 10:
|
|
1095
|
+
message.signature = reader.string();
|
|
1096
|
+
break;
|
|
1097
|
+
case /* string status */ 11:
|
|
1098
|
+
message.status = reader.string();
|
|
1099
|
+
break;
|
|
1100
|
+
case /* sint64 created_at */ 12:
|
|
1101
|
+
message.createdAt = reader.sint64().toBigInt();
|
|
1102
|
+
break;
|
|
1103
|
+
case /* sint64 updated_at */ 13:
|
|
1104
|
+
message.updatedAt = reader.sint64().toBigInt();
|
|
1105
|
+
break;
|
|
1106
|
+
case /* uint64 height */ 14:
|
|
1107
|
+
message.height = reader.uint64().toBigInt();
|
|
1108
|
+
break;
|
|
1109
|
+
case /* uint64 event_time */ 15:
|
|
1110
|
+
message.eventTime = reader.uint64().toBigInt();
|
|
1111
|
+
break;
|
|
1112
|
+
case /* uint64 transaction_time */ 16:
|
|
1113
|
+
message.transactionTime = reader.uint64().toBigInt();
|
|
1114
|
+
break;
|
|
1115
|
+
default:
|
|
1116
|
+
let u = options.readUnknownField;
|
|
1117
|
+
if (u === "throw")
|
|
1118
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1119
|
+
let d = reader.skip(wireType);
|
|
1120
|
+
if (u !== false)
|
|
1121
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
return message;
|
|
1125
|
+
}
|
|
1126
|
+
internalBinaryWrite(message: RFQQuoteType, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1127
|
+
/* string market_id = 1; */
|
|
1128
|
+
if (message.marketId !== "")
|
|
1129
|
+
writer.tag(1, WireType.LengthDelimited).string(message.marketId);
|
|
1130
|
+
/* uint64 rfq_id = 2; */
|
|
1131
|
+
if (message.rfqId !== 0n)
|
|
1132
|
+
writer.tag(2, WireType.Varint).uint64(message.rfqId);
|
|
1133
|
+
/* string taker_direction = 3; */
|
|
1134
|
+
if (message.takerDirection !== "")
|
|
1135
|
+
writer.tag(3, WireType.LengthDelimited).string(message.takerDirection);
|
|
1136
|
+
/* string margin = 4; */
|
|
1137
|
+
if (message.margin !== "")
|
|
1138
|
+
writer.tag(4, WireType.LengthDelimited).string(message.margin);
|
|
1139
|
+
/* string quantity = 5; */
|
|
1140
|
+
if (message.quantity !== "")
|
|
1141
|
+
writer.tag(5, WireType.LengthDelimited).string(message.quantity);
|
|
1142
|
+
/* string price = 6; */
|
|
1143
|
+
if (message.price !== "")
|
|
1144
|
+
writer.tag(6, WireType.LengthDelimited).string(message.price);
|
|
1145
|
+
/* uint64 expiry = 7; */
|
|
1146
|
+
if (message.expiry !== 0n)
|
|
1147
|
+
writer.tag(7, WireType.Varint).uint64(message.expiry);
|
|
1148
|
+
/* string maker = 8; */
|
|
1149
|
+
if (message.maker !== "")
|
|
1150
|
+
writer.tag(8, WireType.LengthDelimited).string(message.maker);
|
|
1151
|
+
/* string taker = 9; */
|
|
1152
|
+
if (message.taker !== "")
|
|
1153
|
+
writer.tag(9, WireType.LengthDelimited).string(message.taker);
|
|
1154
|
+
/* string signature = 10; */
|
|
1155
|
+
if (message.signature !== "")
|
|
1156
|
+
writer.tag(10, WireType.LengthDelimited).string(message.signature);
|
|
1157
|
+
/* string status = 11; */
|
|
1158
|
+
if (message.status !== "")
|
|
1159
|
+
writer.tag(11, WireType.LengthDelimited).string(message.status);
|
|
1160
|
+
/* sint64 created_at = 12; */
|
|
1161
|
+
if (message.createdAt !== 0n)
|
|
1162
|
+
writer.tag(12, WireType.Varint).sint64(message.createdAt);
|
|
1163
|
+
/* sint64 updated_at = 13; */
|
|
1164
|
+
if (message.updatedAt !== 0n)
|
|
1165
|
+
writer.tag(13, WireType.Varint).sint64(message.updatedAt);
|
|
1166
|
+
/* uint64 height = 14; */
|
|
1167
|
+
if (message.height !== 0n)
|
|
1168
|
+
writer.tag(14, WireType.Varint).uint64(message.height);
|
|
1169
|
+
/* uint64 event_time = 15; */
|
|
1170
|
+
if (message.eventTime !== 0n)
|
|
1171
|
+
writer.tag(15, WireType.Varint).uint64(message.eventTime);
|
|
1172
|
+
/* uint64 transaction_time = 16; */
|
|
1173
|
+
if (message.transactionTime !== 0n)
|
|
1174
|
+
writer.tag(16, WireType.Varint).uint64(message.transactionTime);
|
|
1175
|
+
let u = options.writeUnknownFields;
|
|
1176
|
+
if (u !== false)
|
|
1177
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1178
|
+
return writer;
|
|
1179
|
+
}
|
|
1180
|
+
}
|
|
1181
|
+
/**
|
|
1182
|
+
* @generated MessageType for protobuf message injective_rfqrpc.RFQQuoteType
|
|
1183
|
+
*/
|
|
1184
|
+
export const RFQQuoteType = new RFQQuoteType$Type();
|
|
1185
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1186
|
+
class QuoteResponse$Type extends MessageType<QuoteResponse> {
|
|
1187
|
+
constructor() {
|
|
1188
|
+
super("injective_rfqrpc.QuoteResponse", [
|
|
1189
|
+
{ no: 1, name: "status", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1190
|
+
]);
|
|
1191
|
+
}
|
|
1192
|
+
create(value?: PartialMessage<QuoteResponse>): QuoteResponse {
|
|
1193
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1194
|
+
message.status = "";
|
|
1195
|
+
if (value !== undefined)
|
|
1196
|
+
reflectionMergePartial<QuoteResponse>(this, message, value);
|
|
1197
|
+
return message;
|
|
1198
|
+
}
|
|
1199
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QuoteResponse): QuoteResponse {
|
|
1200
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1201
|
+
while (reader.pos < end) {
|
|
1202
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1203
|
+
switch (fieldNo) {
|
|
1204
|
+
case /* string status */ 1:
|
|
1205
|
+
message.status = reader.string();
|
|
1206
|
+
break;
|
|
1207
|
+
default:
|
|
1208
|
+
let u = options.readUnknownField;
|
|
1209
|
+
if (u === "throw")
|
|
1210
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1211
|
+
let d = reader.skip(wireType);
|
|
1212
|
+
if (u !== false)
|
|
1213
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
return message;
|
|
1217
|
+
}
|
|
1218
|
+
internalBinaryWrite(message: QuoteResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1219
|
+
/* string status = 1; */
|
|
1220
|
+
if (message.status !== "")
|
|
1221
|
+
writer.tag(1, WireType.LengthDelimited).string(message.status);
|
|
1222
|
+
let u = options.writeUnknownFields;
|
|
1223
|
+
if (u !== false)
|
|
1224
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1225
|
+
return writer;
|
|
1226
|
+
}
|
|
1227
|
+
}
|
|
1228
|
+
/**
|
|
1229
|
+
* @generated MessageType for protobuf message injective_rfqrpc.QuoteResponse
|
|
1230
|
+
*/
|
|
1231
|
+
export const QuoteResponse = new QuoteResponse$Type();
|
|
1232
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1233
|
+
class StreamQuoteRequest$Type extends MessageType<StreamQuoteRequest> {
|
|
1234
|
+
constructor() {
|
|
1235
|
+
super("injective_rfqrpc.StreamQuoteRequest", [
|
|
1236
|
+
{ no: 1, name: "addresses", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
1237
|
+
]);
|
|
1238
|
+
}
|
|
1239
|
+
create(value?: PartialMessage<StreamQuoteRequest>): StreamQuoteRequest {
|
|
1240
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1241
|
+
message.addresses = [];
|
|
1242
|
+
if (value !== undefined)
|
|
1243
|
+
reflectionMergePartial<StreamQuoteRequest>(this, message, value);
|
|
1244
|
+
return message;
|
|
1245
|
+
}
|
|
1246
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamQuoteRequest): StreamQuoteRequest {
|
|
1247
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1248
|
+
while (reader.pos < end) {
|
|
1249
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1250
|
+
switch (fieldNo) {
|
|
1251
|
+
case /* repeated string addresses */ 1:
|
|
1252
|
+
message.addresses.push(reader.string());
|
|
1253
|
+
break;
|
|
1254
|
+
default:
|
|
1255
|
+
let u = options.readUnknownField;
|
|
1256
|
+
if (u === "throw")
|
|
1257
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1258
|
+
let d = reader.skip(wireType);
|
|
1259
|
+
if (u !== false)
|
|
1260
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
return message;
|
|
1264
|
+
}
|
|
1265
|
+
internalBinaryWrite(message: StreamQuoteRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1266
|
+
/* repeated string addresses = 1; */
|
|
1267
|
+
for (let i = 0; i < message.addresses.length; i++)
|
|
1268
|
+
writer.tag(1, WireType.LengthDelimited).string(message.addresses[i]);
|
|
1269
|
+
let u = options.writeUnknownFields;
|
|
1270
|
+
if (u !== false)
|
|
1271
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1272
|
+
return writer;
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
/**
|
|
1276
|
+
* @generated MessageType for protobuf message injective_rfqrpc.StreamQuoteRequest
|
|
1277
|
+
*/
|
|
1278
|
+
export const StreamQuoteRequest = new StreamQuoteRequest$Type();
|
|
1279
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1280
|
+
class StreamQuoteResponse$Type extends MessageType<StreamQuoteResponse> {
|
|
1281
|
+
constructor() {
|
|
1282
|
+
super("injective_rfqrpc.StreamQuoteResponse", [
|
|
1283
|
+
{ no: 1, name: "quote", kind: "message", T: () => RFQQuoteType },
|
|
1284
|
+
{ no: 2, name: "stream_operation", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1285
|
+
]);
|
|
1286
|
+
}
|
|
1287
|
+
create(value?: PartialMessage<StreamQuoteResponse>): StreamQuoteResponse {
|
|
1288
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1289
|
+
message.streamOperation = "";
|
|
1290
|
+
if (value !== undefined)
|
|
1291
|
+
reflectionMergePartial<StreamQuoteResponse>(this, message, value);
|
|
1292
|
+
return message;
|
|
1293
|
+
}
|
|
1294
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamQuoteResponse): StreamQuoteResponse {
|
|
1295
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1296
|
+
while (reader.pos < end) {
|
|
1297
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1298
|
+
switch (fieldNo) {
|
|
1299
|
+
case /* injective_rfqrpc.RFQQuoteType quote */ 1:
|
|
1300
|
+
message.quote = RFQQuoteType.internalBinaryRead(reader, reader.uint32(), options, message.quote);
|
|
1301
|
+
break;
|
|
1302
|
+
case /* string stream_operation */ 2:
|
|
1303
|
+
message.streamOperation = reader.string();
|
|
1304
|
+
break;
|
|
1305
|
+
default:
|
|
1306
|
+
let u = options.readUnknownField;
|
|
1307
|
+
if (u === "throw")
|
|
1308
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1309
|
+
let d = reader.skip(wireType);
|
|
1310
|
+
if (u !== false)
|
|
1311
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1312
|
+
}
|
|
1313
|
+
}
|
|
1314
|
+
return message;
|
|
1315
|
+
}
|
|
1316
|
+
internalBinaryWrite(message: StreamQuoteResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1317
|
+
/* injective_rfqrpc.RFQQuoteType quote = 1; */
|
|
1318
|
+
if (message.quote)
|
|
1319
|
+
RFQQuoteType.internalBinaryWrite(message.quote, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1320
|
+
/* string stream_operation = 2; */
|
|
1321
|
+
if (message.streamOperation !== "")
|
|
1322
|
+
writer.tag(2, WireType.LengthDelimited).string(message.streamOperation);
|
|
1323
|
+
let u = options.writeUnknownFields;
|
|
1324
|
+
if (u !== false)
|
|
1325
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1326
|
+
return writer;
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
/**
|
|
1330
|
+
* @generated MessageType for protobuf message injective_rfqrpc.StreamQuoteResponse
|
|
1331
|
+
*/
|
|
1332
|
+
export const StreamQuoteResponse = new StreamQuoteResponse$Type();
|
|
1333
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1334
|
+
class GetOpenRequestsRequest$Type extends MessageType<GetOpenRequestsRequest> {
|
|
1335
|
+
constructor() {
|
|
1336
|
+
super("injective_rfqrpc.GetOpenRequestsRequest", []);
|
|
1337
|
+
}
|
|
1338
|
+
create(value?: PartialMessage<GetOpenRequestsRequest>): GetOpenRequestsRequest {
|
|
1339
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1340
|
+
if (value !== undefined)
|
|
1341
|
+
reflectionMergePartial<GetOpenRequestsRequest>(this, message, value);
|
|
1342
|
+
return message;
|
|
1343
|
+
}
|
|
1344
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetOpenRequestsRequest): GetOpenRequestsRequest {
|
|
1345
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1346
|
+
while (reader.pos < end) {
|
|
1347
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1348
|
+
switch (fieldNo) {
|
|
1349
|
+
default:
|
|
1350
|
+
let u = options.readUnknownField;
|
|
1351
|
+
if (u === "throw")
|
|
1352
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1353
|
+
let d = reader.skip(wireType);
|
|
1354
|
+
if (u !== false)
|
|
1355
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
return message;
|
|
1359
|
+
}
|
|
1360
|
+
internalBinaryWrite(message: GetOpenRequestsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1361
|
+
let u = options.writeUnknownFields;
|
|
1362
|
+
if (u !== false)
|
|
1363
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1364
|
+
return writer;
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
/**
|
|
1368
|
+
* @generated MessageType for protobuf message injective_rfqrpc.GetOpenRequestsRequest
|
|
1369
|
+
*/
|
|
1370
|
+
export const GetOpenRequestsRequest = new GetOpenRequestsRequest$Type();
|
|
1371
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1372
|
+
class GetOpenRequestsResponse$Type extends MessageType<GetOpenRequestsResponse> {
|
|
1373
|
+
constructor() {
|
|
1374
|
+
super("injective_rfqrpc.GetOpenRequestsResponse", [
|
|
1375
|
+
{ no: 1, name: "requests", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => RFQRequestType }
|
|
1376
|
+
]);
|
|
1377
|
+
}
|
|
1378
|
+
create(value?: PartialMessage<GetOpenRequestsResponse>): GetOpenRequestsResponse {
|
|
1379
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1380
|
+
message.requests = [];
|
|
1381
|
+
if (value !== undefined)
|
|
1382
|
+
reflectionMergePartial<GetOpenRequestsResponse>(this, message, value);
|
|
1383
|
+
return message;
|
|
1384
|
+
}
|
|
1385
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetOpenRequestsResponse): GetOpenRequestsResponse {
|
|
1386
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1387
|
+
while (reader.pos < end) {
|
|
1388
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1389
|
+
switch (fieldNo) {
|
|
1390
|
+
case /* repeated injective_rfqrpc.RFQRequestType requests */ 1:
|
|
1391
|
+
message.requests.push(RFQRequestType.internalBinaryRead(reader, reader.uint32(), options));
|
|
1392
|
+
break;
|
|
1393
|
+
default:
|
|
1394
|
+
let u = options.readUnknownField;
|
|
1395
|
+
if (u === "throw")
|
|
1396
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1397
|
+
let d = reader.skip(wireType);
|
|
1398
|
+
if (u !== false)
|
|
1399
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1400
|
+
}
|
|
1401
|
+
}
|
|
1402
|
+
return message;
|
|
1403
|
+
}
|
|
1404
|
+
internalBinaryWrite(message: GetOpenRequestsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1405
|
+
/* repeated injective_rfqrpc.RFQRequestType requests = 1; */
|
|
1406
|
+
for (let i = 0; i < message.requests.length; i++)
|
|
1407
|
+
RFQRequestType.internalBinaryWrite(message.requests[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1408
|
+
let u = options.writeUnknownFields;
|
|
1409
|
+
if (u !== false)
|
|
1410
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1411
|
+
return writer;
|
|
1412
|
+
}
|
|
1413
|
+
}
|
|
1414
|
+
/**
|
|
1415
|
+
* @generated MessageType for protobuf message injective_rfqrpc.GetOpenRequestsResponse
|
|
1416
|
+
*/
|
|
1417
|
+
export const GetOpenRequestsResponse = new GetOpenRequestsResponse$Type();
|
|
1418
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1419
|
+
class GetPendingQuotesRequest$Type extends MessageType<GetPendingQuotesRequest> {
|
|
1420
|
+
constructor() {
|
|
1421
|
+
super("injective_rfqrpc.GetPendingQuotesRequest", []);
|
|
1422
|
+
}
|
|
1423
|
+
create(value?: PartialMessage<GetPendingQuotesRequest>): GetPendingQuotesRequest {
|
|
1424
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1425
|
+
if (value !== undefined)
|
|
1426
|
+
reflectionMergePartial<GetPendingQuotesRequest>(this, message, value);
|
|
1427
|
+
return message;
|
|
1428
|
+
}
|
|
1429
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetPendingQuotesRequest): GetPendingQuotesRequest {
|
|
1430
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1431
|
+
while (reader.pos < end) {
|
|
1432
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1433
|
+
switch (fieldNo) {
|
|
1434
|
+
default:
|
|
1435
|
+
let u = options.readUnknownField;
|
|
1436
|
+
if (u === "throw")
|
|
1437
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1438
|
+
let d = reader.skip(wireType);
|
|
1439
|
+
if (u !== false)
|
|
1440
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
return message;
|
|
1444
|
+
}
|
|
1445
|
+
internalBinaryWrite(message: GetPendingQuotesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1446
|
+
let u = options.writeUnknownFields;
|
|
1447
|
+
if (u !== false)
|
|
1448
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1449
|
+
return writer;
|
|
1450
|
+
}
|
|
1451
|
+
}
|
|
1452
|
+
/**
|
|
1453
|
+
* @generated MessageType for protobuf message injective_rfqrpc.GetPendingQuotesRequest
|
|
1454
|
+
*/
|
|
1455
|
+
export const GetPendingQuotesRequest = new GetPendingQuotesRequest$Type();
|
|
1456
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1457
|
+
class GetPendingQuotesResponse$Type extends MessageType<GetPendingQuotesResponse> {
|
|
1458
|
+
constructor() {
|
|
1459
|
+
super("injective_rfqrpc.GetPendingQuotesResponse", [
|
|
1460
|
+
{ no: 1, name: "quotes", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => RFQQuoteType }
|
|
1461
|
+
]);
|
|
1462
|
+
}
|
|
1463
|
+
create(value?: PartialMessage<GetPendingQuotesResponse>): GetPendingQuotesResponse {
|
|
1464
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1465
|
+
message.quotes = [];
|
|
1466
|
+
if (value !== undefined)
|
|
1467
|
+
reflectionMergePartial<GetPendingQuotesResponse>(this, message, value);
|
|
1468
|
+
return message;
|
|
1469
|
+
}
|
|
1470
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetPendingQuotesResponse): GetPendingQuotesResponse {
|
|
1471
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1472
|
+
while (reader.pos < end) {
|
|
1473
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1474
|
+
switch (fieldNo) {
|
|
1475
|
+
case /* repeated injective_rfqrpc.RFQQuoteType quotes */ 1:
|
|
1476
|
+
message.quotes.push(RFQQuoteType.internalBinaryRead(reader, reader.uint32(), options));
|
|
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: GetPendingQuotesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1490
|
+
/* repeated injective_rfqrpc.RFQQuoteType quotes = 1; */
|
|
1491
|
+
for (let i = 0; i < message.quotes.length; i++)
|
|
1492
|
+
RFQQuoteType.internalBinaryWrite(message.quotes[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1493
|
+
let u = options.writeUnknownFields;
|
|
1494
|
+
if (u !== false)
|
|
1495
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1496
|
+
return writer;
|
|
1497
|
+
}
|
|
1498
|
+
}
|
|
1499
|
+
/**
|
|
1500
|
+
* @generated MessageType for protobuf message injective_rfqrpc.GetPendingQuotesResponse
|
|
1501
|
+
*/
|
|
1502
|
+
export const GetPendingQuotesResponse = new GetPendingQuotesResponse$Type();
|
|
1503
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1504
|
+
class ListSettlementRequest$Type extends MessageType<ListSettlementRequest> {
|
|
1505
|
+
constructor() {
|
|
1506
|
+
super("injective_rfqrpc.ListSettlementRequest", [
|
|
1507
|
+
{ no: 1, name: "addresses", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
1508
|
+
{ no: 2, name: "skip", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1509
|
+
{ no: 3, name: "limit", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
1510
|
+
]);
|
|
1511
|
+
}
|
|
1512
|
+
create(value?: PartialMessage<ListSettlementRequest>): ListSettlementRequest {
|
|
1513
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1514
|
+
message.addresses = [];
|
|
1515
|
+
message.skip = 0n;
|
|
1516
|
+
message.limit = 0n;
|
|
1517
|
+
if (value !== undefined)
|
|
1518
|
+
reflectionMergePartial<ListSettlementRequest>(this, message, value);
|
|
1519
|
+
return message;
|
|
1520
|
+
}
|
|
1521
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListSettlementRequest): ListSettlementRequest {
|
|
1522
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1523
|
+
while (reader.pos < end) {
|
|
1524
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1525
|
+
switch (fieldNo) {
|
|
1526
|
+
case /* repeated string addresses */ 1:
|
|
1527
|
+
message.addresses.push(reader.string());
|
|
1528
|
+
break;
|
|
1529
|
+
case /* sint64 skip */ 2:
|
|
1530
|
+
message.skip = reader.sint64().toBigInt();
|
|
1531
|
+
break;
|
|
1532
|
+
case /* sint64 limit */ 3:
|
|
1533
|
+
message.limit = reader.sint64().toBigInt();
|
|
1534
|
+
break;
|
|
1535
|
+
default:
|
|
1536
|
+
let u = options.readUnknownField;
|
|
1537
|
+
if (u === "throw")
|
|
1538
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1539
|
+
let d = reader.skip(wireType);
|
|
1540
|
+
if (u !== false)
|
|
1541
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1542
|
+
}
|
|
1543
|
+
}
|
|
1544
|
+
return message;
|
|
1545
|
+
}
|
|
1546
|
+
internalBinaryWrite(message: ListSettlementRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1547
|
+
/* repeated string addresses = 1; */
|
|
1548
|
+
for (let i = 0; i < message.addresses.length; i++)
|
|
1549
|
+
writer.tag(1, WireType.LengthDelimited).string(message.addresses[i]);
|
|
1550
|
+
/* sint64 skip = 2; */
|
|
1551
|
+
if (message.skip !== 0n)
|
|
1552
|
+
writer.tag(2, WireType.Varint).sint64(message.skip);
|
|
1553
|
+
/* sint64 limit = 3; */
|
|
1554
|
+
if (message.limit !== 0n)
|
|
1555
|
+
writer.tag(3, WireType.Varint).sint64(message.limit);
|
|
1556
|
+
let u = options.writeUnknownFields;
|
|
1557
|
+
if (u !== false)
|
|
1558
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1559
|
+
return writer;
|
|
1560
|
+
}
|
|
1561
|
+
}
|
|
1562
|
+
/**
|
|
1563
|
+
* @generated MessageType for protobuf message injective_rfqrpc.ListSettlementRequest
|
|
1564
|
+
*/
|
|
1565
|
+
export const ListSettlementRequest = new ListSettlementRequest$Type();
|
|
1566
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1567
|
+
class ListSettlementResponse$Type extends MessageType<ListSettlementResponse> {
|
|
1568
|
+
constructor() {
|
|
1569
|
+
super("injective_rfqrpc.ListSettlementResponse", [
|
|
1570
|
+
{ no: 1, name: "settlements", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => RFQSettlementType },
|
|
1571
|
+
{ no: 2, name: "total", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
1572
|
+
]);
|
|
1573
|
+
}
|
|
1574
|
+
create(value?: PartialMessage<ListSettlementResponse>): ListSettlementResponse {
|
|
1575
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1576
|
+
message.settlements = [];
|
|
1577
|
+
message.total = 0n;
|
|
1578
|
+
if (value !== undefined)
|
|
1579
|
+
reflectionMergePartial<ListSettlementResponse>(this, message, value);
|
|
1580
|
+
return message;
|
|
1581
|
+
}
|
|
1582
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListSettlementResponse): ListSettlementResponse {
|
|
1583
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1584
|
+
while (reader.pos < end) {
|
|
1585
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1586
|
+
switch (fieldNo) {
|
|
1587
|
+
case /* repeated injective_rfqrpc.RFQSettlementType settlements */ 1:
|
|
1588
|
+
message.settlements.push(RFQSettlementType.internalBinaryRead(reader, reader.uint32(), options));
|
|
1589
|
+
break;
|
|
1590
|
+
case /* sint64 total */ 2:
|
|
1591
|
+
message.total = reader.sint64().toBigInt();
|
|
1592
|
+
break;
|
|
1593
|
+
default:
|
|
1594
|
+
let u = options.readUnknownField;
|
|
1595
|
+
if (u === "throw")
|
|
1596
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1597
|
+
let d = reader.skip(wireType);
|
|
1598
|
+
if (u !== false)
|
|
1599
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1602
|
+
return message;
|
|
1603
|
+
}
|
|
1604
|
+
internalBinaryWrite(message: ListSettlementResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1605
|
+
/* repeated injective_rfqrpc.RFQSettlementType settlements = 1; */
|
|
1606
|
+
for (let i = 0; i < message.settlements.length; i++)
|
|
1607
|
+
RFQSettlementType.internalBinaryWrite(message.settlements[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1608
|
+
/* sint64 total = 2; */
|
|
1609
|
+
if (message.total !== 0n)
|
|
1610
|
+
writer.tag(2, WireType.Varint).sint64(message.total);
|
|
1611
|
+
let u = options.writeUnknownFields;
|
|
1612
|
+
if (u !== false)
|
|
1613
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1614
|
+
return writer;
|
|
1615
|
+
}
|
|
1616
|
+
}
|
|
1617
|
+
/**
|
|
1618
|
+
* @generated MessageType for protobuf message injective_rfqrpc.ListSettlementResponse
|
|
1619
|
+
*/
|
|
1620
|
+
export const ListSettlementResponse = new ListSettlementResponse$Type();
|
|
1621
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1622
|
+
class RFQSettlementType$Type extends MessageType<RFQSettlementType> {
|
|
1623
|
+
constructor() {
|
|
1624
|
+
super("injective_rfqrpc.RFQSettlementType", [
|
|
1625
|
+
{ no: 1, name: "rfq_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1626
|
+
{ no: 2, name: "market_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1627
|
+
{ no: 3, name: "taker", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1628
|
+
{ no: 4, name: "direction", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1629
|
+
{ no: 5, name: "margin", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1630
|
+
{ no: 6, name: "quantity", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1631
|
+
{ no: 7, name: "worst_price", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1632
|
+
{ no: 8, name: "maker", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1633
|
+
{ no: 9, name: "price", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1634
|
+
{ no: 10, name: "created_at", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1635
|
+
{ no: 11, name: "event_time", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1636
|
+
{ no: 12, name: "height", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
1637
|
+
]);
|
|
1638
|
+
}
|
|
1639
|
+
create(value?: PartialMessage<RFQSettlementType>): RFQSettlementType {
|
|
1640
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1641
|
+
message.rfqId = 0n;
|
|
1642
|
+
message.marketId = "";
|
|
1643
|
+
message.taker = "";
|
|
1644
|
+
message.direction = "";
|
|
1645
|
+
message.margin = "";
|
|
1646
|
+
message.quantity = "";
|
|
1647
|
+
message.worstPrice = "";
|
|
1648
|
+
message.maker = "";
|
|
1649
|
+
message.price = "";
|
|
1650
|
+
message.createdAt = 0n;
|
|
1651
|
+
message.eventTime = 0n;
|
|
1652
|
+
message.height = 0n;
|
|
1653
|
+
if (value !== undefined)
|
|
1654
|
+
reflectionMergePartial<RFQSettlementType>(this, message, value);
|
|
1655
|
+
return message;
|
|
1656
|
+
}
|
|
1657
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RFQSettlementType): RFQSettlementType {
|
|
1658
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1659
|
+
while (reader.pos < end) {
|
|
1660
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1661
|
+
switch (fieldNo) {
|
|
1662
|
+
case /* uint64 rfq_id */ 1:
|
|
1663
|
+
message.rfqId = reader.uint64().toBigInt();
|
|
1664
|
+
break;
|
|
1665
|
+
case /* string market_id */ 2:
|
|
1666
|
+
message.marketId = reader.string();
|
|
1667
|
+
break;
|
|
1668
|
+
case /* string taker */ 3:
|
|
1669
|
+
message.taker = reader.string();
|
|
1670
|
+
break;
|
|
1671
|
+
case /* string direction */ 4:
|
|
1672
|
+
message.direction = reader.string();
|
|
1673
|
+
break;
|
|
1674
|
+
case /* string margin */ 5:
|
|
1675
|
+
message.margin = reader.string();
|
|
1676
|
+
break;
|
|
1677
|
+
case /* string quantity */ 6:
|
|
1678
|
+
message.quantity = reader.string();
|
|
1679
|
+
break;
|
|
1680
|
+
case /* string worst_price */ 7:
|
|
1681
|
+
message.worstPrice = reader.string();
|
|
1682
|
+
break;
|
|
1683
|
+
case /* string maker */ 8:
|
|
1684
|
+
message.maker = reader.string();
|
|
1685
|
+
break;
|
|
1686
|
+
case /* string price */ 9:
|
|
1687
|
+
message.price = reader.string();
|
|
1688
|
+
break;
|
|
1689
|
+
case /* sint64 created_at */ 10:
|
|
1690
|
+
message.createdAt = reader.sint64().toBigInt();
|
|
1691
|
+
break;
|
|
1692
|
+
case /* uint64 event_time */ 11:
|
|
1693
|
+
message.eventTime = reader.uint64().toBigInt();
|
|
1694
|
+
break;
|
|
1695
|
+
case /* uint64 height */ 12:
|
|
1696
|
+
message.height = reader.uint64().toBigInt();
|
|
1697
|
+
break;
|
|
1698
|
+
default:
|
|
1699
|
+
let u = options.readUnknownField;
|
|
1700
|
+
if (u === "throw")
|
|
1701
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1702
|
+
let d = reader.skip(wireType);
|
|
1703
|
+
if (u !== false)
|
|
1704
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1705
|
+
}
|
|
1706
|
+
}
|
|
1707
|
+
return message;
|
|
1708
|
+
}
|
|
1709
|
+
internalBinaryWrite(message: RFQSettlementType, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1710
|
+
/* uint64 rfq_id = 1; */
|
|
1711
|
+
if (message.rfqId !== 0n)
|
|
1712
|
+
writer.tag(1, WireType.Varint).uint64(message.rfqId);
|
|
1713
|
+
/* string market_id = 2; */
|
|
1714
|
+
if (message.marketId !== "")
|
|
1715
|
+
writer.tag(2, WireType.LengthDelimited).string(message.marketId);
|
|
1716
|
+
/* string taker = 3; */
|
|
1717
|
+
if (message.taker !== "")
|
|
1718
|
+
writer.tag(3, WireType.LengthDelimited).string(message.taker);
|
|
1719
|
+
/* string direction = 4; */
|
|
1720
|
+
if (message.direction !== "")
|
|
1721
|
+
writer.tag(4, WireType.LengthDelimited).string(message.direction);
|
|
1722
|
+
/* string margin = 5; */
|
|
1723
|
+
if (message.margin !== "")
|
|
1724
|
+
writer.tag(5, WireType.LengthDelimited).string(message.margin);
|
|
1725
|
+
/* string quantity = 6; */
|
|
1726
|
+
if (message.quantity !== "")
|
|
1727
|
+
writer.tag(6, WireType.LengthDelimited).string(message.quantity);
|
|
1728
|
+
/* string worst_price = 7; */
|
|
1729
|
+
if (message.worstPrice !== "")
|
|
1730
|
+
writer.tag(7, WireType.LengthDelimited).string(message.worstPrice);
|
|
1731
|
+
/* string maker = 8; */
|
|
1732
|
+
if (message.maker !== "")
|
|
1733
|
+
writer.tag(8, WireType.LengthDelimited).string(message.maker);
|
|
1734
|
+
/* string price = 9; */
|
|
1735
|
+
if (message.price !== "")
|
|
1736
|
+
writer.tag(9, WireType.LengthDelimited).string(message.price);
|
|
1737
|
+
/* sint64 created_at = 10; */
|
|
1738
|
+
if (message.createdAt !== 0n)
|
|
1739
|
+
writer.tag(10, WireType.Varint).sint64(message.createdAt);
|
|
1740
|
+
/* uint64 event_time = 11; */
|
|
1741
|
+
if (message.eventTime !== 0n)
|
|
1742
|
+
writer.tag(11, WireType.Varint).uint64(message.eventTime);
|
|
1743
|
+
/* uint64 height = 12; */
|
|
1744
|
+
if (message.height !== 0n)
|
|
1745
|
+
writer.tag(12, WireType.Varint).uint64(message.height);
|
|
1746
|
+
let u = options.writeUnknownFields;
|
|
1747
|
+
if (u !== false)
|
|
1748
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1749
|
+
return writer;
|
|
1750
|
+
}
|
|
1751
|
+
}
|
|
1752
|
+
/**
|
|
1753
|
+
* @generated MessageType for protobuf message injective_rfqrpc.RFQSettlementType
|
|
1754
|
+
*/
|
|
1755
|
+
export const RFQSettlementType = new RFQSettlementType$Type();
|
|
1756
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1757
|
+
class StreamSettlementRequest$Type extends MessageType<StreamSettlementRequest> {
|
|
1758
|
+
constructor() {
|
|
1759
|
+
super("injective_rfqrpc.StreamSettlementRequest", [
|
|
1760
|
+
{ no: 1, name: "addresses", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
1761
|
+
]);
|
|
1762
|
+
}
|
|
1763
|
+
create(value?: PartialMessage<StreamSettlementRequest>): StreamSettlementRequest {
|
|
1764
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1765
|
+
message.addresses = [];
|
|
1766
|
+
if (value !== undefined)
|
|
1767
|
+
reflectionMergePartial<StreamSettlementRequest>(this, message, value);
|
|
1768
|
+
return message;
|
|
1769
|
+
}
|
|
1770
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamSettlementRequest): StreamSettlementRequest {
|
|
1771
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1772
|
+
while (reader.pos < end) {
|
|
1773
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1774
|
+
switch (fieldNo) {
|
|
1775
|
+
case /* repeated string addresses */ 1:
|
|
1776
|
+
message.addresses.push(reader.string());
|
|
1777
|
+
break;
|
|
1778
|
+
default:
|
|
1779
|
+
let u = options.readUnknownField;
|
|
1780
|
+
if (u === "throw")
|
|
1781
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1782
|
+
let d = reader.skip(wireType);
|
|
1783
|
+
if (u !== false)
|
|
1784
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1787
|
+
return message;
|
|
1788
|
+
}
|
|
1789
|
+
internalBinaryWrite(message: StreamSettlementRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1790
|
+
/* repeated string addresses = 1; */
|
|
1791
|
+
for (let i = 0; i < message.addresses.length; i++)
|
|
1792
|
+
writer.tag(1, WireType.LengthDelimited).string(message.addresses[i]);
|
|
1793
|
+
let u = options.writeUnknownFields;
|
|
1794
|
+
if (u !== false)
|
|
1795
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1796
|
+
return writer;
|
|
1797
|
+
}
|
|
1798
|
+
}
|
|
1799
|
+
/**
|
|
1800
|
+
* @generated MessageType for protobuf message injective_rfqrpc.StreamSettlementRequest
|
|
1801
|
+
*/
|
|
1802
|
+
export const StreamSettlementRequest = new StreamSettlementRequest$Type();
|
|
1803
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1804
|
+
class StreamSettlementResponse$Type extends MessageType<StreamSettlementResponse> {
|
|
1805
|
+
constructor() {
|
|
1806
|
+
super("injective_rfqrpc.StreamSettlementResponse", [
|
|
1807
|
+
{ no: 1, name: "settlement", kind: "message", T: () => RFQSettlementType },
|
|
1808
|
+
{ no: 2, name: "stream_operation", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1809
|
+
]);
|
|
1810
|
+
}
|
|
1811
|
+
create(value?: PartialMessage<StreamSettlementResponse>): StreamSettlementResponse {
|
|
1812
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1813
|
+
message.streamOperation = "";
|
|
1814
|
+
if (value !== undefined)
|
|
1815
|
+
reflectionMergePartial<StreamSettlementResponse>(this, message, value);
|
|
1816
|
+
return message;
|
|
1817
|
+
}
|
|
1818
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamSettlementResponse): StreamSettlementResponse {
|
|
1819
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1820
|
+
while (reader.pos < end) {
|
|
1821
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1822
|
+
switch (fieldNo) {
|
|
1823
|
+
case /* injective_rfqrpc.RFQSettlementType settlement */ 1:
|
|
1824
|
+
message.settlement = RFQSettlementType.internalBinaryRead(reader, reader.uint32(), options, message.settlement);
|
|
1825
|
+
break;
|
|
1826
|
+
case /* string stream_operation */ 2:
|
|
1827
|
+
message.streamOperation = reader.string();
|
|
1828
|
+
break;
|
|
1829
|
+
default:
|
|
1830
|
+
let u = options.readUnknownField;
|
|
1831
|
+
if (u === "throw")
|
|
1832
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1833
|
+
let d = reader.skip(wireType);
|
|
1834
|
+
if (u !== false)
|
|
1835
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1836
|
+
}
|
|
1837
|
+
}
|
|
1838
|
+
return message;
|
|
1839
|
+
}
|
|
1840
|
+
internalBinaryWrite(message: StreamSettlementResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1841
|
+
/* injective_rfqrpc.RFQSettlementType settlement = 1; */
|
|
1842
|
+
if (message.settlement)
|
|
1843
|
+
RFQSettlementType.internalBinaryWrite(message.settlement, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1844
|
+
/* string stream_operation = 2; */
|
|
1845
|
+
if (message.streamOperation !== "")
|
|
1846
|
+
writer.tag(2, WireType.LengthDelimited).string(message.streamOperation);
|
|
1847
|
+
let u = options.writeUnknownFields;
|
|
1848
|
+
if (u !== false)
|
|
1849
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1850
|
+
return writer;
|
|
1851
|
+
}
|
|
1852
|
+
}
|
|
1853
|
+
/**
|
|
1854
|
+
* @generated MessageType for protobuf message injective_rfqrpc.StreamSettlementResponse
|
|
1855
|
+
*/
|
|
1856
|
+
export const StreamSettlementResponse = new StreamSettlementResponse$Type();
|
|
1857
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1858
|
+
class TakerStreamStreamingRequest$Type extends MessageType<TakerStreamStreamingRequest> {
|
|
1859
|
+
constructor() {
|
|
1860
|
+
super("injective_rfqrpc.TakerStreamStreamingRequest", [
|
|
1861
|
+
{ no: 1, name: "message_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1862
|
+
{ no: 2, name: "request", kind: "message", T: () => RFQRequestType }
|
|
1863
|
+
]);
|
|
1864
|
+
}
|
|
1865
|
+
create(value?: PartialMessage<TakerStreamStreamingRequest>): TakerStreamStreamingRequest {
|
|
1866
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1867
|
+
message.messageType = "";
|
|
1868
|
+
if (value !== undefined)
|
|
1869
|
+
reflectionMergePartial<TakerStreamStreamingRequest>(this, message, value);
|
|
1870
|
+
return message;
|
|
1871
|
+
}
|
|
1872
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TakerStreamStreamingRequest): TakerStreamStreamingRequest {
|
|
1873
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1874
|
+
while (reader.pos < end) {
|
|
1875
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1876
|
+
switch (fieldNo) {
|
|
1877
|
+
case /* string message_type */ 1:
|
|
1878
|
+
message.messageType = reader.string();
|
|
1879
|
+
break;
|
|
1880
|
+
case /* injective_rfqrpc.RFQRequestType request */ 2:
|
|
1881
|
+
message.request = RFQRequestType.internalBinaryRead(reader, reader.uint32(), options, message.request);
|
|
1882
|
+
break;
|
|
1883
|
+
default:
|
|
1884
|
+
let u = options.readUnknownField;
|
|
1885
|
+
if (u === "throw")
|
|
1886
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1887
|
+
let d = reader.skip(wireType);
|
|
1888
|
+
if (u !== false)
|
|
1889
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1890
|
+
}
|
|
1891
|
+
}
|
|
1892
|
+
return message;
|
|
1893
|
+
}
|
|
1894
|
+
internalBinaryWrite(message: TakerStreamStreamingRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1895
|
+
/* string message_type = 1; */
|
|
1896
|
+
if (message.messageType !== "")
|
|
1897
|
+
writer.tag(1, WireType.LengthDelimited).string(message.messageType);
|
|
1898
|
+
/* injective_rfqrpc.RFQRequestType request = 2; */
|
|
1899
|
+
if (message.request)
|
|
1900
|
+
RFQRequestType.internalBinaryWrite(message.request, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1901
|
+
let u = options.writeUnknownFields;
|
|
1902
|
+
if (u !== false)
|
|
1903
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1904
|
+
return writer;
|
|
1905
|
+
}
|
|
1906
|
+
}
|
|
1907
|
+
/**
|
|
1908
|
+
* @generated MessageType for protobuf message injective_rfqrpc.TakerStreamStreamingRequest
|
|
1909
|
+
*/
|
|
1910
|
+
export const TakerStreamStreamingRequest = new TakerStreamStreamingRequest$Type();
|
|
1911
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1912
|
+
class TakerStreamResponse$Type extends MessageType<TakerStreamResponse> {
|
|
1913
|
+
constructor() {
|
|
1914
|
+
super("injective_rfqrpc.TakerStreamResponse", [
|
|
1915
|
+
{ no: 1, name: "message_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1916
|
+
{ no: 2, name: "quote", kind: "message", T: () => RFQQuoteType },
|
|
1917
|
+
{ no: 3, name: "request_ack", kind: "message", T: () => StreamAck },
|
|
1918
|
+
{ no: 4, name: "error", kind: "message", T: () => StreamError },
|
|
1919
|
+
{ no: 5, name: "stream_operation", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1920
|
+
]);
|
|
1921
|
+
}
|
|
1922
|
+
create(value?: PartialMessage<TakerStreamResponse>): TakerStreamResponse {
|
|
1923
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1924
|
+
message.messageType = "";
|
|
1925
|
+
message.streamOperation = "";
|
|
1926
|
+
if (value !== undefined)
|
|
1927
|
+
reflectionMergePartial<TakerStreamResponse>(this, message, value);
|
|
1928
|
+
return message;
|
|
1929
|
+
}
|
|
1930
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TakerStreamResponse): TakerStreamResponse {
|
|
1931
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1932
|
+
while (reader.pos < end) {
|
|
1933
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1934
|
+
switch (fieldNo) {
|
|
1935
|
+
case /* string message_type */ 1:
|
|
1936
|
+
message.messageType = reader.string();
|
|
1937
|
+
break;
|
|
1938
|
+
case /* injective_rfqrpc.RFQQuoteType quote */ 2:
|
|
1939
|
+
message.quote = RFQQuoteType.internalBinaryRead(reader, reader.uint32(), options, message.quote);
|
|
1940
|
+
break;
|
|
1941
|
+
case /* injective_rfqrpc.StreamAck request_ack */ 3:
|
|
1942
|
+
message.requestAck = StreamAck.internalBinaryRead(reader, reader.uint32(), options, message.requestAck);
|
|
1943
|
+
break;
|
|
1944
|
+
case /* injective_rfqrpc.StreamError error */ 4:
|
|
1945
|
+
message.error = StreamError.internalBinaryRead(reader, reader.uint32(), options, message.error);
|
|
1946
|
+
break;
|
|
1947
|
+
case /* string stream_operation */ 5:
|
|
1948
|
+
message.streamOperation = reader.string();
|
|
1949
|
+
break;
|
|
1950
|
+
default:
|
|
1951
|
+
let u = options.readUnknownField;
|
|
1952
|
+
if (u === "throw")
|
|
1953
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1954
|
+
let d = reader.skip(wireType);
|
|
1955
|
+
if (u !== false)
|
|
1956
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1957
|
+
}
|
|
1958
|
+
}
|
|
1959
|
+
return message;
|
|
1960
|
+
}
|
|
1961
|
+
internalBinaryWrite(message: TakerStreamResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1962
|
+
/* string message_type = 1; */
|
|
1963
|
+
if (message.messageType !== "")
|
|
1964
|
+
writer.tag(1, WireType.LengthDelimited).string(message.messageType);
|
|
1965
|
+
/* injective_rfqrpc.RFQQuoteType quote = 2; */
|
|
1966
|
+
if (message.quote)
|
|
1967
|
+
RFQQuoteType.internalBinaryWrite(message.quote, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1968
|
+
/* injective_rfqrpc.StreamAck request_ack = 3; */
|
|
1969
|
+
if (message.requestAck)
|
|
1970
|
+
StreamAck.internalBinaryWrite(message.requestAck, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
1971
|
+
/* injective_rfqrpc.StreamError error = 4; */
|
|
1972
|
+
if (message.error)
|
|
1973
|
+
StreamError.internalBinaryWrite(message.error, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
1974
|
+
/* string stream_operation = 5; */
|
|
1975
|
+
if (message.streamOperation !== "")
|
|
1976
|
+
writer.tag(5, WireType.LengthDelimited).string(message.streamOperation);
|
|
1977
|
+
let u = options.writeUnknownFields;
|
|
1978
|
+
if (u !== false)
|
|
1979
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1980
|
+
return writer;
|
|
1981
|
+
}
|
|
1982
|
+
}
|
|
1983
|
+
/**
|
|
1984
|
+
* @generated MessageType for protobuf message injective_rfqrpc.TakerStreamResponse
|
|
1985
|
+
*/
|
|
1986
|
+
export const TakerStreamResponse = new TakerStreamResponse$Type();
|
|
1987
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1988
|
+
class StreamAck$Type extends MessageType<StreamAck> {
|
|
1989
|
+
constructor() {
|
|
1990
|
+
super("injective_rfqrpc.StreamAck", [
|
|
1991
|
+
{ no: 1, name: "rfq_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1992
|
+
{ no: 2, name: "status", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1993
|
+
]);
|
|
1994
|
+
}
|
|
1995
|
+
create(value?: PartialMessage<StreamAck>): StreamAck {
|
|
1996
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1997
|
+
message.rfqId = 0n;
|
|
1998
|
+
message.status = "";
|
|
1999
|
+
if (value !== undefined)
|
|
2000
|
+
reflectionMergePartial<StreamAck>(this, message, value);
|
|
2001
|
+
return message;
|
|
2002
|
+
}
|
|
2003
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamAck): StreamAck {
|
|
2004
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2005
|
+
while (reader.pos < end) {
|
|
2006
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2007
|
+
switch (fieldNo) {
|
|
2008
|
+
case /* uint64 rfq_id */ 1:
|
|
2009
|
+
message.rfqId = reader.uint64().toBigInt();
|
|
2010
|
+
break;
|
|
2011
|
+
case /* string status */ 2:
|
|
2012
|
+
message.status = reader.string();
|
|
2013
|
+
break;
|
|
2014
|
+
default:
|
|
2015
|
+
let u = options.readUnknownField;
|
|
2016
|
+
if (u === "throw")
|
|
2017
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2018
|
+
let d = reader.skip(wireType);
|
|
2019
|
+
if (u !== false)
|
|
2020
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2021
|
+
}
|
|
2022
|
+
}
|
|
2023
|
+
return message;
|
|
2024
|
+
}
|
|
2025
|
+
internalBinaryWrite(message: StreamAck, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2026
|
+
/* uint64 rfq_id = 1; */
|
|
2027
|
+
if (message.rfqId !== 0n)
|
|
2028
|
+
writer.tag(1, WireType.Varint).uint64(message.rfqId);
|
|
2029
|
+
/* string status = 2; */
|
|
2030
|
+
if (message.status !== "")
|
|
2031
|
+
writer.tag(2, WireType.LengthDelimited).string(message.status);
|
|
2032
|
+
let u = options.writeUnknownFields;
|
|
2033
|
+
if (u !== false)
|
|
2034
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2035
|
+
return writer;
|
|
2036
|
+
}
|
|
2037
|
+
}
|
|
2038
|
+
/**
|
|
2039
|
+
* @generated MessageType for protobuf message injective_rfqrpc.StreamAck
|
|
2040
|
+
*/
|
|
2041
|
+
export const StreamAck = new StreamAck$Type();
|
|
2042
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2043
|
+
class StreamError$Type extends MessageType<StreamError> {
|
|
2044
|
+
constructor() {
|
|
2045
|
+
super("injective_rfqrpc.StreamError", [
|
|
2046
|
+
{ no: 1, name: "code", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2047
|
+
{ no: 2, name: "message_", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2048
|
+
]);
|
|
2049
|
+
}
|
|
2050
|
+
create(value?: PartialMessage<StreamError>): StreamError {
|
|
2051
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2052
|
+
message.code = "";
|
|
2053
|
+
message.message = "";
|
|
2054
|
+
if (value !== undefined)
|
|
2055
|
+
reflectionMergePartial<StreamError>(this, message, value);
|
|
2056
|
+
return message;
|
|
2057
|
+
}
|
|
2058
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamError): StreamError {
|
|
2059
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2060
|
+
while (reader.pos < end) {
|
|
2061
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2062
|
+
switch (fieldNo) {
|
|
2063
|
+
case /* string code */ 1:
|
|
2064
|
+
message.code = reader.string();
|
|
2065
|
+
break;
|
|
2066
|
+
case /* string message_ */ 2:
|
|
2067
|
+
message.message = reader.string();
|
|
2068
|
+
break;
|
|
2069
|
+
default:
|
|
2070
|
+
let u = options.readUnknownField;
|
|
2071
|
+
if (u === "throw")
|
|
2072
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2073
|
+
let d = reader.skip(wireType);
|
|
2074
|
+
if (u !== false)
|
|
2075
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2076
|
+
}
|
|
2077
|
+
}
|
|
2078
|
+
return message;
|
|
2079
|
+
}
|
|
2080
|
+
internalBinaryWrite(message: StreamError, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2081
|
+
/* string code = 1; */
|
|
2082
|
+
if (message.code !== "")
|
|
2083
|
+
writer.tag(1, WireType.LengthDelimited).string(message.code);
|
|
2084
|
+
/* string message_ = 2; */
|
|
2085
|
+
if (message.message !== "")
|
|
2086
|
+
writer.tag(2, WireType.LengthDelimited).string(message.message);
|
|
2087
|
+
let u = options.writeUnknownFields;
|
|
2088
|
+
if (u !== false)
|
|
2089
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2090
|
+
return writer;
|
|
2091
|
+
}
|
|
2092
|
+
}
|
|
2093
|
+
/**
|
|
2094
|
+
* @generated MessageType for protobuf message injective_rfqrpc.StreamError
|
|
2095
|
+
*/
|
|
2096
|
+
export const StreamError = new StreamError$Type();
|
|
2097
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2098
|
+
class MakerStreamStreamingRequest$Type extends MessageType<MakerStreamStreamingRequest> {
|
|
2099
|
+
constructor() {
|
|
2100
|
+
super("injective_rfqrpc.MakerStreamStreamingRequest", [
|
|
2101
|
+
{ no: 1, name: "message_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2102
|
+
{ no: 2, name: "quote", kind: "message", T: () => RFQQuoteType }
|
|
2103
|
+
]);
|
|
2104
|
+
}
|
|
2105
|
+
create(value?: PartialMessage<MakerStreamStreamingRequest>): MakerStreamStreamingRequest {
|
|
2106
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2107
|
+
message.messageType = "";
|
|
2108
|
+
if (value !== undefined)
|
|
2109
|
+
reflectionMergePartial<MakerStreamStreamingRequest>(this, message, value);
|
|
2110
|
+
return message;
|
|
2111
|
+
}
|
|
2112
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MakerStreamStreamingRequest): MakerStreamStreamingRequest {
|
|
2113
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2114
|
+
while (reader.pos < end) {
|
|
2115
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2116
|
+
switch (fieldNo) {
|
|
2117
|
+
case /* string message_type */ 1:
|
|
2118
|
+
message.messageType = reader.string();
|
|
2119
|
+
break;
|
|
2120
|
+
case /* injective_rfqrpc.RFQQuoteType quote */ 2:
|
|
2121
|
+
message.quote = RFQQuoteType.internalBinaryRead(reader, reader.uint32(), options, message.quote);
|
|
2122
|
+
break;
|
|
2123
|
+
default:
|
|
2124
|
+
let u = options.readUnknownField;
|
|
2125
|
+
if (u === "throw")
|
|
2126
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2127
|
+
let d = reader.skip(wireType);
|
|
2128
|
+
if (u !== false)
|
|
2129
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2130
|
+
}
|
|
2131
|
+
}
|
|
2132
|
+
return message;
|
|
2133
|
+
}
|
|
2134
|
+
internalBinaryWrite(message: MakerStreamStreamingRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2135
|
+
/* string message_type = 1; */
|
|
2136
|
+
if (message.messageType !== "")
|
|
2137
|
+
writer.tag(1, WireType.LengthDelimited).string(message.messageType);
|
|
2138
|
+
/* injective_rfqrpc.RFQQuoteType quote = 2; */
|
|
2139
|
+
if (message.quote)
|
|
2140
|
+
RFQQuoteType.internalBinaryWrite(message.quote, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
2141
|
+
let u = options.writeUnknownFields;
|
|
2142
|
+
if (u !== false)
|
|
2143
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2144
|
+
return writer;
|
|
2145
|
+
}
|
|
2146
|
+
}
|
|
2147
|
+
/**
|
|
2148
|
+
* @generated MessageType for protobuf message injective_rfqrpc.MakerStreamStreamingRequest
|
|
2149
|
+
*/
|
|
2150
|
+
export const MakerStreamStreamingRequest = new MakerStreamStreamingRequest$Type();
|
|
2151
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2152
|
+
class MakerStreamResponse$Type extends MessageType<MakerStreamResponse> {
|
|
2153
|
+
constructor() {
|
|
2154
|
+
super("injective_rfqrpc.MakerStreamResponse", [
|
|
2155
|
+
{ no: 1, name: "message_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2156
|
+
{ no: 2, name: "request", kind: "message", T: () => RFQRequestType },
|
|
2157
|
+
{ no: 3, name: "quote_ack", kind: "message", T: () => StreamAck },
|
|
2158
|
+
{ no: 4, name: "error", kind: "message", T: () => StreamError },
|
|
2159
|
+
{ no: 5, name: "stream_operation", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2160
|
+
]);
|
|
2161
|
+
}
|
|
2162
|
+
create(value?: PartialMessage<MakerStreamResponse>): MakerStreamResponse {
|
|
2163
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2164
|
+
message.messageType = "";
|
|
2165
|
+
message.streamOperation = "";
|
|
2166
|
+
if (value !== undefined)
|
|
2167
|
+
reflectionMergePartial<MakerStreamResponse>(this, message, value);
|
|
2168
|
+
return message;
|
|
2169
|
+
}
|
|
2170
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MakerStreamResponse): MakerStreamResponse {
|
|
2171
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2172
|
+
while (reader.pos < end) {
|
|
2173
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2174
|
+
switch (fieldNo) {
|
|
2175
|
+
case /* string message_type */ 1:
|
|
2176
|
+
message.messageType = reader.string();
|
|
2177
|
+
break;
|
|
2178
|
+
case /* injective_rfqrpc.RFQRequestType request */ 2:
|
|
2179
|
+
message.request = RFQRequestType.internalBinaryRead(reader, reader.uint32(), options, message.request);
|
|
2180
|
+
break;
|
|
2181
|
+
case /* injective_rfqrpc.StreamAck quote_ack */ 3:
|
|
2182
|
+
message.quoteAck = StreamAck.internalBinaryRead(reader, reader.uint32(), options, message.quoteAck);
|
|
2183
|
+
break;
|
|
2184
|
+
case /* injective_rfqrpc.StreamError error */ 4:
|
|
2185
|
+
message.error = StreamError.internalBinaryRead(reader, reader.uint32(), options, message.error);
|
|
2186
|
+
break;
|
|
2187
|
+
case /* string stream_operation */ 5:
|
|
2188
|
+
message.streamOperation = reader.string();
|
|
2189
|
+
break;
|
|
2190
|
+
default:
|
|
2191
|
+
let u = options.readUnknownField;
|
|
2192
|
+
if (u === "throw")
|
|
2193
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2194
|
+
let d = reader.skip(wireType);
|
|
2195
|
+
if (u !== false)
|
|
2196
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2197
|
+
}
|
|
2198
|
+
}
|
|
2199
|
+
return message;
|
|
2200
|
+
}
|
|
2201
|
+
internalBinaryWrite(message: MakerStreamResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2202
|
+
/* string message_type = 1; */
|
|
2203
|
+
if (message.messageType !== "")
|
|
2204
|
+
writer.tag(1, WireType.LengthDelimited).string(message.messageType);
|
|
2205
|
+
/* injective_rfqrpc.RFQRequestType request = 2; */
|
|
2206
|
+
if (message.request)
|
|
2207
|
+
RFQRequestType.internalBinaryWrite(message.request, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
2208
|
+
/* injective_rfqrpc.StreamAck quote_ack = 3; */
|
|
2209
|
+
if (message.quoteAck)
|
|
2210
|
+
StreamAck.internalBinaryWrite(message.quoteAck, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
2211
|
+
/* injective_rfqrpc.StreamError error = 4; */
|
|
2212
|
+
if (message.error)
|
|
2213
|
+
StreamError.internalBinaryWrite(message.error, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
2214
|
+
/* string stream_operation = 5; */
|
|
2215
|
+
if (message.streamOperation !== "")
|
|
2216
|
+
writer.tag(5, WireType.LengthDelimited).string(message.streamOperation);
|
|
2217
|
+
let u = options.writeUnknownFields;
|
|
2218
|
+
if (u !== false)
|
|
2219
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2220
|
+
return writer;
|
|
2221
|
+
}
|
|
2222
|
+
}
|
|
2223
|
+
/**
|
|
2224
|
+
* @generated MessageType for protobuf message injective_rfqrpc.MakerStreamResponse
|
|
2225
|
+
*/
|
|
2226
|
+
export const MakerStreamResponse = new MakerStreamResponse$Type();
|
|
2227
|
+
/**
|
|
2228
|
+
* @generated ServiceType for protobuf service injective_rfqrpc.InjectiveRFQRPC
|
|
2229
|
+
*/
|
|
2230
|
+
export const InjectiveRFQRPC = new ServiceType("injective_rfqrpc.InjectiveRFQRPC", [
|
|
2231
|
+
{ name: "Request", options: {}, I: RequestRequest, O: RequestResponse },
|
|
2232
|
+
{ name: "StreamRequest", serverStreaming: true, options: {}, I: StreamRequestRequest, O: StreamRequestResponse },
|
|
2233
|
+
{ name: "Quote", options: {}, I: QuoteRequest, O: QuoteResponse },
|
|
2234
|
+
{ name: "StreamQuote", serverStreaming: true, options: {}, I: StreamQuoteRequest, O: StreamQuoteResponse },
|
|
2235
|
+
{ name: "GetOpenRequests", options: {}, I: GetOpenRequestsRequest, O: GetOpenRequestsResponse },
|
|
2236
|
+
{ name: "GetPendingQuotes", options: {}, I: GetPendingQuotesRequest, O: GetPendingQuotesResponse },
|
|
2237
|
+
{ name: "ListSettlement", options: {}, I: ListSettlementRequest, O: ListSettlementResponse },
|
|
2238
|
+
{ name: "StreamSettlement", serverStreaming: true, options: {}, I: StreamSettlementRequest, O: StreamSettlementResponse },
|
|
2239
|
+
{ name: "TakerStream", serverStreaming: true, clientStreaming: true, options: {}, I: TakerStreamStreamingRequest, O: TakerStreamResponse },
|
|
2240
|
+
{ name: "MakerStream", serverStreaming: true, clientStreaming: true, options: {}, I: MakerStreamStreamingRequest, O: MakerStreamResponse }
|
|
2241
|
+
]);
|