@uniswap/client-liquidity 0.1.6 → 0.1.8

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 { CreateClassicPositionRequest, CreateClassicPositionResponse, DecreasePositionRequest, DecreasePositionResponse, IncreasePositionRequest, IncreasePositionResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
2
+ import { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, DecreasePositionRequest, DecreasePositionResponse, IncreasePositionRequest, IncreasePositionResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
3
3
  /**
4
4
  * @generated from rpc uniswap.liquidity.v2.LiquidityService.MigrateV2ToV3LPPosition
5
5
  */
@@ -70,3 +70,17 @@ export declare const increasePosition: {
70
70
  readonly typeName: "uniswap.liquidity.v2.LiquidityService";
71
71
  };
72
72
  };
73
+ /**
74
+ * @generated from rpc uniswap.liquidity.v2.LiquidityService.ClaimFees
75
+ */
76
+ export declare const claimFees: {
77
+ readonly localName: "claimFees";
78
+ readonly name: "ClaimFees";
79
+ readonly kind: MethodKind.Unary;
80
+ readonly I: typeof ClaimFeesRequest;
81
+ readonly O: typeof ClaimFeesResponse;
82
+ readonly idempotency: MethodIdempotency.NoSideEffects;
83
+ readonly service: {
84
+ readonly typeName: "uniswap.liquidity.v2.LiquidityService";
85
+ };
86
+ };
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
6
- import { CreateClassicPositionRequest, CreateClassicPositionResponse, DecreasePositionRequest, DecreasePositionResponse, IncreasePositionRequest, IncreasePositionResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
6
+ import { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, DecreasePositionRequest, DecreasePositionResponse, IncreasePositionRequest, IncreasePositionResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
7
7
  /**
8
8
  * @generated from rpc uniswap.liquidity.v2.LiquidityService.MigrateV2ToV3LPPosition
9
9
  */
@@ -74,3 +74,17 @@ export const increasePosition = {
74
74
  typeName: "uniswap.liquidity.v2.LiquidityService"
75
75
  }
76
76
  };
77
+ /**
78
+ * @generated from rpc uniswap.liquidity.v2.LiquidityService.ClaimFees
79
+ */
80
+ export const claimFees = {
81
+ localName: "claimFees",
82
+ name: "ClaimFees",
83
+ kind: MethodKind.Unary,
84
+ I: ClaimFeesRequest,
85
+ O: ClaimFeesResponse,
86
+ idempotency: MethodIdempotency.NoSideEffects,
87
+ service: {
88
+ typeName: "uniswap.liquidity.v2.LiquidityService"
89
+ }
90
+ };
@@ -1,4 +1,4 @@
1
- import { CreateClassicPositionRequest, CreateClassicPositionResponse, DecreasePositionRequest, DecreasePositionResponse, IncreasePositionRequest, IncreasePositionResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
1
+ import { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, DecreasePositionRequest, DecreasePositionResponse, IncreasePositionRequest, IncreasePositionResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
2
2
  import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * @generated from service uniswap.liquidity.v2.LiquidityService
@@ -56,5 +56,15 @@ export declare const LiquidityService: {
56
56
  readonly kind: MethodKind.Unary;
57
57
  readonly idempotency: MethodIdempotency.NoSideEffects;
58
58
  };
59
+ /**
60
+ * @generated from rpc uniswap.liquidity.v2.LiquidityService.ClaimFees
61
+ */
62
+ readonly claimFees: {
63
+ readonly name: "ClaimFees";
64
+ readonly I: typeof ClaimFeesRequest;
65
+ readonly O: typeof ClaimFeesResponse;
66
+ readonly kind: MethodKind.Unary;
67
+ readonly idempotency: MethodIdempotency.NoSideEffects;
68
+ };
59
69
  };
60
70
  };
@@ -2,7 +2,7 @@
2
2
  // @generated from file uniswap/liquidity/v2/api.proto (package uniswap.liquidity.v2, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
- import { CreateClassicPositionRequest, CreateClassicPositionResponse, DecreasePositionRequest, DecreasePositionResponse, IncreasePositionRequest, IncreasePositionResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
5
+ import { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, DecreasePositionRequest, DecreasePositionResponse, IncreasePositionRequest, IncreasePositionResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
6
6
  import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
7
7
  /**
8
8
  * @generated from service uniswap.liquidity.v2.LiquidityService
@@ -60,5 +60,15 @@ export const LiquidityService = {
60
60
  kind: MethodKind.Unary,
61
61
  idempotency: MethodIdempotency.NoSideEffects,
62
62
  },
63
+ /**
64
+ * @generated from rpc uniswap.liquidity.v2.LiquidityService.ClaimFees
65
+ */
66
+ claimFees: {
67
+ name: "ClaimFees",
68
+ I: ClaimFeesRequest,
69
+ O: ClaimFeesResponse,
70
+ kind: MethodKind.Unary,
71
+ idempotency: MethodIdempotency.NoSideEffects,
72
+ },
63
73
  }
64
74
  };
@@ -1,7 +1,7 @@
1
1
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
2
  import { Message, proto3 } from "@bufbuild/protobuf";
3
3
  import { ChainId, NFTPermitData, PermitBatchData, Protocols, TransactionRequest, V3Position } from "../v1/types_pb.js";
4
- import { ApprovalTransactionRequest, GasUrgency, LPAction, LPToken, PairAddress, V2PoolParameters } from "./types_pb.js";
4
+ import { ApprovalTransactionRequest, CreatePoolParameters, GasUrgency, LPAction, LPToken, PairAddress, V2PoolParameters } from "./types_pb.js";
5
5
  /**
6
6
  * MigrateV2ToV3LPPosition
7
7
  *
@@ -227,13 +227,13 @@ export declare class CreateClassicPositionResponse extends Message<CreateClassic
227
227
  */
228
228
  requestId: string;
229
229
  /**
230
- * @generated from field: uniswap.liquidity.v2.LPToken token_0 = 2;
230
+ * @generated from field: uniswap.liquidity.v2.LPToken independent_token = 2;
231
231
  */
232
- token0?: LPToken;
232
+ independentToken?: LPToken;
233
233
  /**
234
- * @generated from field: uniswap.liquidity.v2.LPToken token_1 = 3;
234
+ * @generated from field: uniswap.liquidity.v2.LPToken dependent_token = 3;
235
235
  */
236
- token1?: LPToken;
236
+ dependentToken?: LPToken;
237
237
  /**
238
238
  * @generated from field: uniswap.liquidity.v1.TransactionRequest create = 4;
239
239
  */
@@ -449,3 +449,212 @@ export declare class IncreasePositionResponse extends Message<IncreasePositionRe
449
449
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IncreasePositionResponse;
450
450
  static equals(a: IncreasePositionResponse | PlainMessage<IncreasePositionResponse> | undefined, b: IncreasePositionResponse | PlainMessage<IncreasePositionResponse> | undefined): boolean;
451
451
  }
452
+ /**
453
+ * CreatePosition (V3/V4)
454
+ *
455
+ * @generated from message uniswap.liquidity.v2.CreatePositionRequest
456
+ */
457
+ export declare class CreatePositionRequest extends Message<CreatePositionRequest> {
458
+ /**
459
+ * @generated from field: string wallet_address = 1;
460
+ */
461
+ walletAddress: string;
462
+ /**
463
+ * @generated from oneof uniswap.liquidity.v2.CreatePositionRequest.pool
464
+ */
465
+ pool: {
466
+ /**
467
+ * @generated from field: string pool_reference = 2;
468
+ */
469
+ value: string;
470
+ case: "poolReference";
471
+ } | {
472
+ /**
473
+ * @generated from field: uniswap.liquidity.v2.CreatePoolParameters new_pool = 3;
474
+ */
475
+ value: CreatePoolParameters;
476
+ case: "newPool";
477
+ } | {
478
+ case: undefined;
479
+ value?: undefined;
480
+ };
481
+ /**
482
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 4;
483
+ */
484
+ chainId: ChainId;
485
+ /**
486
+ * @generated from field: uniswap.liquidity.v1.Protocols protocol = 5;
487
+ */
488
+ protocol: Protocols;
489
+ /**
490
+ * @generated from field: uniswap.liquidity.v2.LPToken independent_token = 6;
491
+ */
492
+ independentToken?: LPToken;
493
+ /**
494
+ * @generated from field: optional uniswap.liquidity.v2.LPToken dependent_token = 7;
495
+ */
496
+ dependentToken?: LPToken;
497
+ /**
498
+ * @generated from field: string min_price = 8;
499
+ */
500
+ minPrice: string;
501
+ /**
502
+ * @generated from field: string max_price = 9;
503
+ */
504
+ maxPrice: string;
505
+ /**
506
+ * @generated from field: optional float slippage_tolerance = 10;
507
+ */
508
+ slippageTolerance?: number;
509
+ /**
510
+ * @generated from field: optional int32 deadline = 11;
511
+ */
512
+ deadline?: number;
513
+ /**
514
+ * @generated from field: optional bool simulate_transaction = 12;
515
+ */
516
+ simulateTransaction?: boolean;
517
+ /**
518
+ * @generated from field: optional uniswap.liquidity.v2.GasUrgency urgency = 13;
519
+ */
520
+ urgency?: GasUrgency;
521
+ /**
522
+ * @generated from field: optional uniswap.liquidity.v1.PermitBatchData batch_permit_data = 14;
523
+ */
524
+ batchPermitData?: PermitBatchData;
525
+ /**
526
+ * @generated from field: optional string signature = 15;
527
+ */
528
+ signature?: string;
529
+ /**
530
+ * @generated from field: optional string native_token_balance = 16;
531
+ */
532
+ nativeTokenBalance?: string;
533
+ constructor(data?: PartialMessage<CreatePositionRequest>);
534
+ static readonly runtime: typeof proto3;
535
+ static readonly typeName = "uniswap.liquidity.v2.CreatePositionRequest";
536
+ static readonly fields: FieldList;
537
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreatePositionRequest;
538
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreatePositionRequest;
539
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreatePositionRequest;
540
+ static equals(a: CreatePositionRequest | PlainMessage<CreatePositionRequest> | undefined, b: CreatePositionRequest | PlainMessage<CreatePositionRequest> | undefined): boolean;
541
+ }
542
+ /**
543
+ * @generated from message uniswap.liquidity.v2.CreatePositionResponse
544
+ */
545
+ export declare class CreatePositionResponse extends Message<CreatePositionResponse> {
546
+ /**
547
+ * @generated from field: string request_id = 1;
548
+ */
549
+ requestId: string;
550
+ /**
551
+ * @generated from field: uniswap.liquidity.v2.LPToken token_0 = 2;
552
+ */
553
+ token0?: LPToken;
554
+ /**
555
+ * @generated from field: uniswap.liquidity.v2.LPToken token_1 = 3;
556
+ */
557
+ token1?: LPToken;
558
+ /**
559
+ * @generated from field: string adjusted_min_price = 4;
560
+ */
561
+ adjustedMinPrice: string;
562
+ /**
563
+ * @generated from field: string adjusted_max_price = 5;
564
+ */
565
+ adjustedMaxPrice: string;
566
+ /**
567
+ * @generated from field: sint32 tick_lower = 6;
568
+ */
569
+ tickLower: number;
570
+ /**
571
+ * @generated from field: sint32 tick_upper = 7;
572
+ */
573
+ tickUpper: number;
574
+ /**
575
+ * @generated from field: uniswap.liquidity.v1.TransactionRequest create = 8;
576
+ */
577
+ create?: TransactionRequest;
578
+ /**
579
+ * @generated from field: optional string gas_fee = 9;
580
+ */
581
+ gasFee?: string;
582
+ constructor(data?: PartialMessage<CreatePositionResponse>);
583
+ static readonly runtime: typeof proto3;
584
+ static readonly typeName = "uniswap.liquidity.v2.CreatePositionResponse";
585
+ static readonly fields: FieldList;
586
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreatePositionResponse;
587
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreatePositionResponse;
588
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreatePositionResponse;
589
+ static equals(a: CreatePositionResponse | PlainMessage<CreatePositionResponse> | undefined, b: CreatePositionResponse | PlainMessage<CreatePositionResponse> | undefined): boolean;
590
+ }
591
+ /**
592
+ * @generated from message uniswap.liquidity.v2.ClaimFeesRequest
593
+ */
594
+ export declare class ClaimFeesRequest extends Message<ClaimFeesRequest> {
595
+ /**
596
+ * @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
597
+ */
598
+ protocol: Protocols;
599
+ /**
600
+ * @generated from field: string wallet_address = 2;
601
+ */
602
+ walletAddress: string;
603
+ /**
604
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 3;
605
+ */
606
+ chainId: ChainId;
607
+ /**
608
+ * @generated from field: string token_id = 4;
609
+ */
610
+ tokenId: string;
611
+ /**
612
+ * @generated from field: optional bool simulate_transaction = 5;
613
+ */
614
+ simulateTransaction?: boolean;
615
+ /**
616
+ * @generated from field: optional bool collect_as_weth = 6;
617
+ */
618
+ collectAsWeth?: boolean;
619
+ constructor(data?: PartialMessage<ClaimFeesRequest>);
620
+ static readonly runtime: typeof proto3;
621
+ static readonly typeName = "uniswap.liquidity.v2.ClaimFeesRequest";
622
+ static readonly fields: FieldList;
623
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClaimFeesRequest;
624
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClaimFeesRequest;
625
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClaimFeesRequest;
626
+ static equals(a: ClaimFeesRequest | PlainMessage<ClaimFeesRequest> | undefined, b: ClaimFeesRequest | PlainMessage<ClaimFeesRequest> | undefined): boolean;
627
+ }
628
+ /**
629
+ * @generated from message uniswap.liquidity.v2.ClaimFeesResponse
630
+ */
631
+ export declare class ClaimFeesResponse extends Message<ClaimFeesResponse> {
632
+ /**
633
+ * @generated from field: string request_id = 1;
634
+ */
635
+ requestId: string;
636
+ /**
637
+ * @generated from field: uniswap.liquidity.v2.LPToken token_0 = 2;
638
+ */
639
+ token0?: LPToken;
640
+ /**
641
+ * @generated from field: uniswap.liquidity.v2.LPToken token_1 = 3;
642
+ */
643
+ token1?: LPToken;
644
+ /**
645
+ * @generated from field: uniswap.liquidity.v1.TransactionRequest claim = 4;
646
+ */
647
+ claim?: TransactionRequest;
648
+ /**
649
+ * @generated from field: optional string gas_fee = 5;
650
+ */
651
+ gasFee?: string;
652
+ constructor(data?: PartialMessage<ClaimFeesResponse>);
653
+ static readonly runtime: typeof proto3;
654
+ static readonly typeName = "uniswap.liquidity.v2.ClaimFeesResponse";
655
+ static readonly fields: FieldList;
656
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClaimFeesResponse;
657
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClaimFeesResponse;
658
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClaimFeesResponse;
659
+ static equals(a: ClaimFeesResponse | PlainMessage<ClaimFeesResponse> | undefined, b: ClaimFeesResponse | PlainMessage<ClaimFeesResponse> | undefined): boolean;
660
+ }
@@ -4,7 +4,7 @@
4
4
  // @ts-nocheck
5
5
  import { Message, proto3 } from "@bufbuild/protobuf";
6
6
  import { ChainId, NFTPermitData, PermitBatchData, Protocols, TransactionRequest, V3Position } from "../v1/types_pb.js";
7
- import { ApprovalTransactionRequest, GasUrgency, LPAction, LPToken, PairAddress, V2PoolParameters } from "./types_pb.js";
7
+ import { ApprovalTransactionRequest, CreatePoolParameters, GasUrgency, LPAction, LPToken, PairAddress, V2PoolParameters } from "./types_pb.js";
8
8
  /**
9
9
  * MigrateV2ToV3LPPosition
10
10
  *
@@ -241,8 +241,8 @@ CreateClassicPositionResponse.runtime = proto3;
241
241
  CreateClassicPositionResponse.typeName = "uniswap.liquidity.v2.CreateClassicPositionResponse";
242
242
  CreateClassicPositionResponse.fields = proto3.util.newFieldList(() => [
243
243
  { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
244
- { no: 2, name: "token_0", kind: "message", T: LPToken },
245
- { no: 3, name: "token_1", kind: "message", T: LPToken },
244
+ { no: 2, name: "independent_token", kind: "message", T: LPToken },
245
+ { no: 3, name: "dependent_token", kind: "message", T: LPToken },
246
246
  { no: 4, name: "create", kind: "message", T: TransactionRequest },
247
247
  { no: 5, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
248
248
  ]);
@@ -437,3 +437,205 @@ IncreasePositionResponse.fields = proto3.util.newFieldList(() => [
437
437
  { no: 4, name: "increase", kind: "message", T: TransactionRequest },
438
438
  { no: 5, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
439
439
  ]);
440
+ /**
441
+ * CreatePosition (V3/V4)
442
+ *
443
+ * @generated from message uniswap.liquidity.v2.CreatePositionRequest
444
+ */
445
+ export class CreatePositionRequest extends Message {
446
+ constructor(data) {
447
+ super();
448
+ /**
449
+ * @generated from field: string wallet_address = 1;
450
+ */
451
+ this.walletAddress = "";
452
+ /**
453
+ * @generated from oneof uniswap.liquidity.v2.CreatePositionRequest.pool
454
+ */
455
+ this.pool = { case: undefined };
456
+ /**
457
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 4;
458
+ */
459
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
460
+ /**
461
+ * @generated from field: uniswap.liquidity.v1.Protocols protocol = 5;
462
+ */
463
+ this.protocol = Protocols.V2;
464
+ /**
465
+ * @generated from field: string min_price = 8;
466
+ */
467
+ this.minPrice = "";
468
+ /**
469
+ * @generated from field: string max_price = 9;
470
+ */
471
+ this.maxPrice = "";
472
+ proto3.util.initPartial(data, this);
473
+ }
474
+ static fromBinary(bytes, options) {
475
+ return new CreatePositionRequest().fromBinary(bytes, options);
476
+ }
477
+ static fromJson(jsonValue, options) {
478
+ return new CreatePositionRequest().fromJson(jsonValue, options);
479
+ }
480
+ static fromJsonString(jsonString, options) {
481
+ return new CreatePositionRequest().fromJsonString(jsonString, options);
482
+ }
483
+ static equals(a, b) {
484
+ return proto3.util.equals(CreatePositionRequest, a, b);
485
+ }
486
+ }
487
+ CreatePositionRequest.runtime = proto3;
488
+ CreatePositionRequest.typeName = "uniswap.liquidity.v2.CreatePositionRequest";
489
+ CreatePositionRequest.fields = proto3.util.newFieldList(() => [
490
+ { no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
491
+ { no: 2, name: "pool_reference", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "pool" },
492
+ { no: 3, name: "new_pool", kind: "message", T: CreatePoolParameters, oneof: "pool" },
493
+ { no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
494
+ { no: 5, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
495
+ { no: 6, name: "independent_token", kind: "message", T: LPToken },
496
+ { no: 7, name: "dependent_token", kind: "message", T: LPToken, opt: true },
497
+ { no: 8, name: "min_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
498
+ { no: 9, name: "max_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
499
+ { no: 10, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
500
+ { no: 11, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
501
+ { no: 12, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
502
+ { no: 13, name: "urgency", kind: "enum", T: proto3.getEnumType(GasUrgency), opt: true },
503
+ { no: 14, name: "batch_permit_data", kind: "message", T: PermitBatchData, opt: true },
504
+ { no: 15, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
505
+ { no: 16, name: "native_token_balance", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
506
+ ]);
507
+ /**
508
+ * @generated from message uniswap.liquidity.v2.CreatePositionResponse
509
+ */
510
+ export class CreatePositionResponse extends Message {
511
+ constructor(data) {
512
+ super();
513
+ /**
514
+ * @generated from field: string request_id = 1;
515
+ */
516
+ this.requestId = "";
517
+ /**
518
+ * @generated from field: string adjusted_min_price = 4;
519
+ */
520
+ this.adjustedMinPrice = "";
521
+ /**
522
+ * @generated from field: string adjusted_max_price = 5;
523
+ */
524
+ this.adjustedMaxPrice = "";
525
+ /**
526
+ * @generated from field: sint32 tick_lower = 6;
527
+ */
528
+ this.tickLower = 0;
529
+ /**
530
+ * @generated from field: sint32 tick_upper = 7;
531
+ */
532
+ this.tickUpper = 0;
533
+ proto3.util.initPartial(data, this);
534
+ }
535
+ static fromBinary(bytes, options) {
536
+ return new CreatePositionResponse().fromBinary(bytes, options);
537
+ }
538
+ static fromJson(jsonValue, options) {
539
+ return new CreatePositionResponse().fromJson(jsonValue, options);
540
+ }
541
+ static fromJsonString(jsonString, options) {
542
+ return new CreatePositionResponse().fromJsonString(jsonString, options);
543
+ }
544
+ static equals(a, b) {
545
+ return proto3.util.equals(CreatePositionResponse, a, b);
546
+ }
547
+ }
548
+ CreatePositionResponse.runtime = proto3;
549
+ CreatePositionResponse.typeName = "uniswap.liquidity.v2.CreatePositionResponse";
550
+ CreatePositionResponse.fields = proto3.util.newFieldList(() => [
551
+ { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
552
+ { no: 2, name: "token_0", kind: "message", T: LPToken },
553
+ { no: 3, name: "token_1", kind: "message", T: LPToken },
554
+ { no: 4, name: "adjusted_min_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
555
+ { no: 5, name: "adjusted_max_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
556
+ { no: 6, name: "tick_lower", kind: "scalar", T: 17 /* ScalarType.SINT32 */ },
557
+ { no: 7, name: "tick_upper", kind: "scalar", T: 17 /* ScalarType.SINT32 */ },
558
+ { no: 8, name: "create", kind: "message", T: TransactionRequest },
559
+ { no: 9, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
560
+ ]);
561
+ /**
562
+ * @generated from message uniswap.liquidity.v2.ClaimFeesRequest
563
+ */
564
+ export class ClaimFeesRequest extends Message {
565
+ constructor(data) {
566
+ super();
567
+ /**
568
+ * @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
569
+ */
570
+ this.protocol = Protocols.V2;
571
+ /**
572
+ * @generated from field: string wallet_address = 2;
573
+ */
574
+ this.walletAddress = "";
575
+ /**
576
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 3;
577
+ */
578
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
579
+ /**
580
+ * @generated from field: string token_id = 4;
581
+ */
582
+ this.tokenId = "";
583
+ proto3.util.initPartial(data, this);
584
+ }
585
+ static fromBinary(bytes, options) {
586
+ return new ClaimFeesRequest().fromBinary(bytes, options);
587
+ }
588
+ static fromJson(jsonValue, options) {
589
+ return new ClaimFeesRequest().fromJson(jsonValue, options);
590
+ }
591
+ static fromJsonString(jsonString, options) {
592
+ return new ClaimFeesRequest().fromJsonString(jsonString, options);
593
+ }
594
+ static equals(a, b) {
595
+ return proto3.util.equals(ClaimFeesRequest, a, b);
596
+ }
597
+ }
598
+ ClaimFeesRequest.runtime = proto3;
599
+ ClaimFeesRequest.typeName = "uniswap.liquidity.v2.ClaimFeesRequest";
600
+ ClaimFeesRequest.fields = proto3.util.newFieldList(() => [
601
+ { no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
602
+ { no: 2, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
603
+ { no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
604
+ { no: 4, name: "token_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
605
+ { no: 5, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
606
+ { no: 6, name: "collect_as_weth", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
607
+ ]);
608
+ /**
609
+ * @generated from message uniswap.liquidity.v2.ClaimFeesResponse
610
+ */
611
+ export class ClaimFeesResponse extends Message {
612
+ constructor(data) {
613
+ super();
614
+ /**
615
+ * @generated from field: string request_id = 1;
616
+ */
617
+ this.requestId = "";
618
+ proto3.util.initPartial(data, this);
619
+ }
620
+ static fromBinary(bytes, options) {
621
+ return new ClaimFeesResponse().fromBinary(bytes, options);
622
+ }
623
+ static fromJson(jsonValue, options) {
624
+ return new ClaimFeesResponse().fromJson(jsonValue, options);
625
+ }
626
+ static fromJsonString(jsonString, options) {
627
+ return new ClaimFeesResponse().fromJsonString(jsonString, options);
628
+ }
629
+ static equals(a, b) {
630
+ return proto3.util.equals(ClaimFeesResponse, a, b);
631
+ }
632
+ }
633
+ ClaimFeesResponse.runtime = proto3;
634
+ ClaimFeesResponse.typeName = "uniswap.liquidity.v2.ClaimFeesResponse";
635
+ ClaimFeesResponse.fields = proto3.util.newFieldList(() => [
636
+ { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
637
+ { no: 2, name: "token_0", kind: "message", T: LPToken },
638
+ { no: 3, name: "token_1", kind: "message", T: LPToken },
639
+ { no: 4, name: "claim", kind: "message", T: TransactionRequest },
640
+ { no: 5, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
641
+ ]);
@@ -143,3 +143,44 @@ export declare class ApprovalTransactionRequest extends Message<ApprovalTransact
143
143
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ApprovalTransactionRequest;
144
144
  static equals(a: ApprovalTransactionRequest | PlainMessage<ApprovalTransactionRequest> | undefined, b: ApprovalTransactionRequest | PlainMessage<ApprovalTransactionRequest> | undefined): boolean;
145
145
  }
146
+ /**
147
+ * @generated from message uniswap.liquidity.v2.CreatePoolParameters
148
+ */
149
+ export declare class CreatePoolParameters extends Message<CreatePoolParameters> {
150
+ /**
151
+ * @generated from field: string token_0_address = 1;
152
+ */
153
+ token0Address: string;
154
+ /**
155
+ * @generated from field: string token_1_address = 2;
156
+ */
157
+ token1Address: string;
158
+ /**
159
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 3;
160
+ */
161
+ chainId: ChainId;
162
+ /**
163
+ * @generated from field: int32 fee = 4;
164
+ */
165
+ fee: number;
166
+ /**
167
+ * @generated from field: int32 tick_spacing = 5;
168
+ */
169
+ tickSpacing: number;
170
+ /**
171
+ * @generated from field: optional string hooks = 6;
172
+ */
173
+ hooks?: string;
174
+ /**
175
+ * @generated from field: string initial_price = 7;
176
+ */
177
+ initialPrice: string;
178
+ constructor(data?: PartialMessage<CreatePoolParameters>);
179
+ static readonly runtime: typeof proto3;
180
+ static readonly typeName = "uniswap.liquidity.v2.CreatePoolParameters";
181
+ static readonly fields: FieldList;
182
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreatePoolParameters;
183
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreatePoolParameters;
184
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreatePoolParameters;
185
+ static equals(a: CreatePoolParameters | PlainMessage<CreatePoolParameters> | undefined, b: CreatePoolParameters | PlainMessage<CreatePoolParameters> | undefined): boolean;
186
+ }
@@ -214,3 +214,59 @@ ApprovalTransactionRequest.fields = proto3.util.newFieldList(() => [
214
214
  { no: 3, name: "action", kind: "enum", T: proto3.getEnumType(LPAction) },
215
215
  { no: 4, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
216
216
  ]);
217
+ /**
218
+ * @generated from message uniswap.liquidity.v2.CreatePoolParameters
219
+ */
220
+ export class CreatePoolParameters extends Message {
221
+ constructor(data) {
222
+ super();
223
+ /**
224
+ * @generated from field: string token_0_address = 1;
225
+ */
226
+ this.token0Address = "";
227
+ /**
228
+ * @generated from field: string token_1_address = 2;
229
+ */
230
+ this.token1Address = "";
231
+ /**
232
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 3;
233
+ */
234
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
235
+ /**
236
+ * @generated from field: int32 fee = 4;
237
+ */
238
+ this.fee = 0;
239
+ /**
240
+ * @generated from field: int32 tick_spacing = 5;
241
+ */
242
+ this.tickSpacing = 0;
243
+ /**
244
+ * @generated from field: string initial_price = 7;
245
+ */
246
+ this.initialPrice = "";
247
+ proto3.util.initPartial(data, this);
248
+ }
249
+ static fromBinary(bytes, options) {
250
+ return new CreatePoolParameters().fromBinary(bytes, options);
251
+ }
252
+ static fromJson(jsonValue, options) {
253
+ return new CreatePoolParameters().fromJson(jsonValue, options);
254
+ }
255
+ static fromJsonString(jsonString, options) {
256
+ return new CreatePoolParameters().fromJsonString(jsonString, options);
257
+ }
258
+ static equals(a, b) {
259
+ return proto3.util.equals(CreatePoolParameters, a, b);
260
+ }
261
+ }
262
+ CreatePoolParameters.runtime = proto3;
263
+ CreatePoolParameters.typeName = "uniswap.liquidity.v2.CreatePoolParameters";
264
+ CreatePoolParameters.fields = proto3.util.newFieldList(() => [
265
+ { no: 1, name: "token_0_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
266
+ { no: 2, name: "token_1_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
267
+ { no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
268
+ { no: 4, name: "fee", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
269
+ { no: 5, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
270
+ { no: 6, name: "hooks", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
271
+ { no: 7, name: "initial_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
272
+ ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-liquidity",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },