@uniswap/client-data-api 0.0.155 → 0.0.157

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.
@@ -1069,6 +1069,18 @@ export declare class AuctionWithStats extends Message<AuctionWithStats> {
1069
1069
  * @generated from field: optional double bid_volume_usd_last_1h = 4;
1070
1070
  */
1071
1071
  bidVolumeUsdLast1h?: number;
1072
+ /**
1073
+ * Current token holders of the launched token, all-time as of the latest
1074
+ * ingested transfer. Burn-dust is settled server-side: a counted dEaD burn
1075
+ * row whose balance is dust (under half a whole token) is subtracted, so
1076
+ * the value matches the GetLaunchHolders-derived display after the
1077
+ * client's dust rule (LP-1312). Optional for explicit presence: unset
1078
+ * until the launch has holder data — pre-graduation rows stay bidder-only
1079
+ * (unique_bidder_count is the participation stat there).
1080
+ *
1081
+ * @generated from field: optional int32 holder_count = 5;
1082
+ */
1083
+ holderCount?: number;
1072
1084
  constructor(data?: PartialMessage<AuctionWithStats>);
1073
1085
  static readonly runtime: typeof proto3;
1074
1086
  static readonly typeName = "data.v1.AuctionWithStats";
@@ -1305,6 +1305,7 @@ AuctionWithStats.fields = proto3.util.newFieldList(() => [
1305
1305
  { no: 2, name: "total_bid_volume", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1306
1306
  { no: 3, name: "unique_bidder_count", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1307
1307
  { no: 4, name: "bid_volume_usd_last_1h", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1308
+ { no: 5, name: "holder_count", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1308
1309
  ]);
1309
1310
  /**
1310
1311
  * Response containing top auctions ordered by total bid volume.
@@ -1,6 +1,6 @@
1
1
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
2
  import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
3
- import { FiatAmount, FiatCurrency, HistoryDuration, Launch, LaunchesOrderBy, LaunchHolder, LaunchListFilter, Launchpad, MultichainToken, MultichainTokenMarket, Nft, PoolListFilter, PoolsSort, RankedMultichainToken, RankedPool, Token, TokenListFilter, TokenMarket, TokensSort, TokenTrade, TransactionEventType, UniswapTransaction } from "./types_pb.js";
3
+ import { FiatAmount, FiatCurrency, HistoryDuration, Launch, LaunchesOrderBy, LaunchHolder, LaunchListFilter, Launchpad, MultichainToken, MultichainTokenMarket, Nft, OhlcResolution, PoolListFilter, PoolsSort, RankedMultichainToken, RankedPool, Token, TokenListFilter, TokenMarket, TokensSort, TokenTrade, TransactionEventType, UniswapTransaction } from "./types_pb.js";
4
4
  import { PageRequest, PageResponse } from "./common_pb.js";
5
5
  import { EarnPosition, EarnVault } from "./earn_pb.js";
6
6
  import { TimestampedValue } from "../v1/types_pb.js";
@@ -172,6 +172,23 @@ export declare class GetTokenHistoryOHLCRequest extends Message<GetTokenHistoryO
172
172
  * @generated from field: data.v2.HistoryDuration duration = 3;
173
173
  */
174
174
  duration: HistoryDuration;
175
+ /**
176
+ * Ranged (TradingView) mode: when resolution is set (non-UNSPECIFIED) the
177
+ * series covers [start_time, end_time || now] at the given candle width and
178
+ * duration is ignored. start_time is required in this mode; end_time defaults
179
+ * to now. single_chain (EVM) only. Mirrors GetTokenHistoryPrice.start_time.
180
+ *
181
+ * @generated from field: optional google.protobuf.Timestamp start_time = 4;
182
+ */
183
+ startTime?: Timestamp;
184
+ /**
185
+ * @generated from field: optional google.protobuf.Timestamp end_time = 5;
186
+ */
187
+ endTime?: Timestamp;
188
+ /**
189
+ * @generated from field: optional data.v2.OhlcResolution resolution = 6;
190
+ */
191
+ resolution?: OhlcResolution;
175
192
  constructor(data?: PartialMessage<GetTokenHistoryOHLCRequest>);
176
193
  static readonly runtime: typeof proto3;
177
194
  static readonly typeName = "data.v2.GetTokenHistoryOHLCRequest";
@@ -1243,10 +1260,10 @@ export declare class GetLaunchHoldersResponse extends Message<GetLaunchHoldersRe
1243
1260
  */
1244
1261
  holderCountTrend: TimestampedValue[];
1245
1262
  /**
1246
- * Share of minted_supply held by the top 10 NON-burn holder rows, percent
1247
- * in [0, 100]. Burned tokens can never concentrate, so they are excluded
1248
- * here (unlike the rows above); the locked LP position is NOT excluded —
1249
- * clients that label it can recompute from the raw rows.
1263
+ * Share of minted_supply held by the top 10 holder rows that are neither
1264
+ * burn sinks nor the pool's custody row (LaunchHolder.is_pool_address),
1265
+ * percent in [0, 100]. Burned tokens can never concentrate and the pool
1266
+ * is the market itself, so both are excluded here (unlike the rows above).
1250
1267
  *
1251
1268
  * @generated from field: optional double top10_supply_pct = 5;
1252
1269
  */
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf";
6
- import { FiatAmount, FiatCurrency, HistoryDuration, Launch, LaunchesOrderBy, LaunchHolder, LaunchListFilter, Launchpad, MultichainToken, MultichainTokenMarket, Nft, PoolListFilter, PoolsSort, RankedMultichainToken, RankedPool, Token, TokenListFilter, TokenMarket, TokensSort, TokenTrade, TransactionEventType, UniswapTransaction } from "./types_pb.js";
6
+ import { FiatAmount, FiatCurrency, HistoryDuration, Launch, LaunchesOrderBy, LaunchHolder, LaunchListFilter, Launchpad, MultichainToken, MultichainTokenMarket, Nft, OhlcResolution, PoolListFilter, PoolsSort, RankedMultichainToken, RankedPool, Token, TokenListFilter, TokenMarket, TokensSort, TokenTrade, TransactionEventType, UniswapTransaction } from "./types_pb.js";
7
7
  import { PageRequest, PageResponse } from "./common_pb.js";
8
8
  import { EarnPosition, EarnVault } from "./earn_pb.js";
9
9
  import { TimestampedValue } from "../v1/types_pb.js";
@@ -234,6 +234,9 @@ GetTokenHistoryOHLCRequest.fields = proto3.util.newFieldList(() => [
234
234
  { no: 1, name: "single_chain", kind: "message", T: TokenIdentifier, oneof: "target" },
235
235
  { no: 2, name: "multichain", kind: "message", T: MultichainTarget, oneof: "target" },
236
236
  { no: 3, name: "duration", kind: "enum", T: proto3.getEnumType(HistoryDuration) },
237
+ { no: 4, name: "start_time", kind: "message", T: Timestamp, opt: true },
238
+ { no: 5, name: "end_time", kind: "message", T: Timestamp, opt: true },
239
+ { no: 6, name: "resolution", kind: "enum", T: proto3.getEnumType(OhlcResolution), opt: true },
237
240
  ]);
238
241
  /**
239
242
  * @generated from message data.v2.MultichainTarget
@@ -172,6 +172,39 @@ export declare enum FiatCurrency {
172
172
  */
173
173
  SEK = 25
174
174
  }
175
+ /**
176
+ * Client-chosen candle width for the ranged (TradingView) OHLC mode. Served
177
+ * from token_price_history via the ClickHouse OHLC path. 1s (trades-derived)
178
+ * is intentionally omitted for now.
179
+ *
180
+ * @generated from enum data.v2.OhlcResolution
181
+ */
182
+ export declare enum OhlcResolution {
183
+ /**
184
+ * @generated from enum value: OHLC_RESOLUTION_UNSPECIFIED = 0;
185
+ */
186
+ UNSPECIFIED = 0,
187
+ /**
188
+ * @generated from enum value: OHLC_RESOLUTION_ONE_MINUTE = 1;
189
+ */
190
+ ONE_MINUTE = 1,
191
+ /**
192
+ * @generated from enum value: OHLC_RESOLUTION_FIVE_MINUTE = 2;
193
+ */
194
+ FIVE_MINUTE = 2,
195
+ /**
196
+ * @generated from enum value: OHLC_RESOLUTION_ONE_HOUR = 3;
197
+ */
198
+ ONE_HOUR = 3,
199
+ /**
200
+ * @generated from enum value: OHLC_RESOLUTION_FOUR_HOUR = 4;
201
+ */
202
+ FOUR_HOUR = 4,
203
+ /**
204
+ * @generated from enum value: OHLC_RESOLUTION_ONE_DAY = 5;
205
+ */
206
+ ONE_DAY = 5
207
+ }
175
208
  /**
176
209
  * Time window for windowed token-market stats; FIVE_MINUTE is intentionally omitted.
177
210
  *
@@ -403,6 +436,10 @@ export declare class TokenRankStats extends Message<TokenRankStats> {
403
436
  */
404
437
  fdv?: number;
405
438
  /**
439
+ * Not additive across a multichain group's members: the canonical chain's
440
+ * value (mainnet, else lowest chain_id) — the same member the TDP's
441
+ * headline % change is computed from.
442
+ *
406
443
  * @generated from field: optional double price_change_1h = 9;
407
444
  */
408
445
  priceChange1h?: number;
@@ -411,8 +448,9 @@ export declare class TokenRankStats extends Message<TokenRankStats> {
411
448
  */
412
449
  priceChange1d?: number;
413
450
  /**
414
- * USD spot price of the highest-TVL chain member (current_token_prices).
415
- * Populated only on PRICE-ordered requests; it is exactly the ranked value.
451
+ * USD spot price of the canonical chain member (mainnet, else lowest
452
+ * chain_id; current_token_prices). Populated only on PRICE-ordered
453
+ * requests; it is exactly the ranked value.
416
454
  *
417
455
  * @generated from field: optional double price = 11;
418
456
  */
@@ -1649,6 +1687,17 @@ export declare class LaunchHolder extends Message<LaunchHolder> {
1649
1687
  * @generated from field: bool is_burn_address = 4;
1650
1688
  */
1651
1689
  isBurnAddress: boolean;
1690
+ /**
1691
+ * True for the launch pool's custody row — the chain's v4 PoolManager
1692
+ * singleton, which holds the pool's token-side balance (the LP NFT sits
1693
+ * in the FeeSplitter, the ERC-20 supply does not). Served in the list so
1694
+ * clients can label it, but excluded from top10_supply_pct like burn rows
1695
+ * (the pool is the market, not a dumpable holder); it stays inside
1696
+ * holder_count.
1697
+ *
1698
+ * @generated from field: bool is_pool_address = 5;
1699
+ */
1700
+ isPoolAddress: boolean;
1652
1701
  constructor(data?: PartialMessage<LaunchHolder>);
1653
1702
  static readonly runtime: typeof proto3;
1654
1703
  static readonly typeName = "data.v2.LaunchHolder";
@@ -222,6 +222,49 @@ proto3.util.setEnumType(FiatCurrency, "data.v2.FiatCurrency", [
222
222
  { no: 24, name: "FIAT_CURRENCY_VND" },
223
223
  { no: 25, name: "FIAT_CURRENCY_SEK" },
224
224
  ]);
225
+ /**
226
+ * Client-chosen candle width for the ranged (TradingView) OHLC mode. Served
227
+ * from token_price_history via the ClickHouse OHLC path. 1s (trades-derived)
228
+ * is intentionally omitted for now.
229
+ *
230
+ * @generated from enum data.v2.OhlcResolution
231
+ */
232
+ export var OhlcResolution;
233
+ (function (OhlcResolution) {
234
+ /**
235
+ * @generated from enum value: OHLC_RESOLUTION_UNSPECIFIED = 0;
236
+ */
237
+ OhlcResolution[OhlcResolution["UNSPECIFIED"] = 0] = "UNSPECIFIED";
238
+ /**
239
+ * @generated from enum value: OHLC_RESOLUTION_ONE_MINUTE = 1;
240
+ */
241
+ OhlcResolution[OhlcResolution["ONE_MINUTE"] = 1] = "ONE_MINUTE";
242
+ /**
243
+ * @generated from enum value: OHLC_RESOLUTION_FIVE_MINUTE = 2;
244
+ */
245
+ OhlcResolution[OhlcResolution["FIVE_MINUTE"] = 2] = "FIVE_MINUTE";
246
+ /**
247
+ * @generated from enum value: OHLC_RESOLUTION_ONE_HOUR = 3;
248
+ */
249
+ OhlcResolution[OhlcResolution["ONE_HOUR"] = 3] = "ONE_HOUR";
250
+ /**
251
+ * @generated from enum value: OHLC_RESOLUTION_FOUR_HOUR = 4;
252
+ */
253
+ OhlcResolution[OhlcResolution["FOUR_HOUR"] = 4] = "FOUR_HOUR";
254
+ /**
255
+ * @generated from enum value: OHLC_RESOLUTION_ONE_DAY = 5;
256
+ */
257
+ OhlcResolution[OhlcResolution["ONE_DAY"] = 5] = "ONE_DAY";
258
+ })(OhlcResolution || (OhlcResolution = {}));
259
+ // Retrieve enum metadata with: proto3.getEnumType(OhlcResolution)
260
+ proto3.util.setEnumType(OhlcResolution, "data.v2.OhlcResolution", [
261
+ { no: 0, name: "OHLC_RESOLUTION_UNSPECIFIED" },
262
+ { no: 1, name: "OHLC_RESOLUTION_ONE_MINUTE" },
263
+ { no: 2, name: "OHLC_RESOLUTION_FIVE_MINUTE" },
264
+ { no: 3, name: "OHLC_RESOLUTION_ONE_HOUR" },
265
+ { no: 4, name: "OHLC_RESOLUTION_FOUR_HOUR" },
266
+ { no: 5, name: "OHLC_RESOLUTION_ONE_DAY" },
267
+ ]);
225
268
  /**
226
269
  * Time window for windowed token-market stats; FIVE_MINUTE is intentionally omitted.
227
270
  *
@@ -1760,6 +1803,17 @@ export class LaunchHolder extends Message {
1760
1803
  * @generated from field: bool is_burn_address = 4;
1761
1804
  */
1762
1805
  this.isBurnAddress = false;
1806
+ /**
1807
+ * True for the launch pool's custody row — the chain's v4 PoolManager
1808
+ * singleton, which holds the pool's token-side balance (the LP NFT sits
1809
+ * in the FeeSplitter, the ERC-20 supply does not). Served in the list so
1810
+ * clients can label it, but excluded from top10_supply_pct like burn rows
1811
+ * (the pool is the market, not a dumpable holder); it stays inside
1812
+ * holder_count.
1813
+ *
1814
+ * @generated from field: bool is_pool_address = 5;
1815
+ */
1816
+ this.isPoolAddress = false;
1763
1817
  proto3.util.initPartial(data, this);
1764
1818
  }
1765
1819
  static fromBinary(bytes, options) {
@@ -1782,6 +1836,7 @@ LaunchHolder.fields = proto3.util.newFieldList(() => [
1782
1836
  { no: 2, name: "balance", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1783
1837
  { no: 3, name: "supply_pct", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1784
1838
  { no: 4, name: "is_burn_address", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1839
+ { no: 5, name: "is_pool_address", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1785
1840
  ]);
1786
1841
  /**
1787
1842
  * Overlay for launches of the Uniswap direct-launch launchpad (launchpad_id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.155",
3
+ "version": "0.0.157",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },