timelock-sdk 0.0.260 → 0.0.262

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.
package/dist/client.cjs CHANGED
@@ -96,6 +96,7 @@ var PerpsOperator = class {
96
96
  const { txHash, optionId } = await this.#writeRequest("api/positions/mint", {
97
97
  ...body,
98
98
  amount: body.amount.toString(),
99
+ maxPremium: body.maxPremium.toString(),
99
100
  auth: this.auth
100
101
  });
101
102
  return {
@@ -109,6 +110,10 @@ var PerpsOperator = class {
109
110
  ...body,
110
111
  optionId: body.optionId.toString(),
111
112
  liquidities: body.liquidities.map((l) => l.toString()),
113
+ minSqrtPrice: body.minSqrtPrice.toString(),
114
+ maxSqrtPrice: body.maxSqrtPrice.toString(),
115
+ minPayout: body.minPayout.toString(),
116
+ deadline: body.deadline,
112
117
  auth: this.auth
113
118
  });
114
119
  return {
@@ -1419,7 +1424,7 @@ const useMarketPriceHistory = (marketAddr, resolution, startTimestamp, endTimest
1419
1424
  //#endregion
1420
1425
  //#region src/hooks/pool/usePoolVolume.ts
1421
1426
  const usePoolVolume = (poolManager, poolKey) => {
1422
- const { uniV4GraphqlClient } = useTimelockConfig();
1427
+ const { univ4GraphqlClient } = useTimelockConfig();
1423
1428
  const poolId = (0, react.useMemo)(() => poolKey ? getPoolId(poolKey) : void 0, [poolKey]);
1424
1429
  return (0, _tanstack_react_query.useQuery)({
1425
1430
  queryKey: [
@@ -1428,7 +1433,7 @@ const usePoolVolume = (poolManager, poolKey) => {
1428
1433
  (poolManager === null || poolManager === void 0 ? void 0 : poolManager.toLowerCase()) || "--"
1429
1434
  ],
1430
1435
  queryFn: async () => {
1431
- const result = await uniV4GraphqlClient.GetPoolVolume({ poolId });
1436
+ const result = await univ4GraphqlClient.GetPoolVolume({ poolId });
1432
1437
  return {
1433
1438
  ...result.Pool[0],
1434
1439
  volume0: BigInt(result.Pool[0].volume0),
@@ -1441,7 +1446,7 @@ const usePoolVolume = (poolManager, poolKey) => {
1441
1446
  positionCount: BigInt(result.Pool[0].positionCount)
1442
1447
  };
1443
1448
  },
1444
- enabled: !!poolId && !!uniV4GraphqlClient
1449
+ enabled: !!poolId && !!univ4GraphqlClient
1445
1450
  });
1446
1451
  };
1447
1452