@uniswap/client-data-api 0.0.147 → 0.0.149
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,27 @@ 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 / LAST_1H keep only launches whose launched_at is within
|
|
327
|
+
* the trailing 24 hours / 1 hour respectively.
|
|
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
|
+
/**
|
|
341
|
+
* @generated from enum value: LAUNCH_WINDOW_LAST_1H = 2;
|
|
342
|
+
*/
|
|
343
|
+
LAST_1H = 2
|
|
344
|
+
}
|
|
324
345
|
/**
|
|
325
346
|
* The trade's direction from the trader's perspective: BUY = the trader
|
|
326
347
|
* received the requested token, SELL = the trader gave it up. UNSPECIFIED
|
|
@@ -1295,6 +1316,26 @@ export declare class Launchpad extends Message<Launchpad> {
|
|
|
1295
1316
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Launchpad;
|
|
1296
1317
|
static equals(a: Launchpad | PlainMessage<Launchpad> | undefined, b: Launchpad | PlainMessage<Launchpad> | undefined): boolean;
|
|
1297
1318
|
}
|
|
1319
|
+
/**
|
|
1320
|
+
* Optional filters for ListLaunches. When a window is set and sort_by is
|
|
1321
|
+
* UNSPECIFIED the server sorts by 24h volume (VOLUME_1D).
|
|
1322
|
+
*
|
|
1323
|
+
* @generated from message data.v2.LaunchListFilter
|
|
1324
|
+
*/
|
|
1325
|
+
export declare class LaunchListFilter extends Message<LaunchListFilter> {
|
|
1326
|
+
/**
|
|
1327
|
+
* @generated from field: data.v2.LaunchWindow window = 1;
|
|
1328
|
+
*/
|
|
1329
|
+
window: LaunchWindow;
|
|
1330
|
+
constructor(data?: PartialMessage<LaunchListFilter>);
|
|
1331
|
+
static readonly runtime: typeof proto3;
|
|
1332
|
+
static readonly typeName = "data.v2.LaunchListFilter";
|
|
1333
|
+
static readonly fields: FieldList;
|
|
1334
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LaunchListFilter;
|
|
1335
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LaunchListFilter;
|
|
1336
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LaunchListFilter;
|
|
1337
|
+
static equals(a: LaunchListFilter | PlainMessage<LaunchListFilter> | undefined, b: LaunchListFilter | PlainMessage<LaunchListFilter> | undefined): boolean;
|
|
1338
|
+
}
|
|
1298
1339
|
/**
|
|
1299
1340
|
* The launched token's identity and display metadata.
|
|
1300
1341
|
*
|
package/dist/data/v2/types_pb.js
CHANGED
|
@@ -417,6 +417,34 @@ 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 / LAST_1H keep only launches whose launched_at is within
|
|
423
|
+
* the trailing 24 hours / 1 hour respectively.
|
|
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
|
+
/**
|
|
438
|
+
* @generated from enum value: LAUNCH_WINDOW_LAST_1H = 2;
|
|
439
|
+
*/
|
|
440
|
+
LaunchWindow[LaunchWindow["LAST_1H"] = 2] = "LAST_1H";
|
|
441
|
+
})(LaunchWindow || (LaunchWindow = {}));
|
|
442
|
+
// Retrieve enum metadata with: proto3.getEnumType(LaunchWindow)
|
|
443
|
+
proto3.util.setEnumType(LaunchWindow, "data.v2.LaunchWindow", [
|
|
444
|
+
{ no: 0, name: "LAUNCH_WINDOW_UNSPECIFIED" },
|
|
445
|
+
{ no: 1, name: "LAUNCH_WINDOW_LAST_24H" },
|
|
446
|
+
{ no: 2, name: "LAUNCH_WINDOW_LAST_1H" },
|
|
447
|
+
]);
|
|
420
448
|
/**
|
|
421
449
|
* The trade's direction from the trader's perspective: BUY = the trader
|
|
422
450
|
* received the requested token, SELL = the trader gave it up. UNSPECIFIED
|
|
@@ -1501,6 +1529,39 @@ Launchpad.fields = proto3.util.newFieldList(() => [
|
|
|
1501
1529
|
{ no: 3, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1502
1530
|
{ no: 4, name: "protocol", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1503
1531
|
]);
|
|
1532
|
+
/**
|
|
1533
|
+
* Optional filters for ListLaunches. When a window is set and sort_by is
|
|
1534
|
+
* UNSPECIFIED the server sorts by 24h volume (VOLUME_1D).
|
|
1535
|
+
*
|
|
1536
|
+
* @generated from message data.v2.LaunchListFilter
|
|
1537
|
+
*/
|
|
1538
|
+
export class LaunchListFilter extends Message {
|
|
1539
|
+
constructor(data) {
|
|
1540
|
+
super();
|
|
1541
|
+
/**
|
|
1542
|
+
* @generated from field: data.v2.LaunchWindow window = 1;
|
|
1543
|
+
*/
|
|
1544
|
+
this.window = LaunchWindow.UNSPECIFIED;
|
|
1545
|
+
proto3.util.initPartial(data, this);
|
|
1546
|
+
}
|
|
1547
|
+
static fromBinary(bytes, options) {
|
|
1548
|
+
return new LaunchListFilter().fromBinary(bytes, options);
|
|
1549
|
+
}
|
|
1550
|
+
static fromJson(jsonValue, options) {
|
|
1551
|
+
return new LaunchListFilter().fromJson(jsonValue, options);
|
|
1552
|
+
}
|
|
1553
|
+
static fromJsonString(jsonString, options) {
|
|
1554
|
+
return new LaunchListFilter().fromJsonString(jsonString, options);
|
|
1555
|
+
}
|
|
1556
|
+
static equals(a, b) {
|
|
1557
|
+
return proto3.util.equals(LaunchListFilter, a, b);
|
|
1558
|
+
}
|
|
1559
|
+
}
|
|
1560
|
+
LaunchListFilter.runtime = proto3;
|
|
1561
|
+
LaunchListFilter.typeName = "data.v2.LaunchListFilter";
|
|
1562
|
+
LaunchListFilter.fields = proto3.util.newFieldList(() => [
|
|
1563
|
+
{ no: 1, name: "window", kind: "enum", T: proto3.getEnumType(LaunchWindow) },
|
|
1564
|
+
]);
|
|
1504
1565
|
/**
|
|
1505
1566
|
* The launched token's identity and display metadata.
|
|
1506
1567
|
*
|