@uniswap/client-liquidity 0.0.3 → 0.0.6

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.
@@ -6,6 +6,30 @@ import { Message, proto3 } from "@bufbuild/protobuf";
6
6
  /**
7
7
  * ENUMS
8
8
  *
9
+ * @generated from enum uniswap.liquidity.v1.Protocols
10
+ */
11
+ export var Protocols;
12
+ (function (Protocols) {
13
+ /**
14
+ * @generated from enum value: V2 = 0;
15
+ */
16
+ Protocols[Protocols["V2"] = 0] = "V2";
17
+ /**
18
+ * @generated from enum value: V3 = 1;
19
+ */
20
+ Protocols[Protocols["V3"] = 1] = "V3";
21
+ /**
22
+ * @generated from enum value: V4 = 2;
23
+ */
24
+ Protocols[Protocols["V4"] = 2] = "V4";
25
+ })(Protocols || (Protocols = {}));
26
+ // Retrieve enum metadata with: proto3.getEnumType(Protocols)
27
+ proto3.util.setEnumType(Protocols, "uniswap.liquidity.v1.Protocols", [
28
+ { no: 0, name: "V2" },
29
+ { no: 1, name: "V3" },
30
+ { no: 2, name: "V4" },
31
+ ]);
32
+ /**
9
33
  * @generated from enum uniswap.liquidity.v1.ChainId
10
34
  */
11
35
  export var ChainId;
@@ -115,7 +139,40 @@ proto3.util.setEnumType(ChainId, "uniswap.liquidity.v1.ChainId", [
115
139
  { no: 143, name: "MONAD" },
116
140
  ]);
117
141
  /**
118
- * SUPPORTING OBJECTS
142
+ * @generated from enum uniswap.liquidity.v1.Distributor
143
+ */
144
+ export var Distributor;
145
+ (function (Distributor) {
146
+ /**
147
+ * @generated from enum value: MERKLE = 0;
148
+ */
149
+ Distributor[Distributor["MERKLE"] = 0] = "MERKLE";
150
+ })(Distributor || (Distributor = {}));
151
+ // Retrieve enum metadata with: proto3.getEnumType(Distributor)
152
+ proto3.util.setEnumType(Distributor, "uniswap.liquidity.v1.Distributor", [
153
+ { no: 0, name: "MERKLE" },
154
+ ]);
155
+ /**
156
+ * @generated from enum uniswap.liquidity.v1.IndependentToken
157
+ */
158
+ export var IndependentToken;
159
+ (function (IndependentToken) {
160
+ /**
161
+ * @generated from enum value: TOKEN_0 = 0;
162
+ */
163
+ IndependentToken[IndependentToken["TOKEN_0"] = 0] = "TOKEN_0";
164
+ /**
165
+ * @generated from enum value: TOKEN_1 = 1;
166
+ */
167
+ IndependentToken[IndependentToken["TOKEN_1"] = 1] = "TOKEN_1";
168
+ })(IndependentToken || (IndependentToken = {}));
169
+ // Retrieve enum metadata with: proto3.getEnumType(IndependentToken)
170
+ proto3.util.setEnumType(IndependentToken, "uniswap.liquidity.v1.IndependentToken", [
171
+ { no: 0, name: "TOKEN_0" },
172
+ { no: 1, name: "TOKEN_1" },
173
+ ]);
174
+ /**
175
+ * CORE TYPE OBJECTS
119
176
  *
120
177
  * @generated from message uniswap.liquidity.v1.TransactionRequest
121
178
  */
@@ -394,3 +451,675 @@ V4Pool.fields = proto3.util.newFieldList(() => [
394
451
  { no: 4, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
395
452
  { no: 5, name: "hooks", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
396
453
  ]);
454
+ /**
455
+ * PERMIT TYPES
456
+ *
457
+ * @generated from message uniswap.liquidity.v1.PermitSingleData
458
+ */
459
+ export class PermitSingleData extends Message {
460
+ constructor(data) {
461
+ super();
462
+ /**
463
+ * @generated from field: map<string, uniswap.liquidity.v1.TypeFieldArray> types = 2;
464
+ */
465
+ this.types = {};
466
+ proto3.util.initPartial(data, this);
467
+ }
468
+ static fromBinary(bytes, options) {
469
+ return new PermitSingleData().fromBinary(bytes, options);
470
+ }
471
+ static fromJson(jsonValue, options) {
472
+ return new PermitSingleData().fromJson(jsonValue, options);
473
+ }
474
+ static fromJsonString(jsonString, options) {
475
+ return new PermitSingleData().fromJsonString(jsonString, options);
476
+ }
477
+ static equals(a, b) {
478
+ return proto3.util.equals(PermitSingleData, a, b);
479
+ }
480
+ }
481
+ PermitSingleData.runtime = proto3;
482
+ PermitSingleData.typeName = "uniswap.liquidity.v1.PermitSingleData";
483
+ PermitSingleData.fields = proto3.util.newFieldList(() => [
484
+ { no: 1, name: "domain", kind: "message", T: Domain },
485
+ { no: 2, name: "types", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: TypeFieldArray } },
486
+ { no: 3, name: "values", kind: "message", T: PermitSingle },
487
+ ]);
488
+ /**
489
+ * @generated from message uniswap.liquidity.v1.PermitSingle
490
+ */
491
+ export class PermitSingle extends Message {
492
+ constructor(data) {
493
+ super();
494
+ /**
495
+ * @generated from field: string spender = 2;
496
+ */
497
+ this.spender = "";
498
+ /**
499
+ * @generated from field: string sig_deadline = 3;
500
+ */
501
+ this.sigDeadline = "";
502
+ proto3.util.initPartial(data, this);
503
+ }
504
+ static fromBinary(bytes, options) {
505
+ return new PermitSingle().fromBinary(bytes, options);
506
+ }
507
+ static fromJson(jsonValue, options) {
508
+ return new PermitSingle().fromJson(jsonValue, options);
509
+ }
510
+ static fromJsonString(jsonString, options) {
511
+ return new PermitSingle().fromJsonString(jsonString, options);
512
+ }
513
+ static equals(a, b) {
514
+ return proto3.util.equals(PermitSingle, a, b);
515
+ }
516
+ }
517
+ PermitSingle.runtime = proto3;
518
+ PermitSingle.typeName = "uniswap.liquidity.v1.PermitSingle";
519
+ PermitSingle.fields = proto3.util.newFieldList(() => [
520
+ { no: 1, name: "details", kind: "message", T: PermitDetails },
521
+ { no: 2, name: "spender", kind: "scalar", T: 9 /* ScalarType.STRING */ },
522
+ { no: 3, name: "sig_deadline", kind: "scalar", T: 9 /* ScalarType.STRING */ },
523
+ ]);
524
+ /**
525
+ * @generated from message uniswap.liquidity.v1.PermitDetails
526
+ */
527
+ export class PermitDetails extends Message {
528
+ constructor(data) {
529
+ super();
530
+ /**
531
+ * @generated from field: string token = 1;
532
+ */
533
+ this.token = "";
534
+ /**
535
+ * @generated from field: string amount = 2;
536
+ */
537
+ this.amount = "";
538
+ /**
539
+ * @generated from field: string expiration = 3;
540
+ */
541
+ this.expiration = "";
542
+ /**
543
+ * @generated from field: string nonce = 4;
544
+ */
545
+ this.nonce = "";
546
+ proto3.util.initPartial(data, this);
547
+ }
548
+ static fromBinary(bytes, options) {
549
+ return new PermitDetails().fromBinary(bytes, options);
550
+ }
551
+ static fromJson(jsonValue, options) {
552
+ return new PermitDetails().fromJson(jsonValue, options);
553
+ }
554
+ static fromJsonString(jsonString, options) {
555
+ return new PermitDetails().fromJsonString(jsonString, options);
556
+ }
557
+ static equals(a, b) {
558
+ return proto3.util.equals(PermitDetails, a, b);
559
+ }
560
+ }
561
+ PermitDetails.runtime = proto3;
562
+ PermitDetails.typeName = "uniswap.liquidity.v1.PermitDetails";
563
+ PermitDetails.fields = proto3.util.newFieldList(() => [
564
+ { no: 1, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
565
+ { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
566
+ { no: 3, name: "expiration", kind: "scalar", T: 9 /* ScalarType.STRING */ },
567
+ { no: 4, name: "nonce", kind: "scalar", T: 9 /* ScalarType.STRING */ },
568
+ ]);
569
+ /**
570
+ * @generated from message uniswap.liquidity.v1.Domain
571
+ */
572
+ export class Domain extends Message {
573
+ constructor(data) {
574
+ super();
575
+ proto3.util.initPartial(data, this);
576
+ }
577
+ static fromBinary(bytes, options) {
578
+ return new Domain().fromBinary(bytes, options);
579
+ }
580
+ static fromJson(jsonValue, options) {
581
+ return new Domain().fromJson(jsonValue, options);
582
+ }
583
+ static fromJsonString(jsonString, options) {
584
+ return new Domain().fromJsonString(jsonString, options);
585
+ }
586
+ static equals(a, b) {
587
+ return proto3.util.equals(Domain, a, b);
588
+ }
589
+ }
590
+ Domain.runtime = proto3;
591
+ Domain.typeName = "uniswap.liquidity.v1.Domain";
592
+ Domain.fields = proto3.util.newFieldList(() => [
593
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
594
+ { no: 2, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId), opt: true },
595
+ { no: 3, name: "verifying_contract", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
596
+ { no: 4, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
597
+ { no: 5, name: "salt", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
598
+ ]);
599
+ /**
600
+ * @generated from message uniswap.liquidity.v1.TypeField
601
+ */
602
+ export class TypeField extends Message {
603
+ constructor(data) {
604
+ super();
605
+ /**
606
+ * @generated from field: string name = 1;
607
+ */
608
+ this.name = "";
609
+ /**
610
+ * @generated from field: string type = 2;
611
+ */
612
+ this.type = "";
613
+ proto3.util.initPartial(data, this);
614
+ }
615
+ static fromBinary(bytes, options) {
616
+ return new TypeField().fromBinary(bytes, options);
617
+ }
618
+ static fromJson(jsonValue, options) {
619
+ return new TypeField().fromJson(jsonValue, options);
620
+ }
621
+ static fromJsonString(jsonString, options) {
622
+ return new TypeField().fromJsonString(jsonString, options);
623
+ }
624
+ static equals(a, b) {
625
+ return proto3.util.equals(TypeField, a, b);
626
+ }
627
+ }
628
+ TypeField.runtime = proto3;
629
+ TypeField.typeName = "uniswap.liquidity.v1.TypeField";
630
+ TypeField.fields = proto3.util.newFieldList(() => [
631
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
632
+ { no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
633
+ ]);
634
+ /**
635
+ * @generated from message uniswap.liquidity.v1.PermitBatchData
636
+ */
637
+ export class PermitBatchData extends Message {
638
+ constructor(data) {
639
+ super();
640
+ /**
641
+ * @generated from field: map<string, uniswap.liquidity.v1.TypeFieldArray> types = 2;
642
+ */
643
+ this.types = {};
644
+ proto3.util.initPartial(data, this);
645
+ }
646
+ static fromBinary(bytes, options) {
647
+ return new PermitBatchData().fromBinary(bytes, options);
648
+ }
649
+ static fromJson(jsonValue, options) {
650
+ return new PermitBatchData().fromJson(jsonValue, options);
651
+ }
652
+ static fromJsonString(jsonString, options) {
653
+ return new PermitBatchData().fromJsonString(jsonString, options);
654
+ }
655
+ static equals(a, b) {
656
+ return proto3.util.equals(PermitBatchData, a, b);
657
+ }
658
+ }
659
+ PermitBatchData.runtime = proto3;
660
+ PermitBatchData.typeName = "uniswap.liquidity.v1.PermitBatchData";
661
+ PermitBatchData.fields = proto3.util.newFieldList(() => [
662
+ { no: 1, name: "domain", kind: "message", T: Domain },
663
+ { no: 2, name: "types", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: TypeFieldArray } },
664
+ { no: 3, name: "values", kind: "message", T: PermitBatch },
665
+ ]);
666
+ /**
667
+ * @generated from message uniswap.liquidity.v1.PermitBatch
668
+ */
669
+ export class PermitBatch extends Message {
670
+ constructor(data) {
671
+ super();
672
+ /**
673
+ * @generated from field: repeated uniswap.liquidity.v1.PermitDetails details = 1;
674
+ */
675
+ this.details = [];
676
+ /**
677
+ * @generated from field: string spender = 2;
678
+ */
679
+ this.spender = "";
680
+ /**
681
+ * @generated from field: string sig_deadline = 3;
682
+ */
683
+ this.sigDeadline = "";
684
+ proto3.util.initPartial(data, this);
685
+ }
686
+ static fromBinary(bytes, options) {
687
+ return new PermitBatch().fromBinary(bytes, options);
688
+ }
689
+ static fromJson(jsonValue, options) {
690
+ return new PermitBatch().fromJson(jsonValue, options);
691
+ }
692
+ static fromJsonString(jsonString, options) {
693
+ return new PermitBatch().fromJsonString(jsonString, options);
694
+ }
695
+ static equals(a, b) {
696
+ return proto3.util.equals(PermitBatch, a, b);
697
+ }
698
+ }
699
+ PermitBatch.runtime = proto3;
700
+ PermitBatch.typeName = "uniswap.liquidity.v1.PermitBatch";
701
+ PermitBatch.fields = proto3.util.newFieldList(() => [
702
+ { no: 1, name: "details", kind: "message", T: PermitDetails, repeated: true },
703
+ { no: 2, name: "spender", kind: "scalar", T: 9 /* ScalarType.STRING */ },
704
+ { no: 3, name: "sig_deadline", kind: "scalar", T: 9 /* ScalarType.STRING */ },
705
+ ]);
706
+ /**
707
+ * @generated from message uniswap.liquidity.v1.TypedDataDomain
708
+ */
709
+ export class TypedDataDomain extends Message {
710
+ constructor(data) {
711
+ super();
712
+ proto3.util.initPartial(data, this);
713
+ }
714
+ static fromBinary(bytes, options) {
715
+ return new TypedDataDomain().fromBinary(bytes, options);
716
+ }
717
+ static fromJson(jsonValue, options) {
718
+ return new TypedDataDomain().fromJson(jsonValue, options);
719
+ }
720
+ static fromJsonString(jsonString, options) {
721
+ return new TypedDataDomain().fromJsonString(jsonString, options);
722
+ }
723
+ static equals(a, b) {
724
+ return proto3.util.equals(TypedDataDomain, a, b);
725
+ }
726
+ }
727
+ TypedDataDomain.runtime = proto3;
728
+ TypedDataDomain.typeName = "uniswap.liquidity.v1.TypedDataDomain";
729
+ TypedDataDomain.fields = proto3.util.newFieldList(() => [
730
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
731
+ { no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
732
+ { no: 3, name: "chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
733
+ { no: 4, name: "verifying_contract", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
734
+ { no: 5, name: "salt", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
735
+ ]);
736
+ /**
737
+ * @generated from message uniswap.liquidity.v1.NFTPermitValues
738
+ */
739
+ export class NFTPermitValues extends Message {
740
+ constructor(data) {
741
+ super();
742
+ /**
743
+ * @generated from field: string spender = 1;
744
+ */
745
+ this.spender = "";
746
+ /**
747
+ * @generated from field: int32 tokenId = 2;
748
+ */
749
+ this.tokenId = 0;
750
+ /**
751
+ * @generated from field: string deadline = 3;
752
+ */
753
+ this.deadline = "";
754
+ /**
755
+ * @generated from field: string nonce = 4;
756
+ */
757
+ this.nonce = "";
758
+ proto3.util.initPartial(data, this);
759
+ }
760
+ static fromBinary(bytes, options) {
761
+ return new NFTPermitValues().fromBinary(bytes, options);
762
+ }
763
+ static fromJson(jsonValue, options) {
764
+ return new NFTPermitValues().fromJson(jsonValue, options);
765
+ }
766
+ static fromJsonString(jsonString, options) {
767
+ return new NFTPermitValues().fromJsonString(jsonString, options);
768
+ }
769
+ static equals(a, b) {
770
+ return proto3.util.equals(NFTPermitValues, a, b);
771
+ }
772
+ }
773
+ NFTPermitValues.runtime = proto3;
774
+ NFTPermitValues.typeName = "uniswap.liquidity.v1.NFTPermitValues";
775
+ NFTPermitValues.fields = proto3.util.newFieldList(() => [
776
+ { no: 1, name: "spender", kind: "scalar", T: 9 /* ScalarType.STRING */ },
777
+ { no: 2, name: "tokenId", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
778
+ { no: 3, name: "deadline", kind: "scalar", T: 9 /* ScalarType.STRING */ },
779
+ { no: 4, name: "nonce", kind: "scalar", T: 9 /* ScalarType.STRING */ },
780
+ ]);
781
+ /**
782
+ * @generated from message uniswap.liquidity.v1.NFTPermitData
783
+ */
784
+ export class NFTPermitData extends Message {
785
+ constructor(data) {
786
+ super();
787
+ /**
788
+ * @generated from field: map<string, uniswap.liquidity.v1.TypeFieldArray> types = 2;
789
+ */
790
+ this.types = {};
791
+ proto3.util.initPartial(data, this);
792
+ }
793
+ static fromBinary(bytes, options) {
794
+ return new NFTPermitData().fromBinary(bytes, options);
795
+ }
796
+ static fromJson(jsonValue, options) {
797
+ return new NFTPermitData().fromJson(jsonValue, options);
798
+ }
799
+ static fromJsonString(jsonString, options) {
800
+ return new NFTPermitData().fromJsonString(jsonString, options);
801
+ }
802
+ static equals(a, b) {
803
+ return proto3.util.equals(NFTPermitData, a, b);
804
+ }
805
+ }
806
+ NFTPermitData.runtime = proto3;
807
+ NFTPermitData.typeName = "uniswap.liquidity.v1.NFTPermitData";
808
+ NFTPermitData.fields = proto3.util.newFieldList(() => [
809
+ { no: 1, name: "domain", kind: "message", T: TypedDataDomain },
810
+ { no: 2, name: "types", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: TypeFieldArray } },
811
+ { no: 3, name: "values", kind: "message", T: NFTPermitValues },
812
+ ]);
813
+ /**
814
+ * @generated from message uniswap.liquidity.v1.PermitTransferFromData
815
+ */
816
+ export class PermitTransferFromData extends Message {
817
+ constructor(data) {
818
+ super();
819
+ /**
820
+ * @generated from field: map<string, uniswap.liquidity.v1.TypeFieldArray> types = 2;
821
+ */
822
+ this.types = {};
823
+ proto3.util.initPartial(data, this);
824
+ }
825
+ static fromBinary(bytes, options) {
826
+ return new PermitTransferFromData().fromBinary(bytes, options);
827
+ }
828
+ static fromJson(jsonValue, options) {
829
+ return new PermitTransferFromData().fromJson(jsonValue, options);
830
+ }
831
+ static fromJsonString(jsonString, options) {
832
+ return new PermitTransferFromData().fromJsonString(jsonString, options);
833
+ }
834
+ static equals(a, b) {
835
+ return proto3.util.equals(PermitTransferFromData, a, b);
836
+ }
837
+ }
838
+ PermitTransferFromData.runtime = proto3;
839
+ PermitTransferFromData.typeName = "uniswap.liquidity.v1.PermitTransferFromData";
840
+ PermitTransferFromData.fields = proto3.util.newFieldList(() => [
841
+ { no: 1, name: "domain", kind: "message", T: Domain },
842
+ { no: 2, name: "types", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: TypeFieldArray } },
843
+ { no: 3, name: "values", kind: "message", T: PermitTransferFrom },
844
+ ]);
845
+ /**
846
+ * @generated from message uniswap.liquidity.v1.TypeFieldArray
847
+ */
848
+ export class TypeFieldArray extends Message {
849
+ constructor(data) {
850
+ super();
851
+ /**
852
+ * @generated from field: repeated uniswap.liquidity.v1.TypeField fields = 1;
853
+ */
854
+ this.fields = [];
855
+ proto3.util.initPartial(data, this);
856
+ }
857
+ static fromBinary(bytes, options) {
858
+ return new TypeFieldArray().fromBinary(bytes, options);
859
+ }
860
+ static fromJson(jsonValue, options) {
861
+ return new TypeFieldArray().fromJson(jsonValue, options);
862
+ }
863
+ static fromJsonString(jsonString, options) {
864
+ return new TypeFieldArray().fromJsonString(jsonString, options);
865
+ }
866
+ static equals(a, b) {
867
+ return proto3.util.equals(TypeFieldArray, a, b);
868
+ }
869
+ }
870
+ TypeFieldArray.runtime = proto3;
871
+ TypeFieldArray.typeName = "uniswap.liquidity.v1.TypeFieldArray";
872
+ TypeFieldArray.fields = proto3.util.newFieldList(() => [
873
+ { no: 1, name: "fields", kind: "message", T: TypeField, repeated: true },
874
+ ]);
875
+ /**
876
+ * @generated from message uniswap.liquidity.v1.PermitTransferFrom
877
+ */
878
+ export class PermitTransferFrom extends Message {
879
+ constructor(data) {
880
+ super();
881
+ /**
882
+ * @generated from field: string spender = 2;
883
+ */
884
+ this.spender = "";
885
+ /**
886
+ * @generated from field: string nonce = 3;
887
+ */
888
+ this.nonce = "";
889
+ /**
890
+ * @generated from field: string deadline = 4;
891
+ */
892
+ this.deadline = "";
893
+ proto3.util.initPartial(data, this);
894
+ }
895
+ static fromBinary(bytes, options) {
896
+ return new PermitTransferFrom().fromBinary(bytes, options);
897
+ }
898
+ static fromJson(jsonValue, options) {
899
+ return new PermitTransferFrom().fromJson(jsonValue, options);
900
+ }
901
+ static fromJsonString(jsonString, options) {
902
+ return new PermitTransferFrom().fromJsonString(jsonString, options);
903
+ }
904
+ static equals(a, b) {
905
+ return proto3.util.equals(PermitTransferFrom, a, b);
906
+ }
907
+ }
908
+ PermitTransferFrom.runtime = proto3;
909
+ PermitTransferFrom.typeName = "uniswap.liquidity.v1.PermitTransferFrom";
910
+ PermitTransferFrom.fields = proto3.util.newFieldList(() => [
911
+ { no: 1, name: "permitted", kind: "message", T: TokenPermissions },
912
+ { no: 2, name: "spender", kind: "scalar", T: 9 /* ScalarType.STRING */ },
913
+ { no: 3, name: "nonce", kind: "scalar", T: 9 /* ScalarType.STRING */ },
914
+ { no: 4, name: "deadline", kind: "scalar", T: 9 /* ScalarType.STRING */ },
915
+ ]);
916
+ /**
917
+ * @generated from message uniswap.liquidity.v1.TokenPermissions
918
+ */
919
+ export class TokenPermissions extends Message {
920
+ constructor(data) {
921
+ super();
922
+ /**
923
+ * @generated from field: string token = 1;
924
+ */
925
+ this.token = "";
926
+ /**
927
+ * @generated from field: string amount = 2;
928
+ */
929
+ this.amount = "";
930
+ proto3.util.initPartial(data, this);
931
+ }
932
+ static fromBinary(bytes, options) {
933
+ return new TokenPermissions().fromBinary(bytes, options);
934
+ }
935
+ static fromJson(jsonValue, options) {
936
+ return new TokenPermissions().fromJson(jsonValue, options);
937
+ }
938
+ static fromJsonString(jsonString, options) {
939
+ return new TokenPermissions().fromJsonString(jsonString, options);
940
+ }
941
+ static equals(a, b) {
942
+ return proto3.util.equals(TokenPermissions, a, b);
943
+ }
944
+ }
945
+ TokenPermissions.runtime = proto3;
946
+ TokenPermissions.typeName = "uniswap.liquidity.v1.TokenPermissions";
947
+ TokenPermissions.fields = proto3.util.newFieldList(() => [
948
+ { no: 1, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
949
+ { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
950
+ ]);
951
+ /**
952
+ * REQUEST MESSAGE SUPPORTING TYPES
953
+ *
954
+ * @generated from message uniswap.liquidity.v1.V2CreateLPPosition
955
+ */
956
+ export class V2CreateLPPosition extends Message {
957
+ constructor(data) {
958
+ super();
959
+ /**
960
+ * @generated from field: uniswap.liquidity.v1.Protocols protocols = 1;
961
+ */
962
+ this.protocols = Protocols.V2;
963
+ /**
964
+ * @generated from field: string wallet_address = 3;
965
+ */
966
+ this.walletAddress = "";
967
+ /**
968
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 4;
969
+ */
970
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
971
+ /**
972
+ * @generated from field: bool simulate_transaction = 19;
973
+ */
974
+ this.simulateTransaction = false;
975
+ proto3.util.initPartial(data, this);
976
+ }
977
+ static fromBinary(bytes, options) {
978
+ return new V2CreateLPPosition().fromBinary(bytes, options);
979
+ }
980
+ static fromJson(jsonValue, options) {
981
+ return new V2CreateLPPosition().fromJson(jsonValue, options);
982
+ }
983
+ static fromJsonString(jsonString, options) {
984
+ return new V2CreateLPPosition().fromJsonString(jsonString, options);
985
+ }
986
+ static equals(a, b) {
987
+ return proto3.util.equals(V2CreateLPPosition, a, b);
988
+ }
989
+ }
990
+ V2CreateLPPosition.runtime = proto3;
991
+ V2CreateLPPosition.typeName = "uniswap.liquidity.v1.V2CreateLPPosition";
992
+ V2CreateLPPosition.fields = proto3.util.newFieldList(() => [
993
+ { no: 1, name: "protocols", kind: "enum", T: proto3.getEnumType(Protocols) },
994
+ { no: 2, name: "position", kind: "message", T: V2Position },
995
+ { no: 3, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
996
+ { no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
997
+ { no: 5, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
998
+ { no: 6, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
999
+ { no: 7, name: "independentAmount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1000
+ { no: 8, name: "independent_token", kind: "enum", T: proto3.getEnumType(IndependentToken), opt: true },
1001
+ { no: 10, name: "default_dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1002
+ { no: 15, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1003
+ { no: 16, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1004
+ { no: 19, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1005
+ ]);
1006
+ /**
1007
+ * @generated from message uniswap.liquidity.v1.V3CreateLPPosition
1008
+ */
1009
+ export class V3CreateLPPosition extends Message {
1010
+ constructor(data) {
1011
+ super();
1012
+ /**
1013
+ * @generated from field: uniswap.liquidity.v1.Protocols protocols = 1;
1014
+ */
1015
+ this.protocols = Protocols.V2;
1016
+ /**
1017
+ * @generated from field: string wallet_address = 3;
1018
+ */
1019
+ this.walletAddress = "";
1020
+ /**
1021
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 4;
1022
+ */
1023
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
1024
+ /**
1025
+ * @generated from field: bool simulate_transaction = 19;
1026
+ */
1027
+ this.simulateTransaction = false;
1028
+ proto3.util.initPartial(data, this);
1029
+ }
1030
+ static fromBinary(bytes, options) {
1031
+ return new V3CreateLPPosition().fromBinary(bytes, options);
1032
+ }
1033
+ static fromJson(jsonValue, options) {
1034
+ return new V3CreateLPPosition().fromJson(jsonValue, options);
1035
+ }
1036
+ static fromJsonString(jsonString, options) {
1037
+ return new V3CreateLPPosition().fromJsonString(jsonString, options);
1038
+ }
1039
+ static equals(a, b) {
1040
+ return proto3.util.equals(V3CreateLPPosition, a, b);
1041
+ }
1042
+ }
1043
+ V3CreateLPPosition.runtime = proto3;
1044
+ V3CreateLPPosition.typeName = "uniswap.liquidity.v1.V3CreateLPPosition";
1045
+ V3CreateLPPosition.fields = proto3.util.newFieldList(() => [
1046
+ { no: 1, name: "protocols", kind: "enum", T: proto3.getEnumType(Protocols) },
1047
+ { no: 2, name: "position", kind: "message", T: V3Position },
1048
+ { no: 3, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1049
+ { no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
1050
+ { no: 11, name: "initial_price", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1051
+ { no: 5, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1052
+ { no: 6, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1053
+ { no: 7, name: "independentAmount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1054
+ { no: 8, name: "independent_token", kind: "enum", T: proto3.getEnumType(IndependentToken), opt: true },
1055
+ { no: 9, name: "initial_dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1056
+ { no: 12, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1057
+ { no: 13, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
1058
+ { no: 14, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1059
+ { no: 15, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1060
+ { no: 16, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1061
+ { no: 19, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1062
+ { no: 10, name: "default_dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1063
+ { no: 17, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1064
+ { no: 18, name: "batchPermitData", kind: "message", T: PermitBatchData, opt: true },
1065
+ ]);
1066
+ /**
1067
+ * @generated from message uniswap.liquidity.v1.V4CreateLPPosition
1068
+ */
1069
+ export class V4CreateLPPosition extends Message {
1070
+ constructor(data) {
1071
+ super();
1072
+ /**
1073
+ * @generated from field: uniswap.liquidity.v1.Protocols protocols = 1;
1074
+ */
1075
+ this.protocols = Protocols.V2;
1076
+ /**
1077
+ * @generated from field: string wallet_address = 3;
1078
+ */
1079
+ this.walletAddress = "";
1080
+ /**
1081
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 4;
1082
+ */
1083
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
1084
+ /**
1085
+ * @generated from field: bool simulate_transaction = 19;
1086
+ */
1087
+ this.simulateTransaction = false;
1088
+ proto3.util.initPartial(data, this);
1089
+ }
1090
+ static fromBinary(bytes, options) {
1091
+ return new V4CreateLPPosition().fromBinary(bytes, options);
1092
+ }
1093
+ static fromJson(jsonValue, options) {
1094
+ return new V4CreateLPPosition().fromJson(jsonValue, options);
1095
+ }
1096
+ static fromJsonString(jsonString, options) {
1097
+ return new V4CreateLPPosition().fromJsonString(jsonString, options);
1098
+ }
1099
+ static equals(a, b) {
1100
+ return proto3.util.equals(V4CreateLPPosition, a, b);
1101
+ }
1102
+ }
1103
+ V4CreateLPPosition.runtime = proto3;
1104
+ V4CreateLPPosition.typeName = "uniswap.liquidity.v1.V4CreateLPPosition";
1105
+ V4CreateLPPosition.fields = proto3.util.newFieldList(() => [
1106
+ { no: 1, name: "protocols", kind: "enum", T: proto3.getEnumType(Protocols) },
1107
+ { no: 2, name: "position", kind: "message", T: V4Position },
1108
+ { no: 3, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1109
+ { no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
1110
+ { no: 11, name: "initial_price", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1111
+ { no: 5, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1112
+ { no: 6, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1113
+ { no: 7, name: "independentAmount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1114
+ { no: 8, name: "independent_token", kind: "enum", T: proto3.getEnumType(IndependentToken), opt: true },
1115
+ { no: 9, name: "initial_dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1116
+ { no: 12, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1117
+ { no: 13, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
1118
+ { no: 14, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1119
+ { no: 17, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1120
+ { no: 18, name: "batchPermitData", kind: "message", T: PermitBatchData, opt: true },
1121
+ { no: 10, name: "default_dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1122
+ { no: 15, name: "slippage_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1123
+ { no: 16, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1124
+ { no: 19, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1125
+ ]);