@uniswap/client-liquidity 1.4.2 → 1.4.4
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.
|
@@ -583,6 +583,12 @@ export declare class PoolSummary extends Message<PoolSummary> {
|
|
|
583
583
|
*/
|
|
584
584
|
feeTier: number;
|
|
585
585
|
/**
|
|
586
|
+
* Pool TVL in USD. For V4 pools this derives from cumulative event
|
|
587
|
+
* accounting (summed modify_liquidity/swap deltas) and can drift high on
|
|
588
|
+
* high-activity pools pending reconciliation — swap deltas are
|
|
589
|
+
* fee-inclusive while fee collection books zero (CONS-969). V2/V3 values
|
|
590
|
+
* come from on-chain state snapshots and do not drift.
|
|
591
|
+
*
|
|
586
592
|
* @generated from field: double tvl_usd = 7;
|
|
587
593
|
*/
|
|
588
594
|
tvlUsd: number;
|
|
@@ -591,6 +597,10 @@ export declare class PoolSummary extends Message<PoolSummary> {
|
|
|
591
597
|
*/
|
|
592
598
|
volumeUsd1d: number;
|
|
593
599
|
/**
|
|
600
|
+
* Fee APR (volume * fee * 365 / TVL). For V4 pools the TVL denominator
|
|
601
|
+
* inherits the drift described on tvl_usd, so V4 APR can read low on
|
|
602
|
+
* high-activity pools pending reconciliation (CONS-969).
|
|
603
|
+
*
|
|
594
604
|
* @generated from field: optional double apr = 9;
|
|
595
605
|
*/
|
|
596
606
|
apr?: number;
|
|
@@ -850,6 +860,65 @@ export declare class Position extends Message<Position> {
|
|
|
850
860
|
* @generated from field: uniswap.liquidity.v2.PositionStatus status = 14;
|
|
851
861
|
*/
|
|
852
862
|
status: PositionStatus;
|
|
863
|
+
/**
|
|
864
|
+
* Pool token identity, joined from pool metadata (no valuation). Mirrors the
|
|
865
|
+
* PoolSummary token fields. Raw pool tokens (WETH stays WETH); ETH-display
|
|
866
|
+
* translation is a separate presentation decision. Unset when the position's
|
|
867
|
+
* pool metadata could not be resolved.
|
|
868
|
+
*
|
|
869
|
+
* @generated from field: optional string token0_address = 15;
|
|
870
|
+
*/
|
|
871
|
+
token0Address?: string;
|
|
872
|
+
/**
|
|
873
|
+
* @generated from field: optional string token1_address = 16;
|
|
874
|
+
*/
|
|
875
|
+
token1Address?: string;
|
|
876
|
+
/**
|
|
877
|
+
* @generated from field: optional uniswap.liquidity.v2.TokenMetadata token0_metadata = 17;
|
|
878
|
+
*/
|
|
879
|
+
token0Metadata?: TokenMetadata;
|
|
880
|
+
/**
|
|
881
|
+
* @generated from field: optional uniswap.liquidity.v2.TokenMetadata token1_metadata = 18;
|
|
882
|
+
*/
|
|
883
|
+
token1Metadata?: TokenMetadata;
|
|
884
|
+
/**
|
|
885
|
+
* V4 pool hooks contract; unset for V2/V3.
|
|
886
|
+
*
|
|
887
|
+
* @generated from field: optional string hook_address = 19;
|
|
888
|
+
*/
|
|
889
|
+
hookAddress?: string;
|
|
890
|
+
/**
|
|
891
|
+
* @generated from field: optional int32 tick_spacing = 20;
|
|
892
|
+
*/
|
|
893
|
+
tickSpacing?: number;
|
|
894
|
+
/**
|
|
895
|
+
* Current pool state (no USD valuation), so clients can derive the position's
|
|
896
|
+
* price range, in/out-of-range, and current price. V3/V4 only; unset for V2
|
|
897
|
+
* and when the pool has no current-state row.
|
|
898
|
+
*
|
|
899
|
+
* @generated from field: optional sint32 current_tick = 21;
|
|
900
|
+
*/
|
|
901
|
+
currentTick?: number;
|
|
902
|
+
/**
|
|
903
|
+
* @generated from field: optional string sqrt_price_x96 = 22;
|
|
904
|
+
*/
|
|
905
|
+
sqrtPriceX96?: string;
|
|
906
|
+
/**
|
|
907
|
+
* @generated from field: optional string pool_liquidity = 23;
|
|
908
|
+
*/
|
|
909
|
+
poolLiquidity?: string;
|
|
910
|
+
/**
|
|
911
|
+
* Latest USD price per token (raw pool tokens; no position valuation computed
|
|
912
|
+
* server-side). Clients derive the position's USD value from these + the
|
|
913
|
+
* token amounts. Unset when no price row exists for the token.
|
|
914
|
+
*
|
|
915
|
+
* @generated from field: optional string token0_price_usd = 24;
|
|
916
|
+
*/
|
|
917
|
+
token0PriceUsd?: string;
|
|
918
|
+
/**
|
|
919
|
+
* @generated from field: optional string token1_price_usd = 25;
|
|
920
|
+
*/
|
|
921
|
+
token1PriceUsd?: string;
|
|
853
922
|
constructor(data?: PartialMessage<Position>);
|
|
854
923
|
static readonly runtime: typeof proto3;
|
|
855
924
|
static readonly typeName = "uniswap.liquidity.v2.Position";
|
|
@@ -817,6 +817,12 @@ export class PoolSummary extends Message {
|
|
|
817
817
|
*/
|
|
818
818
|
this.feeTier = 0;
|
|
819
819
|
/**
|
|
820
|
+
* Pool TVL in USD. For V4 pools this derives from cumulative event
|
|
821
|
+
* accounting (summed modify_liquidity/swap deltas) and can drift high on
|
|
822
|
+
* high-activity pools pending reconciliation — swap deltas are
|
|
823
|
+
* fee-inclusive while fee collection books zero (CONS-969). V2/V3 values
|
|
824
|
+
* come from on-chain state snapshots and do not drift.
|
|
825
|
+
*
|
|
820
826
|
* @generated from field: double tvl_usd = 7;
|
|
821
827
|
*/
|
|
822
828
|
this.tvlUsd = 0;
|
|
@@ -1121,6 +1127,17 @@ Position.fields = proto3.util.newFieldList(() => [
|
|
|
1121
1127
|
{ no: 12, name: "updated_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
1122
1128
|
{ no: 13, name: "created_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
1123
1129
|
{ no: 14, name: "status", kind: "enum", T: proto3.getEnumType(PositionStatus) },
|
|
1130
|
+
{ no: 15, name: "token0_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1131
|
+
{ no: 16, name: "token1_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1132
|
+
{ no: 17, name: "token0_metadata", kind: "message", T: TokenMetadata, opt: true },
|
|
1133
|
+
{ no: 18, name: "token1_metadata", kind: "message", T: TokenMetadata, opt: true },
|
|
1134
|
+
{ no: 19, name: "hook_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1135
|
+
{ no: 20, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1136
|
+
{ no: 21, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
|
|
1137
|
+
{ no: 22, name: "sqrt_price_x96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1138
|
+
{ no: 23, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1139
|
+
{ no: 24, name: "token0_price_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1140
|
+
{ no: 25, name: "token1_price_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1124
1141
|
]);
|
|
1125
1142
|
/**
|
|
1126
1143
|
* Keyset cursor for GetWalletPositions. position_key is the last returned
|