timelock-sdk 0.0.9 → 0.0.11
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 +94 -82
- package/dist/client.d.ts +90 -78
- package/dist/client.js +23 -3
- package/dist/client.js.map +1 -1
- package/dist/{index-sG69Fv-T.d.ts → index-CnVjbZPl.d.ts} +124 -121
- package/dist/{index-DDAsERk2.d.cts → index-tyVRQhLR.d.cts} +17 -14
- 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,9 @@ 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']>> & {
|
|
28689
|
+
address: string;
|
|
28690
|
+
};
|
|
28688
28691
|
declare const getTimelockLens: (client: Client | PublicClient) => {
|
|
28689
28692
|
read: {
|
|
28690
28693
|
batchGetRefTick: (args: readonly [`0x${string}`, readonly number[]], options?: viem0.Prettify<viem0.UnionOmit<viem0.ReadContractParameters<readonly [{
|
|
@@ -38631,18 +38634,6 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
|
|
|
38631
38634
|
declare const timelockLenses: Record<number, Address>;
|
|
38632
38635
|
declare const uniswapMathLenses: Record<number, Address>;
|
|
38633
38636
|
//#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
38637
|
//#region src/lib/numberUtils.d.ts
|
|
38647
38638
|
type Amount = {
|
|
38648
38639
|
scaled: bigint;
|
|
@@ -38664,6 +38655,18 @@ declare const formatVagueAmount: (value: number | bigint) => string;
|
|
|
38664
38655
|
declare const formatCondensed: (input: string | number, decimals?: number) => string;
|
|
38665
38656
|
declare const formatUSD: (value: Big | string | number) => string;
|
|
38666
38657
|
//#endregion
|
|
38658
|
+
//#region src/lib/liquidityUtils.d.ts
|
|
38659
|
+
declare const PRICE_PRECISION: bigint;
|
|
38660
|
+
declare const getPriceAtTick: (tick: number) => bigint;
|
|
38661
|
+
declare const getTickAtPrice: (price: bigint) => number;
|
|
38662
|
+
declare const roundTickDown: (tick: number, spacing: number) => number;
|
|
38663
|
+
declare const roundTickUp: (tick: number, spacing: number) => number;
|
|
38664
|
+
declare const token0ToToken1: (amount0: bigint, tick: number) => bigint;
|
|
38665
|
+
declare const token1ToToken0: (amount1: bigint, tick: number) => bigint;
|
|
38666
|
+
declare const liquiditiesToAmount0: (liquidities: bigint[], startTick: number, tickSpacing: number) => bigint;
|
|
38667
|
+
declare const liquiditiesToAmount1: (liquidities: bigint[], startTick: number, tickSpacing: number) => bigint;
|
|
38668
|
+
declare const liquiditiesToAmounts: (liquidities: bigint[], startTick: number, currentTick: number, tickSpacing: number) => bigint[];
|
|
38669
|
+
//#endregion
|
|
38667
38670
|
//#region src/abis/erc20.d.ts
|
|
38668
38671
|
declare const erc20Abi: readonly [{
|
|
38669
38672
|
readonly type: "constructor";
|
|
@@ -38885,5 +38888,5 @@ declare const erc20Abi: readonly [{
|
|
|
38885
38888
|
readonly anonymous: false;
|
|
38886
38889
|
}];
|
|
38887
38890
|
//#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-
|
|
38891
|
+
export { Amount, PRICE_PRECISION, TimelockLens, TimelockMarket, TimelockMarketData, 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 };
|
|
38892
|
+
//# sourceMappingURL=index-tyVRQhLR.d.cts.map
|