@uniswap/client-data-api 0.0.177 → 0.0.179

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.
@@ -1768,8 +1768,9 @@ export declare class GetTokenTopTradersRequest extends Message<GetTokenTopTrader
1768
1768
  * flags transferred_in.
1769
1769
  *
1770
1770
  * UNKNOWN-BASIS ROWS: when the server cannot compute a wallet's basis — the
1771
- * wallet transferred tokens in (transferred_in), or its auction spend was
1772
- * not USD-convertible basis_unknown is true and the four basis-derived
1771
+ * wallet transferred tokens in (transferred_in), its auction spend was not
1772
+ * USD-convertible, or its attributed inventory contradicts its observed
1773
+ * balance — basis_unknown is true and the four basis-derived
1773
1774
  * money fields (cost_basis_usd, avg_cost_usd, realized_pnl_usd,
1774
1775
  * unrealized_pnl_usd) are served as 0 and MUST be read as "unknown", never
1775
1776
  * as a real $0.00. Such wallets rank strictly after every computable-PnL
@@ -1821,8 +1822,12 @@ export declare class TokenTopTrader extends Message<TokenTopTrader> {
1821
1822
  */
1822
1823
  soldTokens: number;
1823
1824
  /**
1824
- * Tokens still held per the walk: acquired (bought + claimed +
1825
- * transferred in) minus sold, floored at 0.
1825
+ * Tokens still held. For launch tokens this is the wallet's OBSERVED net
1826
+ * balance the same sum over transfer logs GetLaunchHolders serves, so
1827
+ * the two agree and Σ over wallets cannot exceed supply. Tokens outside
1828
+ * that feed fall back to the swap walk (acquired minus sold, floored at
1829
+ * 0), an attribution that can overstate a wallet signing swaps it does
1830
+ * not receive (relayers, bundlers, smart-account signers).
1826
1831
  *
1827
1832
  * @generated from field: double remaining_tokens = 8;
1828
1833
  */
@@ -1836,8 +1841,9 @@ export declare class TokenTopTrader extends Message<TokenTopTrader> {
1836
1841
  */
1837
1842
  costBasisUsd: number;
1838
1843
  /**
1839
- * cost_basis_usd ÷ remaining_tokens; 0 for wallets holding nothing.
1840
- * Meaningless (served 0) when basis_unknown.
1844
+ * cost_basis_usd ÷ the TRACKED quantity the basis was accumulated over
1845
+ * (bought + claimed − sold), which is not necessarily remaining_tokens; 0
1846
+ * when nothing is tracked. Meaningless (served 0) when basis_unknown.
1841
1847
  *
1842
1848
  * @generated from field: double avg_cost_usd = 10;
1843
1849
  */
@@ -1866,7 +1872,7 @@ export declare class TokenTopTrader extends Message<TokenTopTrader> {
1866
1872
  hasClaims: boolean;
1867
1873
  /**
1868
1874
  * Mark-to-market PnL of the remaining position at the token's latest
1869
- * known price: remaining_tokens × (spot − avg_cost_usd). The documented
1875
+ * known price: remaining_tokens × spot − cost_basis_usd. The documented
1870
1876
  * ranking tiebreak, served so clients can render it. Meaningless (served
1871
1877
  * 0) when unrealized_pnl_unknown — basis unknown, or no known spot price.
1872
1878
  *
@@ -1883,8 +1889,11 @@ export declare class TokenTopTrader extends Message<TokenTopTrader> {
1883
1889
  transferredIn: boolean;
1884
1890
  /**
1885
1891
  * True when the wallet's basis could not be computed — it transferred
1886
- * tokens in (transferred_in), or its auction spend was not
1887
- * USD-convertible. Clients should render the four basis-derived money
1892
+ * tokens in (transferred_in), its auction spend was not USD-convertible,
1893
+ * or its attributed inventory contradicts its observed balance (the
1894
+ * acquisitions were booked to the wrong address, so the basis they
1895
+ * produced is not this wallet's). Clients should render the four
1896
+ * basis-derived money
1888
1897
  * fields as unknown ("–"), not $0.00; the row ranks after every
1889
1898
  * computable-PnL row (see message doc). Implies unrealized_pnl_unknown.
1890
1899
  *
@@ -2156,8 +2156,9 @@ GetTokenTopTradersRequest.fields = proto3.util.newFieldList(() => [
2156
2156
  * flags transferred_in.
2157
2157
  *
2158
2158
  * UNKNOWN-BASIS ROWS: when the server cannot compute a wallet's basis — the
2159
- * wallet transferred tokens in (transferred_in), or its auction spend was
2160
- * not USD-convertible basis_unknown is true and the four basis-derived
2159
+ * wallet transferred tokens in (transferred_in), its auction spend was not
2160
+ * USD-convertible, or its attributed inventory contradicts its observed
2161
+ * balance — basis_unknown is true and the four basis-derived
2161
2162
  * money fields (cost_basis_usd, avg_cost_usd, realized_pnl_usd,
2162
2163
  * unrealized_pnl_usd) are served as 0 and MUST be read as "unknown", never
2163
2164
  * as a real $0.00. Such wallets rank strictly after every computable-PnL
@@ -2211,8 +2212,12 @@ export class TokenTopTrader extends Message {
2211
2212
  */
2212
2213
  this.soldTokens = 0;
2213
2214
  /**
2214
- * Tokens still held per the walk: acquired (bought + claimed +
2215
- * transferred in) minus sold, floored at 0.
2215
+ * Tokens still held. For launch tokens this is the wallet's OBSERVED net
2216
+ * balance the same sum over transfer logs GetLaunchHolders serves, so
2217
+ * the two agree and Σ over wallets cannot exceed supply. Tokens outside
2218
+ * that feed fall back to the swap walk (acquired minus sold, floored at
2219
+ * 0), an attribution that can overstate a wallet signing swaps it does
2220
+ * not receive (relayers, bundlers, smart-account signers).
2216
2221
  *
2217
2222
  * @generated from field: double remaining_tokens = 8;
2218
2223
  */
@@ -2226,8 +2231,9 @@ export class TokenTopTrader extends Message {
2226
2231
  */
2227
2232
  this.costBasisUsd = 0;
2228
2233
  /**
2229
- * cost_basis_usd ÷ remaining_tokens; 0 for wallets holding nothing.
2230
- * Meaningless (served 0) when basis_unknown.
2234
+ * cost_basis_usd ÷ the TRACKED quantity the basis was accumulated over
2235
+ * (bought + claimed − sold), which is not necessarily remaining_tokens; 0
2236
+ * when nothing is tracked. Meaningless (served 0) when basis_unknown.
2231
2237
  *
2232
2238
  * @generated from field: double avg_cost_usd = 10;
2233
2239
  */
@@ -2256,7 +2262,7 @@ export class TokenTopTrader extends Message {
2256
2262
  this.hasClaims = false;
2257
2263
  /**
2258
2264
  * Mark-to-market PnL of the remaining position at the token's latest
2259
- * known price: remaining_tokens × (spot − avg_cost_usd). The documented
2265
+ * known price: remaining_tokens × spot − cost_basis_usd. The documented
2260
2266
  * ranking tiebreak, served so clients can render it. Meaningless (served
2261
2267
  * 0) when unrealized_pnl_unknown — basis unknown, or no known spot price.
2262
2268
  *
@@ -2273,8 +2279,11 @@ export class TokenTopTrader extends Message {
2273
2279
  this.transferredIn = false;
2274
2280
  /**
2275
2281
  * True when the wallet's basis could not be computed — it transferred
2276
- * tokens in (transferred_in), or its auction spend was not
2277
- * USD-convertible. Clients should render the four basis-derived money
2282
+ * tokens in (transferred_in), its auction spend was not USD-convertible,
2283
+ * or its attributed inventory contradicts its observed balance (the
2284
+ * acquisitions were booked to the wrong address, so the basis they
2285
+ * produced is not this wallet's). Clients should render the four
2286
+ * basis-derived money
2278
2287
  * fields as unknown ("–"), not $0.00; the row ranks after every
2279
2288
  * computable-PnL row (see message doc). Implies unrealized_pnl_unknown.
2280
2289
  *
@@ -1019,8 +1019,8 @@ 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. No
1023
+ * pipeline-computed stats (TVL/volume/APR) — those live on RankedPool.
1024
1024
  *
1025
1025
  * @generated from message data.v2.Pool
1026
1026
  */
@@ -1069,6 +1069,24 @@ export declare class Pool extends Message<Pool> {
1069
1069
  * @generated from field: optional string hook_address = 9;
1070
1070
  */
1071
1071
  hookAddress?: string;
1072
+ /**
1073
+ * V3/V4 only; absent when no state row is indexed yet
1074
+ *
1075
+ * @generated from field: optional int32 current_tick = 10;
1076
+ */
1077
+ currentTick?: number;
1078
+ /**
1079
+ * uint160 as decimal string; V3/V4 only
1080
+ *
1081
+ * @generated from field: optional string sqrt_price_x96 = 11;
1082
+ */
1083
+ sqrtPriceX96?: string;
1084
+ /**
1085
+ * uint128 as decimal string; V3/V4 only
1086
+ *
1087
+ * @generated from field: optional string liquidity = 12;
1088
+ */
1089
+ liquidity?: string;
1072
1090
  constructor(data?: PartialMessage<Pool>);
1073
1091
  static readonly runtime: typeof proto3;
1074
1092
  static readonly typeName = "data.v2.Pool";
@@ -1155,8 +1155,8 @@ 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. No
1159
+ * pipeline-computed stats (TVL/volume/APR) — those live on RankedPool.
1160
1160
  *
1161
1161
  * @generated from message data.v2.Pool
1162
1162
  */
@@ -1210,6 +1210,9 @@ Pool.fields = proto3.util.newFieldList(() => [
1210
1210
  { no: 7, name: "fee_tier", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
1211
1211
  { no: 8, name: "is_dynamic_fee", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1212
1212
  { no: 9, name: "hook_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1213
+ { no: 10, name: "current_tick", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1214
+ { no: 11, name: "sqrt_price_x96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1215
+ { no: 12, name: "liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1213
1216
  ]);
1214
1217
  /**
1215
1218
  * @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.177",
3
+ "version": "0.0.179",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },