timelock-sdk 0.0.125 → 0.0.126

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.
@@ -407,7 +407,7 @@ declare const getErc20: (address: Address, client: Client) => {
407
407
  }];
408
408
  readonly stateMutability: "nonpayable";
409
409
  }], "symbol", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<string>;
410
- allowance: (args: readonly [`0x${string}`, `0x${string}`], options?: viem148.Prettify<viem148.UnionOmit<viem148.ReadContractParameters<readonly [{
410
+ decimals: (options?: viem148.Prettify<viem148.UnionOmit<viem148.ReadContractParameters<readonly [{
411
411
  readonly type: "constructor";
412
412
  readonly inputs: readonly [{
413
413
  readonly name: "name_";
@@ -585,8 +585,8 @@ declare const getErc20: (address: Address, client: Client) => {
585
585
  readonly internalType: "bool";
586
586
  }];
587
587
  readonly stateMutability: "nonpayable";
588
- }], "allowance", readonly [`0x${string}`, `0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
589
- balanceOf: (args: readonly [`0x${string}`], options?: viem148.Prettify<viem148.UnionOmit<viem148.ReadContractParameters<readonly [{
588
+ }], "decimals", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<number>;
589
+ name: (options?: viem148.Prettify<viem148.UnionOmit<viem148.ReadContractParameters<readonly [{
590
590
  readonly type: "constructor";
591
591
  readonly inputs: readonly [{
592
592
  readonly name: "name_";
@@ -764,8 +764,8 @@ declare const getErc20: (address: Address, client: Client) => {
764
764
  readonly internalType: "bool";
765
765
  }];
766
766
  readonly stateMutability: "nonpayable";
767
- }], "balanceOf", readonly [`0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
768
- decimals: (options?: viem148.Prettify<viem148.UnionOmit<viem148.ReadContractParameters<readonly [{
767
+ }], "name", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<string>;
768
+ allowance: (args: readonly [`0x${string}`, `0x${string}`], options?: viem148.Prettify<viem148.UnionOmit<viem148.ReadContractParameters<readonly [{
769
769
  readonly type: "constructor";
770
770
  readonly inputs: readonly [{
771
771
  readonly name: "name_";
@@ -943,8 +943,8 @@ declare const getErc20: (address: Address, client: Client) => {
943
943
  readonly internalType: "bool";
944
944
  }];
945
945
  readonly stateMutability: "nonpayable";
946
- }], "decimals", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<number>;
947
- name: (options?: viem148.Prettify<viem148.UnionOmit<viem148.ReadContractParameters<readonly [{
946
+ }], "allowance", readonly [`0x${string}`, `0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
947
+ balanceOf: (args: readonly [`0x${string}`], options?: viem148.Prettify<viem148.UnionOmit<viem148.ReadContractParameters<readonly [{
948
948
  readonly type: "constructor";
949
949
  readonly inputs: readonly [{
950
950
  readonly name: "name_";
@@ -1122,7 +1122,7 @@ declare const getErc20: (address: Address, client: Client) => {
1122
1122
  readonly internalType: "bool";
1123
1123
  }];
1124
1124
  readonly stateMutability: "nonpayable";
1125
- }], "name", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<string>;
1125
+ }], "balanceOf", readonly [`0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
1126
1126
  totalSupply: (options?: viem148.Prettify<viem148.UnionOmit<viem148.ReadContractParameters<readonly [{
1127
1127
  readonly type: "constructor";
1128
1128
  readonly inputs: readonly [{
@@ -36306,7 +36306,7 @@ interface PriceDataPoint {
36306
36306
  price: number;
36307
36307
  }
36308
36308
  type PriceResolution = '1m' | '5m' | '15m' | '1h' | '4h' | '1d';
36309
- declare const getPriceHistory: (poolAddress: string, resolution: PriceResolution, start: Date, end: Date) => Promise<PriceDataPoint[]>;
36309
+ declare const getPriceHistory: (pool: Address, token: 0 | 1, resolution: PriceResolution, start: Date, end: Date) => Promise<PriceDataPoint[]>;
36310
36310
  declare const getCurrentPrice: (poolAddress: string) => Promise<PriceData>;
36311
36311
  //#endregion
36312
36312
  //#region src/lib/liquidityUtils.d.ts
@@ -36369,7 +36369,8 @@ declare const usePriceAtTick: (tick?: number, poolAddr?: Address) => Amount | un
36369
36369
  declare const usePriceSqrtPriceX96: (sqrtPriceX96?: bigint, poolAddr?: Address) => Amount | undefined;
36370
36370
  //#endregion
36371
36371
  //#region src/hooks/pool/usePriceHistory.d.ts
36372
- declare const usePriceHistory: (pool: Address | undefined, resolution: PriceResolution, startTimestamp: Date, endTimestamp: Date) => _tanstack_react_query0.UseQueryResult<PriceDataPoint[], Error>;
36372
+ declare const usePriceHistory: (pool: Address | undefined, token: 0 | 1, resolution: PriceResolution, startTimestamp: Date, endTimestamp: Date) => _tanstack_react_query0.UseQueryResult<PriceDataPoint[], Error>;
36373
+ declare const useMarketPriceHistory: (marketAddr: Address | undefined, resolution: PriceResolution, startTimestamp: Date, endTimestamp: Date) => _tanstack_react_query0.UseQueryResult<PriceDataPoint[], Error>;
36373
36374
  //#endregion
36374
36375
  //#region src/hooks/vault/useBurnLiquidity.d.ts
36375
36376
  interface BurnPosition {
@@ -62483,5 +62484,5 @@ declare const useApproval: () => {
62483
62484
  reset: () => void;
62484
62485
  };
62485
62486
  //#endregion
62486
- export { useOptionTimeline as $, roundTickUp as A, TimelockMarketData as At, useSetOperatorPerms as B, getPriceAtTick as C, useActiveUserOptions as Ct, liquiditiesToAmount1 as D, useTimelockConfig as Dt, liquiditiesToAmount0 as E, useCurrentMarket as Et, PriceData as F, getUniswapMathLens as Ft, useUserPerps as G, useOperatorPerms as H, PriceDataPoint as I, swappers as It, useMintPerp as J, usePerpsOperator as K, PriceResolution as L, timelockLenses as Lt, token0ToToken1AtTick as M, getErc20 as Mt, token1ToToken0 as N, getTimelockLens as Nt, liquiditiesToAmounts as O, TimelockLens as Ot, token1ToToken0AtTick as P, getTimelockMarket as Pt, OptionEvent as Q, getCurrentPrice as R, uniswapMathLenses as Rt, getPriceAtSqrtPriceX96 as S, OptionData as St, getTickAtPrice as T, TimelockProvider as Tt, useActiveUserPerps as U, useUserOperators as V, useClosedUserPerps as W, ExtendEvent as X, ExerciseOptionEvent as Y, MintOptionEvent as Z, getPayoutAtPrice as _, wrapPrice as _t, batchGetAmountsFromLiquidity as a, Amount as at, getAmountsFromLiquidity as b, useMarketData as bt, useLiquidityBlocks as c, formatCondensed as ct, usePriceAtTick as d, scaleAmount as dt, useExtendOption as et, usePriceSqrtPriceX96 as f, scalePrice as ft, useCurrentPrice as g, wrapAmountUnscaled as gt, useCurrentTick as h, wrapAmount as ht, useVaultData as i, useMaxPositionSize as it, token0ToToken1 as j, UniswapMathLens as jt, roundTickDown as k, TimelockMarket as kt, useBurnLiquidity as l, formatUSD as lt, usePoolData as m, unscalePrice as mt, useLens as n, useOptionPnl as nt, useMintLiquidity as o, EMPTY_ARRAY as ot, UniswapPoolData as p, unscaleAmount as pt, useClosePerp as q, useVaultTVL as r, useMintOption as rt, LiquidityBlockData as s, formatAmount as st, useApproval as t, useOptionPremium as tt, usePriceHistory as u, formatVagueAmount as ut, getPayoutAtTick as v, wrapPriceUnscaled as vt, getSqrtPriceX96AtPrice as w, useClosedUserOptions as wt, getNearestValidStrikeTick as x, useExerciseOption as xt, PRICE_PRECISION as y, zero as yt, getPriceHistory as z };
62487
- //# sourceMappingURL=client-R3EwrHFY.d.ts.map
62487
+ export { OptionEvent as $, roundTickDown as A, TimelockMarket as At, getPriceHistory as B, getPriceAtSqrtPriceX96 as C, OptionData as Ct, liquiditiesToAmount0 as D, useCurrentMarket as Dt, getTickAtPrice as E, TimelockProvider as Et, token1ToToken0AtTick as F, getTimelockMarket as Ft, useClosedUserPerps as G, useUserOperators as H, PriceData as I, getUniswapMathLens as It, useClosePerp as J, useUserPerps as K, PriceDataPoint as L, swappers as Lt, token0ToToken1 as M, UniswapMathLens as Mt, token0ToToken1AtTick as N, getErc20 as Nt, liquiditiesToAmount1 as O, useTimelockConfig as Ot, token1ToToken0 as P, getTimelockLens as Pt, MintOptionEvent as Q, PriceResolution as R, timelockLenses as Rt, getNearestValidStrikeTick as S, useExerciseOption as St, getSqrtPriceX96AtPrice as T, useClosedUserOptions as Tt, useOperatorPerms as U, useSetOperatorPerms as V, useActiveUserPerps as W, ExerciseOptionEvent as X, useMintPerp as Y, ExtendEvent as Z, useCurrentPrice as _, wrapAmountUnscaled as _t, batchGetAmountsFromLiquidity as a, useMaxPositionSize as at, PRICE_PRECISION as b, zero as bt, useLiquidityBlocks as c, formatAmount as ct, usePriceHistory as d, formatVagueAmount as dt, useOptionTimeline as et, usePriceAtTick as f, scaleAmount as ft, useCurrentTick as g, wrapAmount as gt, usePoolData as h, unscalePrice as ht, useVaultData as i, useMintOption as it, roundTickUp as j, TimelockMarketData as jt, liquiditiesToAmounts as k, TimelockLens as kt, useBurnLiquidity as l, formatCondensed as lt, UniswapPoolData as m, unscaleAmount as mt, useLens as n, useOptionPremium as nt, useMintLiquidity as o, Amount as ot, usePriceSqrtPriceX96 as p, scalePrice as pt, usePerpsOperator as q, useVaultTVL as r, useOptionPnl as rt, LiquidityBlockData as s, EMPTY_ARRAY as st, useApproval as t, useExtendOption as tt, useMarketPriceHistory as u, formatUSD as ut, getPayoutAtPrice as v, wrapPrice as vt, getPriceAtTick as w, useActiveUserOptions as wt, getAmountsFromLiquidity as x, useMarketData as xt, getPayoutAtTick as y, wrapPriceUnscaled as yt, getCurrentPrice as z, uniswapMathLenses as zt };
62488
+ //# sourceMappingURL=client-BaTCKa-Q.d.ts.map