@uniswap/client-liquidity 0.3.4 → 1.0.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-LiquidityService_connectquery.d.ts +1 -15
- package/dist/uniswap/liquidity/v1/api-LiquidityService_connectquery.js +1 -15
- package/dist/uniswap/liquidity/v1/api_connect.d.ts +1 -11
- package/dist/uniswap/liquidity/v1/api_connect.js +1 -11
- package/dist/uniswap/liquidity/v1/api_pb.d.ts +1 -91
- package/dist/uniswap/liquidity/v1/api_pb.js +1 -119
- package/dist/uniswap/liquidity/v2/api_pb.d.ts +8 -0
- package/dist/uniswap/liquidity/v2/api_pb.js +2 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { CheckApprovalLPRequest, CheckApprovalLPResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse,
|
|
2
|
+
import { CheckApprovalLPRequest, CheckApprovalLPResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse, MigrateV3ToV4LPPositionRequest, MigrateV3ToV4LPPositionResponse, PoolInfoRequest, PoolInfoResponse } from "./api_pb.js";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from rpc uniswap.liquidity.v1.LiquidityService.MigrateV2ToV3LPPosition
|
|
5
5
|
*/
|
|
@@ -126,17 +126,3 @@ export declare const checkLPApproval: {
|
|
|
126
126
|
readonly typeName: "uniswap.liquidity.v1.LiquidityService";
|
|
127
127
|
};
|
|
128
128
|
};
|
|
129
|
-
/**
|
|
130
|
-
* @generated from rpc uniswap.liquidity.v1.LiquidityService.GetLPPriceDiscrepancy
|
|
131
|
-
*/
|
|
132
|
-
export declare const getLPPriceDiscrepancy: {
|
|
133
|
-
readonly localName: "getLPPriceDiscrepancy";
|
|
134
|
-
readonly name: "GetLPPriceDiscrepancy";
|
|
135
|
-
readonly kind: MethodKind.Unary;
|
|
136
|
-
readonly I: typeof GetLPPriceDiscrepancyRequest;
|
|
137
|
-
readonly O: typeof GetLPPriceDiscrepancyResponse;
|
|
138
|
-
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
139
|
-
readonly service: {
|
|
140
|
-
readonly typeName: "uniswap.liquidity.v1.LiquidityService";
|
|
141
|
-
};
|
|
142
|
-
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
6
|
-
import { CheckApprovalLPRequest, CheckApprovalLPResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse,
|
|
6
|
+
import { CheckApprovalLPRequest, CheckApprovalLPResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse, MigrateV3ToV4LPPositionRequest, MigrateV3ToV4LPPositionResponse, PoolInfoRequest, PoolInfoResponse } from "./api_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from rpc uniswap.liquidity.v1.LiquidityService.MigrateV2ToV3LPPosition
|
|
9
9
|
*/
|
|
@@ -130,17 +130,3 @@ export const checkLPApproval = {
|
|
|
130
130
|
typeName: "uniswap.liquidity.v1.LiquidityService"
|
|
131
131
|
}
|
|
132
132
|
};
|
|
133
|
-
/**
|
|
134
|
-
* @generated from rpc uniswap.liquidity.v1.LiquidityService.GetLPPriceDiscrepancy
|
|
135
|
-
*/
|
|
136
|
-
export const getLPPriceDiscrepancy = {
|
|
137
|
-
localName: "getLPPriceDiscrepancy",
|
|
138
|
-
name: "GetLPPriceDiscrepancy",
|
|
139
|
-
kind: MethodKind.Unary,
|
|
140
|
-
I: GetLPPriceDiscrepancyRequest,
|
|
141
|
-
O: GetLPPriceDiscrepancyResponse,
|
|
142
|
-
idempotency: MethodIdempotency.NoSideEffects,
|
|
143
|
-
service: {
|
|
144
|
-
typeName: "uniswap.liquidity.v1.LiquidityService"
|
|
145
|
-
}
|
|
146
|
-
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CheckApprovalLPRequest, CheckApprovalLPResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse,
|
|
1
|
+
import { CheckApprovalLPRequest, CheckApprovalLPResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse, MigrateV3ToV4LPPositionRequest, MigrateV3ToV4LPPositionResponse, PoolInfoRequest, PoolInfoResponse } from "./api_pb.js";
|
|
2
2
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from service uniswap.liquidity.v1.LiquidityService
|
|
@@ -96,15 +96,5 @@ export declare const LiquidityService: {
|
|
|
96
96
|
readonly kind: MethodKind.Unary;
|
|
97
97
|
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
98
98
|
};
|
|
99
|
-
/**
|
|
100
|
-
* @generated from rpc uniswap.liquidity.v1.LiquidityService.GetLPPriceDiscrepancy
|
|
101
|
-
*/
|
|
102
|
-
readonly getLPPriceDiscrepancy: {
|
|
103
|
-
readonly name: "GetLPPriceDiscrepancy";
|
|
104
|
-
readonly I: typeof GetLPPriceDiscrepancyRequest;
|
|
105
|
-
readonly O: typeof GetLPPriceDiscrepancyResponse;
|
|
106
|
-
readonly kind: MethodKind.Unary;
|
|
107
|
-
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
108
|
-
};
|
|
109
99
|
};
|
|
110
100
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// @generated from file uniswap/liquidity/v1/api.proto (package uniswap.liquidity.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
|
-
import { CheckApprovalLPRequest, CheckApprovalLPResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse,
|
|
5
|
+
import { CheckApprovalLPRequest, CheckApprovalLPResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse, MigrateV3ToV4LPPositionRequest, MigrateV3ToV4LPPositionResponse, PoolInfoRequest, PoolInfoResponse } from "./api_pb.js";
|
|
6
6
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from service uniswap.liquidity.v1.LiquidityService
|
|
@@ -100,15 +100,5 @@ export const LiquidityService = {
|
|
|
100
100
|
kind: MethodKind.Unary,
|
|
101
101
|
idempotency: MethodIdempotency.NoSideEffects,
|
|
102
102
|
},
|
|
103
|
-
/**
|
|
104
|
-
* @generated from rpc uniswap.liquidity.v1.LiquidityService.GetLPPriceDiscrepancy
|
|
105
|
-
*/
|
|
106
|
-
getLPPriceDiscrepancy: {
|
|
107
|
-
name: "GetLPPriceDiscrepancy",
|
|
108
|
-
I: GetLPPriceDiscrepancyRequest,
|
|
109
|
-
O: GetLPPriceDiscrepancyResponse,
|
|
110
|
-
kind: MethodKind.Unary,
|
|
111
|
-
idempotency: MethodIdempotency.NoSideEffects,
|
|
112
|
-
},
|
|
113
103
|
}
|
|
114
104
|
};
|
|
@@ -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 { ChainId, Distributor, NFTPermitData,
|
|
3
|
+
import { ChainId, Distributor, NFTPermitData, PermitBatchData, PoolInformation, PoolParameters, PoolReferenceByProtocol, Protocols, TransactionRequest, V2CheckApprovalLPRequest, V2ClaimLPFeesRequest, V2CreateLPPosition, V2DecreaseLPPosition, V2IncreaseLPPosition, V3CheckApprovalLPRequest, V3ClaimLPFeesRequest, V3CreateLPPosition, V3DecreaseLPPosition, V3IncreaseLPPosition, V3Position, V4CheckApprovalLPRequest, V4ClaimLPFeesRequest, V4CreateLPPosition, V4DecreaseLPPosition, V4IncreaseLPPosition, V4Position } from "./types_pb.js";
|
|
4
4
|
/**
|
|
5
5
|
* REQUESTS & RESPONSES
|
|
6
6
|
*
|
|
@@ -741,93 +741,3 @@ export declare class CheckApprovalLPResponse extends Message<CheckApprovalLPResp
|
|
|
741
741
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CheckApprovalLPResponse;
|
|
742
742
|
static equals(a: CheckApprovalLPResponse | PlainMessage<CheckApprovalLPResponse> | undefined, b: CheckApprovalLPResponse | PlainMessage<CheckApprovalLPResponse> | undefined): boolean;
|
|
743
743
|
}
|
|
744
|
-
/**
|
|
745
|
-
* @generated from message uniswap.liquidity.v1.GetLPPriceDiscrepancyRequest
|
|
746
|
-
*/
|
|
747
|
-
export declare class GetLPPriceDiscrepancyRequest extends Message<GetLPPriceDiscrepancyRequest> {
|
|
748
|
-
/**
|
|
749
|
-
* @generated from field: string txn_hash = 1;
|
|
750
|
-
*/
|
|
751
|
-
txnHash: string;
|
|
752
|
-
/**
|
|
753
|
-
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 2;
|
|
754
|
-
*/
|
|
755
|
-
chainId: ChainId;
|
|
756
|
-
/**
|
|
757
|
-
* @generated from field: string token0 = 3;
|
|
758
|
-
*/
|
|
759
|
-
token0: string;
|
|
760
|
-
/**
|
|
761
|
-
* @generated from field: string token1 = 4;
|
|
762
|
-
*/
|
|
763
|
-
token1: string;
|
|
764
|
-
/**
|
|
765
|
-
* @generated from field: optional int32 tick_spacing = 5;
|
|
766
|
-
*/
|
|
767
|
-
tickSpacing?: number;
|
|
768
|
-
/**
|
|
769
|
-
* @generated from field: optional int32 fee = 6;
|
|
770
|
-
*/
|
|
771
|
-
fee?: number;
|
|
772
|
-
/**
|
|
773
|
-
* @generated from field: optional string hooks = 7;
|
|
774
|
-
*/
|
|
775
|
-
hooks?: string;
|
|
776
|
-
/**
|
|
777
|
-
* @generated from field: string sqrt_ratio_x96 = 8;
|
|
778
|
-
*/
|
|
779
|
-
sqrtRatioX96: string;
|
|
780
|
-
/**
|
|
781
|
-
* @generated from field: uniswap.liquidity.v1.Protocols protocol = 9;
|
|
782
|
-
*/
|
|
783
|
-
protocol: Protocols;
|
|
784
|
-
constructor(data?: PartialMessage<GetLPPriceDiscrepancyRequest>);
|
|
785
|
-
static readonly runtime: typeof proto3;
|
|
786
|
-
static readonly typeName = "uniswap.liquidity.v1.GetLPPriceDiscrepancyRequest";
|
|
787
|
-
static readonly fields: FieldList;
|
|
788
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetLPPriceDiscrepancyRequest;
|
|
789
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetLPPriceDiscrepancyRequest;
|
|
790
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetLPPriceDiscrepancyRequest;
|
|
791
|
-
static equals(a: GetLPPriceDiscrepancyRequest | PlainMessage<GetLPPriceDiscrepancyRequest> | undefined, b: GetLPPriceDiscrepancyRequest | PlainMessage<GetLPPriceDiscrepancyRequest> | undefined): boolean;
|
|
792
|
-
}
|
|
793
|
-
/**
|
|
794
|
-
* @generated from message uniswap.liquidity.v1.GetLPPriceDiscrepancyResponse
|
|
795
|
-
*/
|
|
796
|
-
export declare class GetLPPriceDiscrepancyResponse extends Message<GetLPPriceDiscrepancyResponse> {
|
|
797
|
-
/**
|
|
798
|
-
* @generated from field: string request_id = 1;
|
|
799
|
-
*/
|
|
800
|
-
requestId: string;
|
|
801
|
-
/**
|
|
802
|
-
* @generated from field: string percent_price_difference = 2;
|
|
803
|
-
*/
|
|
804
|
-
percentPriceDifference: string;
|
|
805
|
-
/**
|
|
806
|
-
* @generated from field: uniswap.liquidity.v1.OnChainStatus status = 3;
|
|
807
|
-
*/
|
|
808
|
-
status: OnChainStatus;
|
|
809
|
-
/**
|
|
810
|
-
* @generated from field: string sqrt_ratio_x96_before = 4;
|
|
811
|
-
*/
|
|
812
|
-
sqrtRatioX96Before: string;
|
|
813
|
-
/**
|
|
814
|
-
* @generated from field: string sqrt_ratio_x96_after = 5;
|
|
815
|
-
*/
|
|
816
|
-
sqrtRatioX96After: string;
|
|
817
|
-
/**
|
|
818
|
-
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 6;
|
|
819
|
-
*/
|
|
820
|
-
chainId: ChainId;
|
|
821
|
-
/**
|
|
822
|
-
* @generated from field: uniswap.liquidity.v1.Protocols protocol = 7;
|
|
823
|
-
*/
|
|
824
|
-
protocol: Protocols;
|
|
825
|
-
constructor(data?: PartialMessage<GetLPPriceDiscrepancyResponse>);
|
|
826
|
-
static readonly runtime: typeof proto3;
|
|
827
|
-
static readonly typeName = "uniswap.liquidity.v1.GetLPPriceDiscrepancyResponse";
|
|
828
|
-
static readonly fields: FieldList;
|
|
829
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetLPPriceDiscrepancyResponse;
|
|
830
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetLPPriceDiscrepancyResponse;
|
|
831
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetLPPriceDiscrepancyResponse;
|
|
832
|
-
static equals(a: GetLPPriceDiscrepancyResponse | PlainMessage<GetLPPriceDiscrepancyResponse> | undefined, b: GetLPPriceDiscrepancyResponse | PlainMessage<GetLPPriceDiscrepancyResponse> | undefined): boolean;
|
|
833
|
-
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
|
-
import { ChainId, Distributor, NFTPermitData,
|
|
6
|
+
import { ChainId, Distributor, NFTPermitData, PermitBatchData, PoolInformation, PoolParameters, PoolReferenceByProtocol, Protocols, TransactionRequest, V2CheckApprovalLPRequest, V2ClaimLPFeesRequest, V2CreateLPPosition, V2DecreaseLPPosition, V2IncreaseLPPosition, V3CheckApprovalLPRequest, V3ClaimLPFeesRequest, V3CreateLPPosition, V3DecreaseLPPosition, V3IncreaseLPPosition, V3Position, V4CheckApprovalLPRequest, V4ClaimLPFeesRequest, V4CreateLPPosition, V4DecreaseLPPosition, V4IncreaseLPPosition, V4Position } from "./types_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* REQUESTS & RESPONSES
|
|
9
9
|
*
|
|
@@ -707,121 +707,3 @@ CheckApprovalLPResponse.fields = proto3.util.newFieldList(() => [
|
|
|
707
707
|
{ no: 16, name: "gas_fee_token_0_permit", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
708
708
|
{ no: 17, name: "gas_fee_token_1_permit", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
709
709
|
]);
|
|
710
|
-
/**
|
|
711
|
-
* @generated from message uniswap.liquidity.v1.GetLPPriceDiscrepancyRequest
|
|
712
|
-
*/
|
|
713
|
-
export class GetLPPriceDiscrepancyRequest extends Message {
|
|
714
|
-
constructor(data) {
|
|
715
|
-
super();
|
|
716
|
-
/**
|
|
717
|
-
* @generated from field: string txn_hash = 1;
|
|
718
|
-
*/
|
|
719
|
-
this.txnHash = "";
|
|
720
|
-
/**
|
|
721
|
-
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 2;
|
|
722
|
-
*/
|
|
723
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
724
|
-
/**
|
|
725
|
-
* @generated from field: string token0 = 3;
|
|
726
|
-
*/
|
|
727
|
-
this.token0 = "";
|
|
728
|
-
/**
|
|
729
|
-
* @generated from field: string token1 = 4;
|
|
730
|
-
*/
|
|
731
|
-
this.token1 = "";
|
|
732
|
-
/**
|
|
733
|
-
* @generated from field: string sqrt_ratio_x96 = 8;
|
|
734
|
-
*/
|
|
735
|
-
this.sqrtRatioX96 = "";
|
|
736
|
-
/**
|
|
737
|
-
* @generated from field: uniswap.liquidity.v1.Protocols protocol = 9;
|
|
738
|
-
*/
|
|
739
|
-
this.protocol = Protocols.V2;
|
|
740
|
-
proto3.util.initPartial(data, this);
|
|
741
|
-
}
|
|
742
|
-
static fromBinary(bytes, options) {
|
|
743
|
-
return new GetLPPriceDiscrepancyRequest().fromBinary(bytes, options);
|
|
744
|
-
}
|
|
745
|
-
static fromJson(jsonValue, options) {
|
|
746
|
-
return new GetLPPriceDiscrepancyRequest().fromJson(jsonValue, options);
|
|
747
|
-
}
|
|
748
|
-
static fromJsonString(jsonString, options) {
|
|
749
|
-
return new GetLPPriceDiscrepancyRequest().fromJsonString(jsonString, options);
|
|
750
|
-
}
|
|
751
|
-
static equals(a, b) {
|
|
752
|
-
return proto3.util.equals(GetLPPriceDiscrepancyRequest, a, b);
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
GetLPPriceDiscrepancyRequest.runtime = proto3;
|
|
756
|
-
GetLPPriceDiscrepancyRequest.typeName = "uniswap.liquidity.v1.GetLPPriceDiscrepancyRequest";
|
|
757
|
-
GetLPPriceDiscrepancyRequest.fields = proto3.util.newFieldList(() => [
|
|
758
|
-
{ no: 1, name: "txn_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
759
|
-
{ no: 2, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
760
|
-
{ no: 3, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
761
|
-
{ no: 4, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
762
|
-
{ no: 5, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
763
|
-
{ no: 6, name: "fee", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
764
|
-
{ no: 7, name: "hooks", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
765
|
-
{ no: 8, name: "sqrt_ratio_x96", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
766
|
-
{ no: 9, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
767
|
-
]);
|
|
768
|
-
/**
|
|
769
|
-
* @generated from message uniswap.liquidity.v1.GetLPPriceDiscrepancyResponse
|
|
770
|
-
*/
|
|
771
|
-
export class GetLPPriceDiscrepancyResponse extends Message {
|
|
772
|
-
constructor(data) {
|
|
773
|
-
super();
|
|
774
|
-
/**
|
|
775
|
-
* @generated from field: string request_id = 1;
|
|
776
|
-
*/
|
|
777
|
-
this.requestId = "";
|
|
778
|
-
/**
|
|
779
|
-
* @generated from field: string percent_price_difference = 2;
|
|
780
|
-
*/
|
|
781
|
-
this.percentPriceDifference = "";
|
|
782
|
-
/**
|
|
783
|
-
* @generated from field: uniswap.liquidity.v1.OnChainStatus status = 3;
|
|
784
|
-
*/
|
|
785
|
-
this.status = OnChainStatus.ON_CHAIN_STATUS_UNSPECIFIED;
|
|
786
|
-
/**
|
|
787
|
-
* @generated from field: string sqrt_ratio_x96_before = 4;
|
|
788
|
-
*/
|
|
789
|
-
this.sqrtRatioX96Before = "";
|
|
790
|
-
/**
|
|
791
|
-
* @generated from field: string sqrt_ratio_x96_after = 5;
|
|
792
|
-
*/
|
|
793
|
-
this.sqrtRatioX96After = "";
|
|
794
|
-
/**
|
|
795
|
-
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 6;
|
|
796
|
-
*/
|
|
797
|
-
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
798
|
-
/**
|
|
799
|
-
* @generated from field: uniswap.liquidity.v1.Protocols protocol = 7;
|
|
800
|
-
*/
|
|
801
|
-
this.protocol = Protocols.V2;
|
|
802
|
-
proto3.util.initPartial(data, this);
|
|
803
|
-
}
|
|
804
|
-
static fromBinary(bytes, options) {
|
|
805
|
-
return new GetLPPriceDiscrepancyResponse().fromBinary(bytes, options);
|
|
806
|
-
}
|
|
807
|
-
static fromJson(jsonValue, options) {
|
|
808
|
-
return new GetLPPriceDiscrepancyResponse().fromJson(jsonValue, options);
|
|
809
|
-
}
|
|
810
|
-
static fromJsonString(jsonString, options) {
|
|
811
|
-
return new GetLPPriceDiscrepancyResponse().fromJsonString(jsonString, options);
|
|
812
|
-
}
|
|
813
|
-
static equals(a, b) {
|
|
814
|
-
return proto3.util.equals(GetLPPriceDiscrepancyResponse, a, b);
|
|
815
|
-
}
|
|
816
|
-
}
|
|
817
|
-
GetLPPriceDiscrepancyResponse.runtime = proto3;
|
|
818
|
-
GetLPPriceDiscrepancyResponse.typeName = "uniswap.liquidity.v1.GetLPPriceDiscrepancyResponse";
|
|
819
|
-
GetLPPriceDiscrepancyResponse.fields = proto3.util.newFieldList(() => [
|
|
820
|
-
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
821
|
-
{ no: 2, name: "percent_price_difference", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
822
|
-
{ no: 3, name: "status", kind: "enum", T: proto3.getEnumType(OnChainStatus) },
|
|
823
|
-
{ no: 4, name: "sqrt_ratio_x96_before", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
824
|
-
{ no: 5, name: "sqrt_ratio_x96_after", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
825
|
-
{ no: 6, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
826
|
-
{ no: 7, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
827
|
-
]);
|
|
@@ -404,6 +404,10 @@ export declare class IncreasePositionRequest extends Message<IncreasePositionReq
|
|
|
404
404
|
* @generated from field: optional bool include_approval_simulation = 14;
|
|
405
405
|
*/
|
|
406
406
|
includeApprovalSimulation?: boolean;
|
|
407
|
+
/**
|
|
408
|
+
* @generated from field: optional string native_token_balance = 15;
|
|
409
|
+
*/
|
|
410
|
+
nativeTokenBalance?: string;
|
|
407
411
|
constructor(data?: PartialMessage<IncreasePositionRequest>);
|
|
408
412
|
static readonly runtime: typeof proto3;
|
|
409
413
|
static readonly typeName = "uniswap.liquidity.v2.IncreasePositionRequest";
|
|
@@ -437,6 +441,10 @@ export declare class IncreasePositionResponse extends Message<IncreasePositionRe
|
|
|
437
441
|
* @generated from field: optional string gas_fee = 5;
|
|
438
442
|
*/
|
|
439
443
|
gasFee?: string;
|
|
444
|
+
/**
|
|
445
|
+
* @generated from field: optional float slippage = 6;
|
|
446
|
+
*/
|
|
447
|
+
slippage?: number;
|
|
440
448
|
constructor(data?: PartialMessage<IncreasePositionResponse>);
|
|
441
449
|
static readonly runtime: typeof proto3;
|
|
442
450
|
static readonly typeName = "uniswap.liquidity.v2.IncreasePositionResponse";
|
|
@@ -404,6 +404,7 @@ IncreasePositionRequest.fields = proto3.util.newFieldList(() => [
|
|
|
404
404
|
{ no: 12, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
405
405
|
{ no: 13, name: "urgency", kind: "enum", T: proto3.getEnumType(GasUrgency), opt: true },
|
|
406
406
|
{ no: 14, name: "include_approval_simulation", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
407
|
+
{ no: 15, name: "native_token_balance", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
407
408
|
]);
|
|
408
409
|
/**
|
|
409
410
|
* @generated from message uniswap.liquidity.v2.IncreasePositionResponse
|
|
@@ -438,6 +439,7 @@ IncreasePositionResponse.fields = proto3.util.newFieldList(() => [
|
|
|
438
439
|
{ no: 3, name: "token_1", kind: "message", T: LPToken },
|
|
439
440
|
{ no: 4, name: "increase", kind: "message", T: TransactionRequest },
|
|
440
441
|
{ no: 5, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
442
|
+
{ no: 6, name: "slippage", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
441
443
|
]);
|
|
442
444
|
/**
|
|
443
445
|
* CreatePosition (V3/V4)
|