@uniswap/client-data-api 0.0.295 → 0.0.296
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 +41 -0
- package/dist/data/v2/types_pb.js +49 -0
- package/package.json +1 -1
|
@@ -1555,6 +1555,14 @@ export declare class Pool extends Message<Pool> {
|
|
|
1555
1555
|
* @generated from field: optional string quote_token_address = 17;
|
|
1556
1556
|
*/
|
|
1557
1557
|
quoteTokenAddress?: string;
|
|
1558
|
+
/**
|
|
1559
|
+
* The LP fee the next swap pays in each direction, from the hook's getFee.
|
|
1560
|
+
* Set only for V4 pools on a Labs StablePair or VolatilePair hook with a
|
|
1561
|
+
* reading from the last 10 minutes; otherwise use current_lp_fee.
|
|
1562
|
+
*
|
|
1563
|
+
* @generated from field: optional data.v2.DirectionalLpFee current_lp_fee_by_direction = 18;
|
|
1564
|
+
*/
|
|
1565
|
+
currentLpFeeByDirection?: DirectionalLpFee;
|
|
1558
1566
|
constructor(data?: PartialMessage<Pool>);
|
|
1559
1567
|
static readonly runtime: typeof proto3;
|
|
1560
1568
|
static readonly typeName = "data.v2.Pool";
|
|
@@ -1564,6 +1572,39 @@ export declare class Pool extends Message<Pool> {
|
|
|
1564
1572
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Pool;
|
|
1565
1573
|
static equals(a: Pool | PlainMessage<Pool> | undefined, b: Pool | PlainMessage<Pool> | undefined): boolean;
|
|
1566
1574
|
}
|
|
1575
|
+
/**
|
|
1576
|
+
* Current LP fee per swap direction, in pips; same regime as current_lp_fee.
|
|
1577
|
+
*
|
|
1578
|
+
* @generated from message data.v2.DirectionalLpFee
|
|
1579
|
+
*/
|
|
1580
|
+
export declare class DirectionalLpFee extends Message<DirectionalLpFee> {
|
|
1581
|
+
/**
|
|
1582
|
+
* currency0 in
|
|
1583
|
+
*
|
|
1584
|
+
* @generated from field: uint32 zero_for_one = 1;
|
|
1585
|
+
*/
|
|
1586
|
+
zeroForOne: number;
|
|
1587
|
+
/**
|
|
1588
|
+
* currency1 in
|
|
1589
|
+
*
|
|
1590
|
+
* @generated from field: uint32 one_for_zero = 2;
|
|
1591
|
+
*/
|
|
1592
|
+
oneForZero: number;
|
|
1593
|
+
/**
|
|
1594
|
+
* block the fees were read at
|
|
1595
|
+
*
|
|
1596
|
+
* @generated from field: uint64 block_number = 3;
|
|
1597
|
+
*/
|
|
1598
|
+
blockNumber: bigint;
|
|
1599
|
+
constructor(data?: PartialMessage<DirectionalLpFee>);
|
|
1600
|
+
static readonly runtime: typeof proto3;
|
|
1601
|
+
static readonly typeName = "data.v2.DirectionalLpFee";
|
|
1602
|
+
static readonly fields: FieldList;
|
|
1603
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DirectionalLpFee;
|
|
1604
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DirectionalLpFee;
|
|
1605
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DirectionalLpFee;
|
|
1606
|
+
static equals(a: DirectionalLpFee | PlainMessage<DirectionalLpFee> | undefined, b: DirectionalLpFee | PlainMessage<DirectionalLpFee> | undefined): boolean;
|
|
1607
|
+
}
|
|
1567
1608
|
/**
|
|
1568
1609
|
* @generated from message data.v2.PoolTokenFilter
|
|
1569
1610
|
*/
|
package/dist/data/v2/types_pb.js
CHANGED
|
@@ -1647,6 +1647,55 @@ Pool.fields = proto3.util.newFieldList(() => [
|
|
|
1647
1647
|
{ no: 15, name: "current_lp_fee", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
1648
1648
|
{ no: 16, name: "category_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
1649
1649
|
{ no: 17, name: "quote_token_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1650
|
+
{ no: 18, name: "current_lp_fee_by_direction", kind: "message", T: DirectionalLpFee, opt: true },
|
|
1651
|
+
]);
|
|
1652
|
+
/**
|
|
1653
|
+
* Current LP fee per swap direction, in pips; same regime as current_lp_fee.
|
|
1654
|
+
*
|
|
1655
|
+
* @generated from message data.v2.DirectionalLpFee
|
|
1656
|
+
*/
|
|
1657
|
+
export class DirectionalLpFee extends Message {
|
|
1658
|
+
constructor(data) {
|
|
1659
|
+
super();
|
|
1660
|
+
/**
|
|
1661
|
+
* currency0 in
|
|
1662
|
+
*
|
|
1663
|
+
* @generated from field: uint32 zero_for_one = 1;
|
|
1664
|
+
*/
|
|
1665
|
+
this.zeroForOne = 0;
|
|
1666
|
+
/**
|
|
1667
|
+
* currency1 in
|
|
1668
|
+
*
|
|
1669
|
+
* @generated from field: uint32 one_for_zero = 2;
|
|
1670
|
+
*/
|
|
1671
|
+
this.oneForZero = 0;
|
|
1672
|
+
/**
|
|
1673
|
+
* block the fees were read at
|
|
1674
|
+
*
|
|
1675
|
+
* @generated from field: uint64 block_number = 3;
|
|
1676
|
+
*/
|
|
1677
|
+
this.blockNumber = protoInt64.zero;
|
|
1678
|
+
proto3.util.initPartial(data, this);
|
|
1679
|
+
}
|
|
1680
|
+
static fromBinary(bytes, options) {
|
|
1681
|
+
return new DirectionalLpFee().fromBinary(bytes, options);
|
|
1682
|
+
}
|
|
1683
|
+
static fromJson(jsonValue, options) {
|
|
1684
|
+
return new DirectionalLpFee().fromJson(jsonValue, options);
|
|
1685
|
+
}
|
|
1686
|
+
static fromJsonString(jsonString, options) {
|
|
1687
|
+
return new DirectionalLpFee().fromJsonString(jsonString, options);
|
|
1688
|
+
}
|
|
1689
|
+
static equals(a, b) {
|
|
1690
|
+
return proto3.util.equals(DirectionalLpFee, a, b);
|
|
1691
|
+
}
|
|
1692
|
+
}
|
|
1693
|
+
DirectionalLpFee.runtime = proto3;
|
|
1694
|
+
DirectionalLpFee.typeName = "data.v2.DirectionalLpFee";
|
|
1695
|
+
DirectionalLpFee.fields = proto3.util.newFieldList(() => [
|
|
1696
|
+
{ no: 1, name: "zero_for_one", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1697
|
+
{ no: 2, name: "one_for_zero", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1698
|
+
{ no: 3, name: "block_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
1650
1699
|
]);
|
|
1651
1700
|
/**
|
|
1652
1701
|
* @generated from message data.v2.PoolTokenFilter
|