@uniswap/client-liquidity 0.0.22 → 0.1.0

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.
@@ -20,7 +20,7 @@ export declare class MigrateV2ToV3LPPositionRequest extends Message<MigrateV2ToV
20
20
  */
21
21
  v3Params?: V3Position;
22
22
  /**
23
- * @generated from field: optional int32 slippage_bps = 4;
23
+ * @generated from field: optional float slippage_bps = 4;
24
24
  */
25
25
  slippageBps?: number;
26
26
  /**
@@ -134,7 +134,7 @@ export declare class MigrateV3ToV4LPPositionRequest extends Message<MigrateV3ToV
134
134
  */
135
135
  simulateTransaction: boolean;
136
136
  /**
137
- * @generated from field: optional int32 slippage_tolerance = 14;
137
+ * @generated from field: optional float slippage_tolerance = 14;
138
138
  */
139
139
  slippageTolerance?: number;
140
140
  /**
@@ -41,7 +41,7 @@ MigrateV2ToV3LPPositionRequest.fields = proto3.util.newFieldList(() => [
41
41
  { no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
42
42
  { no: 2, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
43
43
  { no: 3, name: "v3_params", kind: "message", T: V3Position },
44
- { no: 4, name: "slippage_bps", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
44
+ { no: 4, name: "slippage_bps", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
45
45
  { no: 5, name: "deadline", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
46
46
  { no: 6, name: "refund_as_eth", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
47
47
  { no: 7, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
@@ -153,7 +153,7 @@ MigrateV3ToV4LPPositionRequest.fields = proto3.util.newFieldList(() => [
153
153
  { no: 11, name: "expectedTokenOwed0RawAmount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
154
154
  { no: 12, name: "expectedTokenOwed1RawAmount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
155
155
  { no: 13, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
156
- { no: 14, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
156
+ { no: 14, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
157
157
  { no: 15, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
158
158
  { no: 16, name: "signature_deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
159
159
  ]);
@@ -1,6 +1,6 @@
1
1
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
2
  import { Message, proto3 } from "@bufbuild/protobuf";
3
- import { BidToExit, ChainId, TransactionRequest, VerificationStatus } from "./types_pb.js";
3
+ import { AuctionValidation, BidToExit, ChainId, TransactionRequest } from "./types_pb.js";
4
4
  /**
5
5
  * REQUESTS & RESPONSES
6
6
  *
@@ -323,33 +323,9 @@ export declare class VerifyWalletRequest extends Message<VerifyWalletRequest> {
323
323
  */
324
324
  export declare class VerifyWalletResponse extends Message<VerifyWalletResponse> {
325
325
  /**
326
- * @generated from field: uniswap.liquidity.v1.VerificationStatus status = 1;
326
+ * @generated from field: repeated uniswap.liquidity.v1.AuctionValidation validations = 1;
327
327
  */
328
- status: VerificationStatus;
329
- /**
330
- * Predicate unsigned URL if not verified
331
- *
332
- * @generated from field: optional string redirect_url = 2;
333
- */
334
- redirectUrl?: string;
335
- /**
336
- * Only set if is presale and KYC verified
337
- *
338
- * @generated from field: optional bool is_allowlisted = 3;
339
- */
340
- isAllowlisted?: boolean;
341
- /**
342
- * @generated from field: optional string qr_code = 4;
343
- */
344
- qrCode?: string;
345
- /**
346
- * @generated from field: bool has_presale = 5;
347
- */
348
- hasPresale: boolean;
349
- /**
350
- * @generated from field: bool has_kyc_verification = 6;
351
- */
352
- hasKycVerification: boolean;
328
+ validations: AuctionValidation[];
353
329
  constructor(data?: PartialMessage<VerifyWalletResponse>);
354
330
  static readonly runtime: typeof proto3;
355
331
  static readonly typeName = "uniswap.liquidity.v1.VerifyWalletResponse";
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { Message, proto3 } from "@bufbuild/protobuf";
6
- import { BidToExit, ChainId, TransactionRequest, VerificationStatus } from "./types_pb.js";
6
+ import { AuctionValidation, BidToExit, ChainId, TransactionRequest } from "./types_pb.js";
7
7
  /**
8
8
  * REQUESTS & RESPONSES
9
9
  *
@@ -443,17 +443,9 @@ export class VerifyWalletResponse extends Message {
443
443
  constructor(data) {
444
444
  super();
445
445
  /**
446
- * @generated from field: uniswap.liquidity.v1.VerificationStatus status = 1;
446
+ * @generated from field: repeated uniswap.liquidity.v1.AuctionValidation validations = 1;
447
447
  */
448
- this.status = VerificationStatus.UNSPECIFIED;
449
- /**
450
- * @generated from field: bool has_presale = 5;
451
- */
452
- this.hasPresale = false;
453
- /**
454
- * @generated from field: bool has_kyc_verification = 6;
455
- */
456
- this.hasKycVerification = false;
448
+ this.validations = [];
457
449
  proto3.util.initPartial(data, this);
458
450
  }
459
451
  static fromBinary(bytes, options) {
@@ -472,10 +464,5 @@ export class VerifyWalletResponse extends Message {
472
464
  VerifyWalletResponse.runtime = proto3;
473
465
  VerifyWalletResponse.typeName = "uniswap.liquidity.v1.VerifyWalletResponse";
474
466
  VerifyWalletResponse.fields = proto3.util.newFieldList(() => [
475
- { no: 1, name: "status", kind: "enum", T: proto3.getEnumType(VerificationStatus) },
476
- { no: 2, name: "redirect_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
477
- { no: 3, name: "is_allowlisted", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
478
- { no: 4, name: "qr_code", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
479
- { no: 5, name: "has_presale", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
480
- { no: 6, name: "has_kyc_verification", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
467
+ { no: 1, name: "validations", kind: "message", T: AuctionValidation, repeated: true },
481
468
  ]);
@@ -148,35 +148,52 @@ export declare enum OnChainStatus {
148
148
  FAILED = 2
149
149
  }
150
150
  /**
151
- * @generated from enum uniswap.liquidity.v1.VerificationStatus
151
+ * @generated from enum uniswap.liquidity.v1.KycVerificationStatus
152
152
  */
153
- export declare enum VerificationStatus {
153
+ export declare enum KycVerificationStatus {
154
154
  /**
155
155
  * @generated from enum value: VERIFICATION_STATUS_UNSPECIFIED = 0;
156
156
  */
157
- UNSPECIFIED = 0,
157
+ VERIFICATION_STATUS_UNSPECIFIED = 0,
158
158
  /**
159
159
  * this is basically verified
160
160
  *
161
161
  * @generated from enum value: VERIFICATION_STATUS_COMPLETED = 1;
162
162
  */
163
- COMPLETED = 1,
163
+ VERIFICATION_STATUS_COMPLETED = 1,
164
164
  /**
165
165
  * @generated from enum value: VERIFICATION_STATUS_NOT_STARTED = 2;
166
166
  */
167
- NOT_STARTED = 2,
167
+ VERIFICATION_STATUS_NOT_STARTED = 2,
168
168
  /**
169
169
  * @generated from enum value: VERIFICATION_STATUS_PENDING = 3;
170
170
  */
171
- PENDING = 3,
171
+ VERIFICATION_STATUS_PENDING = 3,
172
172
  /**
173
173
  * @generated from enum value: VERIFICATION_STATUS_RETRY = 4;
174
174
  */
175
- RETRY = 4,
175
+ VERIFICATION_STATUS_RETRY = 4,
176
176
  /**
177
177
  * @generated from enum value: VERIFICATION_STATUS_REJECTED = 5;
178
178
  */
179
- REJECTED = 5
179
+ VERIFICATION_STATUS_REJECTED = 5
180
+ }
181
+ /**
182
+ * @generated from enum uniswap.liquidity.v1.ValidationType
183
+ */
184
+ export declare enum ValidationType {
185
+ /**
186
+ * @generated from enum value: VALIDATION_TYPE_UNSPECIFIED = 0;
187
+ */
188
+ VALIDATION_TYPE_UNSPECIFIED = 0,
189
+ /**
190
+ * @generated from enum value: KYC_VERIFICATION = 1;
191
+ */
192
+ KYC_VERIFICATION = 1,
193
+ /**
194
+ * @generated from enum value: ERC_1155_GATEWAY = 2;
195
+ */
196
+ ERC_1155_GATEWAY = 2
180
197
  }
181
198
  /**
182
199
  * CORE TYPE OBJECTS
@@ -794,7 +811,7 @@ export declare class V2CreateLPPosition extends Message<V2CreateLPPosition> {
794
811
  */
795
812
  defaultDependentAmount?: string;
796
813
  /**
797
- * @generated from field: optional int32 slippage_tolerance = 11;
814
+ * @generated from field: optional float slippage_tolerance = 11;
798
815
  */
799
816
  slippageTolerance?: number;
800
817
  /**
@@ -875,7 +892,7 @@ export declare class V3CreateLPPosition extends Message<V3CreateLPPosition> {
875
892
  */
876
893
  sqrtRatioX96?: string;
877
894
  /**
878
- * @generated from field: optional int32 slippage_tolerance = 15;
895
+ * @generated from field: optional float slippage_tolerance = 15;
879
896
  */
880
897
  slippageTolerance?: number;
881
898
  /**
@@ -972,7 +989,7 @@ export declare class V4CreateLPPosition extends Message<V4CreateLPPosition> {
972
989
  */
973
990
  defaultDependentAmount?: string;
974
991
  /**
975
- * @generated from field: optional int32 slippage_tolerance = 15;
992
+ * @generated from field: optional float slippage_tolerance = 15;
976
993
  */
977
994
  slippageTolerance?: number;
978
995
  /**
@@ -1172,7 +1189,7 @@ export declare class V2IncreaseLPPosition extends Message<V2IncreaseLPPosition>
1172
1189
  */
1173
1190
  defaultDependentAmount?: string;
1174
1191
  /**
1175
- * @generated from field: optional int32 slippage_tolerance = 10;
1192
+ * @generated from field: optional float slippage_tolerance = 10;
1176
1193
  */
1177
1194
  slippageTolerance?: number;
1178
1195
  /**
@@ -1245,7 +1262,7 @@ export declare class V3IncreaseLPPosition extends Message<V3IncreaseLPPosition>
1245
1262
  */
1246
1263
  sqrtRatioX96?: string;
1247
1264
  /**
1248
- * @generated from field: optional int32 slippage_tolerance = 13;
1265
+ * @generated from field: optional float slippage_tolerance = 13;
1249
1266
  */
1250
1267
  slippageTolerance?: number;
1251
1268
  /**
@@ -1318,7 +1335,7 @@ export declare class V4IncreaseLPPosition extends Message<V4IncreaseLPPosition>
1318
1335
  */
1319
1336
  sqrtRatioX96?: string;
1320
1337
  /**
1321
- * @generated from field: optional int32 slippage_tolerance = 14;
1338
+ * @generated from field: optional float slippage_tolerance = 14;
1322
1339
  */
1323
1340
  slippageTolerance?: number;
1324
1341
  /**
@@ -1391,7 +1408,7 @@ export declare class V2DecreaseLPPosition extends Message<V2DecreaseLPPosition>
1391
1408
  */
1392
1409
  simulateTransaction?: boolean;
1393
1410
  /**
1394
- * @generated from field: optional int32 slippage_tolerance = 12;
1411
+ * @generated from field: optional float slippage_tolerance = 12;
1395
1412
  */
1396
1413
  slippageTolerance?: number;
1397
1414
  /**
@@ -1468,7 +1485,7 @@ export declare class V3DecreaseLPPosition extends Message<V3DecreaseLPPosition>
1468
1485
  */
1469
1486
  simulateTransaction?: boolean;
1470
1487
  /**
1471
- * @generated from field: optional int32 slippage_tolerance = 16;
1488
+ * @generated from field: optional float slippage_tolerance = 16;
1472
1489
  */
1473
1490
  slippageTolerance?: number;
1474
1491
  /**
@@ -1533,7 +1550,7 @@ export declare class V4DecreaseLPPosition extends Message<V4DecreaseLPPosition>
1533
1550
  */
1534
1551
  simulateTransaction?: boolean;
1535
1552
  /**
1536
- * @generated from field: optional int32 slippage_tolerance = 12;
1553
+ * @generated from field: optional float slippage_tolerance = 12;
1537
1554
  */
1538
1555
  slippageTolerance?: number;
1539
1556
  /**
@@ -1848,3 +1865,87 @@ export declare class BidToExit extends Message<BidToExit> {
1848
1865
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BidToExit;
1849
1866
  static equals(a: BidToExit | PlainMessage<BidToExit> | undefined, b: BidToExit | PlainMessage<BidToExit> | undefined): boolean;
1850
1867
  }
1868
+ /**
1869
+ * @generated from message uniswap.liquidity.v1.PredicateKycVerificationData
1870
+ */
1871
+ export declare class PredicateKycVerificationData extends Message<PredicateKycVerificationData> {
1872
+ /**
1873
+ * @generated from field: uniswap.liquidity.v1.KycVerificationStatus status = 1;
1874
+ */
1875
+ status: KycVerificationStatus;
1876
+ /**
1877
+ * Predicate unsigned URL if not verified
1878
+ *
1879
+ * @generated from field: optional string redirect_url = 2;
1880
+ */
1881
+ redirectUrl?: string;
1882
+ /**
1883
+ * @generated from field: optional string qr_code = 3;
1884
+ */
1885
+ qrCode?: string;
1886
+ constructor(data?: PartialMessage<PredicateKycVerificationData>);
1887
+ static readonly runtime: typeof proto3;
1888
+ static readonly typeName = "uniswap.liquidity.v1.PredicateKycVerificationData";
1889
+ static readonly fields: FieldList;
1890
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PredicateKycVerificationData;
1891
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PredicateKycVerificationData;
1892
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PredicateKycVerificationData;
1893
+ static equals(a: PredicateKycVerificationData | PlainMessage<PredicateKycVerificationData> | undefined, b: PredicateKycVerificationData | PlainMessage<PredicateKycVerificationData> | undefined): boolean;
1894
+ }
1895
+ /**
1896
+ * @generated from message uniswap.liquidity.v1.Erc1155GateData
1897
+ */
1898
+ export declare class Erc1155GateData extends Message<Erc1155GateData> {
1899
+ /**
1900
+ * @generated from field: optional string expiration_block = 1;
1901
+ */
1902
+ expirationBlock?: string;
1903
+ constructor(data?: PartialMessage<Erc1155GateData>);
1904
+ static readonly runtime: typeof proto3;
1905
+ static readonly typeName = "uniswap.liquidity.v1.Erc1155GateData";
1906
+ static readonly fields: FieldList;
1907
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Erc1155GateData;
1908
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Erc1155GateData;
1909
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Erc1155GateData;
1910
+ static equals(a: Erc1155GateData | PlainMessage<Erc1155GateData> | undefined, b: Erc1155GateData | PlainMessage<Erc1155GateData> | undefined): boolean;
1911
+ }
1912
+ /**
1913
+ * @generated from message uniswap.liquidity.v1.AuctionValidation
1914
+ */
1915
+ export declare class AuctionValidation extends Message<AuctionValidation> {
1916
+ /**
1917
+ * @generated from field: uniswap.liquidity.v1.ValidationType validation_type = 1;
1918
+ */
1919
+ validationType: ValidationType;
1920
+ /**
1921
+ * @generated from oneof uniswap.liquidity.v1.AuctionValidation.data
1922
+ */
1923
+ data: {
1924
+ /**
1925
+ * @generated from field: uniswap.liquidity.v1.PredicateKycVerificationData kyc_verification_data = 2;
1926
+ */
1927
+ value: PredicateKycVerificationData;
1928
+ case: "kycVerificationData";
1929
+ } | {
1930
+ /**
1931
+ * @generated from field: uniswap.liquidity.v1.Erc1155GateData erc_1155_gate_data = 3;
1932
+ */
1933
+ value: Erc1155GateData;
1934
+ case: "erc1155GateData";
1935
+ } | {
1936
+ case: undefined;
1937
+ value?: undefined;
1938
+ };
1939
+ /**
1940
+ * @generated from field: bool validation_passed = 4;
1941
+ */
1942
+ validationPassed: boolean;
1943
+ constructor(data?: PartialMessage<AuctionValidation>);
1944
+ static readonly runtime: typeof proto3;
1945
+ static readonly typeName = "uniswap.liquidity.v1.AuctionValidation";
1946
+ static readonly fields: FieldList;
1947
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AuctionValidation;
1948
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AuctionValidation;
1949
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AuctionValidation;
1950
+ static equals(a: AuctionValidation | PlainMessage<AuctionValidation> | undefined, b: AuctionValidation | PlainMessage<AuctionValidation> | undefined): boolean;
1951
+ }
@@ -201,39 +201,39 @@ proto3.util.setEnumType(OnChainStatus, "uniswap.liquidity.v1.OnChainStatus", [
201
201
  { no: 2, name: "FAILED" },
202
202
  ]);
203
203
  /**
204
- * @generated from enum uniswap.liquidity.v1.VerificationStatus
204
+ * @generated from enum uniswap.liquidity.v1.KycVerificationStatus
205
205
  */
206
- export var VerificationStatus;
207
- (function (VerificationStatus) {
206
+ export var KycVerificationStatus;
207
+ (function (KycVerificationStatus) {
208
208
  /**
209
209
  * @generated from enum value: VERIFICATION_STATUS_UNSPECIFIED = 0;
210
210
  */
211
- VerificationStatus[VerificationStatus["UNSPECIFIED"] = 0] = "UNSPECIFIED";
211
+ KycVerificationStatus[KycVerificationStatus["VERIFICATION_STATUS_UNSPECIFIED"] = 0] = "VERIFICATION_STATUS_UNSPECIFIED";
212
212
  /**
213
213
  * this is basically verified
214
214
  *
215
215
  * @generated from enum value: VERIFICATION_STATUS_COMPLETED = 1;
216
216
  */
217
- VerificationStatus[VerificationStatus["COMPLETED"] = 1] = "COMPLETED";
217
+ KycVerificationStatus[KycVerificationStatus["VERIFICATION_STATUS_COMPLETED"] = 1] = "VERIFICATION_STATUS_COMPLETED";
218
218
  /**
219
219
  * @generated from enum value: VERIFICATION_STATUS_NOT_STARTED = 2;
220
220
  */
221
- VerificationStatus[VerificationStatus["NOT_STARTED"] = 2] = "NOT_STARTED";
221
+ KycVerificationStatus[KycVerificationStatus["VERIFICATION_STATUS_NOT_STARTED"] = 2] = "VERIFICATION_STATUS_NOT_STARTED";
222
222
  /**
223
223
  * @generated from enum value: VERIFICATION_STATUS_PENDING = 3;
224
224
  */
225
- VerificationStatus[VerificationStatus["PENDING"] = 3] = "PENDING";
225
+ KycVerificationStatus[KycVerificationStatus["VERIFICATION_STATUS_PENDING"] = 3] = "VERIFICATION_STATUS_PENDING";
226
226
  /**
227
227
  * @generated from enum value: VERIFICATION_STATUS_RETRY = 4;
228
228
  */
229
- VerificationStatus[VerificationStatus["RETRY"] = 4] = "RETRY";
229
+ KycVerificationStatus[KycVerificationStatus["VERIFICATION_STATUS_RETRY"] = 4] = "VERIFICATION_STATUS_RETRY";
230
230
  /**
231
231
  * @generated from enum value: VERIFICATION_STATUS_REJECTED = 5;
232
232
  */
233
- VerificationStatus[VerificationStatus["REJECTED"] = 5] = "REJECTED";
234
- })(VerificationStatus || (VerificationStatus = {}));
235
- // Retrieve enum metadata with: proto3.getEnumType(VerificationStatus)
236
- proto3.util.setEnumType(VerificationStatus, "uniswap.liquidity.v1.VerificationStatus", [
233
+ KycVerificationStatus[KycVerificationStatus["VERIFICATION_STATUS_REJECTED"] = 5] = "VERIFICATION_STATUS_REJECTED";
234
+ })(KycVerificationStatus || (KycVerificationStatus = {}));
235
+ // Retrieve enum metadata with: proto3.getEnumType(KycVerificationStatus)
236
+ proto3.util.setEnumType(KycVerificationStatus, "uniswap.liquidity.v1.KycVerificationStatus", [
237
237
  { no: 0, name: "VERIFICATION_STATUS_UNSPECIFIED" },
238
238
  { no: 1, name: "VERIFICATION_STATUS_COMPLETED" },
239
239
  { no: 2, name: "VERIFICATION_STATUS_NOT_STARTED" },
@@ -241,6 +241,30 @@ proto3.util.setEnumType(VerificationStatus, "uniswap.liquidity.v1.VerificationSt
241
241
  { no: 4, name: "VERIFICATION_STATUS_RETRY" },
242
242
  { no: 5, name: "VERIFICATION_STATUS_REJECTED" },
243
243
  ]);
244
+ /**
245
+ * @generated from enum uniswap.liquidity.v1.ValidationType
246
+ */
247
+ export var ValidationType;
248
+ (function (ValidationType) {
249
+ /**
250
+ * @generated from enum value: VALIDATION_TYPE_UNSPECIFIED = 0;
251
+ */
252
+ ValidationType[ValidationType["VALIDATION_TYPE_UNSPECIFIED"] = 0] = "VALIDATION_TYPE_UNSPECIFIED";
253
+ /**
254
+ * @generated from enum value: KYC_VERIFICATION = 1;
255
+ */
256
+ ValidationType[ValidationType["KYC_VERIFICATION"] = 1] = "KYC_VERIFICATION";
257
+ /**
258
+ * @generated from enum value: ERC_1155_GATEWAY = 2;
259
+ */
260
+ ValidationType[ValidationType["ERC_1155_GATEWAY"] = 2] = "ERC_1155_GATEWAY";
261
+ })(ValidationType || (ValidationType = {}));
262
+ // Retrieve enum metadata with: proto3.getEnumType(ValidationType)
263
+ proto3.util.setEnumType(ValidationType, "uniswap.liquidity.v1.ValidationType", [
264
+ { no: 0, name: "VALIDATION_TYPE_UNSPECIFIED" },
265
+ { no: 1, name: "KYC_VERIFICATION" },
266
+ { no: 2, name: "ERC_1155_GATEWAY" },
267
+ ]);
244
268
  /**
245
269
  * CORE TYPE OBJECTS
246
270
  *
@@ -1069,7 +1093,7 @@ V2CreateLPPosition.fields = proto3.util.newFieldList(() => [
1069
1093
  { no: 7, name: "independentAmount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1070
1094
  { no: 8, name: "independent_token", kind: "enum", T: proto3.getEnumType(IndependentToken), opt: true },
1071
1095
  { no: 10, name: "default_dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1072
- { no: 11, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1096
+ { no: 11, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
1073
1097
  { no: 12, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1074
1098
  { no: 13, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1075
1099
  ]);
@@ -1127,7 +1151,7 @@ V3CreateLPPosition.fields = proto3.util.newFieldList(() => [
1127
1151
  { no: 12, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1128
1152
  { no: 13, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
1129
1153
  { no: 14, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1130
- { no: 15, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1154
+ { no: 15, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
1131
1155
  { no: 16, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1132
1156
  { no: 17, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1133
1157
  { no: 18, name: "batchPermitData", kind: "message", T: PermitBatchData, opt: true },
@@ -1189,7 +1213,7 @@ V4CreateLPPosition.fields = proto3.util.newFieldList(() => [
1189
1213
  { no: 17, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1190
1214
  { no: 18, name: "batchPermitData", kind: "message", T: PermitBatchData, opt: true },
1191
1215
  { no: 10, name: "default_dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1192
- { no: 15, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1216
+ { no: 15, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
1193
1217
  { no: 16, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1194
1218
  { no: 19, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1195
1219
  ]);
@@ -1390,7 +1414,7 @@ V2IncreaseLPPosition.fields = proto3.util.newFieldList(() => [
1390
1414
  { no: 7, name: "independentAmount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1391
1415
  { no: 8, name: "independent_token", kind: "enum", T: proto3.getEnumType(IndependentToken), opt: true },
1392
1416
  { no: 9, name: "default_dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1393
- { no: 10, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1417
+ { no: 10, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
1394
1418
  { no: 11, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1395
1419
  { no: 12, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1396
1420
  ]);
@@ -1450,7 +1474,7 @@ V3IncreaseLPPosition.fields = proto3.util.newFieldList(() => [
1450
1474
  { no: 10, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1451
1475
  { no: 11, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
1452
1476
  { no: 12, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1453
- { no: 13, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1477
+ { no: 13, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
1454
1478
  { no: 14, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1455
1479
  { no: 15, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1456
1480
  ]);
@@ -1510,7 +1534,7 @@ V4IncreaseLPPosition.fields = proto3.util.newFieldList(() => [
1510
1534
  { no: 10, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1511
1535
  { no: 11, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
1512
1536
  { no: 12, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1513
- { no: 14, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1537
+ { no: 14, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
1514
1538
  { no: 15, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1515
1539
  { no: 16, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1516
1540
  { no: 17, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
@@ -1582,7 +1606,7 @@ V2DecreaseLPPosition.fields = proto3.util.newFieldList(() => [
1582
1606
  { no: 8, name: "liquidity1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1583
1607
  { no: 10, name: "collectAsWETH", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1584
1608
  { no: 11, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1585
- { no: 12, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1609
+ { no: 12, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
1586
1610
  { no: 13, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1587
1611
  ]);
1588
1612
  /**
@@ -1659,7 +1683,7 @@ V3DecreaseLPPosition.fields = proto3.util.newFieldList(() => [
1659
1683
  { no: 13, name: "expectedTokenOwed1RawAmount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1660
1684
  { no: 14, name: "collectAsWETH", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1661
1685
  { no: 15, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1662
- { no: 16, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1686
+ { no: 16, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
1663
1687
  { no: 17, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1664
1688
  ]);
1665
1689
  /**
@@ -1721,7 +1745,7 @@ V4DecreaseLPPosition.fields = proto3.util.newFieldList(() => [
1721
1745
  { no: 9, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1722
1746
  { no: 10, name: "positionLiquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1723
1747
  { no: 11, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1724
- { no: 12, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1748
+ { no: 12, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
1725
1749
  { no: 13, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1726
1750
  ]);
1727
1751
  /**
@@ -2087,3 +2111,102 @@ BidToExit.fields = proto3.util.newFieldList(() => [
2087
2111
  { no: 1, name: "bidId", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2088
2112
  { no: 2, name: "isExited", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
2089
2113
  ]);
2114
+ /**
2115
+ * @generated from message uniswap.liquidity.v1.PredicateKycVerificationData
2116
+ */
2117
+ export class PredicateKycVerificationData extends Message {
2118
+ constructor(data) {
2119
+ super();
2120
+ /**
2121
+ * @generated from field: uniswap.liquidity.v1.KycVerificationStatus status = 1;
2122
+ */
2123
+ this.status = KycVerificationStatus.VERIFICATION_STATUS_UNSPECIFIED;
2124
+ proto3.util.initPartial(data, this);
2125
+ }
2126
+ static fromBinary(bytes, options) {
2127
+ return new PredicateKycVerificationData().fromBinary(bytes, options);
2128
+ }
2129
+ static fromJson(jsonValue, options) {
2130
+ return new PredicateKycVerificationData().fromJson(jsonValue, options);
2131
+ }
2132
+ static fromJsonString(jsonString, options) {
2133
+ return new PredicateKycVerificationData().fromJsonString(jsonString, options);
2134
+ }
2135
+ static equals(a, b) {
2136
+ return proto3.util.equals(PredicateKycVerificationData, a, b);
2137
+ }
2138
+ }
2139
+ PredicateKycVerificationData.runtime = proto3;
2140
+ PredicateKycVerificationData.typeName = "uniswap.liquidity.v1.PredicateKycVerificationData";
2141
+ PredicateKycVerificationData.fields = proto3.util.newFieldList(() => [
2142
+ { no: 1, name: "status", kind: "enum", T: proto3.getEnumType(KycVerificationStatus) },
2143
+ { no: 2, name: "redirect_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2144
+ { no: 3, name: "qr_code", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2145
+ ]);
2146
+ /**
2147
+ * @generated from message uniswap.liquidity.v1.Erc1155GateData
2148
+ */
2149
+ export class Erc1155GateData extends Message {
2150
+ constructor(data) {
2151
+ super();
2152
+ proto3.util.initPartial(data, this);
2153
+ }
2154
+ static fromBinary(bytes, options) {
2155
+ return new Erc1155GateData().fromBinary(bytes, options);
2156
+ }
2157
+ static fromJson(jsonValue, options) {
2158
+ return new Erc1155GateData().fromJson(jsonValue, options);
2159
+ }
2160
+ static fromJsonString(jsonString, options) {
2161
+ return new Erc1155GateData().fromJsonString(jsonString, options);
2162
+ }
2163
+ static equals(a, b) {
2164
+ return proto3.util.equals(Erc1155GateData, a, b);
2165
+ }
2166
+ }
2167
+ Erc1155GateData.runtime = proto3;
2168
+ Erc1155GateData.typeName = "uniswap.liquidity.v1.Erc1155GateData";
2169
+ Erc1155GateData.fields = proto3.util.newFieldList(() => [
2170
+ { no: 1, name: "expiration_block", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2171
+ ]);
2172
+ /**
2173
+ * @generated from message uniswap.liquidity.v1.AuctionValidation
2174
+ */
2175
+ export class AuctionValidation extends Message {
2176
+ constructor(data) {
2177
+ super();
2178
+ /**
2179
+ * @generated from field: uniswap.liquidity.v1.ValidationType validation_type = 1;
2180
+ */
2181
+ this.validationType = ValidationType.VALIDATION_TYPE_UNSPECIFIED;
2182
+ /**
2183
+ * @generated from oneof uniswap.liquidity.v1.AuctionValidation.data
2184
+ */
2185
+ this.data = { case: undefined };
2186
+ /**
2187
+ * @generated from field: bool validation_passed = 4;
2188
+ */
2189
+ this.validationPassed = false;
2190
+ proto3.util.initPartial(data, this);
2191
+ }
2192
+ static fromBinary(bytes, options) {
2193
+ return new AuctionValidation().fromBinary(bytes, options);
2194
+ }
2195
+ static fromJson(jsonValue, options) {
2196
+ return new AuctionValidation().fromJson(jsonValue, options);
2197
+ }
2198
+ static fromJsonString(jsonString, options) {
2199
+ return new AuctionValidation().fromJsonString(jsonString, options);
2200
+ }
2201
+ static equals(a, b) {
2202
+ return proto3.util.equals(AuctionValidation, a, b);
2203
+ }
2204
+ }
2205
+ AuctionValidation.runtime = proto3;
2206
+ AuctionValidation.typeName = "uniswap.liquidity.v1.AuctionValidation";
2207
+ AuctionValidation.fields = proto3.util.newFieldList(() => [
2208
+ { no: 1, name: "validation_type", kind: "enum", T: proto3.getEnumType(ValidationType) },
2209
+ { no: 2, name: "kyc_verification_data", kind: "message", T: PredicateKycVerificationData, oneof: "data" },
2210
+ { no: 3, name: "erc_1155_gate_data", kind: "message", T: Erc1155GateData, oneof: "data" },
2211
+ { no: 4, name: "validation_passed", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
2212
+ ]);
@@ -0,0 +1,16 @@
1
+ import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
2
+ import { MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
3
+ /**
4
+ * @generated from rpc uniswap.liquidity.v2.LiquidityService.MigrateV2ToV3LPPosition
5
+ */
6
+ export declare const migrateV2ToV3LPPosition: {
7
+ readonly localName: "migrateV2ToV3LPPosition";
8
+ readonly name: "MigrateV2ToV3LPPosition";
9
+ readonly kind: MethodKind.Unary;
10
+ readonly I: typeof MigrateV2ToV3LPPositionRequest;
11
+ readonly O: typeof MigrateV2ToV3LPPositionResponse;
12
+ readonly idempotency: MethodIdempotency.NoSideEffects;
13
+ readonly service: {
14
+ readonly typeName: "uniswap.liquidity.v2.LiquidityService";
15
+ };
16
+ };
@@ -0,0 +1,20 @@
1
+ // @generated by protoc-gen-connect-query v1.4.2 with parameter "target=ts"
2
+ // @generated from file uniswap/liquidity/v2/api.proto (package uniswap.liquidity.v2, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
6
+ import { MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
7
+ /**
8
+ * @generated from rpc uniswap.liquidity.v2.LiquidityService.MigrateV2ToV3LPPosition
9
+ */
10
+ export const migrateV2ToV3LPPosition = {
11
+ localName: "migrateV2ToV3LPPosition",
12
+ name: "MigrateV2ToV3LPPosition",
13
+ kind: MethodKind.Unary,
14
+ I: MigrateV2ToV3LPPositionRequest,
15
+ O: MigrateV2ToV3LPPositionResponse,
16
+ idempotency: MethodIdempotency.NoSideEffects,
17
+ service: {
18
+ typeName: "uniswap.liquidity.v2.LiquidityService"
19
+ }
20
+ };
@@ -0,0 +1,20 @@
1
+ import { MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
2
+ import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
3
+ /**
4
+ * @generated from service uniswap.liquidity.v2.LiquidityService
5
+ */
6
+ export declare const LiquidityService: {
7
+ readonly typeName: "uniswap.liquidity.v2.LiquidityService";
8
+ readonly methods: {
9
+ /**
10
+ * @generated from rpc uniswap.liquidity.v2.LiquidityService.MigrateV2ToV3LPPosition
11
+ */
12
+ readonly migrateV2ToV3LPPosition: {
13
+ readonly name: "MigrateV2ToV3LPPosition";
14
+ readonly I: typeof MigrateV2ToV3LPPositionRequest;
15
+ readonly O: typeof MigrateV2ToV3LPPositionResponse;
16
+ readonly kind: MethodKind.Unary;
17
+ readonly idempotency: MethodIdempotency.NoSideEffects;
18
+ };
19
+ };
20
+ };
@@ -0,0 +1,24 @@
1
+ // @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
2
+ // @generated from file uniswap/liquidity/v2/api.proto (package uniswap.liquidity.v2, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
6
+ import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
7
+ /**
8
+ * @generated from service uniswap.liquidity.v2.LiquidityService
9
+ */
10
+ export const LiquidityService = {
11
+ typeName: "uniswap.liquidity.v2.LiquidityService",
12
+ methods: {
13
+ /**
14
+ * @generated from rpc uniswap.liquidity.v2.LiquidityService.MigrateV2ToV3LPPosition
15
+ */
16
+ migrateV2ToV3LPPosition: {
17
+ name: "MigrateV2ToV3LPPosition",
18
+ I: MigrateV2ToV3LPPositionRequest,
19
+ O: MigrateV2ToV3LPPositionResponse,
20
+ kind: MethodKind.Unary,
21
+ idempotency: MethodIdempotency.NoSideEffects,
22
+ },
23
+ }
24
+ };
@@ -0,0 +1,77 @@
1
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
+ import { Message, proto3 } from "@bufbuild/protobuf";
3
+ import { ChainId, TransactionRequest, V3Position } from "../v1/types_pb.js";
4
+ /**
5
+ * @generated from message uniswap.liquidity.v2.MigrateV2ToV3LPPositionRequest
6
+ */
7
+ export declare class MigrateV2ToV3LPPositionRequest extends Message<MigrateV2ToV3LPPositionRequest> {
8
+ /**
9
+ * @generated from field: string wallet_address = 1;
10
+ */
11
+ walletAddress: string;
12
+ /**
13
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 2;
14
+ */
15
+ chainId: ChainId;
16
+ /**
17
+ * @generated from field: uniswap.liquidity.v1.V3Position v3_params = 3;
18
+ */
19
+ v3Params?: V3Position;
20
+ /**
21
+ * @generated from field: optional float slippage_bps = 4;
22
+ */
23
+ slippageBps?: number;
24
+ /**
25
+ * @generated from field: optional string deadline = 5;
26
+ */
27
+ deadline?: string;
28
+ /**
29
+ * @generated from field: optional bool refund_as_eth = 6;
30
+ */
31
+ refundAsEth?: boolean;
32
+ /**
33
+ * @generated from field: optional bool simulate_transaction = 7;
34
+ */
35
+ simulateTransaction?: boolean;
36
+ constructor(data?: PartialMessage<MigrateV2ToV3LPPositionRequest>);
37
+ static readonly runtime: typeof proto3;
38
+ static readonly typeName = "uniswap.liquidity.v2.MigrateV2ToV3LPPositionRequest";
39
+ static readonly fields: FieldList;
40
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MigrateV2ToV3LPPositionRequest;
41
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MigrateV2ToV3LPPositionRequest;
42
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MigrateV2ToV3LPPositionRequest;
43
+ static equals(a: MigrateV2ToV3LPPositionRequest | PlainMessage<MigrateV2ToV3LPPositionRequest> | undefined, b: MigrateV2ToV3LPPositionRequest | PlainMessage<MigrateV2ToV3LPPositionRequest> | undefined): boolean;
44
+ }
45
+ /**
46
+ * @generated from message uniswap.liquidity.v2.MigrateV2ToV3LPPositionResponse
47
+ */
48
+ export declare class MigrateV2ToV3LPPositionResponse extends Message<MigrateV2ToV3LPPositionResponse> {
49
+ /**
50
+ * @generated from field: string request_id = 1;
51
+ */
52
+ requestId: string;
53
+ /**
54
+ * @generated from field: uniswap.liquidity.v1.TransactionRequest migrate = 2;
55
+ */
56
+ migrate?: TransactionRequest;
57
+ /**
58
+ * @generated from field: optional string gasFee = 3;
59
+ */
60
+ gasFee?: string;
61
+ /**
62
+ * @generated from field: optional string estimated_refund_token0 = 4;
63
+ */
64
+ estimatedRefundToken0?: string;
65
+ /**
66
+ * @generated from field: optional string estimated_refund_token1 = 5;
67
+ */
68
+ estimatedRefundToken1?: string;
69
+ constructor(data?: PartialMessage<MigrateV2ToV3LPPositionResponse>);
70
+ static readonly runtime: typeof proto3;
71
+ static readonly typeName = "uniswap.liquidity.v2.MigrateV2ToV3LPPositionResponse";
72
+ static readonly fields: FieldList;
73
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MigrateV2ToV3LPPositionResponse;
74
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MigrateV2ToV3LPPositionResponse;
75
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MigrateV2ToV3LPPositionResponse;
76
+ static equals(a: MigrateV2ToV3LPPositionResponse | PlainMessage<MigrateV2ToV3LPPositionResponse> | undefined, b: MigrateV2ToV3LPPositionResponse | PlainMessage<MigrateV2ToV3LPPositionResponse> | undefined): boolean;
77
+ }
@@ -0,0 +1,80 @@
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
+ // @generated from file uniswap/liquidity/v2/api.proto (package uniswap.liquidity.v2, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { Message, proto3 } from "@bufbuild/protobuf";
6
+ import { ChainId, TransactionRequest, V3Position } from "../v1/types_pb.js";
7
+ /**
8
+ * @generated from message uniswap.liquidity.v2.MigrateV2ToV3LPPositionRequest
9
+ */
10
+ export class MigrateV2ToV3LPPositionRequest extends Message {
11
+ constructor(data) {
12
+ super();
13
+ /**
14
+ * @generated from field: string wallet_address = 1;
15
+ */
16
+ this.walletAddress = "";
17
+ /**
18
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 2;
19
+ */
20
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
21
+ proto3.util.initPartial(data, this);
22
+ }
23
+ static fromBinary(bytes, options) {
24
+ return new MigrateV2ToV3LPPositionRequest().fromBinary(bytes, options);
25
+ }
26
+ static fromJson(jsonValue, options) {
27
+ return new MigrateV2ToV3LPPositionRequest().fromJson(jsonValue, options);
28
+ }
29
+ static fromJsonString(jsonString, options) {
30
+ return new MigrateV2ToV3LPPositionRequest().fromJsonString(jsonString, options);
31
+ }
32
+ static equals(a, b) {
33
+ return proto3.util.equals(MigrateV2ToV3LPPositionRequest, a, b);
34
+ }
35
+ }
36
+ MigrateV2ToV3LPPositionRequest.runtime = proto3;
37
+ MigrateV2ToV3LPPositionRequest.typeName = "uniswap.liquidity.v2.MigrateV2ToV3LPPositionRequest";
38
+ MigrateV2ToV3LPPositionRequest.fields = proto3.util.newFieldList(() => [
39
+ { no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
40
+ { no: 2, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
41
+ { no: 3, name: "v3_params", kind: "message", T: V3Position },
42
+ { no: 4, name: "slippage_bps", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
43
+ { no: 5, name: "deadline", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
44
+ { no: 6, name: "refund_as_eth", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
45
+ { no: 7, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
46
+ ]);
47
+ /**
48
+ * @generated from message uniswap.liquidity.v2.MigrateV2ToV3LPPositionResponse
49
+ */
50
+ export class MigrateV2ToV3LPPositionResponse extends Message {
51
+ constructor(data) {
52
+ super();
53
+ /**
54
+ * @generated from field: string request_id = 1;
55
+ */
56
+ this.requestId = "";
57
+ proto3.util.initPartial(data, this);
58
+ }
59
+ static fromBinary(bytes, options) {
60
+ return new MigrateV2ToV3LPPositionResponse().fromBinary(bytes, options);
61
+ }
62
+ static fromJson(jsonValue, options) {
63
+ return new MigrateV2ToV3LPPositionResponse().fromJson(jsonValue, options);
64
+ }
65
+ static fromJsonString(jsonString, options) {
66
+ return new MigrateV2ToV3LPPositionResponse().fromJsonString(jsonString, options);
67
+ }
68
+ static equals(a, b) {
69
+ return proto3.util.equals(MigrateV2ToV3LPPositionResponse, a, b);
70
+ }
71
+ }
72
+ MigrateV2ToV3LPPositionResponse.runtime = proto3;
73
+ MigrateV2ToV3LPPositionResponse.typeName = "uniswap.liquidity.v2.MigrateV2ToV3LPPositionResponse";
74
+ MigrateV2ToV3LPPositionResponse.fields = proto3.util.newFieldList(() => [
75
+ { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
76
+ { no: 2, name: "migrate", kind: "message", T: TransactionRequest },
77
+ { no: 3, name: "gasFee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
78
+ { no: 4, name: "estimated_refund_token0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
79
+ { no: 5, name: "estimated_refund_token1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
80
+ ]);
@@ -0,0 +1,28 @@
1
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
+ import { Message, proto3 } from "@bufbuild/protobuf";
3
+ import { ChainId } from "../v1/types_pb.js";
4
+ /**
5
+ * @generated from message uniswap.liquidity.v2.LPToken
6
+ */
7
+ export declare class LPToken extends Message<LPToken> {
8
+ /**
9
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 1;
10
+ */
11
+ chainId: ChainId;
12
+ /**
13
+ * @generated from field: string token_address = 2;
14
+ */
15
+ tokenAddress: string;
16
+ /**
17
+ * @generated from field: string amount = 3;
18
+ */
19
+ amount: string;
20
+ constructor(data?: PartialMessage<LPToken>);
21
+ static readonly runtime: typeof proto3;
22
+ static readonly typeName = "uniswap.liquidity.v2.LPToken";
23
+ static readonly fields: FieldList;
24
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LPToken;
25
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LPToken;
26
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LPToken;
27
+ static equals(a: LPToken | PlainMessage<LPToken> | undefined, b: LPToken | PlainMessage<LPToken> | undefined): boolean;
28
+ }
@@ -0,0 +1,46 @@
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
+ // @generated from file uniswap/liquidity/v2/types.proto (package uniswap.liquidity.v2, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { Message, proto3 } from "@bufbuild/protobuf";
6
+ import { ChainId } from "../v1/types_pb.js";
7
+ /**
8
+ * @generated from message uniswap.liquidity.v2.LPToken
9
+ */
10
+ export class LPToken extends Message {
11
+ constructor(data) {
12
+ super();
13
+ /**
14
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 1;
15
+ */
16
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
17
+ /**
18
+ * @generated from field: string token_address = 2;
19
+ */
20
+ this.tokenAddress = "";
21
+ /**
22
+ * @generated from field: string amount = 3;
23
+ */
24
+ this.amount = "";
25
+ proto3.util.initPartial(data, this);
26
+ }
27
+ static fromBinary(bytes, options) {
28
+ return new LPToken().fromBinary(bytes, options);
29
+ }
30
+ static fromJson(jsonValue, options) {
31
+ return new LPToken().fromJson(jsonValue, options);
32
+ }
33
+ static fromJsonString(jsonString, options) {
34
+ return new LPToken().fromJsonString(jsonString, options);
35
+ }
36
+ static equals(a, b) {
37
+ return proto3.util.equals(LPToken, a, b);
38
+ }
39
+ }
40
+ LPToken.runtime = proto3;
41
+ LPToken.typeName = "uniswap.liquidity.v2.LPToken";
42
+ LPToken.fields = proto3.util.newFieldList(() => [
43
+ { no: 1, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
44
+ { no: 2, name: "token_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
45
+ { no: 3, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
46
+ ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-liquidity",
3
- "version": "0.0.22",
3
+ "version": "0.1.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },