timelock-sdk 0.0.113 → 0.0.115
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-Bcn8F-k3.d.ts → client-BOmeI-gW.d.ts} +6 -2
- package/dist/{client-C3f1XPh8.d.cts → client-DM6DKDpk.d.cts} +292 -288
- package/dist/client.cjs +46 -48
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/client.js +46 -49
- package/dist/client.js.map +1 -1
- package/dist/{optionUtils-BkogxEAT.js → optionUtils-D8zF6lcX.js} +5 -2
- package/dist/optionUtils-D8zF6lcX.js.map +1 -0
- package/dist/{optionUtils-DNAmXoEX.cjs → optionUtils-DQakRJ_U.cjs} +10 -1
- package/dist/optionUtils-DQakRJ_U.cjs.map +1 -0
- package/dist/package.cjs +2 -1
- package/dist/package.d.cts +2 -2
- package/dist/package.d.ts +2 -2
- package/dist/package.js +2 -2
- package/package.json +1 -1
- package/dist/optionUtils-BkogxEAT.js.map +0 -1
- package/dist/optionUtils-DNAmXoEX.cjs.map +0 -1
|
@@ -36524,6 +36524,7 @@ declare const getCurrentPrice: (poolAddress: string) => Promise<PriceData>;
|
|
|
36524
36524
|
//#endregion
|
|
36525
36525
|
//#region src/lib/liquidityUtils.d.ts
|
|
36526
36526
|
declare const PRICE_PRECISION: bigint;
|
|
36527
|
+
declare const getPriceSqrtPriceX96: (sqrtPriceX96: bigint) => bigint;
|
|
36527
36528
|
declare const getPriceAtTick: (tick: number) => bigint;
|
|
36528
36529
|
declare const getTickAtPrice: (price: bigint) => number;
|
|
36529
36530
|
declare const getNearestValidStrikeTick: (optionType: "CALL" | "PUT", optionAssetIsToken0: boolean, tickSpacing: number, currentTick: number, strikeTick?: number) => number;
|
|
@@ -36542,6 +36543,7 @@ declare const getPayoutAtTick: (option: OptionData, liquidities: bigint[], tick:
|
|
|
36542
36543
|
//#region src/hooks/pool/useCurrentPrice.d.ts
|
|
36543
36544
|
declare const useCurrentPrice: (poolAddr?: Address) => {
|
|
36544
36545
|
currentPrice: Amount | undefined;
|
|
36546
|
+
sqrtPriceX96: bigint | undefined;
|
|
36545
36547
|
currentTick: {
|
|
36546
36548
|
exact: number | undefined;
|
|
36547
36549
|
rounded: number | undefined;
|
|
@@ -36552,6 +36554,7 @@ declare const useCurrentPrice: (poolAddr?: Address) => {
|
|
|
36552
36554
|
declare const useCurrentTick: (poolAddr?: Address) => {
|
|
36553
36555
|
exact: number | undefined;
|
|
36554
36556
|
rounded: number | undefined;
|
|
36557
|
+
sqrtPriceX96: bigint | undefined;
|
|
36555
36558
|
};
|
|
36556
36559
|
//#endregion
|
|
36557
36560
|
//#region src/hooks/pool/usePoolData.d.ts
|
|
@@ -36572,6 +36575,7 @@ declare const usePoolData: (poolAddr?: Address) => Partial<NonUndefined<{
|
|
|
36572
36575
|
//#endregion
|
|
36573
36576
|
//#region src/hooks/pool/usePriceAtTick.d.ts
|
|
36574
36577
|
declare const usePriceAtTick: (tick?: number, poolAddr?: Address) => Amount | undefined;
|
|
36578
|
+
declare const usePriceSqrtPriceX96: (sqrtPriceX96?: bigint, poolAddr?: Address) => Amount | undefined;
|
|
36575
36579
|
//#endregion
|
|
36576
36580
|
//#region src/hooks/pool/usePriceHistory.d.ts
|
|
36577
36581
|
declare const usePriceHistory: (pool: Address | undefined, resolution: PriceResolution, startTimestamp: Date, endTimestamp: Date) => _tanstack_react_query0.UseQueryResult<PriceDataPoint[], Error>;
|
|
@@ -62857,5 +62861,5 @@ declare const useApproval: () => {
|
|
|
62857
62861
|
reset: () => void;
|
|
62858
62862
|
};
|
|
62859
62863
|
//#endregion
|
|
62860
|
-
export {
|
|
62861
|
-
//# sourceMappingURL=client-
|
|
62864
|
+
export { EMPTY_ARRAY as $, token1ToToken0 as A, uniswapMathLenses as At, useClosedUserPerps as B, getTickAtPrice as C, TimelockMarketData as Ct, roundTickDown as D, getTimelockMarket as Dt, liquiditiesToAmounts as E, getTimelockLens as Et, getPriceHistory as F, OptionTimelineData as G, usePerpsOperator as H, useSetOperatorPerms as I, useOptionPremium as J, useOptionTimeline as K, useUserOperators as L, PriceDataPoint as M, PriceResolution as N, roundTickUp as O, getUniswapMathLens as Ot, getCurrentPrice as P, Amount as Q, useOperatorPerms as R, getPriceSqrtPriceX96 as S, TimelockMarket as St, liquiditiesToAmount1 as T, getErc20 as Tt, useClosePerp as U, useUserPerps as V, useMintPerp as W, useMintOption as X, useOptionPnl as Y, useMaxPositionSize as Z, getPayoutAtTick as _, useClosedUserOptions as _t, batchGetAmountsFromLiquidity as a, scalePrice as at, getNearestValidStrikeTick as b, useTimelockConfig as bt, useLiquidityBlocks as c, wrapAmount as ct, usePriceAtTick as d, wrapPriceUnscaled as dt, formatAmount as et, usePriceSqrtPriceX96 as f, zero as ft, useCurrentPrice as g, useActiveUserOptions as gt, useCurrentTick as h, OptionData as ht, useVaultData as i, scaleAmount as it, PriceData as j, token0ToToken1 as k, timelockLenses as kt, useBurnLiquidity as l, wrapAmountUnscaled as lt, usePoolData as m, useExerciseOption as mt, useLens as n, formatUSD as nt, useMintLiquidity as o, unscaleAmount as ot, UniswapPoolData as p, useMarketData as pt, useExtendOption as q, useVaultTVL as r, formatVagueAmount as rt, LiquidityBlockData as s, unscalePrice as st, useApproval as t, formatCondensed as tt, usePriceHistory as u, wrapPrice as ut, PRICE_PRECISION as v, TimelockProvider as vt, liquiditiesToAmount0 as w, UniswapMathLens as wt, getPriceAtTick as x, TimelockLens as xt, getAmountsFromLiquidity as y, useCurrentMarket as yt, useActiveUserPerps as z };
|
|
62865
|
+
//# sourceMappingURL=client-BOmeI-gW.d.ts.map
|