@uniswap/client-liquidity 1.4.8 → 1.4.10
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.
|
@@ -734,6 +734,35 @@ export declare class PoolSummary extends Message<PoolSummary> {
|
|
|
734
734
|
* @generated from field: optional string total_supply = 19;
|
|
735
735
|
*/
|
|
736
736
|
totalSupply?: string;
|
|
737
|
+
/**
|
|
738
|
+
* Spot USD price per token (from current_token_prices). Decimal strings.
|
|
739
|
+
*
|
|
740
|
+
* @generated from field: optional string token0_price_usd = 20;
|
|
741
|
+
*/
|
|
742
|
+
token0PriceUsd?: string;
|
|
743
|
+
/**
|
|
744
|
+
* @generated from field: optional string token1_price_usd = 21;
|
|
745
|
+
*/
|
|
746
|
+
token1PriceUsd?: string;
|
|
747
|
+
/**
|
|
748
|
+
* Per-token amount locked in the pool (uint256 decimal strings): token0/1
|
|
749
|
+
* total value locked for V3/V4, reserves for V2. With the prices above, drives
|
|
750
|
+
* the PDP token-composition split (tvlToken0/tvlToken1).
|
|
751
|
+
*
|
|
752
|
+
* @generated from field: optional string token0_supply = 22;
|
|
753
|
+
*/
|
|
754
|
+
token0Supply?: string;
|
|
755
|
+
/**
|
|
756
|
+
* @generated from field: optional string token1_supply = 23;
|
|
757
|
+
*/
|
|
758
|
+
token1Supply?: string;
|
|
759
|
+
/**
|
|
760
|
+
* V4 pools with a dynamic fee hook (fee tier == 0x800000). Always false for
|
|
761
|
+
* V2/V3.
|
|
762
|
+
*
|
|
763
|
+
* @generated from field: optional bool is_dynamic_fee = 24;
|
|
764
|
+
*/
|
|
765
|
+
isDynamicFee?: boolean;
|
|
737
766
|
constructor(data?: PartialMessage<PoolSummary>);
|
|
738
767
|
static readonly runtime: typeof proto3;
|
|
739
768
|
static readonly typeName = "uniswap.liquidity.v2.PoolSummary";
|
|
@@ -784,11 +813,16 @@ export declare class PoolReference extends Message<PoolReference> {
|
|
|
784
813
|
*/
|
|
785
814
|
addressOrId: string;
|
|
786
815
|
/**
|
|
787
|
-
*
|
|
816
|
+
* Optional for GetPool: a pool-detail URL has only address + chain, so the
|
|
817
|
+
* service resolves the version from address_or_id (V4 pool ids are 64-hex; a
|
|
818
|
+
* 40-hex address is probed against v3 then v2 metadata). Required by the other
|
|
819
|
+
* pool endpoints (ticks/history), whose callers already have the version from
|
|
820
|
+
* GetPool's response. When set, it's authoritative and skips resolution.
|
|
821
|
+
* Unset (or POOL_PROTOCOL_UNSPECIFIED) means "resolve from the identifier".
|
|
788
822
|
*
|
|
789
|
-
* @generated from field: uniswap.liquidity.v2.PoolProtocol version = 3;
|
|
823
|
+
* @generated from field: optional uniswap.liquidity.v2.PoolProtocol version = 3;
|
|
790
824
|
*/
|
|
791
|
-
version
|
|
825
|
+
version?: PoolProtocol;
|
|
792
826
|
constructor(data?: PartialMessage<PoolReference>);
|
|
793
827
|
static readonly runtime: typeof proto3;
|
|
794
828
|
static readonly typeName = "uniswap.liquidity.v2.PoolReference";
|
|
@@ -971,6 +971,11 @@ PoolSummary.fields = proto3.util.newFieldList(() => [
|
|
|
971
971
|
{ no: 17, name: "reserve0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
972
972
|
{ no: 18, name: "reserve1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
973
973
|
{ no: 19, name: "total_supply", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
974
|
+
{ no: 20, name: "token0_price_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
975
|
+
{ no: 21, name: "token1_price_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
976
|
+
{ no: 22, name: "token0_supply", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
977
|
+
{ no: 23, name: "token1_supply", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
978
|
+
{ no: 24, name: "is_dynamic_fee", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
974
979
|
]);
|
|
975
980
|
/**
|
|
976
981
|
* @generated from message uniswap.liquidity.v2.PoolListCursor
|
|
@@ -1029,12 +1034,6 @@ export class PoolReference extends Message {
|
|
|
1029
1034
|
* @generated from field: string address_or_id = 2;
|
|
1030
1035
|
*/
|
|
1031
1036
|
this.addressOrId = "";
|
|
1032
|
-
/**
|
|
1033
|
-
* POOL_PROTOCOL_UNSPECIFIED rejected as invalid_argument
|
|
1034
|
-
*
|
|
1035
|
-
* @generated from field: uniswap.liquidity.v2.PoolProtocol version = 3;
|
|
1036
|
-
*/
|
|
1037
|
-
this.version = PoolProtocol.UNSPECIFIED;
|
|
1038
1037
|
proto3.util.initPartial(data, this);
|
|
1039
1038
|
}
|
|
1040
1039
|
static fromBinary(bytes, options) {
|
|
@@ -1055,7 +1054,7 @@ PoolReference.typeName = "uniswap.liquidity.v2.PoolReference";
|
|
|
1055
1054
|
PoolReference.fields = proto3.util.newFieldList(() => [
|
|
1056
1055
|
{ no: 1, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
1057
1056
|
{ no: 2, name: "address_or_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1058
|
-
{ no: 3, name: "version", kind: "enum", T: proto3.getEnumType(PoolProtocol) },
|
|
1057
|
+
{ no: 3, name: "version", kind: "enum", T: proto3.getEnumType(PoolProtocol), opt: true },
|
|
1059
1058
|
]);
|
|
1060
1059
|
/**
|
|
1061
1060
|
* One point of a pool's relative-price history, in raw pool-token
|