@uniswap/client-data-api 0.0.146 → 0.0.148
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.
|
@@ -1003,6 +1003,14 @@ export declare class ListTopAuctionsRequest extends Message<ListTopAuctionsReque
|
|
|
1003
1003
|
* @generated from field: repeated int32 chain_ids = 2;
|
|
1004
1004
|
*/
|
|
1005
1005
|
chainIds: number[];
|
|
1006
|
+
/**
|
|
1007
|
+
* When true, drop auctions whose bidding window has closed (chain head has
|
|
1008
|
+
* passed end_block), keeping only in-progress and not-yet-started auctions.
|
|
1009
|
+
* Determined per chain against the live block height. Default false.
|
|
1010
|
+
*
|
|
1011
|
+
* @generated from field: bool live_only = 3;
|
|
1012
|
+
*/
|
|
1013
|
+
liveOnly: boolean;
|
|
1006
1014
|
constructor(data?: PartialMessage<ListTopAuctionsRequest>);
|
|
1007
1015
|
static readonly runtime: typeof proto3;
|
|
1008
1016
|
static readonly typeName = "data.v1.ListTopAuctionsRequest";
|
|
@@ -1237,6 +1237,14 @@ export class ListTopAuctionsRequest extends Message {
|
|
|
1237
1237
|
* @generated from field: repeated int32 chain_ids = 2;
|
|
1238
1238
|
*/
|
|
1239
1239
|
this.chainIds = [];
|
|
1240
|
+
/**
|
|
1241
|
+
* When true, drop auctions whose bidding window has closed (chain head has
|
|
1242
|
+
* passed end_block), keeping only in-progress and not-yet-started auctions.
|
|
1243
|
+
* Determined per chain against the live block height. Default false.
|
|
1244
|
+
*
|
|
1245
|
+
* @generated from field: bool live_only = 3;
|
|
1246
|
+
*/
|
|
1247
|
+
this.liveOnly = false;
|
|
1240
1248
|
proto3.util.initPartial(data, this);
|
|
1241
1249
|
}
|
|
1242
1250
|
static fromBinary(bytes, options) {
|
|
@@ -1257,6 +1265,7 @@ ListTopAuctionsRequest.typeName = "data.v1.ListTopAuctionsRequest";
|
|
|
1257
1265
|
ListTopAuctionsRequest.fields = proto3.util.newFieldList(() => [
|
|
1258
1266
|
{ no: 1, name: "page_size", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1259
1267
|
{ no: 2, name: "chain_ids", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true },
|
|
1268
|
+
{ no: 3, name: "live_only", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1260
1269
|
]);
|
|
1261
1270
|
/**
|
|
1262
1271
|
* An auction with its total bid volume stats.
|
package/dist/data/v2/api_pb.d.ts
CHANGED
|
@@ -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, 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, LaunchListFilter, Launchpad, MultichainToken, MultichainTokenMarket, Nft, 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 { ProtocolVersion } from "../v1/poolTypes_pb.js";
|
|
@@ -1068,6 +1068,19 @@ export declare class ListLaunchesRequest extends Message<ListLaunchesRequest> {
|
|
|
1068
1068
|
* @generated from field: repeated string launchpad_ids = 5;
|
|
1069
1069
|
*/
|
|
1070
1070
|
launchpadIds: string[];
|
|
1071
|
+
/**
|
|
1072
|
+
* launch-recency window
|
|
1073
|
+
*
|
|
1074
|
+
* @generated from field: optional data.v2.LaunchListFilter filter = 6;
|
|
1075
|
+
*/
|
|
1076
|
+
filter?: LaunchListFilter;
|
|
1077
|
+
/**
|
|
1078
|
+
* Sort direction for sort_by; false (default) = descending (highest first).
|
|
1079
|
+
* Null/empty metric rows sort last in both directions.
|
|
1080
|
+
*
|
|
1081
|
+
* @generated from field: optional bool ascending = 7;
|
|
1082
|
+
*/
|
|
1083
|
+
ascending?: boolean;
|
|
1071
1084
|
constructor(data?: PartialMessage<ListLaunchesRequest>);
|
|
1072
1085
|
static readonly runtime: typeof proto3;
|
|
1073
1086
|
static readonly typeName = "data.v2.ListLaunchesRequest";
|
package/dist/data/v2/api_pb.js
CHANGED
|
@@ -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, 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, LaunchListFilter, Launchpad, MultichainToken, MultichainTokenMarket, Nft, 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 { ProtocolVersion } from "../v1/poolTypes_pb.js";
|
|
@@ -1421,6 +1421,8 @@ ListLaunchesRequest.fields = proto3.util.newFieldList(() => [
|
|
|
1421
1421
|
{ no: 3, name: "sort_by", kind: "enum", T: proto3.getEnumType(LaunchesOrderBy) },
|
|
1422
1422
|
{ no: 4, name: "page", kind: "message", T: PageRequest, opt: true },
|
|
1423
1423
|
{ no: 5, name: "launchpad_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
1424
|
+
{ no: 6, name: "filter", kind: "message", T: LaunchListFilter, opt: true },
|
|
1425
|
+
{ no: 7, name: "ascending", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1424
1426
|
]);
|
|
1425
1427
|
/**
|
|
1426
1428
|
* @generated from message data.v2.ListLaunchesResponse
|
|
@@ -321,6 +321,23 @@ export declare enum LaunchesOrderBy {
|
|
|
321
321
|
*/
|
|
322
322
|
PRICE_CHANGE_1D = 5
|
|
323
323
|
}
|
|
324
|
+
/**
|
|
325
|
+
* Launch-recency window for ListLaunches. UNSPECIFIED applies no window (all
|
|
326
|
+
* launches); LAST_24H keeps only launches whose launched_at is within the
|
|
327
|
+
* trailing 24 hours.
|
|
328
|
+
*
|
|
329
|
+
* @generated from enum data.v2.LaunchWindow
|
|
330
|
+
*/
|
|
331
|
+
export declare enum LaunchWindow {
|
|
332
|
+
/**
|
|
333
|
+
* @generated from enum value: LAUNCH_WINDOW_UNSPECIFIED = 0;
|
|
334
|
+
*/
|
|
335
|
+
UNSPECIFIED = 0,
|
|
336
|
+
/**
|
|
337
|
+
* @generated from enum value: LAUNCH_WINDOW_LAST_24H = 1;
|
|
338
|
+
*/
|
|
339
|
+
LAST_24H = 1
|
|
340
|
+
}
|
|
324
341
|
/**
|
|
325
342
|
* The trade's direction from the trader's perspective: BUY = the trader
|
|
326
343
|
* received the requested token, SELL = the trader gave it up. UNSPECIFIED
|
|
@@ -1295,6 +1312,26 @@ export declare class Launchpad extends Message<Launchpad> {
|
|
|
1295
1312
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Launchpad;
|
|
1296
1313
|
static equals(a: Launchpad | PlainMessage<Launchpad> | undefined, b: Launchpad | PlainMessage<Launchpad> | undefined): boolean;
|
|
1297
1314
|
}
|
|
1315
|
+
/**
|
|
1316
|
+
* Optional filters for ListLaunches. When window is LAST_24H and sort_by is
|
|
1317
|
+
* UNSPECIFIED the server sorts by 24h volume (VOLUME_1D).
|
|
1318
|
+
*
|
|
1319
|
+
* @generated from message data.v2.LaunchListFilter
|
|
1320
|
+
*/
|
|
1321
|
+
export declare class LaunchListFilter extends Message<LaunchListFilter> {
|
|
1322
|
+
/**
|
|
1323
|
+
* @generated from field: data.v2.LaunchWindow window = 1;
|
|
1324
|
+
*/
|
|
1325
|
+
window: LaunchWindow;
|
|
1326
|
+
constructor(data?: PartialMessage<LaunchListFilter>);
|
|
1327
|
+
static readonly runtime: typeof proto3;
|
|
1328
|
+
static readonly typeName = "data.v2.LaunchListFilter";
|
|
1329
|
+
static readonly fields: FieldList;
|
|
1330
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LaunchListFilter;
|
|
1331
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LaunchListFilter;
|
|
1332
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LaunchListFilter;
|
|
1333
|
+
static equals(a: LaunchListFilter | PlainMessage<LaunchListFilter> | undefined, b: LaunchListFilter | PlainMessage<LaunchListFilter> | undefined): boolean;
|
|
1334
|
+
}
|
|
1298
1335
|
/**
|
|
1299
1336
|
* The launched token's identity and display metadata.
|
|
1300
1337
|
*
|
|
@@ -1503,6 +1540,35 @@ export declare class Launch extends Message<Launch> {
|
|
|
1503
1540
|
* @generated from field: optional int32 buyers_last_1h = 17;
|
|
1504
1541
|
*/
|
|
1505
1542
|
buyersLast1h?: number;
|
|
1543
|
+
/**
|
|
1544
|
+
* Exact on-chain holder count of the launch token, computed at query time
|
|
1545
|
+
* over the raw launch-transfers feed (ClickHouse, reorg-excluded):
|
|
1546
|
+
* addresses with a positive net balance, contracts included, burn sinks
|
|
1547
|
+
* like 0x…dEaD included while they hold a balance — raw Etherscan-style
|
|
1548
|
+
* semantics. Present only for tokens created via the Uniswap token
|
|
1549
|
+
* factory (CCA + bonding-curve launches, whose transfers the feed
|
|
1550
|
+
* whitelists); absent — never 0 — while the token has no ingested
|
|
1551
|
+
* transfers or when the enrichment fails.
|
|
1552
|
+
*
|
|
1553
|
+
* @generated from field: optional int32 holder_count = 18;
|
|
1554
|
+
*/
|
|
1555
|
+
holderCount?: number;
|
|
1556
|
+
/**
|
|
1557
|
+
* Cumulative burned amount of the launch token, split by burn sink and
|
|
1558
|
+
* computed from the same transfer feed. Raw uint256 base units as decimal
|
|
1559
|
+
* strings; total burned = burned_to_zero + burned_to_dead. Because burn
|
|
1560
|
+
* addresses never spend, a holders-excluding-burn count is
|
|
1561
|
+
* client-derivable as holder_count - (burned_to_dead > 0 ? 1 : 0). Same
|
|
1562
|
+
* presence rule as holder_count (absent without ingested transfers), but
|
|
1563
|
+
* once the token has transfers a genuine "0" is served.
|
|
1564
|
+
*
|
|
1565
|
+
* @generated from field: optional string burned_to_zero = 19;
|
|
1566
|
+
*/
|
|
1567
|
+
burnedToZero?: string;
|
|
1568
|
+
/**
|
|
1569
|
+
* @generated from field: optional string burned_to_dead = 20;
|
|
1570
|
+
*/
|
|
1571
|
+
burnedToDead?: string;
|
|
1506
1572
|
constructor(data?: PartialMessage<Launch>);
|
|
1507
1573
|
static readonly runtime: typeof proto3;
|
|
1508
1574
|
static readonly typeName = "data.v2.Launch";
|
package/dist/data/v2/types_pb.js
CHANGED
|
@@ -417,6 +417,29 @@ proto3.util.setEnumType(LaunchesOrderBy, "data.v2.LaunchesOrderBy", [
|
|
|
417
417
|
{ no: 4, name: "LAUNCHES_ORDER_BY_PRICE_CHANGE_1H" },
|
|
418
418
|
{ no: 5, name: "LAUNCHES_ORDER_BY_PRICE_CHANGE_1D" },
|
|
419
419
|
]);
|
|
420
|
+
/**
|
|
421
|
+
* Launch-recency window for ListLaunches. UNSPECIFIED applies no window (all
|
|
422
|
+
* launches); LAST_24H keeps only launches whose launched_at is within the
|
|
423
|
+
* trailing 24 hours.
|
|
424
|
+
*
|
|
425
|
+
* @generated from enum data.v2.LaunchWindow
|
|
426
|
+
*/
|
|
427
|
+
export var LaunchWindow;
|
|
428
|
+
(function (LaunchWindow) {
|
|
429
|
+
/**
|
|
430
|
+
* @generated from enum value: LAUNCH_WINDOW_UNSPECIFIED = 0;
|
|
431
|
+
*/
|
|
432
|
+
LaunchWindow[LaunchWindow["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
433
|
+
/**
|
|
434
|
+
* @generated from enum value: LAUNCH_WINDOW_LAST_24H = 1;
|
|
435
|
+
*/
|
|
436
|
+
LaunchWindow[LaunchWindow["LAST_24H"] = 1] = "LAST_24H";
|
|
437
|
+
})(LaunchWindow || (LaunchWindow = {}));
|
|
438
|
+
// Retrieve enum metadata with: proto3.getEnumType(LaunchWindow)
|
|
439
|
+
proto3.util.setEnumType(LaunchWindow, "data.v2.LaunchWindow", [
|
|
440
|
+
{ no: 0, name: "LAUNCH_WINDOW_UNSPECIFIED" },
|
|
441
|
+
{ no: 1, name: "LAUNCH_WINDOW_LAST_24H" },
|
|
442
|
+
]);
|
|
420
443
|
/**
|
|
421
444
|
* The trade's direction from the trader's perspective: BUY = the trader
|
|
422
445
|
* received the requested token, SELL = the trader gave it up. UNSPECIFIED
|
|
@@ -1501,6 +1524,39 @@ Launchpad.fields = proto3.util.newFieldList(() => [
|
|
|
1501
1524
|
{ no: 3, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1502
1525
|
{ no: 4, name: "protocol", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1503
1526
|
]);
|
|
1527
|
+
/**
|
|
1528
|
+
* Optional filters for ListLaunches. When window is LAST_24H and sort_by is
|
|
1529
|
+
* UNSPECIFIED the server sorts by 24h volume (VOLUME_1D).
|
|
1530
|
+
*
|
|
1531
|
+
* @generated from message data.v2.LaunchListFilter
|
|
1532
|
+
*/
|
|
1533
|
+
export class LaunchListFilter extends Message {
|
|
1534
|
+
constructor(data) {
|
|
1535
|
+
super();
|
|
1536
|
+
/**
|
|
1537
|
+
* @generated from field: data.v2.LaunchWindow window = 1;
|
|
1538
|
+
*/
|
|
1539
|
+
this.window = LaunchWindow.UNSPECIFIED;
|
|
1540
|
+
proto3.util.initPartial(data, this);
|
|
1541
|
+
}
|
|
1542
|
+
static fromBinary(bytes, options) {
|
|
1543
|
+
return new LaunchListFilter().fromBinary(bytes, options);
|
|
1544
|
+
}
|
|
1545
|
+
static fromJson(jsonValue, options) {
|
|
1546
|
+
return new LaunchListFilter().fromJson(jsonValue, options);
|
|
1547
|
+
}
|
|
1548
|
+
static fromJsonString(jsonString, options) {
|
|
1549
|
+
return new LaunchListFilter().fromJsonString(jsonString, options);
|
|
1550
|
+
}
|
|
1551
|
+
static equals(a, b) {
|
|
1552
|
+
return proto3.util.equals(LaunchListFilter, a, b);
|
|
1553
|
+
}
|
|
1554
|
+
}
|
|
1555
|
+
LaunchListFilter.runtime = proto3;
|
|
1556
|
+
LaunchListFilter.typeName = "data.v2.LaunchListFilter";
|
|
1557
|
+
LaunchListFilter.fields = proto3.util.newFieldList(() => [
|
|
1558
|
+
{ no: 1, name: "window", kind: "enum", T: proto3.getEnumType(LaunchWindow) },
|
|
1559
|
+
]);
|
|
1504
1560
|
/**
|
|
1505
1561
|
* The launched token's identity and display metadata.
|
|
1506
1562
|
*
|
|
@@ -1652,6 +1708,9 @@ Launch.fields = proto3.util.newFieldList(() => [
|
|
|
1652
1708
|
{ no: 15, name: "x_handle", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1653
1709
|
{ no: 16, name: "unique_buyer_count", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1654
1710
|
{ no: 17, name: "buyers_last_1h", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1711
|
+
{ no: 18, name: "holder_count", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1712
|
+
{ no: 19, name: "burned_to_zero", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1713
|
+
{ no: 20, name: "burned_to_dead", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1655
1714
|
]);
|
|
1656
1715
|
/**
|
|
1657
1716
|
* Bonding-curve lifecycle overlay for launches attributed to the Uniswap
|