@uniswap/client-liquidity 0.1.4 → 0.1.5

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,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, NFTPermitData, PermitBatchData, Protocols, TransactionRequest, V3Position } from "../v1/types_pb.js";
3
+ import { ChainId, NFTPermitData, PermitBatchData, PermitSingleData, Protocols, TransactionRequest, V3Position } from "../v1/types_pb.js";
4
4
  import { ApprovalTransactionRequest, GasUrgency, LPAction, LPToken, PairAddress, V2PoolParameters } from "./types_pb.js";
5
5
  /**
6
6
  * MigrateV2ToV3LPPosition
@@ -353,3 +353,99 @@ export declare class DecreasePositionResponse extends Message<DecreasePositionRe
353
353
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DecreasePositionResponse;
354
354
  static equals(a: DecreasePositionResponse | PlainMessage<DecreasePositionResponse> | undefined, b: DecreasePositionResponse | PlainMessage<DecreasePositionResponse> | undefined): boolean;
355
355
  }
356
+ /**
357
+ * IncreaseLPPosition
358
+ *
359
+ * @generated from message uniswap.liquidity.v2.IncreasePositionRequest
360
+ */
361
+ export declare class IncreasePositionRequest extends Message<IncreasePositionRequest> {
362
+ /**
363
+ * @generated from field: string wallet_address = 1;
364
+ */
365
+ walletAddress: string;
366
+ /**
367
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 2;
368
+ */
369
+ chainId: ChainId;
370
+ /**
371
+ * @generated from field: uniswap.liquidity.v1.Protocols protocol = 3;
372
+ */
373
+ protocol: Protocols;
374
+ /**
375
+ * @generated from field: string token_0_address = 4;
376
+ */
377
+ token0Address: string;
378
+ /**
379
+ * @generated from field: string token_1_address = 5;
380
+ */
381
+ token1Address: string;
382
+ /**
383
+ * @generated from field: optional string nft_token_id = 6;
384
+ */
385
+ nftTokenId?: string;
386
+ /**
387
+ * @generated from field: uniswap.liquidity.v2.LPToken independent_token = 7;
388
+ */
389
+ independentToken?: LPToken;
390
+ /**
391
+ * @generated from field: optional float slippage_tolerance = 8;
392
+ */
393
+ slippageTolerance?: number;
394
+ /**
395
+ * @generated from field: optional int32 deadline = 9;
396
+ */
397
+ deadline?: number;
398
+ /**
399
+ * @generated from field: optional bool simulate_transaction = 10;
400
+ */
401
+ simulateTransaction?: boolean;
402
+ /**
403
+ * @generated from field: repeated uniswap.liquidity.v1.PermitSingleData permit_messages = 11;
404
+ */
405
+ permitMessages: PermitSingleData[];
406
+ /**
407
+ * @generated from field: optional uniswap.liquidity.v2.GasUrgency urgency = 12;
408
+ */
409
+ urgency?: GasUrgency;
410
+ constructor(data?: PartialMessage<IncreasePositionRequest>);
411
+ static readonly runtime: typeof proto3;
412
+ static readonly typeName = "uniswap.liquidity.v2.IncreasePositionRequest";
413
+ static readonly fields: FieldList;
414
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IncreasePositionRequest;
415
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IncreasePositionRequest;
416
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IncreasePositionRequest;
417
+ static equals(a: IncreasePositionRequest | PlainMessage<IncreasePositionRequest> | undefined, b: IncreasePositionRequest | PlainMessage<IncreasePositionRequest> | undefined): boolean;
418
+ }
419
+ /**
420
+ * @generated from message uniswap.liquidity.v2.IncreasePositionResponse
421
+ */
422
+ export declare class IncreasePositionResponse extends Message<IncreasePositionResponse> {
423
+ /**
424
+ * @generated from field: string request_id = 1;
425
+ */
426
+ requestId: string;
427
+ /**
428
+ * @generated from field: uniswap.liquidity.v2.LPToken token_0 = 2;
429
+ */
430
+ token0?: LPToken;
431
+ /**
432
+ * @generated from field: uniswap.liquidity.v2.LPToken token_1 = 3;
433
+ */
434
+ token1?: LPToken;
435
+ /**
436
+ * @generated from field: uniswap.liquidity.v1.TransactionRequest increase = 4;
437
+ */
438
+ increase?: TransactionRequest;
439
+ /**
440
+ * @generated from field: optional string gas_fee = 5;
441
+ */
442
+ gasFee?: string;
443
+ constructor(data?: PartialMessage<IncreasePositionResponse>);
444
+ static readonly runtime: typeof proto3;
445
+ static readonly typeName = "uniswap.liquidity.v2.IncreasePositionResponse";
446
+ static readonly fields: FieldList;
447
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IncreasePositionResponse;
448
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IncreasePositionResponse;
449
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IncreasePositionResponse;
450
+ static equals(a: IncreasePositionResponse | PlainMessage<IncreasePositionResponse> | undefined, b: IncreasePositionResponse | PlainMessage<IncreasePositionResponse> | undefined): boolean;
451
+ }
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { Message, proto3 } from "@bufbuild/protobuf";
6
- import { ChainId, NFTPermitData, PermitBatchData, Protocols, TransactionRequest, V3Position } from "../v1/types_pb.js";
6
+ import { ChainId, NFTPermitData, PermitBatchData, PermitSingleData, Protocols, TransactionRequest, V3Position } from "../v1/types_pb.js";
7
7
  import { ApprovalTransactionRequest, GasUrgency, LPAction, LPToken, PairAddress, V2PoolParameters } from "./types_pb.js";
8
8
  /**
9
9
  * MigrateV2ToV3LPPosition
@@ -354,3 +354,100 @@ DecreasePositionResponse.fields = proto3.util.newFieldList(() => [
354
354
  { no: 4, name: "decrease", kind: "message", T: TransactionRequest },
355
355
  { no: 5, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
356
356
  ]);
357
+ /**
358
+ * IncreaseLPPosition
359
+ *
360
+ * @generated from message uniswap.liquidity.v2.IncreasePositionRequest
361
+ */
362
+ export class IncreasePositionRequest extends Message {
363
+ constructor(data) {
364
+ super();
365
+ /**
366
+ * @generated from field: string wallet_address = 1;
367
+ */
368
+ this.walletAddress = "";
369
+ /**
370
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 2;
371
+ */
372
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
373
+ /**
374
+ * @generated from field: uniswap.liquidity.v1.Protocols protocol = 3;
375
+ */
376
+ this.protocol = Protocols.V2;
377
+ /**
378
+ * @generated from field: string token_0_address = 4;
379
+ */
380
+ this.token0Address = "";
381
+ /**
382
+ * @generated from field: string token_1_address = 5;
383
+ */
384
+ this.token1Address = "";
385
+ /**
386
+ * @generated from field: repeated uniswap.liquidity.v1.PermitSingleData permit_messages = 11;
387
+ */
388
+ this.permitMessages = [];
389
+ proto3.util.initPartial(data, this);
390
+ }
391
+ static fromBinary(bytes, options) {
392
+ return new IncreasePositionRequest().fromBinary(bytes, options);
393
+ }
394
+ static fromJson(jsonValue, options) {
395
+ return new IncreasePositionRequest().fromJson(jsonValue, options);
396
+ }
397
+ static fromJsonString(jsonString, options) {
398
+ return new IncreasePositionRequest().fromJsonString(jsonString, options);
399
+ }
400
+ static equals(a, b) {
401
+ return proto3.util.equals(IncreasePositionRequest, a, b);
402
+ }
403
+ }
404
+ IncreasePositionRequest.runtime = proto3;
405
+ IncreasePositionRequest.typeName = "uniswap.liquidity.v2.IncreasePositionRequest";
406
+ IncreasePositionRequest.fields = proto3.util.newFieldList(() => [
407
+ { no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
408
+ { no: 2, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
409
+ { no: 3, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
410
+ { no: 4, name: "token_0_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
411
+ { no: 5, name: "token_1_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
412
+ { no: 6, name: "nft_token_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
413
+ { no: 7, name: "independent_token", kind: "message", T: LPToken },
414
+ { no: 8, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
415
+ { no: 9, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
416
+ { no: 10, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
417
+ { no: 11, name: "permit_messages", kind: "message", T: PermitSingleData, repeated: true },
418
+ { no: 12, name: "urgency", kind: "enum", T: proto3.getEnumType(GasUrgency), opt: true },
419
+ ]);
420
+ /**
421
+ * @generated from message uniswap.liquidity.v2.IncreasePositionResponse
422
+ */
423
+ export class IncreasePositionResponse extends Message {
424
+ constructor(data) {
425
+ super();
426
+ /**
427
+ * @generated from field: string request_id = 1;
428
+ */
429
+ this.requestId = "";
430
+ proto3.util.initPartial(data, this);
431
+ }
432
+ static fromBinary(bytes, options) {
433
+ return new IncreasePositionResponse().fromBinary(bytes, options);
434
+ }
435
+ static fromJson(jsonValue, options) {
436
+ return new IncreasePositionResponse().fromJson(jsonValue, options);
437
+ }
438
+ static fromJsonString(jsonString, options) {
439
+ return new IncreasePositionResponse().fromJsonString(jsonString, options);
440
+ }
441
+ static equals(a, b) {
442
+ return proto3.util.equals(IncreasePositionResponse, a, b);
443
+ }
444
+ }
445
+ IncreasePositionResponse.runtime = proto3;
446
+ IncreasePositionResponse.typeName = "uniswap.liquidity.v2.IncreasePositionResponse";
447
+ IncreasePositionResponse.fields = proto3.util.newFieldList(() => [
448
+ { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
449
+ { no: 2, name: "token_0", kind: "message", T: LPToken },
450
+ { no: 3, name: "token_1", kind: "message", T: LPToken },
451
+ { no: 4, name: "increase", kind: "message", T: TransactionRequest },
452
+ { no: 5, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
453
+ ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-liquidity",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },