@uniswap/client-data-api 0.0.177 → 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 +18 -9
- package/dist/data/v2/api_pb.js +18 -9
- package/package.json +1 -1
package/dist/data/v2/api_pb.d.ts
CHANGED
|
@@ -1768,8 +1768,9 @@ export declare class GetTokenTopTradersRequest extends Message<GetTokenTopTrader
|
|
|
1768
1768
|
* flags transferred_in.
|
|
1769
1769
|
*
|
|
1770
1770
|
* UNKNOWN-BASIS ROWS: when the server cannot compute a wallet's basis — the
|
|
1771
|
-
* wallet transferred tokens in (transferred_in),
|
|
1772
|
-
*
|
|
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
|
|
1773
1774
|
* money fields (cost_basis_usd, avg_cost_usd, realized_pnl_usd,
|
|
1774
1775
|
* unrealized_pnl_usd) are served as 0 and MUST be read as "unknown", never
|
|
1775
1776
|
* as a real $0.00. Such wallets rank strictly after every computable-PnL
|
|
@@ -1821,8 +1822,12 @@ export declare class TokenTopTrader extends Message<TokenTopTrader> {
|
|
|
1821
1822
|
*/
|
|
1822
1823
|
soldTokens: number;
|
|
1823
1824
|
/**
|
|
1824
|
-
* Tokens still held
|
|
1825
|
-
*
|
|
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).
|
|
1826
1831
|
*
|
|
1827
1832
|
* @generated from field: double remaining_tokens = 8;
|
|
1828
1833
|
*/
|
|
@@ -1836,8 +1841,9 @@ export declare class TokenTopTrader extends Message<TokenTopTrader> {
|
|
|
1836
1841
|
*/
|
|
1837
1842
|
costBasisUsd: number;
|
|
1838
1843
|
/**
|
|
1839
|
-
* cost_basis_usd ÷
|
|
1840
|
-
*
|
|
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.
|
|
1841
1847
|
*
|
|
1842
1848
|
* @generated from field: double avg_cost_usd = 10;
|
|
1843
1849
|
*/
|
|
@@ -1866,7 +1872,7 @@ export declare class TokenTopTrader extends Message<TokenTopTrader> {
|
|
|
1866
1872
|
hasClaims: boolean;
|
|
1867
1873
|
/**
|
|
1868
1874
|
* Mark-to-market PnL of the remaining position at the token's latest
|
|
1869
|
-
* known price: remaining_tokens ×
|
|
1875
|
+
* known price: remaining_tokens × spot − cost_basis_usd. The documented
|
|
1870
1876
|
* ranking tiebreak, served so clients can render it. Meaningless (served
|
|
1871
1877
|
* 0) when unrealized_pnl_unknown — basis unknown, or no known spot price.
|
|
1872
1878
|
*
|
|
@@ -1883,8 +1889,11 @@ export declare class TokenTopTrader extends Message<TokenTopTrader> {
|
|
|
1883
1889
|
transferredIn: boolean;
|
|
1884
1890
|
/**
|
|
1885
1891
|
* True when the wallet's basis could not be computed — it transferred
|
|
1886
|
-
* tokens in (transferred_in),
|
|
1887
|
-
*
|
|
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
|
|
1888
1897
|
* fields as unknown ("–"), not $0.00; the row ranks after every
|
|
1889
1898
|
* computable-PnL row (see message doc). Implies unrealized_pnl_unknown.
|
|
1890
1899
|
*
|
package/dist/data/v2/api_pb.js
CHANGED
|
@@ -2156,8 +2156,9 @@ GetTokenTopTradersRequest.fields = proto3.util.newFieldList(() => [
|
|
|
2156
2156
|
* flags transferred_in.
|
|
2157
2157
|
*
|
|
2158
2158
|
* UNKNOWN-BASIS ROWS: when the server cannot compute a wallet's basis — the
|
|
2159
|
-
* wallet transferred tokens in (transferred_in),
|
|
2160
|
-
*
|
|
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
|
|
2161
2162
|
* money fields (cost_basis_usd, avg_cost_usd, realized_pnl_usd,
|
|
2162
2163
|
* unrealized_pnl_usd) are served as 0 and MUST be read as "unknown", never
|
|
2163
2164
|
* as a real $0.00. Such wallets rank strictly after every computable-PnL
|
|
@@ -2211,8 +2212,12 @@ export class TokenTopTrader extends Message {
|
|
|
2211
2212
|
*/
|
|
2212
2213
|
this.soldTokens = 0;
|
|
2213
2214
|
/**
|
|
2214
|
-
* Tokens still held
|
|
2215
|
-
*
|
|
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).
|
|
2216
2221
|
*
|
|
2217
2222
|
* @generated from field: double remaining_tokens = 8;
|
|
2218
2223
|
*/
|
|
@@ -2226,8 +2231,9 @@ export class TokenTopTrader extends Message {
|
|
|
2226
2231
|
*/
|
|
2227
2232
|
this.costBasisUsd = 0;
|
|
2228
2233
|
/**
|
|
2229
|
-
* cost_basis_usd ÷
|
|
2230
|
-
*
|
|
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.
|
|
2231
2237
|
*
|
|
2232
2238
|
* @generated from field: double avg_cost_usd = 10;
|
|
2233
2239
|
*/
|
|
@@ -2256,7 +2262,7 @@ export class TokenTopTrader extends Message {
|
|
|
2256
2262
|
this.hasClaims = false;
|
|
2257
2263
|
/**
|
|
2258
2264
|
* Mark-to-market PnL of the remaining position at the token's latest
|
|
2259
|
-
* known price: remaining_tokens ×
|
|
2265
|
+
* known price: remaining_tokens × spot − cost_basis_usd. The documented
|
|
2260
2266
|
* ranking tiebreak, served so clients can render it. Meaningless (served
|
|
2261
2267
|
* 0) when unrealized_pnl_unknown — basis unknown, or no known spot price.
|
|
2262
2268
|
*
|
|
@@ -2273,8 +2279,11 @@ export class TokenTopTrader extends Message {
|
|
|
2273
2279
|
this.transferredIn = false;
|
|
2274
2280
|
/**
|
|
2275
2281
|
* True when the wallet's basis could not be computed — it transferred
|
|
2276
|
-
* tokens in (transferred_in),
|
|
2277
|
-
*
|
|
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
|
|
2278
2287
|
* fields as unknown ("–"), not $0.00; the row ranks after every
|
|
2279
2288
|
* computable-PnL row (see message doc). Implies unrealized_pnl_unknown.
|
|
2280
2289
|
*
|