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