@uniswap/client-liquidity 1.3.1 → 1.3.3

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,23 +1,6 @@
1
1
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
2
  import { Message, proto3 } from "@bufbuild/protobuf";
3
3
  import { AuctionValidation, BidToExit, ChainId, TransactionRequest, ValidationType } from "./types_pb.js";
4
- /**
5
- * @generated from enum uniswap.liquidity.v1.TokenStandard
6
- */
7
- export declare enum TokenStandard {
8
- /**
9
- * @generated from enum value: TOKEN_STANDARD_UNSPECIFIED = 0;
10
- */
11
- TOKEN_STANDARD_UNSPECIFIED = 0,
12
- /**
13
- * @generated from enum value: UERC20 = 1;
14
- */
15
- UERC20 = 1,
16
- /**
17
- * @generated from enum value: USUPERC20 = 2;
18
- */
19
- USUPERC20 = 2
20
- }
21
4
  /**
22
5
  * @generated from enum uniswap.liquidity.v1.PriceRangeStrategy
23
6
  */
@@ -541,10 +524,6 @@ export declare class TokenInfo extends Message<TokenInfo> {
541
524
  * @generated from message uniswap.liquidity.v1.NewTokenConfig
542
525
  */
543
526
  export declare class NewTokenConfig extends Message<NewTokenConfig> {
544
- /**
545
- * @generated from field: uniswap.liquidity.v1.TokenStandard standard = 1;
546
- */
547
- standard: TokenStandard;
548
527
  /**
549
528
  * @generated from field: string name = 2;
550
529
  */
@@ -725,6 +704,13 @@ export declare class PoolConfig extends Message<PoolConfig> {
725
704
  * @generated from field: string pool_owner = 7;
726
705
  */
727
706
  poolOwner: string;
707
+ /**
708
+ * Optional. When present, the migrated LP positions are owned by a per-launch
709
+ * position-recipient contract instead of pool_owner. Absent = no lock.
710
+ *
711
+ * @generated from field: uniswap.liquidity.v1.LiquidityLockConfig liquidity_lock = 8;
712
+ */
713
+ liquidityLock?: LiquidityLockConfig;
728
714
  constructor(data?: PartialMessage<PoolConfig>);
729
715
  static readonly runtime: typeof proto3;
730
716
  static readonly typeName = "uniswap.liquidity.v1.PoolConfig";
@@ -734,6 +720,111 @@ export declare class PoolConfig extends Message<PoolConfig> {
734
720
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PoolConfig;
735
721
  static equals(a: PoolConfig | PlainMessage<PoolConfig> | undefined, b: PoolConfig | PlainMessage<PoolConfig> | undefined): boolean;
736
722
  }
723
+ /**
724
+ * Locks the migrated LP positions in a per-launch position-recipient contract. The `mode`
725
+ * oneof selects the recipient type; each variant carries only the fields that apply to it,
726
+ * so a parameter can never be set for the wrong mode.
727
+ *
728
+ * @generated from message uniswap.liquidity.v1.LiquidityLockConfig
729
+ */
730
+ export declare class LiquidityLockConfig extends Message<LiquidityLockConfig> {
731
+ /**
732
+ * Absolute unix seconds when the lock expires; the backend converts this to a block number.
733
+ * Applies to every mode — all recipients hold the LP until this block.
734
+ *
735
+ * @generated from field: uint64 unlock_time_unix = 1;
736
+ */
737
+ unlockTimeUnix: bigint;
738
+ /**
739
+ * @generated from oneof uniswap.liquidity.v1.LiquidityLockConfig.mode
740
+ */
741
+ mode: {
742
+ /**
743
+ * @generated from field: uniswap.liquidity.v1.TimelockLock timelock = 2;
744
+ */
745
+ value: TimelockLock;
746
+ case: "timelock";
747
+ } | {
748
+ /**
749
+ * @generated from field: uniswap.liquidity.v1.FeesForwarderLock fees_forwarder = 3;
750
+ */
751
+ value: FeesForwarderLock;
752
+ case: "feesForwarder";
753
+ } | {
754
+ /**
755
+ * @generated from field: uniswap.liquidity.v1.BuybackBurnLock buyback_burn = 4;
756
+ */
757
+ value: BuybackBurnLock;
758
+ case: "buybackBurn";
759
+ } | {
760
+ case: undefined;
761
+ value?: undefined;
762
+ };
763
+ constructor(data?: PartialMessage<LiquidityLockConfig>);
764
+ static readonly runtime: typeof proto3;
765
+ static readonly typeName = "uniswap.liquidity.v1.LiquidityLockConfig";
766
+ static readonly fields: FieldList;
767
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LiquidityLockConfig;
768
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LiquidityLockConfig;
769
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LiquidityLockConfig;
770
+ static equals(a: LiquidityLockConfig | PlainMessage<LiquidityLockConfig> | undefined, b: LiquidityLockConfig | PlainMessage<LiquidityLockConfig> | undefined): boolean;
771
+ }
772
+ /**
773
+ * Holds the LP until unlock_time_unix, then lets the configured operator withdraw it.
774
+ *
775
+ * @generated from message uniswap.liquidity.v1.TimelockLock
776
+ */
777
+ export declare class TimelockLock extends Message<TimelockLock> {
778
+ constructor(data?: PartialMessage<TimelockLock>);
779
+ static readonly runtime: typeof proto3;
780
+ static readonly typeName = "uniswap.liquidity.v1.TimelockLock";
781
+ static readonly fields: FieldList;
782
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TimelockLock;
783
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TimelockLock;
784
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TimelockLock;
785
+ static equals(a: TimelockLock | PlainMessage<TimelockLock> | undefined, b: TimelockLock | PlainMessage<TimelockLock> | undefined): boolean;
786
+ }
787
+ /**
788
+ * Holds the LP like TimelockLock, and forwards the position's collected fees to fee_recipient.
789
+ *
790
+ * @generated from message uniswap.liquidity.v1.FeesForwarderLock
791
+ */
792
+ export declare class FeesForwarderLock extends Message<FeesForwarderLock> {
793
+ /**
794
+ * @generated from field: string fee_recipient = 1;
795
+ */
796
+ feeRecipient: string;
797
+ constructor(data?: PartialMessage<FeesForwarderLock>);
798
+ static readonly runtime: typeof proto3;
799
+ static readonly typeName = "uniswap.liquidity.v1.FeesForwarderLock";
800
+ static readonly fields: FieldList;
801
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FeesForwarderLock;
802
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FeesForwarderLock;
803
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FeesForwarderLock;
804
+ static equals(a: FeesForwarderLock | PlainMessage<FeesForwarderLock> | undefined, b: FeesForwarderLock | PlainMessage<FeesForwarderLock> | undefined): boolean;
805
+ }
806
+ /**
807
+ * Holds the LP like TimelockLock; a caller may burn the token-side fees (taking the currency
808
+ * side as a keeper reward) once at least min_token_burn_amount of token would be burned.
809
+ *
810
+ * @generated from message uniswap.liquidity.v1.BuybackBurnLock
811
+ */
812
+ export declare class BuybackBurnLock extends Message<BuybackBurnLock> {
813
+ /**
814
+ * Raw token amount (BigInt string).
815
+ *
816
+ * @generated from field: string min_token_burn_amount = 1;
817
+ */
818
+ minTokenBurnAmount: string;
819
+ constructor(data?: PartialMessage<BuybackBurnLock>);
820
+ static readonly runtime: typeof proto3;
821
+ static readonly typeName = "uniswap.liquidity.v1.BuybackBurnLock";
822
+ static readonly fields: FieldList;
823
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BuybackBurnLock;
824
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BuybackBurnLock;
825
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BuybackBurnLock;
826
+ static equals(a: BuybackBurnLock | PlainMessage<BuybackBurnLock> | undefined, b: BuybackBurnLock | PlainMessage<BuybackBurnLock> | undefined): boolean;
827
+ }
737
828
  /**
738
829
  * @generated from message uniswap.liquidity.v1.CustomPriceRange
739
830
  */
@@ -4,30 +4,6 @@
4
4
  // @ts-nocheck
5
5
  import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
6
6
  import { AuctionValidation, BidToExit, ChainId, TransactionRequest, ValidationType } from "./types_pb.js";
7
- /**
8
- * @generated from enum uniswap.liquidity.v1.TokenStandard
9
- */
10
- export var TokenStandard;
11
- (function (TokenStandard) {
12
- /**
13
- * @generated from enum value: TOKEN_STANDARD_UNSPECIFIED = 0;
14
- */
15
- TokenStandard[TokenStandard["TOKEN_STANDARD_UNSPECIFIED"] = 0] = "TOKEN_STANDARD_UNSPECIFIED";
16
- /**
17
- * @generated from enum value: UERC20 = 1;
18
- */
19
- TokenStandard[TokenStandard["UERC20"] = 1] = "UERC20";
20
- /**
21
- * @generated from enum value: USUPERC20 = 2;
22
- */
23
- TokenStandard[TokenStandard["USUPERC20"] = 2] = "USUPERC20";
24
- })(TokenStandard || (TokenStandard = {}));
25
- // Retrieve enum metadata with: proto3.getEnumType(TokenStandard)
26
- proto3.util.setEnumType(TokenStandard, "uniswap.liquidity.v1.TokenStandard", [
27
- { no: 0, name: "TOKEN_STANDARD_UNSPECIFIED" },
28
- { no: 1, name: "UERC20" },
29
- { no: 2, name: "USUPERC20" },
30
- ]);
31
7
  /**
32
8
  * @generated from enum uniswap.liquidity.v1.PriceRangeStrategy
33
9
  */
@@ -738,10 +714,6 @@ TokenInfo.fields = proto3.util.newFieldList(() => [
738
714
  export class NewTokenConfig extends Message {
739
715
  constructor(data) {
740
716
  super();
741
- /**
742
- * @generated from field: uniswap.liquidity.v1.TokenStandard standard = 1;
743
- */
744
- this.standard = TokenStandard.TOKEN_STANDARD_UNSPECIFIED;
745
717
  /**
746
718
  * @generated from field: string name = 2;
747
719
  */
@@ -776,7 +748,6 @@ export class NewTokenConfig extends Message {
776
748
  NewTokenConfig.runtime = proto3;
777
749
  NewTokenConfig.typeName = "uniswap.liquidity.v1.NewTokenConfig";
778
750
  NewTokenConfig.fields = proto3.util.newFieldList(() => [
779
- { no: 1, name: "standard", kind: "enum", T: proto3.getEnumType(TokenStandard) },
780
751
  { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
781
752
  { no: 3, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
782
753
  { no: 4, name: "total_supply", kind: "scalar", T: 9 /* ScalarType.STRING */ },
@@ -998,6 +969,144 @@ PoolConfig.fields = proto3.util.newFieldList(() => [
998
969
  { no: 5, name: "reserved_supply_for_lp", kind: "scalar", T: 9 /* ScalarType.STRING */ },
999
970
  { no: 6, name: "lp_allocation", kind: "message", T: PostAuctionLiquidityAllocation },
1000
971
  { no: 7, name: "pool_owner", kind: "scalar", T: 9 /* ScalarType.STRING */ },
972
+ { no: 8, name: "liquidity_lock", kind: "message", T: LiquidityLockConfig },
973
+ ]);
974
+ /**
975
+ * Locks the migrated LP positions in a per-launch position-recipient contract. The `mode`
976
+ * oneof selects the recipient type; each variant carries only the fields that apply to it,
977
+ * so a parameter can never be set for the wrong mode.
978
+ *
979
+ * @generated from message uniswap.liquidity.v1.LiquidityLockConfig
980
+ */
981
+ export class LiquidityLockConfig extends Message {
982
+ constructor(data) {
983
+ super();
984
+ /**
985
+ * Absolute unix seconds when the lock expires; the backend converts this to a block number.
986
+ * Applies to every mode — all recipients hold the LP until this block.
987
+ *
988
+ * @generated from field: uint64 unlock_time_unix = 1;
989
+ */
990
+ this.unlockTimeUnix = protoInt64.zero;
991
+ /**
992
+ * @generated from oneof uniswap.liquidity.v1.LiquidityLockConfig.mode
993
+ */
994
+ this.mode = { case: undefined };
995
+ proto3.util.initPartial(data, this);
996
+ }
997
+ static fromBinary(bytes, options) {
998
+ return new LiquidityLockConfig().fromBinary(bytes, options);
999
+ }
1000
+ static fromJson(jsonValue, options) {
1001
+ return new LiquidityLockConfig().fromJson(jsonValue, options);
1002
+ }
1003
+ static fromJsonString(jsonString, options) {
1004
+ return new LiquidityLockConfig().fromJsonString(jsonString, options);
1005
+ }
1006
+ static equals(a, b) {
1007
+ return proto3.util.equals(LiquidityLockConfig, a, b);
1008
+ }
1009
+ }
1010
+ LiquidityLockConfig.runtime = proto3;
1011
+ LiquidityLockConfig.typeName = "uniswap.liquidity.v1.LiquidityLockConfig";
1012
+ LiquidityLockConfig.fields = proto3.util.newFieldList(() => [
1013
+ { no: 1, name: "unlock_time_unix", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1014
+ { no: 2, name: "timelock", kind: "message", T: TimelockLock, oneof: "mode" },
1015
+ { no: 3, name: "fees_forwarder", kind: "message", T: FeesForwarderLock, oneof: "mode" },
1016
+ { no: 4, name: "buyback_burn", kind: "message", T: BuybackBurnLock, oneof: "mode" },
1017
+ ]);
1018
+ /**
1019
+ * Holds the LP until unlock_time_unix, then lets the configured operator withdraw it.
1020
+ *
1021
+ * @generated from message uniswap.liquidity.v1.TimelockLock
1022
+ */
1023
+ export class TimelockLock extends Message {
1024
+ constructor(data) {
1025
+ super();
1026
+ proto3.util.initPartial(data, this);
1027
+ }
1028
+ static fromBinary(bytes, options) {
1029
+ return new TimelockLock().fromBinary(bytes, options);
1030
+ }
1031
+ static fromJson(jsonValue, options) {
1032
+ return new TimelockLock().fromJson(jsonValue, options);
1033
+ }
1034
+ static fromJsonString(jsonString, options) {
1035
+ return new TimelockLock().fromJsonString(jsonString, options);
1036
+ }
1037
+ static equals(a, b) {
1038
+ return proto3.util.equals(TimelockLock, a, b);
1039
+ }
1040
+ }
1041
+ TimelockLock.runtime = proto3;
1042
+ TimelockLock.typeName = "uniswap.liquidity.v1.TimelockLock";
1043
+ TimelockLock.fields = proto3.util.newFieldList(() => []);
1044
+ /**
1045
+ * Holds the LP like TimelockLock, and forwards the position's collected fees to fee_recipient.
1046
+ *
1047
+ * @generated from message uniswap.liquidity.v1.FeesForwarderLock
1048
+ */
1049
+ export class FeesForwarderLock extends Message {
1050
+ constructor(data) {
1051
+ super();
1052
+ /**
1053
+ * @generated from field: string fee_recipient = 1;
1054
+ */
1055
+ this.feeRecipient = "";
1056
+ proto3.util.initPartial(data, this);
1057
+ }
1058
+ static fromBinary(bytes, options) {
1059
+ return new FeesForwarderLock().fromBinary(bytes, options);
1060
+ }
1061
+ static fromJson(jsonValue, options) {
1062
+ return new FeesForwarderLock().fromJson(jsonValue, options);
1063
+ }
1064
+ static fromJsonString(jsonString, options) {
1065
+ return new FeesForwarderLock().fromJsonString(jsonString, options);
1066
+ }
1067
+ static equals(a, b) {
1068
+ return proto3.util.equals(FeesForwarderLock, a, b);
1069
+ }
1070
+ }
1071
+ FeesForwarderLock.runtime = proto3;
1072
+ FeesForwarderLock.typeName = "uniswap.liquidity.v1.FeesForwarderLock";
1073
+ FeesForwarderLock.fields = proto3.util.newFieldList(() => [
1074
+ { no: 1, name: "fee_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1075
+ ]);
1076
+ /**
1077
+ * Holds the LP like TimelockLock; a caller may burn the token-side fees (taking the currency
1078
+ * side as a keeper reward) once at least min_token_burn_amount of token would be burned.
1079
+ *
1080
+ * @generated from message uniswap.liquidity.v1.BuybackBurnLock
1081
+ */
1082
+ export class BuybackBurnLock extends Message {
1083
+ constructor(data) {
1084
+ super();
1085
+ /**
1086
+ * Raw token amount (BigInt string).
1087
+ *
1088
+ * @generated from field: string min_token_burn_amount = 1;
1089
+ */
1090
+ this.minTokenBurnAmount = "";
1091
+ proto3.util.initPartial(data, this);
1092
+ }
1093
+ static fromBinary(bytes, options) {
1094
+ return new BuybackBurnLock().fromBinary(bytes, options);
1095
+ }
1096
+ static fromJson(jsonValue, options) {
1097
+ return new BuybackBurnLock().fromJson(jsonValue, options);
1098
+ }
1099
+ static fromJsonString(jsonString, options) {
1100
+ return new BuybackBurnLock().fromJsonString(jsonString, options);
1101
+ }
1102
+ static equals(a, b) {
1103
+ return proto3.util.equals(BuybackBurnLock, a, b);
1104
+ }
1105
+ }
1106
+ BuybackBurnLock.runtime = proto3;
1107
+ BuybackBurnLock.typeName = "uniswap.liquidity.v1.BuybackBurnLock";
1108
+ BuybackBurnLock.fields = proto3.util.newFieldList(() => [
1109
+ { no: 1, name: "min_token_burn_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1001
1110
  ]);
1002
1111
  /**
1003
1112
  * @generated from message uniswap.liquidity.v1.CustomPriceRange
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-liquidity",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },