@uniswap/client-data-api 0.0.262 → 0.0.264

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.
@@ -1,6 +1,7 @@
1
1
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
2
  import { Message, proto3 } from "@bufbuild/protobuf";
3
3
  import { TokensSort } from "./types_pb.js";
4
+ import { TokenGroup } from "./tokenGroups_pb.js";
4
5
  /**
5
6
  * @generated from enum data.v2.CategoryClass
6
7
  */
@@ -192,6 +193,13 @@ export declare class RankedCategory extends Message<RankedCategory> {
192
193
  * @generated from field: repeated data.v2.CategoryTopToken top_tokens = 3;
193
194
  */
194
195
  topTokens: CategoryTopToken[];
196
+ /**
197
+ * A grouped category's (Category.grouped) first page rows, in its default
198
+ * order; empty for the others. Clients pile these over top_tokens when set.
199
+ *
200
+ * @generated from field: repeated data.v2.TokenGroup top_groups = 4;
201
+ */
202
+ topGroups: TokenGroup[];
195
203
  constructor(data?: PartialMessage<RankedCategory>);
196
204
  static readonly runtime: typeof proto3;
197
205
  static readonly typeName = "data.v2.RankedCategory";
@@ -4,6 +4,7 @@
4
4
  // @ts-nocheck
5
5
  import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
6
6
  import { TokensSort } from "./types_pb.js";
7
+ import { TokenGroup } from "./tokenGroups_pb.js";
7
8
  /**
8
9
  * @generated from enum data.v2.CategoryClass
9
10
  */
@@ -235,6 +236,13 @@ export class RankedCategory extends Message {
235
236
  * @generated from field: repeated data.v2.CategoryTopToken top_tokens = 3;
236
237
  */
237
238
  this.topTokens = [];
239
+ /**
240
+ * A grouped category's (Category.grouped) first page rows, in its default
241
+ * order; empty for the others. Clients pile these over top_tokens when set.
242
+ *
243
+ * @generated from field: repeated data.v2.TokenGroup top_groups = 4;
244
+ */
245
+ this.topGroups = [];
238
246
  proto3.util.initPartial(data, this);
239
247
  }
240
248
  static fromBinary(bytes, options) {
@@ -256,6 +264,7 @@ RankedCategory.fields = proto3.util.newFieldList(() => [
256
264
  { no: 1, name: "category", kind: "message", T: Category },
257
265
  { no: 2, name: "stats", kind: "message", T: CategoryAggregateStats },
258
266
  { no: 3, name: "top_tokens", kind: "message", T: CategoryTopToken, repeated: true },
267
+ { no: 4, name: "top_groups", kind: "message", T: TokenGroup, repeated: true },
259
268
  ]);
260
269
  /**
261
270
  * @generated from message data.v2.TimeSeriesPoint
@@ -1315,6 +1315,25 @@ export declare class Pool extends Message<Pool> {
1315
1315
  * @generated from field: optional uint32 effective_fee = 14;
1316
1316
  */
1317
1317
  effectiveFee?: number;
1318
+ /**
1319
+ * The LP fee the pool is charging RIGHT NOW, in pips (1e-6, so 3000 = 0.30%)
1320
+ * — same unit and regime as fee_tier: V2/V3 all-in with the protocol fee
1321
+ * carved OUT of it, V4 the LP's share with protocol_fee additive ON TOP.
1322
+ *
1323
+ * Always served, so no client has to read is_dynamic_fee to know which field
1324
+ * holds the rate: for V2, V3 and fixed-fee V4 this simply IS fee_tier. It
1325
+ * diverges only on a V4 dynamic-fee pool, where fee_tier is the sentinel and
1326
+ * this carries what the pool's most recent swap actually charged (recovered
1327
+ * from the total swap fee the Swap event records, which is lpFee and
1328
+ * protocolFee combined).
1329
+ *
1330
+ * Unset ONLY when a dynamic-fee pool's current fee can't be established: no
1331
+ * swap indexed yet, or a total that matches neither protocol-fee direction.
1332
+ * Never carries the DYNAMIC_FEE_FLAG sentinel.
1333
+ *
1334
+ * @generated from field: optional uint32 current_lp_fee = 15;
1335
+ */
1336
+ currentLpFee?: number;
1318
1337
  constructor(data?: PartialMessage<Pool>);
1319
1338
  static readonly runtime: typeof proto3;
1320
1339
  static readonly typeName = "data.v2.Pool";
@@ -1440,6 +1440,7 @@ Pool.fields = proto3.util.newFieldList(() => [
1440
1440
  { no: 12, name: "liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1441
1441
  { no: 13, name: "protocol_fee", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
1442
1442
  { no: 14, name: "effective_fee", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
1443
+ { no: 15, name: "current_lp_fee", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
1443
1444
  ]);
1444
1445
  /**
1445
1446
  * @generated from message data.v2.PoolTokenFilter
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.262",
3
+ "version": "0.0.264",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },