@uniswap/client-data-api 0.0.115 → 0.0.117
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 +90 -0
- package/dist/data/v2/api_pb.js +110 -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
|
@@ -257,6 +257,14 @@ export declare class GetTokenHistoryVolumeRequest extends Message<GetTokenHistor
|
|
|
257
257
|
* @generated from field: data.v2.HistoryDuration duration = 3;
|
|
258
258
|
*/
|
|
259
259
|
duration: HistoryDuration;
|
|
260
|
+
/**
|
|
261
|
+
* Multichain filter: aggregate only these chains. Empty = all chains in the
|
|
262
|
+
* asset's group. Ignored for the single_chain target. Solana volume is
|
|
263
|
+
* included only when its chain id appears here (or the filter is empty).
|
|
264
|
+
*
|
|
265
|
+
* @generated from field: repeated uint32 chain_ids = 4;
|
|
266
|
+
*/
|
|
267
|
+
chainIds: number[];
|
|
260
268
|
constructor(data?: PartialMessage<GetTokenHistoryVolumeRequest>);
|
|
261
269
|
static readonly runtime: typeof proto3;
|
|
262
270
|
static readonly typeName = "data.v2.GetTokenHistoryVolumeRequest";
|
|
@@ -392,6 +400,88 @@ export declare class PricePoint extends Message<PricePoint> {
|
|
|
392
400
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PricePoint;
|
|
393
401
|
static equals(a: PricePoint | PlainMessage<PricePoint> | undefined, b: PricePoint | PlainMessage<PricePoint> | undefined): boolean;
|
|
394
402
|
}
|
|
403
|
+
/**
|
|
404
|
+
* @generated from message data.v2.GetTokenHistoryTVLRequest
|
|
405
|
+
*/
|
|
406
|
+
export declare class GetTokenHistoryTVLRequest extends Message<GetTokenHistoryTVLRequest> {
|
|
407
|
+
/**
|
|
408
|
+
* @generated from oneof data.v2.GetTokenHistoryTVLRequest.target
|
|
409
|
+
*/
|
|
410
|
+
target: {
|
|
411
|
+
/**
|
|
412
|
+
* @generated from field: data.v2.TokenIdentifier single_chain = 1;
|
|
413
|
+
*/
|
|
414
|
+
value: TokenIdentifier;
|
|
415
|
+
case: "singleChain";
|
|
416
|
+
} | {
|
|
417
|
+
/**
|
|
418
|
+
* SUMs TVL across the asset's chains
|
|
419
|
+
*
|
|
420
|
+
* @generated from field: data.v2.MultichainTarget multichain = 2;
|
|
421
|
+
*/
|
|
422
|
+
value: MultichainTarget;
|
|
423
|
+
case: "multichain";
|
|
424
|
+
} | {
|
|
425
|
+
case: undefined;
|
|
426
|
+
value?: undefined;
|
|
427
|
+
};
|
|
428
|
+
/**
|
|
429
|
+
* UNSPECIFIED -> DAY
|
|
430
|
+
*
|
|
431
|
+
* @generated from field: data.v2.HistoryDuration duration = 3;
|
|
432
|
+
*/
|
|
433
|
+
duration: HistoryDuration;
|
|
434
|
+
constructor(data?: PartialMessage<GetTokenHistoryTVLRequest>);
|
|
435
|
+
static readonly runtime: typeof proto3;
|
|
436
|
+
static readonly typeName = "data.v2.GetTokenHistoryTVLRequest";
|
|
437
|
+
static readonly fields: FieldList;
|
|
438
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTokenHistoryTVLRequest;
|
|
439
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTokenHistoryTVLRequest;
|
|
440
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokenHistoryTVLRequest;
|
|
441
|
+
static equals(a: GetTokenHistoryTVLRequest | PlainMessage<GetTokenHistoryTVLRequest> | undefined, b: GetTokenHistoryTVLRequest | PlainMessage<GetTokenHistoryTVLRequest> | undefined): boolean;
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
* @generated from message data.v2.GetTokenHistoryTVLResponse
|
|
445
|
+
*/
|
|
446
|
+
export declare class GetTokenHistoryTVLResponse extends Message<GetTokenHistoryTVLResponse> {
|
|
447
|
+
/**
|
|
448
|
+
* @generated from field: repeated data.v2.TvlPoint points = 1;
|
|
449
|
+
*/
|
|
450
|
+
points: TvlPoint[];
|
|
451
|
+
constructor(data?: PartialMessage<GetTokenHistoryTVLResponse>);
|
|
452
|
+
static readonly runtime: typeof proto3;
|
|
453
|
+
static readonly typeName = "data.v2.GetTokenHistoryTVLResponse";
|
|
454
|
+
static readonly fields: FieldList;
|
|
455
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTokenHistoryTVLResponse;
|
|
456
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTokenHistoryTVLResponse;
|
|
457
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokenHistoryTVLResponse;
|
|
458
|
+
static equals(a: GetTokenHistoryTVLResponse | PlainMessage<GetTokenHistoryTVLResponse> | undefined, b: GetTokenHistoryTVLResponse | PlainMessage<GetTokenHistoryTVLResponse> | undefined): boolean;
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* @generated from message data.v2.TvlPoint
|
|
462
|
+
*/
|
|
463
|
+
export declare class TvlPoint extends Message<TvlPoint> {
|
|
464
|
+
/**
|
|
465
|
+
* unix seconds, bucket start
|
|
466
|
+
*
|
|
467
|
+
* @generated from field: int64 timestamp = 1;
|
|
468
|
+
*/
|
|
469
|
+
timestamp: bigint;
|
|
470
|
+
/**
|
|
471
|
+
* unset when no constituent had a known USD price
|
|
472
|
+
*
|
|
473
|
+
* @generated from field: optional double tvl_usd = 2;
|
|
474
|
+
*/
|
|
475
|
+
tvlUsd?: number;
|
|
476
|
+
constructor(data?: PartialMessage<TvlPoint>);
|
|
477
|
+
static readonly runtime: typeof proto3;
|
|
478
|
+
static readonly typeName = "data.v2.TvlPoint";
|
|
479
|
+
static readonly fields: FieldList;
|
|
480
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TvlPoint;
|
|
481
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TvlPoint;
|
|
482
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TvlPoint;
|
|
483
|
+
static equals(a: TvlPoint | PlainMessage<TvlPoint> | undefined, b: TvlPoint | PlainMessage<TvlPoint> | undefined): boolean;
|
|
484
|
+
}
|
|
395
485
|
/**
|
|
396
486
|
* 1:1 REST port of the legacy GraphQL `convert` query. Cross-currency pairs
|
|
397
487
|
* (e.g. EUR -> JPY) are computed from the same USD-base rates snapshot.
|
package/dist/data/v2/api_pb.js
CHANGED
|
@@ -314,6 +314,14 @@ export class GetTokenHistoryVolumeRequest extends Message {
|
|
|
314
314
|
* @generated from field: data.v2.HistoryDuration duration = 3;
|
|
315
315
|
*/
|
|
316
316
|
this.duration = HistoryDuration.UNSPECIFIED;
|
|
317
|
+
/**
|
|
318
|
+
* Multichain filter: aggregate only these chains. Empty = all chains in the
|
|
319
|
+
* asset's group. Ignored for the single_chain target. Solana volume is
|
|
320
|
+
* included only when its chain id appears here (or the filter is empty).
|
|
321
|
+
*
|
|
322
|
+
* @generated from field: repeated uint32 chain_ids = 4;
|
|
323
|
+
*/
|
|
324
|
+
this.chainIds = [];
|
|
317
325
|
proto3.util.initPartial(data, this);
|
|
318
326
|
}
|
|
319
327
|
static fromBinary(bytes, options) {
|
|
@@ -335,6 +343,7 @@ GetTokenHistoryVolumeRequest.fields = proto3.util.newFieldList(() => [
|
|
|
335
343
|
{ no: 1, name: "single_chain", kind: "message", T: TokenIdentifier, oneof: "target" },
|
|
336
344
|
{ no: 2, name: "multichain", kind: "message", T: MultichainTarget, oneof: "target" },
|
|
337
345
|
{ no: 3, name: "duration", kind: "enum", T: proto3.getEnumType(HistoryDuration) },
|
|
346
|
+
{ no: 4, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
|
|
338
347
|
]);
|
|
339
348
|
/**
|
|
340
349
|
* @generated from message data.v2.GetTokenHistoryVolumeResponse
|
|
@@ -508,6 +517,107 @@ PricePoint.fields = proto3.util.newFieldList(() => [
|
|
|
508
517
|
{ no: 1, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
509
518
|
{ no: 2, name: "price_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
510
519
|
]);
|
|
520
|
+
/**
|
|
521
|
+
* @generated from message data.v2.GetTokenHistoryTVLRequest
|
|
522
|
+
*/
|
|
523
|
+
export class GetTokenHistoryTVLRequest extends Message {
|
|
524
|
+
constructor(data) {
|
|
525
|
+
super();
|
|
526
|
+
/**
|
|
527
|
+
* @generated from oneof data.v2.GetTokenHistoryTVLRequest.target
|
|
528
|
+
*/
|
|
529
|
+
this.target = { case: undefined };
|
|
530
|
+
/**
|
|
531
|
+
* UNSPECIFIED -> DAY
|
|
532
|
+
*
|
|
533
|
+
* @generated from field: data.v2.HistoryDuration duration = 3;
|
|
534
|
+
*/
|
|
535
|
+
this.duration = HistoryDuration.UNSPECIFIED;
|
|
536
|
+
proto3.util.initPartial(data, this);
|
|
537
|
+
}
|
|
538
|
+
static fromBinary(bytes, options) {
|
|
539
|
+
return new GetTokenHistoryTVLRequest().fromBinary(bytes, options);
|
|
540
|
+
}
|
|
541
|
+
static fromJson(jsonValue, options) {
|
|
542
|
+
return new GetTokenHistoryTVLRequest().fromJson(jsonValue, options);
|
|
543
|
+
}
|
|
544
|
+
static fromJsonString(jsonString, options) {
|
|
545
|
+
return new GetTokenHistoryTVLRequest().fromJsonString(jsonString, options);
|
|
546
|
+
}
|
|
547
|
+
static equals(a, b) {
|
|
548
|
+
return proto3.util.equals(GetTokenHistoryTVLRequest, a, b);
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
GetTokenHistoryTVLRequest.runtime = proto3;
|
|
552
|
+
GetTokenHistoryTVLRequest.typeName = "data.v2.GetTokenHistoryTVLRequest";
|
|
553
|
+
GetTokenHistoryTVLRequest.fields = proto3.util.newFieldList(() => [
|
|
554
|
+
{ no: 1, name: "single_chain", kind: "message", T: TokenIdentifier, oneof: "target" },
|
|
555
|
+
{ no: 2, name: "multichain", kind: "message", T: MultichainTarget, oneof: "target" },
|
|
556
|
+
{ no: 3, name: "duration", kind: "enum", T: proto3.getEnumType(HistoryDuration) },
|
|
557
|
+
]);
|
|
558
|
+
/**
|
|
559
|
+
* @generated from message data.v2.GetTokenHistoryTVLResponse
|
|
560
|
+
*/
|
|
561
|
+
export class GetTokenHistoryTVLResponse extends Message {
|
|
562
|
+
constructor(data) {
|
|
563
|
+
super();
|
|
564
|
+
/**
|
|
565
|
+
* @generated from field: repeated data.v2.TvlPoint points = 1;
|
|
566
|
+
*/
|
|
567
|
+
this.points = [];
|
|
568
|
+
proto3.util.initPartial(data, this);
|
|
569
|
+
}
|
|
570
|
+
static fromBinary(bytes, options) {
|
|
571
|
+
return new GetTokenHistoryTVLResponse().fromBinary(bytes, options);
|
|
572
|
+
}
|
|
573
|
+
static fromJson(jsonValue, options) {
|
|
574
|
+
return new GetTokenHistoryTVLResponse().fromJson(jsonValue, options);
|
|
575
|
+
}
|
|
576
|
+
static fromJsonString(jsonString, options) {
|
|
577
|
+
return new GetTokenHistoryTVLResponse().fromJsonString(jsonString, options);
|
|
578
|
+
}
|
|
579
|
+
static equals(a, b) {
|
|
580
|
+
return proto3.util.equals(GetTokenHistoryTVLResponse, a, b);
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
GetTokenHistoryTVLResponse.runtime = proto3;
|
|
584
|
+
GetTokenHistoryTVLResponse.typeName = "data.v2.GetTokenHistoryTVLResponse";
|
|
585
|
+
GetTokenHistoryTVLResponse.fields = proto3.util.newFieldList(() => [
|
|
586
|
+
{ no: 1, name: "points", kind: "message", T: TvlPoint, repeated: true },
|
|
587
|
+
]);
|
|
588
|
+
/**
|
|
589
|
+
* @generated from message data.v2.TvlPoint
|
|
590
|
+
*/
|
|
591
|
+
export class TvlPoint extends Message {
|
|
592
|
+
constructor(data) {
|
|
593
|
+
super();
|
|
594
|
+
/**
|
|
595
|
+
* unix seconds, bucket start
|
|
596
|
+
*
|
|
597
|
+
* @generated from field: int64 timestamp = 1;
|
|
598
|
+
*/
|
|
599
|
+
this.timestamp = protoInt64.zero;
|
|
600
|
+
proto3.util.initPartial(data, this);
|
|
601
|
+
}
|
|
602
|
+
static fromBinary(bytes, options) {
|
|
603
|
+
return new TvlPoint().fromBinary(bytes, options);
|
|
604
|
+
}
|
|
605
|
+
static fromJson(jsonValue, options) {
|
|
606
|
+
return new TvlPoint().fromJson(jsonValue, options);
|
|
607
|
+
}
|
|
608
|
+
static fromJsonString(jsonString, options) {
|
|
609
|
+
return new TvlPoint().fromJsonString(jsonString, options);
|
|
610
|
+
}
|
|
611
|
+
static equals(a, b) {
|
|
612
|
+
return proto3.util.equals(TvlPoint, a, b);
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
TvlPoint.runtime = proto3;
|
|
616
|
+
TvlPoint.typeName = "data.v2.TvlPoint";
|
|
617
|
+
TvlPoint.fields = proto3.util.newFieldList(() => [
|
|
618
|
+
{ no: 1, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
619
|
+
{ no: 2, name: "tvl_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
620
|
+
]);
|
|
511
621
|
/**
|
|
512
622
|
* 1:1 REST port of the legacy GraphQL `convert` query. Cross-currency pairs
|
|
513
623
|
* (e.g. EUR -> JPY) are computed from the same USD-base rates snapshot.
|