@uniswap/client-liquidity 0.0.12 → 0.0.13
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.
|
@@ -311,6 +311,10 @@ export declare class CreateLPPositionResponse extends Message<CreateLPPositionRe
|
|
|
311
311
|
* @generated from field: optional string sqrtRatioX96 = 6;
|
|
312
312
|
*/
|
|
313
313
|
sqrtRatioX96?: string;
|
|
314
|
+
/**
|
|
315
|
+
* @generated from field: optional string gas_fee = 7;
|
|
316
|
+
*/
|
|
317
|
+
gasFee?: string;
|
|
314
318
|
constructor(data?: PartialMessage<CreateLPPositionResponse>);
|
|
315
319
|
static readonly runtime: typeof proto3;
|
|
316
320
|
static readonly typeName = "uniswap.liquidity.v1.CreateLPPositionResponse";
|
|
@@ -452,6 +456,10 @@ export declare class IncreaseLPPositionResponse extends Message<IncreaseLPPositi
|
|
|
452
456
|
* @generated from field: optional string sqrtRatioX96 = 6;
|
|
453
457
|
*/
|
|
454
458
|
sqrtRatioX96?: string;
|
|
459
|
+
/**
|
|
460
|
+
* @generated from field: optional string gas_fee = 7;
|
|
461
|
+
*/
|
|
462
|
+
gasFee?: string;
|
|
455
463
|
constructor(data?: PartialMessage<IncreaseLPPositionResponse>);
|
|
456
464
|
static readonly runtime: typeof proto3;
|
|
457
465
|
static readonly typeName = "uniswap.liquidity.v1.IncreaseLPPositionResponse";
|
|
@@ -524,7 +532,7 @@ export declare class DecreaseLPPositionResponse extends Message<DecreaseLPPositi
|
|
|
524
532
|
*/
|
|
525
533
|
sqrtRatioX96?: string;
|
|
526
534
|
/**
|
|
527
|
-
* @generated from field: optional string
|
|
535
|
+
* @generated from field: optional string gas_fee = 6;
|
|
528
536
|
*/
|
|
529
537
|
gasFee?: string;
|
|
530
538
|
constructor(data?: PartialMessage<DecreaseLPPositionResponse>);
|
|
@@ -587,7 +595,7 @@ export declare class ClaimLPFeesResponse extends Message<ClaimLPFeesResponse> {
|
|
|
587
595
|
*/
|
|
588
596
|
claim?: TransactionRequest;
|
|
589
597
|
/**
|
|
590
|
-
* @generated from field: optional string
|
|
598
|
+
* @generated from field: optional string gas_fee = 3;
|
|
591
599
|
*/
|
|
592
600
|
gasFee?: string;
|
|
593
601
|
constructor(data?: PartialMessage<ClaimLPFeesResponse>);
|
|
@@ -339,6 +339,7 @@ CreateLPPositionResponse.fields = proto3.util.newFieldList(() => [
|
|
|
339
339
|
{ no: 4, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
340
340
|
{ no: 5, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
|
|
341
341
|
{ no: 6, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
342
|
+
{ no: 7, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
342
343
|
]);
|
|
343
344
|
/**
|
|
344
345
|
* @generated from message uniswap.liquidity.v1.PoolInfoRequest
|
|
@@ -490,6 +491,7 @@ IncreaseLPPositionResponse.fields = proto3.util.newFieldList(() => [
|
|
|
490
491
|
{ no: 4, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
491
492
|
{ no: 5, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
|
|
492
493
|
{ no: 6, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
494
|
+
{ no: 7, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
493
495
|
]);
|
|
494
496
|
/**
|
|
495
497
|
* @generated from message uniswap.liquidity.v1.DecreaseLPPositionRequest
|
|
@@ -556,7 +558,7 @@ DecreaseLPPositionResponse.fields = proto3.util.newFieldList(() => [
|
|
|
556
558
|
{ no: 3, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
557
559
|
{ no: 4, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
|
|
558
560
|
{ no: 5, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
559
|
-
{ no: 6, name: "
|
|
561
|
+
{ no: 6, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
560
562
|
]);
|
|
561
563
|
/**
|
|
562
564
|
* @generated from message uniswap.liquidity.v1.ClaimLPFeesRequest
|
|
@@ -620,7 +622,7 @@ ClaimLPFeesResponse.typeName = "uniswap.liquidity.v1.ClaimLPFeesResponse";
|
|
|
620
622
|
ClaimLPFeesResponse.fields = proto3.util.newFieldList(() => [
|
|
621
623
|
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
622
624
|
{ no: 2, name: "claim", kind: "message", T: TransactionRequest, opt: true },
|
|
623
|
-
{ no: 3, name: "
|
|
625
|
+
{ no: 3, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
624
626
|
]);
|
|
625
627
|
/**
|
|
626
628
|
* @generated from message uniswap.liquidity.v1.CheckApprovalLPRequest
|
|
@@ -742,15 +742,15 @@ export declare class V2CreateLPPosition extends Message<V2CreateLPPosition> {
|
|
|
742
742
|
*/
|
|
743
743
|
defaultDependentAmount?: string;
|
|
744
744
|
/**
|
|
745
|
-
* @generated from field: optional int32 slippage_tolerance =
|
|
745
|
+
* @generated from field: optional int32 slippage_tolerance = 11;
|
|
746
746
|
*/
|
|
747
747
|
slippageTolerance?: number;
|
|
748
748
|
/**
|
|
749
|
-
* @generated from field: optional int32 deadline =
|
|
749
|
+
* @generated from field: optional int32 deadline = 12;
|
|
750
750
|
*/
|
|
751
751
|
deadline?: number;
|
|
752
752
|
/**
|
|
753
|
-
* @generated from field: bool simulate_transaction =
|
|
753
|
+
* @generated from field: bool simulate_transaction = 13;
|
|
754
754
|
*/
|
|
755
755
|
simulateTransaction: boolean;
|
|
756
756
|
constructor(data?: PartialMessage<V2CreateLPPosition>);
|
|
@@ -782,10 +782,6 @@ export declare class V3CreateLPPosition extends Message<V3CreateLPPosition> {
|
|
|
782
782
|
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 4;
|
|
783
783
|
*/
|
|
784
784
|
chainId: ChainId;
|
|
785
|
-
/**
|
|
786
|
-
* @generated from field: optional string initial_price = 11;
|
|
787
|
-
*/
|
|
788
|
-
initialPrice?: string;
|
|
789
785
|
/**
|
|
790
786
|
* @generated from field: optional string amount0 = 5;
|
|
791
787
|
*/
|
|
@@ -806,6 +802,14 @@ export declare class V3CreateLPPosition extends Message<V3CreateLPPosition> {
|
|
|
806
802
|
* @generated from field: optional string initial_dependent_amount = 9;
|
|
807
803
|
*/
|
|
808
804
|
initialDependentAmount?: string;
|
|
805
|
+
/**
|
|
806
|
+
* @generated from field: optional string default_dependent_amount = 10;
|
|
807
|
+
*/
|
|
808
|
+
defaultDependentAmount?: string;
|
|
809
|
+
/**
|
|
810
|
+
* @generated from field: optional string initial_price = 11;
|
|
811
|
+
*/
|
|
812
|
+
initialPrice?: string;
|
|
809
813
|
/**
|
|
810
814
|
* @generated from field: optional string pool_liquidity = 12;
|
|
811
815
|
*/
|
|
@@ -826,14 +830,6 @@ export declare class V3CreateLPPosition extends Message<V3CreateLPPosition> {
|
|
|
826
830
|
* @generated from field: optional int32 deadline = 16;
|
|
827
831
|
*/
|
|
828
832
|
deadline?: number;
|
|
829
|
-
/**
|
|
830
|
-
* @generated from field: bool simulate_transaction = 19;
|
|
831
|
-
*/
|
|
832
|
-
simulateTransaction: boolean;
|
|
833
|
-
/**
|
|
834
|
-
* @generated from field: optional string default_dependent_amount = 10;
|
|
835
|
-
*/
|
|
836
|
-
defaultDependentAmount?: string;
|
|
837
833
|
/**
|
|
838
834
|
* @generated from field: optional string signature = 17;
|
|
839
835
|
*/
|
|
@@ -842,6 +838,10 @@ export declare class V3CreateLPPosition extends Message<V3CreateLPPosition> {
|
|
|
842
838
|
* @generated from field: optional uniswap.liquidity.v1.PermitBatchData batchPermitData = 18;
|
|
843
839
|
*/
|
|
844
840
|
batchPermitData?: PermitBatchData;
|
|
841
|
+
/**
|
|
842
|
+
* @generated from field: bool simulate_transaction = 19;
|
|
843
|
+
*/
|
|
844
|
+
simulateTransaction: boolean;
|
|
845
845
|
constructor(data?: PartialMessage<V3CreateLPPosition>);
|
|
846
846
|
static readonly runtime: typeof proto3;
|
|
847
847
|
static readonly typeName = "uniswap.liquidity.v1.V3CreateLPPosition";
|
|
@@ -1193,15 +1193,15 @@ export declare class V3IncreaseLPPosition extends Message<V3IncreaseLPPosition>
|
|
|
1193
1193
|
*/
|
|
1194
1194
|
sqrtRatioX96?: string;
|
|
1195
1195
|
/**
|
|
1196
|
-
* @generated from field: optional int32 slippage_tolerance =
|
|
1196
|
+
* @generated from field: optional int32 slippage_tolerance = 13;
|
|
1197
1197
|
*/
|
|
1198
1198
|
slippageTolerance?: number;
|
|
1199
1199
|
/**
|
|
1200
|
-
* @generated from field: optional int32 deadline =
|
|
1200
|
+
* @generated from field: optional int32 deadline = 14;
|
|
1201
1201
|
*/
|
|
1202
1202
|
deadline?: number;
|
|
1203
1203
|
/**
|
|
1204
|
-
* @generated from field: bool simulate_transaction =
|
|
1204
|
+
* @generated from field: bool simulate_transaction = 15;
|
|
1205
1205
|
*/
|
|
1206
1206
|
simulateTransaction: boolean;
|
|
1207
1207
|
constructor(data?: PartialMessage<V3IncreaseLPPosition>);
|
|
@@ -1319,9 +1319,9 @@ export declare class V2DecreaseLPPosition extends Message<V2DecreaseLPPosition>
|
|
|
1319
1319
|
*/
|
|
1320
1320
|
positionLiquidity: string;
|
|
1321
1321
|
/**
|
|
1322
|
-
* @generated from field:
|
|
1322
|
+
* @generated from field: string liquidityPercentageToDecrease = 6;
|
|
1323
1323
|
*/
|
|
1324
|
-
liquidityPercentageToDecrease:
|
|
1324
|
+
liquidityPercentageToDecrease: string;
|
|
1325
1325
|
/**
|
|
1326
1326
|
* @generated from field: string liquidity0 = 7;
|
|
1327
1327
|
*/
|
|
@@ -969,7 +969,7 @@ export class V2CreateLPPosition extends Message {
|
|
|
969
969
|
*/
|
|
970
970
|
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
971
971
|
/**
|
|
972
|
-
* @generated from field: bool simulate_transaction =
|
|
972
|
+
* @generated from field: bool simulate_transaction = 13;
|
|
973
973
|
*/
|
|
974
974
|
this.simulateTransaction = false;
|
|
975
975
|
proto3.util.initPartial(data, this);
|
|
@@ -999,9 +999,9 @@ V2CreateLPPosition.fields = proto3.util.newFieldList(() => [
|
|
|
999
999
|
{ no: 7, name: "independentAmount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1000
1000
|
{ no: 8, name: "independent_token", kind: "enum", T: proto3.getEnumType(IndependentToken), opt: true },
|
|
1001
1001
|
{ no: 10, name: "default_dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1002
|
-
{ no:
|
|
1003
|
-
{ no:
|
|
1004
|
-
{ no:
|
|
1002
|
+
{ no: 11, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1003
|
+
{ no: 12, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1004
|
+
{ no: 13, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1005
1005
|
]);
|
|
1006
1006
|
/**
|
|
1007
1007
|
* @generated from message uniswap.liquidity.v1.V3CreateLPPosition
|
|
@@ -1047,21 +1047,21 @@ V3CreateLPPosition.fields = proto3.util.newFieldList(() => [
|
|
|
1047
1047
|
{ no: 2, name: "position", kind: "message", T: V3Position },
|
|
1048
1048
|
{ no: 3, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1049
1049
|
{ no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
1050
|
-
{ no: 11, name: "initial_price", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1051
1050
|
{ no: 5, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1052
1051
|
{ no: 6, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1053
1052
|
{ no: 7, name: "independentAmount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1054
1053
|
{ no: 8, name: "independent_token", kind: "enum", T: proto3.getEnumType(IndependentToken), opt: true },
|
|
1055
1054
|
{ no: 9, name: "initial_dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1055
|
+
{ no: 10, name: "default_dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1056
|
+
{ no: 11, name: "initial_price", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1056
1057
|
{ no: 12, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1057
1058
|
{ no: 13, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
|
|
1058
1059
|
{ no: 14, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1059
1060
|
{ no: 15, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1060
1061
|
{ no: 16, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1061
|
-
{ no: 19, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1062
|
-
{ no: 10, name: "default_dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1063
1062
|
{ no: 17, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1064
1063
|
{ no: 18, name: "batchPermitData", kind: "message", T: PermitBatchData, opt: true },
|
|
1064
|
+
{ no: 19, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1065
1065
|
]);
|
|
1066
1066
|
/**
|
|
1067
1067
|
* @generated from message uniswap.liquidity.v1.V4CreateLPPosition
|
|
@@ -1347,7 +1347,7 @@ export class V3IncreaseLPPosition extends Message {
|
|
|
1347
1347
|
*/
|
|
1348
1348
|
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
1349
1349
|
/**
|
|
1350
|
-
* @generated from field: bool simulate_transaction =
|
|
1350
|
+
* @generated from field: bool simulate_transaction = 15;
|
|
1351
1351
|
*/
|
|
1352
1352
|
this.simulateTransaction = false;
|
|
1353
1353
|
proto3.util.initPartial(data, this);
|
|
@@ -1380,9 +1380,9 @@ V3IncreaseLPPosition.fields = proto3.util.newFieldList(() => [
|
|
|
1380
1380
|
{ no: 10, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1381
1381
|
{ no: 11, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
|
|
1382
1382
|
{ no: 12, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1383
|
-
{ no:
|
|
1384
|
-
{ no:
|
|
1385
|
-
{ no:
|
|
1383
|
+
{ no: 13, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1384
|
+
{ no: 14, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1385
|
+
{ no: 15, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1386
1386
|
]);
|
|
1387
1387
|
/**
|
|
1388
1388
|
* @generated from message uniswap.liquidity.v1.V4IncreaseLPPosition
|
|
@@ -1469,9 +1469,9 @@ export class V2DecreaseLPPosition extends Message {
|
|
|
1469
1469
|
*/
|
|
1470
1470
|
this.positionLiquidity = "";
|
|
1471
1471
|
/**
|
|
1472
|
-
* @generated from field:
|
|
1472
|
+
* @generated from field: string liquidityPercentageToDecrease = 6;
|
|
1473
1473
|
*/
|
|
1474
|
-
this.liquidityPercentageToDecrease =
|
|
1474
|
+
this.liquidityPercentageToDecrease = "";
|
|
1475
1475
|
/**
|
|
1476
1476
|
* @generated from field: string liquidity0 = 7;
|
|
1477
1477
|
*/
|
|
@@ -1507,7 +1507,7 @@ V2DecreaseLPPosition.fields = proto3.util.newFieldList(() => [
|
|
|
1507
1507
|
{ no: 3, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1508
1508
|
{ no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
1509
1509
|
{ no: 5, name: "positionLiquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1510
|
-
{ no: 6, name: "liquidityPercentageToDecrease", kind: "scalar", T:
|
|
1510
|
+
{ no: 6, name: "liquidityPercentageToDecrease", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1511
1511
|
{ no: 7, name: "liquidity0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1512
1512
|
{ no: 8, name: "liquidity1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1513
1513
|
{ no: 10, name: "collectAsWETH", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|