timelock-sdk 0.0.139 → 0.0.141
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-40kJVPoc.d.ts → client-BLQCtXFi.d.ts} +11 -10
- package/dist/{client-DTyVaDKH.d.cts → client-DIhxyTbI.d.cts} +375 -374
- package/dist/client.cjs +3 -2
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +3 -2
- package/dist/client.js.map +1 -1
- package/dist/{optionUtils-BunZxBrW.js → optionUtils-9m2sevDs.js} +15 -5
- package/dist/optionUtils-9m2sevDs.js.map +1 -0
- package/dist/{optionUtils-BUJzXFyd.cjs → optionUtils-pIZ0mbRp.cjs} +19 -3
- package/dist/optionUtils-pIZ0mbRp.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-BUJzXFyd.cjs.map +0 -1
- package/dist/optionUtils-BunZxBrW.js.map +0 -1
|
@@ -424,7 +424,7 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
424
424
|
}];
|
|
425
425
|
readonly stateMutability: "nonpayable";
|
|
426
426
|
}], "symbol", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<string>;
|
|
427
|
-
|
|
427
|
+
decimals: (options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
|
|
428
428
|
readonly type: "constructor";
|
|
429
429
|
readonly inputs: readonly [{
|
|
430
430
|
readonly name: "name_";
|
|
@@ -602,8 +602,8 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
602
602
|
readonly internalType: "bool";
|
|
603
603
|
}];
|
|
604
604
|
readonly stateMutability: "nonpayable";
|
|
605
|
-
}], "
|
|
606
|
-
|
|
605
|
+
}], "decimals", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<number>;
|
|
606
|
+
name: (options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
|
|
607
607
|
readonly type: "constructor";
|
|
608
608
|
readonly inputs: readonly [{
|
|
609
609
|
readonly name: "name_";
|
|
@@ -781,8 +781,8 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
781
781
|
readonly internalType: "bool";
|
|
782
782
|
}];
|
|
783
783
|
readonly stateMutability: "nonpayable";
|
|
784
|
-
}], "
|
|
785
|
-
|
|
784
|
+
}], "name", readonly []>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<string>;
|
|
785
|
+
allowance: (args: readonly [`0x${string}`, `0x${string}`], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
|
|
786
786
|
readonly type: "constructor";
|
|
787
787
|
readonly inputs: readonly [{
|
|
788
788
|
readonly name: "name_";
|
|
@@ -960,8 +960,8 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
960
960
|
readonly internalType: "bool";
|
|
961
961
|
}];
|
|
962
962
|
readonly stateMutability: "nonpayable";
|
|
963
|
-
}], "
|
|
964
|
-
|
|
963
|
+
}], "allowance", readonly [`0x${string}`, `0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
964
|
+
balanceOf: (args: readonly [`0x${string}`], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
|
|
965
965
|
readonly type: "constructor";
|
|
966
966
|
readonly inputs: readonly [{
|
|
967
967
|
readonly name: "name_";
|
|
@@ -1139,7 +1139,7 @@ declare const getErc20: (address: Address, client: Client) => {
|
|
|
1139
1139
|
readonly internalType: "bool";
|
|
1140
1140
|
}];
|
|
1141
1141
|
readonly stateMutability: "nonpayable";
|
|
1142
|
-
}], "
|
|
1142
|
+
}], "balanceOf", readonly [`0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<bigint>;
|
|
1143
1143
|
totalSupply: (options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
|
|
1144
1144
|
readonly type: "constructor";
|
|
1145
1145
|
readonly inputs: readonly [{
|
|
@@ -37452,6 +37452,7 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
|
|
|
37452
37452
|
};
|
|
37453
37453
|
declare const swappers: Record<number, Address>;
|
|
37454
37454
|
declare const timelockLenses: Record<number, Address>;
|
|
37455
|
+
declare const swapRouters: Record<number, Address>;
|
|
37455
37456
|
declare const stateViews: Record<number, Address>;
|
|
37456
37457
|
//#endregion
|
|
37457
37458
|
//#region src/lib/perpsOperator.d.ts
|
|
@@ -74667,5 +74668,5 @@ declare const useLens: () => {
|
|
|
74667
74668
|
} | undefined;
|
|
74668
74669
|
};
|
|
74669
74670
|
//#endregion
|
|
74670
|
-
export { ExerciseOptionEvent as $, getTickAtPrice as A, TimelockProvider as At, PriceDataPoint as B, getTimelockMarket as Bt, getPayoutAtTick as C, zero as Ct, getPriceAtSqrtPriceX96 as D, OptionData as Dt, getNearestValidStrikeTick as E, useExerciseOption as Et, token0ToToken1 as F, TimelockMarketData as Ft, useUserOperators as G, getCurrentPrice as H,
|
|
74671
|
-
//# sourceMappingURL=client-
|
|
74671
|
+
export { ExerciseOptionEvent as $, getTickAtPrice as A, TimelockProvider as At, PriceDataPoint as B, getTimelockMarket as Bt, getPayoutAtTick as C, zero as Ct, getPriceAtSqrtPriceX96 as D, OptionData as Dt, getNearestValidStrikeTick as E, useExerciseOption as Et, token0ToToken1 as F, TimelockMarketData as Ft, useUserOperators as G, getCurrentPrice as H, swapRouters as Ht, token0ToToken1AtTick as I, UniswapMathLens as It, useClosedUserPerps as J, useOperatorPerms as K, token1ToToken0 as L, getErc20 as Lt, liquiditiesToAmount1 as M, useTimelockConfig as Mt, liquiditiesToAmounts as N, TimelockLens as Nt, getPriceAtTick as O, useActiveUserOptions as Ot, roundTick as P, TimelockMarket as Pt, useMintPerp as Q, token1ToToken0AtTick as R, getStateView as Rt, getPayoutAtPrice as S, wrapPriceUnscaled as St, getAmountsFromLiquidity as T, useMarketData as Tt, getPriceHistory as U, swappers as Ut, PriceResolution as V, stateViews as Vt, useSetOperatorPerms as W, timelockLenses as Wt, usePerpsOperator as X, useUserPerps as Y, useClosePerp as Z, useCurrentTick as _, unscaleAmount as _t, useTokenData as a, useOptionPremium as at, UniswapPoolData as b, wrapAmountUnscaled as bt, batchGetAmountsFromLiquidity as c, useMaxPositionSize as ct, useLiquidityBlocks as d, formatAmount as dt, ExtendEvent as et, useBurnLiquidity as f, formatCondensed as ft, usePriceAtTick as g, scalePrice as gt, usePriceAtSqrtPriceX96 as h, scaleAmount as ht, TokenData as i, useExtendOption as it, liquiditiesToAmount0 as j, useCurrentMarket as jt, getSqrtPriceX96AtPrice as k, useClosedUserOptions as kt, useMintLiquidity as l, Amount as lt, usePriceHistory as m, formatVagueAmount as mt, useApproval as n, OptionEvent as nt, useVaultTVL as o, useOptionPnl as ot, useMarketPriceHistory as p, formatUSD as pt, useActiveUserPerps as q, useTokenBalance as r, useOptionTimeline as rt, useVaultData as s, useMintOption as st, useLens as t, MintOptionEvent as tt, LiquidityBlockData as u, EMPTY_ARRAY as ut, useCurrentPrice as v, unscalePrice as vt, PRICE_PRECISION as w, useMarketVolume as wt, usePoolData as x, wrapPrice as xt, PoolKey as y, wrapAmount as yt, PriceData as z, getTimelockLens as zt };
|
|
74672
|
+
//# sourceMappingURL=client-BLQCtXFi.d.ts.map
|