timelock-sdk 0.0.54 → 0.0.56

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/abis.cjs CHANGED
@@ -1,4 +1,4 @@
1
- const require_optionsMarket = require('./optionsMarket-DEFMUI2G.cjs');
1
+ const require_optionsMarket = require('./optionsMarket-k4C_Yx7a.cjs');
2
2
  const require_singleOwnerVault = require('./singleOwnerVault-gf2zNZVk.cjs');
3
3
 
4
4
  exports.erc20Abi = require_optionsMarket.erc20Abi;
package/dist/abis.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as optionsMarketAbi, r as lensAbi, t as uniswapMathLensAbi } from "./uniswapMathLens-BQ_ArpKd.cjs";
1
+ import { n as optionsMarketAbi, r as lensAbi, t as uniswapMathLensAbi } from "./uniswapMathLens-CGKa7m43.cjs";
2
2
 
3
3
  //#region src/abis/erc20.d.ts
4
4
  declare const erc20Abi: readonly [{
package/dist/abis.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as optionsMarketAbi, r as lensAbi, t as uniswapMathLensAbi } from "./uniswapMathLens-DCuaXAGZ.js";
1
+ import { n as optionsMarketAbi, r as lensAbi, t as uniswapMathLensAbi } from "./uniswapMathLens-BCl11EO1.js";
2
2
 
3
3
  //#region src/abis/erc20.d.ts
4
4
  declare const erc20Abi: readonly [{
package/dist/abis.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as erc20Abi, n as uniswapMathLensAbi, r as lensAbi, t as optionsMarketAbi } from "./optionsMarket-BDBU1gUS.js";
1
+ import { i as erc20Abi, n as uniswapMathLensAbi, r as lensAbi, t as optionsMarketAbi } from "./optionsMarket-gAjmVL6j.js";
2
2
  import { n as uniswapV3PoolAbi, t as singleOwnerVaultAbi } from "./singleOwnerVault-BeJChjfJ.js";
3
3
 
4
4
  export { erc20Abi, lensAbi, optionsMarketAbi, singleOwnerVaultAbi, uniswapMathLensAbi, uniswapV3PoolAbi };
package/dist/client.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
 
3
3
 
4
- const require_numberUtils = require('./numberUtils-CkwkoxOr.cjs');
5
- const require_optionsMarket = require('./optionsMarket-DEFMUI2G.cjs');
4
+ const require_numberUtils = require('./numberUtils-DUFFdMYG.cjs');
5
+ const require_optionsMarket = require('./optionsMarket-k4C_Yx7a.cjs');
6
6
  const require_singleOwnerVault = require('./singleOwnerVault-gf2zNZVk.cjs');
7
7
  let viem = require("viem");
8
8
  viem = require_numberUtils.__toESM(viem);
@@ -387,7 +387,8 @@ const useMintOption = (marketAddr) => {
387
387
  optionType === "CALL" ? 0 : 1,
388
388
  amount,
389
389
  strikeTick,
390
- duration
390
+ duration,
391
+ 0
391
392
  ]);
392
393
  await askForApproval(premium + protocolFee);
393
394
  const hash$1 = await writeContractAsync({
@@ -456,7 +457,7 @@ const useOptionPnl = (option) => {
456
457
 
457
458
  //#endregion
458
459
  //#region src/hooks/market/useOptionPremium.ts
459
- const useOptionPremium = (marketAddr, optionType, optionAmount, duration, strikeTick) => {
460
+ const useOptionPremium = (marketAddr, optionType, optionAmount, addedDuration, remainingDuration = 0, strikeTick) => {
460
461
  const { pool, payoutAssetDecimals, optionAssetIsToken0 } = useMarketData(marketAddr);
461
462
  const { tickSpacing } = usePoolData(pool);
462
463
  const { exact: currentTick } = useCurrentTick(pool);
@@ -480,7 +481,8 @@ const useOptionPremium = (marketAddr, optionType, optionAmount, duration, strike
480
481
  optionType === "CALL" ? 0 : 1,
481
482
  optionAmount,
482
483
  strikeTickRounded,
483
- duration
484
+ addedDuration,
485
+ remainingDuration
484
486
  ] : void 0,
485
487
  query: { enabled: strikeTickRounded !== void 0 }
486
488
  });