timelock-sdk 0.0.9 → 0.0.10
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.cjs +21 -1
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +95 -70
- package/dist/client.d.ts +91 -66
- package/dist/client.js +23 -3
- package/dist/client.js.map +1 -1
- package/dist/{index-sG69Fv-T.d.ts → index-BCGDfKXC.d.cts} +123 -122
- package/dist/{index-DDAsERk2.d.cts → index-D6LBNb6K.d.ts} +16 -15
- package/dist/numberUtils-DB5N1e6G.js.map +1 -1
- package/dist/numberUtils-DRGhFDHZ.cjs.map +1 -1
- package/dist/package.d.cts +2 -2
- package/dist/package.d.ts +2 -2
- package/package.json +1 -1
|
@@ -28685,6 +28685,7 @@ declare const getUniswapMathLens: (client: Client | PublicClient) => {
|
|
|
28685
28685
|
readonly stateMutability: "pure";
|
|
28686
28686
|
}];
|
|
28687
28687
|
};
|
|
28688
|
+
type TimelockMarketData = Awaited<ReturnType<ReturnType<typeof getTimelockLens>['read']['getMarketData']>>;
|
|
28688
28689
|
declare const getTimelockLens: (client: Client | PublicClient) => {
|
|
28689
28690
|
read: {
|
|
28690
28691
|
batchGetRefTick: (args: readonly [`0x${string}`, readonly number[]], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
|
|
@@ -38631,18 +38632,6 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
|
|
|
38631
38632
|
declare const timelockLenses: Record<number, Address>;
|
|
38632
38633
|
declare const uniswapMathLenses: Record<number, Address>;
|
|
38633
38634
|
//#endregion
|
|
38634
|
-
//#region src/lib/liquidityUtils.d.ts
|
|
38635
|
-
declare const PRICE_PRECISION: bigint;
|
|
38636
|
-
declare const getPriceAtTick: (tick: number) => bigint;
|
|
38637
|
-
declare const getTickAtPrice: (price: bigint) => number;
|
|
38638
|
-
declare const roundTickDown: (tick: number, spacing: number) => number;
|
|
38639
|
-
declare const roundTickUp: (tick: number, spacing: number) => number;
|
|
38640
|
-
declare const token0ToToken1: (amount0: bigint, tick: number) => bigint;
|
|
38641
|
-
declare const token1ToToken0: (amount1: bigint, tick: number) => bigint;
|
|
38642
|
-
declare const liquiditiesToAmount0: (liquidities: bigint[], startTick: number, tickSpacing: number) => bigint;
|
|
38643
|
-
declare const liquiditiesToAmount1: (liquidities: bigint[], startTick: number, tickSpacing: number) => bigint;
|
|
38644
|
-
declare const liquiditiesToAmounts: (liquidities: bigint[], startTick: number, currentTick: number, tickSpacing: number) => bigint[];
|
|
38645
|
-
//#endregion
|
|
38646
38635
|
//#region src/lib/numberUtils.d.ts
|
|
38647
38636
|
type Amount = {
|
|
38648
38637
|
scaled: bigint;
|
|
@@ -38664,8 +38653,20 @@ declare const formatVagueAmount: (value: number | bigint) => string;
|
|
|
38664
38653
|
declare const formatCondensed: (input: string | number, decimals?: number) => string;
|
|
38665
38654
|
declare const formatUSD: (value: Big | string | number) => string;
|
|
38666
38655
|
//#endregion
|
|
38656
|
+
//#region src/lib/liquidityUtils.d.ts
|
|
38657
|
+
declare const PRICE_PRECISION: bigint;
|
|
38658
|
+
declare const getPriceAtTick: (tick: number) => bigint;
|
|
38659
|
+
declare const getTickAtPrice: (price: bigint) => number;
|
|
38660
|
+
declare const roundTickDown: (tick: number, spacing: number) => number;
|
|
38661
|
+
declare const roundTickUp: (tick: number, spacing: number) => number;
|
|
38662
|
+
declare const token0ToToken1: (amount0: bigint, tick: number) => bigint;
|
|
38663
|
+
declare const token1ToToken0: (amount1: bigint, tick: number) => bigint;
|
|
38664
|
+
declare const liquiditiesToAmount0: (liquidities: bigint[], startTick: number, tickSpacing: number) => bigint;
|
|
38665
|
+
declare const liquiditiesToAmount1: (liquidities: bigint[], startTick: number, tickSpacing: number) => bigint;
|
|
38666
|
+
declare const liquiditiesToAmounts: (liquidities: bigint[], startTick: number, currentTick: number, tickSpacing: number) => bigint[];
|
|
38667
|
+
//#endregion
|
|
38667
38668
|
//#region src/abis/erc20.d.ts
|
|
38668
|
-
declare const erc20Abi: readonly [{
|
|
38669
|
+
declare const erc20Abi$1: readonly [{
|
|
38669
38670
|
readonly type: "constructor";
|
|
38670
38671
|
readonly inputs: readonly [{
|
|
38671
38672
|
readonly name: "name_";
|
|
@@ -38885,5 +38886,5 @@ declare const erc20Abi: readonly [{
|
|
|
38885
38886
|
readonly anonymous: false;
|
|
38886
38887
|
}];
|
|
38887
38888
|
//#endregion
|
|
38888
|
-
export { Amount, PRICE_PRECISION, TimelockLens, TimelockMarket, TimelockVault, UniswapMathLens, UniswapPool, erc20Abi, formatAmount, formatCondensed, formatUSD, formatVagueAmount, getErc20, getPriceAtTick, getTickAtPrice, getTimelockLens, getTimelockMarket, getTimelockVault, getUniswapMathLens, getUniswapPool, lensAbi, liquiditiesToAmount0, liquiditiesToAmount1, liquiditiesToAmounts, optionsMarketAbi, roundTickDown, roundTickUp, scaleAmount, scalePrice, singleOwnerVaultAbi, timelockLenses, token0ToToken1, token1ToToken0, uniswapMathLensAbi, uniswapMathLenses, uniswapV3PoolAbi, unscaleAmount, unscalePrice, wrapAmount, wrapAmountUnscaled, wrapPrice, wrapPriceUnscaled, zero };
|
|
38889
|
-
//# sourceMappingURL=index-
|
|
38889
|
+
export { Amount, PRICE_PRECISION, TimelockLens, TimelockMarket, TimelockMarketData, TimelockVault, UniswapMathLens, UniswapPool, erc20Abi$1 as erc20Abi, formatAmount, formatCondensed, formatUSD, formatVagueAmount, getErc20, getPriceAtTick, getTickAtPrice, getTimelockLens, getTimelockMarket, getTimelockVault, getUniswapMathLens, getUniswapPool, lensAbi, liquiditiesToAmount0, liquiditiesToAmount1, liquiditiesToAmounts, optionsMarketAbi, roundTickDown, roundTickUp, scaleAmount, scalePrice, singleOwnerVaultAbi, timelockLenses, token0ToToken1, token1ToToken0, uniswapMathLensAbi, uniswapMathLenses, uniswapV3PoolAbi, unscaleAmount, unscalePrice, wrapAmount, wrapAmountUnscaled, wrapPrice, wrapPriceUnscaled, zero };
|
|
38890
|
+
//# sourceMappingURL=index-D6LBNb6K.d.ts.map
|