@uniswap/client-liquidity 1.4.8 → 1.4.9

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.
@@ -784,11 +784,16 @@ export declare class PoolReference extends Message<PoolReference> {
784
784
  */
785
785
  addressOrId: string;
786
786
  /**
787
- * POOL_PROTOCOL_UNSPECIFIED rejected as invalid_argument
787
+ * Optional for GetPool: a pool-detail URL has only address + chain, so the
788
+ * service resolves the version from address_or_id (V4 pool ids are 64-hex; a
789
+ * 40-hex address is probed against v3 then v2 metadata). Required by the other
790
+ * pool endpoints (ticks/history), whose callers already have the version from
791
+ * GetPool's response. When set, it's authoritative and skips resolution.
792
+ * Unset (or POOL_PROTOCOL_UNSPECIFIED) means "resolve from the identifier".
788
793
  *
789
- * @generated from field: uniswap.liquidity.v2.PoolProtocol version = 3;
794
+ * @generated from field: optional uniswap.liquidity.v2.PoolProtocol version = 3;
790
795
  */
791
- version: PoolProtocol;
796
+ version?: PoolProtocol;
792
797
  constructor(data?: PartialMessage<PoolReference>);
793
798
  static readonly runtime: typeof proto3;
794
799
  static readonly typeName = "uniswap.liquidity.v2.PoolReference";
@@ -1029,12 +1029,6 @@ export class PoolReference extends Message {
1029
1029
  * @generated from field: string address_or_id = 2;
1030
1030
  */
1031
1031
  this.addressOrId = "";
1032
- /**
1033
- * POOL_PROTOCOL_UNSPECIFIED rejected as invalid_argument
1034
- *
1035
- * @generated from field: uniswap.liquidity.v2.PoolProtocol version = 3;
1036
- */
1037
- this.version = PoolProtocol.UNSPECIFIED;
1038
1032
  proto3.util.initPartial(data, this);
1039
1033
  }
1040
1034
  static fromBinary(bytes, options) {
@@ -1055,7 +1049,7 @@ PoolReference.typeName = "uniswap.liquidity.v2.PoolReference";
1055
1049
  PoolReference.fields = proto3.util.newFieldList(() => [
1056
1050
  { no: 1, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
1057
1051
  { no: 2, name: "address_or_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1058
- { no: 3, name: "version", kind: "enum", T: proto3.getEnumType(PoolProtocol) },
1052
+ { no: 3, name: "version", kind: "enum", T: proto3.getEnumType(PoolProtocol), opt: true },
1059
1053
  ]);
1060
1054
  /**
1061
1055
  * One point of a pool's relative-price history, in raw pool-token
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-liquidity",
3
- "version": "1.4.8",
3
+ "version": "1.4.9",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },