@uniswap/client-data-api 0.0.190 → 0.0.193
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.
|
@@ -1073,6 +1073,66 @@ export declare class ListTopAuctionsRequest extends Message<ListTopAuctionsReque
|
|
|
1073
1073
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListTopAuctionsRequest;
|
|
1074
1074
|
static equals(a: ListTopAuctionsRequest | PlainMessage<ListTopAuctionsRequest> | undefined, b: ListTopAuctionsRequest | PlainMessage<ListTopAuctionsRequest> | undefined): boolean;
|
|
1075
1075
|
}
|
|
1076
|
+
/**
|
|
1077
|
+
* One recently placed bid on the ListTopAuctions listing — the Home-card
|
|
1078
|
+
* bid tape. Deliberately lighter than Bid: raw persisted row values only,
|
|
1079
|
+
* with none of Bid's serve-time allocation math (Bid.amount), so the
|
|
1080
|
+
* listing enrichment stays one batched read.
|
|
1081
|
+
*
|
|
1082
|
+
* @generated from message data.v1.RecentBid
|
|
1083
|
+
*/
|
|
1084
|
+
export declare class RecentBid extends Message<RecentBid> {
|
|
1085
|
+
/**
|
|
1086
|
+
* @generated from field: string bid_id = 1;
|
|
1087
|
+
*/
|
|
1088
|
+
bidId: string;
|
|
1089
|
+
/**
|
|
1090
|
+
* bidder wallet
|
|
1091
|
+
*
|
|
1092
|
+
* @generated from field: string wallet_id = 2;
|
|
1093
|
+
*/
|
|
1094
|
+
walletId: string;
|
|
1095
|
+
/**
|
|
1096
|
+
* "" when not yet known
|
|
1097
|
+
*
|
|
1098
|
+
* @generated from field: string tx_hash = 3;
|
|
1099
|
+
*/
|
|
1100
|
+
txHash: string;
|
|
1101
|
+
/**
|
|
1102
|
+
* currency committed, raw integer string
|
|
1103
|
+
*
|
|
1104
|
+
* @generated from field: string base_token_initial = 4;
|
|
1105
|
+
*/
|
|
1106
|
+
baseTokenInitial: string;
|
|
1107
|
+
/**
|
|
1108
|
+
* raw integer string (X96)
|
|
1109
|
+
*
|
|
1110
|
+
* @generated from field: string max_price = 5;
|
|
1111
|
+
*/
|
|
1112
|
+
maxPrice: string;
|
|
1113
|
+
/**
|
|
1114
|
+
* ISO 8601 / RFC 3339
|
|
1115
|
+
*
|
|
1116
|
+
* @generated from field: string created_at = 6;
|
|
1117
|
+
*/
|
|
1118
|
+
createdAt: string;
|
|
1119
|
+
/**
|
|
1120
|
+
* USD value of base_token_initial at serve time (currency price x
|
|
1121
|
+
* decimals-adjusted amount). Absent when the currency has no price row or
|
|
1122
|
+
* its decimals are unresolved — clients can tell unpriced from $0.
|
|
1123
|
+
*
|
|
1124
|
+
* @generated from field: optional double amount_usd = 7;
|
|
1125
|
+
*/
|
|
1126
|
+
amountUsd?: number;
|
|
1127
|
+
constructor(data?: PartialMessage<RecentBid>);
|
|
1128
|
+
static readonly runtime: typeof proto3;
|
|
1129
|
+
static readonly typeName = "data.v1.RecentBid";
|
|
1130
|
+
static readonly fields: FieldList;
|
|
1131
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RecentBid;
|
|
1132
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RecentBid;
|
|
1133
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RecentBid;
|
|
1134
|
+
static equals(a: RecentBid | PlainMessage<RecentBid> | undefined, b: RecentBid | PlainMessage<RecentBid> | undefined): boolean;
|
|
1135
|
+
}
|
|
1076
1136
|
/**
|
|
1077
1137
|
* An auction with its total bid volume stats.
|
|
1078
1138
|
*
|
|
@@ -1120,6 +1180,17 @@ export declare class AuctionWithStats extends Message<AuctionWithStats> {
|
|
|
1120
1180
|
* @generated from field: optional int32 holder_count = 5;
|
|
1121
1181
|
*/
|
|
1122
1182
|
holderCount?: number;
|
|
1183
|
+
/**
|
|
1184
|
+
* Home-card bid tape: the auction's most recently placed bids, newest
|
|
1185
|
+
* first, capped at the last 5 per auction. All bids count, including
|
|
1186
|
+
* later-exited/withdrawn ones — historical activity, matching
|
|
1187
|
+
* total_bid_volume semantics. Rides the listing's SWR cache, so freshness
|
|
1188
|
+
* matches the rest of the row (~15s soft TTL); empty when the auction has
|
|
1189
|
+
* no bids or the enrichment read failed (degraded, like the other stats).
|
|
1190
|
+
*
|
|
1191
|
+
* @generated from field: repeated data.v1.RecentBid recent_bids = 6;
|
|
1192
|
+
*/
|
|
1193
|
+
recentBids: RecentBid[];
|
|
1123
1194
|
constructor(data?: PartialMessage<AuctionWithStats>);
|
|
1124
1195
|
static readonly runtime: typeof proto3;
|
|
1125
1196
|
static readonly typeName = "data.v1.AuctionWithStats";
|
|
@@ -1293,6 +1293,77 @@ ListTopAuctionsRequest.fields = proto3.util.newFieldList(() => [
|
|
|
1293
1293
|
{ no: 3, name: "live_only", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1294
1294
|
{ no: 4, name: "quick_launch_only", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1295
1295
|
]);
|
|
1296
|
+
/**
|
|
1297
|
+
* One recently placed bid on the ListTopAuctions listing — the Home-card
|
|
1298
|
+
* bid tape. Deliberately lighter than Bid: raw persisted row values only,
|
|
1299
|
+
* with none of Bid's serve-time allocation math (Bid.amount), so the
|
|
1300
|
+
* listing enrichment stays one batched read.
|
|
1301
|
+
*
|
|
1302
|
+
* @generated from message data.v1.RecentBid
|
|
1303
|
+
*/
|
|
1304
|
+
export class RecentBid extends Message {
|
|
1305
|
+
constructor(data) {
|
|
1306
|
+
super();
|
|
1307
|
+
/**
|
|
1308
|
+
* @generated from field: string bid_id = 1;
|
|
1309
|
+
*/
|
|
1310
|
+
this.bidId = "";
|
|
1311
|
+
/**
|
|
1312
|
+
* bidder wallet
|
|
1313
|
+
*
|
|
1314
|
+
* @generated from field: string wallet_id = 2;
|
|
1315
|
+
*/
|
|
1316
|
+
this.walletId = "";
|
|
1317
|
+
/**
|
|
1318
|
+
* "" when not yet known
|
|
1319
|
+
*
|
|
1320
|
+
* @generated from field: string tx_hash = 3;
|
|
1321
|
+
*/
|
|
1322
|
+
this.txHash = "";
|
|
1323
|
+
/**
|
|
1324
|
+
* currency committed, raw integer string
|
|
1325
|
+
*
|
|
1326
|
+
* @generated from field: string base_token_initial = 4;
|
|
1327
|
+
*/
|
|
1328
|
+
this.baseTokenInitial = "";
|
|
1329
|
+
/**
|
|
1330
|
+
* raw integer string (X96)
|
|
1331
|
+
*
|
|
1332
|
+
* @generated from field: string max_price = 5;
|
|
1333
|
+
*/
|
|
1334
|
+
this.maxPrice = "";
|
|
1335
|
+
/**
|
|
1336
|
+
* ISO 8601 / RFC 3339
|
|
1337
|
+
*
|
|
1338
|
+
* @generated from field: string created_at = 6;
|
|
1339
|
+
*/
|
|
1340
|
+
this.createdAt = "";
|
|
1341
|
+
proto3.util.initPartial(data, this);
|
|
1342
|
+
}
|
|
1343
|
+
static fromBinary(bytes, options) {
|
|
1344
|
+
return new RecentBid().fromBinary(bytes, options);
|
|
1345
|
+
}
|
|
1346
|
+
static fromJson(jsonValue, options) {
|
|
1347
|
+
return new RecentBid().fromJson(jsonValue, options);
|
|
1348
|
+
}
|
|
1349
|
+
static fromJsonString(jsonString, options) {
|
|
1350
|
+
return new RecentBid().fromJsonString(jsonString, options);
|
|
1351
|
+
}
|
|
1352
|
+
static equals(a, b) {
|
|
1353
|
+
return proto3.util.equals(RecentBid, a, b);
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
RecentBid.runtime = proto3;
|
|
1357
|
+
RecentBid.typeName = "data.v1.RecentBid";
|
|
1358
|
+
RecentBid.fields = proto3.util.newFieldList(() => [
|
|
1359
|
+
{ no: 1, name: "bid_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1360
|
+
{ no: 2, name: "wallet_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1361
|
+
{ no: 3, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1362
|
+
{ no: 4, name: "base_token_initial", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1363
|
+
{ no: 5, name: "max_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1364
|
+
{ no: 6, name: "created_at", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1365
|
+
{ no: 7, name: "amount_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
1366
|
+
]);
|
|
1296
1367
|
/**
|
|
1297
1368
|
* An auction with its total bid volume stats.
|
|
1298
1369
|
*
|
|
@@ -1308,6 +1379,17 @@ export class AuctionWithStats extends Message {
|
|
|
1308
1379
|
* @deprecated
|
|
1309
1380
|
*/
|
|
1310
1381
|
this.totalBidVolume = "";
|
|
1382
|
+
/**
|
|
1383
|
+
* Home-card bid tape: the auction's most recently placed bids, newest
|
|
1384
|
+
* first, capped at the last 5 per auction. All bids count, including
|
|
1385
|
+
* later-exited/withdrawn ones — historical activity, matching
|
|
1386
|
+
* total_bid_volume semantics. Rides the listing's SWR cache, so freshness
|
|
1387
|
+
* matches the rest of the row (~15s soft TTL); empty when the auction has
|
|
1388
|
+
* no bids or the enrichment read failed (degraded, like the other stats).
|
|
1389
|
+
*
|
|
1390
|
+
* @generated from field: repeated data.v1.RecentBid recent_bids = 6;
|
|
1391
|
+
*/
|
|
1392
|
+
this.recentBids = [];
|
|
1311
1393
|
proto3.util.initPartial(data, this);
|
|
1312
1394
|
}
|
|
1313
1395
|
static fromBinary(bytes, options) {
|
|
@@ -1331,6 +1413,7 @@ AuctionWithStats.fields = proto3.util.newFieldList(() => [
|
|
|
1331
1413
|
{ no: 3, name: "unique_bidder_count", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1332
1414
|
{ no: 4, name: "bid_volume_usd_last_1h", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
1333
1415
|
{ no: 5, name: "holder_count", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1416
|
+
{ no: 6, name: "recent_bids", kind: "message", T: RecentBid, repeated: true },
|
|
1334
1417
|
]);
|
|
1335
1418
|
/**
|
|
1336
1419
|
* Response containing top auctions ordered by total bid volume.
|
|
@@ -1754,6 +1754,20 @@ export declare class Launch extends Message<Launch> {
|
|
|
1754
1754
|
* @generated from field: optional bool x_verified = 23;
|
|
1755
1755
|
*/
|
|
1756
1756
|
xVerified?: boolean;
|
|
1757
|
+
/**
|
|
1758
|
+
* Home-card trade tape: the launch token's most recent swaps, newest
|
|
1759
|
+
* first, capped at the last 5 within the trailing 24h — same rows (and
|
|
1760
|
+
* message) GetTokenTrades serves, aggregated across all the token's pools
|
|
1761
|
+
* on its chain. Served from a short-TTL cache refreshed off the request
|
|
1762
|
+
* path, so entries can lag live trades by the cache TTL (~30s) and a
|
|
1763
|
+
* cold cache serves an empty list — clients treat empty as "no recent
|
|
1764
|
+
* activity known", not an error. Pre-graduation CCA launches have no
|
|
1765
|
+
* swaps by construction (bids are not trades) — the auction tape is
|
|
1766
|
+
* AuctionWithStats.recent_bids on ListTopAuctions.
|
|
1767
|
+
*
|
|
1768
|
+
* @generated from field: repeated data.v2.TokenTrade recent_trades = 24;
|
|
1769
|
+
*/
|
|
1770
|
+
recentTrades: TokenTrade[];
|
|
1757
1771
|
constructor(data?: PartialMessage<Launch>);
|
|
1758
1772
|
static readonly runtime: typeof proto3;
|
|
1759
1773
|
static readonly typeName = "data.v2.Launch";
|
package/dist/data/v2/types_pb.js
CHANGED
|
@@ -1752,6 +1752,20 @@ export class Launch extends Message {
|
|
|
1752
1752
|
* @generated from field: int64 launched_at = 5;
|
|
1753
1753
|
*/
|
|
1754
1754
|
this.launchedAt = protoInt64.zero;
|
|
1755
|
+
/**
|
|
1756
|
+
* Home-card trade tape: the launch token's most recent swaps, newest
|
|
1757
|
+
* first, capped at the last 5 within the trailing 24h — same rows (and
|
|
1758
|
+
* message) GetTokenTrades serves, aggregated across all the token's pools
|
|
1759
|
+
* on its chain. Served from a short-TTL cache refreshed off the request
|
|
1760
|
+
* path, so entries can lag live trades by the cache TTL (~30s) and a
|
|
1761
|
+
* cold cache serves an empty list — clients treat empty as "no recent
|
|
1762
|
+
* activity known", not an error. Pre-graduation CCA launches have no
|
|
1763
|
+
* swaps by construction (bids are not trades) — the auction tape is
|
|
1764
|
+
* AuctionWithStats.recent_bids on ListTopAuctions.
|
|
1765
|
+
*
|
|
1766
|
+
* @generated from field: repeated data.v2.TokenTrade recent_trades = 24;
|
|
1767
|
+
*/
|
|
1768
|
+
this.recentTrades = [];
|
|
1755
1769
|
proto3.util.initPartial(data, this);
|
|
1756
1770
|
}
|
|
1757
1771
|
static fromBinary(bytes, options) {
|
|
@@ -1793,6 +1807,7 @@ Launch.fields = proto3.util.newFieldList(() => [
|
|
|
1793
1807
|
{ no: 21, name: "auction_end_time", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
|
|
1794
1808
|
{ no: 22, name: "x_profile_image_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1795
1809
|
{ no: 23, name: "x_verified", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1810
|
+
{ no: 24, name: "recent_trades", kind: "message", T: TokenTrade, repeated: true },
|
|
1796
1811
|
]);
|
|
1797
1812
|
/**
|
|
1798
1813
|
* One row of a launch token's holder list (GetLaunchHolders).
|