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