@uniswap/client-data-api 0.0.112 → 0.0.114
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/v1/auction_pb.d.ts +11 -0
- package/dist/data/v1/auction_pb.js +1 -0
- 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 +80 -0
- package/dist/data/v2/api_pb.js +105 -0
- package/package.json +1 -1
|
@@ -410,6 +410,17 @@ export declare class Auction extends Message<Auction> {
|
|
|
410
410
|
* @generated from field: optional string x_handle = 42;
|
|
411
411
|
*/
|
|
412
412
|
xHandle?: string;
|
|
413
|
+
/**
|
|
414
|
+
* On-chain scheduled block at which post-auction LBP migration becomes
|
|
415
|
+
* allowed (the singleton strategy's MigratorParameters.migrationBlock,
|
|
416
|
+
* indexed via substreams). Null for old-factory LBP auctions, which emit no
|
|
417
|
+
* migration params — there is no computed fallback. This is when migrate() is
|
|
418
|
+
* permitted, NOT necessarily when it ran — for actual pool creation use
|
|
419
|
+
* lbp_migration_tx_hash / pool_key_hash.
|
|
420
|
+
*
|
|
421
|
+
* @generated from field: optional string lbp_migration_block = 43;
|
|
422
|
+
*/
|
|
423
|
+
lbpMigrationBlock?: string;
|
|
413
424
|
constructor(data?: PartialMessage<Auction>);
|
|
414
425
|
static readonly runtime: typeof proto3;
|
|
415
426
|
static readonly typeName = "data.v1.Auction";
|
|
@@ -489,6 +489,7 @@ Auction.fields = proto3.util.newFieldList(() => [
|
|
|
489
489
|
{ no: 40, name: "token_image_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
490
490
|
{ no: 41, name: "token_description", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
491
491
|
{ no: 42, name: "x_handle", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
492
|
+
{ no: 43, name: "lbp_migration_block", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
492
493
|
]);
|
|
493
494
|
/**
|
|
494
495
|
* Response containing auctions.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
2
|
+
import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from rpc data.v2.DataApiService.GetToken
|
|
5
5
|
*/
|
|
@@ -104,6 +104,19 @@ export declare const getTokenHistoryVolume: {
|
|
|
104
104
|
readonly typeName: "data.v2.DataApiService";
|
|
105
105
|
};
|
|
106
106
|
};
|
|
107
|
+
/**
|
|
108
|
+
* @generated from rpc data.v2.DataApiService.GetTokenHistoryPrice
|
|
109
|
+
*/
|
|
110
|
+
export declare const getTokenHistoryPrice: {
|
|
111
|
+
readonly localName: "getTokenHistoryPrice";
|
|
112
|
+
readonly name: "GetTokenHistoryPrice";
|
|
113
|
+
readonly kind: MethodKind.Unary;
|
|
114
|
+
readonly I: typeof GetTokenHistoryPriceRequest;
|
|
115
|
+
readonly O: typeof GetTokenHistoryPriceResponse;
|
|
116
|
+
readonly service: {
|
|
117
|
+
readonly typeName: "data.v2.DataApiService";
|
|
118
|
+
};
|
|
119
|
+
};
|
|
107
120
|
/**
|
|
108
121
|
* @generated from rpc data.v2.DataApiService.ConvertFiat
|
|
109
122
|
*/
|
|
@@ -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, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
6
|
+
import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from rpc data.v2.DataApiService.GetToken
|
|
9
9
|
*/
|
|
@@ -108,6 +108,19 @@ export const getTokenHistoryVolume = {
|
|
|
108
108
|
typeName: "data.v2.DataApiService"
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
|
+
/**
|
|
112
|
+
* @generated from rpc data.v2.DataApiService.GetTokenHistoryPrice
|
|
113
|
+
*/
|
|
114
|
+
export const getTokenHistoryPrice = {
|
|
115
|
+
localName: "getTokenHistoryPrice",
|
|
116
|
+
name: "GetTokenHistoryPrice",
|
|
117
|
+
kind: MethodKind.Unary,
|
|
118
|
+
I: GetTokenHistoryPriceRequest,
|
|
119
|
+
O: GetTokenHistoryPriceResponse,
|
|
120
|
+
service: {
|
|
121
|
+
typeName: "data.v2.DataApiService"
|
|
122
|
+
}
|
|
123
|
+
};
|
|
111
124
|
/**
|
|
112
125
|
* @generated from rpc data.v2.DataApiService.ConvertFiat
|
|
113
126
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
1
|
+
import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, 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
|
|
@@ -78,6 +78,15 @@ export declare const DataApiService: {
|
|
|
78
78
|
readonly O: typeof GetTokenHistoryVolumeResponse;
|
|
79
79
|
readonly kind: MethodKind.Unary;
|
|
80
80
|
};
|
|
81
|
+
/**
|
|
82
|
+
* @generated from rpc data.v2.DataApiService.GetTokenHistoryPrice
|
|
83
|
+
*/
|
|
84
|
+
readonly getTokenHistoryPrice: {
|
|
85
|
+
readonly name: "GetTokenHistoryPrice";
|
|
86
|
+
readonly I: typeof GetTokenHistoryPriceRequest;
|
|
87
|
+
readonly O: typeof GetTokenHistoryPriceResponse;
|
|
88
|
+
readonly kind: MethodKind.Unary;
|
|
89
|
+
};
|
|
81
90
|
/**
|
|
82
91
|
* @generated from rpc data.v2.DataApiService.ConvertFiat
|
|
83
92
|
*/
|
|
@@ -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, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
5
|
+
import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, 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
|
|
@@ -82,6 +82,15 @@ export const DataApiService = {
|
|
|
82
82
|
O: GetTokenHistoryVolumeResponse,
|
|
83
83
|
kind: MethodKind.Unary,
|
|
84
84
|
},
|
|
85
|
+
/**
|
|
86
|
+
* @generated from rpc data.v2.DataApiService.GetTokenHistoryPrice
|
|
87
|
+
*/
|
|
88
|
+
getTokenHistoryPrice: {
|
|
89
|
+
name: "GetTokenHistoryPrice",
|
|
90
|
+
I: GetTokenHistoryPriceRequest,
|
|
91
|
+
O: GetTokenHistoryPriceResponse,
|
|
92
|
+
kind: MethodKind.Unary,
|
|
93
|
+
},
|
|
85
94
|
/**
|
|
86
95
|
* @generated from rpc data.v2.DataApiService.ConvertFiat
|
|
87
96
|
*/
|
package/dist/data/v2/api_pb.d.ts
CHANGED
|
@@ -312,6 +312,86 @@ export declare class VolumeBucket extends Message<VolumeBucket> {
|
|
|
312
312
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VolumeBucket;
|
|
313
313
|
static equals(a: VolumeBucket | PlainMessage<VolumeBucket> | undefined, b: VolumeBucket | PlainMessage<VolumeBucket> | undefined): boolean;
|
|
314
314
|
}
|
|
315
|
+
/**
|
|
316
|
+
* @generated from message data.v2.GetTokenHistoryPriceRequest
|
|
317
|
+
*/
|
|
318
|
+
export declare class GetTokenHistoryPriceRequest extends Message<GetTokenHistoryPriceRequest> {
|
|
319
|
+
/**
|
|
320
|
+
* @generated from oneof data.v2.GetTokenHistoryPriceRequest.target
|
|
321
|
+
*/
|
|
322
|
+
target: {
|
|
323
|
+
/**
|
|
324
|
+
* @generated from field: data.v2.TokenIdentifier single_chain = 1;
|
|
325
|
+
*/
|
|
326
|
+
value: TokenIdentifier;
|
|
327
|
+
case: "singleChain";
|
|
328
|
+
} | {
|
|
329
|
+
/**
|
|
330
|
+
* canonical chain, not a sum
|
|
331
|
+
*
|
|
332
|
+
* @generated from field: data.v2.MultichainTarget multichain = 2;
|
|
333
|
+
*/
|
|
334
|
+
value: MultichainTarget;
|
|
335
|
+
case: "multichain";
|
|
336
|
+
} | {
|
|
337
|
+
case: undefined;
|
|
338
|
+
value?: undefined;
|
|
339
|
+
};
|
|
340
|
+
/**
|
|
341
|
+
* UNSPECIFIED -> DAY
|
|
342
|
+
*
|
|
343
|
+
* @generated from field: data.v2.HistoryDuration duration = 3;
|
|
344
|
+
*/
|
|
345
|
+
duration: HistoryDuration;
|
|
346
|
+
constructor(data?: PartialMessage<GetTokenHistoryPriceRequest>);
|
|
347
|
+
static readonly runtime: typeof proto3;
|
|
348
|
+
static readonly typeName = "data.v2.GetTokenHistoryPriceRequest";
|
|
349
|
+
static readonly fields: FieldList;
|
|
350
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTokenHistoryPriceRequest;
|
|
351
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTokenHistoryPriceRequest;
|
|
352
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokenHistoryPriceRequest;
|
|
353
|
+
static equals(a: GetTokenHistoryPriceRequest | PlainMessage<GetTokenHistoryPriceRequest> | undefined, b: GetTokenHistoryPriceRequest | PlainMessage<GetTokenHistoryPriceRequest> | undefined): boolean;
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* @generated from message data.v2.GetTokenHistoryPriceResponse
|
|
357
|
+
*/
|
|
358
|
+
export declare class GetTokenHistoryPriceResponse extends Message<GetTokenHistoryPriceResponse> {
|
|
359
|
+
/**
|
|
360
|
+
* @generated from field: repeated data.v2.PricePoint points = 1;
|
|
361
|
+
*/
|
|
362
|
+
points: PricePoint[];
|
|
363
|
+
constructor(data?: PartialMessage<GetTokenHistoryPriceResponse>);
|
|
364
|
+
static readonly runtime: typeof proto3;
|
|
365
|
+
static readonly typeName = "data.v2.GetTokenHistoryPriceResponse";
|
|
366
|
+
static readonly fields: FieldList;
|
|
367
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTokenHistoryPriceResponse;
|
|
368
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTokenHistoryPriceResponse;
|
|
369
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokenHistoryPriceResponse;
|
|
370
|
+
static equals(a: GetTokenHistoryPriceResponse | PlainMessage<GetTokenHistoryPriceResponse> | undefined, b: GetTokenHistoryPriceResponse | PlainMessage<GetTokenHistoryPriceResponse> | undefined): boolean;
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* @generated from message data.v2.PricePoint
|
|
374
|
+
*/
|
|
375
|
+
export declare class PricePoint extends Message<PricePoint> {
|
|
376
|
+
/**
|
|
377
|
+
* unix seconds, bucket start
|
|
378
|
+
*
|
|
379
|
+
* @generated from field: int64 timestamp = 1;
|
|
380
|
+
*/
|
|
381
|
+
timestamp: bigint;
|
|
382
|
+
/**
|
|
383
|
+
* @generated from field: double price_usd = 2;
|
|
384
|
+
*/
|
|
385
|
+
priceUsd: number;
|
|
386
|
+
constructor(data?: PartialMessage<PricePoint>);
|
|
387
|
+
static readonly runtime: typeof proto3;
|
|
388
|
+
static readonly typeName = "data.v2.PricePoint";
|
|
389
|
+
static readonly fields: FieldList;
|
|
390
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PricePoint;
|
|
391
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PricePoint;
|
|
392
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PricePoint;
|
|
393
|
+
static equals(a: PricePoint | PlainMessage<PricePoint> | undefined, b: PricePoint | PlainMessage<PricePoint> | undefined): boolean;
|
|
394
|
+
}
|
|
315
395
|
/**
|
|
316
396
|
* 1:1 REST port of the legacy GraphQL `convert` query. Cross-currency pairs
|
|
317
397
|
* (e.g. EUR -> JPY) are computed from the same USD-base rates snapshot.
|
package/dist/data/v2/api_pb.js
CHANGED
|
@@ -403,6 +403,111 @@ VolumeBucket.fields = proto3.util.newFieldList(() => [
|
|
|
403
403
|
{ no: 1, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
404
404
|
{ no: 2, name: "volume_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
405
405
|
]);
|
|
406
|
+
/**
|
|
407
|
+
* @generated from message data.v2.GetTokenHistoryPriceRequest
|
|
408
|
+
*/
|
|
409
|
+
export class GetTokenHistoryPriceRequest extends Message {
|
|
410
|
+
constructor(data) {
|
|
411
|
+
super();
|
|
412
|
+
/**
|
|
413
|
+
* @generated from oneof data.v2.GetTokenHistoryPriceRequest.target
|
|
414
|
+
*/
|
|
415
|
+
this.target = { case: undefined };
|
|
416
|
+
/**
|
|
417
|
+
* UNSPECIFIED -> DAY
|
|
418
|
+
*
|
|
419
|
+
* @generated from field: data.v2.HistoryDuration duration = 3;
|
|
420
|
+
*/
|
|
421
|
+
this.duration = HistoryDuration.UNSPECIFIED;
|
|
422
|
+
proto3.util.initPartial(data, this);
|
|
423
|
+
}
|
|
424
|
+
static fromBinary(bytes, options) {
|
|
425
|
+
return new GetTokenHistoryPriceRequest().fromBinary(bytes, options);
|
|
426
|
+
}
|
|
427
|
+
static fromJson(jsonValue, options) {
|
|
428
|
+
return new GetTokenHistoryPriceRequest().fromJson(jsonValue, options);
|
|
429
|
+
}
|
|
430
|
+
static fromJsonString(jsonString, options) {
|
|
431
|
+
return new GetTokenHistoryPriceRequest().fromJsonString(jsonString, options);
|
|
432
|
+
}
|
|
433
|
+
static equals(a, b) {
|
|
434
|
+
return proto3.util.equals(GetTokenHistoryPriceRequest, a, b);
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
GetTokenHistoryPriceRequest.runtime = proto3;
|
|
438
|
+
GetTokenHistoryPriceRequest.typeName = "data.v2.GetTokenHistoryPriceRequest";
|
|
439
|
+
GetTokenHistoryPriceRequest.fields = proto3.util.newFieldList(() => [
|
|
440
|
+
{ no: 1, name: "single_chain", kind: "message", T: TokenIdentifier, oneof: "target" },
|
|
441
|
+
{ no: 2, name: "multichain", kind: "message", T: MultichainTarget, oneof: "target" },
|
|
442
|
+
{ no: 3, name: "duration", kind: "enum", T: proto3.getEnumType(HistoryDuration) },
|
|
443
|
+
]);
|
|
444
|
+
/**
|
|
445
|
+
* @generated from message data.v2.GetTokenHistoryPriceResponse
|
|
446
|
+
*/
|
|
447
|
+
export class GetTokenHistoryPriceResponse extends Message {
|
|
448
|
+
constructor(data) {
|
|
449
|
+
super();
|
|
450
|
+
/**
|
|
451
|
+
* @generated from field: repeated data.v2.PricePoint points = 1;
|
|
452
|
+
*/
|
|
453
|
+
this.points = [];
|
|
454
|
+
proto3.util.initPartial(data, this);
|
|
455
|
+
}
|
|
456
|
+
static fromBinary(bytes, options) {
|
|
457
|
+
return new GetTokenHistoryPriceResponse().fromBinary(bytes, options);
|
|
458
|
+
}
|
|
459
|
+
static fromJson(jsonValue, options) {
|
|
460
|
+
return new GetTokenHistoryPriceResponse().fromJson(jsonValue, options);
|
|
461
|
+
}
|
|
462
|
+
static fromJsonString(jsonString, options) {
|
|
463
|
+
return new GetTokenHistoryPriceResponse().fromJsonString(jsonString, options);
|
|
464
|
+
}
|
|
465
|
+
static equals(a, b) {
|
|
466
|
+
return proto3.util.equals(GetTokenHistoryPriceResponse, a, b);
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
GetTokenHistoryPriceResponse.runtime = proto3;
|
|
470
|
+
GetTokenHistoryPriceResponse.typeName = "data.v2.GetTokenHistoryPriceResponse";
|
|
471
|
+
GetTokenHistoryPriceResponse.fields = proto3.util.newFieldList(() => [
|
|
472
|
+
{ no: 1, name: "points", kind: "message", T: PricePoint, repeated: true },
|
|
473
|
+
]);
|
|
474
|
+
/**
|
|
475
|
+
* @generated from message data.v2.PricePoint
|
|
476
|
+
*/
|
|
477
|
+
export class PricePoint extends Message {
|
|
478
|
+
constructor(data) {
|
|
479
|
+
super();
|
|
480
|
+
/**
|
|
481
|
+
* unix seconds, bucket start
|
|
482
|
+
*
|
|
483
|
+
* @generated from field: int64 timestamp = 1;
|
|
484
|
+
*/
|
|
485
|
+
this.timestamp = protoInt64.zero;
|
|
486
|
+
/**
|
|
487
|
+
* @generated from field: double price_usd = 2;
|
|
488
|
+
*/
|
|
489
|
+
this.priceUsd = 0;
|
|
490
|
+
proto3.util.initPartial(data, this);
|
|
491
|
+
}
|
|
492
|
+
static fromBinary(bytes, options) {
|
|
493
|
+
return new PricePoint().fromBinary(bytes, options);
|
|
494
|
+
}
|
|
495
|
+
static fromJson(jsonValue, options) {
|
|
496
|
+
return new PricePoint().fromJson(jsonValue, options);
|
|
497
|
+
}
|
|
498
|
+
static fromJsonString(jsonString, options) {
|
|
499
|
+
return new PricePoint().fromJsonString(jsonString, options);
|
|
500
|
+
}
|
|
501
|
+
static equals(a, b) {
|
|
502
|
+
return proto3.util.equals(PricePoint, a, b);
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
PricePoint.runtime = proto3;
|
|
506
|
+
PricePoint.typeName = "data.v2.PricePoint";
|
|
507
|
+
PricePoint.fields = proto3.util.newFieldList(() => [
|
|
508
|
+
{ no: 1, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
509
|
+
{ no: 2, name: "price_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
510
|
+
]);
|
|
406
511
|
/**
|
|
407
512
|
* 1:1 REST port of the legacy GraphQL `convert` query. Cross-currency pairs
|
|
408
513
|
* (e.g. EUR -> JPY) are computed from the same USD-base rates snapshot.
|