@uniswap/client-liquidity 1.4.2 → 1.4.3
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.
|
@@ -850,6 +850,65 @@ export declare class Position extends Message<Position> {
|
|
|
850
850
|
* @generated from field: uniswap.liquidity.v2.PositionStatus status = 14;
|
|
851
851
|
*/
|
|
852
852
|
status: PositionStatus;
|
|
853
|
+
/**
|
|
854
|
+
* Pool token identity, joined from pool metadata (no valuation). Mirrors the
|
|
855
|
+
* PoolSummary token fields. Raw pool tokens (WETH stays WETH); ETH-display
|
|
856
|
+
* translation is a separate presentation decision. Unset when the position's
|
|
857
|
+
* pool metadata could not be resolved.
|
|
858
|
+
*
|
|
859
|
+
* @generated from field: optional string token0_address = 15;
|
|
860
|
+
*/
|
|
861
|
+
token0Address?: string;
|
|
862
|
+
/**
|
|
863
|
+
* @generated from field: optional string token1_address = 16;
|
|
864
|
+
*/
|
|
865
|
+
token1Address?: string;
|
|
866
|
+
/**
|
|
867
|
+
* @generated from field: optional uniswap.liquidity.v2.TokenMetadata token0_metadata = 17;
|
|
868
|
+
*/
|
|
869
|
+
token0Metadata?: TokenMetadata;
|
|
870
|
+
/**
|
|
871
|
+
* @generated from field: optional uniswap.liquidity.v2.TokenMetadata token1_metadata = 18;
|
|
872
|
+
*/
|
|
873
|
+
token1Metadata?: TokenMetadata;
|
|
874
|
+
/**
|
|
875
|
+
* V4 pool hooks contract; unset for V2/V3.
|
|
876
|
+
*
|
|
877
|
+
* @generated from field: optional string hook_address = 19;
|
|
878
|
+
*/
|
|
879
|
+
hookAddress?: string;
|
|
880
|
+
/**
|
|
881
|
+
* @generated from field: optional int32 tick_spacing = 20;
|
|
882
|
+
*/
|
|
883
|
+
tickSpacing?: number;
|
|
884
|
+
/**
|
|
885
|
+
* Current pool state (no USD valuation), so clients can derive the position's
|
|
886
|
+
* price range, in/out-of-range, and current price. V3/V4 only; unset for V2
|
|
887
|
+
* and when the pool has no current-state row.
|
|
888
|
+
*
|
|
889
|
+
* @generated from field: optional sint32 current_tick = 21;
|
|
890
|
+
*/
|
|
891
|
+
currentTick?: number;
|
|
892
|
+
/**
|
|
893
|
+
* @generated from field: optional string sqrt_price_x96 = 22;
|
|
894
|
+
*/
|
|
895
|
+
sqrtPriceX96?: string;
|
|
896
|
+
/**
|
|
897
|
+
* @generated from field: optional string pool_liquidity = 23;
|
|
898
|
+
*/
|
|
899
|
+
poolLiquidity?: string;
|
|
900
|
+
/**
|
|
901
|
+
* Latest USD price per token (raw pool tokens; no position valuation computed
|
|
902
|
+
* server-side). Clients derive the position's USD value from these + the
|
|
903
|
+
* token amounts. Unset when no price row exists for the token.
|
|
904
|
+
*
|
|
905
|
+
* @generated from field: optional string token0_price_usd = 24;
|
|
906
|
+
*/
|
|
907
|
+
token0PriceUsd?: string;
|
|
908
|
+
/**
|
|
909
|
+
* @generated from field: optional string token1_price_usd = 25;
|
|
910
|
+
*/
|
|
911
|
+
token1PriceUsd?: string;
|
|
853
912
|
constructor(data?: PartialMessage<Position>);
|
|
854
913
|
static readonly runtime: typeof proto3;
|
|
855
914
|
static readonly typeName = "uniswap.liquidity.v2.Position";
|
|
@@ -1121,6 +1121,17 @@ Position.fields = proto3.util.newFieldList(() => [
|
|
|
1121
1121
|
{ no: 12, name: "updated_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
1122
1122
|
{ no: 13, name: "created_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
1123
1123
|
{ no: 14, name: "status", kind: "enum", T: proto3.getEnumType(PositionStatus) },
|
|
1124
|
+
{ no: 15, name: "token0_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1125
|
+
{ no: 16, name: "token1_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1126
|
+
{ no: 17, name: "token0_metadata", kind: "message", T: TokenMetadata, opt: true },
|
|
1127
|
+
{ no: 18, name: "token1_metadata", kind: "message", T: TokenMetadata, opt: true },
|
|
1128
|
+
{ no: 19, name: "hook_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1129
|
+
{ no: 20, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1130
|
+
{ no: 21, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
|
|
1131
|
+
{ no: 22, name: "sqrt_price_x96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1132
|
+
{ no: 23, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1133
|
+
{ no: 24, name: "token0_price_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1134
|
+
{ no: 25, name: "token1_price_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1124
1135
|
]);
|
|
1125
1136
|
/**
|
|
1126
1137
|
* Keyset cursor for GetWalletPositions. position_key is the last returned
|