sushi 6.0.11 → 6.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1418) hide show
  1. package/_cjs/evm/pool/sushiswap-v3/entities/NonfungiblePositionManager.js +1 -1
  2. package/_cjs/evm/pool/sushiswap-v3/entities/NonfungiblePositionManager.js.map +1 -1
  3. package/_cjs/generic/format/number.js +4 -3
  4. package/_cjs/generic/format/number.js.map +1 -1
  5. package/_esm/evm/pool/sushiswap-v3/entities/NonfungiblePositionManager.js +1 -1
  6. package/_esm/evm/pool/sushiswap-v3/entities/NonfungiblePositionManager.js.map +1 -1
  7. package/_esm/generic/format/number.js +4 -3
  8. package/_esm/generic/format/number.js.map +1 -1
  9. package/evm/abi/balanceOfAbi/balanceOfAbi_balanceOf.ts +11 -0
  10. package/evm/abi/balanceOfAbi/index.ts +1 -0
  11. package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_DOMAIN_SEPARATOR.ts +9 -0
  12. package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_balanceOf.ts +12 -0
  13. package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_batch.ts +15 -0
  14. package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_batchFlashLoan.ts +19 -0
  15. package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_claimOwnership.ts +9 -0
  16. package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_deploy.ts +15 -0
  17. package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_deposit.ts +18 -0
  18. package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_flashLoan.ts +19 -0
  19. package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_harvest.ts +13 -0
  20. package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_masterContractApproved.ts +12 -0
  21. package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_masterContractOf.ts +9 -0
  22. package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_nonces.ts +9 -0
  23. package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_owner.ts +9 -0
  24. package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_pendingOwner.ts +9 -0
  25. package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_pendingStrategy.ts +11 -0
  26. package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_permitToken.ts +18 -0
  27. package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_registerProtocol.ts +9 -0
  28. package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_setMasterContractApproval.ts +16 -0
  29. package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_setStrategy.ts +16 -0
  30. package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_setStrategyTargetPercentage.ts +12 -0
  31. package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_strategy.ts +11 -0
  32. package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_strategyData.ts +13 -0
  33. package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_toAmount.ts +13 -0
  34. package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_toShare.ts +13 -0
  35. package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_totals.ts +12 -0
  36. package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_transfer.ts +14 -0
  37. package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_transferMultiple.ts +14 -0
  38. package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_transferOwnership.ts +13 -0
  39. package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_whitelistMasterContract.ts +12 -0
  40. package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_whitelistedMasterContracts.ts +9 -0
  41. package/evm/abi/bentoBoxV1Abi/bentoBoxV1Abi_withdraw.ts +18 -0
  42. package/evm/abi/bentoBoxV1Abi/index.ts +31 -0
  43. package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_MASTERCHEF_V2.ts +9 -0
  44. package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_claimOwnership.ts +9 -0
  45. package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_init.ts +9 -0
  46. package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_masterLpToken.ts +9 -0
  47. package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_onSushiReward.ts +15 -0
  48. package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_owner.ts +9 -0
  49. package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_pendingOwner.ts +9 -0
  50. package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_pendingToken.ts +12 -0
  51. package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_pendingTokens.ts +20 -0
  52. package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_poolInfo.ts +12 -0
  53. package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_reclaimTokens.ts +13 -0
  54. package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_rewardPerSecond.ts +9 -0
  55. package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_rewardRates.ts +9 -0
  56. package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_rewardToken.ts +9 -0
  57. package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_setRewardPerSecond.ts +11 -0
  58. package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_transferOwnership.ts +13 -0
  59. package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_updatePool.ts +23 -0
  60. package/evm/abi/cloneRewarderTimeAbi/cloneRewarderTimeAbi_userInfo.ts +16 -0
  61. package/evm/abi/cloneRewarderTimeAbi/index.ts +18 -0
  62. package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_add.ts +12 -0
  63. package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_claimOwnership.ts +9 -0
  64. package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_massUpdatePools.ts +9 -0
  65. package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_onSushiReward.ts +15 -0
  66. package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_owner.ts +9 -0
  67. package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_pendingOwner.ts +9 -0
  68. package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_pendingToken.ts +12 -0
  69. package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_pendingTokens.ts +20 -0
  70. package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_poolIds.ts +9 -0
  71. package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_poolInfo.ts +13 -0
  72. package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_poolLength.ts +9 -0
  73. package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_reclaimTokens.ts +13 -0
  74. package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_rewardPerSecond.ts +9 -0
  75. package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_set.ts +12 -0
  76. package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_setRewardPerSecond.ts +11 -0
  77. package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_transferOwnership.ts +13 -0
  78. package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_updatePool.ts +24 -0
  79. package/evm/abi/complexRewarderTimeAbi/complexRewarderTimeAbi_userInfo.ts +16 -0
  80. package/evm/abi/complexRewarderTimeAbi/index.ts +18 -0
  81. package/evm/abi/eip2612Abi/eip2612Abi_DOMAIN_SEPARATOR.ts +11 -0
  82. package/evm/abi/eip2612Abi/eip2612Abi_nonces.ts +11 -0
  83. package/evm/abi/eip2612Abi/index.ts +2 -0
  84. package/evm/abi/erc20Abi/erc20Abi_allowance.ts +14 -0
  85. package/evm/abi/erc20Abi/erc20Abi_approve.ts +14 -0
  86. package/evm/abi/erc20Abi/erc20Abi_balanceOf.ts +11 -0
  87. package/evm/abi/erc20Abi/erc20Abi_decimals.ts +11 -0
  88. package/evm/abi/erc20Abi/erc20Abi_name.ts +11 -0
  89. package/evm/abi/erc20Abi/erc20Abi_symbol.ts +11 -0
  90. package/evm/abi/erc20Abi/erc20Abi_totalSupply.ts +11 -0
  91. package/evm/abi/erc20Abi/erc20Abi_transfer.ts +14 -0
  92. package/evm/abi/erc20Abi/erc20Abi_transferFrom.ts +15 -0
  93. package/evm/abi/erc20Abi/index.ts +9 -0
  94. package/evm/abi/furoStreamAbi/furoStreamAbi_approve.ts +12 -0
  95. package/evm/abi/furoStreamAbi/furoStreamAbi_balanceOf.ts +9 -0
  96. package/evm/abi/furoStreamAbi/furoStreamAbi_bentoBox.ts +11 -0
  97. package/evm/abi/furoStreamAbi/furoStreamAbi_cancelStream.ts +15 -0
  98. package/evm/abi/furoStreamAbi/furoStreamAbi_claimOwnership.ts +9 -0
  99. package/evm/abi/furoStreamAbi/furoStreamAbi_createStream.ts +19 -0
  100. package/evm/abi/furoStreamAbi/furoStreamAbi_getApproved.ts +9 -0
  101. package/evm/abi/furoStreamAbi/furoStreamAbi_getStream.ts +23 -0
  102. package/evm/abi/furoStreamAbi/furoStreamAbi_isApprovedForAll.ts +12 -0
  103. package/evm/abi/furoStreamAbi/furoStreamAbi_multicall.ts +9 -0
  104. package/evm/abi/furoStreamAbi/furoStreamAbi_name.ts +9 -0
  105. package/evm/abi/furoStreamAbi/furoStreamAbi_owner.ts +9 -0
  106. package/evm/abi/furoStreamAbi/furoStreamAbi_ownerOf.ts +9 -0
  107. package/evm/abi/furoStreamAbi/furoStreamAbi_pendingOwner.ts +9 -0
  108. package/evm/abi/furoStreamAbi/furoStreamAbi_safeTransferFrom.ts +14 -0
  109. package/evm/abi/furoStreamAbi/furoStreamAbi_setApprovalForAll.ts +12 -0
  110. package/evm/abi/furoStreamAbi/furoStreamAbi_setBentoBoxApproval.ts +15 -0
  111. package/evm/abi/furoStreamAbi/furoStreamAbi_setTokenURIFetcher.ts +9 -0
  112. package/evm/abi/furoStreamAbi/furoStreamAbi_streamBalanceOf.ts +12 -0
  113. package/evm/abi/furoStreamAbi/furoStreamAbi_streamIds.ts +9 -0
  114. package/evm/abi/furoStreamAbi/furoStreamAbi_streams.ts +16 -0
  115. package/evm/abi/furoStreamAbi/furoStreamAbi_supportsInterface.ts +9 -0
  116. package/evm/abi/furoStreamAbi/furoStreamAbi_symbol.ts +9 -0
  117. package/evm/abi/furoStreamAbi/furoStreamAbi_tokenURI.ts +9 -0
  118. package/evm/abi/furoStreamAbi/furoStreamAbi_tokenURIFetcher.ts +9 -0
  119. package/evm/abi/furoStreamAbi/furoStreamAbi_transferFrom.ts +13 -0
  120. package/evm/abi/furoStreamAbi/furoStreamAbi_transferOwnership.ts +13 -0
  121. package/evm/abi/furoStreamAbi/furoStreamAbi_updateSender.ts +12 -0
  122. package/evm/abi/furoStreamAbi/furoStreamAbi_updateStream.ts +16 -0
  123. package/evm/abi/furoStreamAbi/furoStreamAbi_wETH.ts +9 -0
  124. package/evm/abi/furoStreamAbi/furoStreamAbi_withdrawFromStream.ts +18 -0
  125. package/evm/abi/furoStreamAbi/index.ts +32 -0
  126. package/evm/abi/furoStreamRouterAbi/furoStreamRouterAbi_bentoBox.ts +11 -0
  127. package/evm/abi/furoStreamRouterAbi/furoStreamRouterAbi_createStream.ts +20 -0
  128. package/evm/abi/furoStreamRouterAbi/furoStreamRouterAbi_furoStream.ts +11 -0
  129. package/evm/abi/furoStreamRouterAbi/furoStreamRouterAbi_multicall.ts +9 -0
  130. package/evm/abi/furoStreamRouterAbi/furoStreamRouterAbi_setBentoBoxApproval.ts +15 -0
  131. package/evm/abi/furoStreamRouterAbi/furoStreamRouterAbi_wETH.ts +9 -0
  132. package/evm/abi/furoStreamRouterAbi/index.ts +6 -0
  133. package/evm/abi/furoVestingAbi/furoVestingAbi_PERCENTAGE_PRECISION.ts +9 -0
  134. package/evm/abi/furoVestingAbi/furoVestingAbi_approve.ts +12 -0
  135. package/evm/abi/furoVestingAbi/furoVestingAbi_balanceOf.ts +9 -0
  136. package/evm/abi/furoVestingAbi/furoVestingAbi_bentoBox.ts +11 -0
  137. package/evm/abi/furoVestingAbi/furoVestingAbi_claimOwnership.ts +9 -0
  138. package/evm/abi/furoVestingAbi/furoVestingAbi_createVesting.ts +31 -0
  139. package/evm/abi/furoVestingAbi/furoVestingAbi_getApproved.ts +9 -0
  140. package/evm/abi/furoVestingAbi/furoVestingAbi_isApprovedForAll.ts +12 -0
  141. package/evm/abi/furoVestingAbi/furoVestingAbi_multicall.ts +9 -0
  142. package/evm/abi/furoVestingAbi/furoVestingAbi_name.ts +9 -0
  143. package/evm/abi/furoVestingAbi/furoVestingAbi_owner.ts +9 -0
  144. package/evm/abi/furoVestingAbi/furoVestingAbi_ownerOf.ts +9 -0
  145. package/evm/abi/furoVestingAbi/furoVestingAbi_pendingOwner.ts +9 -0
  146. package/evm/abi/furoVestingAbi/furoVestingAbi_safeTransferFrom.ts +14 -0
  147. package/evm/abi/furoVestingAbi/furoVestingAbi_setApprovalForAll.ts +12 -0
  148. package/evm/abi/furoVestingAbi/furoVestingAbi_setBentoBoxApproval.ts +15 -0
  149. package/evm/abi/furoVestingAbi/furoVestingAbi_setTokenURIFetcher.ts +9 -0
  150. package/evm/abi/furoVestingAbi/furoVestingAbi_stopVesting.ts +12 -0
  151. package/evm/abi/furoVestingAbi/furoVestingAbi_supportsInterface.ts +9 -0
  152. package/evm/abi/furoVestingAbi/furoVestingAbi_symbol.ts +9 -0
  153. package/evm/abi/furoVestingAbi/furoVestingAbi_tokenURI.ts +9 -0
  154. package/evm/abi/furoVestingAbi/furoVestingAbi_tokenURIFetcher.ts +9 -0
  155. package/evm/abi/furoVestingAbi/furoVestingAbi_transferFrom.ts +13 -0
  156. package/evm/abi/furoVestingAbi/furoVestingAbi_transferOwnership.ts +13 -0
  157. package/evm/abi/furoVestingAbi/furoVestingAbi_updateOwner.ts +12 -0
  158. package/evm/abi/furoVestingAbi/furoVestingAbi_vestBalance.ts +9 -0
  159. package/evm/abi/furoVestingAbi/furoVestingAbi_vestIds.ts +9 -0
  160. package/evm/abi/furoVestingAbi/furoVestingAbi_vests.ts +19 -0
  161. package/evm/abi/furoVestingAbi/furoVestingAbi_wETH.ts +9 -0
  162. package/evm/abi/furoVestingAbi/furoVestingAbi_withdraw.ts +13 -0
  163. package/evm/abi/furoVestingAbi/index.ts +31 -0
  164. package/evm/abi/furoVestingRouterAbi/furoVestingRouterAbi_bentoBox.ts +11 -0
  165. package/evm/abi/furoVestingRouterAbi/furoVestingRouterAbi_createVesting.ts +32 -0
  166. package/evm/abi/furoVestingRouterAbi/furoVestingRouterAbi_furoVesting.ts +11 -0
  167. package/evm/abi/furoVestingRouterAbi/furoVestingRouterAbi_multicall.ts +9 -0
  168. package/evm/abi/furoVestingRouterAbi/furoVestingRouterAbi_setBentoBoxApproval.ts +15 -0
  169. package/evm/abi/furoVestingRouterAbi/furoVestingRouterAbi_wETH.ts +9 -0
  170. package/evm/abi/furoVestingRouterAbi/index.ts +6 -0
  171. package/evm/abi/gasDataArbitrumAbi/gasDataArbitrumAbi_getPricesInWei.ts +16 -0
  172. package/evm/abi/gasDataArbitrumAbi/index.ts +1 -0
  173. package/evm/abi/gasPriceOracleAbi/gasPriceOracleAbi_decimals.ts +9 -0
  174. package/evm/abi/gasPriceOracleAbi/gasPriceOracleAbi_gasPrice.ts +9 -0
  175. package/evm/abi/gasPriceOracleAbi/gasPriceOracleAbi_getL1Fee.ts +9 -0
  176. package/evm/abi/gasPriceOracleAbi/gasPriceOracleAbi_getL1GasUsed.ts +9 -0
  177. package/evm/abi/gasPriceOracleAbi/gasPriceOracleAbi_l1BaseFee.ts +9 -0
  178. package/evm/abi/gasPriceOracleAbi/gasPriceOracleAbi_overhead.ts +9 -0
  179. package/evm/abi/gasPriceOracleAbi/gasPriceOracleAbi_owner.ts +9 -0
  180. package/evm/abi/gasPriceOracleAbi/gasPriceOracleAbi_renounceOwnership.ts +9 -0
  181. package/evm/abi/gasPriceOracleAbi/gasPriceOracleAbi_scalar.ts +9 -0
  182. package/evm/abi/gasPriceOracleAbi/gasPriceOracleAbi_setDecimals.ts +9 -0
  183. package/evm/abi/gasPriceOracleAbi/gasPriceOracleAbi_setGasPrice.ts +9 -0
  184. package/evm/abi/gasPriceOracleAbi/gasPriceOracleAbi_setL1BaseFee.ts +9 -0
  185. package/evm/abi/gasPriceOracleAbi/gasPriceOracleAbi_setOverhead.ts +9 -0
  186. package/evm/abi/gasPriceOracleAbi/gasPriceOracleAbi_setScalar.ts +9 -0
  187. package/evm/abi/gasPriceOracleAbi/gasPriceOracleAbi_transferOwnership.ts +9 -0
  188. package/evm/abi/gasPriceOracleAbi/index.ts +15 -0
  189. package/evm/abi/getPoolsAbi/getPoolsAbi_getPools.ts +16 -0
  190. package/evm/abi/getPoolsAbi/index.ts +1 -0
  191. package/evm/abi/getStableReservesAbi/getStableReservesAbi_getReserves.ts +12 -0
  192. package/evm/abi/getStableReservesAbi/index.ts +1 -0
  193. package/evm/abi/index.ts +60 -0
  194. package/evm/abi/masterChefV1Abi/index.ts +26 -0
  195. package/evm/abi/masterChefV1Abi/masterChefV1Abi_BONUS_MULTIPLIER.ts +9 -0
  196. package/evm/abi/masterChefV1Abi/masterChefV1Abi_add.ts +13 -0
  197. package/evm/abi/masterChefV1Abi/masterChefV1Abi_bonusEndBlock.ts +9 -0
  198. package/evm/abi/masterChefV1Abi/masterChefV1Abi_deposit.ts +12 -0
  199. package/evm/abi/masterChefV1Abi/masterChefV1Abi_dev.ts +9 -0
  200. package/evm/abi/masterChefV1Abi/masterChefV1Abi_devaddr.ts +9 -0
  201. package/evm/abi/masterChefV1Abi/masterChefV1Abi_emergencyWithdraw.ts +9 -0
  202. package/evm/abi/masterChefV1Abi/masterChefV1Abi_getMultiplier.ts +12 -0
  203. package/evm/abi/masterChefV1Abi/masterChefV1Abi_massUpdatePools.ts +9 -0
  204. package/evm/abi/masterChefV1Abi/masterChefV1Abi_migrate.ts +9 -0
  205. package/evm/abi/masterChefV1Abi/masterChefV1Abi_migrator.ts +11 -0
  206. package/evm/abi/masterChefV1Abi/masterChefV1Abi_owner.ts +9 -0
  207. package/evm/abi/masterChefV1Abi/masterChefV1Abi_pendingSushi.ts +12 -0
  208. package/evm/abi/masterChefV1Abi/masterChefV1Abi_poolInfo.ts +14 -0
  209. package/evm/abi/masterChefV1Abi/masterChefV1Abi_poolLength.ts +9 -0
  210. package/evm/abi/masterChefV1Abi/masterChefV1Abi_renounceOwnership.ts +9 -0
  211. package/evm/abi/masterChefV1Abi/masterChefV1Abi_set.ts +13 -0
  212. package/evm/abi/masterChefV1Abi/masterChefV1Abi_setMigrator.ts +15 -0
  213. package/evm/abi/masterChefV1Abi/masterChefV1Abi_startBlock.ts +9 -0
  214. package/evm/abi/masterChefV1Abi/masterChefV1Abi_sushi.ts +11 -0
  215. package/evm/abi/masterChefV1Abi/masterChefV1Abi_sushiPerBlock.ts +9 -0
  216. package/evm/abi/masterChefV1Abi/masterChefV1Abi_totalAllocPoint.ts +9 -0
  217. package/evm/abi/masterChefV1Abi/masterChefV1Abi_transferOwnership.ts +9 -0
  218. package/evm/abi/masterChefV1Abi/masterChefV1Abi_updatePool.ts +9 -0
  219. package/evm/abi/masterChefV1Abi/masterChefV1Abi_userInfo.ts +15 -0
  220. package/evm/abi/masterChefV1Abi/masterChefV1Abi_withdraw.ts +12 -0
  221. package/evm/abi/masterChefV2Abi/index.ts +31 -0
  222. package/evm/abi/masterChefV2Abi/masterChefV2Abi_MASTER_CHEF.ts +11 -0
  223. package/evm/abi/masterChefV2Abi/masterChefV2Abi_MASTER_PID.ts +9 -0
  224. package/evm/abi/masterChefV2Abi/masterChefV2Abi_SUSHI.ts +9 -0
  225. package/evm/abi/masterChefV2Abi/masterChefV2Abi_add.ts +17 -0
  226. package/evm/abi/masterChefV2Abi/masterChefV2Abi_batch.ts +15 -0
  227. package/evm/abi/masterChefV2Abi/masterChefV2Abi_claimOwnership.ts +9 -0
  228. package/evm/abi/masterChefV2Abi/masterChefV2Abi_deposit.ts +13 -0
  229. package/evm/abi/masterChefV2Abi/masterChefV2Abi_emergencyWithdraw.ts +12 -0
  230. package/evm/abi/masterChefV2Abi/masterChefV2Abi_harvest.ts +12 -0
  231. package/evm/abi/masterChefV2Abi/masterChefV2Abi_harvestFromMasterChef.ts +9 -0
  232. package/evm/abi/masterChefV2Abi/masterChefV2Abi_init.ts +11 -0
  233. package/evm/abi/masterChefV2Abi/masterChefV2Abi_lpToken.ts +9 -0
  234. package/evm/abi/masterChefV2Abi/masterChefV2Abi_massUpdatePools.ts +9 -0
  235. package/evm/abi/masterChefV2Abi/masterChefV2Abi_migrate.ts +9 -0
  236. package/evm/abi/masterChefV2Abi/masterChefV2Abi_migrator.ts +11 -0
  237. package/evm/abi/masterChefV2Abi/masterChefV2Abi_owner.ts +9 -0
  238. package/evm/abi/masterChefV2Abi/masterChefV2Abi_pendingOwner.ts +9 -0
  239. package/evm/abi/masterChefV2Abi/masterChefV2Abi_pendingSushi.ts +12 -0
  240. package/evm/abi/masterChefV2Abi/masterChefV2Abi_permitToken.ts +18 -0
  241. package/evm/abi/masterChefV2Abi/masterChefV2Abi_poolInfo.ts +13 -0
  242. package/evm/abi/masterChefV2Abi/masterChefV2Abi_poolLength.ts +9 -0
  243. package/evm/abi/masterChefV2Abi/masterChefV2Abi_rewarder.ts +11 -0
  244. package/evm/abi/masterChefV2Abi/masterChefV2Abi_set.ts +18 -0
  245. package/evm/abi/masterChefV2Abi/masterChefV2Abi_setMigrator.ts +15 -0
  246. package/evm/abi/masterChefV2Abi/masterChefV2Abi_sushiPerBlock.ts +9 -0
  247. package/evm/abi/masterChefV2Abi/masterChefV2Abi_totalAllocPoint.ts +9 -0
  248. package/evm/abi/masterChefV2Abi/masterChefV2Abi_transferOwnership.ts +13 -0
  249. package/evm/abi/masterChefV2Abi/masterChefV2Abi_updatePool.ts +24 -0
  250. package/evm/abi/masterChefV2Abi/masterChefV2Abi_userInfo.ts +15 -0
  251. package/evm/abi/masterChefV2Abi/masterChefV2Abi_withdraw.ts +13 -0
  252. package/evm/abi/masterChefV2Abi/masterChefV2Abi_withdrawAndHarvest.ts +13 -0
  253. package/evm/abi/miniChefAbi/index.ts +28 -0
  254. package/evm/abi/miniChefAbi/miniChefAbi_SUSHI.ts +9 -0
  255. package/evm/abi/miniChefAbi/miniChefAbi_add.ts +17 -0
  256. package/evm/abi/miniChefAbi/miniChefAbi_batch.ts +15 -0
  257. package/evm/abi/miniChefAbi/miniChefAbi_claimOwnership.ts +9 -0
  258. package/evm/abi/miniChefAbi/miniChefAbi_deposit.ts +13 -0
  259. package/evm/abi/miniChefAbi/miniChefAbi_emergencyWithdraw.ts +12 -0
  260. package/evm/abi/miniChefAbi/miniChefAbi_harvest.ts +12 -0
  261. package/evm/abi/miniChefAbi/miniChefAbi_lpToken.ts +9 -0
  262. package/evm/abi/miniChefAbi/miniChefAbi_massUpdatePools.ts +9 -0
  263. package/evm/abi/miniChefAbi/miniChefAbi_migrate.ts +9 -0
  264. package/evm/abi/miniChefAbi/miniChefAbi_migrator.ts +11 -0
  265. package/evm/abi/miniChefAbi/miniChefAbi_owner.ts +9 -0
  266. package/evm/abi/miniChefAbi/miniChefAbi_pendingOwner.ts +9 -0
  267. package/evm/abi/miniChefAbi/miniChefAbi_pendingSushi.ts +12 -0
  268. package/evm/abi/miniChefAbi/miniChefAbi_permitToken.ts +18 -0
  269. package/evm/abi/miniChefAbi/miniChefAbi_poolInfo.ts +13 -0
  270. package/evm/abi/miniChefAbi/miniChefAbi_poolLength.ts +9 -0
  271. package/evm/abi/miniChefAbi/miniChefAbi_rewarder.ts +11 -0
  272. package/evm/abi/miniChefAbi/miniChefAbi_set.ts +18 -0
  273. package/evm/abi/miniChefAbi/miniChefAbi_setMigrator.ts +15 -0
  274. package/evm/abi/miniChefAbi/miniChefAbi_setSushiPerSecond.ts +11 -0
  275. package/evm/abi/miniChefAbi/miniChefAbi_sushiPerSecond.ts +9 -0
  276. package/evm/abi/miniChefAbi/miniChefAbi_totalAllocPoint.ts +9 -0
  277. package/evm/abi/miniChefAbi/miniChefAbi_transferOwnership.ts +13 -0
  278. package/evm/abi/miniChefAbi/miniChefAbi_updatePool.ts +24 -0
  279. package/evm/abi/miniChefAbi/miniChefAbi_userInfo.ts +15 -0
  280. package/evm/abi/miniChefAbi/miniChefAbi_withdraw.ts +13 -0
  281. package/evm/abi/miniChefAbi/miniChefAbi_withdrawAndHarvest.ts +13 -0
  282. package/evm/abi/miniChefV2Abi/index.ts +28 -0
  283. package/evm/abi/miniChefV2Abi/miniChefV2Abi_SUSHI.ts +9 -0
  284. package/evm/abi/miniChefV2Abi/miniChefV2Abi_add.ts +17 -0
  285. package/evm/abi/miniChefV2Abi/miniChefV2Abi_batch.ts +15 -0
  286. package/evm/abi/miniChefV2Abi/miniChefV2Abi_claimOwnership.ts +9 -0
  287. package/evm/abi/miniChefV2Abi/miniChefV2Abi_deposit.ts +13 -0
  288. package/evm/abi/miniChefV2Abi/miniChefV2Abi_emergencyWithdraw.ts +12 -0
  289. package/evm/abi/miniChefV2Abi/miniChefV2Abi_harvest.ts +12 -0
  290. package/evm/abi/miniChefV2Abi/miniChefV2Abi_lpToken.ts +9 -0
  291. package/evm/abi/miniChefV2Abi/miniChefV2Abi_massUpdatePools.ts +9 -0
  292. package/evm/abi/miniChefV2Abi/miniChefV2Abi_migrate.ts +9 -0
  293. package/evm/abi/miniChefV2Abi/miniChefV2Abi_migrator.ts +11 -0
  294. package/evm/abi/miniChefV2Abi/miniChefV2Abi_owner.ts +9 -0
  295. package/evm/abi/miniChefV2Abi/miniChefV2Abi_pendingOwner.ts +9 -0
  296. package/evm/abi/miniChefV2Abi/miniChefV2Abi_pendingSushi.ts +12 -0
  297. package/evm/abi/miniChefV2Abi/miniChefV2Abi_permitToken.ts +18 -0
  298. package/evm/abi/miniChefV2Abi/miniChefV2Abi_poolInfo.ts +13 -0
  299. package/evm/abi/miniChefV2Abi/miniChefV2Abi_poolLength.ts +9 -0
  300. package/evm/abi/miniChefV2Abi/miniChefV2Abi_rewarder.ts +11 -0
  301. package/evm/abi/miniChefV2Abi/miniChefV2Abi_set.ts +18 -0
  302. package/evm/abi/miniChefV2Abi/miniChefV2Abi_setMigrator.ts +15 -0
  303. package/evm/abi/miniChefV2Abi/miniChefV2Abi_setSushiPerSecond.ts +11 -0
  304. package/evm/abi/miniChefV2Abi/miniChefV2Abi_sushiPerSecond.ts +9 -0
  305. package/evm/abi/miniChefV2Abi/miniChefV2Abi_totalAllocPoint.ts +9 -0
  306. package/evm/abi/miniChefV2Abi/miniChefV2Abi_transferOwnership.ts +13 -0
  307. package/evm/abi/miniChefV2Abi/miniChefV2Abi_updatePool.ts +24 -0
  308. package/evm/abi/miniChefV2Abi/miniChefV2Abi_userInfo.ts +15 -0
  309. package/evm/abi/miniChefV2Abi/miniChefV2Abi_withdraw.ts +13 -0
  310. package/evm/abi/miniChefV2Abi/miniChefV2Abi_withdrawAndHarvest.ts +13 -0
  311. package/evm/abi/multicall2Abi/index.ts +12 -0
  312. package/evm/abi/multicall2Abi/multicall2Abi_aggregate.ts +22 -0
  313. package/evm/abi/multicall2Abi/multicall2Abi_blockAndAggregate.ts +31 -0
  314. package/evm/abi/multicall2Abi/multicall2Abi_getBlockHash.ts +9 -0
  315. package/evm/abi/multicall2Abi/multicall2Abi_getBlockNumber.ts +11 -0
  316. package/evm/abi/multicall2Abi/multicall2Abi_getCurrentBlockCoinbase.ts +9 -0
  317. package/evm/abi/multicall2Abi/multicall2Abi_getCurrentBlockDifficulty.ts +9 -0
  318. package/evm/abi/multicall2Abi/multicall2Abi_getCurrentBlockGasLimit.ts +9 -0
  319. package/evm/abi/multicall2Abi/multicall2Abi_getCurrentBlockTimestamp.ts +9 -0
  320. package/evm/abi/multicall2Abi/multicall2Abi_getEthBalance.ts +9 -0
  321. package/evm/abi/multicall2Abi/multicall2Abi_getLastBlockHash.ts +9 -0
  322. package/evm/abi/multicall2Abi/multicall2Abi_tryAggregate.ts +30 -0
  323. package/evm/abi/multicall2Abi/multicall2Abi_tryBlockAndAggregate.ts +32 -0
  324. package/evm/abi/multicall3Abi/index.ts +16 -0
  325. package/evm/abi/multicall3Abi/multicall3Abi_aggregate.ts +22 -0
  326. package/evm/abi/multicall3Abi/multicall3Abi_aggregate3.ts +30 -0
  327. package/evm/abi/multicall3Abi/multicall3Abi_aggregate3Value.ts +31 -0
  328. package/evm/abi/multicall3Abi/multicall3Abi_blockAndAggregate.ts +31 -0
  329. package/evm/abi/multicall3Abi/multicall3Abi_getBasefee.ts +9 -0
  330. package/evm/abi/multicall3Abi/multicall3Abi_getBlockHash.ts +9 -0
  331. package/evm/abi/multicall3Abi/multicall3Abi_getBlockNumber.ts +11 -0
  332. package/evm/abi/multicall3Abi/multicall3Abi_getChainId.ts +9 -0
  333. package/evm/abi/multicall3Abi/multicall3Abi_getCurrentBlockCoinbase.ts +9 -0
  334. package/evm/abi/multicall3Abi/multicall3Abi_getCurrentBlockDifficulty.ts +9 -0
  335. package/evm/abi/multicall3Abi/multicall3Abi_getCurrentBlockGasLimit.ts +9 -0
  336. package/evm/abi/multicall3Abi/multicall3Abi_getCurrentBlockTimestamp.ts +9 -0
  337. package/evm/abi/multicall3Abi/multicall3Abi_getEthBalance.ts +9 -0
  338. package/evm/abi/multicall3Abi/multicall3Abi_getLastBlockHash.ts +9 -0
  339. package/evm/abi/multicall3Abi/multicall3Abi_tryAggregate.ts +30 -0
  340. package/evm/abi/multicall3Abi/multicall3Abi_tryBlockAndAggregate.ts +32 -0
  341. package/evm/abi/multicallAbi/index.ts +1 -0
  342. package/evm/abi/multicallAbi/multicallAbi_multicall.ts +9 -0
  343. package/evm/abi/nonfungiblePositionManagerAbi/index.ts +38 -0
  344. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_DOMAIN_SEPARATOR.ts +9 -0
  345. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_PERMIT_TYPEHASH.ts +9 -0
  346. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_WETH9.ts +9 -0
  347. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_approve.ts +12 -0
  348. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_balanceOf.ts +9 -0
  349. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_baseURI.ts +9 -0
  350. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_burn.ts +9 -0
  351. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_collect.ts +24 -0
  352. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_createAndInitializePoolIfNecessary.ts +15 -0
  353. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_decreaseLiquidity.ts +26 -0
  354. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_factory.ts +9 -0
  355. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_getApproved.ts +9 -0
  356. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_increaseLiquidity.ts +28 -0
  357. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_isApprovedForAll.ts +12 -0
  358. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_mint.ts +33 -0
  359. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_multicall.ts +9 -0
  360. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_name.ts +9 -0
  361. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_ownerOf.ts +9 -0
  362. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_permit.ts +16 -0
  363. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_positions.ts +30 -0
  364. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_refundETH.ts +9 -0
  365. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_safeTransferFrom.ts +37 -0
  366. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_selfPermit.ts +16 -0
  367. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_selfPermitAllowed.ts +16 -0
  368. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_selfPermitAllowedIfNecessary.ts +16 -0
  369. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_selfPermitIfNecessary.ts +16 -0
  370. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_setApprovalForAll.ts +12 -0
  371. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_supportsInterface.ts +9 -0
  372. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_sweepToken.ts +13 -0
  373. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_symbol.ts +9 -0
  374. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_tokenByIndex.ts +9 -0
  375. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_tokenOfOwnerByIndex.ts +12 -0
  376. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_tokenURI.ts +9 -0
  377. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_totalSupply.ts +9 -0
  378. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_transferFrom.ts +13 -0
  379. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_uniswapV3MintCallback.ts +13 -0
  380. package/evm/abi/nonfungiblePositionManagerAbi/nonfungiblePositionManagerAbi_unwrapWETH9.ts +12 -0
  381. package/evm/abi/peripheryPaymentsWithFeeAbi/index.ts +5 -0
  382. package/evm/abi/peripheryPaymentsWithFeeAbi/peripheryPaymentsWithFeeAbi_refundETH.ts +9 -0
  383. package/evm/abi/peripheryPaymentsWithFeeAbi/peripheryPaymentsWithFeeAbi_sweepToken.ts +13 -0
  384. package/evm/abi/peripheryPaymentsWithFeeAbi/peripheryPaymentsWithFeeAbi_sweepTokenWithFee.ts +15 -0
  385. package/evm/abi/peripheryPaymentsWithFeeAbi/peripheryPaymentsWithFeeAbi_unwrapWETH9.ts +12 -0
  386. package/evm/abi/peripheryPaymentsWithFeeAbi/peripheryPaymentsWithFeeAbi_unwrapWETH9WithFee.ts +14 -0
  387. package/evm/abi/permit2Abi/index.ts +15 -0
  388. package/evm/abi/permit2Abi/permit2Abi_DOMAIN_SEPARATOR.ts +9 -0
  389. package/evm/abi/permit2Abi/permit2Abi_allowance.ts +17 -0
  390. package/evm/abi/permit2Abi/permit2Abi_approve.ts +14 -0
  391. package/evm/abi/permit2Abi/permit2Abi_invalidateNonces.ts +13 -0
  392. package/evm/abi/permit2Abi/permit2Abi_invalidateUnorderedNonces.ts +12 -0
  393. package/evm/abi/permit2Abi/permit2Abi_lockdown.ts +19 -0
  394. package/evm/abi/permit2Abi/permit2Abi_nonceBitmap.ts +12 -0
  395. package/evm/abi/permit2Abi/permit2Abi_permit.ts +32 -0
  396. package/evm/abi/permit2Abi/permit2Abi_permitTransferFrom.ts +39 -0
  397. package/evm/abi/permit2Abi/permit2Abi_permitWitnessTransferFrom.ts +41 -0
  398. package/evm/abi/permit2Abi/permit2Abi_transferFrom.ts +14 -0
  399. package/evm/abi/poolsCountAbi/index.ts +1 -0
  400. package/evm/abi/poolsCountAbi/poolsCountAbi_poolsCount.ts +12 -0
  401. package/evm/abi/routeProcessor2Abi/index.ts +10 -0
  402. package/evm/abi/routeProcessor2Abi/routeProcessor2Abi_bentoBox.ts +11 -0
  403. package/evm/abi/routeProcessor2Abi/routeProcessor2Abi_owner.ts +9 -0
  404. package/evm/abi/routeProcessor2Abi/routeProcessor2Abi_pause.ts +9 -0
  405. package/evm/abi/routeProcessor2Abi/routeProcessor2Abi_processRoute.ts +16 -0
  406. package/evm/abi/routeProcessor2Abi/routeProcessor2Abi_renounceOwnership.ts +9 -0
  407. package/evm/abi/routeProcessor2Abi/routeProcessor2Abi_resume.ts +9 -0
  408. package/evm/abi/routeProcessor2Abi/routeProcessor2Abi_setPriviledge.ts +12 -0
  409. package/evm/abi/routeProcessor2Abi/routeProcessor2Abi_transferOwnership.ts +9 -0
  410. package/evm/abi/routeProcessor2Abi/routeProcessor2Abi_transferValueAndprocessRoute.ts +22 -0
  411. package/evm/abi/routeProcessor2Abi/routeProcessor2Abi_uniswapV3SwapCallback.ts +13 -0
  412. package/evm/abi/routeProcessor3Abi/index.ts +10 -0
  413. package/evm/abi/routeProcessor3Abi/routeProcessor3Abi_bentoBox.ts +11 -0
  414. package/evm/abi/routeProcessor3Abi/routeProcessor3Abi_owner.ts +9 -0
  415. package/evm/abi/routeProcessor3Abi/routeProcessor3Abi_pause.ts +9 -0
  416. package/evm/abi/routeProcessor3Abi/routeProcessor3Abi_processRoute.ts +16 -0
  417. package/evm/abi/routeProcessor3Abi/routeProcessor3Abi_renounceOwnership.ts +9 -0
  418. package/evm/abi/routeProcessor3Abi/routeProcessor3Abi_resume.ts +9 -0
  419. package/evm/abi/routeProcessor3Abi/routeProcessor3Abi_setPriviledge.ts +12 -0
  420. package/evm/abi/routeProcessor3Abi/routeProcessor3Abi_transferOwnership.ts +9 -0
  421. package/evm/abi/routeProcessor3Abi/routeProcessor3Abi_transferValueAndprocessRoute.ts +22 -0
  422. package/evm/abi/routeProcessor3Abi/routeProcessor3Abi_uniswapV3SwapCallback.ts +13 -0
  423. package/evm/abi/routeProcessor3_1Abi/index.ts +10 -0
  424. package/evm/abi/routeProcessor3_1Abi/routeProcessor3_1Abi_bentoBox.ts +11 -0
  425. package/evm/abi/routeProcessor3_1Abi/routeProcessor3_1Abi_owner.ts +9 -0
  426. package/evm/abi/routeProcessor3_1Abi/routeProcessor3_1Abi_pause.ts +9 -0
  427. package/evm/abi/routeProcessor3_1Abi/routeProcessor3_1Abi_processRoute.ts +16 -0
  428. package/evm/abi/routeProcessor3_1Abi/routeProcessor3_1Abi_renounceOwnership.ts +9 -0
  429. package/evm/abi/routeProcessor3_1Abi/routeProcessor3_1Abi_resume.ts +9 -0
  430. package/evm/abi/routeProcessor3_1Abi/routeProcessor3_1Abi_setPriviledge.ts +12 -0
  431. package/evm/abi/routeProcessor3_1Abi/routeProcessor3_1Abi_transferOwnership.ts +9 -0
  432. package/evm/abi/routeProcessor3_1Abi/routeProcessor3_1Abi_transferValueAndprocessRoute.ts +22 -0
  433. package/evm/abi/routeProcessor3_1Abi/routeProcessor3_1Abi_uniswapV3SwapCallback.ts +13 -0
  434. package/evm/abi/routeProcessor4Abi/index.ts +13 -0
  435. package/evm/abi/routeProcessor4Abi/routeProcessor4Abi_algebraSwapCallback.ts +13 -0
  436. package/evm/abi/routeProcessor4Abi/routeProcessor4Abi_bentoBox.ts +11 -0
  437. package/evm/abi/routeProcessor4Abi/routeProcessor4Abi_owner.ts +9 -0
  438. package/evm/abi/routeProcessor4Abi/routeProcessor4Abi_pancakeV3SwapCallback.ts +13 -0
  439. package/evm/abi/routeProcessor4Abi/routeProcessor4Abi_pause.ts +9 -0
  440. package/evm/abi/routeProcessor4Abi/routeProcessor4Abi_priviledgedUsers.ts +9 -0
  441. package/evm/abi/routeProcessor4Abi/routeProcessor4Abi_processRoute.ts +16 -0
  442. package/evm/abi/routeProcessor4Abi/routeProcessor4Abi_renounceOwnership.ts +9 -0
  443. package/evm/abi/routeProcessor4Abi/routeProcessor4Abi_resume.ts +9 -0
  444. package/evm/abi/routeProcessor4Abi/routeProcessor4Abi_setPriviledge.ts +12 -0
  445. package/evm/abi/routeProcessor4Abi/routeProcessor4Abi_transferOwnership.ts +9 -0
  446. package/evm/abi/routeProcessor4Abi/routeProcessor4Abi_transferValueAndprocessRoute.ts +22 -0
  447. package/evm/abi/routeProcessor4Abi/routeProcessor4Abi_uniswapV3SwapCallback.ts +13 -0
  448. package/evm/abi/routeProcessor5Abi/index.ts +15 -0
  449. package/evm/abi/routeProcessor5Abi/routeProcessor5Abi_algebraSwapCallback.ts +13 -0
  450. package/evm/abi/routeProcessor5Abi/routeProcessor5Abi_bentoBox.ts +11 -0
  451. package/evm/abi/routeProcessor5Abi/routeProcessor5Abi_owner.ts +9 -0
  452. package/evm/abi/routeProcessor5Abi/routeProcessor5Abi_pancakeV3SwapCallback.ts +13 -0
  453. package/evm/abi/routeProcessor5Abi/routeProcessor5Abi_pause.ts +9 -0
  454. package/evm/abi/routeProcessor5Abi/routeProcessor5Abi_priviledgedUsers.ts +9 -0
  455. package/evm/abi/routeProcessor5Abi/routeProcessor5Abi_processRoute.ts +16 -0
  456. package/evm/abi/routeProcessor5Abi/routeProcessor5Abi_processRouteWithTransferValueInput.ts +22 -0
  457. package/evm/abi/routeProcessor5Abi/routeProcessor5Abi_processRouteWithTransferValueOutput.ts +22 -0
  458. package/evm/abi/routeProcessor5Abi/routeProcessor5Abi_renounceOwnership.ts +9 -0
  459. package/evm/abi/routeProcessor5Abi/routeProcessor5Abi_resume.ts +9 -0
  460. package/evm/abi/routeProcessor5Abi/routeProcessor5Abi_setPriviledge.ts +12 -0
  461. package/evm/abi/routeProcessor5Abi/routeProcessor5Abi_transferOwnership.ts +9 -0
  462. package/evm/abi/routeProcessor5Abi/routeProcessor5Abi_transferValueAndprocessRoute.ts +18 -0
  463. package/evm/abi/routeProcessor5Abi/routeProcessor5Abi_uniswapV3SwapCallback.ts +13 -0
  464. package/evm/abi/routeProcessorAbi/index.ts +3 -0
  465. package/evm/abi/routeProcessorAbi/routeProcessorAbi_bentoBox.ts +11 -0
  466. package/evm/abi/routeProcessorAbi/routeProcessorAbi_processRoute.ts +16 -0
  467. package/evm/abi/routeProcessorAbi/routeProcessorAbi_transferValueAndprocessRoute.ts +22 -0
  468. package/evm/abi/selfPermitAbi/index.ts +4 -0
  469. package/evm/abi/selfPermitAbi/selfPermitAbi_selfPermit.ts +16 -0
  470. package/evm/abi/selfPermitAbi/selfPermitAbi_selfPermitAllowed.ts +16 -0
  471. package/evm/abi/selfPermitAbi/selfPermitAbi_selfPermitAllowedIfNecessary.ts +16 -0
  472. package/evm/abi/selfPermitAbi/selfPermitAbi_selfPermitIfNecessary.ts +16 -0
  473. package/evm/abi/slot0Abi/index.ts +1 -0
  474. package/evm/abi/slot0Abi/slot0Abi_slot0.ts +25 -0
  475. package/evm/abi/splitter.ts +53 -0
  476. package/evm/abi/squidAdapterAbi/index.ts +5 -0
  477. package/evm/abi/squidAdapterAbi/squidAdapterAbi_adapterBridge.ts +14 -0
  478. package/evm/abi/squidAdapterAbi/squidAdapterAbi_executePayload.ts +13 -0
  479. package/evm/abi/squidAdapterAbi/squidAdapterAbi_sendMessage.ts +9 -0
  480. package/evm/abi/squidAdapterAbi/squidAdapterAbi_squidRouter.ts +9 -0
  481. package/evm/abi/squidAdapterAbi/squidAdapterAbi_swap.ts +14 -0
  482. package/evm/abi/squidRouterAbi/index.ts +28 -0
  483. package/evm/abi/squidRouterAbi/squidRouterAbi.ts +622 -0
  484. package/evm/abi/squidRouterAbi/squidRouterAbi_acceptOwnership.ts +9 -0
  485. package/evm/abi/squidRouterAbi/squidRouterAbi_acceptPauser.ts +9 -0
  486. package/evm/abi/squidRouterAbi/squidRouterAbi_bridgeCall.ts +17 -0
  487. package/evm/abi/squidRouterAbi/squidRouterAbi_callBridge.ts +31 -0
  488. package/evm/abi/squidRouterAbi/squidRouterAbi_callBridgeCall.ts +34 -0
  489. package/evm/abi/squidRouterAbi/squidRouterAbi_contractId.ts +9 -0
  490. package/evm/abi/squidRouterAbi/squidRouterAbi_execute.ts +14 -0
  491. package/evm/abi/squidRouterAbi/squidRouterAbi_executeWithToken.ts +16 -0
  492. package/evm/abi/squidRouterAbi/squidRouterAbi_expressExecute.ts +14 -0
  493. package/evm/abi/squidRouterAbi/squidRouterAbi_expressExecuteWithToken.ts +16 -0
  494. package/evm/abi/squidRouterAbi/squidRouterAbi_fundAndRunMulticall.ts +28 -0
  495. package/evm/abi/squidRouterAbi/squidRouterAbi_gateway.ts +11 -0
  496. package/evm/abi/squidRouterAbi/squidRouterAbi_getExpressExecutor.ts +16 -0
  497. package/evm/abi/squidRouterAbi/squidRouterAbi_getExpressExecutorWithToken.ts +18 -0
  498. package/evm/abi/squidRouterAbi/squidRouterAbi_implementation.ts +11 -0
  499. package/evm/abi/squidRouterAbi/squidRouterAbi_owner.ts +9 -0
  500. package/evm/abi/squidRouterAbi/squidRouterAbi_pause.ts +9 -0
  501. package/evm/abi/squidRouterAbi/squidRouterAbi_paused.ts +9 -0
  502. package/evm/abi/squidRouterAbi/squidRouterAbi_pauser.ts +9 -0
  503. package/evm/abi/squidRouterAbi/squidRouterAbi_pendingOwner.ts +9 -0
  504. package/evm/abi/squidRouterAbi/squidRouterAbi_pendingPauser.ts +9 -0
  505. package/evm/abi/squidRouterAbi/squidRouterAbi_proposeOwnership.ts +9 -0
  506. package/evm/abi/squidRouterAbi/squidRouterAbi_setup.ts +9 -0
  507. package/evm/abi/squidRouterAbi/squidRouterAbi_transferOwnership.ts +9 -0
  508. package/evm/abi/squidRouterAbi/squidRouterAbi_unpause.ts +9 -0
  509. package/evm/abi/squidRouterAbi/squidRouterAbi_updatePauser.ts +9 -0
  510. package/evm/abi/squidRouterAbi/squidRouterAbi_upgrade.ts +17 -0
  511. package/evm/abi/stargateAdapterAbi/index.ts +11 -0
  512. package/evm/abi/stargateAdapterAbi/stargateAdapterAbi_adapterBridge.ts +14 -0
  513. package/evm/abi/stargateAdapterAbi/stargateAdapterAbi_executePayload.ts +13 -0
  514. package/evm/abi/stargateAdapterAbi/stargateAdapterAbi_getFee.ts +19 -0
  515. package/evm/abi/stargateAdapterAbi/stargateAdapterAbi_rp.ts +11 -0
  516. package/evm/abi/stargateAdapterAbi/stargateAdapterAbi_sendMessage.ts +9 -0
  517. package/evm/abi/stargateAdapterAbi/stargateAdapterAbi_sgReceive.ts +16 -0
  518. package/evm/abi/stargateAdapterAbi/stargateAdapterAbi_sgeth.ts +9 -0
  519. package/evm/abi/stargateAdapterAbi/stargateAdapterAbi_stargateRouter.ts +11 -0
  520. package/evm/abi/stargateAdapterAbi/stargateAdapterAbi_stargateWidget.ts +11 -0
  521. package/evm/abi/stargateAdapterAbi/stargateAdapterAbi_swap.ts +14 -0
  522. package/evm/abi/stargateAdapterAbi/stargateAdapterAbi_weth.ts +9 -0
  523. package/evm/abi/stargateFeeLibraryV03Abi/index.ts +16 -0
  524. package/evm/abi/stargateFeeLibraryV03Abi/stargateFeeLibraryV03Abi_DELTA_1.ts +9 -0
  525. package/evm/abi/stargateFeeLibraryV03Abi/stargateFeeLibraryV03Abi_DELTA_2.ts +9 -0
  526. package/evm/abi/stargateFeeLibraryV03Abi/stargateFeeLibraryV03Abi_DENOMINATOR.ts +9 -0
  527. package/evm/abi/stargateFeeLibraryV03Abi/stargateFeeLibraryV03Abi_LAMBDA_1.ts +9 -0
  528. package/evm/abi/stargateFeeLibraryV03Abi/stargateFeeLibraryV03Abi_LAMBDA_2.ts +9 -0
  529. package/evm/abi/stargateFeeLibraryV03Abi/stargateFeeLibraryV03Abi_LP_FEE.ts +9 -0
  530. package/evm/abi/stargateFeeLibraryV03Abi/stargateFeeLibraryV03Abi_PROTOCOL_FEE.ts +9 -0
  531. package/evm/abi/stargateFeeLibraryV03Abi/stargateFeeLibraryV03Abi_PROTOCOL_SUBSIDY.ts +9 -0
  532. package/evm/abi/stargateFeeLibraryV03Abi/stargateFeeLibraryV03Abi_factory.ts +9 -0
  533. package/evm/abi/stargateFeeLibraryV03Abi/stargateFeeLibraryV03Abi_getEquilibriumFee.ts +16 -0
  534. package/evm/abi/stargateFeeLibraryV03Abi/stargateFeeLibraryV03Abi_getFees.ts +29 -0
  535. package/evm/abi/stargateFeeLibraryV03Abi/stargateFeeLibraryV03Abi_getTrapezoidArea.ts +16 -0
  536. package/evm/abi/stargateFeeLibraryV03Abi/stargateFeeLibraryV03Abi_getVersion.ts +9 -0
  537. package/evm/abi/stargateFeeLibraryV03Abi/stargateFeeLibraryV03Abi_owner.ts +9 -0
  538. package/evm/abi/stargateFeeLibraryV03Abi/stargateFeeLibraryV03Abi_renounceOwnership.ts +9 -0
  539. package/evm/abi/stargateFeeLibraryV03Abi/stargateFeeLibraryV03Abi_transferOwnership.ts +9 -0
  540. package/evm/abi/stargatePoolAbi/index.ts +61 -0
  541. package/evm/abi/stargatePoolAbi/stargatePoolAbi_BP_DENOMINATOR.ts +9 -0
  542. package/evm/abi/stargatePoolAbi/stargatePoolAbi_DOMAIN_SEPARATOR.ts +9 -0
  543. package/evm/abi/stargatePoolAbi/stargatePoolAbi_PERMIT_TYPEHASH.ts +9 -0
  544. package/evm/abi/stargatePoolAbi/stargatePoolAbi_activateChainPath.ts +12 -0
  545. package/evm/abi/stargatePoolAbi/stargatePoolAbi_allowance.ts +12 -0
  546. package/evm/abi/stargatePoolAbi/stargatePoolAbi_amountLPtoLD.ts +9 -0
  547. package/evm/abi/stargatePoolAbi/stargatePoolAbi_approve.ts +12 -0
  548. package/evm/abi/stargatePoolAbi/stargatePoolAbi_balanceOf.ts +9 -0
  549. package/evm/abi/stargatePoolAbi/stargatePoolAbi_batched.ts +9 -0
  550. package/evm/abi/stargatePoolAbi/stargatePoolAbi_callDelta.ts +9 -0
  551. package/evm/abi/stargatePoolAbi/stargatePoolAbi_chainPathIndexLookup.ts +12 -0
  552. package/evm/abi/stargatePoolAbi/stargatePoolAbi_chainPaths.ts +18 -0
  553. package/evm/abi/stargatePoolAbi/stargatePoolAbi_convertRate.ts +9 -0
  554. package/evm/abi/stargatePoolAbi/stargatePoolAbi_createChainPath.ts +13 -0
  555. package/evm/abi/stargatePoolAbi/stargatePoolAbi_creditChainPath.ts +21 -0
  556. package/evm/abi/stargatePoolAbi/stargatePoolAbi_decimals.ts +9 -0
  557. package/evm/abi/stargatePoolAbi/stargatePoolAbi_decreaseAllowance.ts +12 -0
  558. package/evm/abi/stargatePoolAbi/stargatePoolAbi_defaultLPMode.ts +9 -0
  559. package/evm/abi/stargatePoolAbi/stargatePoolAbi_defaultSwapMode.ts +9 -0
  560. package/evm/abi/stargatePoolAbi/stargatePoolAbi_deltaCredit.ts +9 -0
  561. package/evm/abi/stargatePoolAbi/stargatePoolAbi_eqFeePool.ts +9 -0
  562. package/evm/abi/stargatePoolAbi/stargatePoolAbi_feeLibrary.ts +9 -0
  563. package/evm/abi/stargatePoolAbi/stargatePoolAbi_getChainPath.ts +28 -0
  564. package/evm/abi/stargatePoolAbi/stargatePoolAbi_getChainPathsLength.ts +9 -0
  565. package/evm/abi/stargatePoolAbi/stargatePoolAbi_increaseAllowance.ts +12 -0
  566. package/evm/abi/stargatePoolAbi/stargatePoolAbi_instantRedeemLocal.ts +13 -0
  567. package/evm/abi/stargatePoolAbi/stargatePoolAbi_localDecimals.ts +9 -0
  568. package/evm/abi/stargatePoolAbi/stargatePoolAbi_lpDeltaBP.ts +9 -0
  569. package/evm/abi/stargatePoolAbi/stargatePoolAbi_mint.ts +12 -0
  570. package/evm/abi/stargatePoolAbi/stargatePoolAbi_mintFeeBP.ts +9 -0
  571. package/evm/abi/stargatePoolAbi/stargatePoolAbi_mintFeeBalance.ts +9 -0
  572. package/evm/abi/stargatePoolAbi/stargatePoolAbi_name.ts +9 -0
  573. package/evm/abi/stargatePoolAbi/stargatePoolAbi_nonces.ts +9 -0
  574. package/evm/abi/stargatePoolAbi/stargatePoolAbi_permit.ts +17 -0
  575. package/evm/abi/stargatePoolAbi/stargatePoolAbi_poolId.ts +9 -0
  576. package/evm/abi/stargatePoolAbi/stargatePoolAbi_protocolFeeBalance.ts +9 -0
  577. package/evm/abi/stargatePoolAbi/stargatePoolAbi_redeemLocal.ts +15 -0
  578. package/evm/abi/stargatePoolAbi/stargatePoolAbi_redeemLocalCallback.ts +15 -0
  579. package/evm/abi/stargatePoolAbi/stargatePoolAbi_redeemLocalCheckOnRemote.ts +16 -0
  580. package/evm/abi/stargatePoolAbi/stargatePoolAbi_redeemRemote.ts +14 -0
  581. package/evm/abi/stargatePoolAbi/stargatePoolAbi_router.ts +9 -0
  582. package/evm/abi/stargatePoolAbi/stargatePoolAbi_sendCredits.ts +22 -0
  583. package/evm/abi/stargatePoolAbi/stargatePoolAbi_setDeltaParam.ts +15 -0
  584. package/evm/abi/stargatePoolAbi/stargatePoolAbi_setFee.ts +9 -0
  585. package/evm/abi/stargatePoolAbi/stargatePoolAbi_setFeeLibrary.ts +11 -0
  586. package/evm/abi/stargatePoolAbi/stargatePoolAbi_setSwapStop.ts +9 -0
  587. package/evm/abi/stargatePoolAbi/stargatePoolAbi_setWeightForChainPath.ts +13 -0
  588. package/evm/abi/stargatePoolAbi/stargatePoolAbi_sharedDecimals.ts +9 -0
  589. package/evm/abi/stargatePoolAbi/stargatePoolAbi_stopSwap.ts +9 -0
  590. package/evm/abi/stargatePoolAbi/stargatePoolAbi_swap.ts +30 -0
  591. package/evm/abi/stargatePoolAbi/stargatePoolAbi_swapDeltaBP.ts +9 -0
  592. package/evm/abi/stargatePoolAbi/stargatePoolAbi_swapRemote.ts +26 -0
  593. package/evm/abi/stargatePoolAbi/stargatePoolAbi_symbol.ts +9 -0
  594. package/evm/abi/stargatePoolAbi/stargatePoolAbi_token.ts +9 -0
  595. package/evm/abi/stargatePoolAbi/stargatePoolAbi_totalLiquidity.ts +9 -0
  596. package/evm/abi/stargatePoolAbi/stargatePoolAbi_totalSupply.ts +9 -0
  597. package/evm/abi/stargatePoolAbi/stargatePoolAbi_totalWeight.ts +9 -0
  598. package/evm/abi/stargatePoolAbi/stargatePoolAbi_transfer.ts +12 -0
  599. package/evm/abi/stargatePoolAbi/stargatePoolAbi_transferFrom.ts +13 -0
  600. package/evm/abi/stargatePoolAbi/stargatePoolAbi_withdrawMintFeeBalance.ts +9 -0
  601. package/evm/abi/stargatePoolAbi/stargatePoolAbi_withdrawProtocolFeeBalance.ts +9 -0
  602. package/evm/abi/sushiSwapV2FactoryAbi/index.ts +11 -0
  603. package/evm/abi/sushiSwapV2FactoryAbi/sushiSwapV2FactoryAbi_allPairs.ts +9 -0
  604. package/evm/abi/sushiSwapV2FactoryAbi/sushiSwapV2FactoryAbi_allPairsLength.ts +9 -0
  605. package/evm/abi/sushiSwapV2FactoryAbi/sushiSwapV2FactoryAbi_createPair.ts +12 -0
  606. package/evm/abi/sushiSwapV2FactoryAbi/sushiSwapV2FactoryAbi_feeTo.ts +9 -0
  607. package/evm/abi/sushiSwapV2FactoryAbi/sushiSwapV2FactoryAbi_feeToSetter.ts +9 -0
  608. package/evm/abi/sushiSwapV2FactoryAbi/sushiSwapV2FactoryAbi_getPair.ts +12 -0
  609. package/evm/abi/sushiSwapV2FactoryAbi/sushiSwapV2FactoryAbi_migrator.ts +9 -0
  610. package/evm/abi/sushiSwapV2FactoryAbi/sushiSwapV2FactoryAbi_pairCodeHash.ts +9 -0
  611. package/evm/abi/sushiSwapV2FactoryAbi/sushiSwapV2FactoryAbi_setFeeTo.ts +9 -0
  612. package/evm/abi/sushiSwapV2FactoryAbi/sushiSwapV2FactoryAbi_setFeeToSetter.ts +11 -0
  613. package/evm/abi/sushiSwapV2FactoryAbi/sushiSwapV2FactoryAbi_setMigrator.ts +9 -0
  614. package/evm/abi/sushiV3FactoryAbi/index.ts +7 -0
  615. package/evm/abi/sushiV3FactoryAbi/sushiV3FactoryAbi_createPool.ts +13 -0
  616. package/evm/abi/sushiV3FactoryAbi/sushiV3FactoryAbi_enableFeeAmount.ts +12 -0
  617. package/evm/abi/sushiV3FactoryAbi/sushiV3FactoryAbi_feeAmountTickSpacing.ts +9 -0
  618. package/evm/abi/sushiV3FactoryAbi/sushiV3FactoryAbi_getPool.ts +13 -0
  619. package/evm/abi/sushiV3FactoryAbi/sushiV3FactoryAbi_owner.ts +9 -0
  620. package/evm/abi/sushiV3FactoryAbi/sushiV3FactoryAbi_parameters.ts +15 -0
  621. package/evm/abi/sushiV3FactoryAbi/sushiV3FactoryAbi_setOwner.ts +9 -0
  622. package/evm/abi/sushiV3PoolAbi/index.ts +26 -0
  623. package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_burn.ts +16 -0
  624. package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_collect.ts +18 -0
  625. package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_collectProtocol.ts +16 -0
  626. package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_factory.ts +9 -0
  627. package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_fee.ts +9 -0
  628. package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_feeGrowthGlobal0X128.ts +9 -0
  629. package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_feeGrowthGlobal1X128.ts +9 -0
  630. package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_flash.ts +14 -0
  631. package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_increaseObservationCardinalityNext.ts +15 -0
  632. package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_initialize.ts +11 -0
  633. package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_liquidity.ts +9 -0
  634. package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_maxLiquidityPerTick.ts +9 -0
  635. package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_mint.ts +18 -0
  636. package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_observations.ts +18 -0
  637. package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_observe.ts +18 -0
  638. package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_positions.ts +23 -0
  639. package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_protocolFees.ts +12 -0
  640. package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_setFeeProtocol.ts +12 -0
  641. package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_slot0.ts +25 -0
  642. package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_snapshotCumulativesInside.ts +20 -0
  643. package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_swap.ts +18 -0
  644. package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_tickBitmap.ts +9 -0
  645. package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_tickSpacing.ts +9 -0
  646. package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_ticks.ts +30 -0
  647. package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_token0.ts +9 -0
  648. package/evm/abi/sushiV3PoolAbi/sushiV3PoolAbi_token1.ts +9 -0
  649. package/evm/abi/sushiXSwap2Abi/index.ts +17 -0
  650. package/evm/abi/sushiXSwap2Abi/sushiXSwap2Abi_approvedAdapters.ts +9 -0
  651. package/evm/abi/sushiXSwap2Abi/sushiXSwap2Abi_bridge.ts +26 -0
  652. package/evm/abi/sushiXSwap2Abi/sushiXSwap2Abi_multicall.ts +9 -0
  653. package/evm/abi/sushiXSwap2Abi/sushiXSwap2Abi_owner.ts +9 -0
  654. package/evm/abi/sushiXSwap2Abi/sushiXSwap2Abi_pause.ts +9 -0
  655. package/evm/abi/sushiXSwap2Abi/sushiXSwap2Abi_renounceOwnership.ts +9 -0
  656. package/evm/abi/sushiXSwap2Abi/sushiXSwap2Abi_rescueTokens.ts +12 -0
  657. package/evm/abi/sushiXSwap2Abi/sushiXSwap2Abi_resume.ts +9 -0
  658. package/evm/abi/sushiXSwap2Abi/sushiXSwap2Abi_rp.ts +11 -0
  659. package/evm/abi/sushiXSwap2Abi/sushiXSwap2Abi_sendMessage.ts +12 -0
  660. package/evm/abi/sushiXSwap2Abi/sushiXSwap2Abi_setPrivileged.ts +12 -0
  661. package/evm/abi/sushiXSwap2Abi/sushiXSwap2Abi_swap.ts +9 -0
  662. package/evm/abi/sushiXSwap2Abi/sushiXSwap2Abi_swapAndBridge.ts +27 -0
  663. package/evm/abi/sushiXSwap2Abi/sushiXSwap2Abi_transferOwnership.ts +9 -0
  664. package/evm/abi/sushiXSwap2Abi/sushiXSwap2Abi_updateAdapterStatus.ts +12 -0
  665. package/evm/abi/sushiXSwap2Abi/sushiXSwap2Abi_updateRouteProcessor.ts +11 -0
  666. package/evm/abi/sushiXSwap2Abi/sushiXSwap2Abi_weth.ts +9 -0
  667. package/evm/abi/sushiXSwapAbi/index.ts +9 -0
  668. package/evm/abi/sushiXSwapAbi/sushiXSwapAbi_approveToStargateRouter.ts +11 -0
  669. package/evm/abi/sushiXSwapAbi/sushiXSwapAbi_bentoBox.ts +11 -0
  670. package/evm/abi/sushiXSwapAbi/sushiXSwapAbi_cook.ts +13 -0
  671. package/evm/abi/sushiXSwapAbi/sushiXSwapAbi_factory.ts +9 -0
  672. package/evm/abi/sushiXSwapAbi/sushiXSwapAbi_getFee.ts +19 -0
  673. package/evm/abi/sushiXSwapAbi/sushiXSwapAbi_pairCodeHash.ts +9 -0
  674. package/evm/abi/sushiXSwapAbi/sushiXSwapAbi_sgReceive.ts +16 -0
  675. package/evm/abi/sushiXSwapAbi/sushiXSwapAbi_stargateRouter.ts +11 -0
  676. package/evm/abi/sushiXSwapAbi/sushiXSwapAbi_stargateWidget.ts +11 -0
  677. package/evm/abi/swapFeeAbi/index.ts +1 -0
  678. package/evm/abi/swapFeeAbi/swapFeeAbi_swapFee.ts +9 -0
  679. package/evm/abi/tickLensAbi/index.ts +1 -0
  680. package/evm/abi/tickLensAbi/tickLensAbi_getPopulatedTicksInWord.ts +23 -0
  681. package/evm/abi/totalsAbi/index.ts +1 -0
  682. package/evm/abi/totalsAbi/totalsAbi_totals.ts +12 -0
  683. package/evm/abi/tridentConstantPoolAbi/index.ts +36 -0
  684. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_DOMAIN_SEPARATOR.ts +9 -0
  685. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_PERMIT_TYPEHASH.ts +9 -0
  686. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_allowance.ts +12 -0
  687. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_approve.ts +12 -0
  688. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_balanceOf.ts +9 -0
  689. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_barFee.ts +9 -0
  690. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_barFeeTo.ts +9 -0
  691. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_bento.ts +11 -0
  692. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_burn.ts +19 -0
  693. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_burnSingle.ts +9 -0
  694. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_decimals.ts +9 -0
  695. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_factory.ts +9 -0
  696. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_flashSwap.ts +9 -0
  697. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_getAmountIn.ts +11 -0
  698. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_getAmountOut.ts +11 -0
  699. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_getAssets.ts +9 -0
  700. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_getNativeReserves.ts +13 -0
  701. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_getReserves.ts +13 -0
  702. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_kLast.ts +9 -0
  703. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_masterDeployer.ts +11 -0
  704. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_mint.ts +9 -0
  705. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_name.ts +9 -0
  706. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_nonces.ts +9 -0
  707. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_permit.ts +17 -0
  708. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_poolIdentifier.ts +9 -0
  709. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_price0CumulativeLast.ts +9 -0
  710. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_price1CumulativeLast.ts +9 -0
  711. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_swap.ts +9 -0
  712. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_swapFee.ts +9 -0
  713. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_symbol.ts +9 -0
  714. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_token0.ts +9 -0
  715. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_token1.ts +9 -0
  716. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_totalSupply.ts +9 -0
  717. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_transfer.ts +12 -0
  718. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_transferFrom.ts +13 -0
  719. package/evm/abi/tridentConstantPoolAbi/tridentConstantPoolAbi_updateBarParameters.ts +9 -0
  720. package/evm/abi/tridentConstantPoolFactoryAbi/index.ts +9 -0
  721. package/evm/abi/tridentConstantPoolFactoryAbi/tridentConstantPoolFactoryAbi_bytecodeHash.ts +9 -0
  722. package/evm/abi/tridentConstantPoolFactoryAbi/tridentConstantPoolFactoryAbi_calculatePoolAddress.ts +14 -0
  723. package/evm/abi/tridentConstantPoolFactoryAbi/tridentConstantPoolFactoryAbi_configAddress.ts +9 -0
  724. package/evm/abi/tridentConstantPoolFactoryAbi/tridentConstantPoolFactoryAbi_deployPool.ts +9 -0
  725. package/evm/abi/tridentConstantPoolFactoryAbi/tridentConstantPoolFactoryAbi_getDeployData.ts +12 -0
  726. package/evm/abi/tridentConstantPoolFactoryAbi/tridentConstantPoolFactoryAbi_getPools.ts +16 -0
  727. package/evm/abi/tridentConstantPoolFactoryAbi/tridentConstantPoolFactoryAbi_masterDeployer.ts +9 -0
  728. package/evm/abi/tridentConstantPoolFactoryAbi/tridentConstantPoolFactoryAbi_pools.ts +13 -0
  729. package/evm/abi/tridentConstantPoolFactoryAbi/tridentConstantPoolFactoryAbi_poolsCount.ts +12 -0
  730. package/evm/abi/tridentGetPoolsAbi/index.ts +1 -0
  731. package/evm/abi/tridentGetPoolsAbi/tridentGetPoolsAbi_getPools.ts +16 -0
  732. package/evm/abi/tridentPoolsCountAbi/index.ts +1 -0
  733. package/evm/abi/tridentPoolsCountAbi/tridentPoolsCountAbi_poolsCount.ts +12 -0
  734. package/evm/abi/tridentRouterAbi/index.ts +20 -0
  735. package/evm/abi/tridentRouterAbi/tridentRouterAbi_addLiquidity.ts +23 -0
  736. package/evm/abi/tridentRouterAbi/tridentRouterAbi_approveMasterContract.ts +13 -0
  737. package/evm/abi/tridentRouterAbi/tridentRouterAbi_bento.ts +11 -0
  738. package/evm/abi/tridentRouterAbi/tridentRouterAbi_burnLiquidity.ts +22 -0
  739. package/evm/abi/tridentRouterAbi/tridentRouterAbi_burnLiquiditySingle.ts +14 -0
  740. package/evm/abi/tridentRouterAbi/tridentRouterAbi_complexPath.ts +55 -0
  741. package/evm/abi/tridentRouterAbi/tridentRouterAbi_deployPool.ts +12 -0
  742. package/evm/abi/tridentRouterAbi/tridentRouterAbi_exactInput.ts +33 -0
  743. package/evm/abi/tridentRouterAbi/tridentRouterAbi_exactInputSingle.ts +26 -0
  744. package/evm/abi/tridentRouterAbi/tridentRouterAbi_exactInputSingleWithNativeToken.ts +26 -0
  745. package/evm/abi/tridentRouterAbi/tridentRouterAbi_exactInputWithNativeToken.ts +33 -0
  746. package/evm/abi/tridentRouterAbi/tridentRouterAbi_harvest.ts +12 -0
  747. package/evm/abi/tridentRouterAbi/tridentRouterAbi_masterDeployer.ts +11 -0
  748. package/evm/abi/tridentRouterAbi/tridentRouterAbi_multicall.ts +9 -0
  749. package/evm/abi/tridentRouterAbi/tridentRouterAbi_selfPermit.ts +16 -0
  750. package/evm/abi/tridentRouterAbi/tridentRouterAbi_selfPermitAllowed.ts +16 -0
  751. package/evm/abi/tridentRouterAbi/tridentRouterAbi_selfPermitAllowedIfNecessary.ts +16 -0
  752. package/evm/abi/tridentRouterAbi/tridentRouterAbi_selfPermitIfNecessary.ts +16 -0
  753. package/evm/abi/tridentRouterAbi/tridentRouterAbi_sweep.ts +13 -0
  754. package/evm/abi/tridentRouterAbi/tridentRouterAbi_unwrapWETH.ts +9 -0
  755. package/evm/abi/tridentStablePoolFactoryAbi/index.ts +9 -0
  756. package/evm/abi/tridentStablePoolFactoryAbi/tridentStablePoolFactoryAbi_bytecodeHash.ts +9 -0
  757. package/evm/abi/tridentStablePoolFactoryAbi/tridentStablePoolFactoryAbi_calculatePoolAddress.ts +13 -0
  758. package/evm/abi/tridentStablePoolFactoryAbi/tridentStablePoolFactoryAbi_configAddress.ts +9 -0
  759. package/evm/abi/tridentStablePoolFactoryAbi/tridentStablePoolFactoryAbi_deployPool.ts +9 -0
  760. package/evm/abi/tridentStablePoolFactoryAbi/tridentStablePoolFactoryAbi_getDeployData.ts +12 -0
  761. package/evm/abi/tridentStablePoolFactoryAbi/tridentStablePoolFactoryAbi_getPools.ts +16 -0
  762. package/evm/abi/tridentStablePoolFactoryAbi/tridentStablePoolFactoryAbi_masterDeployer.ts +9 -0
  763. package/evm/abi/tridentStablePoolFactoryAbi/tridentStablePoolFactoryAbi_pools.ts +13 -0
  764. package/evm/abi/tridentStablePoolFactoryAbi/tridentStablePoolFactoryAbi_poolsCount.ts +12 -0
  765. package/evm/abi/tridentSwapFeeAbi/index.ts +1 -0
  766. package/evm/abi/tridentSwapFeeAbi/tridentSwapFeeAbi_swapFee.ts +9 -0
  767. package/evm/abi/uniswapV2PairAbi/index.ts +27 -0
  768. package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_DOMAIN_SEPARATOR.ts +11 -0
  769. package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_MINIMUM_LIQUIDITY.ts +11 -0
  770. package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_PERMIT_TYPEHASH.ts +11 -0
  771. package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_allowance.ts +14 -0
  772. package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_approve.ts +14 -0
  773. package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_balanceOf.ts +11 -0
  774. package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_burn.ts +14 -0
  775. package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_decimals.ts +11 -0
  776. package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_factory.ts +11 -0
  777. package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_getReserves.ts +15 -0
  778. package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_initialize.ts +14 -0
  779. package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_kLast.ts +11 -0
  780. package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_mint.ts +11 -0
  781. package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_name.ts +11 -0
  782. package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_nonces.ts +11 -0
  783. package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_permit.ts +19 -0
  784. package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_price0CumulativeLast.ts +11 -0
  785. package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_price1CumulativeLast.ts +11 -0
  786. package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_skim.ts +11 -0
  787. package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_swap.ts +16 -0
  788. package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_symbol.ts +11 -0
  789. package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_sync.ts +11 -0
  790. package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_token0.ts +11 -0
  791. package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_token1.ts +11 -0
  792. package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_totalSupply.ts +11 -0
  793. package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_transfer.ts +14 -0
  794. package/evm/abi/uniswapV2PairAbi/uniswapV2PairAbi_transferFrom.ts +15 -0
  795. package/evm/abi/uniswapV2RouterAbi/index.ts +25 -0
  796. package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi.ts +356 -0
  797. package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_WETH.ts +9 -0
  798. package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_addLiquidity.ts +22 -0
  799. package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_addLiquidityETH.ts +20 -0
  800. package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_factory.ts +9 -0
  801. package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_getAmountIn.ts +13 -0
  802. package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_getAmountOut.ts +13 -0
  803. package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_getAmountsIn.ts +14 -0
  804. package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_getAmountsOut.ts +14 -0
  805. package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_quote.ts +13 -0
  806. package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_removeLiquidity.ts +20 -0
  807. package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_removeLiquidityETH.ts +19 -0
  808. package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_removeLiquidityETHSupportingFeeOnTransferTokens.ts +19 -0
  809. package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_removeLiquidityETHWithPermit.ts +23 -0
  810. package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_removeLiquidityETHWithPermitSupportingFeeOnTransferTokens.ts +23 -0
  811. package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_removeLiquidityWithPermit.ts +24 -0
  812. package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_swapETHForExactTokens.ts +16 -0
  813. package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_swapExactETHForTokens.ts +16 -0
  814. package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_swapExactETHForTokensSupportingFeeOnTransferTokens.ts +15 -0
  815. package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_swapExactTokensForETH.ts +17 -0
  816. package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_swapExactTokensForETHSupportingFeeOnTransferTokens.ts +16 -0
  817. package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_swapExactTokensForTokens.ts +17 -0
  818. package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_swapExactTokensForTokensSupportingFeeOnTransferTokens.ts +16 -0
  819. package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_swapTokensForExactETH.ts +17 -0
  820. package/evm/abi/uniswapV2RouterAbi/uniswapV2RouterAbi_swapTokensForExactTokens.ts +17 -0
  821. package/evm/abi/uniswapV3FactoryAbi/index.ts +7 -0
  822. package/evm/abi/uniswapV3FactoryAbi/uniswapV3FactoryAbi_createPool.ts +13 -0
  823. package/evm/abi/uniswapV3FactoryAbi/uniswapV3FactoryAbi_enableFeeAmount.ts +12 -0
  824. package/evm/abi/uniswapV3FactoryAbi/uniswapV3FactoryAbi_feeAmountTickSpacing.ts +9 -0
  825. package/evm/abi/uniswapV3FactoryAbi/uniswapV3FactoryAbi_getPool.ts +13 -0
  826. package/evm/abi/uniswapV3FactoryAbi/uniswapV3FactoryAbi_owner.ts +9 -0
  827. package/evm/abi/uniswapV3FactoryAbi/uniswapV3FactoryAbi_parameters.ts +15 -0
  828. package/evm/abi/uniswapV3FactoryAbi/uniswapV3FactoryAbi_setOwner.ts +9 -0
  829. package/evm/abi/uniswapV3PoolAbi/index.ts +26 -0
  830. package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_burn.ts +16 -0
  831. package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_collect.ts +18 -0
  832. package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_collectProtocol.ts +16 -0
  833. package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_factory.ts +9 -0
  834. package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_fee.ts +9 -0
  835. package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_feeGrowthGlobal0X128.ts +9 -0
  836. package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_feeGrowthGlobal1X128.ts +9 -0
  837. package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_flash.ts +14 -0
  838. package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_increaseObservationCardinalityNext.ts +15 -0
  839. package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_initialize.ts +11 -0
  840. package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_liquidity.ts +9 -0
  841. package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_maxLiquidityPerTick.ts +9 -0
  842. package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_mint.ts +18 -0
  843. package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_observations.ts +18 -0
  844. package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_observe.ts +18 -0
  845. package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_positions.ts +23 -0
  846. package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_protocolFees.ts +12 -0
  847. package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_setFeeProtocol.ts +12 -0
  848. package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_slot0.ts +25 -0
  849. package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_snapshotCumulativesInside.ts +20 -0
  850. package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_swap.ts +18 -0
  851. package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_tickBitmap.ts +9 -0
  852. package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_tickSpacing.ts +9 -0
  853. package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_ticks.ts +30 -0
  854. package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_token0.ts +9 -0
  855. package/evm/abi/uniswapV3PoolAbi/uniswapV3PoolAbi_token1.ts +9 -0
  856. package/evm/abi/v3baseAbi/index.ts +4 -0
  857. package/evm/abi/v3baseAbi/v3baseAbi_fee.ts +9 -0
  858. package/evm/abi/v3baseAbi/v3baseAbi_liquidity.ts +9 -0
  859. package/evm/abi/v3baseAbi/v3baseAbi_token0.ts +9 -0
  860. package/evm/abi/v3baseAbi/v3baseAbi_token1.ts +9 -0
  861. package/evm/abi/weth9Abi/index.ts +11 -0
  862. package/evm/abi/weth9Abi/weth9Abi_allowance.ts +14 -0
  863. package/evm/abi/weth9Abi/weth9Abi_approve.ts +14 -0
  864. package/evm/abi/weth9Abi/weth9Abi_balanceOf.ts +11 -0
  865. package/evm/abi/weth9Abi/weth9Abi_decimals.ts +11 -0
  866. package/evm/abi/weth9Abi/weth9Abi_deposit.ts +11 -0
  867. package/evm/abi/weth9Abi/weth9Abi_name.ts +11 -0
  868. package/evm/abi/weth9Abi/weth9Abi_symbol.ts +11 -0
  869. package/evm/abi/weth9Abi/weth9Abi_totalSupply.ts +11 -0
  870. package/evm/abi/weth9Abi/weth9Abi_transfer.ts +14 -0
  871. package/evm/abi/weth9Abi/weth9Abi_transferFrom.ts +15 -0
  872. package/evm/abi/weth9Abi/weth9Abi_withdraw.ts +11 -0
  873. package/evm/abi/xsushiAbi/index.ts +14 -0
  874. package/evm/abi/xsushiAbi/xsushiAbi_allowance.ts +12 -0
  875. package/evm/abi/xsushiAbi/xsushiAbi_approve.ts +12 -0
  876. package/evm/abi/xsushiAbi/xsushiAbi_balanceOf.ts +9 -0
  877. package/evm/abi/xsushiAbi/xsushiAbi_decimals.ts +9 -0
  878. package/evm/abi/xsushiAbi/xsushiAbi_decreaseAllowance.ts +12 -0
  879. package/evm/abi/xsushiAbi/xsushiAbi_enter.ts +9 -0
  880. package/evm/abi/xsushiAbi/xsushiAbi_increaseAllowance.ts +12 -0
  881. package/evm/abi/xsushiAbi/xsushiAbi_leave.ts +9 -0
  882. package/evm/abi/xsushiAbi/xsushiAbi_name.ts +9 -0
  883. package/evm/abi/xsushiAbi/xsushiAbi_sushi.ts +9 -0
  884. package/evm/abi/xsushiAbi/xsushiAbi_symbol.ts +9 -0
  885. package/evm/abi/xsushiAbi/xsushiAbi_totalSupply.ts +9 -0
  886. package/evm/abi/xsushiAbi/xsushiAbi_transfer.ts +12 -0
  887. package/evm/abi/xsushiAbi/xsushiAbi_transferFrom.ts +13 -0
  888. package/evm/api/config.ts +23 -0
  889. package/evm/api/index.ts +3 -0
  890. package/evm/api/price.test.ts +17 -0
  891. package/evm/api/price.ts +19 -0
  892. package/evm/api/quote.test.ts +42 -0
  893. package/evm/api/quote.ts +136 -0
  894. package/evm/api/swap.test.ts +48 -0
  895. package/evm/api/swap.ts +156 -0
  896. package/evm/api/types.ts +15 -0
  897. package/evm/chain/chains.ts +552 -0
  898. package/evm/chain/define-chain.ts +168 -0
  899. package/evm/chain/index.ts +2 -0
  900. package/evm/config/drpc.ts +88 -0
  901. package/evm/config/features/aggregator.ts +20 -0
  902. package/evm/config/features/blade.ts +17 -0
  903. package/evm/config/features/extractor.ts +53 -0
  904. package/evm/config/features/fee-collector.ts +196 -0
  905. package/evm/config/features/index.ts +18 -0
  906. package/evm/config/features/master-chef.ts +13 -0
  907. package/evm/config/features/merkl.ts +28 -0
  908. package/evm/config/features/mini-chef.ts +42 -0
  909. package/evm/config/features/operations-multisig.ts +90 -0
  910. package/evm/config/features/pancakeswap-v2.ts +57 -0
  911. package/evm/config/features/pancakeswap-v3.ts +89 -0
  912. package/evm/config/features/red-snwapper.ts +100 -0
  913. package/evm/config/features/route-processor.ts +324 -0
  914. package/evm/config/features/sushiswap-v2.ts +217 -0
  915. package/evm/config/features/sushiswap-v3.ts +240 -0
  916. package/evm/config/features/sushiswap.ts +23 -0
  917. package/evm/config/features/token-security.ts +31 -0
  918. package/evm/config/features/uniswap-v2.ts +35 -0
  919. package/evm/config/features/uniswap-v3.test.ts +23 -0
  920. package/evm/config/features/uniswap-v3.ts +124 -0
  921. package/evm/config/index.ts +4 -0
  922. package/evm/config/simple-constants.ts +5 -0
  923. package/evm/config/subgraphs/get-subgraph-url.ts +109 -0
  924. package/evm/config/subgraphs/hosts.ts +36 -0
  925. package/evm/config/subgraphs/index.ts +4 -0
  926. package/evm/config/subgraphs/max-first.ts +11 -0
  927. package/evm/config/subgraphs/seconds-between-blocks.ts +23 -0
  928. package/evm/config/subgraphs/subgraph-url.test.ts +32 -0
  929. package/evm/config/subgraphs/subgraphs/blade.ts +46 -0
  930. package/evm/config/subgraphs/subgraphs/blocks.ts +71 -0
  931. package/evm/config/subgraphs/subgraphs/data-api.ts +3 -0
  932. package/evm/config/subgraphs/subgraphs/index.ts +9 -0
  933. package/evm/config/subgraphs/subgraphs/master-chef-v1.ts +12 -0
  934. package/evm/config/subgraphs/subgraphs/master-chef-v2.ts +12 -0
  935. package/evm/config/subgraphs/subgraphs/mini-chef.ts +28 -0
  936. package/evm/config/subgraphs/subgraphs/sushi-bar.ts +12 -0
  937. package/evm/config/subgraphs/subgraphs/sushiswap-v2.ts +77 -0
  938. package/evm/config/subgraphs/subgraphs/sushiswap-v3.ts +78 -0
  939. package/evm/config/tokens/address-map-to-token-map.ts +33 -0
  940. package/evm/config/tokens/index.ts +3 -0
  941. package/evm/config/tokens/token-maps/additional-bases.ts +203 -0
  942. package/evm/config/tokens/token-maps/bases-to-check-trades-against.ts +613 -0
  943. package/evm/config/tokens/token-maps/custom-bases.ts +18 -0
  944. package/evm/config/tokens/token-maps/default-bases.ts +419 -0
  945. package/evm/config/tokens/token-maps/default-quote.ts +80 -0
  946. package/evm/config/tokens/token-maps/index.ts +8 -0
  947. package/evm/config/tokens/token-maps/lsds.ts +381 -0
  948. package/evm/config/tokens/token-maps/short-name-to-currency.ts +302 -0
  949. package/evm/config/tokens/token-maps/stables.ts +260 -0
  950. package/evm/config/tokens/tokens/AAVE.ts +21 -0
  951. package/evm/config/tokens/tokens/AERO.ts +11 -0
  952. package/evm/config/tokens/tokens/AGEUR.ts +22 -0
  953. package/evm/config/tokens/tokens/AMPL.ts +11 -0
  954. package/evm/config/tokens/tokens/ANKR.ts +15 -0
  955. package/evm/config/tokens/tokens/APE.ts +15 -0
  956. package/evm/config/tokens/tokens/ARB.ts +17 -0
  957. package/evm/config/tokens/tokens/AUSD.ts +16 -0
  958. package/evm/config/tokens/tokens/BAL.ts +15 -0
  959. package/evm/config/tokens/tokens/BCT.ts +15 -0
  960. package/evm/config/tokens/tokens/BUSD.ts +16 -0
  961. package/evm/config/tokens/tokens/COMP.ts +15 -0
  962. package/evm/config/tokens/tokens/CRV.ts +18 -0
  963. package/evm/config/tokens/tokens/DAI.ts +37 -0
  964. package/evm/config/tokens/tokens/DOC.ts +11 -0
  965. package/evm/config/tokens/tokens/ENJ.ts +16 -0
  966. package/evm/config/tokens/tokens/FEI.ts +15 -0
  967. package/evm/config/tokens/tokens/FRAX.ts +24 -0
  968. package/evm/config/tokens/tokens/FXS.ts +23 -0
  969. package/evm/config/tokens/tokens/GALA.ts +15 -0
  970. package/evm/config/tokens/tokens/GNO.ts +15 -0
  971. package/evm/config/tokens/tokens/GNS.ts +15 -0
  972. package/evm/config/tokens/tokens/GRT.ts +15 -0
  973. package/evm/config/tokens/tokens/GUSD.ts +11 -0
  974. package/evm/config/tokens/tokens/JPY.ts +18 -0
  975. package/evm/config/tokens/tokens/JUGNI.ts +15 -0
  976. package/evm/config/tokens/tokens/KLIMA.ts +15 -0
  977. package/evm/config/tokens/tokens/KNCv2.ts +15 -0
  978. package/evm/config/tokens/tokens/KP3R.ts +15 -0
  979. package/evm/config/tokens/tokens/LDO.ts +15 -0
  980. package/evm/config/tokens/tokens/LINK.ts +22 -0
  981. package/evm/config/tokens/tokens/LUSD.ts +16 -0
  982. package/evm/config/tokens/tokens/MAI.ts +27 -0
  983. package/evm/config/tokens/tokens/MANA.ts +15 -0
  984. package/evm/config/tokens/tokens/MATIC.ts +15 -0
  985. package/evm/config/tokens/tokens/METH.ts +16 -0
  986. package/evm/config/tokens/tokens/MIM.ts +20 -0
  987. package/evm/config/tokens/tokens/MKR.ts +18 -0
  988. package/evm/config/tokens/tokens/NFTX.ts +15 -0
  989. package/evm/config/tokens/tokens/OCEAN.ts +15 -0
  990. package/evm/config/tokens/tokens/OHM.ts +15 -0
  991. package/evm/config/tokens/tokens/OP.ts +15 -0
  992. package/evm/config/tokens/tokens/OPTICS_USDC.ts +15 -0
  993. package/evm/config/tokens/tokens/PRIMATE.ts +15 -0
  994. package/evm/config/tokens/tokens/QUICK.ts +15 -0
  995. package/evm/config/tokens/tokens/RBTC.ts +15 -0
  996. package/evm/config/tokens/tokens/RNDR.ts +15 -0
  997. package/evm/config/tokens/tokens/SAND.ts +15 -0
  998. package/evm/config/tokens/tokens/SGETH.ts +19 -0
  999. package/evm/config/tokens/tokens/SGUSDC.ts +19 -0
  1000. package/evm/config/tokens/tokens/SKL.ts +11 -0
  1001. package/evm/config/tokens/tokens/SNX.ts +20 -0
  1002. package/evm/config/tokens/tokens/STG.ts +15 -0
  1003. package/evm/config/tokens/tokens/STONE.ts +15 -0
  1004. package/evm/config/tokens/tokens/SUSHI.ts +30 -0
  1005. package/evm/config/tokens/tokens/SWISE.ts +15 -0
  1006. package/evm/config/tokens/tokens/SolvBTC.ts +16 -0
  1007. package/evm/config/tokens/tokens/TEL.ts +15 -0
  1008. package/evm/config/tokens/tokens/TRIBE.ts +15 -0
  1009. package/evm/config/tokens/tokens/TUSD.ts +15 -0
  1010. package/evm/config/tokens/tokens/UNI.ts +22 -0
  1011. package/evm/config/tokens/tokens/USDB.ts +15 -0
  1012. package/evm/config/tokens/tokens/USDC.ts +89 -0
  1013. package/evm/config/tokens/tokens/USDP.ts +15 -0
  1014. package/evm/config/tokens/tokens/USDPLUS.ts +15 -0
  1015. package/evm/config/tokens/tokens/USDT.ts +97 -0
  1016. package/evm/config/tokens/tokens/USDT0.ts +19 -0
  1017. package/evm/config/tokens/tokens/USD_PLUS.ts +15 -0
  1018. package/evm/config/tokens/tokens/USDe.ts +18 -0
  1019. package/evm/config/tokens/tokens/WAVAX.ts +15 -0
  1020. package/evm/config/tokens/tokens/WBTC.ts +38 -0
  1021. package/evm/config/tokens/tokens/WETH9.ts +64 -0
  1022. package/evm/config/tokens/tokens/WRBTC.ts +15 -0
  1023. package/evm/config/tokens/tokens/WstETH.ts +21 -0
  1024. package/evm/config/tokens/tokens/XSUSHI.ts +16 -0
  1025. package/evm/config/tokens/tokens/YFI.ts +20 -0
  1026. package/evm/config/tokens/tokens/ape/ETH.ts +11 -0
  1027. package/evm/config/tokens/tokens/ape/USD.ts +11 -0
  1028. package/evm/config/tokens/tokens/ape/index.ts +2 -0
  1029. package/evm/config/tokens/tokens/axlDAI.ts +27 -0
  1030. package/evm/config/tokens/tokens/axlETH.ts +16 -0
  1031. package/evm/config/tokens/tokens/axlUSDC.ts +29 -0
  1032. package/evm/config/tokens/tokens/axlUSDT.ts +15 -0
  1033. package/evm/config/tokens/tokens/axlWBTC.ts +16 -0
  1034. package/evm/config/tokens/tokens/base/USDbC.ts +11 -0
  1035. package/evm/config/tokens/tokens/base/index.ts +1 -0
  1036. package/evm/config/tokens/tokens/bttc/USDC_BSC.ts +15 -0
  1037. package/evm/config/tokens/tokens/bttc/USDC_Ethereum.ts +11 -0
  1038. package/evm/config/tokens/tokens/bttc/USDC_Tron.ts +11 -0
  1039. package/evm/config/tokens/tokens/bttc/USDT_BSC.ts +11 -0
  1040. package/evm/config/tokens/tokens/bttc/USDT_Ethereum.ts +11 -0
  1041. package/evm/config/tokens/tokens/bttc/USDT_Tron.ts +11 -0
  1042. package/evm/config/tokens/tokens/bttc/index.ts +6 -0
  1043. package/evm/config/tokens/tokens/ethereum/CRV_FRAX.ts +11 -0
  1044. package/evm/config/tokens/tokens/ethereum/CRV_REN_WSBTC.ts +11 -0
  1045. package/evm/config/tokens/tokens/ethereum/CRV_USD.ts +11 -0
  1046. package/evm/config/tokens/tokens/ethereum/STETH.ts +11 -0
  1047. package/evm/config/tokens/tokens/ethereum/THREE_CRV.ts +11 -0
  1048. package/evm/config/tokens/tokens/ethereum/index.ts +5 -0
  1049. package/evm/config/tokens/tokens/filecoin/USDC.Celer.ts +11 -0
  1050. package/evm/config/tokens/tokens/filecoin/USDT.Celer.ts +11 -0
  1051. package/evm/config/tokens/tokens/filecoin/index.ts +2 -0
  1052. package/evm/config/tokens/tokens/index.ts +93 -0
  1053. package/evm/config/tokens/tokens/rETH.ts +22 -0
  1054. package/evm/config/tokens/tokens/rETH2.ts +15 -0
  1055. package/evm/config/tokens/tokens/renBTC.ts +15 -0
  1056. package/evm/config/tokens/tokens/sETH2.ts +15 -0
  1057. package/evm/config/tokens/tokens/thundercore/anyBUSD.ts +11 -0
  1058. package/evm/config/tokens/tokens/thundercore/anyUSDC.ts +11 -0
  1059. package/evm/config/tokens/tokens/thundercore/anyUSDT.ts +11 -0
  1060. package/evm/config/tokens/tokens/thundercore/index.ts +3 -0
  1061. package/evm/config/tokens/tokens/xSolvBTC.ts +16 -0
  1062. package/evm/config/tokens/tokens/zeta/USDC.BSC.ts +11 -0
  1063. package/evm/config/tokens/tokens/zeta/USDC.ETH.ts +11 -0
  1064. package/evm/config/tokens/tokens/zeta/USDT.BSC.ts +11 -0
  1065. package/evm/config/tokens/tokens/zeta/USDT.ETH.ts +11 -0
  1066. package/evm/config/tokens/tokens/zeta/index.ts +4 -0
  1067. package/evm/config/tokens/wrapped-native.ts +250 -0
  1068. package/evm/currency/currency.ts +15 -0
  1069. package/evm/currency/deserialize-currency.ts +17 -0
  1070. package/evm/currency/index.ts +5 -0
  1071. package/evm/currency/native.ts +50 -0
  1072. package/evm/currency/token.ts +81 -0
  1073. package/evm/currency/unwrap-token.ts +18 -0
  1074. package/evm/dex/errors.ts +30 -0
  1075. package/evm/dex/fee.ts +13 -0
  1076. package/evm/dex/index.ts +5 -0
  1077. package/evm/dex/pool.ts +50 -0
  1078. package/evm/dex/router-liquidity-source.ts +4 -0
  1079. package/evm/dex/trade-type.ts +4 -0
  1080. package/evm/format/address.ts +6 -0
  1081. package/evm/format/hash.ts +10 -0
  1082. package/evm/format/index.ts +2 -0
  1083. package/evm/index.ts +12 -0
  1084. package/evm/pool/index.ts +2 -0
  1085. package/evm/pool/sushiswap-v2/compute-sushiswap-v2-pool-address.ts +49 -0
  1086. package/evm/pool/sushiswap-v2/index.ts +3 -0
  1087. package/evm/pool/sushiswap-v2/sushiswap-v2-pool.test.ts +636 -0
  1088. package/evm/pool/sushiswap-v2/sushiswap-v2-pool.ts +301 -0
  1089. package/evm/pool/sushiswap-v2/zod.ts +10 -0
  1090. package/evm/pool/sushiswap-v3/entities/Multicall.test.ts +26 -0
  1091. package/evm/pool/sushiswap-v3/entities/Multicall.ts +25 -0
  1092. package/evm/pool/sushiswap-v3/entities/NonfungiblePositionManager.test.ts +799 -0
  1093. package/evm/pool/sushiswap-v3/entities/NonfungiblePositionManager.ts +543 -0
  1094. package/evm/pool/sushiswap-v3/entities/Payments.test.ts +64 -0
  1095. package/evm/pool/sushiswap-v3/entities/Payments.ts +92 -0
  1096. package/evm/pool/sushiswap-v3/entities/Position.test.ts +600 -0
  1097. package/evm/pool/sushiswap-v3/entities/Position.ts +440 -0
  1098. package/evm/pool/sushiswap-v3/entities/SelfPermit.test.ts +47 -0
  1099. package/evm/pool/sushiswap-v3/entities/SelfPermit.ts +68 -0
  1100. package/evm/pool/sushiswap-v3/entities/SushiSwapV3Pool.test.ts +450 -0
  1101. package/evm/pool/sushiswap-v3/entities/SushiSwapV3Pool.ts +386 -0
  1102. package/evm/pool/sushiswap-v3/entities/Tick.test.ts +29 -0
  1103. package/evm/pool/sushiswap-v3/entities/Tick.ts +22 -0
  1104. package/evm/pool/sushiswap-v3/entities/TickDataProvider.test.ts +18 -0
  1105. package/evm/pool/sushiswap-v3/entities/TickDataProvider.ts +43 -0
  1106. package/evm/pool/sushiswap-v3/entities/TickListDataProvider.test.ts +64 -0
  1107. package/evm/pool/sushiswap-v3/entities/TickListDataProvider.ts +38 -0
  1108. package/evm/pool/sushiswap-v3/entities/index.ts +8 -0
  1109. package/evm/pool/sushiswap-v3/index.ts +2 -0
  1110. package/evm/pool/sushiswap-v3/internalConstants.ts +3 -0
  1111. package/evm/pool/sushiswap-v3/utils/calldata.ts +13 -0
  1112. package/evm/pool/sushiswap-v3/utils/computePoolAddress.test.ts +94 -0
  1113. package/evm/pool/sushiswap-v3/utils/computePoolAddress.ts +86 -0
  1114. package/evm/pool/sushiswap-v3/utils/encodeSqrtRatioX96.test.ts +27 -0
  1115. package/evm/pool/sushiswap-v3/utils/encodeSqrtRatioX96.ts +18 -0
  1116. package/evm/pool/sushiswap-v3/utils/fullMath.ts +21 -0
  1117. package/evm/pool/sushiswap-v3/utils/index.ts +18 -0
  1118. package/evm/pool/sushiswap-v3/utils/isSorted.test.ts +53 -0
  1119. package/evm/pool/sushiswap-v3/utils/isSorted.ts +17 -0
  1120. package/evm/pool/sushiswap-v3/utils/liquidityMath.ts +16 -0
  1121. package/evm/pool/sushiswap-v3/utils/maxLiquidityForAmounts.test.ts +264 -0
  1122. package/evm/pool/sushiswap-v3/utils/maxLiquidityForAmounts.ts +116 -0
  1123. package/evm/pool/sushiswap-v3/utils/misc.ts +143 -0
  1124. package/evm/pool/sushiswap-v3/utils/mostSignificantBit.test.ts +29 -0
  1125. package/evm/pool/sushiswap-v3/utils/mostSignificantBit.ts +20 -0
  1126. package/evm/pool/sushiswap-v3/utils/nearestUsableTick.test.ts +55 -0
  1127. package/evm/pool/sushiswap-v3/utils/nearestUsableTick.ts +20 -0
  1128. package/evm/pool/sushiswap-v3/utils/position.test.ts +30 -0
  1129. package/evm/pool/sushiswap-v3/utils/position.ts +29 -0
  1130. package/evm/pool/sushiswap-v3/utils/priceTickConversions.test.ts +190 -0
  1131. package/evm/pool/sushiswap-v3/utils/priceTickConversions.ts +62 -0
  1132. package/evm/pool/sushiswap-v3/utils/sqrtPriceMath.ts +162 -0
  1133. package/evm/pool/sushiswap-v3/utils/swapMath.ts +140 -0
  1134. package/evm/pool/sushiswap-v3/utils/tickLibrary.test.ts +90 -0
  1135. package/evm/pool/sushiswap-v3/utils/tickLibrary.ts +76 -0
  1136. package/evm/pool/sushiswap-v3/utils/tickList.test.ts +216 -0
  1137. package/evm/pool/sushiswap-v3/utils/tickList.ts +143 -0
  1138. package/evm/pool/sushiswap-v3/utils/tickMath.test.ts +63 -0
  1139. package/evm/pool/sushiswap-v3/utils/tickMath.ts +146 -0
  1140. package/evm/pool/sushiswap-v3/utils/validateAndParseAddress.ts +13 -0
  1141. package/evm/token-list/constants.ts +94 -0
  1142. package/evm/token-list/index.ts +2 -0
  1143. package/evm/types/contract.ts +6 -0
  1144. package/evm/types/id.ts +9 -0
  1145. package/evm/types/index.ts +4 -0
  1146. package/evm/types/sushi-pool/index.ts +12 -0
  1147. package/evm/types/sushi-pool/maybe-nested-pool.ts +13 -0
  1148. package/evm/types/sushi-pool/pool-base.ts +27 -0
  1149. package/evm/types/sushi-pool/pool-history.ts +44 -0
  1150. package/evm/types/sushi-pool/pool-id.ts +12 -0
  1151. package/evm/types/sushi-pool/pool-if-incentivized.ts +21 -0
  1152. package/evm/types/sushi-pool/pool-swap-fee.ts +5 -0
  1153. package/evm/types/sushi-pool/pool-v2.ts +13 -0
  1154. package/evm/types/sushi-pool/pool-v3.ts +22 -0
  1155. package/evm/types/sushi-pool/pool-with-aprs.ts +24 -0
  1156. package/evm/types/sushi-pool/pool-with-buckets.ts +15 -0
  1157. package/evm/types/sushi-pool/pool-with-incentives.ts +36 -0
  1158. package/evm/types/sushi-pool/protocol.ts +10 -0
  1159. package/evm/types/sushi-position/index.ts +3 -0
  1160. package/evm/types/sushi-position/sushi-position-base.ts +8 -0
  1161. package/evm/types/sushi-position/sushi-position-staked.ts +7 -0
  1162. package/evm/types/sushi-position/sushi-position-with-pool.ts +9 -0
  1163. package/evm/utils/add-gas-margin.ts +3 -0
  1164. package/evm/utils/get-create-2-address.ts +48 -0
  1165. package/evm/utils/index.ts +2 -0
  1166. package/evm/validate/index.ts +1 -0
  1167. package/evm/validate/zod.ts +11 -0
  1168. package/generic/chain/chains.test.ts +48 -0
  1169. package/generic/chain/chains.ts +86 -0
  1170. package/generic/chain/index.ts +2 -0
  1171. package/generic/chain/interface.ts +43 -0
  1172. package/generic/currency/amount.test-d.ts +93 -0
  1173. package/generic/currency/amount.test.ts +508 -0
  1174. package/generic/currency/amount.ts +254 -0
  1175. package/generic/currency/currency.test-d.ts +275 -0
  1176. package/generic/currency/currency.ts +72 -0
  1177. package/generic/currency/index.ts +7 -0
  1178. package/generic/currency/native.ts +18 -0
  1179. package/generic/currency/price.ts +77 -0
  1180. package/generic/currency/serialized-currency.ts +28 -0
  1181. package/generic/currency/token.ts +42 -0
  1182. package/generic/currency/unwrap-token.ts +27 -0
  1183. package/generic/format/index.ts +3 -0
  1184. package/generic/format/number.test.ts +113 -0
  1185. package/generic/format/number.ts +204 -0
  1186. package/generic/format/percent.ts +27 -0
  1187. package/generic/format/price.ts +57 -0
  1188. package/generic/index.ts +7 -0
  1189. package/generic/math/abs.ts +3 -0
  1190. package/generic/math/constants.ts +26 -0
  1191. package/generic/math/difference.ts +6 -0
  1192. package/generic/math/fraction.test.ts +209 -0
  1193. package/generic/math/fraction.ts +191 -0
  1194. package/generic/math/index.ts +9 -0
  1195. package/generic/math/maximum.ts +15 -0
  1196. package/generic/math/minimum.ts +20 -0
  1197. package/generic/math/number-to-bigint.test.ts +162 -0
  1198. package/generic/math/number-to-bigint.ts +11 -0
  1199. package/generic/math/percent.ts +25 -0
  1200. package/generic/math/sqrt.ts +25 -0
  1201. package/generic/types/bigintish.ts +1 -0
  1202. package/generic/types/id.ts +9 -0
  1203. package/generic/types/index.ts +5 -0
  1204. package/generic/types/mutable.ts +3 -0
  1205. package/generic/types/replace.ts +8 -0
  1206. package/generic/types/union-to-intersection.ts +7 -0
  1207. package/generic/utils/id.ts +41 -0
  1208. package/generic/utils/index.ts +3 -0
  1209. package/generic/utils/lowercase-map.ts +14 -0
  1210. package/generic/utils/subtract-slippage.test.ts +64 -0
  1211. package/generic/utils/subtract-slippage.ts +20 -0
  1212. package/generic/validate/index.ts +3 -0
  1213. package/generic/validate/isPromiseFulfilled.ts +3 -0
  1214. package/generic/validate/isPromiseRejected.ts +3 -0
  1215. package/generic/validate/zod.ts +16 -0
  1216. package/mvm/chain/chains.ts +103 -0
  1217. package/mvm/chain/define-chain.ts +42 -0
  1218. package/mvm/chain/index.ts +2 -0
  1219. package/mvm/currency/index.ts +1 -0
  1220. package/mvm/currency/token.ts +45 -0
  1221. package/mvm/index.ts +2 -0
  1222. package/package.json +16 -12
  1223. package/tvm/abi/factoryAbi/factoryAbi.ts +189 -0
  1224. package/tvm/abi/factoryAbi/factoryAbi_PairCreated.ts +33 -0
  1225. package/tvm/abi/factoryAbi/factoryAbi_allPairs.ts +21 -0
  1226. package/tvm/abi/factoryAbi/factoryAbi_allPairsLength.ts +15 -0
  1227. package/tvm/abi/factoryAbi/factoryAbi_constructor.ts +13 -0
  1228. package/tvm/abi/factoryAbi/factoryAbi_createPair.ts +26 -0
  1229. package/tvm/abi/factoryAbi/factoryAbi_feeTo.ts +15 -0
  1230. package/tvm/abi/factoryAbi/factoryAbi_feeToSetter.ts +15 -0
  1231. package/tvm/abi/factoryAbi/factoryAbi_getPair.ts +26 -0
  1232. package/tvm/abi/factoryAbi/factoryAbi_getPairHash.ts +15 -0
  1233. package/tvm/abi/factoryAbi/factoryAbi_setFeeTo.ts +15 -0
  1234. package/tvm/abi/factoryAbi/factoryAbi_setFeeToSetter.ts +15 -0
  1235. package/tvm/abi/factoryAbi/index.ts +12 -0
  1236. package/tvm/abi/index.ts +6 -0
  1237. package/tvm/abi/multicallAbi/index.ts +14 -0
  1238. package/tvm/abi/multicallAbi/multicallAbi.ts +229 -0
  1239. package/tvm/abi/multicallAbi/multicallAbi_aggregate.ts +36 -0
  1240. package/tvm/abi/multicallAbi/multicallAbi_getBasefee.ts +13 -0
  1241. package/tvm/abi/multicallAbi/multicallAbi_getBlockHash.ts +19 -0
  1242. package/tvm/abi/multicallAbi/multicallAbi_getBlockNumber.ts +13 -0
  1243. package/tvm/abi/multicallAbi/multicallAbi_getChainId.ts +13 -0
  1244. package/tvm/abi/multicallAbi/multicallAbi_getCurrentBlockCoinbase.ts +13 -0
  1245. package/tvm/abi/multicallAbi/multicallAbi_getCurrentBlockDifficulty.ts +13 -0
  1246. package/tvm/abi/multicallAbi/multicallAbi_getCurrentBlockTimestamp.ts +13 -0
  1247. package/tvm/abi/multicallAbi/multicallAbi_getEthBalance.ts +19 -0
  1248. package/tvm/abi/multicallAbi/multicallAbi_getLastBlockHash.ts +13 -0
  1249. package/tvm/abi/multicallAbi/multicallAbi_getTokenBalance.ts +24 -0
  1250. package/tvm/abi/multicallAbi/multicallAbi_isContract.ts +19 -0
  1251. package/tvm/abi/multicallAbi/multicallAbi_multicall.ts +19 -0
  1252. package/tvm/abi/pairAbi/index.ts +34 -0
  1253. package/tvm/abi/pairAbi/pairAbi.ts +658 -0
  1254. package/tvm/abi/pairAbi/pairAbi_Approval.ts +25 -0
  1255. package/tvm/abi/pairAbi/pairAbi_BurnEvent.ts +31 -0
  1256. package/tvm/abi/pairAbi/pairAbi_DOMAIN_SEPARATOR.ts +13 -0
  1257. package/tvm/abi/pairAbi/pairAbi_MINIMUM_LIQUIDITY.ts +13 -0
  1258. package/tvm/abi/pairAbi/pairAbi_MintEvent.ts +25 -0
  1259. package/tvm/abi/pairAbi/pairAbi_PERMIT_TYPEHASH.ts +13 -0
  1260. package/tvm/abi/pairAbi/pairAbi_SwapEvent.ts +43 -0
  1261. package/tvm/abi/pairAbi/pairAbi_SyncEvent.ts +19 -0
  1262. package/tvm/abi/pairAbi/pairAbi_TransferEvent.ts +25 -0
  1263. package/tvm/abi/pairAbi/pairAbi_allowance.ts +24 -0
  1264. package/tvm/abi/pairAbi/pairAbi_approve.ts +24 -0
  1265. package/tvm/abi/pairAbi/pairAbi_balanceOf.ts +19 -0
  1266. package/tvm/abi/pairAbi/pairAbi_burn.ts +24 -0
  1267. package/tvm/abi/pairAbi/pairAbi_decimals.ts +13 -0
  1268. package/tvm/abi/pairAbi/pairAbi_factory.ts +13 -0
  1269. package/tvm/abi/pairAbi/pairAbi_getReserves.ts +23 -0
  1270. package/tvm/abi/pairAbi/pairAbi_initialize.ts +18 -0
  1271. package/tvm/abi/pairAbi/pairAbi_kLast.ts +13 -0
  1272. package/tvm/abi/pairAbi/pairAbi_mint.ts +19 -0
  1273. package/tvm/abi/pairAbi/pairAbi_name.ts +13 -0
  1274. package/tvm/abi/pairAbi/pairAbi_nonces.ts +19 -0
  1275. package/tvm/abi/pairAbi/pairAbi_permit.ts +43 -0
  1276. package/tvm/abi/pairAbi/pairAbi_price0CumulativeLast.ts +13 -0
  1277. package/tvm/abi/pairAbi/pairAbi_price1CumulativeLast.ts +13 -0
  1278. package/tvm/abi/pairAbi/pairAbi_skim.ts +13 -0
  1279. package/tvm/abi/pairAbi/pairAbi_swap.ts +28 -0
  1280. package/tvm/abi/pairAbi/pairAbi_symbol.ts +13 -0
  1281. package/tvm/abi/pairAbi/pairAbi_sync.ts +7 -0
  1282. package/tvm/abi/pairAbi/pairAbi_token0.ts +13 -0
  1283. package/tvm/abi/pairAbi/pairAbi_token1.ts +13 -0
  1284. package/tvm/abi/pairAbi/pairAbi_totalSupply.ts +13 -0
  1285. package/tvm/abi/pairAbi/pairAbi_transfer.ts +24 -0
  1286. package/tvm/abi/pairAbi/pairAbi_transferFrom.ts +29 -0
  1287. package/tvm/abi/routerAbi/index.ts +23 -0
  1288. package/tvm/abi/routerAbi/routerAbi.ts +896 -0
  1289. package/tvm/abi/routerAbi/routerAbi_WETH.ts +13 -0
  1290. package/tvm/abi/routerAbi/routerAbi_addLiquidity.ts +64 -0
  1291. package/tvm/abi/routerAbi/routerAbi_addLiquidityETH.ts +54 -0
  1292. package/tvm/abi/routerAbi/routerAbi_factory.ts +13 -0
  1293. package/tvm/abi/routerAbi/routerAbi_getAmountIn.ts +29 -0
  1294. package/tvm/abi/routerAbi/routerAbi_getAmountOut.ts +29 -0
  1295. package/tvm/abi/routerAbi/routerAbi_getAmountsIn.ts +24 -0
  1296. package/tvm/abi/routerAbi/routerAbi_getAmountsOut.ts +24 -0
  1297. package/tvm/abi/routerAbi/routerAbi_quote.ts +29 -0
  1298. package/tvm/abi/routerAbi/routerAbi_removeLiquidity.ts +54 -0
  1299. package/tvm/abi/routerAbi/routerAbi_removeLiquidityETH.ts +49 -0
  1300. package/tvm/abi/routerAbi/routerAbi_removeLiquidityETHWithPermit.ts +69 -0
  1301. package/tvm/abi/routerAbi/routerAbi_removeLiquidityETHWithPermitSupportingFeeOnTransferTokens.ts +65 -0
  1302. package/tvm/abi/routerAbi/routerAbi_removeLiquidityWithPermit.ts +74 -0
  1303. package/tvm/abi/routerAbi/routerAbi_swapETHForExactTokens.ts +34 -0
  1304. package/tvm/abi/routerAbi/routerAbi_swapExactETHForTokens.ts +34 -0
  1305. package/tvm/abi/routerAbi/routerAbi_swapExactETHForTokensSupportingFeeOnTransferTokens.ts +28 -0
  1306. package/tvm/abi/routerAbi/routerAbi_swapExactTokensForETH.ts +39 -0
  1307. package/tvm/abi/routerAbi/routerAbi_swapExactTokensForETHSupportingFeeOnTransferTokens.ts +33 -0
  1308. package/tvm/abi/routerAbi/routerAbi_swapExactTokensForTokens.ts +39 -0
  1309. package/tvm/abi/routerAbi/routerAbi_swapTokensForExactETH.ts +39 -0
  1310. package/tvm/abi/routerAbi/routerAbi_swapTokensForExactTokens.ts +39 -0
  1311. package/tvm/abi/trc20Abi/index.ts +13 -0
  1312. package/tvm/abi/trc20Abi/trc20Abi.ts +222 -0
  1313. package/tvm/abi/trc20Abi/trc20Abi_Approval.ts +22 -0
  1314. package/tvm/abi/trc20Abi/trc20Abi_TransferEvent.ts +22 -0
  1315. package/tvm/abi/trc20Abi/trc20Abi_allowance.ts +23 -0
  1316. package/tvm/abi/trc20Abi/trc20Abi_approve.ts +23 -0
  1317. package/tvm/abi/trc20Abi/trc20Abi_balanceOf.ts +19 -0
  1318. package/tvm/abi/trc20Abi/trc20Abi_decimals.ts +14 -0
  1319. package/tvm/abi/trc20Abi/trc20Abi_name.ts +14 -0
  1320. package/tvm/abi/trc20Abi/trc20Abi_symbol.ts +14 -0
  1321. package/tvm/abi/trc20Abi/trc20Abi_totalSupply.ts +14 -0
  1322. package/tvm/abi/trc20Abi/trc20Abi_transfer.ts +23 -0
  1323. package/tvm/abi/trc20Abi/trc20Abi_transferFrom.ts +27 -0
  1324. package/tvm/abi/trc20Abi/trc20Abi_undefined.ts +5 -0
  1325. package/tvm/abi/wtrxAbi/index.ts +17 -0
  1326. package/tvm/abi/wtrxAbi/wtrxAbi.ts +298 -0
  1327. package/tvm/abi/wtrxAbi/wtrxAbi_Approval.ts +22 -0
  1328. package/tvm/abi/wtrxAbi/wtrxAbi_DepositEvent.ts +17 -0
  1329. package/tvm/abi/wtrxAbi/wtrxAbi_TransferEvent.ts +22 -0
  1330. package/tvm/abi/wtrxAbi/wtrxAbi_Withdrawal.ts +17 -0
  1331. package/tvm/abi/wtrxAbi/wtrxAbi_allowance.ts +23 -0
  1332. package/tvm/abi/wtrxAbi/wtrxAbi_approve.ts +19 -0
  1333. package/tvm/abi/wtrxAbi/wtrxAbi_balanceOf.ts +19 -0
  1334. package/tvm/abi/wtrxAbi/wtrxAbi_decimals.ts +14 -0
  1335. package/tvm/abi/wtrxAbi/wtrxAbi_deposit.ts +9 -0
  1336. package/tvm/abi/wtrxAbi/wtrxAbi_name.ts +14 -0
  1337. package/tvm/abi/wtrxAbi/wtrxAbi_symbol.ts +14 -0
  1338. package/tvm/abi/wtrxAbi/wtrxAbi_totalSupply.ts +14 -0
  1339. package/tvm/abi/wtrxAbi/wtrxAbi_transfer.ts +23 -0
  1340. package/tvm/abi/wtrxAbi/wtrxAbi_transferFrom.ts +27 -0
  1341. package/tvm/abi/wtrxAbi/wtrxAbi_withdraw.ts +14 -0
  1342. package/tvm/chain/chains.ts +104 -0
  1343. package/tvm/chain/define-chain.ts +42 -0
  1344. package/tvm/chain/index.ts +2 -0
  1345. package/tvm/config/features/index.ts +2 -0
  1346. package/tvm/config/features/multicall.ts +17 -0
  1347. package/tvm/config/features/swap.ts +19 -0
  1348. package/tvm/config/index.ts +2 -0
  1349. package/tvm/config/tokens/address-map-to-token-map.ts +35 -0
  1350. package/tvm/config/tokens/index.ts +3 -0
  1351. package/tvm/config/tokens/native.ts +11 -0
  1352. package/tvm/config/tokens/token-maps/default-bases.ts +17 -0
  1353. package/tvm/config/tokens/token-maps/index.ts +2 -0
  1354. package/tvm/config/tokens/token-maps/stables.ts +13 -0
  1355. package/tvm/config/tokens/tokens/$Afro.ts +16 -0
  1356. package/tvm/config/tokens/tokens/BICOIN.ts +16 -0
  1357. package/tvm/config/tokens/tokens/BOG.ts +16 -0
  1358. package/tvm/config/tokens/tokens/BTC.ts +16 -0
  1359. package/tvm/config/tokens/tokens/BTT.ts +16 -0
  1360. package/tvm/config/tokens/tokens/BULL.ts +16 -0
  1361. package/tvm/config/tokens/tokens/CDOG.ts +16 -0
  1362. package/tvm/config/tokens/tokens/CZ.ts +16 -0
  1363. package/tvm/config/tokens/tokens/CZC.ts +16 -0
  1364. package/tvm/config/tokens/tokens/DRGN.ts +16 -0
  1365. package/tvm/config/tokens/tokens/ETH.ts +16 -0
  1366. package/tvm/config/tokens/tokens/ETHOLD.ts +16 -0
  1367. package/tvm/config/tokens/tokens/FOFAR.ts +16 -0
  1368. package/tvm/config/tokens/tokens/HOTSUN.ts +16 -0
  1369. package/tvm/config/tokens/tokens/HT.ts +16 -0
  1370. package/tvm/config/tokens/tokens/HTX.ts +16 -0
  1371. package/tvm/config/tokens/tokens/IVfun.ts +16 -0
  1372. package/tvm/config/tokens/tokens/JST.ts +16 -0
  1373. package/tvm/config/tokens/tokens/LABR.ts +16 -0
  1374. package/tvm/config/tokens/tokens/LTC.ts +16 -0
  1375. package/tvm/config/tokens/tokens/MEOWKA.ts +16 -0
  1376. package/tvm/config/tokens/tokens/MOONDOG.ts +16 -0
  1377. package/tvm/config/tokens/tokens/MUNCAT.ts +16 -0
  1378. package/tvm/config/tokens/tokens/MWD.ts +16 -0
  1379. package/tvm/config/tokens/tokens/NFT.ts +16 -0
  1380. package/tvm/config/tokens/tokens/PSYOP.ts +16 -0
  1381. package/tvm/config/tokens/tokens/PUSS.ts +16 -0
  1382. package/tvm/config/tokens/tokens/ROCK.ts +16 -0
  1383. package/tvm/config/tokens/tokens/SUN.ts +16 -0
  1384. package/tvm/config/tokens/tokens/SUNCAT.ts +16 -0
  1385. package/tvm/config/tokens/tokens/SUNDOG.ts +16 -0
  1386. package/tvm/config/tokens/tokens/SUNDOGE.ts +16 -0
  1387. package/tvm/config/tokens/tokens/SUNKEY.ts +16 -0
  1388. package/tvm/config/tokens/tokens/SUNOLD.ts +16 -0
  1389. package/tvm/config/tokens/tokens/SUNWUKONG.ts +16 -0
  1390. package/tvm/config/tokens/tokens/SunJoker.ts +16 -0
  1391. package/tvm/config/tokens/tokens/TBEER.ts +16 -0
  1392. package/tvm/config/tokens/tokens/TBULL.ts +16 -0
  1393. package/tvm/config/tokens/tokens/TDOG.ts +16 -0
  1394. package/tvm/config/tokens/tokens/TRONKEY.ts +16 -0
  1395. package/tvm/config/tokens/tokens/TUSD.ts +16 -0
  1396. package/tvm/config/tokens/tokens/TWX.ts +16 -0
  1397. package/tvm/config/tokens/tokens/Tcat.ts +16 -0
  1398. package/tvm/config/tokens/tokens/USDCOLD.ts +16 -0
  1399. package/tvm/config/tokens/tokens/USDD.ts +16 -0
  1400. package/tvm/config/tokens/tokens/USDJ.ts +16 -0
  1401. package/tvm/config/tokens/tokens/USDT.ts +16 -0
  1402. package/tvm/config/tokens/tokens/VIKITA.ts +16 -0
  1403. package/tvm/config/tokens/tokens/WBTC.ts +16 -0
  1404. package/tvm/config/tokens/tokens/WBTT.ts +16 -0
  1405. package/tvm/config/tokens/tokens/WETH.ts +16 -0
  1406. package/tvm/config/tokens/tokens/WHALE.ts +16 -0
  1407. package/tvm/config/tokens/tokens/WIN.ts +16 -0
  1408. package/tvm/config/tokens/tokens/WTRX.ts +16 -0
  1409. package/tvm/config/tokens/tokens/index.ts +56 -0
  1410. package/tvm/config/tokens/tokens/sTRX.ts +16 -0
  1411. package/tvm/config/tokens/tokens/stUSDT.ts +16 -0
  1412. package/tvm/config/tokens/wrapped-native.ts +16 -0
  1413. package/tvm/currency/currency.ts +38 -0
  1414. package/tvm/currency/index.ts +4 -0
  1415. package/tvm/currency/native.ts +40 -0
  1416. package/tvm/currency/token.ts +56 -0
  1417. package/tvm/currency/unwrap-token.ts +17 -0
  1418. package/tvm/index.ts +4 -0
@@ -0,0 +1,209 @@
1
+ import { describe, expect, it } from 'vitest'
2
+ import { Fraction } from './fraction.js'
3
+
4
+ describe('Fraction', () => {
5
+ describe('constructor', () => {
6
+ it('should create fraction from positive integer', () => {
7
+ const fraction = new Fraction(5)
8
+ expect(fraction.numerator).toBe(5n)
9
+ expect(fraction.denominator).toBe(1n)
10
+ })
11
+
12
+ it('should create fraction from numerator/denominator object', () => {
13
+ const fraction = new Fraction({ numerator: 3, denominator: 4 })
14
+ expect(fraction.numerator).toBe(3n)
15
+ expect(fraction.denominator).toBe(4n)
16
+ })
17
+
18
+ it('should default denominator to 1 when not provided', () => {
19
+ const fraction = new Fraction({ numerator: 7 })
20
+ expect(fraction.numerator).toBe(7n)
21
+ expect(fraction.denominator).toBe(1n)
22
+ })
23
+
24
+ it('should throw on negative number input', () => {
25
+ expect(() => new Fraction(-1)).toThrow(
26
+ 'Fraction must be a non-negative integer',
27
+ )
28
+ })
29
+
30
+ it('should throw on non-integer number input', () => {
31
+ expect(() => new Fraction(1.5)).toThrow(
32
+ 'Fraction must be a non-negative integer',
33
+ )
34
+ })
35
+
36
+ it('should handle zero denominator input without throwing in constructor', () => {
37
+ // This reveals a potential bug - constructor doesn't validate denominator
38
+ const fraction = new Fraction({ numerator: 1, denominator: 0 })
39
+ expect(fraction.denominator).toBe(0n)
40
+ })
41
+
42
+ it('should handle very large numbers', () => {
43
+ const large = 2n ** 100n
44
+ const fraction = new Fraction({
45
+ numerator: large,
46
+ denominator: large + 1n,
47
+ })
48
+ expect(fraction.numerator).toBe(large)
49
+ expect(fraction.denominator).toBe(large + 1n)
50
+ })
51
+ })
52
+
53
+ describe('quotient and remainder', () => {
54
+ it('should calculate quotient correctly', () => {
55
+ const fraction = new Fraction({ numerator: 7, denominator: 3 })
56
+ expect(fraction.quotient).toBe(2n)
57
+ })
58
+
59
+ it('should calculate remainder correctly', () => {
60
+ const fraction = new Fraction({ numerator: 7, denominator: 3 })
61
+ expect(fraction.remainder).toBe(1n)
62
+ })
63
+
64
+ it('should handle zero denominator in quotient calculation', () => {
65
+ const fraction = new Fraction({ numerator: 1, denominator: 0 })
66
+ // This should throw due to division by zero, but let's see what happens
67
+ expect(() => fraction.quotient).toThrow()
68
+ })
69
+ })
70
+
71
+ describe('invert', () => {
72
+ it('should invert fraction correctly', () => {
73
+ const fraction = new Fraction({ numerator: 3, denominator: 4 })
74
+ const inverted = fraction.invert()
75
+ expect(inverted.numerator).toBe(4n)
76
+ expect(inverted.denominator).toBe(3n)
77
+ })
78
+
79
+ it('should throw when inverting zero numerator', () => {
80
+ const fraction = new Fraction({ numerator: 0, denominator: 5 })
81
+ expect(() => fraction.invert()).toThrow(
82
+ 'Cannot invert a fraction with a numerator of 0',
83
+ )
84
+ })
85
+ })
86
+
87
+ describe('arithmetic operations', () => {
88
+ it('should add fractions correctly', () => {
89
+ const a = new Fraction({ numerator: 1, denominator: 3 })
90
+ const b = new Fraction({ numerator: 1, denominator: 6 })
91
+ const result = a.add(b)
92
+ // 1/3 + 1/6 = 2/6 + 1/6 = 3/6 = 1/2, but without reduction: 9/18
93
+ expect(result.numerator).toBe(9n)
94
+ expect(result.denominator).toBe(18n)
95
+ })
96
+
97
+ it('should add bigint correctly', () => {
98
+ const fraction = new Fraction({ numerator: 1, denominator: 2 })
99
+ const result = fraction.add(2n)
100
+ // 1/2 + 2 = 1/2 + 4/2 = 5/2
101
+ expect(result.numerator).toBe(5n)
102
+ expect(result.denominator).toBe(2n)
103
+ })
104
+
105
+ it('should subtract fractions correctly', () => {
106
+ const a = new Fraction({ numerator: 1, denominator: 2 })
107
+ const b = new Fraction({ numerator: 1, denominator: 4 })
108
+ const result = a.sub(b)
109
+ // 1/2 - 1/4 = 2/4 - 1/4 = 1/4, but without reduction: 2/8
110
+ expect(result.numerator).toBe(2n)
111
+ expect(result.denominator).toBe(8n)
112
+ })
113
+
114
+ it('should multiply fractions correctly', () => {
115
+ const a = new Fraction({ numerator: 2, denominator: 3 })
116
+ const b = new Fraction({ numerator: 3, denominator: 4 })
117
+ const result = a.mul(b)
118
+ expect(result.numerator).toBe(6n)
119
+ expect(result.denominator).toBe(12n)
120
+ })
121
+
122
+ it('should divide fractions correctly', () => {
123
+ const a = new Fraction({ numerator: 2, denominator: 3 })
124
+ const b = new Fraction({ numerator: 3, denominator: 4 })
125
+ const result = a.div(b)
126
+ // (2/3) / (3/4) = (2/3) * (4/3) = 8/9
127
+ expect(result.numerator).toBe(8n)
128
+ expect(result.denominator).toBe(9n)
129
+ })
130
+
131
+ it('should handle potential overflow in cross-multiplication', () => {
132
+ const large = 2n ** 100n
133
+ const a = new Fraction({ numerator: large, denominator: 1 })
134
+ const b = new Fraction({ numerator: large, denominator: 1 })
135
+ const result = a.add(b)
136
+ // This tests if cross-multiplication causes overflow
137
+ expect(result.numerator).toBe(large + large)
138
+ expect(result.denominator).toBe(1n)
139
+ })
140
+
141
+ it('should handle division by zero in div operation', () => {
142
+ const a = new Fraction({ numerator: 1, denominator: 2 })
143
+ const b = new Fraction({ numerator: 0, denominator: 1 })
144
+ const result = a.div(b)
145
+ // Division by zero fraction should create infinite denominator
146
+ expect(result.numerator).toBe(1n)
147
+ expect(result.denominator).toBe(0n)
148
+ })
149
+ })
150
+
151
+ describe('comparison operations', () => {
152
+ it('should compare fractions correctly', () => {
153
+ const a = new Fraction({ numerator: 1, denominator: 2 })
154
+ const b = new Fraction({ numerator: 1, denominator: 3 })
155
+
156
+ expect(a.gt(b)).toBe(true)
157
+ expect(b.lt(a)).toBe(true)
158
+ expect(a.eq(a)).toBe(true)
159
+ expect(a.neq(b)).toBe(true)
160
+ })
161
+
162
+ it('should compare with bigint correctly', () => {
163
+ const fraction = new Fraction({ numerator: 5, denominator: 2 })
164
+
165
+ expect(fraction.gt(2)).toBe(true)
166
+ expect(fraction.lt(3)).toBe(true)
167
+ expect(fraction.eq(2)).toBe(false)
168
+ })
169
+
170
+ it('should handle cross-multiplication overflow in comparison', () => {
171
+ const large = 2n ** 100n
172
+ const a = new Fraction({ numerator: large, denominator: 1 })
173
+ const b = new Fraction({ numerator: large + 1n, denominator: 1 })
174
+
175
+ expect(a.lt(b)).toBe(true)
176
+ })
177
+ })
178
+
179
+ describe('number conversion', () => {
180
+ it('should convert to number correctly', () => {
181
+ const fraction = new Fraction({ numerator: 1, denominator: 2 })
182
+ expect(fraction.toNumber()).toBe(0.5)
183
+ })
184
+
185
+ it('should handle precision loss in toNumber', () => {
186
+ const fraction = new Fraction({ numerator: 1, denominator: 3 })
187
+ expect(fraction.toNumber()).toBeCloseTo(0.3333333333333333)
188
+ })
189
+ })
190
+
191
+ describe('serialization', () => {
192
+ it('should serialize to JSON correctly', () => {
193
+ const fraction = new Fraction({ numerator: 3, denominator: 4 })
194
+ const json = fraction.toJSON()
195
+ expect(json).toEqual({ n: '3', d: '4' })
196
+ })
197
+
198
+ it('should handle large numbers in serialization', () => {
199
+ const large = 2n ** 100n
200
+ const fraction = new Fraction({
201
+ numerator: large,
202
+ denominator: large + 1n,
203
+ })
204
+ const json = fraction.toJSON()
205
+ expect(json.n).toBe(large.toString())
206
+ expect(json.d).toBe((large + 1n).toString())
207
+ })
208
+ })
209
+ })
@@ -0,0 +1,191 @@
1
+ import invariant from 'tiny-invariant'
2
+ import { numberToFixed } from '../format/number.js'
3
+ import type { BigintIsh } from '../types/bigintish.js'
4
+
5
+ export class Fraction {
6
+ public readonly numerator: bigint
7
+ public readonly denominator: bigint
8
+
9
+ public constructor(
10
+ arg: { numerator: BigintIsh; denominator?: BigintIsh } | number,
11
+ ) {
12
+ if (typeof arg === 'number') {
13
+ invariant(
14
+ Number.isInteger(arg) && arg >= 0,
15
+ 'Fraction must be a non-negative integer',
16
+ )
17
+ this.numerator = BigInt(arg)
18
+ this.denominator = 1n
19
+ return
20
+ }
21
+
22
+ this.numerator = BigInt(arg.numerator)
23
+ this.denominator = BigInt(arg.denominator ?? 1n)
24
+ }
25
+
26
+ public get quotient(): bigint {
27
+ return this.numerator / this.denominator
28
+ }
29
+
30
+ public get remainder(): bigint {
31
+ return this.numerator % this.denominator
32
+ }
33
+
34
+ public invert(): Fraction {
35
+ invariant(
36
+ this.numerator !== 0n,
37
+ 'Cannot invert a fraction with a numerator of 0',
38
+ )
39
+
40
+ return new Fraction({
41
+ numerator: this.denominator,
42
+ denominator: this.numerator,
43
+ })
44
+ }
45
+
46
+ public add(other: Fraction | BigintIsh): Fraction {
47
+ if (other instanceof Fraction) {
48
+ return new Fraction({
49
+ numerator:
50
+ this.numerator * other.denominator +
51
+ other.numerator * this.denominator,
52
+ denominator: this.denominator * other.denominator,
53
+ })
54
+ }
55
+
56
+ return new Fraction({
57
+ numerator: this.numerator + this.denominator * BigInt(other),
58
+ denominator: this.denominator,
59
+ })
60
+ }
61
+
62
+ public sub(other: Fraction | BigintIsh): Fraction {
63
+ if (other instanceof Fraction) {
64
+ return new Fraction({
65
+ numerator:
66
+ this.numerator * other.denominator -
67
+ other.numerator * this.denominator,
68
+ denominator: this.denominator * other.denominator,
69
+ })
70
+ }
71
+
72
+ return new Fraction({
73
+ numerator: this.numerator - this.denominator * BigInt(other),
74
+ denominator: this.denominator,
75
+ })
76
+ }
77
+
78
+ public mul(other: Fraction | BigintIsh): Fraction {
79
+ if (other instanceof Fraction) {
80
+ return new Fraction({
81
+ numerator: this.numerator * other.numerator,
82
+ denominator: this.denominator * other.denominator,
83
+ })
84
+ }
85
+
86
+ return new Fraction({
87
+ numerator: this.numerator * BigInt(other),
88
+ denominator: this.denominator,
89
+ })
90
+ }
91
+
92
+ public div(other: Fraction | BigintIsh): Fraction {
93
+ if (other instanceof Fraction) {
94
+ return new Fraction({
95
+ numerator: this.numerator * other.denominator,
96
+ denominator: this.denominator * other.numerator,
97
+ })
98
+ }
99
+
100
+ return new Fraction({
101
+ numerator: this.numerator,
102
+ denominator: this.denominator * BigInt(other),
103
+ })
104
+ }
105
+
106
+ private compare(
107
+ other: Fraction | BigintIsh,
108
+ type: '<' | '<=' | '=' | '>=' | '>' | '!=',
109
+ ): boolean {
110
+ let a
111
+ let b
112
+
113
+ if (other instanceof Fraction) {
114
+ a = this.numerator * other.denominator
115
+ b = other.numerator * this.denominator
116
+ } else {
117
+ a = this.numerator
118
+ b = BigInt(other) * this.denominator
119
+ }
120
+
121
+ switch (type) {
122
+ case '<':
123
+ return a < b
124
+ case '<=':
125
+ return a <= b
126
+ case '=':
127
+ return a === b
128
+ case '>=':
129
+ return a >= b
130
+ case '>':
131
+ return a > b
132
+ case '!=':
133
+ return a !== b
134
+ default:
135
+ throw new Error(`Invalid comparison type: ${type}`)
136
+ }
137
+ }
138
+
139
+ public lt(other: Fraction | BigintIsh): boolean {
140
+ return this.compare(other, '<')
141
+ }
142
+
143
+ public lte(other: Fraction | BigintIsh): boolean {
144
+ return this.compare(other, '<=')
145
+ }
146
+
147
+ public eq(other: Fraction | BigintIsh): boolean {
148
+ return this.compare(other, '=')
149
+ }
150
+
151
+ public gte(other: Fraction | BigintIsh): boolean {
152
+ return this.compare(other, '>=')
153
+ }
154
+
155
+ public gt(other: Fraction | BigintIsh): boolean {
156
+ return this.compare(other, '>')
157
+ }
158
+
159
+ public neq(other: Fraction | BigintIsh): boolean {
160
+ return this.compare(other, '!=')
161
+ }
162
+
163
+ public toNumber(): number {
164
+ return Number(this.numerator) / Number(this.denominator)
165
+ }
166
+
167
+ public toString(args: Parameters<typeof numberToFixed>[1]): string {
168
+ return numberToFixed(this.toNumber(), args)
169
+ }
170
+
171
+ public toSignificant(significantDigits: number): string {
172
+ return this.toNumber().toPrecision(significantDigits)
173
+ }
174
+
175
+ public toJSON() {
176
+ return {
177
+ n: this.numerator.toString(),
178
+ d: this.denominator.toString(),
179
+ }
180
+ }
181
+
182
+ /**
183
+ * Helper method for converting any super class back to a fraction
184
+ */
185
+ public get asFraction(): Fraction {
186
+ return new Fraction({
187
+ numerator: this.numerator,
188
+ denominator: this.denominator,
189
+ })
190
+ }
191
+ }
@@ -0,0 +1,9 @@
1
+ export * from './constants.js'
2
+ export * from './percent.js'
3
+ export * from './fraction.js'
4
+ export { abs } from './abs.js'
5
+ export { difference } from './difference.js'
6
+ export { maximum } from './maximum.js'
7
+ export { minimum } from './minimum.js'
8
+ export { sqrt } from './sqrt.js'
9
+ export { numberToBigInt } from './number-to-bigint.js'
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Returns the biggest member of the array
3
+ * @param values the values from which the biggest gets returned
4
+ * @returns the biggest memmber of the array
5
+ */
6
+ export function maximum(...values: bigint[]): bigint {
7
+ let highest = values[0] as bigint
8
+ for (let i = 1; i < values.length; i++) {
9
+ const value = values[i] as bigint
10
+ if (value > highest) {
11
+ highest = value
12
+ }
13
+ }
14
+ return highest
15
+ }
@@ -0,0 +1,20 @@
1
+ function minimum(...values: number[]): number
2
+ function minimum(...values: bigint[]): bigint
3
+
4
+ /**
5
+ * Returns the smallest member of the array
6
+ * @param values the values from which the smallest gets returned
7
+ * @returns the smallest memmber of the array
8
+ */
9
+ function minimum(...values: number[] | bigint[]) {
10
+ let lowest = values[0] as number | bigint
11
+ for (let i = 1; i < values.length; i++) {
12
+ const value = values[i] as number | bigint
13
+ if (value < lowest) {
14
+ lowest = value
15
+ }
16
+ }
17
+ return lowest
18
+ }
19
+
20
+ export { minimum }
@@ -0,0 +1,162 @@
1
+ import { describe, expect, it } from 'vitest'
2
+ import { numberToBigInt } from './number-to-bigint.js'
3
+
4
+ describe('numberToBigInt', () => {
5
+ describe('safe integer range', () => {
6
+ it('should convert small positive integers correctly', () => {
7
+ expect(numberToBigInt(0)).toBe(0n)
8
+ expect(numberToBigInt(1)).toBe(1n)
9
+ expect(numberToBigInt(42)).toBe(42n)
10
+ expect(numberToBigInt(1000)).toBe(1000n)
11
+ })
12
+
13
+ it('should convert small negative integers correctly', () => {
14
+ expect(numberToBigInt(-1)).toBe(-1n)
15
+ expect(numberToBigInt(-42)).toBe(-42n)
16
+ expect(numberToBigInt(-1000)).toBe(-1000n)
17
+ })
18
+
19
+ it('should round decimal numbers', () => {
20
+ expect(numberToBigInt(1.4)).toBe(1n)
21
+ expect(numberToBigInt(1.5)).toBe(2n)
22
+ expect(numberToBigInt(1.6)).toBe(2n)
23
+ })
24
+
25
+ it('should handle MAX_SAFE_INTEGER boundary', () => {
26
+ expect(numberToBigInt(Number.MAX_SAFE_INTEGER)).toBe(
27
+ BigInt(Number.MAX_SAFE_INTEGER),
28
+ )
29
+ expect(numberToBigInt(-Number.MAX_SAFE_INTEGER)).toBe(
30
+ BigInt(-Number.MAX_SAFE_INTEGER),
31
+ )
32
+ })
33
+ })
34
+
35
+ describe('large number handling', () => {
36
+ it('should handle numbers just above MAX_SAFE_INTEGER', () => {
37
+ const justAbove = Number.MAX_SAFE_INTEGER + 1
38
+ const result = numberToBigInt(justAbove)
39
+ expect(typeof result).toBe('bigint')
40
+ expect(result).toBeGreaterThan(BigInt(Number.MAX_SAFE_INTEGER))
41
+ })
42
+
43
+ it('should handle very large positive numbers', () => {
44
+ const veryLarge = Number.MAX_SAFE_INTEGER * 2
45
+ const result = numberToBigInt(veryLarge)
46
+ expect(typeof result).toBe('bigint')
47
+ expect(result).toBeGreaterThan(0n)
48
+ })
49
+
50
+ it('should handle very large negative numbers', () => {
51
+ const veryLarge = -Number.MAX_SAFE_INTEGER * 2
52
+ const result = numberToBigInt(veryLarge)
53
+ expect(typeof result).toBe('bigint')
54
+ expect(result).toBeLessThan(0n)
55
+ })
56
+
57
+ it('should preserve sign for large numbers', () => {
58
+ const large = Number.MAX_SAFE_INTEGER * 10
59
+ expect(numberToBigInt(large)).toBeGreaterThan(0n)
60
+ expect(numberToBigInt(-large)).toBeLessThan(0n)
61
+ })
62
+ })
63
+
64
+ describe('precision and rounding edge cases', () => {
65
+ it('should handle numbers that lose precision in JavaScript', () => {
66
+ // Numbers that can't be exactly represented as doubles
67
+ const imprecise = 0.1 + 0.2 // 0.30000000000000004
68
+ const result = numberToBigInt(imprecise)
69
+ expect(result).toBe(0n) // Should round to 0
70
+ })
71
+
72
+ it('should round large decimals correctly', () => {
73
+ const largeDecimal = Number.MAX_SAFE_INTEGER + 0.7
74
+ const result = numberToBigInt(largeDecimal)
75
+ expect(typeof result).toBe('bigint')
76
+ })
77
+
78
+ it('should handle scientific notation', () => {
79
+ expect(numberToBigInt(1e6)).toBe(1000000n)
80
+ expect(numberToBigInt(1.5e6)).toBe(1500000n)
81
+ expect(numberToBigInt(-1e6)).toBe(-1000000n)
82
+ })
83
+ })
84
+
85
+ describe('special values', () => {
86
+ it('should handle zero', () => {
87
+ expect(numberToBigInt(0)).toBe(0n)
88
+ expect(numberToBigInt(-0)).toBe(0n)
89
+ })
90
+
91
+ it('should handle Infinity', () => {
92
+ // Function should handle gracefully or throw
93
+ expect(() => numberToBigInt(Number.POSITIVE_INFINITY)).toThrow()
94
+ expect(() => numberToBigInt(Number.NEGATIVE_INFINITY)).toThrow()
95
+ })
96
+
97
+ it('should handle NaN', () => {
98
+ // Function should handle gracefully or throw
99
+ expect(() => numberToBigInt(Number.NaN)).toThrow()
100
+ })
101
+
102
+ it('should handle very small numbers', () => {
103
+ expect(numberToBigInt(Number.MIN_VALUE)).toBe(0n) // Should round to 0
104
+ expect(numberToBigInt(1e-10)).toBe(0n) // Should round to 0
105
+ })
106
+ })
107
+
108
+ describe('mathematical properties', () => {
109
+ it('should maintain relative magnitude for large numbers', () => {
110
+ const a = Number.MAX_SAFE_INTEGER * 2
111
+ const b = Number.MAX_SAFE_INTEGER * 3
112
+ const resultA = numberToBigInt(a)
113
+ const resultB = numberToBigInt(b)
114
+ expect(resultB).toBeGreaterThan(resultA)
115
+ })
116
+
117
+ it('should handle powers of 2 correctly', () => {
118
+ // Powers of 2 are important for binary representations
119
+ const powers = [2, 4, 8, 16, 32, 64, 128, 256, 512, 1024]
120
+ for (const power of powers) {
121
+ expect(numberToBigInt(power)).toBe(BigInt(power))
122
+ }
123
+ })
124
+
125
+ it('should be approximately linear for large inputs', () => {
126
+ // Test that doubling input approximately doubles output for large numbers
127
+ const base = Number.MAX_SAFE_INTEGER * 2
128
+ const double = base * 2
129
+ const resultBase = numberToBigInt(base)
130
+ const resultDouble = numberToBigInt(double)
131
+
132
+ // Should be roughly 2x (allowing for some precision loss)
133
+ const ratio = Number(resultDouble) / Number(resultBase)
134
+ expect(ratio).toBeGreaterThan(1.5)
135
+ expect(ratio).toBeLessThan(2.5)
136
+ })
137
+ })
138
+
139
+ describe('implementation details', () => {
140
+ it('should trigger the large number path for numbers >= MAX_SAFE_INTEGER', () => {
141
+ // This tests the exp >= 51 condition in the code
142
+ const atThreshold = Number.MAX_SAFE_INTEGER + 1
143
+ const result = numberToBigInt(atThreshold)
144
+ expect(typeof result).toBe('bigint')
145
+ })
146
+
147
+ it('should handle mantissa calculations correctly', () => {
148
+ // Test the internal mantissa and shift calculations
149
+ const largeNumbers = [
150
+ Number.MAX_SAFE_INTEGER * 2,
151
+ Number.MAX_SAFE_INTEGER * 4,
152
+ Number.MAX_SAFE_INTEGER * 8,
153
+ ]
154
+
155
+ for (const num of largeNumbers) {
156
+ const result = numberToBigInt(num)
157
+ expect(typeof result).toBe('bigint')
158
+ expect(result).toBeGreaterThan(0n)
159
+ }
160
+ })
161
+ })
162
+ })
@@ -0,0 +1,11 @@
1
+ export function numberToBigInt(value: number): bigint {
2
+ const v = Math.abs(value)
3
+ if (v <= Number.MAX_SAFE_INTEGER) return BigInt(Math.round(value))
4
+
5
+ const exp = Math.floor(Math.log(v) / Math.LN2)
6
+ console.assert(exp >= 51, 'Internal Error 314')
7
+ const shift = exp - 51
8
+ const mant = Math.round(v / 2 ** shift)
9
+ const res = BigInt(mant) * 2n ** BigInt(shift)
10
+ return value > 0 ? res : res * -1n
11
+ }
@@ -0,0 +1,25 @@
1
+ import { numberToFixed } from '../format/number.js'
2
+ import { Fraction } from './fraction.js'
3
+
4
+ export class Percent extends Fraction {
5
+ /**
6
+ *
7
+ * @param args.maxFixed - The maximum number of fixed decimal places to display, only if relevant, eg. "0" for 0, "1.23" for 0.0123, etc.
8
+ * @param args.fixed - The number of fixed decimal places to display, always, eg. "0.00" for 0, "1.23" for 0.0123, etc.
9
+ * @returns A string representation of the percent value, eg. "1.53"
10
+ */
11
+ public override toString(
12
+ args: Parameters<typeof numberToFixed>[1] = { fixed: 2 },
13
+ ): string {
14
+ const num = this.toNumber() * 100
15
+ const str = numberToFixed(num, args)
16
+
17
+ return str
18
+ }
19
+
20
+ public toPercentString(
21
+ args: Parameters<typeof numberToFixed>[1] = { fixed: 2 },
22
+ ): string {
23
+ return `${this.toString(args)}%`
24
+ }
25
+ }
@@ -0,0 +1,25 @@
1
+ import invariant from 'tiny-invariant'
2
+ import { MAX_SAFE_INTEGER, ONE, TWO, ZERO } from './constants.js'
3
+
4
+ /**
5
+ * Computes floor(sqrt(value))
6
+ * @param value the value for which to compute the square root, rounded down
7
+ */
8
+ export function sqrt(value: bigint): bigint {
9
+ invariant(value >= ZERO, 'NEGATIVE')
10
+
11
+ // rely on built in sqrt if possible
12
+ if (value < MAX_SAFE_INTEGER) {
13
+ return BigInt(Math.floor(Math.sqrt(Number(value))))
14
+ }
15
+
16
+ let z: bigint
17
+ let x: bigint
18
+ z = value
19
+ x = value / TWO + ONE
20
+ while (x < z) {
21
+ z = x
22
+ x = (value / x + x) / TWO
23
+ }
24
+ return z
25
+ }
@@ -0,0 +1 @@
1
+ export type BigintIsh = number | string | bigint
@@ -0,0 +1,9 @@
1
+ import type { ChainId } from '../chain/chains.js'
2
+
3
+ export type ID<
4
+ TChainId extends ChainId = ChainId,
5
+ TAddress extends string = string,
6
+ TIncludeNative extends boolean = false,
7
+ > =
8
+ | `${TChainId}:${TAddress}`
9
+ | (TIncludeNative extends true ? `${TChainId}:NATIVE` : never)
@@ -0,0 +1,5 @@
1
+ export type * from './bigintish.js'
2
+ export type * from './id.js'
3
+ export type * from './mutable.js'
4
+ export type * from './replace.js'
5
+ export type * from './union-to-intersection.js'