@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,1117 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
|
|
2
|
+
// @generated from protobuf file "injective_oracle_rpc.proto" (package "injective_oracle_rpc", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
//
|
|
5
|
+
// Code generated with goa v3.7.0, DO NOT EDIT.
|
|
6
|
+
//
|
|
7
|
+
// InjectiveOracleRPC 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_oracle_rpc.OracleListRequest
|
|
24
|
+
*/
|
|
25
|
+
export interface OracleListRequest {
|
|
26
|
+
/**
|
|
27
|
+
* Filter by oracle symbol
|
|
28
|
+
*
|
|
29
|
+
* @generated from protobuf field: string symbol = 1
|
|
30
|
+
*/
|
|
31
|
+
symbol: string;
|
|
32
|
+
/**
|
|
33
|
+
* Filter by oracle type
|
|
34
|
+
*
|
|
35
|
+
* @generated from protobuf field: string oracle_type = 2
|
|
36
|
+
*/
|
|
37
|
+
oracleType: string;
|
|
38
|
+
/**
|
|
39
|
+
* Number of results per page
|
|
40
|
+
*
|
|
41
|
+
* @generated from protobuf field: sint32 per_page = 3
|
|
42
|
+
*/
|
|
43
|
+
perPage: number;
|
|
44
|
+
/**
|
|
45
|
+
* Pagination token from previous response
|
|
46
|
+
*
|
|
47
|
+
* @generated from protobuf field: string token = 4
|
|
48
|
+
*/
|
|
49
|
+
token: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* @generated from protobuf message injective_oracle_rpc.OracleListResponse
|
|
53
|
+
*/
|
|
54
|
+
export interface OracleListResponse {
|
|
55
|
+
/**
|
|
56
|
+
* List of oracles
|
|
57
|
+
*
|
|
58
|
+
* @generated from protobuf field: repeated injective_oracle_rpc.Oracle oracles = 1
|
|
59
|
+
*/
|
|
60
|
+
oracles: Oracle[];
|
|
61
|
+
/**
|
|
62
|
+
* Next tokens for pagination
|
|
63
|
+
*
|
|
64
|
+
* @generated from protobuf field: repeated string next = 2
|
|
65
|
+
*/
|
|
66
|
+
next: string[];
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* @generated from protobuf message injective_oracle_rpc.Oracle
|
|
70
|
+
*/
|
|
71
|
+
export interface Oracle {
|
|
72
|
+
/**
|
|
73
|
+
* The symbol of the oracle asset.
|
|
74
|
+
*
|
|
75
|
+
* @generated from protobuf field: string symbol = 1
|
|
76
|
+
*/
|
|
77
|
+
symbol: string;
|
|
78
|
+
/**
|
|
79
|
+
* Oracle base currency
|
|
80
|
+
*
|
|
81
|
+
* @generated from protobuf field: string base_symbol = 2
|
|
82
|
+
*/
|
|
83
|
+
baseSymbol: string;
|
|
84
|
+
/**
|
|
85
|
+
* Oracle quote currency
|
|
86
|
+
*
|
|
87
|
+
* @generated from protobuf field: string quote_symbol = 3
|
|
88
|
+
*/
|
|
89
|
+
quoteSymbol: string;
|
|
90
|
+
/**
|
|
91
|
+
* Oracle Type
|
|
92
|
+
*
|
|
93
|
+
* @generated from protobuf field: string oracle_type = 4
|
|
94
|
+
*/
|
|
95
|
+
oracleType: string;
|
|
96
|
+
/**
|
|
97
|
+
* The price of the oracle asset
|
|
98
|
+
*
|
|
99
|
+
* @generated from protobuf field: string price = 5
|
|
100
|
+
*/
|
|
101
|
+
price: string;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* @generated from protobuf message injective_oracle_rpc.PriceRequest
|
|
105
|
+
*/
|
|
106
|
+
export interface PriceRequest {
|
|
107
|
+
/**
|
|
108
|
+
* Oracle base currency
|
|
109
|
+
*
|
|
110
|
+
* @generated from protobuf field: string base_symbol = 1
|
|
111
|
+
*/
|
|
112
|
+
baseSymbol: string;
|
|
113
|
+
/**
|
|
114
|
+
* Oracle quote currency
|
|
115
|
+
*
|
|
116
|
+
* @generated from protobuf field: string quote_symbol = 2
|
|
117
|
+
*/
|
|
118
|
+
quoteSymbol: string;
|
|
119
|
+
/**
|
|
120
|
+
* Oracle Type
|
|
121
|
+
*
|
|
122
|
+
* @generated from protobuf field: string oracle_type = 3
|
|
123
|
+
*/
|
|
124
|
+
oracleType: string;
|
|
125
|
+
/**
|
|
126
|
+
* OracleScaleFactor
|
|
127
|
+
*
|
|
128
|
+
* @generated from protobuf field: uint32 oracle_scale_factor = 4
|
|
129
|
+
*/
|
|
130
|
+
oracleScaleFactor: number;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* @generated from protobuf message injective_oracle_rpc.PriceResponse
|
|
134
|
+
*/
|
|
135
|
+
export interface PriceResponse {
|
|
136
|
+
/**
|
|
137
|
+
* The price of the oracle asset
|
|
138
|
+
*
|
|
139
|
+
* @generated from protobuf field: string price = 1
|
|
140
|
+
*/
|
|
141
|
+
price: string;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* @generated from protobuf message injective_oracle_rpc.PriceV2Request
|
|
145
|
+
*/
|
|
146
|
+
export interface PriceV2Request {
|
|
147
|
+
/**
|
|
148
|
+
* @generated from protobuf field: repeated injective_oracle_rpc.PricePayloadV2 filters = 1
|
|
149
|
+
*/
|
|
150
|
+
filters: PricePayloadV2[];
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* @generated from protobuf message injective_oracle_rpc.PricePayloadV2
|
|
154
|
+
*/
|
|
155
|
+
export interface PricePayloadV2 {
|
|
156
|
+
/**
|
|
157
|
+
* Oracle base currency
|
|
158
|
+
*
|
|
159
|
+
* @generated from protobuf field: string base_symbol = 1
|
|
160
|
+
*/
|
|
161
|
+
baseSymbol: string;
|
|
162
|
+
/**
|
|
163
|
+
* Oracle quote currency
|
|
164
|
+
*
|
|
165
|
+
* @generated from protobuf field: string quote_symbol = 2
|
|
166
|
+
*/
|
|
167
|
+
quoteSymbol: string;
|
|
168
|
+
/**
|
|
169
|
+
* Oracle Type
|
|
170
|
+
*
|
|
171
|
+
* @generated from protobuf field: string oracle_type = 3
|
|
172
|
+
*/
|
|
173
|
+
oracleType: string;
|
|
174
|
+
/**
|
|
175
|
+
* OracleScaleFactor
|
|
176
|
+
*
|
|
177
|
+
* @generated from protobuf field: uint32 oracle_scale_factor = 4
|
|
178
|
+
*/
|
|
179
|
+
oracleScaleFactor: number;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* @generated from protobuf message injective_oracle_rpc.PriceV2Response
|
|
183
|
+
*/
|
|
184
|
+
export interface PriceV2Response {
|
|
185
|
+
/**
|
|
186
|
+
* @generated from protobuf field: repeated injective_oracle_rpc.PriceV2Result prices = 1
|
|
187
|
+
*/
|
|
188
|
+
prices: PriceV2Result[];
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* @generated from protobuf message injective_oracle_rpc.PriceV2Result
|
|
192
|
+
*/
|
|
193
|
+
export interface PriceV2Result {
|
|
194
|
+
/**
|
|
195
|
+
* Oracle base currency
|
|
196
|
+
*
|
|
197
|
+
* @generated from protobuf field: string base_symbol = 1
|
|
198
|
+
*/
|
|
199
|
+
baseSymbol: string;
|
|
200
|
+
/**
|
|
201
|
+
* Oracle quote currency
|
|
202
|
+
*
|
|
203
|
+
* @generated from protobuf field: string quote_symbol = 2
|
|
204
|
+
*/
|
|
205
|
+
quoteSymbol: string;
|
|
206
|
+
/**
|
|
207
|
+
* Oracle Type
|
|
208
|
+
*
|
|
209
|
+
* @generated from protobuf field: string oracle_type = 3
|
|
210
|
+
*/
|
|
211
|
+
oracleType: string;
|
|
212
|
+
/**
|
|
213
|
+
* OracleScaleFactor
|
|
214
|
+
*
|
|
215
|
+
* @generated from protobuf field: uint32 oracle_scale_factor = 4
|
|
216
|
+
*/
|
|
217
|
+
oracleScaleFactor: number;
|
|
218
|
+
/**
|
|
219
|
+
* The price of the oracle asset
|
|
220
|
+
*
|
|
221
|
+
* @generated from protobuf field: string price = 5
|
|
222
|
+
*/
|
|
223
|
+
price: string;
|
|
224
|
+
/**
|
|
225
|
+
* marketID
|
|
226
|
+
*
|
|
227
|
+
* @generated from protobuf field: string market_id = 6
|
|
228
|
+
*/
|
|
229
|
+
marketId: string;
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* @generated from protobuf message injective_oracle_rpc.StreamPricesRequest
|
|
233
|
+
*/
|
|
234
|
+
export interface StreamPricesRequest {
|
|
235
|
+
/**
|
|
236
|
+
* Oracle base currency
|
|
237
|
+
*
|
|
238
|
+
* @generated from protobuf field: string base_symbol = 1
|
|
239
|
+
*/
|
|
240
|
+
baseSymbol: string;
|
|
241
|
+
/**
|
|
242
|
+
* Oracle quote currency
|
|
243
|
+
*
|
|
244
|
+
* @generated from protobuf field: string quote_symbol = 2
|
|
245
|
+
*/
|
|
246
|
+
quoteSymbol: string;
|
|
247
|
+
/**
|
|
248
|
+
* Oracle Type
|
|
249
|
+
*
|
|
250
|
+
* @generated from protobuf field: string oracle_type = 3
|
|
251
|
+
*/
|
|
252
|
+
oracleType: string;
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* @generated from protobuf message injective_oracle_rpc.StreamPricesResponse
|
|
256
|
+
*/
|
|
257
|
+
export interface StreamPricesResponse {
|
|
258
|
+
/**
|
|
259
|
+
* The price of the oracle asset
|
|
260
|
+
*
|
|
261
|
+
* @generated from protobuf field: string price = 1
|
|
262
|
+
*/
|
|
263
|
+
price: string;
|
|
264
|
+
/**
|
|
265
|
+
* Operation timestamp in UNIX millis.
|
|
266
|
+
*
|
|
267
|
+
* @generated from protobuf field: sint64 timestamp = 2
|
|
268
|
+
*/
|
|
269
|
+
timestamp: bigint;
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* @generated from protobuf message injective_oracle_rpc.StreamPricesByMarketsRequest
|
|
273
|
+
*/
|
|
274
|
+
export interface StreamPricesByMarketsRequest {
|
|
275
|
+
/**
|
|
276
|
+
* marketIDs to stream price for, empty to listen for all prices
|
|
277
|
+
*
|
|
278
|
+
* @generated from protobuf field: repeated string market_ids = 1
|
|
279
|
+
*/
|
|
280
|
+
marketIds: string[];
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* @generated from protobuf message injective_oracle_rpc.StreamPricesByMarketsResponse
|
|
284
|
+
*/
|
|
285
|
+
export interface StreamPricesByMarketsResponse {
|
|
286
|
+
/**
|
|
287
|
+
* The price of the oracle asset
|
|
288
|
+
*
|
|
289
|
+
* @generated from protobuf field: string price = 1
|
|
290
|
+
*/
|
|
291
|
+
price: string;
|
|
292
|
+
/**
|
|
293
|
+
* Operation timestamp in UNIX millis.
|
|
294
|
+
*
|
|
295
|
+
* @generated from protobuf field: sint64 timestamp = 2
|
|
296
|
+
*/
|
|
297
|
+
timestamp: bigint;
|
|
298
|
+
/**
|
|
299
|
+
* marketID that the price has been updated
|
|
300
|
+
*
|
|
301
|
+
* @generated from protobuf field: string market_id = 3
|
|
302
|
+
*/
|
|
303
|
+
marketId: string;
|
|
304
|
+
}
|
|
305
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
306
|
+
class OracleListRequest$Type extends MessageType<OracleListRequest> {
|
|
307
|
+
constructor() {
|
|
308
|
+
super("injective_oracle_rpc.OracleListRequest", [
|
|
309
|
+
{ no: 1, name: "symbol", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
310
|
+
{ no: 2, name: "oracle_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
311
|
+
{ no: 3, name: "per_page", kind: "scalar", T: 17 /*ScalarType.SINT32*/ },
|
|
312
|
+
{ no: 4, name: "token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
313
|
+
]);
|
|
314
|
+
}
|
|
315
|
+
create(value?: PartialMessage<OracleListRequest>): OracleListRequest {
|
|
316
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
317
|
+
message.symbol = "";
|
|
318
|
+
message.oracleType = "";
|
|
319
|
+
message.perPage = 0;
|
|
320
|
+
message.token = "";
|
|
321
|
+
if (value !== undefined)
|
|
322
|
+
reflectionMergePartial<OracleListRequest>(this, message, value);
|
|
323
|
+
return message;
|
|
324
|
+
}
|
|
325
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OracleListRequest): OracleListRequest {
|
|
326
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
327
|
+
while (reader.pos < end) {
|
|
328
|
+
let [fieldNo, wireType] = reader.tag();
|
|
329
|
+
switch (fieldNo) {
|
|
330
|
+
case /* string symbol */ 1:
|
|
331
|
+
message.symbol = reader.string();
|
|
332
|
+
break;
|
|
333
|
+
case /* string oracle_type */ 2:
|
|
334
|
+
message.oracleType = reader.string();
|
|
335
|
+
break;
|
|
336
|
+
case /* sint32 per_page */ 3:
|
|
337
|
+
message.perPage = reader.sint32();
|
|
338
|
+
break;
|
|
339
|
+
case /* string token */ 4:
|
|
340
|
+
message.token = reader.string();
|
|
341
|
+
break;
|
|
342
|
+
default:
|
|
343
|
+
let u = options.readUnknownField;
|
|
344
|
+
if (u === "throw")
|
|
345
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
346
|
+
let d = reader.skip(wireType);
|
|
347
|
+
if (u !== false)
|
|
348
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
return message;
|
|
352
|
+
}
|
|
353
|
+
internalBinaryWrite(message: OracleListRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
354
|
+
/* string symbol = 1; */
|
|
355
|
+
if (message.symbol !== "")
|
|
356
|
+
writer.tag(1, WireType.LengthDelimited).string(message.symbol);
|
|
357
|
+
/* string oracle_type = 2; */
|
|
358
|
+
if (message.oracleType !== "")
|
|
359
|
+
writer.tag(2, WireType.LengthDelimited).string(message.oracleType);
|
|
360
|
+
/* sint32 per_page = 3; */
|
|
361
|
+
if (message.perPage !== 0)
|
|
362
|
+
writer.tag(3, WireType.Varint).sint32(message.perPage);
|
|
363
|
+
/* string token = 4; */
|
|
364
|
+
if (message.token !== "")
|
|
365
|
+
writer.tag(4, WireType.LengthDelimited).string(message.token);
|
|
366
|
+
let u = options.writeUnknownFields;
|
|
367
|
+
if (u !== false)
|
|
368
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
369
|
+
return writer;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* @generated MessageType for protobuf message injective_oracle_rpc.OracleListRequest
|
|
374
|
+
*/
|
|
375
|
+
export const OracleListRequest = new OracleListRequest$Type();
|
|
376
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
377
|
+
class OracleListResponse$Type extends MessageType<OracleListResponse> {
|
|
378
|
+
constructor() {
|
|
379
|
+
super("injective_oracle_rpc.OracleListResponse", [
|
|
380
|
+
{ no: 1, name: "oracles", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Oracle },
|
|
381
|
+
{ no: 2, name: "next", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
382
|
+
]);
|
|
383
|
+
}
|
|
384
|
+
create(value?: PartialMessage<OracleListResponse>): OracleListResponse {
|
|
385
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
386
|
+
message.oracles = [];
|
|
387
|
+
message.next = [];
|
|
388
|
+
if (value !== undefined)
|
|
389
|
+
reflectionMergePartial<OracleListResponse>(this, message, value);
|
|
390
|
+
return message;
|
|
391
|
+
}
|
|
392
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OracleListResponse): OracleListResponse {
|
|
393
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
394
|
+
while (reader.pos < end) {
|
|
395
|
+
let [fieldNo, wireType] = reader.tag();
|
|
396
|
+
switch (fieldNo) {
|
|
397
|
+
case /* repeated injective_oracle_rpc.Oracle oracles */ 1:
|
|
398
|
+
message.oracles.push(Oracle.internalBinaryRead(reader, reader.uint32(), options));
|
|
399
|
+
break;
|
|
400
|
+
case /* repeated string next */ 2:
|
|
401
|
+
message.next.push(reader.string());
|
|
402
|
+
break;
|
|
403
|
+
default:
|
|
404
|
+
let u = options.readUnknownField;
|
|
405
|
+
if (u === "throw")
|
|
406
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
407
|
+
let d = reader.skip(wireType);
|
|
408
|
+
if (u !== false)
|
|
409
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
return message;
|
|
413
|
+
}
|
|
414
|
+
internalBinaryWrite(message: OracleListResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
415
|
+
/* repeated injective_oracle_rpc.Oracle oracles = 1; */
|
|
416
|
+
for (let i = 0; i < message.oracles.length; i++)
|
|
417
|
+
Oracle.internalBinaryWrite(message.oracles[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
418
|
+
/* repeated string next = 2; */
|
|
419
|
+
for (let i = 0; i < message.next.length; i++)
|
|
420
|
+
writer.tag(2, WireType.LengthDelimited).string(message.next[i]);
|
|
421
|
+
let u = options.writeUnknownFields;
|
|
422
|
+
if (u !== false)
|
|
423
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
424
|
+
return writer;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* @generated MessageType for protobuf message injective_oracle_rpc.OracleListResponse
|
|
429
|
+
*/
|
|
430
|
+
export const OracleListResponse = new OracleListResponse$Type();
|
|
431
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
432
|
+
class Oracle$Type extends MessageType<Oracle> {
|
|
433
|
+
constructor() {
|
|
434
|
+
super("injective_oracle_rpc.Oracle", [
|
|
435
|
+
{ no: 1, name: "symbol", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
436
|
+
{ no: 2, name: "base_symbol", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
437
|
+
{ no: 3, name: "quote_symbol", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
438
|
+
{ no: 4, name: "oracle_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
439
|
+
{ no: 5, name: "price", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
440
|
+
]);
|
|
441
|
+
}
|
|
442
|
+
create(value?: PartialMessage<Oracle>): Oracle {
|
|
443
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
444
|
+
message.symbol = "";
|
|
445
|
+
message.baseSymbol = "";
|
|
446
|
+
message.quoteSymbol = "";
|
|
447
|
+
message.oracleType = "";
|
|
448
|
+
message.price = "";
|
|
449
|
+
if (value !== undefined)
|
|
450
|
+
reflectionMergePartial<Oracle>(this, message, value);
|
|
451
|
+
return message;
|
|
452
|
+
}
|
|
453
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Oracle): Oracle {
|
|
454
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
455
|
+
while (reader.pos < end) {
|
|
456
|
+
let [fieldNo, wireType] = reader.tag();
|
|
457
|
+
switch (fieldNo) {
|
|
458
|
+
case /* string symbol */ 1:
|
|
459
|
+
message.symbol = reader.string();
|
|
460
|
+
break;
|
|
461
|
+
case /* string base_symbol */ 2:
|
|
462
|
+
message.baseSymbol = reader.string();
|
|
463
|
+
break;
|
|
464
|
+
case /* string quote_symbol */ 3:
|
|
465
|
+
message.quoteSymbol = reader.string();
|
|
466
|
+
break;
|
|
467
|
+
case /* string oracle_type */ 4:
|
|
468
|
+
message.oracleType = reader.string();
|
|
469
|
+
break;
|
|
470
|
+
case /* string price */ 5:
|
|
471
|
+
message.price = reader.string();
|
|
472
|
+
break;
|
|
473
|
+
default:
|
|
474
|
+
let u = options.readUnknownField;
|
|
475
|
+
if (u === "throw")
|
|
476
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
477
|
+
let d = reader.skip(wireType);
|
|
478
|
+
if (u !== false)
|
|
479
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
return message;
|
|
483
|
+
}
|
|
484
|
+
internalBinaryWrite(message: Oracle, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
485
|
+
/* string symbol = 1; */
|
|
486
|
+
if (message.symbol !== "")
|
|
487
|
+
writer.tag(1, WireType.LengthDelimited).string(message.symbol);
|
|
488
|
+
/* string base_symbol = 2; */
|
|
489
|
+
if (message.baseSymbol !== "")
|
|
490
|
+
writer.tag(2, WireType.LengthDelimited).string(message.baseSymbol);
|
|
491
|
+
/* string quote_symbol = 3; */
|
|
492
|
+
if (message.quoteSymbol !== "")
|
|
493
|
+
writer.tag(3, WireType.LengthDelimited).string(message.quoteSymbol);
|
|
494
|
+
/* string oracle_type = 4; */
|
|
495
|
+
if (message.oracleType !== "")
|
|
496
|
+
writer.tag(4, WireType.LengthDelimited).string(message.oracleType);
|
|
497
|
+
/* string price = 5; */
|
|
498
|
+
if (message.price !== "")
|
|
499
|
+
writer.tag(5, WireType.LengthDelimited).string(message.price);
|
|
500
|
+
let u = options.writeUnknownFields;
|
|
501
|
+
if (u !== false)
|
|
502
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
503
|
+
return writer;
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
/**
|
|
507
|
+
* @generated MessageType for protobuf message injective_oracle_rpc.Oracle
|
|
508
|
+
*/
|
|
509
|
+
export const Oracle = new Oracle$Type();
|
|
510
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
511
|
+
class PriceRequest$Type extends MessageType<PriceRequest> {
|
|
512
|
+
constructor() {
|
|
513
|
+
super("injective_oracle_rpc.PriceRequest", [
|
|
514
|
+
{ no: 1, name: "base_symbol", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
515
|
+
{ no: 2, name: "quote_symbol", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
516
|
+
{ no: 3, name: "oracle_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
517
|
+
{ no: 4, name: "oracle_scale_factor", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
518
|
+
]);
|
|
519
|
+
}
|
|
520
|
+
create(value?: PartialMessage<PriceRequest>): PriceRequest {
|
|
521
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
522
|
+
message.baseSymbol = "";
|
|
523
|
+
message.quoteSymbol = "";
|
|
524
|
+
message.oracleType = "";
|
|
525
|
+
message.oracleScaleFactor = 0;
|
|
526
|
+
if (value !== undefined)
|
|
527
|
+
reflectionMergePartial<PriceRequest>(this, message, value);
|
|
528
|
+
return message;
|
|
529
|
+
}
|
|
530
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PriceRequest): PriceRequest {
|
|
531
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
532
|
+
while (reader.pos < end) {
|
|
533
|
+
let [fieldNo, wireType] = reader.tag();
|
|
534
|
+
switch (fieldNo) {
|
|
535
|
+
case /* string base_symbol */ 1:
|
|
536
|
+
message.baseSymbol = reader.string();
|
|
537
|
+
break;
|
|
538
|
+
case /* string quote_symbol */ 2:
|
|
539
|
+
message.quoteSymbol = reader.string();
|
|
540
|
+
break;
|
|
541
|
+
case /* string oracle_type */ 3:
|
|
542
|
+
message.oracleType = reader.string();
|
|
543
|
+
break;
|
|
544
|
+
case /* uint32 oracle_scale_factor */ 4:
|
|
545
|
+
message.oracleScaleFactor = reader.uint32();
|
|
546
|
+
break;
|
|
547
|
+
default:
|
|
548
|
+
let u = options.readUnknownField;
|
|
549
|
+
if (u === "throw")
|
|
550
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
551
|
+
let d = reader.skip(wireType);
|
|
552
|
+
if (u !== false)
|
|
553
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
return message;
|
|
557
|
+
}
|
|
558
|
+
internalBinaryWrite(message: PriceRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
559
|
+
/* string base_symbol = 1; */
|
|
560
|
+
if (message.baseSymbol !== "")
|
|
561
|
+
writer.tag(1, WireType.LengthDelimited).string(message.baseSymbol);
|
|
562
|
+
/* string quote_symbol = 2; */
|
|
563
|
+
if (message.quoteSymbol !== "")
|
|
564
|
+
writer.tag(2, WireType.LengthDelimited).string(message.quoteSymbol);
|
|
565
|
+
/* string oracle_type = 3; */
|
|
566
|
+
if (message.oracleType !== "")
|
|
567
|
+
writer.tag(3, WireType.LengthDelimited).string(message.oracleType);
|
|
568
|
+
/* uint32 oracle_scale_factor = 4; */
|
|
569
|
+
if (message.oracleScaleFactor !== 0)
|
|
570
|
+
writer.tag(4, WireType.Varint).uint32(message.oracleScaleFactor);
|
|
571
|
+
let u = options.writeUnknownFields;
|
|
572
|
+
if (u !== false)
|
|
573
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
574
|
+
return writer;
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
/**
|
|
578
|
+
* @generated MessageType for protobuf message injective_oracle_rpc.PriceRequest
|
|
579
|
+
*/
|
|
580
|
+
export const PriceRequest = new PriceRequest$Type();
|
|
581
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
582
|
+
class PriceResponse$Type extends MessageType<PriceResponse> {
|
|
583
|
+
constructor() {
|
|
584
|
+
super("injective_oracle_rpc.PriceResponse", [
|
|
585
|
+
{ no: 1, name: "price", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
586
|
+
]);
|
|
587
|
+
}
|
|
588
|
+
create(value?: PartialMessage<PriceResponse>): PriceResponse {
|
|
589
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
590
|
+
message.price = "";
|
|
591
|
+
if (value !== undefined)
|
|
592
|
+
reflectionMergePartial<PriceResponse>(this, message, value);
|
|
593
|
+
return message;
|
|
594
|
+
}
|
|
595
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PriceResponse): PriceResponse {
|
|
596
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
597
|
+
while (reader.pos < end) {
|
|
598
|
+
let [fieldNo, wireType] = reader.tag();
|
|
599
|
+
switch (fieldNo) {
|
|
600
|
+
case /* string price */ 1:
|
|
601
|
+
message.price = reader.string();
|
|
602
|
+
break;
|
|
603
|
+
default:
|
|
604
|
+
let u = options.readUnknownField;
|
|
605
|
+
if (u === "throw")
|
|
606
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
607
|
+
let d = reader.skip(wireType);
|
|
608
|
+
if (u !== false)
|
|
609
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
return message;
|
|
613
|
+
}
|
|
614
|
+
internalBinaryWrite(message: PriceResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
615
|
+
/* string price = 1; */
|
|
616
|
+
if (message.price !== "")
|
|
617
|
+
writer.tag(1, WireType.LengthDelimited).string(message.price);
|
|
618
|
+
let u = options.writeUnknownFields;
|
|
619
|
+
if (u !== false)
|
|
620
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
621
|
+
return writer;
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
/**
|
|
625
|
+
* @generated MessageType for protobuf message injective_oracle_rpc.PriceResponse
|
|
626
|
+
*/
|
|
627
|
+
export const PriceResponse = new PriceResponse$Type();
|
|
628
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
629
|
+
class PriceV2Request$Type extends MessageType<PriceV2Request> {
|
|
630
|
+
constructor() {
|
|
631
|
+
super("injective_oracle_rpc.PriceV2Request", [
|
|
632
|
+
{ no: 1, name: "filters", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PricePayloadV2 }
|
|
633
|
+
]);
|
|
634
|
+
}
|
|
635
|
+
create(value?: PartialMessage<PriceV2Request>): PriceV2Request {
|
|
636
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
637
|
+
message.filters = [];
|
|
638
|
+
if (value !== undefined)
|
|
639
|
+
reflectionMergePartial<PriceV2Request>(this, message, value);
|
|
640
|
+
return message;
|
|
641
|
+
}
|
|
642
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PriceV2Request): PriceV2Request {
|
|
643
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
644
|
+
while (reader.pos < end) {
|
|
645
|
+
let [fieldNo, wireType] = reader.tag();
|
|
646
|
+
switch (fieldNo) {
|
|
647
|
+
case /* repeated injective_oracle_rpc.PricePayloadV2 filters */ 1:
|
|
648
|
+
message.filters.push(PricePayloadV2.internalBinaryRead(reader, reader.uint32(), options));
|
|
649
|
+
break;
|
|
650
|
+
default:
|
|
651
|
+
let u = options.readUnknownField;
|
|
652
|
+
if (u === "throw")
|
|
653
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
654
|
+
let d = reader.skip(wireType);
|
|
655
|
+
if (u !== false)
|
|
656
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
return message;
|
|
660
|
+
}
|
|
661
|
+
internalBinaryWrite(message: PriceV2Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
662
|
+
/* repeated injective_oracle_rpc.PricePayloadV2 filters = 1; */
|
|
663
|
+
for (let i = 0; i < message.filters.length; i++)
|
|
664
|
+
PricePayloadV2.internalBinaryWrite(message.filters[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
665
|
+
let u = options.writeUnknownFields;
|
|
666
|
+
if (u !== false)
|
|
667
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
668
|
+
return writer;
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
/**
|
|
672
|
+
* @generated MessageType for protobuf message injective_oracle_rpc.PriceV2Request
|
|
673
|
+
*/
|
|
674
|
+
export const PriceV2Request = new PriceV2Request$Type();
|
|
675
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
676
|
+
class PricePayloadV2$Type extends MessageType<PricePayloadV2> {
|
|
677
|
+
constructor() {
|
|
678
|
+
super("injective_oracle_rpc.PricePayloadV2", [
|
|
679
|
+
{ no: 1, name: "base_symbol", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
680
|
+
{ no: 2, name: "quote_symbol", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
681
|
+
{ no: 3, name: "oracle_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
682
|
+
{ no: 4, name: "oracle_scale_factor", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
683
|
+
]);
|
|
684
|
+
}
|
|
685
|
+
create(value?: PartialMessage<PricePayloadV2>): PricePayloadV2 {
|
|
686
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
687
|
+
message.baseSymbol = "";
|
|
688
|
+
message.quoteSymbol = "";
|
|
689
|
+
message.oracleType = "";
|
|
690
|
+
message.oracleScaleFactor = 0;
|
|
691
|
+
if (value !== undefined)
|
|
692
|
+
reflectionMergePartial<PricePayloadV2>(this, message, value);
|
|
693
|
+
return message;
|
|
694
|
+
}
|
|
695
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PricePayloadV2): PricePayloadV2 {
|
|
696
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
697
|
+
while (reader.pos < end) {
|
|
698
|
+
let [fieldNo, wireType] = reader.tag();
|
|
699
|
+
switch (fieldNo) {
|
|
700
|
+
case /* string base_symbol */ 1:
|
|
701
|
+
message.baseSymbol = reader.string();
|
|
702
|
+
break;
|
|
703
|
+
case /* string quote_symbol */ 2:
|
|
704
|
+
message.quoteSymbol = reader.string();
|
|
705
|
+
break;
|
|
706
|
+
case /* string oracle_type */ 3:
|
|
707
|
+
message.oracleType = reader.string();
|
|
708
|
+
break;
|
|
709
|
+
case /* uint32 oracle_scale_factor */ 4:
|
|
710
|
+
message.oracleScaleFactor = reader.uint32();
|
|
711
|
+
break;
|
|
712
|
+
default:
|
|
713
|
+
let u = options.readUnknownField;
|
|
714
|
+
if (u === "throw")
|
|
715
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
716
|
+
let d = reader.skip(wireType);
|
|
717
|
+
if (u !== false)
|
|
718
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
return message;
|
|
722
|
+
}
|
|
723
|
+
internalBinaryWrite(message: PricePayloadV2, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
724
|
+
/* string base_symbol = 1; */
|
|
725
|
+
if (message.baseSymbol !== "")
|
|
726
|
+
writer.tag(1, WireType.LengthDelimited).string(message.baseSymbol);
|
|
727
|
+
/* string quote_symbol = 2; */
|
|
728
|
+
if (message.quoteSymbol !== "")
|
|
729
|
+
writer.tag(2, WireType.LengthDelimited).string(message.quoteSymbol);
|
|
730
|
+
/* string oracle_type = 3; */
|
|
731
|
+
if (message.oracleType !== "")
|
|
732
|
+
writer.tag(3, WireType.LengthDelimited).string(message.oracleType);
|
|
733
|
+
/* uint32 oracle_scale_factor = 4; */
|
|
734
|
+
if (message.oracleScaleFactor !== 0)
|
|
735
|
+
writer.tag(4, WireType.Varint).uint32(message.oracleScaleFactor);
|
|
736
|
+
let u = options.writeUnknownFields;
|
|
737
|
+
if (u !== false)
|
|
738
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
739
|
+
return writer;
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
/**
|
|
743
|
+
* @generated MessageType for protobuf message injective_oracle_rpc.PricePayloadV2
|
|
744
|
+
*/
|
|
745
|
+
export const PricePayloadV2 = new PricePayloadV2$Type();
|
|
746
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
747
|
+
class PriceV2Response$Type extends MessageType<PriceV2Response> {
|
|
748
|
+
constructor() {
|
|
749
|
+
super("injective_oracle_rpc.PriceV2Response", [
|
|
750
|
+
{ no: 1, name: "prices", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PriceV2Result }
|
|
751
|
+
]);
|
|
752
|
+
}
|
|
753
|
+
create(value?: PartialMessage<PriceV2Response>): PriceV2Response {
|
|
754
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
755
|
+
message.prices = [];
|
|
756
|
+
if (value !== undefined)
|
|
757
|
+
reflectionMergePartial<PriceV2Response>(this, message, value);
|
|
758
|
+
return message;
|
|
759
|
+
}
|
|
760
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PriceV2Response): PriceV2Response {
|
|
761
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
762
|
+
while (reader.pos < end) {
|
|
763
|
+
let [fieldNo, wireType] = reader.tag();
|
|
764
|
+
switch (fieldNo) {
|
|
765
|
+
case /* repeated injective_oracle_rpc.PriceV2Result prices */ 1:
|
|
766
|
+
message.prices.push(PriceV2Result.internalBinaryRead(reader, reader.uint32(), options));
|
|
767
|
+
break;
|
|
768
|
+
default:
|
|
769
|
+
let u = options.readUnknownField;
|
|
770
|
+
if (u === "throw")
|
|
771
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
772
|
+
let d = reader.skip(wireType);
|
|
773
|
+
if (u !== false)
|
|
774
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
return message;
|
|
778
|
+
}
|
|
779
|
+
internalBinaryWrite(message: PriceV2Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
780
|
+
/* repeated injective_oracle_rpc.PriceV2Result prices = 1; */
|
|
781
|
+
for (let i = 0; i < message.prices.length; i++)
|
|
782
|
+
PriceV2Result.internalBinaryWrite(message.prices[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
783
|
+
let u = options.writeUnknownFields;
|
|
784
|
+
if (u !== false)
|
|
785
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
786
|
+
return writer;
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
/**
|
|
790
|
+
* @generated MessageType for protobuf message injective_oracle_rpc.PriceV2Response
|
|
791
|
+
*/
|
|
792
|
+
export const PriceV2Response = new PriceV2Response$Type();
|
|
793
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
794
|
+
class PriceV2Result$Type extends MessageType<PriceV2Result> {
|
|
795
|
+
constructor() {
|
|
796
|
+
super("injective_oracle_rpc.PriceV2Result", [
|
|
797
|
+
{ no: 1, name: "base_symbol", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
798
|
+
{ no: 2, name: "quote_symbol", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
799
|
+
{ no: 3, name: "oracle_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
800
|
+
{ no: 4, name: "oracle_scale_factor", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
801
|
+
{ no: 5, name: "price", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
802
|
+
{ no: 6, name: "market_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
803
|
+
]);
|
|
804
|
+
}
|
|
805
|
+
create(value?: PartialMessage<PriceV2Result>): PriceV2Result {
|
|
806
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
807
|
+
message.baseSymbol = "";
|
|
808
|
+
message.quoteSymbol = "";
|
|
809
|
+
message.oracleType = "";
|
|
810
|
+
message.oracleScaleFactor = 0;
|
|
811
|
+
message.price = "";
|
|
812
|
+
message.marketId = "";
|
|
813
|
+
if (value !== undefined)
|
|
814
|
+
reflectionMergePartial<PriceV2Result>(this, message, value);
|
|
815
|
+
return message;
|
|
816
|
+
}
|
|
817
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PriceV2Result): PriceV2Result {
|
|
818
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
819
|
+
while (reader.pos < end) {
|
|
820
|
+
let [fieldNo, wireType] = reader.tag();
|
|
821
|
+
switch (fieldNo) {
|
|
822
|
+
case /* string base_symbol */ 1:
|
|
823
|
+
message.baseSymbol = reader.string();
|
|
824
|
+
break;
|
|
825
|
+
case /* string quote_symbol */ 2:
|
|
826
|
+
message.quoteSymbol = reader.string();
|
|
827
|
+
break;
|
|
828
|
+
case /* string oracle_type */ 3:
|
|
829
|
+
message.oracleType = reader.string();
|
|
830
|
+
break;
|
|
831
|
+
case /* uint32 oracle_scale_factor */ 4:
|
|
832
|
+
message.oracleScaleFactor = reader.uint32();
|
|
833
|
+
break;
|
|
834
|
+
case /* string price */ 5:
|
|
835
|
+
message.price = reader.string();
|
|
836
|
+
break;
|
|
837
|
+
case /* string market_id */ 6:
|
|
838
|
+
message.marketId = reader.string();
|
|
839
|
+
break;
|
|
840
|
+
default:
|
|
841
|
+
let u = options.readUnknownField;
|
|
842
|
+
if (u === "throw")
|
|
843
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
844
|
+
let d = reader.skip(wireType);
|
|
845
|
+
if (u !== false)
|
|
846
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
return message;
|
|
850
|
+
}
|
|
851
|
+
internalBinaryWrite(message: PriceV2Result, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
852
|
+
/* string base_symbol = 1; */
|
|
853
|
+
if (message.baseSymbol !== "")
|
|
854
|
+
writer.tag(1, WireType.LengthDelimited).string(message.baseSymbol);
|
|
855
|
+
/* string quote_symbol = 2; */
|
|
856
|
+
if (message.quoteSymbol !== "")
|
|
857
|
+
writer.tag(2, WireType.LengthDelimited).string(message.quoteSymbol);
|
|
858
|
+
/* string oracle_type = 3; */
|
|
859
|
+
if (message.oracleType !== "")
|
|
860
|
+
writer.tag(3, WireType.LengthDelimited).string(message.oracleType);
|
|
861
|
+
/* uint32 oracle_scale_factor = 4; */
|
|
862
|
+
if (message.oracleScaleFactor !== 0)
|
|
863
|
+
writer.tag(4, WireType.Varint).uint32(message.oracleScaleFactor);
|
|
864
|
+
/* string price = 5; */
|
|
865
|
+
if (message.price !== "")
|
|
866
|
+
writer.tag(5, WireType.LengthDelimited).string(message.price);
|
|
867
|
+
/* string market_id = 6; */
|
|
868
|
+
if (message.marketId !== "")
|
|
869
|
+
writer.tag(6, WireType.LengthDelimited).string(message.marketId);
|
|
870
|
+
let u = options.writeUnknownFields;
|
|
871
|
+
if (u !== false)
|
|
872
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
873
|
+
return writer;
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
/**
|
|
877
|
+
* @generated MessageType for protobuf message injective_oracle_rpc.PriceV2Result
|
|
878
|
+
*/
|
|
879
|
+
export const PriceV2Result = new PriceV2Result$Type();
|
|
880
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
881
|
+
class StreamPricesRequest$Type extends MessageType<StreamPricesRequest> {
|
|
882
|
+
constructor() {
|
|
883
|
+
super("injective_oracle_rpc.StreamPricesRequest", [
|
|
884
|
+
{ no: 1, name: "base_symbol", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
885
|
+
{ no: 2, name: "quote_symbol", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
886
|
+
{ no: 3, name: "oracle_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
887
|
+
]);
|
|
888
|
+
}
|
|
889
|
+
create(value?: PartialMessage<StreamPricesRequest>): StreamPricesRequest {
|
|
890
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
891
|
+
message.baseSymbol = "";
|
|
892
|
+
message.quoteSymbol = "";
|
|
893
|
+
message.oracleType = "";
|
|
894
|
+
if (value !== undefined)
|
|
895
|
+
reflectionMergePartial<StreamPricesRequest>(this, message, value);
|
|
896
|
+
return message;
|
|
897
|
+
}
|
|
898
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamPricesRequest): StreamPricesRequest {
|
|
899
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
900
|
+
while (reader.pos < end) {
|
|
901
|
+
let [fieldNo, wireType] = reader.tag();
|
|
902
|
+
switch (fieldNo) {
|
|
903
|
+
case /* string base_symbol */ 1:
|
|
904
|
+
message.baseSymbol = reader.string();
|
|
905
|
+
break;
|
|
906
|
+
case /* string quote_symbol */ 2:
|
|
907
|
+
message.quoteSymbol = reader.string();
|
|
908
|
+
break;
|
|
909
|
+
case /* string oracle_type */ 3:
|
|
910
|
+
message.oracleType = reader.string();
|
|
911
|
+
break;
|
|
912
|
+
default:
|
|
913
|
+
let u = options.readUnknownField;
|
|
914
|
+
if (u === "throw")
|
|
915
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
916
|
+
let d = reader.skip(wireType);
|
|
917
|
+
if (u !== false)
|
|
918
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
return message;
|
|
922
|
+
}
|
|
923
|
+
internalBinaryWrite(message: StreamPricesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
924
|
+
/* string base_symbol = 1; */
|
|
925
|
+
if (message.baseSymbol !== "")
|
|
926
|
+
writer.tag(1, WireType.LengthDelimited).string(message.baseSymbol);
|
|
927
|
+
/* string quote_symbol = 2; */
|
|
928
|
+
if (message.quoteSymbol !== "")
|
|
929
|
+
writer.tag(2, WireType.LengthDelimited).string(message.quoteSymbol);
|
|
930
|
+
/* string oracle_type = 3; */
|
|
931
|
+
if (message.oracleType !== "")
|
|
932
|
+
writer.tag(3, WireType.LengthDelimited).string(message.oracleType);
|
|
933
|
+
let u = options.writeUnknownFields;
|
|
934
|
+
if (u !== false)
|
|
935
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
936
|
+
return writer;
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
/**
|
|
940
|
+
* @generated MessageType for protobuf message injective_oracle_rpc.StreamPricesRequest
|
|
941
|
+
*/
|
|
942
|
+
export const StreamPricesRequest = new StreamPricesRequest$Type();
|
|
943
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
944
|
+
class StreamPricesResponse$Type extends MessageType<StreamPricesResponse> {
|
|
945
|
+
constructor() {
|
|
946
|
+
super("injective_oracle_rpc.StreamPricesResponse", [
|
|
947
|
+
{ no: 1, name: "price", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
948
|
+
{ no: 2, name: "timestamp", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
949
|
+
]);
|
|
950
|
+
}
|
|
951
|
+
create(value?: PartialMessage<StreamPricesResponse>): StreamPricesResponse {
|
|
952
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
953
|
+
message.price = "";
|
|
954
|
+
message.timestamp = 0n;
|
|
955
|
+
if (value !== undefined)
|
|
956
|
+
reflectionMergePartial<StreamPricesResponse>(this, message, value);
|
|
957
|
+
return message;
|
|
958
|
+
}
|
|
959
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamPricesResponse): StreamPricesResponse {
|
|
960
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
961
|
+
while (reader.pos < end) {
|
|
962
|
+
let [fieldNo, wireType] = reader.tag();
|
|
963
|
+
switch (fieldNo) {
|
|
964
|
+
case /* string price */ 1:
|
|
965
|
+
message.price = reader.string();
|
|
966
|
+
break;
|
|
967
|
+
case /* sint64 timestamp */ 2:
|
|
968
|
+
message.timestamp = reader.sint64().toBigInt();
|
|
969
|
+
break;
|
|
970
|
+
default:
|
|
971
|
+
let u = options.readUnknownField;
|
|
972
|
+
if (u === "throw")
|
|
973
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
974
|
+
let d = reader.skip(wireType);
|
|
975
|
+
if (u !== false)
|
|
976
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
return message;
|
|
980
|
+
}
|
|
981
|
+
internalBinaryWrite(message: StreamPricesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
982
|
+
/* string price = 1; */
|
|
983
|
+
if (message.price !== "")
|
|
984
|
+
writer.tag(1, WireType.LengthDelimited).string(message.price);
|
|
985
|
+
/* sint64 timestamp = 2; */
|
|
986
|
+
if (message.timestamp !== 0n)
|
|
987
|
+
writer.tag(2, WireType.Varint).sint64(message.timestamp);
|
|
988
|
+
let u = options.writeUnknownFields;
|
|
989
|
+
if (u !== false)
|
|
990
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
991
|
+
return writer;
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
/**
|
|
995
|
+
* @generated MessageType for protobuf message injective_oracle_rpc.StreamPricesResponse
|
|
996
|
+
*/
|
|
997
|
+
export const StreamPricesResponse = new StreamPricesResponse$Type();
|
|
998
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
999
|
+
class StreamPricesByMarketsRequest$Type extends MessageType<StreamPricesByMarketsRequest> {
|
|
1000
|
+
constructor() {
|
|
1001
|
+
super("injective_oracle_rpc.StreamPricesByMarketsRequest", [
|
|
1002
|
+
{ no: 1, name: "market_ids", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
1003
|
+
]);
|
|
1004
|
+
}
|
|
1005
|
+
create(value?: PartialMessage<StreamPricesByMarketsRequest>): StreamPricesByMarketsRequest {
|
|
1006
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1007
|
+
message.marketIds = [];
|
|
1008
|
+
if (value !== undefined)
|
|
1009
|
+
reflectionMergePartial<StreamPricesByMarketsRequest>(this, message, value);
|
|
1010
|
+
return message;
|
|
1011
|
+
}
|
|
1012
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamPricesByMarketsRequest): StreamPricesByMarketsRequest {
|
|
1013
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1014
|
+
while (reader.pos < end) {
|
|
1015
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1016
|
+
switch (fieldNo) {
|
|
1017
|
+
case /* repeated string market_ids */ 1:
|
|
1018
|
+
message.marketIds.push(reader.string());
|
|
1019
|
+
break;
|
|
1020
|
+
default:
|
|
1021
|
+
let u = options.readUnknownField;
|
|
1022
|
+
if (u === "throw")
|
|
1023
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1024
|
+
let d = reader.skip(wireType);
|
|
1025
|
+
if (u !== false)
|
|
1026
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
return message;
|
|
1030
|
+
}
|
|
1031
|
+
internalBinaryWrite(message: StreamPricesByMarketsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1032
|
+
/* repeated string market_ids = 1; */
|
|
1033
|
+
for (let i = 0; i < message.marketIds.length; i++)
|
|
1034
|
+
writer.tag(1, WireType.LengthDelimited).string(message.marketIds[i]);
|
|
1035
|
+
let u = options.writeUnknownFields;
|
|
1036
|
+
if (u !== false)
|
|
1037
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1038
|
+
return writer;
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
/**
|
|
1042
|
+
* @generated MessageType for protobuf message injective_oracle_rpc.StreamPricesByMarketsRequest
|
|
1043
|
+
*/
|
|
1044
|
+
export const StreamPricesByMarketsRequest = new StreamPricesByMarketsRequest$Type();
|
|
1045
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1046
|
+
class StreamPricesByMarketsResponse$Type extends MessageType<StreamPricesByMarketsResponse> {
|
|
1047
|
+
constructor() {
|
|
1048
|
+
super("injective_oracle_rpc.StreamPricesByMarketsResponse", [
|
|
1049
|
+
{ no: 1, name: "price", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1050
|
+
{ no: 2, name: "timestamp", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1051
|
+
{ no: 3, name: "market_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1052
|
+
]);
|
|
1053
|
+
}
|
|
1054
|
+
create(value?: PartialMessage<StreamPricesByMarketsResponse>): StreamPricesByMarketsResponse {
|
|
1055
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1056
|
+
message.price = "";
|
|
1057
|
+
message.timestamp = 0n;
|
|
1058
|
+
message.marketId = "";
|
|
1059
|
+
if (value !== undefined)
|
|
1060
|
+
reflectionMergePartial<StreamPricesByMarketsResponse>(this, message, value);
|
|
1061
|
+
return message;
|
|
1062
|
+
}
|
|
1063
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StreamPricesByMarketsResponse): StreamPricesByMarketsResponse {
|
|
1064
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1065
|
+
while (reader.pos < end) {
|
|
1066
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1067
|
+
switch (fieldNo) {
|
|
1068
|
+
case /* string price */ 1:
|
|
1069
|
+
message.price = reader.string();
|
|
1070
|
+
break;
|
|
1071
|
+
case /* sint64 timestamp */ 2:
|
|
1072
|
+
message.timestamp = reader.sint64().toBigInt();
|
|
1073
|
+
break;
|
|
1074
|
+
case /* string market_id */ 3:
|
|
1075
|
+
message.marketId = reader.string();
|
|
1076
|
+
break;
|
|
1077
|
+
default:
|
|
1078
|
+
let u = options.readUnknownField;
|
|
1079
|
+
if (u === "throw")
|
|
1080
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1081
|
+
let d = reader.skip(wireType);
|
|
1082
|
+
if (u !== false)
|
|
1083
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
return message;
|
|
1087
|
+
}
|
|
1088
|
+
internalBinaryWrite(message: StreamPricesByMarketsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1089
|
+
/* string price = 1; */
|
|
1090
|
+
if (message.price !== "")
|
|
1091
|
+
writer.tag(1, WireType.LengthDelimited).string(message.price);
|
|
1092
|
+
/* sint64 timestamp = 2; */
|
|
1093
|
+
if (message.timestamp !== 0n)
|
|
1094
|
+
writer.tag(2, WireType.Varint).sint64(message.timestamp);
|
|
1095
|
+
/* string market_id = 3; */
|
|
1096
|
+
if (message.marketId !== "")
|
|
1097
|
+
writer.tag(3, WireType.LengthDelimited).string(message.marketId);
|
|
1098
|
+
let u = options.writeUnknownFields;
|
|
1099
|
+
if (u !== false)
|
|
1100
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1101
|
+
return writer;
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
/**
|
|
1105
|
+
* @generated MessageType for protobuf message injective_oracle_rpc.StreamPricesByMarketsResponse
|
|
1106
|
+
*/
|
|
1107
|
+
export const StreamPricesByMarketsResponse = new StreamPricesByMarketsResponse$Type();
|
|
1108
|
+
/**
|
|
1109
|
+
* @generated ServiceType for protobuf service injective_oracle_rpc.InjectiveOracleRPC
|
|
1110
|
+
*/
|
|
1111
|
+
export const InjectiveOracleRPC = new ServiceType("injective_oracle_rpc.InjectiveOracleRPC", [
|
|
1112
|
+
{ name: "OracleList", options: {}, I: OracleListRequest, O: OracleListResponse },
|
|
1113
|
+
{ name: "Price", options: {}, I: PriceRequest, O: PriceResponse },
|
|
1114
|
+
{ name: "PriceV2", options: {}, I: PriceV2Request, O: PriceV2Response },
|
|
1115
|
+
{ name: "StreamPrices", serverStreaming: true, options: {}, I: StreamPricesRequest, O: StreamPricesResponse },
|
|
1116
|
+
{ name: "StreamPricesByMarkets", serverStreaming: true, options: {}, I: StreamPricesByMarketsRequest, O: StreamPricesByMarketsResponse }
|
|
1117
|
+
]);
|