@paraswap/dex-lib 4.2.5-uni-v4-ticks-fix.2 → 4.2.5

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 (375) hide show
  1. package/build/abi/AaveV1_lending_pool.json +27 -0
  2. package/build/abi/Aave_GSM.json +751 -0
  3. package/build/abi/BProtocol.json +1155 -0
  4. package/build/abi/Balancer.json +257 -0
  5. package/build/abi/BalancerV2.json +1179 -0
  6. package/build/abi/Jarvis.json +1172 -0
  7. package/build/abi/MStableAsset.json +1545 -0
  8. package/build/abi/OneInchLp.json +1304 -0
  9. package/build/abi/Onebit.json +736 -0
  10. package/build/abi/RamsesV2Pool.abi.json +1554 -0
  11. package/build/abi/RamsesV2Quoter.abi.json +274 -0
  12. package/build/abi/Shell.json +1294 -0
  13. package/build/abi/TraderJoeV2Router.json +50 -0
  14. package/build/abi/USDM.json +807 -0
  15. package/build/abi/UniswapV2Router.json +397 -0
  16. package/build/abi/angle-transmuter/ChainlinkAccessControlledOffchainAggregator.json +1246 -0
  17. package/build/abi/angle-transmuter/ChainlinkEACAggregatorProxy.json +509 -0
  18. package/build/abi/curve-v1/CurveBUSDv2.abi.json +1356 -0
  19. package/build/abi/curve-v1/CurveTokenV1.json +305 -0
  20. package/build/abi/curve-v1/CurveTokenV2.json +318 -0
  21. package/build/abi/curve-v1/CurveV1StableNg.json +1452 -0
  22. package/build/abi/curve-v1/CurveV2Swap.json +700 -0
  23. package/build/abi/curve-v1/FactoryCryptoRegistry.json +316 -0
  24. package/build/abi/curve-v1/FactoryRegistry.json +508 -0
  25. package/build/abi/curve-v1/StableSwapAave.json +1152 -0
  26. package/build/abi/curve-v1/StableSwapBUSD.json +814 -0
  27. package/build/abi/curve-v1/StableSwapCompound.json +814 -0
  28. package/build/abi/curve-v1/StableSwapIDLE.json +1253 -0
  29. package/build/abi/curve-v1/StableSwapPax.json +865 -0
  30. package/build/abi/curve-v1/StableSwapSnow.json +900 -0
  31. package/build/abi/curve-v1/StableSwapUSDN.json +1004 -0
  32. package/build/abi/curve-v1/StableSwapUSDT.json +814 -0
  33. package/build/abi/curve-v1/StableSwapY.json +814 -0
  34. package/build/abi/inception/inception-ineth-pool.json +1062 -0
  35. package/build/abi/inception/inception-ineth.json +609 -0
  36. package/build/abi/inception/inception-ratio-feed.json +329 -0
  37. package/build/abi/inception/inception-vault.json +991 -0
  38. package/build/abi/kyberdmm/kyber-storage.abi.json +824 -0
  39. package/build/abi/kyberdmm.abi.json +1148 -0
  40. package/build/abi/maverick-v2/MaverickV2Quoter.json +278 -0
  41. package/build/abi/nerve/nerve-metapool.json +790 -0
  42. package/build/abi/platypus/asset.json +490 -0
  43. package/build/abi/platypus/avax-pool.json +820 -0
  44. package/build/abi/platypus/oracle.json +119 -0
  45. package/build/abi/platypus/pool.json +677 -0
  46. package/build/abi/smardex/all/smardex-router.json +648 -0
  47. package/build/abi/smardex/layer-1/smardex-factory.json +242 -0
  48. package/build/abi/smardex/layer-1/smardex-pool.json +506 -0
  49. package/build/abi/smardex/layer-2/smardex-factory.json +185 -0
  50. package/build/abi/smardex/layer-2/smardex-pool.json +578 -0
  51. package/build/abi/swaap-v1/pool.json +1346 -0
  52. package/build/abi/uniswap-v3/UniswapV3Quoter.abi.json +193 -0
  53. package/build/abi/velodrome-slipstream/VelodromeSlipstreamQuoterV2.abi.json +267 -0
  54. package/build/abi/wUSDM.json +757 -0
  55. package/build/abi/zrx.v2.json +1967 -0
  56. package/build/abi/zrx.v3.json +3454 -0
  57. package/build/abi/zrx.v4.json +2193 -0
  58. package/build/dex/OneInchLp.d.ts +24 -0
  59. package/build/dex/OneInchLp.js +43 -0
  60. package/build/dex/OneInchLp.js.map +1 -0
  61. package/build/dex/aave-v1/aave-v1.d.ts +34 -0
  62. package/build/dex/aave-v1/aave-v1.js +180 -0
  63. package/build/dex/aave-v1/aave-v1.js.map +1 -0
  64. package/build/dex/aave-v1/config.d.ts +11 -0
  65. package/build/dex/aave-v1/config.js +20 -0
  66. package/build/dex/aave-v1/config.js.map +1 -0
  67. package/build/dex/aave-v1/tokens-mainnet.json +134 -0
  68. package/build/dex/aave-v1/tokens.d.ts +3 -0
  69. package/build/dex/aave-v1/tokens.js +50 -0
  70. package/build/dex/aave-v1/tokens.js.map +1 -0
  71. package/build/dex/aave-v1/types.d.ts +12 -0
  72. package/build/dex/aave-v1/types.js +3 -0
  73. package/build/dex/aave-v1/types.js.map +1 -0
  74. package/build/dex/bProtocol/bProtocol.d.ts +15 -0
  75. package/build/dex/bProtocol/bProtocol.js +56 -0
  76. package/build/dex/bProtocol/bProtocol.js.map +1 -0
  77. package/build/dex/bProtocol/types.d.ts +11 -0
  78. package/build/dex/bProtocol/types.js +8 -0
  79. package/build/dex/bProtocol/types.js.map +1 -0
  80. package/build/dex/balancer-v1/balancer-pools.json +33333 -0
  81. package/build/dex/balancer-v3/config.js +14 -0
  82. package/build/dex/balancer-v3/config.js.map +1 -1
  83. package/build/dex/bebop/websocket-fetcher.d.ts +35 -0
  84. package/build/dex/bebop/websocket-fetcher.js +87 -0
  85. package/build/dex/bebop/websocket-fetcher.js.map +1 -0
  86. package/build/dex/ekubo/pools/base-pool.js +2 -2
  87. package/build/dex/ekubo/pools/base-pool.js.map +1 -1
  88. package/build/dex/ekubo/pools/math/constants.d.ts +6 -0
  89. package/build/dex/ekubo/pools/math/constants.js +7 -1
  90. package/build/dex/ekubo/pools/math/constants.js.map +1 -1
  91. package/build/dex/ekubo/pools/math/price.js +6 -12
  92. package/build/dex/ekubo/pools/math/price.js.map +1 -1
  93. package/build/dex/ekubo/pools/math/tick.js +14 -2
  94. package/build/dex/ekubo/pools/math/tick.js.map +1 -1
  95. package/build/dex/idle-dao/idle-dao-pool.d.ts +56 -0
  96. package/build/dex/idle-dao/idle-dao-pool.js +176 -0
  97. package/build/dex/idle-dao/idle-dao-pool.js.map +1 -0
  98. package/build/dex/idle-dao/idle-dao-pooling-pool.d.ts +16 -0
  99. package/build/dex/idle-dao/idle-dao-pooling-pool.js +57 -0
  100. package/build/dex/idle-dao/idle-dao-pooling-pool.js.map +1 -0
  101. package/build/dex/idle-dao/scripts.d.ts +9 -0
  102. package/build/dex/idle-dao/scripts.js +552 -0
  103. package/build/dex/idle-dao/scripts.js.map +1 -0
  104. package/build/dex/inception/config.d.ts +4 -0
  105. package/build/dex/inception/config.js +109 -0
  106. package/build/dex/inception/config.js.map +1 -0
  107. package/build/dex/inception/inception-event-pool.d.ts +16 -0
  108. package/build/dex/inception/inception-event-pool.js +51 -0
  109. package/build/dex/inception/inception-event-pool.js.map +1 -0
  110. package/build/dex/inception/inception-native.d.ts +43 -0
  111. package/build/dex/inception/inception-native.js +131 -0
  112. package/build/dex/inception/inception-native.js.map +1 -0
  113. package/build/dex/inception/inception-pool.d.ts +18 -0
  114. package/build/dex/inception/inception-pool.js +32 -0
  115. package/build/dex/inception/inception-pool.js.map +1 -0
  116. package/build/dex/inception/inception-price-feed.d.ts +19 -0
  117. package/build/dex/inception/inception-price-feed.js +51 -0
  118. package/build/dex/inception/inception-price-feed.js.map +1 -0
  119. package/build/dex/inception/inception.d.ts +43 -0
  120. package/build/dex/inception/inception.js +204 -0
  121. package/build/dex/inception/inception.js.map +1 -0
  122. package/build/dex/inception/tokens.d.ts +9 -0
  123. package/build/dex/inception/tokens.js +28 -0
  124. package/build/dex/inception/tokens.js.map +1 -0
  125. package/build/dex/inception/types.d.ts +22 -0
  126. package/build/dex/inception/types.js +3 -0
  127. package/build/dex/inception/types.js.map +1 -0
  128. package/build/dex/inception/utils.d.ts +6 -0
  129. package/build/dex/inception/utils.js +37 -0
  130. package/build/dex/inception/utils.js.map +1 -0
  131. package/build/dex/jarvis.d.ts +56 -0
  132. package/build/dex/jarvis.js +163 -0
  133. package/build/dex/jarvis.js.map +1 -0
  134. package/build/dex/mStable.d.ts +44 -0
  135. package/build/dex/mStable.js +75 -0
  136. package/build/dex/mStable.js.map +1 -0
  137. package/build/dex/onebit/onebit.d.ts +16 -0
  138. package/build/dex/onebit/onebit.js +61 -0
  139. package/build/dex/onebit/onebit.js.map +1 -0
  140. package/build/dex/onebit/types.d.ts +14 -0
  141. package/build/dex/onebit/types.js +8 -0
  142. package/build/dex/onebit/types.js.map +1 -0
  143. package/build/dex/platypus/asset.d.ts +14 -0
  144. package/build/dex/platypus/asset.js +97 -0
  145. package/build/dex/platypus/asset.js.map +1 -0
  146. package/build/dex/platypus/config.d.ts +11 -0
  147. package/build/dex/platypus/config.js +69 -0
  148. package/build/dex/platypus/config.js.map +1 -0
  149. package/build/dex/platypus/platypus.d.ts +63 -0
  150. package/build/dex/platypus/platypus.js +473 -0
  151. package/build/dex/platypus/platypus.js.map +1 -0
  152. package/build/dex/platypus/pool-avax.d.ts +8 -0
  153. package/build/dex/platypus/pool-avax.js +54 -0
  154. package/build/dex/platypus/pool-avax.js.map +1 -0
  155. package/build/dex/platypus/pool-base.d.ts +19 -0
  156. package/build/dex/platypus/pool-base.js +86 -0
  157. package/build/dex/platypus/pool-base.js.map +1 -0
  158. package/build/dex/platypus/pool-pure.d.ts +8 -0
  159. package/build/dex/platypus/pool-pure.js +37 -0
  160. package/build/dex/platypus/pool-pure.js.map +1 -0
  161. package/build/dex/platypus/pool-subscriber.d.ts +14 -0
  162. package/build/dex/platypus/pool-subscriber.js +167 -0
  163. package/build/dex/platypus/pool-subscriber.js.map +1 -0
  164. package/build/dex/platypus/pool.d.ts +8 -0
  165. package/build/dex/platypus/pool.js +58 -0
  166. package/build/dex/platypus/pool.js.map +1 -0
  167. package/build/dex/platypus/types.d.ts +92 -0
  168. package/build/dex/platypus/types.js +10 -0
  169. package/build/dex/platypus/types.js.map +1 -0
  170. package/build/dex/quickswap/spiritswap-v3.d.ts +6 -0
  171. package/build/dex/quickswap/spiritswap-v3.js +19 -0
  172. package/build/dex/quickswap/spiritswap-v3.js.map +1 -0
  173. package/build/dex/shell.d.ts +25 -0
  174. package/build/dex/shell.js +41 -0
  175. package/build/dex/shell.js.map +1 -0
  176. package/build/dex/smardex/config.d.ts +4 -0
  177. package/build/dex/smardex/config.js +64 -0
  178. package/build/dex/smardex/config.js.map +1 -0
  179. package/build/dex/smardex/constants.d.ts +18 -0
  180. package/build/dex/smardex/constants.js +33 -0
  181. package/build/dex/smardex/constants.js.map +1 -0
  182. package/build/dex/smardex/sdk/constants.d.ts +6 -0
  183. package/build/dex/smardex/sdk/constants.js +13 -0
  184. package/build/dex/smardex/sdk/constants.js.map +1 -0
  185. package/build/dex/smardex/sdk/core.d.ts +113 -0
  186. package/build/dex/smardex/sdk/core.js +499 -0
  187. package/build/dex/smardex/sdk/core.js.map +1 -0
  188. package/build/dex/smardex/sdk/errors.d.ts +15 -0
  189. package/build/dex/smardex/sdk/errors.js +22 -0
  190. package/build/dex/smardex/sdk/errors.js.map +1 -0
  191. package/build/dex/smardex/sdk/types.d.ts +62 -0
  192. package/build/dex/smardex/sdk/types.js +3 -0
  193. package/build/dex/smardex/sdk/types.js.map +1 -0
  194. package/build/dex/smardex/sdk/utils.d.ts +44 -0
  195. package/build/dex/smardex/sdk/utils.js +133 -0
  196. package/build/dex/smardex/sdk/utils.js.map +1 -0
  197. package/build/dex/smardex/smardex-event-pool.d.ts +28 -0
  198. package/build/dex/smardex/smardex-event-pool.js +119 -0
  199. package/build/dex/smardex/smardex-event-pool.js.map +1 -0
  200. package/build/dex/smardex/smardex.d.ts +65 -0
  201. package/build/dex/smardex/smardex.js +519 -0
  202. package/build/dex/smardex/smardex.js.map +1 -0
  203. package/build/dex/smardex/types.d.ts +55 -0
  204. package/build/dex/smardex/types.js +3 -0
  205. package/build/dex/smardex/types.js.map +1 -0
  206. package/build/dex/solidly/forks-override/cone.d.ts +22 -0
  207. package/build/dex/solidly/forks-override/cone.js +53 -0
  208. package/build/dex/solidly/forks-override/cone.js.map +1 -0
  209. package/build/dex/solidly/forks-override/solisnek.d.ts +8 -0
  210. package/build/dex/solidly/forks-override/solisnek.js +15 -0
  211. package/build/dex/solidly/forks-override/solisnek.js.map +1 -0
  212. package/build/dex/swaap-v1/config.d.ts +17 -0
  213. package/build/dex/swaap-v1/config.js +56 -0
  214. package/build/dex/swaap-v1/config.js.map +1 -0
  215. package/build/dex/swaap-v1/constants.d.ts +6 -0
  216. package/build/dex/swaap-v1/constants.js +17 -0
  217. package/build/dex/swaap-v1/constants.js.map +1 -0
  218. package/build/dex/swaap-v1/libraries/ChainlinkUtils.d.ts +25 -0
  219. package/build/dex/swaap-v1/libraries/ChainlinkUtils.js +62 -0
  220. package/build/dex/swaap-v1/libraries/ChainlinkUtils.js.map +1 -0
  221. package/build/dex/swaap-v1/libraries/Const.d.ts +18 -0
  222. package/build/dex/swaap-v1/libraries/Const.js +26 -0
  223. package/build/dex/swaap-v1/libraries/Const.js.map +1 -0
  224. package/build/dex/swaap-v1/libraries/GeometricBrownianMotion.d.ts +77 -0
  225. package/build/dex/swaap-v1/libraries/GeometricBrownianMotion.js +316 -0
  226. package/build/dex/swaap-v1/libraries/GeometricBrownianMotion.js.map +1 -0
  227. package/build/dex/swaap-v1/libraries/LogExpMath.d.ts +75 -0
  228. package/build/dex/swaap-v1/libraries/LogExpMath.js +418 -0
  229. package/build/dex/swaap-v1/libraries/LogExpMath.js.map +1 -0
  230. package/build/dex/swaap-v1/libraries/MathMMM.d.ts +185 -0
  231. package/build/dex/swaap-v1/libraries/MathMMM.js +453 -0
  232. package/build/dex/swaap-v1/libraries/MathMMM.js.map +1 -0
  233. package/build/dex/swaap-v1/libraries/Num.d.ts +31 -0
  234. package/build/dex/swaap-v1/libraries/Num.js +167 -0
  235. package/build/dex/swaap-v1/libraries/Num.js.map +1 -0
  236. package/build/dex/swaap-v1/libraries/PoolQuotations.d.ts +23 -0
  237. package/build/dex/swaap-v1/libraries/PoolQuotations.js +131 -0
  238. package/build/dex/swaap-v1/libraries/PoolQuotations.js.map +1 -0
  239. package/build/dex/swaap-v1/libraries/Struct.d.ts +56 -0
  240. package/build/dex/swaap-v1/libraries/Struct.js +3 -0
  241. package/build/dex/swaap-v1/libraries/Struct.js.map +1 -0
  242. package/build/dex/swaap-v1/swaap-v1-pool.d.ts +45 -0
  243. package/build/dex/swaap-v1/swaap-v1-pool.js +656 -0
  244. package/build/dex/swaap-v1/swaap-v1-pool.js.map +1 -0
  245. package/build/dex/swaap-v1/swaap-v1.d.ts +62 -0
  246. package/build/dex/swaap-v1/swaap-v1.js +379 -0
  247. package/build/dex/swaap-v1/swaap-v1.js.map +1 -0
  248. package/build/dex/swaap-v1/types.d.ts +106 -0
  249. package/build/dex/swaap-v1/types.js +9 -0
  250. package/build/dex/swaap-v1/types.js.map +1 -0
  251. package/build/dex/trader-joe-v2.d.ts +40 -0
  252. package/build/dex/trader-joe-v2.js +74 -0
  253. package/build/dex/trader-joe-v2.js.map +1 -0
  254. package/build/dex/uniswap-v4/contract-math/Tick.js +2 -10
  255. package/build/dex/uniswap-v4/contract-math/Tick.js.map +1 -1
  256. package/build/dex/uniswap-v4/contract-math/uniswap-v4-pool-math.js +5 -8
  257. package/build/dex/uniswap-v4/contract-math/uniswap-v4-pool-math.js.map +1 -1
  258. package/build/dex/uniswap-v4/uniswap-v4-pool.js +6 -14
  259. package/build/dex/uniswap-v4/uniswap-v4-pool.js.map +1 -1
  260. package/build/dex/uniswap-v4/uniswap-v4.js +0 -4
  261. package/build/dex/uniswap-v4/uniswap-v4.js.map +1 -1
  262. package/build/dex/usual-bond/config.d.ts +3 -0
  263. package/build/dex/usual-bond/config.js +13 -0
  264. package/build/dex/usual-bond/config.js.map +1 -0
  265. package/build/dex/usual-bond/types.d.ts +7 -0
  266. package/build/dex/usual-bond/types.js +3 -0
  267. package/build/dex/usual-bond/types.js.map +1 -0
  268. package/build/dex/usual-bond/usual-bond.d.ts +35 -0
  269. package/build/dex/usual-bond/usual-bond.js +176 -0
  270. package/build/dex/usual-bond/usual-bond.js.map +1 -0
  271. package/build/dex/wusdm/config.d.ts +3 -0
  272. package/build/dex/wusdm/config.js +43 -0
  273. package/build/dex/wusdm/config.js.map +1 -0
  274. package/build/dex/wusdm/constants.d.ts +2 -0
  275. package/build/dex/wusdm/constants.js +6 -0
  276. package/build/dex/wusdm/constants.js.map +1 -0
  277. package/build/dex/wusdm/types.d.ts +18 -0
  278. package/build/dex/wusdm/types.js +11 -0
  279. package/build/dex/wusdm/types.js.map +1 -0
  280. package/build/dex/wusdm/wusdm-pool.d.ts +21 -0
  281. package/build/dex/wusdm/wusdm-pool.js +74 -0
  282. package/build/dex/wusdm/wusdm-pool.js.map +1 -0
  283. package/build/dex/wusdm/wusdm.d.ts +46 -0
  284. package/build/dex/wusdm/wusdm.js +243 -0
  285. package/build/dex/wusdm/wusdm.js.map +1 -0
  286. package/build/dex/zerox/config.d.ts +2 -0
  287. package/build/dex/zerox/config.js +33 -0
  288. package/build/dex/zerox/config.js.map +1 -0
  289. package/build/dex/zerox/index.d.ts +22 -0
  290. package/build/dex/zerox/index.js +225 -0
  291. package/build/dex/zerox/index.js.map +1 -0
  292. package/build/dex/zerox/order.d.ts +88 -0
  293. package/build/dex/zerox/order.js +53 -0
  294. package/build/dex/zerox/order.js.map +1 -0
  295. package/build/dex/zerox/types.d.ts +73 -0
  296. package/build/dex/zerox/types.js +21 -0
  297. package/build/dex/zerox/types.js.map +1 -0
  298. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +16 -0
  299. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +16 -0
  300. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +16 -0
  301. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +16 -0
  302. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-dai-usdc-eth.json +16 -0
  303. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-eth-usdc-dai.json +16 -0
  304. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +16 -0
  305. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdt-usdc-dai.json +16 -0
  306. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-eth-usdc.json +9 -0
  307. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-eth.json +9 -0
  308. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-wbtc.json +9 -0
  309. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-eth-steth.json +9 -0
  310. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-steth-eth.json +9 -0
  311. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-usdc-usdt.json +9 -0
  312. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-eth-usdc.json +9 -0
  313. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-eth.json +9 -0
  314. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-usdt.json +9 -0
  315. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +12 -0
  316. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +7 -0
  317. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +7 -0
  318. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-dai-usdc-eth.json +7 -0
  319. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-eth-usdc-dai.json +7 -0
  320. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +12 -0
  321. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-eth-usdc.json +7 -0
  322. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-usdc-eth.json +7 -0
  323. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +78 -0
  324. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +81 -0
  325. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +78 -0
  326. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +78 -0
  327. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-dai-usdc-eth.json +81 -0
  328. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-eth-usdc-dai.json +81 -0
  329. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +81 -0
  330. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdt-usdc-dai.json +81 -0
  331. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-eth-usdc.json +64 -0
  332. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-eth.json +85 -0
  333. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-wbtc.json +64 -0
  334. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-eth-steth.json +52 -0
  335. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-steth-eth.json +52 -0
  336. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-usdc-usdt.json +52 -0
  337. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-eth-usdc.json +55 -0
  338. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-eth.json +55 -0
  339. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-usdt.json +55 -0
  340. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +23 -0
  341. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +37 -0
  342. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +23 -0
  343. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +23 -0
  344. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +51 -0
  345. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-univ3-usdt-dai-eth.json +58 -0
  346. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +23 -0
  347. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +23 -0
  348. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +9 -0
  349. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +16 -0
  350. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +23 -0
  351. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +12 -0
  352. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +7 -0
  353. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +12 -0
  354. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +12 -0
  355. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +7 -0
  356. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-univ3-usdt-dai-eth.json +7 -0
  357. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +7 -0
  358. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +7 -0
  359. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +7 -0
  360. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +7 -0
  361. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +130 -0
  362. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +136 -0
  363. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +100 -0
  364. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +100 -0
  365. package/build/executor/fixtures/executor02/routes/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +166 -0
  366. package/build/executor/fixtures/executor02/routes/price-route-multiswap-univ3-usdt-dai-eth.json +190 -0
  367. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +114 -0
  368. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +114 -0
  369. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +55 -0
  370. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +73 -0
  371. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +82 -0
  372. package/package.json +1 -1
  373. package/build/dex/uniswap-v4/optimizer.d.ts +0 -2
  374. package/build/dex/uniswap-v4/optimizer.js +0 -47
  375. package/build/dex/uniswap-v4/optimizer.js.map +0 -1
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ZeroXOrder = void 0;
4
+ class ZeroXOrder {
5
+ static formatOrderV4(order, version) {
6
+ return {
7
+ makerToken: order.makerToken,
8
+ takerToken: order.takerToken,
9
+ makerAmount: order.makerAmount,
10
+ takerAmount: order.takerAmount,
11
+ maker: order.maker,
12
+ taker: order.taker,
13
+ txOrigin: order.txOrigin,
14
+ pool: order.pool,
15
+ expiry: order.expiry,
16
+ salt: order.salt,
17
+ };
18
+ }
19
+ static formatOrderV23(order, version) {
20
+ const feeAssetData = version === 3
21
+ ? {
22
+ makerFeeAssetData: order.makerFeeAssetData,
23
+ takerFeeAssetData: order.takerFeeAssetData,
24
+ }
25
+ : {};
26
+ return {
27
+ makerAddress: order.makerAddress,
28
+ takerAddress: order.takerAddress,
29
+ feeRecipientAddress: order.feeRecipientAddress,
30
+ senderAddress: order.senderAddress,
31
+ makerAssetAmount: order.makerAssetAmount,
32
+ takerAssetAmount: order.takerAssetAmount,
33
+ makerFee: order.makerFee,
34
+ takerFee: order.takerFee,
35
+ expirationTimeSeconds: order.expirationTimeSeconds,
36
+ salt: order.salt,
37
+ makerAssetData: order.makerAssetData,
38
+ takerAssetData: order.takerAssetData,
39
+ ...feeAssetData,
40
+ };
41
+ }
42
+ static formatOrders(order, version = 2) {
43
+ if (isV4Order(order, version)) {
44
+ return ZeroXOrder.formatOrderV4(order, version);
45
+ }
46
+ return ZeroXOrder.formatOrderV23(order, version);
47
+ }
48
+ }
49
+ exports.ZeroXOrder = ZeroXOrder;
50
+ function isV4Order(order, version = 2) {
51
+ return version === 4;
52
+ }
53
+ //# sourceMappingURL=order.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order.js","sourceRoot":"","sources":["../../../src/dex/zerox/order.ts"],"names":[],"mappings":";;;AAMA,MAAa,UAAU;IACrB,MAAM,CAAC,aAAa,CAAC,KAAyB,EAAE,OAAe;QAC7D,OAAO;YACL,UAAU,EAAE,KAAK,CAAC,UAAU;YAC5B,UAAU,EAAE,KAAK,CAAC,UAAU;YAC5B,WAAW,EAAE,KAAK,CAAC,WAAW;YAC9B,WAAW,EAAE,KAAK,CAAC,WAAW;YAC9B,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,IAAI,EAAE,KAAK,CAAC,IAAI;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,cAAc,CAAC,KAAyB,EAAE,OAAe;QAC9D,MAAM,YAAY,GAChB,OAAO,KAAK,CAAC;YACX,CAAC,CAAC;gBACE,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;gBAC1C,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;aAC3C;YACH,CAAC,CAAC,EAAE,CAAC;QAET,OAAO;YACL,YAAY,EAAE,KAAK,CAAC,YAAY;YAChC,YAAY,EAAE,KAAK,CAAC,YAAY;YAChC,mBAAmB,EAAE,KAAK,CAAC,mBAAmB;YAC9C,aAAa,EAAE,KAAK,CAAC,aAAa;YAClC,gBAAgB,EAAE,KAAK,CAAC,gBAAgB;YACxC,gBAAgB,EAAE,KAAK,CAAC,gBAAgB;YACxC,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,qBAAqB,EAAE,KAAK,CAAC,qBAAqB;YAClD,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,cAAc,EAAE,KAAK,CAAC,cAAc;YACpC,cAAc,EAAE,KAAK,CAAC,cAAc;YACpC,GAAG,YAAY;SAChB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,YAAY,CAAC,KAAuB,EAAE,UAAkB,CAAC;QAC9D,IAAI,SAAS,CAAC,KAAK,EAAE,OAAO,CAAC,EAAE;YAC7B,OAAO,UAAU,CAAC,aAAa,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;SACjD;QACD,OAAO,UAAU,CAAC,cAAc,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;CACF;AAhDD,gCAgDC;AAED,SAAS,SAAS,CAChB,KAAuB,EACvB,UAAkB,CAAC;IAEnB,OAAO,OAAO,KAAK,CAAC,CAAC;AACvB,CAAC"}
@@ -0,0 +1,73 @@
1
+ import { Address } from '@paraswap/sdk';
2
+ import { NumberAsString } from '../../types';
3
+ export declare enum OrderStatus {
4
+ INVALID = 0,
5
+ INVALID_MAKER_ASSET_AMOUNT = 1,
6
+ INVALID_TAKER_ASSET_AMOUNT = 2,
7
+ FILLABLE = 3,
8
+ EXPIRED = 4,
9
+ FULLY_FILLED = 5,
10
+ CANCELLED = 6
11
+ }
12
+ declare type Value = NumberAsString | number;
13
+ export interface ZeroXSignedOrderV2 {
14
+ senderAddress: string;
15
+ makerAddress: string;
16
+ takerAddress: string;
17
+ makerFee: Value;
18
+ takerFee: Value;
19
+ makerAssetAmount: Value;
20
+ takerAssetAmount: Value;
21
+ makerAssetData: string;
22
+ takerAssetData: string;
23
+ salt: Value;
24
+ exchangeAddress: string;
25
+ feeRecipientAddress: string;
26
+ expirationTimeSeconds: Value;
27
+ makerFeeAssetData: string;
28
+ takerFeeAssetData: string;
29
+ signature: string;
30
+ }
31
+ export interface ZeroXSignedOrderV4 {
32
+ makerToken: string;
33
+ takerToken: string;
34
+ makerAmount: Value;
35
+ takerAmount: Value;
36
+ maker: string;
37
+ taker: string;
38
+ txOrigin: string;
39
+ pool: string;
40
+ expiry: Value;
41
+ salt: Value;
42
+ signature: any;
43
+ }
44
+ export declare type ZeroXSignedOrder = ZeroXSignedOrderV2 | ZeroXSignedOrderV4;
45
+ export declare enum ZeroXFunctions {
46
+ swapOnZeroXv2 = "swapOnZeroXv2",
47
+ swapOnZeroXv4 = "swapOnZeroXv4",
48
+ swapOnZeroXv2WithPermit = "swapOnZeroXv2WithPermit",
49
+ swapOnZeroXv4WithPermit = "swapOnZeroXv4WithPermit"
50
+ }
51
+ export declare type ZeroXData = {
52
+ version: number;
53
+ order: ZeroXSignedOrder;
54
+ };
55
+ export declare type SwapOnZeroXParam = [
56
+ srcToken: Address,
57
+ destToken: Address,
58
+ srcAmount: NumberAsString,
59
+ destAmount: NumberAsString,
60
+ exchange: Address,
61
+ payload: string
62
+ ];
63
+ export declare type SwapOnZeroXWithPermitParam = [
64
+ srcToken: Address,
65
+ destToken: Address,
66
+ srcAmount: NumberAsString,
67
+ destAmount: NumberAsString,
68
+ exchange: Address,
69
+ payload: string,
70
+ permit: string
71
+ ];
72
+ export declare type ZeroXParam = SwapOnZeroXParam | SwapOnZeroXWithPermitParam;
73
+ export {};
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ZeroXFunctions = exports.OrderStatus = void 0;
4
+ var OrderStatus;
5
+ (function (OrderStatus) {
6
+ OrderStatus[OrderStatus["INVALID"] = 0] = "INVALID";
7
+ OrderStatus[OrderStatus["INVALID_MAKER_ASSET_AMOUNT"] = 1] = "INVALID_MAKER_ASSET_AMOUNT";
8
+ OrderStatus[OrderStatus["INVALID_TAKER_ASSET_AMOUNT"] = 2] = "INVALID_TAKER_ASSET_AMOUNT";
9
+ OrderStatus[OrderStatus["FILLABLE"] = 3] = "FILLABLE";
10
+ OrderStatus[OrderStatus["EXPIRED"] = 4] = "EXPIRED";
11
+ OrderStatus[OrderStatus["FULLY_FILLED"] = 5] = "FULLY_FILLED";
12
+ OrderStatus[OrderStatus["CANCELLED"] = 6] = "CANCELLED";
13
+ })(OrderStatus = exports.OrderStatus || (exports.OrderStatus = {}));
14
+ var ZeroXFunctions;
15
+ (function (ZeroXFunctions) {
16
+ ZeroXFunctions["swapOnZeroXv2"] = "swapOnZeroXv2";
17
+ ZeroXFunctions["swapOnZeroXv4"] = "swapOnZeroXv4";
18
+ ZeroXFunctions["swapOnZeroXv2WithPermit"] = "swapOnZeroXv2WithPermit";
19
+ ZeroXFunctions["swapOnZeroXv4WithPermit"] = "swapOnZeroXv4WithPermit";
20
+ })(ZeroXFunctions = exports.ZeroXFunctions || (exports.ZeroXFunctions = {}));
21
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/dex/zerox/types.ts"],"names":[],"mappings":";;;AAGA,IAAY,WAQX;AARD,WAAY,WAAW;IACrB,mDAAO,CAAA;IACP,yFAA0B,CAAA;IAC1B,yFAA0B,CAAA;IAC1B,qDAAQ,CAAA;IACR,mDAAO,CAAA;IACP,6DAAY,CAAA;IACZ,uDAAS,CAAA;AACX,CAAC,EARW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAQtB;AAuCD,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,qEAAmD,CAAA;IACnD,qEAAmD,CAAA;AACrD,CAAC,EALW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAKzB"}
@@ -0,0 +1,16 @@
1
+ [
2
+ {
3
+ "needWrapNative": false,
4
+ "dexFuncHasRecipient": false,
5
+ "dexFuncHasDestToken": true,
6
+ "exchangeData": "0x4e7ffa040000000000000000000000000000000000000000000000000000000000000060000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000069d460e01070a7ba1bc363885bc8f4f0daa19bf5000000000000000000000000000000000000000000000000016345785d8a00000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
7
+ "targetExchange": "0x6317c5e82a06e1d8bf200d21f4510ac2c038ac81"
8
+ },
9
+ {
10
+ "exchangeData": "0xa6417ed600000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cad39c40000000000000000000000000000000000000000000000000000000000000001",
11
+ "needWrapNative": false,
12
+ "dexFuncHasRecipient": false,
13
+ "dexFuncHasDestToken": false,
14
+ "targetExchange": "0x4f062658eaaf2c1ccf8c8e36d6824cdf41167956"
15
+ }
16
+ ]
@@ -0,0 +1,16 @@
1
+ [
2
+ {
3
+ "needWrapNative": true,
4
+ "dexFuncHasRecipient": true,
5
+ "dexFuncHasDestToken": true,
6
+ "exchangeData": "0xc04b8d59000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000008edf3289c84e5ba9c73350805a7d4c1f43b41e08000000000000000000000000000000000000000000000000000000006589888000000000000000000000000000000000000000000000000000000000001e84800000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002b2260fac5e5542a773aa44fbcfedf7c193bc2c5990001f4c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000",
7
+ "targetExchange": "0x00f23572b16c5e9e58e7b965def51ff8ff546e34"
8
+ },
9
+ {
10
+ "needWrapNative": true,
11
+ "dexFuncHasRecipient": true,
12
+ "dexFuncHasDestToken": true,
13
+ "exchangeData": "0xc04b8d59000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000e6f1c1f58e34df3892cb1b1c193f82462bc0a86e0000000000000000000000000000000000000000000000000000000065898880000000000000000000000000000000000000000000000000054c518b8d4e1ebe0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002bc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000bb86b3595068778dd592e39a122f4f5a5cf09c90fe2000000000000000000000000000000000000000000",
14
+ "targetExchange": "0x00f23572b16c5e9e58e7b965def51ff8ff546e34"
15
+ }
16
+ ]
@@ -0,0 +1,16 @@
1
+ [
2
+ {
3
+ "needWrapNative": true,
4
+ "dexFuncHasRecipient": true,
5
+ "dexFuncHasDestToken": true,
6
+ "exchangeData": "0xc04b8d59000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000008edf3289c84e5ba9c73350805a7d4c1f43b41e08000000000000000000000000000000000000000000000000000000006589870e000000000000000000000000000000000000000000000000016345785d8a00000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002bc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000bb8a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000",
7
+ "targetExchange": "0x00f23572b16c5e9e58e7b965def51ff8ff546e34"
8
+ },
9
+ {
10
+ "exchangeData": "0xa6417ed600000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cbbb56d0000000000000000000000000000000000000000000000000000000000000001",
11
+ "needWrapNative": false,
12
+ "dexFuncHasRecipient": false,
13
+ "dexFuncHasDestToken": false,
14
+ "targetExchange": "0x4f062658eaaf2c1ccf8c8e36d6824cdf41167956"
15
+ }
16
+ ]
@@ -0,0 +1,16 @@
1
+ [
2
+ {
3
+ "exchangeData": "0xa6417ed60000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000186a00000000000000000000000000000000000000000000000000000000000000001",
4
+ "needWrapNative": false,
5
+ "dexFuncHasRecipient": false,
6
+ "dexFuncHasDestToken": false,
7
+ "targetExchange": "0x4f062658eaaf2c1ccf8c8e36d6824cdf41167956"
8
+ },
9
+ {
10
+ "needWrapNative": true,
11
+ "dexFuncHasRecipient": true,
12
+ "dexFuncHasDestToken": true,
13
+ "exchangeData": "0xc04b8d59000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000008edf3289c84e5ba9c73350805a7d4c1f43b41e08000000000000000000000000000000000000000000000000000000006589865b000000000000000000000000000000000000000000000000000000003ba5fa340000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002ba0b86991c6218b36c1d19d4a2e9eb0ce3606eb480001f4c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000",
14
+ "targetExchange": "0x00f23572b16c5e9e58e7b965def51ff8ff546e34"
15
+ }
16
+ ]
@@ -0,0 +1,16 @@
1
+ [
2
+ {
3
+ "needWrapNative": true,
4
+ "dexFuncHasRecipient": true,
5
+ "dexFuncHasDestToken": true,
6
+ "exchangeData": "0xc04b8d59000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000008edf3289c84e5ba9c73350805a7d4c1f43b41e080000000000000000000000000000000000000000000000000000000065897b8000000000000000000000000000000000000000000000003635c9adc5dea000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002b6b175474e89094c44da98b954eedeac495271d0f000064a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000",
7
+ "targetExchange": "0x00f23572b16c5e9e58e7b965def51ff8ff546e34"
8
+ },
9
+ {
10
+ "needWrapNative": true,
11
+ "dexFuncHasRecipient": true,
12
+ "dexFuncHasDestToken": true,
13
+ "exchangeData": "0xc04b8d59000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000008edf3289c84e5ba9c73350805a7d4c1f43b41e080000000000000000000000000000000000000000000000000000000065897b80000000000000000000000000000000000000000000000000000000003b97057c0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002ba0b86991c6218b36c1d19d4a2e9eb0ce3606eb480001f4c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000",
14
+ "targetExchange": "0x00f23572b16c5e9e58e7b965def51ff8ff546e34"
15
+ }
16
+ ]
@@ -0,0 +1,16 @@
1
+ [
2
+ {
3
+ "needWrapNative": true,
4
+ "dexFuncHasRecipient": true,
5
+ "dexFuncHasDestToken": true,
6
+ "exchangeData": "0xc04b8d59000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000008edf3289c84e5ba9c73350805a7d4c1f43b41e080000000000000000000000000000000000000000000000000000000065897b83000000000000000000000000000000000000000000000000016345785d8a00000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002bc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000bb8a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000",
7
+ "targetExchange": "0x00f23572b16c5e9e58e7b965def51ff8ff546e34"
8
+ },
9
+ {
10
+ "needWrapNative": true,
11
+ "dexFuncHasRecipient": true,
12
+ "dexFuncHasDestToken": true,
13
+ "exchangeData": "0xc04b8d59000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000e6f1c1f58e34df3892cb1b1c193f82462bc0a86e0000000000000000000000000000000000000000000000000000000065897b83000000000000000000000000000000000000000000000000000000000cbbb56d0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002ba0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000646b175474e89094c44da98b954eedeac495271d0f000000000000000000000000000000000000000000",
14
+ "targetExchange": "0x00f23572b16c5e9e58e7b965def51ff8ff546e34"
15
+ }
16
+ ]
@@ -0,0 +1,16 @@
1
+ [
2
+ {
3
+ "needWrapNative": true,
4
+ "dexFuncHasRecipient": true,
5
+ "dexFuncHasDestToken": true,
6
+ "exchangeData": "0xc04b8d59000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000008edf3289c84e5ba9c73350805a7d4c1f43b41e080000000000000000000000000000000000000000000000000000000065897b7b00000000000000000000000000000000000000000000000000000000009896800000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002ba0b86991c6218b36c1d19d4a2e9eb0ce3606eb480001f4c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000",
7
+ "targetExchange": "0x00f23572b16c5e9e58e7b965def51ff8ff546e34"
8
+ },
9
+ {
10
+ "needWrapNative": true,
11
+ "dexFuncHasRecipient": true,
12
+ "dexFuncHasDestToken": true,
13
+ "exchangeData": "0xc04b8d59000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000e6f1c1f58e34df3892cb1b1c193f82462bc0a86e0000000000000000000000000000000000000000000000000000000065897b7b000000000000000000000000000000000000000000000000001098c110e992ac0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002bc02aaa39b223fe8d0a0e5c4f27ead9083c756cc20001f42260fac5e5542a773aa44fbcfedf7c193bc2c599000000000000000000000000000000000000000000",
14
+ "targetExchange": "0x00f23572b16c5e9e58e7b965def51ff8ff546e34"
15
+ }
16
+ ]
@@ -0,0 +1,16 @@
1
+ [
2
+ {
3
+ "needWrapNative": true,
4
+ "dexFuncHasRecipient": true,
5
+ "dexFuncHasDestToken": true,
6
+ "exchangeData": "0xc04b8d59000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000008edf3289c84e5ba9c73350805a7d4c1f43b41e080000000000000000000000000000000000000000000000000000000065897b870000000000000000000000000000000000000000000000000000000005f5e1000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002bdac17f958d2ee523a2206206994597c13d831ec7000064a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000",
7
+ "targetExchange": "0x00f23572b16c5e9e58e7b965def51ff8ff546e34"
8
+ },
9
+ {
10
+ "needWrapNative": true,
11
+ "dexFuncHasRecipient": true,
12
+ "dexFuncHasDestToken": true,
13
+ "exchangeData": "0xc04b8d59000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000e6f1c1f58e34df3892cb1b1c193f82462bc0a86e0000000000000000000000000000000000000000000000000000000065897b870000000000000000000000000000000000000000000000000000000005f463ee0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002ba0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000646b175474e89094c44da98b954eedeac495271d0f000000000000000000000000000000000000000000",
14
+ "targetExchange": "0x00f23572b16c5e9e58e7b965def51ff8ff546e34"
15
+ }
16
+ ]
@@ -0,0 +1,9 @@
1
+ [
2
+ {
3
+ "needWrapNative": false,
4
+ "dexFuncHasRecipient": false,
5
+ "dexFuncHasDestToken": true,
6
+ "exchangeData": "0x3ca9184e0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000c6a98b400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000200000000000000000000000069d460e01070a7ba1bc363885bc8f4f0daa19bf5000000000000000000000000000000000000000000000000000000009eee09000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000002257aaac34bcb27900291f7b84ee2565a6cbac570000000000000000000000000000000000000000000000000000000027bb82400000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
7
+ "targetExchange": "0x6317c5e82a06e1d8bf200d21f4510ac2c038ac81"
8
+ }
9
+ ]
@@ -0,0 +1,9 @@
1
+ [
2
+ {
3
+ "needWrapNative": false,
4
+ "dexFuncHasRecipient": false,
5
+ "dexFuncHasDestToken": true,
6
+ "exchangeData": "0x4e7ffa040000000000000000000000000000000000000000000000000000000000000060000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000500000000000000000000000069d460e01070a7ba1bc363885bc8f4f0daa19bf500000000000000000000000000000000000000000000000018fae27693b400000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000001373e57f764a7944bdd7a4bd5ca3007d496934da0000000000000000000000000000000000000000000000000354a6ba7a1800000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000002257aaac34bcb27900291f7b84ee2565a6cbac5700000000000000000000000000000000000000000000000004fefa17b72400000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000008a649274e4d777ffc6851f13d23a86bbfa2f2fbf00000000000000000000000000000000000000000000000005d423c655aa00000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000009b208194acc0a8ccb2a8dcafeacfbb7dcc093f81000000000000000000000000000000000000000000000000027f7d0bdb9200000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
7
+ "targetExchange": "0x6317c5e82a06e1d8bf200d21f4510ac2c038ac81"
8
+ }
9
+ ]
@@ -0,0 +1,9 @@
1
+ [
2
+ {
3
+ "needWrapNative": true,
4
+ "dexFuncHasRecipient": false,
5
+ "dexFuncHasDestToken": true,
6
+ "exchangeData": "0xf437824000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c59900000000000000000000000000000000000000000000000000000000c6a98b40000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020000000000000000000000002257aaac34bcb27900291f7b84ee2565a6cbac5700000000000000000000000000000000000000000000000000000000b6c4f0c00000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000000000000000000156d96eac6fe0e403428379c2d891c17a24c77f9000000000000000000000000000000000000000000000000000000000fe49a800000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
7
+ "targetExchange": "0x6317c5e82a06e1d8bf200d21f4510ac2c038ac81"
8
+ }
9
+ ]
@@ -0,0 +1,9 @@
1
+ [
2
+ {
3
+ "exchangeData": "0x3df02124000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000000001",
4
+ "needWrapNative": false,
5
+ "dexFuncHasRecipient": false,
6
+ "dexFuncHasDestToken": false,
7
+ "targetExchange": "0xdc24316b9ae028f1497c275eb9192a3ea0f67022"
8
+ }
9
+ ]
@@ -0,0 +1,9 @@
1
+ [
2
+ {
3
+ "exchangeData": "0x3df02124000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000000001",
4
+ "needWrapNative": false,
5
+ "dexFuncHasRecipient": false,
6
+ "dexFuncHasDestToken": false,
7
+ "targetExchange": "0xdc24316b9ae028f1497c275eb9192a3ea0f67022"
8
+ }
9
+ ]
@@ -0,0 +1,9 @@
1
+ [
2
+ {
3
+ "exchangeData": "0x3df02124000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000005f5e1000000000000000000000000000000000000000000000000000000000000000001",
4
+ "needWrapNative": false,
5
+ "dexFuncHasRecipient": false,
6
+ "dexFuncHasDestToken": false,
7
+ "targetExchange": "0xbebc44782c7db0a1a60cb6fe97d0b483032ff1c7"
8
+ }
9
+ ]
@@ -0,0 +1,9 @@
1
+ [
2
+ {
3
+ "needWrapNative": true,
4
+ "dexFuncHasRecipient": true,
5
+ "dexFuncHasDestToken": true,
6
+ "exchangeData": "0xc04b8d59000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000e6f1c1f58e34df3892cb1b1c193f82462bc0a86e0000000000000000000000000000000000000000000000000000000065896f820000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002bc02aaa39b223fe8d0a0e5c4f27ead9083c756cc20001f4a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000",
7
+ "targetExchange": "0xe592427a0aece92de3edee1f18e0157c05861564"
8
+ }
9
+ ]
@@ -0,0 +1,9 @@
1
+ [
2
+ {
3
+ "needWrapNative": true,
4
+ "dexFuncHasRecipient": true,
5
+ "dexFuncHasDestToken": true,
6
+ "exchangeData": "0xc04b8d59000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000008edf3289c84e5ba9c73350805a7d4c1f43b41e0800000000000000000000000000000000000000000000000000000000658971ea00000000000000000000000000000000000000000000000000000000000f42400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002ba0b86991c6218b36c1d19d4a2e9eb0ce3606eb480001f4c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000",
7
+ "targetExchange": "0xe592427a0aece92de3edee1f18e0157c05861564"
8
+ }
9
+ ]
@@ -0,0 +1,9 @@
1
+ [
2
+ {
3
+ "needWrapNative": true,
4
+ "dexFuncHasRecipient": true,
5
+ "dexFuncHasDestToken": true,
6
+ "exchangeData": "0xc04b8d59000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000e6f1c1f58e34df3892cb1b1c193f82462bc0a86e000000000000000000000000000000000000000000000000000000006589737000000000000000000000000000000000000000000000000000000000000f42400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002ba0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000064dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000000000000000000000",
7
+ "targetExchange": "0xe592427a0aece92de3edee1f18e0157c05861564"
8
+ }
9
+ ]
@@ -0,0 +1,12 @@
1
+ {
2
+ "deposit": {
3
+ "callee": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
4
+ "calldata": "0xd0e30db0",
5
+ "value": "381769728232660670"
6
+ },
7
+ "withdraw": {
8
+ "callee": "0xDEF171Fe48CF0115B1d80b88dc8eAB59176FEe57",
9
+ "calldata": "0x2e1a7d4d000000000000000000000000000000000000000000000000054c518b8d4e1ebe",
10
+ "value": "0"
11
+ }
12
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "deposit": {
3
+ "callee": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
4
+ "calldata": "0xd0e30db0",
5
+ "value": "100000000000000000"
6
+ }
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "withdraw": {
3
+ "callee": "0xDEF171Fe48CF0115B1d80b88dc8eAB59176FEe57",
4
+ "calldata": "0x2e1a7d4d000000000000000000000000000000000000000000000000066a17139c773b29",
5
+ "value": "0"
6
+ }
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "withdraw": {
3
+ "callee": "0xDEF171Fe48CF0115B1d80b88dc8eAB59176FEe57",
4
+ "calldata": "0x2e1a7d4d0000000000000000000000000000000000000000000000000668800c8e5c77f5",
5
+ "value": "0"
6
+ }
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "deposit": {
3
+ "callee": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
4
+ "calldata": "0xd0e30db0",
5
+ "value": "100000000000000000"
6
+ }
7
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "deposit": {
3
+ "callee": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
4
+ "calldata": "0xd0e30db0",
5
+ "value": "4671554607223468"
6
+ },
7
+ "withdraw": {
8
+ "callee": "0xDEF171Fe48CF0115B1d80b88dc8eAB59176FEe57",
9
+ "calldata": "0x2e1a7d4d000000000000000000000000000000000000000000000000001098c110e992ac",
10
+ "value": "0"
11
+ }
12
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "deposit": {
3
+ "callee": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
4
+ "calldata": "0xd0e30db0",
5
+ "value": "1000000000000000000"
6
+ }
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "withdraw": {
3
+ "callee": "0xDEF171Fe48CF0115B1d80b88dc8eAB59176FEe57",
4
+ "calldata": "0x2e1a7d4d0000000000000000000000000000000000000000000000000001a9267bee8237",
5
+ "value": "0"
6
+ }
7
+ }
@@ -0,0 +1,78 @@
1
+ {
2
+ "blockNumber": 18813266,
3
+ "network": 1,
4
+ "srcToken": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
5
+ "srcDecimals": 18,
6
+ "srcAmount": "100000000000000000",
7
+ "destToken": "0x056fd409e1d7a124bd7017459dfea2f387b6d5cd",
8
+ "destDecimals": 2,
9
+ "destAmount": "21232",
10
+ "bestRoute": [
11
+ {
12
+ "percent": 100,
13
+ "swaps": [
14
+ {
15
+ "srcToken": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
16
+ "srcDecimals": 18,
17
+ "destToken": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
18
+ "destDecimals": 6,
19
+ "swapExchanges": [
20
+ {
21
+ "exchange": "BalancerV1",
22
+ "srcAmount": "100000000000000000",
23
+ "destAmount": "212679108",
24
+ "percent": 100,
25
+ "poolAddresses": ["0x69d460e01070a7ba1bc363885bc8f4f0daa19bf5"],
26
+ "data": {
27
+ "swaps": [
28
+ {
29
+ "pool": "0x69d460e01070a7ba1bc363885bc8f4f0daa19bf5",
30
+ "tokenInParam": "100000000000000000",
31
+ "tokenOutParam": "0",
32
+ "maxPrice": "115792089237316195423570985008687907853269984665640564039457584007913129639935"
33
+ }
34
+ ],
35
+ "gasUSD": "14.684796"
36
+ }
37
+ }
38
+ ]
39
+ },
40
+ {
41
+ "srcToken": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
42
+ "srcDecimals": 6,
43
+ "destToken": "0x056fd409e1d7a124bd7017459dfea2f387b6d5cd",
44
+ "destDecimals": 2,
45
+ "swapExchanges": [
46
+ {
47
+ "exchange": "CurveV1",
48
+ "srcAmount": "212679108",
49
+ "destAmount": "21232",
50
+ "percent": 100,
51
+ "poolAddresses": ["0x4f062658eaaf2c1ccf8c8e36d6824cdf41167956"],
52
+ "data": {
53
+ "exchange": "0x4f062658eaaf2c1ccf8c8e36d6824cdf41167956",
54
+ "i": 2,
55
+ "j": 0,
56
+ "underlyingSwap": true,
57
+ "deadline": 0,
58
+ "gasUSD": "24.474660"
59
+ }
60
+ }
61
+ ]
62
+ }
63
+ ]
64
+ }
65
+ ],
66
+ "gasCostUSD": "52.361235",
67
+ "gasCost": "427881",
68
+ "side": "SELL",
69
+ "tokenTransferProxy": "0x216b4b4ba9f3e719726886d34a177484278bfcae",
70
+ "contractAddress": "0xDEF171Fe48CF0115B1d80b88dc8eAB59176FEe57",
71
+ "contractMethod": "multiSwap",
72
+ "partnerFee": 0,
73
+ "srcUSD": "214.6900000000",
74
+ "destUSD": "212.0010953600",
75
+ "partner": "any",
76
+ "maxImpactReached": false,
77
+ "hmac": "9a043a894c856bcdfdb82929fb2d64c51ad7d504"
78
+ }