@miradorlabs/web-grpc 2.25.0 → 2.26.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.
|
@@ -214,6 +214,11 @@ export enum TraceEventType {
|
|
|
214
214
|
TRACE_EVENT_TYPE_STRIPE_PAYOUT_PAID = 61,
|
|
215
215
|
TRACE_EVENT_TYPE_STRIPE_TRACKING_FINISHED = 62,
|
|
216
216
|
TRACE_EVENT_TYPE_SAFE_TX_SUPERSEDED = 63,
|
|
217
|
+
TRACE_EVENT_TYPE_RATE_HINT_ADDED = 64,
|
|
218
|
+
TRACE_EVENT_TYPE_RATE_TRACKING_STARTED = 65,
|
|
219
|
+
TRACE_EVENT_TYPE_RATE_ADDED = 66,
|
|
220
|
+
TRACE_EVENT_TYPE_RATE_NOT_FOUND = 67,
|
|
221
|
+
TRACE_EVENT_TYPE_RATE_TRACKING_FINISHED = 68,
|
|
217
222
|
UNRECOGNIZED = -1,
|
|
218
223
|
}
|
|
219
224
|
|
|
@@ -375,6 +380,21 @@ export function traceEventTypeFromJSON(object: any): TraceEventType {
|
|
|
375
380
|
case 63:
|
|
376
381
|
case "TRACE_EVENT_TYPE_SAFE_TX_SUPERSEDED":
|
|
377
382
|
return TraceEventType.TRACE_EVENT_TYPE_SAFE_TX_SUPERSEDED;
|
|
383
|
+
case 64:
|
|
384
|
+
case "TRACE_EVENT_TYPE_RATE_HINT_ADDED":
|
|
385
|
+
return TraceEventType.TRACE_EVENT_TYPE_RATE_HINT_ADDED;
|
|
386
|
+
case 65:
|
|
387
|
+
case "TRACE_EVENT_TYPE_RATE_TRACKING_STARTED":
|
|
388
|
+
return TraceEventType.TRACE_EVENT_TYPE_RATE_TRACKING_STARTED;
|
|
389
|
+
case 66:
|
|
390
|
+
case "TRACE_EVENT_TYPE_RATE_ADDED":
|
|
391
|
+
return TraceEventType.TRACE_EVENT_TYPE_RATE_ADDED;
|
|
392
|
+
case 67:
|
|
393
|
+
case "TRACE_EVENT_TYPE_RATE_NOT_FOUND":
|
|
394
|
+
return TraceEventType.TRACE_EVENT_TYPE_RATE_NOT_FOUND;
|
|
395
|
+
case 68:
|
|
396
|
+
case "TRACE_EVENT_TYPE_RATE_TRACKING_FINISHED":
|
|
397
|
+
return TraceEventType.TRACE_EVENT_TYPE_RATE_TRACKING_FINISHED;
|
|
378
398
|
case -1:
|
|
379
399
|
case "UNRECOGNIZED":
|
|
380
400
|
default:
|
|
@@ -488,6 +508,16 @@ export function traceEventTypeToJSON(object: TraceEventType): string {
|
|
|
488
508
|
return "TRACE_EVENT_TYPE_STRIPE_TRACKING_FINISHED";
|
|
489
509
|
case TraceEventType.TRACE_EVENT_TYPE_SAFE_TX_SUPERSEDED:
|
|
490
510
|
return "TRACE_EVENT_TYPE_SAFE_TX_SUPERSEDED";
|
|
511
|
+
case TraceEventType.TRACE_EVENT_TYPE_RATE_HINT_ADDED:
|
|
512
|
+
return "TRACE_EVENT_TYPE_RATE_HINT_ADDED";
|
|
513
|
+
case TraceEventType.TRACE_EVENT_TYPE_RATE_TRACKING_STARTED:
|
|
514
|
+
return "TRACE_EVENT_TYPE_RATE_TRACKING_STARTED";
|
|
515
|
+
case TraceEventType.TRACE_EVENT_TYPE_RATE_ADDED:
|
|
516
|
+
return "TRACE_EVENT_TYPE_RATE_ADDED";
|
|
517
|
+
case TraceEventType.TRACE_EVENT_TYPE_RATE_NOT_FOUND:
|
|
518
|
+
return "TRACE_EVENT_TYPE_RATE_NOT_FOUND";
|
|
519
|
+
case TraceEventType.TRACE_EVENT_TYPE_RATE_TRACKING_FINISHED:
|
|
520
|
+
return "TRACE_EVENT_TYPE_RATE_TRACKING_FINISHED";
|
|
491
521
|
case TraceEventType.UNRECOGNIZED:
|
|
492
522
|
default:
|
|
493
523
|
return "UNRECOGNIZED";
|
|
@@ -1447,6 +1477,92 @@ export function stripeHintStatusToJSON(object: StripeHintStatus): string {
|
|
|
1447
1477
|
}
|
|
1448
1478
|
}
|
|
1449
1479
|
|
|
1480
|
+
/** AssetKind distinguishes a crypto token from a fiat currency for USD rate resolution. */
|
|
1481
|
+
export enum AssetKind {
|
|
1482
|
+
ASSET_KIND_UNSPECIFIED = 0,
|
|
1483
|
+
ASSET_KIND_CRYPTO = 1,
|
|
1484
|
+
ASSET_KIND_FIAT = 2,
|
|
1485
|
+
UNRECOGNIZED = -1,
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
export function assetKindFromJSON(object: any): AssetKind {
|
|
1489
|
+
switch (object) {
|
|
1490
|
+
case 0:
|
|
1491
|
+
case "ASSET_KIND_UNSPECIFIED":
|
|
1492
|
+
return AssetKind.ASSET_KIND_UNSPECIFIED;
|
|
1493
|
+
case 1:
|
|
1494
|
+
case "ASSET_KIND_CRYPTO":
|
|
1495
|
+
return AssetKind.ASSET_KIND_CRYPTO;
|
|
1496
|
+
case 2:
|
|
1497
|
+
case "ASSET_KIND_FIAT":
|
|
1498
|
+
return AssetKind.ASSET_KIND_FIAT;
|
|
1499
|
+
case -1:
|
|
1500
|
+
case "UNRECOGNIZED":
|
|
1501
|
+
default:
|
|
1502
|
+
return AssetKind.UNRECOGNIZED;
|
|
1503
|
+
}
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
export function assetKindToJSON(object: AssetKind): string {
|
|
1507
|
+
switch (object) {
|
|
1508
|
+
case AssetKind.ASSET_KIND_UNSPECIFIED:
|
|
1509
|
+
return "ASSET_KIND_UNSPECIFIED";
|
|
1510
|
+
case AssetKind.ASSET_KIND_CRYPTO:
|
|
1511
|
+
return "ASSET_KIND_CRYPTO";
|
|
1512
|
+
case AssetKind.ASSET_KIND_FIAT:
|
|
1513
|
+
return "ASSET_KIND_FIAT";
|
|
1514
|
+
case AssetKind.UNRECOGNIZED:
|
|
1515
|
+
default:
|
|
1516
|
+
return "UNRECOGNIZED";
|
|
1517
|
+
}
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
/** RateHintStatus indicates the terminal status of a rate hint resolution. */
|
|
1521
|
+
export enum RateHintStatus {
|
|
1522
|
+
RATE_HINT_STATUS_UNSPECIFIED = 0,
|
|
1523
|
+
RATE_HINT_STATUS_SUCCESS = 1,
|
|
1524
|
+
RATE_HINT_STATUS_UNAVAILABLE = 2,
|
|
1525
|
+
RATE_HINT_STATUS_UNSUPPORTED = 3,
|
|
1526
|
+
UNRECOGNIZED = -1,
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
export function rateHintStatusFromJSON(object: any): RateHintStatus {
|
|
1530
|
+
switch (object) {
|
|
1531
|
+
case 0:
|
|
1532
|
+
case "RATE_HINT_STATUS_UNSPECIFIED":
|
|
1533
|
+
return RateHintStatus.RATE_HINT_STATUS_UNSPECIFIED;
|
|
1534
|
+
case 1:
|
|
1535
|
+
case "RATE_HINT_STATUS_SUCCESS":
|
|
1536
|
+
return RateHintStatus.RATE_HINT_STATUS_SUCCESS;
|
|
1537
|
+
case 2:
|
|
1538
|
+
case "RATE_HINT_STATUS_UNAVAILABLE":
|
|
1539
|
+
return RateHintStatus.RATE_HINT_STATUS_UNAVAILABLE;
|
|
1540
|
+
case 3:
|
|
1541
|
+
case "RATE_HINT_STATUS_UNSUPPORTED":
|
|
1542
|
+
return RateHintStatus.RATE_HINT_STATUS_UNSUPPORTED;
|
|
1543
|
+
case -1:
|
|
1544
|
+
case "UNRECOGNIZED":
|
|
1545
|
+
default:
|
|
1546
|
+
return RateHintStatus.UNRECOGNIZED;
|
|
1547
|
+
}
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1550
|
+
export function rateHintStatusToJSON(object: RateHintStatus): string {
|
|
1551
|
+
switch (object) {
|
|
1552
|
+
case RateHintStatus.RATE_HINT_STATUS_UNSPECIFIED:
|
|
1553
|
+
return "RATE_HINT_STATUS_UNSPECIFIED";
|
|
1554
|
+
case RateHintStatus.RATE_HINT_STATUS_SUCCESS:
|
|
1555
|
+
return "RATE_HINT_STATUS_SUCCESS";
|
|
1556
|
+
case RateHintStatus.RATE_HINT_STATUS_UNAVAILABLE:
|
|
1557
|
+
return "RATE_HINT_STATUS_UNAVAILABLE";
|
|
1558
|
+
case RateHintStatus.RATE_HINT_STATUS_UNSUPPORTED:
|
|
1559
|
+
return "RATE_HINT_STATUS_UNSUPPORTED";
|
|
1560
|
+
case RateHintStatus.UNRECOGNIZED:
|
|
1561
|
+
default:
|
|
1562
|
+
return "UNRECOGNIZED";
|
|
1563
|
+
}
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1450
1566
|
export interface ListTracesRequest {
|
|
1451
1567
|
organizationId: string;
|
|
1452
1568
|
projectId: string;
|
|
@@ -1834,6 +1950,11 @@ export interface TraceEventEnvelope {
|
|
|
1834
1950
|
stripePayoutPaid?: StripePayoutPaid | undefined;
|
|
1835
1951
|
stripeTrackingFinished?: StripeTrackingFinished | undefined;
|
|
1836
1952
|
safeTxSuperseded?: SafeTxSuperseded | undefined;
|
|
1953
|
+
rateHintAdded?: RateHintAdded | undefined;
|
|
1954
|
+
rateTrackingStarted?: RateTrackingStarted | undefined;
|
|
1955
|
+
rateAdded?: RateAdded | undefined;
|
|
1956
|
+
rateNotFound?: RateNotFound | undefined;
|
|
1957
|
+
rateTrackingFinished?: RateTrackingFinished | undefined;
|
|
1837
1958
|
}
|
|
1838
1959
|
|
|
1839
1960
|
export interface TraceEventEnvelope_AttributesEntry {
|
|
@@ -2712,6 +2833,52 @@ export interface StripeMoney {
|
|
|
2712
2833
|
currency: string;
|
|
2713
2834
|
}
|
|
2714
2835
|
|
|
2836
|
+
/** RateHintAdded is emitted when a rate hint is submitted. */
|
|
2837
|
+
export interface RateHintAdded {
|
|
2838
|
+
pluginCorrelationId: string;
|
|
2839
|
+
symbol: string;
|
|
2840
|
+
quantity: number;
|
|
2841
|
+
assetKind: AssetKind;
|
|
2842
|
+
clientTimestamp: Date | undefined;
|
|
2843
|
+
}
|
|
2844
|
+
|
|
2845
|
+
/** RateTrackingStarted is emitted when the ratehint plugin begins resolving. */
|
|
2846
|
+
export interface RateTrackingStarted {
|
|
2847
|
+
pluginCorrelationId: string;
|
|
2848
|
+
symbol: string;
|
|
2849
|
+
assetKind: AssetKind;
|
|
2850
|
+
quantity: number;
|
|
2851
|
+
}
|
|
2852
|
+
|
|
2853
|
+
/** RateAdded is the resolved-rate result event carrying the USD spot rate and notional. */
|
|
2854
|
+
export interface RateAdded {
|
|
2855
|
+
pluginCorrelationId: string;
|
|
2856
|
+
symbol: string;
|
|
2857
|
+
assetKind: AssetKind;
|
|
2858
|
+
quantity: number;
|
|
2859
|
+
usdPerUnit: number;
|
|
2860
|
+
usdNotional: number;
|
|
2861
|
+
rateAsOf: Date | undefined;
|
|
2862
|
+
source: string;
|
|
2863
|
+
}
|
|
2864
|
+
|
|
2865
|
+
/** RateNotFound is emitted when no USD rate could be resolved. */
|
|
2866
|
+
export interface RateNotFound {
|
|
2867
|
+
pluginCorrelationId: string;
|
|
2868
|
+
symbol: string;
|
|
2869
|
+
assetKind: AssetKind;
|
|
2870
|
+
quantity: number;
|
|
2871
|
+
message?: string | undefined;
|
|
2872
|
+
}
|
|
2873
|
+
|
|
2874
|
+
/** RateTrackingFinished closes the rate lifecycle with a terminal status. */
|
|
2875
|
+
export interface RateTrackingFinished {
|
|
2876
|
+
pluginCorrelationId: string;
|
|
2877
|
+
status: RateHintStatus;
|
|
2878
|
+
message?: string | undefined;
|
|
2879
|
+
completedAt: Date | undefined;
|
|
2880
|
+
}
|
|
2881
|
+
|
|
2715
2882
|
/** Pagination is used in list requests */
|
|
2716
2883
|
export interface Pagination {
|
|
2717
2884
|
/** Snapshot point for consistent totals */
|
|
@@ -6829,6 +6996,11 @@ function createBaseTraceEventEnvelope(): TraceEventEnvelope {
|
|
|
6829
6996
|
stripePayoutPaid: undefined,
|
|
6830
6997
|
stripeTrackingFinished: undefined,
|
|
6831
6998
|
safeTxSuperseded: undefined,
|
|
6999
|
+
rateHintAdded: undefined,
|
|
7000
|
+
rateTrackingStarted: undefined,
|
|
7001
|
+
rateAdded: undefined,
|
|
7002
|
+
rateNotFound: undefined,
|
|
7003
|
+
rateTrackingFinished: undefined,
|
|
6832
7004
|
};
|
|
6833
7005
|
}
|
|
6834
7006
|
|
|
@@ -7029,6 +7201,21 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
|
|
|
7029
7201
|
if (message.safeTxSuperseded !== undefined) {
|
|
7030
7202
|
SafeTxSuperseded.encode(message.safeTxSuperseded, writer.uint32(586).fork()).join();
|
|
7031
7203
|
}
|
|
7204
|
+
if (message.rateHintAdded !== undefined) {
|
|
7205
|
+
RateHintAdded.encode(message.rateHintAdded, writer.uint32(594).fork()).join();
|
|
7206
|
+
}
|
|
7207
|
+
if (message.rateTrackingStarted !== undefined) {
|
|
7208
|
+
RateTrackingStarted.encode(message.rateTrackingStarted, writer.uint32(602).fork()).join();
|
|
7209
|
+
}
|
|
7210
|
+
if (message.rateAdded !== undefined) {
|
|
7211
|
+
RateAdded.encode(message.rateAdded, writer.uint32(610).fork()).join();
|
|
7212
|
+
}
|
|
7213
|
+
if (message.rateNotFound !== undefined) {
|
|
7214
|
+
RateNotFound.encode(message.rateNotFound, writer.uint32(618).fork()).join();
|
|
7215
|
+
}
|
|
7216
|
+
if (message.rateTrackingFinished !== undefined) {
|
|
7217
|
+
RateTrackingFinished.encode(message.rateTrackingFinished, writer.uint32(626).fork()).join();
|
|
7218
|
+
}
|
|
7032
7219
|
return writer;
|
|
7033
7220
|
},
|
|
7034
7221
|
|
|
@@ -7562,6 +7749,46 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
|
|
|
7562
7749
|
message.safeTxSuperseded = SafeTxSuperseded.decode(reader, reader.uint32());
|
|
7563
7750
|
continue;
|
|
7564
7751
|
}
|
|
7752
|
+
case 74: {
|
|
7753
|
+
if (tag !== 594) {
|
|
7754
|
+
break;
|
|
7755
|
+
}
|
|
7756
|
+
|
|
7757
|
+
message.rateHintAdded = RateHintAdded.decode(reader, reader.uint32());
|
|
7758
|
+
continue;
|
|
7759
|
+
}
|
|
7760
|
+
case 75: {
|
|
7761
|
+
if (tag !== 602) {
|
|
7762
|
+
break;
|
|
7763
|
+
}
|
|
7764
|
+
|
|
7765
|
+
message.rateTrackingStarted = RateTrackingStarted.decode(reader, reader.uint32());
|
|
7766
|
+
continue;
|
|
7767
|
+
}
|
|
7768
|
+
case 76: {
|
|
7769
|
+
if (tag !== 610) {
|
|
7770
|
+
break;
|
|
7771
|
+
}
|
|
7772
|
+
|
|
7773
|
+
message.rateAdded = RateAdded.decode(reader, reader.uint32());
|
|
7774
|
+
continue;
|
|
7775
|
+
}
|
|
7776
|
+
case 77: {
|
|
7777
|
+
if (tag !== 618) {
|
|
7778
|
+
break;
|
|
7779
|
+
}
|
|
7780
|
+
|
|
7781
|
+
message.rateNotFound = RateNotFound.decode(reader, reader.uint32());
|
|
7782
|
+
continue;
|
|
7783
|
+
}
|
|
7784
|
+
case 78: {
|
|
7785
|
+
if (tag !== 626) {
|
|
7786
|
+
break;
|
|
7787
|
+
}
|
|
7788
|
+
|
|
7789
|
+
message.rateTrackingFinished = RateTrackingFinished.decode(reader, reader.uint32());
|
|
7790
|
+
continue;
|
|
7791
|
+
}
|
|
7565
7792
|
}
|
|
7566
7793
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7567
7794
|
break;
|
|
@@ -7882,6 +8109,31 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
|
|
|
7882
8109
|
: isSet(object.safe_tx_superseded)
|
|
7883
8110
|
? SafeTxSuperseded.fromJSON(object.safe_tx_superseded)
|
|
7884
8111
|
: undefined,
|
|
8112
|
+
rateHintAdded: isSet(object.rateHintAdded)
|
|
8113
|
+
? RateHintAdded.fromJSON(object.rateHintAdded)
|
|
8114
|
+
: isSet(object.rate_hint_added)
|
|
8115
|
+
? RateHintAdded.fromJSON(object.rate_hint_added)
|
|
8116
|
+
: undefined,
|
|
8117
|
+
rateTrackingStarted: isSet(object.rateTrackingStarted)
|
|
8118
|
+
? RateTrackingStarted.fromJSON(object.rateTrackingStarted)
|
|
8119
|
+
: isSet(object.rate_tracking_started)
|
|
8120
|
+
? RateTrackingStarted.fromJSON(object.rate_tracking_started)
|
|
8121
|
+
: undefined,
|
|
8122
|
+
rateAdded: isSet(object.rateAdded)
|
|
8123
|
+
? RateAdded.fromJSON(object.rateAdded)
|
|
8124
|
+
: isSet(object.rate_added)
|
|
8125
|
+
? RateAdded.fromJSON(object.rate_added)
|
|
8126
|
+
: undefined,
|
|
8127
|
+
rateNotFound: isSet(object.rateNotFound)
|
|
8128
|
+
? RateNotFound.fromJSON(object.rateNotFound)
|
|
8129
|
+
: isSet(object.rate_not_found)
|
|
8130
|
+
? RateNotFound.fromJSON(object.rate_not_found)
|
|
8131
|
+
: undefined,
|
|
8132
|
+
rateTrackingFinished: isSet(object.rateTrackingFinished)
|
|
8133
|
+
? RateTrackingFinished.fromJSON(object.rateTrackingFinished)
|
|
8134
|
+
: isSet(object.rate_tracking_finished)
|
|
8135
|
+
? RateTrackingFinished.fromJSON(object.rate_tracking_finished)
|
|
8136
|
+
: undefined,
|
|
7885
8137
|
};
|
|
7886
8138
|
},
|
|
7887
8139
|
|
|
@@ -8088,6 +8340,21 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
|
|
|
8088
8340
|
if (message.safeTxSuperseded !== undefined) {
|
|
8089
8341
|
obj.safeTxSuperseded = SafeTxSuperseded.toJSON(message.safeTxSuperseded);
|
|
8090
8342
|
}
|
|
8343
|
+
if (message.rateHintAdded !== undefined) {
|
|
8344
|
+
obj.rateHintAdded = RateHintAdded.toJSON(message.rateHintAdded);
|
|
8345
|
+
}
|
|
8346
|
+
if (message.rateTrackingStarted !== undefined) {
|
|
8347
|
+
obj.rateTrackingStarted = RateTrackingStarted.toJSON(message.rateTrackingStarted);
|
|
8348
|
+
}
|
|
8349
|
+
if (message.rateAdded !== undefined) {
|
|
8350
|
+
obj.rateAdded = RateAdded.toJSON(message.rateAdded);
|
|
8351
|
+
}
|
|
8352
|
+
if (message.rateNotFound !== undefined) {
|
|
8353
|
+
obj.rateNotFound = RateNotFound.toJSON(message.rateNotFound);
|
|
8354
|
+
}
|
|
8355
|
+
if (message.rateTrackingFinished !== undefined) {
|
|
8356
|
+
obj.rateTrackingFinished = RateTrackingFinished.toJSON(message.rateTrackingFinished);
|
|
8357
|
+
}
|
|
8091
8358
|
return obj;
|
|
8092
8359
|
},
|
|
8093
8360
|
|
|
@@ -8280,6 +8547,21 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
|
|
|
8280
8547
|
message.safeTxSuperseded = (object.safeTxSuperseded !== undefined && object.safeTxSuperseded !== null)
|
|
8281
8548
|
? SafeTxSuperseded.fromPartial(object.safeTxSuperseded)
|
|
8282
8549
|
: undefined;
|
|
8550
|
+
message.rateHintAdded = (object.rateHintAdded !== undefined && object.rateHintAdded !== null)
|
|
8551
|
+
? RateHintAdded.fromPartial(object.rateHintAdded)
|
|
8552
|
+
: undefined;
|
|
8553
|
+
message.rateTrackingStarted = (object.rateTrackingStarted !== undefined && object.rateTrackingStarted !== null)
|
|
8554
|
+
? RateTrackingStarted.fromPartial(object.rateTrackingStarted)
|
|
8555
|
+
: undefined;
|
|
8556
|
+
message.rateAdded = (object.rateAdded !== undefined && object.rateAdded !== null)
|
|
8557
|
+
? RateAdded.fromPartial(object.rateAdded)
|
|
8558
|
+
: undefined;
|
|
8559
|
+
message.rateNotFound = (object.rateNotFound !== undefined && object.rateNotFound !== null)
|
|
8560
|
+
? RateNotFound.fromPartial(object.rateNotFound)
|
|
8561
|
+
: undefined;
|
|
8562
|
+
message.rateTrackingFinished = (object.rateTrackingFinished !== undefined && object.rateTrackingFinished !== null)
|
|
8563
|
+
? RateTrackingFinished.fromPartial(object.rateTrackingFinished)
|
|
8564
|
+
: undefined;
|
|
8283
8565
|
return message;
|
|
8284
8566
|
},
|
|
8285
8567
|
};
|
|
@@ -18342,6 +18624,707 @@ export const StripeMoney: MessageFns<StripeMoney> = {
|
|
|
18342
18624
|
},
|
|
18343
18625
|
};
|
|
18344
18626
|
|
|
18627
|
+
function createBaseRateHintAdded(): RateHintAdded {
|
|
18628
|
+
return { pluginCorrelationId: "", symbol: "", quantity: 0, assetKind: 0, clientTimestamp: undefined };
|
|
18629
|
+
}
|
|
18630
|
+
|
|
18631
|
+
export const RateHintAdded: MessageFns<RateHintAdded> = {
|
|
18632
|
+
encode(message: RateHintAdded, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
18633
|
+
if (message.pluginCorrelationId !== "") {
|
|
18634
|
+
writer.uint32(10).string(message.pluginCorrelationId);
|
|
18635
|
+
}
|
|
18636
|
+
if (message.symbol !== "") {
|
|
18637
|
+
writer.uint32(18).string(message.symbol);
|
|
18638
|
+
}
|
|
18639
|
+
if (message.quantity !== 0) {
|
|
18640
|
+
writer.uint32(25).double(message.quantity);
|
|
18641
|
+
}
|
|
18642
|
+
if (message.assetKind !== 0) {
|
|
18643
|
+
writer.uint32(32).int32(message.assetKind);
|
|
18644
|
+
}
|
|
18645
|
+
if (message.clientTimestamp !== undefined) {
|
|
18646
|
+
Timestamp.encode(toTimestamp(message.clientTimestamp), writer.uint32(42).fork()).join();
|
|
18647
|
+
}
|
|
18648
|
+
return writer;
|
|
18649
|
+
},
|
|
18650
|
+
|
|
18651
|
+
decode(input: BinaryReader | Uint8Array, length?: number): RateHintAdded {
|
|
18652
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
18653
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
18654
|
+
const message = createBaseRateHintAdded();
|
|
18655
|
+
while (reader.pos < end) {
|
|
18656
|
+
const tag = reader.uint32();
|
|
18657
|
+
switch (tag >>> 3) {
|
|
18658
|
+
case 1: {
|
|
18659
|
+
if (tag !== 10) {
|
|
18660
|
+
break;
|
|
18661
|
+
}
|
|
18662
|
+
|
|
18663
|
+
message.pluginCorrelationId = reader.string();
|
|
18664
|
+
continue;
|
|
18665
|
+
}
|
|
18666
|
+
case 2: {
|
|
18667
|
+
if (tag !== 18) {
|
|
18668
|
+
break;
|
|
18669
|
+
}
|
|
18670
|
+
|
|
18671
|
+
message.symbol = reader.string();
|
|
18672
|
+
continue;
|
|
18673
|
+
}
|
|
18674
|
+
case 3: {
|
|
18675
|
+
if (tag !== 25) {
|
|
18676
|
+
break;
|
|
18677
|
+
}
|
|
18678
|
+
|
|
18679
|
+
message.quantity = reader.double();
|
|
18680
|
+
continue;
|
|
18681
|
+
}
|
|
18682
|
+
case 4: {
|
|
18683
|
+
if (tag !== 32) {
|
|
18684
|
+
break;
|
|
18685
|
+
}
|
|
18686
|
+
|
|
18687
|
+
message.assetKind = reader.int32() as any;
|
|
18688
|
+
continue;
|
|
18689
|
+
}
|
|
18690
|
+
case 5: {
|
|
18691
|
+
if (tag !== 42) {
|
|
18692
|
+
break;
|
|
18693
|
+
}
|
|
18694
|
+
|
|
18695
|
+
message.clientTimestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
18696
|
+
continue;
|
|
18697
|
+
}
|
|
18698
|
+
}
|
|
18699
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
18700
|
+
break;
|
|
18701
|
+
}
|
|
18702
|
+
reader.skip(tag & 7);
|
|
18703
|
+
}
|
|
18704
|
+
return message;
|
|
18705
|
+
},
|
|
18706
|
+
|
|
18707
|
+
fromJSON(object: any): RateHintAdded {
|
|
18708
|
+
return {
|
|
18709
|
+
pluginCorrelationId: isSet(object.pluginCorrelationId)
|
|
18710
|
+
? globalThis.String(object.pluginCorrelationId)
|
|
18711
|
+
: isSet(object.plugin_correlation_id)
|
|
18712
|
+
? globalThis.String(object.plugin_correlation_id)
|
|
18713
|
+
: "",
|
|
18714
|
+
symbol: isSet(object.symbol) ? globalThis.String(object.symbol) : "",
|
|
18715
|
+
quantity: isSet(object.quantity) ? globalThis.Number(object.quantity) : 0,
|
|
18716
|
+
assetKind: isSet(object.assetKind)
|
|
18717
|
+
? assetKindFromJSON(object.assetKind)
|
|
18718
|
+
: isSet(object.asset_kind)
|
|
18719
|
+
? assetKindFromJSON(object.asset_kind)
|
|
18720
|
+
: 0,
|
|
18721
|
+
clientTimestamp: isSet(object.clientTimestamp)
|
|
18722
|
+
? fromJsonTimestamp(object.clientTimestamp)
|
|
18723
|
+
: isSet(object.client_timestamp)
|
|
18724
|
+
? fromJsonTimestamp(object.client_timestamp)
|
|
18725
|
+
: undefined,
|
|
18726
|
+
};
|
|
18727
|
+
},
|
|
18728
|
+
|
|
18729
|
+
toJSON(message: RateHintAdded): unknown {
|
|
18730
|
+
const obj: any = {};
|
|
18731
|
+
if (message.pluginCorrelationId !== "") {
|
|
18732
|
+
obj.pluginCorrelationId = message.pluginCorrelationId;
|
|
18733
|
+
}
|
|
18734
|
+
if (message.symbol !== "") {
|
|
18735
|
+
obj.symbol = message.symbol;
|
|
18736
|
+
}
|
|
18737
|
+
if (message.quantity !== 0) {
|
|
18738
|
+
obj.quantity = message.quantity;
|
|
18739
|
+
}
|
|
18740
|
+
if (message.assetKind !== 0) {
|
|
18741
|
+
obj.assetKind = assetKindToJSON(message.assetKind);
|
|
18742
|
+
}
|
|
18743
|
+
if (message.clientTimestamp !== undefined) {
|
|
18744
|
+
obj.clientTimestamp = message.clientTimestamp.toISOString();
|
|
18745
|
+
}
|
|
18746
|
+
return obj;
|
|
18747
|
+
},
|
|
18748
|
+
|
|
18749
|
+
create<I extends Exact<DeepPartial<RateHintAdded>, I>>(base?: I): RateHintAdded {
|
|
18750
|
+
return RateHintAdded.fromPartial(base ?? ({} as any));
|
|
18751
|
+
},
|
|
18752
|
+
fromPartial<I extends Exact<DeepPartial<RateHintAdded>, I>>(object: I): RateHintAdded {
|
|
18753
|
+
const message = createBaseRateHintAdded();
|
|
18754
|
+
message.pluginCorrelationId = object.pluginCorrelationId ?? "";
|
|
18755
|
+
message.symbol = object.symbol ?? "";
|
|
18756
|
+
message.quantity = object.quantity ?? 0;
|
|
18757
|
+
message.assetKind = object.assetKind ?? 0;
|
|
18758
|
+
message.clientTimestamp = object.clientTimestamp ?? undefined;
|
|
18759
|
+
return message;
|
|
18760
|
+
},
|
|
18761
|
+
};
|
|
18762
|
+
|
|
18763
|
+
function createBaseRateTrackingStarted(): RateTrackingStarted {
|
|
18764
|
+
return { pluginCorrelationId: "", symbol: "", assetKind: 0, quantity: 0 };
|
|
18765
|
+
}
|
|
18766
|
+
|
|
18767
|
+
export const RateTrackingStarted: MessageFns<RateTrackingStarted> = {
|
|
18768
|
+
encode(message: RateTrackingStarted, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
18769
|
+
if (message.pluginCorrelationId !== "") {
|
|
18770
|
+
writer.uint32(10).string(message.pluginCorrelationId);
|
|
18771
|
+
}
|
|
18772
|
+
if (message.symbol !== "") {
|
|
18773
|
+
writer.uint32(18).string(message.symbol);
|
|
18774
|
+
}
|
|
18775
|
+
if (message.assetKind !== 0) {
|
|
18776
|
+
writer.uint32(24).int32(message.assetKind);
|
|
18777
|
+
}
|
|
18778
|
+
if (message.quantity !== 0) {
|
|
18779
|
+
writer.uint32(33).double(message.quantity);
|
|
18780
|
+
}
|
|
18781
|
+
return writer;
|
|
18782
|
+
},
|
|
18783
|
+
|
|
18784
|
+
decode(input: BinaryReader | Uint8Array, length?: number): RateTrackingStarted {
|
|
18785
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
18786
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
18787
|
+
const message = createBaseRateTrackingStarted();
|
|
18788
|
+
while (reader.pos < end) {
|
|
18789
|
+
const tag = reader.uint32();
|
|
18790
|
+
switch (tag >>> 3) {
|
|
18791
|
+
case 1: {
|
|
18792
|
+
if (tag !== 10) {
|
|
18793
|
+
break;
|
|
18794
|
+
}
|
|
18795
|
+
|
|
18796
|
+
message.pluginCorrelationId = reader.string();
|
|
18797
|
+
continue;
|
|
18798
|
+
}
|
|
18799
|
+
case 2: {
|
|
18800
|
+
if (tag !== 18) {
|
|
18801
|
+
break;
|
|
18802
|
+
}
|
|
18803
|
+
|
|
18804
|
+
message.symbol = reader.string();
|
|
18805
|
+
continue;
|
|
18806
|
+
}
|
|
18807
|
+
case 3: {
|
|
18808
|
+
if (tag !== 24) {
|
|
18809
|
+
break;
|
|
18810
|
+
}
|
|
18811
|
+
|
|
18812
|
+
message.assetKind = reader.int32() as any;
|
|
18813
|
+
continue;
|
|
18814
|
+
}
|
|
18815
|
+
case 4: {
|
|
18816
|
+
if (tag !== 33) {
|
|
18817
|
+
break;
|
|
18818
|
+
}
|
|
18819
|
+
|
|
18820
|
+
message.quantity = reader.double();
|
|
18821
|
+
continue;
|
|
18822
|
+
}
|
|
18823
|
+
}
|
|
18824
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
18825
|
+
break;
|
|
18826
|
+
}
|
|
18827
|
+
reader.skip(tag & 7);
|
|
18828
|
+
}
|
|
18829
|
+
return message;
|
|
18830
|
+
},
|
|
18831
|
+
|
|
18832
|
+
fromJSON(object: any): RateTrackingStarted {
|
|
18833
|
+
return {
|
|
18834
|
+
pluginCorrelationId: isSet(object.pluginCorrelationId)
|
|
18835
|
+
? globalThis.String(object.pluginCorrelationId)
|
|
18836
|
+
: isSet(object.plugin_correlation_id)
|
|
18837
|
+
? globalThis.String(object.plugin_correlation_id)
|
|
18838
|
+
: "",
|
|
18839
|
+
symbol: isSet(object.symbol) ? globalThis.String(object.symbol) : "",
|
|
18840
|
+
assetKind: isSet(object.assetKind)
|
|
18841
|
+
? assetKindFromJSON(object.assetKind)
|
|
18842
|
+
: isSet(object.asset_kind)
|
|
18843
|
+
? assetKindFromJSON(object.asset_kind)
|
|
18844
|
+
: 0,
|
|
18845
|
+
quantity: isSet(object.quantity) ? globalThis.Number(object.quantity) : 0,
|
|
18846
|
+
};
|
|
18847
|
+
},
|
|
18848
|
+
|
|
18849
|
+
toJSON(message: RateTrackingStarted): unknown {
|
|
18850
|
+
const obj: any = {};
|
|
18851
|
+
if (message.pluginCorrelationId !== "") {
|
|
18852
|
+
obj.pluginCorrelationId = message.pluginCorrelationId;
|
|
18853
|
+
}
|
|
18854
|
+
if (message.symbol !== "") {
|
|
18855
|
+
obj.symbol = message.symbol;
|
|
18856
|
+
}
|
|
18857
|
+
if (message.assetKind !== 0) {
|
|
18858
|
+
obj.assetKind = assetKindToJSON(message.assetKind);
|
|
18859
|
+
}
|
|
18860
|
+
if (message.quantity !== 0) {
|
|
18861
|
+
obj.quantity = message.quantity;
|
|
18862
|
+
}
|
|
18863
|
+
return obj;
|
|
18864
|
+
},
|
|
18865
|
+
|
|
18866
|
+
create<I extends Exact<DeepPartial<RateTrackingStarted>, I>>(base?: I): RateTrackingStarted {
|
|
18867
|
+
return RateTrackingStarted.fromPartial(base ?? ({} as any));
|
|
18868
|
+
},
|
|
18869
|
+
fromPartial<I extends Exact<DeepPartial<RateTrackingStarted>, I>>(object: I): RateTrackingStarted {
|
|
18870
|
+
const message = createBaseRateTrackingStarted();
|
|
18871
|
+
message.pluginCorrelationId = object.pluginCorrelationId ?? "";
|
|
18872
|
+
message.symbol = object.symbol ?? "";
|
|
18873
|
+
message.assetKind = object.assetKind ?? 0;
|
|
18874
|
+
message.quantity = object.quantity ?? 0;
|
|
18875
|
+
return message;
|
|
18876
|
+
},
|
|
18877
|
+
};
|
|
18878
|
+
|
|
18879
|
+
function createBaseRateAdded(): RateAdded {
|
|
18880
|
+
return {
|
|
18881
|
+
pluginCorrelationId: "",
|
|
18882
|
+
symbol: "",
|
|
18883
|
+
assetKind: 0,
|
|
18884
|
+
quantity: 0,
|
|
18885
|
+
usdPerUnit: 0,
|
|
18886
|
+
usdNotional: 0,
|
|
18887
|
+
rateAsOf: undefined,
|
|
18888
|
+
source: "",
|
|
18889
|
+
};
|
|
18890
|
+
}
|
|
18891
|
+
|
|
18892
|
+
export const RateAdded: MessageFns<RateAdded> = {
|
|
18893
|
+
encode(message: RateAdded, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
18894
|
+
if (message.pluginCorrelationId !== "") {
|
|
18895
|
+
writer.uint32(10).string(message.pluginCorrelationId);
|
|
18896
|
+
}
|
|
18897
|
+
if (message.symbol !== "") {
|
|
18898
|
+
writer.uint32(18).string(message.symbol);
|
|
18899
|
+
}
|
|
18900
|
+
if (message.assetKind !== 0) {
|
|
18901
|
+
writer.uint32(24).int32(message.assetKind);
|
|
18902
|
+
}
|
|
18903
|
+
if (message.quantity !== 0) {
|
|
18904
|
+
writer.uint32(33).double(message.quantity);
|
|
18905
|
+
}
|
|
18906
|
+
if (message.usdPerUnit !== 0) {
|
|
18907
|
+
writer.uint32(41).double(message.usdPerUnit);
|
|
18908
|
+
}
|
|
18909
|
+
if (message.usdNotional !== 0) {
|
|
18910
|
+
writer.uint32(49).double(message.usdNotional);
|
|
18911
|
+
}
|
|
18912
|
+
if (message.rateAsOf !== undefined) {
|
|
18913
|
+
Timestamp.encode(toTimestamp(message.rateAsOf), writer.uint32(58).fork()).join();
|
|
18914
|
+
}
|
|
18915
|
+
if (message.source !== "") {
|
|
18916
|
+
writer.uint32(66).string(message.source);
|
|
18917
|
+
}
|
|
18918
|
+
return writer;
|
|
18919
|
+
},
|
|
18920
|
+
|
|
18921
|
+
decode(input: BinaryReader | Uint8Array, length?: number): RateAdded {
|
|
18922
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
18923
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
18924
|
+
const message = createBaseRateAdded();
|
|
18925
|
+
while (reader.pos < end) {
|
|
18926
|
+
const tag = reader.uint32();
|
|
18927
|
+
switch (tag >>> 3) {
|
|
18928
|
+
case 1: {
|
|
18929
|
+
if (tag !== 10) {
|
|
18930
|
+
break;
|
|
18931
|
+
}
|
|
18932
|
+
|
|
18933
|
+
message.pluginCorrelationId = reader.string();
|
|
18934
|
+
continue;
|
|
18935
|
+
}
|
|
18936
|
+
case 2: {
|
|
18937
|
+
if (tag !== 18) {
|
|
18938
|
+
break;
|
|
18939
|
+
}
|
|
18940
|
+
|
|
18941
|
+
message.symbol = reader.string();
|
|
18942
|
+
continue;
|
|
18943
|
+
}
|
|
18944
|
+
case 3: {
|
|
18945
|
+
if (tag !== 24) {
|
|
18946
|
+
break;
|
|
18947
|
+
}
|
|
18948
|
+
|
|
18949
|
+
message.assetKind = reader.int32() as any;
|
|
18950
|
+
continue;
|
|
18951
|
+
}
|
|
18952
|
+
case 4: {
|
|
18953
|
+
if (tag !== 33) {
|
|
18954
|
+
break;
|
|
18955
|
+
}
|
|
18956
|
+
|
|
18957
|
+
message.quantity = reader.double();
|
|
18958
|
+
continue;
|
|
18959
|
+
}
|
|
18960
|
+
case 5: {
|
|
18961
|
+
if (tag !== 41) {
|
|
18962
|
+
break;
|
|
18963
|
+
}
|
|
18964
|
+
|
|
18965
|
+
message.usdPerUnit = reader.double();
|
|
18966
|
+
continue;
|
|
18967
|
+
}
|
|
18968
|
+
case 6: {
|
|
18969
|
+
if (tag !== 49) {
|
|
18970
|
+
break;
|
|
18971
|
+
}
|
|
18972
|
+
|
|
18973
|
+
message.usdNotional = reader.double();
|
|
18974
|
+
continue;
|
|
18975
|
+
}
|
|
18976
|
+
case 7: {
|
|
18977
|
+
if (tag !== 58) {
|
|
18978
|
+
break;
|
|
18979
|
+
}
|
|
18980
|
+
|
|
18981
|
+
message.rateAsOf = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
18982
|
+
continue;
|
|
18983
|
+
}
|
|
18984
|
+
case 8: {
|
|
18985
|
+
if (tag !== 66) {
|
|
18986
|
+
break;
|
|
18987
|
+
}
|
|
18988
|
+
|
|
18989
|
+
message.source = reader.string();
|
|
18990
|
+
continue;
|
|
18991
|
+
}
|
|
18992
|
+
}
|
|
18993
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
18994
|
+
break;
|
|
18995
|
+
}
|
|
18996
|
+
reader.skip(tag & 7);
|
|
18997
|
+
}
|
|
18998
|
+
return message;
|
|
18999
|
+
},
|
|
19000
|
+
|
|
19001
|
+
fromJSON(object: any): RateAdded {
|
|
19002
|
+
return {
|
|
19003
|
+
pluginCorrelationId: isSet(object.pluginCorrelationId)
|
|
19004
|
+
? globalThis.String(object.pluginCorrelationId)
|
|
19005
|
+
: isSet(object.plugin_correlation_id)
|
|
19006
|
+
? globalThis.String(object.plugin_correlation_id)
|
|
19007
|
+
: "",
|
|
19008
|
+
symbol: isSet(object.symbol) ? globalThis.String(object.symbol) : "",
|
|
19009
|
+
assetKind: isSet(object.assetKind)
|
|
19010
|
+
? assetKindFromJSON(object.assetKind)
|
|
19011
|
+
: isSet(object.asset_kind)
|
|
19012
|
+
? assetKindFromJSON(object.asset_kind)
|
|
19013
|
+
: 0,
|
|
19014
|
+
quantity: isSet(object.quantity) ? globalThis.Number(object.quantity) : 0,
|
|
19015
|
+
usdPerUnit: isSet(object.usdPerUnit)
|
|
19016
|
+
? globalThis.Number(object.usdPerUnit)
|
|
19017
|
+
: isSet(object.usd_per_unit)
|
|
19018
|
+
? globalThis.Number(object.usd_per_unit)
|
|
19019
|
+
: 0,
|
|
19020
|
+
usdNotional: isSet(object.usdNotional)
|
|
19021
|
+
? globalThis.Number(object.usdNotional)
|
|
19022
|
+
: isSet(object.usd_notional)
|
|
19023
|
+
? globalThis.Number(object.usd_notional)
|
|
19024
|
+
: 0,
|
|
19025
|
+
rateAsOf: isSet(object.rateAsOf)
|
|
19026
|
+
? fromJsonTimestamp(object.rateAsOf)
|
|
19027
|
+
: isSet(object.rate_as_of)
|
|
19028
|
+
? fromJsonTimestamp(object.rate_as_of)
|
|
19029
|
+
: undefined,
|
|
19030
|
+
source: isSet(object.source) ? globalThis.String(object.source) : "",
|
|
19031
|
+
};
|
|
19032
|
+
},
|
|
19033
|
+
|
|
19034
|
+
toJSON(message: RateAdded): unknown {
|
|
19035
|
+
const obj: any = {};
|
|
19036
|
+
if (message.pluginCorrelationId !== "") {
|
|
19037
|
+
obj.pluginCorrelationId = message.pluginCorrelationId;
|
|
19038
|
+
}
|
|
19039
|
+
if (message.symbol !== "") {
|
|
19040
|
+
obj.symbol = message.symbol;
|
|
19041
|
+
}
|
|
19042
|
+
if (message.assetKind !== 0) {
|
|
19043
|
+
obj.assetKind = assetKindToJSON(message.assetKind);
|
|
19044
|
+
}
|
|
19045
|
+
if (message.quantity !== 0) {
|
|
19046
|
+
obj.quantity = message.quantity;
|
|
19047
|
+
}
|
|
19048
|
+
if (message.usdPerUnit !== 0) {
|
|
19049
|
+
obj.usdPerUnit = message.usdPerUnit;
|
|
19050
|
+
}
|
|
19051
|
+
if (message.usdNotional !== 0) {
|
|
19052
|
+
obj.usdNotional = message.usdNotional;
|
|
19053
|
+
}
|
|
19054
|
+
if (message.rateAsOf !== undefined) {
|
|
19055
|
+
obj.rateAsOf = message.rateAsOf.toISOString();
|
|
19056
|
+
}
|
|
19057
|
+
if (message.source !== "") {
|
|
19058
|
+
obj.source = message.source;
|
|
19059
|
+
}
|
|
19060
|
+
return obj;
|
|
19061
|
+
},
|
|
19062
|
+
|
|
19063
|
+
create<I extends Exact<DeepPartial<RateAdded>, I>>(base?: I): RateAdded {
|
|
19064
|
+
return RateAdded.fromPartial(base ?? ({} as any));
|
|
19065
|
+
},
|
|
19066
|
+
fromPartial<I extends Exact<DeepPartial<RateAdded>, I>>(object: I): RateAdded {
|
|
19067
|
+
const message = createBaseRateAdded();
|
|
19068
|
+
message.pluginCorrelationId = object.pluginCorrelationId ?? "";
|
|
19069
|
+
message.symbol = object.symbol ?? "";
|
|
19070
|
+
message.assetKind = object.assetKind ?? 0;
|
|
19071
|
+
message.quantity = object.quantity ?? 0;
|
|
19072
|
+
message.usdPerUnit = object.usdPerUnit ?? 0;
|
|
19073
|
+
message.usdNotional = object.usdNotional ?? 0;
|
|
19074
|
+
message.rateAsOf = object.rateAsOf ?? undefined;
|
|
19075
|
+
message.source = object.source ?? "";
|
|
19076
|
+
return message;
|
|
19077
|
+
},
|
|
19078
|
+
};
|
|
19079
|
+
|
|
19080
|
+
function createBaseRateNotFound(): RateNotFound {
|
|
19081
|
+
return { pluginCorrelationId: "", symbol: "", assetKind: 0, quantity: 0, message: undefined };
|
|
19082
|
+
}
|
|
19083
|
+
|
|
19084
|
+
export const RateNotFound: MessageFns<RateNotFound> = {
|
|
19085
|
+
encode(message: RateNotFound, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
19086
|
+
if (message.pluginCorrelationId !== "") {
|
|
19087
|
+
writer.uint32(10).string(message.pluginCorrelationId);
|
|
19088
|
+
}
|
|
19089
|
+
if (message.symbol !== "") {
|
|
19090
|
+
writer.uint32(18).string(message.symbol);
|
|
19091
|
+
}
|
|
19092
|
+
if (message.assetKind !== 0) {
|
|
19093
|
+
writer.uint32(24).int32(message.assetKind);
|
|
19094
|
+
}
|
|
19095
|
+
if (message.quantity !== 0) {
|
|
19096
|
+
writer.uint32(33).double(message.quantity);
|
|
19097
|
+
}
|
|
19098
|
+
if (message.message !== undefined) {
|
|
19099
|
+
writer.uint32(42).string(message.message);
|
|
19100
|
+
}
|
|
19101
|
+
return writer;
|
|
19102
|
+
},
|
|
19103
|
+
|
|
19104
|
+
decode(input: BinaryReader | Uint8Array, length?: number): RateNotFound {
|
|
19105
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
19106
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
19107
|
+
const message = createBaseRateNotFound();
|
|
19108
|
+
while (reader.pos < end) {
|
|
19109
|
+
const tag = reader.uint32();
|
|
19110
|
+
switch (tag >>> 3) {
|
|
19111
|
+
case 1: {
|
|
19112
|
+
if (tag !== 10) {
|
|
19113
|
+
break;
|
|
19114
|
+
}
|
|
19115
|
+
|
|
19116
|
+
message.pluginCorrelationId = reader.string();
|
|
19117
|
+
continue;
|
|
19118
|
+
}
|
|
19119
|
+
case 2: {
|
|
19120
|
+
if (tag !== 18) {
|
|
19121
|
+
break;
|
|
19122
|
+
}
|
|
19123
|
+
|
|
19124
|
+
message.symbol = reader.string();
|
|
19125
|
+
continue;
|
|
19126
|
+
}
|
|
19127
|
+
case 3: {
|
|
19128
|
+
if (tag !== 24) {
|
|
19129
|
+
break;
|
|
19130
|
+
}
|
|
19131
|
+
|
|
19132
|
+
message.assetKind = reader.int32() as any;
|
|
19133
|
+
continue;
|
|
19134
|
+
}
|
|
19135
|
+
case 4: {
|
|
19136
|
+
if (tag !== 33) {
|
|
19137
|
+
break;
|
|
19138
|
+
}
|
|
19139
|
+
|
|
19140
|
+
message.quantity = reader.double();
|
|
19141
|
+
continue;
|
|
19142
|
+
}
|
|
19143
|
+
case 5: {
|
|
19144
|
+
if (tag !== 42) {
|
|
19145
|
+
break;
|
|
19146
|
+
}
|
|
19147
|
+
|
|
19148
|
+
message.message = reader.string();
|
|
19149
|
+
continue;
|
|
19150
|
+
}
|
|
19151
|
+
}
|
|
19152
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
19153
|
+
break;
|
|
19154
|
+
}
|
|
19155
|
+
reader.skip(tag & 7);
|
|
19156
|
+
}
|
|
19157
|
+
return message;
|
|
19158
|
+
},
|
|
19159
|
+
|
|
19160
|
+
fromJSON(object: any): RateNotFound {
|
|
19161
|
+
return {
|
|
19162
|
+
pluginCorrelationId: isSet(object.pluginCorrelationId)
|
|
19163
|
+
? globalThis.String(object.pluginCorrelationId)
|
|
19164
|
+
: isSet(object.plugin_correlation_id)
|
|
19165
|
+
? globalThis.String(object.plugin_correlation_id)
|
|
19166
|
+
: "",
|
|
19167
|
+
symbol: isSet(object.symbol) ? globalThis.String(object.symbol) : "",
|
|
19168
|
+
assetKind: isSet(object.assetKind)
|
|
19169
|
+
? assetKindFromJSON(object.assetKind)
|
|
19170
|
+
: isSet(object.asset_kind)
|
|
19171
|
+
? assetKindFromJSON(object.asset_kind)
|
|
19172
|
+
: 0,
|
|
19173
|
+
quantity: isSet(object.quantity) ? globalThis.Number(object.quantity) : 0,
|
|
19174
|
+
message: isSet(object.message) ? globalThis.String(object.message) : undefined,
|
|
19175
|
+
};
|
|
19176
|
+
},
|
|
19177
|
+
|
|
19178
|
+
toJSON(message: RateNotFound): unknown {
|
|
19179
|
+
const obj: any = {};
|
|
19180
|
+
if (message.pluginCorrelationId !== "") {
|
|
19181
|
+
obj.pluginCorrelationId = message.pluginCorrelationId;
|
|
19182
|
+
}
|
|
19183
|
+
if (message.symbol !== "") {
|
|
19184
|
+
obj.symbol = message.symbol;
|
|
19185
|
+
}
|
|
19186
|
+
if (message.assetKind !== 0) {
|
|
19187
|
+
obj.assetKind = assetKindToJSON(message.assetKind);
|
|
19188
|
+
}
|
|
19189
|
+
if (message.quantity !== 0) {
|
|
19190
|
+
obj.quantity = message.quantity;
|
|
19191
|
+
}
|
|
19192
|
+
if (message.message !== undefined) {
|
|
19193
|
+
obj.message = message.message;
|
|
19194
|
+
}
|
|
19195
|
+
return obj;
|
|
19196
|
+
},
|
|
19197
|
+
|
|
19198
|
+
create<I extends Exact<DeepPartial<RateNotFound>, I>>(base?: I): RateNotFound {
|
|
19199
|
+
return RateNotFound.fromPartial(base ?? ({} as any));
|
|
19200
|
+
},
|
|
19201
|
+
fromPartial<I extends Exact<DeepPartial<RateNotFound>, I>>(object: I): RateNotFound {
|
|
19202
|
+
const message = createBaseRateNotFound();
|
|
19203
|
+
message.pluginCorrelationId = object.pluginCorrelationId ?? "";
|
|
19204
|
+
message.symbol = object.symbol ?? "";
|
|
19205
|
+
message.assetKind = object.assetKind ?? 0;
|
|
19206
|
+
message.quantity = object.quantity ?? 0;
|
|
19207
|
+
message.message = object.message ?? undefined;
|
|
19208
|
+
return message;
|
|
19209
|
+
},
|
|
19210
|
+
};
|
|
19211
|
+
|
|
19212
|
+
function createBaseRateTrackingFinished(): RateTrackingFinished {
|
|
19213
|
+
return { pluginCorrelationId: "", status: 0, message: undefined, completedAt: undefined };
|
|
19214
|
+
}
|
|
19215
|
+
|
|
19216
|
+
export const RateTrackingFinished: MessageFns<RateTrackingFinished> = {
|
|
19217
|
+
encode(message: RateTrackingFinished, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
19218
|
+
if (message.pluginCorrelationId !== "") {
|
|
19219
|
+
writer.uint32(10).string(message.pluginCorrelationId);
|
|
19220
|
+
}
|
|
19221
|
+
if (message.status !== 0) {
|
|
19222
|
+
writer.uint32(16).int32(message.status);
|
|
19223
|
+
}
|
|
19224
|
+
if (message.message !== undefined) {
|
|
19225
|
+
writer.uint32(26).string(message.message);
|
|
19226
|
+
}
|
|
19227
|
+
if (message.completedAt !== undefined) {
|
|
19228
|
+
Timestamp.encode(toTimestamp(message.completedAt), writer.uint32(34).fork()).join();
|
|
19229
|
+
}
|
|
19230
|
+
return writer;
|
|
19231
|
+
},
|
|
19232
|
+
|
|
19233
|
+
decode(input: BinaryReader | Uint8Array, length?: number): RateTrackingFinished {
|
|
19234
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
19235
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
19236
|
+
const message = createBaseRateTrackingFinished();
|
|
19237
|
+
while (reader.pos < end) {
|
|
19238
|
+
const tag = reader.uint32();
|
|
19239
|
+
switch (tag >>> 3) {
|
|
19240
|
+
case 1: {
|
|
19241
|
+
if (tag !== 10) {
|
|
19242
|
+
break;
|
|
19243
|
+
}
|
|
19244
|
+
|
|
19245
|
+
message.pluginCorrelationId = reader.string();
|
|
19246
|
+
continue;
|
|
19247
|
+
}
|
|
19248
|
+
case 2: {
|
|
19249
|
+
if (tag !== 16) {
|
|
19250
|
+
break;
|
|
19251
|
+
}
|
|
19252
|
+
|
|
19253
|
+
message.status = reader.int32() as any;
|
|
19254
|
+
continue;
|
|
19255
|
+
}
|
|
19256
|
+
case 3: {
|
|
19257
|
+
if (tag !== 26) {
|
|
19258
|
+
break;
|
|
19259
|
+
}
|
|
19260
|
+
|
|
19261
|
+
message.message = reader.string();
|
|
19262
|
+
continue;
|
|
19263
|
+
}
|
|
19264
|
+
case 4: {
|
|
19265
|
+
if (tag !== 34) {
|
|
19266
|
+
break;
|
|
19267
|
+
}
|
|
19268
|
+
|
|
19269
|
+
message.completedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
19270
|
+
continue;
|
|
19271
|
+
}
|
|
19272
|
+
}
|
|
19273
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
19274
|
+
break;
|
|
19275
|
+
}
|
|
19276
|
+
reader.skip(tag & 7);
|
|
19277
|
+
}
|
|
19278
|
+
return message;
|
|
19279
|
+
},
|
|
19280
|
+
|
|
19281
|
+
fromJSON(object: any): RateTrackingFinished {
|
|
19282
|
+
return {
|
|
19283
|
+
pluginCorrelationId: isSet(object.pluginCorrelationId)
|
|
19284
|
+
? globalThis.String(object.pluginCorrelationId)
|
|
19285
|
+
: isSet(object.plugin_correlation_id)
|
|
19286
|
+
? globalThis.String(object.plugin_correlation_id)
|
|
19287
|
+
: "",
|
|
19288
|
+
status: isSet(object.status) ? rateHintStatusFromJSON(object.status) : 0,
|
|
19289
|
+
message: isSet(object.message) ? globalThis.String(object.message) : undefined,
|
|
19290
|
+
completedAt: isSet(object.completedAt)
|
|
19291
|
+
? fromJsonTimestamp(object.completedAt)
|
|
19292
|
+
: isSet(object.completed_at)
|
|
19293
|
+
? fromJsonTimestamp(object.completed_at)
|
|
19294
|
+
: undefined,
|
|
19295
|
+
};
|
|
19296
|
+
},
|
|
19297
|
+
|
|
19298
|
+
toJSON(message: RateTrackingFinished): unknown {
|
|
19299
|
+
const obj: any = {};
|
|
19300
|
+
if (message.pluginCorrelationId !== "") {
|
|
19301
|
+
obj.pluginCorrelationId = message.pluginCorrelationId;
|
|
19302
|
+
}
|
|
19303
|
+
if (message.status !== 0) {
|
|
19304
|
+
obj.status = rateHintStatusToJSON(message.status);
|
|
19305
|
+
}
|
|
19306
|
+
if (message.message !== undefined) {
|
|
19307
|
+
obj.message = message.message;
|
|
19308
|
+
}
|
|
19309
|
+
if (message.completedAt !== undefined) {
|
|
19310
|
+
obj.completedAt = message.completedAt.toISOString();
|
|
19311
|
+
}
|
|
19312
|
+
return obj;
|
|
19313
|
+
},
|
|
19314
|
+
|
|
19315
|
+
create<I extends Exact<DeepPartial<RateTrackingFinished>, I>>(base?: I): RateTrackingFinished {
|
|
19316
|
+
return RateTrackingFinished.fromPartial(base ?? ({} as any));
|
|
19317
|
+
},
|
|
19318
|
+
fromPartial<I extends Exact<DeepPartial<RateTrackingFinished>, I>>(object: I): RateTrackingFinished {
|
|
19319
|
+
const message = createBaseRateTrackingFinished();
|
|
19320
|
+
message.pluginCorrelationId = object.pluginCorrelationId ?? "";
|
|
19321
|
+
message.status = object.status ?? 0;
|
|
19322
|
+
message.message = object.message ?? undefined;
|
|
19323
|
+
message.completedAt = object.completedAt ?? undefined;
|
|
19324
|
+
return message;
|
|
19325
|
+
},
|
|
19326
|
+
};
|
|
19327
|
+
|
|
18345
19328
|
function createBasePagination(): Pagination {
|
|
18346
19329
|
return { anchorTimestamp: undefined, page: 0, perPage: 0 };
|
|
18347
19330
|
}
|