@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.
Files changed (53) hide show
  1. package/dist/buf/validate/validate_pb.d.ts +4833 -0
  2. package/dist/buf/validate/validate_pb.js +356 -0
  3. package/dist/data/v1/api-DataApiService_connectquery.d.ts +88 -200
  4. package/dist/data/v1/api-DataApiService_connectquery.js +24 -224
  5. package/dist/data/v1/api_pb.d.ts +843 -845
  6. package/dist/data/v1/api_pb.js +393 -2676
  7. package/dist/data/v1/featureGating_pb.d.ts +31 -26
  8. package/dist/data/v1/featureGating_pb.js +13 -50
  9. package/dist/data/v1/plan_pb.d.ts +29 -0
  10. package/dist/data/v1/plan_pb.js +30 -69
  11. package/dist/data/v1/poolTypes_pb.d.ts +118 -127
  12. package/dist/data/v1/poolTypes_pb.js +47 -438
  13. package/dist/data/v1/types_pb.d.ts +1276 -1334
  14. package/dist/data/v1/types_pb.js +249 -2021
  15. package/dist/data/v1/workerService-WorkerService_connectquery.d.ts +16 -38
  16. package/dist/data/v1/workerService-WorkerService_connectquery.js +6 -44
  17. package/dist/data/v1/workerService_pb.d.ts +99 -92
  18. package/dist/data/v1/workerService_pb.js +37 -248
  19. package/dist/data/v2/api-DataApiService_connectquery.d.ts +148 -335
  20. package/dist/data/v2/api-DataApiService_connectquery.js +39 -374
  21. package/dist/data/v2/api_pb.d.ts +1087 -1054
  22. package/dist/data/v2/api_pb.js +483 -3805
  23. package/dist/data/v2/categories_pb.d.ts +130 -142
  24. package/dist/data/v2/categories_pb.js +55 -457
  25. package/dist/data/v2/common_pb.d.ts +23 -25
  26. package/dist/data/v2/common_pb.js +12 -59
  27. package/dist/data/v2/earn_pb.d.ts +92 -92
  28. package/dist/data/v2/earn_pb.js +33 -229
  29. package/dist/data/v2/hooks_pb.d.ts +119 -135
  30. package/dist/data/v2/hooks_pb.js +49 -315
  31. package/dist/data/v2/search-SearchService_connectquery.d.ts +4 -11
  32. package/dist/data/v2/search-SearchService_connectquery.js +3 -14
  33. package/dist/data/v2/search_pb.d.ts +139 -120
  34. package/dist/data/v2/search_pb.js +34 -225
  35. package/dist/data/v2/tokenGroups_pb.d.ts +31 -36
  36. package/dist/data/v2/tokenGroups_pb.js +16 -126
  37. package/dist/data/v2/types_pb.d.ts +1823 -1887
  38. package/dist/data/v2/types_pb.js +282 -2190
  39. package/dist/data/v2/workerService-WorkerService_connectquery.d.ts +4 -11
  40. package/dist/data/v2/workerService-WorkerService_connectquery.js +3 -14
  41. package/dist/data/v2/workerService_pb.d.ts +35 -22
  42. package/dist/data/v2/workerService_pb.js +20 -47
  43. package/package.json +1 -1
  44. package/dist/data/v1/api_connect.d.ts +0 -208
  45. package/dist/data/v1/api_connect.js +0 -212
  46. package/dist/data/v1/workerService_connect.d.ts +0 -46
  47. package/dist/data/v1/workerService_connect.js +0 -50
  48. package/dist/data/v2/api_connect.d.ts +0 -343
  49. package/dist/data/v2/api_connect.js +0 -347
  50. package/dist/data/v2/search_connect.d.ts +0 -21
  51. package/dist/data/v2/search_connect.js +0 -25
  52. package/dist/data/v2/workerService_connect.d.ts +0 -23
  53. package/dist/data/v2/workerService_connect.js +0 -27
@@ -1,39 +1,14 @@
1
- import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
- import { Message, proto3 } from "@bufbuild/protobuf";
3
- import { PoolStatRangeFilter } from "./types_pb.js";
1
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { PoolStatRangeFilter } from "./types_pb";
3
+ import type { Message } from "@bufbuild/protobuf";
4
4
  /**
5
- * @generated from enum data.v2.HooksOrderBy
5
+ * Describes the file data/v2/hooks.proto.
6
6
  */
7
- export declare enum HooksOrderBy {
8
- /**
9
- * @generated from enum value: HOOKS_ORDER_BY_UNSPECIFIED = 0;
10
- */
11
- UNSPECIFIED = 0,
12
- /**
13
- * @generated from enum value: HOOKS_ORDER_BY_VOLUME_1D = 1;
14
- */
15
- VOLUME_1D = 1,
16
- /**
17
- * @generated from enum value: HOOKS_ORDER_BY_VOLUME_7D = 2;
18
- */
19
- VOLUME_7D = 2,
20
- /**
21
- * @generated from enum value: HOOKS_ORDER_BY_VOLUME_30D = 3;
22
- */
23
- VOLUME_30D = 3,
24
- /**
25
- * @generated from enum value: HOOKS_ORDER_BY_TVL = 4;
26
- */
27
- TVL = 4,
28
- /**
29
- * @generated from enum value: HOOKS_ORDER_BY_POOL_COUNT = 5;
30
- */
31
- POOL_COUNT = 5
32
- }
7
+ export declare const file_data_v2_hooks: GenFile;
33
8
  /**
34
9
  * @generated from message data.v2.Hook
35
10
  */
36
- export declare class Hook extends Message<Hook> {
11
+ export type Hook = Message<"data.v2.Hook"> & {
37
12
  /**
38
13
  * Group assigned in HRS (curated in Mission Control, or the same-address
39
14
  * rule). Unset for a hook in no group, which callers look up by chain and
@@ -41,22 +16,22 @@ export declare class Hook extends Message<Hook> {
41
16
  *
42
17
  * @generated from field: optional string group_id = 1;
43
18
  */
44
- groupId?: string;
19
+ groupId?: string | undefined;
45
20
  /**
46
21
  * @generated from field: optional string name = 2;
47
22
  */
48
- name?: string;
23
+ name?: string | undefined;
49
24
  /**
50
25
  * @generated from field: optional string description = 3;
51
26
  */
52
- description?: string;
27
+ description?: string | undefined;
53
28
  /**
54
29
  * true if every deployment on the requested chains is verified; false if
55
30
  * any isn't; unset if none failed but some aren't checked yet.
56
31
  *
57
32
  * @generated from field: optional bool verified_source = 4;
58
33
  */
59
- verifiedSource?: boolean;
34
+ verifiedSource?: boolean | undefined;
60
35
  /**
61
36
  * Every deployment in the group on every chain, whatever the request's
62
37
  * chains, ordered by chain id then TVL (highest first). A chain can hold
@@ -78,19 +53,19 @@ export declare class Hook extends Message<Hook> {
78
53
  *
79
54
  * @generated from field: optional bool routing_allowlisted = 7;
80
55
  */
81
- routingAllowlisted?: boolean;
56
+ routingAllowlisted?: boolean | undefined;
82
57
  /**
83
58
  * unset until HRS fills it
84
59
  *
85
60
  * @generated from field: optional bool built_by_uniswap = 8;
86
61
  */
87
- builtByUniswap?: boolean;
62
+ builtByUniswap?: boolean | undefined;
88
63
  /**
89
64
  * partner name, set in Mission Control
90
65
  *
91
66
  * @generated from field: optional string configured_by = 9;
92
67
  */
93
- configuredBy?: string;
68
+ configuredBy?: string | undefined;
94
69
  /**
95
70
  * true if any deployment is a known aggregator hook, whose liquidity sits
96
71
  * outside the pool, so its TVL and volume read about zero.
@@ -98,19 +73,16 @@ export declare class Hook extends Message<Hook> {
98
73
  * @generated from field: bool is_aggregator_hook = 10;
99
74
  */
100
75
  isAggregatorHook: boolean;
101
- constructor(data?: PartialMessage<Hook>);
102
- static readonly runtime: typeof proto3;
103
- static readonly typeName = "data.v2.Hook";
104
- static readonly fields: FieldList;
105
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Hook;
106
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Hook;
107
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Hook;
108
- static equals(a: Hook | PlainMessage<Hook> | undefined, b: Hook | PlainMessage<Hook> | undefined): boolean;
109
- }
76
+ };
77
+ /**
78
+ * Describes the message data.v2.Hook.
79
+ * Use `create(HookSchema)` to create a new message.
80
+ */
81
+ export declare const HookSchema: GenMessage<Hook>;
110
82
  /**
111
83
  * @generated from message data.v2.HookDeployment
112
84
  */
113
- export declare class HookDeployment extends Message<HookDeployment> {
85
+ export type HookDeployment = Message<"data.v2.HookDeployment"> & {
114
86
  /**
115
87
  * @generated from field: uint32 chain_id = 1;
116
88
  */
@@ -133,88 +105,82 @@ export declare class HookDeployment extends Message<HookDeployment> {
133
105
  *
134
106
  * @generated from field: optional string deployer = 4;
135
107
  */
136
- deployer?: string;
108
+ deployer?: string | undefined;
137
109
  /**
138
110
  * unset = not checked yet
139
111
  *
140
112
  * @generated from field: optional bool verified_source = 5;
141
113
  */
142
- verifiedSource?: boolean;
114
+ verifiedSource?: boolean | undefined;
143
115
  /**
144
116
  * unset until HRS is the routers' source
145
117
  *
146
118
  * @generated from field: optional bool routing_allowlisted = 6;
147
119
  */
148
- routingAllowlisted?: boolean;
149
- constructor(data?: PartialMessage<HookDeployment>);
150
- static readonly runtime: typeof proto3;
151
- static readonly typeName = "data.v2.HookDeployment";
152
- static readonly fields: FieldList;
153
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HookDeployment;
154
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HookDeployment;
155
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HookDeployment;
156
- static equals(a: HookDeployment | PlainMessage<HookDeployment> | undefined, b: HookDeployment | PlainMessage<HookDeployment> | undefined): boolean;
157
- }
120
+ routingAllowlisted?: boolean | undefined;
121
+ };
122
+ /**
123
+ * Describes the message data.v2.HookDeployment.
124
+ * Use `create(HookDeploymentSchema)` to create a new message.
125
+ */
126
+ export declare const HookDeploymentSchema: GenMessage<HookDeployment>;
158
127
  /**
159
128
  * @generated from message data.v2.HookRankStats
160
129
  */
161
- export declare class HookRankStats extends Message<HookRankStats> {
130
+ export type HookRankStats = Message<"data.v2.HookRankStats"> & {
162
131
  /**
163
132
  * USD
164
133
  *
165
134
  * @generated from field: optional double tvl = 1;
166
135
  */
167
- tvl?: number;
136
+ tvl?: number | undefined;
168
137
  /**
169
138
  * USD
170
139
  *
171
140
  * @generated from field: optional double volume_1d = 2;
172
141
  */
173
- volume1d?: number;
142
+ volume1d?: number | undefined;
174
143
  /**
175
144
  * USD
176
145
  *
177
146
  * @generated from field: optional double volume_7d = 3;
178
147
  */
179
- volume7d?: number;
148
+ volume7d?: number | undefined;
180
149
  /**
181
150
  * USD
182
151
  *
183
152
  * @generated from field: optional double volume_30d = 4;
184
153
  */
185
- volume30d?: number;
154
+ volume30d?: number | undefined;
186
155
  /**
187
156
  * USD, all-time
188
157
  *
189
158
  * @generated from field: optional double volume_all = 5;
190
159
  */
191
- volumeAll?: number;
160
+ volumeAll?: number | undefined;
192
161
  /**
193
162
  * USD, all-time LP fees after the protocol's cut; unset for
194
163
  * custom-accounting hooks.
195
164
  *
196
165
  * @generated from field: optional double fees_all = 6;
197
166
  */
198
- feesAll?: number;
167
+ feesAll?: number | undefined;
199
168
  /**
200
169
  * pools counted in the hook's stats
201
170
  *
202
171
  * @generated from field: uint32 pool_count = 7;
203
172
  */
204
173
  poolCount: number;
205
- constructor(data?: PartialMessage<HookRankStats>);
206
- static readonly runtime: typeof proto3;
207
- static readonly typeName = "data.v2.HookRankStats";
208
- static readonly fields: FieldList;
209
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HookRankStats;
210
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HookRankStats;
211
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HookRankStats;
212
- static equals(a: HookRankStats | PlainMessage<HookRankStats> | undefined, b: HookRankStats | PlainMessage<HookRankStats> | undefined): boolean;
213
- }
174
+ };
175
+ /**
176
+ * Describes the message data.v2.HookRankStats.
177
+ * Use `create(HookRankStatsSchema)` to create a new message.
178
+ */
179
+ export declare const HookRankStatsSchema: GenMessage<HookRankStats>;
214
180
  /**
215
181
  * @generated from message data.v2.ChainHookRankStats
216
182
  */
217
- export declare class ChainHookRankStats extends Message<ChainHookRankStats> {
183
+ export type ChainHookRankStats = Message<"data.v2.ChainHookRankStats"> & {
218
184
  /**
219
185
  * @generated from field: uint32 chain_id = 1;
220
186
  */
@@ -224,121 +190,109 @@ export declare class ChainHookRankStats extends Message<ChainHookRankStats> {
224
190
  *
225
191
  * @generated from field: data.v2.HookRankStats stats = 2;
226
192
  */
227
- stats?: HookRankStats;
228
- constructor(data?: PartialMessage<ChainHookRankStats>);
229
- static readonly runtime: typeof proto3;
230
- static readonly typeName = "data.v2.ChainHookRankStats";
231
- static readonly fields: FieldList;
232
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChainHookRankStats;
233
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChainHookRankStats;
234
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChainHookRankStats;
235
- static equals(a: ChainHookRankStats | PlainMessage<ChainHookRankStats> | undefined, b: ChainHookRankStats | PlainMessage<ChainHookRankStats> | undefined): boolean;
236
- }
193
+ stats?: HookRankStats | undefined;
194
+ };
195
+ /**
196
+ * Describes the message data.v2.ChainHookRankStats.
197
+ * Use `create(ChainHookRankStatsSchema)` to create a new message.
198
+ */
199
+ export declare const ChainHookRankStatsSchema: GenMessage<ChainHookRankStats>;
237
200
  /**
238
201
  * @generated from message data.v2.RankedHook
239
202
  */
240
- export declare class RankedHook extends Message<RankedHook> {
203
+ export type RankedHook = Message<"data.v2.RankedHook"> & {
241
204
  /**
242
205
  * @generated from field: data.v2.Hook hook = 1;
243
206
  */
244
- hook?: Hook;
207
+ hook?: Hook | undefined;
245
208
  /**
246
209
  * summed over the requested chains
247
210
  *
248
211
  * @generated from field: data.v2.HookRankStats stats = 2;
249
212
  */
250
- stats?: HookRankStats;
213
+ stats?: HookRankStats | undefined;
251
214
  /**
252
215
  * one entry per requested chain the hook is on
253
216
  *
254
217
  * @generated from field: repeated data.v2.ChainHookRankStats chain_stats = 3;
255
218
  */
256
219
  chainStats: ChainHookRankStats[];
257
- constructor(data?: PartialMessage<RankedHook>);
258
- static readonly runtime: typeof proto3;
259
- static readonly typeName = "data.v2.RankedHook";
260
- static readonly fields: FieldList;
261
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RankedHook;
262
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RankedHook;
263
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RankedHook;
264
- static equals(a: RankedHook | PlainMessage<RankedHook> | undefined, b: RankedHook | PlainMessage<RankedHook> | undefined): boolean;
265
- }
220
+ };
221
+ /**
222
+ * Describes the message data.v2.RankedHook.
223
+ * Use `create(RankedHookSchema)` to create a new message.
224
+ */
225
+ export declare const RankedHookSchema: GenMessage<RankedHook>;
266
226
  /**
267
227
  * @generated from message data.v2.HookListFilter
268
228
  */
269
- export declare class HookListFilter extends Message<HookListFilter> {
229
+ export type HookListFilter = Message<"data.v2.HookListFilter"> & {
270
230
  /**
271
231
  * Hook.verified_source is true
272
232
  *
273
233
  * @generated from field: optional bool verified_only = 1;
274
234
  */
275
- verifiedOnly?: boolean;
235
+ verifiedOnly?: boolean | undefined;
276
236
  /**
277
237
  * The "Routed in pools" filter: hooks with at least one routed pool.
278
238
  *
279
239
  * @generated from field: optional bool routed_only = 2;
280
240
  */
281
- routedOnly?: boolean;
241
+ routedOnly?: boolean | undefined;
282
242
  /**
283
243
  * Name and description both present, honoring HRS's display override.
284
244
  *
285
245
  * @generated from field: optional bool has_metadata = 3;
286
246
  */
287
- hasMetadata?: boolean;
247
+ hasMetadata?: boolean | undefined;
288
248
  /**
289
249
  * USD
290
250
  *
291
251
  * @generated from field: optional data.v2.PoolStatRangeFilter tvl = 4;
292
252
  */
293
- tvl?: PoolStatRangeFilter;
253
+ tvl?: PoolStatRangeFilter | undefined;
294
254
  /**
295
255
  * Free text (case-insensitive, trimmed, whitespace collapsed): a name
296
256
  * prefix, or an exact deployment address when 0x-prefixed.
297
257
  *
298
258
  * @generated from field: optional string search_query = 5;
299
259
  */
300
- searchQuery?: string;
301
- constructor(data?: PartialMessage<HookListFilter>);
302
- static readonly runtime: typeof proto3;
303
- static readonly typeName = "data.v2.HookListFilter";
304
- static readonly fields: FieldList;
305
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HookListFilter;
306
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HookListFilter;
307
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HookListFilter;
308
- static equals(a: HookListFilter | PlainMessage<HookListFilter> | undefined, b: HookListFilter | PlainMessage<HookListFilter> | undefined): boolean;
309
- }
260
+ searchQuery?: string | undefined;
261
+ };
262
+ /**
263
+ * Describes the message data.v2.HookListFilter.
264
+ * Use `create(HookListFilterSchema)` to create a new message.
265
+ */
266
+ export declare const HookListFilterSchema: GenMessage<HookListFilter>;
310
267
  /**
311
268
  * Zero values sort after positive ones and unset values sort last, in both
312
269
  * directions.
313
270
  *
314
271
  * @generated from message data.v2.HooksSort
315
272
  */
316
- export declare class HooksSort extends Message<HooksSort> {
273
+ export type HooksSort = Message<"data.v2.HooksSort"> & {
317
274
  /**
318
275
  * default HOOKS_ORDER_BY_VOLUME_1D
319
276
  *
320
277
  * @generated from field: optional data.v2.HooksOrderBy order_by = 1;
321
278
  */
322
- orderBy?: HooksOrderBy;
279
+ orderBy?: HooksOrderBy | undefined;
323
280
  /**
324
281
  * default false (highest first)
325
282
  *
326
283
  * @generated from field: optional bool ascending = 2;
327
284
  */
328
- ascending?: boolean;
329
- constructor(data?: PartialMessage<HooksSort>);
330
- static readonly runtime: typeof proto3;
331
- static readonly typeName = "data.v2.HooksSort";
332
- static readonly fields: FieldList;
333
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HooksSort;
334
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HooksSort;
335
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HooksSort;
336
- static equals(a: HooksSort | PlainMessage<HooksSort> | undefined, b: HooksSort | PlainMessage<HooksSort> | undefined): boolean;
337
- }
285
+ ascending?: boolean | undefined;
286
+ };
287
+ /**
288
+ * Describes the message data.v2.HooksSort.
289
+ * Use `create(HooksSortSchema)` to create a new message.
290
+ */
291
+ export declare const HooksSortSchema: GenMessage<HooksSort>;
338
292
  /**
339
293
  * @generated from message data.v2.HookIdentifier
340
294
  */
341
- export declare class HookIdentifier extends Message<HookIdentifier> {
295
+ export type HookIdentifier = Message<"data.v2.HookIdentifier"> & {
342
296
  /**
343
297
  * @generated from field: uint32 chain_id = 1;
344
298
  */
@@ -349,12 +303,42 @@ export declare class HookIdentifier extends Message<HookIdentifier> {
349
303
  * @generated from field: string address = 2;
350
304
  */
351
305
  address: string;
352
- constructor(data?: PartialMessage<HookIdentifier>);
353
- static readonly runtime: typeof proto3;
354
- static readonly typeName = "data.v2.HookIdentifier";
355
- static readonly fields: FieldList;
356
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HookIdentifier;
357
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HookIdentifier;
358
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HookIdentifier;
359
- static equals(a: HookIdentifier | PlainMessage<HookIdentifier> | undefined, b: HookIdentifier | PlainMessage<HookIdentifier> | undefined): boolean;
306
+ };
307
+ /**
308
+ * Describes the message data.v2.HookIdentifier.
309
+ * Use `create(HookIdentifierSchema)` to create a new message.
310
+ */
311
+ export declare const HookIdentifierSchema: GenMessage<HookIdentifier>;
312
+ /**
313
+ * @generated from enum data.v2.HooksOrderBy
314
+ */
315
+ export declare enum HooksOrderBy {
316
+ /**
317
+ * @generated from enum value: HOOKS_ORDER_BY_UNSPECIFIED = 0;
318
+ */
319
+ UNSPECIFIED = 0,
320
+ /**
321
+ * @generated from enum value: HOOKS_ORDER_BY_VOLUME_1D = 1;
322
+ */
323
+ VOLUME_1D = 1,
324
+ /**
325
+ * @generated from enum value: HOOKS_ORDER_BY_VOLUME_7D = 2;
326
+ */
327
+ VOLUME_7D = 2,
328
+ /**
329
+ * @generated from enum value: HOOKS_ORDER_BY_VOLUME_30D = 3;
330
+ */
331
+ VOLUME_30D = 3,
332
+ /**
333
+ * @generated from enum value: HOOKS_ORDER_BY_TVL = 4;
334
+ */
335
+ TVL = 4,
336
+ /**
337
+ * @generated from enum value: HOOKS_ORDER_BY_POOL_COUNT = 5;
338
+ */
339
+ POOL_COUNT = 5
360
340
  }
341
+ /**
342
+ * Describes the enum data.v2.HooksOrderBy.
343
+ */
344
+ export declare const HooksOrderBySchema: GenEnum<HooksOrderBy>;