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,440 @@
|
|
|
1
|
+
import invariant from 'tiny-invariant'
|
|
2
|
+
import { Amount } from '../../../../generic/currency/amount.js'
|
|
3
|
+
import type { Price } from '../../../../generic/currency/price.js'
|
|
4
|
+
import { MAX_UINT256 } from '../../../../generic/math/constants.js'
|
|
5
|
+
import { Percent } from '../../../../generic/math/percent.js'
|
|
6
|
+
import type { BigintIsh } from '../../../../generic/types/bigintish.js'
|
|
7
|
+
import type { EvmToken } from '../../../currency/token.js'
|
|
8
|
+
import { encodeSqrtRatioX96 } from '../utils/encodeSqrtRatioX96.js'
|
|
9
|
+
import { maxLiquidityForAmounts } from '../utils/maxLiquidityForAmounts.js'
|
|
10
|
+
import { tickToPrice } from '../utils/priceTickConversions.js'
|
|
11
|
+
import { SqrtPriceMath } from '../utils/sqrtPriceMath.js'
|
|
12
|
+
import { TickMath } from '../utils/tickMath.js'
|
|
13
|
+
import { SushiSwapV3Pool } from './SushiSwapV3Pool.js'
|
|
14
|
+
|
|
15
|
+
interface PositionConstructorArgs {
|
|
16
|
+
pool: SushiSwapV3Pool
|
|
17
|
+
tickLower: number
|
|
18
|
+
tickUpper: number
|
|
19
|
+
liquidity: BigintIsh
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Represents a position on a Uniswap V3 Pool
|
|
24
|
+
*/
|
|
25
|
+
export class Position {
|
|
26
|
+
public readonly pool: SushiSwapV3Pool
|
|
27
|
+
public readonly tickLower: number
|
|
28
|
+
public readonly tickUpper: number
|
|
29
|
+
public readonly liquidity: bigint
|
|
30
|
+
|
|
31
|
+
// cached resuts for the getters
|
|
32
|
+
private _token0Amount: Amount<EvmToken> | null = null
|
|
33
|
+
private _token1Amount: Amount<EvmToken> | null = null
|
|
34
|
+
private _mintAmounts: Readonly<{ amount0: bigint; amount1: bigint }> | null =
|
|
35
|
+
null
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Constructs a position for a given pool with the given liquidity
|
|
39
|
+
* @param pool For which pool the liquidity is assigned
|
|
40
|
+
* @param liquidity The amount of liquidity that is in the position
|
|
41
|
+
* @param tickLower The lower tick of the position
|
|
42
|
+
* @param tickUpper The upper tick of the position
|
|
43
|
+
*/
|
|
44
|
+
public constructor({
|
|
45
|
+
pool,
|
|
46
|
+
liquidity,
|
|
47
|
+
tickLower,
|
|
48
|
+
tickUpper,
|
|
49
|
+
}: PositionConstructorArgs) {
|
|
50
|
+
invariant(tickLower < tickUpper, 'TICK_ORDER')
|
|
51
|
+
invariant(
|
|
52
|
+
tickLower >= TickMath.MIN_TICK && tickLower % pool.tickSpacing === 0,
|
|
53
|
+
'TICK_LOWER',
|
|
54
|
+
)
|
|
55
|
+
invariant(
|
|
56
|
+
tickUpper <= TickMath.MAX_TICK && tickUpper % pool.tickSpacing === 0,
|
|
57
|
+
'TICK_UPPER',
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
this.pool = pool
|
|
61
|
+
this.tickLower = tickLower
|
|
62
|
+
this.tickUpper = tickUpper
|
|
63
|
+
this.liquidity = BigInt(liquidity.toString())
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Returns the price of token0 at the lower tick
|
|
68
|
+
*/
|
|
69
|
+
public get token0PriceLower(): Price<EvmToken, EvmToken> {
|
|
70
|
+
return tickToPrice(this.pool.token0, this.pool.token1, this.tickLower)
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Returns the price of token0 at the upper tick
|
|
75
|
+
*/
|
|
76
|
+
public get token0PriceUpper(): Price<EvmToken, EvmToken> {
|
|
77
|
+
return tickToPrice(this.pool.token0, this.pool.token1, this.tickUpper)
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Returns the amount of token0 that this position's liquidity could be burned for at the current pool price
|
|
82
|
+
*/
|
|
83
|
+
public get amount0(): Amount<EvmToken> {
|
|
84
|
+
if (this._token0Amount === null) {
|
|
85
|
+
if (this.pool.tickCurrent < this.tickLower) {
|
|
86
|
+
this._token0Amount = new Amount(
|
|
87
|
+
this.pool.token0,
|
|
88
|
+
SqrtPriceMath.getAmount0Delta(
|
|
89
|
+
TickMath.getSqrtRatioAtTick(this.tickLower),
|
|
90
|
+
TickMath.getSqrtRatioAtTick(this.tickUpper),
|
|
91
|
+
this.liquidity,
|
|
92
|
+
false,
|
|
93
|
+
),
|
|
94
|
+
)
|
|
95
|
+
} else if (this.pool.tickCurrent < this.tickUpper) {
|
|
96
|
+
this._token0Amount = new Amount(
|
|
97
|
+
this.pool.token0,
|
|
98
|
+
SqrtPriceMath.getAmount0Delta(
|
|
99
|
+
this.pool.sqrtRatioX96,
|
|
100
|
+
TickMath.getSqrtRatioAtTick(this.tickUpper),
|
|
101
|
+
this.liquidity,
|
|
102
|
+
false,
|
|
103
|
+
),
|
|
104
|
+
)
|
|
105
|
+
} else {
|
|
106
|
+
this._token0Amount = new Amount(this.pool.token0, 0n)
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
return this._token0Amount
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Returns the amount of token1 that this position's liquidity could be burned for at the current pool price
|
|
114
|
+
*/
|
|
115
|
+
public get amount1(): Amount<EvmToken> {
|
|
116
|
+
if (this._token1Amount === null) {
|
|
117
|
+
if (this.pool.tickCurrent < this.tickLower) {
|
|
118
|
+
this._token1Amount = new Amount(this.pool.token1, 0n)
|
|
119
|
+
} else if (this.pool.tickCurrent < this.tickUpper) {
|
|
120
|
+
this._token1Amount = new Amount(
|
|
121
|
+
this.pool.token1,
|
|
122
|
+
SqrtPriceMath.getAmount1Delta(
|
|
123
|
+
TickMath.getSqrtRatioAtTick(this.tickLower),
|
|
124
|
+
this.pool.sqrtRatioX96,
|
|
125
|
+
this.liquidity,
|
|
126
|
+
false,
|
|
127
|
+
),
|
|
128
|
+
)
|
|
129
|
+
} else {
|
|
130
|
+
this._token1Amount = new Amount(
|
|
131
|
+
this.pool.token1,
|
|
132
|
+
SqrtPriceMath.getAmount1Delta(
|
|
133
|
+
TickMath.getSqrtRatioAtTick(this.tickLower),
|
|
134
|
+
TickMath.getSqrtRatioAtTick(this.tickUpper),
|
|
135
|
+
this.liquidity,
|
|
136
|
+
false,
|
|
137
|
+
),
|
|
138
|
+
)
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
return this._token1Amount
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Returns the lower and upper sqrt ratios if the price 'slips' up to slippage tolerance percentage
|
|
146
|
+
* @param slippageTolerance The amount by which the price can 'slip' before the transaction will revert
|
|
147
|
+
* @returns The sqrt ratios after slippage
|
|
148
|
+
*/
|
|
149
|
+
private ratiosAfterSlippage(slippageTolerance: Percent): {
|
|
150
|
+
sqrtRatioX96Lower: bigint
|
|
151
|
+
sqrtRatioX96Upper: bigint
|
|
152
|
+
} {
|
|
153
|
+
const priceLower = this.pool.token0Price.asFraction.mul(
|
|
154
|
+
new Percent(1).sub(slippageTolerance),
|
|
155
|
+
)
|
|
156
|
+
const priceUpper = this.pool.token0Price.asFraction.mul(
|
|
157
|
+
slippageTolerance.add(1),
|
|
158
|
+
)
|
|
159
|
+
let sqrtRatioX96Lower = encodeSqrtRatioX96(
|
|
160
|
+
priceLower.numerator,
|
|
161
|
+
priceLower.denominator,
|
|
162
|
+
)
|
|
163
|
+
if (sqrtRatioX96Lower <= TickMath.MIN_SQRT_RATIO) {
|
|
164
|
+
sqrtRatioX96Lower = TickMath.MIN_SQRT_RATIO + 1n
|
|
165
|
+
}
|
|
166
|
+
let sqrtRatioX96Upper = encodeSqrtRatioX96(
|
|
167
|
+
priceUpper.numerator,
|
|
168
|
+
priceUpper.denominator,
|
|
169
|
+
)
|
|
170
|
+
if (sqrtRatioX96Upper >= TickMath.MAX_SQRT_RATIO) {
|
|
171
|
+
sqrtRatioX96Upper = TickMath.MAX_SQRT_RATIO - 1n
|
|
172
|
+
}
|
|
173
|
+
return {
|
|
174
|
+
sqrtRatioX96Lower,
|
|
175
|
+
sqrtRatioX96Upper,
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Returns the minimum amounts that must be sent in order to safely mint the amount of liquidity held by the position
|
|
181
|
+
* with the given slippage tolerance
|
|
182
|
+
* @param slippageTolerance Tolerance of unfavorable slippage from the current price
|
|
183
|
+
* @returns The amounts, with slippage
|
|
184
|
+
*/
|
|
185
|
+
public mintAmountsWithSlippage(
|
|
186
|
+
slippageTolerance: Percent,
|
|
187
|
+
): Readonly<{ amount0: bigint; amount1: bigint }> {
|
|
188
|
+
// get lower/upper prices
|
|
189
|
+
const { sqrtRatioX96Upper, sqrtRatioX96Lower } =
|
|
190
|
+
this.ratiosAfterSlippage(slippageTolerance)
|
|
191
|
+
|
|
192
|
+
// construct counterfactual pools
|
|
193
|
+
const poolLower = new SushiSwapV3Pool(
|
|
194
|
+
this.pool.token0,
|
|
195
|
+
this.pool.token1,
|
|
196
|
+
this.pool.fee,
|
|
197
|
+
sqrtRatioX96Lower,
|
|
198
|
+
0 /* liquidity doesn't matter */,
|
|
199
|
+
TickMath.getTickAtSqrtRatio(sqrtRatioX96Lower),
|
|
200
|
+
)
|
|
201
|
+
const poolUpper = new SushiSwapV3Pool(
|
|
202
|
+
this.pool.token0,
|
|
203
|
+
this.pool.token1,
|
|
204
|
+
this.pool.fee,
|
|
205
|
+
sqrtRatioX96Upper,
|
|
206
|
+
0 /* liquidity doesn't matter */,
|
|
207
|
+
TickMath.getTickAtSqrtRatio(sqrtRatioX96Upper),
|
|
208
|
+
)
|
|
209
|
+
|
|
210
|
+
// because the router is imprecise, we need to calculate the position that will be created (assuming no slippage)
|
|
211
|
+
const positionThatWillBeCreated = Position.fromAmounts({
|
|
212
|
+
pool: this.pool,
|
|
213
|
+
tickLower: this.tickLower,
|
|
214
|
+
tickUpper: this.tickUpper,
|
|
215
|
+
...this.mintAmounts, // the mint amounts are what will be passed as calldata
|
|
216
|
+
useFullPrecision: false,
|
|
217
|
+
})
|
|
218
|
+
|
|
219
|
+
// we want the smaller amounts...
|
|
220
|
+
// ...which occurs at the upper price for amount0...
|
|
221
|
+
const { amount0 } = new Position({
|
|
222
|
+
pool: poolUpper,
|
|
223
|
+
liquidity: positionThatWillBeCreated.liquidity,
|
|
224
|
+
tickLower: this.tickLower,
|
|
225
|
+
tickUpper: this.tickUpper,
|
|
226
|
+
}).mintAmounts
|
|
227
|
+
// ...and the lower for amount1
|
|
228
|
+
const { amount1 } = new Position({
|
|
229
|
+
pool: poolLower,
|
|
230
|
+
liquidity: positionThatWillBeCreated.liquidity,
|
|
231
|
+
tickLower: this.tickLower,
|
|
232
|
+
tickUpper: this.tickUpper,
|
|
233
|
+
}).mintAmounts
|
|
234
|
+
|
|
235
|
+
return { amount0, amount1 }
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Returns the minimum amounts that should be requested in order to safely burn the amount of liquidity held by the
|
|
240
|
+
* position with the given slippage tolerance
|
|
241
|
+
* @param slippageTolerance tolerance of unfavorable slippage from the current price
|
|
242
|
+
* @returns The amounts, with slippage
|
|
243
|
+
*/
|
|
244
|
+
public burnAmountsWithSlippage(
|
|
245
|
+
slippageTolerance: Percent,
|
|
246
|
+
): Readonly<{ amount0: bigint; amount1: bigint }> {
|
|
247
|
+
// get lower/upper prices
|
|
248
|
+
const { sqrtRatioX96Upper, sqrtRatioX96Lower } =
|
|
249
|
+
this.ratiosAfterSlippage(slippageTolerance)
|
|
250
|
+
|
|
251
|
+
// construct counterfactual pools
|
|
252
|
+
const poolLower = new SushiSwapV3Pool(
|
|
253
|
+
this.pool.token0,
|
|
254
|
+
this.pool.token1,
|
|
255
|
+
this.pool.fee,
|
|
256
|
+
sqrtRatioX96Lower,
|
|
257
|
+
0 /* liquidity doesn't matter */,
|
|
258
|
+
TickMath.getTickAtSqrtRatio(sqrtRatioX96Lower),
|
|
259
|
+
)
|
|
260
|
+
const poolUpper = new SushiSwapV3Pool(
|
|
261
|
+
this.pool.token0,
|
|
262
|
+
this.pool.token1,
|
|
263
|
+
this.pool.fee,
|
|
264
|
+
sqrtRatioX96Upper,
|
|
265
|
+
0 /* liquidity doesn't matter */,
|
|
266
|
+
TickMath.getTickAtSqrtRatio(sqrtRatioX96Upper),
|
|
267
|
+
)
|
|
268
|
+
|
|
269
|
+
// we want the smaller amounts...
|
|
270
|
+
// ...which occurs at the upper price for amount0...
|
|
271
|
+
const amount0 = new Position({
|
|
272
|
+
pool: poolUpper,
|
|
273
|
+
liquidity: this.liquidity,
|
|
274
|
+
tickLower: this.tickLower,
|
|
275
|
+
tickUpper: this.tickUpper,
|
|
276
|
+
}).amount0
|
|
277
|
+
// ...and the lower for amount1
|
|
278
|
+
const amount1 = new Position({
|
|
279
|
+
pool: poolLower,
|
|
280
|
+
liquidity: this.liquidity,
|
|
281
|
+
tickLower: this.tickLower,
|
|
282
|
+
tickUpper: this.tickUpper,
|
|
283
|
+
}).amount1
|
|
284
|
+
|
|
285
|
+
return { amount0: amount0.amount, amount1: amount1.amount }
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Returns the minimum amounts that must be sent in order to mint the amount of liquidity held by the position at
|
|
290
|
+
* the current price for the pool
|
|
291
|
+
*/
|
|
292
|
+
public get mintAmounts(): Readonly<{ amount0: bigint; amount1: bigint }> {
|
|
293
|
+
if (this._mintAmounts === null) {
|
|
294
|
+
if (this.pool.tickCurrent < this.tickLower) {
|
|
295
|
+
return {
|
|
296
|
+
amount0: SqrtPriceMath.getAmount0Delta(
|
|
297
|
+
TickMath.getSqrtRatioAtTick(this.tickLower),
|
|
298
|
+
TickMath.getSqrtRatioAtTick(this.tickUpper),
|
|
299
|
+
this.liquidity,
|
|
300
|
+
true,
|
|
301
|
+
),
|
|
302
|
+
amount1: 0n,
|
|
303
|
+
}
|
|
304
|
+
} else if (this.pool.tickCurrent < this.tickUpper) {
|
|
305
|
+
return {
|
|
306
|
+
amount0: SqrtPriceMath.getAmount0Delta(
|
|
307
|
+
this.pool.sqrtRatioX96,
|
|
308
|
+
TickMath.getSqrtRatioAtTick(this.tickUpper),
|
|
309
|
+
this.liquidity,
|
|
310
|
+
true,
|
|
311
|
+
),
|
|
312
|
+
amount1: SqrtPriceMath.getAmount1Delta(
|
|
313
|
+
TickMath.getSqrtRatioAtTick(this.tickLower),
|
|
314
|
+
this.pool.sqrtRatioX96,
|
|
315
|
+
this.liquidity,
|
|
316
|
+
true,
|
|
317
|
+
),
|
|
318
|
+
}
|
|
319
|
+
} else {
|
|
320
|
+
return {
|
|
321
|
+
amount0: 0n,
|
|
322
|
+
amount1: SqrtPriceMath.getAmount1Delta(
|
|
323
|
+
TickMath.getSqrtRatioAtTick(this.tickLower),
|
|
324
|
+
TickMath.getSqrtRatioAtTick(this.tickUpper),
|
|
325
|
+
this.liquidity,
|
|
326
|
+
true,
|
|
327
|
+
),
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
return this._mintAmounts
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Computes the maximum amount of liquidity received for a given amount of token0, token1,
|
|
336
|
+
* and the prices at the tick boundaries.
|
|
337
|
+
* @param pool The pool for which the position should be created
|
|
338
|
+
* @param tickLower The lower tick of the position
|
|
339
|
+
* @param tickUpper The upper tick of the position
|
|
340
|
+
* @param amount0 token0 amount
|
|
341
|
+
* @param amount1 token1 amount
|
|
342
|
+
* @param useFullPrecision If false, liquidity will be maximized according to what the router can calculate,
|
|
343
|
+
* not what core can theoretically support
|
|
344
|
+
* @returns The amount of liquidity for the position
|
|
345
|
+
*/
|
|
346
|
+
public static fromAmounts({
|
|
347
|
+
pool,
|
|
348
|
+
tickLower,
|
|
349
|
+
tickUpper,
|
|
350
|
+
amount0,
|
|
351
|
+
amount1,
|
|
352
|
+
useFullPrecision,
|
|
353
|
+
}: {
|
|
354
|
+
pool: SushiSwapV3Pool
|
|
355
|
+
tickLower: number
|
|
356
|
+
tickUpper: number
|
|
357
|
+
amount0: BigintIsh
|
|
358
|
+
amount1: BigintIsh
|
|
359
|
+
useFullPrecision: boolean
|
|
360
|
+
}) {
|
|
361
|
+
const sqrtRatioAX96 = TickMath.getSqrtRatioAtTick(tickLower)
|
|
362
|
+
const sqrtRatioBX96 = TickMath.getSqrtRatioAtTick(tickUpper)
|
|
363
|
+
return new Position({
|
|
364
|
+
pool,
|
|
365
|
+
tickLower,
|
|
366
|
+
tickUpper,
|
|
367
|
+
liquidity: maxLiquidityForAmounts(
|
|
368
|
+
pool.sqrtRatioX96,
|
|
369
|
+
sqrtRatioAX96,
|
|
370
|
+
sqrtRatioBX96,
|
|
371
|
+
amount0,
|
|
372
|
+
amount1,
|
|
373
|
+
useFullPrecision,
|
|
374
|
+
),
|
|
375
|
+
})
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Computes a position with the maximum amount of liquidity received for a given amount of token0, assuming an unlimited amount of token1
|
|
380
|
+
* @param pool The pool for which the position is created
|
|
381
|
+
* @param tickLower The lower tick
|
|
382
|
+
* @param tickUpper The upper tick
|
|
383
|
+
* @param amount0 The desired amount of token0
|
|
384
|
+
* @param useFullPrecision If true, liquidity will be maximized according to what the router can calculate,
|
|
385
|
+
* not what core can theoretically support
|
|
386
|
+
* @returns The position
|
|
387
|
+
*/
|
|
388
|
+
public static fromAmount0({
|
|
389
|
+
pool,
|
|
390
|
+
tickLower,
|
|
391
|
+
tickUpper,
|
|
392
|
+
amount0,
|
|
393
|
+
useFullPrecision,
|
|
394
|
+
}: {
|
|
395
|
+
pool: SushiSwapV3Pool
|
|
396
|
+
tickLower: number
|
|
397
|
+
tickUpper: number
|
|
398
|
+
amount0: BigintIsh
|
|
399
|
+
useFullPrecision: boolean
|
|
400
|
+
}) {
|
|
401
|
+
return Position.fromAmounts({
|
|
402
|
+
pool,
|
|
403
|
+
tickLower,
|
|
404
|
+
tickUpper,
|
|
405
|
+
amount0,
|
|
406
|
+
amount1: MAX_UINT256,
|
|
407
|
+
useFullPrecision,
|
|
408
|
+
})
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Computes a position with the maximum amount of liquidity received for a given amount of token1, assuming an unlimited amount of token0
|
|
413
|
+
* @param pool The pool for which the position is created
|
|
414
|
+
* @param tickLower The lower tick
|
|
415
|
+
* @param tickUpper The upper tick
|
|
416
|
+
* @param amount1 The desired amount of token1
|
|
417
|
+
* @returns The position
|
|
418
|
+
*/
|
|
419
|
+
public static fromAmount1({
|
|
420
|
+
pool,
|
|
421
|
+
tickLower,
|
|
422
|
+
tickUpper,
|
|
423
|
+
amount1,
|
|
424
|
+
}: {
|
|
425
|
+
pool: SushiSwapV3Pool
|
|
426
|
+
tickLower: number
|
|
427
|
+
tickUpper: number
|
|
428
|
+
amount1: BigintIsh
|
|
429
|
+
}) {
|
|
430
|
+
// this function always uses full precision,
|
|
431
|
+
return Position.fromAmounts({
|
|
432
|
+
pool,
|
|
433
|
+
tickLower,
|
|
434
|
+
tickUpper,
|
|
435
|
+
amount0: MAX_UINT256,
|
|
436
|
+
amount1,
|
|
437
|
+
useFullPrecision: true,
|
|
438
|
+
})
|
|
439
|
+
}
|
|
440
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest'
|
|
2
|
+
import { EvmToken } from '../../../currency/token.js'
|
|
3
|
+
import {
|
|
4
|
+
type AllowedPermitArguments,
|
|
5
|
+
SelfPermit,
|
|
6
|
+
type StandardPermitArguments,
|
|
7
|
+
} from './SelfPermit.js'
|
|
8
|
+
|
|
9
|
+
const token = new EvmToken({
|
|
10
|
+
chainId: 1,
|
|
11
|
+
address: '0x0000000000000000000000000000000000000001',
|
|
12
|
+
decimals: 18,
|
|
13
|
+
symbol: 't0',
|
|
14
|
+
name: 'token0',
|
|
15
|
+
})
|
|
16
|
+
const standardPermitOptions: StandardPermitArguments = {
|
|
17
|
+
v: 0,
|
|
18
|
+
r: '0x0000000000000000000000000000000000000000000000000000000000000001',
|
|
19
|
+
s: '0x0000000000000000000000000000000000000000000000000000000000000002',
|
|
20
|
+
amount: 123n,
|
|
21
|
+
deadline: 123n,
|
|
22
|
+
}
|
|
23
|
+
const allowedPermitOptions: AllowedPermitArguments = {
|
|
24
|
+
v: 0,
|
|
25
|
+
r: '0x0000000000000000000000000000000000000000000000000000000000000001',
|
|
26
|
+
s: '0x0000000000000000000000000000000000000000000000000000000000000002',
|
|
27
|
+
nonce: 123n,
|
|
28
|
+
expiry: 123n,
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
describe('SelfPermit', () => {
|
|
32
|
+
describe('#encodePermit', () => {
|
|
33
|
+
it('works with StandardPermitArguments', () => {
|
|
34
|
+
const calldata = SelfPermit.encodePermit(token, standardPermitOptions)
|
|
35
|
+
expect(calldata).toBe(
|
|
36
|
+
'0xf3995c670000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000007b000000000000000000000000000000000000000000000000000000000000007b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002',
|
|
37
|
+
)
|
|
38
|
+
})
|
|
39
|
+
|
|
40
|
+
it('works with AllowedPermitArguments', () => {
|
|
41
|
+
const calldata = SelfPermit.encodePermit(token, allowedPermitOptions)
|
|
42
|
+
expect(calldata).toBe(
|
|
43
|
+
'0x4659a4940000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000007b000000000000000000000000000000000000000000000000000000000000007b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002',
|
|
44
|
+
)
|
|
45
|
+
})
|
|
46
|
+
})
|
|
47
|
+
})
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { type Hex, encodeFunctionData } from 'viem'
|
|
2
|
+
import type { BigintIsh } from '../../../../generic/index.js'
|
|
3
|
+
import {
|
|
4
|
+
selfPermitAbi_selfPermit,
|
|
5
|
+
selfPermitAbi_selfPermitAllowed,
|
|
6
|
+
} from '../../../abi/selfPermitAbi/index.js'
|
|
7
|
+
import type { EvmToken } from '../../../currency/token.js'
|
|
8
|
+
|
|
9
|
+
export interface StandardPermitArguments {
|
|
10
|
+
v: 0 | 1 | 27 | 28
|
|
11
|
+
r: Hex
|
|
12
|
+
s: Hex
|
|
13
|
+
amount: BigintIsh
|
|
14
|
+
deadline: BigintIsh
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface AllowedPermitArguments {
|
|
18
|
+
v: 0 | 1 | 27 | 28
|
|
19
|
+
r: Hex
|
|
20
|
+
s: Hex
|
|
21
|
+
nonce: BigintIsh
|
|
22
|
+
expiry: BigintIsh
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type PermitOptions = StandardPermitArguments | AllowedPermitArguments
|
|
26
|
+
|
|
27
|
+
function isAllowedPermit(
|
|
28
|
+
permitOptions: PermitOptions,
|
|
29
|
+
): permitOptions is AllowedPermitArguments {
|
|
30
|
+
return 'nonce' in permitOptions
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export abstract class SelfPermit {
|
|
34
|
+
/**
|
|
35
|
+
* Cannot be constructed.
|
|
36
|
+
*/
|
|
37
|
+
private constructor() {}
|
|
38
|
+
|
|
39
|
+
public static encodePermit(token: EvmToken, options: PermitOptions) {
|
|
40
|
+
if (isAllowedPermit(options)) {
|
|
41
|
+
return encodeFunctionData({
|
|
42
|
+
abi: selfPermitAbi_selfPermitAllowed,
|
|
43
|
+
functionName: 'selfPermitAllowed',
|
|
44
|
+
args: [
|
|
45
|
+
token.address,
|
|
46
|
+
BigInt(options.nonce),
|
|
47
|
+
BigInt(options.expiry),
|
|
48
|
+
options.v,
|
|
49
|
+
options.r,
|
|
50
|
+
options.s,
|
|
51
|
+
],
|
|
52
|
+
})
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
return encodeFunctionData({
|
|
56
|
+
abi: selfPermitAbi_selfPermit,
|
|
57
|
+
functionName: 'selfPermit',
|
|
58
|
+
args: [
|
|
59
|
+
token.address,
|
|
60
|
+
BigInt(options.amount),
|
|
61
|
+
BigInt(options.deadline),
|
|
62
|
+
options.v,
|
|
63
|
+
options.r,
|
|
64
|
+
options.s,
|
|
65
|
+
],
|
|
66
|
+
})
|
|
67
|
+
}
|
|
68
|
+
}
|