timelock-sdk 0.0.162 → 0.0.163
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 +1059 -308
- package/dist/abis.cjs.map +1 -1
- package/dist/abis.d.cts +2967 -766
- package/dist/abis.d.ts +2967 -766
- package/dist/abis.js +1051 -303
- package/dist/abis.js.map +1 -1
- package/dist/{client-BVPR3obW.d.cts → client-CoeY1yLm.d.cts} +944 -945
- package/dist/{client-BFhMekeP.d.ts → client-DqVrd4kQ.d.ts} +263 -264
- package/dist/client.cjs +42 -891
- 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 +7 -856
- package/dist/client.js.map +1 -1
- package/dist/factory-DitVXzjQ.cjs +1715 -0
- package/dist/factory-DitVXzjQ.cjs.map +1 -0
- package/dist/factory-y-iVl_er.js +1697 -0
- package/dist/factory-y-iVl_er.js.map +1 -0
- package/dist/{optionUtils-R9Y-jxoz.cjs → optionUtils-Cuuw6jXD.cjs} +6 -1048
- package/dist/optionUtils-Cuuw6jXD.cjs.map +1 -0
- package/dist/optionUtils-OyY8qOu0.js +381 -0
- package/dist/optionUtils-OyY8qOu0.js.map +1 -0
- package/dist/{uniswapMathLens-oe-gukfo.d.ts → optionsMarket-2HZ-p_dl.d.ts} +2 -625
- package/dist/{uniswapMathLens-B6gp2UGI.d.cts → optionsMarket-c4hgszY_.d.cts} +2 -625
- package/dist/package.cjs +2 -2
- package/dist/package.d.cts +3 -3
- package/dist/package.d.ts +3 -3
- package/dist/package.js +2 -2
- package/dist/{optionsMarket-CWigPja1.js → statelessStateView-CBkcP7CK.js} +1599 -1322
- package/dist/statelessStateView-CBkcP7CK.js.map +1 -0
- package/dist/{optionsMarket-CtlBxuj0.cjs → statelessStateView-XdTJQxsY.cjs} +1600 -1323
- package/dist/statelessStateView-XdTJQxsY.cjs.map +1 -0
- package/package.json +1 -1
- package/dist/optionUtils-R9Y-jxoz.cjs.map +0 -1
- package/dist/optionUtils-fCYueZl2.js +0 -1417
- package/dist/optionUtils-fCYueZl2.js.map +0 -1
- package/dist/optionsMarket-CWigPja1.js.map +0 -1
- package/dist/optionsMarket-CtlBxuj0.cjs.map +0 -1
- package/dist/singleOwnerVault-BJyEs_D_.js +0 -847
- package/dist/singleOwnerVault-BJyEs_D_.js.map +0 -1
- package/dist/singleOwnerVault-GCpQV7pN.cjs +0 -853
- package/dist/singleOwnerVault-GCpQV7pN.cjs.map +0 -1
|
@@ -1866,628 +1866,5 @@ declare const optionsMarketAbi: readonly [{
|
|
|
1866
1866
|
readonly inputs: readonly [];
|
|
1867
1867
|
}];
|
|
1868
1868
|
//#endregion
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
readonly type: "function";
|
|
1872
|
-
readonly name: "batchGetAmount0ForLiquidity";
|
|
1873
|
-
readonly inputs: readonly [{
|
|
1874
|
-
readonly name: "sqrtRatioAX96";
|
|
1875
|
-
readonly type: "uint160[]";
|
|
1876
|
-
readonly internalType: "uint160[]";
|
|
1877
|
-
}, {
|
|
1878
|
-
readonly name: "sqrtRatioBX96";
|
|
1879
|
-
readonly type: "uint160[]";
|
|
1880
|
-
readonly internalType: "uint160[]";
|
|
1881
|
-
}, {
|
|
1882
|
-
readonly name: "liquidity";
|
|
1883
|
-
readonly type: "uint128[]";
|
|
1884
|
-
readonly internalType: "uint128[]";
|
|
1885
|
-
}];
|
|
1886
|
-
readonly outputs: readonly [{
|
|
1887
|
-
readonly name: "amounts0";
|
|
1888
|
-
readonly type: "uint256[]";
|
|
1889
|
-
readonly internalType: "uint256[]";
|
|
1890
|
-
}];
|
|
1891
|
-
readonly stateMutability: "pure";
|
|
1892
|
-
}, {
|
|
1893
|
-
readonly type: "function";
|
|
1894
|
-
readonly name: "batchGetAmount0ForLiquidityTicks";
|
|
1895
|
-
readonly inputs: readonly [{
|
|
1896
|
-
readonly name: "tickA";
|
|
1897
|
-
readonly type: "int24[]";
|
|
1898
|
-
readonly internalType: "int24[]";
|
|
1899
|
-
}, {
|
|
1900
|
-
readonly name: "tickB";
|
|
1901
|
-
readonly type: "int24[]";
|
|
1902
|
-
readonly internalType: "int24[]";
|
|
1903
|
-
}, {
|
|
1904
|
-
readonly name: "liquidity";
|
|
1905
|
-
readonly type: "uint128[]";
|
|
1906
|
-
readonly internalType: "uint128[]";
|
|
1907
|
-
}];
|
|
1908
|
-
readonly outputs: readonly [{
|
|
1909
|
-
readonly name: "amounts0";
|
|
1910
|
-
readonly type: "uint256[]";
|
|
1911
|
-
readonly internalType: "uint256[]";
|
|
1912
|
-
}];
|
|
1913
|
-
readonly stateMutability: "pure";
|
|
1914
|
-
}, {
|
|
1915
|
-
readonly type: "function";
|
|
1916
|
-
readonly name: "batchGetAmount1ForLiquidity";
|
|
1917
|
-
readonly inputs: readonly [{
|
|
1918
|
-
readonly name: "sqrtRatioAX96";
|
|
1919
|
-
readonly type: "uint160[]";
|
|
1920
|
-
readonly internalType: "uint160[]";
|
|
1921
|
-
}, {
|
|
1922
|
-
readonly name: "sqrtRatioBX96";
|
|
1923
|
-
readonly type: "uint160[]";
|
|
1924
|
-
readonly internalType: "uint160[]";
|
|
1925
|
-
}, {
|
|
1926
|
-
readonly name: "liquidity";
|
|
1927
|
-
readonly type: "uint128[]";
|
|
1928
|
-
readonly internalType: "uint128[]";
|
|
1929
|
-
}];
|
|
1930
|
-
readonly outputs: readonly [{
|
|
1931
|
-
readonly name: "amounts1";
|
|
1932
|
-
readonly type: "uint256[]";
|
|
1933
|
-
readonly internalType: "uint256[]";
|
|
1934
|
-
}];
|
|
1935
|
-
readonly stateMutability: "pure";
|
|
1936
|
-
}, {
|
|
1937
|
-
readonly type: "function";
|
|
1938
|
-
readonly name: "batchGetAmount1ForLiquidityTicks";
|
|
1939
|
-
readonly inputs: readonly [{
|
|
1940
|
-
readonly name: "tickA";
|
|
1941
|
-
readonly type: "int24[]";
|
|
1942
|
-
readonly internalType: "int24[]";
|
|
1943
|
-
}, {
|
|
1944
|
-
readonly name: "tickB";
|
|
1945
|
-
readonly type: "int24[]";
|
|
1946
|
-
readonly internalType: "int24[]";
|
|
1947
|
-
}, {
|
|
1948
|
-
readonly name: "liquidity";
|
|
1949
|
-
readonly type: "uint128[]";
|
|
1950
|
-
readonly internalType: "uint128[]";
|
|
1951
|
-
}];
|
|
1952
|
-
readonly outputs: readonly [{
|
|
1953
|
-
readonly name: "amounts1";
|
|
1954
|
-
readonly type: "uint256[]";
|
|
1955
|
-
readonly internalType: "uint256[]";
|
|
1956
|
-
}];
|
|
1957
|
-
readonly stateMutability: "pure";
|
|
1958
|
-
}, {
|
|
1959
|
-
readonly type: "function";
|
|
1960
|
-
readonly name: "batchGetAmountsForLiquidity";
|
|
1961
|
-
readonly inputs: readonly [{
|
|
1962
|
-
readonly name: "sqrtRatioX96";
|
|
1963
|
-
readonly type: "uint160[]";
|
|
1964
|
-
readonly internalType: "uint160[]";
|
|
1965
|
-
}, {
|
|
1966
|
-
readonly name: "sqrtRatioAX96";
|
|
1967
|
-
readonly type: "uint160[]";
|
|
1968
|
-
readonly internalType: "uint160[]";
|
|
1969
|
-
}, {
|
|
1970
|
-
readonly name: "sqrtRatioBX96";
|
|
1971
|
-
readonly type: "uint160[]";
|
|
1972
|
-
readonly internalType: "uint160[]";
|
|
1973
|
-
}, {
|
|
1974
|
-
readonly name: "liquidity";
|
|
1975
|
-
readonly type: "uint128[]";
|
|
1976
|
-
readonly internalType: "uint128[]";
|
|
1977
|
-
}];
|
|
1978
|
-
readonly outputs: readonly [{
|
|
1979
|
-
readonly name: "amounts0";
|
|
1980
|
-
readonly type: "uint256[]";
|
|
1981
|
-
readonly internalType: "uint256[]";
|
|
1982
|
-
}, {
|
|
1983
|
-
readonly name: "amounts1";
|
|
1984
|
-
readonly type: "uint256[]";
|
|
1985
|
-
readonly internalType: "uint256[]";
|
|
1986
|
-
}];
|
|
1987
|
-
readonly stateMutability: "pure";
|
|
1988
|
-
}, {
|
|
1989
|
-
readonly type: "function";
|
|
1990
|
-
readonly name: "batchGetAmountsForLiquidityTicks";
|
|
1991
|
-
readonly inputs: readonly [{
|
|
1992
|
-
readonly name: "tick";
|
|
1993
|
-
readonly type: "int24[]";
|
|
1994
|
-
readonly internalType: "int24[]";
|
|
1995
|
-
}, {
|
|
1996
|
-
readonly name: "tickA";
|
|
1997
|
-
readonly type: "int24[]";
|
|
1998
|
-
readonly internalType: "int24[]";
|
|
1999
|
-
}, {
|
|
2000
|
-
readonly name: "tickB";
|
|
2001
|
-
readonly type: "int24[]";
|
|
2002
|
-
readonly internalType: "int24[]";
|
|
2003
|
-
}, {
|
|
2004
|
-
readonly name: "liquidity";
|
|
2005
|
-
readonly type: "uint128[]";
|
|
2006
|
-
readonly internalType: "uint128[]";
|
|
2007
|
-
}];
|
|
2008
|
-
readonly outputs: readonly [{
|
|
2009
|
-
readonly name: "amounts0";
|
|
2010
|
-
readonly type: "uint256[]";
|
|
2011
|
-
readonly internalType: "uint256[]";
|
|
2012
|
-
}, {
|
|
2013
|
-
readonly name: "amounts1";
|
|
2014
|
-
readonly type: "uint256[]";
|
|
2015
|
-
readonly internalType: "uint256[]";
|
|
2016
|
-
}];
|
|
2017
|
-
readonly stateMutability: "pure";
|
|
2018
|
-
}, {
|
|
2019
|
-
readonly type: "function";
|
|
2020
|
-
readonly name: "batchGetLiquidityForAmount0";
|
|
2021
|
-
readonly inputs: readonly [{
|
|
2022
|
-
readonly name: "sqrtRatioAX96";
|
|
2023
|
-
readonly type: "uint160[]";
|
|
2024
|
-
readonly internalType: "uint160[]";
|
|
2025
|
-
}, {
|
|
2026
|
-
readonly name: "sqrtRatioBX96";
|
|
2027
|
-
readonly type: "uint160[]";
|
|
2028
|
-
readonly internalType: "uint160[]";
|
|
2029
|
-
}, {
|
|
2030
|
-
readonly name: "amount0";
|
|
2031
|
-
readonly type: "uint256[]";
|
|
2032
|
-
readonly internalType: "uint256[]";
|
|
2033
|
-
}];
|
|
2034
|
-
readonly outputs: readonly [{
|
|
2035
|
-
readonly name: "liquidities";
|
|
2036
|
-
readonly type: "uint128[]";
|
|
2037
|
-
readonly internalType: "uint128[]";
|
|
2038
|
-
}];
|
|
2039
|
-
readonly stateMutability: "pure";
|
|
2040
|
-
}, {
|
|
2041
|
-
readonly type: "function";
|
|
2042
|
-
readonly name: "batchGetLiquidityForAmount0Ticks";
|
|
2043
|
-
readonly inputs: readonly [{
|
|
2044
|
-
readonly name: "tickA";
|
|
2045
|
-
readonly type: "int24[]";
|
|
2046
|
-
readonly internalType: "int24[]";
|
|
2047
|
-
}, {
|
|
2048
|
-
readonly name: "tickB";
|
|
2049
|
-
readonly type: "int24[]";
|
|
2050
|
-
readonly internalType: "int24[]";
|
|
2051
|
-
}, {
|
|
2052
|
-
readonly name: "amount0";
|
|
2053
|
-
readonly type: "uint256[]";
|
|
2054
|
-
readonly internalType: "uint256[]";
|
|
2055
|
-
}];
|
|
2056
|
-
readonly outputs: readonly [{
|
|
2057
|
-
readonly name: "liquidities";
|
|
2058
|
-
readonly type: "uint128[]";
|
|
2059
|
-
readonly internalType: "uint128[]";
|
|
2060
|
-
}];
|
|
2061
|
-
readonly stateMutability: "pure";
|
|
2062
|
-
}, {
|
|
2063
|
-
readonly type: "function";
|
|
2064
|
-
readonly name: "batchGetLiquidityForAmount1";
|
|
2065
|
-
readonly inputs: readonly [{
|
|
2066
|
-
readonly name: "sqrtRatioAX96";
|
|
2067
|
-
readonly type: "uint160[]";
|
|
2068
|
-
readonly internalType: "uint160[]";
|
|
2069
|
-
}, {
|
|
2070
|
-
readonly name: "sqrtRatioBX96";
|
|
2071
|
-
readonly type: "uint160[]";
|
|
2072
|
-
readonly internalType: "uint160[]";
|
|
2073
|
-
}, {
|
|
2074
|
-
readonly name: "amount1";
|
|
2075
|
-
readonly type: "uint256[]";
|
|
2076
|
-
readonly internalType: "uint256[]";
|
|
2077
|
-
}];
|
|
2078
|
-
readonly outputs: readonly [{
|
|
2079
|
-
readonly name: "liquidities";
|
|
2080
|
-
readonly type: "uint128[]";
|
|
2081
|
-
readonly internalType: "uint128[]";
|
|
2082
|
-
}];
|
|
2083
|
-
readonly stateMutability: "pure";
|
|
2084
|
-
}, {
|
|
2085
|
-
readonly type: "function";
|
|
2086
|
-
readonly name: "batchGetLiquidityForAmount1Ticks";
|
|
2087
|
-
readonly inputs: readonly [{
|
|
2088
|
-
readonly name: "tickA";
|
|
2089
|
-
readonly type: "int24[]";
|
|
2090
|
-
readonly internalType: "int24[]";
|
|
2091
|
-
}, {
|
|
2092
|
-
readonly name: "tickB";
|
|
2093
|
-
readonly type: "int24[]";
|
|
2094
|
-
readonly internalType: "int24[]";
|
|
2095
|
-
}, {
|
|
2096
|
-
readonly name: "amount1";
|
|
2097
|
-
readonly type: "uint256[]";
|
|
2098
|
-
readonly internalType: "uint256[]";
|
|
2099
|
-
}];
|
|
2100
|
-
readonly outputs: readonly [{
|
|
2101
|
-
readonly name: "liquidities";
|
|
2102
|
-
readonly type: "uint128[]";
|
|
2103
|
-
readonly internalType: "uint128[]";
|
|
2104
|
-
}];
|
|
2105
|
-
readonly stateMutability: "pure";
|
|
2106
|
-
}, {
|
|
2107
|
-
readonly type: "function";
|
|
2108
|
-
readonly name: "batchGetLiquidityForAmounts";
|
|
2109
|
-
readonly inputs: readonly [{
|
|
2110
|
-
readonly name: "sqrtRatioX96";
|
|
2111
|
-
readonly type: "uint160[]";
|
|
2112
|
-
readonly internalType: "uint160[]";
|
|
2113
|
-
}, {
|
|
2114
|
-
readonly name: "sqrtRatioAX96";
|
|
2115
|
-
readonly type: "uint160[]";
|
|
2116
|
-
readonly internalType: "uint160[]";
|
|
2117
|
-
}, {
|
|
2118
|
-
readonly name: "sqrtRatioBX96";
|
|
2119
|
-
readonly type: "uint160[]";
|
|
2120
|
-
readonly internalType: "uint160[]";
|
|
2121
|
-
}, {
|
|
2122
|
-
readonly name: "amount0";
|
|
2123
|
-
readonly type: "uint256[]";
|
|
2124
|
-
readonly internalType: "uint256[]";
|
|
2125
|
-
}, {
|
|
2126
|
-
readonly name: "amount1";
|
|
2127
|
-
readonly type: "uint256[]";
|
|
2128
|
-
readonly internalType: "uint256[]";
|
|
2129
|
-
}];
|
|
2130
|
-
readonly outputs: readonly [{
|
|
2131
|
-
readonly name: "liquidities";
|
|
2132
|
-
readonly type: "uint128[]";
|
|
2133
|
-
readonly internalType: "uint128[]";
|
|
2134
|
-
}];
|
|
2135
|
-
readonly stateMutability: "pure";
|
|
2136
|
-
}, {
|
|
2137
|
-
readonly type: "function";
|
|
2138
|
-
readonly name: "batchGetLiquidityForAmountsTicks";
|
|
2139
|
-
readonly inputs: readonly [{
|
|
2140
|
-
readonly name: "tick";
|
|
2141
|
-
readonly type: "int24[]";
|
|
2142
|
-
readonly internalType: "int24[]";
|
|
2143
|
-
}, {
|
|
2144
|
-
readonly name: "tickA";
|
|
2145
|
-
readonly type: "int24[]";
|
|
2146
|
-
readonly internalType: "int24[]";
|
|
2147
|
-
}, {
|
|
2148
|
-
readonly name: "tickB";
|
|
2149
|
-
readonly type: "int24[]";
|
|
2150
|
-
readonly internalType: "int24[]";
|
|
2151
|
-
}, {
|
|
2152
|
-
readonly name: "amount0";
|
|
2153
|
-
readonly type: "uint256[]";
|
|
2154
|
-
readonly internalType: "uint256[]";
|
|
2155
|
-
}, {
|
|
2156
|
-
readonly name: "amount1";
|
|
2157
|
-
readonly type: "uint256[]";
|
|
2158
|
-
readonly internalType: "uint256[]";
|
|
2159
|
-
}];
|
|
2160
|
-
readonly outputs: readonly [{
|
|
2161
|
-
readonly name: "liquidities";
|
|
2162
|
-
readonly type: "uint128[]";
|
|
2163
|
-
readonly internalType: "uint128[]";
|
|
2164
|
-
}];
|
|
2165
|
-
readonly stateMutability: "pure";
|
|
2166
|
-
}, {
|
|
2167
|
-
readonly type: "function";
|
|
2168
|
-
readonly name: "batchGetPriceAtTick";
|
|
2169
|
-
readonly inputs: readonly [{
|
|
2170
|
-
readonly name: "ticks";
|
|
2171
|
-
readonly type: "int24[]";
|
|
2172
|
-
readonly internalType: "int24[]";
|
|
2173
|
-
}];
|
|
2174
|
-
readonly outputs: readonly [{
|
|
2175
|
-
readonly name: "prices";
|
|
2176
|
-
readonly type: "uint256[]";
|
|
2177
|
-
readonly internalType: "uint256[]";
|
|
2178
|
-
}];
|
|
2179
|
-
readonly stateMutability: "pure";
|
|
2180
|
-
}, {
|
|
2181
|
-
readonly type: "function";
|
|
2182
|
-
readonly name: "getAmount0ForLiquidity";
|
|
2183
|
-
readonly inputs: readonly [{
|
|
2184
|
-
readonly name: "sqrtRatioAX96";
|
|
2185
|
-
readonly type: "uint160";
|
|
2186
|
-
readonly internalType: "uint160";
|
|
2187
|
-
}, {
|
|
2188
|
-
readonly name: "sqrtRatioBX96";
|
|
2189
|
-
readonly type: "uint160";
|
|
2190
|
-
readonly internalType: "uint160";
|
|
2191
|
-
}, {
|
|
2192
|
-
readonly name: "liquidity";
|
|
2193
|
-
readonly type: "uint128";
|
|
2194
|
-
readonly internalType: "uint128";
|
|
2195
|
-
}];
|
|
2196
|
-
readonly outputs: readonly [{
|
|
2197
|
-
readonly name: "amount0";
|
|
2198
|
-
readonly type: "uint256";
|
|
2199
|
-
readonly internalType: "uint256";
|
|
2200
|
-
}];
|
|
2201
|
-
readonly stateMutability: "pure";
|
|
2202
|
-
}, {
|
|
2203
|
-
readonly type: "function";
|
|
2204
|
-
readonly name: "getAmount0ForLiquidityTicks";
|
|
2205
|
-
readonly inputs: readonly [{
|
|
2206
|
-
readonly name: "tickA";
|
|
2207
|
-
readonly type: "int24";
|
|
2208
|
-
readonly internalType: "int24";
|
|
2209
|
-
}, {
|
|
2210
|
-
readonly name: "tickB";
|
|
2211
|
-
readonly type: "int24";
|
|
2212
|
-
readonly internalType: "int24";
|
|
2213
|
-
}, {
|
|
2214
|
-
readonly name: "liquidity";
|
|
2215
|
-
readonly type: "uint128";
|
|
2216
|
-
readonly internalType: "uint128";
|
|
2217
|
-
}];
|
|
2218
|
-
readonly outputs: readonly [{
|
|
2219
|
-
readonly name: "amount0";
|
|
2220
|
-
readonly type: "uint256";
|
|
2221
|
-
readonly internalType: "uint256";
|
|
2222
|
-
}];
|
|
2223
|
-
readonly stateMutability: "pure";
|
|
2224
|
-
}, {
|
|
2225
|
-
readonly type: "function";
|
|
2226
|
-
readonly name: "getAmount1ForLiquidity";
|
|
2227
|
-
readonly inputs: readonly [{
|
|
2228
|
-
readonly name: "sqrtRatioAX96";
|
|
2229
|
-
readonly type: "uint160";
|
|
2230
|
-
readonly internalType: "uint160";
|
|
2231
|
-
}, {
|
|
2232
|
-
readonly name: "sqrtRatioBX96";
|
|
2233
|
-
readonly type: "uint160";
|
|
2234
|
-
readonly internalType: "uint160";
|
|
2235
|
-
}, {
|
|
2236
|
-
readonly name: "liquidity";
|
|
2237
|
-
readonly type: "uint128";
|
|
2238
|
-
readonly internalType: "uint128";
|
|
2239
|
-
}];
|
|
2240
|
-
readonly outputs: readonly [{
|
|
2241
|
-
readonly name: "amount1";
|
|
2242
|
-
readonly type: "uint256";
|
|
2243
|
-
readonly internalType: "uint256";
|
|
2244
|
-
}];
|
|
2245
|
-
readonly stateMutability: "pure";
|
|
2246
|
-
}, {
|
|
2247
|
-
readonly type: "function";
|
|
2248
|
-
readonly name: "getAmount1ForLiquidityTicks";
|
|
2249
|
-
readonly inputs: readonly [{
|
|
2250
|
-
readonly name: "tickA";
|
|
2251
|
-
readonly type: "int24";
|
|
2252
|
-
readonly internalType: "int24";
|
|
2253
|
-
}, {
|
|
2254
|
-
readonly name: "tickB";
|
|
2255
|
-
readonly type: "int24";
|
|
2256
|
-
readonly internalType: "int24";
|
|
2257
|
-
}, {
|
|
2258
|
-
readonly name: "liquidity";
|
|
2259
|
-
readonly type: "uint128";
|
|
2260
|
-
readonly internalType: "uint128";
|
|
2261
|
-
}];
|
|
2262
|
-
readonly outputs: readonly [{
|
|
2263
|
-
readonly name: "amount1";
|
|
2264
|
-
readonly type: "uint256";
|
|
2265
|
-
readonly internalType: "uint256";
|
|
2266
|
-
}];
|
|
2267
|
-
readonly stateMutability: "pure";
|
|
2268
|
-
}, {
|
|
2269
|
-
readonly type: "function";
|
|
2270
|
-
readonly name: "getAmountsForLiquidity";
|
|
2271
|
-
readonly inputs: readonly [{
|
|
2272
|
-
readonly name: "sqrtRatioX96";
|
|
2273
|
-
readonly type: "uint160";
|
|
2274
|
-
readonly internalType: "uint160";
|
|
2275
|
-
}, {
|
|
2276
|
-
readonly name: "sqrtRatioAX96";
|
|
2277
|
-
readonly type: "uint160";
|
|
2278
|
-
readonly internalType: "uint160";
|
|
2279
|
-
}, {
|
|
2280
|
-
readonly name: "sqrtRatioBX96";
|
|
2281
|
-
readonly type: "uint160";
|
|
2282
|
-
readonly internalType: "uint160";
|
|
2283
|
-
}, {
|
|
2284
|
-
readonly name: "liquidity";
|
|
2285
|
-
readonly type: "uint128";
|
|
2286
|
-
readonly internalType: "uint128";
|
|
2287
|
-
}];
|
|
2288
|
-
readonly outputs: readonly [{
|
|
2289
|
-
readonly name: "amount0";
|
|
2290
|
-
readonly type: "uint256";
|
|
2291
|
-
readonly internalType: "uint256";
|
|
2292
|
-
}, {
|
|
2293
|
-
readonly name: "amount1";
|
|
2294
|
-
readonly type: "uint256";
|
|
2295
|
-
readonly internalType: "uint256";
|
|
2296
|
-
}];
|
|
2297
|
-
readonly stateMutability: "pure";
|
|
2298
|
-
}, {
|
|
2299
|
-
readonly type: "function";
|
|
2300
|
-
readonly name: "getAmountsForLiquidityTicks";
|
|
2301
|
-
readonly inputs: readonly [{
|
|
2302
|
-
readonly name: "tick";
|
|
2303
|
-
readonly type: "int24";
|
|
2304
|
-
readonly internalType: "int24";
|
|
2305
|
-
}, {
|
|
2306
|
-
readonly name: "tickA";
|
|
2307
|
-
readonly type: "int24";
|
|
2308
|
-
readonly internalType: "int24";
|
|
2309
|
-
}, {
|
|
2310
|
-
readonly name: "tickB";
|
|
2311
|
-
readonly type: "int24";
|
|
2312
|
-
readonly internalType: "int24";
|
|
2313
|
-
}, {
|
|
2314
|
-
readonly name: "liquidity";
|
|
2315
|
-
readonly type: "uint128";
|
|
2316
|
-
readonly internalType: "uint128";
|
|
2317
|
-
}];
|
|
2318
|
-
readonly outputs: readonly [{
|
|
2319
|
-
readonly name: "amount0";
|
|
2320
|
-
readonly type: "uint256";
|
|
2321
|
-
readonly internalType: "uint256";
|
|
2322
|
-
}, {
|
|
2323
|
-
readonly name: "amount1";
|
|
2324
|
-
readonly type: "uint256";
|
|
2325
|
-
readonly internalType: "uint256";
|
|
2326
|
-
}];
|
|
2327
|
-
readonly stateMutability: "pure";
|
|
2328
|
-
}, {
|
|
2329
|
-
readonly type: "function";
|
|
2330
|
-
readonly name: "getLiquidityForAmount0";
|
|
2331
|
-
readonly inputs: readonly [{
|
|
2332
|
-
readonly name: "sqrtRatioAX96";
|
|
2333
|
-
readonly type: "uint160";
|
|
2334
|
-
readonly internalType: "uint160";
|
|
2335
|
-
}, {
|
|
2336
|
-
readonly name: "sqrtRatioBX96";
|
|
2337
|
-
readonly type: "uint160";
|
|
2338
|
-
readonly internalType: "uint160";
|
|
2339
|
-
}, {
|
|
2340
|
-
readonly name: "amount0";
|
|
2341
|
-
readonly type: "uint256";
|
|
2342
|
-
readonly internalType: "uint256";
|
|
2343
|
-
}];
|
|
2344
|
-
readonly outputs: readonly [{
|
|
2345
|
-
readonly name: "liquidity";
|
|
2346
|
-
readonly type: "uint128";
|
|
2347
|
-
readonly internalType: "uint128";
|
|
2348
|
-
}];
|
|
2349
|
-
readonly stateMutability: "pure";
|
|
2350
|
-
}, {
|
|
2351
|
-
readonly type: "function";
|
|
2352
|
-
readonly name: "getLiquidityForAmount0Ticks";
|
|
2353
|
-
readonly inputs: readonly [{
|
|
2354
|
-
readonly name: "tickA";
|
|
2355
|
-
readonly type: "int24";
|
|
2356
|
-
readonly internalType: "int24";
|
|
2357
|
-
}, {
|
|
2358
|
-
readonly name: "tickB";
|
|
2359
|
-
readonly type: "int24";
|
|
2360
|
-
readonly internalType: "int24";
|
|
2361
|
-
}, {
|
|
2362
|
-
readonly name: "amount0";
|
|
2363
|
-
readonly type: "uint256";
|
|
2364
|
-
readonly internalType: "uint256";
|
|
2365
|
-
}];
|
|
2366
|
-
readonly outputs: readonly [{
|
|
2367
|
-
readonly name: "liquidity";
|
|
2368
|
-
readonly type: "uint128";
|
|
2369
|
-
readonly internalType: "uint128";
|
|
2370
|
-
}];
|
|
2371
|
-
readonly stateMutability: "pure";
|
|
2372
|
-
}, {
|
|
2373
|
-
readonly type: "function";
|
|
2374
|
-
readonly name: "getLiquidityForAmount1";
|
|
2375
|
-
readonly inputs: readonly [{
|
|
2376
|
-
readonly name: "sqrtRatioAX96";
|
|
2377
|
-
readonly type: "uint160";
|
|
2378
|
-
readonly internalType: "uint160";
|
|
2379
|
-
}, {
|
|
2380
|
-
readonly name: "sqrtRatioBX96";
|
|
2381
|
-
readonly type: "uint160";
|
|
2382
|
-
readonly internalType: "uint160";
|
|
2383
|
-
}, {
|
|
2384
|
-
readonly name: "amount1";
|
|
2385
|
-
readonly type: "uint256";
|
|
2386
|
-
readonly internalType: "uint256";
|
|
2387
|
-
}];
|
|
2388
|
-
readonly outputs: readonly [{
|
|
2389
|
-
readonly name: "liquidity";
|
|
2390
|
-
readonly type: "uint128";
|
|
2391
|
-
readonly internalType: "uint128";
|
|
2392
|
-
}];
|
|
2393
|
-
readonly stateMutability: "pure";
|
|
2394
|
-
}, {
|
|
2395
|
-
readonly type: "function";
|
|
2396
|
-
readonly name: "getLiquidityForAmount1Ticks";
|
|
2397
|
-
readonly inputs: readonly [{
|
|
2398
|
-
readonly name: "tickA";
|
|
2399
|
-
readonly type: "int24";
|
|
2400
|
-
readonly internalType: "int24";
|
|
2401
|
-
}, {
|
|
2402
|
-
readonly name: "tickB";
|
|
2403
|
-
readonly type: "int24";
|
|
2404
|
-
readonly internalType: "int24";
|
|
2405
|
-
}, {
|
|
2406
|
-
readonly name: "amount1";
|
|
2407
|
-
readonly type: "uint256";
|
|
2408
|
-
readonly internalType: "uint256";
|
|
2409
|
-
}];
|
|
2410
|
-
readonly outputs: readonly [{
|
|
2411
|
-
readonly name: "liquidity";
|
|
2412
|
-
readonly type: "uint128";
|
|
2413
|
-
readonly internalType: "uint128";
|
|
2414
|
-
}];
|
|
2415
|
-
readonly stateMutability: "pure";
|
|
2416
|
-
}, {
|
|
2417
|
-
readonly type: "function";
|
|
2418
|
-
readonly name: "getLiquidityForAmounts";
|
|
2419
|
-
readonly inputs: readonly [{
|
|
2420
|
-
readonly name: "sqrtRatioX96";
|
|
2421
|
-
readonly type: "uint160";
|
|
2422
|
-
readonly internalType: "uint160";
|
|
2423
|
-
}, {
|
|
2424
|
-
readonly name: "sqrtRatioAX96";
|
|
2425
|
-
readonly type: "uint160";
|
|
2426
|
-
readonly internalType: "uint160";
|
|
2427
|
-
}, {
|
|
2428
|
-
readonly name: "sqrtRatioBX96";
|
|
2429
|
-
readonly type: "uint160";
|
|
2430
|
-
readonly internalType: "uint160";
|
|
2431
|
-
}, {
|
|
2432
|
-
readonly name: "amount0";
|
|
2433
|
-
readonly type: "uint256";
|
|
2434
|
-
readonly internalType: "uint256";
|
|
2435
|
-
}, {
|
|
2436
|
-
readonly name: "amount1";
|
|
2437
|
-
readonly type: "uint256";
|
|
2438
|
-
readonly internalType: "uint256";
|
|
2439
|
-
}];
|
|
2440
|
-
readonly outputs: readonly [{
|
|
2441
|
-
readonly name: "liquidity";
|
|
2442
|
-
readonly type: "uint128";
|
|
2443
|
-
readonly internalType: "uint128";
|
|
2444
|
-
}];
|
|
2445
|
-
readonly stateMutability: "pure";
|
|
2446
|
-
}, {
|
|
2447
|
-
readonly type: "function";
|
|
2448
|
-
readonly name: "getLiquidityForAmountsTicks";
|
|
2449
|
-
readonly inputs: readonly [{
|
|
2450
|
-
readonly name: "tick";
|
|
2451
|
-
readonly type: "int24";
|
|
2452
|
-
readonly internalType: "int24";
|
|
2453
|
-
}, {
|
|
2454
|
-
readonly name: "tickA";
|
|
2455
|
-
readonly type: "int24";
|
|
2456
|
-
readonly internalType: "int24";
|
|
2457
|
-
}, {
|
|
2458
|
-
readonly name: "tickB";
|
|
2459
|
-
readonly type: "int24";
|
|
2460
|
-
readonly internalType: "int24";
|
|
2461
|
-
}, {
|
|
2462
|
-
readonly name: "amount0";
|
|
2463
|
-
readonly type: "uint256";
|
|
2464
|
-
readonly internalType: "uint256";
|
|
2465
|
-
}, {
|
|
2466
|
-
readonly name: "amount1";
|
|
2467
|
-
readonly type: "uint256";
|
|
2468
|
-
readonly internalType: "uint256";
|
|
2469
|
-
}];
|
|
2470
|
-
readonly outputs: readonly [{
|
|
2471
|
-
readonly name: "liquidity";
|
|
2472
|
-
readonly type: "uint128";
|
|
2473
|
-
readonly internalType: "uint128";
|
|
2474
|
-
}];
|
|
2475
|
-
readonly stateMutability: "pure";
|
|
2476
|
-
}, {
|
|
2477
|
-
readonly type: "function";
|
|
2478
|
-
readonly name: "getPriceAtTick";
|
|
2479
|
-
readonly inputs: readonly [{
|
|
2480
|
-
readonly name: "tick";
|
|
2481
|
-
readonly type: "int24";
|
|
2482
|
-
readonly internalType: "int24";
|
|
2483
|
-
}];
|
|
2484
|
-
readonly outputs: readonly [{
|
|
2485
|
-
readonly name: "";
|
|
2486
|
-
readonly type: "uint256";
|
|
2487
|
-
readonly internalType: "uint256";
|
|
2488
|
-
}];
|
|
2489
|
-
readonly stateMutability: "pure";
|
|
2490
|
-
}];
|
|
2491
|
-
//#endregion
|
|
2492
|
-
export { optionsMarketAbi as n, lensAbi as r, uniswapMathLensAbi as t };
|
|
2493
|
-
//# sourceMappingURL=uniswapMathLens-B6gp2UGI.d.cts.map
|
|
1869
|
+
export { lensAbi as n, optionsMarketAbi as t };
|
|
1870
|
+
//# sourceMappingURL=optionsMarket-c4hgszY_.d.cts.map
|
package/dist/package.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_optionUtils = require('./optionUtils-
|
|
2
|
-
require('./
|
|
1
|
+
const require_optionUtils = require('./optionUtils-Cuuw6jXD.cjs');
|
|
2
|
+
require('./statelessStateView-XdTJQxsY.cjs');
|
|
3
3
|
|
|
4
4
|
exports.EMPTY_ARRAY = require_optionUtils.EMPTY_ARRAY;
|
|
5
5
|
exports.PRICE_PRECISION = require_optionUtils.PRICE_PRECISION;
|
package/dist/package.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { $ as PriceResolution, $t as
|
|
3
|
-
export { Amount, EMPTY_ARRAY, PRICE_PRECISION, PriceData, PriceDataPoint, PriceResolution, TimelockLens, TimelockMarket, TimelockMarketData,
|
|
1
|
+
import "./optionsMarket-c4hgszY_.cjs";
|
|
2
|
+
import { $ as PriceResolution, $t as stateViews, At as formatVagueAmount, B as getPriceAtTick, Dt as formatAmount, Et as EMPTY_ARRAY, F as getPayoutAtTick, Ft as wrapAmount, G as liquiditiesToAmounts, H as getTickAtPrice, I as PRICE_PRECISION, It as wrapAmountUnscaled, J as token0ToToken1AtTick, Jt as TimelockMarketData, K as roundTick, Kt as TimelockLens, L as getAmountsFromLiquidity, Lt as wrapPrice, Mt as scalePrice, Nt as unscaleAmount, Ot as formatCondensed, P as getPayoutAtPrice, Pt as unscalePrice, Q as PriceDataPoint, Qt as getTimelockMarket, R as getNearestValidStrikeTick, Rt as wrapPriceUnscaled, Tt as Amount, U as liquiditiesToAmount0, V as getSqrtPriceX96AtPrice, W as liquiditiesToAmount1, X as token1ToToken0AtTick, Xt as getStateView, Y as token1ToToken0, Yt as getErc20, Z as PriceData, Zt as getTimelockLens, en as swapRouters, et as getCurrentPrice, jt as scaleAmount, kt as formatUSD, nn as timelockFactories, q as token0ToToken1, qt as TimelockMarket, rn as timelockLenses, tn as swappers, tt as getPriceHistory, z as getPriceAtSqrtPriceX96, zt as zero } from "./client-CoeY1yLm.cjs";
|
|
3
|
+
export { Amount, EMPTY_ARRAY, 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,3 +1,3 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { $ as PriceResolution, $t as
|
|
3
|
-
export { Amount, EMPTY_ARRAY, PRICE_PRECISION, PriceData, PriceDataPoint, PriceResolution, TimelockLens, TimelockMarket, TimelockMarketData,
|
|
1
|
+
import "./optionsMarket-2HZ-p_dl.js";
|
|
2
|
+
import { $ as PriceResolution, $t as stateViews, At as formatVagueAmount, B as getPriceAtTick, Dt as formatAmount, Et as EMPTY_ARRAY, F as getPayoutAtTick, Ft as wrapAmount, G as liquiditiesToAmounts, H as getTickAtPrice, I as PRICE_PRECISION, It as wrapAmountUnscaled, J as token0ToToken1AtTick, Jt as TimelockMarketData, K as roundTick, Kt as TimelockLens, L as getAmountsFromLiquidity, Lt as wrapPrice, Mt as scalePrice, Nt as unscaleAmount, Ot as formatCondensed, P as getPayoutAtPrice, Pt as unscalePrice, Q as PriceDataPoint, Qt as getTimelockMarket, R as getNearestValidStrikeTick, Rt as wrapPriceUnscaled, Tt as Amount, U as liquiditiesToAmount0, V as getSqrtPriceX96AtPrice, W as liquiditiesToAmount1, X as token1ToToken0AtTick, Xt as getStateView, Y as token1ToToken0, Yt as getErc20, Z as PriceData, Zt as getTimelockLens, en as swapRouters, et as getCurrentPrice, jt as scaleAmount, kt as formatUSD, nn as timelockFactories, q as token0ToToken1, qt as TimelockMarket, rn as timelockLenses, tn as swappers, tt as getPriceHistory, z as getPriceAtSqrtPriceX96, zt as zero } from "./client-DqVrd4kQ.js";
|
|
3
|
+
export { Amount, EMPTY_ARRAY, 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,4 +1,4 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { A as token1ToToken0, B as swappers, C as getTickAtPrice, D as roundTick, E as liquiditiesToAmounts, F as getStateView, H as timelockLenses, I as getTimelockLens, L as getTimelockMarket, M as getCurrentPrice, N as getPriceHistory, O as token0ToToken1, P as getErc20, R as stateViews, S as getSqrtPriceX96AtPrice, T as liquiditiesToAmount1, V as timelockFactories, _ as PRICE_PRECISION, a as formatCondensed, b as getPriceAtSqrtPriceX96, c as scaleAmount, d as unscalePrice, f as wrapAmount, g as zero, h as wrapPriceUnscaled, i as formatAmount, j as token1ToToken0AtTick, k as token0ToToken1AtTick, l as scalePrice, m as wrapPrice, n as getPayoutAtTick, o as formatUSD, p as wrapAmountUnscaled, r as EMPTY_ARRAY, s as formatVagueAmount, t as getPayoutAtPrice, u as unscaleAmount, v as getAmountsFromLiquidity, w as liquiditiesToAmount0, x as getPriceAtTick, y as getNearestValidStrikeTick, z as swapRouters } from "./optionUtils-
|
|
1
|
+
import "./statelessStateView-CBkcP7CK.js";
|
|
2
|
+
import { A as token1ToToken0, B as swappers, C as getTickAtPrice, D as roundTick, E as liquiditiesToAmounts, F as getStateView, H as timelockLenses, I as getTimelockLens, L as getTimelockMarket, M as getCurrentPrice, N as getPriceHistory, O as token0ToToken1, P as getErc20, R as stateViews, S as getSqrtPriceX96AtPrice, T as liquiditiesToAmount1, V as timelockFactories, _ as PRICE_PRECISION, a as formatCondensed, b as getPriceAtSqrtPriceX96, c as scaleAmount, d as unscalePrice, f as wrapAmount, g as zero, h as wrapPriceUnscaled, i as formatAmount, j as token1ToToken0AtTick, k as token0ToToken1AtTick, l as scalePrice, m as wrapPrice, n as getPayoutAtTick, o as formatUSD, p as wrapAmountUnscaled, r as EMPTY_ARRAY, s as formatVagueAmount, t as getPayoutAtPrice, u as unscaleAmount, v as getAmountsFromLiquidity, w as liquiditiesToAmount0, x as getPriceAtTick, y as getNearestValidStrikeTick, z as swapRouters } from "./optionUtils-OyY8qOu0.js";
|
|
3
3
|
|
|
4
4
|
export { EMPTY_ARRAY, 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 };
|