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.
- package/dist/{client-R3EwrHFY.d.ts → client-BaTCKa-Q.d.ts} +13 -12
- package/dist/{client-CdVPqvLC.d.cts → client-zn1D8T6b.d.cts} +147 -146
- package/dist/client.cjs +9 -3
- 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 +9 -4
- package/dist/client.js.map +1 -1
- package/dist/{optionUtils-Cv3pCXVh.cjs → optionUtils-D1cM5YX1.cjs} +3 -3
- package/dist/optionUtils-D1cM5YX1.cjs.map +1 -0
- package/dist/{optionUtils-BuQmVUD4.js → optionUtils-Mlp5ZX6W.js} +3 -3
- package/dist/optionUtils-Mlp5ZX6W.js.map +1 -0
- package/dist/package.cjs +1 -1
- package/dist/package.d.cts +1 -1
- package/dist/package.d.ts +1 -1
- package/dist/package.js +1 -1
- package/package.json +1 -1
- package/dist/optionUtils-BuQmVUD4.js.map +0 -1
- package/dist/optionUtils-Cv3pCXVh.cjs.map +0 -1
|
@@ -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
|
-
|
|
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
|
-
}], "
|
|
589
|
-
|
|
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
|
-
}], "
|
|
768
|
-
|
|
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
|
-
}], "
|
|
947
|
-
|
|
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
|
-
}], "
|
|
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: (
|
|
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 {
|
|
62487
|
-
//# sourceMappingURL=client-
|
|
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
|