@uniswap/client-data-api 0.0.140 → 0.0.141
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/types_pb.d.ts +70 -2
- package/dist/data/v2/types_pb.js +43 -0
- package/package.json +1 -1
|
@@ -1400,8 +1400,10 @@ export declare class Launch extends Message<Launch> {
|
|
|
1400
1400
|
*/
|
|
1401
1401
|
stats?: LaunchStats;
|
|
1402
1402
|
/**
|
|
1403
|
-
* CCA launches
|
|
1404
|
-
*
|
|
1403
|
+
* CCA + bonding-curve launches: true once the launch graduated (CCA:
|
|
1404
|
+
* auction migrated into its pool; bonding-curve: curve position replaced
|
|
1405
|
+
* by the permanent full-range position). Unset for other hook-attributed
|
|
1406
|
+
* launches, which are pools already.
|
|
1405
1407
|
*
|
|
1406
1408
|
* @generated from field: optional bool graduated = 7;
|
|
1407
1409
|
*/
|
|
@@ -1431,6 +1433,13 @@ export declare class Launch extends Message<Launch> {
|
|
|
1431
1433
|
* @generated from field: optional int32 bidder_count = 10;
|
|
1432
1434
|
*/
|
|
1433
1435
|
bidderCount?: number;
|
|
1436
|
+
/**
|
|
1437
|
+
* Bonding-curve lifecycle overlay, set only for launches attributed to the
|
|
1438
|
+
* Uniswap bonding-curve hook. Absent while ingestion lags the launch.
|
|
1439
|
+
*
|
|
1440
|
+
* @generated from field: optional data.v2.BondingCurveInfo bonding_curve = 11;
|
|
1441
|
+
*/
|
|
1442
|
+
bondingCurve?: BondingCurveInfo;
|
|
1434
1443
|
constructor(data?: PartialMessage<Launch>);
|
|
1435
1444
|
static readonly runtime: typeof proto3;
|
|
1436
1445
|
static readonly typeName = "data.v2.Launch";
|
|
@@ -1440,6 +1449,65 @@ export declare class Launch extends Message<Launch> {
|
|
|
1440
1449
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Launch;
|
|
1441
1450
|
static equals(a: Launch | PlainMessage<Launch> | undefined, b: Launch | PlainMessage<Launch> | undefined): boolean;
|
|
1442
1451
|
}
|
|
1452
|
+
/**
|
|
1453
|
+
* Bonding-curve lifecycle overlay for launches attributed to the Uniswap
|
|
1454
|
+
* bonding-curve hook. Amounts are raw base-unit decimal strings. Curve
|
|
1455
|
+
* progress is client-derivable: price starts at
|
|
1456
|
+
* sqrtPriceAtTick(curve_tick_upper) (token is currency1) and graduates at
|
|
1457
|
+
* graduation_sqrt_price_x96. The strategy and hook events populating this
|
|
1458
|
+
* overlay arrive independently, so every field is optional: a field is
|
|
1459
|
+
* unset until its event has been ingested (0 is a real tick value, never
|
|
1460
|
+
* a placeholder).
|
|
1461
|
+
*
|
|
1462
|
+
* @generated from message data.v2.BondingCurveInfo
|
|
1463
|
+
*/
|
|
1464
|
+
export declare class BondingCurveInfo extends Message<BondingCurveInfo> {
|
|
1465
|
+
/**
|
|
1466
|
+
* @generated from field: optional string graduation_sqrt_price_x96 = 1;
|
|
1467
|
+
*/
|
|
1468
|
+
graduationSqrtPriceX96?: string;
|
|
1469
|
+
/**
|
|
1470
|
+
* @generated from field: optional int32 curve_tick_lower = 2;
|
|
1471
|
+
*/
|
|
1472
|
+
curveTickLower?: number;
|
|
1473
|
+
/**
|
|
1474
|
+
* @generated from field: optional int32 curve_tick_upper = 3;
|
|
1475
|
+
*/
|
|
1476
|
+
curveTickUpper?: number;
|
|
1477
|
+
/**
|
|
1478
|
+
* @generated from field: optional string curve_supply = 4;
|
|
1479
|
+
*/
|
|
1480
|
+
curveSupply?: string;
|
|
1481
|
+
/**
|
|
1482
|
+
* @generated from field: optional string reserve_supply = 5;
|
|
1483
|
+
*/
|
|
1484
|
+
reserveSupply?: string;
|
|
1485
|
+
/**
|
|
1486
|
+
* @generated from field: optional string graduated_tx_hash = 7;
|
|
1487
|
+
*/
|
|
1488
|
+
graduatedTxHash?: string;
|
|
1489
|
+
/**
|
|
1490
|
+
* Server-computed % progress toward graduation; unset in the POC (needs
|
|
1491
|
+
* live pool sqrt price, which the list pipeline does not carry yet).
|
|
1492
|
+
*
|
|
1493
|
+
* @generated from field: optional double curve_progress_pct = 8;
|
|
1494
|
+
*/
|
|
1495
|
+
curveProgressPct?: number;
|
|
1496
|
+
/**
|
|
1497
|
+
* Graduation time, unix seconds. Set once the Graduated event lands.
|
|
1498
|
+
*
|
|
1499
|
+
* @generated from field: optional int64 graduated_at = 9;
|
|
1500
|
+
*/
|
|
1501
|
+
graduatedAt?: bigint;
|
|
1502
|
+
constructor(data?: PartialMessage<BondingCurveInfo>);
|
|
1503
|
+
static readonly runtime: typeof proto3;
|
|
1504
|
+
static readonly typeName = "data.v2.BondingCurveInfo";
|
|
1505
|
+
static readonly fields: FieldList;
|
|
1506
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BondingCurveInfo;
|
|
1507
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BondingCurveInfo;
|
|
1508
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BondingCurveInfo;
|
|
1509
|
+
static equals(a: BondingCurveInfo | PlainMessage<BondingCurveInfo> | undefined, b: BondingCurveInfo | PlainMessage<BondingCurveInfo> | undefined): boolean;
|
|
1510
|
+
}
|
|
1443
1511
|
/**
|
|
1444
1512
|
* One swap involving the requested token, returned by GetTokenTrades.
|
|
1445
1513
|
*
|
package/dist/data/v2/types_pb.js
CHANGED
|
@@ -1625,6 +1625,49 @@ Launch.fields = proto3.util.newFieldList(() => [
|
|
|
1625
1625
|
{ no: 8, name: "auction_fill_pct", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
1626
1626
|
{ no: 9, name: "auction_end_block", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1627
1627
|
{ no: 10, name: "bidder_count", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1628
|
+
{ no: 11, name: "bonding_curve", kind: "message", T: BondingCurveInfo, opt: true },
|
|
1629
|
+
]);
|
|
1630
|
+
/**
|
|
1631
|
+
* Bonding-curve lifecycle overlay for launches attributed to the Uniswap
|
|
1632
|
+
* bonding-curve hook. Amounts are raw base-unit decimal strings. Curve
|
|
1633
|
+
* progress is client-derivable: price starts at
|
|
1634
|
+
* sqrtPriceAtTick(curve_tick_upper) (token is currency1) and graduates at
|
|
1635
|
+
* graduation_sqrt_price_x96. The strategy and hook events populating this
|
|
1636
|
+
* overlay arrive independently, so every field is optional: a field is
|
|
1637
|
+
* unset until its event has been ingested (0 is a real tick value, never
|
|
1638
|
+
* a placeholder).
|
|
1639
|
+
*
|
|
1640
|
+
* @generated from message data.v2.BondingCurveInfo
|
|
1641
|
+
*/
|
|
1642
|
+
export class BondingCurveInfo extends Message {
|
|
1643
|
+
constructor(data) {
|
|
1644
|
+
super();
|
|
1645
|
+
proto3.util.initPartial(data, this);
|
|
1646
|
+
}
|
|
1647
|
+
static fromBinary(bytes, options) {
|
|
1648
|
+
return new BondingCurveInfo().fromBinary(bytes, options);
|
|
1649
|
+
}
|
|
1650
|
+
static fromJson(jsonValue, options) {
|
|
1651
|
+
return new BondingCurveInfo().fromJson(jsonValue, options);
|
|
1652
|
+
}
|
|
1653
|
+
static fromJsonString(jsonString, options) {
|
|
1654
|
+
return new BondingCurveInfo().fromJsonString(jsonString, options);
|
|
1655
|
+
}
|
|
1656
|
+
static equals(a, b) {
|
|
1657
|
+
return proto3.util.equals(BondingCurveInfo, a, b);
|
|
1658
|
+
}
|
|
1659
|
+
}
|
|
1660
|
+
BondingCurveInfo.runtime = proto3;
|
|
1661
|
+
BondingCurveInfo.typeName = "data.v2.BondingCurveInfo";
|
|
1662
|
+
BondingCurveInfo.fields = proto3.util.newFieldList(() => [
|
|
1663
|
+
{ no: 1, name: "graduation_sqrt_price_x96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1664
|
+
{ no: 2, name: "curve_tick_lower", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1665
|
+
{ no: 3, name: "curve_tick_upper", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1666
|
+
{ no: 4, name: "curve_supply", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1667
|
+
{ no: 5, name: "reserve_supply", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1668
|
+
{ no: 7, name: "graduated_tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1669
|
+
{ no: 8, name: "curve_progress_pct", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
1670
|
+
{ no: 9, name: "graduated_at", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
|
|
1628
1671
|
]);
|
|
1629
1672
|
/**
|
|
1630
1673
|
* One swap involving the requested token, returned by GetTokenTrades.
|