genius-intents 0.18.2 → 0.20.0

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 (382) hide show
  1. package/CHANGELOG.md +73 -3
  2. package/dist/direct-pools/fourmeme/fourmeme-direct.service.js +16 -16
  3. package/dist/direct-pools/fourmeme/fourmeme-direct.service.js.map +1 -1
  4. package/dist/direct-pools/meteora/pool-info/meteora-damm-v1-pool-info.service.d.ts +1 -1
  5. package/dist/direct-pools/meteora/pool-info/meteora-damm-v1-pool-info.service.d.ts.map +1 -1
  6. package/dist/direct-pools/meteora/pool-info/meteora-damm-v1-pool-info.service.js +9 -2
  7. package/dist/direct-pools/meteora/pool-info/meteora-damm-v1-pool-info.service.js.map +1 -1
  8. package/dist/direct-pools/meteora/pool-info/meteora-damm-v2-pool-info.service.d.ts +1 -1
  9. package/dist/direct-pools/meteora/pool-info/meteora-damm-v2-pool-info.service.d.ts.map +1 -1
  10. package/dist/direct-pools/meteora/pool-info/meteora-damm-v2-pool-info.service.js +9 -2
  11. package/dist/direct-pools/meteora/pool-info/meteora-damm-v2-pool-info.service.js.map +1 -1
  12. package/dist/direct-pools/meteora/pool-info/meteora-dbc-pool-info.service.d.ts +1 -1
  13. package/dist/direct-pools/meteora/pool-info/meteora-dbc-pool-info.service.d.ts.map +1 -1
  14. package/dist/direct-pools/meteora/pool-info/meteora-dbc-pool-info.service.js +9 -2
  15. package/dist/direct-pools/meteora/pool-info/meteora-dbc-pool-info.service.js.map +1 -1
  16. package/dist/direct-pools/meteora/pool-info/meteora-dlmm-pool-info.service.d.ts +1 -1
  17. package/dist/direct-pools/meteora/pool-info/meteora-dlmm-pool-info.service.d.ts.map +1 -1
  18. package/dist/direct-pools/meteora/pool-info/meteora-dlmm-pool-info.service.js +9 -2
  19. package/dist/direct-pools/meteora/pool-info/meteora-dlmm-pool-info.service.js.map +1 -1
  20. package/dist/direct-pools/pump-fun/pool-info/pump-fun-pool-info.service.d.ts +1 -1
  21. package/dist/direct-pools/pump-fun/pool-info/pump-fun-pool-info.service.d.ts.map +1 -1
  22. package/dist/direct-pools/pump-fun/pool-info/pump-fun-pool-info.service.js +9 -2
  23. package/dist/direct-pools/pump-fun/pool-info/pump-fun-pool-info.service.js.map +1 -1
  24. package/dist/direct-pools/pump-fun/pool-info/pump-swap-amm-pool-info.service.d.ts +1 -1
  25. package/dist/direct-pools/pump-fun/pool-info/pump-swap-amm-pool-info.service.d.ts.map +1 -1
  26. package/dist/direct-pools/pump-fun/pool-info/pump-swap-amm-pool-info.service.js +9 -2
  27. package/dist/direct-pools/pump-fun/pool-info/pump-swap-amm-pool-info.service.js.map +1 -1
  28. package/dist/direct-pools/raydium/pool-info/raydium-amm-pool-info.service.d.ts +1 -1
  29. package/dist/direct-pools/raydium/pool-info/raydium-amm-pool-info.service.d.ts.map +1 -1
  30. package/dist/direct-pools/raydium/pool-info/raydium-amm-pool-info.service.js +9 -2
  31. package/dist/direct-pools/raydium/pool-info/raydium-amm-pool-info.service.js.map +1 -1
  32. package/dist/direct-pools/raydium/pool-info/raydium-clmm-pool-info.service.d.ts +1 -1
  33. package/dist/direct-pools/raydium/pool-info/raydium-clmm-pool-info.service.d.ts.map +1 -1
  34. package/dist/direct-pools/raydium/pool-info/raydium-clmm-pool-info.service.js +9 -2
  35. package/dist/direct-pools/raydium/pool-info/raydium-clmm-pool-info.service.js.map +1 -1
  36. package/dist/direct-pools/raydium/pool-info/raydium-cpmm-pool-info.service.d.ts +1 -1
  37. package/dist/direct-pools/raydium/pool-info/raydium-cpmm-pool-info.service.d.ts.map +1 -1
  38. package/dist/direct-pools/raydium/pool-info/raydium-cpmm-pool-info.service.js +9 -2
  39. package/dist/direct-pools/raydium/pool-info/raydium-cpmm-pool-info.service.js.map +1 -1
  40. package/dist/direct-pools/raydium/pool-info/raydium-launchlab-pool-info.service.d.ts +1 -1
  41. package/dist/direct-pools/raydium/pool-info/raydium-launchlab-pool-info.service.d.ts.map +1 -1
  42. package/dist/direct-pools/raydium/pool-info/raydium-launchlab-pool-info.service.js +9 -2
  43. package/dist/direct-pools/raydium/pool-info/raydium-launchlab-pool-info.service.js.map +1 -1
  44. package/dist/direct-pools/whirlpools/pool-info/whirlpools-pool-info.service.d.ts +1 -1
  45. package/dist/direct-pools/whirlpools/pool-info/whirlpools-pool-info.service.d.ts.map +1 -1
  46. package/dist/direct-pools/whirlpools/pool-info/whirlpools-pool-info.service.js +9 -2
  47. package/dist/direct-pools/whirlpools/pool-info/whirlpools-pool-info.service.js.map +1 -1
  48. package/dist/genius-intents.d.ts.map +1 -1
  49. package/dist/genius-intents.js +11 -2
  50. package/dist/genius-intents.js.map +1 -1
  51. package/dist/index.d.ts +3 -0
  52. package/dist/index.d.ts.map +1 -1
  53. package/dist/index.js +4 -1
  54. package/dist/index.js.map +1 -1
  55. package/dist/lib/dex/algebra/algebra-dex-deployments.d.ts +3 -0
  56. package/dist/lib/dex/algebra/algebra-dex-deployments.d.ts.map +1 -0
  57. package/dist/lib/dex/algebra/algebra-dex-deployments.js +34 -0
  58. package/dist/lib/dex/algebra/algebra-dex-deployments.js.map +1 -0
  59. package/dist/lib/dex/algebra/algebra-factory.abi.d.ts +3 -0
  60. package/dist/lib/dex/algebra/algebra-factory.abi.d.ts.map +1 -0
  61. package/dist/lib/dex/algebra/algebra-factory.abi.js +34 -0
  62. package/dist/lib/dex/algebra/algebra-factory.abi.js.map +1 -0
  63. package/dist/lib/dex/algebra/algebra-quoter.abi.d.ts +3 -0
  64. package/dist/lib/dex/algebra/algebra-quoter.abi.d.ts.map +1 -0
  65. package/dist/lib/dex/algebra/algebra-quoter.abi.js +135 -0
  66. package/dist/lib/dex/algebra/algebra-quoter.abi.js.map +1 -0
  67. package/dist/lib/dex/algebra/algebra-router.abi.d.ts +3 -0
  68. package/dist/lib/dex/algebra/algebra-router.abi.d.ts.map +1 -0
  69. package/dist/lib/dex/algebra/algebra-router.abi.js +273 -0
  70. package/dist/lib/dex/algebra/algebra-router.abi.js.map +1 -0
  71. package/dist/lib/dex/algebra/quickswap-quoter.abi.d.ts +3 -0
  72. package/dist/lib/dex/algebra/quickswap-quoter.abi.d.ts.map +1 -0
  73. package/dist/lib/dex/algebra/quickswap-quoter.abi.js +103 -0
  74. package/dist/lib/dex/algebra/quickswap-quoter.abi.js.map +1 -0
  75. package/dist/lib/dex/fourmeme/fourmeme-v3-helper.abi.d.ts +3 -0
  76. package/dist/lib/dex/fourmeme/fourmeme-v3-helper.abi.d.ts.map +1 -0
  77. package/dist/lib/dex/fourmeme/fourmeme-v3-helper.abi.js +61 -0
  78. package/dist/lib/dex/fourmeme/fourmeme-v3-helper.abi.js.map +1 -0
  79. package/dist/lib/dex/lfj/lfj-dex-deployments.d.ts +3 -0
  80. package/dist/lib/dex/lfj/lfj-dex-deployments.d.ts.map +1 -0
  81. package/dist/lib/dex/lfj/lfj-dex-deployments.js +21 -0
  82. package/dist/lib/dex/lfj/lfj-dex-deployments.js.map +1 -0
  83. package/dist/lib/dex/lfj/lfj-quoter.abi.d.ts +3 -0
  84. package/dist/lib/dex/lfj/lfj-quoter.abi.d.ts.map +1 -0
  85. package/dist/lib/dex/lfj/lfj-quoter.abi.js +135 -0
  86. package/dist/lib/dex/lfj/lfj-quoter.abi.js.map +1 -0
  87. package/dist/lib/dex/lfj/lfj-router.abi.d.ts +3 -0
  88. package/dist/lib/dex/lfj/lfj-router.abi.d.ts.map +1 -0
  89. package/dist/lib/dex/lfj/lfj-router.abi.js +587 -0
  90. package/dist/lib/dex/lfj/lfj-router.abi.js.map +1 -0
  91. package/dist/lib/dex/pair-discovery/adapters/algebra-dex-pair-discovery.adapter.d.ts +22 -0
  92. package/dist/lib/dex/pair-discovery/adapters/algebra-dex-pair-discovery.adapter.d.ts.map +1 -0
  93. package/dist/lib/dex/pair-discovery/adapters/algebra-dex-pair-discovery.adapter.js +225 -0
  94. package/dist/lib/dex/pair-discovery/adapters/algebra-dex-pair-discovery.adapter.js.map +1 -0
  95. package/dist/lib/dex/pair-discovery/adapters/fourmeme-dex-pair-discovery.adapter.d.ts +20 -0
  96. package/dist/lib/dex/pair-discovery/adapters/fourmeme-dex-pair-discovery.adapter.d.ts.map +1 -0
  97. package/dist/lib/dex/pair-discovery/adapters/fourmeme-dex-pair-discovery.adapter.js +265 -0
  98. package/dist/lib/dex/pair-discovery/adapters/fourmeme-dex-pair-discovery.adapter.js.map +1 -0
  99. package/dist/lib/dex/pair-discovery/adapters/lfj-v3-dex-pair-doscovery.adapter.d.ts +19 -0
  100. package/dist/lib/dex/pair-discovery/adapters/lfj-v3-dex-pair-doscovery.adapter.d.ts.map +1 -0
  101. package/dist/lib/dex/pair-discovery/adapters/lfj-v3-dex-pair-doscovery.adapter.js +130 -0
  102. package/dist/lib/dex/pair-discovery/adapters/lfj-v3-dex-pair-doscovery.adapter.js.map +1 -0
  103. package/dist/lib/dex/pair-discovery/adapters/v2-dex-pair-discovery.adapter.d.ts +29 -0
  104. package/dist/lib/dex/pair-discovery/adapters/v2-dex-pair-discovery.adapter.d.ts.map +1 -0
  105. package/dist/lib/dex/pair-discovery/adapters/v2-dex-pair-discovery.adapter.js +179 -0
  106. package/dist/lib/dex/pair-discovery/adapters/v2-dex-pair-discovery.adapter.js.map +1 -0
  107. package/dist/lib/dex/pair-discovery/adapters/v3-dex-pair-discovery.adapter.d.ts +29 -0
  108. package/dist/lib/dex/pair-discovery/adapters/v3-dex-pair-discovery.adapter.d.ts.map +1 -0
  109. package/dist/lib/dex/pair-discovery/adapters/v3-dex-pair-discovery.adapter.js +345 -0
  110. package/dist/lib/dex/pair-discovery/adapters/v3-dex-pair-discovery.adapter.js.map +1 -0
  111. package/dist/lib/dex/pair-discovery/adapters/ve33-dex-pair-discovery.adapter.d.ts +36 -0
  112. package/dist/lib/dex/pair-discovery/adapters/ve33-dex-pair-discovery.adapter.d.ts.map +1 -0
  113. package/dist/lib/dex/pair-discovery/adapters/ve33-dex-pair-discovery.adapter.js +275 -0
  114. package/dist/lib/dex/pair-discovery/adapters/ve33-dex-pair-discovery.adapter.js.map +1 -0
  115. package/dist/lib/dex/pair-discovery/pair-discovery.service.d.ts +16 -0
  116. package/dist/lib/dex/pair-discovery/pair-discovery.service.d.ts.map +1 -0
  117. package/dist/lib/dex/pair-discovery/pair-discovery.service.js +98 -0
  118. package/dist/lib/dex/pair-discovery/pair-discovery.service.js.map +1 -0
  119. package/dist/lib/dex/pair-discovery/pair-discovery.types.d.ts +189 -0
  120. package/dist/lib/dex/pair-discovery/pair-discovery.types.d.ts.map +1 -0
  121. package/dist/lib/dex/pair-discovery/pair-discovery.types.js +3 -0
  122. package/dist/lib/dex/pair-discovery/pair-discovery.types.js.map +1 -0
  123. package/dist/lib/dex/uniswapV2/v2-dex-deployments.d.ts +5 -0
  124. package/dist/lib/dex/uniswapV2/v2-dex-deployments.d.ts.map +1 -0
  125. package/dist/lib/dex/uniswapV2/v2-dex-deployments.js +166 -0
  126. package/dist/lib/dex/uniswapV2/v2-dex-deployments.js.map +1 -0
  127. package/dist/lib/dex/uniswapv3/{v3-offchain-quoter.service.d.ts → offchain-quoter/v3-offchain-quoter.service.d.ts} +1 -1
  128. package/dist/lib/dex/uniswapv3/offchain-quoter/v3-offchain-quoter.service.d.ts.map +1 -0
  129. package/dist/lib/dex/uniswapv3/{v3-offchain-quoter.service.js → offchain-quoter/v3-offchain-quoter.service.js} +3 -3
  130. package/dist/lib/dex/uniswapv3/offchain-quoter/v3-offchain-quoter.service.js.map +1 -0
  131. package/dist/lib/dex/uniswapv3/offchain-quoter/v3-offchain-quoter.types.d.ts +162 -0
  132. package/dist/lib/dex/uniswapv3/offchain-quoter/v3-offchain-quoter.types.d.ts.map +1 -0
  133. package/dist/lib/dex/uniswapv3/offchain-quoter/v3-offchain-quoter.types.js +3 -0
  134. package/dist/lib/dex/uniswapv3/offchain-quoter/v3-offchain-quoter.types.js.map +1 -0
  135. package/dist/lib/dex/uniswapv3/ramses-quoter.abi.d.ts +3 -0
  136. package/dist/lib/dex/uniswapv3/ramses-quoter.abi.d.ts.map +1 -0
  137. package/dist/lib/dex/uniswapv3/ramses-quoter.abi.js +114 -0
  138. package/dist/lib/dex/uniswapv3/ramses-quoter.abi.js.map +1 -0
  139. package/dist/lib/dex/uniswapv3/slipstream-quoter.abi.d.ts +3 -0
  140. package/dist/lib/dex/uniswapv3/slipstream-quoter.abi.d.ts.map +1 -0
  141. package/dist/lib/dex/uniswapv3/slipstream-quoter.abi.js +30 -0
  142. package/dist/lib/dex/uniswapv3/slipstream-quoter.abi.js.map +1 -0
  143. package/dist/lib/dex/uniswapv3/slipstream-router.abi.d.ts +3 -0
  144. package/dist/lib/dex/uniswapv3/slipstream-router.abi.d.ts.map +1 -0
  145. package/dist/lib/dex/uniswapv3/slipstream-router.abi.js +45 -0
  146. package/dist/lib/dex/uniswapv3/slipstream-router.abi.js.map +1 -0
  147. package/dist/lib/dex/uniswapv3/v3-dex-deployments.d.ts +32 -0
  148. package/dist/lib/dex/uniswapv3/v3-dex-deployments.d.ts.map +1 -0
  149. package/dist/lib/dex/uniswapv3/v3-dex-deployments.js +283 -0
  150. package/dist/lib/dex/uniswapv3/v3-dex-deployments.js.map +1 -0
  151. package/dist/lib/dex/ve33/aerodrome-factory.abi.d.ts +3 -0
  152. package/dist/lib/dex/ve33/aerodrome-factory.abi.d.ts.map +1 -0
  153. package/dist/lib/dex/ve33/aerodrome-factory.abi.js +17 -0
  154. package/dist/lib/dex/ve33/aerodrome-factory.abi.js.map +1 -0
  155. package/dist/lib/dex/ve33/aerodrome-router.abi.d.ts +3 -0
  156. package/dist/lib/dex/ve33/aerodrome-router.abi.d.ts.map +1 -0
  157. package/dist/lib/dex/ve33/aerodrome-router.abi.js +119 -0
  158. package/dist/lib/dex/ve33/aerodrome-router.abi.js.map +1 -0
  159. package/dist/lib/dex/ve33/blackhole-router.abi.d.ts +3 -0
  160. package/dist/lib/dex/ve33/blackhole-router.abi.d.ts.map +1 -0
  161. package/dist/lib/dex/ve33/blackhole-router.abi.js +1492 -0
  162. package/dist/lib/dex/ve33/blackhole-router.abi.js.map +1 -0
  163. package/dist/lib/dex/ve33/pharaoh-router.abi.d.ts +3 -0
  164. package/dist/lib/dex/ve33/pharaoh-router.abi.d.ts.map +1 -0
  165. package/dist/lib/dex/ve33/pharaoh-router.abi.js +502 -0
  166. package/dist/lib/dex/ve33/pharaoh-router.abi.js.map +1 -0
  167. package/dist/lib/dex/ve33/pharaoh-swap-router.abi.d.ts +3 -0
  168. package/dist/lib/dex/ve33/pharaoh-swap-router.abi.d.ts.map +1 -0
  169. package/dist/lib/dex/ve33/pharaoh-swap-router.abi.js +239 -0
  170. package/dist/lib/dex/ve33/pharaoh-swap-router.abi.js.map +1 -0
  171. package/dist/lib/dex/ve33/ve33-dex-deployments.d.ts +4 -0
  172. package/dist/lib/dex/ve33/ve33-dex-deployments.d.ts.map +1 -0
  173. package/dist/lib/dex/ve33/ve33-dex-deployments.js +34 -0
  174. package/dist/lib/dex/ve33/ve33-dex-deployments.js.map +1 -0
  175. package/dist/lib/dex/ve33/velodrome-router.abi.d.ts +3 -0
  176. package/dist/lib/dex/ve33/velodrome-router.abi.d.ts.map +1 -0
  177. package/dist/lib/dex/ve33/velodrome-router.abi.js +634 -0
  178. package/dist/lib/dex/ve33/velodrome-router.abi.js.map +1 -0
  179. package/dist/protocols/algebra/algebra.service.d.ts +63 -0
  180. package/dist/protocols/algebra/algebra.service.d.ts.map +1 -0
  181. package/dist/protocols/algebra/algebra.service.js +532 -0
  182. package/dist/protocols/algebra/algebra.service.js.map +1 -0
  183. package/dist/protocols/algebra/algebra.types.d.ts +98 -0
  184. package/dist/protocols/algebra/algebra.types.d.ts.map +1 -0
  185. package/dist/protocols/algebra/algebra.types.js +9 -0
  186. package/dist/protocols/algebra/algebra.types.js.map +1 -0
  187. package/dist/protocols/algebra/index.d.ts +3 -0
  188. package/dist/protocols/algebra/index.d.ts.map +1 -0
  189. package/dist/protocols/algebra/index.js +21 -0
  190. package/dist/protocols/algebra/index.js.map +1 -0
  191. package/dist/protocols/four-meme/four-meme.service.d.ts.map +1 -1
  192. package/dist/protocols/four-meme/four-meme.service.js +49 -57
  193. package/dist/protocols/four-meme/four-meme.service.js.map +1 -1
  194. package/dist/protocols/four-meme/four-meme.types.d.ts +8 -3
  195. package/dist/protocols/four-meme/four-meme.types.d.ts.map +1 -1
  196. package/dist/protocols/genius-bridge/genius-bridge.service.d.ts +2 -1
  197. package/dist/protocols/genius-bridge/genius-bridge.service.d.ts.map +1 -1
  198. package/dist/protocols/genius-bridge/genius-bridge.service.js.map +1 -1
  199. package/dist/protocols/genius-bridge/index.d.ts +1 -1
  200. package/dist/protocols/genius-bridge/index.d.ts.map +1 -1
  201. package/dist/protocols/lfj/index.d.ts +3 -0
  202. package/dist/protocols/lfj/index.d.ts.map +1 -0
  203. package/dist/protocols/lfj/index.js +21 -0
  204. package/dist/protocols/lfj/index.js.map +1 -0
  205. package/dist/protocols/lfj/lfj.service.d.ts +45 -0
  206. package/dist/protocols/lfj/lfj.service.d.ts.map +1 -0
  207. package/dist/protocols/lfj/lfj.service.js +323 -0
  208. package/dist/protocols/lfj/lfj.service.js.map +1 -0
  209. package/dist/protocols/lfj/lfj.types.d.ts +136 -0
  210. package/dist/protocols/lfj/lfj.types.d.ts.map +1 -0
  211. package/dist/protocols/lfj/lfj.types.js +16 -0
  212. package/dist/protocols/lfj/lfj.types.js.map +1 -0
  213. package/dist/protocols/okx/okx.service.d.ts +9 -8
  214. package/dist/protocols/okx/okx.service.d.ts.map +1 -1
  215. package/dist/protocols/okx/okx.service.js +133 -143
  216. package/dist/protocols/okx/okx.service.js.map +1 -1
  217. package/dist/protocols/okx/okx.types.d.ts +9 -3
  218. package/dist/protocols/okx/okx.types.d.ts.map +1 -1
  219. package/dist/protocols/relay/relay.service.d.ts +3 -0
  220. package/dist/protocols/relay/relay.service.d.ts.map +1 -1
  221. package/dist/protocols/relay/relay.service.js +7 -1
  222. package/dist/protocols/relay/relay.service.js.map +1 -1
  223. package/dist/protocols/v2-dex/index.d.ts +1 -1
  224. package/dist/protocols/v2-dex/index.d.ts.map +1 -1
  225. package/dist/protocols/v2-dex/index.js +15 -0
  226. package/dist/protocols/v2-dex/index.js.map +1 -1
  227. package/dist/protocols/v2-dex/v2-dex.service.d.ts +9 -16
  228. package/dist/protocols/v2-dex/v2-dex.service.d.ts.map +1 -1
  229. package/dist/protocols/v2-dex/v2-dex.service.js +107 -530
  230. package/dist/protocols/v2-dex/v2-dex.service.js.map +1 -1
  231. package/dist/protocols/v2-dex/v2-dex.types.d.ts +32 -32
  232. package/dist/protocols/v2-dex/v2-dex.types.d.ts.map +1 -1
  233. package/dist/protocols/v2-dex/v2-dex.types.js.map +1 -1
  234. package/dist/protocols/v3-dex/adapters/slipstream.adapter.d.ts +42 -0
  235. package/dist/protocols/v3-dex/adapters/slipstream.adapter.d.ts.map +1 -0
  236. package/dist/protocols/v3-dex/adapters/slipstream.adapter.js +185 -0
  237. package/dist/protocols/v3-dex/adapters/slipstream.adapter.js.map +1 -0
  238. package/dist/protocols/v3-dex/adapters/uniswap-fork.adapter.d.ts +40 -0
  239. package/dist/protocols/v3-dex/adapters/uniswap-fork.adapter.d.ts.map +1 -0
  240. package/dist/protocols/v3-dex/adapters/uniswap-fork.adapter.js +237 -0
  241. package/dist/protocols/v3-dex/adapters/uniswap-fork.adapter.js.map +1 -0
  242. package/dist/protocols/v3-dex/adapters/uniswap.adapter.d.ts +39 -0
  243. package/dist/protocols/v3-dex/adapters/uniswap.adapter.d.ts.map +1 -0
  244. package/dist/protocols/v3-dex/adapters/uniswap.adapter.js +226 -0
  245. package/dist/protocols/v3-dex/adapters/uniswap.adapter.js.map +1 -0
  246. package/dist/protocols/v3-dex/index.d.ts +1 -1
  247. package/dist/protocols/v3-dex/index.d.ts.map +1 -1
  248. package/dist/protocols/v3-dex/index.js +15 -0
  249. package/dist/protocols/v3-dex/index.js.map +1 -1
  250. package/dist/protocols/v3-dex/v3-dex.service.d.ts +21 -76
  251. package/dist/protocols/v3-dex/v3-dex.service.d.ts.map +1 -1
  252. package/dist/protocols/v3-dex/v3-dex.service.js +387 -1196
  253. package/dist/protocols/v3-dex/v3-dex.service.js.map +1 -1
  254. package/dist/protocols/v3-dex/v3-dex.types.d.ts +154 -365
  255. package/dist/protocols/v3-dex/v3-dex.types.d.ts.map +1 -1
  256. package/dist/protocols/v3-dex/v3-dex.types.js +13 -1
  257. package/dist/protocols/v3-dex/v3-dex.types.js.map +1 -1
  258. package/dist/protocols/ve33/adapters/blackhole.adapter.d.ts +29 -0
  259. package/dist/protocols/ve33/adapters/blackhole.adapter.d.ts.map +1 -0
  260. package/dist/protocols/ve33/adapters/blackhole.adapter.js +59 -0
  261. package/dist/protocols/ve33/adapters/blackhole.adapter.js.map +1 -0
  262. package/dist/protocols/ve33/adapters/pharaoh.adapter.d.ts +34 -0
  263. package/dist/protocols/ve33/adapters/pharaoh.adapter.d.ts.map +1 -0
  264. package/dist/protocols/ve33/adapters/pharaoh.adapter.js +51 -0
  265. package/dist/protocols/ve33/adapters/pharaoh.adapter.js.map +1 -0
  266. package/dist/protocols/ve33/adapters/solidly.adapter.d.ts +42 -0
  267. package/dist/protocols/ve33/adapters/solidly.adapter.d.ts.map +1 -0
  268. package/dist/protocols/ve33/adapters/solidly.adapter.js +63 -0
  269. package/dist/protocols/ve33/adapters/solidly.adapter.js.map +1 -0
  270. package/dist/protocols/ve33/index.d.ts +3 -0
  271. package/dist/protocols/ve33/index.d.ts.map +1 -0
  272. package/dist/protocols/ve33/index.js +21 -0
  273. package/dist/protocols/ve33/index.js.map +1 -0
  274. package/dist/protocols/ve33/ve33.handlers.d.ts +3 -0
  275. package/dist/protocols/ve33/ve33.handlers.d.ts.map +1 -0
  276. package/dist/protocols/ve33/ve33.handlers.js +187 -0
  277. package/dist/protocols/ve33/ve33.handlers.js.map +1 -0
  278. package/dist/protocols/ve33/ve33.service.d.ts +31 -0
  279. package/dist/protocols/ve33/ve33.service.d.ts.map +1 -0
  280. package/dist/protocols/ve33/ve33.service.js +488 -0
  281. package/dist/protocols/ve33/ve33.service.js.map +1 -0
  282. package/dist/protocols/ve33/ve33.types.d.ts +137 -0
  283. package/dist/protocols/ve33/ve33.types.d.ts.map +1 -0
  284. package/dist/protocols/ve33/ve33.types.js +16 -0
  285. package/dist/protocols/ve33/ve33.types.js.map +1 -0
  286. package/dist/token-launches/jupiter/jupiter-studio-launch.constants.d.ts +40 -0
  287. package/dist/token-launches/jupiter/jupiter-studio-launch.constants.d.ts.map +1 -0
  288. package/dist/token-launches/jupiter/jupiter-studio-launch.constants.js +43 -0
  289. package/dist/token-launches/jupiter/jupiter-studio-launch.constants.js.map +1 -0
  290. package/dist/token-launches/jupiter/jupiter-studio-launch.service.d.ts +10 -0
  291. package/dist/token-launches/jupiter/jupiter-studio-launch.service.d.ts.map +1 -0
  292. package/dist/token-launches/jupiter/jupiter-studio-launch.service.js +56 -0
  293. package/dist/token-launches/jupiter/jupiter-studio-launch.service.js.map +1 -0
  294. package/dist/token-launches/jupiter/jupiter-studio-launch.types.d.ts +49 -0
  295. package/dist/token-launches/jupiter/jupiter-studio-launch.types.d.ts.map +1 -0
  296. package/dist/token-launches/jupiter/jupiter-studio-launch.types.js +3 -0
  297. package/dist/token-launches/jupiter/jupiter-studio-launch.types.js.map +1 -0
  298. package/dist/token-launches/jupiter/jupiter-studio-launch.utils.d.ts +9 -0
  299. package/dist/token-launches/jupiter/jupiter-studio-launch.utils.d.ts.map +1 -0
  300. package/dist/token-launches/jupiter/jupiter-studio-launch.utils.js +82 -0
  301. package/dist/token-launches/jupiter/jupiter-studio-launch.utils.js.map +1 -0
  302. package/dist/token-launches/meteora/meteora-launch.constants.d.ts +11 -0
  303. package/dist/token-launches/meteora/meteora-launch.constants.d.ts.map +1 -0
  304. package/dist/token-launches/meteora/meteora-launch.constants.js +15 -0
  305. package/dist/token-launches/meteora/meteora-launch.constants.js.map +1 -0
  306. package/dist/token-launches/meteora/meteora-launch.service.d.ts +13 -0
  307. package/dist/token-launches/meteora/meteora-launch.service.d.ts.map +1 -0
  308. package/dist/token-launches/meteora/meteora-launch.service.js +64 -0
  309. package/dist/token-launches/meteora/meteora-launch.service.js.map +1 -0
  310. package/dist/token-launches/meteora/meteora-launch.types.d.ts +18 -0
  311. package/dist/token-launches/meteora/meteora-launch.types.d.ts.map +1 -0
  312. package/dist/token-launches/meteora/meteora-launch.types.js +3 -0
  313. package/dist/token-launches/meteora/meteora-launch.types.js.map +1 -0
  314. package/dist/token-launches/meteora/meteora-launch.utils.d.ts +4 -0
  315. package/dist/token-launches/meteora/meteora-launch.utils.d.ts.map +1 -0
  316. package/dist/token-launches/meteora/meteora-launch.utils.js +54 -0
  317. package/dist/token-launches/meteora/meteora-launch.utils.js.map +1 -0
  318. package/dist/token-launches/pump-fun/pump-fun-launch.service.d.ts +13 -0
  319. package/dist/token-launches/pump-fun/pump-fun-launch.service.d.ts.map +1 -0
  320. package/dist/token-launches/pump-fun/pump-fun-launch.service.js +63 -0
  321. package/dist/token-launches/pump-fun/pump-fun-launch.service.js.map +1 -0
  322. package/dist/token-launches/pump-fun/pump-fun-launch.types.d.ts +12 -0
  323. package/dist/token-launches/pump-fun/pump-fun-launch.types.d.ts.map +1 -0
  324. package/dist/token-launches/pump-fun/pump-fun-launch.types.js +3 -0
  325. package/dist/token-launches/pump-fun/pump-fun-launch.types.js.map +1 -0
  326. package/dist/token-launches/raydium-launchlab/raydium-launch.constants.d.ts +13 -0
  327. package/dist/token-launches/raydium-launchlab/raydium-launch.constants.d.ts.map +1 -0
  328. package/dist/token-launches/raydium-launchlab/raydium-launch.constants.js +18 -0
  329. package/dist/token-launches/raydium-launchlab/raydium-launch.constants.js.map +1 -0
  330. package/dist/token-launches/raydium-launchlab/raydium-launch.service.d.ts +13 -0
  331. package/dist/token-launches/raydium-launchlab/raydium-launch.service.d.ts.map +1 -0
  332. package/dist/token-launches/raydium-launchlab/raydium-launch.service.js +102 -0
  333. package/dist/token-launches/raydium-launchlab/raydium-launch.service.js.map +1 -0
  334. package/dist/token-launches/raydium-launchlab/raydium-launch.types.d.ts +57 -0
  335. package/dist/token-launches/raydium-launchlab/raydium-launch.types.d.ts.map +1 -0
  336. package/dist/token-launches/raydium-launchlab/raydium-launch.types.js +3 -0
  337. package/dist/token-launches/raydium-launchlab/raydium-launch.types.js.map +1 -0
  338. package/dist/types/enums.d.ts +8 -3
  339. package/dist/types/enums.d.ts.map +1 -1
  340. package/dist/types/enums.js +5 -0
  341. package/dist/types/enums.js.map +1 -1
  342. package/dist/types/price-params.d.ts +12 -3
  343. package/dist/types/price-params.d.ts.map +1 -1
  344. package/dist/types/price-response.d.ts +7 -4
  345. package/dist/types/price-response.d.ts.map +1 -1
  346. package/dist/types/quote-response.d.ts +6 -3
  347. package/dist/types/quote-response.d.ts.map +1 -1
  348. package/dist/utils/chainId-to-chain.d.ts +4 -0
  349. package/dist/utils/chainId-to-chain.d.ts.map +1 -0
  350. package/dist/utils/chainId-to-chain.js +44 -0
  351. package/dist/utils/chainId-to-chain.js.map +1 -0
  352. package/dist/utils/dex-deployment-key.d.ts +14 -0
  353. package/dist/utils/dex-deployment-key.d.ts.map +1 -0
  354. package/dist/utils/dex-deployment-key.js +17 -0
  355. package/dist/utils/dex-deployment-key.js.map +1 -0
  356. package/dist/utils/min-amount-out.d.ts +12 -0
  357. package/dist/utils/min-amount-out.d.ts.map +1 -0
  358. package/dist/utils/min-amount-out.js +18 -0
  359. package/dist/utils/min-amount-out.js.map +1 -0
  360. package/dist/utils/norm-dex-token.d.ts +13 -0
  361. package/dist/utils/norm-dex-token.d.ts.map +1 -0
  362. package/dist/utils/norm-dex-token.js +19 -0
  363. package/dist/utils/norm-dex-token.js.map +1 -0
  364. package/dist/utils/pair-result.d.ts +3 -0
  365. package/dist/utils/pair-result.d.ts.map +1 -0
  366. package/dist/utils/pair-result.js +11 -0
  367. package/dist/utils/pair-result.js.map +1 -0
  368. package/dist/utils/sort-addresses.d.ts +3 -0
  369. package/dist/utils/sort-addresses.d.ts.map +1 -0
  370. package/dist/utils/sort-addresses.js +16 -0
  371. package/dist/utils/sort-addresses.js.map +1 -0
  372. package/dist/utils/to-pool-key.d.ts +4 -0
  373. package/dist/utils/to-pool-key.d.ts.map +1 -0
  374. package/dist/utils/to-pool-key.js +15 -0
  375. package/dist/utils/to-pool-key.js.map +1 -0
  376. package/dist/utils/transaction-builder.util.d.ts +3 -0
  377. package/dist/utils/transaction-builder.util.d.ts.map +1 -0
  378. package/dist/utils/transaction-builder.util.js +13 -0
  379. package/dist/utils/transaction-builder.util.js.map +1 -0
  380. package/package.json +2 -2
  381. package/dist/lib/dex/uniswapv3/v3-offchain-quoter.service.d.ts.map +0 -1
  382. package/dist/lib/dex/uniswapv3/v3-offchain-quoter.service.js.map +0 -1
@@ -0,0 +1,587 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.lfjRouterAbi = void 0;
4
+ exports.lfjRouterAbi = [
5
+ {
6
+ inputs: [
7
+ { internalType: 'contract ILBFactory', name: 'factory2_2', type: 'address' },
8
+ { internalType: 'contract IJoeFactory', name: 'factoryV1', type: 'address' },
9
+ { internalType: 'contract ILBLegacyFactory', name: 'legacyFactory', type: 'address' },
10
+ { internalType: 'contract ILBLegacyRouter', name: 'legacyRouter', type: 'address' },
11
+ { internalType: 'contract ILBFactory', name: 'factory2_1', type: 'address' },
12
+ { internalType: 'contract IWNATIVE', name: 'wnative', type: 'address' },
13
+ ],
14
+ stateMutability: 'nonpayable',
15
+ type: 'constructor',
16
+ },
17
+ { inputs: [], name: 'JoeLibrary__InsufficientAmount', type: 'error' },
18
+ { inputs: [], name: 'JoeLibrary__InsufficientLiquidity', type: 'error' },
19
+ {
20
+ inputs: [{ internalType: 'uint256', name: 'amountSlippage', type: 'uint256' }],
21
+ name: 'LBRouter__AmountSlippageBPTooBig',
22
+ type: 'error',
23
+ },
24
+ {
25
+ inputs: [
26
+ { internalType: 'uint256', name: 'amountXMin', type: 'uint256' },
27
+ { internalType: 'uint256', name: 'amountX', type: 'uint256' },
28
+ { internalType: 'uint256', name: 'amountYMin', type: 'uint256' },
29
+ { internalType: 'uint256', name: 'amountY', type: 'uint256' },
30
+ ],
31
+ name: 'LBRouter__AmountSlippageCaught',
32
+ type: 'error',
33
+ },
34
+ {
35
+ inputs: [{ internalType: 'uint256', name: 'id', type: 'uint256' }],
36
+ name: 'LBRouter__BinReserveOverflows',
37
+ type: 'error',
38
+ },
39
+ { inputs: [], name: 'LBRouter__BrokenSwapSafetyCheck', type: 'error' },
40
+ {
41
+ inputs: [
42
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
43
+ { internalType: 'uint256', name: 'currentTimestamp', type: 'uint256' },
44
+ ],
45
+ name: 'LBRouter__DeadlineExceeded',
46
+ type: 'error',
47
+ },
48
+ {
49
+ inputs: [
50
+ { internalType: 'address', name: 'recipient', type: 'address' },
51
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
52
+ ],
53
+ name: 'LBRouter__FailedToSendNATIVE',
54
+ type: 'error',
55
+ },
56
+ {
57
+ inputs: [
58
+ { internalType: 'uint256', name: 'idDesired', type: 'uint256' },
59
+ { internalType: 'uint256', name: 'idSlippage', type: 'uint256' },
60
+ ],
61
+ name: 'LBRouter__IdDesiredOverflows',
62
+ type: 'error',
63
+ },
64
+ {
65
+ inputs: [{ internalType: 'int256', name: 'id', type: 'int256' }],
66
+ name: 'LBRouter__IdOverflows',
67
+ type: 'error',
68
+ },
69
+ {
70
+ inputs: [
71
+ { internalType: 'uint256', name: 'activeIdDesired', type: 'uint256' },
72
+ { internalType: 'uint256', name: 'idSlippage', type: 'uint256' },
73
+ { internalType: 'uint256', name: 'activeId', type: 'uint256' },
74
+ ],
75
+ name: 'LBRouter__IdSlippageCaught',
76
+ type: 'error',
77
+ },
78
+ {
79
+ inputs: [
80
+ { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' },
81
+ { internalType: 'uint256', name: 'amountOut', type: 'uint256' },
82
+ ],
83
+ name: 'LBRouter__InsufficientAmountOut',
84
+ type: 'error',
85
+ },
86
+ {
87
+ inputs: [{ internalType: 'address', name: 'wrongToken', type: 'address' }],
88
+ name: 'LBRouter__InvalidTokenPath',
89
+ type: 'error',
90
+ },
91
+ {
92
+ inputs: [{ internalType: 'uint256', name: 'version', type: 'uint256' }],
93
+ name: 'LBRouter__InvalidVersion',
94
+ type: 'error',
95
+ },
96
+ { inputs: [], name: 'LBRouter__LengthsMismatch', type: 'error' },
97
+ {
98
+ inputs: [
99
+ { internalType: 'uint256', name: 'amountInMax', type: 'uint256' },
100
+ { internalType: 'uint256', name: 'amountIn', type: 'uint256' },
101
+ ],
102
+ name: 'LBRouter__MaxAmountInExceeded',
103
+ type: 'error',
104
+ },
105
+ { inputs: [], name: 'LBRouter__NotFactoryOwner', type: 'error' },
106
+ {
107
+ inputs: [
108
+ { internalType: 'address', name: 'tokenX', type: 'address' },
109
+ { internalType: 'address', name: 'tokenY', type: 'address' },
110
+ { internalType: 'uint256', name: 'binStep', type: 'uint256' },
111
+ ],
112
+ name: 'LBRouter__PairNotCreated',
113
+ type: 'error',
114
+ },
115
+ { inputs: [], name: 'LBRouter__SenderIsNotWNATIVE', type: 'error' },
116
+ {
117
+ inputs: [{ internalType: 'uint256', name: 'id', type: 'uint256' }],
118
+ name: 'LBRouter__SwapOverflows',
119
+ type: 'error',
120
+ },
121
+ {
122
+ inputs: [{ internalType: 'uint256', name: 'excess', type: 'uint256' }],
123
+ name: 'LBRouter__TooMuchTokensIn',
124
+ type: 'error',
125
+ },
126
+ {
127
+ inputs: [
128
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
129
+ { internalType: 'uint256', name: 'reserve', type: 'uint256' },
130
+ ],
131
+ name: 'LBRouter__WrongAmounts',
132
+ type: 'error',
133
+ },
134
+ {
135
+ inputs: [
136
+ { internalType: 'address', name: 'tokenX', type: 'address' },
137
+ { internalType: 'address', name: 'tokenY', type: 'address' },
138
+ { internalType: 'uint256', name: 'amountX', type: 'uint256' },
139
+ { internalType: 'uint256', name: 'amountY', type: 'uint256' },
140
+ { internalType: 'uint256', name: 'msgValue', type: 'uint256' },
141
+ ],
142
+ name: 'LBRouter__WrongNativeLiquidityParameters',
143
+ type: 'error',
144
+ },
145
+ { inputs: [], name: 'LBRouter__WrongTokenOrder', type: 'error' },
146
+ { inputs: [], name: 'PackedUint128Math__SubUnderflow', type: 'error' },
147
+ { inputs: [], name: 'TokenHelper__TransferFailed', type: 'error' },
148
+ {
149
+ inputs: [
150
+ {
151
+ components: [
152
+ { internalType: 'contract IERC20', name: 'tokenX', type: 'address' },
153
+ { internalType: 'contract IERC20', name: 'tokenY', type: 'address' },
154
+ { internalType: 'uint256', name: 'binStep', type: 'uint256' },
155
+ { internalType: 'uint256', name: 'amountX', type: 'uint256' },
156
+ { internalType: 'uint256', name: 'amountY', type: 'uint256' },
157
+ { internalType: 'uint256', name: 'amountXMin', type: 'uint256' },
158
+ { internalType: 'uint256', name: 'amountYMin', type: 'uint256' },
159
+ { internalType: 'uint256', name: 'activeIdDesired', type: 'uint256' },
160
+ { internalType: 'uint256', name: 'idSlippage', type: 'uint256' },
161
+ { internalType: 'int256[]', name: 'deltaIds', type: 'int256[]' },
162
+ { internalType: 'uint256[]', name: 'distributionX', type: 'uint256[]' },
163
+ { internalType: 'uint256[]', name: 'distributionY', type: 'uint256[]' },
164
+ { internalType: 'address', name: 'to', type: 'address' },
165
+ { internalType: 'address', name: 'refundTo', type: 'address' },
166
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
167
+ ],
168
+ internalType: 'struct ILBRouter.LiquidityParameters',
169
+ name: 'liquidityParameters',
170
+ type: 'tuple',
171
+ },
172
+ ],
173
+ name: 'addLiquidity',
174
+ outputs: [
175
+ { internalType: 'uint256', name: 'amountXAdded', type: 'uint256' },
176
+ { internalType: 'uint256', name: 'amountYAdded', type: 'uint256' },
177
+ { internalType: 'uint256', name: 'amountXLeft', type: 'uint256' },
178
+ { internalType: 'uint256', name: 'amountYLeft', type: 'uint256' },
179
+ { internalType: 'uint256[]', name: 'depositIds', type: 'uint256[]' },
180
+ { internalType: 'uint256[]', name: 'liquidityMinted', type: 'uint256[]' },
181
+ ],
182
+ stateMutability: 'nonpayable',
183
+ type: 'function',
184
+ },
185
+ {
186
+ inputs: [
187
+ {
188
+ components: [
189
+ { internalType: 'contract IERC20', name: 'tokenX', type: 'address' },
190
+ { internalType: 'contract IERC20', name: 'tokenY', type: 'address' },
191
+ { internalType: 'uint256', name: 'binStep', type: 'uint256' },
192
+ { internalType: 'uint256', name: 'amountX', type: 'uint256' },
193
+ { internalType: 'uint256', name: 'amountY', type: 'uint256' },
194
+ { internalType: 'uint256', name: 'amountXMin', type: 'uint256' },
195
+ { internalType: 'uint256', name: 'amountYMin', type: 'uint256' },
196
+ { internalType: 'uint256', name: 'activeIdDesired', type: 'uint256' },
197
+ { internalType: 'uint256', name: 'idSlippage', type: 'uint256' },
198
+ { internalType: 'int256[]', name: 'deltaIds', type: 'int256[]' },
199
+ { internalType: 'uint256[]', name: 'distributionX', type: 'uint256[]' },
200
+ { internalType: 'uint256[]', name: 'distributionY', type: 'uint256[]' },
201
+ { internalType: 'address', name: 'to', type: 'address' },
202
+ { internalType: 'address', name: 'refundTo', type: 'address' },
203
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
204
+ ],
205
+ internalType: 'struct ILBRouter.LiquidityParameters',
206
+ name: 'liquidityParameters',
207
+ type: 'tuple',
208
+ },
209
+ ],
210
+ name: 'addLiquidityNATIVE',
211
+ outputs: [
212
+ { internalType: 'uint256', name: 'amountXAdded', type: 'uint256' },
213
+ { internalType: 'uint256', name: 'amountYAdded', type: 'uint256' },
214
+ { internalType: 'uint256', name: 'amountXLeft', type: 'uint256' },
215
+ { internalType: 'uint256', name: 'amountYLeft', type: 'uint256' },
216
+ { internalType: 'uint256[]', name: 'depositIds', type: 'uint256[]' },
217
+ { internalType: 'uint256[]', name: 'liquidityMinted', type: 'uint256[]' },
218
+ ],
219
+ stateMutability: 'payable',
220
+ type: 'function',
221
+ },
222
+ {
223
+ inputs: [
224
+ { internalType: 'contract IERC20', name: 'tokenX', type: 'address' },
225
+ { internalType: 'contract IERC20', name: 'tokenY', type: 'address' },
226
+ { internalType: 'uint24', name: 'activeId', type: 'uint24' },
227
+ { internalType: 'uint16', name: 'binStep', type: 'uint16' },
228
+ ],
229
+ name: 'createLBPair',
230
+ outputs: [{ internalType: 'contract ILBPair', name: 'pair', type: 'address' }],
231
+ stateMutability: 'nonpayable',
232
+ type: 'function',
233
+ },
234
+ {
235
+ inputs: [],
236
+ name: 'getFactory',
237
+ outputs: [{ internalType: 'contract ILBFactory', name: 'lbFactory', type: 'address' }],
238
+ stateMutability: 'view',
239
+ type: 'function',
240
+ },
241
+ {
242
+ inputs: [],
243
+ name: 'getFactoryV2_1',
244
+ outputs: [{ internalType: 'contract ILBFactory', name: 'lbFactory', type: 'address' }],
245
+ stateMutability: 'view',
246
+ type: 'function',
247
+ },
248
+ {
249
+ inputs: [
250
+ { internalType: 'contract ILBPair', name: 'pair', type: 'address' },
251
+ { internalType: 'uint256', name: 'price', type: 'uint256' },
252
+ ],
253
+ name: 'getIdFromPrice',
254
+ outputs: [{ internalType: 'uint24', name: '', type: 'uint24' }],
255
+ stateMutability: 'view',
256
+ type: 'function',
257
+ },
258
+ {
259
+ inputs: [],
260
+ name: 'getLegacyFactory',
261
+ outputs: [
262
+ { internalType: 'contract ILBLegacyFactory', name: 'legacyLBfactory', type: 'address' },
263
+ ],
264
+ stateMutability: 'view',
265
+ type: 'function',
266
+ },
267
+ {
268
+ inputs: [],
269
+ name: 'getLegacyRouter',
270
+ outputs: [{ internalType: 'contract ILBLegacyRouter', name: 'legacyRouter', type: 'address' }],
271
+ stateMutability: 'view',
272
+ type: 'function',
273
+ },
274
+ {
275
+ inputs: [
276
+ { internalType: 'contract ILBPair', name: 'pair', type: 'address' },
277
+ { internalType: 'uint24', name: 'id', type: 'uint24' },
278
+ ],
279
+ name: 'getPriceFromId',
280
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
281
+ stateMutability: 'view',
282
+ type: 'function',
283
+ },
284
+ {
285
+ inputs: [
286
+ { internalType: 'contract ILBPair', name: 'pair', type: 'address' },
287
+ { internalType: 'uint128', name: 'amountOut', type: 'uint128' },
288
+ { internalType: 'bool', name: 'swapForY', type: 'bool' },
289
+ ],
290
+ name: 'getSwapIn',
291
+ outputs: [
292
+ { internalType: 'uint128', name: 'amountIn', type: 'uint128' },
293
+ { internalType: 'uint128', name: 'amountOutLeft', type: 'uint128' },
294
+ { internalType: 'uint128', name: 'fee', type: 'uint128' },
295
+ ],
296
+ stateMutability: 'view',
297
+ type: 'function',
298
+ },
299
+ {
300
+ inputs: [
301
+ { internalType: 'contract ILBPair', name: 'pair', type: 'address' },
302
+ { internalType: 'uint128', name: 'amountIn', type: 'uint128' },
303
+ { internalType: 'bool', name: 'swapForY', type: 'bool' },
304
+ ],
305
+ name: 'getSwapOut',
306
+ outputs: [
307
+ { internalType: 'uint128', name: 'amountInLeft', type: 'uint128' },
308
+ { internalType: 'uint128', name: 'amountOut', type: 'uint128' },
309
+ { internalType: 'uint128', name: 'fee', type: 'uint128' },
310
+ ],
311
+ stateMutability: 'view',
312
+ type: 'function',
313
+ },
314
+ {
315
+ inputs: [],
316
+ name: 'getV1Factory',
317
+ outputs: [{ internalType: 'contract IJoeFactory', name: 'factoryV1', type: 'address' }],
318
+ stateMutability: 'view',
319
+ type: 'function',
320
+ },
321
+ {
322
+ inputs: [],
323
+ name: 'getWNATIVE',
324
+ outputs: [{ internalType: 'contract IWNATIVE', name: 'wnative', type: 'address' }],
325
+ stateMutability: 'view',
326
+ type: 'function',
327
+ },
328
+ {
329
+ inputs: [
330
+ { internalType: 'contract IERC20', name: 'tokenX', type: 'address' },
331
+ { internalType: 'contract IERC20', name: 'tokenY', type: 'address' },
332
+ { internalType: 'uint16', name: 'binStep', type: 'uint16' },
333
+ { internalType: 'uint256', name: 'amountXMin', type: 'uint256' },
334
+ { internalType: 'uint256', name: 'amountYMin', type: 'uint256' },
335
+ { internalType: 'uint256[]', name: 'ids', type: 'uint256[]' },
336
+ { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' },
337
+ { internalType: 'address', name: 'to', type: 'address' },
338
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
339
+ ],
340
+ name: 'removeLiquidity',
341
+ outputs: [
342
+ { internalType: 'uint256', name: 'amountX', type: 'uint256' },
343
+ { internalType: 'uint256', name: 'amountY', type: 'uint256' },
344
+ ],
345
+ stateMutability: 'nonpayable',
346
+ type: 'function',
347
+ },
348
+ {
349
+ inputs: [
350
+ { internalType: 'contract IERC20', name: 'token', type: 'address' },
351
+ { internalType: 'uint16', name: 'binStep', type: 'uint16' },
352
+ { internalType: 'uint256', name: 'amountTokenMin', type: 'uint256' },
353
+ { internalType: 'uint256', name: 'amountNATIVEMin', type: 'uint256' },
354
+ { internalType: 'uint256[]', name: 'ids', type: 'uint256[]' },
355
+ { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' },
356
+ { internalType: 'address payable', name: 'to', type: 'address' },
357
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
358
+ ],
359
+ name: 'removeLiquidityNATIVE',
360
+ outputs: [
361
+ { internalType: 'uint256', name: 'amountToken', type: 'uint256' },
362
+ { internalType: 'uint256', name: 'amountNATIVE', type: 'uint256' },
363
+ ],
364
+ stateMutability: 'nonpayable',
365
+ type: 'function',
366
+ },
367
+ {
368
+ inputs: [
369
+ { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' },
370
+ {
371
+ components: [
372
+ { internalType: 'uint256[]', name: 'pairBinSteps', type: 'uint256[]' },
373
+ { internalType: 'enum ILBRouter.Version[]', name: 'versions', type: 'uint8[]' },
374
+ { internalType: 'contract IERC20[]', name: 'tokenPath', type: 'address[]' },
375
+ ],
376
+ internalType: 'struct ILBRouter.Path',
377
+ name: 'path',
378
+ type: 'tuple',
379
+ },
380
+ { internalType: 'address', name: 'to', type: 'address' },
381
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
382
+ ],
383
+ name: 'swapExactNATIVEForTokens',
384
+ outputs: [{ internalType: 'uint256', name: 'amountOut', type: 'uint256' }],
385
+ stateMutability: 'payable',
386
+ type: 'function',
387
+ },
388
+ {
389
+ inputs: [
390
+ { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' },
391
+ {
392
+ components: [
393
+ { internalType: 'uint256[]', name: 'pairBinSteps', type: 'uint256[]' },
394
+ { internalType: 'enum ILBRouter.Version[]', name: 'versions', type: 'uint8[]' },
395
+ { internalType: 'contract IERC20[]', name: 'tokenPath', type: 'address[]' },
396
+ ],
397
+ internalType: 'struct ILBRouter.Path',
398
+ name: 'path',
399
+ type: 'tuple',
400
+ },
401
+ { internalType: 'address', name: 'to', type: 'address' },
402
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
403
+ ],
404
+ name: 'swapExactNATIVEForTokensSupportingFeeOnTransferTokens',
405
+ outputs: [{ internalType: 'uint256', name: 'amountOut', type: 'uint256' }],
406
+ stateMutability: 'payable',
407
+ type: 'function',
408
+ },
409
+ {
410
+ inputs: [
411
+ { internalType: 'uint256', name: 'amountIn', type: 'uint256' },
412
+ { internalType: 'uint256', name: 'amountOutMinNATIVE', type: 'uint256' },
413
+ {
414
+ components: [
415
+ { internalType: 'uint256[]', name: 'pairBinSteps', type: 'uint256[]' },
416
+ { internalType: 'enum ILBRouter.Version[]', name: 'versions', type: 'uint8[]' },
417
+ { internalType: 'contract IERC20[]', name: 'tokenPath', type: 'address[]' },
418
+ ],
419
+ internalType: 'struct ILBRouter.Path',
420
+ name: 'path',
421
+ type: 'tuple',
422
+ },
423
+ { internalType: 'address payable', name: 'to', type: 'address' },
424
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
425
+ ],
426
+ name: 'swapExactTokensForNATIVE',
427
+ outputs: [{ internalType: 'uint256', name: 'amountOut', type: 'uint256' }],
428
+ stateMutability: 'nonpayable',
429
+ type: 'function',
430
+ },
431
+ {
432
+ inputs: [
433
+ { internalType: 'uint256', name: 'amountIn', type: 'uint256' },
434
+ { internalType: 'uint256', name: 'amountOutMinNATIVE', type: 'uint256' },
435
+ {
436
+ components: [
437
+ { internalType: 'uint256[]', name: 'pairBinSteps', type: 'uint256[]' },
438
+ { internalType: 'enum ILBRouter.Version[]', name: 'versions', type: 'uint8[]' },
439
+ { internalType: 'contract IERC20[]', name: 'tokenPath', type: 'address[]' },
440
+ ],
441
+ internalType: 'struct ILBRouter.Path',
442
+ name: 'path',
443
+ type: 'tuple',
444
+ },
445
+ { internalType: 'address payable', name: 'to', type: 'address' },
446
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
447
+ ],
448
+ name: 'swapExactTokensForNATIVESupportingFeeOnTransferTokens',
449
+ outputs: [{ internalType: 'uint256', name: 'amountOut', type: 'uint256' }],
450
+ stateMutability: 'nonpayable',
451
+ type: 'function',
452
+ },
453
+ {
454
+ inputs: [
455
+ { internalType: 'uint256', name: 'amountIn', type: 'uint256' },
456
+ { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' },
457
+ {
458
+ components: [
459
+ { internalType: 'uint256[]', name: 'pairBinSteps', type: 'uint256[]' },
460
+ { internalType: 'enum ILBRouter.Version[]', name: 'versions', type: 'uint8[]' },
461
+ { internalType: 'contract IERC20[]', name: 'tokenPath', type: 'address[]' },
462
+ ],
463
+ internalType: 'struct ILBRouter.Path',
464
+ name: 'path',
465
+ type: 'tuple',
466
+ },
467
+ { internalType: 'address', name: 'to', type: 'address' },
468
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
469
+ ],
470
+ name: 'swapExactTokensForTokens',
471
+ outputs: [{ internalType: 'uint256', name: 'amountOut', type: 'uint256' }],
472
+ stateMutability: 'nonpayable',
473
+ type: 'function',
474
+ },
475
+ {
476
+ inputs: [
477
+ { internalType: 'uint256', name: 'amountIn', type: 'uint256' },
478
+ { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' },
479
+ {
480
+ components: [
481
+ { internalType: 'uint256[]', name: 'pairBinSteps', type: 'uint256[]' },
482
+ { internalType: 'enum ILBRouter.Version[]', name: 'versions', type: 'uint8[]' },
483
+ { internalType: 'contract IERC20[]', name: 'tokenPath', type: 'address[]' },
484
+ ],
485
+ internalType: 'struct ILBRouter.Path',
486
+ name: 'path',
487
+ type: 'tuple',
488
+ },
489
+ { internalType: 'address', name: 'to', type: 'address' },
490
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
491
+ ],
492
+ name: 'swapExactTokensForTokensSupportingFeeOnTransferTokens',
493
+ outputs: [{ internalType: 'uint256', name: 'amountOut', type: 'uint256' }],
494
+ stateMutability: 'nonpayable',
495
+ type: 'function',
496
+ },
497
+ {
498
+ inputs: [
499
+ { internalType: 'uint256', name: 'amountOut', type: 'uint256' },
500
+ {
501
+ components: [
502
+ { internalType: 'uint256[]', name: 'pairBinSteps', type: 'uint256[]' },
503
+ { internalType: 'enum ILBRouter.Version[]', name: 'versions', type: 'uint8[]' },
504
+ { internalType: 'contract IERC20[]', name: 'tokenPath', type: 'address[]' },
505
+ ],
506
+ internalType: 'struct ILBRouter.Path',
507
+ name: 'path',
508
+ type: 'tuple',
509
+ },
510
+ { internalType: 'address', name: 'to', type: 'address' },
511
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
512
+ ],
513
+ name: 'swapNATIVEForExactTokens',
514
+ outputs: [{ internalType: 'uint256[]', name: 'amountsIn', type: 'uint256[]' }],
515
+ stateMutability: 'payable',
516
+ type: 'function',
517
+ },
518
+ {
519
+ inputs: [
520
+ { internalType: 'uint256', name: 'amountNATIVEOut', type: 'uint256' },
521
+ { internalType: 'uint256', name: 'amountInMax', type: 'uint256' },
522
+ {
523
+ components: [
524
+ { internalType: 'uint256[]', name: 'pairBinSteps', type: 'uint256[]' },
525
+ { internalType: 'enum ILBRouter.Version[]', name: 'versions', type: 'uint8[]' },
526
+ { internalType: 'contract IERC20[]', name: 'tokenPath', type: 'address[]' },
527
+ ],
528
+ internalType: 'struct ILBRouter.Path',
529
+ name: 'path',
530
+ type: 'tuple',
531
+ },
532
+ { internalType: 'address payable', name: 'to', type: 'address' },
533
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
534
+ ],
535
+ name: 'swapTokensForExactNATIVE',
536
+ outputs: [{ internalType: 'uint256[]', name: 'amountsIn', type: 'uint256[]' }],
537
+ stateMutability: 'nonpayable',
538
+ type: 'function',
539
+ },
540
+ {
541
+ inputs: [
542
+ { internalType: 'uint256', name: 'amountOut', type: 'uint256' },
543
+ { internalType: 'uint256', name: 'amountInMax', type: 'uint256' },
544
+ {
545
+ components: [
546
+ { internalType: 'uint256[]', name: 'pairBinSteps', type: 'uint256[]' },
547
+ { internalType: 'enum ILBRouter.Version[]', name: 'versions', type: 'uint8[]' },
548
+ { internalType: 'contract IERC20[]', name: 'tokenPath', type: 'address[]' },
549
+ ],
550
+ internalType: 'struct ILBRouter.Path',
551
+ name: 'path',
552
+ type: 'tuple',
553
+ },
554
+ { internalType: 'address', name: 'to', type: 'address' },
555
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
556
+ ],
557
+ name: 'swapTokensForExactTokens',
558
+ outputs: [{ internalType: 'uint256[]', name: 'amountsIn', type: 'uint256[]' }],
559
+ stateMutability: 'nonpayable',
560
+ type: 'function',
561
+ },
562
+ {
563
+ inputs: [
564
+ { internalType: 'contract IERC20', name: 'token', type: 'address' },
565
+ { internalType: 'address', name: 'to', type: 'address' },
566
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
567
+ ],
568
+ name: 'sweep',
569
+ outputs: [],
570
+ stateMutability: 'nonpayable',
571
+ type: 'function',
572
+ },
573
+ {
574
+ inputs: [
575
+ { internalType: 'contract ILBToken', name: 'lbToken', type: 'address' },
576
+ { internalType: 'address', name: 'to', type: 'address' },
577
+ { internalType: 'uint256[]', name: 'ids', type: 'uint256[]' },
578
+ { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' },
579
+ ],
580
+ name: 'sweepLBToken',
581
+ outputs: [],
582
+ stateMutability: 'nonpayable',
583
+ type: 'function',
584
+ },
585
+ { stateMutability: 'payable', type: 'receive' },
586
+ ];
587
+ //# sourceMappingURL=lfj-router.abi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lfj-router.abi.js","sourceRoot":"","sources":["../../../../src/lib/dex/lfj/lfj-router.abi.ts"],"names":[],"mappings":";;;AAEa,QAAA,YAAY,GAAQ;IAC/B;QACE,MAAM,EAAE;YACN,EAAE,YAAY,EAAE,qBAAqB,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE;YAC5E,EAAE,YAAY,EAAE,sBAAsB,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE;YAC5E,EAAE,YAAY,EAAE,2BAA2B,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,SAAS,EAAE;YACrF,EAAE,YAAY,EAAE,0BAA0B,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE;YACnF,EAAE,YAAY,EAAE,qBAAqB,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE;YAC5E,EAAE,YAAY,EAAE,mBAAmB,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;SACxE;QACD,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,aAAa;KACpB;IACD,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,gCAAgC,EAAE,IAAI,EAAE,OAAO,EAAE;IACrE,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,mCAAmC,EAAE,IAAI,EAAE,OAAO,EAAE;IACxE;QACE,MAAM,EAAE,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QAC9E,IAAI,EAAE,kCAAkC;QACxC,IAAI,EAAE,OAAO;KACd;IACD;QACE,MAAM,EAAE;YACN,EAAE,YAAY,EAAE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,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE;YACxD,EAAE,YAAY,EAAE,WAAW,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE;YAC7D,EAAE,YAAY,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE;SAClE;QACD,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,UAAU;KACjB;IACD,EAAE,eAAe,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;CACvC,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { AlgebraPairCandidate, AlgebraPoolAmountOutParams, DexPairDiscoveryConfig, EvmDirectCLMMPoolAmountOutResponse, EvmDirectLegacyPoolAmountOutResponse, GetEvmDexPairParams, IDexPairAdapter } from '../pair-discovery.types';
2
+ import { ChainIdEnum } from '../../../../types/enums';
3
+ import { AlgebraDeployment, AlgebraDexTagEnum } from '../../../../protocols/algebra';
4
+ export declare class AlgebraPairAdapter implements IDexPairAdapter {
5
+ chains: ChainIdEnum[];
6
+ dexes: AlgebraDexTagEnum[];
7
+ deployments: Partial<Record<ChainIdEnum, AlgebraDeployment[]>>;
8
+ private _clients;
9
+ constructor(config: DexPairDiscoveryConfig);
10
+ getPairInfo(params: GetEvmDexPairParams): Promise<AlgebraPairCandidate>;
11
+ calculateAmountOut(params: AlgebraPoolAmountOutParams): Promise<EvmDirectCLMMPoolAmountOutResponse | EvmDirectLegacyPoolAmountOutResponse>;
12
+ /**
13
+ * Compute all possible Algebra pool addresses for the given token pair across the provided deployments.
14
+ * Includes both default pools (salt = keccak256(abi.encode(token0, token1)))
15
+ * and custom pools (salt = keccak256(abi.encode(customDeployer, token0, token1))).
16
+ */
17
+ private _computePairAddresses;
18
+ private _computePairAddressesForDeployment;
19
+ /** Minimal CREATE2 helper for address derivation. */
20
+ private _create2;
21
+ }
22
+ //# sourceMappingURL=algebra-dex-pair-discovery.adapter.d.ts.map