@uniswap/client-data-api 0.0.295 → 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 -1846
  38. package/dist/data/v2/types_pb.js +282 -2141
  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,51 +1,13 @@
1
- import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
- import { Message, proto3 } from "@bufbuild/protobuf";
1
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Message } from "@bufbuild/protobuf";
3
3
  /**
4
- * @generated from enum pools.v1.ProtocolVersion
4
+ * Describes the file data/v1/poolTypes.proto.
5
5
  */
6
- export declare enum ProtocolVersion {
7
- /**
8
- * @generated from enum value: PROTOCOL_VERSION_UNSPECIFIED = 0;
9
- */
10
- UNSPECIFIED = 0,
11
- /**
12
- * @generated from enum value: PROTOCOL_VERSION_V2 = 1;
13
- */
14
- V2 = 1,
15
- /**
16
- * @generated from enum value: PROTOCOL_VERSION_V3 = 2;
17
- */
18
- V3 = 2,
19
- /**
20
- * @generated from enum value: PROTOCOL_VERSION_V4 = 3;
21
- */
22
- V4 = 3
23
- }
24
- /**
25
- * @generated from enum pools.v1.PositionStatus
26
- */
27
- export declare enum PositionStatus {
28
- /**
29
- * @generated from enum value: POSITION_STATUS_UNSPECIFIED = 0;
30
- */
31
- UNSPECIFIED = 0,
32
- /**
33
- * @generated from enum value: POSITION_STATUS_IN_RANGE = 1;
34
- */
35
- IN_RANGE = 1,
36
- /**
37
- * @generated from enum value: POSITION_STATUS_OUT_OF_RANGE = 2;
38
- */
39
- OUT_OF_RANGE = 2,
40
- /**
41
- * @generated from enum value: POSITION_STATUS_CLOSED = 3;
42
- */
43
- CLOSED = 3
44
- }
6
+ export declare const file_data_v1_poolTypes: GenFile;
45
7
  /**
46
8
  * @generated from message pools.v1.Token
47
9
  */
48
- export declare class Token extends Message<Token> {
10
+ export type Token = Message<"pools.v1.Token"> & {
49
11
  /**
50
12
  * @generated from field: uint32 chain_id = 1;
51
13
  */
@@ -69,31 +31,28 @@ export declare class Token extends Message<Token> {
69
31
  /**
70
32
  * @generated from field: optional string logo = 6;
71
33
  */
72
- logo?: string;
34
+ logo?: string | undefined;
73
35
  /**
74
36
  * @generated from field: bool is_native = 7;
75
37
  */
76
38
  isNative: boolean;
77
- constructor(data?: PartialMessage<Token>);
78
- static readonly runtime: typeof proto3;
79
- static readonly typeName = "pools.v1.Token";
80
- static readonly fields: FieldList;
81
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Token;
82
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Token;
83
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Token;
84
- static equals(a: Token | PlainMessage<Token> | undefined, b: Token | PlainMessage<Token> | undefined): boolean;
85
- }
39
+ };
40
+ /**
41
+ * Describes the message pools.v1.Token.
42
+ * Use `create(TokenSchema)` to create a new message.
43
+ */
44
+ export declare const TokenSchema: GenMessage<Token>;
86
45
  /**
87
46
  * Unclaimed reward balance for a single reward token. Surfaces LP incentive
88
47
  * rewards per denomination (e.g. UNI, USDC) rather than a single UNI-only amount.
89
48
  *
90
49
  * @generated from message pools.v1.RewardBalance
91
50
  */
92
- export declare class RewardBalance extends Message<RewardBalance> {
51
+ export type RewardBalance = Message<"pools.v1.RewardBalance"> & {
93
52
  /**
94
53
  * @generated from field: pools.v1.Token token = 1;
95
54
  */
96
- token?: Token;
55
+ token?: Token | undefined;
97
56
  /**
98
57
  * Unclaimed amount in the token's smallest unit.
99
58
  *
@@ -105,20 +64,17 @@ export declare class RewardBalance extends Message<RewardBalance> {
105
64
  *
106
65
  * @generated from field: optional double unclaimed_amount_usd = 3;
107
66
  */
108
- unclaimedAmountUsd?: number;
109
- constructor(data?: PartialMessage<RewardBalance>);
110
- static readonly runtime: typeof proto3;
111
- static readonly typeName = "pools.v1.RewardBalance";
112
- static readonly fields: FieldList;
113
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RewardBalance;
114
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RewardBalance;
115
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RewardBalance;
116
- static equals(a: RewardBalance | PlainMessage<RewardBalance> | undefined, b: RewardBalance | PlainMessage<RewardBalance> | undefined): boolean;
117
- }
67
+ unclaimedAmountUsd?: number | undefined;
68
+ };
69
+ /**
70
+ * Describes the message pools.v1.RewardBalance.
71
+ * Use `create(RewardBalanceSchema)` to create a new message.
72
+ */
73
+ export declare const RewardBalanceSchema: GenMessage<RewardBalance>;
118
74
  /**
119
75
  * @generated from message pools.v1.PoolPosition
120
76
  */
121
- export declare class PoolPosition extends Message<PoolPosition> {
77
+ export type PoolPosition = Message<"pools.v1.PoolPosition"> & {
122
78
  /**
123
79
  * @generated from field: string token_id = 1;
124
80
  */
@@ -138,11 +94,11 @@ export declare class PoolPosition extends Message<PoolPosition> {
138
94
  /**
139
95
  * @generated from field: pools.v1.Token token0 = 5;
140
96
  */
141
- token0?: Token;
97
+ token0?: Token | undefined;
142
98
  /**
143
99
  * @generated from field: pools.v1.Token token1 = 6;
144
100
  */
145
- token1?: Token;
101
+ token1?: Token | undefined;
146
102
  /**
147
103
  * @generated from field: string fee_tier = 7;
148
104
  */
@@ -221,14 +177,14 @@ export declare class PoolPosition extends Message<PoolPosition> {
221
177
  *
222
178
  * @generated from field: optional uint32 protocol_fee = 25;
223
179
  */
224
- protocolFee?: number;
180
+ protocolFee?: number | undefined;
225
181
  /**
226
182
  * Effective (all-in) fee (pips). v4: fee_tier+protocol_fee; v3: fee_tier.
227
183
  * Optional: unset when protocol_fee is unavailable (incl. v4 dynamic-fee).
228
184
  *
229
185
  * @generated from field: optional uint32 effective_fee = 26;
230
186
  */
231
- effectiveFee?: number;
187
+ effectiveFee?: number | undefined;
232
188
  /**
233
189
  * Fee APR averaged over the trailing 1/7/30 calendar days (excludes reward
234
190
  * boosts). Set whenever the pool's day-data history was fetched (positions
@@ -237,40 +193,37 @@ export declare class PoolPosition extends Message<PoolPosition> {
237
193
  *
238
194
  * @generated from field: optional double apr_1d = 27;
239
195
  */
240
- apr1d?: number;
196
+ apr1d?: number | undefined;
241
197
  /**
242
198
  * @generated from field: optional double apr_7d = 28;
243
199
  */
244
- apr7d?: number;
200
+ apr7d?: number | undefined;
245
201
  /**
246
202
  * @generated from field: optional double apr_30d = 29;
247
203
  */
248
- apr30d?: number;
249
- constructor(data?: PartialMessage<PoolPosition>);
250
- static readonly runtime: typeof proto3;
251
- static readonly typeName = "pools.v1.PoolPosition";
252
- static readonly fields: FieldList;
253
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PoolPosition;
254
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PoolPosition;
255
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PoolPosition;
256
- static equals(a: PoolPosition | PlainMessage<PoolPosition> | undefined, b: PoolPosition | PlainMessage<PoolPosition> | undefined): boolean;
257
- }
204
+ apr30d?: number | undefined;
205
+ };
206
+ /**
207
+ * Describes the message pools.v1.PoolPosition.
208
+ * Use `create(PoolPositionSchema)` to create a new message.
209
+ */
210
+ export declare const PoolPositionSchema: GenMessage<PoolPosition>;
258
211
  /**
259
212
  * @generated from message pools.v1.PairPosition
260
213
  */
261
- export declare class PairPosition extends Message<PairPosition> {
214
+ export type PairPosition = Message<"pools.v1.PairPosition"> & {
262
215
  /**
263
216
  * @generated from field: pools.v1.Token token0 = 1;
264
217
  */
265
- token0?: Token;
218
+ token0?: Token | undefined;
266
219
  /**
267
220
  * @generated from field: pools.v1.Token token1 = 2;
268
221
  */
269
- token1?: Token;
222
+ token1?: Token | undefined;
270
223
  /**
271
224
  * @generated from field: pools.v1.Token liquidity_token = 3;
272
225
  */
273
- liquidityToken?: Token;
226
+ liquidityToken?: Token | undefined;
274
227
  /**
275
228
  * @generated from field: string reserve0 = 4;
276
229
  */
@@ -299,19 +252,16 @@ export declare class PairPosition extends Message<PairPosition> {
299
252
  * @generated from field: float apr = 10;
300
253
  */
301
254
  apr: number;
302
- constructor(data?: PartialMessage<PairPosition>);
303
- static readonly runtime: typeof proto3;
304
- static readonly typeName = "pools.v1.PairPosition";
305
- static readonly fields: FieldList;
306
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PairPosition;
307
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PairPosition;
308
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PairPosition;
309
- static equals(a: PairPosition | PlainMessage<PairPosition> | undefined, b: PairPosition | PlainMessage<PairPosition> | undefined): boolean;
310
- }
255
+ };
256
+ /**
257
+ * Describes the message pools.v1.PairPosition.
258
+ * Use `create(PairPositionSchema)` to create a new message.
259
+ */
260
+ export declare const PairPositionSchema: GenMessage<PairPosition>;
311
261
  /**
312
262
  * @generated from message pools.v1.Position
313
263
  */
314
- export declare class Position extends Message<Position> {
264
+ export type Position = Message<"pools.v1.Position"> & {
315
265
  /**
316
266
  * @generated from field: uint32 chain_id = 1;
317
267
  */
@@ -360,11 +310,11 @@ export declare class Position extends Message<Position> {
360
310
  /**
361
311
  * @generated from field: optional double value_usd = 9;
362
312
  */
363
- valueUsd?: number;
313
+ valueUsd?: number | undefined;
364
314
  /**
365
315
  * @generated from field: optional double uncollected_fees_usd = 10;
366
316
  */
367
- uncollectedFeesUsd?: number;
317
+ uncollectedFeesUsd?: number | undefined;
368
318
  /**
369
319
  * True if this is a permissioned-pool position (held via the
370
320
  * PermissionedPositionManager) rather than a canonical one. Default false.
@@ -372,50 +322,91 @@ export declare class Position extends Message<Position> {
372
322
  * @generated from field: bool permissioned = 11;
373
323
  */
374
324
  permissioned: boolean;
375
- constructor(data?: PartialMessage<Position>);
376
- static readonly runtime: typeof proto3;
377
- static readonly typeName = "pools.v1.Position";
378
- static readonly fields: FieldList;
379
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Position;
380
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Position;
381
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Position;
382
- static equals(a: Position | PlainMessage<Position> | undefined, b: Position | PlainMessage<Position> | undefined): boolean;
383
- }
325
+ };
326
+ /**
327
+ * Describes the message pools.v1.Position.
328
+ * Use `create(PositionSchema)` to create a new message.
329
+ */
330
+ export declare const PositionSchema: GenMessage<Position>;
384
331
  /**
385
332
  * @generated from message pools.v1.Hook
386
333
  */
387
- export declare class Hook extends Message<Hook> {
334
+ export type Hook = Message<"pools.v1.Hook"> & {
388
335
  /**
389
336
  * @generated from field: string address = 1;
390
337
  */
391
338
  address: string;
392
- constructor(data?: PartialMessage<Hook>);
393
- static readonly runtime: typeof proto3;
394
- static readonly typeName = "pools.v1.Hook";
395
- static readonly fields: FieldList;
396
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Hook;
397
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Hook;
398
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Hook;
399
- static equals(a: Hook | PlainMessage<Hook> | undefined, b: Hook | PlainMessage<Hook> | undefined): boolean;
400
- }
339
+ };
340
+ /**
341
+ * Describes the message pools.v1.Hook.
342
+ * Use `create(HookSchema)` to create a new message.
343
+ */
344
+ export declare const HookSchema: GenMessage<Hook>;
401
345
  /**
402
346
  * @generated from message pools.v1.V4Position
403
347
  */
404
- export declare class V4Position extends Message<V4Position> {
348
+ export type V4Position = Message<"pools.v1.V4Position"> & {
405
349
  /**
406
350
  * @generated from field: pools.v1.PoolPosition pool_position = 1;
407
351
  */
408
- poolPosition?: PoolPosition;
352
+ poolPosition?: PoolPosition | undefined;
409
353
  /**
410
354
  * @generated from field: repeated pools.v1.Hook hooks = 2;
411
355
  */
412
356
  hooks: Hook[];
413
- constructor(data?: PartialMessage<V4Position>);
414
- static readonly runtime: typeof proto3;
415
- static readonly typeName = "pools.v1.V4Position";
416
- static readonly fields: FieldList;
417
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V4Position;
418
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V4Position;
419
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V4Position;
420
- static equals(a: V4Position | PlainMessage<V4Position> | undefined, b: V4Position | PlainMessage<V4Position> | undefined): boolean;
357
+ };
358
+ /**
359
+ * Describes the message pools.v1.V4Position.
360
+ * Use `create(V4PositionSchema)` to create a new message.
361
+ */
362
+ export declare const V4PositionSchema: GenMessage<V4Position>;
363
+ /**
364
+ * @generated from enum pools.v1.ProtocolVersion
365
+ */
366
+ export declare enum ProtocolVersion {
367
+ /**
368
+ * @generated from enum value: PROTOCOL_VERSION_UNSPECIFIED = 0;
369
+ */
370
+ UNSPECIFIED = 0,
371
+ /**
372
+ * @generated from enum value: PROTOCOL_VERSION_V2 = 1;
373
+ */
374
+ V2 = 1,
375
+ /**
376
+ * @generated from enum value: PROTOCOL_VERSION_V3 = 2;
377
+ */
378
+ V3 = 2,
379
+ /**
380
+ * @generated from enum value: PROTOCOL_VERSION_V4 = 3;
381
+ */
382
+ V4 = 3
383
+ }
384
+ /**
385
+ * Describes the enum pools.v1.ProtocolVersion.
386
+ */
387
+ export declare const ProtocolVersionSchema: GenEnum<ProtocolVersion>;
388
+ /**
389
+ * @generated from enum pools.v1.PositionStatus
390
+ */
391
+ export declare enum PositionStatus {
392
+ /**
393
+ * @generated from enum value: POSITION_STATUS_UNSPECIFIED = 0;
394
+ */
395
+ UNSPECIFIED = 0,
396
+ /**
397
+ * @generated from enum value: POSITION_STATUS_IN_RANGE = 1;
398
+ */
399
+ IN_RANGE = 1,
400
+ /**
401
+ * @generated from enum value: POSITION_STATUS_OUT_OF_RANGE = 2;
402
+ */
403
+ OUT_OF_RANGE = 2,
404
+ /**
405
+ * @generated from enum value: POSITION_STATUS_CLOSED = 3;
406
+ */
407
+ CLOSED = 3
421
408
  }
409
+ /**
410
+ * Describes the enum pools.v1.PositionStatus.
411
+ */
412
+ export declare const PositionStatusSchema: GenEnum<PositionStatus>;