@uniswap/client-liquidity 1.4.5 → 1.4.7

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.
@@ -1,7 +1,7 @@
1
1
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
2
  import { Message, proto3 } from "@bufbuild/protobuf";
3
3
  import { ChainId, NFTPermitData, PermitBatchData, Protocols, TransactionRequest, V3Position } from "../v1/types_pb.js";
4
- import { ApprovalTransactionRequest, CreatePoolParameters, CreatePositionExistingPoolParameters, CreateToken, GasUrgency, HistoryDuration, HookEntry, LPAction, LPToken, PoolListCursor, PoolPricePoint, PoolReference, PoolSortBy, PoolSummary, PoolTick, PoolVolumeBucket, Position, PositionListCursor, PositionModifier, PositionPriceBounds, PositionStatus, PositionTickBounds, V2PoolParameters } from "./types_pb.js";
4
+ import { ApprovalTransactionRequest, CreatePoolParameters, CreatePositionExistingPoolParameters, CreateToken, GasUrgency, HistoryDuration, HookEntry, LPAction, LPToken, PoolListCursor, PoolPricePoint, PoolReference, PoolSortBy, PoolSummary, PoolTick, PoolVolumeBucket, Position, PositionListCursor, PositionModifier, PositionPriceBounds, PositionStatus, PositionTickBounds, RangeStatus, V2PoolParameters } from "./types_pb.js";
5
5
  /**
6
6
  * MigrateV2ToV3LPPosition
7
7
  *
@@ -1155,6 +1155,15 @@ export declare class GetWalletPositionsRequest extends Message<GetWalletPosition
1155
1155
  * @generated from field: optional uniswap.liquidity.v2.PositionModifier modifier = 7;
1156
1156
  */
1157
1157
  modifier?: PositionModifier;
1158
+ /**
1159
+ * In/out-of-range filter over open concentrated (V3/V4) positions. Empty = no
1160
+ * range filter. Values union. Composes with `statuses` and `modifier`: e.g.
1161
+ * statuses=[OPEN] + range_statuses=[IN_RANGE] returns open, in-range,
1162
+ * non-spam positions. V2 matches no range bucket.
1163
+ *
1164
+ * @generated from field: repeated uniswap.liquidity.v2.RangeStatus range_statuses = 8;
1165
+ */
1166
+ rangeStatuses: RangeStatus[];
1158
1167
  constructor(data?: PartialMessage<GetWalletPositionsRequest>);
1159
1168
  static readonly runtime: typeof proto3;
1160
1169
  static readonly typeName = "uniswap.liquidity.v2.GetWalletPositionsRequest";
@@ -4,7 +4,7 @@
4
4
  // @ts-nocheck
5
5
  import { Message, proto3 } from "@bufbuild/protobuf";
6
6
  import { ChainId, NFTPermitData, PermitBatchData, Protocols, TransactionRequest, V3Position } from "../v1/types_pb.js";
7
- import { ApprovalTransactionRequest, CreatePoolParameters, CreatePositionExistingPoolParameters, CreateToken, GasUrgency, HistoryDuration, HookEntry, LPAction, LPToken, PoolListCursor, PoolPricePoint, PoolReference, PoolSortBy, PoolSummary, PoolTick, PoolVolumeBucket, Position, PositionListCursor, PositionModifier, PositionPriceBounds, PositionStatus, PositionTickBounds, V2PoolParameters } from "./types_pb.js";
7
+ import { ApprovalTransactionRequest, CreatePoolParameters, CreatePositionExistingPoolParameters, CreateToken, GasUrgency, HistoryDuration, HookEntry, LPAction, LPToken, PoolListCursor, PoolPricePoint, PoolReference, PoolSortBy, PoolSummary, PoolTick, PoolVolumeBucket, Position, PositionListCursor, PositionModifier, PositionPriceBounds, PositionStatus, PositionTickBounds, RangeStatus, V2PoolParameters } from "./types_pb.js";
8
8
  /**
9
9
  * MigrateV2ToV3LPPosition
10
10
  *
@@ -1188,6 +1188,15 @@ export class GetWalletPositionsRequest extends Message {
1188
1188
  * @generated from field: repeated uniswap.liquidity.v2.PositionStatus statuses = 6;
1189
1189
  */
1190
1190
  this.statuses = [];
1191
+ /**
1192
+ * In/out-of-range filter over open concentrated (V3/V4) positions. Empty = no
1193
+ * range filter. Values union. Composes with `statuses` and `modifier`: e.g.
1194
+ * statuses=[OPEN] + range_statuses=[IN_RANGE] returns open, in-range,
1195
+ * non-spam positions. V2 matches no range bucket.
1196
+ *
1197
+ * @generated from field: repeated uniswap.liquidity.v2.RangeStatus range_statuses = 8;
1198
+ */
1199
+ this.rangeStatuses = [];
1191
1200
  proto3.util.initPartial(data, this);
1192
1201
  }
1193
1202
  static fromBinary(bytes, options) {
@@ -1213,6 +1222,7 @@ GetWalletPositionsRequest.fields = proto3.util.newFieldList(() => [
1213
1222
  { no: 5, name: "cursor", kind: "message", T: PositionListCursor, opt: true },
1214
1223
  { no: 6, name: "statuses", kind: "enum", T: proto3.getEnumType(PositionStatus), repeated: true },
1215
1224
  { no: 7, name: "modifier", kind: "message", T: PositionModifier, opt: true },
1225
+ { no: 8, name: "range_statuses", kind: "enum", T: proto3.getEnumType(RangeStatus), repeated: true },
1216
1226
  ]);
1217
1227
  /**
1218
1228
  * @generated from message uniswap.liquidity.v2.GetWalletPositionsResponse
@@ -154,6 +154,37 @@ export declare enum PositionStatus {
154
154
  */
155
155
  HIDDEN = 3
156
156
  }
157
+ /**
158
+ * In/out-of-range classification of an open concentrated (V3/V4) position,
159
+ * derived from the pool's current tick. This is a filter dimension separate
160
+ * from PositionStatus (lifecycle) and PositionModifier (spam visibility): a
161
+ * caller can ask for OPEN positions that are additionally IN_RANGE. V2 is
162
+ * full-range with no ticks, so it matches neither bucket.
163
+ *
164
+ * @generated from enum uniswap.liquidity.v2.RangeStatus
165
+ */
166
+ export declare enum RangeStatus {
167
+ /**
168
+ * @generated from enum value: RANGE_STATUS_UNSPECIFIED = 0;
169
+ */
170
+ UNSPECIFIED = 0,
171
+ /**
172
+ * An open concentrated position (V3/V4) whose pool has a current state row
173
+ * with tick within [tick_lower, tick_upper).
174
+ *
175
+ * @generated from enum value: RANGE_STATUS_IN_RANGE = 1;
176
+ */
177
+ IN_RANGE = 1,
178
+ /**
179
+ * An open concentrated position (V3/V4) that is not IN_RANGE: the pool's
180
+ * current tick is outside [tick_lower, tick_upper), OR the pool has no state
181
+ * row yet (so a position is never dropped from both IN_RANGE and
182
+ * OUT_OF_RANGE while its pool awaits its first state event).
183
+ *
184
+ * @generated from enum value: RANGE_STATUS_OUT_OF_RANGE = 2;
185
+ */
186
+ OUT_OF_RANGE = 2
187
+ }
157
188
  /**
158
189
  * @generated from message uniswap.liquidity.v2.LPToken
159
190
  */
@@ -207,6 +207,44 @@ proto3.util.setEnumType(PositionStatus, "uniswap.liquidity.v2.PositionStatus", [
207
207
  { no: 2, name: "POSITION_STATUS_CLOSED" },
208
208
  { no: 3, name: "POSITION_STATUS_HIDDEN" },
209
209
  ]);
210
+ /**
211
+ * In/out-of-range classification of an open concentrated (V3/V4) position,
212
+ * derived from the pool's current tick. This is a filter dimension separate
213
+ * from PositionStatus (lifecycle) and PositionModifier (spam visibility): a
214
+ * caller can ask for OPEN positions that are additionally IN_RANGE. V2 is
215
+ * full-range with no ticks, so it matches neither bucket.
216
+ *
217
+ * @generated from enum uniswap.liquidity.v2.RangeStatus
218
+ */
219
+ export var RangeStatus;
220
+ (function (RangeStatus) {
221
+ /**
222
+ * @generated from enum value: RANGE_STATUS_UNSPECIFIED = 0;
223
+ */
224
+ RangeStatus[RangeStatus["UNSPECIFIED"] = 0] = "UNSPECIFIED";
225
+ /**
226
+ * An open concentrated position (V3/V4) whose pool has a current state row
227
+ * with tick within [tick_lower, tick_upper).
228
+ *
229
+ * @generated from enum value: RANGE_STATUS_IN_RANGE = 1;
230
+ */
231
+ RangeStatus[RangeStatus["IN_RANGE"] = 1] = "IN_RANGE";
232
+ /**
233
+ * An open concentrated position (V3/V4) that is not IN_RANGE: the pool's
234
+ * current tick is outside [tick_lower, tick_upper), OR the pool has no state
235
+ * row yet (so a position is never dropped from both IN_RANGE and
236
+ * OUT_OF_RANGE while its pool awaits its first state event).
237
+ *
238
+ * @generated from enum value: RANGE_STATUS_OUT_OF_RANGE = 2;
239
+ */
240
+ RangeStatus[RangeStatus["OUT_OF_RANGE"] = 2] = "OUT_OF_RANGE";
241
+ })(RangeStatus || (RangeStatus = {}));
242
+ // Retrieve enum metadata with: proto3.getEnumType(RangeStatus)
243
+ proto3.util.setEnumType(RangeStatus, "uniswap.liquidity.v2.RangeStatus", [
244
+ { no: 0, name: "RANGE_STATUS_UNSPECIFIED" },
245
+ { no: 1, name: "RANGE_STATUS_IN_RANGE" },
246
+ { no: 2, name: "RANGE_STATUS_OUT_OF_RANGE" },
247
+ ]);
210
248
  /**
211
249
  * @generated from message uniswap.liquidity.v2.LPToken
212
250
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-liquidity",
3
- "version": "1.4.5",
3
+ "version": "1.4.7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },