@uniswap/client-liquidity 0.0.6 → 0.0.10

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,9 +1,9 @@
1
- // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
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
5
  import { Message, proto3 } from "@bufbuild/protobuf";
6
- import { ChainId, Distributor, TransactionRequest, V2CreateLPPosition, V3CreateLPPosition, V3Position, V4CreateLPPosition, V4Position } from "./types_pb.js";
6
+ import { ChainId, Distributor, PoolInformation, PoolParameters, PoolReferenceByProtocol, Protocols, TransactionRequest, V2CreateLPPosition, V2DecreaseLPPosition, V2IncreaseLPPosition, V3CreateLPPosition, V3DecreaseLPPosition, V3IncreaseLPPosition, V3Position, V4CreateLPPosition, V4DecreaseLPPosition, V4IncreaseLPPosition, V4Position } from "./types_pb.js";
7
7
  /**
8
8
  * REQUESTS & RESPONSES
9
9
  *
@@ -340,3 +340,221 @@ CreateLPPositionResponse.fields = proto3.util.newFieldList(() => [
340
340
  { no: 5, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
341
341
  { no: 6, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
342
342
  ]);
343
+ /**
344
+ * @generated from message uniswap.liquidity.v1.PoolInfoRequest
345
+ */
346
+ export class PoolInfoRequest extends Message {
347
+ constructor(data) {
348
+ super();
349
+ /**
350
+ * @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
351
+ */
352
+ this.protocol = Protocols.V2;
353
+ /**
354
+ * @generated from field: repeated uniswap.liquidity.v1.PoolReferenceByProtocol pool_references = 2;
355
+ */
356
+ this.poolReferences = [];
357
+ proto3.util.initPartial(data, this);
358
+ }
359
+ static fromBinary(bytes, options) {
360
+ return new PoolInfoRequest().fromBinary(bytes, options);
361
+ }
362
+ static fromJson(jsonValue, options) {
363
+ return new PoolInfoRequest().fromJson(jsonValue, options);
364
+ }
365
+ static fromJsonString(jsonString, options) {
366
+ return new PoolInfoRequest().fromJsonString(jsonString, options);
367
+ }
368
+ static equals(a, b) {
369
+ return proto3.util.equals(PoolInfoRequest, a, b);
370
+ }
371
+ }
372
+ PoolInfoRequest.runtime = proto3;
373
+ PoolInfoRequest.typeName = "uniswap.liquidity.v1.PoolInfoRequest";
374
+ PoolInfoRequest.fields = proto3.util.newFieldList(() => [
375
+ { no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
376
+ { no: 2, name: "pool_references", kind: "message", T: PoolReferenceByProtocol, repeated: true },
377
+ { no: 3, name: "pool_parameters", kind: "message", T: PoolParameters, opt: true },
378
+ { no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId), opt: true },
379
+ { no: 5, name: "page_size", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
380
+ { no: 6, name: "current_page", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
381
+ ]);
382
+ /**
383
+ * @generated from message uniswap.liquidity.v1.PoolInfoResponse
384
+ */
385
+ export class PoolInfoResponse extends Message {
386
+ constructor(data) {
387
+ super();
388
+ /**
389
+ * @generated from field: string request_id = 1;
390
+ */
391
+ this.requestId = "";
392
+ /**
393
+ * @generated from field: repeated uniswap.liquidity.v1.PoolInformation pools = 2;
394
+ */
395
+ this.pools = [];
396
+ /**
397
+ * @generated from field: int32 current_page = 3;
398
+ */
399
+ this.currentPage = 0;
400
+ /**
401
+ * @generated from field: int32 page_size = 4;
402
+ */
403
+ this.pageSize = 0;
404
+ proto3.util.initPartial(data, this);
405
+ }
406
+ static fromBinary(bytes, options) {
407
+ return new PoolInfoResponse().fromBinary(bytes, options);
408
+ }
409
+ static fromJson(jsonValue, options) {
410
+ return new PoolInfoResponse().fromJson(jsonValue, options);
411
+ }
412
+ static fromJsonString(jsonString, options) {
413
+ return new PoolInfoResponse().fromJsonString(jsonString, options);
414
+ }
415
+ static equals(a, b) {
416
+ return proto3.util.equals(PoolInfoResponse, a, b);
417
+ }
418
+ }
419
+ PoolInfoResponse.runtime = proto3;
420
+ PoolInfoResponse.typeName = "uniswap.liquidity.v1.PoolInfoResponse";
421
+ PoolInfoResponse.fields = proto3.util.newFieldList(() => [
422
+ { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
423
+ { no: 2, name: "pools", kind: "message", T: PoolInformation, repeated: true },
424
+ { no: 3, name: "current_page", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
425
+ { no: 4, name: "page_size", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
426
+ ]);
427
+ /**
428
+ * @generated from message uniswap.liquidity.v1.IncreaseLPPositionRequest
429
+ */
430
+ export class IncreaseLPPositionRequest extends Message {
431
+ constructor(data) {
432
+ super();
433
+ /**
434
+ * @generated from oneof uniswap.liquidity.v1.IncreaseLPPositionRequest.increaseLpPosition
435
+ */
436
+ this.increaseLpPosition = { case: undefined };
437
+ proto3.util.initPartial(data, this);
438
+ }
439
+ static fromBinary(bytes, options) {
440
+ return new IncreaseLPPositionRequest().fromBinary(bytes, options);
441
+ }
442
+ static fromJson(jsonValue, options) {
443
+ return new IncreaseLPPositionRequest().fromJson(jsonValue, options);
444
+ }
445
+ static fromJsonString(jsonString, options) {
446
+ return new IncreaseLPPositionRequest().fromJsonString(jsonString, options);
447
+ }
448
+ static equals(a, b) {
449
+ return proto3.util.equals(IncreaseLPPositionRequest, a, b);
450
+ }
451
+ }
452
+ IncreaseLPPositionRequest.runtime = proto3;
453
+ IncreaseLPPositionRequest.typeName = "uniswap.liquidity.v1.IncreaseLPPositionRequest";
454
+ IncreaseLPPositionRequest.fields = proto3.util.newFieldList(() => [
455
+ { no: 1, name: "v2_increase_lp_position", kind: "message", T: V2IncreaseLPPosition, oneof: "increaseLpPosition" },
456
+ { no: 2, name: "v3_increase_lp_position", kind: "message", T: V3IncreaseLPPosition, oneof: "increaseLpPosition" },
457
+ { no: 3, name: "v4_increase_lp_position", kind: "message", T: V4IncreaseLPPosition, oneof: "increaseLpPosition" },
458
+ ]);
459
+ /**
460
+ * @generated from message uniswap.liquidity.v1.IncreaseLPPositionResponse
461
+ */
462
+ export class IncreaseLPPositionResponse extends Message {
463
+ constructor(data) {
464
+ super();
465
+ /**
466
+ * @generated from field: string request_id = 1;
467
+ */
468
+ this.requestId = "";
469
+ proto3.util.initPartial(data, this);
470
+ }
471
+ static fromBinary(bytes, options) {
472
+ return new IncreaseLPPositionResponse().fromBinary(bytes, options);
473
+ }
474
+ static fromJson(jsonValue, options) {
475
+ return new IncreaseLPPositionResponse().fromJson(jsonValue, options);
476
+ }
477
+ static fromJsonString(jsonString, options) {
478
+ return new IncreaseLPPositionResponse().fromJsonString(jsonString, options);
479
+ }
480
+ static equals(a, b) {
481
+ return proto3.util.equals(IncreaseLPPositionResponse, a, b);
482
+ }
483
+ }
484
+ IncreaseLPPositionResponse.runtime = proto3;
485
+ IncreaseLPPositionResponse.typeName = "uniswap.liquidity.v1.IncreaseLPPositionResponse";
486
+ IncreaseLPPositionResponse.fields = proto3.util.newFieldList(() => [
487
+ { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
488
+ { no: 2, name: "increase", kind: "message", T: TransactionRequest, opt: true },
489
+ { no: 3, name: "dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
490
+ { no: 4, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
491
+ { no: 5, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
492
+ { no: 6, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
493
+ ]);
494
+ /**
495
+ * @generated from message uniswap.liquidity.v1.DecreaseLPPositionRequest
496
+ */
497
+ export class DecreaseLPPositionRequest extends Message {
498
+ constructor(data) {
499
+ super();
500
+ /**
501
+ * @generated from oneof uniswap.liquidity.v1.DecreaseLPPositionRequest.decreaseLpPosition
502
+ */
503
+ this.decreaseLpPosition = { case: undefined };
504
+ proto3.util.initPartial(data, this);
505
+ }
506
+ static fromBinary(bytes, options) {
507
+ return new DecreaseLPPositionRequest().fromBinary(bytes, options);
508
+ }
509
+ static fromJson(jsonValue, options) {
510
+ return new DecreaseLPPositionRequest().fromJson(jsonValue, options);
511
+ }
512
+ static fromJsonString(jsonString, options) {
513
+ return new DecreaseLPPositionRequest().fromJsonString(jsonString, options);
514
+ }
515
+ static equals(a, b) {
516
+ return proto3.util.equals(DecreaseLPPositionRequest, a, b);
517
+ }
518
+ }
519
+ DecreaseLPPositionRequest.runtime = proto3;
520
+ DecreaseLPPositionRequest.typeName = "uniswap.liquidity.v1.DecreaseLPPositionRequest";
521
+ DecreaseLPPositionRequest.fields = proto3.util.newFieldList(() => [
522
+ { no: 1, name: "v2_decrease_lp_position", kind: "message", T: V2DecreaseLPPosition, oneof: "decreaseLpPosition" },
523
+ { no: 2, name: "v3_decrease_lp_position", kind: "message", T: V3DecreaseLPPosition, oneof: "decreaseLpPosition" },
524
+ { no: 3, name: "v4_decrease_lp_position", kind: "message", T: V4DecreaseLPPosition, oneof: "decreaseLpPosition" },
525
+ ]);
526
+ /**
527
+ * @generated from message uniswap.liquidity.v1.DecreaseLPPositionResponse
528
+ */
529
+ export class DecreaseLPPositionResponse extends Message {
530
+ constructor(data) {
531
+ super();
532
+ /**
533
+ * @generated from field: string request_id = 1;
534
+ */
535
+ this.requestId = "";
536
+ proto3.util.initPartial(data, this);
537
+ }
538
+ static fromBinary(bytes, options) {
539
+ return new DecreaseLPPositionResponse().fromBinary(bytes, options);
540
+ }
541
+ static fromJson(jsonValue, options) {
542
+ return new DecreaseLPPositionResponse().fromJson(jsonValue, options);
543
+ }
544
+ static fromJsonString(jsonString, options) {
545
+ return new DecreaseLPPositionResponse().fromJsonString(jsonString, options);
546
+ }
547
+ static equals(a, b) {
548
+ return proto3.util.equals(DecreaseLPPositionResponse, a, b);
549
+ }
550
+ }
551
+ DecreaseLPPositionResponse.runtime = proto3;
552
+ DecreaseLPPositionResponse.typeName = "uniswap.liquidity.v1.DecreaseLPPositionResponse";
553
+ DecreaseLPPositionResponse.fields = proto3.util.newFieldList(() => [
554
+ { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
555
+ { no: 2, name: "decrease", kind: "message", T: TransactionRequest, opt: true },
556
+ { no: 3, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
557
+ { no: 4, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
558
+ { no: 5, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
559
+ { no: 6, name: "gasFee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
560
+ ]);
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-connect-query v1.4.1 with parameter "target=ts"
1
+ // @generated by protoc-gen-connect-query v1.4.2 with parameter "target=ts"
2
2
  // @generated from file uniswap/liquidity/v1/auction.proto (package uniswap.liquidity.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
2
2
  // @generated from file uniswap/liquidity/v1/auction.proto (package uniswap.liquidity.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
2
  // @generated from file uniswap/liquidity/v1/auction.proto (package uniswap.liquidity.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck