@uniswap/client-data-api 0.0.150 → 0.0.152
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.
|
@@ -234,6 +234,23 @@ export declare class PoolPosition extends Message<PoolPosition> {
|
|
|
234
234
|
* @generated from field: optional uint32 effective_fee = 26;
|
|
235
235
|
*/
|
|
236
236
|
effectiveFee?: number;
|
|
237
|
+
/**
|
|
238
|
+
* Fee APR averaged over the trailing 1/7/30 calendar days (excludes reward
|
|
239
|
+
* boosts). Set whenever the pool's day-data history was fetched (positions
|
|
240
|
+
* always fetch it); unset otherwise. Days without trades count as zero
|
|
241
|
+
* volume; pools younger than a window average over their age instead.
|
|
242
|
+
*
|
|
243
|
+
* @generated from field: optional double apr_1d = 27;
|
|
244
|
+
*/
|
|
245
|
+
apr1d?: number;
|
|
246
|
+
/**
|
|
247
|
+
* @generated from field: optional double apr_7d = 28;
|
|
248
|
+
*/
|
|
249
|
+
apr7d?: number;
|
|
250
|
+
/**
|
|
251
|
+
* @generated from field: optional double apr_30d = 29;
|
|
252
|
+
*/
|
|
253
|
+
apr30d?: number;
|
|
237
254
|
constructor(data?: PartialMessage<PoolPosition>);
|
|
238
255
|
static readonly runtime: typeof proto3;
|
|
239
256
|
static readonly typeName = "pools.v1.PoolPosition";
|
|
@@ -496,6 +513,24 @@ export declare class Pool extends Message<Pool> {
|
|
|
496
513
|
* @generated from field: optional uint32 effective_fee = 19;
|
|
497
514
|
*/
|
|
498
515
|
effectiveFee?: number;
|
|
516
|
+
/**
|
|
517
|
+
* Fee APR averaged over the trailing 1/7/30 calendar days (excludes reward
|
|
518
|
+
* boosts). Set only when the request enables include_volume_30d — day-data
|
|
519
|
+
* history is fetched only then; unset otherwise. Days without trades count
|
|
520
|
+
* as zero volume; pools younger than a window average over their age
|
|
521
|
+
* instead.
|
|
522
|
+
*
|
|
523
|
+
* @generated from field: optional double apr_1d = 20;
|
|
524
|
+
*/
|
|
525
|
+
apr1d?: number;
|
|
526
|
+
/**
|
|
527
|
+
* @generated from field: optional double apr_7d = 21;
|
|
528
|
+
*/
|
|
529
|
+
apr7d?: number;
|
|
530
|
+
/**
|
|
531
|
+
* @generated from field: optional double apr_30d = 22;
|
|
532
|
+
*/
|
|
533
|
+
apr30d?: number;
|
|
499
534
|
constructor(data?: PartialMessage<Pool>);
|
|
500
535
|
static readonly runtime: typeof proto3;
|
|
501
536
|
static readonly typeName = "pools.v1.Pool";
|
|
@@ -295,6 +295,9 @@ PoolPosition.fields = proto3.util.newFieldList(() => [
|
|
|
295
295
|
{ no: 24, name: "reward_balances", kind: "message", T: RewardBalance, repeated: true },
|
|
296
296
|
{ no: 25, name: "protocol_fee", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
297
297
|
{ no: 26, name: "effective_fee", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
298
|
+
{ no: 27, name: "apr_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
299
|
+
{ no: 28, name: "apr_7d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
300
|
+
{ no: 29, name: "apr_30d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
298
301
|
]);
|
|
299
302
|
/**
|
|
300
303
|
* @generated from message pools.v1.PairPosition
|
|
@@ -591,6 +594,9 @@ Pool.fields = proto3.util.newFieldList(() => [
|
|
|
591
594
|
{ no: 17, name: "volume_30d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
592
595
|
{ no: 18, name: "protocol_fee", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
593
596
|
{ no: 19, name: "effective_fee", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
597
|
+
{ no: 20, name: "apr_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
598
|
+
{ no: 21, name: "apr_7d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
599
|
+
{ no: 22, name: "apr_30d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
594
600
|
]);
|
|
595
601
|
/**
|
|
596
602
|
* @generated from message pools.v1.Pair
|
|
@@ -1137,8 +1137,11 @@ export declare class RankedPool extends Message<RankedPool> {
|
|
|
1137
1137
|
static equals(a: RankedPool | PlainMessage<RankedPool> | undefined, b: RankedPool | PlainMessage<RankedPool> | undefined): boolean;
|
|
1138
1138
|
}
|
|
1139
1139
|
/**
|
|
1140
|
-
* One token side of a pool event. amount is
|
|
1141
|
-
*
|
|
1140
|
+
* One token side of a pool event. amount is signed, pool-perspective:
|
|
1141
|
+
* positive = the token entered the pool (sold / deposited), negative = it
|
|
1142
|
+
* left the pool (bought / withdrawn) — same convention as the GraphQL
|
|
1143
|
+
* transactions resolvers. amount_usd = |amount| * price; 0 when price or
|
|
1144
|
+
* decimals are unavailable.
|
|
1142
1145
|
*
|
|
1143
1146
|
* @generated from message data.v2.TransactionTokenSide
|
|
1144
1147
|
*/
|
|
@@ -1148,7 +1151,7 @@ export declare class TransactionTokenSide extends Message<TransactionTokenSide>
|
|
|
1148
1151
|
*/
|
|
1149
1152
|
token?: Token;
|
|
1150
1153
|
/**
|
|
1151
|
-
* decimal-adjusted
|
|
1154
|
+
* decimal-adjusted signed amount, full precision; absent when decimals unavailable
|
|
1152
1155
|
*
|
|
1153
1156
|
* @generated from field: optional string amount = 2;
|
|
1154
1157
|
*/
|
|
@@ -1443,8 +1446,8 @@ export declare class Launch extends Message<Launch> {
|
|
|
1443
1446
|
*/
|
|
1444
1447
|
token?: LaunchToken;
|
|
1445
1448
|
/**
|
|
1446
|
-
* v4 pool id for hook-attributed launches; CCA pool key hash
|
|
1447
|
-
* auction has migrated to a pool, empty before then.
|
|
1449
|
+
* v4 pool id for hook-attributed and direct launches; CCA pool key hash
|
|
1450
|
+
* once the auction has migrated to a pool, empty before then.
|
|
1448
1451
|
*
|
|
1449
1452
|
* @generated from field: string pool_id = 3;
|
|
1450
1453
|
*/
|
|
@@ -1464,10 +1467,13 @@ export declare class Launch extends Message<Launch> {
|
|
|
1464
1467
|
*/
|
|
1465
1468
|
stats?: LaunchStats;
|
|
1466
1469
|
/**
|
|
1467
|
-
* CCA +
|
|
1468
|
-
* auction migrated into its pool
|
|
1469
|
-
*
|
|
1470
|
-
*
|
|
1470
|
+
* CCA + direct-launch launches: true once the launch graduated. CCA:
|
|
1471
|
+
* auction migrated into its pool (on-chain fact). Direct launches
|
|
1472
|
+
* (launchpad "uniswap-bonding-curve") have NO on-chain graduation — the
|
|
1473
|
+
* pool is a vanilla v4 pool from block one — so this is currently always
|
|
1474
|
+
* false for them; a serving-side FDV-threshold graduation rule may set it
|
|
1475
|
+
* later. Unset for other hook-attributed launches, which are pools
|
|
1476
|
+
* already.
|
|
1471
1477
|
*
|
|
1472
1478
|
* @generated from field: optional bool graduated = 7;
|
|
1473
1479
|
*/
|
|
@@ -1498,8 +1504,8 @@ export declare class Launch extends Message<Launch> {
|
|
|
1498
1504
|
*/
|
|
1499
1505
|
bidderCount?: number;
|
|
1500
1506
|
/**
|
|
1501
|
-
*
|
|
1502
|
-
* Uniswap bonding-curve
|
|
1507
|
+
* Direct-launch overlay (see BondingCurveInfo), set only for launches of
|
|
1508
|
+
* the Uniswap direct-launch launchpad ("uniswap-bonding-curve").
|
|
1503
1509
|
*
|
|
1504
1510
|
* @generated from field: optional data.v2.BondingCurveInfo bonding_curve = 11;
|
|
1505
1511
|
*/
|
|
@@ -1634,19 +1640,22 @@ export declare class LaunchHolder extends Message<LaunchHolder> {
|
|
|
1634
1640
|
static equals(a: LaunchHolder | PlainMessage<LaunchHolder> | undefined, b: LaunchHolder | PlainMessage<LaunchHolder> | undefined): boolean;
|
|
1635
1641
|
}
|
|
1636
1642
|
/**
|
|
1637
|
-
*
|
|
1638
|
-
* bonding-curve
|
|
1639
|
-
*
|
|
1640
|
-
*
|
|
1641
|
-
*
|
|
1642
|
-
*
|
|
1643
|
-
*
|
|
1644
|
-
*
|
|
1643
|
+
* Overlay for launches of the Uniswap direct-launch launchpad (launchpad_id
|
|
1644
|
+
* "uniswap-bonding-curve", kept for client compatibility). The current
|
|
1645
|
+
* launcher generation (DirectLaunchStrategy, LP-1289) is hookless with NO
|
|
1646
|
+
* on-chain graduation lifecycle: launch pools are vanilla v4 pools from
|
|
1647
|
+
* block one, and "graduation" is a serving/frontend concept (an FDV
|
|
1648
|
+
* threshold), not a contract event. Fields 1-5 and 7-9 belong to the
|
|
1649
|
+
* never-launched bonding-curve hook generation and are no longer set for
|
|
1650
|
+
* new launches; they are kept so the message shape stays wire-compatible.
|
|
1645
1651
|
*
|
|
1646
1652
|
* @generated from message data.v2.BondingCurveInfo
|
|
1647
1653
|
*/
|
|
1648
1654
|
export declare class BondingCurveInfo extends Message<BondingCurveInfo> {
|
|
1649
1655
|
/**
|
|
1656
|
+
* Legacy bonding-curve-hook fields (1-5, 7-9): never set for direct-launch
|
|
1657
|
+
* (hookless) launches — there is no curve and no on-chain graduation.
|
|
1658
|
+
*
|
|
1650
1659
|
* @generated from field: optional string graduation_sqrt_price_x96 = 1;
|
|
1651
1660
|
*/
|
|
1652
1661
|
graduationSqrtPriceX96?: string;
|
|
@@ -1671,18 +1680,24 @@ export declare class BondingCurveInfo extends Message<BondingCurveInfo> {
|
|
|
1671
1680
|
*/
|
|
1672
1681
|
graduatedTxHash?: string;
|
|
1673
1682
|
/**
|
|
1674
|
-
* Server-computed % progress toward graduation; unset in the POC (needs
|
|
1675
|
-
* live pool sqrt price, which the list pipeline does not carry yet).
|
|
1676
|
-
*
|
|
1677
1683
|
* @generated from field: optional double curve_progress_pct = 8;
|
|
1678
1684
|
*/
|
|
1679
1685
|
curveProgressPct?: number;
|
|
1680
1686
|
/**
|
|
1681
|
-
* Graduation time, unix seconds. Set once the Graduated event lands.
|
|
1682
|
-
*
|
|
1683
1687
|
* @generated from field: optional int64 graduated_at = 9;
|
|
1684
1688
|
*/
|
|
1685
1689
|
graduatedAt?: bigint;
|
|
1690
|
+
/**
|
|
1691
|
+
* The launch's fee beneficiary (FeeSplitter FeeBeneficiarySet), EIP-55
|
|
1692
|
+
* checksummed: the address receiving the creator share of the launch
|
|
1693
|
+
* pool's trading fees. Freely chosen at launch time by whoever built the
|
|
1694
|
+
* launch transaction — a payee, NOT proven authorship (see
|
|
1695
|
+
* Launch.creator_address for the launch tx sender). Unset while ingestion
|
|
1696
|
+
* of the beneficiary event lags the launch.
|
|
1697
|
+
*
|
|
1698
|
+
* @generated from field: optional string fee_beneficiary = 10;
|
|
1699
|
+
*/
|
|
1700
|
+
feeBeneficiary?: string;
|
|
1686
1701
|
constructor(data?: PartialMessage<BondingCurveInfo>);
|
|
1687
1702
|
static readonly runtime: typeof proto3;
|
|
1688
1703
|
static readonly typeName = "data.v2.BondingCurveInfo";
|
package/dist/data/v2/types_pb.js
CHANGED
|
@@ -1318,8 +1318,11 @@ RankedPool.fields = proto3.util.newFieldList(() => [
|
|
|
1318
1318
|
{ no: 2, name: "stats", kind: "message", T: PoolRankStats },
|
|
1319
1319
|
]);
|
|
1320
1320
|
/**
|
|
1321
|
-
* One token side of a pool event. amount is
|
|
1322
|
-
*
|
|
1321
|
+
* One token side of a pool event. amount is signed, pool-perspective:
|
|
1322
|
+
* positive = the token entered the pool (sold / deposited), negative = it
|
|
1323
|
+
* left the pool (bought / withdrawn) — same convention as the GraphQL
|
|
1324
|
+
* transactions resolvers. amount_usd = |amount| * price; 0 when price or
|
|
1325
|
+
* decimals are unavailable.
|
|
1323
1326
|
*
|
|
1324
1327
|
* @generated from message data.v2.TransactionTokenSide
|
|
1325
1328
|
*/
|
|
@@ -1667,8 +1670,8 @@ export class Launch extends Message {
|
|
|
1667
1670
|
*/
|
|
1668
1671
|
this.launchpadId = "";
|
|
1669
1672
|
/**
|
|
1670
|
-
* v4 pool id for hook-attributed launches; CCA pool key hash
|
|
1671
|
-
* auction has migrated to a pool, empty before then.
|
|
1673
|
+
* v4 pool id for hook-attributed and direct launches; CCA pool key hash
|
|
1674
|
+
* once the auction has migrated to a pool, empty before then.
|
|
1672
1675
|
*
|
|
1673
1676
|
* @generated from field: string pool_id = 3;
|
|
1674
1677
|
*/
|
|
@@ -1779,14 +1782,14 @@ LaunchHolder.fields = proto3.util.newFieldList(() => [
|
|
|
1779
1782
|
{ no: 4, name: "is_burn_address", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1780
1783
|
]);
|
|
1781
1784
|
/**
|
|
1782
|
-
*
|
|
1783
|
-
* bonding-curve
|
|
1784
|
-
*
|
|
1785
|
-
*
|
|
1786
|
-
*
|
|
1787
|
-
*
|
|
1788
|
-
*
|
|
1789
|
-
*
|
|
1785
|
+
* Overlay for launches of the Uniswap direct-launch launchpad (launchpad_id
|
|
1786
|
+
* "uniswap-bonding-curve", kept for client compatibility). The current
|
|
1787
|
+
* launcher generation (DirectLaunchStrategy, LP-1289) is hookless with NO
|
|
1788
|
+
* on-chain graduation lifecycle: launch pools are vanilla v4 pools from
|
|
1789
|
+
* block one, and "graduation" is a serving/frontend concept (an FDV
|
|
1790
|
+
* threshold), not a contract event. Fields 1-5 and 7-9 belong to the
|
|
1791
|
+
* never-launched bonding-curve hook generation and are no longer set for
|
|
1792
|
+
* new launches; they are kept so the message shape stays wire-compatible.
|
|
1790
1793
|
*
|
|
1791
1794
|
* @generated from message data.v2.BondingCurveInfo
|
|
1792
1795
|
*/
|
|
@@ -1819,6 +1822,7 @@ BondingCurveInfo.fields = proto3.util.newFieldList(() => [
|
|
|
1819
1822
|
{ no: 7, name: "graduated_tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1820
1823
|
{ no: 8, name: "curve_progress_pct", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
1821
1824
|
{ no: 9, name: "graduated_at", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
|
|
1825
|
+
{ no: 10, name: "fee_beneficiary", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1822
1826
|
]);
|
|
1823
1827
|
/**
|
|
1824
1828
|
* One swap involving the requested token, returned by GetTokenTrades.
|