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.
- package/dist/{client-B05FmAOu.d.cts → client-CBAw6hZp.d.cts} +147 -147
- package/dist/{client-DD0ZqvvE.d.ts → client-CgKvLJL3.d.ts} +13 -13
- package/dist/client.cjs +1 -1
- 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 +1 -1
- package/dist/client.js.map +1 -1
- package/dist/{optionUtils-TQHs3mDI.cjs → optionUtils-d9nvMiCo.cjs} +5 -4
- package/dist/{optionUtils-TQHs3mDI.cjs.map → optionUtils-d9nvMiCo.cjs.map} +1 -1
- package/dist/{optionUtils-BTJL8VrK.js → optionUtils-pn-0u_g7.js} +5 -4
- package/dist/{optionUtils-BTJL8VrK.js.map → optionUtils-pn-0u_g7.js.map} +1 -1
- 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
|
@@ -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?: 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
|
-
}], "
|
|
589
|
-
|
|
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
|
-
}], "
|
|
768
|
-
|
|
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
|
-
}], "
|
|
947
|
-
|
|
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
|
-
}], "
|
|
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
|
|
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
|
|
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,
|
|
62487
|
-
//# sourceMappingURL=client-
|
|
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-
|
|
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");
|