timelock-sdk 0.0.192 → 0.0.194
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 +2 -2
- package/dist/abis.d.cts +364 -79
- package/dist/abis.d.ts +364 -79
- package/dist/abis.js +2 -2
- package/dist/{client-i-S2ZmAZ.d.cts → client-COGIhgfu.d.cts} +507 -283
- package/dist/{client-DiPQ92xm.d.ts → client-PzQKkikV.d.ts} +994 -770
- package/dist/client.cjs +20 -11
- 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 +21 -12
- package/dist/client.js.map +1 -1
- package/dist/{factory-DitVXzjQ.cjs → factory-BieDxxUI.cjs} +435 -103
- package/dist/factory-BieDxxUI.cjs.map +1 -0
- package/dist/{factory-y-iVl_er.js → factory-DvHmRBSB.js} +435 -103
- package/dist/factory-DvHmRBSB.js.map +1 -0
- package/dist/{optionUtils-96oUNrzV.js → optionUtils-BdSKsVVS.js} +9 -28
- package/dist/optionUtils-BdSKsVVS.js.map +1 -0
- package/dist/{optionUtils-DsqMIDm1.cjs → optionUtils-DfDohN6H.cjs} +8 -27
- package/dist/optionUtils-DfDohN6H.cjs.map +1 -0
- package/dist/{optionsMarket-B_dYiAnm.d.ts → optionsMarket-BVrCBIJQ.d.cts} +135 -2
- package/dist/{optionsMarket-B0Om62Sk.d.cts → optionsMarket-MkvkHTLL.d.ts} +135 -2
- 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/dist/{statelessStateView-Cp4eOQME.js → statelessStateView-DW9FOpWt.js} +159 -2
- package/dist/statelessStateView-DW9FOpWt.js.map +1 -0
- package/dist/{statelessStateView-Dl3QIl1g.cjs → statelessStateView-WNW62g3Q.cjs} +159 -2
- package/dist/statelessStateView-WNW62g3Q.cjs.map +1 -0
- package/package.json +1 -1
- package/dist/factory-DitVXzjQ.cjs.map +0 -1
- package/dist/factory-y-iVl_er.js.map +0 -1
- package/dist/optionUtils-96oUNrzV.js.map +0 -1
- package/dist/optionUtils-DsqMIDm1.cjs.map +0 -1
- package/dist/statelessStateView-Cp4eOQME.js.map +0 -1
- package/dist/statelessStateView-Dl3QIl1g.cjs.map +0 -1
|
@@ -54,7 +54,11 @@ declare const lensAbi: readonly [{
|
|
|
54
54
|
readonly type: "uint128";
|
|
55
55
|
readonly internalType: "uint128";
|
|
56
56
|
}, {
|
|
57
|
-
readonly name: "
|
|
57
|
+
readonly name: "borrowableLiquidity";
|
|
58
|
+
readonly type: "uint128";
|
|
59
|
+
readonly internalType: "uint128";
|
|
60
|
+
}, {
|
|
61
|
+
readonly name: "withdrawableLiquidity";
|
|
58
62
|
readonly type: "uint128";
|
|
59
63
|
readonly internalType: "uint128";
|
|
60
64
|
}, {
|
|
@@ -972,6 +976,16 @@ declare const optionsMarketAbi: readonly [{
|
|
|
972
976
|
readonly internalType: "address";
|
|
973
977
|
}];
|
|
974
978
|
readonly stateMutability: "nonpayable";
|
|
979
|
+
}, {
|
|
980
|
+
readonly type: "function";
|
|
981
|
+
readonly name: "MAX_OPTION_STEPS";
|
|
982
|
+
readonly inputs: readonly [];
|
|
983
|
+
readonly outputs: readonly [{
|
|
984
|
+
readonly name: "";
|
|
985
|
+
readonly type: "uint24";
|
|
986
|
+
readonly internalType: "uint24";
|
|
987
|
+
}];
|
|
988
|
+
readonly stateMutability: "view";
|
|
975
989
|
}, {
|
|
976
990
|
readonly type: "function";
|
|
977
991
|
readonly name: "calculatePremium";
|
|
@@ -1157,6 +1171,46 @@ declare const optionsMarketAbi: readonly [{
|
|
|
1157
1171
|
readonly internalType: "contract TimelockGuardian";
|
|
1158
1172
|
}];
|
|
1159
1173
|
readonly stateMutability: "view";
|
|
1174
|
+
}, {
|
|
1175
|
+
readonly type: "function";
|
|
1176
|
+
readonly name: "maxDuration";
|
|
1177
|
+
readonly inputs: readonly [];
|
|
1178
|
+
readonly outputs: readonly [{
|
|
1179
|
+
readonly name: "";
|
|
1180
|
+
readonly type: "uint32";
|
|
1181
|
+
readonly internalType: "uint32";
|
|
1182
|
+
}];
|
|
1183
|
+
readonly stateMutability: "view";
|
|
1184
|
+
}, {
|
|
1185
|
+
readonly type: "function";
|
|
1186
|
+
readonly name: "maxPositionSize";
|
|
1187
|
+
readonly inputs: readonly [];
|
|
1188
|
+
readonly outputs: readonly [{
|
|
1189
|
+
readonly name: "";
|
|
1190
|
+
readonly type: "uint256";
|
|
1191
|
+
readonly internalType: "uint256";
|
|
1192
|
+
}];
|
|
1193
|
+
readonly stateMutability: "view";
|
|
1194
|
+
}, {
|
|
1195
|
+
readonly type: "function";
|
|
1196
|
+
readonly name: "minDuration";
|
|
1197
|
+
readonly inputs: readonly [];
|
|
1198
|
+
readonly outputs: readonly [{
|
|
1199
|
+
readonly name: "";
|
|
1200
|
+
readonly type: "uint32";
|
|
1201
|
+
readonly internalType: "uint32";
|
|
1202
|
+
}];
|
|
1203
|
+
readonly stateMutability: "view";
|
|
1204
|
+
}, {
|
|
1205
|
+
readonly type: "function";
|
|
1206
|
+
readonly name: "minPositionSize";
|
|
1207
|
+
readonly inputs: readonly [];
|
|
1208
|
+
readonly outputs: readonly [{
|
|
1209
|
+
readonly name: "";
|
|
1210
|
+
readonly type: "uint256";
|
|
1211
|
+
readonly internalType: "uint256";
|
|
1212
|
+
}];
|
|
1213
|
+
readonly stateMutability: "view";
|
|
1160
1214
|
}, {
|
|
1161
1215
|
readonly type: "function";
|
|
1162
1216
|
readonly name: "mintOption";
|
|
@@ -1488,6 +1542,28 @@ declare const optionsMarketAbi: readonly [{
|
|
|
1488
1542
|
}];
|
|
1489
1543
|
readonly outputs: readonly [];
|
|
1490
1544
|
readonly stateMutability: "nonpayable";
|
|
1545
|
+
}, {
|
|
1546
|
+
readonly type: "function";
|
|
1547
|
+
readonly name: "updatePositionBounds";
|
|
1548
|
+
readonly inputs: readonly [{
|
|
1549
|
+
readonly name: "_minDuration";
|
|
1550
|
+
readonly type: "uint32";
|
|
1551
|
+
readonly internalType: "uint32";
|
|
1552
|
+
}, {
|
|
1553
|
+
readonly name: "_maxDuration";
|
|
1554
|
+
readonly type: "uint32";
|
|
1555
|
+
readonly internalType: "uint32";
|
|
1556
|
+
}, {
|
|
1557
|
+
readonly name: "_minPositionSize";
|
|
1558
|
+
readonly type: "uint256";
|
|
1559
|
+
readonly internalType: "uint256";
|
|
1560
|
+
}, {
|
|
1561
|
+
readonly name: "_maxPositionSize";
|
|
1562
|
+
readonly type: "uint256";
|
|
1563
|
+
readonly internalType: "uint256";
|
|
1564
|
+
}];
|
|
1565
|
+
readonly outputs: readonly [];
|
|
1566
|
+
readonly stateMutability: "nonpayable";
|
|
1491
1567
|
}, {
|
|
1492
1568
|
readonly type: "function";
|
|
1493
1569
|
readonly name: "vault";
|
|
@@ -1717,6 +1793,31 @@ declare const optionsMarketAbi: readonly [{
|
|
|
1717
1793
|
readonly internalType: "uint256";
|
|
1718
1794
|
}];
|
|
1719
1795
|
readonly anonymous: false;
|
|
1796
|
+
}, {
|
|
1797
|
+
readonly type: "event";
|
|
1798
|
+
readonly name: "UpdatePositionBounds";
|
|
1799
|
+
readonly inputs: readonly [{
|
|
1800
|
+
readonly name: "minDuration";
|
|
1801
|
+
readonly type: "uint32";
|
|
1802
|
+
readonly indexed: false;
|
|
1803
|
+
readonly internalType: "uint32";
|
|
1804
|
+
}, {
|
|
1805
|
+
readonly name: "maxDuration";
|
|
1806
|
+
readonly type: "uint32";
|
|
1807
|
+
readonly indexed: false;
|
|
1808
|
+
readonly internalType: "uint32";
|
|
1809
|
+
}, {
|
|
1810
|
+
readonly name: "minPositionSize";
|
|
1811
|
+
readonly type: "uint256";
|
|
1812
|
+
readonly indexed: false;
|
|
1813
|
+
readonly internalType: "uint256";
|
|
1814
|
+
}, {
|
|
1815
|
+
readonly name: "maxPositionSize";
|
|
1816
|
+
readonly type: "uint256";
|
|
1817
|
+
readonly indexed: false;
|
|
1818
|
+
readonly internalType: "uint256";
|
|
1819
|
+
}];
|
|
1820
|
+
readonly anonymous: false;
|
|
1720
1821
|
}, {
|
|
1721
1822
|
readonly type: "event";
|
|
1722
1823
|
readonly name: "WhitelistSwapper";
|
|
@@ -1740,6 +1841,14 @@ declare const optionsMarketAbi: readonly [{
|
|
|
1740
1841
|
readonly type: "address";
|
|
1741
1842
|
readonly internalType: "address";
|
|
1742
1843
|
}];
|
|
1844
|
+
}, {
|
|
1845
|
+
readonly type: "error";
|
|
1846
|
+
readonly name: "DurationTooHigh";
|
|
1847
|
+
readonly inputs: readonly [];
|
|
1848
|
+
}, {
|
|
1849
|
+
readonly type: "error";
|
|
1850
|
+
readonly name: "DurationTooLow";
|
|
1851
|
+
readonly inputs: readonly [];
|
|
1743
1852
|
}, {
|
|
1744
1853
|
readonly type: "error";
|
|
1745
1854
|
readonly name: "FailedCall";
|
|
@@ -1820,10 +1929,22 @@ declare const optionsMarketAbi: readonly [{
|
|
|
1820
1929
|
readonly type: "error";
|
|
1821
1930
|
readonly name: "PoolNotSupported";
|
|
1822
1931
|
readonly inputs: readonly [];
|
|
1932
|
+
}, {
|
|
1933
|
+
readonly type: "error";
|
|
1934
|
+
readonly name: "PositionSizeTooHigh";
|
|
1935
|
+
readonly inputs: readonly [];
|
|
1936
|
+
}, {
|
|
1937
|
+
readonly type: "error";
|
|
1938
|
+
readonly name: "PositionSizeTooLow";
|
|
1939
|
+
readonly inputs: readonly [];
|
|
1823
1940
|
}, {
|
|
1824
1941
|
readonly type: "error";
|
|
1825
1942
|
readonly name: "PremiumTooHigh";
|
|
1826
1943
|
readonly inputs: readonly [];
|
|
1944
|
+
}, {
|
|
1945
|
+
readonly type: "error";
|
|
1946
|
+
readonly name: "PriceTooLow";
|
|
1947
|
+
readonly inputs: readonly [];
|
|
1827
1948
|
}, {
|
|
1828
1949
|
readonly type: "error";
|
|
1829
1950
|
readonly name: "ReentrancyGuardReentrantCall";
|
|
@@ -1852,6 +1973,18 @@ declare const optionsMarketAbi: readonly [{
|
|
|
1852
1973
|
readonly type: "error";
|
|
1853
1974
|
readonly name: "SwapperNotWhitelisted";
|
|
1854
1975
|
readonly inputs: readonly [];
|
|
1976
|
+
}, {
|
|
1977
|
+
readonly type: "error";
|
|
1978
|
+
readonly name: "TooManySteps";
|
|
1979
|
+
readonly inputs: readonly [{
|
|
1980
|
+
readonly name: "steps";
|
|
1981
|
+
readonly type: "uint256";
|
|
1982
|
+
readonly internalType: "uint256";
|
|
1983
|
+
}, {
|
|
1984
|
+
readonly name: "maxSteps";
|
|
1985
|
+
readonly type: "uint256";
|
|
1986
|
+
readonly internalType: "uint256";
|
|
1987
|
+
}];
|
|
1855
1988
|
}, {
|
|
1856
1989
|
readonly type: "error";
|
|
1857
1990
|
readonly name: "TradingPaused";
|
|
@@ -1871,4 +2004,4 @@ declare const optionsMarketAbi: readonly [{
|
|
|
1871
2004
|
}];
|
|
1872
2005
|
//#endregion
|
|
1873
2006
|
export { lensAbi as n, optionsMarketAbi as t };
|
|
1874
|
-
//# sourceMappingURL=optionsMarket-
|
|
2007
|
+
//# sourceMappingURL=optionsMarket-MkvkHTLL.d.ts.map
|
package/dist/package.cjs
CHANGED
package/dist/package.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as PriceResolution, $t as swapRouters, At as scaleAmount, B as getPriceAtTick, Dt as formatCondensed, Et as formatAmount, F as getPayoutAtTick, Ft as wrapAmountUnscaled, G as liquiditiesToAmounts, Gt as TimelockLens, H as getTickAtPrice, I as PRICE_PRECISION, It as wrapPrice, J as token0ToToken1AtTick, Jt as getErc20, K as roundTick, Kt as TimelockMarket, L as getAmountsFromLiquidity, Lt as wrapPriceUnscaled, Mt as unscaleAmount, Nt as unscalePrice, Ot as formatUSD, P as getPayoutAtPrice, Pt as wrapAmount, Q as PriceDataPoint, Qt as stateViews, R as getNearestValidStrikeTick, Rt as zero, Tt as Amount, U as liquiditiesToAmount0, V as getSqrtPriceX96AtPrice, W as liquiditiesToAmount1, X as token1ToToken0AtTick, Xt as getTimelockLens, Y as token1ToToken0, Yt as getStateView, Z as PriceData, Zt as getTimelockMarket, en as swappers, et as getCurrentPrice, jt as scalePrice, kt as formatVagueAmount, nn as timelockLenses, q as token0ToToken1, qt as TimelockMarketData, tn as timelockFactories, tt as getPriceHistory, z as getPriceAtSqrtPriceX96 } from "./client-
|
|
1
|
+
import { $ as PriceResolution, $t as swapRouters, At as scaleAmount, B as getPriceAtTick, Dt as formatCondensed, Et as formatAmount, F as getPayoutAtTick, Ft as wrapAmountUnscaled, G as liquiditiesToAmounts, Gt as TimelockLens, H as getTickAtPrice, I as PRICE_PRECISION, It as wrapPrice, J as token0ToToken1AtTick, Jt as getErc20, K as roundTick, Kt as TimelockMarket, L as getAmountsFromLiquidity, Lt as wrapPriceUnscaled, Mt as unscaleAmount, Nt as unscalePrice, Ot as formatUSD, P as getPayoutAtPrice, Pt as wrapAmount, Q as PriceDataPoint, Qt as stateViews, R as getNearestValidStrikeTick, Rt as zero, Tt as Amount, U as liquiditiesToAmount0, V as getSqrtPriceX96AtPrice, W as liquiditiesToAmount1, X as token1ToToken0AtTick, Xt as getTimelockLens, Y as token1ToToken0, Yt as getStateView, Z as PriceData, Zt as getTimelockMarket, en as swappers, et as getCurrentPrice, jt as scalePrice, kt as formatVagueAmount, nn as timelockLenses, q as token0ToToken1, qt as TimelockMarketData, tn as timelockFactories, tt as getPriceHistory, z as getPriceAtSqrtPriceX96 } from "./client-COGIhgfu.cjs";
|
|
2
2
|
export { Amount, PRICE_PRECISION, PriceData, PriceDataPoint, PriceResolution, TimelockLens, TimelockMarket, TimelockMarketData, formatAmount, formatCondensed, formatUSD, formatVagueAmount, getAmountsFromLiquidity, getCurrentPrice, getErc20, getNearestValidStrikeTick, getPayoutAtPrice, getPayoutAtTick, getPriceAtSqrtPriceX96, getPriceAtTick, getPriceHistory, getSqrtPriceX96AtPrice, getStateView, getTickAtPrice, getTimelockLens, getTimelockMarket, liquiditiesToAmount0, liquiditiesToAmount1, liquiditiesToAmounts, roundTick, scaleAmount, scalePrice, stateViews, swapRouters, swappers, timelockFactories, timelockLenses, token0ToToken1, token0ToToken1AtTick, token1ToToken0, token1ToToken0AtTick, unscaleAmount, unscalePrice, wrapAmount, wrapAmountUnscaled, wrapPrice, wrapPriceUnscaled, zero };
|
package/dist/package.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as PriceResolution, $t as swapRouters, At as scaleAmount, B as getPriceAtTick, Dt as formatCondensed, Et as formatAmount, F as getPayoutAtTick, Ft as wrapAmountUnscaled, G as liquiditiesToAmounts, Gt as TimelockLens, H as getTickAtPrice, I as PRICE_PRECISION, It as wrapPrice, J as token0ToToken1AtTick, Jt as getErc20, K as roundTick, Kt as TimelockMarket, L as getAmountsFromLiquidity, Lt as wrapPriceUnscaled, Mt as unscaleAmount, Nt as unscalePrice, Ot as formatUSD, P as getPayoutAtPrice, Pt as wrapAmount, Q as PriceDataPoint, Qt as stateViews, R as getNearestValidStrikeTick, Rt as zero, Tt as Amount, U as liquiditiesToAmount0, V as getSqrtPriceX96AtPrice, W as liquiditiesToAmount1, X as token1ToToken0AtTick, Xt as getTimelockLens, Y as token1ToToken0, Yt as getStateView, Z as PriceData, Zt as getTimelockMarket, en as swappers, et as getCurrentPrice, jt as scalePrice, kt as formatVagueAmount, nn as timelockLenses, q as token0ToToken1, qt as TimelockMarketData, tn as timelockFactories, tt as getPriceHistory, z as getPriceAtSqrtPriceX96 } from "./client-
|
|
1
|
+
import { $ as PriceResolution, $t as swapRouters, At as scaleAmount, B as getPriceAtTick, Dt as formatCondensed, Et as formatAmount, F as getPayoutAtTick, Ft as wrapAmountUnscaled, G as liquiditiesToAmounts, Gt as TimelockLens, H as getTickAtPrice, I as PRICE_PRECISION, It as wrapPrice, J as token0ToToken1AtTick, Jt as getErc20, K as roundTick, Kt as TimelockMarket, L as getAmountsFromLiquidity, Lt as wrapPriceUnscaled, Mt as unscaleAmount, Nt as unscalePrice, Ot as formatUSD, P as getPayoutAtPrice, Pt as wrapAmount, Q as PriceDataPoint, Qt as stateViews, R as getNearestValidStrikeTick, Rt as zero, Tt as Amount, U as liquiditiesToAmount0, V as getSqrtPriceX96AtPrice, W as liquiditiesToAmount1, X as token1ToToken0AtTick, Xt as getTimelockLens, Y as token1ToToken0, Yt as getStateView, Z as PriceData, Zt as getTimelockMarket, en as swappers, et as getCurrentPrice, jt as scalePrice, kt as formatVagueAmount, nn as timelockLenses, q as token0ToToken1, qt as TimelockMarketData, tn as timelockFactories, tt as getPriceHistory, z as getPriceAtSqrtPriceX96 } from "./client-PzQKkikV.js";
|
|
2
2
|
export { Amount, PRICE_PRECISION, PriceData, PriceDataPoint, PriceResolution, TimelockLens, TimelockMarket, TimelockMarketData, formatAmount, formatCondensed, formatUSD, formatVagueAmount, getAmountsFromLiquidity, getCurrentPrice, getErc20, getNearestValidStrikeTick, getPayoutAtPrice, getPayoutAtTick, getPriceAtSqrtPriceX96, getPriceAtTick, getPriceHistory, getSqrtPriceX96AtPrice, getStateView, getTickAtPrice, getTimelockLens, getTimelockMarket, liquiditiesToAmount0, liquiditiesToAmount1, liquiditiesToAmounts, roundTick, scaleAmount, scalePrice, stateViews, swapRouters, swappers, timelockFactories, timelockLenses, token0ToToken1, token0ToToken1AtTick, token1ToToken0, token1ToToken0AtTick, unscaleAmount, unscalePrice, wrapAmount, wrapAmountUnscaled, wrapPrice, wrapPriceUnscaled, zero };
|
package/dist/package.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as token1ToToken0AtTick, B as timelockFactories, C as liquiditiesToAmount0, D as token0ToToken1, E as roundTick, F as getTimelockLens, I as getTimelockMarket, L as stateViews, M as getPriceHistory, N as getErc20, O as token0ToToken1AtTick, P as getStateView, R as swapRouters, S as getTickAtPrice, T as liquiditiesToAmounts, V as timelockLenses, _ as getAmountsFromLiquidity, a as formatUSD, b as getPriceAtTick, c as scalePrice, d as wrapAmount, f as wrapAmountUnscaled, g as PRICE_PRECISION, h as zero, i as formatCondensed, j as getCurrentPrice, k as token1ToToken0, l as unscaleAmount, m as wrapPriceUnscaled, n as getPayoutAtTick, o as formatVagueAmount, p as wrapPrice, r as formatAmount, s as scaleAmount, t as getPayoutAtPrice, u as unscalePrice, v as getNearestValidStrikeTick, w as liquiditiesToAmount1, x as getSqrtPriceX96AtPrice, y as getPriceAtSqrtPriceX96, z as swappers } from "./optionUtils-
|
|
1
|
+
import { A as token1ToToken0AtTick, B as timelockFactories, C as liquiditiesToAmount0, D as token0ToToken1, E as roundTick, F as getTimelockLens, I as getTimelockMarket, L as stateViews, M as getPriceHistory, N as getErc20, O as token0ToToken1AtTick, P as getStateView, R as swapRouters, S as getTickAtPrice, T as liquiditiesToAmounts, V as timelockLenses, _ as getAmountsFromLiquidity, a as formatUSD, b as getPriceAtTick, c as scalePrice, d as wrapAmount, f as wrapAmountUnscaled, g as PRICE_PRECISION, h as zero, i as formatCondensed, j as getCurrentPrice, k as token1ToToken0, l as unscaleAmount, m as wrapPriceUnscaled, n as getPayoutAtTick, o as formatVagueAmount, p as wrapPrice, r as formatAmount, s as scaleAmount, t as getPayoutAtPrice, u as unscalePrice, v as getNearestValidStrikeTick, w as liquiditiesToAmount1, x as getSqrtPriceX96AtPrice, y as getPriceAtSqrtPriceX96, z as swappers } from "./optionUtils-BdSKsVVS.js";
|
|
2
2
|
|
|
3
3
|
export { PRICE_PRECISION, formatAmount, formatCondensed, formatUSD, formatVagueAmount, getAmountsFromLiquidity, getCurrentPrice, getErc20, getNearestValidStrikeTick, getPayoutAtPrice, getPayoutAtTick, getPriceAtSqrtPriceX96, getPriceAtTick, getPriceHistory, getSqrtPriceX96AtPrice, getStateView, getTickAtPrice, getTimelockLens, getTimelockMarket, liquiditiesToAmount0, liquiditiesToAmount1, liquiditiesToAmounts, roundTick, scaleAmount, scalePrice, stateViews, swapRouters, swappers, timelockFactories, timelockLenses, token0ToToken1, token0ToToken1AtTick, token1ToToken0, token1ToToken0AtTick, unscaleAmount, unscalePrice, wrapAmount, wrapAmountUnscaled, wrapPrice, wrapPriceUnscaled, zero };
|
|
@@ -262,7 +262,12 @@ const lensAbi = [
|
|
|
262
262
|
internalType: "uint128"
|
|
263
263
|
},
|
|
264
264
|
{
|
|
265
|
-
name: "
|
|
265
|
+
name: "borrowableLiquidity",
|
|
266
|
+
type: "uint128",
|
|
267
|
+
internalType: "uint128"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
name: "withdrawableLiquidity",
|
|
266
271
|
type: "uint128",
|
|
267
272
|
internalType: "uint128"
|
|
268
273
|
},
|
|
@@ -1366,6 +1371,17 @@ const optionsMarketAbi = [
|
|
|
1366
1371
|
],
|
|
1367
1372
|
stateMutability: "nonpayable"
|
|
1368
1373
|
},
|
|
1374
|
+
{
|
|
1375
|
+
type: "function",
|
|
1376
|
+
name: "MAX_OPTION_STEPS",
|
|
1377
|
+
inputs: [],
|
|
1378
|
+
outputs: [{
|
|
1379
|
+
name: "",
|
|
1380
|
+
type: "uint24",
|
|
1381
|
+
internalType: "uint24"
|
|
1382
|
+
}],
|
|
1383
|
+
stateMutability: "view"
|
|
1384
|
+
},
|
|
1369
1385
|
{
|
|
1370
1386
|
type: "function",
|
|
1371
1387
|
name: "calculatePremium",
|
|
@@ -1589,6 +1605,50 @@ const optionsMarketAbi = [
|
|
|
1589
1605
|
}],
|
|
1590
1606
|
stateMutability: "view"
|
|
1591
1607
|
},
|
|
1608
|
+
{
|
|
1609
|
+
type: "function",
|
|
1610
|
+
name: "maxDuration",
|
|
1611
|
+
inputs: [],
|
|
1612
|
+
outputs: [{
|
|
1613
|
+
name: "",
|
|
1614
|
+
type: "uint32",
|
|
1615
|
+
internalType: "uint32"
|
|
1616
|
+
}],
|
|
1617
|
+
stateMutability: "view"
|
|
1618
|
+
},
|
|
1619
|
+
{
|
|
1620
|
+
type: "function",
|
|
1621
|
+
name: "maxPositionSize",
|
|
1622
|
+
inputs: [],
|
|
1623
|
+
outputs: [{
|
|
1624
|
+
name: "",
|
|
1625
|
+
type: "uint256",
|
|
1626
|
+
internalType: "uint256"
|
|
1627
|
+
}],
|
|
1628
|
+
stateMutability: "view"
|
|
1629
|
+
},
|
|
1630
|
+
{
|
|
1631
|
+
type: "function",
|
|
1632
|
+
name: "minDuration",
|
|
1633
|
+
inputs: [],
|
|
1634
|
+
outputs: [{
|
|
1635
|
+
name: "",
|
|
1636
|
+
type: "uint32",
|
|
1637
|
+
internalType: "uint32"
|
|
1638
|
+
}],
|
|
1639
|
+
stateMutability: "view"
|
|
1640
|
+
},
|
|
1641
|
+
{
|
|
1642
|
+
type: "function",
|
|
1643
|
+
name: "minPositionSize",
|
|
1644
|
+
inputs: [],
|
|
1645
|
+
outputs: [{
|
|
1646
|
+
name: "",
|
|
1647
|
+
type: "uint256",
|
|
1648
|
+
internalType: "uint256"
|
|
1649
|
+
}],
|
|
1650
|
+
stateMutability: "view"
|
|
1651
|
+
},
|
|
1592
1652
|
{
|
|
1593
1653
|
type: "function",
|
|
1594
1654
|
name: "mintOption",
|
|
@@ -1974,6 +2034,34 @@ const optionsMarketAbi = [
|
|
|
1974
2034
|
outputs: [],
|
|
1975
2035
|
stateMutability: "nonpayable"
|
|
1976
2036
|
},
|
|
2037
|
+
{
|
|
2038
|
+
type: "function",
|
|
2039
|
+
name: "updatePositionBounds",
|
|
2040
|
+
inputs: [
|
|
2041
|
+
{
|
|
2042
|
+
name: "_minDuration",
|
|
2043
|
+
type: "uint32",
|
|
2044
|
+
internalType: "uint32"
|
|
2045
|
+
},
|
|
2046
|
+
{
|
|
2047
|
+
name: "_maxDuration",
|
|
2048
|
+
type: "uint32",
|
|
2049
|
+
internalType: "uint32"
|
|
2050
|
+
},
|
|
2051
|
+
{
|
|
2052
|
+
name: "_minPositionSize",
|
|
2053
|
+
type: "uint256",
|
|
2054
|
+
internalType: "uint256"
|
|
2055
|
+
},
|
|
2056
|
+
{
|
|
2057
|
+
name: "_maxPositionSize",
|
|
2058
|
+
type: "uint256",
|
|
2059
|
+
internalType: "uint256"
|
|
2060
|
+
}
|
|
2061
|
+
],
|
|
2062
|
+
outputs: [],
|
|
2063
|
+
stateMutability: "nonpayable"
|
|
2064
|
+
},
|
|
1977
2065
|
{
|
|
1978
2066
|
type: "function",
|
|
1979
2067
|
name: "vault",
|
|
@@ -2242,6 +2330,37 @@ const optionsMarketAbi = [
|
|
|
2242
2330
|
],
|
|
2243
2331
|
anonymous: false
|
|
2244
2332
|
},
|
|
2333
|
+
{
|
|
2334
|
+
type: "event",
|
|
2335
|
+
name: "UpdatePositionBounds",
|
|
2336
|
+
inputs: [
|
|
2337
|
+
{
|
|
2338
|
+
name: "minDuration",
|
|
2339
|
+
type: "uint32",
|
|
2340
|
+
indexed: false,
|
|
2341
|
+
internalType: "uint32"
|
|
2342
|
+
},
|
|
2343
|
+
{
|
|
2344
|
+
name: "maxDuration",
|
|
2345
|
+
type: "uint32",
|
|
2346
|
+
indexed: false,
|
|
2347
|
+
internalType: "uint32"
|
|
2348
|
+
},
|
|
2349
|
+
{
|
|
2350
|
+
name: "minPositionSize",
|
|
2351
|
+
type: "uint256",
|
|
2352
|
+
indexed: false,
|
|
2353
|
+
internalType: "uint256"
|
|
2354
|
+
},
|
|
2355
|
+
{
|
|
2356
|
+
name: "maxPositionSize",
|
|
2357
|
+
type: "uint256",
|
|
2358
|
+
indexed: false,
|
|
2359
|
+
internalType: "uint256"
|
|
2360
|
+
}
|
|
2361
|
+
],
|
|
2362
|
+
anonymous: false
|
|
2363
|
+
},
|
|
2245
2364
|
{
|
|
2246
2365
|
type: "event",
|
|
2247
2366
|
name: "WhitelistSwapper",
|
|
@@ -2267,6 +2386,16 @@ const optionsMarketAbi = [
|
|
|
2267
2386
|
internalType: "address"
|
|
2268
2387
|
}]
|
|
2269
2388
|
},
|
|
2389
|
+
{
|
|
2390
|
+
type: "error",
|
|
2391
|
+
name: "DurationTooHigh",
|
|
2392
|
+
inputs: []
|
|
2393
|
+
},
|
|
2394
|
+
{
|
|
2395
|
+
type: "error",
|
|
2396
|
+
name: "DurationTooLow",
|
|
2397
|
+
inputs: []
|
|
2398
|
+
},
|
|
2270
2399
|
{
|
|
2271
2400
|
type: "error",
|
|
2272
2401
|
name: "FailedCall",
|
|
@@ -2362,11 +2491,26 @@ const optionsMarketAbi = [
|
|
|
2362
2491
|
name: "PoolNotSupported",
|
|
2363
2492
|
inputs: []
|
|
2364
2493
|
},
|
|
2494
|
+
{
|
|
2495
|
+
type: "error",
|
|
2496
|
+
name: "PositionSizeTooHigh",
|
|
2497
|
+
inputs: []
|
|
2498
|
+
},
|
|
2499
|
+
{
|
|
2500
|
+
type: "error",
|
|
2501
|
+
name: "PositionSizeTooLow",
|
|
2502
|
+
inputs: []
|
|
2503
|
+
},
|
|
2365
2504
|
{
|
|
2366
2505
|
type: "error",
|
|
2367
2506
|
name: "PremiumTooHigh",
|
|
2368
2507
|
inputs: []
|
|
2369
2508
|
},
|
|
2509
|
+
{
|
|
2510
|
+
type: "error",
|
|
2511
|
+
name: "PriceTooLow",
|
|
2512
|
+
inputs: []
|
|
2513
|
+
},
|
|
2370
2514
|
{
|
|
2371
2515
|
type: "error",
|
|
2372
2516
|
name: "ReentrancyGuardReentrantCall",
|
|
@@ -2399,6 +2543,19 @@ const optionsMarketAbi = [
|
|
|
2399
2543
|
name: "SwapperNotWhitelisted",
|
|
2400
2544
|
inputs: []
|
|
2401
2545
|
},
|
|
2546
|
+
{
|
|
2547
|
+
type: "error",
|
|
2548
|
+
name: "TooManySteps",
|
|
2549
|
+
inputs: [{
|
|
2550
|
+
name: "steps",
|
|
2551
|
+
type: "uint256",
|
|
2552
|
+
internalType: "uint256"
|
|
2553
|
+
}, {
|
|
2554
|
+
name: "maxSteps",
|
|
2555
|
+
type: "uint256",
|
|
2556
|
+
internalType: "uint256"
|
|
2557
|
+
}]
|
|
2558
|
+
},
|
|
2402
2559
|
{
|
|
2403
2560
|
type: "error",
|
|
2404
2561
|
name: "TradingPaused",
|
|
@@ -3459,4 +3616,4 @@ const statelessStateViewAbi = [
|
|
|
3459
3616
|
|
|
3460
3617
|
//#endregion
|
|
3461
3618
|
export { erc20Abi as i, optionsMarketAbi as n, lensAbi as r, statelessStateViewAbi as t };
|
|
3462
|
-
//# sourceMappingURL=statelessStateView-
|
|
3619
|
+
//# sourceMappingURL=statelessStateView-DW9FOpWt.js.map
|