@uniswap/client-liquidity 1.4.35 → 1.4.37

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.
@@ -217,7 +217,11 @@ export declare enum ValidationType {
217
217
  /**
218
218
  * @generated from enum value: ERC_1155_GATEWAY = 2;
219
219
  */
220
- ERC_1155_GATEWAY = 2
220
+ ERC_1155_GATEWAY = 2,
221
+ /**
222
+ * @generated from enum value: MAX_BID_PRICE = 3;
223
+ */
224
+ MAX_BID_PRICE = 3
221
225
  }
222
226
  /**
223
227
  * CORE TYPE OBJECTS
@@ -1942,6 +1946,31 @@ export declare class Erc1155GateData extends Message<Erc1155GateData> {
1942
1946
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Erc1155GateData;
1943
1947
  static equals(a: Erc1155GateData | PlainMessage<Erc1155GateData> | undefined, b: Erc1155GateData | PlainMessage<Erc1155GateData> | undefined): boolean;
1944
1948
  }
1949
+ /**
1950
+ * An auction-wide ceiling on the price a bid may be submitted at, enforced by a
1951
+ * validation hook exposing `maxBidPrice()`. Because the auction requires bids to be
1952
+ * strictly above the clearing price, no new bid can be placed once the clearing price
1953
+ * reaches this ceiling -- existing bids stay active and partially fill.
1954
+ *
1955
+ * @generated from message uniswap.liquidity.v1.MaxBidPriceData
1956
+ */
1957
+ export declare class MaxBidPriceData extends Message<MaxBidPriceData> {
1958
+ /**
1959
+ * The ceiling as a Q96 fixed-point price, in the auction's bid-currency units.
1960
+ * Decimal string because the value does not fit a uint64.
1961
+ *
1962
+ * @generated from field: string max_bid_price_q96 = 1;
1963
+ */
1964
+ maxBidPriceQ96: string;
1965
+ constructor(data?: PartialMessage<MaxBidPriceData>);
1966
+ static readonly runtime: typeof proto3;
1967
+ static readonly typeName = "uniswap.liquidity.v1.MaxBidPriceData";
1968
+ static readonly fields: FieldList;
1969
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MaxBidPriceData;
1970
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MaxBidPriceData;
1971
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MaxBidPriceData;
1972
+ static equals(a: MaxBidPriceData | PlainMessage<MaxBidPriceData> | undefined, b: MaxBidPriceData | PlainMessage<MaxBidPriceData> | undefined): boolean;
1973
+ }
1945
1974
  /**
1946
1975
  * @generated from message uniswap.liquidity.v1.AuctionValidation
1947
1976
  */
@@ -1965,11 +1994,21 @@ export declare class AuctionValidation extends Message<AuctionValidation> {
1965
1994
  */
1966
1995
  value: Erc1155GateData;
1967
1996
  case: "erc1155GateData";
1997
+ } | {
1998
+ /**
1999
+ * @generated from field: uniswap.liquidity.v1.MaxBidPriceData max_bid_price_data = 5;
2000
+ */
2001
+ value: MaxBidPriceData;
2002
+ case: "maxBidPriceData";
1968
2003
  } | {
1969
2004
  case: undefined;
1970
2005
  value?: undefined;
1971
2006
  };
1972
2007
  /**
2008
+ * Whether this validation permits the wallet to bid. Always true for MAX_BID_PRICE:
2009
+ * the ceiling is a property of the auction, not of the wallet, so it must not gate
2010
+ * wallet verification. Clients derive the "cap reached" state from the value itself.
2011
+ *
1973
2012
  * @generated from field: bool validation_passed = 4;
1974
2013
  */
1975
2014
  validationPassed: boolean;
@@ -288,12 +288,17 @@ export var ValidationType;
288
288
  * @generated from enum value: ERC_1155_GATEWAY = 2;
289
289
  */
290
290
  ValidationType[ValidationType["ERC_1155_GATEWAY"] = 2] = "ERC_1155_GATEWAY";
291
+ /**
292
+ * @generated from enum value: MAX_BID_PRICE = 3;
293
+ */
294
+ ValidationType[ValidationType["MAX_BID_PRICE"] = 3] = "MAX_BID_PRICE";
291
295
  })(ValidationType || (ValidationType = {}));
292
296
  // Retrieve enum metadata with: proto3.getEnumType(ValidationType)
293
297
  proto3.util.setEnumType(ValidationType, "uniswap.liquidity.v1.ValidationType", [
294
298
  { no: 0, name: "VALIDATION_TYPE_UNSPECIFIED" },
295
299
  { no: 1, name: "KYC_VERIFICATION" },
296
300
  { no: 2, name: "ERC_1155_GATEWAY" },
301
+ { no: 3, name: "MAX_BID_PRICE" },
297
302
  ]);
298
303
  /**
299
304
  * CORE TYPE OBJECTS
@@ -2200,6 +2205,44 @@ Erc1155GateData.typeName = "uniswap.liquidity.v1.Erc1155GateData";
2200
2205
  Erc1155GateData.fields = proto3.util.newFieldList(() => [
2201
2206
  { no: 1, name: "expiration_block", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2202
2207
  ]);
2208
+ /**
2209
+ * An auction-wide ceiling on the price a bid may be submitted at, enforced by a
2210
+ * validation hook exposing `maxBidPrice()`. Because the auction requires bids to be
2211
+ * strictly above the clearing price, no new bid can be placed once the clearing price
2212
+ * reaches this ceiling -- existing bids stay active and partially fill.
2213
+ *
2214
+ * @generated from message uniswap.liquidity.v1.MaxBidPriceData
2215
+ */
2216
+ export class MaxBidPriceData extends Message {
2217
+ constructor(data) {
2218
+ super();
2219
+ /**
2220
+ * The ceiling as a Q96 fixed-point price, in the auction's bid-currency units.
2221
+ * Decimal string because the value does not fit a uint64.
2222
+ *
2223
+ * @generated from field: string max_bid_price_q96 = 1;
2224
+ */
2225
+ this.maxBidPriceQ96 = "";
2226
+ proto3.util.initPartial(data, this);
2227
+ }
2228
+ static fromBinary(bytes, options) {
2229
+ return new MaxBidPriceData().fromBinary(bytes, options);
2230
+ }
2231
+ static fromJson(jsonValue, options) {
2232
+ return new MaxBidPriceData().fromJson(jsonValue, options);
2233
+ }
2234
+ static fromJsonString(jsonString, options) {
2235
+ return new MaxBidPriceData().fromJsonString(jsonString, options);
2236
+ }
2237
+ static equals(a, b) {
2238
+ return proto3.util.equals(MaxBidPriceData, a, b);
2239
+ }
2240
+ }
2241
+ MaxBidPriceData.runtime = proto3;
2242
+ MaxBidPriceData.typeName = "uniswap.liquidity.v1.MaxBidPriceData";
2243
+ MaxBidPriceData.fields = proto3.util.newFieldList(() => [
2244
+ { no: 1, name: "max_bid_price_q96", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2245
+ ]);
2203
2246
  /**
2204
2247
  * @generated from message uniswap.liquidity.v1.AuctionValidation
2205
2248
  */
@@ -2215,6 +2258,10 @@ export class AuctionValidation extends Message {
2215
2258
  */
2216
2259
  this.data = { case: undefined };
2217
2260
  /**
2261
+ * Whether this validation permits the wallet to bid. Always true for MAX_BID_PRICE:
2262
+ * the ceiling is a property of the auction, not of the wallet, so it must not gate
2263
+ * wallet verification. Clients derive the "cap reached" state from the value itself.
2264
+ *
2218
2265
  * @generated from field: bool validation_passed = 4;
2219
2266
  */
2220
2267
  this.validationPassed = false;
@@ -2239,5 +2286,6 @@ AuctionValidation.fields = proto3.util.newFieldList(() => [
2239
2286
  { no: 1, name: "validation_type", kind: "enum", T: proto3.getEnumType(ValidationType) },
2240
2287
  { no: 2, name: "kyc_verification_data", kind: "message", T: PredicateKycVerificationData, oneof: "data" },
2241
2288
  { no: 3, name: "erc_1155_gate_data", kind: "message", T: Erc1155GateData, oneof: "data" },
2289
+ { no: 5, name: "max_bid_price_data", kind: "message", T: MaxBidPriceData, oneof: "data" },
2242
2290
  { no: 4, name: "validation_passed", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
2243
2291
  ]);
@@ -771,17 +771,6 @@ export declare class PoolSummary extends Message<PoolSummary> {
771
771
  * @generated from field: optional bool is_dynamic_fee = 24;
772
772
  */
773
773
  isDynamicFee?: boolean;
774
- /**
775
- * DEPRECATED — superseded by token_rewards below, which groups campaigns under
776
- * the token they pay and carries that token's summed boost. This field has never
777
- * been populated and stays permanently empty; it exists only so consumers that
778
- * already read it keep compiling. Removal is tracked in LP-1585 (reserve tag 25
779
- * when it goes — a reused tag with a different type is wire-incompatible).
780
- *
781
- * @generated from field: repeated uniswap.liquidity.v2.RewardsCampaign rewards_campaigns = 25 [deprecated = true];
782
- * @deprecated
783
- */
784
- rewardsCampaigns: RewardsCampaign[];
785
774
  /**
786
775
  * Day-over-day change in TVL and 1d-volume, as a signed percentage (e.g. 5.2
787
776
  * = +5.2%). Composed at read time from the ClickHouse pool-stat history
@@ -877,63 +866,6 @@ export declare class RewardToken extends Message<RewardToken> {
877
866
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RewardToken;
878
867
  static equals(a: RewardToken | PlainMessage<RewardToken> | undefined, b: RewardToken | PlainMessage<RewardToken> | undefined): boolean;
879
868
  }
880
- /**
881
- * One live Merkl LP-incentive campaign for a pool (V3/V4). A pool may run
882
- * several concurrent campaigns in different reward tokens; each entry is a
883
- * single campaign, carrying its own reward token so amounts stay per-token.
884
- *
885
- * @generated from message uniswap.liquidity.v2.RewardsCampaign
886
- */
887
- export declare class RewardsCampaign extends Message<RewardsCampaign> {
888
- /**
889
- * Merkl campaign id.
890
- *
891
- * @generated from field: string id = 1;
892
- */
893
- id: string;
894
- /**
895
- * Extra APR from this campaign's incentives, on top of PoolSummary.apr
896
- * (fees). Percent.
897
- *
898
- * @generated from field: double boosted_apr = 2;
899
- */
900
- boostedApr: number;
901
- /**
902
- * Campaign window, unix seconds.
903
- *
904
- * @generated from field: int64 start_timestamp = 3;
905
- */
906
- startTimestamp: bigint;
907
- /**
908
- * @generated from field: int64 end_timestamp = 4;
909
- */
910
- endTimestamp: bigint;
911
- /**
912
- * Total reward tokens allocated + distributed so far (uint256 decimal
913
- * strings, in reward_token's own units).
914
- *
915
- * @generated from field: string total_reward_allocation = 5;
916
- */
917
- totalRewardAllocation: string;
918
- /**
919
- * @generated from field: string distributed_rewards = 6;
920
- */
921
- distributedRewards: string;
922
- /**
923
- * The token this campaign pays out; interprets the amounts above.
924
- *
925
- * @generated from field: uniswap.liquidity.v2.RewardToken reward_token = 7;
926
- */
927
- rewardToken?: RewardToken;
928
- constructor(data?: PartialMessage<RewardsCampaign>);
929
- static readonly runtime: typeof proto3;
930
- static readonly typeName = "uniswap.liquidity.v2.RewardsCampaign";
931
- static readonly fields: FieldList;
932
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RewardsCampaign;
933
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RewardsCampaign;
934
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RewardsCampaign;
935
- static equals(a: RewardsCampaign | PlainMessage<RewardsCampaign> | undefined, b: RewardsCampaign | PlainMessage<RewardsCampaign> | undefined): boolean;
936
- }
937
869
  /**
938
870
  * One live campaign behind a pool's per-token boost. It carries no reward token —
939
871
  * campaigns are always grouped under one (see PoolTokenRewards).
@@ -943,17 +943,6 @@ export class PoolSummary extends Message {
943
943
  * @generated from field: double volume_usd_1d = 8;
944
944
  */
945
945
  this.volumeUsd1d = 0;
946
- /**
947
- * DEPRECATED — superseded by token_rewards below, which groups campaigns under
948
- * the token they pay and carries that token's summed boost. This field has never
949
- * been populated and stays permanently empty; it exists only so consumers that
950
- * already read it keep compiling. Removal is tracked in LP-1585 (reserve tag 25
951
- * when it goes — a reused tag with a different type is wire-incompatible).
952
- *
953
- * @generated from field: repeated uniswap.liquidity.v2.RewardsCampaign rewards_campaigns = 25 [deprecated = true];
954
- * @deprecated
955
- */
956
- this.rewardsCampaigns = [];
957
946
  /**
958
947
  * Live LP-incentive rewards, grouped by the token they pay (see
959
948
  * PoolTokenRewards). Sourced from data-api, which owns campaign scoping, so this
@@ -1007,7 +996,6 @@ PoolSummary.fields = proto3.util.newFieldList(() => [
1007
996
  { no: 22, name: "token0_supply", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1008
997
  { no: 23, name: "token1_supply", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1009
998
  { no: 24, name: "is_dynamic_fee", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1010
- { no: 25, name: "rewards_campaigns", kind: "message", T: RewardsCampaign, repeated: true },
1011
999
  { no: 26, name: "tvl_usd_change_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1012
1000
  { no: 27, name: "volume_usd_1d_change", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1013
1001
  { no: 28, name: "token_rewards", kind: "message", T: PoolTokenRewards, repeated: true },
@@ -1061,76 +1049,6 @@ RewardToken.fields = proto3.util.newFieldList(() => [
1061
1049
  { no: 5, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1062
1050
  { no: 6, name: "is_native", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1063
1051
  ]);
1064
- /**
1065
- * One live Merkl LP-incentive campaign for a pool (V3/V4). A pool may run
1066
- * several concurrent campaigns in different reward tokens; each entry is a
1067
- * single campaign, carrying its own reward token so amounts stay per-token.
1068
- *
1069
- * @generated from message uniswap.liquidity.v2.RewardsCampaign
1070
- */
1071
- export class RewardsCampaign extends Message {
1072
- constructor(data) {
1073
- super();
1074
- /**
1075
- * Merkl campaign id.
1076
- *
1077
- * @generated from field: string id = 1;
1078
- */
1079
- this.id = "";
1080
- /**
1081
- * Extra APR from this campaign's incentives, on top of PoolSummary.apr
1082
- * (fees). Percent.
1083
- *
1084
- * @generated from field: double boosted_apr = 2;
1085
- */
1086
- this.boostedApr = 0;
1087
- /**
1088
- * Campaign window, unix seconds.
1089
- *
1090
- * @generated from field: int64 start_timestamp = 3;
1091
- */
1092
- this.startTimestamp = protoInt64.zero;
1093
- /**
1094
- * @generated from field: int64 end_timestamp = 4;
1095
- */
1096
- this.endTimestamp = protoInt64.zero;
1097
- /**
1098
- * Total reward tokens allocated + distributed so far (uint256 decimal
1099
- * strings, in reward_token's own units).
1100
- *
1101
- * @generated from field: string total_reward_allocation = 5;
1102
- */
1103
- this.totalRewardAllocation = "";
1104
- /**
1105
- * @generated from field: string distributed_rewards = 6;
1106
- */
1107
- this.distributedRewards = "";
1108
- proto3.util.initPartial(data, this);
1109
- }
1110
- static fromBinary(bytes, options) {
1111
- return new RewardsCampaign().fromBinary(bytes, options);
1112
- }
1113
- static fromJson(jsonValue, options) {
1114
- return new RewardsCampaign().fromJson(jsonValue, options);
1115
- }
1116
- static fromJsonString(jsonString, options) {
1117
- return new RewardsCampaign().fromJsonString(jsonString, options);
1118
- }
1119
- static equals(a, b) {
1120
- return proto3.util.equals(RewardsCampaign, a, b);
1121
- }
1122
- }
1123
- RewardsCampaign.runtime = proto3;
1124
- RewardsCampaign.typeName = "uniswap.liquidity.v2.RewardsCampaign";
1125
- RewardsCampaign.fields = proto3.util.newFieldList(() => [
1126
- { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1127
- { no: 2, name: "boosted_apr", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1128
- { no: 3, name: "start_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1129
- { no: 4, name: "end_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1130
- { no: 5, name: "total_reward_allocation", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1131
- { no: 6, name: "distributed_rewards", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1132
- { no: 7, name: "reward_token", kind: "message", T: RewardToken },
1133
- ]);
1134
1052
  /**
1135
1053
  * One live campaign behind a pool's per-token boost. It carries no reward token —
1136
1054
  * campaigns are always grouped under one (see PoolTokenRewards).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-liquidity",
3
- "version": "1.4.35",
3
+ "version": "1.4.37",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },