timelock-sdk 0.0.18 → 0.0.20

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.
@@ -1 +1,2378 @@
1
- const e=[{type:`constructor`,inputs:[{name:`name_`,type:`string`,internalType:`string`},{name:`symbol_`,type:`string`,internalType:`string`}],stateMutability:`nonpayable`},{type:`function`,name:`allowance`,inputs:[{name:`owner`,type:`address`,internalType:`address`},{name:`spender`,type:`address`,internalType:`address`}],outputs:[{name:``,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`approve`,inputs:[{name:`spender`,type:`address`,internalType:`address`},{name:`amount`,type:`uint256`,internalType:`uint256`}],outputs:[{name:``,type:`bool`,internalType:`bool`}],stateMutability:`nonpayable`},{type:`function`,name:`balanceOf`,inputs:[{name:`account`,type:`address`,internalType:`address`}],outputs:[{name:``,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`decimals`,inputs:[],outputs:[{name:``,type:`uint8`,internalType:`uint8`}],stateMutability:`view`},{type:`function`,name:`decreaseAllowance`,inputs:[{name:`spender`,type:`address`,internalType:`address`},{name:`subtractedValue`,type:`uint256`,internalType:`uint256`}],outputs:[{name:``,type:`bool`,internalType:`bool`}],stateMutability:`nonpayable`},{type:`function`,name:`increaseAllowance`,inputs:[{name:`spender`,type:`address`,internalType:`address`},{name:`addedValue`,type:`uint256`,internalType:`uint256`}],outputs:[{name:``,type:`bool`,internalType:`bool`}],stateMutability:`nonpayable`},{type:`function`,name:`name`,inputs:[],outputs:[{name:``,type:`string`,internalType:`string`}],stateMutability:`view`},{type:`function`,name:`symbol`,inputs:[],outputs:[{name:``,type:`string`,internalType:`string`}],stateMutability:`view`},{type:`function`,name:`totalSupply`,inputs:[],outputs:[{name:``,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`transfer`,inputs:[{name:`to`,type:`address`,internalType:`address`},{name:`amount`,type:`uint256`,internalType:`uint256`}],outputs:[{name:``,type:`bool`,internalType:`bool`}],stateMutability:`nonpayable`},{type:`function`,name:`transferFrom`,inputs:[{name:`from`,type:`address`,internalType:`address`},{name:`to`,type:`address`,internalType:`address`},{name:`amount`,type:`uint256`,internalType:`uint256`}],outputs:[{name:``,type:`bool`,internalType:`bool`}],stateMutability:`nonpayable`}],t=[{type:`function`,name:`batchGetRefTick`,inputs:[{name:`vault`,type:`address`,internalType:`contract TimelockSingleOwnerVault`},{name:`tickLower`,type:`int24[]`,internalType:`int24[]`}],outputs:[{name:`refTicks`,type:`int24[]`,internalType:`int24[]`}],stateMutability:`view`},{type:`function`,name:`getAllBlocks`,inputs:[{name:`vault`,type:`address`,internalType:`contract TimelockVaultCore`}],outputs:[{name:`blocks`,type:`tuple[]`,internalType:`struct TimelockLens.LiquidityBlockData[]`,components:[{name:`tickLower`,type:`int24`,internalType:`int24`},{name:`tickUpper`,type:`int24`,internalType:`int24`},{name:`prevTickLower`,type:`int24`,internalType:`int24`},{name:`totalLiquidity`,type:`uint128`,internalType:`uint128`},{name:`borrowedLiquidity`,type:`uint128`,internalType:`uint128`},{name:`totalAmount0`,type:`uint256`,internalType:`uint256`},{name:`totalAmount1`,type:`uint256`,internalType:`uint256`},{name:`borrowedAmount0`,type:`uint256`,internalType:`uint256`},{name:`borrowedAmount1`,type:`uint256`,internalType:`uint256`}]}],stateMutability:`view`},{type:`function`,name:`getExpiredOptions`,inputs:[{name:`market`,type:`address`,internalType:`contract TimelockOptionsMarket`},{name:`startId`,type:`uint256`,internalType:`uint256`},{name:`limit`,type:`uint256`,internalType:`uint256`}],outputs:[{name:`expiredOptions`,type:`tuple[]`,internalType:`struct TimelockLens.OptionData[]`,components:[{name:`optionId`,type:`uint256`,internalType:`uint256`},{name:`owner`,type:`address`,internalType:`address`},{name:`optionType`,type:`uint8`,internalType:`uint8`},{name:`leftTick`,type:`int24`,internalType:`int24`},{name:`strikeTick`,type:`int24`,internalType:`int24`},{name:`entryTick`,type:`int24`,internalType:`int24`},{name:`strikePrice`,type:`uint256`,internalType:`uint256`},{name:`entryPrice`,type:`uint256`,internalType:`uint256`},{name:`optionAssetBorrowed`,type:`uint256`,internalType:`uint256`},{name:`payoutAssetBorrowed`,type:`uint256`,internalType:`uint256`},{name:`optionAssetToRepay`,type:`uint256`,internalType:`uint256`},{name:`payoutAssetToRepay`,type:`uint256`,internalType:`uint256`},{name:`positionSize`,type:`uint256`,internalType:`uint256`},{name:`netOptionAssetToRepay`,type:`uint256`,internalType:`uint256`},{name:`premiumPaid`,type:`uint128`,internalType:`uint128`},{name:`expiresAt`,type:`uint64`,internalType:`uint64`},{name:`createdAt`,type:`uint64`,internalType:`uint64`},{name:`liquidities`,type:`uint128[]`,internalType:`uint128[]`}]},{name:`nextStartId`,type:`uint256`,internalType:`uint256`},{name:`hasMore`,type:`bool`,internalType:`bool`}],stateMutability:`view`},{type:`function`,name:`getLiquidityAtTick`,inputs:[{name:`vault`,type:`address`,internalType:`contract TimelockSingleOwnerVault`},{name:`tickLower`,type:`int24`,internalType:`int24`}],outputs:[{name:`totalLiquidity`,type:`uint128`,internalType:`uint128`},{name:`borrowedLiquidity`,type:`uint128`,internalType:`uint128`}],stateMutability:`view`},{type:`function`,name:`getMarketData`,inputs:[{name:`market`,type:`address`,internalType:`contract TimelockOptionsMarket`}],outputs:[{name:`marketData`,type:`tuple`,internalType:`struct TimelockLens.TimelockMarketData`,components:[{name:`optionAssetIsToken0`,type:`bool`,internalType:`bool`},{name:`vault`,type:`address`,internalType:`contract ITimelockVault`},{name:`pool`,type:`address`,internalType:`contract IUniswapV3Pool`},{name:`optionAsset`,type:`address`,internalType:`address`},{name:`payoutAsset`,type:`address`,internalType:`address`},{name:`optionAssetDecimals`,type:`uint8`,internalType:`uint8`},{name:`payoutAssetDecimals`,type:`uint8`,internalType:`uint8`},{name:`optionAssetSymbol`,type:`string`,internalType:`string`},{name:`payoutAssetSymbol`,type:`string`,internalType:`string`},{name:`optionAssetName`,type:`string`,internalType:`string`},{name:`payoutAssetName`,type:`string`,internalType:`string`},{name:`optionsCount`,type:`uint256`,internalType:`uint256`}]}],stateMutability:`view`},{type:`function`,name:`getMaxPositionSize`,inputs:[{name:`market`,type:`address`,internalType:`contract TimelockOptionsMarket`},{name:`strikeTick`,type:`int24`,internalType:`int24`},{name:`maxBorrowableRange`,type:`int24`,internalType:`int24`}],outputs:[{name:`maxCallSize`,type:`uint256`,internalType:`uint256`},{name:`maxPutSize`,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`getMaxPositionSizeAtCurrentTick`,inputs:[{name:`market`,type:`address`,internalType:`contract TimelockOptionsMarket`},{name:`maxBorrowableRange`,type:`int24`,internalType:`int24`}],outputs:[{name:`maxCallSize`,type:`uint256`,internalType:`uint256`},{name:`maxPutSize`,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`getOptionData`,inputs:[{name:`market`,type:`address`,internalType:`contract TimelockOptionsMarket`},{name:`optionId`,type:`uint256`,internalType:`uint256`}],outputs:[{name:``,type:`tuple`,internalType:`struct TimelockLens.OptionData`,components:[{name:`optionId`,type:`uint256`,internalType:`uint256`},{name:`owner`,type:`address`,internalType:`address`},{name:`optionType`,type:`uint8`,internalType:`uint8`},{name:`leftTick`,type:`int24`,internalType:`int24`},{name:`strikeTick`,type:`int24`,internalType:`int24`},{name:`entryTick`,type:`int24`,internalType:`int24`},{name:`strikePrice`,type:`uint256`,internalType:`uint256`},{name:`entryPrice`,type:`uint256`,internalType:`uint256`},{name:`optionAssetBorrowed`,type:`uint256`,internalType:`uint256`},{name:`payoutAssetBorrowed`,type:`uint256`,internalType:`uint256`},{name:`optionAssetToRepay`,type:`uint256`,internalType:`uint256`},{name:`payoutAssetToRepay`,type:`uint256`,internalType:`uint256`},{name:`positionSize`,type:`uint256`,internalType:`uint256`},{name:`netOptionAssetToRepay`,type:`uint256`,internalType:`uint256`},{name:`premiumPaid`,type:`uint128`,internalType:`uint128`},{name:`expiresAt`,type:`uint64`,internalType:`uint64`},{name:`createdAt`,type:`uint64`,internalType:`uint64`},{name:`liquidities`,type:`uint128[]`,internalType:`uint128[]`}]}],stateMutability:`view`},{type:`function`,name:`getOptionsData`,inputs:[{name:`market`,type:`address`,internalType:`contract TimelockOptionsMarket`},{name:`optionIds`,type:`uint256[]`,internalType:`uint256[]`}],outputs:[{name:`optionsData`,type:`tuple[]`,internalType:`struct TimelockLens.OptionData[]`,components:[{name:`optionId`,type:`uint256`,internalType:`uint256`},{name:`owner`,type:`address`,internalType:`address`},{name:`optionType`,type:`uint8`,internalType:`uint8`},{name:`leftTick`,type:`int24`,internalType:`int24`},{name:`strikeTick`,type:`int24`,internalType:`int24`},{name:`entryTick`,type:`int24`,internalType:`int24`},{name:`strikePrice`,type:`uint256`,internalType:`uint256`},{name:`entryPrice`,type:`uint256`,internalType:`uint256`},{name:`optionAssetBorrowed`,type:`uint256`,internalType:`uint256`},{name:`payoutAssetBorrowed`,type:`uint256`,internalType:`uint256`},{name:`optionAssetToRepay`,type:`uint256`,internalType:`uint256`},{name:`payoutAssetToRepay`,type:`uint256`,internalType:`uint256`},{name:`positionSize`,type:`uint256`,internalType:`uint256`},{name:`netOptionAssetToRepay`,type:`uint256`,internalType:`uint256`},{name:`premiumPaid`,type:`uint128`,internalType:`uint128`},{name:`expiresAt`,type:`uint64`,internalType:`uint64`},{name:`createdAt`,type:`uint64`,internalType:`uint64`},{name:`liquidities`,type:`uint128[]`,internalType:`uint128[]`}]}],stateMutability:`view`},{type:`function`,name:`getPoolData`,inputs:[{name:`pool`,type:`address`,internalType:`contract IUniswapV3Pool`}],outputs:[{name:`poolData`,type:`tuple`,internalType:`struct TimelockLens.UniswapPoolData`,components:[{name:`token0`,type:`address`,internalType:`address`},{name:`token1`,type:`address`,internalType:`address`},{name:`token0Decimals`,type:`uint8`,internalType:`uint8`},{name:`token1Decimals`,type:`uint8`,internalType:`uint8`},{name:`token0Symbol`,type:`string`,internalType:`string`},{name:`token1Symbol`,type:`string`,internalType:`string`},{name:`token0Name`,type:`string`,internalType:`string`},{name:`token1Name`,type:`string`,internalType:`string`},{name:`tickSpacing`,type:`int24`,internalType:`int24`},{name:`fee`,type:`uint24`,internalType:`uint24`}]}],stateMutability:`view`},{type:`function`,name:`getRefTick`,inputs:[{name:`vault`,type:`address`,internalType:`contract TimelockSingleOwnerVault`},{name:`tickLower`,type:`int24`,internalType:`int24`}],outputs:[{name:`refTick`,type:`int24`,internalType:`int24`}],stateMutability:`view`},{type:`function`,name:`getUserOptions`,inputs:[{name:`market`,type:`address`,internalType:`contract TimelockOptionsMarket`},{name:`user`,type:`address`,internalType:`address`},{name:`startId`,type:`uint256`,internalType:`uint256`},{name:`limit`,type:`uint256`,internalType:`uint256`}],outputs:[{name:`userOptions`,type:`tuple[]`,internalType:`struct TimelockLens.OptionData[]`,components:[{name:`optionId`,type:`uint256`,internalType:`uint256`},{name:`owner`,type:`address`,internalType:`address`},{name:`optionType`,type:`uint8`,internalType:`uint8`},{name:`leftTick`,type:`int24`,internalType:`int24`},{name:`strikeTick`,type:`int24`,internalType:`int24`},{name:`entryTick`,type:`int24`,internalType:`int24`},{name:`strikePrice`,type:`uint256`,internalType:`uint256`},{name:`entryPrice`,type:`uint256`,internalType:`uint256`},{name:`optionAssetBorrowed`,type:`uint256`,internalType:`uint256`},{name:`payoutAssetBorrowed`,type:`uint256`,internalType:`uint256`},{name:`optionAssetToRepay`,type:`uint256`,internalType:`uint256`},{name:`payoutAssetToRepay`,type:`uint256`,internalType:`uint256`},{name:`positionSize`,type:`uint256`,internalType:`uint256`},{name:`netOptionAssetToRepay`,type:`uint256`,internalType:`uint256`},{name:`premiumPaid`,type:`uint128`,internalType:`uint128`},{name:`expiresAt`,type:`uint64`,internalType:`uint64`},{name:`createdAt`,type:`uint64`,internalType:`uint64`},{name:`liquidities`,type:`uint128[]`,internalType:`uint128[]`}]},{name:`nextStartId`,type:`uint256`,internalType:`uint256`},{name:`hasMore`,type:`bool`,internalType:`bool`}],stateMutability:`view`},{type:`function`,name:`getVaultTVL`,inputs:[{name:`vault`,type:`address`,internalType:`contract TimelockVaultCore`}],outputs:[{name:`totalAmount0`,type:`uint256`,internalType:`uint256`},{name:`totalAmount1`,type:`uint256`,internalType:`uint256`},{name:`borrowedAmount0`,type:`uint256`,internalType:`uint256`},{name:`borrowedAmount1`,type:`uint256`,internalType:`uint256`},{name:`tvl0`,type:`uint256`,internalType:`uint256`},{name:`tvl1`,type:`uint256`,internalType:`uint256`}],stateMutability:`view`}],n=[{type:`function`,name:`batchGetAmount0ForLiquidity`,inputs:[{name:`sqrtRatioAX96`,type:`uint160[]`,internalType:`uint160[]`},{name:`sqrtRatioBX96`,type:`uint160[]`,internalType:`uint160[]`},{name:`liquidity`,type:`uint128[]`,internalType:`uint128[]`}],outputs:[{name:`amounts0`,type:`uint256[]`,internalType:`uint256[]`}],stateMutability:`pure`},{type:`function`,name:`batchGetAmount0ForLiquidityTicks`,inputs:[{name:`tickA`,type:`int24[]`,internalType:`int24[]`},{name:`tickB`,type:`int24[]`,internalType:`int24[]`},{name:`liquidity`,type:`uint128[]`,internalType:`uint128[]`}],outputs:[{name:`amounts0`,type:`uint256[]`,internalType:`uint256[]`}],stateMutability:`pure`},{type:`function`,name:`batchGetAmount1ForLiquidity`,inputs:[{name:`sqrtRatioAX96`,type:`uint160[]`,internalType:`uint160[]`},{name:`sqrtRatioBX96`,type:`uint160[]`,internalType:`uint160[]`},{name:`liquidity`,type:`uint128[]`,internalType:`uint128[]`}],outputs:[{name:`amounts1`,type:`uint256[]`,internalType:`uint256[]`}],stateMutability:`pure`},{type:`function`,name:`batchGetAmount1ForLiquidityTicks`,inputs:[{name:`tickA`,type:`int24[]`,internalType:`int24[]`},{name:`tickB`,type:`int24[]`,internalType:`int24[]`},{name:`liquidity`,type:`uint128[]`,internalType:`uint128[]`}],outputs:[{name:`amounts1`,type:`uint256[]`,internalType:`uint256[]`}],stateMutability:`pure`},{type:`function`,name:`batchGetAmountsForLiquidity`,inputs:[{name:`sqrtRatioX96`,type:`uint160[]`,internalType:`uint160[]`},{name:`sqrtRatioAX96`,type:`uint160[]`,internalType:`uint160[]`},{name:`sqrtRatioBX96`,type:`uint160[]`,internalType:`uint160[]`},{name:`liquidity`,type:`uint128[]`,internalType:`uint128[]`}],outputs:[{name:`amounts0`,type:`uint256[]`,internalType:`uint256[]`},{name:`amounts1`,type:`uint256[]`,internalType:`uint256[]`}],stateMutability:`pure`},{type:`function`,name:`batchGetAmountsForLiquidityTicks`,inputs:[{name:`tick`,type:`int24[]`,internalType:`int24[]`},{name:`tickA`,type:`int24[]`,internalType:`int24[]`},{name:`tickB`,type:`int24[]`,internalType:`int24[]`},{name:`liquidity`,type:`uint128[]`,internalType:`uint128[]`}],outputs:[{name:`amounts0`,type:`uint256[]`,internalType:`uint256[]`},{name:`amounts1`,type:`uint256[]`,internalType:`uint256[]`}],stateMutability:`pure`},{type:`function`,name:`batchGetLiquidityForAmount0`,inputs:[{name:`sqrtRatioAX96`,type:`uint160[]`,internalType:`uint160[]`},{name:`sqrtRatioBX96`,type:`uint160[]`,internalType:`uint160[]`},{name:`amount0`,type:`uint256[]`,internalType:`uint256[]`}],outputs:[{name:`liquidities`,type:`uint128[]`,internalType:`uint128[]`}],stateMutability:`pure`},{type:`function`,name:`batchGetLiquidityForAmount0Ticks`,inputs:[{name:`tickA`,type:`int24[]`,internalType:`int24[]`},{name:`tickB`,type:`int24[]`,internalType:`int24[]`},{name:`amount0`,type:`uint256[]`,internalType:`uint256[]`}],outputs:[{name:`liquidities`,type:`uint128[]`,internalType:`uint128[]`}],stateMutability:`pure`},{type:`function`,name:`batchGetLiquidityForAmount1`,inputs:[{name:`sqrtRatioAX96`,type:`uint160[]`,internalType:`uint160[]`},{name:`sqrtRatioBX96`,type:`uint160[]`,internalType:`uint160[]`},{name:`amount1`,type:`uint256[]`,internalType:`uint256[]`}],outputs:[{name:`liquidities`,type:`uint128[]`,internalType:`uint128[]`}],stateMutability:`pure`},{type:`function`,name:`batchGetLiquidityForAmount1Ticks`,inputs:[{name:`tickA`,type:`int24[]`,internalType:`int24[]`},{name:`tickB`,type:`int24[]`,internalType:`int24[]`},{name:`amount1`,type:`uint256[]`,internalType:`uint256[]`}],outputs:[{name:`liquidities`,type:`uint128[]`,internalType:`uint128[]`}],stateMutability:`pure`},{type:`function`,name:`batchGetLiquidityForAmounts`,inputs:[{name:`sqrtRatioX96`,type:`uint160[]`,internalType:`uint160[]`},{name:`sqrtRatioAX96`,type:`uint160[]`,internalType:`uint160[]`},{name:`sqrtRatioBX96`,type:`uint160[]`,internalType:`uint160[]`},{name:`amount0`,type:`uint256[]`,internalType:`uint256[]`},{name:`amount1`,type:`uint256[]`,internalType:`uint256[]`}],outputs:[{name:`liquidities`,type:`uint128[]`,internalType:`uint128[]`}],stateMutability:`pure`},{type:`function`,name:`batchGetLiquidityForAmountsTicks`,inputs:[{name:`tick`,type:`int24[]`,internalType:`int24[]`},{name:`tickA`,type:`int24[]`,internalType:`int24[]`},{name:`tickB`,type:`int24[]`,internalType:`int24[]`},{name:`amount0`,type:`uint256[]`,internalType:`uint256[]`},{name:`amount1`,type:`uint256[]`,internalType:`uint256[]`}],outputs:[{name:`liquidities`,type:`uint128[]`,internalType:`uint128[]`}],stateMutability:`pure`},{type:`function`,name:`batchGetPriceAtTick`,inputs:[{name:`ticks`,type:`int24[]`,internalType:`int24[]`}],outputs:[{name:`prices`,type:`uint256[]`,internalType:`uint256[]`}],stateMutability:`pure`},{type:`function`,name:`getAmount0ForLiquidity`,inputs:[{name:`sqrtRatioAX96`,type:`uint160`,internalType:`uint160`},{name:`sqrtRatioBX96`,type:`uint160`,internalType:`uint160`},{name:`liquidity`,type:`uint128`,internalType:`uint128`}],outputs:[{name:`amount0`,type:`uint256`,internalType:`uint256`}],stateMutability:`pure`},{type:`function`,name:`getAmount0ForLiquidityTicks`,inputs:[{name:`tickA`,type:`int24`,internalType:`int24`},{name:`tickB`,type:`int24`,internalType:`int24`},{name:`liquidity`,type:`uint128`,internalType:`uint128`}],outputs:[{name:`amount0`,type:`uint256`,internalType:`uint256`}],stateMutability:`pure`},{type:`function`,name:`getAmount1ForLiquidity`,inputs:[{name:`sqrtRatioAX96`,type:`uint160`,internalType:`uint160`},{name:`sqrtRatioBX96`,type:`uint160`,internalType:`uint160`},{name:`liquidity`,type:`uint128`,internalType:`uint128`}],outputs:[{name:`amount1`,type:`uint256`,internalType:`uint256`}],stateMutability:`pure`},{type:`function`,name:`getAmount1ForLiquidityTicks`,inputs:[{name:`tickA`,type:`int24`,internalType:`int24`},{name:`tickB`,type:`int24`,internalType:`int24`},{name:`liquidity`,type:`uint128`,internalType:`uint128`}],outputs:[{name:`amount1`,type:`uint256`,internalType:`uint256`}],stateMutability:`pure`},{type:`function`,name:`getAmountsForLiquidity`,inputs:[{name:`sqrtRatioX96`,type:`uint160`,internalType:`uint160`},{name:`sqrtRatioAX96`,type:`uint160`,internalType:`uint160`},{name:`sqrtRatioBX96`,type:`uint160`,internalType:`uint160`},{name:`liquidity`,type:`uint128`,internalType:`uint128`}],outputs:[{name:`amount0`,type:`uint256`,internalType:`uint256`},{name:`amount1`,type:`uint256`,internalType:`uint256`}],stateMutability:`pure`},{type:`function`,name:`getAmountsForLiquidityTicks`,inputs:[{name:`tick`,type:`int24`,internalType:`int24`},{name:`tickA`,type:`int24`,internalType:`int24`},{name:`tickB`,type:`int24`,internalType:`int24`},{name:`liquidity`,type:`uint128`,internalType:`uint128`}],outputs:[{name:`amount0`,type:`uint256`,internalType:`uint256`},{name:`amount1`,type:`uint256`,internalType:`uint256`}],stateMutability:`pure`},{type:`function`,name:`getLiquidityForAmount0`,inputs:[{name:`sqrtRatioAX96`,type:`uint160`,internalType:`uint160`},{name:`sqrtRatioBX96`,type:`uint160`,internalType:`uint160`},{name:`amount0`,type:`uint256`,internalType:`uint256`}],outputs:[{name:`liquidity`,type:`uint128`,internalType:`uint128`}],stateMutability:`pure`},{type:`function`,name:`getLiquidityForAmount0Ticks`,inputs:[{name:`tickA`,type:`int24`,internalType:`int24`},{name:`tickB`,type:`int24`,internalType:`int24`},{name:`amount0`,type:`uint256`,internalType:`uint256`}],outputs:[{name:`liquidity`,type:`uint128`,internalType:`uint128`}],stateMutability:`pure`},{type:`function`,name:`getLiquidityForAmount1`,inputs:[{name:`sqrtRatioAX96`,type:`uint160`,internalType:`uint160`},{name:`sqrtRatioBX96`,type:`uint160`,internalType:`uint160`},{name:`amount1`,type:`uint256`,internalType:`uint256`}],outputs:[{name:`liquidity`,type:`uint128`,internalType:`uint128`}],stateMutability:`pure`},{type:`function`,name:`getLiquidityForAmount1Ticks`,inputs:[{name:`tickA`,type:`int24`,internalType:`int24`},{name:`tickB`,type:`int24`,internalType:`int24`},{name:`amount1`,type:`uint256`,internalType:`uint256`}],outputs:[{name:`liquidity`,type:`uint128`,internalType:`uint128`}],stateMutability:`pure`},{type:`function`,name:`getLiquidityForAmounts`,inputs:[{name:`sqrtRatioX96`,type:`uint160`,internalType:`uint160`},{name:`sqrtRatioAX96`,type:`uint160`,internalType:`uint160`},{name:`sqrtRatioBX96`,type:`uint160`,internalType:`uint160`},{name:`amount0`,type:`uint256`,internalType:`uint256`},{name:`amount1`,type:`uint256`,internalType:`uint256`}],outputs:[{name:`liquidity`,type:`uint128`,internalType:`uint128`}],stateMutability:`pure`},{type:`function`,name:`getLiquidityForAmountsTicks`,inputs:[{name:`tick`,type:`int24`,internalType:`int24`},{name:`tickA`,type:`int24`,internalType:`int24`},{name:`tickB`,type:`int24`,internalType:`int24`},{name:`amount0`,type:`uint256`,internalType:`uint256`},{name:`amount1`,type:`uint256`,internalType:`uint256`}],outputs:[{name:`liquidity`,type:`uint128`,internalType:`uint128`}],stateMutability:`pure`},{type:`function`,name:`getPriceAtTick`,inputs:[{name:`tick`,type:`int24`,internalType:`int24`}],outputs:[{name:``,type:`uint256`,internalType:`uint256`}],stateMutability:`pure`}],r=[{type:`constructor`,inputs:[{name:`_vault`,type:`address`,internalType:`contract ITimelockVault`},{name:`_optionPricing`,type:`address`,internalType:`contract IOptionPricing`},{name:`_optionAssetIsToken0`,type:`bool`,internalType:`bool`},{name:`_swapRouter`,type:`address`,internalType:`contract ISwapRouter`},{name:`_quoter`,type:`address`,internalType:`contract IQuoter`},{name:`_owner`,type:`address`,internalType:`address`}],stateMutability:`nonpayable`},{type:`function`,name:`BASIS_POINTS`,inputs:[],outputs:[{name:``,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`DUST_THRESHOLD`,inputs:[],outputs:[{name:``,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`MAX_STEPS`,inputs:[],outputs:[{name:``,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`OPTION_FEE_PERCENT`,inputs:[],outputs:[{name:``,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`calculatePremium`,inputs:[{name:`optionType`,type:`uint8`,internalType:`uint8`},{name:`optionAmount`,type:`uint256`,internalType:`uint256`},{name:`strikeTick`,type:`int24`,internalType:`int24`},{name:`duration`,type:`uint64`,internalType:`uint64`}],outputs:[{name:``,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`exerciseOption`,inputs:[{name:`optionId`,type:`uint256`,internalType:`uint256`},{name:`liquidities`,type:`uint128[]`,internalType:`uint128[]`},{name:`minPayout`,type:`uint256`,internalType:`uint256`},{name:`refTick`,type:`int24`,internalType:`int24`}],outputs:[{name:`payout`,type:`uint256`,internalType:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`getOption`,inputs:[{name:`optionId`,type:`uint256`,internalType:`uint256`}],outputs:[{name:``,type:`tuple`,internalType:`struct TimelockOptionsMarket.OptionData`,components:[{name:`owner`,type:`address`,internalType:`address`},{name:`optionType`,type:`uint8`,internalType:`uint8`},{name:`strikeTick`,type:`int24`,internalType:`int24`},{name:`entryTick`,type:`int24`,internalType:`int24`},{name:`expiresAt`,type:`uint64`,internalType:`uint64`},{name:`createdAt`,type:`uint64`,internalType:`uint64`},{name:`premiumPaid`,type:`uint128`,internalType:`uint128`},{name:`liquidities`,type:`uint128[]`,internalType:`uint128[]`}]}],stateMutability:`view`},{type:`function`,name:`liquiditiesToAmounts`,inputs:[{name:`leftTick`,type:`int24`,internalType:`int24`},{name:`liquidities`,type:`uint128[]`,internalType:`uint128[]`},{name:`optionType`,type:`uint8`,internalType:`uint8`}],outputs:[{name:`optionAssetToRepay`,type:`uint256`,internalType:`uint256`},{name:`payoutAssetToRepay`,type:`uint256`,internalType:`uint256`},{name:`optionAssetBorrowed`,type:`uint256`,internalType:`uint256`},{name:`payoutAssetBorrowed`,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`maxDuration`,inputs:[],outputs:[{name:``,type:`uint64`,internalType:`uint64`}],stateMutability:`view`},{type:`function`,name:`maxOptionAmount`,inputs:[],outputs:[{name:``,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`minDuration`,inputs:[],outputs:[{name:``,type:`uint64`,internalType:`uint64`}],stateMutability:`view`},{type:`function`,name:`minOptionAmount`,inputs:[],outputs:[{name:``,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`mintOption`,inputs:[{name:`optionType`,type:`uint8`,internalType:`uint8`},{name:`amount`,type:`uint256`,internalType:`uint256`},{name:`strikeTick`,type:`int24`,internalType:`int24`},{name:`duration`,type:`uint64`,internalType:`uint64`},{name:`maxPremium`,type:`uint256`,internalType:`uint256`},{name:`refTick`,type:`int24`,internalType:`int24`}],outputs:[{name:`optionId`,type:`uint256`,internalType:`uint256`},{name:`finalAmount`,type:`uint256`,internalType:`uint256`},{name:`totalPremium`,type:`uint256`,internalType:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`nextOptionId`,inputs:[],outputs:[{name:``,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`optionAsset`,inputs:[],outputs:[{name:``,type:`address`,internalType:`contract IERC20`}],stateMutability:`view`},{type:`function`,name:`optionAssetIsToken0`,inputs:[],outputs:[{name:``,type:`bool`,internalType:`bool`}],stateMutability:`view`},{type:`function`,name:`optionPricing`,inputs:[],outputs:[{name:``,type:`address`,internalType:`contract IOptionPricing`}],stateMutability:`view`},{type:`function`,name:`owner`,inputs:[],outputs:[{name:``,type:`address`,internalType:`address`}],stateMutability:`view`},{type:`function`,name:`payoutAsset`,inputs:[],outputs:[{name:``,type:`address`,internalType:`contract IERC20`}],stateMutability:`view`},{type:`function`,name:`pool`,inputs:[],outputs:[{name:``,type:`address`,internalType:`contract IUniswapV3Pool`}],stateMutability:`view`},{type:`function`,name:`protocolFees`,inputs:[],outputs:[{name:``,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`quoter`,inputs:[],outputs:[{name:``,type:`address`,internalType:`contract IQuoter`}],stateMutability:`view`},{type:`function`,name:`renounceOwnership`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`swapRouter`,inputs:[],outputs:[{name:``,type:`address`,internalType:`contract ISwapRouter`}],stateMutability:`view`},{type:`function`,name:`tickSpacing`,inputs:[],outputs:[{name:``,type:`int24`,internalType:`int24`}],stateMutability:`view`},{type:`function`,name:`token0`,inputs:[],outputs:[{name:``,type:`address`,internalType:`contract IERC20`}],stateMutability:`view`},{type:`function`,name:`token1`,inputs:[],outputs:[{name:``,type:`address`,internalType:`contract IERC20`}],stateMutability:`view`},{type:`function`,name:`transferOwnership`,inputs:[{name:`newOwner`,type:`address`,internalType:`address`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`updateDurationBounds`,inputs:[{name:`_minDuration`,type:`uint64`,internalType:`uint64`},{name:`_maxDuration`,type:`uint64`,internalType:`uint64`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`updateOptionAmountBounds`,inputs:[{name:`_minOptionAmount`,type:`uint256`,internalType:`uint256`},{name:`_maxOptionAmount`,type:`uint256`,internalType:`uint256`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`vault`,inputs:[],outputs:[{name:``,type:`address`,internalType:`contract ITimelockVault`}],stateMutability:`view`},{type:`function`,name:`withdrawTokens`,inputs:[{name:`tokens`,type:`address[]`,internalType:`contract IERC20[]`}],outputs:[],stateMutability:`nonpayable`}];export{e as erc20Abi,t as lensAbi,r as optionsMarketAbi,n as uniswapMathLensAbi};
1
+ //#region src/abis/erc20.ts
2
+ const erc20Abi = [
3
+ {
4
+ type: "constructor",
5
+ inputs: [{
6
+ name: "name_",
7
+ type: "string",
8
+ internalType: "string"
9
+ }, {
10
+ name: "symbol_",
11
+ type: "string",
12
+ internalType: "string"
13
+ }],
14
+ stateMutability: "nonpayable"
15
+ },
16
+ {
17
+ type: "function",
18
+ name: "allowance",
19
+ inputs: [{
20
+ name: "owner",
21
+ type: "address",
22
+ internalType: "address"
23
+ }, {
24
+ name: "spender",
25
+ type: "address",
26
+ internalType: "address"
27
+ }],
28
+ outputs: [{
29
+ name: "",
30
+ type: "uint256",
31
+ internalType: "uint256"
32
+ }],
33
+ stateMutability: "view"
34
+ },
35
+ {
36
+ type: "function",
37
+ name: "approve",
38
+ inputs: [{
39
+ name: "spender",
40
+ type: "address",
41
+ internalType: "address"
42
+ }, {
43
+ name: "amount",
44
+ type: "uint256",
45
+ internalType: "uint256"
46
+ }],
47
+ outputs: [{
48
+ name: "",
49
+ type: "bool",
50
+ internalType: "bool"
51
+ }],
52
+ stateMutability: "nonpayable"
53
+ },
54
+ {
55
+ type: "function",
56
+ name: "balanceOf",
57
+ inputs: [{
58
+ name: "account",
59
+ type: "address",
60
+ internalType: "address"
61
+ }],
62
+ outputs: [{
63
+ name: "",
64
+ type: "uint256",
65
+ internalType: "uint256"
66
+ }],
67
+ stateMutability: "view"
68
+ },
69
+ {
70
+ type: "function",
71
+ name: "decimals",
72
+ inputs: [],
73
+ outputs: [{
74
+ name: "",
75
+ type: "uint8",
76
+ internalType: "uint8"
77
+ }],
78
+ stateMutability: "view"
79
+ },
80
+ {
81
+ type: "function",
82
+ name: "decreaseAllowance",
83
+ inputs: [{
84
+ name: "spender",
85
+ type: "address",
86
+ internalType: "address"
87
+ }, {
88
+ name: "subtractedValue",
89
+ type: "uint256",
90
+ internalType: "uint256"
91
+ }],
92
+ outputs: [{
93
+ name: "",
94
+ type: "bool",
95
+ internalType: "bool"
96
+ }],
97
+ stateMutability: "nonpayable"
98
+ },
99
+ {
100
+ type: "function",
101
+ name: "increaseAllowance",
102
+ inputs: [{
103
+ name: "spender",
104
+ type: "address",
105
+ internalType: "address"
106
+ }, {
107
+ name: "addedValue",
108
+ type: "uint256",
109
+ internalType: "uint256"
110
+ }],
111
+ outputs: [{
112
+ name: "",
113
+ type: "bool",
114
+ internalType: "bool"
115
+ }],
116
+ stateMutability: "nonpayable"
117
+ },
118
+ {
119
+ type: "function",
120
+ name: "name",
121
+ inputs: [],
122
+ outputs: [{
123
+ name: "",
124
+ type: "string",
125
+ internalType: "string"
126
+ }],
127
+ stateMutability: "view"
128
+ },
129
+ {
130
+ type: "function",
131
+ name: "symbol",
132
+ inputs: [],
133
+ outputs: [{
134
+ name: "",
135
+ type: "string",
136
+ internalType: "string"
137
+ }],
138
+ stateMutability: "view"
139
+ },
140
+ {
141
+ type: "function",
142
+ name: "totalSupply",
143
+ inputs: [],
144
+ outputs: [{
145
+ name: "",
146
+ type: "uint256",
147
+ internalType: "uint256"
148
+ }],
149
+ stateMutability: "view"
150
+ },
151
+ {
152
+ type: "function",
153
+ name: "transfer",
154
+ inputs: [{
155
+ name: "to",
156
+ type: "address",
157
+ internalType: "address"
158
+ }, {
159
+ name: "amount",
160
+ type: "uint256",
161
+ internalType: "uint256"
162
+ }],
163
+ outputs: [{
164
+ name: "",
165
+ type: "bool",
166
+ internalType: "bool"
167
+ }],
168
+ stateMutability: "nonpayable"
169
+ },
170
+ {
171
+ type: "function",
172
+ name: "transferFrom",
173
+ inputs: [
174
+ {
175
+ name: "from",
176
+ type: "address",
177
+ internalType: "address"
178
+ },
179
+ {
180
+ name: "to",
181
+ type: "address",
182
+ internalType: "address"
183
+ },
184
+ {
185
+ name: "amount",
186
+ type: "uint256",
187
+ internalType: "uint256"
188
+ }
189
+ ],
190
+ outputs: [{
191
+ name: "",
192
+ type: "bool",
193
+ internalType: "bool"
194
+ }],
195
+ stateMutability: "nonpayable"
196
+ }
197
+ ];
198
+
199
+ //#endregion
200
+ //#region src/abis/lens.ts
201
+ const lensAbi = [
202
+ {
203
+ type: "function",
204
+ name: "batchGetRefTick",
205
+ inputs: [{
206
+ name: "vault",
207
+ type: "address",
208
+ internalType: "contract TimelockSingleOwnerVault"
209
+ }, {
210
+ name: "tickLower",
211
+ type: "int24[]",
212
+ internalType: "int24[]"
213
+ }],
214
+ outputs: [{
215
+ name: "refTicks",
216
+ type: "int24[]",
217
+ internalType: "int24[]"
218
+ }],
219
+ stateMutability: "view"
220
+ },
221
+ {
222
+ type: "function",
223
+ name: "getAllBlocks",
224
+ inputs: [{
225
+ name: "vault",
226
+ type: "address",
227
+ internalType: "contract TimelockVaultCore"
228
+ }],
229
+ outputs: [{
230
+ name: "blocks",
231
+ type: "tuple[]",
232
+ internalType: "struct TimelockLens.LiquidityBlockData[]",
233
+ components: [
234
+ {
235
+ name: "tickLower",
236
+ type: "int24",
237
+ internalType: "int24"
238
+ },
239
+ {
240
+ name: "tickUpper",
241
+ type: "int24",
242
+ internalType: "int24"
243
+ },
244
+ {
245
+ name: "prevTickLower",
246
+ type: "int24",
247
+ internalType: "int24"
248
+ },
249
+ {
250
+ name: "totalLiquidity",
251
+ type: "uint128",
252
+ internalType: "uint128"
253
+ },
254
+ {
255
+ name: "borrowedLiquidity",
256
+ type: "uint128",
257
+ internalType: "uint128"
258
+ },
259
+ {
260
+ name: "totalAmount0",
261
+ type: "uint256",
262
+ internalType: "uint256"
263
+ },
264
+ {
265
+ name: "totalAmount1",
266
+ type: "uint256",
267
+ internalType: "uint256"
268
+ },
269
+ {
270
+ name: "borrowedAmount0",
271
+ type: "uint256",
272
+ internalType: "uint256"
273
+ },
274
+ {
275
+ name: "borrowedAmount1",
276
+ type: "uint256",
277
+ internalType: "uint256"
278
+ }
279
+ ]
280
+ }],
281
+ stateMutability: "view"
282
+ },
283
+ {
284
+ type: "function",
285
+ name: "getExpiredOptions",
286
+ inputs: [
287
+ {
288
+ name: "market",
289
+ type: "address",
290
+ internalType: "contract TimelockOptionsMarket"
291
+ },
292
+ {
293
+ name: "startId",
294
+ type: "uint256",
295
+ internalType: "uint256"
296
+ },
297
+ {
298
+ name: "limit",
299
+ type: "uint256",
300
+ internalType: "uint256"
301
+ }
302
+ ],
303
+ outputs: [
304
+ {
305
+ name: "expiredOptions",
306
+ type: "tuple[]",
307
+ internalType: "struct TimelockLens.OptionData[]",
308
+ components: [
309
+ {
310
+ name: "optionId",
311
+ type: "uint256",
312
+ internalType: "uint256"
313
+ },
314
+ {
315
+ name: "owner",
316
+ type: "address",
317
+ internalType: "address"
318
+ },
319
+ {
320
+ name: "optionType",
321
+ type: "uint8",
322
+ internalType: "uint8"
323
+ },
324
+ {
325
+ name: "leftTick",
326
+ type: "int24",
327
+ internalType: "int24"
328
+ },
329
+ {
330
+ name: "strikeTick",
331
+ type: "int24",
332
+ internalType: "int24"
333
+ },
334
+ {
335
+ name: "entryTick",
336
+ type: "int24",
337
+ internalType: "int24"
338
+ },
339
+ {
340
+ name: "strikePrice",
341
+ type: "uint256",
342
+ internalType: "uint256"
343
+ },
344
+ {
345
+ name: "entryPrice",
346
+ type: "uint256",
347
+ internalType: "uint256"
348
+ },
349
+ {
350
+ name: "optionAssetBorrowed",
351
+ type: "uint256",
352
+ internalType: "uint256"
353
+ },
354
+ {
355
+ name: "payoutAssetBorrowed",
356
+ type: "uint256",
357
+ internalType: "uint256"
358
+ },
359
+ {
360
+ name: "optionAssetToRepay",
361
+ type: "uint256",
362
+ internalType: "uint256"
363
+ },
364
+ {
365
+ name: "payoutAssetToRepay",
366
+ type: "uint256",
367
+ internalType: "uint256"
368
+ },
369
+ {
370
+ name: "positionSize",
371
+ type: "uint256",
372
+ internalType: "uint256"
373
+ },
374
+ {
375
+ name: "netOptionAssetToRepay",
376
+ type: "uint256",
377
+ internalType: "uint256"
378
+ },
379
+ {
380
+ name: "premiumPaid",
381
+ type: "uint128",
382
+ internalType: "uint128"
383
+ },
384
+ {
385
+ name: "expiresAt",
386
+ type: "uint64",
387
+ internalType: "uint64"
388
+ },
389
+ {
390
+ name: "createdAt",
391
+ type: "uint64",
392
+ internalType: "uint64"
393
+ },
394
+ {
395
+ name: "liquidities",
396
+ type: "uint128[]",
397
+ internalType: "uint128[]"
398
+ }
399
+ ]
400
+ },
401
+ {
402
+ name: "nextStartId",
403
+ type: "uint256",
404
+ internalType: "uint256"
405
+ },
406
+ {
407
+ name: "hasMore",
408
+ type: "bool",
409
+ internalType: "bool"
410
+ }
411
+ ],
412
+ stateMutability: "view"
413
+ },
414
+ {
415
+ type: "function",
416
+ name: "getLiquidityAtTick",
417
+ inputs: [{
418
+ name: "vault",
419
+ type: "address",
420
+ internalType: "contract TimelockSingleOwnerVault"
421
+ }, {
422
+ name: "tickLower",
423
+ type: "int24",
424
+ internalType: "int24"
425
+ }],
426
+ outputs: [{
427
+ name: "totalLiquidity",
428
+ type: "uint128",
429
+ internalType: "uint128"
430
+ }, {
431
+ name: "borrowedLiquidity",
432
+ type: "uint128",
433
+ internalType: "uint128"
434
+ }],
435
+ stateMutability: "view"
436
+ },
437
+ {
438
+ type: "function",
439
+ name: "getMarketData",
440
+ inputs: [{
441
+ name: "market",
442
+ type: "address",
443
+ internalType: "contract TimelockOptionsMarket"
444
+ }],
445
+ outputs: [{
446
+ name: "marketData",
447
+ type: "tuple",
448
+ internalType: "struct TimelockLens.TimelockMarketData",
449
+ components: [
450
+ {
451
+ name: "optionAssetIsToken0",
452
+ type: "bool",
453
+ internalType: "bool"
454
+ },
455
+ {
456
+ name: "vault",
457
+ type: "address",
458
+ internalType: "contract ITimelockVault"
459
+ },
460
+ {
461
+ name: "pool",
462
+ type: "address",
463
+ internalType: "contract IUniswapV3Pool"
464
+ },
465
+ {
466
+ name: "optionAsset",
467
+ type: "address",
468
+ internalType: "address"
469
+ },
470
+ {
471
+ name: "payoutAsset",
472
+ type: "address",
473
+ internalType: "address"
474
+ },
475
+ {
476
+ name: "optionAssetDecimals",
477
+ type: "uint8",
478
+ internalType: "uint8"
479
+ },
480
+ {
481
+ name: "payoutAssetDecimals",
482
+ type: "uint8",
483
+ internalType: "uint8"
484
+ },
485
+ {
486
+ name: "optionAssetSymbol",
487
+ type: "string",
488
+ internalType: "string"
489
+ },
490
+ {
491
+ name: "payoutAssetSymbol",
492
+ type: "string",
493
+ internalType: "string"
494
+ },
495
+ {
496
+ name: "optionAssetName",
497
+ type: "string",
498
+ internalType: "string"
499
+ },
500
+ {
501
+ name: "payoutAssetName",
502
+ type: "string",
503
+ internalType: "string"
504
+ },
505
+ {
506
+ name: "optionsCount",
507
+ type: "uint256",
508
+ internalType: "uint256"
509
+ }
510
+ ]
511
+ }],
512
+ stateMutability: "view"
513
+ },
514
+ {
515
+ type: "function",
516
+ name: "getMaxPositionSize",
517
+ inputs: [
518
+ {
519
+ name: "market",
520
+ type: "address",
521
+ internalType: "contract TimelockOptionsMarket"
522
+ },
523
+ {
524
+ name: "strikeTick",
525
+ type: "int24",
526
+ internalType: "int24"
527
+ },
528
+ {
529
+ name: "maxBorrowableRange",
530
+ type: "int24",
531
+ internalType: "int24"
532
+ }
533
+ ],
534
+ outputs: [{
535
+ name: "maxCallSize",
536
+ type: "uint256",
537
+ internalType: "uint256"
538
+ }, {
539
+ name: "maxPutSize",
540
+ type: "uint256",
541
+ internalType: "uint256"
542
+ }],
543
+ stateMutability: "view"
544
+ },
545
+ {
546
+ type: "function",
547
+ name: "getMaxPositionSizeAtCurrentTick",
548
+ inputs: [{
549
+ name: "market",
550
+ type: "address",
551
+ internalType: "contract TimelockOptionsMarket"
552
+ }, {
553
+ name: "maxBorrowableRange",
554
+ type: "int24",
555
+ internalType: "int24"
556
+ }],
557
+ outputs: [{
558
+ name: "maxCallSize",
559
+ type: "uint256",
560
+ internalType: "uint256"
561
+ }, {
562
+ name: "maxPutSize",
563
+ type: "uint256",
564
+ internalType: "uint256"
565
+ }],
566
+ stateMutability: "view"
567
+ },
568
+ {
569
+ type: "function",
570
+ name: "getOptionData",
571
+ inputs: [{
572
+ name: "market",
573
+ type: "address",
574
+ internalType: "contract TimelockOptionsMarket"
575
+ }, {
576
+ name: "optionId",
577
+ type: "uint256",
578
+ internalType: "uint256"
579
+ }],
580
+ outputs: [{
581
+ name: "",
582
+ type: "tuple",
583
+ internalType: "struct TimelockLens.OptionData",
584
+ components: [
585
+ {
586
+ name: "optionId",
587
+ type: "uint256",
588
+ internalType: "uint256"
589
+ },
590
+ {
591
+ name: "owner",
592
+ type: "address",
593
+ internalType: "address"
594
+ },
595
+ {
596
+ name: "optionType",
597
+ type: "uint8",
598
+ internalType: "uint8"
599
+ },
600
+ {
601
+ name: "leftTick",
602
+ type: "int24",
603
+ internalType: "int24"
604
+ },
605
+ {
606
+ name: "strikeTick",
607
+ type: "int24",
608
+ internalType: "int24"
609
+ },
610
+ {
611
+ name: "entryTick",
612
+ type: "int24",
613
+ internalType: "int24"
614
+ },
615
+ {
616
+ name: "strikePrice",
617
+ type: "uint256",
618
+ internalType: "uint256"
619
+ },
620
+ {
621
+ name: "entryPrice",
622
+ type: "uint256",
623
+ internalType: "uint256"
624
+ },
625
+ {
626
+ name: "optionAssetBorrowed",
627
+ type: "uint256",
628
+ internalType: "uint256"
629
+ },
630
+ {
631
+ name: "payoutAssetBorrowed",
632
+ type: "uint256",
633
+ internalType: "uint256"
634
+ },
635
+ {
636
+ name: "optionAssetToRepay",
637
+ type: "uint256",
638
+ internalType: "uint256"
639
+ },
640
+ {
641
+ name: "payoutAssetToRepay",
642
+ type: "uint256",
643
+ internalType: "uint256"
644
+ },
645
+ {
646
+ name: "positionSize",
647
+ type: "uint256",
648
+ internalType: "uint256"
649
+ },
650
+ {
651
+ name: "netOptionAssetToRepay",
652
+ type: "uint256",
653
+ internalType: "uint256"
654
+ },
655
+ {
656
+ name: "premiumPaid",
657
+ type: "uint128",
658
+ internalType: "uint128"
659
+ },
660
+ {
661
+ name: "expiresAt",
662
+ type: "uint64",
663
+ internalType: "uint64"
664
+ },
665
+ {
666
+ name: "createdAt",
667
+ type: "uint64",
668
+ internalType: "uint64"
669
+ },
670
+ {
671
+ name: "liquidities",
672
+ type: "uint128[]",
673
+ internalType: "uint128[]"
674
+ }
675
+ ]
676
+ }],
677
+ stateMutability: "view"
678
+ },
679
+ {
680
+ type: "function",
681
+ name: "getOptionsData",
682
+ inputs: [{
683
+ name: "market",
684
+ type: "address",
685
+ internalType: "contract TimelockOptionsMarket"
686
+ }, {
687
+ name: "optionIds",
688
+ type: "uint256[]",
689
+ internalType: "uint256[]"
690
+ }],
691
+ outputs: [{
692
+ name: "optionsData",
693
+ type: "tuple[]",
694
+ internalType: "struct TimelockLens.OptionData[]",
695
+ components: [
696
+ {
697
+ name: "optionId",
698
+ type: "uint256",
699
+ internalType: "uint256"
700
+ },
701
+ {
702
+ name: "owner",
703
+ type: "address",
704
+ internalType: "address"
705
+ },
706
+ {
707
+ name: "optionType",
708
+ type: "uint8",
709
+ internalType: "uint8"
710
+ },
711
+ {
712
+ name: "leftTick",
713
+ type: "int24",
714
+ internalType: "int24"
715
+ },
716
+ {
717
+ name: "strikeTick",
718
+ type: "int24",
719
+ internalType: "int24"
720
+ },
721
+ {
722
+ name: "entryTick",
723
+ type: "int24",
724
+ internalType: "int24"
725
+ },
726
+ {
727
+ name: "strikePrice",
728
+ type: "uint256",
729
+ internalType: "uint256"
730
+ },
731
+ {
732
+ name: "entryPrice",
733
+ type: "uint256",
734
+ internalType: "uint256"
735
+ },
736
+ {
737
+ name: "optionAssetBorrowed",
738
+ type: "uint256",
739
+ internalType: "uint256"
740
+ },
741
+ {
742
+ name: "payoutAssetBorrowed",
743
+ type: "uint256",
744
+ internalType: "uint256"
745
+ },
746
+ {
747
+ name: "optionAssetToRepay",
748
+ type: "uint256",
749
+ internalType: "uint256"
750
+ },
751
+ {
752
+ name: "payoutAssetToRepay",
753
+ type: "uint256",
754
+ internalType: "uint256"
755
+ },
756
+ {
757
+ name: "positionSize",
758
+ type: "uint256",
759
+ internalType: "uint256"
760
+ },
761
+ {
762
+ name: "netOptionAssetToRepay",
763
+ type: "uint256",
764
+ internalType: "uint256"
765
+ },
766
+ {
767
+ name: "premiumPaid",
768
+ type: "uint128",
769
+ internalType: "uint128"
770
+ },
771
+ {
772
+ name: "expiresAt",
773
+ type: "uint64",
774
+ internalType: "uint64"
775
+ },
776
+ {
777
+ name: "createdAt",
778
+ type: "uint64",
779
+ internalType: "uint64"
780
+ },
781
+ {
782
+ name: "liquidities",
783
+ type: "uint128[]",
784
+ internalType: "uint128[]"
785
+ }
786
+ ]
787
+ }],
788
+ stateMutability: "view"
789
+ },
790
+ {
791
+ type: "function",
792
+ name: "getPoolData",
793
+ inputs: [{
794
+ name: "pool",
795
+ type: "address",
796
+ internalType: "contract IUniswapV3Pool"
797
+ }],
798
+ outputs: [{
799
+ name: "poolData",
800
+ type: "tuple",
801
+ internalType: "struct TimelockLens.UniswapPoolData",
802
+ components: [
803
+ {
804
+ name: "token0",
805
+ type: "address",
806
+ internalType: "address"
807
+ },
808
+ {
809
+ name: "token1",
810
+ type: "address",
811
+ internalType: "address"
812
+ },
813
+ {
814
+ name: "token0Decimals",
815
+ type: "uint8",
816
+ internalType: "uint8"
817
+ },
818
+ {
819
+ name: "token1Decimals",
820
+ type: "uint8",
821
+ internalType: "uint8"
822
+ },
823
+ {
824
+ name: "token0Symbol",
825
+ type: "string",
826
+ internalType: "string"
827
+ },
828
+ {
829
+ name: "token1Symbol",
830
+ type: "string",
831
+ internalType: "string"
832
+ },
833
+ {
834
+ name: "token0Name",
835
+ type: "string",
836
+ internalType: "string"
837
+ },
838
+ {
839
+ name: "token1Name",
840
+ type: "string",
841
+ internalType: "string"
842
+ },
843
+ {
844
+ name: "tickSpacing",
845
+ type: "int24",
846
+ internalType: "int24"
847
+ },
848
+ {
849
+ name: "fee",
850
+ type: "uint24",
851
+ internalType: "uint24"
852
+ }
853
+ ]
854
+ }],
855
+ stateMutability: "view"
856
+ },
857
+ {
858
+ type: "function",
859
+ name: "getRefTick",
860
+ inputs: [{
861
+ name: "vault",
862
+ type: "address",
863
+ internalType: "contract TimelockSingleOwnerVault"
864
+ }, {
865
+ name: "tickLower",
866
+ type: "int24",
867
+ internalType: "int24"
868
+ }],
869
+ outputs: [{
870
+ name: "refTick",
871
+ type: "int24",
872
+ internalType: "int24"
873
+ }],
874
+ stateMutability: "view"
875
+ },
876
+ {
877
+ type: "function",
878
+ name: "getUserOptions",
879
+ inputs: [
880
+ {
881
+ name: "market",
882
+ type: "address",
883
+ internalType: "contract TimelockOptionsMarket"
884
+ },
885
+ {
886
+ name: "user",
887
+ type: "address",
888
+ internalType: "address"
889
+ },
890
+ {
891
+ name: "startId",
892
+ type: "uint256",
893
+ internalType: "uint256"
894
+ },
895
+ {
896
+ name: "limit",
897
+ type: "uint256",
898
+ internalType: "uint256"
899
+ }
900
+ ],
901
+ outputs: [
902
+ {
903
+ name: "userOptions",
904
+ type: "tuple[]",
905
+ internalType: "struct TimelockLens.OptionData[]",
906
+ components: [
907
+ {
908
+ name: "optionId",
909
+ type: "uint256",
910
+ internalType: "uint256"
911
+ },
912
+ {
913
+ name: "owner",
914
+ type: "address",
915
+ internalType: "address"
916
+ },
917
+ {
918
+ name: "optionType",
919
+ type: "uint8",
920
+ internalType: "uint8"
921
+ },
922
+ {
923
+ name: "leftTick",
924
+ type: "int24",
925
+ internalType: "int24"
926
+ },
927
+ {
928
+ name: "strikeTick",
929
+ type: "int24",
930
+ internalType: "int24"
931
+ },
932
+ {
933
+ name: "entryTick",
934
+ type: "int24",
935
+ internalType: "int24"
936
+ },
937
+ {
938
+ name: "strikePrice",
939
+ type: "uint256",
940
+ internalType: "uint256"
941
+ },
942
+ {
943
+ name: "entryPrice",
944
+ type: "uint256",
945
+ internalType: "uint256"
946
+ },
947
+ {
948
+ name: "optionAssetBorrowed",
949
+ type: "uint256",
950
+ internalType: "uint256"
951
+ },
952
+ {
953
+ name: "payoutAssetBorrowed",
954
+ type: "uint256",
955
+ internalType: "uint256"
956
+ },
957
+ {
958
+ name: "optionAssetToRepay",
959
+ type: "uint256",
960
+ internalType: "uint256"
961
+ },
962
+ {
963
+ name: "payoutAssetToRepay",
964
+ type: "uint256",
965
+ internalType: "uint256"
966
+ },
967
+ {
968
+ name: "positionSize",
969
+ type: "uint256",
970
+ internalType: "uint256"
971
+ },
972
+ {
973
+ name: "netOptionAssetToRepay",
974
+ type: "uint256",
975
+ internalType: "uint256"
976
+ },
977
+ {
978
+ name: "premiumPaid",
979
+ type: "uint128",
980
+ internalType: "uint128"
981
+ },
982
+ {
983
+ name: "expiresAt",
984
+ type: "uint64",
985
+ internalType: "uint64"
986
+ },
987
+ {
988
+ name: "createdAt",
989
+ type: "uint64",
990
+ internalType: "uint64"
991
+ },
992
+ {
993
+ name: "liquidities",
994
+ type: "uint128[]",
995
+ internalType: "uint128[]"
996
+ }
997
+ ]
998
+ },
999
+ {
1000
+ name: "nextStartId",
1001
+ type: "uint256",
1002
+ internalType: "uint256"
1003
+ },
1004
+ {
1005
+ name: "hasMore",
1006
+ type: "bool",
1007
+ internalType: "bool"
1008
+ }
1009
+ ],
1010
+ stateMutability: "view"
1011
+ },
1012
+ {
1013
+ type: "function",
1014
+ name: "getVaultTVL",
1015
+ inputs: [{
1016
+ name: "vault",
1017
+ type: "address",
1018
+ internalType: "contract TimelockVaultCore"
1019
+ }],
1020
+ outputs: [
1021
+ {
1022
+ name: "totalAmount0",
1023
+ type: "uint256",
1024
+ internalType: "uint256"
1025
+ },
1026
+ {
1027
+ name: "totalAmount1",
1028
+ type: "uint256",
1029
+ internalType: "uint256"
1030
+ },
1031
+ {
1032
+ name: "borrowedAmount0",
1033
+ type: "uint256",
1034
+ internalType: "uint256"
1035
+ },
1036
+ {
1037
+ name: "borrowedAmount1",
1038
+ type: "uint256",
1039
+ internalType: "uint256"
1040
+ },
1041
+ {
1042
+ name: "tvl0",
1043
+ type: "uint256",
1044
+ internalType: "uint256"
1045
+ },
1046
+ {
1047
+ name: "tvl1",
1048
+ type: "uint256",
1049
+ internalType: "uint256"
1050
+ }
1051
+ ],
1052
+ stateMutability: "view"
1053
+ }
1054
+ ];
1055
+
1056
+ //#endregion
1057
+ //#region src/abis/uniswapMathLens.ts
1058
+ const uniswapMathLensAbi = [
1059
+ {
1060
+ type: "function",
1061
+ name: "batchGetAmount0ForLiquidity",
1062
+ inputs: [
1063
+ {
1064
+ name: "sqrtRatioAX96",
1065
+ type: "uint160[]",
1066
+ internalType: "uint160[]"
1067
+ },
1068
+ {
1069
+ name: "sqrtRatioBX96",
1070
+ type: "uint160[]",
1071
+ internalType: "uint160[]"
1072
+ },
1073
+ {
1074
+ name: "liquidity",
1075
+ type: "uint128[]",
1076
+ internalType: "uint128[]"
1077
+ }
1078
+ ],
1079
+ outputs: [{
1080
+ name: "amounts0",
1081
+ type: "uint256[]",
1082
+ internalType: "uint256[]"
1083
+ }],
1084
+ stateMutability: "pure"
1085
+ },
1086
+ {
1087
+ type: "function",
1088
+ name: "batchGetAmount0ForLiquidityTicks",
1089
+ inputs: [
1090
+ {
1091
+ name: "tickA",
1092
+ type: "int24[]",
1093
+ internalType: "int24[]"
1094
+ },
1095
+ {
1096
+ name: "tickB",
1097
+ type: "int24[]",
1098
+ internalType: "int24[]"
1099
+ },
1100
+ {
1101
+ name: "liquidity",
1102
+ type: "uint128[]",
1103
+ internalType: "uint128[]"
1104
+ }
1105
+ ],
1106
+ outputs: [{
1107
+ name: "amounts0",
1108
+ type: "uint256[]",
1109
+ internalType: "uint256[]"
1110
+ }],
1111
+ stateMutability: "pure"
1112
+ },
1113
+ {
1114
+ type: "function",
1115
+ name: "batchGetAmount1ForLiquidity",
1116
+ inputs: [
1117
+ {
1118
+ name: "sqrtRatioAX96",
1119
+ type: "uint160[]",
1120
+ internalType: "uint160[]"
1121
+ },
1122
+ {
1123
+ name: "sqrtRatioBX96",
1124
+ type: "uint160[]",
1125
+ internalType: "uint160[]"
1126
+ },
1127
+ {
1128
+ name: "liquidity",
1129
+ type: "uint128[]",
1130
+ internalType: "uint128[]"
1131
+ }
1132
+ ],
1133
+ outputs: [{
1134
+ name: "amounts1",
1135
+ type: "uint256[]",
1136
+ internalType: "uint256[]"
1137
+ }],
1138
+ stateMutability: "pure"
1139
+ },
1140
+ {
1141
+ type: "function",
1142
+ name: "batchGetAmount1ForLiquidityTicks",
1143
+ inputs: [
1144
+ {
1145
+ name: "tickA",
1146
+ type: "int24[]",
1147
+ internalType: "int24[]"
1148
+ },
1149
+ {
1150
+ name: "tickB",
1151
+ type: "int24[]",
1152
+ internalType: "int24[]"
1153
+ },
1154
+ {
1155
+ name: "liquidity",
1156
+ type: "uint128[]",
1157
+ internalType: "uint128[]"
1158
+ }
1159
+ ],
1160
+ outputs: [{
1161
+ name: "amounts1",
1162
+ type: "uint256[]",
1163
+ internalType: "uint256[]"
1164
+ }],
1165
+ stateMutability: "pure"
1166
+ },
1167
+ {
1168
+ type: "function",
1169
+ name: "batchGetAmountsForLiquidity",
1170
+ inputs: [
1171
+ {
1172
+ name: "sqrtRatioX96",
1173
+ type: "uint160[]",
1174
+ internalType: "uint160[]"
1175
+ },
1176
+ {
1177
+ name: "sqrtRatioAX96",
1178
+ type: "uint160[]",
1179
+ internalType: "uint160[]"
1180
+ },
1181
+ {
1182
+ name: "sqrtRatioBX96",
1183
+ type: "uint160[]",
1184
+ internalType: "uint160[]"
1185
+ },
1186
+ {
1187
+ name: "liquidity",
1188
+ type: "uint128[]",
1189
+ internalType: "uint128[]"
1190
+ }
1191
+ ],
1192
+ outputs: [{
1193
+ name: "amounts0",
1194
+ type: "uint256[]",
1195
+ internalType: "uint256[]"
1196
+ }, {
1197
+ name: "amounts1",
1198
+ type: "uint256[]",
1199
+ internalType: "uint256[]"
1200
+ }],
1201
+ stateMutability: "pure"
1202
+ },
1203
+ {
1204
+ type: "function",
1205
+ name: "batchGetAmountsForLiquidityTicks",
1206
+ inputs: [
1207
+ {
1208
+ name: "tick",
1209
+ type: "int24[]",
1210
+ internalType: "int24[]"
1211
+ },
1212
+ {
1213
+ name: "tickA",
1214
+ type: "int24[]",
1215
+ internalType: "int24[]"
1216
+ },
1217
+ {
1218
+ name: "tickB",
1219
+ type: "int24[]",
1220
+ internalType: "int24[]"
1221
+ },
1222
+ {
1223
+ name: "liquidity",
1224
+ type: "uint128[]",
1225
+ internalType: "uint128[]"
1226
+ }
1227
+ ],
1228
+ outputs: [{
1229
+ name: "amounts0",
1230
+ type: "uint256[]",
1231
+ internalType: "uint256[]"
1232
+ }, {
1233
+ name: "amounts1",
1234
+ type: "uint256[]",
1235
+ internalType: "uint256[]"
1236
+ }],
1237
+ stateMutability: "pure"
1238
+ },
1239
+ {
1240
+ type: "function",
1241
+ name: "batchGetLiquidityForAmount0",
1242
+ inputs: [
1243
+ {
1244
+ name: "sqrtRatioAX96",
1245
+ type: "uint160[]",
1246
+ internalType: "uint160[]"
1247
+ },
1248
+ {
1249
+ name: "sqrtRatioBX96",
1250
+ type: "uint160[]",
1251
+ internalType: "uint160[]"
1252
+ },
1253
+ {
1254
+ name: "amount0",
1255
+ type: "uint256[]",
1256
+ internalType: "uint256[]"
1257
+ }
1258
+ ],
1259
+ outputs: [{
1260
+ name: "liquidities",
1261
+ type: "uint128[]",
1262
+ internalType: "uint128[]"
1263
+ }],
1264
+ stateMutability: "pure"
1265
+ },
1266
+ {
1267
+ type: "function",
1268
+ name: "batchGetLiquidityForAmount0Ticks",
1269
+ inputs: [
1270
+ {
1271
+ name: "tickA",
1272
+ type: "int24[]",
1273
+ internalType: "int24[]"
1274
+ },
1275
+ {
1276
+ name: "tickB",
1277
+ type: "int24[]",
1278
+ internalType: "int24[]"
1279
+ },
1280
+ {
1281
+ name: "amount0",
1282
+ type: "uint256[]",
1283
+ internalType: "uint256[]"
1284
+ }
1285
+ ],
1286
+ outputs: [{
1287
+ name: "liquidities",
1288
+ type: "uint128[]",
1289
+ internalType: "uint128[]"
1290
+ }],
1291
+ stateMutability: "pure"
1292
+ },
1293
+ {
1294
+ type: "function",
1295
+ name: "batchGetLiquidityForAmount1",
1296
+ inputs: [
1297
+ {
1298
+ name: "sqrtRatioAX96",
1299
+ type: "uint160[]",
1300
+ internalType: "uint160[]"
1301
+ },
1302
+ {
1303
+ name: "sqrtRatioBX96",
1304
+ type: "uint160[]",
1305
+ internalType: "uint160[]"
1306
+ },
1307
+ {
1308
+ name: "amount1",
1309
+ type: "uint256[]",
1310
+ internalType: "uint256[]"
1311
+ }
1312
+ ],
1313
+ outputs: [{
1314
+ name: "liquidities",
1315
+ type: "uint128[]",
1316
+ internalType: "uint128[]"
1317
+ }],
1318
+ stateMutability: "pure"
1319
+ },
1320
+ {
1321
+ type: "function",
1322
+ name: "batchGetLiquidityForAmount1Ticks",
1323
+ inputs: [
1324
+ {
1325
+ name: "tickA",
1326
+ type: "int24[]",
1327
+ internalType: "int24[]"
1328
+ },
1329
+ {
1330
+ name: "tickB",
1331
+ type: "int24[]",
1332
+ internalType: "int24[]"
1333
+ },
1334
+ {
1335
+ name: "amount1",
1336
+ type: "uint256[]",
1337
+ internalType: "uint256[]"
1338
+ }
1339
+ ],
1340
+ outputs: [{
1341
+ name: "liquidities",
1342
+ type: "uint128[]",
1343
+ internalType: "uint128[]"
1344
+ }],
1345
+ stateMutability: "pure"
1346
+ },
1347
+ {
1348
+ type: "function",
1349
+ name: "batchGetLiquidityForAmounts",
1350
+ inputs: [
1351
+ {
1352
+ name: "sqrtRatioX96",
1353
+ type: "uint160[]",
1354
+ internalType: "uint160[]"
1355
+ },
1356
+ {
1357
+ name: "sqrtRatioAX96",
1358
+ type: "uint160[]",
1359
+ internalType: "uint160[]"
1360
+ },
1361
+ {
1362
+ name: "sqrtRatioBX96",
1363
+ type: "uint160[]",
1364
+ internalType: "uint160[]"
1365
+ },
1366
+ {
1367
+ name: "amount0",
1368
+ type: "uint256[]",
1369
+ internalType: "uint256[]"
1370
+ },
1371
+ {
1372
+ name: "amount1",
1373
+ type: "uint256[]",
1374
+ internalType: "uint256[]"
1375
+ }
1376
+ ],
1377
+ outputs: [{
1378
+ name: "liquidities",
1379
+ type: "uint128[]",
1380
+ internalType: "uint128[]"
1381
+ }],
1382
+ stateMutability: "pure"
1383
+ },
1384
+ {
1385
+ type: "function",
1386
+ name: "batchGetLiquidityForAmountsTicks",
1387
+ inputs: [
1388
+ {
1389
+ name: "tick",
1390
+ type: "int24[]",
1391
+ internalType: "int24[]"
1392
+ },
1393
+ {
1394
+ name: "tickA",
1395
+ type: "int24[]",
1396
+ internalType: "int24[]"
1397
+ },
1398
+ {
1399
+ name: "tickB",
1400
+ type: "int24[]",
1401
+ internalType: "int24[]"
1402
+ },
1403
+ {
1404
+ name: "amount0",
1405
+ type: "uint256[]",
1406
+ internalType: "uint256[]"
1407
+ },
1408
+ {
1409
+ name: "amount1",
1410
+ type: "uint256[]",
1411
+ internalType: "uint256[]"
1412
+ }
1413
+ ],
1414
+ outputs: [{
1415
+ name: "liquidities",
1416
+ type: "uint128[]",
1417
+ internalType: "uint128[]"
1418
+ }],
1419
+ stateMutability: "pure"
1420
+ },
1421
+ {
1422
+ type: "function",
1423
+ name: "batchGetPriceAtTick",
1424
+ inputs: [{
1425
+ name: "ticks",
1426
+ type: "int24[]",
1427
+ internalType: "int24[]"
1428
+ }],
1429
+ outputs: [{
1430
+ name: "prices",
1431
+ type: "uint256[]",
1432
+ internalType: "uint256[]"
1433
+ }],
1434
+ stateMutability: "pure"
1435
+ },
1436
+ {
1437
+ type: "function",
1438
+ name: "getAmount0ForLiquidity",
1439
+ inputs: [
1440
+ {
1441
+ name: "sqrtRatioAX96",
1442
+ type: "uint160",
1443
+ internalType: "uint160"
1444
+ },
1445
+ {
1446
+ name: "sqrtRatioBX96",
1447
+ type: "uint160",
1448
+ internalType: "uint160"
1449
+ },
1450
+ {
1451
+ name: "liquidity",
1452
+ type: "uint128",
1453
+ internalType: "uint128"
1454
+ }
1455
+ ],
1456
+ outputs: [{
1457
+ name: "amount0",
1458
+ type: "uint256",
1459
+ internalType: "uint256"
1460
+ }],
1461
+ stateMutability: "pure"
1462
+ },
1463
+ {
1464
+ type: "function",
1465
+ name: "getAmount0ForLiquidityTicks",
1466
+ inputs: [
1467
+ {
1468
+ name: "tickA",
1469
+ type: "int24",
1470
+ internalType: "int24"
1471
+ },
1472
+ {
1473
+ name: "tickB",
1474
+ type: "int24",
1475
+ internalType: "int24"
1476
+ },
1477
+ {
1478
+ name: "liquidity",
1479
+ type: "uint128",
1480
+ internalType: "uint128"
1481
+ }
1482
+ ],
1483
+ outputs: [{
1484
+ name: "amount0",
1485
+ type: "uint256",
1486
+ internalType: "uint256"
1487
+ }],
1488
+ stateMutability: "pure"
1489
+ },
1490
+ {
1491
+ type: "function",
1492
+ name: "getAmount1ForLiquidity",
1493
+ inputs: [
1494
+ {
1495
+ name: "sqrtRatioAX96",
1496
+ type: "uint160",
1497
+ internalType: "uint160"
1498
+ },
1499
+ {
1500
+ name: "sqrtRatioBX96",
1501
+ type: "uint160",
1502
+ internalType: "uint160"
1503
+ },
1504
+ {
1505
+ name: "liquidity",
1506
+ type: "uint128",
1507
+ internalType: "uint128"
1508
+ }
1509
+ ],
1510
+ outputs: [{
1511
+ name: "amount1",
1512
+ type: "uint256",
1513
+ internalType: "uint256"
1514
+ }],
1515
+ stateMutability: "pure"
1516
+ },
1517
+ {
1518
+ type: "function",
1519
+ name: "getAmount1ForLiquidityTicks",
1520
+ inputs: [
1521
+ {
1522
+ name: "tickA",
1523
+ type: "int24",
1524
+ internalType: "int24"
1525
+ },
1526
+ {
1527
+ name: "tickB",
1528
+ type: "int24",
1529
+ internalType: "int24"
1530
+ },
1531
+ {
1532
+ name: "liquidity",
1533
+ type: "uint128",
1534
+ internalType: "uint128"
1535
+ }
1536
+ ],
1537
+ outputs: [{
1538
+ name: "amount1",
1539
+ type: "uint256",
1540
+ internalType: "uint256"
1541
+ }],
1542
+ stateMutability: "pure"
1543
+ },
1544
+ {
1545
+ type: "function",
1546
+ name: "getAmountsForLiquidity",
1547
+ inputs: [
1548
+ {
1549
+ name: "sqrtRatioX96",
1550
+ type: "uint160",
1551
+ internalType: "uint160"
1552
+ },
1553
+ {
1554
+ name: "sqrtRatioAX96",
1555
+ type: "uint160",
1556
+ internalType: "uint160"
1557
+ },
1558
+ {
1559
+ name: "sqrtRatioBX96",
1560
+ type: "uint160",
1561
+ internalType: "uint160"
1562
+ },
1563
+ {
1564
+ name: "liquidity",
1565
+ type: "uint128",
1566
+ internalType: "uint128"
1567
+ }
1568
+ ],
1569
+ outputs: [{
1570
+ name: "amount0",
1571
+ type: "uint256",
1572
+ internalType: "uint256"
1573
+ }, {
1574
+ name: "amount1",
1575
+ type: "uint256",
1576
+ internalType: "uint256"
1577
+ }],
1578
+ stateMutability: "pure"
1579
+ },
1580
+ {
1581
+ type: "function",
1582
+ name: "getAmountsForLiquidityTicks",
1583
+ inputs: [
1584
+ {
1585
+ name: "tick",
1586
+ type: "int24",
1587
+ internalType: "int24"
1588
+ },
1589
+ {
1590
+ name: "tickA",
1591
+ type: "int24",
1592
+ internalType: "int24"
1593
+ },
1594
+ {
1595
+ name: "tickB",
1596
+ type: "int24",
1597
+ internalType: "int24"
1598
+ },
1599
+ {
1600
+ name: "liquidity",
1601
+ type: "uint128",
1602
+ internalType: "uint128"
1603
+ }
1604
+ ],
1605
+ outputs: [{
1606
+ name: "amount0",
1607
+ type: "uint256",
1608
+ internalType: "uint256"
1609
+ }, {
1610
+ name: "amount1",
1611
+ type: "uint256",
1612
+ internalType: "uint256"
1613
+ }],
1614
+ stateMutability: "pure"
1615
+ },
1616
+ {
1617
+ type: "function",
1618
+ name: "getLiquidityForAmount0",
1619
+ inputs: [
1620
+ {
1621
+ name: "sqrtRatioAX96",
1622
+ type: "uint160",
1623
+ internalType: "uint160"
1624
+ },
1625
+ {
1626
+ name: "sqrtRatioBX96",
1627
+ type: "uint160",
1628
+ internalType: "uint160"
1629
+ },
1630
+ {
1631
+ name: "amount0",
1632
+ type: "uint256",
1633
+ internalType: "uint256"
1634
+ }
1635
+ ],
1636
+ outputs: [{
1637
+ name: "liquidity",
1638
+ type: "uint128",
1639
+ internalType: "uint128"
1640
+ }],
1641
+ stateMutability: "pure"
1642
+ },
1643
+ {
1644
+ type: "function",
1645
+ name: "getLiquidityForAmount0Ticks",
1646
+ inputs: [
1647
+ {
1648
+ name: "tickA",
1649
+ type: "int24",
1650
+ internalType: "int24"
1651
+ },
1652
+ {
1653
+ name: "tickB",
1654
+ type: "int24",
1655
+ internalType: "int24"
1656
+ },
1657
+ {
1658
+ name: "amount0",
1659
+ type: "uint256",
1660
+ internalType: "uint256"
1661
+ }
1662
+ ],
1663
+ outputs: [{
1664
+ name: "liquidity",
1665
+ type: "uint128",
1666
+ internalType: "uint128"
1667
+ }],
1668
+ stateMutability: "pure"
1669
+ },
1670
+ {
1671
+ type: "function",
1672
+ name: "getLiquidityForAmount1",
1673
+ inputs: [
1674
+ {
1675
+ name: "sqrtRatioAX96",
1676
+ type: "uint160",
1677
+ internalType: "uint160"
1678
+ },
1679
+ {
1680
+ name: "sqrtRatioBX96",
1681
+ type: "uint160",
1682
+ internalType: "uint160"
1683
+ },
1684
+ {
1685
+ name: "amount1",
1686
+ type: "uint256",
1687
+ internalType: "uint256"
1688
+ }
1689
+ ],
1690
+ outputs: [{
1691
+ name: "liquidity",
1692
+ type: "uint128",
1693
+ internalType: "uint128"
1694
+ }],
1695
+ stateMutability: "pure"
1696
+ },
1697
+ {
1698
+ type: "function",
1699
+ name: "getLiquidityForAmount1Ticks",
1700
+ inputs: [
1701
+ {
1702
+ name: "tickA",
1703
+ type: "int24",
1704
+ internalType: "int24"
1705
+ },
1706
+ {
1707
+ name: "tickB",
1708
+ type: "int24",
1709
+ internalType: "int24"
1710
+ },
1711
+ {
1712
+ name: "amount1",
1713
+ type: "uint256",
1714
+ internalType: "uint256"
1715
+ }
1716
+ ],
1717
+ outputs: [{
1718
+ name: "liquidity",
1719
+ type: "uint128",
1720
+ internalType: "uint128"
1721
+ }],
1722
+ stateMutability: "pure"
1723
+ },
1724
+ {
1725
+ type: "function",
1726
+ name: "getLiquidityForAmounts",
1727
+ inputs: [
1728
+ {
1729
+ name: "sqrtRatioX96",
1730
+ type: "uint160",
1731
+ internalType: "uint160"
1732
+ },
1733
+ {
1734
+ name: "sqrtRatioAX96",
1735
+ type: "uint160",
1736
+ internalType: "uint160"
1737
+ },
1738
+ {
1739
+ name: "sqrtRatioBX96",
1740
+ type: "uint160",
1741
+ internalType: "uint160"
1742
+ },
1743
+ {
1744
+ name: "amount0",
1745
+ type: "uint256",
1746
+ internalType: "uint256"
1747
+ },
1748
+ {
1749
+ name: "amount1",
1750
+ type: "uint256",
1751
+ internalType: "uint256"
1752
+ }
1753
+ ],
1754
+ outputs: [{
1755
+ name: "liquidity",
1756
+ type: "uint128",
1757
+ internalType: "uint128"
1758
+ }],
1759
+ stateMutability: "pure"
1760
+ },
1761
+ {
1762
+ type: "function",
1763
+ name: "getLiquidityForAmountsTicks",
1764
+ inputs: [
1765
+ {
1766
+ name: "tick",
1767
+ type: "int24",
1768
+ internalType: "int24"
1769
+ },
1770
+ {
1771
+ name: "tickA",
1772
+ type: "int24",
1773
+ internalType: "int24"
1774
+ },
1775
+ {
1776
+ name: "tickB",
1777
+ type: "int24",
1778
+ internalType: "int24"
1779
+ },
1780
+ {
1781
+ name: "amount0",
1782
+ type: "uint256",
1783
+ internalType: "uint256"
1784
+ },
1785
+ {
1786
+ name: "amount1",
1787
+ type: "uint256",
1788
+ internalType: "uint256"
1789
+ }
1790
+ ],
1791
+ outputs: [{
1792
+ name: "liquidity",
1793
+ type: "uint128",
1794
+ internalType: "uint128"
1795
+ }],
1796
+ stateMutability: "pure"
1797
+ },
1798
+ {
1799
+ type: "function",
1800
+ name: "getPriceAtTick",
1801
+ inputs: [{
1802
+ name: "tick",
1803
+ type: "int24",
1804
+ internalType: "int24"
1805
+ }],
1806
+ outputs: [{
1807
+ name: "",
1808
+ type: "uint256",
1809
+ internalType: "uint256"
1810
+ }],
1811
+ stateMutability: "pure"
1812
+ }
1813
+ ];
1814
+
1815
+ //#endregion
1816
+ //#region src/abis/optionsMarket.ts
1817
+ const optionsMarketAbi = [
1818
+ {
1819
+ type: "constructor",
1820
+ inputs: [
1821
+ {
1822
+ name: "_vault",
1823
+ type: "address",
1824
+ internalType: "contract ITimelockVault"
1825
+ },
1826
+ {
1827
+ name: "_optionPricing",
1828
+ type: "address",
1829
+ internalType: "contract IOptionPricing"
1830
+ },
1831
+ {
1832
+ name: "_optionAssetIsToken0",
1833
+ type: "bool",
1834
+ internalType: "bool"
1835
+ },
1836
+ {
1837
+ name: "_swapRouter",
1838
+ type: "address",
1839
+ internalType: "contract ISwapRouter"
1840
+ },
1841
+ {
1842
+ name: "_quoter",
1843
+ type: "address",
1844
+ internalType: "contract IQuoter"
1845
+ },
1846
+ {
1847
+ name: "_owner",
1848
+ type: "address",
1849
+ internalType: "address"
1850
+ }
1851
+ ],
1852
+ stateMutability: "nonpayable"
1853
+ },
1854
+ {
1855
+ type: "function",
1856
+ name: "BASIS_POINTS",
1857
+ inputs: [],
1858
+ outputs: [{
1859
+ name: "",
1860
+ type: "uint256",
1861
+ internalType: "uint256"
1862
+ }],
1863
+ stateMutability: "view"
1864
+ },
1865
+ {
1866
+ type: "function",
1867
+ name: "DUST_THRESHOLD",
1868
+ inputs: [],
1869
+ outputs: [{
1870
+ name: "",
1871
+ type: "uint256",
1872
+ internalType: "uint256"
1873
+ }],
1874
+ stateMutability: "view"
1875
+ },
1876
+ {
1877
+ type: "function",
1878
+ name: "MAX_STEPS",
1879
+ inputs: [],
1880
+ outputs: [{
1881
+ name: "",
1882
+ type: "uint256",
1883
+ internalType: "uint256"
1884
+ }],
1885
+ stateMutability: "view"
1886
+ },
1887
+ {
1888
+ type: "function",
1889
+ name: "OPTION_FEE_PERCENT",
1890
+ inputs: [],
1891
+ outputs: [{
1892
+ name: "",
1893
+ type: "uint256",
1894
+ internalType: "uint256"
1895
+ }],
1896
+ stateMutability: "view"
1897
+ },
1898
+ {
1899
+ type: "function",
1900
+ name: "calculatePremium",
1901
+ inputs: [
1902
+ {
1903
+ name: "optionType",
1904
+ type: "uint8",
1905
+ internalType: "uint8"
1906
+ },
1907
+ {
1908
+ name: "optionAmount",
1909
+ type: "uint256",
1910
+ internalType: "uint256"
1911
+ },
1912
+ {
1913
+ name: "strikeTick",
1914
+ type: "int24",
1915
+ internalType: "int24"
1916
+ },
1917
+ {
1918
+ name: "duration",
1919
+ type: "uint64",
1920
+ internalType: "uint64"
1921
+ }
1922
+ ],
1923
+ outputs: [{
1924
+ name: "",
1925
+ type: "uint256",
1926
+ internalType: "uint256"
1927
+ }],
1928
+ stateMutability: "view"
1929
+ },
1930
+ {
1931
+ type: "function",
1932
+ name: "exerciseOption",
1933
+ inputs: [
1934
+ {
1935
+ name: "optionId",
1936
+ type: "uint256",
1937
+ internalType: "uint256"
1938
+ },
1939
+ {
1940
+ name: "liquidities",
1941
+ type: "uint128[]",
1942
+ internalType: "uint128[]"
1943
+ },
1944
+ {
1945
+ name: "minPayout",
1946
+ type: "uint256",
1947
+ internalType: "uint256"
1948
+ },
1949
+ {
1950
+ name: "refTick",
1951
+ type: "int24",
1952
+ internalType: "int24"
1953
+ }
1954
+ ],
1955
+ outputs: [{
1956
+ name: "payout",
1957
+ type: "uint256",
1958
+ internalType: "uint256"
1959
+ }],
1960
+ stateMutability: "nonpayable"
1961
+ },
1962
+ {
1963
+ type: "function",
1964
+ name: "getOption",
1965
+ inputs: [{
1966
+ name: "optionId",
1967
+ type: "uint256",
1968
+ internalType: "uint256"
1969
+ }],
1970
+ outputs: [{
1971
+ name: "",
1972
+ type: "tuple",
1973
+ internalType: "struct TimelockOptionsMarket.OptionData",
1974
+ components: [
1975
+ {
1976
+ name: "owner",
1977
+ type: "address",
1978
+ internalType: "address"
1979
+ },
1980
+ {
1981
+ name: "optionType",
1982
+ type: "uint8",
1983
+ internalType: "uint8"
1984
+ },
1985
+ {
1986
+ name: "strikeTick",
1987
+ type: "int24",
1988
+ internalType: "int24"
1989
+ },
1990
+ {
1991
+ name: "entryTick",
1992
+ type: "int24",
1993
+ internalType: "int24"
1994
+ },
1995
+ {
1996
+ name: "expiresAt",
1997
+ type: "uint64",
1998
+ internalType: "uint64"
1999
+ },
2000
+ {
2001
+ name: "createdAt",
2002
+ type: "uint64",
2003
+ internalType: "uint64"
2004
+ },
2005
+ {
2006
+ name: "premiumPaid",
2007
+ type: "uint128",
2008
+ internalType: "uint128"
2009
+ },
2010
+ {
2011
+ name: "liquidities",
2012
+ type: "uint128[]",
2013
+ internalType: "uint128[]"
2014
+ }
2015
+ ]
2016
+ }],
2017
+ stateMutability: "view"
2018
+ },
2019
+ {
2020
+ type: "function",
2021
+ name: "liquiditiesToAmounts",
2022
+ inputs: [
2023
+ {
2024
+ name: "leftTick",
2025
+ type: "int24",
2026
+ internalType: "int24"
2027
+ },
2028
+ {
2029
+ name: "liquidities",
2030
+ type: "uint128[]",
2031
+ internalType: "uint128[]"
2032
+ },
2033
+ {
2034
+ name: "optionType",
2035
+ type: "uint8",
2036
+ internalType: "uint8"
2037
+ }
2038
+ ],
2039
+ outputs: [
2040
+ {
2041
+ name: "optionAssetToRepay",
2042
+ type: "uint256",
2043
+ internalType: "uint256"
2044
+ },
2045
+ {
2046
+ name: "payoutAssetToRepay",
2047
+ type: "uint256",
2048
+ internalType: "uint256"
2049
+ },
2050
+ {
2051
+ name: "optionAssetBorrowed",
2052
+ type: "uint256",
2053
+ internalType: "uint256"
2054
+ },
2055
+ {
2056
+ name: "payoutAssetBorrowed",
2057
+ type: "uint256",
2058
+ internalType: "uint256"
2059
+ }
2060
+ ],
2061
+ stateMutability: "view"
2062
+ },
2063
+ {
2064
+ type: "function",
2065
+ name: "maxDuration",
2066
+ inputs: [],
2067
+ outputs: [{
2068
+ name: "",
2069
+ type: "uint64",
2070
+ internalType: "uint64"
2071
+ }],
2072
+ stateMutability: "view"
2073
+ },
2074
+ {
2075
+ type: "function",
2076
+ name: "maxOptionAmount",
2077
+ inputs: [],
2078
+ outputs: [{
2079
+ name: "",
2080
+ type: "uint256",
2081
+ internalType: "uint256"
2082
+ }],
2083
+ stateMutability: "view"
2084
+ },
2085
+ {
2086
+ type: "function",
2087
+ name: "minDuration",
2088
+ inputs: [],
2089
+ outputs: [{
2090
+ name: "",
2091
+ type: "uint64",
2092
+ internalType: "uint64"
2093
+ }],
2094
+ stateMutability: "view"
2095
+ },
2096
+ {
2097
+ type: "function",
2098
+ name: "minOptionAmount",
2099
+ inputs: [],
2100
+ outputs: [{
2101
+ name: "",
2102
+ type: "uint256",
2103
+ internalType: "uint256"
2104
+ }],
2105
+ stateMutability: "view"
2106
+ },
2107
+ {
2108
+ type: "function",
2109
+ name: "mintOption",
2110
+ inputs: [
2111
+ {
2112
+ name: "optionType",
2113
+ type: "uint8",
2114
+ internalType: "uint8"
2115
+ },
2116
+ {
2117
+ name: "amount",
2118
+ type: "uint256",
2119
+ internalType: "uint256"
2120
+ },
2121
+ {
2122
+ name: "strikeTick",
2123
+ type: "int24",
2124
+ internalType: "int24"
2125
+ },
2126
+ {
2127
+ name: "duration",
2128
+ type: "uint64",
2129
+ internalType: "uint64"
2130
+ },
2131
+ {
2132
+ name: "maxPremium",
2133
+ type: "uint256",
2134
+ internalType: "uint256"
2135
+ },
2136
+ {
2137
+ name: "refTick",
2138
+ type: "int24",
2139
+ internalType: "int24"
2140
+ }
2141
+ ],
2142
+ outputs: [
2143
+ {
2144
+ name: "optionId",
2145
+ type: "uint256",
2146
+ internalType: "uint256"
2147
+ },
2148
+ {
2149
+ name: "finalAmount",
2150
+ type: "uint256",
2151
+ internalType: "uint256"
2152
+ },
2153
+ {
2154
+ name: "totalPremium",
2155
+ type: "uint256",
2156
+ internalType: "uint256"
2157
+ }
2158
+ ],
2159
+ stateMutability: "nonpayable"
2160
+ },
2161
+ {
2162
+ type: "function",
2163
+ name: "nextOptionId",
2164
+ inputs: [],
2165
+ outputs: [{
2166
+ name: "",
2167
+ type: "uint256",
2168
+ internalType: "uint256"
2169
+ }],
2170
+ stateMutability: "view"
2171
+ },
2172
+ {
2173
+ type: "function",
2174
+ name: "optionAsset",
2175
+ inputs: [],
2176
+ outputs: [{
2177
+ name: "",
2178
+ type: "address",
2179
+ internalType: "contract IERC20"
2180
+ }],
2181
+ stateMutability: "view"
2182
+ },
2183
+ {
2184
+ type: "function",
2185
+ name: "optionAssetIsToken0",
2186
+ inputs: [],
2187
+ outputs: [{
2188
+ name: "",
2189
+ type: "bool",
2190
+ internalType: "bool"
2191
+ }],
2192
+ stateMutability: "view"
2193
+ },
2194
+ {
2195
+ type: "function",
2196
+ name: "optionPricing",
2197
+ inputs: [],
2198
+ outputs: [{
2199
+ name: "",
2200
+ type: "address",
2201
+ internalType: "contract IOptionPricing"
2202
+ }],
2203
+ stateMutability: "view"
2204
+ },
2205
+ {
2206
+ type: "function",
2207
+ name: "owner",
2208
+ inputs: [],
2209
+ outputs: [{
2210
+ name: "",
2211
+ type: "address",
2212
+ internalType: "address"
2213
+ }],
2214
+ stateMutability: "view"
2215
+ },
2216
+ {
2217
+ type: "function",
2218
+ name: "payoutAsset",
2219
+ inputs: [],
2220
+ outputs: [{
2221
+ name: "",
2222
+ type: "address",
2223
+ internalType: "contract IERC20"
2224
+ }],
2225
+ stateMutability: "view"
2226
+ },
2227
+ {
2228
+ type: "function",
2229
+ name: "pool",
2230
+ inputs: [],
2231
+ outputs: [{
2232
+ name: "",
2233
+ type: "address",
2234
+ internalType: "contract IUniswapV3Pool"
2235
+ }],
2236
+ stateMutability: "view"
2237
+ },
2238
+ {
2239
+ type: "function",
2240
+ name: "protocolFees",
2241
+ inputs: [],
2242
+ outputs: [{
2243
+ name: "",
2244
+ type: "uint256",
2245
+ internalType: "uint256"
2246
+ }],
2247
+ stateMutability: "view"
2248
+ },
2249
+ {
2250
+ type: "function",
2251
+ name: "quoter",
2252
+ inputs: [],
2253
+ outputs: [{
2254
+ name: "",
2255
+ type: "address",
2256
+ internalType: "contract IQuoter"
2257
+ }],
2258
+ stateMutability: "view"
2259
+ },
2260
+ {
2261
+ type: "function",
2262
+ name: "renounceOwnership",
2263
+ inputs: [],
2264
+ outputs: [],
2265
+ stateMutability: "nonpayable"
2266
+ },
2267
+ {
2268
+ type: "function",
2269
+ name: "swapRouter",
2270
+ inputs: [],
2271
+ outputs: [{
2272
+ name: "",
2273
+ type: "address",
2274
+ internalType: "contract ISwapRouter"
2275
+ }],
2276
+ stateMutability: "view"
2277
+ },
2278
+ {
2279
+ type: "function",
2280
+ name: "tickSpacing",
2281
+ inputs: [],
2282
+ outputs: [{
2283
+ name: "",
2284
+ type: "int24",
2285
+ internalType: "int24"
2286
+ }],
2287
+ stateMutability: "view"
2288
+ },
2289
+ {
2290
+ type: "function",
2291
+ name: "token0",
2292
+ inputs: [],
2293
+ outputs: [{
2294
+ name: "",
2295
+ type: "address",
2296
+ internalType: "contract IERC20"
2297
+ }],
2298
+ stateMutability: "view"
2299
+ },
2300
+ {
2301
+ type: "function",
2302
+ name: "token1",
2303
+ inputs: [],
2304
+ outputs: [{
2305
+ name: "",
2306
+ type: "address",
2307
+ internalType: "contract IERC20"
2308
+ }],
2309
+ stateMutability: "view"
2310
+ },
2311
+ {
2312
+ type: "function",
2313
+ name: "transferOwnership",
2314
+ inputs: [{
2315
+ name: "newOwner",
2316
+ type: "address",
2317
+ internalType: "address"
2318
+ }],
2319
+ outputs: [],
2320
+ stateMutability: "nonpayable"
2321
+ },
2322
+ {
2323
+ type: "function",
2324
+ name: "updateDurationBounds",
2325
+ inputs: [{
2326
+ name: "_minDuration",
2327
+ type: "uint64",
2328
+ internalType: "uint64"
2329
+ }, {
2330
+ name: "_maxDuration",
2331
+ type: "uint64",
2332
+ internalType: "uint64"
2333
+ }],
2334
+ outputs: [],
2335
+ stateMutability: "nonpayable"
2336
+ },
2337
+ {
2338
+ type: "function",
2339
+ name: "updateOptionAmountBounds",
2340
+ inputs: [{
2341
+ name: "_minOptionAmount",
2342
+ type: "uint256",
2343
+ internalType: "uint256"
2344
+ }, {
2345
+ name: "_maxOptionAmount",
2346
+ type: "uint256",
2347
+ internalType: "uint256"
2348
+ }],
2349
+ outputs: [],
2350
+ stateMutability: "nonpayable"
2351
+ },
2352
+ {
2353
+ type: "function",
2354
+ name: "vault",
2355
+ inputs: [],
2356
+ outputs: [{
2357
+ name: "",
2358
+ type: "address",
2359
+ internalType: "contract ITimelockVault"
2360
+ }],
2361
+ stateMutability: "view"
2362
+ },
2363
+ {
2364
+ type: "function",
2365
+ name: "withdrawTokens",
2366
+ inputs: [{
2367
+ name: "tokens",
2368
+ type: "address[]",
2369
+ internalType: "contract IERC20[]"
2370
+ }],
2371
+ outputs: [],
2372
+ stateMutability: "nonpayable"
2373
+ }
2374
+ ];
2375
+
2376
+ //#endregion
2377
+ export { erc20Abi, lensAbi, optionsMarketAbi, uniswapMathLensAbi };
2378
+ //# sourceMappingURL=optionsMarket-BsJTpwtl.js.map