@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,8 +1,46 @@
1
- // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v2.16.0 with parameter "target=ts"
2
2
  // @generated from file data/v1/poolTypes.proto (package pools.v1, syntax proto3)
3
3
  /* eslint-disable */
4
- // @ts-nocheck
5
- import { Message, proto3 } from "@bufbuild/protobuf";
4
+ import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
5
+ /**
6
+ * Describes the file data/v1/poolTypes.proto.
7
+ */
8
+ export const file_data_v1_poolTypes = /*@__PURE__*/ fileDesc("ChdkYXRhL3YxL3Bvb2xUeXBlcy5wcm90bxIIcG9vbHMudjEiiQEKBVRva2VuEhAKCGNoYWluX2lkGAEgASgNEg8KB2FkZHJlc3MYAiAB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fZmVlc191c2QYCiABKAFIAogBARIUCgxwZXJtaXNzaW9uZWQYCyABKAhCCgoIcG9zaXRpb25CDAoKX3ZhbHVlX3VzZEIXChVfdW5jb2xsZWN0ZWRfZmVlc191c2QiFwoESG9vaxIPCgdhZGRyZXNzGAEgASgJIloKClY0UG9zaXRpb24SLQoNcG9vbF9wb3NpdGlvbhgBIAEoCzIWLnBvb2xzLnYxLlBvb2xQb3NpdGlvbhIdCgVob29rcxgCIAMoCzIOLnBvb2xzLnYxLkhvb2sqfgoPUHJvdG9jb2xWZXJzaW9uEiAKHFBST1RPQ09MX1ZFUlNJT05fVU5TUEVDSUZJRUQQABIXChNQUk9UT0NPTF9WRVJTSU9OX1YyEAESFwoTUFJPVE9DT0xfVkVSU0lPTl9WMxACEhcKE1BST1RPQ09MX1ZFUlNJT05fVjQQAyqNAQoOUG9zaXRpb25TdGF0dXMSHwobUE9TSVRJT05fU1RBVFVTX1VOU1BFQ0lGSUVEEAASHAoYUE9TSVRJT05fU1RBVFVTX0lOX1JBTkdFEAESIAocUE9TSVRJT05fU1RBVFVTX09VVF9PRl9SQU5HRRACEhoKFlBPU0lUSU9OX1NUQVRVU19DTE9TRUQQA2IGcHJvdG8z");
9
+ /**
10
+ * Describes the message pools.v1.Token.
11
+ * Use `create(TokenSchema)` to create a new message.
12
+ */
13
+ export const TokenSchema = /*@__PURE__*/ messageDesc(file_data_v1_poolTypes, 0);
14
+ /**
15
+ * Describes the message pools.v1.RewardBalance.
16
+ * Use `create(RewardBalanceSchema)` to create a new message.
17
+ */
18
+ export const RewardBalanceSchema = /*@__PURE__*/ messageDesc(file_data_v1_poolTypes, 1);
19
+ /**
20
+ * Describes the message pools.v1.PoolPosition.
21
+ * Use `create(PoolPositionSchema)` to create a new message.
22
+ */
23
+ export const PoolPositionSchema = /*@__PURE__*/ messageDesc(file_data_v1_poolTypes, 2);
24
+ /**
25
+ * Describes the message pools.v1.PairPosition.
26
+ * Use `create(PairPositionSchema)` to create a new message.
27
+ */
28
+ export const PairPositionSchema = /*@__PURE__*/ messageDesc(file_data_v1_poolTypes, 3);
29
+ /**
30
+ * Describes the message pools.v1.Position.
31
+ * Use `create(PositionSchema)` to create a new message.
32
+ */
33
+ export const PositionSchema = /*@__PURE__*/ messageDesc(file_data_v1_poolTypes, 4);
34
+ /**
35
+ * Describes the message pools.v1.Hook.
36
+ * Use `create(HookSchema)` to create a new message.
37
+ */
38
+ export const HookSchema = /*@__PURE__*/ messageDesc(file_data_v1_poolTypes, 5);
39
+ /**
40
+ * Describes the message pools.v1.V4Position.
41
+ * Use `create(V4PositionSchema)` to create a new message.
42
+ */
43
+ export const V4PositionSchema = /*@__PURE__*/ messageDesc(file_data_v1_poolTypes, 6);
6
44
  /**
7
45
  * @generated from enum pools.v1.ProtocolVersion
8
46
  */
@@ -25,13 +63,10 @@ export var ProtocolVersion;
25
63
  */
26
64
  ProtocolVersion[ProtocolVersion["V4"] = 3] = "V4";
27
65
  })(ProtocolVersion || (ProtocolVersion = {}));
28
- // Retrieve enum metadata with: proto3.getEnumType(ProtocolVersion)
29
- proto3.util.setEnumType(ProtocolVersion, "pools.v1.ProtocolVersion", [
30
- { no: 0, name: "PROTOCOL_VERSION_UNSPECIFIED" },
31
- { no: 1, name: "PROTOCOL_VERSION_V2" },
32
- { no: 2, name: "PROTOCOL_VERSION_V3" },
33
- { no: 3, name: "PROTOCOL_VERSION_V4" },
34
- ]);
66
+ /**
67
+ * Describes the enum pools.v1.ProtocolVersion.
68
+ */
69
+ export const ProtocolVersionSchema = /*@__PURE__*/ enumDesc(file_data_v1_poolTypes, 0);
35
70
  /**
36
71
  * @generated from enum pools.v1.PositionStatus
37
72
  */
@@ -54,433 +89,7 @@ export var PositionStatus;
54
89
  */
55
90
  PositionStatus[PositionStatus["CLOSED"] = 3] = "CLOSED";
56
91
  })(PositionStatus || (PositionStatus = {}));
57
- // Retrieve enum metadata with: proto3.getEnumType(PositionStatus)
58
- proto3.util.setEnumType(PositionStatus, "pools.v1.PositionStatus", [
59
- { no: 0, name: "POSITION_STATUS_UNSPECIFIED" },
60
- { no: 1, name: "POSITION_STATUS_IN_RANGE" },
61
- { no: 2, name: "POSITION_STATUS_OUT_OF_RANGE" },
62
- { no: 3, name: "POSITION_STATUS_CLOSED" },
63
- ]);
64
- /**
65
- * @generated from message pools.v1.Token
66
- */
67
- export class Token extends Message {
68
- constructor(data) {
69
- super();
70
- /**
71
- * @generated from field: uint32 chain_id = 1;
72
- */
73
- this.chainId = 0;
74
- /**
75
- * @generated from field: string address = 2;
76
- */
77
- this.address = "";
78
- /**
79
- * @generated from field: string symbol = 3;
80
- */
81
- this.symbol = "";
82
- /**
83
- * @generated from field: uint32 decimals = 4;
84
- */
85
- this.decimals = 0;
86
- /**
87
- * @generated from field: string name = 5;
88
- */
89
- this.name = "";
90
- /**
91
- * @generated from field: bool is_native = 7;
92
- */
93
- this.isNative = false;
94
- proto3.util.initPartial(data, this);
95
- }
96
- static fromBinary(bytes, options) {
97
- return new Token().fromBinary(bytes, options);
98
- }
99
- static fromJson(jsonValue, options) {
100
- return new Token().fromJson(jsonValue, options);
101
- }
102
- static fromJsonString(jsonString, options) {
103
- return new Token().fromJsonString(jsonString, options);
104
- }
105
- static equals(a, b) {
106
- return proto3.util.equals(Token, a, b);
107
- }
108
- }
109
- Token.runtime = proto3;
110
- Token.typeName = "pools.v1.Token";
111
- Token.fields = proto3.util.newFieldList(() => [
112
- { no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
113
- { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
114
- { no: 3, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
115
- { no: 4, name: "decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
116
- { no: 5, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
117
- { no: 6, name: "logo", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
118
- { no: 7, name: "is_native", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
119
- ]);
120
- /**
121
- * Unclaimed reward balance for a single reward token. Surfaces LP incentive
122
- * rewards per denomination (e.g. UNI, USDC) rather than a single UNI-only amount.
123
- *
124
- * @generated from message pools.v1.RewardBalance
125
- */
126
- export class RewardBalance extends Message {
127
- constructor(data) {
128
- super();
129
- /**
130
- * Unclaimed amount in the token's smallest unit.
131
- *
132
- * @generated from field: string unclaimed_amount = 2;
133
- */
134
- this.unclaimedAmount = "";
135
- proto3.util.initPartial(data, this);
136
- }
137
- static fromBinary(bytes, options) {
138
- return new RewardBalance().fromBinary(bytes, options);
139
- }
140
- static fromJson(jsonValue, options) {
141
- return new RewardBalance().fromJson(jsonValue, options);
142
- }
143
- static fromJsonString(jsonString, options) {
144
- return new RewardBalance().fromJsonString(jsonString, options);
145
- }
146
- static equals(a, b) {
147
- return proto3.util.equals(RewardBalance, a, b);
148
- }
149
- }
150
- RewardBalance.runtime = proto3;
151
- RewardBalance.typeName = "pools.v1.RewardBalance";
152
- RewardBalance.fields = proto3.util.newFieldList(() => [
153
- { no: 1, name: "token", kind: "message", T: Token },
154
- { no: 2, name: "unclaimed_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
155
- { no: 3, name: "unclaimed_amount_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
156
- ]);
157
- /**
158
- * @generated from message pools.v1.PoolPosition
159
- */
160
- export class PoolPosition extends Message {
161
- constructor(data) {
162
- super();
163
- /**
164
- * @generated from field: string token_id = 1;
165
- */
166
- this.tokenId = "";
167
- /**
168
- * @generated from field: string tick_lower = 2;
169
- */
170
- this.tickLower = "";
171
- /**
172
- * @generated from field: string tick_upper = 3;
173
- */
174
- this.tickUpper = "";
175
- /**
176
- * @generated from field: string liquidity = 4;
177
- */
178
- this.liquidity = "";
179
- /**
180
- * @generated from field: string fee_tier = 7;
181
- */
182
- this.feeTier = "";
183
- /**
184
- * @generated from field: string current_tick = 8;
185
- */
186
- this.currentTick = "";
187
- /**
188
- * @generated from field: string current_price = 9;
189
- */
190
- this.currentPrice = "";
191
- /**
192
- * @generated from field: string tick_spacing = 10;
193
- */
194
- this.tickSpacing = "";
195
- /**
196
- * @generated from field: string token0_uncollected_fees = 11;
197
- */
198
- this.token0UncollectedFees = "";
199
- /**
200
- * @generated from field: string token1_uncollected_fees = 12;
201
- */
202
- this.token1UncollectedFees = "";
203
- /**
204
- * @generated from field: string amount0 = 13;
205
- */
206
- this.amount0 = "";
207
- /**
208
- * @generated from field: string amount1 = 14;
209
- */
210
- this.amount1 = "";
211
- /**
212
- * @generated from field: string pool_id = 15;
213
- */
214
- this.poolId = "";
215
- /**
216
- * @generated from field: bool is_dynamic_fee = 16;
217
- */
218
- this.isDynamicFee = false;
219
- /**
220
- * @generated from field: string total_liquidity_usd = 17;
221
- */
222
- this.totalLiquidityUsd = "";
223
- /**
224
- * @generated from field: string current_liquidity = 18;
225
- */
226
- this.currentLiquidity = "";
227
- /**
228
- * @generated from field: float apr = 19;
229
- */
230
- this.apr = 0;
231
- /**
232
- * @generated from field: string owner = 20;
233
- */
234
- this.owner = "";
235
- /**
236
- * @generated from field: float boosted_apr = 21;
237
- */
238
- this.boostedApr = 0;
239
- /**
240
- * @generated from field: float total_apr = 22;
241
- */
242
- this.totalApr = 0;
243
- /**
244
- * Per-reward-token unclaimed balances (multi-denomination).
245
- *
246
- * @generated from field: repeated pools.v1.RewardBalance reward_balances = 24;
247
- */
248
- this.rewardBalances = [];
249
- proto3.util.initPartial(data, this);
250
- }
251
- static fromBinary(bytes, options) {
252
- return new PoolPosition().fromBinary(bytes, options);
253
- }
254
- static fromJson(jsonValue, options) {
255
- return new PoolPosition().fromJson(jsonValue, options);
256
- }
257
- static fromJsonString(jsonString, options) {
258
- return new PoolPosition().fromJsonString(jsonString, options);
259
- }
260
- static equals(a, b) {
261
- return proto3.util.equals(PoolPosition, a, b);
262
- }
263
- }
264
- PoolPosition.runtime = proto3;
265
- PoolPosition.typeName = "pools.v1.PoolPosition";
266
- PoolPosition.fields = proto3.util.newFieldList(() => [
267
- { no: 1, name: "token_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
268
- { no: 2, name: "tick_lower", kind: "scalar", T: 9 /* ScalarType.STRING */ },
269
- { no: 3, name: "tick_upper", kind: "scalar", T: 9 /* ScalarType.STRING */ },
270
- { no: 4, name: "liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
271
- { no: 5, name: "token0", kind: "message", T: Token },
272
- { no: 6, name: "token1", kind: "message", T: Token },
273
- { no: 7, name: "fee_tier", kind: "scalar", T: 9 /* ScalarType.STRING */ },
274
- { no: 8, name: "current_tick", kind: "scalar", T: 9 /* ScalarType.STRING */ },
275
- { no: 9, name: "current_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
276
- { no: 10, name: "tick_spacing", kind: "scalar", T: 9 /* ScalarType.STRING */ },
277
- { no: 11, name: "token0_uncollected_fees", kind: "scalar", T: 9 /* ScalarType.STRING */ },
278
- { no: 12, name: "token1_uncollected_fees", kind: "scalar", T: 9 /* ScalarType.STRING */ },
279
- { no: 13, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
280
- { no: 14, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
281
- { no: 15, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
282
- { no: 16, name: "is_dynamic_fee", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
283
- { no: 17, name: "total_liquidity_usd", kind: "scalar", T: 9 /* ScalarType.STRING */ },
284
- { no: 18, name: "current_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
285
- { no: 19, name: "apr", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
286
- { no: 20, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ },
287
- { no: 21, name: "boosted_apr", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
288
- { no: 22, name: "total_apr", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
289
- { no: 24, name: "reward_balances", kind: "message", T: RewardBalance, repeated: true },
290
- { no: 25, name: "protocol_fee", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
291
- { no: 26, name: "effective_fee", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
292
- { no: 27, name: "apr_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
293
- { no: 28, name: "apr_7d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
294
- { no: 29, name: "apr_30d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
295
- ]);
296
- /**
297
- * @generated from message pools.v1.PairPosition
298
- */
299
- export class PairPosition extends Message {
300
- constructor(data) {
301
- super();
302
- /**
303
- * @generated from field: string reserve0 = 4;
304
- */
305
- this.reserve0 = "";
306
- /**
307
- * @generated from field: string reserve1 = 5;
308
- */
309
- this.reserve1 = "";
310
- /**
311
- * @generated from field: string liquidity = 6;
312
- */
313
- this.liquidity = "";
314
- /**
315
- * @generated from field: string liquidity0 = 7;
316
- */
317
- this.liquidity0 = "";
318
- /**
319
- * @generated from field: string liquidity1 = 8;
320
- */
321
- this.liquidity1 = "";
322
- /**
323
- * @generated from field: string total_supply = 9;
324
- */
325
- this.totalSupply = "";
326
- /**
327
- * @generated from field: float apr = 10;
328
- */
329
- this.apr = 0;
330
- proto3.util.initPartial(data, this);
331
- }
332
- static fromBinary(bytes, options) {
333
- return new PairPosition().fromBinary(bytes, options);
334
- }
335
- static fromJson(jsonValue, options) {
336
- return new PairPosition().fromJson(jsonValue, options);
337
- }
338
- static fromJsonString(jsonString, options) {
339
- return new PairPosition().fromJsonString(jsonString, options);
340
- }
341
- static equals(a, b) {
342
- return proto3.util.equals(PairPosition, a, b);
343
- }
344
- }
345
- PairPosition.runtime = proto3;
346
- PairPosition.typeName = "pools.v1.PairPosition";
347
- PairPosition.fields = proto3.util.newFieldList(() => [
348
- { no: 1, name: "token0", kind: "message", T: Token },
349
- { no: 2, name: "token1", kind: "message", T: Token },
350
- { no: 3, name: "liquidity_token", kind: "message", T: Token },
351
- { no: 4, name: "reserve0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
352
- { no: 5, name: "reserve1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
353
- { no: 6, name: "liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
354
- { no: 7, name: "liquidity0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
355
- { no: 8, name: "liquidity1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
356
- { no: 9, name: "total_supply", kind: "scalar", T: 9 /* ScalarType.STRING */ },
357
- { no: 10, name: "apr", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
358
- ]);
359
- /**
360
- * @generated from message pools.v1.Position
361
- */
362
- export class Position extends Message {
363
- constructor(data) {
364
- super();
365
- /**
366
- * @generated from field: uint32 chain_id = 1;
367
- */
368
- this.chainId = 0;
369
- /**
370
- * @generated from field: pools.v1.ProtocolVersion protocol_version = 2;
371
- */
372
- this.protocolVersion = ProtocolVersion.UNSPECIFIED;
373
- /**
374
- * @generated from oneof pools.v1.Position.position
375
- */
376
- this.position = { case: undefined };
377
- /**
378
- * @generated from field: pools.v1.PositionStatus status = 6;
379
- */
380
- this.status = PositionStatus.UNSPECIFIED;
381
- /**
382
- * @generated from field: uint32 timestamp = 7;
383
- */
384
- this.timestamp = 0;
385
- /**
386
- * @generated from field: bool is_hidden = 8;
387
- */
388
- this.isHidden = false;
389
- /**
390
- * True if this is a permissioned-pool position (held via the
391
- * PermissionedPositionManager) rather than a canonical one. Default false.
392
- *
393
- * @generated from field: bool permissioned = 11;
394
- */
395
- this.permissioned = false;
396
- proto3.util.initPartial(data, this);
397
- }
398
- static fromBinary(bytes, options) {
399
- return new Position().fromBinary(bytes, options);
400
- }
401
- static fromJson(jsonValue, options) {
402
- return new Position().fromJson(jsonValue, options);
403
- }
404
- static fromJsonString(jsonString, options) {
405
- return new Position().fromJsonString(jsonString, options);
406
- }
407
- static equals(a, b) {
408
- return proto3.util.equals(Position, a, b);
409
- }
410
- }
411
- Position.runtime = proto3;
412
- Position.typeName = "pools.v1.Position";
413
- Position.fields = proto3.util.newFieldList(() => [
414
- { no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
415
- { no: 2, name: "protocol_version", kind: "enum", T: proto3.getEnumType(ProtocolVersion) },
416
- { no: 3, name: "v2_pair", kind: "message", T: PairPosition, oneof: "position" },
417
- { no: 4, name: "v3_position", kind: "message", T: PoolPosition, oneof: "position" },
418
- { no: 5, name: "v4_position", kind: "message", T: V4Position, oneof: "position" },
419
- { no: 6, name: "status", kind: "enum", T: proto3.getEnumType(PositionStatus) },
420
- { no: 7, name: "timestamp", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
421
- { no: 8, name: "is_hidden", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
422
- { no: 9, name: "value_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
423
- { no: 10, name: "uncollected_fees_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
424
- { no: 11, name: "permissioned", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
425
- ]);
426
- /**
427
- * @generated from message pools.v1.Hook
428
- */
429
- export class Hook extends Message {
430
- constructor(data) {
431
- super();
432
- /**
433
- * @generated from field: string address = 1;
434
- */
435
- this.address = "";
436
- proto3.util.initPartial(data, this);
437
- }
438
- static fromBinary(bytes, options) {
439
- return new Hook().fromBinary(bytes, options);
440
- }
441
- static fromJson(jsonValue, options) {
442
- return new Hook().fromJson(jsonValue, options);
443
- }
444
- static fromJsonString(jsonString, options) {
445
- return new Hook().fromJsonString(jsonString, options);
446
- }
447
- static equals(a, b) {
448
- return proto3.util.equals(Hook, a, b);
449
- }
450
- }
451
- Hook.runtime = proto3;
452
- Hook.typeName = "pools.v1.Hook";
453
- Hook.fields = proto3.util.newFieldList(() => [
454
- { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
455
- ]);
456
92
  /**
457
- * @generated from message pools.v1.V4Position
93
+ * Describes the enum pools.v1.PositionStatus.
458
94
  */
459
- export class V4Position extends Message {
460
- constructor(data) {
461
- super();
462
- /**
463
- * @generated from field: repeated pools.v1.Hook hooks = 2;
464
- */
465
- this.hooks = [];
466
- proto3.util.initPartial(data, this);
467
- }
468
- static fromBinary(bytes, options) {
469
- return new V4Position().fromBinary(bytes, options);
470
- }
471
- static fromJson(jsonValue, options) {
472
- return new V4Position().fromJson(jsonValue, options);
473
- }
474
- static fromJsonString(jsonString, options) {
475
- return new V4Position().fromJsonString(jsonString, options);
476
- }
477
- static equals(a, b) {
478
- return proto3.util.equals(V4Position, a, b);
479
- }
480
- }
481
- V4Position.runtime = proto3;
482
- V4Position.typeName = "pools.v1.V4Position";
483
- V4Position.fields = proto3.util.newFieldList(() => [
484
- { no: 1, name: "pool_position", kind: "message", T: PoolPosition },
485
- { no: 2, name: "hooks", kind: "message", T: Hook, repeated: true },
486
- ]);
95
+ export const PositionStatusSchema = /*@__PURE__*/ enumDesc(file_data_v1_poolTypes, 1);