@uniswap/client-liquidity 0.0.23 → 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.
- package/dist/uniswap/liquidity/v1/api_pb.d.ts +2 -2
- package/dist/uniswap/liquidity/v1/api_pb.js +2 -2
- package/dist/uniswap/liquidity/v1/types_pb.d.ts +9 -9
- package/dist/uniswap/liquidity/v1/types_pb.js +9 -9
- package/dist/uniswap/liquidity/v2/api-LiquidityService_connectquery.d.ts +16 -0
- package/dist/uniswap/liquidity/v2/api-LiquidityService_connectquery.js +20 -0
- package/dist/uniswap/liquidity/v2/api_connect.d.ts +20 -0
- package/dist/uniswap/liquidity/v2/api_connect.js +24 -0
- package/dist/uniswap/liquidity/v2/api_pb.d.ts +77 -0
- package/dist/uniswap/liquidity/v2/api_pb.js +80 -0
- package/dist/uniswap/liquidity/v2/types_pb.d.ts +28 -0
- package/dist/uniswap/liquidity/v2/types_pb.js +46 -0
- package/package.json +1 -1
|
@@ -20,7 +20,7 @@ export declare class MigrateV2ToV3LPPositionRequest extends Message<MigrateV2ToV
|
|
|
20
20
|
*/
|
|
21
21
|
v3Params?: V3Position;
|
|
22
22
|
/**
|
|
23
|
-
* @generated from field: optional
|
|
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
|
|
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:
|
|
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:
|
|
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
|
]);
|
|
@@ -811,7 +811,7 @@ export declare class V2CreateLPPosition extends Message<V2CreateLPPosition> {
|
|
|
811
811
|
*/
|
|
812
812
|
defaultDependentAmount?: string;
|
|
813
813
|
/**
|
|
814
|
-
* @generated from field: optional
|
|
814
|
+
* @generated from field: optional float slippage_tolerance = 11;
|
|
815
815
|
*/
|
|
816
816
|
slippageTolerance?: number;
|
|
817
817
|
/**
|
|
@@ -892,7 +892,7 @@ export declare class V3CreateLPPosition extends Message<V3CreateLPPosition> {
|
|
|
892
892
|
*/
|
|
893
893
|
sqrtRatioX96?: string;
|
|
894
894
|
/**
|
|
895
|
-
* @generated from field: optional
|
|
895
|
+
* @generated from field: optional float slippage_tolerance = 15;
|
|
896
896
|
*/
|
|
897
897
|
slippageTolerance?: number;
|
|
898
898
|
/**
|
|
@@ -989,7 +989,7 @@ export declare class V4CreateLPPosition extends Message<V4CreateLPPosition> {
|
|
|
989
989
|
*/
|
|
990
990
|
defaultDependentAmount?: string;
|
|
991
991
|
/**
|
|
992
|
-
* @generated from field: optional
|
|
992
|
+
* @generated from field: optional float slippage_tolerance = 15;
|
|
993
993
|
*/
|
|
994
994
|
slippageTolerance?: number;
|
|
995
995
|
/**
|
|
@@ -1189,7 +1189,7 @@ export declare class V2IncreaseLPPosition extends Message<V2IncreaseLPPosition>
|
|
|
1189
1189
|
*/
|
|
1190
1190
|
defaultDependentAmount?: string;
|
|
1191
1191
|
/**
|
|
1192
|
-
* @generated from field: optional
|
|
1192
|
+
* @generated from field: optional float slippage_tolerance = 10;
|
|
1193
1193
|
*/
|
|
1194
1194
|
slippageTolerance?: number;
|
|
1195
1195
|
/**
|
|
@@ -1262,7 +1262,7 @@ export declare class V3IncreaseLPPosition extends Message<V3IncreaseLPPosition>
|
|
|
1262
1262
|
*/
|
|
1263
1263
|
sqrtRatioX96?: string;
|
|
1264
1264
|
/**
|
|
1265
|
-
* @generated from field: optional
|
|
1265
|
+
* @generated from field: optional float slippage_tolerance = 13;
|
|
1266
1266
|
*/
|
|
1267
1267
|
slippageTolerance?: number;
|
|
1268
1268
|
/**
|
|
@@ -1335,7 +1335,7 @@ export declare class V4IncreaseLPPosition extends Message<V4IncreaseLPPosition>
|
|
|
1335
1335
|
*/
|
|
1336
1336
|
sqrtRatioX96?: string;
|
|
1337
1337
|
/**
|
|
1338
|
-
* @generated from field: optional
|
|
1338
|
+
* @generated from field: optional float slippage_tolerance = 14;
|
|
1339
1339
|
*/
|
|
1340
1340
|
slippageTolerance?: number;
|
|
1341
1341
|
/**
|
|
@@ -1408,7 +1408,7 @@ export declare class V2DecreaseLPPosition extends Message<V2DecreaseLPPosition>
|
|
|
1408
1408
|
*/
|
|
1409
1409
|
simulateTransaction?: boolean;
|
|
1410
1410
|
/**
|
|
1411
|
-
* @generated from field: optional
|
|
1411
|
+
* @generated from field: optional float slippage_tolerance = 12;
|
|
1412
1412
|
*/
|
|
1413
1413
|
slippageTolerance?: number;
|
|
1414
1414
|
/**
|
|
@@ -1485,7 +1485,7 @@ export declare class V3DecreaseLPPosition extends Message<V3DecreaseLPPosition>
|
|
|
1485
1485
|
*/
|
|
1486
1486
|
simulateTransaction?: boolean;
|
|
1487
1487
|
/**
|
|
1488
|
-
* @generated from field: optional
|
|
1488
|
+
* @generated from field: optional float slippage_tolerance = 16;
|
|
1489
1489
|
*/
|
|
1490
1490
|
slippageTolerance?: number;
|
|
1491
1491
|
/**
|
|
@@ -1550,7 +1550,7 @@ export declare class V4DecreaseLPPosition extends Message<V4DecreaseLPPosition>
|
|
|
1550
1550
|
*/
|
|
1551
1551
|
simulateTransaction?: boolean;
|
|
1552
1552
|
/**
|
|
1553
|
-
* @generated from field: optional
|
|
1553
|
+
* @generated from field: optional float slippage_tolerance = 12;
|
|
1554
1554
|
*/
|
|
1555
1555
|
slippageTolerance?: number;
|
|
1556
1556
|
/**
|
|
@@ -1093,7 +1093,7 @@ V2CreateLPPosition.fields = proto3.util.newFieldList(() => [
|
|
|
1093
1093
|
{ no: 7, name: "independentAmount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1094
1094
|
{ no: 8, name: "independent_token", kind: "enum", T: proto3.getEnumType(IndependentToken), opt: true },
|
|
1095
1095
|
{ no: 10, name: "default_dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1096
|
-
{ no: 11, name: "slippage_tolerance", kind: "scalar", T:
|
|
1096
|
+
{ no: 11, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
1097
1097
|
{ no: 12, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1098
1098
|
{ no: 13, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1099
1099
|
]);
|
|
@@ -1151,7 +1151,7 @@ V3CreateLPPosition.fields = proto3.util.newFieldList(() => [
|
|
|
1151
1151
|
{ no: 12, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1152
1152
|
{ no: 13, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
|
|
1153
1153
|
{ no: 14, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1154
|
-
{ no: 15, name: "slippage_tolerance", kind: "scalar", T:
|
|
1154
|
+
{ no: 15, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
1155
1155
|
{ no: 16, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1156
1156
|
{ no: 17, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1157
1157
|
{ no: 18, name: "batchPermitData", kind: "message", T: PermitBatchData, opt: true },
|
|
@@ -1213,7 +1213,7 @@ V4CreateLPPosition.fields = proto3.util.newFieldList(() => [
|
|
|
1213
1213
|
{ no: 17, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1214
1214
|
{ no: 18, name: "batchPermitData", kind: "message", T: PermitBatchData, opt: true },
|
|
1215
1215
|
{ no: 10, name: "default_dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1216
|
-
{ no: 15, name: "slippage_tolerance", kind: "scalar", T:
|
|
1216
|
+
{ no: 15, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
1217
1217
|
{ no: 16, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1218
1218
|
{ no: 19, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1219
1219
|
]);
|
|
@@ -1414,7 +1414,7 @@ V2IncreaseLPPosition.fields = proto3.util.newFieldList(() => [
|
|
|
1414
1414
|
{ no: 7, name: "independentAmount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1415
1415
|
{ no: 8, name: "independent_token", kind: "enum", T: proto3.getEnumType(IndependentToken), opt: true },
|
|
1416
1416
|
{ no: 9, name: "default_dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1417
|
-
{ no: 10, name: "slippage_tolerance", kind: "scalar", T:
|
|
1417
|
+
{ no: 10, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
1418
1418
|
{ no: 11, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1419
1419
|
{ no: 12, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1420
1420
|
]);
|
|
@@ -1474,7 +1474,7 @@ V3IncreaseLPPosition.fields = proto3.util.newFieldList(() => [
|
|
|
1474
1474
|
{ no: 10, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1475
1475
|
{ no: 11, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
|
|
1476
1476
|
{ no: 12, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1477
|
-
{ no: 13, name: "slippage_tolerance", kind: "scalar", T:
|
|
1477
|
+
{ no: 13, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
1478
1478
|
{ no: 14, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1479
1479
|
{ no: 15, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1480
1480
|
]);
|
|
@@ -1534,7 +1534,7 @@ V4IncreaseLPPosition.fields = proto3.util.newFieldList(() => [
|
|
|
1534
1534
|
{ no: 10, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1535
1535
|
{ no: 11, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
|
|
1536
1536
|
{ no: 12, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1537
|
-
{ no: 14, name: "slippage_tolerance", kind: "scalar", T:
|
|
1537
|
+
{ no: 14, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
1538
1538
|
{ no: 15, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1539
1539
|
{ no: 16, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1540
1540
|
{ no: 17, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
@@ -1606,7 +1606,7 @@ V2DecreaseLPPosition.fields = proto3.util.newFieldList(() => [
|
|
|
1606
1606
|
{ no: 8, name: "liquidity1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1607
1607
|
{ no: 10, name: "collectAsWETH", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1608
1608
|
{ no: 11, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1609
|
-
{ no: 12, name: "slippage_tolerance", kind: "scalar", T:
|
|
1609
|
+
{ no: 12, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
1610
1610
|
{ no: 13, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1611
1611
|
]);
|
|
1612
1612
|
/**
|
|
@@ -1683,7 +1683,7 @@ V3DecreaseLPPosition.fields = proto3.util.newFieldList(() => [
|
|
|
1683
1683
|
{ no: 13, name: "expectedTokenOwed1RawAmount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1684
1684
|
{ no: 14, name: "collectAsWETH", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1685
1685
|
{ no: 15, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1686
|
-
{ no: 16, name: "slippage_tolerance", kind: "scalar", T:
|
|
1686
|
+
{ no: 16, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
1687
1687
|
{ no: 17, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1688
1688
|
]);
|
|
1689
1689
|
/**
|
|
@@ -1745,7 +1745,7 @@ V4DecreaseLPPosition.fields = proto3.util.newFieldList(() => [
|
|
|
1745
1745
|
{ no: 9, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1746
1746
|
{ no: 10, name: "positionLiquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1747
1747
|
{ no: 11, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1748
|
-
{ no: 12, name: "slippage_tolerance", kind: "scalar", T:
|
|
1748
|
+
{ no: 12, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
1749
1749
|
{ no: 13, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1750
1750
|
]);
|
|
1751
1751
|
/**
|
|
@@ -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
|
+
]);
|