sushi 6.0.12 → 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/generic/format/number.js +4 -3
- package/_cjs/generic/format/number.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,94 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest'
|
|
2
|
+
import { EvmToken } from '../../../../evm/currency/token.js'
|
|
3
|
+
import { SushiSwapV3FeeAmount } from '../../../config/index.js'
|
|
4
|
+
import { computeSushiSwapV3PoolAddress } from './computePoolAddress.js'
|
|
5
|
+
|
|
6
|
+
describe('#computePoolAddress', () => {
|
|
7
|
+
const factoryAddress = '0x1111111111111111111111111111111111111111'
|
|
8
|
+
it('should correctly compute the pool address', () => {
|
|
9
|
+
const tokenA = new EvmToken({
|
|
10
|
+
chainId: 1,
|
|
11
|
+
address: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',
|
|
12
|
+
decimals: 18,
|
|
13
|
+
symbol: 'USDC',
|
|
14
|
+
name: 'USD Coin',
|
|
15
|
+
})
|
|
16
|
+
const tokenB = new EvmToken({
|
|
17
|
+
chainId: 1,
|
|
18
|
+
address: '0x6b175474e89094c44da98b954eedeac495271d0f',
|
|
19
|
+
decimals: 18,
|
|
20
|
+
symbol: 'DAI',
|
|
21
|
+
name: 'Dai Stablecoin',
|
|
22
|
+
})
|
|
23
|
+
const result = computeSushiSwapV3PoolAddress({
|
|
24
|
+
factoryAddress,
|
|
25
|
+
fee: SushiSwapV3FeeAmount.LOW,
|
|
26
|
+
tokenA,
|
|
27
|
+
tokenB,
|
|
28
|
+
})
|
|
29
|
+
|
|
30
|
+
expect(result).toEqual('0x90b1b09a9715cadbfd9331b3a7652b24bfbefd32')
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
it('should correctly compute the pool address', () => {
|
|
34
|
+
const USDC = new EvmToken({
|
|
35
|
+
chainId: 1,
|
|
36
|
+
address: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',
|
|
37
|
+
decimals: 18,
|
|
38
|
+
symbol: 'USDC',
|
|
39
|
+
name: 'USD Coin',
|
|
40
|
+
})
|
|
41
|
+
const DAI = new EvmToken({
|
|
42
|
+
chainId: 1,
|
|
43
|
+
address: '0x6b175474e89094c44da98b954eedeac495271d0f',
|
|
44
|
+
decimals: 18,
|
|
45
|
+
symbol: 'DAI',
|
|
46
|
+
name: 'Dai Stablecoin',
|
|
47
|
+
})
|
|
48
|
+
let tokenA = USDC
|
|
49
|
+
let tokenB = DAI
|
|
50
|
+
const resultA = computeSushiSwapV3PoolAddress({
|
|
51
|
+
factoryAddress,
|
|
52
|
+
fee: SushiSwapV3FeeAmount.LOW,
|
|
53
|
+
tokenA,
|
|
54
|
+
tokenB,
|
|
55
|
+
})
|
|
56
|
+
|
|
57
|
+
tokenA = DAI
|
|
58
|
+
|
|
59
|
+
tokenB = USDC
|
|
60
|
+
const resultB = computeSushiSwapV3PoolAddress({
|
|
61
|
+
factoryAddress,
|
|
62
|
+
fee: SushiSwapV3FeeAmount.LOW,
|
|
63
|
+
tokenA,
|
|
64
|
+
tokenB,
|
|
65
|
+
})
|
|
66
|
+
|
|
67
|
+
expect(resultA).toEqual(resultB)
|
|
68
|
+
})
|
|
69
|
+
|
|
70
|
+
it('BLAST - should correctly compute the pool address', () => {
|
|
71
|
+
const tokenA = new EvmToken({
|
|
72
|
+
chainId: 81457,
|
|
73
|
+
address: '0x4300000000000000000000000000000000000003',
|
|
74
|
+
decimals: 18,
|
|
75
|
+
symbol: 'USDB',
|
|
76
|
+
name: 'USD Blast',
|
|
77
|
+
})
|
|
78
|
+
const tokenB = new EvmToken({
|
|
79
|
+
chainId: 81457,
|
|
80
|
+
address: '0x4300000000000000000000000000000000000004',
|
|
81
|
+
decimals: 18,
|
|
82
|
+
symbol: 'WETH',
|
|
83
|
+
name: 'Wrapped Ether',
|
|
84
|
+
})
|
|
85
|
+
const result = computeSushiSwapV3PoolAddress({
|
|
86
|
+
factoryAddress: '0x7680d4b43f3d1d54d6cfeeb2169463bfa7a6cf0d',
|
|
87
|
+
fee: SushiSwapV3FeeAmount.MEDIUM,
|
|
88
|
+
tokenA,
|
|
89
|
+
tokenB,
|
|
90
|
+
})
|
|
91
|
+
|
|
92
|
+
expect(result).toEqual('0xcd03572e7cfb94996beebaa539234ce5c23ae1d6')
|
|
93
|
+
})
|
|
94
|
+
})
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { encodeAbiParameters, keccak256, parseAbiParameters } from 'viem/utils'
|
|
2
|
+
import type { EvmChainId } from '../../../chain/chains.js'
|
|
3
|
+
import {
|
|
4
|
+
SUSHISWAP_V3_INIT_CODE_HASH,
|
|
5
|
+
type SushiSwapV3ChainId,
|
|
6
|
+
type SushiSwapV3FeeAmount,
|
|
7
|
+
} from '../../../config/index.js'
|
|
8
|
+
import type { EvmAddress, EvmToken } from '../../../currency/token.js'
|
|
9
|
+
import { getCreate2Address } from '../../../utils/get-create-2-address.js'
|
|
10
|
+
|
|
11
|
+
type ComputeSushiSwapV3PoolAddressParams = {
|
|
12
|
+
factoryAddress: EvmAddress
|
|
13
|
+
fee: SushiSwapV3FeeAmount
|
|
14
|
+
initCodeHashManualOverride?: EvmAddress | undefined
|
|
15
|
+
} & (
|
|
16
|
+
| {
|
|
17
|
+
tokenA: EvmToken
|
|
18
|
+
tokenB: EvmToken
|
|
19
|
+
}
|
|
20
|
+
| {
|
|
21
|
+
tokenA: EvmAddress
|
|
22
|
+
tokenB: EvmAddress
|
|
23
|
+
chainId: EvmChainId
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Computes a pool address
|
|
29
|
+
* @param factoryAddress The Uniswap V3 factory address
|
|
30
|
+
* @param tokenA The first token of the pair, irrespective of sort order
|
|
31
|
+
* @param tokenB The second token of the pair, irrespective of sort order
|
|
32
|
+
* @param fee The fee tier of the pool
|
|
33
|
+
* @param initCodeHashManualOverride Override the init code hash used to compute the pool address if necessary
|
|
34
|
+
* @returns The pool address
|
|
35
|
+
*/
|
|
36
|
+
export function computeSushiSwapV3PoolAddress(
|
|
37
|
+
params: ComputeSushiSwapV3PoolAddressParams,
|
|
38
|
+
): EvmAddress {
|
|
39
|
+
if (typeof params.tokenA === 'string' && typeof params.tokenB === 'string') {
|
|
40
|
+
// FIXME: We shouldn't even allow sending strings into here
|
|
41
|
+
const {
|
|
42
|
+
factoryAddress,
|
|
43
|
+
tokenA,
|
|
44
|
+
tokenB,
|
|
45
|
+
fee,
|
|
46
|
+
initCodeHashManualOverride,
|
|
47
|
+
chainId,
|
|
48
|
+
} = params
|
|
49
|
+
|
|
50
|
+
return getCreate2Address({
|
|
51
|
+
from: factoryAddress,
|
|
52
|
+
salt: keccak256(
|
|
53
|
+
encodeAbiParameters(parseAbiParameters('address, address, uint24'), [
|
|
54
|
+
tokenA,
|
|
55
|
+
tokenB,
|
|
56
|
+
fee,
|
|
57
|
+
]),
|
|
58
|
+
),
|
|
59
|
+
bytecodeHash:
|
|
60
|
+
initCodeHashManualOverride ??
|
|
61
|
+
SUSHISWAP_V3_INIT_CODE_HASH[chainId as SushiSwapV3ChainId],
|
|
62
|
+
chainId,
|
|
63
|
+
}).toLowerCase() as EvmAddress
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const { factoryAddress, tokenA, tokenB, fee, initCodeHashManualOverride } =
|
|
67
|
+
params
|
|
68
|
+
const [token0, token1] = tokenA.sortsBefore(tokenB)
|
|
69
|
+
? [tokenA, tokenB]
|
|
70
|
+
: [tokenB, tokenA] // does safety checks
|
|
71
|
+
|
|
72
|
+
return getCreate2Address({
|
|
73
|
+
from: factoryAddress,
|
|
74
|
+
salt: keccak256(
|
|
75
|
+
encodeAbiParameters(parseAbiParameters('address, address, uint24'), [
|
|
76
|
+
token0.address,
|
|
77
|
+
token1.address,
|
|
78
|
+
fee,
|
|
79
|
+
]),
|
|
80
|
+
),
|
|
81
|
+
bytecodeHash:
|
|
82
|
+
initCodeHashManualOverride ??
|
|
83
|
+
SUSHISWAP_V3_INIT_CODE_HASH[token0.chainId as SushiSwapV3ChainId],
|
|
84
|
+
chainId: token0.chainId,
|
|
85
|
+
}).toLowerCase() as EvmAddress
|
|
86
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest'
|
|
2
|
+
import { Q96 } from '../internalConstants.js'
|
|
3
|
+
import { encodeSqrtRatioX96 } from './encodeSqrtRatioX96.js'
|
|
4
|
+
|
|
5
|
+
describe('#encodeSqrtRatioX96', () => {
|
|
6
|
+
it('1/1', () => {
|
|
7
|
+
expect(encodeSqrtRatioX96(1, 1)).toEqual(Q96)
|
|
8
|
+
})
|
|
9
|
+
|
|
10
|
+
it('100/1', () => {
|
|
11
|
+
expect(encodeSqrtRatioX96(100, 1)).toEqual(792281625142643375935439503360n)
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
it('1/100', () => {
|
|
15
|
+
expect(encodeSqrtRatioX96(1, 100)).toEqual(7922816251426433759354395033n)
|
|
16
|
+
})
|
|
17
|
+
|
|
18
|
+
it('111/333', () => {
|
|
19
|
+
expect(encodeSqrtRatioX96(111, 333)).toEqual(45742400955009932534161870629n)
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
it('333/111', () => {
|
|
23
|
+
expect(encodeSqrtRatioX96(333, 111)).toEqual(
|
|
24
|
+
137227202865029797602485611888n,
|
|
25
|
+
)
|
|
26
|
+
})
|
|
27
|
+
})
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns the sqrt ratio as a Q64.96 corresponding to a given ratio of amount1 and amount0
|
|
3
|
+
* @param amount1 The numerator amount i.e., the amount of token1
|
|
4
|
+
* @param amount0 The denominator amount i.e., the amount of token0
|
|
5
|
+
* @returns The sqrt ratio
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { type BigintIsh, sqrt } from '../../../../generic/index.js'
|
|
9
|
+
|
|
10
|
+
export function encodeSqrtRatioX96(
|
|
11
|
+
amount1: BigintIsh,
|
|
12
|
+
amount0: BigintIsh,
|
|
13
|
+
): bigint {
|
|
14
|
+
const numerator = BigInt(amount1.toString()) << 192n
|
|
15
|
+
const denominator = BigInt(amount0.toString())
|
|
16
|
+
const ratioX192 = numerator / denominator
|
|
17
|
+
return sqrt(ratioX192)
|
|
18
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ONE, ZERO } from '../../../../generic/index.js'
|
|
2
|
+
|
|
3
|
+
export abstract class FullMath {
|
|
4
|
+
/**
|
|
5
|
+
* Cannot be constructed.
|
|
6
|
+
*/
|
|
7
|
+
private constructor() {}
|
|
8
|
+
|
|
9
|
+
public static mulDivRoundingUp(
|
|
10
|
+
a: bigint,
|
|
11
|
+
b: bigint,
|
|
12
|
+
denominator: bigint,
|
|
13
|
+
): bigint {
|
|
14
|
+
const product = a * b
|
|
15
|
+
let result = product / denominator
|
|
16
|
+
if (product % denominator !== ZERO) {
|
|
17
|
+
result = result + ONE
|
|
18
|
+
}
|
|
19
|
+
return result
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from './calldata.js'
|
|
2
|
+
export * from './computePoolAddress.js'
|
|
3
|
+
export * from './encodeSqrtRatioX96.js'
|
|
4
|
+
export * from './fullMath.js'
|
|
5
|
+
export * from './isSorted.js'
|
|
6
|
+
export * from './liquidityMath.js'
|
|
7
|
+
export * from './maxLiquidityForAmounts.js'
|
|
8
|
+
export * from './misc.js'
|
|
9
|
+
export * from './mostSignificantBit.js'
|
|
10
|
+
export * from './nearestUsableTick.js'
|
|
11
|
+
export * from './position.js'
|
|
12
|
+
export * from './priceTickConversions.js'
|
|
13
|
+
export * from './sqrtPriceMath.js'
|
|
14
|
+
export * from './swapMath.js'
|
|
15
|
+
export * from './tickLibrary.js'
|
|
16
|
+
export * from './tickList.js'
|
|
17
|
+
export * from './tickMath.js'
|
|
18
|
+
export * from './validateAndParseAddress.js'
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest'
|
|
2
|
+
import { isSorted } from './isSorted.js'
|
|
3
|
+
|
|
4
|
+
describe('#isSorted', () => {
|
|
5
|
+
it('empty list', () => {
|
|
6
|
+
expect(isSorted([], (a: number, b: number) => a - b)).toEqual(true)
|
|
7
|
+
})
|
|
8
|
+
it('list with one element', () => {
|
|
9
|
+
expect(isSorted([1], (a: number, b: number) => a - b)).toEqual(true)
|
|
10
|
+
})
|
|
11
|
+
it('list with two sorted elements', () => {
|
|
12
|
+
expect(isSorted([1, 2], (a: number, b: number) => a - b)).toEqual(true)
|
|
13
|
+
})
|
|
14
|
+
it('list with two equal elements', () => {
|
|
15
|
+
expect(isSorted([2, 2], (a: number, b: number) => a - b)).toEqual(true)
|
|
16
|
+
})
|
|
17
|
+
it('list with two unsorted elements', () => {
|
|
18
|
+
expect(isSorted([2, 1], (a: number, b: number) => a - b)).toEqual(false)
|
|
19
|
+
})
|
|
20
|
+
it('list with many elements with one unsorted pair', () => {
|
|
21
|
+
expect(
|
|
22
|
+
isSorted([1, 2, 3, 4, 6, 5, 7], (a: number, b: number) => a - b),
|
|
23
|
+
).toEqual(false)
|
|
24
|
+
})
|
|
25
|
+
it('list with many elements with one unsorted pair at the end', () => {
|
|
26
|
+
expect(
|
|
27
|
+
isSorted([1, 2, 3, 4, 5, 7, 6], (a: number, b: number) => a - b),
|
|
28
|
+
).toEqual(false)
|
|
29
|
+
})
|
|
30
|
+
it('list with many elements with one unsorted pair at the beginning', () => {
|
|
31
|
+
expect(
|
|
32
|
+
isSorted([2, 1, 3, 4, 5, 6, 7], (a: number, b: number) => a - b),
|
|
33
|
+
).toEqual(false)
|
|
34
|
+
})
|
|
35
|
+
it('list with many elements with duplicates', () => {
|
|
36
|
+
expect(
|
|
37
|
+
isSorted([1, 2, 2, 3, 4, 5, 6, 7], (a: number, b: number) => a - b),
|
|
38
|
+
).toEqual(true)
|
|
39
|
+
})
|
|
40
|
+
it('list with opposite comparator', () => {
|
|
41
|
+
expect(
|
|
42
|
+
isSorted([1, 2, 2, 3, 4, 5, 6, 7], (a: number, b: number) => b - a),
|
|
43
|
+
).toEqual(false)
|
|
44
|
+
})
|
|
45
|
+
it('reverse sorted list with opposite comparator', () => {
|
|
46
|
+
expect(
|
|
47
|
+
isSorted(
|
|
48
|
+
[1, 2, 2, 3, 4, 5, 6, 7].reverse(),
|
|
49
|
+
(a: number, b: number) => b - a,
|
|
50
|
+
),
|
|
51
|
+
).toEqual(true)
|
|
52
|
+
})
|
|
53
|
+
})
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Determines if a tick list is sorted
|
|
3
|
+
* @param list The tick list
|
|
4
|
+
* @param comparator The comparator
|
|
5
|
+
* @returns true if sorted
|
|
6
|
+
*/
|
|
7
|
+
export function isSorted<T>(
|
|
8
|
+
list: T[],
|
|
9
|
+
comparator: (a: T, b: T) => number,
|
|
10
|
+
): boolean {
|
|
11
|
+
for (let i = 0; i < list.length - 1; i++) {
|
|
12
|
+
if (comparator(list[i]!, list[i + 1]!) > 0) {
|
|
13
|
+
return false
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return true
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ONE, ZERO } from '../../../../generic/index.js'
|
|
2
|
+
|
|
3
|
+
export abstract class LiquidityMath {
|
|
4
|
+
/**
|
|
5
|
+
* Cannot be constructed.
|
|
6
|
+
*/
|
|
7
|
+
private constructor() {}
|
|
8
|
+
|
|
9
|
+
public static addDelta(x: bigint, y: bigint): bigint {
|
|
10
|
+
if (y < ZERO) {
|
|
11
|
+
return x - y * -ONE
|
|
12
|
+
} else {
|
|
13
|
+
return x + y
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest'
|
|
2
|
+
import { MAX_UINT256 } from '../../../../generic/math/constants.js'
|
|
3
|
+
import { encodeSqrtRatioX96 } from './encodeSqrtRatioX96.js'
|
|
4
|
+
import { maxLiquidityForAmounts } from './maxLiquidityForAmounts.js'
|
|
5
|
+
|
|
6
|
+
describe('#maxLiquidityForAmounts', () => {
|
|
7
|
+
describe('imprecise', () => {
|
|
8
|
+
describe('price inside', () => {
|
|
9
|
+
it('100 token0, 200 token1', () => {
|
|
10
|
+
expect(
|
|
11
|
+
maxLiquidityForAmounts(
|
|
12
|
+
encodeSqrtRatioX96(1, 1),
|
|
13
|
+
encodeSqrtRatioX96(100, 110),
|
|
14
|
+
encodeSqrtRatioX96(110, 100),
|
|
15
|
+
'100',
|
|
16
|
+
'200',
|
|
17
|
+
false,
|
|
18
|
+
),
|
|
19
|
+
).toEqual(2148n)
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
it('100 token0, max token1', () => {
|
|
23
|
+
expect(
|
|
24
|
+
maxLiquidityForAmounts(
|
|
25
|
+
encodeSqrtRatioX96(1, 1),
|
|
26
|
+
encodeSqrtRatioX96(100, 110),
|
|
27
|
+
encodeSqrtRatioX96(110, 100),
|
|
28
|
+
'100',
|
|
29
|
+
MAX_UINT256,
|
|
30
|
+
false,
|
|
31
|
+
),
|
|
32
|
+
).toEqual(2148n)
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
it('max token0, 200 token1', () => {
|
|
36
|
+
expect(
|
|
37
|
+
maxLiquidityForAmounts(
|
|
38
|
+
encodeSqrtRatioX96(1, 1),
|
|
39
|
+
encodeSqrtRatioX96(100, 110),
|
|
40
|
+
encodeSqrtRatioX96(110, 100),
|
|
41
|
+
MAX_UINT256,
|
|
42
|
+
'200',
|
|
43
|
+
false,
|
|
44
|
+
),
|
|
45
|
+
).toEqual(4297n)
|
|
46
|
+
})
|
|
47
|
+
})
|
|
48
|
+
|
|
49
|
+
describe('price below', () => {
|
|
50
|
+
it('100 token0, 200 token1', () => {
|
|
51
|
+
expect(
|
|
52
|
+
maxLiquidityForAmounts(
|
|
53
|
+
encodeSqrtRatioX96(99, 110),
|
|
54
|
+
encodeSqrtRatioX96(100, 110),
|
|
55
|
+
encodeSqrtRatioX96(110, 100),
|
|
56
|
+
'100',
|
|
57
|
+
'200',
|
|
58
|
+
false,
|
|
59
|
+
),
|
|
60
|
+
).toEqual(1048n)
|
|
61
|
+
})
|
|
62
|
+
|
|
63
|
+
it('100 token0, max token1', () => {
|
|
64
|
+
expect(
|
|
65
|
+
maxLiquidityForAmounts(
|
|
66
|
+
encodeSqrtRatioX96(99, 110),
|
|
67
|
+
encodeSqrtRatioX96(100, 110),
|
|
68
|
+
encodeSqrtRatioX96(110, 100),
|
|
69
|
+
'100',
|
|
70
|
+
MAX_UINT256,
|
|
71
|
+
false,
|
|
72
|
+
),
|
|
73
|
+
).toEqual(1048n)
|
|
74
|
+
})
|
|
75
|
+
|
|
76
|
+
it('max token0, 200 token1', () => {
|
|
77
|
+
expect(
|
|
78
|
+
maxLiquidityForAmounts(
|
|
79
|
+
encodeSqrtRatioX96(99, 110),
|
|
80
|
+
encodeSqrtRatioX96(100, 110),
|
|
81
|
+
encodeSqrtRatioX96(110, 100),
|
|
82
|
+
MAX_UINT256,
|
|
83
|
+
'200',
|
|
84
|
+
false,
|
|
85
|
+
),
|
|
86
|
+
).toEqual(
|
|
87
|
+
1214437677402050006470401421068302637228917309992228326090730924516431320489727n,
|
|
88
|
+
)
|
|
89
|
+
})
|
|
90
|
+
})
|
|
91
|
+
|
|
92
|
+
describe('price above', () => {
|
|
93
|
+
it('100 token0, 200 token1', () => {
|
|
94
|
+
expect(
|
|
95
|
+
maxLiquidityForAmounts(
|
|
96
|
+
encodeSqrtRatioX96(111, 100),
|
|
97
|
+
encodeSqrtRatioX96(100, 110),
|
|
98
|
+
encodeSqrtRatioX96(110, 100),
|
|
99
|
+
'100',
|
|
100
|
+
'200',
|
|
101
|
+
false,
|
|
102
|
+
),
|
|
103
|
+
).toEqual(2097n)
|
|
104
|
+
})
|
|
105
|
+
|
|
106
|
+
it('100 token0, max token1', () => {
|
|
107
|
+
expect(
|
|
108
|
+
maxLiquidityForAmounts(
|
|
109
|
+
encodeSqrtRatioX96(111, 100),
|
|
110
|
+
encodeSqrtRatioX96(100, 110),
|
|
111
|
+
encodeSqrtRatioX96(110, 100),
|
|
112
|
+
'100',
|
|
113
|
+
MAX_UINT256,
|
|
114
|
+
false,
|
|
115
|
+
),
|
|
116
|
+
).toEqual(
|
|
117
|
+
1214437677402050006470401421098959354205873606971497132040612572422243086574654n,
|
|
118
|
+
)
|
|
119
|
+
})
|
|
120
|
+
|
|
121
|
+
it('max token0, 200 token1', () => {
|
|
122
|
+
expect(
|
|
123
|
+
maxLiquidityForAmounts(
|
|
124
|
+
encodeSqrtRatioX96(111, 100),
|
|
125
|
+
encodeSqrtRatioX96(100, 110),
|
|
126
|
+
encodeSqrtRatioX96(110, 100),
|
|
127
|
+
MAX_UINT256,
|
|
128
|
+
'200',
|
|
129
|
+
false,
|
|
130
|
+
),
|
|
131
|
+
).toEqual(2097n)
|
|
132
|
+
})
|
|
133
|
+
})
|
|
134
|
+
})
|
|
135
|
+
|
|
136
|
+
describe('precise', () => {
|
|
137
|
+
describe('price inside', () => {
|
|
138
|
+
it('100 token0, 200 token1', () => {
|
|
139
|
+
expect(
|
|
140
|
+
maxLiquidityForAmounts(
|
|
141
|
+
encodeSqrtRatioX96(1, 1),
|
|
142
|
+
encodeSqrtRatioX96(100, 110),
|
|
143
|
+
encodeSqrtRatioX96(110, 100),
|
|
144
|
+
'100',
|
|
145
|
+
'200',
|
|
146
|
+
true,
|
|
147
|
+
),
|
|
148
|
+
).toEqual(2148n)
|
|
149
|
+
})
|
|
150
|
+
|
|
151
|
+
it('100 token0, max token1', () => {
|
|
152
|
+
expect(
|
|
153
|
+
maxLiquidityForAmounts(
|
|
154
|
+
encodeSqrtRatioX96(1, 1),
|
|
155
|
+
encodeSqrtRatioX96(100, 110),
|
|
156
|
+
encodeSqrtRatioX96(110, 100),
|
|
157
|
+
'100',
|
|
158
|
+
MAX_UINT256,
|
|
159
|
+
true,
|
|
160
|
+
),
|
|
161
|
+
).toEqual(2148n)
|
|
162
|
+
})
|
|
163
|
+
|
|
164
|
+
it('max token0, 200 token1', () => {
|
|
165
|
+
expect(
|
|
166
|
+
maxLiquidityForAmounts(
|
|
167
|
+
encodeSqrtRatioX96(1, 1),
|
|
168
|
+
encodeSqrtRatioX96(100, 110),
|
|
169
|
+
encodeSqrtRatioX96(110, 100),
|
|
170
|
+
MAX_UINT256,
|
|
171
|
+
'200',
|
|
172
|
+
true,
|
|
173
|
+
),
|
|
174
|
+
).toEqual(4297n)
|
|
175
|
+
})
|
|
176
|
+
})
|
|
177
|
+
|
|
178
|
+
describe('price below', () => {
|
|
179
|
+
it('100 token0, 200 token1', () => {
|
|
180
|
+
expect(
|
|
181
|
+
maxLiquidityForAmounts(
|
|
182
|
+
encodeSqrtRatioX96(99, 110),
|
|
183
|
+
encodeSqrtRatioX96(100, 110),
|
|
184
|
+
encodeSqrtRatioX96(110, 100),
|
|
185
|
+
'100',
|
|
186
|
+
'200',
|
|
187
|
+
true,
|
|
188
|
+
),
|
|
189
|
+
).toEqual(1048n)
|
|
190
|
+
})
|
|
191
|
+
|
|
192
|
+
it('100 token0, max token1', () => {
|
|
193
|
+
expect(
|
|
194
|
+
maxLiquidityForAmounts(
|
|
195
|
+
encodeSqrtRatioX96(99, 110),
|
|
196
|
+
encodeSqrtRatioX96(100, 110),
|
|
197
|
+
encodeSqrtRatioX96(110, 100),
|
|
198
|
+
'100',
|
|
199
|
+
MAX_UINT256,
|
|
200
|
+
true,
|
|
201
|
+
),
|
|
202
|
+
).toEqual(1048n)
|
|
203
|
+
})
|
|
204
|
+
|
|
205
|
+
it('max token0, 200 token1', () => {
|
|
206
|
+
expect(
|
|
207
|
+
maxLiquidityForAmounts(
|
|
208
|
+
encodeSqrtRatioX96(99, 110),
|
|
209
|
+
encodeSqrtRatioX96(100, 110),
|
|
210
|
+
encodeSqrtRatioX96(110, 100),
|
|
211
|
+
MAX_UINT256,
|
|
212
|
+
'200',
|
|
213
|
+
true,
|
|
214
|
+
),
|
|
215
|
+
).toEqual(
|
|
216
|
+
1214437677402050006470401421082903520362793114274352355276488318240158678126184n,
|
|
217
|
+
)
|
|
218
|
+
})
|
|
219
|
+
})
|
|
220
|
+
|
|
221
|
+
describe('price above', () => {
|
|
222
|
+
it('100 token0, 200 token1', () => {
|
|
223
|
+
expect(
|
|
224
|
+
maxLiquidityForAmounts(
|
|
225
|
+
encodeSqrtRatioX96(111, 100),
|
|
226
|
+
encodeSqrtRatioX96(100, 110),
|
|
227
|
+
encodeSqrtRatioX96(110, 100),
|
|
228
|
+
'100',
|
|
229
|
+
'200',
|
|
230
|
+
true,
|
|
231
|
+
),
|
|
232
|
+
).toEqual(2097n)
|
|
233
|
+
})
|
|
234
|
+
|
|
235
|
+
it('100 token0, max token1', () => {
|
|
236
|
+
expect(
|
|
237
|
+
maxLiquidityForAmounts(
|
|
238
|
+
encodeSqrtRatioX96(111, 100),
|
|
239
|
+
encodeSqrtRatioX96(100, 110),
|
|
240
|
+
encodeSqrtRatioX96(110, 100),
|
|
241
|
+
'100',
|
|
242
|
+
MAX_UINT256,
|
|
243
|
+
true,
|
|
244
|
+
),
|
|
245
|
+
).toEqual(
|
|
246
|
+
1214437677402050006470401421098959354205873606971497132040612572422243086574654n,
|
|
247
|
+
)
|
|
248
|
+
})
|
|
249
|
+
|
|
250
|
+
it('max token0, 200 token1', () => {
|
|
251
|
+
expect(
|
|
252
|
+
maxLiquidityForAmounts(
|
|
253
|
+
encodeSqrtRatioX96(111, 100),
|
|
254
|
+
encodeSqrtRatioX96(100, 110),
|
|
255
|
+
encodeSqrtRatioX96(110, 100),
|
|
256
|
+
MAX_UINT256,
|
|
257
|
+
'200',
|
|
258
|
+
true,
|
|
259
|
+
),
|
|
260
|
+
).toEqual(2097n)
|
|
261
|
+
})
|
|
262
|
+
})
|
|
263
|
+
})
|
|
264
|
+
})
|