@uniswap/client-data-api 0.0.91 → 0.0.92
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/api_pb.d.ts +8 -2
- package/dist/data/v1/api_pb.js +9 -2
- 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 +45 -1
- package/dist/data/v2/api_pb.js +72 -1
- package/dist/data/v2/types_pb.d.ts +96 -0
- package/dist/data/v2/types_pb.js +98 -0
- package/package.json +1 -1
package/dist/data/v1/api_pb.d.ts
CHANGED
|
@@ -1917,6 +1917,12 @@ export declare class ListRankedRwasRequest extends Message<ListRankedRwasRequest
|
|
|
1917
1917
|
* @generated from field: repeated uint32 chain_ids = 2;
|
|
1918
1918
|
*/
|
|
1919
1919
|
chainIds: number[];
|
|
1920
|
+
/**
|
|
1921
|
+
* Opt-in; sparkline_1d is empty at all levels when false/unset.
|
|
1922
|
+
*
|
|
1923
|
+
* @generated from field: bool include_sparkline_1d = 3;
|
|
1924
|
+
*/
|
|
1925
|
+
includeSparkline1d: boolean;
|
|
1920
1926
|
constructor(data?: PartialMessage<ListRankedRwasRequest>);
|
|
1921
1927
|
static readonly runtime: typeof proto3;
|
|
1922
1928
|
static readonly typeName = "data.v1.ListRankedRwasRequest";
|
|
@@ -1984,7 +1990,7 @@ export declare class RankedRwa extends Message<RankedRwa> {
|
|
|
1984
1990
|
*/
|
|
1985
1991
|
priceChange24hPct?: number;
|
|
1986
1992
|
/**
|
|
1987
|
-
* @generated from field: data.v1.RwaSparkline sparkline_1d = 10;
|
|
1993
|
+
* @generated from field: optional data.v1.RwaSparkline sparkline_1d = 10;
|
|
1988
1994
|
*/
|
|
1989
1995
|
sparkline1d?: RwaSparkline;
|
|
1990
1996
|
/**
|
|
@@ -2045,7 +2051,7 @@ export declare class IssuerMultichainToken extends Message<IssuerMultichainToken
|
|
|
2045
2051
|
*/
|
|
2046
2052
|
priceChange24hPct?: number;
|
|
2047
2053
|
/**
|
|
2048
|
-
* @generated from field: data.v1.RwaSparkline sparkline_1d = 11;
|
|
2054
|
+
* @generated from field: optional data.v1.RwaSparkline sparkline_1d = 11;
|
|
2049
2055
|
*/
|
|
2050
2056
|
sparkline1d?: RwaSparkline;
|
|
2051
2057
|
/**
|
package/dist/data/v1/api_pb.js
CHANGED
|
@@ -2602,6 +2602,12 @@ export class ListRankedRwasRequest extends Message {
|
|
|
2602
2602
|
* @generated from field: repeated uint32 chain_ids = 2;
|
|
2603
2603
|
*/
|
|
2604
2604
|
this.chainIds = [];
|
|
2605
|
+
/**
|
|
2606
|
+
* Opt-in; sparkline_1d is empty at all levels when false/unset.
|
|
2607
|
+
*
|
|
2608
|
+
* @generated from field: bool include_sparkline_1d = 3;
|
|
2609
|
+
*/
|
|
2610
|
+
this.includeSparkline1d = false;
|
|
2605
2611
|
proto3.util.initPartial(data, this);
|
|
2606
2612
|
}
|
|
2607
2613
|
static fromBinary(bytes, options) {
|
|
@@ -2622,6 +2628,7 @@ ListRankedRwasRequest.typeName = "data.v1.ListRankedRwasRequest";
|
|
|
2622
2628
|
ListRankedRwasRequest.fields = proto3.util.newFieldList(() => [
|
|
2623
2629
|
{ no: 1, name: "category", kind: "enum", T: proto3.getEnumType(RwaCategory) },
|
|
2624
2630
|
{ no: 2, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
|
|
2631
|
+
{ no: 3, name: "include_sparkline_1d", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
2625
2632
|
]);
|
|
2626
2633
|
/**
|
|
2627
2634
|
* @generated from message data.v1.ListRankedRwasResponse
|
|
@@ -2710,7 +2717,7 @@ RankedRwa.fields = proto3.util.newFieldList(() => [
|
|
|
2710
2717
|
{ no: 7, name: "fdv_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
2711
2718
|
{ no: 8, name: "price_change_1h_pct", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
2712
2719
|
{ no: 9, name: "price_change_24h_pct", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
2713
|
-
{ no: 10, name: "sparkline_1d", kind: "message", T: RwaSparkline },
|
|
2720
|
+
{ no: 10, name: "sparkline_1d", kind: "message", T: RwaSparkline, opt: true },
|
|
2714
2721
|
{ no: 11, name: "issuer_tokens", kind: "message", T: IssuerMultichainToken, repeated: true },
|
|
2715
2722
|
]);
|
|
2716
2723
|
/**
|
|
@@ -2775,7 +2782,7 @@ IssuerMultichainToken.fields = proto3.util.newFieldList(() => [
|
|
|
2775
2782
|
{ no: 8, name: "fdv_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
2776
2783
|
{ no: 9, name: "price_change_1h_pct", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
2777
2784
|
{ no: 10, name: "price_change_24h_pct", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
2778
|
-
{ no: 11, name: "sparkline_1d", kind: "message", T: RwaSparkline },
|
|
2785
|
+
{ no: 11, name: "sparkline_1d", kind: "message", T: RwaSparkline, opt: true },
|
|
2779
2786
|
{ no: 12, name: "chain_tokens", kind: "message", T: RwaChainToken, repeated: true },
|
|
2780
2787
|
]);
|
|
2781
2788
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { GetEarnPositionRequest, GetEarnPositionResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
2
|
+
import { GetEarnPositionRequest, GetEarnPositionResponse, 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
|
*/
|
|
@@ -52,6 +52,19 @@ export declare const listTokens: {
|
|
|
52
52
|
readonly typeName: "data.v2.DataApiService";
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
|
+
/**
|
|
56
|
+
* @generated from rpc data.v2.DataApiService.GetTokenMarkets
|
|
57
|
+
*/
|
|
58
|
+
export declare const getTokenMarkets: {
|
|
59
|
+
readonly localName: "getTokenMarkets";
|
|
60
|
+
readonly name: "GetTokenMarkets";
|
|
61
|
+
readonly kind: MethodKind.Unary;
|
|
62
|
+
readonly I: typeof GetTokenMarketsRequest;
|
|
63
|
+
readonly O: typeof GetTokenMarketsResponse;
|
|
64
|
+
readonly service: {
|
|
65
|
+
readonly typeName: "data.v2.DataApiService";
|
|
66
|
+
};
|
|
67
|
+
};
|
|
55
68
|
/**
|
|
56
69
|
* @generated from rpc data.v2.DataApiService.ListEarnVaults
|
|
57
70
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
6
|
-
import { GetEarnPositionRequest, GetEarnPositionResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
6
|
+
import { GetEarnPositionRequest, GetEarnPositionResponse, 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
|
*/
|
|
@@ -56,6 +56,19 @@ export const listTokens = {
|
|
|
56
56
|
typeName: "data.v2.DataApiService"
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
|
+
/**
|
|
60
|
+
* @generated from rpc data.v2.DataApiService.GetTokenMarkets
|
|
61
|
+
*/
|
|
62
|
+
export const getTokenMarkets = {
|
|
63
|
+
localName: "getTokenMarkets",
|
|
64
|
+
name: "GetTokenMarkets",
|
|
65
|
+
kind: MethodKind.Unary,
|
|
66
|
+
I: GetTokenMarketsRequest,
|
|
67
|
+
O: GetTokenMarketsResponse,
|
|
68
|
+
service: {
|
|
69
|
+
typeName: "data.v2.DataApiService"
|
|
70
|
+
}
|
|
71
|
+
};
|
|
59
72
|
/**
|
|
60
73
|
* @generated from rpc data.v2.DataApiService.ListEarnVaults
|
|
61
74
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetEarnPositionRequest, GetEarnPositionResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
1
|
+
import { GetEarnPositionRequest, GetEarnPositionResponse, 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
|
|
@@ -42,6 +42,15 @@ export declare const DataApiService: {
|
|
|
42
42
|
readonly O: typeof ListTokensResponse;
|
|
43
43
|
readonly kind: MethodKind.Unary;
|
|
44
44
|
};
|
|
45
|
+
/**
|
|
46
|
+
* @generated from rpc data.v2.DataApiService.GetTokenMarkets
|
|
47
|
+
*/
|
|
48
|
+
readonly getTokenMarkets: {
|
|
49
|
+
readonly name: "GetTokenMarkets";
|
|
50
|
+
readonly I: typeof GetTokenMarketsRequest;
|
|
51
|
+
readonly O: typeof GetTokenMarketsResponse;
|
|
52
|
+
readonly kind: MethodKind.Unary;
|
|
53
|
+
};
|
|
45
54
|
/**
|
|
46
55
|
* @generated from rpc data.v2.DataApiService.ListEarnVaults
|
|
47
56
|
*/
|
|
@@ -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 { GetEarnPositionRequest, GetEarnPositionResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
5
|
+
import { GetEarnPositionRequest, GetEarnPositionResponse, 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
|
|
@@ -46,6 +46,15 @@ export const DataApiService = {
|
|
|
46
46
|
O: ListTokensResponse,
|
|
47
47
|
kind: MethodKind.Unary,
|
|
48
48
|
},
|
|
49
|
+
/**
|
|
50
|
+
* @generated from rpc data.v2.DataApiService.GetTokenMarkets
|
|
51
|
+
*/
|
|
52
|
+
getTokenMarkets: {
|
|
53
|
+
name: "GetTokenMarkets",
|
|
54
|
+
I: GetTokenMarketsRequest,
|
|
55
|
+
O: GetTokenMarketsResponse,
|
|
56
|
+
kind: MethodKind.Unary,
|
|
57
|
+
},
|
|
49
58
|
/**
|
|
50
59
|
* @generated from rpc data.v2.DataApiService.ListEarnVaults
|
|
51
60
|
*/
|
package/dist/data/v2/api_pb.d.ts
CHANGED
|
@@ -1,8 +1,52 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
2
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
-
import { MultichainToken, RankedMultichainToken, Token, TokenListFilter, TokensSort } from "./types_pb.js";
|
|
3
|
+
import { HistoryDuration, MultichainToken, RankedMultichainToken, Token, TokenListFilter, TokenMarket, TokensSort } from "./types_pb.js";
|
|
4
4
|
import { EarnPosition, EarnVault } from "./earn_pb.js";
|
|
5
5
|
import { PageRequest, PageResponse } from "./common_pb.js";
|
|
6
|
+
/**
|
|
7
|
+
* @generated from message data.v2.GetTokenMarketsRequest
|
|
8
|
+
*/
|
|
9
|
+
export declare class GetTokenMarketsRequest extends Message<GetTokenMarketsRequest> {
|
|
10
|
+
/**
|
|
11
|
+
* max 100
|
|
12
|
+
*
|
|
13
|
+
* @generated from field: repeated data.v2.TokenIdentifier tokens = 1;
|
|
14
|
+
*/
|
|
15
|
+
tokens: TokenIdentifier[];
|
|
16
|
+
/**
|
|
17
|
+
* volume_usd window for all tokens; UNSPECIFIED defaults to DAY
|
|
18
|
+
*
|
|
19
|
+
* @generated from field: data.v2.HistoryDuration duration = 2;
|
|
20
|
+
*/
|
|
21
|
+
duration: HistoryDuration;
|
|
22
|
+
constructor(data?: PartialMessage<GetTokenMarketsRequest>);
|
|
23
|
+
static readonly runtime: typeof proto3;
|
|
24
|
+
static readonly typeName = "data.v2.GetTokenMarketsRequest";
|
|
25
|
+
static readonly fields: FieldList;
|
|
26
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTokenMarketsRequest;
|
|
27
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTokenMarketsRequest;
|
|
28
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokenMarketsRequest;
|
|
29
|
+
static equals(a: GetTokenMarketsRequest | PlainMessage<GetTokenMarketsRequest> | undefined, b: GetTokenMarketsRequest | PlainMessage<GetTokenMarketsRequest> | undefined): boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @generated from message data.v2.GetTokenMarketsResponse
|
|
33
|
+
*/
|
|
34
|
+
export declare class GetTokenMarketsResponse extends Message<GetTokenMarketsResponse> {
|
|
35
|
+
/**
|
|
36
|
+
* One TokenMarket per requested token, in request order.
|
|
37
|
+
*
|
|
38
|
+
* @generated from field: repeated data.v2.TokenMarket markets = 1;
|
|
39
|
+
*/
|
|
40
|
+
markets: TokenMarket[];
|
|
41
|
+
constructor(data?: PartialMessage<GetTokenMarketsResponse>);
|
|
42
|
+
static readonly runtime: typeof proto3;
|
|
43
|
+
static readonly typeName = "data.v2.GetTokenMarketsResponse";
|
|
44
|
+
static readonly fields: FieldList;
|
|
45
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTokenMarketsResponse;
|
|
46
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTokenMarketsResponse;
|
|
47
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokenMarketsResponse;
|
|
48
|
+
static equals(a: GetTokenMarketsResponse | PlainMessage<GetTokenMarketsResponse> | undefined, b: GetTokenMarketsResponse | PlainMessage<GetTokenMarketsResponse> | undefined): boolean;
|
|
49
|
+
}
|
|
6
50
|
/**
|
|
7
51
|
* @generated from message data.v2.GetTokenRequest
|
|
8
52
|
*/
|
package/dist/data/v2/api_pb.js
CHANGED
|
@@ -3,9 +3,80 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
|
-
import { MultichainToken, RankedMultichainToken, Token, TokenListFilter, TokensSort } from "./types_pb.js";
|
|
6
|
+
import { HistoryDuration, MultichainToken, RankedMultichainToken, Token, TokenListFilter, TokenMarket, TokensSort } from "./types_pb.js";
|
|
7
7
|
import { EarnPosition, EarnVault } from "./earn_pb.js";
|
|
8
8
|
import { PageRequest, PageResponse } from "./common_pb.js";
|
|
9
|
+
/**
|
|
10
|
+
* @generated from message data.v2.GetTokenMarketsRequest
|
|
11
|
+
*/
|
|
12
|
+
export class GetTokenMarketsRequest extends Message {
|
|
13
|
+
constructor(data) {
|
|
14
|
+
super();
|
|
15
|
+
/**
|
|
16
|
+
* max 100
|
|
17
|
+
*
|
|
18
|
+
* @generated from field: repeated data.v2.TokenIdentifier tokens = 1;
|
|
19
|
+
*/
|
|
20
|
+
this.tokens = [];
|
|
21
|
+
/**
|
|
22
|
+
* volume_usd window for all tokens; UNSPECIFIED defaults to DAY
|
|
23
|
+
*
|
|
24
|
+
* @generated from field: data.v2.HistoryDuration duration = 2;
|
|
25
|
+
*/
|
|
26
|
+
this.duration = HistoryDuration.UNSPECIFIED;
|
|
27
|
+
proto3.util.initPartial(data, this);
|
|
28
|
+
}
|
|
29
|
+
static fromBinary(bytes, options) {
|
|
30
|
+
return new GetTokenMarketsRequest().fromBinary(bytes, options);
|
|
31
|
+
}
|
|
32
|
+
static fromJson(jsonValue, options) {
|
|
33
|
+
return new GetTokenMarketsRequest().fromJson(jsonValue, options);
|
|
34
|
+
}
|
|
35
|
+
static fromJsonString(jsonString, options) {
|
|
36
|
+
return new GetTokenMarketsRequest().fromJsonString(jsonString, options);
|
|
37
|
+
}
|
|
38
|
+
static equals(a, b) {
|
|
39
|
+
return proto3.util.equals(GetTokenMarketsRequest, a, b);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
GetTokenMarketsRequest.runtime = proto3;
|
|
43
|
+
GetTokenMarketsRequest.typeName = "data.v2.GetTokenMarketsRequest";
|
|
44
|
+
GetTokenMarketsRequest.fields = proto3.util.newFieldList(() => [
|
|
45
|
+
{ no: 1, name: "tokens", kind: "message", T: TokenIdentifier, repeated: true },
|
|
46
|
+
{ no: 2, name: "duration", kind: "enum", T: proto3.getEnumType(HistoryDuration) },
|
|
47
|
+
]);
|
|
48
|
+
/**
|
|
49
|
+
* @generated from message data.v2.GetTokenMarketsResponse
|
|
50
|
+
*/
|
|
51
|
+
export class GetTokenMarketsResponse extends Message {
|
|
52
|
+
constructor(data) {
|
|
53
|
+
super();
|
|
54
|
+
/**
|
|
55
|
+
* One TokenMarket per requested token, in request order.
|
|
56
|
+
*
|
|
57
|
+
* @generated from field: repeated data.v2.TokenMarket markets = 1;
|
|
58
|
+
*/
|
|
59
|
+
this.markets = [];
|
|
60
|
+
proto3.util.initPartial(data, this);
|
|
61
|
+
}
|
|
62
|
+
static fromBinary(bytes, options) {
|
|
63
|
+
return new GetTokenMarketsResponse().fromBinary(bytes, options);
|
|
64
|
+
}
|
|
65
|
+
static fromJson(jsonValue, options) {
|
|
66
|
+
return new GetTokenMarketsResponse().fromJson(jsonValue, options);
|
|
67
|
+
}
|
|
68
|
+
static fromJsonString(jsonString, options) {
|
|
69
|
+
return new GetTokenMarketsResponse().fromJsonString(jsonString, options);
|
|
70
|
+
}
|
|
71
|
+
static equals(a, b) {
|
|
72
|
+
return proto3.util.equals(GetTokenMarketsResponse, a, b);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
GetTokenMarketsResponse.runtime = proto3;
|
|
76
|
+
GetTokenMarketsResponse.typeName = "data.v2.GetTokenMarketsResponse";
|
|
77
|
+
GetTokenMarketsResponse.fields = proto3.util.newFieldList(() => [
|
|
78
|
+
{ no: 1, name: "markets", kind: "message", T: TokenMarket, repeated: true },
|
|
79
|
+
]);
|
|
9
80
|
/**
|
|
10
81
|
* @generated from message data.v2.GetTokenRequest
|
|
11
82
|
*/
|
|
@@ -50,6 +50,43 @@ export declare enum TokensOrderBy {
|
|
|
50
50
|
*/
|
|
51
51
|
PRICE_CHANGE_1D = 10
|
|
52
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* Time window for windowed token-market stats; FIVE_MINUTE is intentionally omitted.
|
|
55
|
+
*
|
|
56
|
+
* @generated from enum data.v2.HistoryDuration
|
|
57
|
+
*/
|
|
58
|
+
export declare enum HistoryDuration {
|
|
59
|
+
/**
|
|
60
|
+
* server defaults to DAY
|
|
61
|
+
*
|
|
62
|
+
* @generated from enum value: HISTORY_DURATION_UNSPECIFIED = 0;
|
|
63
|
+
*/
|
|
64
|
+
UNSPECIFIED = 0,
|
|
65
|
+
/**
|
|
66
|
+
* @generated from enum value: HISTORY_DURATION_HOUR = 1;
|
|
67
|
+
*/
|
|
68
|
+
HOUR = 1,
|
|
69
|
+
/**
|
|
70
|
+
* @generated from enum value: HISTORY_DURATION_DAY = 2;
|
|
71
|
+
*/
|
|
72
|
+
DAY = 2,
|
|
73
|
+
/**
|
|
74
|
+
* @generated from enum value: HISTORY_DURATION_WEEK = 3;
|
|
75
|
+
*/
|
|
76
|
+
WEEK = 3,
|
|
77
|
+
/**
|
|
78
|
+
* @generated from enum value: HISTORY_DURATION_MONTH = 4;
|
|
79
|
+
*/
|
|
80
|
+
MONTH = 4,
|
|
81
|
+
/**
|
|
82
|
+
* @generated from enum value: HISTORY_DURATION_YEAR = 5;
|
|
83
|
+
*/
|
|
84
|
+
YEAR = 5,
|
|
85
|
+
/**
|
|
86
|
+
* @generated from enum value: HISTORY_DURATION_MAX = 6;
|
|
87
|
+
*/
|
|
88
|
+
MAX = 6
|
|
89
|
+
}
|
|
53
90
|
/**
|
|
54
91
|
* Volume, TVL, FDV, and price-change stats for a ranked token. All values are USD-denominated.
|
|
55
92
|
* All fields are populated from Clickhouse aggregations.
|
|
@@ -235,6 +272,65 @@ export declare class TokenPriceData extends Message<TokenPriceData> {
|
|
|
235
272
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenPriceData;
|
|
236
273
|
static equals(a: TokenPriceData | PlainMessage<TokenPriceData> | undefined, b: TokenPriceData | PlainMessage<TokenPriceData> | undefined): boolean;
|
|
237
274
|
}
|
|
275
|
+
/**
|
|
276
|
+
* Live on-chain market stats for a single token, USD-denominated.
|
|
277
|
+
*
|
|
278
|
+
* @generated from message data.v2.TokenMarket
|
|
279
|
+
*/
|
|
280
|
+
export declare class TokenMarket extends Message<TokenMarket> {
|
|
281
|
+
/**
|
|
282
|
+
* @generated from field: uint32 chain_id = 1;
|
|
283
|
+
*/
|
|
284
|
+
chainId: number;
|
|
285
|
+
/**
|
|
286
|
+
* @generated from field: string address = 2;
|
|
287
|
+
*/
|
|
288
|
+
address: string;
|
|
289
|
+
/**
|
|
290
|
+
* @generated from field: optional double total_value_locked_usd = 3;
|
|
291
|
+
*/
|
|
292
|
+
totalValueLockedUsd?: number;
|
|
293
|
+
/**
|
|
294
|
+
* reserved; unset
|
|
295
|
+
*
|
|
296
|
+
* @generated from field: optional double market_cap_usd = 4;
|
|
297
|
+
*/
|
|
298
|
+
marketCapUsd?: number;
|
|
299
|
+
/**
|
|
300
|
+
* reserved; unset
|
|
301
|
+
*
|
|
302
|
+
* @generated from field: optional double fully_diluted_valuation_usd = 5;
|
|
303
|
+
*/
|
|
304
|
+
fullyDilutedValuationUsd?: number;
|
|
305
|
+
/**
|
|
306
|
+
* @generated from field: optional double price_high_52w_usd = 6;
|
|
307
|
+
*/
|
|
308
|
+
priceHigh52wUsd?: number;
|
|
309
|
+
/**
|
|
310
|
+
* @generated from field: optional double price_low_52w_usd = 7;
|
|
311
|
+
*/
|
|
312
|
+
priceLow52wUsd?: number;
|
|
313
|
+
/**
|
|
314
|
+
* over volume_duration
|
|
315
|
+
*
|
|
316
|
+
* @generated from field: optional double volume_usd = 8;
|
|
317
|
+
*/
|
|
318
|
+
volumeUsd?: number;
|
|
319
|
+
/**
|
|
320
|
+
* echoes the requested duration (UNSPECIFIED → DAY)
|
|
321
|
+
*
|
|
322
|
+
* @generated from field: data.v2.HistoryDuration volume_duration = 9;
|
|
323
|
+
*/
|
|
324
|
+
volumeDuration: HistoryDuration;
|
|
325
|
+
constructor(data?: PartialMessage<TokenMarket>);
|
|
326
|
+
static readonly runtime: typeof proto3;
|
|
327
|
+
static readonly typeName = "data.v2.TokenMarket";
|
|
328
|
+
static readonly fields: FieldList;
|
|
329
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenMarket;
|
|
330
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenMarket;
|
|
331
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenMarket;
|
|
332
|
+
static equals(a: TokenMarket | PlainMessage<TokenMarket> | undefined, b: TokenMarket | PlainMessage<TokenMarket> | undefined): boolean;
|
|
333
|
+
}
|
|
238
334
|
/**
|
|
239
335
|
* @generated from message data.v2.TokenSafety
|
|
240
336
|
*/
|
package/dist/data/v2/types_pb.js
CHANGED
|
@@ -68,6 +68,54 @@ proto3.util.setEnumType(TokensOrderBy, "data.v2.TokensOrderBy", [
|
|
|
68
68
|
{ no: 9, name: "TOKENS_ORDER_BY_PRICE_CHANGE_1H" },
|
|
69
69
|
{ no: 10, name: "TOKENS_ORDER_BY_PRICE_CHANGE_1D" },
|
|
70
70
|
]);
|
|
71
|
+
/**
|
|
72
|
+
* Time window for windowed token-market stats; FIVE_MINUTE is intentionally omitted.
|
|
73
|
+
*
|
|
74
|
+
* @generated from enum data.v2.HistoryDuration
|
|
75
|
+
*/
|
|
76
|
+
export var HistoryDuration;
|
|
77
|
+
(function (HistoryDuration) {
|
|
78
|
+
/**
|
|
79
|
+
* server defaults to DAY
|
|
80
|
+
*
|
|
81
|
+
* @generated from enum value: HISTORY_DURATION_UNSPECIFIED = 0;
|
|
82
|
+
*/
|
|
83
|
+
HistoryDuration[HistoryDuration["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
84
|
+
/**
|
|
85
|
+
* @generated from enum value: HISTORY_DURATION_HOUR = 1;
|
|
86
|
+
*/
|
|
87
|
+
HistoryDuration[HistoryDuration["HOUR"] = 1] = "HOUR";
|
|
88
|
+
/**
|
|
89
|
+
* @generated from enum value: HISTORY_DURATION_DAY = 2;
|
|
90
|
+
*/
|
|
91
|
+
HistoryDuration[HistoryDuration["DAY"] = 2] = "DAY";
|
|
92
|
+
/**
|
|
93
|
+
* @generated from enum value: HISTORY_DURATION_WEEK = 3;
|
|
94
|
+
*/
|
|
95
|
+
HistoryDuration[HistoryDuration["WEEK"] = 3] = "WEEK";
|
|
96
|
+
/**
|
|
97
|
+
* @generated from enum value: HISTORY_DURATION_MONTH = 4;
|
|
98
|
+
*/
|
|
99
|
+
HistoryDuration[HistoryDuration["MONTH"] = 4] = "MONTH";
|
|
100
|
+
/**
|
|
101
|
+
* @generated from enum value: HISTORY_DURATION_YEAR = 5;
|
|
102
|
+
*/
|
|
103
|
+
HistoryDuration[HistoryDuration["YEAR"] = 5] = "YEAR";
|
|
104
|
+
/**
|
|
105
|
+
* @generated from enum value: HISTORY_DURATION_MAX = 6;
|
|
106
|
+
*/
|
|
107
|
+
HistoryDuration[HistoryDuration["MAX"] = 6] = "MAX";
|
|
108
|
+
})(HistoryDuration || (HistoryDuration = {}));
|
|
109
|
+
// Retrieve enum metadata with: proto3.getEnumType(HistoryDuration)
|
|
110
|
+
proto3.util.setEnumType(HistoryDuration, "data.v2.HistoryDuration", [
|
|
111
|
+
{ no: 0, name: "HISTORY_DURATION_UNSPECIFIED" },
|
|
112
|
+
{ no: 1, name: "HISTORY_DURATION_HOUR" },
|
|
113
|
+
{ no: 2, name: "HISTORY_DURATION_DAY" },
|
|
114
|
+
{ no: 3, name: "HISTORY_DURATION_WEEK" },
|
|
115
|
+
{ no: 4, name: "HISTORY_DURATION_MONTH" },
|
|
116
|
+
{ no: 5, name: "HISTORY_DURATION_YEAR" },
|
|
117
|
+
{ no: 6, name: "HISTORY_DURATION_MAX" },
|
|
118
|
+
]);
|
|
71
119
|
/**
|
|
72
120
|
* Volume, TVL, FDV, and price-change stats for a ranked token. All values are USD-denominated.
|
|
73
121
|
* All fields are populated from Clickhouse aggregations.
|
|
@@ -260,6 +308,56 @@ TokenPriceData.fields = proto3.util.newFieldList(() => [
|
|
|
260
308
|
{ no: 2, name: "percent_change_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
261
309
|
{ no: 3, name: "percent_change_1h", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
262
310
|
]);
|
|
311
|
+
/**
|
|
312
|
+
* Live on-chain market stats for a single token, USD-denominated.
|
|
313
|
+
*
|
|
314
|
+
* @generated from message data.v2.TokenMarket
|
|
315
|
+
*/
|
|
316
|
+
export class TokenMarket extends Message {
|
|
317
|
+
constructor(data) {
|
|
318
|
+
super();
|
|
319
|
+
/**
|
|
320
|
+
* @generated from field: uint32 chain_id = 1;
|
|
321
|
+
*/
|
|
322
|
+
this.chainId = 0;
|
|
323
|
+
/**
|
|
324
|
+
* @generated from field: string address = 2;
|
|
325
|
+
*/
|
|
326
|
+
this.address = "";
|
|
327
|
+
/**
|
|
328
|
+
* echoes the requested duration (UNSPECIFIED → DAY)
|
|
329
|
+
*
|
|
330
|
+
* @generated from field: data.v2.HistoryDuration volume_duration = 9;
|
|
331
|
+
*/
|
|
332
|
+
this.volumeDuration = HistoryDuration.UNSPECIFIED;
|
|
333
|
+
proto3.util.initPartial(data, this);
|
|
334
|
+
}
|
|
335
|
+
static fromBinary(bytes, options) {
|
|
336
|
+
return new TokenMarket().fromBinary(bytes, options);
|
|
337
|
+
}
|
|
338
|
+
static fromJson(jsonValue, options) {
|
|
339
|
+
return new TokenMarket().fromJson(jsonValue, options);
|
|
340
|
+
}
|
|
341
|
+
static fromJsonString(jsonString, options) {
|
|
342
|
+
return new TokenMarket().fromJsonString(jsonString, options);
|
|
343
|
+
}
|
|
344
|
+
static equals(a, b) {
|
|
345
|
+
return proto3.util.equals(TokenMarket, a, b);
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
TokenMarket.runtime = proto3;
|
|
349
|
+
TokenMarket.typeName = "data.v2.TokenMarket";
|
|
350
|
+
TokenMarket.fields = proto3.util.newFieldList(() => [
|
|
351
|
+
{ no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
352
|
+
{ no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
353
|
+
{ no: 3, name: "total_value_locked_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
354
|
+
{ no: 4, name: "market_cap_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
355
|
+
{ no: 5, name: "fully_diluted_valuation_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
356
|
+
{ no: 6, name: "price_high_52w_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
357
|
+
{ no: 7, name: "price_low_52w_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
358
|
+
{ no: 8, name: "volume_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
359
|
+
{ no: 9, name: "volume_duration", kind: "enum", T: proto3.getEnumType(HistoryDuration) },
|
|
360
|
+
]);
|
|
263
361
|
/**
|
|
264
362
|
* @generated from message data.v2.TokenSafety
|
|
265
363
|
*/
|