timelock-sdk 0.0.122 → 0.0.123

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
- name: (options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
410
+ decimals: (options?: viem0.Prettify<viem0.UnionOmit<viem0.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
- }], "name", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<string>;
589
- allowance: (args: readonly [`0x${string}`, `0x${string}`], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
588
+ }], "decimals", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<number>;
589
+ name: (options?: viem0.Prettify<viem0.UnionOmit<viem0.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
- }], "allowance", readonly [`0x${string}`, `0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
768
- balanceOf: (args: readonly [`0x${string}`], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
767
+ }], "name", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<string>;
768
+ allowance: (args: readonly [`0x${string}`, `0x${string}`], options?: viem0.Prettify<viem0.UnionOmit<viem0.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
- }], "balanceOf", readonly [`0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
947
- decimals: (options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
946
+ }], "allowance", readonly [`0x${string}`, `0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
947
+ balanceOf: (args: readonly [`0x${string}`], options?: viem0.Prettify<viem0.UnionOmit<viem0.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
- }], "decimals", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<number>;
1125
+ }], "balanceOf", readonly [`0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
1126
1126
  totalSupply: (options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
1127
1127
  readonly type: "constructor";
1128
1128
  readonly inputs: readonly [{
@@ -33829,8 +33829,8 @@ declare const unscaleAmount: (scaled: bigint, decimals: number) => Big.Big;
33829
33829
  declare const scaleAmount: (unscaled: Big | number | string, decimals: number) => bigint;
33830
33830
  declare const unscalePrice: (scaled: bigint, decimals0: number, decimals1: number, precision?: number) => Big.Big;
33831
33831
  declare const scalePrice: (unscaled: Big | number | string, decimals0: number, decimals1: number, precision?: number) => bigint;
33832
- declare const formatAmount: (value?: Big | number | string) => string;
33833
- declare const formatVagueAmount: (value: number | bigint) => string;
33832
+ declare const formatAmount: (value: Big | number | string) => string;
33833
+ declare const formatVagueAmount: (value: Big | number | bigint | string, fractionDigits?: number) => string;
33834
33834
  declare const formatCondensed: (input: string | number, decimals?: number) => string;
33835
33835
  declare const formatUSD: (value: Big | string | number) => string;
33836
33836
  //#endregion
@@ -33880,7 +33880,7 @@ type MintOptionEvent = Extract<OptionEvent, {
33880
33880
  type ExerciseOptionEvent = Extract<OptionEvent, {
33881
33881
  type: 'exercise';
33882
33882
  }>;
33883
- type Extend = Extract<OptionEvent, {
33883
+ type ExtendEvent = Extract<OptionEvent, {
33884
33884
  type: 'extend';
33885
33885
  }>;
33886
33886
  declare const useOptionTimeline: (marketAddr?: Address, optionId?: bigint) => {
@@ -62483,5 +62483,5 @@ declare const useApproval: () => {
62483
62483
  reset: () => void;
62484
62484
  };
62485
62485
  //#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, Extend 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-DD0ZqvvE.d.ts.map
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-CgKvLJL3.d.ts.map
package/dist/client.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
3
 
4
- const require_optionUtils = require('./optionUtils-TQHs3mDI.cjs');
4
+ const require_optionUtils = require('./optionUtils-d9nvMiCo.cjs');
5
5
  const require_optionsMarket = require('./optionsMarket-C8-v8IvX.cjs');
6
6
  const require_singleOwnerVault = require('./singleOwnerVault-gf2zNZVk.cjs');
7
7
  let viem = require("viem");