timelock-sdk 0.0.20 → 0.0.21
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/abis.cjs +1 -1
- package/dist/abis.d.cts +1 -1
- package/dist/abis.d.ts +1 -1
- package/dist/abis.js +1 -1
- package/dist/client.cjs +3 -2
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +115 -58
- package/dist/client.d.ts +115 -58
- package/dist/client.js +3 -2
- package/dist/client.js.map +1 -1
- package/dist/{index-8U83cr4t.d.cts → index-B7b3c8cu.d.cts} +59 -3
- package/dist/{index-BtLyBBZa.d.ts → index-CRhFaRiq.d.ts} +150 -94
- package/dist/{numberUtils-DP-pDRRs.js → numberUtils-CAMznXR5.js} +3 -3
- package/dist/{numberUtils-DP-pDRRs.js.map → numberUtils-CAMznXR5.js.map} +1 -1
- package/dist/{numberUtils-B7BwWYfb.cjs → numberUtils-DOUvJfQD.cjs} +3 -3
- package/dist/{numberUtils-B7BwWYfb.cjs.map → numberUtils-DOUvJfQD.cjs.map} +1 -1
- package/dist/{optionsMarket-BsK9z8z4.cjs → optionsMarket-Br-bjuSA.cjs} +6 -1
- package/dist/optionsMarket-Br-bjuSA.cjs.map +1 -0
- package/dist/{optionsMarket-BsJTpwtl.js → optionsMarket-DyBxHplR.js} +6 -1
- package/dist/optionsMarket-DyBxHplR.js.map +1 -0
- package/dist/package.cjs +2 -2
- package/dist/package.d.cts +2 -2
- package/dist/package.d.ts +2 -2
- package/dist/package.js +2 -2
- package/dist/{uniswapMathLens-CsZDhwII.d.cts → uniswapMathLens-B1MIL2yT.d.cts} +5 -1
- package/dist/{uniswapMathLens-SWLgAikn.d.ts → uniswapMathLens-MrB_VfJB.d.ts} +5 -1
- package/package.json +1 -1
- package/dist/optionsMarket-BsJTpwtl.js.map +0 -1
- package/dist/optionsMarket-BsK9z8z4.cjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { lensAbi, optionsMarketAbi, uniswapMathLensAbi } from "./uniswapMathLens-
|
|
1
|
+
import { lensAbi, optionsMarketAbi, uniswapMathLensAbi } from "./uniswapMathLens-B1MIL2yT.cjs";
|
|
2
2
|
import * as viem131 from "viem";
|
|
3
3
|
import { Address, Client, GetContractReturnType, PublicClient } from "viem";
|
|
4
4
|
import Big from "big.js";
|
|
@@ -23219,6 +23219,10 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
|
|
|
23219
23219
|
readonly name: "tvl1";
|
|
23220
23220
|
readonly type: "uint256";
|
|
23221
23221
|
readonly internalType: "uint256";
|
|
23222
|
+
}, {
|
|
23223
|
+
readonly name: "blocksCount";
|
|
23224
|
+
readonly type: "uint256";
|
|
23225
|
+
readonly internalType: "uint256";
|
|
23222
23226
|
}];
|
|
23223
23227
|
readonly stateMutability: "view";
|
|
23224
23228
|
}], "batchGetRefTick", readonly [`0x${string}`, readonly number[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly number[]>;
|
|
@@ -23921,6 +23925,10 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
|
|
|
23921
23925
|
readonly name: "tvl1";
|
|
23922
23926
|
readonly type: "uint256";
|
|
23923
23927
|
readonly internalType: "uint256";
|
|
23928
|
+
}, {
|
|
23929
|
+
readonly name: "blocksCount";
|
|
23930
|
+
readonly type: "uint256";
|
|
23931
|
+
readonly internalType: "uint256";
|
|
23924
23932
|
}];
|
|
23925
23933
|
readonly stateMutability: "view";
|
|
23926
23934
|
}], "getAllBlocks", readonly [`0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly {
|
|
@@ -24633,6 +24641,10 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
|
|
|
24633
24641
|
readonly name: "tvl1";
|
|
24634
24642
|
readonly type: "uint256";
|
|
24635
24643
|
readonly internalType: "uint256";
|
|
24644
|
+
}, {
|
|
24645
|
+
readonly name: "blocksCount";
|
|
24646
|
+
readonly type: "uint256";
|
|
24647
|
+
readonly internalType: "uint256";
|
|
24636
24648
|
}];
|
|
24637
24649
|
readonly stateMutability: "view";
|
|
24638
24650
|
}], "getExpiredOptions", readonly [`0x${string}`, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [readonly {
|
|
@@ -25354,6 +25366,10 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
|
|
|
25354
25366
|
readonly name: "tvl1";
|
|
25355
25367
|
readonly type: "uint256";
|
|
25356
25368
|
readonly internalType: "uint256";
|
|
25369
|
+
}, {
|
|
25370
|
+
readonly name: "blocksCount";
|
|
25371
|
+
readonly type: "uint256";
|
|
25372
|
+
readonly internalType: "uint256";
|
|
25357
25373
|
}];
|
|
25358
25374
|
readonly stateMutability: "view";
|
|
25359
25375
|
}], "getLiquidityAtTick", readonly [`0x${string}`, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
|
|
@@ -26056,6 +26072,10 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
|
|
|
26056
26072
|
readonly name: "tvl1";
|
|
26057
26073
|
readonly type: "uint256";
|
|
26058
26074
|
readonly internalType: "uint256";
|
|
26075
|
+
}, {
|
|
26076
|
+
readonly name: "blocksCount";
|
|
26077
|
+
readonly type: "uint256";
|
|
26078
|
+
readonly internalType: "uint256";
|
|
26059
26079
|
}];
|
|
26060
26080
|
readonly stateMutability: "view";
|
|
26061
26081
|
}], "getMarketData", readonly [`0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<{
|
|
@@ -26771,6 +26791,10 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
|
|
|
26771
26791
|
readonly name: "tvl1";
|
|
26772
26792
|
readonly type: "uint256";
|
|
26773
26793
|
readonly internalType: "uint256";
|
|
26794
|
+
}, {
|
|
26795
|
+
readonly name: "blocksCount";
|
|
26796
|
+
readonly type: "uint256";
|
|
26797
|
+
readonly internalType: "uint256";
|
|
26774
26798
|
}];
|
|
26775
26799
|
readonly stateMutability: "view";
|
|
26776
26800
|
}], "getMaxPositionSize", readonly [`0x${string}`, number, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
|
|
@@ -27473,6 +27497,10 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
|
|
|
27473
27497
|
readonly name: "tvl1";
|
|
27474
27498
|
readonly type: "uint256";
|
|
27475
27499
|
readonly internalType: "uint256";
|
|
27500
|
+
}, {
|
|
27501
|
+
readonly name: "blocksCount";
|
|
27502
|
+
readonly type: "uint256";
|
|
27503
|
+
readonly internalType: "uint256";
|
|
27476
27504
|
}];
|
|
27477
27505
|
readonly stateMutability: "view";
|
|
27478
27506
|
}], "getMaxPositionSizeAtCurrentTick", readonly [`0x${string}`, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint]>;
|
|
@@ -28175,6 +28203,10 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
|
|
|
28175
28203
|
readonly name: "tvl1";
|
|
28176
28204
|
readonly type: "uint256";
|
|
28177
28205
|
readonly internalType: "uint256";
|
|
28206
|
+
}, {
|
|
28207
|
+
readonly name: "blocksCount";
|
|
28208
|
+
readonly type: "uint256";
|
|
28209
|
+
readonly internalType: "uint256";
|
|
28178
28210
|
}];
|
|
28179
28211
|
readonly stateMutability: "view";
|
|
28180
28212
|
}], "getOptionData", readonly [`0x${string}`, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<{
|
|
@@ -28896,6 +28928,10 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
|
|
|
28896
28928
|
readonly name: "tvl1";
|
|
28897
28929
|
readonly type: "uint256";
|
|
28898
28930
|
readonly internalType: "uint256";
|
|
28931
|
+
}, {
|
|
28932
|
+
readonly name: "blocksCount";
|
|
28933
|
+
readonly type: "uint256";
|
|
28934
|
+
readonly internalType: "uint256";
|
|
28899
28935
|
}];
|
|
28900
28936
|
readonly stateMutability: "view";
|
|
28901
28937
|
}], "getOptionsData", readonly [`0x${string}`, readonly bigint[]]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly {
|
|
@@ -29617,6 +29653,10 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
|
|
|
29617
29653
|
readonly name: "tvl1";
|
|
29618
29654
|
readonly type: "uint256";
|
|
29619
29655
|
readonly internalType: "uint256";
|
|
29656
|
+
}, {
|
|
29657
|
+
readonly name: "blocksCount";
|
|
29658
|
+
readonly type: "uint256";
|
|
29659
|
+
readonly internalType: "uint256";
|
|
29620
29660
|
}];
|
|
29621
29661
|
readonly stateMutability: "view";
|
|
29622
29662
|
}], "getPoolData", readonly [`0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<{
|
|
@@ -30330,6 +30370,10 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
|
|
|
30330
30370
|
readonly name: "tvl1";
|
|
30331
30371
|
readonly type: "uint256";
|
|
30332
30372
|
readonly internalType: "uint256";
|
|
30373
|
+
}, {
|
|
30374
|
+
readonly name: "blocksCount";
|
|
30375
|
+
readonly type: "uint256";
|
|
30376
|
+
readonly internalType: "uint256";
|
|
30333
30377
|
}];
|
|
30334
30378
|
readonly stateMutability: "view";
|
|
30335
30379
|
}], "getRefTick", readonly [`0x${string}`, number]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<number>;
|
|
@@ -31032,6 +31076,10 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
|
|
|
31032
31076
|
readonly name: "tvl1";
|
|
31033
31077
|
readonly type: "uint256";
|
|
31034
31078
|
readonly internalType: "uint256";
|
|
31079
|
+
}, {
|
|
31080
|
+
readonly name: "blocksCount";
|
|
31081
|
+
readonly type: "uint256";
|
|
31082
|
+
readonly internalType: "uint256";
|
|
31035
31083
|
}];
|
|
31036
31084
|
readonly stateMutability: "view";
|
|
31037
31085
|
}], "getUserOptions", readonly [`0x${string}`, `0x${string}`, bigint, bigint]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [readonly {
|
|
@@ -31753,9 +31801,13 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
|
|
|
31753
31801
|
readonly name: "tvl1";
|
|
31754
31802
|
readonly type: "uint256";
|
|
31755
31803
|
readonly internalType: "uint256";
|
|
31804
|
+
}, {
|
|
31805
|
+
readonly name: "blocksCount";
|
|
31806
|
+
readonly type: "uint256";
|
|
31807
|
+
readonly internalType: "uint256";
|
|
31756
31808
|
}];
|
|
31757
31809
|
readonly stateMutability: "view";
|
|
31758
|
-
}], "getVaultTVL", readonly [`0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint, bigint, bigint, bigint, bigint]>;
|
|
31810
|
+
}], "getVaultTVL", readonly [`0x${string}`]>, "address" | "abi" | "args" | "functionName">> | undefined) => Promise<readonly [bigint, bigint, bigint, bigint, bigint, bigint, bigint]>;
|
|
31759
31811
|
};
|
|
31760
31812
|
address: `0x${string}`;
|
|
31761
31813
|
abi: readonly [{
|
|
@@ -32457,6 +32509,10 @@ declare const getTimelockLens: (client: Client | PublicClient) => {
|
|
|
32457
32509
|
readonly name: "tvl1";
|
|
32458
32510
|
readonly type: "uint256";
|
|
32459
32511
|
readonly internalType: "uint256";
|
|
32512
|
+
}, {
|
|
32513
|
+
readonly name: "blocksCount";
|
|
32514
|
+
readonly type: "uint256";
|
|
32515
|
+
readonly internalType: "uint256";
|
|
32460
32516
|
}];
|
|
32461
32517
|
readonly stateMutability: "view";
|
|
32462
32518
|
}];
|
|
@@ -32498,4 +32554,4 @@ declare const liquiditiesToAmount1: (liquidities: bigint[], startTick: number, t
|
|
|
32498
32554
|
declare const liquiditiesToAmounts: (liquidities: bigint[], startTick: number, currentTick: number, tickSpacing: number) => bigint[];
|
|
32499
32555
|
//#endregion
|
|
32500
32556
|
export { Amount, PRICE_PRECISION, TimelockLens, TimelockMarket, TimelockMarketData, UniswapMathLens, formatAmount, formatCondensed, formatUSD, formatVagueAmount, getErc20, getPriceAtTick, getTickAtPrice, getTimelockLens, getTimelockMarket, getUniswapMathLens, liquiditiesToAmount0, liquiditiesToAmount1, liquiditiesToAmounts, roundTickDown, roundTickUp, scaleAmount, scalePrice, timelockLenses, token0ToToken1, token1ToToken0, uniswapMathLenses, unscaleAmount, unscalePrice, wrapAmount, wrapAmountUnscaled, wrapPrice, wrapPriceUnscaled, zero };
|
|
32501
|
-
//# sourceMappingURL=index-
|
|
32557
|
+
//# sourceMappingURL=index-B7b3c8cu.d.cts.map
|