@uniswap/client-data-api 0.0.176 → 0.0.178
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.
- package/dist/data/v2/api_pb.d.ts +33 -9
- package/dist/data/v2/api_pb.js +19 -9
- package/package.json +1 -1
package/dist/data/v2/api_pb.d.ts
CHANGED
|
@@ -562,6 +562,21 @@ export declare class GetTokenTradesRequest extends Message<GetTokenTradesRequest
|
|
|
562
562
|
* @generated from field: optional string wallet = 3;
|
|
563
563
|
*/
|
|
564
564
|
wallet?: string;
|
|
565
|
+
/**
|
|
566
|
+
* Minimum trade size: keep only trades whose amount_usd is >= this
|
|
567
|
+
* threshold. Trades with no known USD amount are excluded when set (they
|
|
568
|
+
* cannot be proven to clear the bar). Omitted or 0 = no filtering; negative
|
|
569
|
+
* or non-finite values are rejected. Applied before the page cut, so a page
|
|
570
|
+
* holds up to page_size MATCHING trades — but the server bounds how far it
|
|
571
|
+
* scans per request, so a page may come back short of page_size while
|
|
572
|
+
* next_page_token is still set; presence of next_page_token, not page
|
|
573
|
+
* fullness, signals more data under this filter. Like wallet, page_token
|
|
574
|
+
* carries only a keyset position — the client must resend the same
|
|
575
|
+
* min_amount_usd on every page.
|
|
576
|
+
*
|
|
577
|
+
* @generated from field: optional double min_amount_usd = 4;
|
|
578
|
+
*/
|
|
579
|
+
minAmountUsd?: number;
|
|
565
580
|
constructor(data?: PartialMessage<GetTokenTradesRequest>);
|
|
566
581
|
static readonly runtime: typeof proto3;
|
|
567
582
|
static readonly typeName = "data.v2.GetTokenTradesRequest";
|
|
@@ -1753,8 +1768,9 @@ export declare class GetTokenTopTradersRequest extends Message<GetTokenTopTrader
|
|
|
1753
1768
|
* flags transferred_in.
|
|
1754
1769
|
*
|
|
1755
1770
|
* UNKNOWN-BASIS ROWS: when the server cannot compute a wallet's basis — the
|
|
1756
|
-
* wallet transferred tokens in (transferred_in),
|
|
1757
|
-
*
|
|
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
|
|
1758
1774
|
* money fields (cost_basis_usd, avg_cost_usd, realized_pnl_usd,
|
|
1759
1775
|
* unrealized_pnl_usd) are served as 0 and MUST be read as "unknown", never
|
|
1760
1776
|
* as a real $0.00. Such wallets rank strictly after every computable-PnL
|
|
@@ -1806,8 +1822,12 @@ export declare class TokenTopTrader extends Message<TokenTopTrader> {
|
|
|
1806
1822
|
*/
|
|
1807
1823
|
soldTokens: number;
|
|
1808
1824
|
/**
|
|
1809
|
-
* Tokens still held
|
|
1810
|
-
*
|
|
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).
|
|
1811
1831
|
*
|
|
1812
1832
|
* @generated from field: double remaining_tokens = 8;
|
|
1813
1833
|
*/
|
|
@@ -1821,8 +1841,9 @@ export declare class TokenTopTrader extends Message<TokenTopTrader> {
|
|
|
1821
1841
|
*/
|
|
1822
1842
|
costBasisUsd: number;
|
|
1823
1843
|
/**
|
|
1824
|
-
* cost_basis_usd ÷
|
|
1825
|
-
*
|
|
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.
|
|
1826
1847
|
*
|
|
1827
1848
|
* @generated from field: double avg_cost_usd = 10;
|
|
1828
1849
|
*/
|
|
@@ -1851,7 +1872,7 @@ export declare class TokenTopTrader extends Message<TokenTopTrader> {
|
|
|
1851
1872
|
hasClaims: boolean;
|
|
1852
1873
|
/**
|
|
1853
1874
|
* Mark-to-market PnL of the remaining position at the token's latest
|
|
1854
|
-
* known price: remaining_tokens ×
|
|
1875
|
+
* known price: remaining_tokens × spot − cost_basis_usd. The documented
|
|
1855
1876
|
* ranking tiebreak, served so clients can render it. Meaningless (served
|
|
1856
1877
|
* 0) when unrealized_pnl_unknown — basis unknown, or no known spot price.
|
|
1857
1878
|
*
|
|
@@ -1868,8 +1889,11 @@ export declare class TokenTopTrader extends Message<TokenTopTrader> {
|
|
|
1868
1889
|
transferredIn: boolean;
|
|
1869
1890
|
/**
|
|
1870
1891
|
* True when the wallet's basis could not be computed — it transferred
|
|
1871
|
-
* tokens in (transferred_in),
|
|
1872
|
-
*
|
|
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
|
|
1873
1897
|
* fields as unknown ("–"), not $0.00; the row ranks after every
|
|
1874
1898
|
* computable-PnL row (see message doc). Implies unrealized_pnl_unknown.
|
|
1875
1899
|
*
|
package/dist/data/v2/api_pb.js
CHANGED
|
@@ -683,6 +683,7 @@ GetTokenTradesRequest.fields = proto3.util.newFieldList(() => [
|
|
|
683
683
|
{ no: 1, name: "token", kind: "message", T: TokenIdentifier },
|
|
684
684
|
{ no: 2, name: "page", kind: "message", T: PageRequest, opt: true },
|
|
685
685
|
{ no: 3, name: "wallet", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
686
|
+
{ no: 4, name: "min_amount_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
686
687
|
]);
|
|
687
688
|
/**
|
|
688
689
|
* @generated from message data.v2.GetTokenTradesResponse
|
|
@@ -2155,8 +2156,9 @@ GetTokenTopTradersRequest.fields = proto3.util.newFieldList(() => [
|
|
|
2155
2156
|
* flags transferred_in.
|
|
2156
2157
|
*
|
|
2157
2158
|
* UNKNOWN-BASIS ROWS: when the server cannot compute a wallet's basis — the
|
|
2158
|
-
* wallet transferred tokens in (transferred_in),
|
|
2159
|
-
*
|
|
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
|
|
2160
2162
|
* money fields (cost_basis_usd, avg_cost_usd, realized_pnl_usd,
|
|
2161
2163
|
* unrealized_pnl_usd) are served as 0 and MUST be read as "unknown", never
|
|
2162
2164
|
* as a real $0.00. Such wallets rank strictly after every computable-PnL
|
|
@@ -2210,8 +2212,12 @@ export class TokenTopTrader extends Message {
|
|
|
2210
2212
|
*/
|
|
2211
2213
|
this.soldTokens = 0;
|
|
2212
2214
|
/**
|
|
2213
|
-
* Tokens still held
|
|
2214
|
-
*
|
|
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).
|
|
2215
2221
|
*
|
|
2216
2222
|
* @generated from field: double remaining_tokens = 8;
|
|
2217
2223
|
*/
|
|
@@ -2225,8 +2231,9 @@ export class TokenTopTrader extends Message {
|
|
|
2225
2231
|
*/
|
|
2226
2232
|
this.costBasisUsd = 0;
|
|
2227
2233
|
/**
|
|
2228
|
-
* cost_basis_usd ÷
|
|
2229
|
-
*
|
|
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.
|
|
2230
2237
|
*
|
|
2231
2238
|
* @generated from field: double avg_cost_usd = 10;
|
|
2232
2239
|
*/
|
|
@@ -2255,7 +2262,7 @@ export class TokenTopTrader extends Message {
|
|
|
2255
2262
|
this.hasClaims = false;
|
|
2256
2263
|
/**
|
|
2257
2264
|
* Mark-to-market PnL of the remaining position at the token's latest
|
|
2258
|
-
* known price: remaining_tokens ×
|
|
2265
|
+
* known price: remaining_tokens × spot − cost_basis_usd. The documented
|
|
2259
2266
|
* ranking tiebreak, served so clients can render it. Meaningless (served
|
|
2260
2267
|
* 0) when unrealized_pnl_unknown — basis unknown, or no known spot price.
|
|
2261
2268
|
*
|
|
@@ -2272,8 +2279,11 @@ export class TokenTopTrader extends Message {
|
|
|
2272
2279
|
this.transferredIn = false;
|
|
2273
2280
|
/**
|
|
2274
2281
|
* True when the wallet's basis could not be computed — it transferred
|
|
2275
|
-
* tokens in (transferred_in),
|
|
2276
|
-
*
|
|
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
|
|
2277
2287
|
* fields as unknown ("–"), not $0.00; the row ranks after every
|
|
2278
2288
|
* computable-PnL row (see message doc). Implies unrealized_pnl_unknown.
|
|
2279
2289
|
*
|