@uniswap/client-data-api 0.0.296 → 0.0.297
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/buf/validate/validate_pb.d.ts +4833 -0
- package/dist/buf/validate/validate_pb.js +356 -0
- package/dist/data/v1/api-DataApiService_connectquery.d.ts +88 -200
- package/dist/data/v1/api-DataApiService_connectquery.js +24 -224
- package/dist/data/v1/api_pb.d.ts +843 -845
- package/dist/data/v1/api_pb.js +393 -2676
- package/dist/data/v1/featureGating_pb.d.ts +31 -26
- package/dist/data/v1/featureGating_pb.js +13 -50
- package/dist/data/v1/plan_pb.d.ts +29 -0
- package/dist/data/v1/plan_pb.js +30 -69
- package/dist/data/v1/poolTypes_pb.d.ts +118 -127
- package/dist/data/v1/poolTypes_pb.js +47 -438
- package/dist/data/v1/types_pb.d.ts +1276 -1334
- package/dist/data/v1/types_pb.js +249 -2021
- package/dist/data/v1/workerService-WorkerService_connectquery.d.ts +16 -38
- package/dist/data/v1/workerService-WorkerService_connectquery.js +6 -44
- package/dist/data/v1/workerService_pb.d.ts +99 -92
- package/dist/data/v1/workerService_pb.js +37 -248
- package/dist/data/v2/api-DataApiService_connectquery.d.ts +148 -335
- package/dist/data/v2/api-DataApiService_connectquery.js +39 -374
- package/dist/data/v2/api_pb.d.ts +1087 -1054
- package/dist/data/v2/api_pb.js +483 -3805
- package/dist/data/v2/categories_pb.d.ts +130 -142
- package/dist/data/v2/categories_pb.js +55 -457
- package/dist/data/v2/common_pb.d.ts +23 -25
- package/dist/data/v2/common_pb.js +12 -59
- package/dist/data/v2/earn_pb.d.ts +92 -92
- package/dist/data/v2/earn_pb.js +33 -229
- package/dist/data/v2/hooks_pb.d.ts +119 -135
- package/dist/data/v2/hooks_pb.js +49 -315
- package/dist/data/v2/search-SearchService_connectquery.d.ts +4 -11
- package/dist/data/v2/search-SearchService_connectquery.js +3 -14
- package/dist/data/v2/search_pb.d.ts +139 -120
- package/dist/data/v2/search_pb.js +34 -225
- package/dist/data/v2/tokenGroups_pb.d.ts +31 -36
- package/dist/data/v2/tokenGroups_pb.js +16 -126
- package/dist/data/v2/types_pb.d.ts +1823 -1887
- package/dist/data/v2/types_pb.js +282 -2190
- package/dist/data/v2/workerService-WorkerService_connectquery.d.ts +4 -11
- package/dist/data/v2/workerService-WorkerService_connectquery.js +3 -14
- package/dist/data/v2/workerService_pb.d.ts +35 -22
- package/dist/data/v2/workerService_pb.js +20 -47
- package/package.json +1 -1
- package/dist/data/v1/api_connect.d.ts +0 -208
- package/dist/data/v1/api_connect.js +0 -212
- package/dist/data/v1/workerService_connect.d.ts +0 -46
- package/dist/data/v1/workerService_connect.js +0 -50
- package/dist/data/v2/api_connect.d.ts +0 -343
- package/dist/data/v2/api_connect.js +0 -347
- package/dist/data/v2/search_connect.d.ts +0 -21
- package/dist/data/v2/search_connect.js +0 -25
- package/dist/data/v2/workerService_connect.d.ts +0 -23
- package/dist/data/v2/workerService_connect.js +0 -27
|
@@ -1,11 +1,54 @@
|
|
|
1
|
-
// @generated by protoc-gen-es
|
|
1
|
+
// @generated by protoc-gen-es v2.16.0 with parameter "target=ts"
|
|
2
2
|
// @generated from file data/v2/categories.proto (package data.v2, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
4
|
+
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
|
+
import { file_data_v1_poolTypes } from "../v1/poolTypes_pb";
|
|
6
|
+
import { file_data_v2_tokenGroups } from "./tokenGroups_pb";
|
|
7
|
+
import { file_data_v2_types } from "./types_pb";
|
|
8
|
+
/**
|
|
9
|
+
* Describes the file data/v2/categories.proto.
|
|
10
|
+
*/
|
|
11
|
+
export const file_data_v2_categories = /*@__PURE__*/ fileDesc("ChhkYXRhL3YyL2NhdGVnb3JpZXMucHJvdG8SB2RhdGEudjIiVwoQQ2F0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b2xDYXRlZ29yeRIjCghjYXRlZ29yeRgBIAEoCzIRLmRhdGEudjIuQ2F0ZWdvcnkSMgoFc3RhdHMYAiABKAsyIy5kYXRhLnYyLkNhdGVnb3J5UG9vbEFnZ3JlZ2F0ZVN0YXRzEisKCXRvcF9wb29scxgDIAMoCzIYLmRhdGEudjIuQ2F0ZWdvcnlUb3BQb29sIjMKD1RpbWVTZXJpZXNQb2ludBIRCgl0aW1lc3RhbXAYASABKAMSDQoFdmFsdWUYAiABKAEqfwoNQ2F0ZWdvcnlDbGFzcxIeChpDQVRFR09SWV9DTEFTU19VTlNQRUNJRklFRBAAEhkKFUNBVEVHT1JZX0NMQVNTX01BUktFVBABEhgKFENBVEVHT1JZX0NMQVNTX0FTU0VUEAISGQoVQ0FURUdPUllfQ0xBU1NfU0VDVE9SEAMqXgoMQ2F0ZWdvcnlLaW5kEh0KGUNBVEVHT1JZX0tJTkRfVU5TUEVDSUZJRUQQABIXChNDQVRFR09SWV9LSU5EX1RPS0VOEAESFgoSQ0FURUdPUllfS0lORF9QT09MEAJiBnByb3RvMw", [file_data_v1_poolTypes, file_data_v2_tokenGroups, file_data_v2_types]);
|
|
12
|
+
/**
|
|
13
|
+
* Describes the message data.v2.CategoryTopToken.
|
|
14
|
+
* Use `create(CategoryTopTokenSchema)` to create a new message.
|
|
15
|
+
*/
|
|
16
|
+
export const CategoryTopTokenSchema = /*@__PURE__*/ messageDesc(file_data_v2_categories, 0);
|
|
17
|
+
/**
|
|
18
|
+
* Describes the message data.v2.CategoryTopPool.
|
|
19
|
+
* Use `create(CategoryTopPoolSchema)` to create a new message.
|
|
20
|
+
*/
|
|
21
|
+
export const CategoryTopPoolSchema = /*@__PURE__*/ messageDesc(file_data_v2_categories, 1);
|
|
22
|
+
/**
|
|
23
|
+
* Describes the message data.v2.CategoryAggregateStats.
|
|
24
|
+
* Use `create(CategoryAggregateStatsSchema)` to create a new message.
|
|
25
|
+
*/
|
|
26
|
+
export const CategoryAggregateStatsSchema = /*@__PURE__*/ messageDesc(file_data_v2_categories, 2);
|
|
27
|
+
/**
|
|
28
|
+
* Describes the message data.v2.CategoryPoolAggregateStats.
|
|
29
|
+
* Use `create(CategoryPoolAggregateStatsSchema)` to create a new message.
|
|
30
|
+
*/
|
|
31
|
+
export const CategoryPoolAggregateStatsSchema = /*@__PURE__*/ messageDesc(file_data_v2_categories, 3);
|
|
32
|
+
/**
|
|
33
|
+
* Describes the message data.v2.Category.
|
|
34
|
+
* Use `create(CategorySchema)` to create a new message.
|
|
35
|
+
*/
|
|
36
|
+
export const CategorySchema = /*@__PURE__*/ messageDesc(file_data_v2_categories, 4);
|
|
37
|
+
/**
|
|
38
|
+
* Describes the message data.v2.RankedCategory.
|
|
39
|
+
* Use `create(RankedCategorySchema)` to create a new message.
|
|
40
|
+
*/
|
|
41
|
+
export const RankedCategorySchema = /*@__PURE__*/ messageDesc(file_data_v2_categories, 5);
|
|
42
|
+
/**
|
|
43
|
+
* Describes the message data.v2.RankedPoolCategory.
|
|
44
|
+
* Use `create(RankedPoolCategorySchema)` to create a new message.
|
|
45
|
+
*/
|
|
46
|
+
export const RankedPoolCategorySchema = /*@__PURE__*/ messageDesc(file_data_v2_categories, 6);
|
|
47
|
+
/**
|
|
48
|
+
* Describes the message data.v2.TimeSeriesPoint.
|
|
49
|
+
* Use `create(TimeSeriesPointSchema)` to create a new message.
|
|
50
|
+
*/
|
|
51
|
+
export const TimeSeriesPointSchema = /*@__PURE__*/ messageDesc(file_data_v2_categories, 7);
|
|
9
52
|
/**
|
|
10
53
|
* @generated from enum data.v2.CategoryClass
|
|
11
54
|
*/
|
|
@@ -34,13 +77,10 @@ export var CategoryClass;
|
|
|
34
77
|
*/
|
|
35
78
|
CategoryClass[CategoryClass["SECTOR"] = 3] = "SECTOR";
|
|
36
79
|
})(CategoryClass || (CategoryClass = {}));
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
{ no: 2, name: "CATEGORY_CLASS_ASSET" },
|
|
42
|
-
{ no: 3, name: "CATEGORY_CLASS_SECTOR" },
|
|
43
|
-
]);
|
|
80
|
+
/**
|
|
81
|
+
* Describes the enum data.v2.CategoryClass.
|
|
82
|
+
*/
|
|
83
|
+
export const CategoryClassSchema = /*@__PURE__*/ enumDesc(file_data_v2_categories, 0);
|
|
44
84
|
/**
|
|
45
85
|
* Which taxonomy a category belongs to. Ids are unique across kinds.
|
|
46
86
|
*
|
|
@@ -63,449 +103,7 @@ export var CategoryKind;
|
|
|
63
103
|
*/
|
|
64
104
|
CategoryKind[CategoryKind["POOL"] = 2] = "POOL";
|
|
65
105
|
})(CategoryKind || (CategoryKind = {}));
|
|
66
|
-
// Retrieve enum metadata with: proto3.getEnumType(CategoryKind)
|
|
67
|
-
proto3.util.setEnumType(CategoryKind, "data.v2.CategoryKind", [
|
|
68
|
-
{ no: 0, name: "CATEGORY_KIND_UNSPECIFIED" },
|
|
69
|
-
{ no: 1, name: "CATEGORY_KIND_TOKEN" },
|
|
70
|
-
{ no: 2, name: "CATEGORY_KIND_POOL" },
|
|
71
|
-
]);
|
|
72
|
-
/**
|
|
73
|
-
* One member token of a category.
|
|
74
|
-
*
|
|
75
|
-
* @generated from message data.v2.CategoryTopToken
|
|
76
|
-
*/
|
|
77
|
-
export class CategoryTopToken extends Message {
|
|
78
|
-
constructor(data) {
|
|
79
|
-
super();
|
|
80
|
-
/**
|
|
81
|
-
* @generated from field: uint32 chain_id = 1;
|
|
82
|
-
*/
|
|
83
|
-
this.chainId = 0;
|
|
84
|
-
/**
|
|
85
|
-
* @generated from field: string address = 2;
|
|
86
|
-
*/
|
|
87
|
-
this.address = "";
|
|
88
|
-
/**
|
|
89
|
-
* @generated from field: string symbol = 3;
|
|
90
|
-
*/
|
|
91
|
-
this.symbol = "";
|
|
92
|
-
/**
|
|
93
|
-
* @generated from field: string logo_url = 4;
|
|
94
|
-
*/
|
|
95
|
-
this.logoUrl = "";
|
|
96
|
-
proto3.util.initPartial(data, this);
|
|
97
|
-
}
|
|
98
|
-
static fromBinary(bytes, options) {
|
|
99
|
-
return new CategoryTopToken().fromBinary(bytes, options);
|
|
100
|
-
}
|
|
101
|
-
static fromJson(jsonValue, options) {
|
|
102
|
-
return new CategoryTopToken().fromJson(jsonValue, options);
|
|
103
|
-
}
|
|
104
|
-
static fromJsonString(jsonString, options) {
|
|
105
|
-
return new CategoryTopToken().fromJsonString(jsonString, options);
|
|
106
|
-
}
|
|
107
|
-
static equals(a, b) {
|
|
108
|
-
return proto3.util.equals(CategoryTopToken, a, b);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
CategoryTopToken.runtime = proto3;
|
|
112
|
-
CategoryTopToken.typeName = "data.v2.CategoryTopToken";
|
|
113
|
-
CategoryTopToken.fields = proto3.util.newFieldList(() => [
|
|
114
|
-
{ no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
115
|
-
{ no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
116
|
-
{ no: 3, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
117
|
-
{ no: 4, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
118
|
-
]);
|
|
119
|
-
/**
|
|
120
|
-
* One member pool of a pool category: the pool twin of CategoryTopToken.
|
|
121
|
-
*
|
|
122
|
-
* @generated from message data.v2.CategoryTopPool
|
|
123
|
-
*/
|
|
124
|
-
export class CategoryTopPool extends Message {
|
|
125
|
-
constructor(data) {
|
|
126
|
-
super();
|
|
127
|
-
/**
|
|
128
|
-
* @generated from field: uint32 chain_id = 1;
|
|
129
|
-
*/
|
|
130
|
-
this.chainId = 0;
|
|
131
|
-
/**
|
|
132
|
-
* Same value as Pool.pool_id: checksummed pool address (V4: pool id hash).
|
|
133
|
-
*
|
|
134
|
-
* @generated from field: string pool_id = 2;
|
|
135
|
-
*/
|
|
136
|
-
this.poolId = "";
|
|
137
|
-
/**
|
|
138
|
-
* @generated from field: string token0_symbol = 3;
|
|
139
|
-
*/
|
|
140
|
-
this.token0Symbol = "";
|
|
141
|
-
/**
|
|
142
|
-
* @generated from field: string token0_logo_url = 4;
|
|
143
|
-
*/
|
|
144
|
-
this.token0LogoUrl = "";
|
|
145
|
-
/**
|
|
146
|
-
* @generated from field: string token1_symbol = 5;
|
|
147
|
-
*/
|
|
148
|
-
this.token1Symbol = "";
|
|
149
|
-
/**
|
|
150
|
-
* @generated from field: string token1_logo_url = 6;
|
|
151
|
-
*/
|
|
152
|
-
this.token1LogoUrl = "";
|
|
153
|
-
/**
|
|
154
|
-
* @generated from field: pools.v1.ProtocolVersion protocol_version = 7;
|
|
155
|
-
*/
|
|
156
|
-
this.protocolVersion = ProtocolVersion.UNSPECIFIED;
|
|
157
|
-
proto3.util.initPartial(data, this);
|
|
158
|
-
}
|
|
159
|
-
static fromBinary(bytes, options) {
|
|
160
|
-
return new CategoryTopPool().fromBinary(bytes, options);
|
|
161
|
-
}
|
|
162
|
-
static fromJson(jsonValue, options) {
|
|
163
|
-
return new CategoryTopPool().fromJson(jsonValue, options);
|
|
164
|
-
}
|
|
165
|
-
static fromJsonString(jsonString, options) {
|
|
166
|
-
return new CategoryTopPool().fromJsonString(jsonString, options);
|
|
167
|
-
}
|
|
168
|
-
static equals(a, b) {
|
|
169
|
-
return proto3.util.equals(CategoryTopPool, a, b);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
CategoryTopPool.runtime = proto3;
|
|
173
|
-
CategoryTopPool.typeName = "data.v2.CategoryTopPool";
|
|
174
|
-
CategoryTopPool.fields = proto3.util.newFieldList(() => [
|
|
175
|
-
{ no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
176
|
-
{ no: 2, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
177
|
-
{ no: 3, name: "token0_symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
178
|
-
{ no: 4, name: "token0_logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
179
|
-
{ no: 5, name: "token1_symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
180
|
-
{ no: 6, name: "token1_logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
181
|
-
{ no: 7, name: "protocol_version", kind: "enum", T: proto3.getEnumType(ProtocolVersion) },
|
|
182
|
-
{ no: 8, name: "fee_tier", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
183
|
-
]);
|
|
184
|
-
/**
|
|
185
|
-
* Chain-scoped, multichain-deduped aggregates over the category's members.
|
|
186
|
-
*
|
|
187
|
-
* @generated from message data.v2.CategoryAggregateStats
|
|
188
|
-
*/
|
|
189
|
-
export class CategoryAggregateStats extends Message {
|
|
190
|
-
constructor(data) {
|
|
191
|
-
super();
|
|
192
|
-
/**
|
|
193
|
-
* @generated from field: uint32 token_count = 1;
|
|
194
|
-
*/
|
|
195
|
-
this.tokenCount = 0;
|
|
196
|
-
/**
|
|
197
|
-
* Plain average of the members' 24h price changes with the top and bottom
|
|
198
|
-
* 5% of movers left out (members without a change are skipped; a set too
|
|
199
|
-
* small to trim averages everyone). Not a basket index: no single member
|
|
200
|
-
* can move it.
|
|
201
|
-
*
|
|
202
|
-
* @generated from field: double price_change_24h_pct = 2;
|
|
203
|
-
*/
|
|
204
|
-
this.priceChange24hPct = 0;
|
|
205
|
-
/**
|
|
206
|
-
* @generated from field: double volume_1h = 3;
|
|
207
|
-
*/
|
|
208
|
-
this.volume1h = 0;
|
|
209
|
-
/**
|
|
210
|
-
* @generated from field: double volume_1d = 4;
|
|
211
|
-
*/
|
|
212
|
-
this.volume1d = 0;
|
|
213
|
-
/**
|
|
214
|
-
* @generated from field: double volume_1w = 5;
|
|
215
|
-
*/
|
|
216
|
-
this.volume1w = 0;
|
|
217
|
-
/**
|
|
218
|
-
* @generated from field: double volume_1m = 6;
|
|
219
|
-
*/
|
|
220
|
-
this.volume1m = 0;
|
|
221
|
-
/**
|
|
222
|
-
* @generated from field: double volume_1y = 7;
|
|
223
|
-
*/
|
|
224
|
-
this.volume1y = 0;
|
|
225
|
-
proto3.util.initPartial(data, this);
|
|
226
|
-
}
|
|
227
|
-
static fromBinary(bytes, options) {
|
|
228
|
-
return new CategoryAggregateStats().fromBinary(bytes, options);
|
|
229
|
-
}
|
|
230
|
-
static fromJson(jsonValue, options) {
|
|
231
|
-
return new CategoryAggregateStats().fromJson(jsonValue, options);
|
|
232
|
-
}
|
|
233
|
-
static fromJsonString(jsonString, options) {
|
|
234
|
-
return new CategoryAggregateStats().fromJsonString(jsonString, options);
|
|
235
|
-
}
|
|
236
|
-
static equals(a, b) {
|
|
237
|
-
return proto3.util.equals(CategoryAggregateStats, a, b);
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
CategoryAggregateStats.runtime = proto3;
|
|
241
|
-
CategoryAggregateStats.typeName = "data.v2.CategoryAggregateStats";
|
|
242
|
-
CategoryAggregateStats.fields = proto3.util.newFieldList(() => [
|
|
243
|
-
{ no: 1, name: "token_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
244
|
-
{ no: 2, name: "price_change_24h_pct", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
245
|
-
{ no: 3, name: "volume_1h", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
246
|
-
{ no: 4, name: "volume_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
247
|
-
{ no: 5, name: "volume_1w", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
248
|
-
{ no: 6, name: "volume_1m", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
249
|
-
{ no: 7, name: "volume_1y", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
250
|
-
{ no: 8, name: "fdv", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
251
|
-
{ no: 9, name: "market_cap", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
252
|
-
]);
|
|
253
|
-
/**
|
|
254
|
-
* Chain-scoped aggregates over a pool category's members. USD values.
|
|
255
|
-
*
|
|
256
|
-
* @generated from message data.v2.CategoryPoolAggregateStats
|
|
257
|
-
*/
|
|
258
|
-
export class CategoryPoolAggregateStats extends Message {
|
|
259
|
-
constructor(data) {
|
|
260
|
-
super();
|
|
261
|
-
/**
|
|
262
|
-
* @generated from field: uint32 pool_count = 1;
|
|
263
|
-
*/
|
|
264
|
-
this.poolCount = 0;
|
|
265
|
-
/**
|
|
266
|
-
* @generated from field: double tvl = 2;
|
|
267
|
-
*/
|
|
268
|
-
this.tvl = 0;
|
|
269
|
-
/**
|
|
270
|
-
* @generated from field: double volume_1d = 3;
|
|
271
|
-
*/
|
|
272
|
-
this.volume1d = 0;
|
|
273
|
-
/**
|
|
274
|
-
* @generated from field: double volume_1w = 4;
|
|
275
|
-
*/
|
|
276
|
-
this.volume1w = 0;
|
|
277
|
-
/**
|
|
278
|
-
* @generated from field: double volume_1m = 5;
|
|
279
|
-
*/
|
|
280
|
-
this.volume1m = 0;
|
|
281
|
-
/**
|
|
282
|
-
* Trailing-24h LP fees the members earned, after the protocol cut: the
|
|
283
|
-
* same number each member's 1d APR was computed from.
|
|
284
|
-
*
|
|
285
|
-
* @generated from field: double fees_1d = 6;
|
|
286
|
-
*/
|
|
287
|
-
this.fees1d = 0;
|
|
288
|
-
proto3.util.initPartial(data, this);
|
|
289
|
-
}
|
|
290
|
-
static fromBinary(bytes, options) {
|
|
291
|
-
return new CategoryPoolAggregateStats().fromBinary(bytes, options);
|
|
292
|
-
}
|
|
293
|
-
static fromJson(jsonValue, options) {
|
|
294
|
-
return new CategoryPoolAggregateStats().fromJson(jsonValue, options);
|
|
295
|
-
}
|
|
296
|
-
static fromJsonString(jsonString, options) {
|
|
297
|
-
return new CategoryPoolAggregateStats().fromJsonString(jsonString, options);
|
|
298
|
-
}
|
|
299
|
-
static equals(a, b) {
|
|
300
|
-
return proto3.util.equals(CategoryPoolAggregateStats, a, b);
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
CategoryPoolAggregateStats.runtime = proto3;
|
|
304
|
-
CategoryPoolAggregateStats.typeName = "data.v2.CategoryPoolAggregateStats";
|
|
305
|
-
CategoryPoolAggregateStats.fields = proto3.util.newFieldList(() => [
|
|
306
|
-
{ no: 1, name: "pool_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
307
|
-
{ no: 2, name: "tvl", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
308
|
-
{ no: 3, name: "volume_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
309
|
-
{ no: 4, name: "volume_1w", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
310
|
-
{ no: 5, name: "volume_1m", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
311
|
-
{ no: 6, name: "fees_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
312
|
-
{ no: 7, name: "tvl_change_24h_pct", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
313
|
-
{ no: 8, name: "volume_change_24h_pct", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
314
|
-
{ no: 9, name: "avg_apr", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
315
|
-
{ no: 10, name: "fees_change_24h_pct", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
316
|
-
]);
|
|
317
|
-
/**
|
|
318
|
-
* Category identity: stable, request-independent metadata.
|
|
319
|
-
*
|
|
320
|
-
* @generated from message data.v2.Category
|
|
321
|
-
*/
|
|
322
|
-
export class Category extends Message {
|
|
323
|
-
constructor(data) {
|
|
324
|
-
super();
|
|
325
|
-
/**
|
|
326
|
-
* @generated from field: string id = 1;
|
|
327
|
-
*/
|
|
328
|
-
this.id = "";
|
|
329
|
-
/**
|
|
330
|
-
* @generated from field: string name = 2;
|
|
331
|
-
*/
|
|
332
|
-
this.name = "";
|
|
333
|
-
/**
|
|
334
|
-
* @generated from field: string description = 3;
|
|
335
|
-
*/
|
|
336
|
-
this.description = "";
|
|
337
|
-
/**
|
|
338
|
-
* @generated from field: data.v2.CategoryClass class = 5;
|
|
339
|
-
*/
|
|
340
|
-
this.class = CategoryClass.UNSPECIFIED;
|
|
341
|
-
/**
|
|
342
|
-
* @generated from field: bool grouped = 6;
|
|
343
|
-
*/
|
|
344
|
-
this.grouped = false;
|
|
345
|
-
/**
|
|
346
|
-
* Translations of `name` / `description`, keyed by BCP-47 locale tag
|
|
347
|
-
* (es-ES, fr-FR, id-ID, ja-JP, ko-KR, nl-NL, pt-BR, pt-PT, ru-RU, tr-TR,
|
|
348
|
-
* vi-VN, zh-Hans, zh-Hant). English is the top-level field, never a key.
|
|
349
|
-
* A locale is absent (never an empty string) when it has no translation or
|
|
350
|
-
* uses the English name untranslated; clients fall back to the top-level
|
|
351
|
-
* field.
|
|
352
|
-
*
|
|
353
|
-
* @generated from field: map<string, string> name_translations = 7;
|
|
354
|
-
*/
|
|
355
|
-
this.nameTranslations = {};
|
|
356
|
-
/**
|
|
357
|
-
* @generated from field: map<string, string> description_translations = 8;
|
|
358
|
-
*/
|
|
359
|
-
this.descriptionTranslations = {};
|
|
360
|
-
/**
|
|
361
|
-
* UNSPECIFIED reads as TOKEN.
|
|
362
|
-
*
|
|
363
|
-
* @generated from field: data.v2.CategoryKind kind = 10;
|
|
364
|
-
*/
|
|
365
|
-
this.kind = CategoryKind.UNSPECIFIED;
|
|
366
|
-
proto3.util.initPartial(data, this);
|
|
367
|
-
}
|
|
368
|
-
static fromBinary(bytes, options) {
|
|
369
|
-
return new Category().fromBinary(bytes, options);
|
|
370
|
-
}
|
|
371
|
-
static fromJson(jsonValue, options) {
|
|
372
|
-
return new Category().fromJson(jsonValue, options);
|
|
373
|
-
}
|
|
374
|
-
static fromJsonString(jsonString, options) {
|
|
375
|
-
return new Category().fromJsonString(jsonString, options);
|
|
376
|
-
}
|
|
377
|
-
static equals(a, b) {
|
|
378
|
-
return proto3.util.equals(Category, a, b);
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
Category.runtime = proto3;
|
|
382
|
-
Category.typeName = "data.v2.Category";
|
|
383
|
-
Category.fields = proto3.util.newFieldList(() => [
|
|
384
|
-
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
385
|
-
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
386
|
-
{ no: 3, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
387
|
-
{ no: 5, name: "class", kind: "enum", T: proto3.getEnumType(CategoryClass) },
|
|
388
|
-
{ no: 6, name: "grouped", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
389
|
-
{ no: 7, name: "name_translations", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
|
|
390
|
-
{ no: 8, name: "description_translations", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
|
|
391
|
-
{ no: 9, name: "default_sort", kind: "message", T: TokensSort },
|
|
392
|
-
{ no: 10, name: "kind", kind: "enum", T: proto3.getEnumType(CategoryKind) },
|
|
393
|
-
]);
|
|
394
|
-
/**
|
|
395
|
-
* A category plus its chain-scoped market view (mirrors RankedPool /
|
|
396
|
-
* RankedMultichainToken).
|
|
397
|
-
*
|
|
398
|
-
* @generated from message data.v2.RankedCategory
|
|
399
|
-
*/
|
|
400
|
-
export class RankedCategory extends Message {
|
|
401
|
-
constructor(data) {
|
|
402
|
-
super();
|
|
403
|
-
/**
|
|
404
|
-
* @generated from field: repeated data.v2.CategoryTopToken top_tokens = 3;
|
|
405
|
-
*/
|
|
406
|
-
this.topTokens = [];
|
|
407
|
-
/**
|
|
408
|
-
* A grouped category's (Category.grouped) first page rows, in its default
|
|
409
|
-
* order; empty for the others. Clients pile these over top_tokens when set.
|
|
410
|
-
*
|
|
411
|
-
* @generated from field: repeated data.v2.TokenGroup top_groups = 4;
|
|
412
|
-
*/
|
|
413
|
-
this.topGroups = [];
|
|
414
|
-
proto3.util.initPartial(data, this);
|
|
415
|
-
}
|
|
416
|
-
static fromBinary(bytes, options) {
|
|
417
|
-
return new RankedCategory().fromBinary(bytes, options);
|
|
418
|
-
}
|
|
419
|
-
static fromJson(jsonValue, options) {
|
|
420
|
-
return new RankedCategory().fromJson(jsonValue, options);
|
|
421
|
-
}
|
|
422
|
-
static fromJsonString(jsonString, options) {
|
|
423
|
-
return new RankedCategory().fromJsonString(jsonString, options);
|
|
424
|
-
}
|
|
425
|
-
static equals(a, b) {
|
|
426
|
-
return proto3.util.equals(RankedCategory, a, b);
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
RankedCategory.runtime = proto3;
|
|
430
|
-
RankedCategory.typeName = "data.v2.RankedCategory";
|
|
431
|
-
RankedCategory.fields = proto3.util.newFieldList(() => [
|
|
432
|
-
{ no: 1, name: "category", kind: "message", T: Category },
|
|
433
|
-
{ no: 2, name: "stats", kind: "message", T: CategoryAggregateStats },
|
|
434
|
-
{ no: 3, name: "top_tokens", kind: "message", T: CategoryTopToken, repeated: true },
|
|
435
|
-
{ no: 4, name: "top_groups", kind: "message", T: TokenGroup, repeated: true },
|
|
436
|
-
]);
|
|
437
|
-
/**
|
|
438
|
-
* A pool category plus its chain-scoped market view: the pool twin of
|
|
439
|
-
* RankedCategory. Served by ListCategories(kind: POOL) and by GetCategory for
|
|
440
|
-
* a pool category id.
|
|
441
|
-
*
|
|
442
|
-
* @generated from message data.v2.RankedPoolCategory
|
|
443
|
-
*/
|
|
444
|
-
export class RankedPoolCategory extends Message {
|
|
445
|
-
constructor(data) {
|
|
446
|
-
super();
|
|
447
|
-
/**
|
|
448
|
-
* The members a logo pile renders, highest TVL first.
|
|
449
|
-
*
|
|
450
|
-
* @generated from field: repeated data.v2.CategoryTopPool top_pools = 3;
|
|
451
|
-
*/
|
|
452
|
-
this.topPools = [];
|
|
453
|
-
proto3.util.initPartial(data, this);
|
|
454
|
-
}
|
|
455
|
-
static fromBinary(bytes, options) {
|
|
456
|
-
return new RankedPoolCategory().fromBinary(bytes, options);
|
|
457
|
-
}
|
|
458
|
-
static fromJson(jsonValue, options) {
|
|
459
|
-
return new RankedPoolCategory().fromJson(jsonValue, options);
|
|
460
|
-
}
|
|
461
|
-
static fromJsonString(jsonString, options) {
|
|
462
|
-
return new RankedPoolCategory().fromJsonString(jsonString, options);
|
|
463
|
-
}
|
|
464
|
-
static equals(a, b) {
|
|
465
|
-
return proto3.util.equals(RankedPoolCategory, a, b);
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
RankedPoolCategory.runtime = proto3;
|
|
469
|
-
RankedPoolCategory.typeName = "data.v2.RankedPoolCategory";
|
|
470
|
-
RankedPoolCategory.fields = proto3.util.newFieldList(() => [
|
|
471
|
-
{ no: 1, name: "category", kind: "message", T: Category },
|
|
472
|
-
{ no: 2, name: "stats", kind: "message", T: CategoryPoolAggregateStats },
|
|
473
|
-
{ no: 3, name: "top_pools", kind: "message", T: CategoryTopPool, repeated: true },
|
|
474
|
-
]);
|
|
475
106
|
/**
|
|
476
|
-
*
|
|
107
|
+
* Describes the enum data.v2.CategoryKind.
|
|
477
108
|
*/
|
|
478
|
-
export
|
|
479
|
-
constructor(data) {
|
|
480
|
-
super();
|
|
481
|
-
/**
|
|
482
|
-
* unix seconds, bucket start
|
|
483
|
-
*
|
|
484
|
-
* @generated from field: int64 timestamp = 1;
|
|
485
|
-
*/
|
|
486
|
-
this.timestamp = protoInt64.zero;
|
|
487
|
-
/**
|
|
488
|
-
* @generated from field: double value = 2;
|
|
489
|
-
*/
|
|
490
|
-
this.value = 0;
|
|
491
|
-
proto3.util.initPartial(data, this);
|
|
492
|
-
}
|
|
493
|
-
static fromBinary(bytes, options) {
|
|
494
|
-
return new TimeSeriesPoint().fromBinary(bytes, options);
|
|
495
|
-
}
|
|
496
|
-
static fromJson(jsonValue, options) {
|
|
497
|
-
return new TimeSeriesPoint().fromJson(jsonValue, options);
|
|
498
|
-
}
|
|
499
|
-
static fromJsonString(jsonString, options) {
|
|
500
|
-
return new TimeSeriesPoint().fromJsonString(jsonString, options);
|
|
501
|
-
}
|
|
502
|
-
static equals(a, b) {
|
|
503
|
-
return proto3.util.equals(TimeSeriesPoint, a, b);
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
TimeSeriesPoint.runtime = proto3;
|
|
507
|
-
TimeSeriesPoint.typeName = "data.v2.TimeSeriesPoint";
|
|
508
|
-
TimeSeriesPoint.fields = proto3.util.newFieldList(() => [
|
|
509
|
-
{ no: 1, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
510
|
-
{ no: 2, name: "value", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
511
|
-
]);
|
|
109
|
+
export const CategoryKindSchema = /*@__PURE__*/ enumDesc(file_data_v2_categories, 1);
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import { Message
|
|
1
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file data/v2/common.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_data_v2_common: GenFile;
|
|
3
7
|
/**
|
|
4
8
|
* Standard pagination request fields. Embed in any paginated List request.
|
|
5
9
|
* page_size: max items per page; each endpoint defines its own default and cap.
|
|
@@ -7,41 +11,35 @@ import { Message, proto3 } from "@bufbuild/protobuf";
|
|
|
7
11
|
*
|
|
8
12
|
* @generated from message data.v2.PageRequest
|
|
9
13
|
*/
|
|
10
|
-
export
|
|
14
|
+
export type PageRequest = Message<"data.v2.PageRequest"> & {
|
|
11
15
|
/**
|
|
12
16
|
* @generated from field: optional uint32 page_size = 1;
|
|
13
17
|
*/
|
|
14
|
-
pageSize?: number;
|
|
18
|
+
pageSize?: number | undefined;
|
|
15
19
|
/**
|
|
16
20
|
* @generated from field: optional string page_token = 2;
|
|
17
21
|
*/
|
|
18
|
-
pageToken?: string;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PageRequest;
|
|
26
|
-
static equals(a: PageRequest | PlainMessage<PageRequest> | undefined, b: PageRequest | PlainMessage<PageRequest> | undefined): boolean;
|
|
27
|
-
}
|
|
22
|
+
pageToken?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Describes the message data.v2.PageRequest.
|
|
26
|
+
* Use `create(PageRequestSchema)` to create a new message.
|
|
27
|
+
*/
|
|
28
|
+
export declare const PageRequestSchema: GenMessage<PageRequest>;
|
|
28
29
|
/**
|
|
29
30
|
* Standard pagination response fields. Embed in any paginated List response.
|
|
30
31
|
* next_page_token absent means this is the last page.
|
|
31
32
|
*
|
|
32
33
|
* @generated from message data.v2.PageResponse
|
|
33
34
|
*/
|
|
34
|
-
export
|
|
35
|
+
export type PageResponse = Message<"data.v2.PageResponse"> & {
|
|
35
36
|
/**
|
|
36
37
|
* @generated from field: optional string next_page_token = 1;
|
|
37
38
|
*/
|
|
38
|
-
nextPageToken?: string;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PageResponse;
|
|
46
|
-
static equals(a: PageResponse | PlainMessage<PageResponse> | undefined, b: PageResponse | PlainMessage<PageResponse> | undefined): boolean;
|
|
47
|
-
}
|
|
39
|
+
nextPageToken?: string | undefined;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Describes the message data.v2.PageResponse.
|
|
43
|
+
* Use `create(PageResponseSchema)` to create a new message.
|
|
44
|
+
*/
|
|
45
|
+
export declare const PageResponseSchema: GenMessage<PageResponse>;
|