@uniswap/client-liquidity 1.0.8 → 1.3.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.
@@ -649,6 +649,36 @@ export declare class CheckApprovalLPRequest extends Message<CheckApprovalLPReque
649
649
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CheckApprovalLPRequest;
650
650
  static equals(a: CheckApprovalLPRequest | PlainMessage<CheckApprovalLPRequest> | undefined, b: CheckApprovalLPRequest | PlainMessage<CheckApprovalLPRequest> | undefined): boolean;
651
651
  }
652
+ /**
653
+ * KycRequiredWarning is attached to CheckApprovalLPResponse (and LPApprovalResponse in v2)
654
+ * when the pool contains a permissioned token and the requesting wallet is not yet
655
+ * on the allowlist. The FE/integrator should render a KYC CTA instead of (or alongside)
656
+ * the approval flow. The response is still 200 — do not throw.
657
+ *
658
+ * @generated from message uniswap.liquidity.v1.KycRequiredWarning
659
+ */
660
+ export declare class KycRequiredWarning extends Message<KycRequiredWarning> {
661
+ /**
662
+ * @generated from field: string kyc_url = 1;
663
+ */
664
+ kycUrl: string;
665
+ /**
666
+ * @generated from field: string token_address = 2;
667
+ */
668
+ tokenAddress: string;
669
+ /**
670
+ * @generated from field: uint32 chain_id = 3;
671
+ */
672
+ chainId: number;
673
+ constructor(data?: PartialMessage<KycRequiredWarning>);
674
+ static readonly runtime: typeof proto3;
675
+ static readonly typeName = "uniswap.liquidity.v1.KycRequiredWarning";
676
+ static readonly fields: FieldList;
677
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): KycRequiredWarning;
678
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): KycRequiredWarning;
679
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): KycRequiredWarning;
680
+ static equals(a: KycRequiredWarning | PlainMessage<KycRequiredWarning> | undefined, b: KycRequiredWarning | PlainMessage<KycRequiredWarning> | undefined): boolean;
681
+ }
652
682
  /**
653
683
  * @generated from message uniswap.liquidity.v1.CheckApprovalLPResponse
654
684
  */
@@ -732,6 +762,12 @@ export declare class CheckApprovalLPResponse extends Message<CheckApprovalLPResp
732
762
  * @generated from field: optional string gas_fee_token_1_permit = 17;
733
763
  */
734
764
  gasFeeToken1Permit?: string;
765
+ /**
766
+ * Present for each permissioned token in the pool where the wallet is NOT allowlisted.
767
+ *
768
+ * @generated from field: repeated uniswap.liquidity.v1.KycRequiredWarning kyc_required_warnings = 18;
769
+ */
770
+ kycRequiredWarnings: KycRequiredWarning[];
735
771
  constructor(data?: PartialMessage<CheckApprovalLPResponse>);
736
772
  static readonly runtime: typeof proto3;
737
773
  static readonly typeName = "uniswap.liquidity.v1.CheckApprovalLPResponse";
@@ -657,6 +657,51 @@ CheckApprovalLPRequest.fields = proto3.util.newFieldList(() => [
657
657
  { no: 2, name: "v3_check_approval_lp_request", kind: "message", T: V3CheckApprovalLPRequest, oneof: "checkApprovalLPRequest" },
658
658
  { no: 3, name: "v4_check_approval_lp_request", kind: "message", T: V4CheckApprovalLPRequest, oneof: "checkApprovalLPRequest" },
659
659
  ]);
660
+ /**
661
+ * KycRequiredWarning is attached to CheckApprovalLPResponse (and LPApprovalResponse in v2)
662
+ * when the pool contains a permissioned token and the requesting wallet is not yet
663
+ * on the allowlist. The FE/integrator should render a KYC CTA instead of (or alongside)
664
+ * the approval flow. The response is still 200 — do not throw.
665
+ *
666
+ * @generated from message uniswap.liquidity.v1.KycRequiredWarning
667
+ */
668
+ export class KycRequiredWarning extends Message {
669
+ constructor(data) {
670
+ super();
671
+ /**
672
+ * @generated from field: string kyc_url = 1;
673
+ */
674
+ this.kycUrl = "";
675
+ /**
676
+ * @generated from field: string token_address = 2;
677
+ */
678
+ this.tokenAddress = "";
679
+ /**
680
+ * @generated from field: uint32 chain_id = 3;
681
+ */
682
+ this.chainId = 0;
683
+ proto3.util.initPartial(data, this);
684
+ }
685
+ static fromBinary(bytes, options) {
686
+ return new KycRequiredWarning().fromBinary(bytes, options);
687
+ }
688
+ static fromJson(jsonValue, options) {
689
+ return new KycRequiredWarning().fromJson(jsonValue, options);
690
+ }
691
+ static fromJsonString(jsonString, options) {
692
+ return new KycRequiredWarning().fromJsonString(jsonString, options);
693
+ }
694
+ static equals(a, b) {
695
+ return proto3.util.equals(KycRequiredWarning, a, b);
696
+ }
697
+ }
698
+ KycRequiredWarning.runtime = proto3;
699
+ KycRequiredWarning.typeName = "uniswap.liquidity.v1.KycRequiredWarning";
700
+ KycRequiredWarning.fields = proto3.util.newFieldList(() => [
701
+ { no: 1, name: "kyc_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
702
+ { no: 2, name: "token_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
703
+ { no: 3, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
704
+ ]);
660
705
  /**
661
706
  * @generated from message uniswap.liquidity.v1.CheckApprovalLPResponse
662
707
  */
@@ -671,6 +716,12 @@ export class CheckApprovalLPResponse extends Message {
671
716
  * @generated from oneof uniswap.liquidity.v1.CheckApprovalLPResponse.permitData
672
717
  */
673
718
  this.permitData = { case: undefined };
719
+ /**
720
+ * Present for each permissioned token in the pool where the wallet is NOT allowlisted.
721
+ *
722
+ * @generated from field: repeated uniswap.liquidity.v1.KycRequiredWarning kyc_required_warnings = 18;
723
+ */
724
+ this.kycRequiredWarnings = [];
674
725
  proto3.util.initPartial(data, this);
675
726
  }
676
727
  static fromBinary(bytes, options) {
@@ -706,4 +757,5 @@ CheckApprovalLPResponse.fields = proto3.util.newFieldList(() => [
706
757
  { no: 15, name: "gas_fee_token_1_cancel", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
707
758
  { no: 16, name: "gas_fee_token_0_permit", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
708
759
  { no: 17, name: "gas_fee_token_1_permit", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
760
+ { no: 18, name: "kyc_required_warnings", kind: "message", T: KycRequiredWarning, repeated: true },
709
761
  ]);
@@ -576,7 +576,7 @@ export declare class NewTokenConfig extends Message<NewTokenConfig> {
576
576
  }
577
577
  /**
578
578
  * Written on-chain into the token via the factory's tokenData. The backend only
579
- * carries these values; image/website/x verification happen async post-launch.
579
+ * carries these values; image/website verification happens async post-launch.
580
580
  *
581
581
  * @generated from message uniswap.liquidity.v1.TokenMetadata
582
582
  */
@@ -594,11 +594,13 @@ export declare class TokenMetadata extends Message<TokenMetadata> {
594
594
  */
595
595
  image: string;
596
596
  /**
597
- * Tweet id proving X-handle ownership; uint256 carried as a decimal string ("0" when absent).
597
+ * Output of XVerificationService.VerifyXCallback proving X-handle ownership
598
+ * for the creator wallet. Optional. Verified server-side and embedded into
599
+ * the factory tokenData's extraData JSON envelope.
598
600
  *
599
- * @generated from field: string x_proof_tweet_id = 4;
601
+ * @generated from field: string x_verification_token = 5;
600
602
  */
601
- xProofTweetId: string;
603
+ xVerificationToken: string;
602
604
  constructor(data?: PartialMessage<TokenMetadata>);
603
605
  static readonly runtime: typeof proto3;
604
606
  static readonly typeName = "uniswap.liquidity.v1.TokenMetadata";
@@ -784,7 +784,7 @@ NewTokenConfig.fields = proto3.util.newFieldList(() => [
784
784
  ]);
785
785
  /**
786
786
  * Written on-chain into the token via the factory's tokenData. The backend only
787
- * carries these values; image/website/x verification happen async post-launch.
787
+ * carries these values; image/website verification happens async post-launch.
788
788
  *
789
789
  * @generated from message uniswap.liquidity.v1.TokenMetadata
790
790
  */
@@ -804,11 +804,13 @@ export class TokenMetadata extends Message {
804
804
  */
805
805
  this.image = "";
806
806
  /**
807
- * Tweet id proving X-handle ownership; uint256 carried as a decimal string ("0" when absent).
807
+ * Output of XVerificationService.VerifyXCallback proving X-handle ownership
808
+ * for the creator wallet. Optional. Verified server-side and embedded into
809
+ * the factory tokenData's extraData JSON envelope.
808
810
  *
809
- * @generated from field: string x_proof_tweet_id = 4;
811
+ * @generated from field: string x_verification_token = 5;
810
812
  */
811
- this.xProofTweetId = "";
813
+ this.xVerificationToken = "";
812
814
  proto3.util.initPartial(data, this);
813
815
  }
814
816
  static fromBinary(bytes, options) {
@@ -830,7 +832,7 @@ TokenMetadata.fields = proto3.util.newFieldList(() => [
830
832
  { no: 1, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
831
833
  { no: 2, name: "website", kind: "scalar", T: 9 /* ScalarType.STRING */ },
832
834
  { no: 3, name: "image", kind: "scalar", T: 9 /* ScalarType.STRING */ },
833
- { no: 4, name: "x_proof_tweet_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
835
+ { no: 5, name: "x_verification_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
834
836
  ]);
835
837
  /**
836
838
  * @generated from message uniswap.liquidity.v1.ExistingTokenConfig
@@ -153,6 +153,12 @@ export declare class LPApprovalResponse extends Message<LPApprovalResponse> {
153
153
  * @generated from field: optional uniswap.liquidity.v1.NFTPermitData v3_nft_permit_data = 4;
154
154
  */
155
155
  v3NftPermitData?: NFTPermitData;
156
+ /**
157
+ * Present for each permissioned token in the pool where the wallet is NOT allowlisted.
158
+ *
159
+ * @generated from field: repeated uniswap.liquidity.v2.KycRequiredWarning kyc_required_warnings = 5;
160
+ */
161
+ kycRequiredWarnings: KycRequiredWarning[];
156
162
  constructor(data?: PartialMessage<LPApprovalResponse>);
157
163
  static readonly runtime: typeof proto3;
158
164
  static readonly typeName = "uniswap.liquidity.v2.LPApprovalResponse";
@@ -162,6 +168,36 @@ export declare class LPApprovalResponse extends Message<LPApprovalResponse> {
162
168
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LPApprovalResponse;
163
169
  static equals(a: LPApprovalResponse | PlainMessage<LPApprovalResponse> | undefined, b: LPApprovalResponse | PlainMessage<LPApprovalResponse> | undefined): boolean;
164
170
  }
171
+ /**
172
+ * KycRequiredWarning is attached to LPApprovalResponse when the pool contains a
173
+ * permissioned token and the requesting wallet is not yet on the allowlist.
174
+ * The FE/integrator should render a KYC CTA instead of (or alongside) the approval
175
+ * flow. The response is still 200 — do not throw.
176
+ *
177
+ * @generated from message uniswap.liquidity.v2.KycRequiredWarning
178
+ */
179
+ export declare class KycRequiredWarning extends Message<KycRequiredWarning> {
180
+ /**
181
+ * @generated from field: string kyc_url = 1;
182
+ */
183
+ kycUrl: string;
184
+ /**
185
+ * @generated from field: string token_address = 2;
186
+ */
187
+ tokenAddress: string;
188
+ /**
189
+ * @generated from field: uint32 chain_id = 3;
190
+ */
191
+ chainId: number;
192
+ constructor(data?: PartialMessage<KycRequiredWarning>);
193
+ static readonly runtime: typeof proto3;
194
+ static readonly typeName = "uniswap.liquidity.v2.KycRequiredWarning";
195
+ static readonly fields: FieldList;
196
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): KycRequiredWarning;
197
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): KycRequiredWarning;
198
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): KycRequiredWarning;
199
+ static equals(a: KycRequiredWarning | PlainMessage<KycRequiredWarning> | undefined, b: KycRequiredWarning | PlainMessage<KycRequiredWarning> | undefined): boolean;
200
+ }
165
201
  /**
166
202
  * @generated from message uniswap.liquidity.v2.CreateClassicPositionRequest
167
203
  */
@@ -298,6 +334,12 @@ export declare class DecreasePositionRequest extends Message<DecreasePositionReq
298
334
  * @generated from field: optional uniswap.liquidity.v2.GasUrgency urgency = 12;
299
335
  */
300
336
  urgency?: GasUrgency;
337
+ /**
338
+ * When true, route to the permissioned PositionManager; defaults to the canonical PM.
339
+ *
340
+ * @generated from field: optional bool permissioned = 13;
341
+ */
342
+ permissioned?: boolean;
301
343
  constructor(data?: PartialMessage<DecreasePositionRequest>);
302
344
  static readonly runtime: typeof proto3;
303
345
  static readonly typeName = "uniswap.liquidity.v2.DecreasePositionRequest";
@@ -408,6 +450,12 @@ export declare class IncreasePositionRequest extends Message<IncreasePositionReq
408
450
  * @generated from field: optional string native_token_balance = 15;
409
451
  */
410
452
  nativeTokenBalance?: string;
453
+ /**
454
+ * When true, route to the permissioned PositionManager; defaults to the canonical PM.
455
+ *
456
+ * @generated from field: optional bool permissioned = 16;
457
+ */
458
+ permissioned?: boolean;
411
459
  constructor(data?: PartialMessage<IncreasePositionRequest>);
412
460
  static readonly runtime: typeof proto3;
413
461
  static readonly typeName = "uniswap.liquidity.v2.IncreasePositionRequest";
@@ -640,6 +688,12 @@ export declare class ClaimFeesRequest extends Message<ClaimFeesRequest> {
640
688
  * @generated from field: optional bool collect_as_weth = 6;
641
689
  */
642
690
  collectAsWeth?: boolean;
691
+ /**
692
+ * When true, route to the permissioned PositionManager; defaults to the canonical PM.
693
+ *
694
+ * @generated from field: optional bool permissioned = 7;
695
+ */
696
+ permissioned?: boolean;
643
697
  constructor(data?: PartialMessage<ClaimFeesRequest>);
644
698
  static readonly runtime: typeof proto3;
645
699
  static readonly typeName = "uniswap.liquidity.v2.ClaimFeesRequest";
@@ -152,6 +152,12 @@ export class LPApprovalResponse extends Message {
152
152
  * @generated from field: repeated uniswap.liquidity.v2.ApprovalTransactionRequest transactions = 2;
153
153
  */
154
154
  this.transactions = [];
155
+ /**
156
+ * Present for each permissioned token in the pool where the wallet is NOT allowlisted.
157
+ *
158
+ * @generated from field: repeated uniswap.liquidity.v2.KycRequiredWarning kyc_required_warnings = 5;
159
+ */
160
+ this.kycRequiredWarnings = [];
155
161
  proto3.util.initPartial(data, this);
156
162
  }
157
163
  static fromBinary(bytes, options) {
@@ -174,6 +180,52 @@ LPApprovalResponse.fields = proto3.util.newFieldList(() => [
174
180
  { no: 2, name: "transactions", kind: "message", T: ApprovalTransactionRequest, repeated: true },
175
181
  { no: 3, name: "v4_batch_permit_data", kind: "message", T: PermitBatchData, opt: true },
176
182
  { no: 4, name: "v3_nft_permit_data", kind: "message", T: NFTPermitData, opt: true },
183
+ { no: 5, name: "kyc_required_warnings", kind: "message", T: KycRequiredWarning, repeated: true },
184
+ ]);
185
+ /**
186
+ * KycRequiredWarning is attached to LPApprovalResponse when the pool contains a
187
+ * permissioned token and the requesting wallet is not yet on the allowlist.
188
+ * The FE/integrator should render a KYC CTA instead of (or alongside) the approval
189
+ * flow. The response is still 200 — do not throw.
190
+ *
191
+ * @generated from message uniswap.liquidity.v2.KycRequiredWarning
192
+ */
193
+ export class KycRequiredWarning extends Message {
194
+ constructor(data) {
195
+ super();
196
+ /**
197
+ * @generated from field: string kyc_url = 1;
198
+ */
199
+ this.kycUrl = "";
200
+ /**
201
+ * @generated from field: string token_address = 2;
202
+ */
203
+ this.tokenAddress = "";
204
+ /**
205
+ * @generated from field: uint32 chain_id = 3;
206
+ */
207
+ this.chainId = 0;
208
+ proto3.util.initPartial(data, this);
209
+ }
210
+ static fromBinary(bytes, options) {
211
+ return new KycRequiredWarning().fromBinary(bytes, options);
212
+ }
213
+ static fromJson(jsonValue, options) {
214
+ return new KycRequiredWarning().fromJson(jsonValue, options);
215
+ }
216
+ static fromJsonString(jsonString, options) {
217
+ return new KycRequiredWarning().fromJsonString(jsonString, options);
218
+ }
219
+ static equals(a, b) {
220
+ return proto3.util.equals(KycRequiredWarning, a, b);
221
+ }
222
+ }
223
+ KycRequiredWarning.runtime = proto3;
224
+ KycRequiredWarning.typeName = "uniswap.liquidity.v2.KycRequiredWarning";
225
+ KycRequiredWarning.fields = proto3.util.newFieldList(() => [
226
+ { no: 1, name: "kyc_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
227
+ { no: 2, name: "token_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
228
+ { no: 3, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
177
229
  ]);
178
230
  /**
179
231
  * @generated from message uniswap.liquidity.v2.CreateClassicPositionRequest
@@ -309,6 +361,7 @@ DecreasePositionRequest.fields = proto3.util.newFieldList(() => [
309
361
  { no: 10, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
310
362
  { no: 11, name: "withdraw_as_weth", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
311
363
  { no: 12, name: "urgency", kind: "enum", T: proto3.getEnumType(GasUrgency), opt: true },
364
+ { no: 13, name: "permissioned", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
312
365
  ]);
313
366
  /**
314
367
  * @generated from message uniswap.liquidity.v2.DecreasePositionResponse
@@ -405,6 +458,7 @@ IncreasePositionRequest.fields = proto3.util.newFieldList(() => [
405
458
  { no: 13, name: "urgency", kind: "enum", T: proto3.getEnumType(GasUrgency), opt: true },
406
459
  { no: 14, name: "include_approval_simulation", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
407
460
  { no: 15, name: "native_token_balance", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
461
+ { no: 16, name: "permissioned", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
408
462
  ]);
409
463
  /**
410
464
  * @generated from message uniswap.liquidity.v2.IncreasePositionResponse
@@ -606,6 +660,7 @@ ClaimFeesRequest.fields = proto3.util.newFieldList(() => [
606
660
  { no: 4, name: "token_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
607
661
  { no: 5, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
608
662
  { no: 6, name: "collect_as_weth", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
663
+ { no: 7, name: "permissioned", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
609
664
  ]);
610
665
  /**
611
666
  * @generated from message uniswap.liquidity.v2.ClaimFeesResponse
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-liquidity",
3
- "version": "1.0.8",
3
+ "version": "1.3.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },