@uniswap/client-data-api 0.0.13 → 0.0.15

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.
@@ -0,0 +1,593 @@
1
+ // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
2
+ // @generated from file data/v1/poolTypes.proto (package pools.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { Message, proto3 } from "@bufbuild/protobuf";
6
+ /**
7
+ * @generated from enum pools.v1.ProtocolVersion
8
+ */
9
+ export var ProtocolVersion;
10
+ (function (ProtocolVersion) {
11
+ /**
12
+ * @generated from enum value: PROTOCOL_VERSION_UNSPECIFIED = 0;
13
+ */
14
+ ProtocolVersion[ProtocolVersion["UNSPECIFIED"] = 0] = "UNSPECIFIED";
15
+ /**
16
+ * @generated from enum value: PROTOCOL_VERSION_V2 = 1;
17
+ */
18
+ ProtocolVersion[ProtocolVersion["V2"] = 1] = "V2";
19
+ /**
20
+ * @generated from enum value: PROTOCOL_VERSION_V3 = 2;
21
+ */
22
+ ProtocolVersion[ProtocolVersion["V3"] = 2] = "V3";
23
+ /**
24
+ * @generated from enum value: PROTOCOL_VERSION_V4 = 3;
25
+ */
26
+ ProtocolVersion[ProtocolVersion["V4"] = 3] = "V4";
27
+ })(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
+ ]);
35
+ /**
36
+ * @generated from enum pools.v1.PositionStatus
37
+ */
38
+ export var PositionStatus;
39
+ (function (PositionStatus) {
40
+ /**
41
+ * @generated from enum value: POSITION_STATUS_UNSPECIFIED = 0;
42
+ */
43
+ PositionStatus[PositionStatus["UNSPECIFIED"] = 0] = "UNSPECIFIED";
44
+ /**
45
+ * @generated from enum value: POSITION_STATUS_IN_RANGE = 1;
46
+ */
47
+ PositionStatus[PositionStatus["IN_RANGE"] = 1] = "IN_RANGE";
48
+ /**
49
+ * @generated from enum value: POSITION_STATUS_OUT_OF_RANGE = 2;
50
+ */
51
+ PositionStatus[PositionStatus["OUT_OF_RANGE"] = 2] = "OUT_OF_RANGE";
52
+ /**
53
+ * @generated from enum value: POSITION_STATUS_CLOSED = 3;
54
+ */
55
+ PositionStatus[PositionStatus["CLOSED"] = 3] = "CLOSED";
56
+ })(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
+ * @generated from message pools.v1.PoolPosition
122
+ */
123
+ export class PoolPosition extends Message {
124
+ constructor(data) {
125
+ super();
126
+ /**
127
+ * @generated from field: string token_id = 1;
128
+ */
129
+ this.tokenId = "";
130
+ /**
131
+ * @generated from field: string tick_lower = 2;
132
+ */
133
+ this.tickLower = "";
134
+ /**
135
+ * @generated from field: string tick_upper = 3;
136
+ */
137
+ this.tickUpper = "";
138
+ /**
139
+ * @generated from field: string liquidity = 4;
140
+ */
141
+ this.liquidity = "";
142
+ /**
143
+ * @generated from field: string fee_tier = 7;
144
+ */
145
+ this.feeTier = "";
146
+ /**
147
+ * @generated from field: string current_tick = 8;
148
+ */
149
+ this.currentTick = "";
150
+ /**
151
+ * @generated from field: string current_price = 9;
152
+ */
153
+ this.currentPrice = "";
154
+ /**
155
+ * @generated from field: string tick_spacing = 10;
156
+ */
157
+ this.tickSpacing = "";
158
+ /**
159
+ * @generated from field: string token0_uncollected_fees = 11;
160
+ */
161
+ this.token0UncollectedFees = "";
162
+ /**
163
+ * @generated from field: string token1_uncollected_fees = 12;
164
+ */
165
+ this.token1UncollectedFees = "";
166
+ /**
167
+ * @generated from field: string amount0 = 13;
168
+ */
169
+ this.amount0 = "";
170
+ /**
171
+ * @generated from field: string amount1 = 14;
172
+ */
173
+ this.amount1 = "";
174
+ /**
175
+ * @generated from field: string pool_id = 15;
176
+ */
177
+ this.poolId = "";
178
+ /**
179
+ * @generated from field: bool is_dynamic_fee = 16;
180
+ */
181
+ this.isDynamicFee = false;
182
+ /**
183
+ * @generated from field: string total_liquidity_usd = 17;
184
+ */
185
+ this.totalLiquidityUsd = "";
186
+ /**
187
+ * @generated from field: string current_liquidity = 18;
188
+ */
189
+ this.currentLiquidity = "";
190
+ /**
191
+ * @generated from field: float apr = 19;
192
+ */
193
+ this.apr = 0;
194
+ /**
195
+ * @generated from field: string owner = 20;
196
+ */
197
+ this.owner = "";
198
+ /**
199
+ * @generated from field: float boosted_apr = 21;
200
+ */
201
+ this.boostedApr = 0;
202
+ /**
203
+ * @generated from field: float total_apr = 22;
204
+ */
205
+ this.totalApr = 0;
206
+ /**
207
+ * @generated from field: string unclaimed_rewards_amount_uni = 23;
208
+ */
209
+ this.unclaimedRewardsAmountUni = "";
210
+ proto3.util.initPartial(data, this);
211
+ }
212
+ static fromBinary(bytes, options) {
213
+ return new PoolPosition().fromBinary(bytes, options);
214
+ }
215
+ static fromJson(jsonValue, options) {
216
+ return new PoolPosition().fromJson(jsonValue, options);
217
+ }
218
+ static fromJsonString(jsonString, options) {
219
+ return new PoolPosition().fromJsonString(jsonString, options);
220
+ }
221
+ static equals(a, b) {
222
+ return proto3.util.equals(PoolPosition, a, b);
223
+ }
224
+ }
225
+ PoolPosition.runtime = proto3;
226
+ PoolPosition.typeName = "pools.v1.PoolPosition";
227
+ PoolPosition.fields = proto3.util.newFieldList(() => [
228
+ { no: 1, name: "token_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
229
+ { no: 2, name: "tick_lower", kind: "scalar", T: 9 /* ScalarType.STRING */ },
230
+ { no: 3, name: "tick_upper", kind: "scalar", T: 9 /* ScalarType.STRING */ },
231
+ { no: 4, name: "liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
232
+ { no: 5, name: "token0", kind: "message", T: Token },
233
+ { no: 6, name: "token1", kind: "message", T: Token },
234
+ { no: 7, name: "fee_tier", kind: "scalar", T: 9 /* ScalarType.STRING */ },
235
+ { no: 8, name: "current_tick", kind: "scalar", T: 9 /* ScalarType.STRING */ },
236
+ { no: 9, name: "current_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
237
+ { no: 10, name: "tick_spacing", kind: "scalar", T: 9 /* ScalarType.STRING */ },
238
+ { no: 11, name: "token0_uncollected_fees", kind: "scalar", T: 9 /* ScalarType.STRING */ },
239
+ { no: 12, name: "token1_uncollected_fees", kind: "scalar", T: 9 /* ScalarType.STRING */ },
240
+ { no: 13, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
241
+ { no: 14, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
242
+ { no: 15, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
243
+ { no: 16, name: "is_dynamic_fee", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
244
+ { no: 17, name: "total_liquidity_usd", kind: "scalar", T: 9 /* ScalarType.STRING */ },
245
+ { no: 18, name: "current_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
246
+ { no: 19, name: "apr", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
247
+ { no: 20, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ },
248
+ { no: 21, name: "boosted_apr", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
249
+ { no: 22, name: "total_apr", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
250
+ { no: 23, name: "unclaimed_rewards_amount_uni", kind: "scalar", T: 9 /* ScalarType.STRING */ },
251
+ ]);
252
+ /**
253
+ * @generated from message pools.v1.PairPosition
254
+ */
255
+ export class PairPosition extends Message {
256
+ constructor(data) {
257
+ super();
258
+ /**
259
+ * @generated from field: string reserve0 = 4;
260
+ */
261
+ this.reserve0 = "";
262
+ /**
263
+ * @generated from field: string reserve1 = 5;
264
+ */
265
+ this.reserve1 = "";
266
+ /**
267
+ * @generated from field: string liquidity = 6;
268
+ */
269
+ this.liquidity = "";
270
+ /**
271
+ * @generated from field: string liquidity0 = 7;
272
+ */
273
+ this.liquidity0 = "";
274
+ /**
275
+ * @generated from field: string liquidity1 = 8;
276
+ */
277
+ this.liquidity1 = "";
278
+ /**
279
+ * @generated from field: string total_supply = 9;
280
+ */
281
+ this.totalSupply = "";
282
+ /**
283
+ * @generated from field: float apr = 10;
284
+ */
285
+ this.apr = 0;
286
+ proto3.util.initPartial(data, this);
287
+ }
288
+ static fromBinary(bytes, options) {
289
+ return new PairPosition().fromBinary(bytes, options);
290
+ }
291
+ static fromJson(jsonValue, options) {
292
+ return new PairPosition().fromJson(jsonValue, options);
293
+ }
294
+ static fromJsonString(jsonString, options) {
295
+ return new PairPosition().fromJsonString(jsonString, options);
296
+ }
297
+ static equals(a, b) {
298
+ return proto3.util.equals(PairPosition, a, b);
299
+ }
300
+ }
301
+ PairPosition.runtime = proto3;
302
+ PairPosition.typeName = "pools.v1.PairPosition";
303
+ PairPosition.fields = proto3.util.newFieldList(() => [
304
+ { no: 1, name: "token0", kind: "message", T: Token },
305
+ { no: 2, name: "token1", kind: "message", T: Token },
306
+ { no: 3, name: "liquidity_token", kind: "message", T: Token },
307
+ { no: 4, name: "reserve0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
308
+ { no: 5, name: "reserve1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
309
+ { no: 6, name: "liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
310
+ { no: 7, name: "liquidity0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
311
+ { no: 8, name: "liquidity1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
312
+ { no: 9, name: "total_supply", kind: "scalar", T: 9 /* ScalarType.STRING */ },
313
+ { no: 10, name: "apr", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
314
+ ]);
315
+ /**
316
+ * @generated from message pools.v1.Position
317
+ */
318
+ export class Position extends Message {
319
+ constructor(data) {
320
+ super();
321
+ /**
322
+ * @generated from field: uint32 chain_id = 1;
323
+ */
324
+ this.chainId = 0;
325
+ /**
326
+ * @generated from field: pools.v1.ProtocolVersion protocol_version = 2;
327
+ */
328
+ this.protocolVersion = ProtocolVersion.UNSPECIFIED;
329
+ /**
330
+ * @generated from oneof pools.v1.Position.position
331
+ */
332
+ this.position = { case: undefined };
333
+ /**
334
+ * @generated from field: pools.v1.PositionStatus status = 6;
335
+ */
336
+ this.status = PositionStatus.UNSPECIFIED;
337
+ /**
338
+ * @generated from field: uint32 timestamp = 7;
339
+ */
340
+ this.timestamp = 0;
341
+ /**
342
+ * @generated from field: bool is_hidden = 8;
343
+ */
344
+ this.isHidden = false;
345
+ proto3.util.initPartial(data, this);
346
+ }
347
+ static fromBinary(bytes, options) {
348
+ return new Position().fromBinary(bytes, options);
349
+ }
350
+ static fromJson(jsonValue, options) {
351
+ return new Position().fromJson(jsonValue, options);
352
+ }
353
+ static fromJsonString(jsonString, options) {
354
+ return new Position().fromJsonString(jsonString, options);
355
+ }
356
+ static equals(a, b) {
357
+ return proto3.util.equals(Position, a, b);
358
+ }
359
+ }
360
+ Position.runtime = proto3;
361
+ Position.typeName = "pools.v1.Position";
362
+ Position.fields = proto3.util.newFieldList(() => [
363
+ { no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
364
+ { no: 2, name: "protocol_version", kind: "enum", T: proto3.getEnumType(ProtocolVersion) },
365
+ { no: 3, name: "v2_pair", kind: "message", T: PairPosition, oneof: "position" },
366
+ { no: 4, name: "v3_position", kind: "message", T: PoolPosition, oneof: "position" },
367
+ { no: 5, name: "v4_position", kind: "message", T: V4Position, oneof: "position" },
368
+ { no: 6, name: "status", kind: "enum", T: proto3.getEnumType(PositionStatus) },
369
+ { no: 7, name: "timestamp", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
370
+ { no: 8, name: "is_hidden", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
371
+ ]);
372
+ /**
373
+ * @generated from message pools.v1.Hook
374
+ */
375
+ export class Hook extends Message {
376
+ constructor(data) {
377
+ super();
378
+ /**
379
+ * @generated from field: string address = 1;
380
+ */
381
+ this.address = "";
382
+ proto3.util.initPartial(data, this);
383
+ }
384
+ static fromBinary(bytes, options) {
385
+ return new Hook().fromBinary(bytes, options);
386
+ }
387
+ static fromJson(jsonValue, options) {
388
+ return new Hook().fromJson(jsonValue, options);
389
+ }
390
+ static fromJsonString(jsonString, options) {
391
+ return new Hook().fromJsonString(jsonString, options);
392
+ }
393
+ static equals(a, b) {
394
+ return proto3.util.equals(Hook, a, b);
395
+ }
396
+ }
397
+ Hook.runtime = proto3;
398
+ Hook.typeName = "pools.v1.Hook";
399
+ Hook.fields = proto3.util.newFieldList(() => [
400
+ { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
401
+ ]);
402
+ /**
403
+ * @generated from message pools.v1.V4Position
404
+ */
405
+ export class V4Position extends Message {
406
+ constructor(data) {
407
+ super();
408
+ /**
409
+ * @generated from field: repeated pools.v1.Hook hooks = 2;
410
+ */
411
+ this.hooks = [];
412
+ proto3.util.initPartial(data, this);
413
+ }
414
+ static fromBinary(bytes, options) {
415
+ return new V4Position().fromBinary(bytes, options);
416
+ }
417
+ static fromJson(jsonValue, options) {
418
+ return new V4Position().fromJson(jsonValue, options);
419
+ }
420
+ static fromJsonString(jsonString, options) {
421
+ return new V4Position().fromJsonString(jsonString, options);
422
+ }
423
+ static equals(a, b) {
424
+ return proto3.util.equals(V4Position, a, b);
425
+ }
426
+ }
427
+ V4Position.runtime = proto3;
428
+ V4Position.typeName = "pools.v1.V4Position";
429
+ V4Position.fields = proto3.util.newFieldList(() => [
430
+ { no: 1, name: "pool_position", kind: "message", T: PoolPosition },
431
+ { no: 2, name: "hooks", kind: "message", T: Hook, repeated: true },
432
+ ]);
433
+ /**
434
+ * @generated from message pools.v1.Pool
435
+ */
436
+ export class Pool extends Message {
437
+ constructor(data) {
438
+ super();
439
+ /**
440
+ * @generated from field: string pool_id = 1;
441
+ */
442
+ this.poolId = "";
443
+ /**
444
+ * @generated from field: string token0 = 2;
445
+ */
446
+ this.token0 = "";
447
+ /**
448
+ * @generated from field: string token1 = 3;
449
+ */
450
+ this.token1 = "";
451
+ /**
452
+ * @generated from field: int32 tick = 4;
453
+ */
454
+ this.tick = 0;
455
+ /**
456
+ * @generated from field: string liquidity = 5;
457
+ */
458
+ this.liquidity = "";
459
+ /**
460
+ * @generated from field: string sqrt_price_x96 = 6;
461
+ */
462
+ this.sqrtPriceX96 = "";
463
+ /**
464
+ * @generated from field: uint32 fee = 7;
465
+ */
466
+ this.fee = 0;
467
+ /**
468
+ * @generated from field: int32 tick_spacing = 8;
469
+ */
470
+ this.tickSpacing = 0;
471
+ /**
472
+ * @generated from field: pools.v1.ProtocolVersion protocol_version = 10;
473
+ */
474
+ this.protocolVersion = ProtocolVersion.UNSPECIFIED;
475
+ /**
476
+ * @generated from field: uint32 chain_id = 11;
477
+ */
478
+ this.chainId = 0;
479
+ /**
480
+ * @generated from field: bool is_dynamic_fee = 12;
481
+ */
482
+ this.isDynamicFee = false;
483
+ /**
484
+ * @generated from field: string total_liquidity_usd = 13;
485
+ */
486
+ this.totalLiquidityUsd = "";
487
+ /**
488
+ * @generated from field: float apr = 14;
489
+ */
490
+ this.apr = 0;
491
+ /**
492
+ * @generated from field: float boosted_apr = 15;
493
+ */
494
+ this.boostedApr = 0;
495
+ /**
496
+ * @generated from field: float total_apr = 16;
497
+ */
498
+ this.totalApr = 0;
499
+ proto3.util.initPartial(data, this);
500
+ }
501
+ static fromBinary(bytes, options) {
502
+ return new Pool().fromBinary(bytes, options);
503
+ }
504
+ static fromJson(jsonValue, options) {
505
+ return new Pool().fromJson(jsonValue, options);
506
+ }
507
+ static fromJsonString(jsonString, options) {
508
+ return new Pool().fromJsonString(jsonString, options);
509
+ }
510
+ static equals(a, b) {
511
+ return proto3.util.equals(Pool, a, b);
512
+ }
513
+ }
514
+ Pool.runtime = proto3;
515
+ Pool.typeName = "pools.v1.Pool";
516
+ Pool.fields = proto3.util.newFieldList(() => [
517
+ { no: 1, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
518
+ { no: 2, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
519
+ { no: 3, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
520
+ { no: 4, name: "tick", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
521
+ { no: 5, name: "liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
522
+ { no: 6, name: "sqrt_price_x96", kind: "scalar", T: 9 /* ScalarType.STRING */ },
523
+ { no: 7, name: "fee", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
524
+ { no: 8, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
525
+ { no: 9, name: "hooks", kind: "message", T: Hook, opt: true },
526
+ { no: 10, name: "protocol_version", kind: "enum", T: proto3.getEnumType(ProtocolVersion) },
527
+ { no: 11, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
528
+ { no: 12, name: "is_dynamic_fee", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
529
+ { no: 13, name: "total_liquidity_usd", kind: "scalar", T: 9 /* ScalarType.STRING */ },
530
+ { no: 14, name: "apr", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
531
+ { no: 15, name: "boosted_apr", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
532
+ { no: 16, name: "total_apr", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
533
+ ]);
534
+ /**
535
+ * @generated from message pools.v1.Pair
536
+ */
537
+ export class Pair extends Message {
538
+ constructor(data) {
539
+ super();
540
+ /**
541
+ * @generated from field: string pair_address = 1;
542
+ */
543
+ this.pairAddress = "";
544
+ /**
545
+ * @generated from field: string token0 = 2;
546
+ */
547
+ this.token0 = "";
548
+ /**
549
+ * @generated from field: string token1 = 3;
550
+ */
551
+ this.token1 = "";
552
+ /**
553
+ * @generated from field: string reserve0 = 4;
554
+ */
555
+ this.reserve0 = "";
556
+ /**
557
+ * @generated from field: string reserve1 = 5;
558
+ */
559
+ this.reserve1 = "";
560
+ /**
561
+ * @generated from field: string total_supply = 6;
562
+ */
563
+ this.totalSupply = "";
564
+ /**
565
+ * @generated from field: float apr = 7;
566
+ */
567
+ this.apr = 0;
568
+ proto3.util.initPartial(data, this);
569
+ }
570
+ static fromBinary(bytes, options) {
571
+ return new Pair().fromBinary(bytes, options);
572
+ }
573
+ static fromJson(jsonValue, options) {
574
+ return new Pair().fromJson(jsonValue, options);
575
+ }
576
+ static fromJsonString(jsonString, options) {
577
+ return new Pair().fromJsonString(jsonString, options);
578
+ }
579
+ static equals(a, b) {
580
+ return proto3.util.equals(Pair, a, b);
581
+ }
582
+ }
583
+ Pair.runtime = proto3;
584
+ Pair.typeName = "pools.v1.Pair";
585
+ Pair.fields = proto3.util.newFieldList(() => [
586
+ { no: 1, name: "pair_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
587
+ { no: 2, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
588
+ { no: 3, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
589
+ { no: 4, name: "reserve0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
590
+ { no: 5, name: "reserve1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
591
+ { no: 6, name: "total_supply", kind: "scalar", T: 9 /* ScalarType.STRING */ },
592
+ { no: 7, name: "apr", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
593
+ ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },