@paraswap/dex-lib 3.0.6 → 3.2.5-return-amount-pos.4

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 (548) hide show
  1. package/.idea/aws.xml +17 -0
  2. package/.idea/codeStyles/Project.xml +55 -0
  3. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  4. package/.idea/inspectionProfiles/Project_Default.xml +6 -0
  5. package/.idea/misc.xml +6 -0
  6. package/.idea/modules.xml +8 -0
  7. package/.idea/paraswap-dex-lib-private.iml +9 -0
  8. package/.idea/prettier.xml +7 -0
  9. package/.idea/vcs.xml +6 -0
  10. package/README.md +327 -10
  11. package/build/abi/AugustusV6.abi.json +1454 -0
  12. package/build/abi/angle/stagToken.json +963 -0
  13. package/build/abi/augustus-v6/ABI.json +1084 -587
  14. package/build/abi/balancer-v2/gyro-e.abi.json +1595 -0
  15. package/build/abi/etherfi/eETHPool.json +9 -0
  16. package/build/abi/etherfi/weETH.json +20 -0
  17. package/build/abi/maker-psm/pot.json +322 -0
  18. package/build/abi/rswETH.json +1142 -0
  19. package/build/abi/sdai/SavingsDai.abi.json +877 -0
  20. package/build/abi/velodrome-slipstream/VelodromeSlipstreamFactory.abi.json +579 -0
  21. package/build/abi/velodrome-slipstream/VelodromeSlipstreamPool.abi.json +1275 -0
  22. package/build/abi/velodrome-slipstream/VelodromeSlipstreamStateMulticall.abi.json +766 -0
  23. package/build/config.js +51 -46
  24. package/build/config.js.map +1 -1
  25. package/build/dex/aave-v1/aave-v1.js +1 -0
  26. package/build/dex/aave-v1/aave-v1.js.map +1 -1
  27. package/build/dex/aave-v2/aave-v2.js +1 -0
  28. package/build/dex/aave-v2/aave-v2.js.map +1 -1
  29. package/build/dex/aave-v3/aave-v3.js +1 -0
  30. package/build/dex/aave-v3/aave-v3.js.map +1 -1
  31. package/build/dex/algebra/algebra-factory.js +1 -1
  32. package/build/dex/algebra/algebra-factory.js.map +1 -1
  33. package/build/dex/algebra/algebra-pool-v1_1.d.ts +7 -2
  34. package/build/dex/algebra/algebra-pool-v1_1.js +9 -2
  35. package/build/dex/algebra/algebra-pool-v1_1.js.map +1 -1
  36. package/build/dex/algebra/algebra-pool-v1_9.d.ts +4 -0
  37. package/build/dex/algebra/algebra-pool-v1_9.js +6 -0
  38. package/build/dex/algebra/algebra-pool-v1_9.js.map +1 -1
  39. package/build/dex/algebra/algebra-pool-v1_9_bidirectional_fee.d.ts +16 -0
  40. package/build/dex/algebra/algebra-pool-v1_9_bidirectional_fee.js +26 -0
  41. package/build/dex/algebra/algebra-pool-v1_9_bidirectional_fee.js.map +1 -0
  42. package/build/dex/algebra/algebra.d.ts +2 -1
  43. package/build/dex/algebra/algebra.js +13 -7
  44. package/build/dex/algebra/algebra.js.map +1 -1
  45. package/build/dex/algebra/config.js +4 -0
  46. package/build/dex/algebra/config.js.map +1 -1
  47. package/build/dex/algebra/types.d.ts +1 -1
  48. package/build/dex/angle-staked-stable/angle-staked-stable-pool.d.ts +56 -0
  49. package/build/dex/angle-staked-stable/angle-staked-stable-pool.js +197 -0
  50. package/build/dex/angle-staked-stable/angle-staked-stable-pool.js.map +1 -0
  51. package/build/dex/angle-staked-stable/angle-staked-stable.d.ts +49 -0
  52. package/build/dex/angle-staked-stable/angle-staked-stable.js +239 -0
  53. package/build/dex/angle-staked-stable/angle-staked-stable.js.map +1 -0
  54. package/build/dex/angle-staked-stable/config.d.ts +4 -0
  55. package/build/dex/angle-staked-stable/config.js +139 -0
  56. package/build/dex/angle-staked-stable/config.js.map +1 -0
  57. package/build/dex/angle-staked-stable/types.d.ts +15 -0
  58. package/build/dex/angle-staked-stable/types.js +3 -0
  59. package/build/dex/angle-staked-stable/types.js.map +1 -0
  60. package/build/dex/bProtocol/bProtocol.js +5 -0
  61. package/build/dex/bProtocol/bProtocol.js.map +1 -1
  62. package/build/dex/balancer-v1/balancer-v1.js +4 -0
  63. package/build/dex/balancer-v1/balancer-v1.js.map +1 -1
  64. package/build/dex/balancer-v2/balancer-v2.d.ts +9 -4
  65. package/build/dex/balancer-v2/balancer-v2.js +111 -84
  66. package/build/dex/balancer-v2/balancer-v2.js.map +1 -1
  67. package/build/dex/balancer-v2/pools/gyro/Gyro3Pool.d.ts +32 -0
  68. package/build/dex/balancer-v2/pools/gyro/Gyro3Pool.js +149 -0
  69. package/build/dex/balancer-v2/pools/gyro/Gyro3Pool.js.map +1 -0
  70. package/build/dex/balancer-v2/pools/gyro/GyroEPool.d.ts +37 -0
  71. package/build/dex/balancer-v2/pools/gyro/GyroEPool.js +222 -0
  72. package/build/dex/balancer-v2/pools/gyro/GyroEPool.js.map +1 -0
  73. package/build/dex/balancer-v2/pools/gyro/gyro-helpers.d.ts +2 -0
  74. package/build/dex/balancer-v2/pools/gyro/gyro-helpers.js +19 -0
  75. package/build/dex/balancer-v2/pools/gyro/gyro-helpers.js.map +1 -0
  76. package/build/dex/balancer-v2/queryOnChain.d.ts +1 -0
  77. package/build/dex/balancer-v2/queryOnChain.js +40 -0
  78. package/build/dex/balancer-v2/queryOnChain.js.map +1 -0
  79. package/build/dex/balancer-v2/types.d.ts +41 -2
  80. package/build/dex/balancer-v2/types.js +2 -0
  81. package/build/dex/balancer-v2/types.js.map +1 -1
  82. package/build/dex/balancer-v2/utils.d.ts +8 -0
  83. package/build/dex/balancer-v2/utils.js +17 -1
  84. package/build/dex/balancer-v2/utils.js.map +1 -1
  85. package/build/dex/bancor/bancor.js +4 -0
  86. package/build/dex/bancor/bancor.js.map +1 -1
  87. package/build/dex/camelot/camelot.js +1 -0
  88. package/build/dex/camelot/camelot.js.map +1 -1
  89. package/build/dex/compound/compound.js +1 -0
  90. package/build/dex/compound/compound.js.map +1 -1
  91. package/build/dex/curve-v1/curve-v1.js +1 -0
  92. package/build/dex/curve-v1/curve-v1.js.map +1 -1
  93. package/build/dex/curve-v1-factory/config.js +128 -11
  94. package/build/dex/curve-v1-factory/config.js.map +1 -1
  95. package/build/dex/curve-v1-factory/curve-v1-factory.d.ts +1 -0
  96. package/build/dex/curve-v1-factory/curve-v1-factory.js +30 -17
  97. package/build/dex/curve-v1-factory/curve-v1-factory.js.map +1 -1
  98. package/build/dex/curve-v1-factory/curve-v1-pool-manager.js +1 -0
  99. package/build/dex/curve-v1-factory/curve-v1-pool-manager.js.map +1 -1
  100. package/build/dex/curve-v1-factory/price-handlers/functions/_calc_withdraw_one_coin.js +1 -0
  101. package/build/dex/curve-v1-factory/price-handlers/functions/_calc_withdraw_one_coin.js.map +1 -1
  102. package/build/dex/curve-v1-factory/price-handlers/functions/_dynamic_fee.js +4 -1
  103. package/build/dex/curve-v1-factory/price-handlers/functions/_dynamic_fee.js.map +1 -1
  104. package/build/dex/curve-v1-factory/price-handlers/functions/_rates.js +1 -0
  105. package/build/dex/curve-v1-factory/price-handlers/functions/_rates.js.map +1 -1
  106. package/build/dex/curve-v1-factory/price-handlers/functions/_xp.js +1 -0
  107. package/build/dex/curve-v1-factory/price-handlers/functions/_xp.js.map +1 -1
  108. package/build/dex/curve-v1-factory/price-handlers/functions/_xp_mem.js +1 -0
  109. package/build/dex/curve-v1-factory/price-handlers/functions/_xp_mem.js.map +1 -1
  110. package/build/dex/curve-v1-factory/price-handlers/functions/calc_token_amount.js +1 -0
  111. package/build/dex/curve-v1-factory/price-handlers/functions/calc_token_amount.js.map +1 -1
  112. package/build/dex/curve-v1-factory/price-handlers/functions/calc_withdraw_one_coin.js +1 -0
  113. package/build/dex/curve-v1-factory/price-handlers/functions/calc_withdraw_one_coin.js.map +1 -1
  114. package/build/dex/curve-v1-factory/price-handlers/functions/constants.js +10 -0
  115. package/build/dex/curve-v1-factory/price-handlers/functions/constants.js.map +1 -1
  116. package/build/dex/curve-v1-factory/price-handlers/functions/get_D.js +40 -0
  117. package/build/dex/curve-v1-factory/price-handlers/functions/get_D.js.map +1 -1
  118. package/build/dex/curve-v1-factory/price-handlers/functions/get_D_mem.js +1 -0
  119. package/build/dex/curve-v1-factory/price-handlers/functions/get_D_mem.js.map +1 -1
  120. package/build/dex/curve-v1-factory/price-handlers/functions/get_D_precisions.js +1 -0
  121. package/build/dex/curve-v1-factory/price-handlers/functions/get_D_precisions.js.map +1 -1
  122. package/build/dex/curve-v1-factory/price-handlers/functions/get_dy.js +24 -0
  123. package/build/dex/curve-v1-factory/price-handlers/functions/get_dy.js.map +1 -1
  124. package/build/dex/curve-v1-factory/price-handlers/functions/get_dy_underlying.js +1 -0
  125. package/build/dex/curve-v1-factory/price-handlers/functions/get_dy_underlying.js.map +1 -1
  126. package/build/dex/curve-v1-factory/price-handlers/functions/get_y.js +53 -0
  127. package/build/dex/curve-v1-factory/price-handlers/functions/get_y.js.map +1 -1
  128. package/build/dex/curve-v1-factory/price-handlers/functions/get_y_D.js +1 -0
  129. package/build/dex/curve-v1-factory/price-handlers/functions/get_y_D.js.map +1 -1
  130. package/build/dex/curve-v1-factory/price-handlers/functions/utils.d.ts +1 -0
  131. package/build/dex/curve-v1-factory/price-handlers/functions/utils.js +5 -1
  132. package/build/dex/curve-v1-factory/price-handlers/functions/utils.js.map +1 -1
  133. package/build/dex/curve-v1-factory/price-handlers/types.d.ts +2 -2
  134. package/build/dex/curve-v1-factory/state-polling-pools/factory-pool-polling.d.ts +3 -2
  135. package/build/dex/curve-v1-factory/state-polling-pools/factory-pool-polling.js +38 -6
  136. package/build/dex/curve-v1-factory/state-polling-pools/factory-pool-polling.js.map +1 -1
  137. package/build/dex/curve-v1-factory/state-polling-pools/pool-polling-base.js.map +1 -1
  138. package/build/dex/curve-v1-factory/types.d.ts +11 -2
  139. package/build/dex/curve-v1-factory/types.js +3 -0
  140. package/build/dex/curve-v1-factory/types.js.map +1 -1
  141. package/build/dex/curve-v2/curve-v2.js +1 -0
  142. package/build/dex/curve-v2/curve-v2.js.map +1 -1
  143. package/build/dex/dexalot/config.js +7 -0
  144. package/build/dex/dexalot/config.js.map +1 -1
  145. package/build/dex/dexalot/dexalot.js +2 -0
  146. package/build/dex/dexalot/dexalot.js.map +1 -1
  147. package/build/dex/dodo-v1/dodo-v1.js +4 -0
  148. package/build/dex/dodo-v1/dodo-v1.js.map +1 -1
  149. package/build/dex/dodo-v2.js +4 -0
  150. package/build/dex/dodo-v2.js.map +1 -1
  151. package/build/dex/etherfi.d.ts +27 -0
  152. package/build/dex/etherfi.js +146 -0
  153. package/build/dex/etherfi.js.map +1 -0
  154. package/build/dex/generic-rfq/generic-rfq.js +4 -3
  155. package/build/dex/generic-rfq/generic-rfq.js.map +1 -1
  156. package/build/dex/generic-rfq/rate-fetcher.d.ts +1 -1
  157. package/build/dex/generic-rfq/rate-fetcher.js +2 -1
  158. package/build/dex/generic-rfq/rate-fetcher.js.map +1 -1
  159. package/build/dex/generic-rfq/types.d.ts +1 -0
  160. package/build/dex/generic-rfq/types.js.map +1 -1
  161. package/build/dex/gmx/gmx.js +4 -0
  162. package/build/dex/gmx/gmx.js.map +1 -1
  163. package/build/dex/hashflow/constants.d.ts +27 -0
  164. package/build/dex/hashflow/constants.js +29 -1
  165. package/build/dex/hashflow/constants.js.map +1 -1
  166. package/build/dex/hashflow/hashflow.d.ts +3 -2
  167. package/build/dex/hashflow/hashflow.js +72 -13
  168. package/build/dex/hashflow/hashflow.js.map +1 -1
  169. package/build/dex/hashflow/types.d.ts +11 -0
  170. package/build/dex/hashflow/types.js +9 -0
  171. package/build/dex/hashflow/types.js.map +1 -1
  172. package/build/dex/idex.d.ts +2 -2
  173. package/build/dex/index.d.ts +2 -2
  174. package/build/dex/index.js +10 -0
  175. package/build/dex/index.js.map +1 -1
  176. package/build/dex/jarvis-v6/jarvis-v6.js +1 -0
  177. package/build/dex/jarvis-v6/jarvis-v6.js.map +1 -1
  178. package/build/dex/jarvis.js +8 -0
  179. package/build/dex/jarvis.js.map +1 -1
  180. package/build/dex/kyberdmm/kyberdmm.js +4 -0
  181. package/build/dex/kyberdmm/kyberdmm.js.map +1 -1
  182. package/build/dex/lido/lido.d.ts +4 -1
  183. package/build/dex/lido/lido.js +18 -1
  184. package/build/dex/lido/lido.js.map +1 -1
  185. package/build/dex/maker-psm/maker-psm.js +1 -0
  186. package/build/dex/maker-psm/maker-psm.js.map +1 -1
  187. package/build/dex/maverick-v1/maverick-v1.js +4 -0
  188. package/build/dex/maverick-v1/maverick-v1.js.map +1 -1
  189. package/build/dex/nerve/nerve.js +4 -0
  190. package/build/dex/nerve/nerve.js.map +1 -1
  191. package/build/dex/onebit/onebit.js +5 -0
  192. package/build/dex/onebit/onebit.js.map +1 -1
  193. package/build/dex/pancakeswap-v3/config.js +30 -0
  194. package/build/dex/pancakeswap-v3/config.js.map +1 -1
  195. package/build/dex/pancakeswap-v3/pancakeswap-v3-factory.js +1 -1
  196. package/build/dex/pancakeswap-v3/pancakeswap-v3-factory.js.map +1 -1
  197. package/build/dex/pancakeswap-v3/pancakeswap-v3-pool.d.ts +5 -0
  198. package/build/dex/pancakeswap-v3/pancakeswap-v3-pool.js +7 -0
  199. package/build/dex/pancakeswap-v3/pancakeswap-v3-pool.js.map +1 -1
  200. package/build/dex/pancakeswap-v3/pancakeswap-v3.js +16 -8
  201. package/build/dex/pancakeswap-v3/pancakeswap-v3.js.map +1 -1
  202. package/build/dex/paraswap-limit-orders/paraswap-limit-orders.js +1 -0
  203. package/build/dex/paraswap-limit-orders/paraswap-limit-orders.js.map +1 -1
  204. package/build/dex/platypus/platypus.js +17 -3
  205. package/build/dex/platypus/platypus.js.map +1 -1
  206. package/build/dex/polygon-migrator/polygon-migrator.js +1 -0
  207. package/build/dex/polygon-migrator/polygon-migrator.js.map +1 -1
  208. package/build/dex/quick-perps/quick-perps.js +7 -1
  209. package/build/dex/quick-perps/quick-perps.js.map +1 -1
  210. package/build/dex/simple-exchange.d.ts +0 -1
  211. package/build/dex/simple-exchange.js +0 -2
  212. package/build/dex/simple-exchange.js.map +1 -1
  213. package/build/dex/smoothy/smoothy.js +1 -0
  214. package/build/dex/smoothy/smoothy.js.map +1 -1
  215. package/build/dex/smoothy.d.ts +1 -1
  216. package/build/dex/smoothy.js +2 -3
  217. package/build/dex/smoothy.js.map +1 -1
  218. package/build/dex/solidly/config.js +12 -0
  219. package/build/dex/solidly/config.js.map +1 -1
  220. package/build/dex/solidly/forks-override/pharaohV1.d.ts +8 -0
  221. package/build/dex/solidly/forks-override/pharaohV1.js +15 -0
  222. package/build/dex/solidly/forks-override/pharaohV1.js.map +1 -0
  223. package/build/dex/solidly/solidly.js +2 -0
  224. package/build/dex/solidly/solidly.js.map +1 -1
  225. package/build/dex/solidly-v3/config.js +13 -1
  226. package/build/dex/solidly-v3/config.js.map +1 -1
  227. package/build/dex/solidly-v3/solidly-v3-factory.js +1 -1
  228. package/build/dex/solidly-v3/solidly-v3-factory.js.map +1 -1
  229. package/build/dex/solidly-v3/solidly-v3-pool.d.ts +5 -0
  230. package/build/dex/solidly-v3/solidly-v3-pool.js +7 -0
  231. package/build/dex/solidly-v3/solidly-v3-pool.js.map +1 -1
  232. package/build/dex/solidly-v3/solidly-v3.d.ts +1 -2
  233. package/build/dex/solidly-v3/solidly-v3.js +5 -11
  234. package/build/dex/solidly-v3/solidly-v3.js.map +1 -1
  235. package/build/dex/solidly-v3/types.d.ts +0 -1
  236. package/build/dex/solidly-v3/types.js.map +1 -1
  237. package/build/dex/spark/config.d.ts +11 -0
  238. package/build/dex/spark/config.js +21 -0
  239. package/build/dex/spark/config.js.map +1 -0
  240. package/build/dex/spark/constants.d.ts +2 -0
  241. package/build/dex/spark/constants.js +6 -0
  242. package/build/dex/spark/constants.js.map +1 -0
  243. package/build/dex/spark/scripts/validate-state.d.ts +1 -0
  244. package/build/dex/spark/scripts/validate-state.js +102 -0
  245. package/build/dex/spark/scripts/validate-state.js.map +1 -0
  246. package/build/dex/spark/spark-sdai-pool.d.ts +16 -0
  247. package/build/dex/spark/spark-sdai-pool.js +85 -0
  248. package/build/dex/spark/spark-sdai-pool.js.map +1 -0
  249. package/build/dex/spark/spark.d.ts +52 -0
  250. package/build/dex/spark/spark.js +195 -0
  251. package/build/dex/spark/spark.js.map +1 -0
  252. package/build/dex/spark/types.d.ts +21 -0
  253. package/build/dex/spark/types.js +11 -0
  254. package/build/dex/spark/types.js.map +1 -0
  255. package/build/dex/spark/utils.d.ts +4 -0
  256. package/build/dex/spark/utils.js +39 -0
  257. package/build/dex/spark/utils.js.map +1 -0
  258. package/build/dex/stable-pool/stable-pool.js +4 -0
  259. package/build/dex/stable-pool/stable-pool.js.map +1 -1
  260. package/build/dex/swaap-v1/swaap-v1.js +4 -0
  261. package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
  262. package/build/dex/swaap-v2/swaap-v2.js +1 -0
  263. package/build/dex/swaap-v2/swaap-v2.js.map +1 -1
  264. package/build/dex/swell/config.d.ts +1 -0
  265. package/build/dex/swell/config.js +1 -0
  266. package/build/dex/swell/config.js.map +1 -1
  267. package/build/dex/swell/rsweth-pool.d.ts +16 -0
  268. package/build/dex/swell/rsweth-pool.js +38 -0
  269. package/build/dex/swell/rsweth-pool.js.map +1 -0
  270. package/build/dex/swell/swell.d.ts +7 -2
  271. package/build/dex/swell/swell.js +58 -27
  272. package/build/dex/swell/swell.js.map +1 -1
  273. package/build/dex/swell/sweth-pool.js +1 -1
  274. package/build/dex/swell/sweth-pool.js.map +1 -1
  275. package/build/dex/swell/type.d.ts +3 -0
  276. package/build/dex/swell/utils.d.ts +3 -2
  277. package/build/dex/swell/utils.js +19 -3
  278. package/build/dex/swell/utils.js.map +1 -1
  279. package/build/dex/synthetix/synthetix.js +6 -0
  280. package/build/dex/synthetix/synthetix.js.map +1 -1
  281. package/build/dex/trader-joe-v2.1/trader-joe-v2.1.js +4 -0
  282. package/build/dex/trader-joe-v2.1/trader-joe-v2.1.js.map +1 -1
  283. package/build/dex/uniswap-v2/config.js +56 -0
  284. package/build/dex/uniswap-v2/config.js.map +1 -1
  285. package/build/dex/uniswap-v2/types.d.ts +1 -1
  286. package/build/dex/uniswap-v2/uniswap-v2.js +2 -1
  287. package/build/dex/uniswap-v2/uniswap-v2.js.map +1 -1
  288. package/build/dex/uniswap-v3/config.js +102 -1
  289. package/build/dex/uniswap-v3/config.js.map +1 -1
  290. package/build/dex/uniswap-v3/forks/velodrome-slipstream/utils.d.ts +4 -0
  291. package/build/dex/uniswap-v3/forks/velodrome-slipstream/utils.js +56 -0
  292. package/build/dex/uniswap-v3/forks/velodrome-slipstream/utils.js.map +1 -0
  293. package/build/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream-factory.d.ts +7 -0
  294. package/build/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream-factory.js +23 -0
  295. package/build/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream-factory.js.map +1 -0
  296. package/build/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream-pool.d.ts +13 -0
  297. package/build/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream-pool.js +137 -0
  298. package/build/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream-pool.js.map +1 -0
  299. package/build/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream.d.ts +46 -0
  300. package/build/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream.js +117 -0
  301. package/build/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream.js.map +1 -0
  302. package/build/dex/uniswap-v3/types.d.ts +8 -2
  303. package/build/dex/uniswap-v3/types.js.map +1 -1
  304. package/build/dex/uniswap-v3/uniswap-v3-factory.js +1 -1
  305. package/build/dex/uniswap-v3/uniswap-v3-factory.js.map +1 -1
  306. package/build/dex/uniswap-v3/uniswap-v3-pool.d.ts +9 -2
  307. package/build/dex/uniswap-v3/uniswap-v3-pool.js +15 -2
  308. package/build/dex/uniswap-v3/uniswap-v3-pool.js.map +1 -1
  309. package/build/dex/uniswap-v3/uniswap-v3.d.ts +27 -12
  310. package/build/dex/uniswap-v3/uniswap-v3.js +108 -76
  311. package/build/dex/uniswap-v3/uniswap-v3.js.map +1 -1
  312. package/build/dex/uniswap-v3.js +4 -0
  313. package/build/dex/uniswap-v3.js.map +1 -1
  314. package/build/dex/weth/weth.js +1 -0
  315. package/build/dex/weth/weth.js.map +1 -1
  316. package/build/dex/wombat/wombat.js +4 -0
  317. package/build/dex/wombat/wombat.js.map +1 -1
  318. package/build/dex/woo-fi-v2/config.js +16 -16
  319. package/build/dex/woo-fi-v2/woo-fi-v2.js +4 -0
  320. package/build/dex/woo-fi-v2/woo-fi-v2.js.map +1 -1
  321. package/build/dex/wsteth/wsteth.js +8 -1
  322. package/build/dex/wsteth/wsteth.js.map +1 -1
  323. package/build/dex/zerox/index.js +1 -0
  324. package/build/dex/zerox/index.js.map +1 -1
  325. package/build/executor/Executor01BytecodeBuilder.d.ts +6 -8
  326. package/build/executor/Executor01BytecodeBuilder.js +47 -8
  327. package/build/executor/Executor01BytecodeBuilder.js.map +1 -1
  328. package/build/executor/Executor02BytecodeBuilder.d.ts +18 -12
  329. package/build/executor/Executor02BytecodeBuilder.js +55 -10
  330. package/build/executor/Executor02BytecodeBuilder.js.map +1 -1
  331. package/build/executor/Executor03BytecodeBuilder.d.ts +11 -8
  332. package/build/executor/Executor03BytecodeBuilder.js +27 -5
  333. package/build/executor/Executor03BytecodeBuilder.js.map +1 -1
  334. package/build/executor/ExecutorBytecodeBuilder.d.ts +29 -6
  335. package/build/executor/ExecutorBytecodeBuilder.js +23 -4
  336. package/build/executor/ExecutorBytecodeBuilder.js.map +1 -1
  337. package/build/executor/ExecutorDetector.d.ts +2 -0
  338. package/build/executor/ExecutorDetector.js +12 -0
  339. package/build/executor/ExecutorDetector.js.map +1 -1
  340. package/build/executor/IExecutorBytecodeBuilder.d.ts +10 -0
  341. package/build/executor/IExecutorBytecodeBuilder.js +3 -0
  342. package/build/executor/IExecutorBytecodeBuilder.js.map +1 -0
  343. package/build/executor/WETHBytecodeBuilder.d.ts +14 -0
  344. package/build/executor/WETHBytecodeBuilder.js +47 -0
  345. package/build/executor/WETHBytecodeBuilder.js.map +1 -0
  346. package/build/executor/constants.d.ts +3 -1
  347. package/build/executor/constants.js +8 -3
  348. package/build/executor/constants.js.map +1 -1
  349. package/build/executor/types.d.ts +1 -0
  350. package/build/executor/types.js +1 -0
  351. package/build/executor/types.js.map +1 -1
  352. package/build/executor/utils.d.ts +2 -0
  353. package/build/executor/utils.js +30 -0
  354. package/build/executor/utils.js.map +1 -0
  355. package/build/generic-swap-transaction-builder.js +11 -5
  356. package/build/generic-swap-transaction-builder.js.map +1 -1
  357. package/build/implementations/local-paraswap-sdk.js +1 -1
  358. package/build/implementations/local-paraswap-sdk.js.map +1 -1
  359. package/build/stateful-event-subscriber.d.ts +1 -0
  360. package/build/stateful-event-subscriber.js +8 -1
  361. package/build/stateful-event-subscriber.js.map +1 -1
  362. package/build/types.d.ts +3 -0
  363. package/package.json +4 -3
  364. package/src/abi/angle/stagToken.json +963 -0
  365. package/src/abi/augustus-v6/ABI.json +1084 -587
  366. package/src/abi/balancer-v2/gyro-e.abi.json +1595 -0
  367. package/src/abi/etherfi/eETHPool.json +9 -0
  368. package/src/abi/etherfi/weETH.json +20 -0
  369. package/src/abi/maker-psm/pot.json +322 -0
  370. package/src/abi/rswETH.json +1142 -0
  371. package/src/abi/sdai/SavingsDai.abi.json +877 -0
  372. package/src/abi/velodrome-slipstream/VelodromeSlipstreamFactory.abi.json +579 -0
  373. package/src/abi/velodrome-slipstream/VelodromeSlipstreamPool.abi.json +1275 -0
  374. package/src/abi/velodrome-slipstream/VelodromeSlipstreamQuoterV2.abi.json +267 -0
  375. package/src/abi/velodrome-slipstream/VelodromeSlipstreamStateMulticall.abi.json +766 -0
  376. package/src/config.ts +51 -46
  377. package/src/dex/aave-v1/aave-v1.ts +1 -0
  378. package/src/dex/aave-v2/aave-v2.ts +1 -0
  379. package/src/dex/aave-v3/aave-v3.ts +1 -0
  380. package/src/dex/algebra/algebra-e2e.test.ts +22 -0
  381. package/src/dex/algebra/algebra-factory.ts +8 -1
  382. package/src/dex/algebra/algebra-pool-v1_1.ts +10 -2
  383. package/src/dex/algebra/algebra-pool-v1_9.ts +7 -0
  384. package/src/dex/algebra/algebra-pool-v1_9_bidirectional_fee.ts +55 -0
  385. package/src/dex/algebra/algebra.ts +28 -14
  386. package/src/dex/algebra/config.ts +4 -0
  387. package/src/dex/algebra/types.ts +1 -1
  388. package/src/dex/angle-staked-stable/angle-staked-stable-e2e.test.ts +146 -0
  389. package/src/dex/angle-staked-stable/angle-staked-stable-events.test.ts +95 -0
  390. package/src/dex/angle-staked-stable/angle-staked-stable-integration.test.ts +476 -0
  391. package/src/dex/angle-staked-stable/angle-staked-stable-pool.ts +325 -0
  392. package/src/dex/angle-staked-stable/angle-staked-stable.ts +351 -0
  393. package/src/dex/angle-staked-stable/config.ts +139 -0
  394. package/src/dex/angle-staked-stable/types.ts +16 -0
  395. package/src/dex/bProtocol/bProtocol.ts +8 -0
  396. package/src/dex/balancer-v1/balancer-v1.ts +9 -0
  397. package/src/dex/balancer-v2/balancer-v2-e2e.test.ts +94 -0
  398. package/src/dex/balancer-v2/balancer-v2-gyro3.test.ts +268 -0
  399. package/src/dex/balancer-v2/balancer-v2-gyroE.test.ts +401 -0
  400. package/src/dex/balancer-v2/balancer-v2-integration.test.ts +253 -112
  401. package/src/dex/balancer-v2/balancer-v2.ts +203 -143
  402. package/src/dex/balancer-v2/pools/gyro/Gyro3Pool.ts +255 -0
  403. package/src/dex/balancer-v2/pools/gyro/GyroEPool.ts +403 -0
  404. package/src/dex/balancer-v2/pools/gyro/gyro-helpers.ts +15 -0
  405. package/src/dex/balancer-v2/queryOnChain.ts +48 -0
  406. package/src/dex/balancer-v2/types.ts +45 -1
  407. package/src/dex/balancer-v2/utils.ts +16 -0
  408. package/src/dex/bancor/bancor.ts +8 -0
  409. package/src/dex/camelot/camelot.ts +1 -0
  410. package/src/dex/compound/compound.ts +1 -0
  411. package/src/dex/curve-v1/curve-v1.ts +1 -0
  412. package/src/dex/curve-v1-factory/config.ts +128 -11
  413. package/src/dex/curve-v1-factory/curve-v1-factory-e2e.test.ts +122 -1
  414. package/src/dex/curve-v1-factory/curve-v1-factory-integration.test.ts +392 -0
  415. package/src/dex/curve-v1-factory/curve-v1-factory.ts +62 -39
  416. package/src/dex/curve-v1-factory/curve-v1-pool-manager.ts +1 -0
  417. package/src/dex/curve-v1-factory/price-handlers/functions/_calc_withdraw_one_coin.ts +2 -0
  418. package/src/dex/curve-v1-factory/price-handlers/functions/_dynamic_fee.ts +6 -2
  419. package/src/dex/curve-v1-factory/price-handlers/functions/_rates.ts +2 -0
  420. package/src/dex/curve-v1-factory/price-handlers/functions/_xp.ts +2 -0
  421. package/src/dex/curve-v1-factory/price-handlers/functions/_xp_mem.ts +2 -0
  422. package/src/dex/curve-v1-factory/price-handlers/functions/calc_token_amount.ts +2 -0
  423. package/src/dex/curve-v1-factory/price-handlers/functions/calc_withdraw_one_coin.ts +2 -0
  424. package/src/dex/curve-v1-factory/price-handlers/functions/constants.ts +11 -0
  425. package/src/dex/curve-v1-factory/price-handlers/functions/get_D.ts +59 -1
  426. package/src/dex/curve-v1-factory/price-handlers/functions/get_D_mem.ts +2 -0
  427. package/src/dex/curve-v1-factory/price-handlers/functions/get_D_precisions.ts +2 -0
  428. package/src/dex/curve-v1-factory/price-handlers/functions/get_dy.ts +51 -0
  429. package/src/dex/curve-v1-factory/price-handlers/functions/get_dy_underlying.ts +2 -0
  430. package/src/dex/curve-v1-factory/price-handlers/functions/get_y.ts +68 -1
  431. package/src/dex/curve-v1-factory/price-handlers/functions/get_y_D.ts +2 -0
  432. package/src/dex/curve-v1-factory/price-handlers/functions/utils.ts +4 -0
  433. package/src/dex/curve-v1-factory/price-handlers/types.ts +8 -1
  434. package/src/dex/curve-v1-factory/state-polling-pools/factory-pool-polling.ts +71 -18
  435. package/src/dex/curve-v1-factory/state-polling-pools/pool-polling-base.ts +1 -0
  436. package/src/dex/curve-v1-factory/types.ts +12 -1
  437. package/src/dex/curve-v2/curve-v2.ts +1 -0
  438. package/src/dex/dexalot/config.ts +7 -0
  439. package/src/dex/dexalot/dexalot-e2e.test.ts +23 -1
  440. package/src/dex/dexalot/dexalot-integration.test.ts +121 -0
  441. package/src/dex/dexalot/dexalot.ts +2 -0
  442. package/src/dex/dodo-v1/dodo-v1.ts +9 -0
  443. package/src/dex/dodo-v2.ts +9 -0
  444. package/src/dex/etherfi.ts +239 -0
  445. package/src/dex/generic-rfq/generic-rfq.ts +4 -2
  446. package/src/dex/generic-rfq/rate-fetcher.ts +2 -0
  447. package/src/dex/generic-rfq/types.ts +1 -0
  448. package/src/dex/gmx/gmx.ts +8 -0
  449. package/src/dex/hashflow/constants.ts +32 -0
  450. package/src/dex/hashflow/hashflow.ts +126 -20
  451. package/src/dex/hashflow/types.ts +20 -2
  452. package/src/dex/idex.ts +2 -1
  453. package/src/dex/index.ts +12 -2
  454. package/src/dex/jarvis-v6/jarvis-v6.ts +1 -0
  455. package/src/dex/jarvis.ts +14 -0
  456. package/src/dex/kyberdmm/kyberdmm.ts +9 -0
  457. package/src/dex/lido/lido-e2e.test.ts +10 -0
  458. package/src/dex/lido/lido.ts +25 -2
  459. package/src/dex/maker-psm/maker-psm.ts +1 -0
  460. package/src/dex/maverick-v1/maverick-v1.ts +9 -0
  461. package/src/dex/nerve/nerve.ts +8 -0
  462. package/src/dex/onebit/onebit.ts +8 -0
  463. package/src/dex/pancakeswap-v3/config.ts +32 -0
  464. package/src/dex/pancakeswap-v3/pancakeswap-v3-e2e.test.ts +21 -0
  465. package/src/dex/pancakeswap-v3/pancakeswap-v3-factory.ts +8 -1
  466. package/src/dex/pancakeswap-v3/pancakeswap-v3-pool.ts +8 -0
  467. package/src/dex/pancakeswap-v3/pancakeswap-v3.ts +27 -13
  468. package/src/dex/paraswap-limit-orders/paraswap-limit-orders.ts +1 -0
  469. package/src/dex/platypus/platypus.ts +20 -3
  470. package/src/dex/polygon-migrator/polygon-migrator.ts +1 -0
  471. package/src/dex/quick-perps/quick-perps.ts +11 -1
  472. package/src/dex/simple-exchange.ts +0 -4
  473. package/src/dex/smoothy/smoothy.ts +1 -0
  474. package/src/dex/solidly/config.ts +14 -0
  475. package/src/dex/solidly/forks-override/pharaohV1.ts +10 -0
  476. package/src/dex/solidly/solidly-e2e.test.ts +21 -0
  477. package/src/dex/solidly/solidly-integration.test.ts +143 -0
  478. package/src/dex/solidly/solidly.ts +2 -0
  479. package/src/dex/solidly-v3/config.ts +15 -1
  480. package/src/dex/solidly-v3/solidly-v3-e2e.test.ts +33 -0
  481. package/src/dex/solidly-v3/solidly-v3-factory.ts +8 -1
  482. package/src/dex/solidly-v3/solidly-v3-pool.ts +8 -0
  483. package/src/dex/solidly-v3/solidly-v3.ts +8 -16
  484. package/src/dex/solidly-v3/types.ts +0 -1
  485. package/src/dex/spark/config.ts +25 -0
  486. package/src/dex/spark/constants.ts +2 -0
  487. package/src/dex/spark/scripts/validate-state.ts +144 -0
  488. package/src/dex/spark/spark-e2e.test.ts +96 -0
  489. package/src/dex/spark/spark-events.test.ts +102 -0
  490. package/src/dex/spark/spark-integration.test.ts +151 -0
  491. package/src/dex/spark/spark-sdai-pool.ts +114 -0
  492. package/src/dex/spark/spark.ts +284 -0
  493. package/src/dex/spark/types.ts +23 -0
  494. package/src/dex/spark/utils.ts +47 -0
  495. package/src/dex/stable-pool/stable-pool.ts +8 -0
  496. package/src/dex/swaap-v1/swaap-v1.ts +9 -0
  497. package/src/dex/swaap-v2/swaap-v2.ts +1 -0
  498. package/src/dex/swell/config.ts +2 -0
  499. package/src/dex/swell/rsweth-pool.ts +58 -0
  500. package/src/dex/swell/swell-e2e.test.ts +33 -31
  501. package/src/dex/swell/swell.ts +88 -35
  502. package/src/dex/swell/sweth-pool.ts +2 -2
  503. package/src/dex/swell/type.ts +4 -0
  504. package/src/dex/swell/utils.ts +26 -2
  505. package/src/dex/synthetix/synthetix-state.ts +2 -2
  506. package/src/dex/synthetix/synthetix.ts +11 -0
  507. package/src/dex/trader-joe-v2.1/trader-joe-v2.1.ts +9 -0
  508. package/src/dex/uniswap-v2/config.ts +58 -0
  509. package/src/dex/uniswap-v2/types.ts +2 -2
  510. package/src/dex/uniswap-v2/uniswap-v2-e2e-base.test.ts +48 -0
  511. package/src/dex/uniswap-v2/uniswap-v2.ts +2 -1
  512. package/src/dex/uniswap-v3/config.ts +112 -3
  513. package/src/dex/uniswap-v3/forks/velodrome-slipstream/utils.ts +65 -0
  514. package/src/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream-factory.ts +16 -0
  515. package/src/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream-pool.ts +197 -0
  516. package/src/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream.ts +237 -0
  517. package/src/dex/uniswap-v3/types.ts +6 -2
  518. package/src/dex/uniswap-v3/uniswap-v3-e2e.test.ts +184 -3
  519. package/src/dex/uniswap-v3/uniswap-v3-factory.ts +8 -1
  520. package/src/dex/uniswap-v3/uniswap-v3-integration.test.ts +741 -6
  521. package/src/dex/uniswap-v3/uniswap-v3-pool.ts +17 -9
  522. package/src/dex/uniswap-v3/uniswap-v3.ts +204 -121
  523. package/src/dex/uniswap-v3.ts +9 -0
  524. package/src/dex/weth/weth-e2e-v6.test.ts +117 -0
  525. package/src/dex/weth/weth.ts +1 -0
  526. package/src/dex/wombat/wombat.ts +9 -0
  527. package/src/dex/woo-fi-v2/config.ts +16 -16
  528. package/src/dex/woo-fi-v2/woo-fi-v2.ts +5 -0
  529. package/src/dex/wsteth/wsteth.ts +13 -4
  530. package/src/dex/zerox/index.ts +1 -0
  531. package/src/executor/Executor01BytecodeBuilder.ts +69 -29
  532. package/src/executor/Executor02BytecodeBuilder.ts +99 -44
  533. package/src/executor/Executor03BytecodeBuilder.ts +52 -33
  534. package/src/executor/ExecutorBytecodeBuilder.ts +57 -18
  535. package/src/executor/ExecutorDetector.ts +14 -0
  536. package/src/executor/WETHBytecodeBuilder.ts +57 -0
  537. package/src/executor/constants.ts +8 -2
  538. package/src/executor/executor01-bytecode-builder-e2e.test.ts +39 -0
  539. package/src/executor/executor02-bytecode-builder-e2e.test.ts +35 -0
  540. package/src/executor/types.ts +1 -0
  541. package/src/executor/utils.ts +44 -0
  542. package/src/generic-swap-transaction-builder.ts +14 -4
  543. package/src/implementations/local-paraswap-sdk.ts +1 -1
  544. package/src/stateful-event-subscriber.ts +13 -1
  545. package/src/types.ts +3 -0
  546. package/tests/constants-e2e.ts +233 -12
  547. package/tests/utils-e2e.ts +82 -2
  548. package/tests/debug-price-route.json +0 -87
@@ -1,958 +1,1323 @@
1
1
  [
2
2
  {
3
- "type": "constructor",
4
3
  "inputs": [
5
- { "name": "_owner", "type": "address", "internalType": "address" },
6
4
  {
5
+ "internalType": "address",
6
+ "name": "_owner",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "address",
7
11
  "name": "_diamondCutFacet",
8
- "type": "address",
9
- "internalType": "address"
12
+ "type": "address"
13
+ },
14
+ {
15
+ "internalType": "address",
16
+ "name": "_weth",
17
+ "type": "address"
10
18
  },
11
- { "name": "_weth", "type": "address", "internalType": "address" },
12
19
  {
20
+ "internalType": "address payable",
13
21
  "name": "_balancerVault",
14
- "type": "address",
15
- "internalType": "address payable"
22
+ "type": "address"
16
23
  },
17
- { "name": "_dai", "type": "address", "internalType": "address" },
18
24
  {
25
+ "internalType": "uint256",
19
26
  "name": "_uniV3FactoryAndFF",
20
- "type": "uint256",
21
- "internalType": "uint256"
27
+ "type": "uint256"
22
28
  },
23
29
  {
30
+ "internalType": "uint256",
24
31
  "name": "_uniswapV3PoolInitCodeHash",
25
- "type": "uint256",
26
- "internalType": "uint256"
32
+ "type": "uint256"
27
33
  },
28
34
  {
35
+ "internalType": "uint256",
29
36
  "name": "_uniswapV2FactoryAndFF",
30
- "type": "uint256",
31
- "internalType": "uint256"
37
+ "type": "uint256"
32
38
  },
33
39
  {
40
+ "internalType": "uint256",
34
41
  "name": "_uniswapV2PoolInitCodeHash",
35
- "type": "uint256",
36
- "internalType": "uint256"
42
+ "type": "uint256"
37
43
  },
38
- { "name": "_rfq", "type": "address", "internalType": "address" },
39
44
  {
45
+ "internalType": "address",
46
+ "name": "_rfq",
47
+ "type": "address"
48
+ },
49
+ {
50
+ "internalType": "address payable",
40
51
  "name": "_feeVault",
41
- "type": "address",
42
- "internalType": "address payable"
52
+ "type": "address"
43
53
  },
44
- { "name": "_permit2", "type": "address", "internalType": "address" }
54
+ {
55
+ "internalType": "address",
56
+ "name": "_permit2",
57
+ "type": "address"
58
+ }
45
59
  ],
46
- "stateMutability": "nonpayable"
60
+ "stateMutability": "nonpayable",
61
+ "type": "constructor"
47
62
  },
48
- { "type": "fallback", "stateMutability": "payable" },
49
- { "type": "receive", "stateMutability": "payable" },
50
63
  {
51
- "type": "function",
52
- "name": "AUGUSTUS_RFQ",
53
64
  "inputs": [],
54
- "outputs": [
55
- { "name": "", "type": "address", "internalType": "contract IAugustusRFQ" }
56
- ],
57
- "stateMutability": "view"
65
+ "name": "CallbackTransferFailed",
66
+ "type": "error"
58
67
  },
59
68
  {
60
- "type": "function",
61
- "name": "BALANCER_VAULT",
62
69
  "inputs": [],
63
- "outputs": [
64
- { "name": "", "type": "address", "internalType": "address payable" }
70
+ "name": "ContractPaused",
71
+ "type": "error"
72
+ },
73
+ {
74
+ "inputs": [],
75
+ "name": "IncorrectEthAmount",
76
+ "type": "error"
77
+ },
78
+ {
79
+ "inputs": [
80
+ {
81
+ "internalType": "address",
82
+ "name": "_initializationContractAddress",
83
+ "type": "address"
84
+ },
85
+ {
86
+ "internalType": "bytes",
87
+ "name": "_calldata",
88
+ "type": "bytes"
89
+ }
65
90
  ],
66
- "stateMutability": "view"
91
+ "name": "InitializationFunctionReverted",
92
+ "type": "error"
67
93
  },
68
94
  {
69
- "type": "function",
70
- "name": "DAI_MAKER",
71
95
  "inputs": [],
72
- "outputs": [{ "name": "", "type": "address", "internalType": "address" }],
73
- "stateMutability": "view"
96
+ "name": "InsufficientBalanceToPayFees",
97
+ "type": "error"
74
98
  },
75
99
  {
76
- "type": "function",
77
- "name": "FEE_PERCENT_IN_BASIS_POINTS_MASK",
78
100
  "inputs": [],
79
- "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
80
- "stateMutability": "view"
101
+ "name": "InsufficientReturnAmount",
102
+ "type": "error"
103
+ },
104
+ {
105
+ "inputs": [],
106
+ "name": "InvalidCaller",
107
+ "type": "error"
108
+ },
109
+ {
110
+ "inputs": [],
111
+ "name": "InvalidOrdersLength",
112
+ "type": "error"
113
+ },
114
+ {
115
+ "inputs": [],
116
+ "name": "InvalidQuotedAmount",
117
+ "type": "error"
118
+ },
119
+ {
120
+ "inputs": [],
121
+ "name": "InvalidSelector",
122
+ "type": "error"
123
+ },
124
+ {
125
+ "inputs": [],
126
+ "name": "InvalidToAmount",
127
+ "type": "error"
128
+ },
129
+ {
130
+ "inputs": [],
131
+ "name": "Permit2Failed",
132
+ "type": "error"
133
+ },
134
+ {
135
+ "inputs": [],
136
+ "name": "UnauthorizedUser",
137
+ "type": "error"
138
+ },
139
+ {
140
+ "anonymous": false,
141
+ "inputs": [
142
+ {
143
+ "components": [
144
+ {
145
+ "internalType": "address",
146
+ "name": "facetAddress",
147
+ "type": "address"
148
+ },
149
+ {
150
+ "internalType": "enum IDiamondCut.FacetCutAction",
151
+ "name": "action",
152
+ "type": "uint8"
153
+ },
154
+ {
155
+ "internalType": "bytes4[]",
156
+ "name": "functionSelectors",
157
+ "type": "bytes4[]"
158
+ }
159
+ ],
160
+ "indexed": false,
161
+ "internalType": "struct IDiamondCut.FacetCut[]",
162
+ "name": "_diamondCut",
163
+ "type": "tuple[]"
164
+ },
165
+ {
166
+ "indexed": false,
167
+ "internalType": "address",
168
+ "name": "_init",
169
+ "type": "address"
170
+ },
171
+ {
172
+ "indexed": false,
173
+ "internalType": "bytes",
174
+ "name": "_calldata",
175
+ "type": "bytes"
176
+ }
177
+ ],
178
+ "name": "DiamondCut",
179
+ "type": "event"
180
+ },
181
+ {
182
+ "anonymous": false,
183
+ "inputs": [
184
+ {
185
+ "indexed": true,
186
+ "internalType": "address",
187
+ "name": "previousOwner",
188
+ "type": "address"
189
+ },
190
+ {
191
+ "indexed": true,
192
+ "internalType": "address",
193
+ "name": "newOwner",
194
+ "type": "address"
195
+ }
196
+ ],
197
+ "name": "OwnershipTransferred",
198
+ "type": "event"
199
+ },
200
+ {
201
+ "stateMutability": "payable",
202
+ "type": "fallback"
81
203
  },
82
204
  {
83
- "type": "function",
84
- "name": "FEE_VAULT",
85
205
  "inputs": [],
206
+ "name": "AUGUSTUS_RFQ",
86
207
  "outputs": [
87
208
  {
209
+ "internalType": "contract IAugustusRFQ",
88
210
  "name": "",
89
- "type": "address",
90
- "internalType": "contract IAugustusFeeVault"
211
+ "type": "address"
91
212
  }
92
213
  ],
93
- "stateMutability": "view"
214
+ "stateMutability": "view",
215
+ "type": "function"
94
216
  },
95
217
  {
96
- "type": "function",
97
- "name": "IS_REFERRAL_MASK",
98
218
  "inputs": [],
99
- "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
100
- "stateMutability": "view"
219
+ "name": "BALANCER_VAULT",
220
+ "outputs": [
221
+ {
222
+ "internalType": "address payable",
223
+ "name": "",
224
+ "type": "address"
225
+ }
226
+ ],
227
+ "stateMutability": "view",
228
+ "type": "function"
101
229
  },
102
230
  {
103
- "type": "function",
104
- "name": "IS_SKIP_WHITELIST_MASK",
105
231
  "inputs": [],
106
- "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
107
- "stateMutability": "view"
232
+ "name": "FEE_VAULT",
233
+ "outputs": [
234
+ {
235
+ "internalType": "contract IAugustusFeeVault",
236
+ "name": "",
237
+ "type": "address"
238
+ }
239
+ ],
240
+ "stateMutability": "view",
241
+ "type": "function"
108
242
  },
109
243
  {
110
- "type": "function",
111
- "name": "IS_TAKE_SURPLUS_MASK",
112
244
  "inputs": [],
113
- "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
114
- "stateMutability": "view"
245
+ "name": "MAX_FEE_PERCENT",
246
+ "outputs": [
247
+ {
248
+ "internalType": "uint256",
249
+ "name": "",
250
+ "type": "uint256"
251
+ }
252
+ ],
253
+ "stateMutability": "view",
254
+ "type": "function"
115
255
  },
116
256
  {
117
- "type": "function",
118
- "name": "MAX_FEE_PERCENT",
119
257
  "inputs": [],
120
- "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
121
- "stateMutability": "view"
258
+ "name": "MINIMUM_SURPLUS_EPSILON_AND_ONE_WEI",
259
+ "outputs": [
260
+ {
261
+ "internalType": "uint256",
262
+ "name": "",
263
+ "type": "uint256"
264
+ }
265
+ ],
266
+ "stateMutability": "view",
267
+ "type": "function"
122
268
  },
123
269
  {
124
- "type": "function",
125
- "name": "PARASWAP_REFERRAL_SHARE",
126
270
  "inputs": [],
127
- "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
128
- "stateMutability": "view"
271
+ "name": "PARASWAP_REFERRAL_SHARE",
272
+ "outputs": [
273
+ {
274
+ "internalType": "uint256",
275
+ "name": "",
276
+ "type": "uint256"
277
+ }
278
+ ],
279
+ "stateMutability": "view",
280
+ "type": "function"
129
281
  },
130
282
  {
131
- "type": "function",
132
- "name": "PARASWAP_SLIPPAGE_SHARE",
133
283
  "inputs": [],
134
- "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
135
- "stateMutability": "view"
284
+ "name": "PARASWAP_SLIPPAGE_SHARE",
285
+ "outputs": [
286
+ {
287
+ "internalType": "uint256",
288
+ "name": "",
289
+ "type": "uint256"
290
+ }
291
+ ],
292
+ "stateMutability": "view",
293
+ "type": "function"
136
294
  },
137
295
  {
138
- "type": "function",
139
- "name": "PARTNER_SHARE_PERCENT",
140
296
  "inputs": [],
141
- "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
142
- "stateMutability": "view"
297
+ "name": "PARTNER_SHARE_PERCENT",
298
+ "outputs": [
299
+ {
300
+ "internalType": "uint256",
301
+ "name": "",
302
+ "type": "uint256"
303
+ }
304
+ ],
305
+ "stateMutability": "view",
306
+ "type": "function"
143
307
  },
144
308
  {
145
- "type": "function",
146
- "name": "PERMIT2",
147
309
  "inputs": [],
148
- "outputs": [{ "name": "", "type": "address", "internalType": "address" }],
149
- "stateMutability": "view"
310
+ "name": "PERMIT2",
311
+ "outputs": [
312
+ {
313
+ "internalType": "address",
314
+ "name": "",
315
+ "type": "address"
316
+ }
317
+ ],
318
+ "stateMutability": "view",
319
+ "type": "function"
150
320
  },
151
321
  {
152
- "type": "function",
153
- "name": "SURPLUS_PERCENT",
154
322
  "inputs": [],
155
- "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
156
- "stateMutability": "view"
323
+ "name": "SURPLUS_PERCENT",
324
+ "outputs": [
325
+ {
326
+ "internalType": "uint256",
327
+ "name": "",
328
+ "type": "uint256"
329
+ }
330
+ ],
331
+ "stateMutability": "view",
332
+ "type": "function"
157
333
  },
158
334
  {
159
- "type": "function",
160
- "name": "UNISWAP_V2_FACTORY_AND_FF",
161
335
  "inputs": [],
162
- "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
163
- "stateMutability": "view"
336
+ "name": "UNISWAP_V2_FACTORY_AND_FF",
337
+ "outputs": [
338
+ {
339
+ "internalType": "uint256",
340
+ "name": "",
341
+ "type": "uint256"
342
+ }
343
+ ],
344
+ "stateMutability": "view",
345
+ "type": "function"
164
346
  },
165
347
  {
166
- "type": "function",
167
- "name": "UNISWAP_V2_POOL_INIT_CODE_HASH",
168
348
  "inputs": [],
169
- "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
170
- "stateMutability": "view"
349
+ "name": "UNISWAP_V2_POOL_INIT_CODE_HASH",
350
+ "outputs": [
351
+ {
352
+ "internalType": "uint256",
353
+ "name": "",
354
+ "type": "uint256"
355
+ }
356
+ ],
357
+ "stateMutability": "view",
358
+ "type": "function"
171
359
  },
172
360
  {
173
- "type": "function",
174
- "name": "UNISWAP_V3_FACTORY_AND_FF",
175
361
  "inputs": [],
176
- "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
177
- "stateMutability": "view"
362
+ "name": "UNISWAP_V3_FACTORY_AND_FF",
363
+ "outputs": [
364
+ {
365
+ "internalType": "uint256",
366
+ "name": "",
367
+ "type": "uint256"
368
+ }
369
+ ],
370
+ "stateMutability": "view",
371
+ "type": "function"
178
372
  },
179
373
  {
180
- "type": "function",
181
- "name": "UNISWAP_V3_POOL_INIT_CODE_HASH",
182
374
  "inputs": [],
183
- "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
184
- "stateMutability": "view"
375
+ "name": "UNISWAP_V3_POOL_INIT_CODE_HASH",
376
+ "outputs": [
377
+ {
378
+ "internalType": "uint256",
379
+ "name": "",
380
+ "type": "uint256"
381
+ }
382
+ ],
383
+ "stateMutability": "view",
384
+ "type": "function"
185
385
  },
186
386
  {
187
- "type": "function",
188
- "name": "WAD",
189
387
  "inputs": [],
190
- "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
191
- "stateMutability": "view"
388
+ "name": "WETH",
389
+ "outputs": [
390
+ {
391
+ "internalType": "contract IWETH",
392
+ "name": "",
393
+ "type": "address"
394
+ }
395
+ ],
396
+ "stateMutability": "view",
397
+ "type": "function"
192
398
  },
193
399
  {
194
- "type": "function",
195
- "name": "WETH",
196
- "inputs": [],
400
+ "inputs": [
401
+ {
402
+ "internalType": "contract IERC20",
403
+ "name": "token",
404
+ "type": "address"
405
+ }
406
+ ],
407
+ "name": "blacklistedTokens",
197
408
  "outputs": [
198
- { "name": "", "type": "address", "internalType": "contract IWETH" }
409
+ {
410
+ "internalType": "bool",
411
+ "name": "isBlacklisted",
412
+ "type": "bool"
413
+ }
199
414
  ],
200
- "stateMutability": "view"
415
+ "stateMutability": "view",
416
+ "type": "function"
201
417
  },
202
418
  {
203
- "type": "function",
204
- "name": "feeWallet",
205
419
  "inputs": [],
420
+ "name": "feeWallet",
206
421
  "outputs": [
207
- { "name": "", "type": "address", "internalType": "address payable" }
422
+ {
423
+ "internalType": "address payable",
424
+ "name": "",
425
+ "type": "address"
426
+ }
208
427
  ],
209
- "stateMutability": "view"
428
+ "stateMutability": "view",
429
+ "type": "function"
210
430
  },
211
431
  {
212
- "type": "function",
213
- "name": "feeWalletDelegate",
214
432
  "inputs": [],
433
+ "name": "feeWalletDelegate",
215
434
  "outputs": [
216
- { "name": "", "type": "address", "internalType": "address payable" }
435
+ {
436
+ "internalType": "address payable",
437
+ "name": "",
438
+ "type": "address"
439
+ }
217
440
  ],
218
- "stateMutability": "view"
441
+ "stateMutability": "view",
442
+ "type": "function"
219
443
  },
220
444
  {
221
- "type": "function",
222
- "name": "parsePartnerAndFeeData",
223
445
  "inputs": [
224
- { "name": "partnerAndFee", "type": "uint256", "internalType": "uint256" }
446
+ {
447
+ "internalType": "uint256",
448
+ "name": "partnerAndFee",
449
+ "type": "uint256"
450
+ }
225
451
  ],
452
+ "name": "parsePartnerAndFeeData",
226
453
  "outputs": [
227
454
  {
455
+ "internalType": "address payable",
228
456
  "name": "partner",
229
- "type": "address",
230
- "internalType": "address payable"
457
+ "type": "address"
231
458
  },
232
- { "name": "feeData", "type": "uint256", "internalType": "uint256" }
459
+ {
460
+ "internalType": "uint256",
461
+ "name": "feeData",
462
+ "type": "uint256"
463
+ }
233
464
  ],
234
- "stateMutability": "pure"
465
+ "stateMutability": "pure",
466
+ "type": "function"
467
+ },
468
+ {
469
+ "inputs": [],
470
+ "name": "paused",
471
+ "outputs": [
472
+ {
473
+ "internalType": "bool",
474
+ "name": "",
475
+ "type": "bool"
476
+ }
477
+ ],
478
+ "stateMutability": "view",
479
+ "type": "function"
235
480
  },
236
481
  {
237
- "type": "function",
238
- "name": "swapExactAmountIn",
239
482
  "inputs": [
240
- { "name": "executor", "type": "address", "internalType": "address" },
241
483
  {
242
- "name": "swapData",
243
- "type": "tuple",
244
- "internalType": "struct GenericData",
484
+ "internalType": "address",
485
+ "name": "executor",
486
+ "type": "address"
487
+ },
488
+ {
245
489
  "components": [
246
490
  {
491
+ "internalType": "contract IERC20",
247
492
  "name": "srcToken",
248
- "type": "address",
249
- "internalType": "contract IERC20"
493
+ "type": "address"
250
494
  },
251
495
  {
496
+ "internalType": "contract IERC20",
252
497
  "name": "destToken",
253
- "type": "address",
254
- "internalType": "contract IERC20"
498
+ "type": "address"
255
499
  },
256
500
  {
501
+ "internalType": "uint256",
257
502
  "name": "fromAmount",
258
- "type": "uint256",
259
- "internalType": "uint256"
503
+ "type": "uint256"
260
504
  },
261
- { "name": "toAmount", "type": "uint256", "internalType": "uint256" },
262
505
  {
263
- "name": "quotedAmount",
264
- "type": "uint256",
265
- "internalType": "uint256"
506
+ "internalType": "uint256",
507
+ "name": "toAmount",
508
+ "type": "uint256"
509
+ },
510
+ {
511
+ "internalType": "uint256",
512
+ "name": "quotedAmount",
513
+ "type": "uint256"
266
514
  },
267
- { "name": "metadata", "type": "bytes32", "internalType": "bytes32" },
268
515
  {
516
+ "internalType": "bytes32",
517
+ "name": "metadata",
518
+ "type": "bytes32"
519
+ },
520
+ {
521
+ "internalType": "address payable",
269
522
  "name": "beneficiary",
270
- "type": "address",
271
- "internalType": "address payable"
523
+ "type": "address"
272
524
  }
273
- ]
525
+ ],
526
+ "internalType": "struct GenericData",
527
+ "name": "swapData",
528
+ "type": "tuple"
529
+ },
530
+ {
531
+ "internalType": "uint256",
532
+ "name": "partnerAndFee",
533
+ "type": "uint256"
274
534
  },
275
- { "name": "partnerAndFee", "type": "uint256", "internalType": "uint256" },
276
- { "name": "permit", "type": "bytes", "internalType": "bytes" },
277
- { "name": "executorData", "type": "bytes", "internalType": "bytes" }
535
+ {
536
+ "internalType": "bytes",
537
+ "name": "permit",
538
+ "type": "bytes"
539
+ },
540
+ {
541
+ "internalType": "bytes",
542
+ "name": "executorData",
543
+ "type": "bytes"
544
+ }
278
545
  ],
546
+ "name": "swapExactAmountIn",
279
547
  "outputs": [
280
- { "name": "receivedAmount", "type": "uint256", "internalType": "uint256" }
548
+ {
549
+ "internalType": "uint256",
550
+ "name": "receivedAmount",
551
+ "type": "uint256"
552
+ },
553
+ {
554
+ "internalType": "uint256",
555
+ "name": "paraswapShare",
556
+ "type": "uint256"
557
+ },
558
+ {
559
+ "internalType": "uint256",
560
+ "name": "partnerShare",
561
+ "type": "uint256"
562
+ }
281
563
  ],
282
- "stateMutability": "payable"
564
+ "stateMutability": "payable",
565
+ "type": "function"
283
566
  },
284
567
  {
285
- "type": "function",
286
- "name": "swapExactAmountInOnAugustusRFQTryBatchFill",
287
568
  "inputs": [
288
569
  {
289
- "name": "data",
290
- "type": "tuple",
291
- "internalType": "struct AugustusRFQData",
292
570
  "components": [
293
571
  {
572
+ "internalType": "uint256",
294
573
  "name": "fromAmount",
295
- "type": "uint256",
296
- "internalType": "uint256"
297
- },
298
- { "name": "toAmount", "type": "uint256", "internalType": "uint256" },
299
- {
300
- "name": "wrapApproveDirection",
301
- "type": "uint8",
302
- "internalType": "uint8"
574
+ "type": "uint256"
303
575
  },
304
- { "name": "metadata", "type": "bytes32", "internalType": "bytes32" },
305
- {
306
- "name": "beneficiary",
307
- "type": "address",
308
- "internalType": "address payable"
309
- }
310
- ]
311
- },
312
- {
313
- "name": "orders",
314
- "type": "tuple[]",
315
- "internalType": "struct OrderInfo[]",
316
- "components": [
317
576
  {
318
- "name": "order",
319
- "type": "tuple",
320
- "internalType": "struct Order",
321
- "components": [
322
- {
323
- "name": "nonceAndMeta",
324
- "type": "uint256",
325
- "internalType": "uint256"
326
- },
327
- {
328
- "name": "expiry",
329
- "type": "uint128",
330
- "internalType": "uint128"
331
- },
332
- {
333
- "name": "makerAsset",
334
- "type": "address",
335
- "internalType": "address"
336
- },
337
- {
338
- "name": "takerAsset",
339
- "type": "address",
340
- "internalType": "address"
341
- },
342
- { "name": "maker", "type": "address", "internalType": "address" },
343
- { "name": "taker", "type": "address", "internalType": "address" },
344
- {
345
- "name": "makerAmount",
346
- "type": "uint256",
347
- "internalType": "uint256"
348
- },
349
- {
350
- "name": "takerAmount",
351
- "type": "uint256",
352
- "internalType": "uint256"
353
- }
354
- ]
577
+ "internalType": "uint256",
578
+ "name": "toAmount",
579
+ "type": "uint256"
355
580
  },
356
- { "name": "signature", "type": "bytes", "internalType": "bytes" },
357
581
  {
358
- "name": "takerTokenFillAmount",
359
- "type": "uint256",
360
- "internalType": "uint256"
582
+ "internalType": "uint256",
583
+ "name": "quotedAmount",
584
+ "type": "uint256"
361
585
  },
362
586
  {
363
- "name": "permitTakerAsset",
364
- "type": "bytes",
365
- "internalType": "bytes"
587
+ "internalType": "bytes32",
588
+ "name": "metadata",
589
+ "type": "bytes32"
366
590
  },
367
591
  {
368
- "name": "permitMakerAsset",
369
- "type": "bytes",
370
- "internalType": "bytes"
592
+ "internalType": "uint256",
593
+ "name": "beneficiaryAndApproveFlag",
594
+ "type": "uint256"
371
595
  }
372
- ]
596
+ ],
597
+ "internalType": "struct BalancerV2Data",
598
+ "name": "balancerData",
599
+ "type": "tuple"
373
600
  },
374
- { "name": "permit", "type": "bytes", "internalType": "bytes" }
375
- ],
376
- "outputs": [],
377
- "stateMutability": "payable"
378
- },
379
- {
380
- "type": "function",
381
- "name": "swapExactAmountInOnBalancerV2",
382
- "inputs": [
383
601
  {
384
- "name": "balancerData",
385
- "type": "tuple",
386
- "internalType": "struct BalancerV2Data",
387
- "components": [
388
- {
389
- "name": "quotedAmount",
390
- "type": "uint256",
391
- "internalType": "uint256"
392
- },
393
- { "name": "metadata", "type": "bytes32", "internalType": "bytes32" },
394
- {
395
- "name": "beneficiaryAndApproveFlag",
396
- "type": "uint256",
397
- "internalType": "uint256"
398
- }
399
- ]
602
+ "internalType": "uint256",
603
+ "name": "partnerAndFee",
604
+ "type": "uint256"
605
+ },
606
+ {
607
+ "internalType": "bytes",
608
+ "name": "permit",
609
+ "type": "bytes"
400
610
  },
401
- { "name": "partnerAndFee", "type": "uint256", "internalType": "uint256" },
402
- { "name": "permit", "type": "bytes", "internalType": "bytes" },
403
- { "name": "data", "type": "bytes", "internalType": "bytes" }
611
+ {
612
+ "internalType": "bytes",
613
+ "name": "data",
614
+ "type": "bytes"
615
+ }
404
616
  ],
617
+ "name": "swapExactAmountInOnBalancerV2",
405
618
  "outputs": [
406
- { "name": "receivedAmount", "type": "uint256", "internalType": "uint256" }
619
+ {
620
+ "internalType": "uint256",
621
+ "name": "receivedAmount",
622
+ "type": "uint256"
623
+ },
624
+ {
625
+ "internalType": "uint256",
626
+ "name": "paraswapShare",
627
+ "type": "uint256"
628
+ },
629
+ {
630
+ "internalType": "uint256",
631
+ "name": "partnerShare",
632
+ "type": "uint256"
633
+ }
407
634
  ],
408
- "stateMutability": "payable"
635
+ "stateMutability": "payable",
636
+ "type": "function"
409
637
  },
410
638
  {
411
- "type": "function",
412
- "name": "swapExactAmountInOnCurveV1",
413
639
  "inputs": [
414
640
  {
415
- "name": "curveV1Data",
416
- "type": "tuple",
417
- "internalType": "struct CurveV1Data",
418
641
  "components": [
419
- { "name": "curveData", "type": "uint256", "internalType": "uint256" },
420
642
  {
643
+ "internalType": "uint256",
644
+ "name": "curveData",
645
+ "type": "uint256"
646
+ },
647
+ {
648
+ "internalType": "uint256",
421
649
  "name": "curveAssets",
422
- "type": "uint256",
423
- "internalType": "uint256"
650
+ "type": "uint256"
424
651
  },
425
652
  {
653
+ "internalType": "contract IERC20",
426
654
  "name": "srcToken",
427
- "type": "address",
428
- "internalType": "contract IERC20"
655
+ "type": "address"
429
656
  },
430
657
  {
658
+ "internalType": "contract IERC20",
431
659
  "name": "destToken",
432
- "type": "address",
433
- "internalType": "contract IERC20"
660
+ "type": "address"
434
661
  },
435
662
  {
663
+ "internalType": "uint256",
436
664
  "name": "fromAmount",
437
- "type": "uint256",
438
- "internalType": "uint256"
665
+ "type": "uint256"
666
+ },
667
+ {
668
+ "internalType": "uint256",
669
+ "name": "toAmount",
670
+ "type": "uint256"
439
671
  },
440
- { "name": "toAmount", "type": "uint256", "internalType": "uint256" },
441
672
  {
673
+ "internalType": "uint256",
442
674
  "name": "quotedAmount",
443
- "type": "uint256",
444
- "internalType": "uint256"
675
+ "type": "uint256"
445
676
  },
446
- { "name": "metadata", "type": "bytes32", "internalType": "bytes32" },
447
677
  {
678
+ "internalType": "bytes32",
679
+ "name": "metadata",
680
+ "type": "bytes32"
681
+ },
682
+ {
683
+ "internalType": "address payable",
448
684
  "name": "beneficiary",
449
- "type": "address",
450
- "internalType": "address payable"
685
+ "type": "address"
451
686
  }
452
- ]
687
+ ],
688
+ "internalType": "struct CurveV1Data",
689
+ "name": "curveV1Data",
690
+ "type": "tuple"
691
+ },
692
+ {
693
+ "internalType": "uint256",
694
+ "name": "partnerAndFee",
695
+ "type": "uint256"
453
696
  },
454
- { "name": "partnerAndFee", "type": "uint256", "internalType": "uint256" },
455
- { "name": "permit", "type": "bytes", "internalType": "bytes" }
697
+ {
698
+ "internalType": "bytes",
699
+ "name": "permit",
700
+ "type": "bytes"
701
+ }
456
702
  ],
703
+ "name": "swapExactAmountInOnCurveV1",
457
704
  "outputs": [
458
- { "name": "receivedAmount", "type": "uint256", "internalType": "uint256" }
705
+ {
706
+ "internalType": "uint256",
707
+ "name": "receivedAmount",
708
+ "type": "uint256"
709
+ },
710
+ {
711
+ "internalType": "uint256",
712
+ "name": "paraswapShare",
713
+ "type": "uint256"
714
+ },
715
+ {
716
+ "internalType": "uint256",
717
+ "name": "partnerShare",
718
+ "type": "uint256"
719
+ }
459
720
  ],
460
- "stateMutability": "payable"
721
+ "stateMutability": "payable",
722
+ "type": "function"
461
723
  },
462
724
  {
463
- "type": "function",
464
- "name": "swapExactAmountInOnCurveV2",
465
725
  "inputs": [
466
726
  {
467
- "name": "curveV2Data",
468
- "type": "tuple",
469
- "internalType": "struct CurveV2Data",
470
727
  "components": [
471
- { "name": "curveData", "type": "uint256", "internalType": "uint256" },
472
- { "name": "i", "type": "uint256", "internalType": "uint256" },
473
- { "name": "j", "type": "uint256", "internalType": "uint256" },
474
- {
475
- "name": "poolAddress",
476
- "type": "address",
477
- "internalType": "address"
478
- },
479
728
  {
480
- "name": "srcToken",
481
- "type": "address",
482
- "internalType": "contract IERC20"
729
+ "internalType": "uint256",
730
+ "name": "curveData",
731
+ "type": "uint256"
483
732
  },
484
733
  {
485
- "name": "destToken",
486
- "type": "address",
487
- "internalType": "contract IERC20"
734
+ "internalType": "uint256",
735
+ "name": "i",
736
+ "type": "uint256"
488
737
  },
489
738
  {
490
- "name": "fromAmount",
491
- "type": "uint256",
492
- "internalType": "uint256"
739
+ "internalType": "uint256",
740
+ "name": "j",
741
+ "type": "uint256"
493
742
  },
494
- { "name": "toAmount", "type": "uint256", "internalType": "uint256" },
495
743
  {
496
- "name": "quotedAmount",
497
- "type": "uint256",
498
- "internalType": "uint256"
744
+ "internalType": "address",
745
+ "name": "poolAddress",
746
+ "type": "address"
499
747
  },
500
- { "name": "metadata", "type": "bytes32", "internalType": "bytes32" },
501
- {
502
- "name": "beneficiary",
503
- "type": "address",
504
- "internalType": "address payable"
505
- }
506
- ]
507
- },
508
- { "name": "partnerAndFee", "type": "uint256", "internalType": "uint256" },
509
- { "name": "permit", "type": "bytes", "internalType": "bytes" }
510
- ],
511
- "outputs": [
512
- { "name": "receivedAmount", "type": "uint256", "internalType": "uint256" }
513
- ],
514
- "stateMutability": "payable"
515
- },
516
- {
517
- "type": "function",
518
- "name": "swapExactAmountInOnMakerPSM",
519
- "inputs": [
520
- {
521
- "name": "makerPSMData",
522
- "type": "tuple",
523
- "internalType": "struct MakerPSMData",
524
- "components": [
525
748
  {
749
+ "internalType": "contract IERC20",
526
750
  "name": "srcToken",
527
- "type": "address",
528
- "internalType": "contract IERC20"
751
+ "type": "address"
529
752
  },
530
753
  {
754
+ "internalType": "contract IERC20",
531
755
  "name": "destToken",
532
- "type": "address",
533
- "internalType": "contract IERC20"
756
+ "type": "address"
534
757
  },
535
758
  {
759
+ "internalType": "uint256",
536
760
  "name": "fromAmount",
537
- "type": "uint256",
538
- "internalType": "uint256"
761
+ "type": "uint256"
539
762
  },
540
- { "name": "toAmount", "type": "uint256", "internalType": "uint256" },
541
- { "name": "toll", "type": "uint256", "internalType": "uint256" },
542
763
  {
543
- "name": "to18ConversionFactor",
544
- "type": "uint256",
545
- "internalType": "uint256"
764
+ "internalType": "uint256",
765
+ "name": "toAmount",
766
+ "type": "uint256"
546
767
  },
547
- { "name": "exchange", "type": "address", "internalType": "address" },
548
768
  {
549
- "name": "gemJoinAddress",
550
- "type": "address",
551
- "internalType": "address"
769
+ "internalType": "uint256",
770
+ "name": "quotedAmount",
771
+ "type": "uint256"
552
772
  },
553
- { "name": "metadata", "type": "bytes32", "internalType": "bytes32" },
554
773
  {
555
- "name": "beneficiaryDirectionApproveFlag",
556
- "type": "uint256",
557
- "internalType": "uint256"
774
+ "internalType": "bytes32",
775
+ "name": "metadata",
776
+ "type": "bytes32"
777
+ },
778
+ {
779
+ "internalType": "address payable",
780
+ "name": "beneficiary",
781
+ "type": "address"
558
782
  }
559
- ]
783
+ ],
784
+ "internalType": "struct CurveV2Data",
785
+ "name": "curveV2Data",
786
+ "type": "tuple"
560
787
  },
561
- { "name": "permit", "type": "bytes", "internalType": "bytes" }
788
+ {
789
+ "internalType": "uint256",
790
+ "name": "partnerAndFee",
791
+ "type": "uint256"
792
+ },
793
+ {
794
+ "internalType": "bytes",
795
+ "name": "permit",
796
+ "type": "bytes"
797
+ }
562
798
  ],
563
- "outputs": [],
564
- "stateMutability": "payable"
799
+ "name": "swapExactAmountInOnCurveV2",
800
+ "outputs": [
801
+ {
802
+ "internalType": "uint256",
803
+ "name": "receivedAmount",
804
+ "type": "uint256"
805
+ },
806
+ {
807
+ "internalType": "uint256",
808
+ "name": "paraswapShare",
809
+ "type": "uint256"
810
+ },
811
+ {
812
+ "internalType": "uint256",
813
+ "name": "partnerShare",
814
+ "type": "uint256"
815
+ }
816
+ ],
817
+ "stateMutability": "payable",
818
+ "type": "function"
565
819
  },
566
820
  {
567
- "type": "function",
568
- "name": "swapExactAmountInOnUniswapV2",
569
821
  "inputs": [
570
822
  {
571
- "name": "uniData",
572
- "type": "tuple",
573
- "internalType": "struct UniswapV2Data",
574
823
  "components": [
575
824
  {
825
+ "internalType": "contract IERC20",
576
826
  "name": "srcToken",
577
- "type": "address",
578
- "internalType": "contract IERC20"
827
+ "type": "address"
579
828
  },
580
829
  {
830
+ "internalType": "contract IERC20",
581
831
  "name": "destToken",
582
- "type": "address",
583
- "internalType": "contract IERC20"
832
+ "type": "address"
584
833
  },
585
834
  {
835
+ "internalType": "uint256",
586
836
  "name": "fromAmount",
587
- "type": "uint256",
588
- "internalType": "uint256"
837
+ "type": "uint256"
589
838
  },
590
839
  {
840
+ "internalType": "uint256",
841
+ "name": "toAmount",
842
+ "type": "uint256"
843
+ },
844
+ {
845
+ "internalType": "uint256",
591
846
  "name": "quotedAmount",
592
- "type": "uint256",
593
- "internalType": "uint256"
847
+ "type": "uint256"
594
848
  },
595
- { "name": "toAmount", "type": "uint256", "internalType": "uint256" },
596
- { "name": "metadata", "type": "bytes32", "internalType": "bytes32" },
597
849
  {
850
+ "internalType": "bytes32",
851
+ "name": "metadata",
852
+ "type": "bytes32"
853
+ },
854
+ {
855
+ "internalType": "address payable",
598
856
  "name": "beneficiary",
599
- "type": "address",
600
- "internalType": "address payable"
857
+ "type": "address"
601
858
  },
602
- { "name": "pools", "type": "bytes", "internalType": "bytes" }
603
- ]
859
+ {
860
+ "internalType": "bytes",
861
+ "name": "pools",
862
+ "type": "bytes"
863
+ }
864
+ ],
865
+ "internalType": "struct UniswapV2Data",
866
+ "name": "uniData",
867
+ "type": "tuple"
604
868
  },
605
- { "name": "partnerAndFee", "type": "uint256", "internalType": "uint256" },
606
- { "name": "permit", "type": "bytes", "internalType": "bytes" }
869
+ {
870
+ "internalType": "uint256",
871
+ "name": "partnerAndFee",
872
+ "type": "uint256"
873
+ },
874
+ {
875
+ "internalType": "bytes",
876
+ "name": "permit",
877
+ "type": "bytes"
878
+ }
607
879
  ],
880
+ "name": "swapExactAmountInOnUniswapV2",
608
881
  "outputs": [
609
- { "name": "receivedAmount", "type": "uint256", "internalType": "uint256" }
882
+ {
883
+ "internalType": "uint256",
884
+ "name": "receivedAmount",
885
+ "type": "uint256"
886
+ },
887
+ {
888
+ "internalType": "uint256",
889
+ "name": "paraswapShare",
890
+ "type": "uint256"
891
+ },
892
+ {
893
+ "internalType": "uint256",
894
+ "name": "partnerShare",
895
+ "type": "uint256"
896
+ }
610
897
  ],
611
- "stateMutability": "payable"
898
+ "stateMutability": "payable",
899
+ "type": "function"
612
900
  },
613
901
  {
614
- "type": "function",
615
- "name": "swapExactAmountInOnUniswapV3",
616
902
  "inputs": [
617
903
  {
618
- "name": "uniData",
619
- "type": "tuple",
620
- "internalType": "struct UniswapV3Data",
621
904
  "components": [
622
905
  {
906
+ "internalType": "contract IERC20",
623
907
  "name": "srcToken",
624
- "type": "address",
625
- "internalType": "contract IERC20"
908
+ "type": "address"
626
909
  },
627
910
  {
911
+ "internalType": "contract IERC20",
628
912
  "name": "destToken",
629
- "type": "address",
630
- "internalType": "contract IERC20"
913
+ "type": "address"
631
914
  },
632
915
  {
916
+ "internalType": "uint256",
633
917
  "name": "fromAmount",
634
- "type": "uint256",
635
- "internalType": "uint256"
918
+ "type": "uint256"
636
919
  },
637
920
  {
921
+ "internalType": "uint256",
922
+ "name": "toAmount",
923
+ "type": "uint256"
924
+ },
925
+ {
926
+ "internalType": "uint256",
638
927
  "name": "quotedAmount",
639
- "type": "uint256",
640
- "internalType": "uint256"
928
+ "type": "uint256"
929
+ },
930
+ {
931
+ "internalType": "bytes32",
932
+ "name": "metadata",
933
+ "type": "bytes32"
641
934
  },
642
- { "name": "toAmount", "type": "uint256", "internalType": "uint256" },
643
- { "name": "metadata", "type": "bytes32", "internalType": "bytes32" },
644
935
  {
936
+ "internalType": "address payable",
645
937
  "name": "beneficiary",
646
- "type": "address",
647
- "internalType": "address payable"
938
+ "type": "address"
648
939
  },
649
- { "name": "pools", "type": "bytes", "internalType": "bytes" }
650
- ]
940
+ {
941
+ "internalType": "bytes",
942
+ "name": "pools",
943
+ "type": "bytes"
944
+ }
945
+ ],
946
+ "internalType": "struct UniswapV3Data",
947
+ "name": "uniData",
948
+ "type": "tuple"
651
949
  },
652
- { "name": "partnerAndFee", "type": "uint256", "internalType": "uint256" },
653
- { "name": "permit", "type": "bytes", "internalType": "bytes" }
950
+ {
951
+ "internalType": "uint256",
952
+ "name": "partnerAndFee",
953
+ "type": "uint256"
954
+ },
955
+ {
956
+ "internalType": "bytes",
957
+ "name": "permit",
958
+ "type": "bytes"
959
+ }
654
960
  ],
961
+ "name": "swapExactAmountInOnUniswapV3",
655
962
  "outputs": [
656
- { "name": "receivedAmount", "type": "uint256", "internalType": "uint256" }
963
+ {
964
+ "internalType": "uint256",
965
+ "name": "receivedAmount",
966
+ "type": "uint256"
967
+ },
968
+ {
969
+ "internalType": "uint256",
970
+ "name": "paraswapShare",
971
+ "type": "uint256"
972
+ },
973
+ {
974
+ "internalType": "uint256",
975
+ "name": "partnerShare",
976
+ "type": "uint256"
977
+ }
657
978
  ],
658
- "stateMutability": "payable"
979
+ "stateMutability": "payable",
980
+ "type": "function"
659
981
  },
660
982
  {
661
- "type": "function",
662
- "name": "swapExactAmountOut",
663
983
  "inputs": [
664
- { "name": "executor", "type": "address", "internalType": "address" },
665
984
  {
666
- "name": "swapData",
667
- "type": "tuple",
668
- "internalType": "struct GenericData",
985
+ "internalType": "address",
986
+ "name": "executor",
987
+ "type": "address"
988
+ },
989
+ {
669
990
  "components": [
670
991
  {
992
+ "internalType": "contract IERC20",
671
993
  "name": "srcToken",
672
- "type": "address",
673
- "internalType": "contract IERC20"
994
+ "type": "address"
674
995
  },
675
996
  {
997
+ "internalType": "contract IERC20",
676
998
  "name": "destToken",
677
- "type": "address",
678
- "internalType": "contract IERC20"
999
+ "type": "address"
679
1000
  },
680
1001
  {
1002
+ "internalType": "uint256",
681
1003
  "name": "fromAmount",
682
- "type": "uint256",
683
- "internalType": "uint256"
1004
+ "type": "uint256"
684
1005
  },
685
- { "name": "toAmount", "type": "uint256", "internalType": "uint256" },
686
1006
  {
1007
+ "internalType": "uint256",
1008
+ "name": "toAmount",
1009
+ "type": "uint256"
1010
+ },
1011
+ {
1012
+ "internalType": "uint256",
687
1013
  "name": "quotedAmount",
688
- "type": "uint256",
689
- "internalType": "uint256"
1014
+ "type": "uint256"
690
1015
  },
691
- { "name": "metadata", "type": "bytes32", "internalType": "bytes32" },
692
1016
  {
1017
+ "internalType": "bytes32",
1018
+ "name": "metadata",
1019
+ "type": "bytes32"
1020
+ },
1021
+ {
1022
+ "internalType": "address payable",
693
1023
  "name": "beneficiary",
694
- "type": "address",
695
- "internalType": "address payable"
1024
+ "type": "address"
696
1025
  }
697
- ]
1026
+ ],
1027
+ "internalType": "struct GenericData",
1028
+ "name": "swapData",
1029
+ "type": "tuple"
1030
+ },
1031
+ {
1032
+ "internalType": "uint256",
1033
+ "name": "partnerAndFee",
1034
+ "type": "uint256"
698
1035
  },
699
- { "name": "partnerAndFee", "type": "uint256", "internalType": "uint256" },
700
- { "name": "permit", "type": "bytes", "internalType": "bytes" },
701
- { "name": "executorData", "type": "bytes", "internalType": "bytes" }
1036
+ {
1037
+ "internalType": "bytes",
1038
+ "name": "permit",
1039
+ "type": "bytes"
1040
+ },
1041
+ {
1042
+ "internalType": "bytes",
1043
+ "name": "executorData",
1044
+ "type": "bytes"
1045
+ }
702
1046
  ],
1047
+ "name": "swapExactAmountOut",
703
1048
  "outputs": [
704
1049
  {
1050
+ "internalType": "uint256",
1051
+ "name": "spentAmount",
1052
+ "type": "uint256"
1053
+ },
1054
+ {
1055
+ "internalType": "uint256",
705
1056
  "name": "receivedAmount",
706
- "type": "uint256",
707
- "internalType": "uint256"
1057
+ "type": "uint256"
708
1058
  },
709
- { "name": "spentAmount", "type": "uint256", "internalType": "uint256" }
1059
+ {
1060
+ "internalType": "uint256",
1061
+ "name": "paraswapShare",
1062
+ "type": "uint256"
1063
+ },
1064
+ {
1065
+ "internalType": "uint256",
1066
+ "name": "partnerShare",
1067
+ "type": "uint256"
1068
+ }
710
1069
  ],
711
- "stateMutability": "payable"
1070
+ "stateMutability": "payable",
1071
+ "type": "function"
712
1072
  },
713
1073
  {
714
- "type": "function",
715
- "name": "swapExactAmountOutOnBalancerV2",
716
1074
  "inputs": [
717
1075
  {
718
- "name": "balancerData",
719
- "type": "tuple",
720
- "internalType": "struct BalancerV2Data",
721
1076
  "components": [
722
1077
  {
1078
+ "internalType": "uint256",
1079
+ "name": "fromAmount",
1080
+ "type": "uint256"
1081
+ },
1082
+ {
1083
+ "internalType": "uint256",
1084
+ "name": "toAmount",
1085
+ "type": "uint256"
1086
+ },
1087
+ {
1088
+ "internalType": "uint256",
723
1089
  "name": "quotedAmount",
724
- "type": "uint256",
725
- "internalType": "uint256"
1090
+ "type": "uint256"
726
1091
  },
727
- { "name": "metadata", "type": "bytes32", "internalType": "bytes32" },
728
1092
  {
1093
+ "internalType": "bytes32",
1094
+ "name": "metadata",
1095
+ "type": "bytes32"
1096
+ },
1097
+ {
1098
+ "internalType": "uint256",
729
1099
  "name": "beneficiaryAndApproveFlag",
730
- "type": "uint256",
731
- "internalType": "uint256"
1100
+ "type": "uint256"
732
1101
  }
733
- ]
1102
+ ],
1103
+ "internalType": "struct BalancerV2Data",
1104
+ "name": "balancerData",
1105
+ "type": "tuple"
1106
+ },
1107
+ {
1108
+ "internalType": "uint256",
1109
+ "name": "partnerAndFee",
1110
+ "type": "uint256"
1111
+ },
1112
+ {
1113
+ "internalType": "bytes",
1114
+ "name": "permit",
1115
+ "type": "bytes"
734
1116
  },
735
- { "name": "partnerAndFee", "type": "uint256", "internalType": "uint256" },
736
- { "name": "permit", "type": "bytes", "internalType": "bytes" },
737
- { "name": "data", "type": "bytes", "internalType": "bytes" }
1117
+ {
1118
+ "internalType": "bytes",
1119
+ "name": "data",
1120
+ "type": "bytes"
1121
+ }
738
1122
  ],
1123
+ "name": "swapExactAmountOutOnBalancerV2",
739
1124
  "outputs": [
740
1125
  {
1126
+ "internalType": "uint256",
1127
+ "name": "spentAmount",
1128
+ "type": "uint256"
1129
+ },
1130
+ {
1131
+ "internalType": "uint256",
741
1132
  "name": "receivedAmount",
742
- "type": "uint256",
743
- "internalType": "uint256"
1133
+ "type": "uint256"
1134
+ },
1135
+ {
1136
+ "internalType": "uint256",
1137
+ "name": "paraswapShare",
1138
+ "type": "uint256"
744
1139
  },
745
- { "name": "usedAmount", "type": "uint256", "internalType": "uint256" }
1140
+ {
1141
+ "internalType": "uint256",
1142
+ "name": "partnerShare",
1143
+ "type": "uint256"
1144
+ }
746
1145
  ],
747
- "stateMutability": "payable"
1146
+ "stateMutability": "payable",
1147
+ "type": "function"
748
1148
  },
749
1149
  {
750
- "type": "function",
751
- "name": "swapExactAmountOutOnUniswapV2",
752
1150
  "inputs": [
753
1151
  {
754
- "name": "uniData",
755
- "type": "tuple",
756
- "internalType": "struct UniswapV2Data",
757
1152
  "components": [
758
1153
  {
1154
+ "internalType": "contract IERC20",
759
1155
  "name": "srcToken",
760
- "type": "address",
761
- "internalType": "contract IERC20"
1156
+ "type": "address"
762
1157
  },
763
1158
  {
1159
+ "internalType": "contract IERC20",
764
1160
  "name": "destToken",
765
- "type": "address",
766
- "internalType": "contract IERC20"
1161
+ "type": "address"
767
1162
  },
768
1163
  {
1164
+ "internalType": "uint256",
769
1165
  "name": "fromAmount",
770
- "type": "uint256",
771
- "internalType": "uint256"
1166
+ "type": "uint256"
1167
+ },
1168
+ {
1169
+ "internalType": "uint256",
1170
+ "name": "toAmount",
1171
+ "type": "uint256"
772
1172
  },
773
1173
  {
1174
+ "internalType": "uint256",
774
1175
  "name": "quotedAmount",
775
- "type": "uint256",
776
- "internalType": "uint256"
1176
+ "type": "uint256"
1177
+ },
1178
+ {
1179
+ "internalType": "bytes32",
1180
+ "name": "metadata",
1181
+ "type": "bytes32"
777
1182
  },
778
- { "name": "toAmount", "type": "uint256", "internalType": "uint256" },
779
- { "name": "metadata", "type": "bytes32", "internalType": "bytes32" },
780
1183
  {
1184
+ "internalType": "address payable",
781
1185
  "name": "beneficiary",
782
- "type": "address",
783
- "internalType": "address payable"
1186
+ "type": "address"
784
1187
  },
785
- { "name": "pools", "type": "bytes", "internalType": "bytes" }
786
- ]
1188
+ {
1189
+ "internalType": "bytes",
1190
+ "name": "pools",
1191
+ "type": "bytes"
1192
+ }
1193
+ ],
1194
+ "internalType": "struct UniswapV2Data",
1195
+ "name": "uniData",
1196
+ "type": "tuple"
1197
+ },
1198
+ {
1199
+ "internalType": "uint256",
1200
+ "name": "partnerAndFee",
1201
+ "type": "uint256"
787
1202
  },
788
- { "name": "partnerAndFee", "type": "uint256", "internalType": "uint256" },
789
- { "name": "permit", "type": "bytes", "internalType": "bytes" }
1203
+ {
1204
+ "internalType": "bytes",
1205
+ "name": "permit",
1206
+ "type": "bytes"
1207
+ }
790
1208
  ],
1209
+ "name": "swapExactAmountOutOnUniswapV2",
791
1210
  "outputs": [
792
1211
  {
1212
+ "internalType": "uint256",
1213
+ "name": "spentAmount",
1214
+ "type": "uint256"
1215
+ },
1216
+ {
1217
+ "internalType": "uint256",
793
1218
  "name": "receivedAmount",
794
- "type": "uint256",
795
- "internalType": "uint256"
1219
+ "type": "uint256"
1220
+ },
1221
+ {
1222
+ "internalType": "uint256",
1223
+ "name": "paraswapShare",
1224
+ "type": "uint256"
796
1225
  },
797
- { "name": "usedAmount", "type": "uint256", "internalType": "uint256" }
1226
+ {
1227
+ "internalType": "uint256",
1228
+ "name": "partnerShare",
1229
+ "type": "uint256"
1230
+ }
798
1231
  ],
799
- "stateMutability": "payable"
1232
+ "stateMutability": "payable",
1233
+ "type": "function"
800
1234
  },
801
1235
  {
802
- "type": "function",
803
- "name": "swapExactAmountOutOnUniswapV3",
804
1236
  "inputs": [
805
1237
  {
806
- "name": "uniData",
807
- "type": "tuple",
808
- "internalType": "struct UniswapV3Data",
809
1238
  "components": [
810
1239
  {
1240
+ "internalType": "contract IERC20",
811
1241
  "name": "srcToken",
812
- "type": "address",
813
- "internalType": "contract IERC20"
1242
+ "type": "address"
814
1243
  },
815
1244
  {
1245
+ "internalType": "contract IERC20",
816
1246
  "name": "destToken",
817
- "type": "address",
818
- "internalType": "contract IERC20"
1247
+ "type": "address"
819
1248
  },
820
1249
  {
1250
+ "internalType": "uint256",
821
1251
  "name": "fromAmount",
822
- "type": "uint256",
823
- "internalType": "uint256"
1252
+ "type": "uint256"
824
1253
  },
825
1254
  {
826
- "name": "quotedAmount",
827
- "type": "uint256",
828
- "internalType": "uint256"
1255
+ "internalType": "uint256",
1256
+ "name": "toAmount",
1257
+ "type": "uint256"
829
1258
  },
830
- { "name": "toAmount", "type": "uint256", "internalType": "uint256" },
831
- { "name": "metadata", "type": "bytes32", "internalType": "bytes32" },
832
1259
  {
833
- "name": "beneficiary",
834
- "type": "address",
835
- "internalType": "address payable"
1260
+ "internalType": "uint256",
1261
+ "name": "quotedAmount",
1262
+ "type": "uint256"
836
1263
  },
837
- { "name": "pools", "type": "bytes", "internalType": "bytes" }
838
- ]
839
- },
840
- { "name": "partnerAndFee", "type": "uint256", "internalType": "uint256" },
841
- { "name": "permit", "type": "bytes", "internalType": "bytes" }
842
- ],
843
- "outputs": [
844
- {
845
- "name": "receivedAmount",
846
- "type": "uint256",
847
- "internalType": "uint256"
848
- },
849
- { "name": "spentAmount", "type": "uint256", "internalType": "uint256" }
850
- ],
851
- "stateMutability": "payable"
852
- },
853
- {
854
- "type": "function",
855
- "name": "uniswapV3SwapCallback",
856
- "inputs": [
857
- { "name": "amount0Delta", "type": "int256", "internalType": "int256" },
858
- { "name": "amount1Delta", "type": "int256", "internalType": "int256" },
859
- { "name": "", "type": "bytes", "internalType": "bytes" }
860
- ],
861
- "outputs": [],
862
- "stateMutability": "nonpayable"
863
- },
864
- {
865
- "type": "function",
866
- "name": "whitelistedTokens",
867
- "inputs": [
868
- { "name": "token", "type": "address", "internalType": "contract IERC20" }
869
- ],
870
- "outputs": [
871
- { "name": "isWhitelisted", "type": "bool", "internalType": "bool" }
872
- ],
873
- "stateMutability": "view"
874
- },
875
- {
876
- "type": "event",
877
- "name": "DiamondCut",
878
- "inputs": [
879
- {
880
- "name": "_diamondCut",
881
- "type": "tuple[]",
882
- "indexed": false,
883
- "internalType": "struct IDiamondCut.FacetCut[]",
884
- "components": [
885
1264
  {
886
- "name": "facetAddress",
887
- "type": "address",
888
- "internalType": "address"
1265
+ "internalType": "bytes32",
1266
+ "name": "metadata",
1267
+ "type": "bytes32"
889
1268
  },
890
1269
  {
891
- "name": "action",
892
- "type": "uint8",
893
- "internalType": "enum IDiamondCut.FacetCutAction"
1270
+ "internalType": "address payable",
1271
+ "name": "beneficiary",
1272
+ "type": "address"
894
1273
  },
895
1274
  {
896
- "name": "functionSelectors",
897
- "type": "bytes4[]",
898
- "internalType": "bytes4[]"
1275
+ "internalType": "bytes",
1276
+ "name": "pools",
1277
+ "type": "bytes"
899
1278
  }
900
- ]
1279
+ ],
1280
+ "internalType": "struct UniswapV3Data",
1281
+ "name": "uniData",
1282
+ "type": "tuple"
901
1283
  },
902
1284
  {
903
- "name": "_init",
904
- "type": "address",
905
- "indexed": false,
906
- "internalType": "address"
1285
+ "internalType": "uint256",
1286
+ "name": "partnerAndFee",
1287
+ "type": "uint256"
907
1288
  },
908
1289
  {
909
- "name": "_calldata",
910
- "type": "bytes",
911
- "indexed": false,
912
- "internalType": "bytes"
1290
+ "internalType": "bytes",
1291
+ "name": "permit",
1292
+ "type": "bytes"
913
1293
  }
914
1294
  ],
915
- "anonymous": false
916
- },
917
- {
918
- "type": "event",
919
- "name": "OwnershipTransferred",
920
- "inputs": [
1295
+ "name": "swapExactAmountOutOnUniswapV3",
1296
+ "outputs": [
921
1297
  {
922
- "name": "previousOwner",
923
- "type": "address",
924
- "indexed": true,
925
- "internalType": "address"
1298
+ "internalType": "uint256",
1299
+ "name": "spentAmount",
1300
+ "type": "uint256"
926
1301
  },
927
1302
  {
928
- "name": "newOwner",
929
- "type": "address",
930
- "indexed": true,
931
- "internalType": "address"
932
- }
933
- ],
934
- "anonymous": false
935
- },
936
- { "type": "error", "name": "CallbackTransferFailed", "inputs": [] },
937
- {
938
- "type": "error",
939
- "name": "InitializationFunctionReverted",
940
- "inputs": [
1303
+ "internalType": "uint256",
1304
+ "name": "receivedAmount",
1305
+ "type": "uint256"
1306
+ },
941
1307
  {
942
- "name": "_initializationContractAddress",
943
- "type": "address",
944
- "internalType": "address"
1308
+ "internalType": "uint256",
1309
+ "name": "paraswapShare",
1310
+ "type": "uint256"
945
1311
  },
946
- { "name": "_calldata", "type": "bytes", "internalType": "bytes" }
947
- ]
1312
+ {
1313
+ "internalType": "uint256",
1314
+ "name": "partnerShare",
1315
+ "type": "uint256"
1316
+ }
1317
+ ],
1318
+ "stateMutability": "payable",
1319
+ "type": "function"
948
1320
  },
949
- { "type": "error", "name": "InsufficientBalanceToPayFees", "inputs": [] },
950
- { "type": "error", "name": "InsufficientReturnAmount", "inputs": [] },
951
- { "type": "error", "name": "InvalidCaller", "inputs": [] },
952
- { "type": "error", "name": "InvalidOrdersLength", "inputs": [] },
953
- { "type": "error", "name": "InvalidToAmount", "inputs": [] },
954
- { "type": "error", "name": "Permit2Failed", "inputs": [] },
955
- { "type": "error", "name": "UnauthorizedUser", "inputs": [] },
956
1321
  {
957
1322
  "inputs": [
958
1323
  {
@@ -1067,9 +1432,141 @@
1067
1432
  "type": "bytes"
1068
1433
  }
1069
1434
  ],
1070
- "name": "swapExactAmountInOutOnAugustusRFQTryBatchFill",
1435
+ "name": "swapOnAugustusRFQTryBatchFill",
1436
+ "outputs": [
1437
+ {
1438
+ "internalType": "uint256",
1439
+ "name": "spentAmount",
1440
+ "type": "uint256"
1441
+ },
1442
+ {
1443
+ "internalType": "uint256",
1444
+ "name": "receivedAmount",
1445
+ "type": "uint256"
1446
+ }
1447
+ ],
1448
+ "stateMutability": "payable",
1449
+ "type": "function"
1450
+ },
1451
+ {
1452
+ "inputs": [
1453
+ {
1454
+ "internalType": "int256",
1455
+ "name": "amount0Delta",
1456
+ "type": "int256"
1457
+ },
1458
+ {
1459
+ "internalType": "int256",
1460
+ "name": "amount1Delta",
1461
+ "type": "int256"
1462
+ },
1463
+ {
1464
+ "internalType": "bytes",
1465
+ "name": "data",
1466
+ "type": "bytes"
1467
+ }
1468
+ ],
1469
+ "name": "uniswapV3SwapCallback",
1071
1470
  "outputs": [],
1471
+ "stateMutability": "nonpayable",
1472
+ "type": "function"
1473
+ },
1474
+ {
1475
+ "inputs": [],
1476
+ "name": "version",
1477
+ "outputs": [
1478
+ {
1479
+ "internalType": "string",
1480
+ "name": "",
1481
+ "type": "string"
1482
+ }
1483
+ ],
1484
+ "stateMutability": "pure",
1485
+ "type": "function"
1486
+ },
1487
+ {
1072
1488
  "stateMutability": "payable",
1489
+ "type": "receive"
1490
+ },
1491
+ {
1492
+ "inputs": [
1493
+ {
1494
+ "components": [
1495
+ {
1496
+ "internalType": "contract IERC20",
1497
+ "name": "srcToken",
1498
+ "type": "address"
1499
+ },
1500
+ {
1501
+ "internalType": "contract IERC20",
1502
+ "name": "destToken",
1503
+ "type": "address"
1504
+ },
1505
+ {
1506
+ "internalType": "uint256",
1507
+ "name": "fromAmount",
1508
+ "type": "uint256"
1509
+ },
1510
+ {
1511
+ "internalType": "uint256",
1512
+ "name": "toAmount",
1513
+ "type": "uint256"
1514
+ },
1515
+ {
1516
+ "internalType": "uint256",
1517
+ "name": "toll",
1518
+ "type": "uint256"
1519
+ },
1520
+ {
1521
+ "internalType": "uint256",
1522
+ "name": "to18ConversionFactor",
1523
+ "type": "uint256"
1524
+ },
1525
+ {
1526
+ "internalType": "address",
1527
+ "name": "exchange",
1528
+ "type": "address"
1529
+ },
1530
+ {
1531
+ "internalType": "address",
1532
+ "name": "gemJoinAddress",
1533
+ "type": "address"
1534
+ },
1535
+ {
1536
+ "internalType": "bytes32",
1537
+ "name": "metadata",
1538
+ "type": "bytes32"
1539
+ },
1540
+ {
1541
+ "internalType": "uint256",
1542
+ "name": "beneficiaryDirectionApproveFlag",
1543
+ "type": "uint256"
1544
+ }
1545
+ ],
1546
+ "internalType": "struct MakerPSMData",
1547
+ "name": "makerPSMData",
1548
+ "type": "tuple"
1549
+ },
1550
+ {
1551
+ "internalType": "bytes",
1552
+ "name": "permit",
1553
+ "type": "bytes"
1554
+ }
1555
+ ],
1556
+ "name": "swapExactAmountInOutOnMakerPSM",
1557
+ "outputs": [
1558
+ {
1559
+ "internalType": "uint256",
1560
+ "name": "spentAmount",
1561
+ "type": "uint256"
1562
+ },
1563
+ {
1564
+ "internalType": "uint256",
1565
+ "name": "receivedAmount",
1566
+ "type": "uint256"
1567
+ }
1568
+ ],
1569
+ "stateMutability": "nonpayable",
1073
1570
  "type": "function"
1074
1571
  }
1075
1572
  ]