@miradorlabs/web-grpc 2.32.0 → 2.35.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.
@@ -1,6 +1,6 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v2.12.0
3
+ // protoc-gen-ts_proto v2.12.1
4
4
  // protoc v3.21.12
5
5
  // source: proto/gateway/web/v1/market_gateway.proto
6
6
 
@@ -55,26 +55,35 @@ export const StreamFxRatesRequest: MessageFns<StreamFxRatesRequest> = {
55
55
 
56
56
  decode(input: BinaryReader | Uint8Array, length?: number): StreamFxRatesRequest {
57
57
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
58
- const end = length === undefined ? reader.len : reader.pos + length;
59
- const message = createBaseStreamFxRatesRequest();
60
- while (reader.pos < end) {
61
- const tag = reader.uint32();
62
- switch (tag >>> 3) {
63
- case 1: {
64
- if (tag !== 10) {
65
- break;
58
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
59
+ if (previousRecursionDepth >= 100) {
60
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
61
+ }
62
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
63
+ try {
64
+ const end = length === undefined ? reader.len : reader.pos + length;
65
+ const message = createBaseStreamFxRatesRequest();
66
+ while (reader.pos < end) {
67
+ const tag = reader.uint32();
68
+ switch (tag >>> 3) {
69
+ case 1: {
70
+ if (tag !== 10) {
71
+ break;
72
+ }
73
+
74
+ message.currency = reader.string();
75
+ continue;
66
76
  }
67
-
68
- message.currency = reader.string();
69
- continue;
70
77
  }
78
+ if ((tag & 7) === 4 || tag === 0) {
79
+ break;
80
+ }
81
+ reader.skip(tag & 7);
71
82
  }
72
- if ((tag & 7) === 4 || tag === 0) {
73
- break;
74
- }
75
- reader.skip(tag & 7);
83
+ return message;
84
+ } finally {
85
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
76
86
  }
77
- return message;
78
87
  },
79
88
 
80
89
  fromJSON(object: any): StreamFxRatesRequest {
@@ -116,34 +125,43 @@ export const FxRateEnvelope: MessageFns<FxRateEnvelope> = {
116
125
 
117
126
  decode(input: BinaryReader | Uint8Array, length?: number): FxRateEnvelope {
118
127
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
119
- const end = length === undefined ? reader.len : reader.pos + length;
120
- const message = createBaseFxRateEnvelope();
121
- while (reader.pos < end) {
122
- const tag = reader.uint32();
123
- switch (tag >>> 3) {
124
- case 1: {
125
- if (tag !== 10) {
126
- break;
128
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
129
+ if (previousRecursionDepth >= 100) {
130
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
131
+ }
132
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
133
+ try {
134
+ const end = length === undefined ? reader.len : reader.pos + length;
135
+ const message = createBaseFxRateEnvelope();
136
+ while (reader.pos < end) {
137
+ const tag = reader.uint32();
138
+ switch (tag >>> 3) {
139
+ case 1: {
140
+ if (tag !== 10) {
141
+ break;
142
+ }
143
+
144
+ message.snapshot = FxRateSnapshot.decode(reader, reader.uint32());
145
+ continue;
127
146
  }
147
+ case 2: {
148
+ if (tag !== 18) {
149
+ break;
150
+ }
128
151
 
129
- message.snapshot = FxRateSnapshot.decode(reader, reader.uint32());
130
- continue;
131
- }
132
- case 2: {
133
- if (tag !== 18) {
134
- break;
152
+ message.update = FxRateUpdate.decode(reader, reader.uint32());
153
+ continue;
135
154
  }
136
-
137
- message.update = FxRateUpdate.decode(reader, reader.uint32());
138
- continue;
139
155
  }
156
+ if ((tag & 7) === 4 || tag === 0) {
157
+ break;
158
+ }
159
+ reader.skip(tag & 7);
140
160
  }
141
- if ((tag & 7) === 4 || tag === 0) {
142
- break;
143
- }
144
- reader.skip(tag & 7);
161
+ return message;
162
+ } finally {
163
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
145
164
  }
146
- return message;
147
165
  },
148
166
 
149
167
  fromJSON(object: any): FxRateEnvelope {
@@ -196,34 +214,43 @@ export const FxRateSnapshot: MessageFns<FxRateSnapshot> = {
196
214
 
197
215
  decode(input: BinaryReader | Uint8Array, length?: number): FxRateSnapshot {
198
216
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
199
- const end = length === undefined ? reader.len : reader.pos + length;
200
- const message = createBaseFxRateSnapshot();
201
- while (reader.pos < end) {
202
- const tag = reader.uint32();
203
- switch (tag >>> 3) {
204
- case 1: {
205
- if (tag !== 10) {
206
- break;
217
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
218
+ if (previousRecursionDepth >= 100) {
219
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
220
+ }
221
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
222
+ try {
223
+ const end = length === undefined ? reader.len : reader.pos + length;
224
+ const message = createBaseFxRateSnapshot();
225
+ while (reader.pos < end) {
226
+ const tag = reader.uint32();
227
+ switch (tag >>> 3) {
228
+ case 1: {
229
+ if (tag !== 10) {
230
+ break;
231
+ }
232
+
233
+ message.rates.push(CryptoFxRate.decode(reader, reader.uint32()));
234
+ continue;
207
235
  }
236
+ case 2: {
237
+ if (tag !== 18) {
238
+ break;
239
+ }
208
240
 
209
- message.rates.push(CryptoFxRate.decode(reader, reader.uint32()));
210
- continue;
211
- }
212
- case 2: {
213
- if (tag !== 18) {
214
- break;
241
+ message.currency = reader.string();
242
+ continue;
215
243
  }
216
-
217
- message.currency = reader.string();
218
- continue;
219
244
  }
245
+ if ((tag & 7) === 4 || tag === 0) {
246
+ break;
247
+ }
248
+ reader.skip(tag & 7);
220
249
  }
221
- if ((tag & 7) === 4 || tag === 0) {
222
- break;
223
- }
224
- reader.skip(tag & 7);
250
+ return message;
251
+ } finally {
252
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
225
253
  }
226
- return message;
227
254
  },
228
255
 
229
256
  fromJSON(object: any): FxRateSnapshot {
@@ -272,34 +299,43 @@ export const FxRateUpdate: MessageFns<FxRateUpdate> = {
272
299
 
273
300
  decode(input: BinaryReader | Uint8Array, length?: number): FxRateUpdate {
274
301
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
275
- const end = length === undefined ? reader.len : reader.pos + length;
276
- const message = createBaseFxRateUpdate();
277
- while (reader.pos < end) {
278
- const tag = reader.uint32();
279
- switch (tag >>> 3) {
280
- case 1: {
281
- if (tag !== 10) {
282
- break;
302
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
303
+ if (previousRecursionDepth >= 100) {
304
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
305
+ }
306
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
307
+ try {
308
+ const end = length === undefined ? reader.len : reader.pos + length;
309
+ const message = createBaseFxRateUpdate();
310
+ while (reader.pos < end) {
311
+ const tag = reader.uint32();
312
+ switch (tag >>> 3) {
313
+ case 1: {
314
+ if (tag !== 10) {
315
+ break;
316
+ }
317
+
318
+ message.rates.push(CryptoFxRate.decode(reader, reader.uint32()));
319
+ continue;
283
320
  }
321
+ case 2: {
322
+ if (tag !== 18) {
323
+ break;
324
+ }
284
325
 
285
- message.rates.push(CryptoFxRate.decode(reader, reader.uint32()));
286
- continue;
287
- }
288
- case 2: {
289
- if (tag !== 18) {
290
- break;
326
+ message.currency = reader.string();
327
+ continue;
291
328
  }
292
-
293
- message.currency = reader.string();
294
- continue;
295
329
  }
330
+ if ((tag & 7) === 4 || tag === 0) {
331
+ break;
332
+ }
333
+ reader.skip(tag & 7);
296
334
  }
297
- if ((tag & 7) === 4 || tag === 0) {
298
- break;
299
- }
300
- reader.skip(tag & 7);
335
+ return message;
336
+ } finally {
337
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
301
338
  }
302
- return message;
303
339
  },
304
340
 
305
341
  fromJSON(object: any): FxRateUpdate {
@@ -351,42 +387,51 @@ export const CryptoFxRate: MessageFns<CryptoFxRate> = {
351
387
 
352
388
  decode(input: BinaryReader | Uint8Array, length?: number): CryptoFxRate {
353
389
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
354
- const end = length === undefined ? reader.len : reader.pos + length;
355
- const message = createBaseCryptoFxRate();
356
- while (reader.pos < end) {
357
- const tag = reader.uint32();
358
- switch (tag >>> 3) {
359
- case 1: {
360
- if (tag !== 10) {
361
- break;
390
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
391
+ if (previousRecursionDepth >= 100) {
392
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
393
+ }
394
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
395
+ try {
396
+ const end = length === undefined ? reader.len : reader.pos + length;
397
+ const message = createBaseCryptoFxRate();
398
+ while (reader.pos < end) {
399
+ const tag = reader.uint32();
400
+ switch (tag >>> 3) {
401
+ case 1: {
402
+ if (tag !== 10) {
403
+ break;
404
+ }
405
+
406
+ message.symbol = reader.string();
407
+ continue;
362
408
  }
409
+ case 2: {
410
+ if (tag !== 17) {
411
+ break;
412
+ }
363
413
 
364
- message.symbol = reader.string();
365
- continue;
366
- }
367
- case 2: {
368
- if (tag !== 17) {
369
- break;
414
+ message.price = reader.double();
415
+ continue;
370
416
  }
417
+ case 3: {
418
+ if (tag !== 26) {
419
+ break;
420
+ }
371
421
 
372
- message.price = reader.double();
373
- continue;
374
- }
375
- case 3: {
376
- if (tag !== 26) {
377
- break;
422
+ message.formatted = reader.string();
423
+ continue;
378
424
  }
379
-
380
- message.formatted = reader.string();
381
- continue;
382
425
  }
426
+ if ((tag & 7) === 4 || tag === 0) {
427
+ break;
428
+ }
429
+ reader.skip(tag & 7);
383
430
  }
384
- if ((tag & 7) === 4 || tag === 0) {
385
- break;
386
- }
387
- reader.skip(tag & 7);
431
+ return message;
432
+ } finally {
433
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
388
434
  }
389
- return message;
390
435
  },
391
436
 
392
437
  fromJSON(object: any): CryptoFxRate {