@uniswap/client-data-api 0.0.115 → 0.0.116
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data/v2/api-DataApiService_connectquery.d.ts +14 -1
- package/dist/data/v2/api-DataApiService_connectquery.js +14 -1
- package/dist/data/v2/api_connect.d.ts +10 -1
- package/dist/data/v2/api_connect.js +10 -1
- package/dist/data/v2/api_pb.d.ts +82 -0
- package/dist/data/v2/api_pb.js +101 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
2
|
+
import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from rpc data.v2.DataApiService.GetToken
|
|
5
5
|
*/
|
|
@@ -117,6 +117,19 @@ export declare const getTokenHistoryPrice: {
|
|
|
117
117
|
readonly typeName: "data.v2.DataApiService";
|
|
118
118
|
};
|
|
119
119
|
};
|
|
120
|
+
/**
|
|
121
|
+
* @generated from rpc data.v2.DataApiService.GetTokenHistoryTVL
|
|
122
|
+
*/
|
|
123
|
+
export declare const getTokenHistoryTVL: {
|
|
124
|
+
readonly localName: "getTokenHistoryTVL";
|
|
125
|
+
readonly name: "GetTokenHistoryTVL";
|
|
126
|
+
readonly kind: MethodKind.Unary;
|
|
127
|
+
readonly I: typeof GetTokenHistoryTVLRequest;
|
|
128
|
+
readonly O: typeof GetTokenHistoryTVLResponse;
|
|
129
|
+
readonly service: {
|
|
130
|
+
readonly typeName: "data.v2.DataApiService";
|
|
131
|
+
};
|
|
132
|
+
};
|
|
120
133
|
/**
|
|
121
134
|
* @generated from rpc data.v2.DataApiService.ConvertFiat
|
|
122
135
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
6
|
-
import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
6
|
+
import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from rpc data.v2.DataApiService.GetToken
|
|
9
9
|
*/
|
|
@@ -121,6 +121,19 @@ export const getTokenHistoryPrice = {
|
|
|
121
121
|
typeName: "data.v2.DataApiService"
|
|
122
122
|
}
|
|
123
123
|
};
|
|
124
|
+
/**
|
|
125
|
+
* @generated from rpc data.v2.DataApiService.GetTokenHistoryTVL
|
|
126
|
+
*/
|
|
127
|
+
export const getTokenHistoryTVL = {
|
|
128
|
+
localName: "getTokenHistoryTVL",
|
|
129
|
+
name: "GetTokenHistoryTVL",
|
|
130
|
+
kind: MethodKind.Unary,
|
|
131
|
+
I: GetTokenHistoryTVLRequest,
|
|
132
|
+
O: GetTokenHistoryTVLResponse,
|
|
133
|
+
service: {
|
|
134
|
+
typeName: "data.v2.DataApiService"
|
|
135
|
+
}
|
|
136
|
+
};
|
|
124
137
|
/**
|
|
125
138
|
* @generated from rpc data.v2.DataApiService.ConvertFiat
|
|
126
139
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
1
|
+
import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
2
2
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from service data.v2.DataApiService
|
|
@@ -87,6 +87,15 @@ export declare const DataApiService: {
|
|
|
87
87
|
readonly O: typeof GetTokenHistoryPriceResponse;
|
|
88
88
|
readonly kind: MethodKind.Unary;
|
|
89
89
|
};
|
|
90
|
+
/**
|
|
91
|
+
* @generated from rpc data.v2.DataApiService.GetTokenHistoryTVL
|
|
92
|
+
*/
|
|
93
|
+
readonly getTokenHistoryTVL: {
|
|
94
|
+
readonly name: "GetTokenHistoryTVL";
|
|
95
|
+
readonly I: typeof GetTokenHistoryTVLRequest;
|
|
96
|
+
readonly O: typeof GetTokenHistoryTVLResponse;
|
|
97
|
+
readonly kind: MethodKind.Unary;
|
|
98
|
+
};
|
|
90
99
|
/**
|
|
91
100
|
* @generated from rpc data.v2.DataApiService.ConvertFiat
|
|
92
101
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// @generated from file data/v2/api.proto (package data.v2, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
|
-
import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
5
|
+
import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
6
6
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from service data.v2.DataApiService
|
|
@@ -91,6 +91,15 @@ export const DataApiService = {
|
|
|
91
91
|
O: GetTokenHistoryPriceResponse,
|
|
92
92
|
kind: MethodKind.Unary,
|
|
93
93
|
},
|
|
94
|
+
/**
|
|
95
|
+
* @generated from rpc data.v2.DataApiService.GetTokenHistoryTVL
|
|
96
|
+
*/
|
|
97
|
+
getTokenHistoryTVL: {
|
|
98
|
+
name: "GetTokenHistoryTVL",
|
|
99
|
+
I: GetTokenHistoryTVLRequest,
|
|
100
|
+
O: GetTokenHistoryTVLResponse,
|
|
101
|
+
kind: MethodKind.Unary,
|
|
102
|
+
},
|
|
94
103
|
/**
|
|
95
104
|
* @generated from rpc data.v2.DataApiService.ConvertFiat
|
|
96
105
|
*/
|
package/dist/data/v2/api_pb.d.ts
CHANGED
|
@@ -392,6 +392,88 @@ export declare class PricePoint extends Message<PricePoint> {
|
|
|
392
392
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PricePoint;
|
|
393
393
|
static equals(a: PricePoint | PlainMessage<PricePoint> | undefined, b: PricePoint | PlainMessage<PricePoint> | undefined): boolean;
|
|
394
394
|
}
|
|
395
|
+
/**
|
|
396
|
+
* @generated from message data.v2.GetTokenHistoryTVLRequest
|
|
397
|
+
*/
|
|
398
|
+
export declare class GetTokenHistoryTVLRequest extends Message<GetTokenHistoryTVLRequest> {
|
|
399
|
+
/**
|
|
400
|
+
* @generated from oneof data.v2.GetTokenHistoryTVLRequest.target
|
|
401
|
+
*/
|
|
402
|
+
target: {
|
|
403
|
+
/**
|
|
404
|
+
* @generated from field: data.v2.TokenIdentifier single_chain = 1;
|
|
405
|
+
*/
|
|
406
|
+
value: TokenIdentifier;
|
|
407
|
+
case: "singleChain";
|
|
408
|
+
} | {
|
|
409
|
+
/**
|
|
410
|
+
* SUMs TVL across the asset's chains
|
|
411
|
+
*
|
|
412
|
+
* @generated from field: data.v2.MultichainTarget multichain = 2;
|
|
413
|
+
*/
|
|
414
|
+
value: MultichainTarget;
|
|
415
|
+
case: "multichain";
|
|
416
|
+
} | {
|
|
417
|
+
case: undefined;
|
|
418
|
+
value?: undefined;
|
|
419
|
+
};
|
|
420
|
+
/**
|
|
421
|
+
* UNSPECIFIED -> DAY
|
|
422
|
+
*
|
|
423
|
+
* @generated from field: data.v2.HistoryDuration duration = 3;
|
|
424
|
+
*/
|
|
425
|
+
duration: HistoryDuration;
|
|
426
|
+
constructor(data?: PartialMessage<GetTokenHistoryTVLRequest>);
|
|
427
|
+
static readonly runtime: typeof proto3;
|
|
428
|
+
static readonly typeName = "data.v2.GetTokenHistoryTVLRequest";
|
|
429
|
+
static readonly fields: FieldList;
|
|
430
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTokenHistoryTVLRequest;
|
|
431
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTokenHistoryTVLRequest;
|
|
432
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokenHistoryTVLRequest;
|
|
433
|
+
static equals(a: GetTokenHistoryTVLRequest | PlainMessage<GetTokenHistoryTVLRequest> | undefined, b: GetTokenHistoryTVLRequest | PlainMessage<GetTokenHistoryTVLRequest> | undefined): boolean;
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* @generated from message data.v2.GetTokenHistoryTVLResponse
|
|
437
|
+
*/
|
|
438
|
+
export declare class GetTokenHistoryTVLResponse extends Message<GetTokenHistoryTVLResponse> {
|
|
439
|
+
/**
|
|
440
|
+
* @generated from field: repeated data.v2.TvlPoint points = 1;
|
|
441
|
+
*/
|
|
442
|
+
points: TvlPoint[];
|
|
443
|
+
constructor(data?: PartialMessage<GetTokenHistoryTVLResponse>);
|
|
444
|
+
static readonly runtime: typeof proto3;
|
|
445
|
+
static readonly typeName = "data.v2.GetTokenHistoryTVLResponse";
|
|
446
|
+
static readonly fields: FieldList;
|
|
447
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTokenHistoryTVLResponse;
|
|
448
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTokenHistoryTVLResponse;
|
|
449
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokenHistoryTVLResponse;
|
|
450
|
+
static equals(a: GetTokenHistoryTVLResponse | PlainMessage<GetTokenHistoryTVLResponse> | undefined, b: GetTokenHistoryTVLResponse | PlainMessage<GetTokenHistoryTVLResponse> | undefined): boolean;
|
|
451
|
+
}
|
|
452
|
+
/**
|
|
453
|
+
* @generated from message data.v2.TvlPoint
|
|
454
|
+
*/
|
|
455
|
+
export declare class TvlPoint extends Message<TvlPoint> {
|
|
456
|
+
/**
|
|
457
|
+
* unix seconds, bucket start
|
|
458
|
+
*
|
|
459
|
+
* @generated from field: int64 timestamp = 1;
|
|
460
|
+
*/
|
|
461
|
+
timestamp: bigint;
|
|
462
|
+
/**
|
|
463
|
+
* unset when no constituent had a known USD price
|
|
464
|
+
*
|
|
465
|
+
* @generated from field: optional double tvl_usd = 2;
|
|
466
|
+
*/
|
|
467
|
+
tvlUsd?: number;
|
|
468
|
+
constructor(data?: PartialMessage<TvlPoint>);
|
|
469
|
+
static readonly runtime: typeof proto3;
|
|
470
|
+
static readonly typeName = "data.v2.TvlPoint";
|
|
471
|
+
static readonly fields: FieldList;
|
|
472
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TvlPoint;
|
|
473
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TvlPoint;
|
|
474
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TvlPoint;
|
|
475
|
+
static equals(a: TvlPoint | PlainMessage<TvlPoint> | undefined, b: TvlPoint | PlainMessage<TvlPoint> | undefined): boolean;
|
|
476
|
+
}
|
|
395
477
|
/**
|
|
396
478
|
* 1:1 REST port of the legacy GraphQL `convert` query. Cross-currency pairs
|
|
397
479
|
* (e.g. EUR -> JPY) are computed from the same USD-base rates snapshot.
|
package/dist/data/v2/api_pb.js
CHANGED
|
@@ -508,6 +508,107 @@ PricePoint.fields = proto3.util.newFieldList(() => [
|
|
|
508
508
|
{ no: 1, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
509
509
|
{ no: 2, name: "price_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
510
510
|
]);
|
|
511
|
+
/**
|
|
512
|
+
* @generated from message data.v2.GetTokenHistoryTVLRequest
|
|
513
|
+
*/
|
|
514
|
+
export class GetTokenHistoryTVLRequest extends Message {
|
|
515
|
+
constructor(data) {
|
|
516
|
+
super();
|
|
517
|
+
/**
|
|
518
|
+
* @generated from oneof data.v2.GetTokenHistoryTVLRequest.target
|
|
519
|
+
*/
|
|
520
|
+
this.target = { case: undefined };
|
|
521
|
+
/**
|
|
522
|
+
* UNSPECIFIED -> DAY
|
|
523
|
+
*
|
|
524
|
+
* @generated from field: data.v2.HistoryDuration duration = 3;
|
|
525
|
+
*/
|
|
526
|
+
this.duration = HistoryDuration.UNSPECIFIED;
|
|
527
|
+
proto3.util.initPartial(data, this);
|
|
528
|
+
}
|
|
529
|
+
static fromBinary(bytes, options) {
|
|
530
|
+
return new GetTokenHistoryTVLRequest().fromBinary(bytes, options);
|
|
531
|
+
}
|
|
532
|
+
static fromJson(jsonValue, options) {
|
|
533
|
+
return new GetTokenHistoryTVLRequest().fromJson(jsonValue, options);
|
|
534
|
+
}
|
|
535
|
+
static fromJsonString(jsonString, options) {
|
|
536
|
+
return new GetTokenHistoryTVLRequest().fromJsonString(jsonString, options);
|
|
537
|
+
}
|
|
538
|
+
static equals(a, b) {
|
|
539
|
+
return proto3.util.equals(GetTokenHistoryTVLRequest, a, b);
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
GetTokenHistoryTVLRequest.runtime = proto3;
|
|
543
|
+
GetTokenHistoryTVLRequest.typeName = "data.v2.GetTokenHistoryTVLRequest";
|
|
544
|
+
GetTokenHistoryTVLRequest.fields = proto3.util.newFieldList(() => [
|
|
545
|
+
{ no: 1, name: "single_chain", kind: "message", T: TokenIdentifier, oneof: "target" },
|
|
546
|
+
{ no: 2, name: "multichain", kind: "message", T: MultichainTarget, oneof: "target" },
|
|
547
|
+
{ no: 3, name: "duration", kind: "enum", T: proto3.getEnumType(HistoryDuration) },
|
|
548
|
+
]);
|
|
549
|
+
/**
|
|
550
|
+
* @generated from message data.v2.GetTokenHistoryTVLResponse
|
|
551
|
+
*/
|
|
552
|
+
export class GetTokenHistoryTVLResponse extends Message {
|
|
553
|
+
constructor(data) {
|
|
554
|
+
super();
|
|
555
|
+
/**
|
|
556
|
+
* @generated from field: repeated data.v2.TvlPoint points = 1;
|
|
557
|
+
*/
|
|
558
|
+
this.points = [];
|
|
559
|
+
proto3.util.initPartial(data, this);
|
|
560
|
+
}
|
|
561
|
+
static fromBinary(bytes, options) {
|
|
562
|
+
return new GetTokenHistoryTVLResponse().fromBinary(bytes, options);
|
|
563
|
+
}
|
|
564
|
+
static fromJson(jsonValue, options) {
|
|
565
|
+
return new GetTokenHistoryTVLResponse().fromJson(jsonValue, options);
|
|
566
|
+
}
|
|
567
|
+
static fromJsonString(jsonString, options) {
|
|
568
|
+
return new GetTokenHistoryTVLResponse().fromJsonString(jsonString, options);
|
|
569
|
+
}
|
|
570
|
+
static equals(a, b) {
|
|
571
|
+
return proto3.util.equals(GetTokenHistoryTVLResponse, a, b);
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
GetTokenHistoryTVLResponse.runtime = proto3;
|
|
575
|
+
GetTokenHistoryTVLResponse.typeName = "data.v2.GetTokenHistoryTVLResponse";
|
|
576
|
+
GetTokenHistoryTVLResponse.fields = proto3.util.newFieldList(() => [
|
|
577
|
+
{ no: 1, name: "points", kind: "message", T: TvlPoint, repeated: true },
|
|
578
|
+
]);
|
|
579
|
+
/**
|
|
580
|
+
* @generated from message data.v2.TvlPoint
|
|
581
|
+
*/
|
|
582
|
+
export class TvlPoint extends Message {
|
|
583
|
+
constructor(data) {
|
|
584
|
+
super();
|
|
585
|
+
/**
|
|
586
|
+
* unix seconds, bucket start
|
|
587
|
+
*
|
|
588
|
+
* @generated from field: int64 timestamp = 1;
|
|
589
|
+
*/
|
|
590
|
+
this.timestamp = protoInt64.zero;
|
|
591
|
+
proto3.util.initPartial(data, this);
|
|
592
|
+
}
|
|
593
|
+
static fromBinary(bytes, options) {
|
|
594
|
+
return new TvlPoint().fromBinary(bytes, options);
|
|
595
|
+
}
|
|
596
|
+
static fromJson(jsonValue, options) {
|
|
597
|
+
return new TvlPoint().fromJson(jsonValue, options);
|
|
598
|
+
}
|
|
599
|
+
static fromJsonString(jsonString, options) {
|
|
600
|
+
return new TvlPoint().fromJsonString(jsonString, options);
|
|
601
|
+
}
|
|
602
|
+
static equals(a, b) {
|
|
603
|
+
return proto3.util.equals(TvlPoint, a, b);
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
TvlPoint.runtime = proto3;
|
|
607
|
+
TvlPoint.typeName = "data.v2.TvlPoint";
|
|
608
|
+
TvlPoint.fields = proto3.util.newFieldList(() => [
|
|
609
|
+
{ no: 1, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
610
|
+
{ no: 2, name: "tvl_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
611
|
+
]);
|
|
511
612
|
/**
|
|
512
613
|
* 1:1 REST port of the legacy GraphQL `convert` query. Cross-currency pairs
|
|
513
614
|
* (e.g. EUR -> JPY) are computed from the same USD-base rates snapshot.
|