timelock-sdk 0.0.245 → 0.0.247

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.js CHANGED
@@ -1,9 +1,9 @@
1
1
  'use client';
2
2
 
3
3
  import { a as erc20Abi$1, i as lensAbi, n as quoterAbi, r as optionsMarketAbi, t as stateViewAbi } from "./stateView-DMydGVhr.js";
4
- import { C as token1ToToken0, F as getErc20, I as getQuoter, L as getStateView, P as getPriceHistory, R as getTimelockLens, S as token0ToToken1AtTick, U as swappers, W as timelockFactories, a as wrapAmount, b as roundTick, d as getAmountsFromLiquidity, f as getNearestValidStrikeTick, m as getPriceAtTick, p as getPriceAtSqrtPriceX96, s as wrapPrice, w as token1ToToken0AtTick, x as token0ToToken1, z as getTimelockMarket } from "./numberUtils-B_tJmFF0.js";
4
+ import { C as token1ToToken0, D as MIN_SQRT_RATIO, F as getErc20, I as getQuoter, L as getStateView, P as getPriceHistory, R as getTimelockLens, S as token0ToToken1AtTick, T as MAX_SQRT_RATIO, U as swappers, W as timelockFactories, a as wrapAmount, b as roundTick, d as getAmountsFromLiquidity, f as getNearestValidStrikeTick, m as getPriceAtTick, p as getPriceAtSqrtPriceX96, s as wrapPrice, w as token1ToToken0AtTick, x as token0ToToken1, z as getTimelockMarket } from "./numberUtils-B_tJmFF0.js";
5
5
  import { n as guardianAbi, r as singleOwnerVaultAbi, t as factoryAbi } from "./factory-DB64NQVz.js";
6
- import { decodeAbiParameters, decodeEventLog, encodeAbiParameters, encodeFunctionData, erc20Abi, keccak256, maxInt256, maxUint160, maxUint256, minInt256, zeroAddress } from "viem";
6
+ import { decodeAbiParameters, decodeEventLog, encodeAbiParameters, encodeFunctionData, erc20Abi, keccak256, maxInt256, maxUint256, minInt256, zeroAddress } from "viem";
7
7
  import React, { createContext, useContext, useEffect, useMemo } from "react";
8
8
  import { GraphQLClient, RequestOptions } from "graphql-request";
9
9
  import gql from "graphql-tag";
@@ -1306,8 +1306,8 @@ const swapperData = encodeAbiParameters([
1306
1306
  { type: "uint160" },
1307
1307
  { type: "uint256" }
1308
1308
  ], [
1309
- 0n,
1310
- maxUint160,
1309
+ MIN_SQRT_RATIO,
1310
+ MAX_SQRT_RATIO,
1311
1311
  BigInt(Math.floor(Date.now() / 1e3) + 600)
1312
1312
  ]);
1313
1313
  const useOptionPnl = (option) => {