@uniswap/client-liquidity 1.3.2 → 1.3.4

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.
@@ -704,6 +704,13 @@ export declare class PoolConfig extends Message<PoolConfig> {
704
704
  * @generated from field: string pool_owner = 7;
705
705
  */
706
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;
707
714
  constructor(data?: PartialMessage<PoolConfig>);
708
715
  static readonly runtime: typeof proto3;
709
716
  static readonly typeName = "uniswap.liquidity.v1.PoolConfig";
@@ -713,6 +720,111 @@ export declare class PoolConfig extends Message<PoolConfig> {
713
720
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PoolConfig;
714
721
  static equals(a: PoolConfig | PlainMessage<PoolConfig> | undefined, b: PoolConfig | PlainMessage<PoolConfig> | undefined): boolean;
715
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
+ }
716
828
  /**
717
829
  * @generated from message uniswap.liquidity.v1.CustomPriceRange
718
830
  */
@@ -969,6 +969,144 @@ PoolConfig.fields = proto3.util.newFieldList(() => [
969
969
  { no: 5, name: "reserved_supply_for_lp", kind: "scalar", T: 9 /* ScalarType.STRING */ },
970
970
  { no: 6, name: "lp_allocation", kind: "message", T: PostAuctionLiquidityAllocation },
971
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 */ },
972
1110
  ]);
973
1111
  /**
974
1112
  * @generated from message uniswap.liquidity.v1.CustomPriceRange
@@ -126,7 +126,11 @@ export declare enum ChainId {
126
126
  /**
127
127
  * @generated from enum value: ARC = 5042;
128
128
  */
129
- ARC = 5042
129
+ ARC = 5042,
130
+ /**
131
+ * @generated from enum value: INK = 57073;
132
+ */
133
+ INK = 57073
130
134
  }
131
135
  /**
132
136
  * @generated from enum uniswap.liquidity.v1.Distributor
@@ -138,6 +138,10 @@ export var ChainId;
138
138
  * @generated from enum value: ARC = 5042;
139
139
  */
140
140
  ChainId[ChainId["ARC"] = 5042] = "ARC";
141
+ /**
142
+ * @generated from enum value: INK = 57073;
143
+ */
144
+ ChainId[ChainId["INK"] = 57073] = "INK";
141
145
  })(ChainId || (ChainId = {}));
142
146
  // Retrieve enum metadata with: proto3.getEnumType(ChainId)
143
147
  proto3.util.setEnumType(ChainId, "uniswap.liquidity.v1.ChainId", [
@@ -167,6 +171,7 @@ proto3.util.setEnumType(ChainId, "uniswap.liquidity.v1.ChainId", [
167
171
  { no: 4217, name: "TEMPO" },
168
172
  { no: 4663, name: "ROBINHOOD" },
169
173
  { no: 5042, name: "ARC" },
174
+ { no: 57073, name: "INK" },
170
175
  ]);
171
176
  /**
172
177
  * @generated from enum uniswap.liquidity.v1.Distributor
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-liquidity",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },