@uniswap/client-liquidity 0.0.11 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
2
- import { ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse, MigrateV3ToV4LPPositionRequest, MigrateV3ToV4LPPositionResponse, PoolInfoRequest, PoolInfoResponse } from "./api_pb.js";
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
  */
@@ -112,3 +112,17 @@ export declare const claimLPFees: {
112
112
  readonly typeName: "uniswap.liquidity.v1.LiquidityService";
113
113
  };
114
114
  };
115
+ /**
116
+ * @generated from rpc uniswap.liquidity.v1.LiquidityService.CheckLPApproval
117
+ */
118
+ export declare const checkLPApproval: {
119
+ readonly localName: "checkLPApproval";
120
+ readonly name: "CheckLPApproval";
121
+ readonly kind: MethodKind.Unary;
122
+ readonly I: typeof CheckApprovalLPRequest;
123
+ readonly O: typeof CheckApprovalLPResponse;
124
+ readonly idempotency: MethodIdempotency.NoSideEffects;
125
+ readonly service: {
126
+ readonly typeName: "uniswap.liquidity.v1.LiquidityService";
127
+ };
128
+ };
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
6
- import { ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse, MigrateV3ToV4LPPositionRequest, MigrateV3ToV4LPPositionResponse, PoolInfoRequest, PoolInfoResponse } from "./api_pb.js";
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
  */
@@ -116,3 +116,17 @@ export const claimLPFees = {
116
116
  typeName: "uniswap.liquidity.v1.LiquidityService"
117
117
  }
118
118
  };
119
+ /**
120
+ * @generated from rpc uniswap.liquidity.v1.LiquidityService.CheckLPApproval
121
+ */
122
+ export const checkLPApproval = {
123
+ localName: "checkLPApproval",
124
+ name: "CheckLPApproval",
125
+ kind: MethodKind.Unary,
126
+ I: CheckApprovalLPRequest,
127
+ O: CheckApprovalLPResponse,
128
+ idempotency: MethodIdempotency.NoSideEffects,
129
+ service: {
130
+ typeName: "uniswap.liquidity.v1.LiquidityService"
131
+ }
132
+ };
@@ -1,4 +1,4 @@
1
- import { ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse, MigrateV3ToV4LPPositionRequest, MigrateV3ToV4LPPositionResponse, PoolInfoRequest, PoolInfoResponse } from "./api_pb.js";
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
@@ -86,5 +86,15 @@ export declare const LiquidityService: {
86
86
  readonly kind: MethodKind.Unary;
87
87
  readonly idempotency: MethodIdempotency.NoSideEffects;
88
88
  };
89
+ /**
90
+ * @generated from rpc uniswap.liquidity.v1.LiquidityService.CheckLPApproval
91
+ */
92
+ readonly checkLPApproval: {
93
+ readonly name: "CheckLPApproval";
94
+ readonly I: typeof CheckApprovalLPRequest;
95
+ readonly O: typeof CheckApprovalLPResponse;
96
+ readonly kind: MethodKind.Unary;
97
+ readonly idempotency: MethodIdempotency.NoSideEffects;
98
+ };
89
99
  };
90
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 { ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse, MigrateV3ToV4LPPositionRequest, MigrateV3ToV4LPPositionResponse, PoolInfoRequest, PoolInfoResponse } from "./api_pb.js";
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
@@ -90,5 +90,15 @@ export const LiquidityService = {
90
90
  kind: MethodKind.Unary,
91
91
  idempotency: MethodIdempotency.NoSideEffects,
92
92
  },
93
+ /**
94
+ * @generated from rpc uniswap.liquidity.v1.LiquidityService.CheckLPApproval
95
+ */
96
+ checkLPApproval: {
97
+ name: "CheckLPApproval",
98
+ I: CheckApprovalLPRequest,
99
+ O: CheckApprovalLPResponse,
100
+ kind: MethodKind.Unary,
101
+ idempotency: MethodIdempotency.NoSideEffects,
102
+ },
93
103
  }
94
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, PoolInformation, PoolParameters, PoolReferenceByProtocol, Protocols, TransactionRequest, V2ClaimLPFeesRequest, V2CreateLPPosition, V2DecreaseLPPosition, V2IncreaseLPPosition, V3ClaimLPFeesRequest, V3CreateLPPosition, V3DecreaseLPPosition, V3IncreaseLPPosition, V3Position, V4ClaimLPFeesRequest, V4CreateLPPosition, V4DecreaseLPPosition, V4IncreaseLPPosition, V4Position } from "./types_pb.js";
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
  *
@@ -599,3 +599,133 @@ export declare class ClaimLPFeesResponse extends Message<ClaimLPFeesResponse> {
599
599
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClaimLPFeesResponse;
600
600
  static equals(a: ClaimLPFeesResponse | PlainMessage<ClaimLPFeesResponse> | undefined, b: ClaimLPFeesResponse | PlainMessage<ClaimLPFeesResponse> | undefined): boolean;
601
601
  }
602
+ /**
603
+ * @generated from message uniswap.liquidity.v1.CheckApprovalLPRequest
604
+ */
605
+ export declare class CheckApprovalLPRequest extends Message<CheckApprovalLPRequest> {
606
+ /**
607
+ * @generated from oneof uniswap.liquidity.v1.CheckApprovalLPRequest.checkApprovalLPRequest
608
+ */
609
+ checkApprovalLPRequest: {
610
+ /**
611
+ * @generated from field: uniswap.liquidity.v1.V2CheckApprovalLPRequest v2_check_approval_lp_request = 1;
612
+ */
613
+ value: V2CheckApprovalLPRequest;
614
+ case: "v2CheckApprovalLpRequest";
615
+ } | {
616
+ /**
617
+ * @generated from field: uniswap.liquidity.v1.V3CheckApprovalLPRequest v3_check_approval_lp_request = 2;
618
+ */
619
+ value: V3CheckApprovalLPRequest;
620
+ case: "v3CheckApprovalLpRequest";
621
+ } | {
622
+ /**
623
+ * @generated from field: uniswap.liquidity.v1.V4CheckApprovalLPRequest v4_check_approval_lp_request = 3;
624
+ */
625
+ value: V4CheckApprovalLPRequest;
626
+ case: "v4CheckApprovalLpRequest";
627
+ } | {
628
+ case: undefined;
629
+ value?: undefined;
630
+ };
631
+ constructor(data?: PartialMessage<CheckApprovalLPRequest>);
632
+ static readonly runtime: typeof proto3;
633
+ static readonly typeName = "uniswap.liquidity.v1.CheckApprovalLPRequest";
634
+ static readonly fields: FieldList;
635
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CheckApprovalLPRequest;
636
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CheckApprovalLPRequest;
637
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CheckApprovalLPRequest;
638
+ static equals(a: CheckApprovalLPRequest | PlainMessage<CheckApprovalLPRequest> | undefined, b: CheckApprovalLPRequest | PlainMessage<CheckApprovalLPRequest> | undefined): boolean;
639
+ }
640
+ /**
641
+ * @generated from message uniswap.liquidity.v1.CheckApprovalLPResponse
642
+ */
643
+ export declare class CheckApprovalLPResponse extends Message<CheckApprovalLPResponse> {
644
+ /**
645
+ * @generated from field: string request_id = 1;
646
+ */
647
+ requestId: string;
648
+ /**
649
+ * @generated from field: optional uniswap.liquidity.v1.TransactionRequest token_0_approval = 2;
650
+ */
651
+ token0Approval?: TransactionRequest;
652
+ /**
653
+ * @generated from field: optional uniswap.liquidity.v1.TransactionRequest token_1_approval = 3;
654
+ */
655
+ token1Approval?: TransactionRequest;
656
+ /**
657
+ * @generated from field: optional uniswap.liquidity.v1.TransactionRequest token_0_Cancel = 4;
658
+ */
659
+ token0Cancel?: TransactionRequest;
660
+ /**
661
+ * @generated from field: optional uniswap.liquidity.v1.TransactionRequest token_1_Cancel = 5;
662
+ */
663
+ token1Cancel?: TransactionRequest;
664
+ /**
665
+ * @generated from field: optional uniswap.liquidity.v1.TransactionRequest position_token_approval = 6;
666
+ */
667
+ positionTokenApproval?: TransactionRequest;
668
+ /**
669
+ * @generated from oneof uniswap.liquidity.v1.CheckApprovalLPResponse.permitData
670
+ */
671
+ permitData: {
672
+ /**
673
+ * @generated from field: uniswap.liquidity.v1.PermitBatchData permit_batch_data = 7;
674
+ */
675
+ value: PermitBatchData;
676
+ case: "permitBatchData";
677
+ } | {
678
+ /**
679
+ * @generated from field: uniswap.liquidity.v1.NFTPermitData nft_permit_data = 8;
680
+ */
681
+ value: NFTPermitData;
682
+ case: "nftPermitData";
683
+ } | {
684
+ case: undefined;
685
+ value?: undefined;
686
+ };
687
+ /**
688
+ * @generated from field: optional uniswap.liquidity.v1.TransactionRequest token_0_permit_transaction = 9;
689
+ */
690
+ token0PermitTransaction?: TransactionRequest;
691
+ /**
692
+ * @generated from field: optional uniswap.liquidity.v1.TransactionRequest token_1_permit_transaction = 10;
693
+ */
694
+ token1PermitTransaction?: TransactionRequest;
695
+ /**
696
+ * @generated from field: optional string gas_fee_token_0_approval = 11;
697
+ */
698
+ gasFeeToken0Approval?: string;
699
+ /**
700
+ * @generated from field: optional string gas_fee_token_1_approval = 12;
701
+ */
702
+ gasFeeToken1Approval?: string;
703
+ /**
704
+ * @generated from field: optional string gas_fee_position_token_approval = 13;
705
+ */
706
+ gasFeePositionTokenApproval?: string;
707
+ /**
708
+ * @generated from field: optional string gas_fee_token_0_cancel = 14;
709
+ */
710
+ gasFeeToken0Cancel?: string;
711
+ /**
712
+ * @generated from field: optional string gas_fee_token_1_cancel = 15;
713
+ */
714
+ gasFeeToken1Cancel?: string;
715
+ /**
716
+ * @generated from field: optional string gas_fee_token_0_permit = 16;
717
+ */
718
+ gasFeeToken0Permit?: string;
719
+ /**
720
+ * @generated from field: optional string gas_fee_token_1_permit = 17;
721
+ */
722
+ gasFeeToken1Permit?: string;
723
+ constructor(data?: PartialMessage<CheckApprovalLPResponse>);
724
+ static readonly runtime: typeof proto3;
725
+ static readonly typeName = "uniswap.liquidity.v1.CheckApprovalLPResponse";
726
+ static readonly fields: FieldList;
727
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CheckApprovalLPResponse;
728
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CheckApprovalLPResponse;
729
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CheckApprovalLPResponse;
730
+ static equals(a: CheckApprovalLPResponse | PlainMessage<CheckApprovalLPResponse> | undefined, b: CheckApprovalLPResponse | PlainMessage<CheckApprovalLPResponse> | undefined): boolean;
731
+ }
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { Message, proto3 } from "@bufbuild/protobuf";
6
- import { ChainId, Distributor, PoolInformation, PoolParameters, PoolReferenceByProtocol, Protocols, TransactionRequest, V2ClaimLPFeesRequest, V2CreateLPPosition, V2DecreaseLPPosition, V2IncreaseLPPosition, V3ClaimLPFeesRequest, V3CreateLPPosition, V3DecreaseLPPosition, V3IncreaseLPPosition, V3Position, V4ClaimLPFeesRequest, V4CreateLPPosition, V4DecreaseLPPosition, V4IncreaseLPPosition, V4Position } from "./types_pb.js";
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
  *
@@ -622,3 +622,85 @@ ClaimLPFeesResponse.fields = proto3.util.newFieldList(() => [
622
622
  { no: 2, name: "claim", kind: "message", T: TransactionRequest, opt: true },
623
623
  { no: 3, name: "gasFee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
624
624
  ]);
625
+ /**
626
+ * @generated from message uniswap.liquidity.v1.CheckApprovalLPRequest
627
+ */
628
+ export class CheckApprovalLPRequest extends Message {
629
+ constructor(data) {
630
+ super();
631
+ /**
632
+ * @generated from oneof uniswap.liquidity.v1.CheckApprovalLPRequest.checkApprovalLPRequest
633
+ */
634
+ this.checkApprovalLPRequest = { case: undefined };
635
+ proto3.util.initPartial(data, this);
636
+ }
637
+ static fromBinary(bytes, options) {
638
+ return new CheckApprovalLPRequest().fromBinary(bytes, options);
639
+ }
640
+ static fromJson(jsonValue, options) {
641
+ return new CheckApprovalLPRequest().fromJson(jsonValue, options);
642
+ }
643
+ static fromJsonString(jsonString, options) {
644
+ return new CheckApprovalLPRequest().fromJsonString(jsonString, options);
645
+ }
646
+ static equals(a, b) {
647
+ return proto3.util.equals(CheckApprovalLPRequest, a, b);
648
+ }
649
+ }
650
+ CheckApprovalLPRequest.runtime = proto3;
651
+ CheckApprovalLPRequest.typeName = "uniswap.liquidity.v1.CheckApprovalLPRequest";
652
+ CheckApprovalLPRequest.fields = proto3.util.newFieldList(() => [
653
+ { no: 1, name: "v2_check_approval_lp_request", kind: "message", T: V2CheckApprovalLPRequest, oneof: "checkApprovalLPRequest" },
654
+ { no: 2, name: "v3_check_approval_lp_request", kind: "message", T: V3CheckApprovalLPRequest, oneof: "checkApprovalLPRequest" },
655
+ { no: 3, name: "v4_check_approval_lp_request", kind: "message", T: V4CheckApprovalLPRequest, oneof: "checkApprovalLPRequest" },
656
+ ]);
657
+ /**
658
+ * @generated from message uniswap.liquidity.v1.CheckApprovalLPResponse
659
+ */
660
+ export class CheckApprovalLPResponse extends Message {
661
+ constructor(data) {
662
+ super();
663
+ /**
664
+ * @generated from field: string request_id = 1;
665
+ */
666
+ this.requestId = "";
667
+ /**
668
+ * @generated from oneof uniswap.liquidity.v1.CheckApprovalLPResponse.permitData
669
+ */
670
+ this.permitData = { case: undefined };
671
+ proto3.util.initPartial(data, this);
672
+ }
673
+ static fromBinary(bytes, options) {
674
+ return new CheckApprovalLPResponse().fromBinary(bytes, options);
675
+ }
676
+ static fromJson(jsonValue, options) {
677
+ return new CheckApprovalLPResponse().fromJson(jsonValue, options);
678
+ }
679
+ static fromJsonString(jsonString, options) {
680
+ return new CheckApprovalLPResponse().fromJsonString(jsonString, options);
681
+ }
682
+ static equals(a, b) {
683
+ return proto3.util.equals(CheckApprovalLPResponse, a, b);
684
+ }
685
+ }
686
+ CheckApprovalLPResponse.runtime = proto3;
687
+ CheckApprovalLPResponse.typeName = "uniswap.liquidity.v1.CheckApprovalLPResponse";
688
+ CheckApprovalLPResponse.fields = proto3.util.newFieldList(() => [
689
+ { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
690
+ { no: 2, name: "token_0_approval", kind: "message", T: TransactionRequest, opt: true },
691
+ { no: 3, name: "token_1_approval", kind: "message", T: TransactionRequest, opt: true },
692
+ { no: 4, name: "token_0_Cancel", kind: "message", T: TransactionRequest, opt: true },
693
+ { no: 5, name: "token_1_Cancel", kind: "message", T: TransactionRequest, opt: true },
694
+ { no: 6, name: "position_token_approval", kind: "message", T: TransactionRequest, opt: true },
695
+ { no: 7, name: "permit_batch_data", kind: "message", T: PermitBatchData, oneof: "permitData" },
696
+ { no: 8, name: "nft_permit_data", kind: "message", T: NFTPermitData, oneof: "permitData" },
697
+ { no: 9, name: "token_0_permit_transaction", kind: "message", T: TransactionRequest, opt: true },
698
+ { no: 10, name: "token_1_permit_transaction", kind: "message", T: TransactionRequest, opt: true },
699
+ { no: 11, name: "gas_fee_token_0_approval", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
700
+ { no: 12, name: "gas_fee_token_1_approval", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
701
+ { no: 13, name: "gas_fee_position_token_approval", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
702
+ { no: 14, name: "gas_fee_token_0_cancel", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
703
+ { no: 15, name: "gas_fee_token_1_cancel", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
704
+ { no: 16, name: "gas_fee_token_0_permit", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
705
+ { no: 17, name: "gas_fee_token_1_permit", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
706
+ ]);
@@ -1620,3 +1620,154 @@ export declare class V4ClaimLPFeesRequest extends Message<V4ClaimLPFeesRequest>
1620
1620
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V4ClaimLPFeesRequest;
1621
1621
  static equals(a: V4ClaimLPFeesRequest | PlainMessage<V4ClaimLPFeesRequest> | undefined, b: V4ClaimLPFeesRequest | PlainMessage<V4ClaimLPFeesRequest> | undefined): boolean;
1622
1622
  }
1623
+ /**
1624
+ * @generated from message uniswap.liquidity.v1.V2CheckApprovalLPRequest
1625
+ */
1626
+ export declare class V2CheckApprovalLPRequest extends Message<V2CheckApprovalLPRequest> {
1627
+ /**
1628
+ * @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
1629
+ */
1630
+ protocol: Protocols;
1631
+ /**
1632
+ * @generated from field: optional string token0 = 2;
1633
+ */
1634
+ token0?: string;
1635
+ /**
1636
+ * @generated from field: optional string token1 = 3;
1637
+ */
1638
+ token1?: string;
1639
+ /**
1640
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 4;
1641
+ */
1642
+ chainId: ChainId;
1643
+ /**
1644
+ * @generated from field: optional string position_token = 5;
1645
+ */
1646
+ positionToken?: string;
1647
+ /**
1648
+ * @generated from field: string wallet_address = 6;
1649
+ */
1650
+ walletAddress: string;
1651
+ /**
1652
+ * @generated from field: optional string amount0 = 7;
1653
+ */
1654
+ amount0?: string;
1655
+ /**
1656
+ * @generated from field: optional string amount1 = 8;
1657
+ */
1658
+ amount1?: string;
1659
+ /**
1660
+ * @generated from field: optional string position_amount = 9;
1661
+ */
1662
+ positionAmount?: string;
1663
+ /**
1664
+ * @generated from field: bool simulate_transaction = 10;
1665
+ */
1666
+ simulateTransaction: boolean;
1667
+ constructor(data?: PartialMessage<V2CheckApprovalLPRequest>);
1668
+ static readonly runtime: typeof proto3;
1669
+ static readonly typeName = "uniswap.liquidity.v1.V2CheckApprovalLPRequest";
1670
+ static readonly fields: FieldList;
1671
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V2CheckApprovalLPRequest;
1672
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V2CheckApprovalLPRequest;
1673
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V2CheckApprovalLPRequest;
1674
+ static equals(a: V2CheckApprovalLPRequest | PlainMessage<V2CheckApprovalLPRequest> | undefined, b: V2CheckApprovalLPRequest | PlainMessage<V2CheckApprovalLPRequest> | undefined): boolean;
1675
+ }
1676
+ /**
1677
+ * @generated from message uniswap.liquidity.v1.V3CheckApprovalLPRequest
1678
+ */
1679
+ export declare class V3CheckApprovalLPRequest extends Message<V3CheckApprovalLPRequest> {
1680
+ /**
1681
+ * @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
1682
+ */
1683
+ protocol: Protocols;
1684
+ /**
1685
+ * @generated from field: optional string token0 = 2;
1686
+ */
1687
+ token0?: string;
1688
+ /**
1689
+ * @generated from field: optional string token1 = 3;
1690
+ */
1691
+ token1?: string;
1692
+ /**
1693
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 4;
1694
+ */
1695
+ chainId: ChainId;
1696
+ /**
1697
+ * @generated from field: optional string position_token = 5;
1698
+ */
1699
+ positionToken?: string;
1700
+ /**
1701
+ * @generated from field: string wallet_address = 6;
1702
+ */
1703
+ walletAddress: string;
1704
+ /**
1705
+ * @generated from field: optional string amount0 = 7;
1706
+ */
1707
+ amount0?: string;
1708
+ /**
1709
+ * @generated from field: optional string amount1 = 8;
1710
+ */
1711
+ amount1?: string;
1712
+ /**
1713
+ * @generated from field: bool simulate_transaction = 10;
1714
+ */
1715
+ simulateTransaction: boolean;
1716
+ constructor(data?: PartialMessage<V3CheckApprovalLPRequest>);
1717
+ static readonly runtime: typeof proto3;
1718
+ static readonly typeName = "uniswap.liquidity.v1.V3CheckApprovalLPRequest";
1719
+ static readonly fields: FieldList;
1720
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V3CheckApprovalLPRequest;
1721
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V3CheckApprovalLPRequest;
1722
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V3CheckApprovalLPRequest;
1723
+ static equals(a: V3CheckApprovalLPRequest | PlainMessage<V3CheckApprovalLPRequest> | undefined, b: V3CheckApprovalLPRequest | PlainMessage<V3CheckApprovalLPRequest> | undefined): boolean;
1724
+ }
1725
+ /**
1726
+ * @generated from message uniswap.liquidity.v1.V4CheckApprovalLPRequest
1727
+ */
1728
+ export declare class V4CheckApprovalLPRequest extends Message<V4CheckApprovalLPRequest> {
1729
+ /**
1730
+ * @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
1731
+ */
1732
+ protocol: Protocols;
1733
+ /**
1734
+ * @generated from field: string token0 = 2;
1735
+ */
1736
+ token0: string;
1737
+ /**
1738
+ * @generated from field: string token1 = 3;
1739
+ */
1740
+ token1: string;
1741
+ /**
1742
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 4;
1743
+ */
1744
+ chainId: ChainId;
1745
+ /**
1746
+ * @generated from field: string wallet_address = 6;
1747
+ */
1748
+ walletAddress: string;
1749
+ /**
1750
+ * @generated from field: string amount0 = 7;
1751
+ */
1752
+ amount0: string;
1753
+ /**
1754
+ * @generated from field: string amount1 = 8;
1755
+ */
1756
+ amount1: string;
1757
+ /**
1758
+ * @generated from field: bool generate_permit_as_transaction = 9;
1759
+ */
1760
+ generatePermitAsTransaction: boolean;
1761
+ /**
1762
+ * @generated from field: bool simulate_transaction = 10;
1763
+ */
1764
+ simulateTransaction: boolean;
1765
+ constructor(data?: PartialMessage<V4CheckApprovalLPRequest>);
1766
+ static readonly runtime: typeof proto3;
1767
+ static readonly typeName = "uniswap.liquidity.v1.V4CheckApprovalLPRequest";
1768
+ static readonly fields: FieldList;
1769
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V4CheckApprovalLPRequest;
1770
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V4CheckApprovalLPRequest;
1771
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V4CheckApprovalLPRequest;
1772
+ static equals(a: V4CheckApprovalLPRequest | PlainMessage<V4CheckApprovalLPRequest> | undefined, b: V4CheckApprovalLPRequest | PlainMessage<V4CheckApprovalLPRequest> | undefined): boolean;
1773
+ }
@@ -1810,3 +1810,174 @@ V4ClaimLPFeesRequest.fields = proto3.util.newFieldList(() => [
1810
1810
  { no: 5, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
1811
1811
  { no: 6, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1812
1812
  ]);
1813
+ /**
1814
+ * @generated from message uniswap.liquidity.v1.V2CheckApprovalLPRequest
1815
+ */
1816
+ export class V2CheckApprovalLPRequest extends Message {
1817
+ constructor(data) {
1818
+ super();
1819
+ /**
1820
+ * @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
1821
+ */
1822
+ this.protocol = Protocols.V2;
1823
+ /**
1824
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 4;
1825
+ */
1826
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
1827
+ /**
1828
+ * @generated from field: string wallet_address = 6;
1829
+ */
1830
+ this.walletAddress = "";
1831
+ /**
1832
+ * @generated from field: bool simulate_transaction = 10;
1833
+ */
1834
+ this.simulateTransaction = false;
1835
+ proto3.util.initPartial(data, this);
1836
+ }
1837
+ static fromBinary(bytes, options) {
1838
+ return new V2CheckApprovalLPRequest().fromBinary(bytes, options);
1839
+ }
1840
+ static fromJson(jsonValue, options) {
1841
+ return new V2CheckApprovalLPRequest().fromJson(jsonValue, options);
1842
+ }
1843
+ static fromJsonString(jsonString, options) {
1844
+ return new V2CheckApprovalLPRequest().fromJsonString(jsonString, options);
1845
+ }
1846
+ static equals(a, b) {
1847
+ return proto3.util.equals(V2CheckApprovalLPRequest, a, b);
1848
+ }
1849
+ }
1850
+ V2CheckApprovalLPRequest.runtime = proto3;
1851
+ V2CheckApprovalLPRequest.typeName = "uniswap.liquidity.v1.V2CheckApprovalLPRequest";
1852
+ V2CheckApprovalLPRequest.fields = proto3.util.newFieldList(() => [
1853
+ { no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
1854
+ { no: 2, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1855
+ { no: 3, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1856
+ { no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
1857
+ { no: 5, name: "position_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1858
+ { no: 6, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1859
+ { no: 7, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1860
+ { no: 8, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1861
+ { no: 9, name: "position_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1862
+ { no: 10, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1863
+ ]);
1864
+ /**
1865
+ * @generated from message uniswap.liquidity.v1.V3CheckApprovalLPRequest
1866
+ */
1867
+ export class V3CheckApprovalLPRequest extends Message {
1868
+ constructor(data) {
1869
+ super();
1870
+ /**
1871
+ * @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
1872
+ */
1873
+ this.protocol = Protocols.V2;
1874
+ /**
1875
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 4;
1876
+ */
1877
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
1878
+ /**
1879
+ * @generated from field: string wallet_address = 6;
1880
+ */
1881
+ this.walletAddress = "";
1882
+ /**
1883
+ * @generated from field: bool simulate_transaction = 10;
1884
+ */
1885
+ this.simulateTransaction = false;
1886
+ proto3.util.initPartial(data, this);
1887
+ }
1888
+ static fromBinary(bytes, options) {
1889
+ return new V3CheckApprovalLPRequest().fromBinary(bytes, options);
1890
+ }
1891
+ static fromJson(jsonValue, options) {
1892
+ return new V3CheckApprovalLPRequest().fromJson(jsonValue, options);
1893
+ }
1894
+ static fromJsonString(jsonString, options) {
1895
+ return new V3CheckApprovalLPRequest().fromJsonString(jsonString, options);
1896
+ }
1897
+ static equals(a, b) {
1898
+ return proto3.util.equals(V3CheckApprovalLPRequest, a, b);
1899
+ }
1900
+ }
1901
+ V3CheckApprovalLPRequest.runtime = proto3;
1902
+ V3CheckApprovalLPRequest.typeName = "uniswap.liquidity.v1.V3CheckApprovalLPRequest";
1903
+ V3CheckApprovalLPRequest.fields = proto3.util.newFieldList(() => [
1904
+ { no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
1905
+ { no: 2, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1906
+ { no: 3, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1907
+ { no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
1908
+ { no: 5, name: "position_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1909
+ { no: 6, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1910
+ { no: 7, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1911
+ { no: 8, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1912
+ { no: 10, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1913
+ ]);
1914
+ /**
1915
+ * @generated from message uniswap.liquidity.v1.V4CheckApprovalLPRequest
1916
+ */
1917
+ export class V4CheckApprovalLPRequest extends Message {
1918
+ constructor(data) {
1919
+ super();
1920
+ /**
1921
+ * @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
1922
+ */
1923
+ this.protocol = Protocols.V2;
1924
+ /**
1925
+ * @generated from field: string token0 = 2;
1926
+ */
1927
+ this.token0 = "";
1928
+ /**
1929
+ * @generated from field: string token1 = 3;
1930
+ */
1931
+ this.token1 = "";
1932
+ /**
1933
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 4;
1934
+ */
1935
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
1936
+ /**
1937
+ * @generated from field: string wallet_address = 6;
1938
+ */
1939
+ this.walletAddress = "";
1940
+ /**
1941
+ * @generated from field: string amount0 = 7;
1942
+ */
1943
+ this.amount0 = "";
1944
+ /**
1945
+ * @generated from field: string amount1 = 8;
1946
+ */
1947
+ this.amount1 = "";
1948
+ /**
1949
+ * @generated from field: bool generate_permit_as_transaction = 9;
1950
+ */
1951
+ this.generatePermitAsTransaction = false;
1952
+ /**
1953
+ * @generated from field: bool simulate_transaction = 10;
1954
+ */
1955
+ this.simulateTransaction = false;
1956
+ proto3.util.initPartial(data, this);
1957
+ }
1958
+ static fromBinary(bytes, options) {
1959
+ return new V4CheckApprovalLPRequest().fromBinary(bytes, options);
1960
+ }
1961
+ static fromJson(jsonValue, options) {
1962
+ return new V4CheckApprovalLPRequest().fromJson(jsonValue, options);
1963
+ }
1964
+ static fromJsonString(jsonString, options) {
1965
+ return new V4CheckApprovalLPRequest().fromJsonString(jsonString, options);
1966
+ }
1967
+ static equals(a, b) {
1968
+ return proto3.util.equals(V4CheckApprovalLPRequest, a, b);
1969
+ }
1970
+ }
1971
+ V4CheckApprovalLPRequest.runtime = proto3;
1972
+ V4CheckApprovalLPRequest.typeName = "uniswap.liquidity.v1.V4CheckApprovalLPRequest";
1973
+ V4CheckApprovalLPRequest.fields = proto3.util.newFieldList(() => [
1974
+ { no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
1975
+ { no: 2, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1976
+ { no: 3, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1977
+ { no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
1978
+ { no: 6, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1979
+ { no: 7, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1980
+ { no: 8, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1981
+ { no: 9, name: "generate_permit_as_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1982
+ { no: 10, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1983
+ ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-liquidity",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },