@uniswap/client-data-api 0.0.178 → 0.0.180

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.
@@ -1019,8 +1019,9 @@ export declare class PoolRankStats extends Message<PoolRankStats> {
1019
1019
  static equals(a: PoolRankStats | PlainMessage<PoolRankStats> | undefined, b: PoolRankStats | PlainMessage<PoolRankStats> | undefined): boolean;
1020
1020
  }
1021
1021
  /**
1022
- * A pool with its protocol identity and token pair. No stats stats live on
1023
- * RankedPool.
1022
+ * A pool's protocol identity, token pair, and current on-chain state (state
1023
+ * fields are mirrored from the chain verbatim). No derived stats
1024
+ * (TVL/volume/APR) — those live on RankedPool.
1024
1025
  *
1025
1026
  * @generated from message data.v2.Pool
1026
1027
  */
@@ -1069,6 +1070,24 @@ export declare class Pool extends Message<Pool> {
1069
1070
  * @generated from field: optional string hook_address = 9;
1070
1071
  */
1071
1072
  hookAddress?: string;
1073
+ /**
1074
+ * V3/V4 only; absent when no state row is indexed yet
1075
+ *
1076
+ * @generated from field: optional int32 current_tick = 10;
1077
+ */
1078
+ currentTick?: number;
1079
+ /**
1080
+ * uint160 as decimal string; V3/V4 only
1081
+ *
1082
+ * @generated from field: optional string sqrt_price_x96 = 11;
1083
+ */
1084
+ sqrtPriceX96?: string;
1085
+ /**
1086
+ * uint128 as decimal string; V3/V4 only
1087
+ *
1088
+ * @generated from field: optional string liquidity = 12;
1089
+ */
1090
+ liquidity?: string;
1072
1091
  constructor(data?: PartialMessage<Pool>);
1073
1092
  static readonly runtime: typeof proto3;
1074
1093
  static readonly typeName = "data.v2.Pool";
@@ -1183,6 +1202,18 @@ export declare class PoolListFilter extends Message<PoolListFilter> {
1183
1202
  * @generated from field: repeated uint32 fee_tiers = 5;
1184
1203
  */
1185
1204
  feeTiers: number[];
1205
+ /**
1206
+ * exact match; never matches V2 pools
1207
+ *
1208
+ * @generated from field: optional int32 tick_spacing = 6;
1209
+ */
1210
+ tickSpacing?: number;
1211
+ /**
1212
+ * V4 hook address; the zero address matches hookless V4 pools; never matches V2/V3 pools
1213
+ *
1214
+ * @generated from field: optional string hooks = 7;
1215
+ */
1216
+ hooks?: string;
1186
1217
  constructor(data?: PartialMessage<PoolListFilter>);
1187
1218
  static readonly runtime: typeof proto3;
1188
1219
  static readonly typeName = "data.v2.PoolListFilter";
@@ -1155,8 +1155,9 @@ PoolRankStats.fields = proto3.util.newFieldList(() => [
1155
1155
  { no: 7, name: "volume_1d_tvl_ratio", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1156
1156
  ]);
1157
1157
  /**
1158
- * A pool with its protocol identity and token pair. No stats stats live on
1159
- * RankedPool.
1158
+ * A pool's protocol identity, token pair, and current on-chain state (state
1159
+ * fields are mirrored from the chain verbatim). No derived stats
1160
+ * (TVL/volume/APR) — those live on RankedPool.
1160
1161
  *
1161
1162
  * @generated from message data.v2.Pool
1162
1163
  */
@@ -1210,6 +1211,9 @@ Pool.fields = proto3.util.newFieldList(() => [
1210
1211
  { no: 7, name: "fee_tier", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
1211
1212
  { no: 8, name: "is_dynamic_fee", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1212
1213
  { no: 9, name: "hook_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1214
+ { no: 10, name: "current_tick", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1215
+ { no: 11, name: "sqrt_price_x96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1216
+ { no: 12, name: "liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1213
1217
  ]);
1214
1218
  /**
1215
1219
  * @generated from message data.v2.PoolTokenFilter
@@ -1347,6 +1351,8 @@ PoolListFilter.fields = proto3.util.newFieldList(() => [
1347
1351
  { no: 3, name: "token_filter", kind: "message", T: PoolTokenFilter, opt: true },
1348
1352
  { no: 4, name: "stats_filter", kind: "message", T: PoolStatsFilter, opt: true },
1349
1353
  { no: 5, name: "fee_tiers", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
1354
+ { no: 6, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1355
+ { no: 7, name: "hooks", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1350
1356
  ]);
1351
1357
  /**
1352
1358
  * Returned by ListPools — wraps a Pool with its ranking stats.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.178",
3
+ "version": "0.0.180",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },