sushi 6.0.11 → 6.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_cjs/evm/pool/sushiswap-v3/entities/NonfungiblePositionManager.js +1 -1
- package/_cjs/evm/pool/sushiswap-v3/entities/NonfungiblePositionManager.js.map +1 -1
- package/_cjs/generic/format/number.js +4 -3
- package/_cjs/generic/format/number.js.map +1 -1
- package/_esm/evm/pool/sushiswap-v3/entities/NonfungiblePositionManager.js +1 -1
- package/_esm/evm/pool/sushiswap-v3/entities/NonfungiblePositionManager.js.map +1 -1
- package/_esm/generic/format/number.js +4 -3
- package/_esm/generic/format/number.js.map +1 -1
- package/evm/abi/balanceOfAbi/balanceOfAbi_balanceOf.ts +11 -0
- package/evm/abi/balanceOfAbi/index.ts +1 -0
- package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_DOMAIN_SEPARATOR.ts +9 -0
- package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_balanceOf.ts +12 -0
- package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_batch.ts +15 -0
- package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_batchFlashLoan.ts +19 -0
- package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_claimOwnership.ts +9 -0
- package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_deploy.ts +15 -0
- package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_deposit.ts +18 -0
- package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_flashLoan.ts +19 -0
- package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_harvest.ts +13 -0
- package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_masterContractApproved.ts +12 -0
- package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_masterContractOf.ts +9 -0
- package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_nonces.ts +9 -0
- package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_owner.ts +9 -0
- package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_pendingOwner.ts +9 -0
- package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_pendingStrategy.ts +11 -0
- package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_permitToken.ts +18 -0
- package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_registerProtocol.ts +9 -0
- package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_setMasterContractApproval.ts +16 -0
- package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_setStrategy.ts +16 -0
- package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_setStrategyTargetPercentage.ts +12 -0
- package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_strategy.ts +11 -0
- package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_strategyData.ts +13 -0
- package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_toAmount.ts +13 -0
- package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_toShare.ts +13 -0
- package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_totals.ts +12 -0
- package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_transfer.ts +14 -0
- package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_transferMultiple.ts +14 -0
- package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_transferOwnership.ts +13 -0
- package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_whitelistMasterContract.ts +12 -0
- package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_whitelistedMasterContracts.ts +9 -0
- package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_withdraw.ts +18 -0
- package/evm/abi/bentoBoxV1Abi/index.ts +31 -0
- package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_MASTERCHEF_V2.ts +9 -0
- package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_claimOwnership.ts +9 -0
- package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_init.ts +9 -0
- package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_masterLpToken.ts +9 -0
- package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_onSushiReward.ts +15 -0
- package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_owner.ts +9 -0
- package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_pendingOwner.ts +9 -0
- package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_pendingToken.ts +12 -0
- package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_pendingTokens.ts +20 -0
- package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_poolInfo.ts +12 -0
- package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_reclaimTokens.ts +13 -0
- package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_rewardPerSecond.ts +9 -0
- package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_rewardRates.ts +9 -0
- package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_rewardToken.ts +9 -0
- package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_setRewardPerSecond.ts +11 -0
- package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_transferOwnership.ts +13 -0
- package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_updatePool.ts +23 -0
- package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_userInfo.ts +16 -0
- package/evm/abi/cloneRewarderTimeAbi/index.ts +18 -0
- package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_add.ts +12 -0
- package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_claimOwnership.ts +9 -0
- package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_massUpdatePools.ts +9 -0
- package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_onSushiReward.ts +15 -0
- package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_owner.ts +9 -0
- package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_pendingOwner.ts +9 -0
- package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_pendingToken.ts +12 -0
- package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_pendingTokens.ts +20 -0
- package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_poolIds.ts +9 -0
- package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_poolInfo.ts +13 -0
- package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_poolLength.ts +9 -0
- package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_reclaimTokens.ts +13 -0
- package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_rewardPerSecond.ts +9 -0
- package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_set.ts +12 -0
- package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_setRewardPerSecond.ts +11 -0
- package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_transferOwnership.ts +13 -0
- package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_updatePool.ts +24 -0
- package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_userInfo.ts +16 -0
- package/evm/abi/complexRewarderTimeAbi/index.ts +18 -0
- package/evm/abi/eip2612Abi/eip2612Abi_DOMAIN_SEPARATOR.ts +11 -0
- package/evm/abi/eip2612Abi/eip2612Abi_nonces.ts +11 -0
- package/evm/abi/eip2612Abi/index.ts +2 -0
- package/evm/abi/erc20Abi/erc20Abi_allowance.ts +14 -0
- package/evm/abi/erc20Abi/erc20Abi_approve.ts +14 -0
- package/evm/abi/erc20Abi/erc20Abi_balanceOf.ts +11 -0
- package/evm/abi/erc20Abi/erc20Abi_decimals.ts +11 -0
- package/evm/abi/erc20Abi/erc20Abi_name.ts +11 -0
- package/evm/abi/erc20Abi/erc20Abi_symbol.ts +11 -0
- package/evm/abi/erc20Abi/erc20Abi_totalSupply.ts +11 -0
- package/evm/abi/erc20Abi/erc20Abi_transfer.ts +14 -0
- package/evm/abi/erc20Abi/erc20Abi_transferFrom.ts +15 -0
- package/evm/abi/erc20Abi/index.ts +9 -0
- package/evm/abi/furoStreamAbi/furoStreamAbi_approve.ts +12 -0
- package/evm/abi/furoStreamAbi/furoStreamAbi_balanceOf.ts +9 -0
- package/evm/abi/furoStreamAbi/furoStreamAbi_bentoBox.ts +11 -0
- package/evm/abi/furoStreamAbi/furoStreamAbi_cancelStream.ts +15 -0
- package/evm/abi/furoStreamAbi/furoStreamAbi_claimOwnership.ts +9 -0
- package/evm/abi/furoStreamAbi/furoStreamAbi_createStream.ts +19 -0
- package/evm/abi/furoStreamAbi/furoStreamAbi_getApproved.ts +9 -0
- package/evm/abi/furoStreamAbi/furoStreamAbi_getStream.ts +23 -0
- package/evm/abi/furoStreamAbi/furoStreamAbi_isApprovedForAll.ts +12 -0
- package/evm/abi/furoStreamAbi/furoStreamAbi_multicall.ts +9 -0
- package/evm/abi/furoStreamAbi/furoStreamAbi_name.ts +9 -0
- package/evm/abi/furoStreamAbi/furoStreamAbi_owner.ts +9 -0
- package/evm/abi/furoStreamAbi/furoStreamAbi_ownerOf.ts +9 -0
- package/evm/abi/furoStreamAbi/furoStreamAbi_pendingOwner.ts +9 -0
- package/evm/abi/furoStreamAbi/furoStreamAbi_safeTransferFrom.ts +14 -0
- package/evm/abi/furoStreamAbi/furoStreamAbi_setApprovalForAll.ts +12 -0
- package/evm/abi/furoStreamAbi/furoStreamAbi_setBentoBoxApproval.ts +15 -0
- package/evm/abi/furoStreamAbi/furoStreamAbi_setTokenURIFetcher.ts +9 -0
- package/evm/abi/furoStreamAbi/furoStreamAbi_streamBalanceOf.ts +12 -0
- package/evm/abi/furoStreamAbi/furoStreamAbi_streamIds.ts +9 -0
- package/evm/abi/furoStreamAbi/furoStreamAbi_streams.ts +16 -0
- package/evm/abi/furoStreamAbi/furoStreamAbi_supportsInterface.ts +9 -0
- package/evm/abi/furoStreamAbi/furoStreamAbi_symbol.ts +9 -0
- package/evm/abi/furoStreamAbi/furoStreamAbi_tokenURI.ts +9 -0
- package/evm/abi/furoStreamAbi/furoStreamAbi_tokenURIFetcher.ts +9 -0
- package/evm/abi/furoStreamAbi/furoStreamAbi_transferFrom.ts +13 -0
- package/evm/abi/furoStreamAbi/furoStreamAbi_transferOwnership.ts +13 -0
- package/evm/abi/furoStreamAbi/furoStreamAbi_updateSender.ts +12 -0
- package/evm/abi/furoStreamAbi/furoStreamAbi_updateStream.ts +16 -0
- package/evm/abi/furoStreamAbi/furoStreamAbi_wETH.ts +9 -0
- package/evm/abi/furoStreamAbi/furoStreamAbi_withdrawFromStream.ts +18 -0
- package/evm/abi/furoStreamAbi/index.ts +32 -0
- package/evm/abi/furoStreamRouterAbi/furoStreamRouterAbi_bentoBox.ts +11 -0
- package/evm/abi/furoStreamRouterAbi/furoStreamRouterAbi_createStream.ts +20 -0
- package/evm/abi/furoStreamRouterAbi/furoStreamRouterAbi_furoStream.ts +11 -0
- package/evm/abi/furoStreamRouterAbi/furoStreamRouterAbi_multicall.ts +9 -0
- package/evm/abi/furoStreamRouterAbi/furoStreamRouterAbi_setBentoBoxApproval.ts +15 -0
- package/evm/abi/furoStreamRouterAbi/furoStreamRouterAbi_wETH.ts +9 -0
- package/evm/abi/furoStreamRouterAbi/index.ts +6 -0
- package/evm/abi/furoVestingAbi/furoVestingAbi_PERCENTAGE_PRECISION.ts +9 -0
- package/evm/abi/furoVestingAbi/furoVestingAbi_approve.ts +12 -0
- package/evm/abi/furoVestingAbi/furoVestingAbi_balanceOf.ts +9 -0
- package/evm/abi/furoVestingAbi/furoVestingAbi_bentoBox.ts +11 -0
- package/evm/abi/furoVestingAbi/furoVestingAbi_claimOwnership.ts +9 -0
- package/evm/abi/furoVestingAbi/furoVestingAbi_createVesting.ts +31 -0
- package/evm/abi/furoVestingAbi/furoVestingAbi_getApproved.ts +9 -0
- package/evm/abi/furoVestingAbi/furoVestingAbi_isApprovedForAll.ts +12 -0
- package/evm/abi/furoVestingAbi/furoVestingAbi_multicall.ts +9 -0
- package/evm/abi/furoVestingAbi/furoVestingAbi_name.ts +9 -0
- package/evm/abi/furoVestingAbi/furoVestingAbi_owner.ts +9 -0
- package/evm/abi/furoVestingAbi/furoVestingAbi_ownerOf.ts +9 -0
- package/evm/abi/furoVestingAbi/furoVestingAbi_pendingOwner.ts +9 -0
- package/evm/abi/furoVestingAbi/furoVestingAbi_safeTransferFrom.ts +14 -0
- package/evm/abi/furoVestingAbi/furoVestingAbi_setApprovalForAll.ts +12 -0
- package/evm/abi/furoVestingAbi/furoVestingAbi_setBentoBoxApproval.ts +15 -0
- package/evm/abi/furoVestingAbi/furoVestingAbi_setTokenURIFetcher.ts +9 -0
- package/evm/abi/furoVestingAbi/furoVestingAbi_stopVesting.ts +12 -0
- package/evm/abi/furoVestingAbi/furoVestingAbi_supportsInterface.ts +9 -0
- package/evm/abi/furoVestingAbi/furoVestingAbi_symbol.ts +9 -0
- package/evm/abi/furoVestingAbi/furoVestingAbi_tokenURI.ts +9 -0
- package/evm/abi/furoVestingAbi/furoVestingAbi_tokenURIFetcher.ts +9 -0
- package/evm/abi/furoVestingAbi/furoVestingAbi_transferFrom.ts +13 -0
- package/evm/abi/furoVestingAbi/furoVestingAbi_transferOwnership.ts +13 -0
- package/evm/abi/furoVestingAbi/furoVestingAbi_updateOwner.ts +12 -0
- package/evm/abi/furoVestingAbi/furoVestingAbi_vestBalance.ts +9 -0
- package/evm/abi/furoVestingAbi/furoVestingAbi_vestIds.ts +9 -0
- package/evm/abi/furoVestingAbi/furoVestingAbi_vests.ts +19 -0
- package/evm/abi/furoVestingAbi/furoVestingAbi_wETH.ts +9 -0
- package/evm/abi/furoVestingAbi/furoVestingAbi_withdraw.ts +13 -0
- package/evm/abi/furoVestingAbi/index.ts +31 -0
- package/evm/abi/furoVestingRouterAbi/furoVestingRouterAbi_bentoBox.ts +11 -0
- package/evm/abi/furoVestingRouterAbi/furoVestingRouterAbi_createVesting.ts +32 -0
- package/evm/abi/furoVestingRouterAbi/furoVestingRouterAbi_furoVesting.ts +11 -0
- package/evm/abi/furoVestingRouterAbi/furoVestingRouterAbi_multicall.ts +9 -0
- package/evm/abi/furoVestingRouterAbi/furoVestingRouterAbi_setBentoBoxApproval.ts +15 -0
- package/evm/abi/furoVestingRouterAbi/furoVestingRouterAbi_wETH.ts +9 -0
- package/evm/abi/furoVestingRouterAbi/index.ts +6 -0
- package/evm/abi/gasDataArbitrumAbi/gasDataArbitrumAbi_getPricesInWei.ts +16 -0
- package/evm/abi/gasDataArbitrumAbi/index.ts +1 -0
- package/evm/abi/gasPriceOracleAbi/gasPriceOracleAbi_decimals.ts +9 -0
- package/evm/abi/gasPriceOracleAbi/gasPriceOracleAbi_gasPrice.ts +9 -0
- package/evm/abi/gasPriceOracleAbi/gasPriceOracleAbi_getL1Fee.ts +9 -0
- package/evm/abi/gasPriceOracleAbi/gasPriceOracleAbi_getL1GasUsed.ts +9 -0
- package/evm/abi/gasPriceOracleAbi/gasPriceOracleAbi_l1BaseFee.ts +9 -0
- package/evm/abi/gasPriceOracleAbi/gasPriceOracleAbi_overhead.ts +9 -0
- package/evm/abi/gasPriceOracleAbi/gasPriceOracleAbi_owner.ts +9 -0
- package/evm/abi/gasPriceOracleAbi/gasPriceOracleAbi_renounceOwnership.ts +9 -0
- package/evm/abi/gasPriceOracleAbi/gasPriceOracleAbi_scalar.ts +9 -0
- package/evm/abi/gasPriceOracleAbi/gasPriceOracleAbi_setDecimals.ts +9 -0
- package/evm/abi/gasPriceOracleAbi/gasPriceOracleAbi_setGasPrice.ts +9 -0
- package/evm/abi/gasPriceOracleAbi/gasPriceOracleAbi_setL1BaseFee.ts +9 -0
- package/evm/abi/gasPriceOracleAbi/gasPriceOracleAbi_setOverhead.ts +9 -0
- package/evm/abi/gasPriceOracleAbi/gasPriceOracleAbi_setScalar.ts +9 -0
- package/evm/abi/gasPriceOracleAbi/gasPriceOracleAbi_transferOwnership.ts +9 -0
- package/evm/abi/gasPriceOracleAbi/index.ts +15 -0
- package/evm/abi/getPoolsAbi/getPoolsAbi_getPools.ts +16 -0
- package/evm/abi/getPoolsAbi/index.ts +1 -0
- package/evm/abi/getStableReservesAbi/getStableReservesAbi_getReserves.ts +12 -0
- package/evm/abi/getStableReservesAbi/index.ts +1 -0
- package/evm/abi/index.ts +60 -0
- package/evm/abi/masterChefV1Abi/index.ts +26 -0
- package/evm/abi/masterChefV1Abi/masterChefV1Abi_BONUS_MULTIPLIER.ts +9 -0
- package/evm/abi/masterChefV1Abi/masterChefV1Abi_add.ts +13 -0
- package/evm/abi/masterChefV1Abi/masterChefV1Abi_bonusEndBlock.ts +9 -0
- package/evm/abi/masterChefV1Abi/masterChefV1Abi_deposit.ts +12 -0
- package/evm/abi/masterChefV1Abi/masterChefV1Abi_dev.ts +9 -0
- package/evm/abi/masterChefV1Abi/masterChefV1Abi_devaddr.ts +9 -0
- package/evm/abi/masterChefV1Abi/masterChefV1Abi_emergencyWithdraw.ts +9 -0
- package/evm/abi/masterChefV1Abi/masterChefV1Abi_getMultiplier.ts +12 -0
- package/evm/abi/masterChefV1Abi/masterChefV1Abi_massUpdatePools.ts +9 -0
- package/evm/abi/masterChefV1Abi/masterChefV1Abi_migrate.ts +9 -0
- package/evm/abi/masterChefV1Abi/masterChefV1Abi_migrator.ts +11 -0
- package/evm/abi/masterChefV1Abi/masterChefV1Abi_owner.ts +9 -0
- package/evm/abi/masterChefV1Abi/masterChefV1Abi_pendingSushi.ts +12 -0
- package/evm/abi/masterChefV1Abi/masterChefV1Abi_poolInfo.ts +14 -0
- package/evm/abi/masterChefV1Abi/masterChefV1Abi_poolLength.ts +9 -0
- package/evm/abi/masterChefV1Abi/masterChefV1Abi_renounceOwnership.ts +9 -0
- package/evm/abi/masterChefV1Abi/masterChefV1Abi_set.ts +13 -0
- package/evm/abi/masterChefV1Abi/masterChefV1Abi_setMigrator.ts +15 -0
- package/evm/abi/masterChefV1Abi/masterChefV1Abi_startBlock.ts +9 -0
- package/evm/abi/masterChefV1Abi/masterChefV1Abi_sushi.ts +11 -0
- package/evm/abi/masterChefV1Abi/masterChefV1Abi_sushiPerBlock.ts +9 -0
- package/evm/abi/masterChefV1Abi/masterChefV1Abi_totalAllocPoint.ts +9 -0
- package/evm/abi/masterChefV1Abi/masterChefV1Abi_transferOwnership.ts +9 -0
- package/evm/abi/masterChefV1Abi/masterChefV1Abi_updatePool.ts +9 -0
- package/evm/abi/masterChefV1Abi/masterChefV1Abi_userInfo.ts +15 -0
- package/evm/abi/masterChefV1Abi/masterChefV1Abi_withdraw.ts +12 -0
- package/evm/abi/masterChefV2Abi/index.ts +31 -0
- package/evm/abi/masterChefV2Abi/masterChefV2Abi_MASTER_CHEF.ts +11 -0
- package/evm/abi/masterChefV2Abi/masterChefV2Abi_MASTER_PID.ts +9 -0
- package/evm/abi/masterChefV2Abi/masterChefV2Abi_SUSHI.ts +9 -0
- package/evm/abi/masterChefV2Abi/masterChefV2Abi_add.ts +17 -0
- package/evm/abi/masterChefV2Abi/masterChefV2Abi_batch.ts +15 -0
- package/evm/abi/masterChefV2Abi/masterChefV2Abi_claimOwnership.ts +9 -0
- package/evm/abi/masterChefV2Abi/masterChefV2Abi_deposit.ts +13 -0
- package/evm/abi/masterChefV2Abi/masterChefV2Abi_emergencyWithdraw.ts +12 -0
- package/evm/abi/masterChefV2Abi/masterChefV2Abi_harvest.ts +12 -0
- package/evm/abi/masterChefV2Abi/masterChefV2Abi_harvestFromMasterChef.ts +9 -0
- package/evm/abi/masterChefV2Abi/masterChefV2Abi_init.ts +11 -0
- package/evm/abi/masterChefV2Abi/masterChefV2Abi_lpToken.ts +9 -0
- package/evm/abi/masterChefV2Abi/masterChefV2Abi_massUpdatePools.ts +9 -0
- package/evm/abi/masterChefV2Abi/masterChefV2Abi_migrate.ts +9 -0
- package/evm/abi/masterChefV2Abi/masterChefV2Abi_migrator.ts +11 -0
- package/evm/abi/masterChefV2Abi/masterChefV2Abi_owner.ts +9 -0
- package/evm/abi/masterChefV2Abi/masterChefV2Abi_pendingOwner.ts +9 -0
- package/evm/abi/masterChefV2Abi/masterChefV2Abi_pendingSushi.ts +12 -0
- package/evm/abi/masterChefV2Abi/masterChefV2Abi_permitToken.ts +18 -0
- package/evm/abi/masterChefV2Abi/masterChefV2Abi_poolInfo.ts +13 -0
- package/evm/abi/masterChefV2Abi/masterChefV2Abi_poolLength.ts +9 -0
- package/evm/abi/masterChefV2Abi/masterChefV2Abi_rewarder.ts +11 -0
- package/evm/abi/masterChefV2Abi/masterChefV2Abi_set.ts +18 -0
- package/evm/abi/masterChefV2Abi/masterChefV2Abi_setMigrator.ts +15 -0
- package/evm/abi/masterChefV2Abi/masterChefV2Abi_sushiPerBlock.ts +9 -0
- package/evm/abi/masterChefV2Abi/masterChefV2Abi_totalAllocPoint.ts +9 -0
- package/evm/abi/masterChefV2Abi/masterChefV2Abi_transferOwnership.ts +13 -0
- package/evm/abi/masterChefV2Abi/masterChefV2Abi_updatePool.ts +24 -0
- package/evm/abi/masterChefV2Abi/masterChefV2Abi_userInfo.ts +15 -0
- package/evm/abi/masterChefV2Abi/masterChefV2Abi_withdraw.ts +13 -0
- package/evm/abi/masterChefV2Abi/masterChefV2Abi_withdrawAndHarvest.ts +13 -0
- package/evm/abi/miniChefAbi/index.ts +28 -0
- package/evm/abi/miniChefAbi/miniChefAbi_SUSHI.ts +9 -0
- package/evm/abi/miniChefAbi/miniChefAbi_add.ts +17 -0
- package/evm/abi/miniChefAbi/miniChefAbi_batch.ts +15 -0
- package/evm/abi/miniChefAbi/miniChefAbi_claimOwnership.ts +9 -0
- package/evm/abi/miniChefAbi/miniChefAbi_deposit.ts +13 -0
- package/evm/abi/miniChefAbi/miniChefAbi_emergencyWithdraw.ts +12 -0
- package/evm/abi/miniChefAbi/miniChefAbi_harvest.ts +12 -0
- package/evm/abi/miniChefAbi/miniChefAbi_lpToken.ts +9 -0
- package/evm/abi/miniChefAbi/miniChefAbi_massUpdatePools.ts +9 -0
- package/evm/abi/miniChefAbi/miniChefAbi_migrate.ts +9 -0
- package/evm/abi/miniChefAbi/miniChefAbi_migrator.ts +11 -0
- package/evm/abi/miniChefAbi/miniChefAbi_owner.ts +9 -0
- package/evm/abi/miniChefAbi/miniChefAbi_pendingOwner.ts +9 -0
- package/evm/abi/miniChefAbi/miniChefAbi_pendingSushi.ts +12 -0
- package/evm/abi/miniChefAbi/miniChefAbi_permitToken.ts +18 -0
- package/evm/abi/miniChefAbi/miniChefAbi_poolInfo.ts +13 -0
- package/evm/abi/miniChefAbi/miniChefAbi_poolLength.ts +9 -0
- package/evm/abi/miniChefAbi/miniChefAbi_rewarder.ts +11 -0
- package/evm/abi/miniChefAbi/miniChefAbi_set.ts +18 -0
- package/evm/abi/miniChefAbi/miniChefAbi_setMigrator.ts +15 -0
- package/evm/abi/miniChefAbi/miniChefAbi_setSushiPerSecond.ts +11 -0
- package/evm/abi/miniChefAbi/miniChefAbi_sushiPerSecond.ts +9 -0
- package/evm/abi/miniChefAbi/miniChefAbi_totalAllocPoint.ts +9 -0
- package/evm/abi/miniChefAbi/miniChefAbi_transferOwnership.ts +13 -0
- package/evm/abi/miniChefAbi/miniChefAbi_updatePool.ts +24 -0
- package/evm/abi/miniChefAbi/miniChefAbi_userInfo.ts +15 -0
- package/evm/abi/miniChefAbi/miniChefAbi_withdraw.ts +13 -0
- package/evm/abi/miniChefAbi/miniChefAbi_withdrawAndHarvest.ts +13 -0
- package/evm/abi/miniChefV2Abi/index.ts +28 -0
- package/evm/abi/miniChefV2Abi/miniChefV2Abi_SUSHI.ts +9 -0
- package/evm/abi/miniChefV2Abi/miniChefV2Abi_add.ts +17 -0
- package/evm/abi/miniChefV2Abi/miniChefV2Abi_batch.ts +15 -0
- package/evm/abi/miniChefV2Abi/miniChefV2Abi_claimOwnership.ts +9 -0
- package/evm/abi/miniChefV2Abi/miniChefV2Abi_deposit.ts +13 -0
- package/evm/abi/miniChefV2Abi/miniChefV2Abi_emergencyWithdraw.ts +12 -0
- package/evm/abi/miniChefV2Abi/miniChefV2Abi_harvest.ts +12 -0
- package/evm/abi/miniChefV2Abi/miniChefV2Abi_lpToken.ts +9 -0
- package/evm/abi/miniChefV2Abi/miniChefV2Abi_massUpdatePools.ts +9 -0
- package/evm/abi/miniChefV2Abi/miniChefV2Abi_migrate.ts +9 -0
- package/evm/abi/miniChefV2Abi/miniChefV2Abi_migrator.ts +11 -0
- package/evm/abi/miniChefV2Abi/miniChefV2Abi_owner.ts +9 -0
- package/evm/abi/miniChefV2Abi/miniChefV2Abi_pendingOwner.ts +9 -0
- package/evm/abi/miniChefV2Abi/miniChefV2Abi_pendingSushi.ts +12 -0
- package/evm/abi/miniChefV2Abi/miniChefV2Abi_permitToken.ts +18 -0
- package/evm/abi/miniChefV2Abi/miniChefV2Abi_poolInfo.ts +13 -0
- package/evm/abi/miniChefV2Abi/miniChefV2Abi_poolLength.ts +9 -0
- package/evm/abi/miniChefV2Abi/miniChefV2Abi_rewarder.ts +11 -0
- package/evm/abi/miniChefV2Abi/miniChefV2Abi_set.ts +18 -0
- package/evm/abi/miniChefV2Abi/miniChefV2Abi_setMigrator.ts +15 -0
- package/evm/abi/miniChefV2Abi/miniChefV2Abi_setSushiPerSecond.ts +11 -0
- package/evm/abi/miniChefV2Abi/miniChefV2Abi_sushiPerSecond.ts +9 -0
- package/evm/abi/miniChefV2Abi/miniChefV2Abi_totalAllocPoint.ts +9 -0
- package/evm/abi/miniChefV2Abi/miniChefV2Abi_transferOwnership.ts +13 -0
- package/evm/abi/miniChefV2Abi/miniChefV2Abi_updatePool.ts +24 -0
- package/evm/abi/miniChefV2Abi/miniChefV2Abi_userInfo.ts +15 -0
- package/evm/abi/miniChefV2Abi/miniChefV2Abi_withdraw.ts +13 -0
- package/evm/abi/miniChefV2Abi/miniChefV2Abi_withdrawAndHarvest.ts +13 -0
- package/evm/abi/multicall2Abi/index.ts +12 -0
- package/evm/abi/multicall2Abi/multicall2Abi_aggregate.ts +22 -0
- package/evm/abi/multicall2Abi/multicall2Abi_blockAndAggregate.ts +31 -0
- package/evm/abi/multicall2Abi/multicall2Abi_getBlockHash.ts +9 -0
- package/evm/abi/multicall2Abi/multicall2Abi_getBlockNumber.ts +11 -0
- package/evm/abi/multicall2Abi/multicall2Abi_getCurrentBlockCoinbase.ts +9 -0
- package/evm/abi/multicall2Abi/multicall2Abi_getCurrentBlockDifficulty.ts +9 -0
- package/evm/abi/multicall2Abi/multicall2Abi_getCurrentBlockGasLimit.ts +9 -0
- package/evm/abi/multicall2Abi/multicall2Abi_getCurrentBlockTimestamp.ts +9 -0
- package/evm/abi/multicall2Abi/multicall2Abi_getEthBalance.ts +9 -0
- package/evm/abi/multicall2Abi/multicall2Abi_getLastBlockHash.ts +9 -0
- package/evm/abi/multicall2Abi/multicall2Abi_tryAggregate.ts +30 -0
- package/evm/abi/multicall2Abi/multicall2Abi_tryBlockAndAggregate.ts +32 -0
- package/evm/abi/multicall3Abi/index.ts +16 -0
- package/evm/abi/multicall3Abi/multicall3Abi_aggregate.ts +22 -0
- package/evm/abi/multicall3Abi/multicall3Abi_aggregate3.ts +30 -0
- package/evm/abi/multicall3Abi/multicall3Abi_aggregate3Value.ts +31 -0
- package/evm/abi/multicall3Abi/multicall3Abi_blockAndAggregate.ts +31 -0
- package/evm/abi/multicall3Abi/multicall3Abi_getBasefee.ts +9 -0
- package/evm/abi/multicall3Abi/multicall3Abi_getBlockHash.ts +9 -0
- package/evm/abi/multicall3Abi/multicall3Abi_getBlockNumber.ts +11 -0
- package/evm/abi/multicall3Abi/multicall3Abi_getChainId.ts +9 -0
- package/evm/abi/multicall3Abi/multicall3Abi_getCurrentBlockCoinbase.ts +9 -0
- package/evm/abi/multicall3Abi/multicall3Abi_getCurrentBlockDifficulty.ts +9 -0
- package/evm/abi/multicall3Abi/multicall3Abi_getCurrentBlockGasLimit.ts +9 -0
- package/evm/abi/multicall3Abi/multicall3Abi_getCurrentBlockTimestamp.ts +9 -0
- package/evm/abi/multicall3Abi/multicall3Abi_getEthBalance.ts +9 -0
- package/evm/abi/multicall3Abi/multicall3Abi_getLastBlockHash.ts +9 -0
- package/evm/abi/multicall3Abi/multicall3Abi_tryAggregate.ts +30 -0
- package/evm/abi/multicall3Abi/multicall3Abi_tryBlockAndAggregate.ts +32 -0
- package/evm/abi/multicallAbi/index.ts +1 -0
- package/evm/abi/multicallAbi/multicallAbi_multicall.ts +9 -0
- package/evm/abi/nonfungiblePositionManagerAbi/index.ts +38 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_DOMAIN_SEPARATOR.ts +9 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_PERMIT_TYPEHASH.ts +9 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_WETH9.ts +9 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_approve.ts +12 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_balanceOf.ts +9 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_baseURI.ts +9 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_burn.ts +9 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_collect.ts +24 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_createAndInitializePoolIfNecessary.ts +15 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_decreaseLiquidity.ts +26 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_factory.ts +9 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_getApproved.ts +9 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_increaseLiquidity.ts +28 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_isApprovedForAll.ts +12 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_mint.ts +33 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_multicall.ts +9 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_name.ts +9 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_ownerOf.ts +9 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_permit.ts +16 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_positions.ts +30 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_refundETH.ts +9 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_safeTransferFrom.ts +37 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_selfPermit.ts +16 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_selfPermitAllowed.ts +16 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_selfPermitAllowedIfNecessary.ts +16 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_selfPermitIfNecessary.ts +16 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_setApprovalForAll.ts +12 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_supportsInterface.ts +9 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_sweepToken.ts +13 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_symbol.ts +9 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_tokenByIndex.ts +9 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_tokenOfOwnerByIndex.ts +12 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_tokenURI.ts +9 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_totalSupply.ts +9 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_transferFrom.ts +13 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_uniswapV3MintCallback.ts +13 -0
- package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_unwrapWETH9.ts +12 -0
- package/evm/abi/peripheryPaymentsWithFeeAbi/index.ts +5 -0
- package/evm/abi/peripheryPaymentsWithFeeAbi/peripheryPaymentsWithFeeAbi_refundETH.ts +9 -0
- package/evm/abi/peripheryPaymentsWithFeeAbi/peripheryPaymentsWithFeeAbi_sweepToken.ts +13 -0
- package/evm/abi/peripheryPaymentsWithFeeAbi/peripheryPaymentsWithFeeAbi_sweepTokenWithFee.ts +15 -0
- package/evm/abi/peripheryPaymentsWithFeeAbi/peripheryPaymentsWithFeeAbi_unwrapWETH9.ts +12 -0
- package/evm/abi/peripheryPaymentsWithFeeAbi/peripheryPaymentsWithFeeAbi_unwrapWETH9WithFee.ts +14 -0
- package/evm/abi/permit2Abi/index.ts +15 -0
- package/evm/abi/permit2Abi/permit2Abi_DOMAIN_SEPARATOR.ts +9 -0
- package/evm/abi/permit2Abi/permit2Abi_allowance.ts +17 -0
- package/evm/abi/permit2Abi/permit2Abi_approve.ts +14 -0
- package/evm/abi/permit2Abi/permit2Abi_invalidateNonces.ts +13 -0
- package/evm/abi/permit2Abi/permit2Abi_invalidateUnorderedNonces.ts +12 -0
- package/evm/abi/permit2Abi/permit2Abi_lockdown.ts +19 -0
- package/evm/abi/permit2Abi/permit2Abi_nonceBitmap.ts +12 -0
- package/evm/abi/permit2Abi/permit2Abi_permit.ts +32 -0
- package/evm/abi/permit2Abi/permit2Abi_permitTransferFrom.ts +39 -0
- package/evm/abi/permit2Abi/permit2Abi_permitWitnessTransferFrom.ts +41 -0
- package/evm/abi/permit2Abi/permit2Abi_transferFrom.ts +14 -0
- package/evm/abi/poolsCountAbi/index.ts +1 -0
- package/evm/abi/poolsCountAbi/poolsCountAbi_poolsCount.ts +12 -0
- package/evm/abi/routeProcessor2Abi/index.ts +10 -0
- package/evm/abi/routeProcessor2Abi/routeProcessor2Abi_bentoBox.ts +11 -0
- package/evm/abi/routeProcessor2Abi/routeProcessor2Abi_owner.ts +9 -0
- package/evm/abi/routeProcessor2Abi/routeProcessor2Abi_pause.ts +9 -0
- package/evm/abi/routeProcessor2Abi/routeProcessor2Abi_processRoute.ts +16 -0
- package/evm/abi/routeProcessor2Abi/routeProcessor2Abi_renounceOwnership.ts +9 -0
- package/evm/abi/routeProcessor2Abi/routeProcessor2Abi_resume.ts +9 -0
- package/evm/abi/routeProcessor2Abi/routeProcessor2Abi_setPriviledge.ts +12 -0
- package/evm/abi/routeProcessor2Abi/routeProcessor2Abi_transferOwnership.ts +9 -0
- package/evm/abi/routeProcessor2Abi/routeProcessor2Abi_transferValueAndprocessRoute.ts +22 -0
- package/evm/abi/routeProcessor2Abi/routeProcessor2Abi_uniswapV3SwapCallback.ts +13 -0
- package/evm/abi/routeProcessor3Abi/index.ts +10 -0
- package/evm/abi/routeProcessor3Abi/routeProcessor3Abi_bentoBox.ts +11 -0
- package/evm/abi/routeProcessor3Abi/routeProcessor3Abi_owner.ts +9 -0
- package/evm/abi/routeProcessor3Abi/routeProcessor3Abi_pause.ts +9 -0
- package/evm/abi/routeProcessor3Abi/routeProcessor3Abi_processRoute.ts +16 -0
- package/evm/abi/routeProcessor3Abi/routeProcessor3Abi_renounceOwnership.ts +9 -0
- package/evm/abi/routeProcessor3Abi/routeProcessor3Abi_resume.ts +9 -0
- package/evm/abi/routeProcessor3Abi/routeProcessor3Abi_setPriviledge.ts +12 -0
- package/evm/abi/routeProcessor3Abi/routeProcessor3Abi_transferOwnership.ts +9 -0
- package/evm/abi/routeProcessor3Abi/routeProcessor3Abi_transferValueAndprocessRoute.ts +22 -0
- package/evm/abi/routeProcessor3Abi/routeProcessor3Abi_uniswapV3SwapCallback.ts +13 -0
- package/evm/abi/routeProcessor3_1Abi/index.ts +10 -0
- package/evm/abi/routeProcessor3_1Abi/routeProcessor3_1Abi_bentoBox.ts +11 -0
- package/evm/abi/routeProcessor3_1Abi/routeProcessor3_1Abi_owner.ts +9 -0
- package/evm/abi/routeProcessor3_1Abi/routeProcessor3_1Abi_pause.ts +9 -0
- package/evm/abi/routeProcessor3_1Abi/routeProcessor3_1Abi_processRoute.ts +16 -0
- package/evm/abi/routeProcessor3_1Abi/routeProcessor3_1Abi_renounceOwnership.ts +9 -0
- package/evm/abi/routeProcessor3_1Abi/routeProcessor3_1Abi_resume.ts +9 -0
- package/evm/abi/routeProcessor3_1Abi/routeProcessor3_1Abi_setPriviledge.ts +12 -0
- package/evm/abi/routeProcessor3_1Abi/routeProcessor3_1Abi_transferOwnership.ts +9 -0
- package/evm/abi/routeProcessor3_1Abi/routeProcessor3_1Abi_transferValueAndprocessRoute.ts +22 -0
- package/evm/abi/routeProcessor3_1Abi/routeProcessor3_1Abi_uniswapV3SwapCallback.ts +13 -0
- package/evm/abi/routeProcessor4Abi/index.ts +13 -0
- package/evm/abi/routeProcessor4Abi/routeProcessor4Abi_algebraSwapCallback.ts +13 -0
- package/evm/abi/routeProcessor4Abi/routeProcessor4Abi_bentoBox.ts +11 -0
- package/evm/abi/routeProcessor4Abi/routeProcessor4Abi_owner.ts +9 -0
- package/evm/abi/routeProcessor4Abi/routeProcessor4Abi_pancakeV3SwapCallback.ts +13 -0
- package/evm/abi/routeProcessor4Abi/routeProcessor4Abi_pause.ts +9 -0
- package/evm/abi/routeProcessor4Abi/routeProcessor4Abi_priviledgedUsers.ts +9 -0
- package/evm/abi/routeProcessor4Abi/routeProcessor4Abi_processRoute.ts +16 -0
- package/evm/abi/routeProcessor4Abi/routeProcessor4Abi_renounceOwnership.ts +9 -0
- package/evm/abi/routeProcessor4Abi/routeProcessor4Abi_resume.ts +9 -0
- package/evm/abi/routeProcessor4Abi/routeProcessor4Abi_setPriviledge.ts +12 -0
- package/evm/abi/routeProcessor4Abi/routeProcessor4Abi_transferOwnership.ts +9 -0
- package/evm/abi/routeProcessor4Abi/routeProcessor4Abi_transferValueAndprocessRoute.ts +22 -0
- package/evm/abi/routeProcessor4Abi/routeProcessor4Abi_uniswapV3SwapCallback.ts +13 -0
- package/evm/abi/routeProcessor5Abi/index.ts +15 -0
- package/evm/abi/routeProcessor5Abi/routeProcessor5Abi_algebraSwapCallback.ts +13 -0
- package/evm/abi/routeProcessor5Abi/routeProcessor5Abi_bentoBox.ts +11 -0
- package/evm/abi/routeProcessor5Abi/routeProcessor5Abi_owner.ts +9 -0
- package/evm/abi/routeProcessor5Abi/routeProcessor5Abi_pancakeV3SwapCallback.ts +13 -0
- package/evm/abi/routeProcessor5Abi/routeProcessor5Abi_pause.ts +9 -0
- package/evm/abi/routeProcessor5Abi/routeProcessor5Abi_priviledgedUsers.ts +9 -0
- package/evm/abi/routeProcessor5Abi/routeProcessor5Abi_processRoute.ts +16 -0
- package/evm/abi/routeProcessor5Abi/routeProcessor5Abi_processRouteWithTransferValueInput.ts +22 -0
- package/evm/abi/routeProcessor5Abi/routeProcessor5Abi_processRouteWithTransferValueOutput.ts +22 -0
- package/evm/abi/routeProcessor5Abi/routeProcessor5Abi_renounceOwnership.ts +9 -0
- package/evm/abi/routeProcessor5Abi/routeProcessor5Abi_resume.ts +9 -0
- package/evm/abi/routeProcessor5Abi/routeProcessor5Abi_setPriviledge.ts +12 -0
- package/evm/abi/routeProcessor5Abi/routeProcessor5Abi_transferOwnership.ts +9 -0
- package/evm/abi/routeProcessor5Abi/routeProcessor5Abi_transferValueAndprocessRoute.ts +18 -0
- package/evm/abi/routeProcessor5Abi/routeProcessor5Abi_uniswapV3SwapCallback.ts +13 -0
- package/evm/abi/routeProcessorAbi/index.ts +3 -0
- package/evm/abi/routeProcessorAbi/routeProcessorAbi_bentoBox.ts +11 -0
- package/evm/abi/routeProcessorAbi/routeProcessorAbi_processRoute.ts +16 -0
- package/evm/abi/routeProcessorAbi/routeProcessorAbi_transferValueAndprocessRoute.ts +22 -0
- package/evm/abi/selfPermitAbi/index.ts +4 -0
- package/evm/abi/selfPermitAbi/selfPermitAbi_selfPermit.ts +16 -0
- package/evm/abi/selfPermitAbi/selfPermitAbi_selfPermitAllowed.ts +16 -0
- package/evm/abi/selfPermitAbi/selfPermitAbi_selfPermitAllowedIfNecessary.ts +16 -0
- package/evm/abi/selfPermitAbi/selfPermitAbi_selfPermitIfNecessary.ts +16 -0
- package/evm/abi/slot0Abi/index.ts +1 -0
- package/evm/abi/slot0Abi/slot0Abi_slot0.ts +25 -0
- package/evm/abi/splitter.ts +53 -0
- package/evm/abi/squidAdapterAbi/index.ts +5 -0
- package/evm/abi/squidAdapterAbi/squidAdapterAbi_adapterBridge.ts +14 -0
- package/evm/abi/squidAdapterAbi/squidAdapterAbi_executePayload.ts +13 -0
- package/evm/abi/squidAdapterAbi/squidAdapterAbi_sendMessage.ts +9 -0
- package/evm/abi/squidAdapterAbi/squidAdapterAbi_squidRouter.ts +9 -0
- package/evm/abi/squidAdapterAbi/squidAdapterAbi_swap.ts +14 -0
- package/evm/abi/squidRouterAbi/index.ts +28 -0
- package/evm/abi/squidRouterAbi/squidRouterAbi.ts +622 -0
- package/evm/abi/squidRouterAbi/squidRouterAbi_acceptOwnership.ts +9 -0
- package/evm/abi/squidRouterAbi/squidRouterAbi_acceptPauser.ts +9 -0
- package/evm/abi/squidRouterAbi/squidRouterAbi_bridgeCall.ts +17 -0
- package/evm/abi/squidRouterAbi/squidRouterAbi_callBridge.ts +31 -0
- package/evm/abi/squidRouterAbi/squidRouterAbi_callBridgeCall.ts +34 -0
- package/evm/abi/squidRouterAbi/squidRouterAbi_contractId.ts +9 -0
- package/evm/abi/squidRouterAbi/squidRouterAbi_execute.ts +14 -0
- package/evm/abi/squidRouterAbi/squidRouterAbi_executeWithToken.ts +16 -0
- package/evm/abi/squidRouterAbi/squidRouterAbi_expressExecute.ts +14 -0
- package/evm/abi/squidRouterAbi/squidRouterAbi_expressExecuteWithToken.ts +16 -0
- package/evm/abi/squidRouterAbi/squidRouterAbi_fundAndRunMulticall.ts +28 -0
- package/evm/abi/squidRouterAbi/squidRouterAbi_gateway.ts +11 -0
- package/evm/abi/squidRouterAbi/squidRouterAbi_getExpressExecutor.ts +16 -0
- package/evm/abi/squidRouterAbi/squidRouterAbi_getExpressExecutorWithToken.ts +18 -0
- package/evm/abi/squidRouterAbi/squidRouterAbi_implementation.ts +11 -0
- package/evm/abi/squidRouterAbi/squidRouterAbi_owner.ts +9 -0
- package/evm/abi/squidRouterAbi/squidRouterAbi_pause.ts +9 -0
- package/evm/abi/squidRouterAbi/squidRouterAbi_paused.ts +9 -0
- package/evm/abi/squidRouterAbi/squidRouterAbi_pauser.ts +9 -0
- package/evm/abi/squidRouterAbi/squidRouterAbi_pendingOwner.ts +9 -0
- package/evm/abi/squidRouterAbi/squidRouterAbi_pendingPauser.ts +9 -0
- package/evm/abi/squidRouterAbi/squidRouterAbi_proposeOwnership.ts +9 -0
- package/evm/abi/squidRouterAbi/squidRouterAbi_setup.ts +9 -0
- package/evm/abi/squidRouterAbi/squidRouterAbi_transferOwnership.ts +9 -0
- package/evm/abi/squidRouterAbi/squidRouterAbi_unpause.ts +9 -0
- package/evm/abi/squidRouterAbi/squidRouterAbi_updatePauser.ts +9 -0
- package/evm/abi/squidRouterAbi/squidRouterAbi_upgrade.ts +17 -0
- package/evm/abi/stargateAdapterAbi/index.ts +11 -0
- package/evm/abi/stargateAdapterAbi/stargateAdapterAbi_adapterBridge.ts +14 -0
- package/evm/abi/stargateAdapterAbi/stargateAdapterAbi_executePayload.ts +13 -0
- package/evm/abi/stargateAdapterAbi/stargateAdapterAbi_getFee.ts +19 -0
- package/evm/abi/stargateAdapterAbi/stargateAdapterAbi_rp.ts +11 -0
- package/evm/abi/stargateAdapterAbi/stargateAdapterAbi_sendMessage.ts +9 -0
- package/evm/abi/stargateAdapterAbi/stargateAdapterAbi_sgReceive.ts +16 -0
- package/evm/abi/stargateAdapterAbi/stargateAdapterAbi_sgeth.ts +9 -0
- package/evm/abi/stargateAdapterAbi/stargateAdapterAbi_stargateRouter.ts +11 -0
- package/evm/abi/stargateAdapterAbi/stargateAdapterAbi_stargateWidget.ts +11 -0
- package/evm/abi/stargateAdapterAbi/stargateAdapterAbi_swap.ts +14 -0
- package/evm/abi/stargateAdapterAbi/stargateAdapterAbi_weth.ts +9 -0
- package/evm/abi/stargateFeeLibraryV03Abi/index.ts +16 -0
- package/evm/abi/stargateFeeLibraryV03Abi/stargateFeeLibraryV03Abi_DELTA_1.ts +9 -0
- package/evm/abi/stargateFeeLibraryV03Abi/stargateFeeLibraryV03Abi_DELTA_2.ts +9 -0
- package/evm/abi/stargateFeeLibraryV03Abi/stargateFeeLibraryV03Abi_DENOMINATOR.ts +9 -0
- package/evm/abi/stargateFeeLibraryV03Abi/stargateFeeLibraryV03Abi_LAMBDA_1.ts +9 -0
- package/evm/abi/stargateFeeLibraryV03Abi/stargateFeeLibraryV03Abi_LAMBDA_2.ts +9 -0
- package/evm/abi/stargateFeeLibraryV03Abi/stargateFeeLibraryV03Abi_LP_FEE.ts +9 -0
- package/evm/abi/stargateFeeLibraryV03Abi/stargateFeeLibraryV03Abi_PROTOCOL_FEE.ts +9 -0
- package/evm/abi/stargateFeeLibraryV03Abi/stargateFeeLibraryV03Abi_PROTOCOL_SUBSIDY.ts +9 -0
- package/evm/abi/stargateFeeLibraryV03Abi/stargateFeeLibraryV03Abi_factory.ts +9 -0
- package/evm/abi/stargateFeeLibraryV03Abi/stargateFeeLibraryV03Abi_getEquilibriumFee.ts +16 -0
- package/evm/abi/stargateFeeLibraryV03Abi/stargateFeeLibraryV03Abi_getFees.ts +29 -0
- package/evm/abi/stargateFeeLibraryV03Abi/stargateFeeLibraryV03Abi_getTrapezoidArea.ts +16 -0
- package/evm/abi/stargateFeeLibraryV03Abi/stargateFeeLibraryV03Abi_getVersion.ts +9 -0
- package/evm/abi/stargateFeeLibraryV03Abi/stargateFeeLibraryV03Abi_owner.ts +9 -0
- package/evm/abi/stargateFeeLibraryV03Abi/stargateFeeLibraryV03Abi_renounceOwnership.ts +9 -0
- package/evm/abi/stargateFeeLibraryV03Abi/stargateFeeLibraryV03Abi_transferOwnership.ts +9 -0
- package/evm/abi/stargatePoolAbi/index.ts +61 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_BP_DENOMINATOR.ts +9 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_DOMAIN_SEPARATOR.ts +9 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_PERMIT_TYPEHASH.ts +9 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_activateChainPath.ts +12 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_allowance.ts +12 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_amountLPtoLD.ts +9 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_approve.ts +12 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_balanceOf.ts +9 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_batched.ts +9 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_callDelta.ts +9 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_chainPathIndexLookup.ts +12 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_chainPaths.ts +18 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_convertRate.ts +9 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_createChainPath.ts +13 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_creditChainPath.ts +21 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_decimals.ts +9 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_decreaseAllowance.ts +12 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_defaultLPMode.ts +9 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_defaultSwapMode.ts +9 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_deltaCredit.ts +9 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_eqFeePool.ts +9 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_feeLibrary.ts +9 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_getChainPath.ts +28 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_getChainPathsLength.ts +9 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_increaseAllowance.ts +12 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_instantRedeemLocal.ts +13 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_localDecimals.ts +9 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_lpDeltaBP.ts +9 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_mint.ts +12 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_mintFeeBP.ts +9 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_mintFeeBalance.ts +9 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_name.ts +9 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_nonces.ts +9 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_permit.ts +17 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_poolId.ts +9 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_protocolFeeBalance.ts +9 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_redeemLocal.ts +15 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_redeemLocalCallback.ts +15 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_redeemLocalCheckOnRemote.ts +16 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_redeemRemote.ts +14 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_router.ts +9 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_sendCredits.ts +22 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_setDeltaParam.ts +15 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_setFee.ts +9 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_setFeeLibrary.ts +11 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_setSwapStop.ts +9 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_setWeightForChainPath.ts +13 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_sharedDecimals.ts +9 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_stopSwap.ts +9 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_swap.ts +30 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_swapDeltaBP.ts +9 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_swapRemote.ts +26 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_symbol.ts +9 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_token.ts +9 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_totalLiquidity.ts +9 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_totalSupply.ts +9 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_totalWeight.ts +9 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_transfer.ts +12 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_transferFrom.ts +13 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_withdrawMintFeeBalance.ts +9 -0
- package/evm/abi/stargatePoolAbi/stargatePoolAbi_withdrawProtocolFeeBalance.ts +9 -0
- package/evm/abi/sushiSwapV2FactoryAbi/index.ts +11 -0
- package/evm/abi/sushiSwapV2FactoryAbi/sushiSwapV2FactoryAbi_allPairs.ts +9 -0
- package/evm/abi/sushiSwapV2FactoryAbi/sushiSwapV2FactoryAbi_allPairsLength.ts +9 -0
- package/evm/abi/sushiSwapV2FactoryAbi/sushiSwapV2FactoryAbi_createPair.ts +12 -0
- package/evm/abi/sushiSwapV2FactoryAbi/sushiSwapV2FactoryAbi_feeTo.ts +9 -0
- package/evm/abi/sushiSwapV2FactoryAbi/sushiSwapV2FactoryAbi_feeToSetter.ts +9 -0
- package/evm/abi/sushiSwapV2FactoryAbi/sushiSwapV2FactoryAbi_getPair.ts +12 -0
- package/evm/abi/sushiSwapV2FactoryAbi/sushiSwapV2FactoryAbi_migrator.ts +9 -0
- package/evm/abi/sushiSwapV2FactoryAbi/sushiSwapV2FactoryAbi_pairCodeHash.ts +9 -0
- package/evm/abi/sushiSwapV2FactoryAbi/sushiSwapV2FactoryAbi_setFeeTo.ts +9 -0
- package/evm/abi/sushiSwapV2FactoryAbi/sushiSwapV2FactoryAbi_setFeeToSetter.ts +11 -0
- package/evm/abi/sushiSwapV2FactoryAbi/sushiSwapV2FactoryAbi_setMigrator.ts +9 -0
- package/evm/abi/sushiV3FactoryAbi/index.ts +7 -0
- package/evm/abi/sushiV3FactoryAbi/sushiV3FactoryAbi_createPool.ts +13 -0
- package/evm/abi/sushiV3FactoryAbi/sushiV3FactoryAbi_enableFeeAmount.ts +12 -0
- package/evm/abi/sushiV3FactoryAbi/sushiV3FactoryAbi_feeAmountTickSpacing.ts +9 -0
- package/evm/abi/sushiV3FactoryAbi/sushiV3FactoryAbi_getPool.ts +13 -0
- package/evm/abi/sushiV3FactoryAbi/sushiV3FactoryAbi_owner.ts +9 -0
- package/evm/abi/sushiV3FactoryAbi/sushiV3FactoryAbi_parameters.ts +15 -0
- package/evm/abi/sushiV3FactoryAbi/sushiV3FactoryAbi_setOwner.ts +9 -0
- package/evm/abi/sushiV3PoolAbi/index.ts +26 -0
- package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_burn.ts +16 -0
- package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_collect.ts +18 -0
- package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_collectProtocol.ts +16 -0
- package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_factory.ts +9 -0
- package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_fee.ts +9 -0
- package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_feeGrowthGlobal0X128.ts +9 -0
- package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_feeGrowthGlobal1X128.ts +9 -0
- package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_flash.ts +14 -0
- package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_increaseObservationCardinalityNext.ts +15 -0
- package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_initialize.ts +11 -0
- package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_liquidity.ts +9 -0
- package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_maxLiquidityPerTick.ts +9 -0
- package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_mint.ts +18 -0
- package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_observations.ts +18 -0
- package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_observe.ts +18 -0
- package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_positions.ts +23 -0
- package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_protocolFees.ts +12 -0
- package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_setFeeProtocol.ts +12 -0
- package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_slot0.ts +25 -0
- package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_snapshotCumulativesInside.ts +20 -0
- package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_swap.ts +18 -0
- package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_tickBitmap.ts +9 -0
- package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_tickSpacing.ts +9 -0
- package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_ticks.ts +30 -0
- package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_token0.ts +9 -0
- package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_token1.ts +9 -0
- package/evm/abi/sushiXSwap2Abi/index.ts +17 -0
- package/evm/abi/sushiXSwap2Abi/sushiXSwap2Abi_approvedAdapters.ts +9 -0
- package/evm/abi/sushiXSwap2Abi/sushiXSwap2Abi_bridge.ts +26 -0
- package/evm/abi/sushiXSwap2Abi/sushiXSwap2Abi_multicall.ts +9 -0
- package/evm/abi/sushiXSwap2Abi/sushiXSwap2Abi_owner.ts +9 -0
- package/evm/abi/sushiXSwap2Abi/sushiXSwap2Abi_pause.ts +9 -0
- package/evm/abi/sushiXSwap2Abi/sushiXSwap2Abi_renounceOwnership.ts +9 -0
- package/evm/abi/sushiXSwap2Abi/sushiXSwap2Abi_rescueTokens.ts +12 -0
- package/evm/abi/sushiXSwap2Abi/sushiXSwap2Abi_resume.ts +9 -0
- package/evm/abi/sushiXSwap2Abi/sushiXSwap2Abi_rp.ts +11 -0
- package/evm/abi/sushiXSwap2Abi/sushiXSwap2Abi_sendMessage.ts +12 -0
- package/evm/abi/sushiXSwap2Abi/sushiXSwap2Abi_setPrivileged.ts +12 -0
- package/evm/abi/sushiXSwap2Abi/sushiXSwap2Abi_swap.ts +9 -0
- package/evm/abi/sushiXSwap2Abi/sushiXSwap2Abi_swapAndBridge.ts +27 -0
- package/evm/abi/sushiXSwap2Abi/sushiXSwap2Abi_transferOwnership.ts +9 -0
- package/evm/abi/sushiXSwap2Abi/sushiXSwap2Abi_updateAdapterStatus.ts +12 -0
- package/evm/abi/sushiXSwap2Abi/sushiXSwap2Abi_updateRouteProcessor.ts +11 -0
- package/evm/abi/sushiXSwap2Abi/sushiXSwap2Abi_weth.ts +9 -0
- package/evm/abi/sushiXSwapAbi/index.ts +9 -0
- package/evm/abi/sushiXSwapAbi/sushiXSwapAbi_approveToStargateRouter.ts +11 -0
- package/evm/abi/sushiXSwapAbi/sushiXSwapAbi_bentoBox.ts +11 -0
- package/evm/abi/sushiXSwapAbi/sushiXSwapAbi_cook.ts +13 -0
- package/evm/abi/sushiXSwapAbi/sushiXSwapAbi_factory.ts +9 -0
- package/evm/abi/sushiXSwapAbi/sushiXSwapAbi_getFee.ts +19 -0
- package/evm/abi/sushiXSwapAbi/sushiXSwapAbi_pairCodeHash.ts +9 -0
- package/evm/abi/sushiXSwapAbi/sushiXSwapAbi_sgReceive.ts +16 -0
- package/evm/abi/sushiXSwapAbi/sushiXSwapAbi_stargateRouter.ts +11 -0
- package/evm/abi/sushiXSwapAbi/sushiXSwapAbi_stargateWidget.ts +11 -0
- package/evm/abi/swapFeeAbi/index.ts +1 -0
- package/evm/abi/swapFeeAbi/swapFeeAbi_swapFee.ts +9 -0
- package/evm/abi/tickLensAbi/index.ts +1 -0
- package/evm/abi/tickLensAbi/tickLensAbi_getPopulatedTicksInWord.ts +23 -0
- package/evm/abi/totalsAbi/index.ts +1 -0
- package/evm/abi/totalsAbi/totalsAbi_totals.ts +12 -0
- package/evm/abi/tridentConstantPoolAbi/index.ts +36 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_DOMAIN_SEPARATOR.ts +9 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_PERMIT_TYPEHASH.ts +9 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_allowance.ts +12 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_approve.ts +12 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_balanceOf.ts +9 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_barFee.ts +9 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_barFeeTo.ts +9 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_bento.ts +11 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_burn.ts +19 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_burnSingle.ts +9 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_decimals.ts +9 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_factory.ts +9 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_flashSwap.ts +9 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_getAmountIn.ts +11 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_getAmountOut.ts +11 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_getAssets.ts +9 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_getNativeReserves.ts +13 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_getReserves.ts +13 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_kLast.ts +9 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_masterDeployer.ts +11 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_mint.ts +9 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_name.ts +9 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_nonces.ts +9 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_permit.ts +17 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_poolIdentifier.ts +9 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_price0CumulativeLast.ts +9 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_price1CumulativeLast.ts +9 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_swap.ts +9 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_swapFee.ts +9 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_symbol.ts +9 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_token0.ts +9 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_token1.ts +9 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_totalSupply.ts +9 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_transfer.ts +12 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_transferFrom.ts +13 -0
- package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_updateBarParameters.ts +9 -0
- package/evm/abi/tridentConstantPoolFactoryAbi/index.ts +9 -0
- package/evm/abi/tridentConstantPoolFactoryAbi/tridentConstantPoolFactoryAbi_bytecodeHash.ts +9 -0
- package/evm/abi/tridentConstantPoolFactoryAbi/tridentConstantPoolFactoryAbi_calculatePoolAddress.ts +14 -0
- package/evm/abi/tridentConstantPoolFactoryAbi/tridentConstantPoolFactoryAbi_configAddress.ts +9 -0
- package/evm/abi/tridentConstantPoolFactoryAbi/tridentConstantPoolFactoryAbi_deployPool.ts +9 -0
- package/evm/abi/tridentConstantPoolFactoryAbi/tridentConstantPoolFactoryAbi_getDeployData.ts +12 -0
- package/evm/abi/tridentConstantPoolFactoryAbi/tridentConstantPoolFactoryAbi_getPools.ts +16 -0
- package/evm/abi/tridentConstantPoolFactoryAbi/tridentConstantPoolFactoryAbi_masterDeployer.ts +9 -0
- package/evm/abi/tridentConstantPoolFactoryAbi/tridentConstantPoolFactoryAbi_pools.ts +13 -0
- package/evm/abi/tridentConstantPoolFactoryAbi/tridentConstantPoolFactoryAbi_poolsCount.ts +12 -0
- package/evm/abi/tridentGetPoolsAbi/index.ts +1 -0
- package/evm/abi/tridentGetPoolsAbi/tridentGetPoolsAbi_getPools.ts +16 -0
- package/evm/abi/tridentPoolsCountAbi/index.ts +1 -0
- package/evm/abi/tridentPoolsCountAbi/tridentPoolsCountAbi_poolsCount.ts +12 -0
- package/evm/abi/tridentRouterAbi/index.ts +20 -0
- package/evm/abi/tridentRouterAbi/tridentRouterAbi_addLiquidity.ts +23 -0
- package/evm/abi/tridentRouterAbi/tridentRouterAbi_approveMasterContract.ts +13 -0
- package/evm/abi/tridentRouterAbi/tridentRouterAbi_bento.ts +11 -0
- package/evm/abi/tridentRouterAbi/tridentRouterAbi_burnLiquidity.ts +22 -0
- package/evm/abi/tridentRouterAbi/tridentRouterAbi_burnLiquiditySingle.ts +14 -0
- package/evm/abi/tridentRouterAbi/tridentRouterAbi_complexPath.ts +55 -0
- package/evm/abi/tridentRouterAbi/tridentRouterAbi_deployPool.ts +12 -0
- package/evm/abi/tridentRouterAbi/tridentRouterAbi_exactInput.ts +33 -0
- package/evm/abi/tridentRouterAbi/tridentRouterAbi_exactInputSingle.ts +26 -0
- package/evm/abi/tridentRouterAbi/tridentRouterAbi_exactInputSingleWithNativeToken.ts +26 -0
- package/evm/abi/tridentRouterAbi/tridentRouterAbi_exactInputWithNativeToken.ts +33 -0
- package/evm/abi/tridentRouterAbi/tridentRouterAbi_harvest.ts +12 -0
- package/evm/abi/tridentRouterAbi/tridentRouterAbi_masterDeployer.ts +11 -0
- package/evm/abi/tridentRouterAbi/tridentRouterAbi_multicall.ts +9 -0
- package/evm/abi/tridentRouterAbi/tridentRouterAbi_selfPermit.ts +16 -0
- package/evm/abi/tridentRouterAbi/tridentRouterAbi_selfPermitAllowed.ts +16 -0
- package/evm/abi/tridentRouterAbi/tridentRouterAbi_selfPermitAllowedIfNecessary.ts +16 -0
- package/evm/abi/tridentRouterAbi/tridentRouterAbi_selfPermitIfNecessary.ts +16 -0
- package/evm/abi/tridentRouterAbi/tridentRouterAbi_sweep.ts +13 -0
- package/evm/abi/tridentRouterAbi/tridentRouterAbi_unwrapWETH.ts +9 -0
- package/evm/abi/tridentStablePoolFactoryAbi/index.ts +9 -0
- package/evm/abi/tridentStablePoolFactoryAbi/tridentStablePoolFactoryAbi_bytecodeHash.ts +9 -0
- package/evm/abi/tridentStablePoolFactoryAbi/tridentStablePoolFactoryAbi_calculatePoolAddress.ts +13 -0
- package/evm/abi/tridentStablePoolFactoryAbi/tridentStablePoolFactoryAbi_configAddress.ts +9 -0
- package/evm/abi/tridentStablePoolFactoryAbi/tridentStablePoolFactoryAbi_deployPool.ts +9 -0
- package/evm/abi/tridentStablePoolFactoryAbi/tridentStablePoolFactoryAbi_getDeployData.ts +12 -0
- package/evm/abi/tridentStablePoolFactoryAbi/tridentStablePoolFactoryAbi_getPools.ts +16 -0
- package/evm/abi/tridentStablePoolFactoryAbi/tridentStablePoolFactoryAbi_masterDeployer.ts +9 -0
- package/evm/abi/tridentStablePoolFactoryAbi/tridentStablePoolFactoryAbi_pools.ts +13 -0
- package/evm/abi/tridentStablePoolFactoryAbi/tridentStablePoolFactoryAbi_poolsCount.ts +12 -0
- package/evm/abi/tridentSwapFeeAbi/index.ts +1 -0
- package/evm/abi/tridentSwapFeeAbi/tridentSwapFeeAbi_swapFee.ts +9 -0
- package/evm/abi/uniswapV2PairAbi/index.ts +27 -0
- package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_DOMAIN_SEPARATOR.ts +11 -0
- package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_MINIMUM_LIQUIDITY.ts +11 -0
- package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_PERMIT_TYPEHASH.ts +11 -0
- package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_allowance.ts +14 -0
- package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_approve.ts +14 -0
- package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_balanceOf.ts +11 -0
- package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_burn.ts +14 -0
- package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_decimals.ts +11 -0
- package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_factory.ts +11 -0
- package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_getReserves.ts +15 -0
- package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_initialize.ts +14 -0
- package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_kLast.ts +11 -0
- package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_mint.ts +11 -0
- package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_name.ts +11 -0
- package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_nonces.ts +11 -0
- package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_permit.ts +19 -0
- package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_price0CumulativeLast.ts +11 -0
- package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_price1CumulativeLast.ts +11 -0
- package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_skim.ts +11 -0
- package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_swap.ts +16 -0
- package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_symbol.ts +11 -0
- package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_sync.ts +11 -0
- package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_token0.ts +11 -0
- package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_token1.ts +11 -0
- package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_totalSupply.ts +11 -0
- package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_transfer.ts +14 -0
- package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_transferFrom.ts +15 -0
- package/evm/abi/uniswapV2RouterAbi/index.ts +25 -0
- package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi.ts +356 -0
- package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_WETH.ts +9 -0
- package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_addLiquidity.ts +22 -0
- package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_addLiquidityETH.ts +20 -0
- package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_factory.ts +9 -0
- package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_getAmountIn.ts +13 -0
- package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_getAmountOut.ts +13 -0
- package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_getAmountsIn.ts +14 -0
- package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_getAmountsOut.ts +14 -0
- package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_quote.ts +13 -0
- package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_removeLiquidity.ts +20 -0
- package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_removeLiquidityETH.ts +19 -0
- package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_removeLiquidityETHSupportingFeeOnTransferTokens.ts +19 -0
- package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_removeLiquidityETHWithPermit.ts +23 -0
- package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_removeLiquidityETHWithPermitSupportingFeeOnTransferTokens.ts +23 -0
- package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_removeLiquidityWithPermit.ts +24 -0
- package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_swapETHForExactTokens.ts +16 -0
- package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_swapExactETHForTokens.ts +16 -0
- package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_swapExactETHForTokensSupportingFeeOnTransferTokens.ts +15 -0
- package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_swapExactTokensForETH.ts +17 -0
- package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_swapExactTokensForETHSupportingFeeOnTransferTokens.ts +16 -0
- package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_swapExactTokensForTokens.ts +17 -0
- package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_swapExactTokensForTokensSupportingFeeOnTransferTokens.ts +16 -0
- package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_swapTokensForExactETH.ts +17 -0
- package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_swapTokensForExactTokens.ts +17 -0
- package/evm/abi/uniswapV3FactoryAbi/index.ts +7 -0
- package/evm/abi/uniswapV3FactoryAbi/uniswapV3FactoryAbi_createPool.ts +13 -0
- package/evm/abi/uniswapV3FactoryAbi/uniswapV3FactoryAbi_enableFeeAmount.ts +12 -0
- package/evm/abi/uniswapV3FactoryAbi/uniswapV3FactoryAbi_feeAmountTickSpacing.ts +9 -0
- package/evm/abi/uniswapV3FactoryAbi/uniswapV3FactoryAbi_getPool.ts +13 -0
- package/evm/abi/uniswapV3FactoryAbi/uniswapV3FactoryAbi_owner.ts +9 -0
- package/evm/abi/uniswapV3FactoryAbi/uniswapV3FactoryAbi_parameters.ts +15 -0
- package/evm/abi/uniswapV3FactoryAbi/uniswapV3FactoryAbi_setOwner.ts +9 -0
- package/evm/abi/uniswapV3PoolAbi/index.ts +26 -0
- package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_burn.ts +16 -0
- package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_collect.ts +18 -0
- package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_collectProtocol.ts +16 -0
- package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_factory.ts +9 -0
- package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_fee.ts +9 -0
- package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_feeGrowthGlobal0X128.ts +9 -0
- package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_feeGrowthGlobal1X128.ts +9 -0
- package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_flash.ts +14 -0
- package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_increaseObservationCardinalityNext.ts +15 -0
- package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_initialize.ts +11 -0
- package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_liquidity.ts +9 -0
- package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_maxLiquidityPerTick.ts +9 -0
- package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_mint.ts +18 -0
- package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_observations.ts +18 -0
- package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_observe.ts +18 -0
- package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_positions.ts +23 -0
- package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_protocolFees.ts +12 -0
- package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_setFeeProtocol.ts +12 -0
- package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_slot0.ts +25 -0
- package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_snapshotCumulativesInside.ts +20 -0
- package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_swap.ts +18 -0
- package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_tickBitmap.ts +9 -0
- package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_tickSpacing.ts +9 -0
- package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_ticks.ts +30 -0
- package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_token0.ts +9 -0
- package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_token1.ts +9 -0
- package/evm/abi/v3baseAbi/index.ts +4 -0
- package/evm/abi/v3baseAbi/v3baseAbi_fee.ts +9 -0
- package/evm/abi/v3baseAbi/v3baseAbi_liquidity.ts +9 -0
- package/evm/abi/v3baseAbi/v3baseAbi_token0.ts +9 -0
- package/evm/abi/v3baseAbi/v3baseAbi_token1.ts +9 -0
- package/evm/abi/weth9Abi/index.ts +11 -0
- package/evm/abi/weth9Abi/weth9Abi_allowance.ts +14 -0
- package/evm/abi/weth9Abi/weth9Abi_approve.ts +14 -0
- package/evm/abi/weth9Abi/weth9Abi_balanceOf.ts +11 -0
- package/evm/abi/weth9Abi/weth9Abi_decimals.ts +11 -0
- package/evm/abi/weth9Abi/weth9Abi_deposit.ts +11 -0
- package/evm/abi/weth9Abi/weth9Abi_name.ts +11 -0
- package/evm/abi/weth9Abi/weth9Abi_symbol.ts +11 -0
- package/evm/abi/weth9Abi/weth9Abi_totalSupply.ts +11 -0
- package/evm/abi/weth9Abi/weth9Abi_transfer.ts +14 -0
- package/evm/abi/weth9Abi/weth9Abi_transferFrom.ts +15 -0
- package/evm/abi/weth9Abi/weth9Abi_withdraw.ts +11 -0
- package/evm/abi/xsushiAbi/index.ts +14 -0
- package/evm/abi/xsushiAbi/xsushiAbi_allowance.ts +12 -0
- package/evm/abi/xsushiAbi/xsushiAbi_approve.ts +12 -0
- package/evm/abi/xsushiAbi/xsushiAbi_balanceOf.ts +9 -0
- package/evm/abi/xsushiAbi/xsushiAbi_decimals.ts +9 -0
- package/evm/abi/xsushiAbi/xsushiAbi_decreaseAllowance.ts +12 -0
- package/evm/abi/xsushiAbi/xsushiAbi_enter.ts +9 -0
- package/evm/abi/xsushiAbi/xsushiAbi_increaseAllowance.ts +12 -0
- package/evm/abi/xsushiAbi/xsushiAbi_leave.ts +9 -0
- package/evm/abi/xsushiAbi/xsushiAbi_name.ts +9 -0
- package/evm/abi/xsushiAbi/xsushiAbi_sushi.ts +9 -0
- package/evm/abi/xsushiAbi/xsushiAbi_symbol.ts +9 -0
- package/evm/abi/xsushiAbi/xsushiAbi_totalSupply.ts +9 -0
- package/evm/abi/xsushiAbi/xsushiAbi_transfer.ts +12 -0
- package/evm/abi/xsushiAbi/xsushiAbi_transferFrom.ts +13 -0
- package/evm/api/config.ts +23 -0
- package/evm/api/index.ts +3 -0
- package/evm/api/price.test.ts +17 -0
- package/evm/api/price.ts +19 -0
- package/evm/api/quote.test.ts +42 -0
- package/evm/api/quote.ts +136 -0
- package/evm/api/swap.test.ts +48 -0
- package/evm/api/swap.ts +156 -0
- package/evm/api/types.ts +15 -0
- package/evm/chain/chains.ts +552 -0
- package/evm/chain/define-chain.ts +168 -0
- package/evm/chain/index.ts +2 -0
- package/evm/config/drpc.ts +88 -0
- package/evm/config/features/aggregator.ts +20 -0
- package/evm/config/features/blade.ts +17 -0
- package/evm/config/features/extractor.ts +53 -0
- package/evm/config/features/fee-collector.ts +196 -0
- package/evm/config/features/index.ts +18 -0
- package/evm/config/features/master-chef.ts +13 -0
- package/evm/config/features/merkl.ts +28 -0
- package/evm/config/features/mini-chef.ts +42 -0
- package/evm/config/features/operations-multisig.ts +90 -0
- package/evm/config/features/pancakeswap-v2.ts +57 -0
- package/evm/config/features/pancakeswap-v3.ts +89 -0
- package/evm/config/features/red-snwapper.ts +100 -0
- package/evm/config/features/route-processor.ts +324 -0
- package/evm/config/features/sushiswap-v2.ts +217 -0
- package/evm/config/features/sushiswap-v3.ts +240 -0
- package/evm/config/features/sushiswap.ts +23 -0
- package/evm/config/features/token-security.ts +31 -0
- package/evm/config/features/uniswap-v2.ts +35 -0
- package/evm/config/features/uniswap-v3.test.ts +23 -0
- package/evm/config/features/uniswap-v3.ts +124 -0
- package/evm/config/index.ts +4 -0
- package/evm/config/simple-constants.ts +5 -0
- package/evm/config/subgraphs/get-subgraph-url.ts +109 -0
- package/evm/config/subgraphs/hosts.ts +36 -0
- package/evm/config/subgraphs/index.ts +4 -0
- package/evm/config/subgraphs/max-first.ts +11 -0
- package/evm/config/subgraphs/seconds-between-blocks.ts +23 -0
- package/evm/config/subgraphs/subgraph-url.test.ts +32 -0
- package/evm/config/subgraphs/subgraphs/blade.ts +46 -0
- package/evm/config/subgraphs/subgraphs/blocks.ts +71 -0
- package/evm/config/subgraphs/subgraphs/data-api.ts +3 -0
- package/evm/config/subgraphs/subgraphs/index.ts +9 -0
- package/evm/config/subgraphs/subgraphs/master-chef-v1.ts +12 -0
- package/evm/config/subgraphs/subgraphs/master-chef-v2.ts +12 -0
- package/evm/config/subgraphs/subgraphs/mini-chef.ts +28 -0
- package/evm/config/subgraphs/subgraphs/sushi-bar.ts +12 -0
- package/evm/config/subgraphs/subgraphs/sushiswap-v2.ts +77 -0
- package/evm/config/subgraphs/subgraphs/sushiswap-v3.ts +78 -0
- package/evm/config/tokens/address-map-to-token-map.ts +33 -0
- package/evm/config/tokens/index.ts +3 -0
- package/evm/config/tokens/token-maps/additional-bases.ts +203 -0
- package/evm/config/tokens/token-maps/bases-to-check-trades-against.ts +613 -0
- package/evm/config/tokens/token-maps/custom-bases.ts +18 -0
- package/evm/config/tokens/token-maps/default-bases.ts +419 -0
- package/evm/config/tokens/token-maps/default-quote.ts +80 -0
- package/evm/config/tokens/token-maps/index.ts +8 -0
- package/evm/config/tokens/token-maps/lsds.ts +381 -0
- package/evm/config/tokens/token-maps/short-name-to-currency.ts +302 -0
- package/evm/config/tokens/token-maps/stables.ts +260 -0
- package/evm/config/tokens/tokens/AAVE.ts +21 -0
- package/evm/config/tokens/tokens/AERO.ts +11 -0
- package/evm/config/tokens/tokens/AGEUR.ts +22 -0
- package/evm/config/tokens/tokens/AMPL.ts +11 -0
- package/evm/config/tokens/tokens/ANKR.ts +15 -0
- package/evm/config/tokens/tokens/APE.ts +15 -0
- package/evm/config/tokens/tokens/ARB.ts +17 -0
- package/evm/config/tokens/tokens/AUSD.ts +16 -0
- package/evm/config/tokens/tokens/BAL.ts +15 -0
- package/evm/config/tokens/tokens/BCT.ts +15 -0
- package/evm/config/tokens/tokens/BUSD.ts +16 -0
- package/evm/config/tokens/tokens/COMP.ts +15 -0
- package/evm/config/tokens/tokens/CRV.ts +18 -0
- package/evm/config/tokens/tokens/DAI.ts +37 -0
- package/evm/config/tokens/tokens/DOC.ts +11 -0
- package/evm/config/tokens/tokens/ENJ.ts +16 -0
- package/evm/config/tokens/tokens/FEI.ts +15 -0
- package/evm/config/tokens/tokens/FRAX.ts +24 -0
- package/evm/config/tokens/tokens/FXS.ts +23 -0
- package/evm/config/tokens/tokens/GALA.ts +15 -0
- package/evm/config/tokens/tokens/GNO.ts +15 -0
- package/evm/config/tokens/tokens/GNS.ts +15 -0
- package/evm/config/tokens/tokens/GRT.ts +15 -0
- package/evm/config/tokens/tokens/GUSD.ts +11 -0
- package/evm/config/tokens/tokens/JPY.ts +18 -0
- package/evm/config/tokens/tokens/JUGNI.ts +15 -0
- package/evm/config/tokens/tokens/KLIMA.ts +15 -0
- package/evm/config/tokens/tokens/KNCv2.ts +15 -0
- package/evm/config/tokens/tokens/KP3R.ts +15 -0
- package/evm/config/tokens/tokens/LDO.ts +15 -0
- package/evm/config/tokens/tokens/LINK.ts +22 -0
- package/evm/config/tokens/tokens/LUSD.ts +16 -0
- package/evm/config/tokens/tokens/MAI.ts +27 -0
- package/evm/config/tokens/tokens/MANA.ts +15 -0
- package/evm/config/tokens/tokens/MATIC.ts +15 -0
- package/evm/config/tokens/tokens/METH.ts +16 -0
- package/evm/config/tokens/tokens/MIM.ts +20 -0
- package/evm/config/tokens/tokens/MKR.ts +18 -0
- package/evm/config/tokens/tokens/NFTX.ts +15 -0
- package/evm/config/tokens/tokens/OCEAN.ts +15 -0
- package/evm/config/tokens/tokens/OHM.ts +15 -0
- package/evm/config/tokens/tokens/OP.ts +15 -0
- package/evm/config/tokens/tokens/OPTICS_USDC.ts +15 -0
- package/evm/config/tokens/tokens/PRIMATE.ts +15 -0
- package/evm/config/tokens/tokens/QUICK.ts +15 -0
- package/evm/config/tokens/tokens/RBTC.ts +15 -0
- package/evm/config/tokens/tokens/RNDR.ts +15 -0
- package/evm/config/tokens/tokens/SAND.ts +15 -0
- package/evm/config/tokens/tokens/SGETH.ts +19 -0
- package/evm/config/tokens/tokens/SGUSDC.ts +19 -0
- package/evm/config/tokens/tokens/SKL.ts +11 -0
- package/evm/config/tokens/tokens/SNX.ts +20 -0
- package/evm/config/tokens/tokens/STG.ts +15 -0
- package/evm/config/tokens/tokens/STONE.ts +15 -0
- package/evm/config/tokens/tokens/SUSHI.ts +30 -0
- package/evm/config/tokens/tokens/SWISE.ts +15 -0
- package/evm/config/tokens/tokens/SolvBTC.ts +16 -0
- package/evm/config/tokens/tokens/TEL.ts +15 -0
- package/evm/config/tokens/tokens/TRIBE.ts +15 -0
- package/evm/config/tokens/tokens/TUSD.ts +15 -0
- package/evm/config/tokens/tokens/UNI.ts +22 -0
- package/evm/config/tokens/tokens/USDB.ts +15 -0
- package/evm/config/tokens/tokens/USDC.ts +89 -0
- package/evm/config/tokens/tokens/USDP.ts +15 -0
- package/evm/config/tokens/tokens/USDPLUS.ts +15 -0
- package/evm/config/tokens/tokens/USDT.ts +97 -0
- package/evm/config/tokens/tokens/USDT0.ts +19 -0
- package/evm/config/tokens/tokens/USD_PLUS.ts +15 -0
- package/evm/config/tokens/tokens/USDe.ts +18 -0
- package/evm/config/tokens/tokens/WAVAX.ts +15 -0
- package/evm/config/tokens/tokens/WBTC.ts +38 -0
- package/evm/config/tokens/tokens/WETH9.ts +64 -0
- package/evm/config/tokens/tokens/WRBTC.ts +15 -0
- package/evm/config/tokens/tokens/WstETH.ts +21 -0
- package/evm/config/tokens/tokens/XSUSHI.ts +16 -0
- package/evm/config/tokens/tokens/YFI.ts +20 -0
- package/evm/config/tokens/tokens/ape/ETH.ts +11 -0
- package/evm/config/tokens/tokens/ape/USD.ts +11 -0
- package/evm/config/tokens/tokens/ape/index.ts +2 -0
- package/evm/config/tokens/tokens/axlDAI.ts +27 -0
- package/evm/config/tokens/tokens/axlETH.ts +16 -0
- package/evm/config/tokens/tokens/axlUSDC.ts +29 -0
- package/evm/config/tokens/tokens/axlUSDT.ts +15 -0
- package/evm/config/tokens/tokens/axlWBTC.ts +16 -0
- package/evm/config/tokens/tokens/base/USDbC.ts +11 -0
- package/evm/config/tokens/tokens/base/index.ts +1 -0
- package/evm/config/tokens/tokens/bttc/USDC_BSC.ts +15 -0
- package/evm/config/tokens/tokens/bttc/USDC_Ethereum.ts +11 -0
- package/evm/config/tokens/tokens/bttc/USDC_Tron.ts +11 -0
- package/evm/config/tokens/tokens/bttc/USDT_BSC.ts +11 -0
- package/evm/config/tokens/tokens/bttc/USDT_Ethereum.ts +11 -0
- package/evm/config/tokens/tokens/bttc/USDT_Tron.ts +11 -0
- package/evm/config/tokens/tokens/bttc/index.ts +6 -0
- package/evm/config/tokens/tokens/ethereum/CRV_FRAX.ts +11 -0
- package/evm/config/tokens/tokens/ethereum/CRV_REN_WSBTC.ts +11 -0
- package/evm/config/tokens/tokens/ethereum/CRV_USD.ts +11 -0
- package/evm/config/tokens/tokens/ethereum/STETH.ts +11 -0
- package/evm/config/tokens/tokens/ethereum/THREE_CRV.ts +11 -0
- package/evm/config/tokens/tokens/ethereum/index.ts +5 -0
- package/evm/config/tokens/tokens/filecoin/USDC.Celer.ts +11 -0
- package/evm/config/tokens/tokens/filecoin/USDT.Celer.ts +11 -0
- package/evm/config/tokens/tokens/filecoin/index.ts +2 -0
- package/evm/config/tokens/tokens/index.ts +93 -0
- package/evm/config/tokens/tokens/rETH.ts +22 -0
- package/evm/config/tokens/tokens/rETH2.ts +15 -0
- package/evm/config/tokens/tokens/renBTC.ts +15 -0
- package/evm/config/tokens/tokens/sETH2.ts +15 -0
- package/evm/config/tokens/tokens/thundercore/anyBUSD.ts +11 -0
- package/evm/config/tokens/tokens/thundercore/anyUSDC.ts +11 -0
- package/evm/config/tokens/tokens/thundercore/anyUSDT.ts +11 -0
- package/evm/config/tokens/tokens/thundercore/index.ts +3 -0
- package/evm/config/tokens/tokens/xSolvBTC.ts +16 -0
- package/evm/config/tokens/tokens/zeta/USDC.BSC.ts +11 -0
- package/evm/config/tokens/tokens/zeta/USDC.ETH.ts +11 -0
- package/evm/config/tokens/tokens/zeta/USDT.BSC.ts +11 -0
- package/evm/config/tokens/tokens/zeta/USDT.ETH.ts +11 -0
- package/evm/config/tokens/tokens/zeta/index.ts +4 -0
- package/evm/config/tokens/wrapped-native.ts +250 -0
- package/evm/currency/currency.ts +15 -0
- package/evm/currency/deserialize-currency.ts +17 -0
- package/evm/currency/index.ts +5 -0
- package/evm/currency/native.ts +50 -0
- package/evm/currency/token.ts +81 -0
- package/evm/currency/unwrap-token.ts +18 -0
- package/evm/dex/errors.ts +30 -0
- package/evm/dex/fee.ts +13 -0
- package/evm/dex/index.ts +5 -0
- package/evm/dex/pool.ts +50 -0
- package/evm/dex/router-liquidity-source.ts +4 -0
- package/evm/dex/trade-type.ts +4 -0
- package/evm/format/address.ts +6 -0
- package/evm/format/hash.ts +10 -0
- package/evm/format/index.ts +2 -0
- package/evm/index.ts +12 -0
- package/evm/pool/index.ts +2 -0
- package/evm/pool/sushiswap-v2/compute-sushiswap-v2-pool-address.ts +49 -0
- package/evm/pool/sushiswap-v2/index.ts +3 -0
- package/evm/pool/sushiswap-v2/sushiswap-v2-pool.test.ts +636 -0
- package/evm/pool/sushiswap-v2/sushiswap-v2-pool.ts +301 -0
- package/evm/pool/sushiswap-v2/zod.ts +10 -0
- package/evm/pool/sushiswap-v3/entities/Multicall.test.ts +26 -0
- package/evm/pool/sushiswap-v3/entities/Multicall.ts +25 -0
- package/evm/pool/sushiswap-v3/entities/NonfungiblePositionManager.test.ts +799 -0
- package/evm/pool/sushiswap-v3/entities/NonfungiblePositionManager.ts +543 -0
- package/evm/pool/sushiswap-v3/entities/Payments.test.ts +64 -0
- package/evm/pool/sushiswap-v3/entities/Payments.ts +92 -0
- package/evm/pool/sushiswap-v3/entities/Position.test.ts +600 -0
- package/evm/pool/sushiswap-v3/entities/Position.ts +440 -0
- package/evm/pool/sushiswap-v3/entities/SelfPermit.test.ts +47 -0
- package/evm/pool/sushiswap-v3/entities/SelfPermit.ts +68 -0
- package/evm/pool/sushiswap-v3/entities/SushiSwapV3Pool.test.ts +450 -0
- package/evm/pool/sushiswap-v3/entities/SushiSwapV3Pool.ts +386 -0
- package/evm/pool/sushiswap-v3/entities/Tick.test.ts +29 -0
- package/evm/pool/sushiswap-v3/entities/Tick.ts +22 -0
- package/evm/pool/sushiswap-v3/entities/TickDataProvider.test.ts +18 -0
- package/evm/pool/sushiswap-v3/entities/TickDataProvider.ts +43 -0
- package/evm/pool/sushiswap-v3/entities/TickListDataProvider.test.ts +64 -0
- package/evm/pool/sushiswap-v3/entities/TickListDataProvider.ts +38 -0
- package/evm/pool/sushiswap-v3/entities/index.ts +8 -0
- package/evm/pool/sushiswap-v3/index.ts +2 -0
- package/evm/pool/sushiswap-v3/internalConstants.ts +3 -0
- package/evm/pool/sushiswap-v3/utils/calldata.ts +13 -0
- package/evm/pool/sushiswap-v3/utils/computePoolAddress.test.ts +94 -0
- package/evm/pool/sushiswap-v3/utils/computePoolAddress.ts +86 -0
- package/evm/pool/sushiswap-v3/utils/encodeSqrtRatioX96.test.ts +27 -0
- package/evm/pool/sushiswap-v3/utils/encodeSqrtRatioX96.ts +18 -0
- package/evm/pool/sushiswap-v3/utils/fullMath.ts +21 -0
- package/evm/pool/sushiswap-v3/utils/index.ts +18 -0
- package/evm/pool/sushiswap-v3/utils/isSorted.test.ts +53 -0
- package/evm/pool/sushiswap-v3/utils/isSorted.ts +17 -0
- package/evm/pool/sushiswap-v3/utils/liquidityMath.ts +16 -0
- package/evm/pool/sushiswap-v3/utils/maxLiquidityForAmounts.test.ts +264 -0
- package/evm/pool/sushiswap-v3/utils/maxLiquidityForAmounts.ts +116 -0
- package/evm/pool/sushiswap-v3/utils/misc.ts +143 -0
- package/evm/pool/sushiswap-v3/utils/mostSignificantBit.test.ts +29 -0
- package/evm/pool/sushiswap-v3/utils/mostSignificantBit.ts +20 -0
- package/evm/pool/sushiswap-v3/utils/nearestUsableTick.test.ts +55 -0
- package/evm/pool/sushiswap-v3/utils/nearestUsableTick.ts +20 -0
- package/evm/pool/sushiswap-v3/utils/position.test.ts +30 -0
- package/evm/pool/sushiswap-v3/utils/position.ts +29 -0
- package/evm/pool/sushiswap-v3/utils/priceTickConversions.test.ts +190 -0
- package/evm/pool/sushiswap-v3/utils/priceTickConversions.ts +62 -0
- package/evm/pool/sushiswap-v3/utils/sqrtPriceMath.ts +162 -0
- package/evm/pool/sushiswap-v3/utils/swapMath.ts +140 -0
- package/evm/pool/sushiswap-v3/utils/tickLibrary.test.ts +90 -0
- package/evm/pool/sushiswap-v3/utils/tickLibrary.ts +76 -0
- package/evm/pool/sushiswap-v3/utils/tickList.test.ts +216 -0
- package/evm/pool/sushiswap-v3/utils/tickList.ts +143 -0
- package/evm/pool/sushiswap-v3/utils/tickMath.test.ts +63 -0
- package/evm/pool/sushiswap-v3/utils/tickMath.ts +146 -0
- package/evm/pool/sushiswap-v3/utils/validateAndParseAddress.ts +13 -0
- package/evm/token-list/constants.ts +94 -0
- package/evm/token-list/index.ts +2 -0
- package/evm/types/contract.ts +6 -0
- package/evm/types/id.ts +9 -0
- package/evm/types/index.ts +4 -0
- package/evm/types/sushi-pool/index.ts +12 -0
- package/evm/types/sushi-pool/maybe-nested-pool.ts +13 -0
- package/evm/types/sushi-pool/pool-base.ts +27 -0
- package/evm/types/sushi-pool/pool-history.ts +44 -0
- package/evm/types/sushi-pool/pool-id.ts +12 -0
- package/evm/types/sushi-pool/pool-if-incentivized.ts +21 -0
- package/evm/types/sushi-pool/pool-swap-fee.ts +5 -0
- package/evm/types/sushi-pool/pool-v2.ts +13 -0
- package/evm/types/sushi-pool/pool-v3.ts +22 -0
- package/evm/types/sushi-pool/pool-with-aprs.ts +24 -0
- package/evm/types/sushi-pool/pool-with-buckets.ts +15 -0
- package/evm/types/sushi-pool/pool-with-incentives.ts +36 -0
- package/evm/types/sushi-pool/protocol.ts +10 -0
- package/evm/types/sushi-position/index.ts +3 -0
- package/evm/types/sushi-position/sushi-position-base.ts +8 -0
- package/evm/types/sushi-position/sushi-position-staked.ts +7 -0
- package/evm/types/sushi-position/sushi-position-with-pool.ts +9 -0
- package/evm/utils/add-gas-margin.ts +3 -0
- package/evm/utils/get-create-2-address.ts +48 -0
- package/evm/utils/index.ts +2 -0
- package/evm/validate/index.ts +1 -0
- package/evm/validate/zod.ts +11 -0
- package/generic/chain/chains.test.ts +48 -0
- package/generic/chain/chains.ts +86 -0
- package/generic/chain/index.ts +2 -0
- package/generic/chain/interface.ts +43 -0
- package/generic/currency/amount.test-d.ts +93 -0
- package/generic/currency/amount.test.ts +508 -0
- package/generic/currency/amount.ts +254 -0
- package/generic/currency/currency.test-d.ts +275 -0
- package/generic/currency/currency.ts +72 -0
- package/generic/currency/index.ts +7 -0
- package/generic/currency/native.ts +18 -0
- package/generic/currency/price.ts +77 -0
- package/generic/currency/serialized-currency.ts +28 -0
- package/generic/currency/token.ts +42 -0
- package/generic/currency/unwrap-token.ts +27 -0
- package/generic/format/index.ts +3 -0
- package/generic/format/number.test.ts +113 -0
- package/generic/format/number.ts +204 -0
- package/generic/format/percent.ts +27 -0
- package/generic/format/price.ts +57 -0
- package/generic/index.ts +7 -0
- package/generic/math/abs.ts +3 -0
- package/generic/math/constants.ts +26 -0
- package/generic/math/difference.ts +6 -0
- package/generic/math/fraction.test.ts +209 -0
- package/generic/math/fraction.ts +191 -0
- package/generic/math/index.ts +9 -0
- package/generic/math/maximum.ts +15 -0
- package/generic/math/minimum.ts +20 -0
- package/generic/math/number-to-bigint.test.ts +162 -0
- package/generic/math/number-to-bigint.ts +11 -0
- package/generic/math/percent.ts +25 -0
- package/generic/math/sqrt.ts +25 -0
- package/generic/types/bigintish.ts +1 -0
- package/generic/types/id.ts +9 -0
- package/generic/types/index.ts +5 -0
- package/generic/types/mutable.ts +3 -0
- package/generic/types/replace.ts +8 -0
- package/generic/types/union-to-intersection.ts +7 -0
- package/generic/utils/id.ts +41 -0
- package/generic/utils/index.ts +3 -0
- package/generic/utils/lowercase-map.ts +14 -0
- package/generic/utils/subtract-slippage.test.ts +64 -0
- package/generic/utils/subtract-slippage.ts +20 -0
- package/generic/validate/index.ts +3 -0
- package/generic/validate/isPromiseFulfilled.ts +3 -0
- package/generic/validate/isPromiseRejected.ts +3 -0
- package/generic/validate/zod.ts +16 -0
- package/mvm/chain/chains.ts +103 -0
- package/mvm/chain/define-chain.ts +42 -0
- package/mvm/chain/index.ts +2 -0
- package/mvm/currency/index.ts +1 -0
- package/mvm/currency/token.ts +45 -0
- package/mvm/index.ts +2 -0
- package/package.json +16 -12
- package/tvm/abi/factoryAbi/factoryAbi.ts +189 -0
- package/tvm/abi/factoryAbi/factoryAbi_PairCreated.ts +33 -0
- package/tvm/abi/factoryAbi/factoryAbi_allPairs.ts +21 -0
- package/tvm/abi/factoryAbi/factoryAbi_allPairsLength.ts +15 -0
- package/tvm/abi/factoryAbi/factoryAbi_constructor.ts +13 -0
- package/tvm/abi/factoryAbi/factoryAbi_createPair.ts +26 -0
- package/tvm/abi/factoryAbi/factoryAbi_feeTo.ts +15 -0
- package/tvm/abi/factoryAbi/factoryAbi_feeToSetter.ts +15 -0
- package/tvm/abi/factoryAbi/factoryAbi_getPair.ts +26 -0
- package/tvm/abi/factoryAbi/factoryAbi_getPairHash.ts +15 -0
- package/tvm/abi/factoryAbi/factoryAbi_setFeeTo.ts +15 -0
- package/tvm/abi/factoryAbi/factoryAbi_setFeeToSetter.ts +15 -0
- package/tvm/abi/factoryAbi/index.ts +12 -0
- package/tvm/abi/index.ts +6 -0
- package/tvm/abi/multicallAbi/index.ts +14 -0
- package/tvm/abi/multicallAbi/multicallAbi.ts +229 -0
- package/tvm/abi/multicallAbi/multicallAbi_aggregate.ts +36 -0
- package/tvm/abi/multicallAbi/multicallAbi_getBasefee.ts +13 -0
- package/tvm/abi/multicallAbi/multicallAbi_getBlockHash.ts +19 -0
- package/tvm/abi/multicallAbi/multicallAbi_getBlockNumber.ts +13 -0
- package/tvm/abi/multicallAbi/multicallAbi_getChainId.ts +13 -0
- package/tvm/abi/multicallAbi/multicallAbi_getCurrentBlockCoinbase.ts +13 -0
- package/tvm/abi/multicallAbi/multicallAbi_getCurrentBlockDifficulty.ts +13 -0
- package/tvm/abi/multicallAbi/multicallAbi_getCurrentBlockTimestamp.ts +13 -0
- package/tvm/abi/multicallAbi/multicallAbi_getEthBalance.ts +19 -0
- package/tvm/abi/multicallAbi/multicallAbi_getLastBlockHash.ts +13 -0
- package/tvm/abi/multicallAbi/multicallAbi_getTokenBalance.ts +24 -0
- package/tvm/abi/multicallAbi/multicallAbi_isContract.ts +19 -0
- package/tvm/abi/multicallAbi/multicallAbi_multicall.ts +19 -0
- package/tvm/abi/pairAbi/index.ts +34 -0
- package/tvm/abi/pairAbi/pairAbi.ts +658 -0
- package/tvm/abi/pairAbi/pairAbi_Approval.ts +25 -0
- package/tvm/abi/pairAbi/pairAbi_BurnEvent.ts +31 -0
- package/tvm/abi/pairAbi/pairAbi_DOMAIN_SEPARATOR.ts +13 -0
- package/tvm/abi/pairAbi/pairAbi_MINIMUM_LIQUIDITY.ts +13 -0
- package/tvm/abi/pairAbi/pairAbi_MintEvent.ts +25 -0
- package/tvm/abi/pairAbi/pairAbi_PERMIT_TYPEHASH.ts +13 -0
- package/tvm/abi/pairAbi/pairAbi_SwapEvent.ts +43 -0
- package/tvm/abi/pairAbi/pairAbi_SyncEvent.ts +19 -0
- package/tvm/abi/pairAbi/pairAbi_TransferEvent.ts +25 -0
- package/tvm/abi/pairAbi/pairAbi_allowance.ts +24 -0
- package/tvm/abi/pairAbi/pairAbi_approve.ts +24 -0
- package/tvm/abi/pairAbi/pairAbi_balanceOf.ts +19 -0
- package/tvm/abi/pairAbi/pairAbi_burn.ts +24 -0
- package/tvm/abi/pairAbi/pairAbi_decimals.ts +13 -0
- package/tvm/abi/pairAbi/pairAbi_factory.ts +13 -0
- package/tvm/abi/pairAbi/pairAbi_getReserves.ts +23 -0
- package/tvm/abi/pairAbi/pairAbi_initialize.ts +18 -0
- package/tvm/abi/pairAbi/pairAbi_kLast.ts +13 -0
- package/tvm/abi/pairAbi/pairAbi_mint.ts +19 -0
- package/tvm/abi/pairAbi/pairAbi_name.ts +13 -0
- package/tvm/abi/pairAbi/pairAbi_nonces.ts +19 -0
- package/tvm/abi/pairAbi/pairAbi_permit.ts +43 -0
- package/tvm/abi/pairAbi/pairAbi_price0CumulativeLast.ts +13 -0
- package/tvm/abi/pairAbi/pairAbi_price1CumulativeLast.ts +13 -0
- package/tvm/abi/pairAbi/pairAbi_skim.ts +13 -0
- package/tvm/abi/pairAbi/pairAbi_swap.ts +28 -0
- package/tvm/abi/pairAbi/pairAbi_symbol.ts +13 -0
- package/tvm/abi/pairAbi/pairAbi_sync.ts +7 -0
- package/tvm/abi/pairAbi/pairAbi_token0.ts +13 -0
- package/tvm/abi/pairAbi/pairAbi_token1.ts +13 -0
- package/tvm/abi/pairAbi/pairAbi_totalSupply.ts +13 -0
- package/tvm/abi/pairAbi/pairAbi_transfer.ts +24 -0
- package/tvm/abi/pairAbi/pairAbi_transferFrom.ts +29 -0
- package/tvm/abi/routerAbi/index.ts +23 -0
- package/tvm/abi/routerAbi/routerAbi.ts +896 -0
- package/tvm/abi/routerAbi/routerAbi_WETH.ts +13 -0
- package/tvm/abi/routerAbi/routerAbi_addLiquidity.ts +64 -0
- package/tvm/abi/routerAbi/routerAbi_addLiquidityETH.ts +54 -0
- package/tvm/abi/routerAbi/routerAbi_factory.ts +13 -0
- package/tvm/abi/routerAbi/routerAbi_getAmountIn.ts +29 -0
- package/tvm/abi/routerAbi/routerAbi_getAmountOut.ts +29 -0
- package/tvm/abi/routerAbi/routerAbi_getAmountsIn.ts +24 -0
- package/tvm/abi/routerAbi/routerAbi_getAmountsOut.ts +24 -0
- package/tvm/abi/routerAbi/routerAbi_quote.ts +29 -0
- package/tvm/abi/routerAbi/routerAbi_removeLiquidity.ts +54 -0
- package/tvm/abi/routerAbi/routerAbi_removeLiquidityETH.ts +49 -0
- package/tvm/abi/routerAbi/routerAbi_removeLiquidityETHWithPermit.ts +69 -0
- package/tvm/abi/routerAbi/routerAbi_removeLiquidityETHWithPermitSupportingFeeOnTransferTokens.ts +65 -0
- package/tvm/abi/routerAbi/routerAbi_removeLiquidityWithPermit.ts +74 -0
- package/tvm/abi/routerAbi/routerAbi_swapETHForExactTokens.ts +34 -0
- package/tvm/abi/routerAbi/routerAbi_swapExactETHForTokens.ts +34 -0
- package/tvm/abi/routerAbi/routerAbi_swapExactETHForTokensSupportingFeeOnTransferTokens.ts +28 -0
- package/tvm/abi/routerAbi/routerAbi_swapExactTokensForETH.ts +39 -0
- package/tvm/abi/routerAbi/routerAbi_swapExactTokensForETHSupportingFeeOnTransferTokens.ts +33 -0
- package/tvm/abi/routerAbi/routerAbi_swapExactTokensForTokens.ts +39 -0
- package/tvm/abi/routerAbi/routerAbi_swapTokensForExactETH.ts +39 -0
- package/tvm/abi/routerAbi/routerAbi_swapTokensForExactTokens.ts +39 -0
- package/tvm/abi/trc20Abi/index.ts +13 -0
- package/tvm/abi/trc20Abi/trc20Abi.ts +222 -0
- package/tvm/abi/trc20Abi/trc20Abi_Approval.ts +22 -0
- package/tvm/abi/trc20Abi/trc20Abi_TransferEvent.ts +22 -0
- package/tvm/abi/trc20Abi/trc20Abi_allowance.ts +23 -0
- package/tvm/abi/trc20Abi/trc20Abi_approve.ts +23 -0
- package/tvm/abi/trc20Abi/trc20Abi_balanceOf.ts +19 -0
- package/tvm/abi/trc20Abi/trc20Abi_decimals.ts +14 -0
- package/tvm/abi/trc20Abi/trc20Abi_name.ts +14 -0
- package/tvm/abi/trc20Abi/trc20Abi_symbol.ts +14 -0
- package/tvm/abi/trc20Abi/trc20Abi_totalSupply.ts +14 -0
- package/tvm/abi/trc20Abi/trc20Abi_transfer.ts +23 -0
- package/tvm/abi/trc20Abi/trc20Abi_transferFrom.ts +27 -0
- package/tvm/abi/trc20Abi/trc20Abi_undefined.ts +5 -0
- package/tvm/abi/wtrxAbi/index.ts +17 -0
- package/tvm/abi/wtrxAbi/wtrxAbi.ts +298 -0
- package/tvm/abi/wtrxAbi/wtrxAbi_Approval.ts +22 -0
- package/tvm/abi/wtrxAbi/wtrxAbi_DepositEvent.ts +17 -0
- package/tvm/abi/wtrxAbi/wtrxAbi_TransferEvent.ts +22 -0
- package/tvm/abi/wtrxAbi/wtrxAbi_Withdrawal.ts +17 -0
- package/tvm/abi/wtrxAbi/wtrxAbi_allowance.ts +23 -0
- package/tvm/abi/wtrxAbi/wtrxAbi_approve.ts +19 -0
- package/tvm/abi/wtrxAbi/wtrxAbi_balanceOf.ts +19 -0
- package/tvm/abi/wtrxAbi/wtrxAbi_decimals.ts +14 -0
- package/tvm/abi/wtrxAbi/wtrxAbi_deposit.ts +9 -0
- package/tvm/abi/wtrxAbi/wtrxAbi_name.ts +14 -0
- package/tvm/abi/wtrxAbi/wtrxAbi_symbol.ts +14 -0
- package/tvm/abi/wtrxAbi/wtrxAbi_totalSupply.ts +14 -0
- package/tvm/abi/wtrxAbi/wtrxAbi_transfer.ts +23 -0
- package/tvm/abi/wtrxAbi/wtrxAbi_transferFrom.ts +27 -0
- package/tvm/abi/wtrxAbi/wtrxAbi_withdraw.ts +14 -0
- package/tvm/chain/chains.ts +104 -0
- package/tvm/chain/define-chain.ts +42 -0
- package/tvm/chain/index.ts +2 -0
- package/tvm/config/features/index.ts +2 -0
- package/tvm/config/features/multicall.ts +17 -0
- package/tvm/config/features/swap.ts +19 -0
- package/tvm/config/index.ts +2 -0
- package/tvm/config/tokens/address-map-to-token-map.ts +35 -0
- package/tvm/config/tokens/index.ts +3 -0
- package/tvm/config/tokens/native.ts +11 -0
- package/tvm/config/tokens/token-maps/default-bases.ts +17 -0
- package/tvm/config/tokens/token-maps/index.ts +2 -0
- package/tvm/config/tokens/token-maps/stables.ts +13 -0
- package/tvm/config/tokens/tokens/$Afro.ts +16 -0
- package/tvm/config/tokens/tokens/BICOIN.ts +16 -0
- package/tvm/config/tokens/tokens/BOG.ts +16 -0
- package/tvm/config/tokens/tokens/BTC.ts +16 -0
- package/tvm/config/tokens/tokens/BTT.ts +16 -0
- package/tvm/config/tokens/tokens/BULL.ts +16 -0
- package/tvm/config/tokens/tokens/CDOG.ts +16 -0
- package/tvm/config/tokens/tokens/CZ.ts +16 -0
- package/tvm/config/tokens/tokens/CZC.ts +16 -0
- package/tvm/config/tokens/tokens/DRGN.ts +16 -0
- package/tvm/config/tokens/tokens/ETH.ts +16 -0
- package/tvm/config/tokens/tokens/ETHOLD.ts +16 -0
- package/tvm/config/tokens/tokens/FOFAR.ts +16 -0
- package/tvm/config/tokens/tokens/HOTSUN.ts +16 -0
- package/tvm/config/tokens/tokens/HT.ts +16 -0
- package/tvm/config/tokens/tokens/HTX.ts +16 -0
- package/tvm/config/tokens/tokens/IVfun.ts +16 -0
- package/tvm/config/tokens/tokens/JST.ts +16 -0
- package/tvm/config/tokens/tokens/LABR.ts +16 -0
- package/tvm/config/tokens/tokens/LTC.ts +16 -0
- package/tvm/config/tokens/tokens/MEOWKA.ts +16 -0
- package/tvm/config/tokens/tokens/MOONDOG.ts +16 -0
- package/tvm/config/tokens/tokens/MUNCAT.ts +16 -0
- package/tvm/config/tokens/tokens/MWD.ts +16 -0
- package/tvm/config/tokens/tokens/NFT.ts +16 -0
- package/tvm/config/tokens/tokens/PSYOP.ts +16 -0
- package/tvm/config/tokens/tokens/PUSS.ts +16 -0
- package/tvm/config/tokens/tokens/ROCK.ts +16 -0
- package/tvm/config/tokens/tokens/SUN.ts +16 -0
- package/tvm/config/tokens/tokens/SUNCAT.ts +16 -0
- package/tvm/config/tokens/tokens/SUNDOG.ts +16 -0
- package/tvm/config/tokens/tokens/SUNDOGE.ts +16 -0
- package/tvm/config/tokens/tokens/SUNKEY.ts +16 -0
- package/tvm/config/tokens/tokens/SUNOLD.ts +16 -0
- package/tvm/config/tokens/tokens/SUNWUKONG.ts +16 -0
- package/tvm/config/tokens/tokens/SunJoker.ts +16 -0
- package/tvm/config/tokens/tokens/TBEER.ts +16 -0
- package/tvm/config/tokens/tokens/TBULL.ts +16 -0
- package/tvm/config/tokens/tokens/TDOG.ts +16 -0
- package/tvm/config/tokens/tokens/TRONKEY.ts +16 -0
- package/tvm/config/tokens/tokens/TUSD.ts +16 -0
- package/tvm/config/tokens/tokens/TWX.ts +16 -0
- package/tvm/config/tokens/tokens/Tcat.ts +16 -0
- package/tvm/config/tokens/tokens/USDCOLD.ts +16 -0
- package/tvm/config/tokens/tokens/USDD.ts +16 -0
- package/tvm/config/tokens/tokens/USDJ.ts +16 -0
- package/tvm/config/tokens/tokens/USDT.ts +16 -0
- package/tvm/config/tokens/tokens/VIKITA.ts +16 -0
- package/tvm/config/tokens/tokens/WBTC.ts +16 -0
- package/tvm/config/tokens/tokens/WBTT.ts +16 -0
- package/tvm/config/tokens/tokens/WETH.ts +16 -0
- package/tvm/config/tokens/tokens/WHALE.ts +16 -0
- package/tvm/config/tokens/tokens/WIN.ts +16 -0
- package/tvm/config/tokens/tokens/WTRX.ts +16 -0
- package/tvm/config/tokens/tokens/index.ts +56 -0
- package/tvm/config/tokens/tokens/sTRX.ts +16 -0
- package/tvm/config/tokens/tokens/stUSDT.ts +16 -0
- package/tvm/config/tokens/wrapped-native.ts +16 -0
- package/tvm/currency/currency.ts +38 -0
- package/tvm/currency/index.ts +4 -0
- package/tvm/currency/native.ts +40 -0
- package/tvm/currency/token.ts +56 -0
- package/tvm/currency/unwrap-token.ts +17 -0
- package/tvm/index.ts +4 -0
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import type { BigintIsh } from '../../../../generic/index.js'
|
|
2
|
+
|
|
3
|
+
import { Q96 } from '../internalConstants.js'
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Returns an imprecise maximum amount of liquidity received for a given amount of token 0.
|
|
7
|
+
* This function is available to accommodate LiquidityAmounts#getLiquidityForAmount0 in the v3 periphery,
|
|
8
|
+
* which could be more precise by at least 32 bits by dividing by Q64 instead of Q96 in the intermediate step,
|
|
9
|
+
* and shifting the subtracted ratio left by 32 bits. This imprecise calculation will likely be replaced in a future
|
|
10
|
+
* v3 router contract.
|
|
11
|
+
* @param sqrtRatioAX96 The price at the lower boundary
|
|
12
|
+
* @param sqrtRatioBX96 The price at the upper boundary
|
|
13
|
+
* @param amount0 The token0 amount
|
|
14
|
+
* @returns liquidity for amount0, imprecise
|
|
15
|
+
*/
|
|
16
|
+
function maxLiquidityForAmount0Imprecise(
|
|
17
|
+
sqrtRatioAX96: bigint,
|
|
18
|
+
sqrtRatioBX96: bigint,
|
|
19
|
+
amount0: BigintIsh,
|
|
20
|
+
): bigint {
|
|
21
|
+
if (sqrtRatioAX96 > sqrtRatioBX96) {
|
|
22
|
+
;[sqrtRatioAX96, sqrtRatioBX96] = [sqrtRatioBX96, sqrtRatioAX96]
|
|
23
|
+
}
|
|
24
|
+
const intermediate = (sqrtRatioAX96 * sqrtRatioBX96) / Q96
|
|
25
|
+
return (
|
|
26
|
+
(BigInt(amount0.toString()) * intermediate) /
|
|
27
|
+
(sqrtRatioBX96 - sqrtRatioAX96)
|
|
28
|
+
)
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Returns a precise maximum amount of liquidity received for a given amount of token 0 by dividing by Q64 instead of Q96 in the intermediate step,
|
|
33
|
+
* and shifting the subtracted ratio left by 32 bits.
|
|
34
|
+
* @param sqrtRatioAX96 The price at the lower boundary
|
|
35
|
+
* @param sqrtRatioBX96 The price at the upper boundary
|
|
36
|
+
* @param amount0 The token0 amount
|
|
37
|
+
* @returns liquidity for amount0, precise
|
|
38
|
+
*/
|
|
39
|
+
function maxLiquidityForAmount0Precise(
|
|
40
|
+
sqrtRatioAX96: bigint,
|
|
41
|
+
sqrtRatioBX96: bigint,
|
|
42
|
+
amount0: BigintIsh,
|
|
43
|
+
): bigint {
|
|
44
|
+
if (sqrtRatioAX96 > sqrtRatioBX96) {
|
|
45
|
+
;[sqrtRatioAX96, sqrtRatioBX96] = [sqrtRatioBX96, sqrtRatioAX96]
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const numerator = BigInt(amount0.toString()) * sqrtRatioAX96 * sqrtRatioBX96
|
|
49
|
+
const denominator = Q96 * (sqrtRatioBX96 - sqrtRatioAX96)
|
|
50
|
+
|
|
51
|
+
return numerator / denominator
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Computes the maximum amount of liquidity received for a given amount of token1
|
|
56
|
+
* @param sqrtRatioAX96 The price at the lower tick boundary
|
|
57
|
+
* @param sqrtRatioBX96 The price at the upper tick boundary
|
|
58
|
+
* @param amount1 The token1 amount
|
|
59
|
+
* @returns liquidity for amount1
|
|
60
|
+
*/
|
|
61
|
+
function maxLiquidityForAmount1(
|
|
62
|
+
sqrtRatioAX96: bigint,
|
|
63
|
+
sqrtRatioBX96: bigint,
|
|
64
|
+
amount1: BigintIsh,
|
|
65
|
+
): bigint {
|
|
66
|
+
if (sqrtRatioAX96 > sqrtRatioBX96) {
|
|
67
|
+
;[sqrtRatioAX96, sqrtRatioBX96] = [sqrtRatioBX96, sqrtRatioAX96]
|
|
68
|
+
}
|
|
69
|
+
return (BigInt(amount1.toString()) * Q96) / (sqrtRatioBX96 - sqrtRatioAX96)
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Computes the maximum amount of liquidity received for a given amount of token0, token1,
|
|
74
|
+
* and the prices at the tick boundaries.
|
|
75
|
+
* @param sqrtRatioCurrentX96 the current price
|
|
76
|
+
* @param sqrtRatioAX96 price at lower boundary
|
|
77
|
+
* @param sqrtRatioBX96 price at upper boundary
|
|
78
|
+
* @param amount0 token0 amount
|
|
79
|
+
* @param amount1 token1 amount
|
|
80
|
+
* @param useFullPrecision if false, liquidity will be maximized according to what the router can calculate,
|
|
81
|
+
* not what core can theoretically support
|
|
82
|
+
*/
|
|
83
|
+
export function maxLiquidityForAmounts(
|
|
84
|
+
sqrtRatioCurrentX96: bigint,
|
|
85
|
+
sqrtRatioAX96: bigint,
|
|
86
|
+
sqrtRatioBX96: bigint,
|
|
87
|
+
amount0: BigintIsh,
|
|
88
|
+
amount1: BigintIsh,
|
|
89
|
+
useFullPrecision: boolean,
|
|
90
|
+
): bigint {
|
|
91
|
+
if (sqrtRatioAX96 > sqrtRatioBX96) {
|
|
92
|
+
;[sqrtRatioAX96, sqrtRatioBX96] = [sqrtRatioBX96, sqrtRatioAX96]
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
const maxLiquidityForAmount0 = useFullPrecision
|
|
96
|
+
? maxLiquidityForAmount0Precise
|
|
97
|
+
: maxLiquidityForAmount0Imprecise
|
|
98
|
+
|
|
99
|
+
if (sqrtRatioCurrentX96 <= sqrtRatioAX96) {
|
|
100
|
+
return maxLiquidityForAmount0(sqrtRatioAX96, sqrtRatioBX96, amount0)
|
|
101
|
+
} else if (sqrtRatioCurrentX96 < sqrtRatioBX96) {
|
|
102
|
+
const liquidity0 = maxLiquidityForAmount0(
|
|
103
|
+
sqrtRatioCurrentX96,
|
|
104
|
+
sqrtRatioBX96,
|
|
105
|
+
amount0,
|
|
106
|
+
)
|
|
107
|
+
const liquidity1 = maxLiquidityForAmount1(
|
|
108
|
+
sqrtRatioAX96,
|
|
109
|
+
sqrtRatioCurrentX96,
|
|
110
|
+
amount1,
|
|
111
|
+
)
|
|
112
|
+
return liquidity0 < liquidity1 ? liquidity0 : liquidity1
|
|
113
|
+
} else {
|
|
114
|
+
return maxLiquidityForAmount1(sqrtRatioAX96, sqrtRatioBX96, amount1)
|
|
115
|
+
}
|
|
116
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import type { Price } from '../../../../generic/currency/price.js'
|
|
2
|
+
import type { EvmCurrency } from '../../../currency/currency.js'
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Calculate captial efficiency of the given price range
|
|
6
|
+
* @param priceCurrent Current price
|
|
7
|
+
* @param priceLower Lower price boundary
|
|
8
|
+
* @param priceUpper Upper price boundary
|
|
9
|
+
* @returns Capitial efficiency, i.e., using the same amount of cash, the amount of liquidity obtained by a position
|
|
10
|
+
* with the given price range v.s. that obtained by a full-range position.
|
|
11
|
+
*/
|
|
12
|
+
export function getCapitalEfficiency(
|
|
13
|
+
priceCurrent: Price<EvmCurrency, EvmCurrency>,
|
|
14
|
+
priceLower: Price<EvmCurrency, EvmCurrency>,
|
|
15
|
+
priceUpper: Price<EvmCurrency, EvmCurrency>,
|
|
16
|
+
): number {
|
|
17
|
+
const priceBounded = priceCurrent.gt(priceUpper)
|
|
18
|
+
? priceUpper
|
|
19
|
+
: priceCurrent.lt(priceLower)
|
|
20
|
+
? priceLower
|
|
21
|
+
: priceCurrent
|
|
22
|
+
const sqrtPBounded = Math.sqrt(priceBounded.toNumber())
|
|
23
|
+
const sqrtPLower = Math.sqrt(priceLower.toNumber())
|
|
24
|
+
const sqrtPUpper = Math.sqrt(priceUpper.toNumber())
|
|
25
|
+
|
|
26
|
+
const priceNow = priceCurrent.toNumber()
|
|
27
|
+
const denom =
|
|
28
|
+
priceNow * (1 / sqrtPBounded - 1 / sqrtPUpper) + (sqrtPBounded - sqrtPLower)
|
|
29
|
+
const num = 2 * Math.sqrt(priceNow)
|
|
30
|
+
return num / denom
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Calculate the weights of the two tokens in a position with the given price range in terms of cash value
|
|
35
|
+
* @param priceCurrent Current price
|
|
36
|
+
* @param priceLower Lower price boundary
|
|
37
|
+
* @param priceUpper Upper price boundary
|
|
38
|
+
* @returns [token0's weight, token1's weight] in terms of cash value.
|
|
39
|
+
*/
|
|
40
|
+
export function getTokenRatio(
|
|
41
|
+
priceCurrent: Price<EvmCurrency, EvmCurrency>,
|
|
42
|
+
priceLower: Price<EvmCurrency, EvmCurrency>,
|
|
43
|
+
priceUpper: Price<EvmCurrency, EvmCurrency>,
|
|
44
|
+
): [number, number] {
|
|
45
|
+
if (priceCurrent.gt(priceUpper) || priceCurrent.eq(priceUpper)) return [0, 1]
|
|
46
|
+
if (priceCurrent.lt(priceLower) || priceCurrent.eq(priceLower)) return [1, 0]
|
|
47
|
+
|
|
48
|
+
const a = priceLower.asFraction.mul(priceUpper).toNumber()
|
|
49
|
+
const b = priceCurrent.asFraction.mul(priceUpper).toNumber()
|
|
50
|
+
const p = priceCurrent.asFraction.toNumber()
|
|
51
|
+
|
|
52
|
+
const w0 = 1 / ((Math.sqrt(a) - Math.sqrt(b)) / (p - Math.sqrt(b)) + 1)
|
|
53
|
+
const w1 = 1 - w0
|
|
54
|
+
return [w0, w1]
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const MIN_SQRT_PRICE_APPROX = 2 ** -56
|
|
58
|
+
const MAX_SQRT_PRICE_APPROX = 2 ** 56
|
|
59
|
+
|
|
60
|
+
const getPriceLowerWithTokenRatio = (
|
|
61
|
+
priceCurrent: number,
|
|
62
|
+
priceUpper: number,
|
|
63
|
+
weight0: number,
|
|
64
|
+
): number => {
|
|
65
|
+
if (priceCurrent >= priceUpper) throw new Error('invalid inputs')
|
|
66
|
+
|
|
67
|
+
const z = (1 / weight0 - 1) * priceCurrent
|
|
68
|
+
const sqrtP = Math.sqrt(priceCurrent)
|
|
69
|
+
const sqrtPLower = sqrtP - z * (1 / sqrtP - 1 / Math.sqrt(priceUpper))
|
|
70
|
+
return Math.max(sqrtPLower, MIN_SQRT_PRICE_APPROX) ** 2
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
const getPriceUpperWithTokenRatio = (
|
|
74
|
+
priceCurrent: number,
|
|
75
|
+
priceLower: number,
|
|
76
|
+
weight0: number,
|
|
77
|
+
): number => {
|
|
78
|
+
if (priceLower >= priceCurrent) throw new Error('invalid inputs')
|
|
79
|
+
|
|
80
|
+
const z = (1 / weight0 - 1) * priceCurrent
|
|
81
|
+
const sqrtP = Math.sqrt(priceCurrent)
|
|
82
|
+
const denom = z - (sqrtP - Math.sqrt(priceLower)) * sqrtP
|
|
83
|
+
if (denom <= 0) return MAX_SQRT_PRICE_APPROX ** 2
|
|
84
|
+
const sqrtUpper = (z * sqrtP) / denom
|
|
85
|
+
return Math.min(sqrtUpper, MAX_SQRT_PRICE_APPROX) ** 2
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Given a price range, we alter the range to fit a desired token weight.
|
|
90
|
+
* Note that the resulted price range has not been snapped to fit tick-spacing.
|
|
91
|
+
*/
|
|
92
|
+
export const getPriceRangeWithTokenRatio = (
|
|
93
|
+
priceCurrent: number,
|
|
94
|
+
priceLower: number,
|
|
95
|
+
priceUpper: number,
|
|
96
|
+
independentBound: 'LOWER' | 'UPPER',
|
|
97
|
+
weight0: number,
|
|
98
|
+
): [number, number] => {
|
|
99
|
+
if (weight0 === 1) {
|
|
100
|
+
return [
|
|
101
|
+
Math.max(priceLower, priceCurrent),
|
|
102
|
+
Math.max(priceUpper, priceCurrent),
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
if (weight0 === 0) {
|
|
106
|
+
return [
|
|
107
|
+
Math.min(priceLower, priceCurrent),
|
|
108
|
+
Math.min(priceUpper, priceCurrent),
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// flipped
|
|
113
|
+
if (
|
|
114
|
+
weight0 < 1 &&
|
|
115
|
+
priceLower > priceCurrent &&
|
|
116
|
+
independentBound === 'LOWER'
|
|
117
|
+
) {
|
|
118
|
+
independentBound = 'UPPER'
|
|
119
|
+
priceUpper = priceLower
|
|
120
|
+
priceLower = Number.NaN
|
|
121
|
+
}
|
|
122
|
+
if (
|
|
123
|
+
weight0 > 0 &&
|
|
124
|
+
priceUpper < priceCurrent &&
|
|
125
|
+
independentBound === 'UPPER'
|
|
126
|
+
) {
|
|
127
|
+
independentBound = 'LOWER'
|
|
128
|
+
priceLower = priceUpper
|
|
129
|
+
priceUpper = Number.NaN
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
if (independentBound === 'LOWER') {
|
|
133
|
+
return [
|
|
134
|
+
priceLower,
|
|
135
|
+
getPriceUpperWithTokenRatio(priceCurrent, priceLower, weight0),
|
|
136
|
+
]
|
|
137
|
+
} else {
|
|
138
|
+
return [
|
|
139
|
+
getPriceLowerWithTokenRatio(priceCurrent, priceUpper, weight0),
|
|
140
|
+
priceUpper,
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest'
|
|
2
|
+
import { MAX_UINT256 } from '../../../../generic/math/constants.js'
|
|
3
|
+
import { mostSignificantBit } from './mostSignificantBit.js'
|
|
4
|
+
|
|
5
|
+
describe('mostSignificantBit', () => {
|
|
6
|
+
it('throws for zero', () => {
|
|
7
|
+
expect(() => mostSignificantBit(0n)).toThrow('ZERO')
|
|
8
|
+
})
|
|
9
|
+
it('correct value for every power of 2', () => {
|
|
10
|
+
for (let i = 1; i < 256; i++) {
|
|
11
|
+
const x = 2n ** BigInt(i)
|
|
12
|
+
expect(mostSignificantBit(x)).toEqual(i)
|
|
13
|
+
}
|
|
14
|
+
})
|
|
15
|
+
it('correct value for every power of 2 - 1', () => {
|
|
16
|
+
for (let i = 2; i < 256; i++) {
|
|
17
|
+
const x = 2n ** BigInt(i) - 1n
|
|
18
|
+
expect(mostSignificantBit(x)).toEqual(i - 1)
|
|
19
|
+
}
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
it('succeeds for MaxUint256', () => {
|
|
23
|
+
expect(mostSignificantBit(MAX_UINT256)).toEqual(255)
|
|
24
|
+
})
|
|
25
|
+
|
|
26
|
+
it('throws for MaxUint256 + 1', () => {
|
|
27
|
+
expect(() => mostSignificantBit(MAX_UINT256 + 1n)).toThrow('MAX')
|
|
28
|
+
})
|
|
29
|
+
})
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import invariant from 'tiny-invariant'
|
|
2
|
+
import { MAX_UINT256 } from '../../../../generic/math/constants.js'
|
|
3
|
+
|
|
4
|
+
const POWERS_OF_2 = [128, 64, 32, 16, 8, 4, 2, 1].map(
|
|
5
|
+
(pow: number): [number, bigint] => [pow, 2n ** BigInt(pow)],
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
export function mostSignificantBit(x: bigint): number {
|
|
9
|
+
invariant(x > 0n, 'ZERO')
|
|
10
|
+
invariant(x <= MAX_UINT256, 'MAX')
|
|
11
|
+
|
|
12
|
+
let msb = 0
|
|
13
|
+
for (const [power, min] of POWERS_OF_2) {
|
|
14
|
+
if (x >= min) {
|
|
15
|
+
x = x >> BigInt(power)
|
|
16
|
+
msb += power
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return msb
|
|
20
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest'
|
|
2
|
+
import { nearestUsableTick } from './nearestUsableTick.js'
|
|
3
|
+
import { TickMath } from './tickMath.js'
|
|
4
|
+
|
|
5
|
+
describe('#nearestUsableTick', () => {
|
|
6
|
+
it('throws if tickSpacing is 0', () => {
|
|
7
|
+
expect(() => nearestUsableTick(1, 0)).toThrow('TICK_SPACING')
|
|
8
|
+
})
|
|
9
|
+
|
|
10
|
+
it('throws if tickSpacing is negative', () => {
|
|
11
|
+
expect(() => nearestUsableTick(1, -5)).toThrow('TICK_SPACING')
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
it('throws if either is non-integer', () => {
|
|
15
|
+
expect(() => nearestUsableTick(1.5, 1)).toThrow('INTEGERS')
|
|
16
|
+
expect(() => nearestUsableTick(1, 1.5)).toThrow('INTEGERS')
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
it('throws if tick is greater than TickMath.MAX_TICK', () => {
|
|
20
|
+
expect(() => nearestUsableTick(TickMath.MAX_TICK + 1, 1)).toThrow(
|
|
21
|
+
'TICK_BOUND',
|
|
22
|
+
)
|
|
23
|
+
expect(() => nearestUsableTick(TickMath.MIN_TICK - 1, 1)).toThrow(
|
|
24
|
+
'TICK_BOUND',
|
|
25
|
+
)
|
|
26
|
+
})
|
|
27
|
+
|
|
28
|
+
it('rounds at positive half', () => {
|
|
29
|
+
expect(nearestUsableTick(5, 10)).toEqual(10)
|
|
30
|
+
})
|
|
31
|
+
|
|
32
|
+
it('rounds down below positive half', () => {
|
|
33
|
+
expect(nearestUsableTick(4, 10)).toEqual(0)
|
|
34
|
+
})
|
|
35
|
+
|
|
36
|
+
it('rounds up for negative half', () => {
|
|
37
|
+
expect(nearestUsableTick(-5, 10)).toEqual(-0)
|
|
38
|
+
})
|
|
39
|
+
|
|
40
|
+
it('rounds up for negative half', () => {
|
|
41
|
+
expect(nearestUsableTick(-6, 10)).toEqual(-10)
|
|
42
|
+
})
|
|
43
|
+
|
|
44
|
+
it('cannot round past MIN_TICK', () => {
|
|
45
|
+
expect(
|
|
46
|
+
nearestUsableTick(TickMath.MIN_TICK, TickMath.MAX_TICK / 2 + 100),
|
|
47
|
+
).toEqual(-(TickMath.MAX_TICK / 2 + 100))
|
|
48
|
+
})
|
|
49
|
+
|
|
50
|
+
it('cannot round past MAX_TICK', () => {
|
|
51
|
+
expect(
|
|
52
|
+
nearestUsableTick(TickMath.MAX_TICK, TickMath.MAX_TICK / 2 + 100),
|
|
53
|
+
).toEqual(TickMath.MAX_TICK / 2 + 100)
|
|
54
|
+
})
|
|
55
|
+
})
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import invariant from 'tiny-invariant'
|
|
2
|
+
import { TickMath } from './tickMath.js'
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Returns the closest tick that is nearest a given tick and usable for the given tick spacing
|
|
6
|
+
* @param tick the target tick
|
|
7
|
+
* @param tickSpacing the spacing of the pool
|
|
8
|
+
*/
|
|
9
|
+
export function nearestUsableTick(tick: number, tickSpacing: number) {
|
|
10
|
+
invariant(Number.isInteger(tick) && Number.isInteger(tickSpacing), 'INTEGERS')
|
|
11
|
+
invariant(tickSpacing > 0, 'TICK_SPACING')
|
|
12
|
+
invariant(
|
|
13
|
+
tick >= TickMath.MIN_TICK && tick <= TickMath.MAX_TICK,
|
|
14
|
+
'TICK_BOUND',
|
|
15
|
+
)
|
|
16
|
+
const rounded = Math.round(tick / tickSpacing) * tickSpacing
|
|
17
|
+
if (rounded < TickMath.MIN_TICK) return rounded + tickSpacing
|
|
18
|
+
else if (rounded > TickMath.MAX_TICK) return rounded - tickSpacing
|
|
19
|
+
else return rounded
|
|
20
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest'
|
|
2
|
+
import { PositionLibrary } from './position.js'
|
|
3
|
+
|
|
4
|
+
describe('PositionLibrary', () => {
|
|
5
|
+
describe('#getTokensOwed', () => {
|
|
6
|
+
it('0', () => {
|
|
7
|
+
const [tokensOwed0, tokensOwed1] = PositionLibrary.getTokensOwed(
|
|
8
|
+
0n,
|
|
9
|
+
0n,
|
|
10
|
+
0n,
|
|
11
|
+
0n,
|
|
12
|
+
0n,
|
|
13
|
+
)
|
|
14
|
+
expect(tokensOwed0).toEqual(0n)
|
|
15
|
+
expect(tokensOwed1).toEqual(0n)
|
|
16
|
+
})
|
|
17
|
+
|
|
18
|
+
it('non-0', () => {
|
|
19
|
+
const [tokensOwed0, tokensOwed1] = PositionLibrary.getTokensOwed(
|
|
20
|
+
0n,
|
|
21
|
+
0n,
|
|
22
|
+
1n,
|
|
23
|
+
2n ** 128n,
|
|
24
|
+
2n ** 128n,
|
|
25
|
+
)
|
|
26
|
+
expect(tokensOwed0).toEqual(1n)
|
|
27
|
+
expect(tokensOwed1).toEqual(1n)
|
|
28
|
+
})
|
|
29
|
+
})
|
|
30
|
+
})
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { subIn256 } from './tickLibrary.js'
|
|
2
|
+
|
|
3
|
+
const Q128 = 2n ** 128n
|
|
4
|
+
|
|
5
|
+
export abstract class PositionLibrary {
|
|
6
|
+
/**
|
|
7
|
+
* Cannot be constructed.
|
|
8
|
+
*/
|
|
9
|
+
private constructor() {}
|
|
10
|
+
|
|
11
|
+
// replicates the portions of Position#update required to compute unaccounted fees
|
|
12
|
+
public static getTokensOwed(
|
|
13
|
+
feeGrowthInside0LastX128: bigint,
|
|
14
|
+
feeGrowthInside1LastX128: bigint,
|
|
15
|
+
liquidity: bigint,
|
|
16
|
+
feeGrowthInside0X128: bigint,
|
|
17
|
+
feeGrowthInside1X128: bigint,
|
|
18
|
+
) {
|
|
19
|
+
const tokensOwed0 =
|
|
20
|
+
(subIn256(feeGrowthInside0X128, feeGrowthInside0LastX128) * liquidity) /
|
|
21
|
+
Q128
|
|
22
|
+
|
|
23
|
+
const tokensOwed1 =
|
|
24
|
+
(subIn256(feeGrowthInside1X128, feeGrowthInside1LastX128) * liquidity) /
|
|
25
|
+
Q128
|
|
26
|
+
|
|
27
|
+
return [tokensOwed0, tokensOwed1]
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest'
|
|
2
|
+
import { EvmToken } from '../../../../evm/currency/token.js'
|
|
3
|
+
import { Price } from '../../../../generic/currency/price.js'
|
|
4
|
+
import type { EvmChainId } from '../../../chain/index.js'
|
|
5
|
+
import { priceToClosestTick, tickToPrice } from './priceTickConversions.js'
|
|
6
|
+
|
|
7
|
+
describe('priceTickConversions', () => {
|
|
8
|
+
/**
|
|
9
|
+
* Creates an example token with a specific sort order
|
|
10
|
+
*/
|
|
11
|
+
function token({
|
|
12
|
+
sortOrder,
|
|
13
|
+
decimals = 18,
|
|
14
|
+
chainId = 1,
|
|
15
|
+
}: {
|
|
16
|
+
sortOrder: number
|
|
17
|
+
decimals?: number
|
|
18
|
+
chainId?: EvmChainId
|
|
19
|
+
}): EvmToken {
|
|
20
|
+
if (sortOrder > 9 || sortOrder % 1 !== 0)
|
|
21
|
+
throw new Error('invalid sort order')
|
|
22
|
+
return new EvmToken({
|
|
23
|
+
chainId,
|
|
24
|
+
address: `0x${new Array<string>(40).fill(`${sortOrder}`).join('')}`,
|
|
25
|
+
decimals,
|
|
26
|
+
symbol: `T${sortOrder}`,
|
|
27
|
+
name: `token${sortOrder}`,
|
|
28
|
+
})
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const token0 = token({ sortOrder: 0 })
|
|
32
|
+
const token1 = token({ sortOrder: 1 })
|
|
33
|
+
const token2_6decimals = token({ sortOrder: 2, decimals: 6 })
|
|
34
|
+
|
|
35
|
+
describe('#tickToPrice', () => {
|
|
36
|
+
it('1800 t0/1 t1', () => {
|
|
37
|
+
expect(tickToPrice(token1, token0, -74959).toSignificant(5)).toEqual(
|
|
38
|
+
'1800',
|
|
39
|
+
)
|
|
40
|
+
})
|
|
41
|
+
|
|
42
|
+
it('1 t1/1800 t0', () => {
|
|
43
|
+
expect(tickToPrice(token0, token1, -74959).toSignificant(5)).toEqual(
|
|
44
|
+
'0.00055556',
|
|
45
|
+
)
|
|
46
|
+
})
|
|
47
|
+
|
|
48
|
+
it('1800 t1/1 t0', () => {
|
|
49
|
+
expect(tickToPrice(token0, token1, 74959).toSignificant(5)).toEqual(
|
|
50
|
+
'1800',
|
|
51
|
+
)
|
|
52
|
+
})
|
|
53
|
+
|
|
54
|
+
it('1 t0/1800 t1', () => {
|
|
55
|
+
expect(tickToPrice(token1, token0, 74959).toSignificant(5)).toEqual(
|
|
56
|
+
'0.00055556',
|
|
57
|
+
)
|
|
58
|
+
})
|
|
59
|
+
|
|
60
|
+
describe('12 decimal difference', () => {
|
|
61
|
+
it('1.01 t2/1 t0', () => {
|
|
62
|
+
expect(
|
|
63
|
+
tickToPrice(token0, token2_6decimals, -276225).toSignificant(5),
|
|
64
|
+
).toEqual('1.01')
|
|
65
|
+
})
|
|
66
|
+
|
|
67
|
+
it('1 t0/1.01 t2', () => {
|
|
68
|
+
expect(
|
|
69
|
+
tickToPrice(token2_6decimals, token0, -276225).toSignificant(5),
|
|
70
|
+
).toEqual('0.99015')
|
|
71
|
+
})
|
|
72
|
+
|
|
73
|
+
it('1 t2/1.01 t0', () => {
|
|
74
|
+
expect(
|
|
75
|
+
tickToPrice(token0, token2_6decimals, -276423).toSignificant(5),
|
|
76
|
+
).toEqual('0.99015')
|
|
77
|
+
})
|
|
78
|
+
|
|
79
|
+
it('1.01 t0/1 t2', () => {
|
|
80
|
+
expect(
|
|
81
|
+
tickToPrice(token2_6decimals, token0, -276423).toSignificant(5),
|
|
82
|
+
).toEqual('1.0099')
|
|
83
|
+
})
|
|
84
|
+
|
|
85
|
+
it('1.01 t2/1 t0', () => {
|
|
86
|
+
expect(
|
|
87
|
+
tickToPrice(token0, token2_6decimals, -276225).toSignificant(5),
|
|
88
|
+
).toEqual('1.01')
|
|
89
|
+
})
|
|
90
|
+
|
|
91
|
+
it('1 t0/1.01 t2', () => {
|
|
92
|
+
expect(
|
|
93
|
+
tickToPrice(token2_6decimals, token0, -276225).toSignificant(5),
|
|
94
|
+
).toEqual('0.99015')
|
|
95
|
+
})
|
|
96
|
+
})
|
|
97
|
+
})
|
|
98
|
+
|
|
99
|
+
describe('#priceToClosestTick', () => {
|
|
100
|
+
it('1800 t0/1 t1', () => {
|
|
101
|
+
expect(
|
|
102
|
+
priceToClosestTick(
|
|
103
|
+
new Price({
|
|
104
|
+
base: token1,
|
|
105
|
+
quote: token0,
|
|
106
|
+
denominator: 1,
|
|
107
|
+
numerator: 1800,
|
|
108
|
+
}),
|
|
109
|
+
),
|
|
110
|
+
).toEqual(-74960)
|
|
111
|
+
})
|
|
112
|
+
|
|
113
|
+
it('1 t1/1800 t0', () => {
|
|
114
|
+
expect(
|
|
115
|
+
priceToClosestTick(
|
|
116
|
+
new Price({
|
|
117
|
+
base: token0,
|
|
118
|
+
quote: token1,
|
|
119
|
+
denominator: 1800,
|
|
120
|
+
numerator: 1,
|
|
121
|
+
}),
|
|
122
|
+
),
|
|
123
|
+
).toEqual(-74960)
|
|
124
|
+
})
|
|
125
|
+
|
|
126
|
+
it('1.01 t2/1 t0', () => {
|
|
127
|
+
expect(
|
|
128
|
+
priceToClosestTick(
|
|
129
|
+
new Price({
|
|
130
|
+
base: token0,
|
|
131
|
+
quote: token2_6decimals,
|
|
132
|
+
denominator: 100e18,
|
|
133
|
+
numerator: 101e6,
|
|
134
|
+
}),
|
|
135
|
+
),
|
|
136
|
+
).toEqual(-276225)
|
|
137
|
+
})
|
|
138
|
+
|
|
139
|
+
it('1 t0/1.01 t2', () => {
|
|
140
|
+
expect(
|
|
141
|
+
priceToClosestTick(
|
|
142
|
+
new Price({
|
|
143
|
+
base: token2_6decimals,
|
|
144
|
+
quote: token0,
|
|
145
|
+
denominator: 101e6,
|
|
146
|
+
numerator: 100e18,
|
|
147
|
+
}),
|
|
148
|
+
),
|
|
149
|
+
).toEqual(-276225)
|
|
150
|
+
})
|
|
151
|
+
|
|
152
|
+
describe('reciprocal with tickToPrice', () => {
|
|
153
|
+
it('1800 t0/1 t1', () => {
|
|
154
|
+
expect(priceToClosestTick(tickToPrice(token1, token0, -74960))).toEqual(
|
|
155
|
+
-74960,
|
|
156
|
+
)
|
|
157
|
+
})
|
|
158
|
+
|
|
159
|
+
it('1 t0/1800 t1', () => {
|
|
160
|
+
expect(priceToClosestTick(tickToPrice(token1, token0, 74960))).toEqual(
|
|
161
|
+
74960,
|
|
162
|
+
)
|
|
163
|
+
})
|
|
164
|
+
|
|
165
|
+
it('1 t1/1800 t0', () => {
|
|
166
|
+
expect(priceToClosestTick(tickToPrice(token0, token1, -74960))).toEqual(
|
|
167
|
+
-74960,
|
|
168
|
+
)
|
|
169
|
+
})
|
|
170
|
+
|
|
171
|
+
it('1800 t1/1 t0', () => {
|
|
172
|
+
expect(priceToClosestTick(tickToPrice(token0, token1, 74960))).toEqual(
|
|
173
|
+
74960,
|
|
174
|
+
)
|
|
175
|
+
})
|
|
176
|
+
|
|
177
|
+
it('1.01 t2/1 t0', () => {
|
|
178
|
+
expect(
|
|
179
|
+
priceToClosestTick(tickToPrice(token0, token2_6decimals, -276225)),
|
|
180
|
+
).toEqual(-276225)
|
|
181
|
+
})
|
|
182
|
+
|
|
183
|
+
it('1 t0/1.01 t2', () => {
|
|
184
|
+
expect(
|
|
185
|
+
priceToClosestTick(tickToPrice(token2_6decimals, token0, -276225)),
|
|
186
|
+
).toEqual(-276225)
|
|
187
|
+
})
|
|
188
|
+
})
|
|
189
|
+
})
|
|
190
|
+
})
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Price } from '../../../../generic/currency/price.js'
|
|
2
|
+
import type { EvmToken } from '../../../currency/token.js'
|
|
3
|
+
import { Q192 } from '../internalConstants.js'
|
|
4
|
+
import { encodeSqrtRatioX96 } from './encodeSqrtRatioX96.js'
|
|
5
|
+
import { TickMath } from './tickMath.js'
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Returns a price object corresponding to the input tick and the base/quote token
|
|
9
|
+
* Inputs must be tokens because the address order is used to interpret the price represented by the tick
|
|
10
|
+
* @param baseToken the base token of the price
|
|
11
|
+
* @param quoteToken the quote token of the price
|
|
12
|
+
* @param tick the tick for which to return the price
|
|
13
|
+
*/
|
|
14
|
+
export function tickToPrice(
|
|
15
|
+
baseToken: EvmToken,
|
|
16
|
+
quoteToken: EvmToken,
|
|
17
|
+
tick: number,
|
|
18
|
+
): Price<EvmToken, EvmToken> {
|
|
19
|
+
const sqrtRatioX96 = TickMath.getSqrtRatioAtTick(tick)
|
|
20
|
+
|
|
21
|
+
const ratioX192 = sqrtRatioX96 * sqrtRatioX96
|
|
22
|
+
|
|
23
|
+
return baseToken.sortsBefore(quoteToken)
|
|
24
|
+
? new Price({
|
|
25
|
+
base: baseToken,
|
|
26
|
+
quote: quoteToken,
|
|
27
|
+
denominator: Q192,
|
|
28
|
+
numerator: ratioX192,
|
|
29
|
+
})
|
|
30
|
+
: new Price({
|
|
31
|
+
base: baseToken,
|
|
32
|
+
quote: quoteToken,
|
|
33
|
+
denominator: ratioX192,
|
|
34
|
+
numerator: Q192,
|
|
35
|
+
})
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Returns the first tick for which the given price is greater than or equal to the tick price
|
|
40
|
+
* @param price for which to return the closest tick that represents a price less than or equal to the input price,
|
|
41
|
+
* i.e. the price of the returned tick is less than or equal to the input price
|
|
42
|
+
*/
|
|
43
|
+
export function priceToClosestTick(price: Price<EvmToken, EvmToken>): number {
|
|
44
|
+
const sorted = price.base.sortsBefore(price.quote)
|
|
45
|
+
|
|
46
|
+
const sqrtRatioX96 = sorted
|
|
47
|
+
? encodeSqrtRatioX96(price.numerator, price.denominator)
|
|
48
|
+
: encodeSqrtRatioX96(price.denominator, price.numerator)
|
|
49
|
+
|
|
50
|
+
let tick = TickMath.getTickAtSqrtRatio(sqrtRatioX96)
|
|
51
|
+
const nextTickPrice = tickToPrice(price.base, price.quote, tick + 1)
|
|
52
|
+
if (sorted) {
|
|
53
|
+
if (!price.lt(nextTickPrice)) {
|
|
54
|
+
tick++
|
|
55
|
+
}
|
|
56
|
+
} else {
|
|
57
|
+
if (!price.gt(nextTickPrice)) {
|
|
58
|
+
tick++
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return tick
|
|
62
|
+
}
|