@paraswap/dex-lib 3.8.22 → 3.8.23

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 (327) hide show
  1. package/.vscode/launch.json +16 -0
  2. package/.vscode/settings.json +3 -0
  3. package/build/abi/AaveV1_lending_pool.json +27 -0
  4. package/build/abi/Uncompressor.json +250 -0
  5. package/build/abi/integral/factory.json +333 -0
  6. package/build/abi/integral/oracle.json +501 -0
  7. package/build/abi/integral/pool.json +1041 -0
  8. package/build/abi/integral/relayer.json +1536 -0
  9. package/build/abi/oswap/oswap.abi.json +452 -0
  10. package/build/abi/platypus/asset.json +490 -0
  11. package/build/abi/platypus/avax-pool.json +820 -0
  12. package/build/abi/platypus/oracle.json +119 -0
  13. package/build/abi/platypus/pool.json +677 -0
  14. package/build/abi/smardex/all/smardex-router.json +648 -0
  15. package/build/abi/smardex/layer-1/smardex-factory.json +242 -0
  16. package/build/abi/smardex/layer-1/smardex-pool.json +506 -0
  17. package/build/abi/smardex/layer-2/smardex-factory.json +185 -0
  18. package/build/abi/smardex/layer-2/smardex-pool.json +578 -0
  19. package/build/abi/swaap-v1/pool.json +1346 -0
  20. package/build/dex/aave-v1/aave-v1.d.ts +33 -0
  21. package/build/dex/aave-v1/aave-v1.js +158 -0
  22. package/build/dex/aave-v1/aave-v1.js.map +1 -0
  23. package/build/dex/aave-v1/config.d.ts +11 -0
  24. package/build/dex/aave-v1/config.js +20 -0
  25. package/build/dex/aave-v1/config.js.map +1 -0
  26. package/build/dex/aave-v1/tokens-mainnet.json +134 -0
  27. package/build/dex/aave-v1/tokens.d.ts +3 -0
  28. package/build/dex/aave-v1/tokens.js +50 -0
  29. package/build/dex/aave-v1/tokens.js.map +1 -0
  30. package/build/dex/aave-v1/types.d.ts +12 -0
  31. package/build/dex/aave-v1/types.js +3 -0
  32. package/build/dex/aave-v1/types.js.map +1 -0
  33. package/build/dex/bProtocol.d.ts +18 -0
  34. package/build/dex/bProtocol.js +39 -0
  35. package/build/dex/bProtocol.js.map +1 -0
  36. package/build/dex/bancor.d.ts +26 -0
  37. package/build/dex/bancor.js +58 -0
  38. package/build/dex/bancor.js.map +1 -0
  39. package/build/dex/compound.d.ts +18 -0
  40. package/build/dex/compound.js +46 -0
  41. package/build/dex/compound.js.map +1 -0
  42. package/build/dex/curve-v2.d.ts +58 -0
  43. package/build/dex/curve-v2.js +180 -0
  44. package/build/dex/curve-v2.js.map +1 -0
  45. package/build/dex/dodo-v1.d.ts +33 -0
  46. package/build/dex/dodo-v1.js +63 -0
  47. package/build/dex/dodo-v1.js.map +1 -0
  48. package/build/dex/etherfi/etherfi.d.ts +26 -0
  49. package/build/dex/etherfi/etherfi.js +96 -0
  50. package/build/dex/etherfi/etherfi.js.map +1 -0
  51. package/build/dex/integral/config.d.ts +4 -0
  52. package/build/dex/integral/config.js +20 -0
  53. package/build/dex/integral/config.js.map +1 -0
  54. package/build/dex/integral/context.d.ts +40 -0
  55. package/build/dex/integral/context.js +158 -0
  56. package/build/dex/integral/context.js.map +1 -0
  57. package/build/dex/integral/helpers.d.ts +17 -0
  58. package/build/dex/integral/helpers.js +157 -0
  59. package/build/dex/integral/helpers.js.map +1 -0
  60. package/build/dex/integral/integral-factory.d.ts +24 -0
  61. package/build/dex/integral/integral-factory.js +95 -0
  62. package/build/dex/integral/integral-factory.js.map +1 -0
  63. package/build/dex/integral/integral-pool.d.ts +50 -0
  64. package/build/dex/integral/integral-pool.js +149 -0
  65. package/build/dex/integral/integral-pool.js.map +1 -0
  66. package/build/dex/integral/integral-pricing.d.ts +18 -0
  67. package/build/dex/integral/integral-pricing.js +114 -0
  68. package/build/dex/integral/integral-pricing.js.map +1 -0
  69. package/build/dex/integral/integral-relayer.d.ts +42 -0
  70. package/build/dex/integral/integral-relayer.js +192 -0
  71. package/build/dex/integral/integral-relayer.js.map +1 -0
  72. package/build/dex/integral/integral-token.d.ts +27 -0
  73. package/build/dex/integral/integral-token.js +59 -0
  74. package/build/dex/integral/integral-token.js.map +1 -0
  75. package/build/dex/integral/integral.d.ts +41 -0
  76. package/build/dex/integral/integral.js +376 -0
  77. package/build/dex/integral/integral.js.map +1 -0
  78. package/build/dex/integral/types.d.ts +85 -0
  79. package/build/dex/integral/types.js +9 -0
  80. package/build/dex/integral/types.js.map +1 -0
  81. package/build/dex/integral/utils-e2e.d.ts +9 -0
  82. package/build/dex/integral/utils-e2e.js +131 -0
  83. package/build/dex/integral/utils-e2e.js.map +1 -0
  84. package/build/dex/integral/utils.d.ts +17 -0
  85. package/build/dex/integral/utils.js +94 -0
  86. package/build/dex/integral/utils.js.map +1 -0
  87. package/build/dex/lido.d.ts +19 -0
  88. package/build/dex/lido.js +42 -0
  89. package/build/dex/lido.js.map +1 -0
  90. package/build/dex/maverick-v2/config.js +4 -0
  91. package/build/dex/maverick-v2/config.js.map +1 -1
  92. package/build/dex/maverick-v2/maverick-math/maverick-pool-math.js +4 -0
  93. package/build/dex/maverick-v2/maverick-math/maverick-pool-math.js.map +1 -1
  94. package/build/dex/maverick-v2/maverick-v2-pool.d.ts +1 -1
  95. package/build/dex/maverick-v2/maverick-v2-pool.js +8 -8
  96. package/build/dex/maverick-v2/maverick-v2-pool.js.map +1 -1
  97. package/build/dex/maverick-v2/maverick-v2.d.ts +5 -4
  98. package/build/dex/maverick-v2/maverick-v2.js +73 -63
  99. package/build/dex/maverick-v2/maverick-v2.js.map +1 -1
  100. package/build/dex/maverick-v2/types.d.ts +4 -0
  101. package/build/dex/onebit.d.ts +25 -0
  102. package/build/dex/onebit.js +42 -0
  103. package/build/dex/onebit.js.map +1 -0
  104. package/build/dex/oswap/config.d.ts +5 -0
  105. package/build/dex/oswap/config.js +31 -0
  106. package/build/dex/oswap/config.js.map +1 -0
  107. package/build/dex/oswap/oswap-pool.d.ts +51 -0
  108. package/build/dex/oswap/oswap-pool.js +150 -0
  109. package/build/dex/oswap/oswap-pool.js.map +1 -0
  110. package/build/dex/oswap/oswap.d.ts +46 -0
  111. package/build/dex/oswap/oswap.js +266 -0
  112. package/build/dex/oswap/oswap.js.map +1 -0
  113. package/build/dex/oswap/types.d.ts +20 -0
  114. package/build/dex/oswap/types.js +3 -0
  115. package/build/dex/oswap/types.js.map +1 -0
  116. package/build/dex/platypus/asset.d.ts +14 -0
  117. package/build/dex/platypus/asset.js +97 -0
  118. package/build/dex/platypus/asset.js.map +1 -0
  119. package/build/dex/platypus/config.d.ts +11 -0
  120. package/build/dex/platypus/config.js +69 -0
  121. package/build/dex/platypus/config.js.map +1 -0
  122. package/build/dex/platypus/platypus.d.ts +62 -0
  123. package/build/dex/platypus/platypus.js +442 -0
  124. package/build/dex/platypus/platypus.js.map +1 -0
  125. package/build/dex/platypus/pool-avax.d.ts +8 -0
  126. package/build/dex/platypus/pool-avax.js +54 -0
  127. package/build/dex/platypus/pool-avax.js.map +1 -0
  128. package/build/dex/platypus/pool-base.d.ts +19 -0
  129. package/build/dex/platypus/pool-base.js +86 -0
  130. package/build/dex/platypus/pool-base.js.map +1 -0
  131. package/build/dex/platypus/pool-pure.d.ts +8 -0
  132. package/build/dex/platypus/pool-pure.js +37 -0
  133. package/build/dex/platypus/pool-pure.js.map +1 -0
  134. package/build/dex/platypus/pool-subscriber.d.ts +14 -0
  135. package/build/dex/platypus/pool-subscriber.js +167 -0
  136. package/build/dex/platypus/pool-subscriber.js.map +1 -0
  137. package/build/dex/platypus/pool.d.ts +8 -0
  138. package/build/dex/platypus/pool.js +58 -0
  139. package/build/dex/platypus/pool.js.map +1 -0
  140. package/build/dex/platypus/types.d.ts +92 -0
  141. package/build/dex/platypus/types.js +10 -0
  142. package/build/dex/platypus/types.js.map +1 -0
  143. package/build/dex/quickswap/spiritswap-v3.d.ts +6 -0
  144. package/build/dex/quickswap/spiritswap-v3.js +19 -0
  145. package/build/dex/quickswap/spiritswap-v3.js.map +1 -0
  146. package/build/dex/sdai/config.d.ts +11 -0
  147. package/build/dex/sdai/config.js +21 -0
  148. package/build/dex/sdai/config.js.map +1 -0
  149. package/build/dex/sdai/constants.d.ts +2 -0
  150. package/build/dex/sdai/constants.js +6 -0
  151. package/build/dex/sdai/constants.js.map +1 -0
  152. package/build/dex/sdai/scripts/validate-state.d.ts +1 -0
  153. package/build/dex/sdai/scripts/validate-state.js +102 -0
  154. package/build/dex/sdai/scripts/validate-state.js.map +1 -0
  155. package/build/dex/sdai/sdai-pool.d.ts +16 -0
  156. package/build/dex/sdai/sdai-pool.js +85 -0
  157. package/build/dex/sdai/sdai-pool.js.map +1 -0
  158. package/build/dex/sdai/sdai.d.ts +51 -0
  159. package/build/dex/sdai/sdai.js +172 -0
  160. package/build/dex/sdai/sdai.js.map +1 -0
  161. package/build/dex/sdai/types.d.ts +21 -0
  162. package/build/dex/sdai/types.js +11 -0
  163. package/build/dex/sdai/types.js.map +1 -0
  164. package/build/dex/sdai/utils.d.ts +4 -0
  165. package/build/dex/sdai/utils.js +39 -0
  166. package/build/dex/sdai/utils.js.map +1 -0
  167. package/build/dex/smardex/config.d.ts +4 -0
  168. package/build/dex/smardex/config.js +64 -0
  169. package/build/dex/smardex/config.js.map +1 -0
  170. package/build/dex/smardex/constants.d.ts +18 -0
  171. package/build/dex/smardex/constants.js +33 -0
  172. package/build/dex/smardex/constants.js.map +1 -0
  173. package/build/dex/smardex/sdk/constants.d.ts +6 -0
  174. package/build/dex/smardex/sdk/constants.js +13 -0
  175. package/build/dex/smardex/sdk/constants.js.map +1 -0
  176. package/build/dex/smardex/sdk/core.d.ts +113 -0
  177. package/build/dex/smardex/sdk/core.js +499 -0
  178. package/build/dex/smardex/sdk/core.js.map +1 -0
  179. package/build/dex/smardex/sdk/errors.d.ts +15 -0
  180. package/build/dex/smardex/sdk/errors.js +22 -0
  181. package/build/dex/smardex/sdk/errors.js.map +1 -0
  182. package/build/dex/smardex/sdk/types.d.ts +62 -0
  183. package/build/dex/smardex/sdk/types.js +3 -0
  184. package/build/dex/smardex/sdk/types.js.map +1 -0
  185. package/build/dex/smardex/sdk/utils.d.ts +44 -0
  186. package/build/dex/smardex/sdk/utils.js +133 -0
  187. package/build/dex/smardex/sdk/utils.js.map +1 -0
  188. package/build/dex/smardex/smardex-event-pool.d.ts +28 -0
  189. package/build/dex/smardex/smardex-event-pool.js +119 -0
  190. package/build/dex/smardex/smardex-event-pool.js.map +1 -0
  191. package/build/dex/smardex/smardex.d.ts +65 -0
  192. package/build/dex/smardex/smardex.js +519 -0
  193. package/build/dex/smardex/smardex.js.map +1 -0
  194. package/build/dex/smardex/types.d.ts +55 -0
  195. package/build/dex/smardex/types.js +3 -0
  196. package/build/dex/smardex/types.js.map +1 -0
  197. package/build/dex/smoothy.d.ts +26 -0
  198. package/build/dex/smoothy.js +48 -0
  199. package/build/dex/smoothy.js.map +1 -0
  200. package/build/dex/solidly/forks-override/cone.d.ts +22 -0
  201. package/build/dex/solidly/forks-override/cone.js +53 -0
  202. package/build/dex/solidly/forks-override/cone.js.map +1 -0
  203. package/build/dex/solidly/forks-override/solisnek.d.ts +8 -0
  204. package/build/dex/solidly/forks-override/solisnek.js +15 -0
  205. package/build/dex/solidly/forks-override/solisnek.js.map +1 -0
  206. package/build/dex/stable-pool.d.ts +28 -0
  207. package/build/dex/stable-pool.js +62 -0
  208. package/build/dex/stable-pool.js.map +1 -0
  209. package/build/dex/swaap-v1/config.d.ts +17 -0
  210. package/build/dex/swaap-v1/config.js +56 -0
  211. package/build/dex/swaap-v1/config.js.map +1 -0
  212. package/build/dex/swaap-v1/constants.d.ts +6 -0
  213. package/build/dex/swaap-v1/constants.js +17 -0
  214. package/build/dex/swaap-v1/constants.js.map +1 -0
  215. package/build/dex/swaap-v1/libraries/ChainlinkUtils.d.ts +25 -0
  216. package/build/dex/swaap-v1/libraries/ChainlinkUtils.js +62 -0
  217. package/build/dex/swaap-v1/libraries/ChainlinkUtils.js.map +1 -0
  218. package/build/dex/swaap-v1/libraries/Const.d.ts +18 -0
  219. package/build/dex/swaap-v1/libraries/Const.js +26 -0
  220. package/build/dex/swaap-v1/libraries/Const.js.map +1 -0
  221. package/build/dex/swaap-v1/libraries/GeometricBrownianMotion.d.ts +77 -0
  222. package/build/dex/swaap-v1/libraries/GeometricBrownianMotion.js +316 -0
  223. package/build/dex/swaap-v1/libraries/GeometricBrownianMotion.js.map +1 -0
  224. package/build/dex/swaap-v1/libraries/LogExpMath.d.ts +75 -0
  225. package/build/dex/swaap-v1/libraries/LogExpMath.js +418 -0
  226. package/build/dex/swaap-v1/libraries/LogExpMath.js.map +1 -0
  227. package/build/dex/swaap-v1/libraries/MathMMM.d.ts +185 -0
  228. package/build/dex/swaap-v1/libraries/MathMMM.js +453 -0
  229. package/build/dex/swaap-v1/libraries/MathMMM.js.map +1 -0
  230. package/build/dex/swaap-v1/libraries/Num.d.ts +31 -0
  231. package/build/dex/swaap-v1/libraries/Num.js +167 -0
  232. package/build/dex/swaap-v1/libraries/Num.js.map +1 -0
  233. package/build/dex/swaap-v1/libraries/PoolQuotations.d.ts +23 -0
  234. package/build/dex/swaap-v1/libraries/PoolQuotations.js +131 -0
  235. package/build/dex/swaap-v1/libraries/PoolQuotations.js.map +1 -0
  236. package/build/dex/swaap-v1/libraries/Struct.d.ts +56 -0
  237. package/build/dex/swaap-v1/libraries/Struct.js +3 -0
  238. package/build/dex/swaap-v1/libraries/Struct.js.map +1 -0
  239. package/build/dex/swaap-v1/swaap-v1-pool.d.ts +45 -0
  240. package/build/dex/swaap-v1/swaap-v1-pool.js +656 -0
  241. package/build/dex/swaap-v1/swaap-v1-pool.js.map +1 -0
  242. package/build/dex/swaap-v1/swaap-v1.d.ts +61 -0
  243. package/build/dex/swaap-v1/swaap-v1.js +369 -0
  244. package/build/dex/swaap-v1/swaap-v1.js.map +1 -0
  245. package/build/dex/swaap-v1/types.d.ts +106 -0
  246. package/build/dex/swaap-v1/types.js +9 -0
  247. package/build/dex/swaap-v1/types.js.map +1 -0
  248. package/build/dex/trader-joe-v2.1/optimizer.js +1 -4
  249. package/build/dex/trader-joe-v2.1/optimizer.js.map +1 -1
  250. package/build/dex/trader-joe-v2.1.d.ts +43 -0
  251. package/build/dex/trader-joe-v2.1.js +79 -0
  252. package/build/dex/trader-joe-v2.1.js.map +1 -0
  253. package/build/executor/compressor/Compressor.d.ts +23 -0
  254. package/build/executor/compressor/Compressor.js +144 -0
  255. package/build/executor/compressor/Compressor.js.map +1 -0
  256. package/build/executor/compressor/compress.d.ts +17 -0
  257. package/build/executor/compressor/compress.js +187 -0
  258. package/build/executor/compressor/compress.js.map +1 -0
  259. package/build/executor/compressor/compress_functions/addressSubstitution.d.ts +6 -0
  260. package/build/executor/compressor/compress_functions/addressSubstitution.js +29 -0
  261. package/build/executor/compressor/compress_functions/addressSubstitution.js.map +1 -0
  262. package/build/executor/compressor/compress_functions/addressSubstitutionFromObject.d.ts +10 -0
  263. package/build/executor/compressor/compress_functions/addressSubstitutionFromObject.js +40 -0
  264. package/build/executor/compressor/compress_functions/addressSubstitutionFromObject.js.map +1 -0
  265. package/build/executor/compressor/compress_functions/byteSubstitution.d.ts +11 -0
  266. package/build/executor/compressor/compress_functions/byteSubstitution.js +64 -0
  267. package/build/executor/compressor/compress_functions/byteSubstitution.js.map +1 -0
  268. package/build/executor/compressor/compress_functions/ffSubstitution.d.ts +7 -0
  269. package/build/executor/compressor/compress_functions/ffSubstitution.js +54 -0
  270. package/build/executor/compressor/compress_functions/ffSubstitution.js.map +1 -0
  271. package/build/executor/compressor/compress_functions/findLongestAndSubstitute.d.ts +8 -0
  272. package/build/executor/compressor/compress_functions/findLongestAndSubstitute.js +67 -0
  273. package/build/executor/compressor/compress_functions/findLongestAndSubstitute.js.map +1 -0
  274. package/build/executor/compressor/compress_functions/findLongestAndSubstitute_old.d.ts +8 -0
  275. package/build/executor/compressor/compress_functions/findLongestAndSubstitute_old.js +61 -0
  276. package/build/executor/compressor/compress_functions/findLongestAndSubstitute_old.js.map +1 -0
  277. package/build/executor/compressor/compress_functions/reverseAddressSubstitution.d.ts +6 -0
  278. package/build/executor/compressor/compress_functions/reverseAddressSubstitution.js +37 -0
  279. package/build/executor/compressor/compress_functions/reverseAddressSubstitution.js.map +1 -0
  280. package/build/executor/compressor/compress_functions/searchUnusedBytes.d.ts +9 -0
  281. package/build/executor/compressor/compress_functions/searchUnusedBytes.js +33 -0
  282. package/build/executor/compressor/compress_functions/searchUnusedBytes.js.map +1 -0
  283. package/build/executor/compressor/fetchSaved.d.ts +0 -0
  284. package/build/executor/compressor/fetchSaved.js +17 -0
  285. package/build/executor/compressor/fetchSaved.js.map +1 -0
  286. package/build/executor/compressor/utils/computeCostL2.d.ts +2 -0
  287. package/build/executor/compressor/utils/computeCostL2.js +14 -0
  288. package/build/executor/compressor/utils/computeCostL2.js.map +1 -0
  289. package/build/executor/compressor/utils/findLongestDuplicatedString.d.ts +2 -0
  290. package/build/executor/compressor/utils/findLongestDuplicatedString.js +30 -0
  291. package/build/executor/compressor/utils/findLongestDuplicatedString.js.map +1 -0
  292. package/build/executor/compressor/utils/getAllIndexes.d.ts +2 -0
  293. package/build/executor/compressor/utils/getAllIndexes.js +12 -0
  294. package/build/executor/compressor/utils/getAllIndexes.js.map +1 -0
  295. package/build/executor/compressor/utils/getByteForAddress.d.ts +2 -0
  296. package/build/executor/compressor/utils/getByteForAddress.js +14 -0
  297. package/build/executor/compressor/utils/getByteForAddress.js.map +1 -0
  298. package/build/executor/compressor/utils/intTo2Bytes.d.ts +2 -0
  299. package/build/executor/compressor/utils/intTo2Bytes.js +14 -0
  300. package/build/executor/compressor/utils/intTo2Bytes.js.map +1 -0
  301. package/build/executor/compressor/utils/intTo3Bytes.d.ts +2 -0
  302. package/build/executor/compressor/utils/intTo3Bytes.js +18 -0
  303. package/build/executor/compressor/utils/intTo3Bytes.js.map +1 -0
  304. package/build/executor/compressor/utils/intToByte.d.ts +2 -0
  305. package/build/executor/compressor/utils/intToByte.js +10 -0
  306. package/build/executor/compressor/utils/intToByte.js.map +1 -0
  307. package/package.json +1 -1
  308. package/src/abi/maverick-v2/MaverickV2Router.json +778 -0
  309. package/src/dex/maverick-v2/config.ts +4 -0
  310. package/src/dex/maverick-v2/maverick-math/maverick-pool-math.ts +5 -0
  311. package/src/dex/maverick-v2/maverick-v2-e2e.test.ts +21 -43
  312. package/src/dex/maverick-v2/maverick-v2-integration.test.ts +100 -96
  313. package/src/dex/maverick-v2/maverick-v2-pool.ts +8 -8
  314. package/src/dex/maverick-v2/maverick-v2.ts +111 -81
  315. package/src/dex/maverick-v2/types.ts +4 -0
  316. package/tests/constants-e2e.ts +9 -0
  317. package/.idea/aws.xml +0 -17
  318. package/.idea/codeStyles/Project.xml +0 -19
  319. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  320. package/.idea/misc.xml +0 -6
  321. package/.idea/modules.xml +0 -8
  322. package/.idea/paraswap-dex-lib.iml +0 -9
  323. package/.idea/prettier.xml +0 -7
  324. package/.idea/vcs.xml +0 -6
  325. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.d.ts +0 -7
  326. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js +0 -20
  327. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js.map +0 -1
@@ -0,0 +1,1536 @@
1
+ [
2
+ {
3
+ "inputs": [],
4
+ "stateMutability": "nonpayable",
5
+ "type": "constructor"
6
+ },
7
+ {
8
+ "anonymous": false,
9
+ "inputs": [
10
+ {
11
+ "indexed": false,
12
+ "internalType": "address",
13
+ "name": "token",
14
+ "type": "address"
15
+ },
16
+ {
17
+ "indexed": false,
18
+ "internalType": "address",
19
+ "name": "to",
20
+ "type": "address"
21
+ },
22
+ {
23
+ "indexed": false,
24
+ "internalType": "uint256",
25
+ "name": "amount",
26
+ "type": "uint256"
27
+ }
28
+ ],
29
+ "name": "Approve",
30
+ "type": "event"
31
+ },
32
+ {
33
+ "anonymous": false,
34
+ "inputs": [
35
+ {
36
+ "indexed": true,
37
+ "internalType": "address",
38
+ "name": "sender",
39
+ "type": "address"
40
+ },
41
+ {
42
+ "indexed": false,
43
+ "internalType": "address",
44
+ "name": "tokenIn",
45
+ "type": "address"
46
+ },
47
+ {
48
+ "indexed": false,
49
+ "internalType": "address",
50
+ "name": "tokenOut",
51
+ "type": "address"
52
+ },
53
+ {
54
+ "indexed": false,
55
+ "internalType": "uint256",
56
+ "name": "amountIn",
57
+ "type": "uint256"
58
+ },
59
+ {
60
+ "indexed": false,
61
+ "internalType": "uint256",
62
+ "name": "amountInMax",
63
+ "type": "uint256"
64
+ },
65
+ {
66
+ "indexed": false,
67
+ "internalType": "uint256",
68
+ "name": "amountOut",
69
+ "type": "uint256"
70
+ },
71
+ {
72
+ "indexed": false,
73
+ "internalType": "bool",
74
+ "name": "wrapUnwrap",
75
+ "type": "bool"
76
+ },
77
+ {
78
+ "indexed": false,
79
+ "internalType": "uint256",
80
+ "name": "fee",
81
+ "type": "uint256"
82
+ },
83
+ {
84
+ "indexed": true,
85
+ "internalType": "address",
86
+ "name": "to",
87
+ "type": "address"
88
+ },
89
+ {
90
+ "indexed": false,
91
+ "internalType": "address",
92
+ "name": "orderContract",
93
+ "type": "address"
94
+ },
95
+ {
96
+ "indexed": true,
97
+ "internalType": "uint256",
98
+ "name": "orderId",
99
+ "type": "uint256"
100
+ }
101
+ ],
102
+ "name": "Buy",
103
+ "type": "event"
104
+ },
105
+ {
106
+ "anonymous": false,
107
+ "inputs": [
108
+ {
109
+ "indexed": false,
110
+ "internalType": "address",
111
+ "name": "delay",
112
+ "type": "address"
113
+ }
114
+ ],
115
+ "name": "DelaySet",
116
+ "type": "event"
117
+ },
118
+ {
119
+ "anonymous": false,
120
+ "inputs": [
121
+ {
122
+ "indexed": false,
123
+ "internalType": "uint256",
124
+ "name": "gasCost",
125
+ "type": "uint256"
126
+ }
127
+ ],
128
+ "name": "EthTransferGasCostSet",
129
+ "type": "event"
130
+ },
131
+ {
132
+ "anonymous": false,
133
+ "inputs": [
134
+ {
135
+ "indexed": false,
136
+ "internalType": "uint256",
137
+ "name": "limit",
138
+ "type": "uint256"
139
+ }
140
+ ],
141
+ "name": "ExecutionGasLimitSet",
142
+ "type": "event"
143
+ },
144
+ {
145
+ "anonymous": false,
146
+ "inputs": [
147
+ {
148
+ "indexed": false,
149
+ "internalType": "address",
150
+ "name": "_factory",
151
+ "type": "address"
152
+ },
153
+ {
154
+ "indexed": false,
155
+ "internalType": "address",
156
+ "name": "_delay",
157
+ "type": "address"
158
+ },
159
+ {
160
+ "indexed": false,
161
+ "internalType": "address",
162
+ "name": "_weth",
163
+ "type": "address"
164
+ }
165
+ ],
166
+ "name": "Initialized",
167
+ "type": "event"
168
+ },
169
+ {
170
+ "anonymous": false,
171
+ "inputs": [
172
+ {
173
+ "indexed": true,
174
+ "internalType": "address",
175
+ "name": "oneInchRouter",
176
+ "type": "address"
177
+ },
178
+ {
179
+ "indexed": false,
180
+ "internalType": "bool",
181
+ "name": "whitelisted",
182
+ "type": "bool"
183
+ }
184
+ ],
185
+ "name": "OneInchRouterWhitelisted",
186
+ "type": "event"
187
+ },
188
+ {
189
+ "anonymous": false,
190
+ "inputs": [
191
+ {
192
+ "indexed": false,
193
+ "internalType": "address",
194
+ "name": "owner",
195
+ "type": "address"
196
+ }
197
+ ],
198
+ "name": "OwnerSet",
199
+ "type": "event"
200
+ },
201
+ {
202
+ "anonymous": false,
203
+ "inputs": [
204
+ {
205
+ "indexed": false,
206
+ "internalType": "address",
207
+ "name": "pair",
208
+ "type": "address"
209
+ },
210
+ {
211
+ "indexed": false,
212
+ "internalType": "bool",
213
+ "name": "enabled",
214
+ "type": "bool"
215
+ }
216
+ ],
217
+ "name": "PairEnabledSet",
218
+ "type": "event"
219
+ },
220
+ {
221
+ "anonymous": false,
222
+ "inputs": [
223
+ {
224
+ "indexed": true,
225
+ "internalType": "address",
226
+ "name": "sender",
227
+ "type": "address"
228
+ },
229
+ {
230
+ "indexed": false,
231
+ "internalType": "address",
232
+ "name": "tokenIn",
233
+ "type": "address"
234
+ },
235
+ {
236
+ "indexed": false,
237
+ "internalType": "address",
238
+ "name": "tokenOut",
239
+ "type": "address"
240
+ },
241
+ {
242
+ "indexed": false,
243
+ "internalType": "uint256",
244
+ "name": "amountIn",
245
+ "type": "uint256"
246
+ },
247
+ {
248
+ "indexed": true,
249
+ "internalType": "uint256",
250
+ "name": "delayOrderId",
251
+ "type": "uint256"
252
+ }
253
+ ],
254
+ "name": "RebalanceSellWithDelay",
255
+ "type": "event"
256
+ },
257
+ {
258
+ "anonymous": false,
259
+ "inputs": [
260
+ {
261
+ "indexed": true,
262
+ "internalType": "address",
263
+ "name": "oneInchRouter",
264
+ "type": "address"
265
+ },
266
+ {
267
+ "indexed": false,
268
+ "internalType": "uint256",
269
+ "name": "gas",
270
+ "type": "uint256"
271
+ },
272
+ {
273
+ "indexed": false,
274
+ "internalType": "bytes",
275
+ "name": "data",
276
+ "type": "bytes"
277
+ }
278
+ ],
279
+ "name": "RebalanceSellWithOneInch",
280
+ "type": "event"
281
+ },
282
+ {
283
+ "anonymous": false,
284
+ "inputs": [
285
+ {
286
+ "indexed": false,
287
+ "internalType": "address",
288
+ "name": "rebalancer",
289
+ "type": "address"
290
+ }
291
+ ],
292
+ "name": "RebalancerSet",
293
+ "type": "event"
294
+ },
295
+ {
296
+ "anonymous": false,
297
+ "inputs": [
298
+ {
299
+ "indexed": true,
300
+ "internalType": "address",
301
+ "name": "sender",
302
+ "type": "address"
303
+ },
304
+ {
305
+ "indexed": false,
306
+ "internalType": "address",
307
+ "name": "tokenIn",
308
+ "type": "address"
309
+ },
310
+ {
311
+ "indexed": false,
312
+ "internalType": "address",
313
+ "name": "tokenOut",
314
+ "type": "address"
315
+ },
316
+ {
317
+ "indexed": false,
318
+ "internalType": "uint256",
319
+ "name": "amountIn",
320
+ "type": "uint256"
321
+ },
322
+ {
323
+ "indexed": false,
324
+ "internalType": "uint256",
325
+ "name": "amountOut",
326
+ "type": "uint256"
327
+ },
328
+ {
329
+ "indexed": false,
330
+ "internalType": "uint256",
331
+ "name": "amountOutMin",
332
+ "type": "uint256"
333
+ },
334
+ {
335
+ "indexed": false,
336
+ "internalType": "bool",
337
+ "name": "wrapUnwrap",
338
+ "type": "bool"
339
+ },
340
+ {
341
+ "indexed": false,
342
+ "internalType": "uint256",
343
+ "name": "fee",
344
+ "type": "uint256"
345
+ },
346
+ {
347
+ "indexed": true,
348
+ "internalType": "address",
349
+ "name": "to",
350
+ "type": "address"
351
+ },
352
+ {
353
+ "indexed": false,
354
+ "internalType": "address",
355
+ "name": "orderContract",
356
+ "type": "address"
357
+ },
358
+ {
359
+ "indexed": true,
360
+ "internalType": "uint256",
361
+ "name": "orderId",
362
+ "type": "uint256"
363
+ }
364
+ ],
365
+ "name": "Sell",
366
+ "type": "event"
367
+ },
368
+ {
369
+ "anonymous": false,
370
+ "inputs": [
371
+ {
372
+ "indexed": false,
373
+ "internalType": "address",
374
+ "name": "pair",
375
+ "type": "address"
376
+ },
377
+ {
378
+ "indexed": false,
379
+ "internalType": "uint256",
380
+ "name": "fee",
381
+ "type": "uint256"
382
+ }
383
+ ],
384
+ "name": "SwapFeeSet",
385
+ "type": "event"
386
+ },
387
+ {
388
+ "anonymous": false,
389
+ "inputs": [
390
+ {
391
+ "indexed": false,
392
+ "internalType": "address",
393
+ "name": "token",
394
+ "type": "address"
395
+ },
396
+ {
397
+ "indexed": false,
398
+ "internalType": "uint256",
399
+ "name": "limit",
400
+ "type": "uint256"
401
+ }
402
+ ],
403
+ "name": "TokenLimitMaxMultiplierSet",
404
+ "type": "event"
405
+ },
406
+ {
407
+ "anonymous": false,
408
+ "inputs": [
409
+ {
410
+ "indexed": false,
411
+ "internalType": "address",
412
+ "name": "token",
413
+ "type": "address"
414
+ },
415
+ {
416
+ "indexed": false,
417
+ "internalType": "uint256",
418
+ "name": "limit",
419
+ "type": "uint256"
420
+ }
421
+ ],
422
+ "name": "TokenLimitMinSet",
423
+ "type": "event"
424
+ },
425
+ {
426
+ "anonymous": false,
427
+ "inputs": [
428
+ {
429
+ "indexed": false,
430
+ "internalType": "address",
431
+ "name": "pair",
432
+ "type": "address"
433
+ },
434
+ {
435
+ "indexed": false,
436
+ "internalType": "uint16",
437
+ "name": "tolerance",
438
+ "type": "uint16"
439
+ }
440
+ ],
441
+ "name": "ToleranceSet",
442
+ "type": "event"
443
+ },
444
+ {
445
+ "anonymous": false,
446
+ "inputs": [
447
+ {
448
+ "indexed": false,
449
+ "internalType": "address",
450
+ "name": "pair",
451
+ "type": "address"
452
+ },
453
+ {
454
+ "indexed": false,
455
+ "internalType": "uint32",
456
+ "name": "interval",
457
+ "type": "uint32"
458
+ }
459
+ ],
460
+ "name": "TwapIntervalSet",
461
+ "type": "event"
462
+ },
463
+ {
464
+ "anonymous": false,
465
+ "inputs": [
466
+ {
467
+ "indexed": false,
468
+ "internalType": "uint256",
469
+ "name": "amount",
470
+ "type": "uint256"
471
+ }
472
+ ],
473
+ "name": "UnwrapWeth",
474
+ "type": "event"
475
+ },
476
+ {
477
+ "anonymous": false,
478
+ "inputs": [
479
+ {
480
+ "indexed": false,
481
+ "internalType": "address",
482
+ "name": "token",
483
+ "type": "address"
484
+ },
485
+ {
486
+ "indexed": false,
487
+ "internalType": "address",
488
+ "name": "to",
489
+ "type": "address"
490
+ },
491
+ {
492
+ "indexed": false,
493
+ "internalType": "uint256",
494
+ "name": "amount",
495
+ "type": "uint256"
496
+ }
497
+ ],
498
+ "name": "Withdraw",
499
+ "type": "event"
500
+ },
501
+ {
502
+ "anonymous": false,
503
+ "inputs": [
504
+ {
505
+ "indexed": false,
506
+ "internalType": "uint256",
507
+ "name": "amount",
508
+ "type": "uint256"
509
+ }
510
+ ],
511
+ "name": "WrapEth",
512
+ "type": "event"
513
+ },
514
+ {
515
+ "inputs": [],
516
+ "name": "DELAY_ADDRESS",
517
+ "outputs": [
518
+ {
519
+ "internalType": "address",
520
+ "name": "",
521
+ "type": "address"
522
+ }
523
+ ],
524
+ "stateMutability": "view",
525
+ "type": "function"
526
+ },
527
+ {
528
+ "inputs": [],
529
+ "name": "EXECUTION_GAS_LIMIT",
530
+ "outputs": [
531
+ {
532
+ "internalType": "uint256",
533
+ "name": "",
534
+ "type": "uint256"
535
+ }
536
+ ],
537
+ "stateMutability": "view",
538
+ "type": "function"
539
+ },
540
+ {
541
+ "inputs": [],
542
+ "name": "FACTORY_ADDRESS",
543
+ "outputs": [
544
+ {
545
+ "internalType": "address",
546
+ "name": "",
547
+ "type": "address"
548
+ }
549
+ ],
550
+ "stateMutability": "view",
551
+ "type": "function"
552
+ },
553
+ {
554
+ "inputs": [],
555
+ "name": "WETH_ADDRESS",
556
+ "outputs": [
557
+ {
558
+ "internalType": "address",
559
+ "name": "",
560
+ "type": "address"
561
+ }
562
+ ],
563
+ "stateMutability": "view",
564
+ "type": "function"
565
+ },
566
+ {
567
+ "inputs": [],
568
+ "name": "__RESERVED__OLD_DELAY",
569
+ "outputs": [
570
+ {
571
+ "internalType": "address",
572
+ "name": "",
573
+ "type": "address"
574
+ }
575
+ ],
576
+ "stateMutability": "view",
577
+ "type": "function"
578
+ },
579
+ {
580
+ "inputs": [],
581
+ "name": "__RESERVED__OLD_ETH_TRANSFER_GAS_COST",
582
+ "outputs": [
583
+ {
584
+ "internalType": "uint256",
585
+ "name": "",
586
+ "type": "uint256"
587
+ }
588
+ ],
589
+ "stateMutability": "view",
590
+ "type": "function"
591
+ },
592
+ {
593
+ "inputs": [],
594
+ "name": "__RESERVED__OLD_EXECUTION_GAS_LIMIT",
595
+ "outputs": [
596
+ {
597
+ "internalType": "uint256",
598
+ "name": "",
599
+ "type": "uint256"
600
+ }
601
+ ],
602
+ "stateMutability": "view",
603
+ "type": "function"
604
+ },
605
+ {
606
+ "inputs": [],
607
+ "name": "__RESERVED__OLD_FACTORY",
608
+ "outputs": [
609
+ {
610
+ "internalType": "address",
611
+ "name": "",
612
+ "type": "address"
613
+ }
614
+ ],
615
+ "stateMutability": "view",
616
+ "type": "function"
617
+ },
618
+ {
619
+ "inputs": [
620
+ {
621
+ "internalType": "address",
622
+ "name": "",
623
+ "type": "address"
624
+ }
625
+ ],
626
+ "name": "__RESERVED__OLD_TOKEN_LIMIT_MAX_MULTIPLIER",
627
+ "outputs": [
628
+ {
629
+ "internalType": "uint256",
630
+ "name": "",
631
+ "type": "uint256"
632
+ }
633
+ ],
634
+ "stateMutability": "view",
635
+ "type": "function"
636
+ },
637
+ {
638
+ "inputs": [
639
+ {
640
+ "internalType": "address",
641
+ "name": "",
642
+ "type": "address"
643
+ }
644
+ ],
645
+ "name": "__RESERVED__OLD_TOKEN_LIMIT_MIN",
646
+ "outputs": [
647
+ {
648
+ "internalType": "uint256",
649
+ "name": "",
650
+ "type": "uint256"
651
+ }
652
+ ],
653
+ "stateMutability": "view",
654
+ "type": "function"
655
+ },
656
+ {
657
+ "inputs": [
658
+ {
659
+ "internalType": "address",
660
+ "name": "",
661
+ "type": "address"
662
+ }
663
+ ],
664
+ "name": "__RESERVED__OLD_TOLERANCE",
665
+ "outputs": [
666
+ {
667
+ "internalType": "uint16",
668
+ "name": "",
669
+ "type": "uint16"
670
+ }
671
+ ],
672
+ "stateMutability": "view",
673
+ "type": "function"
674
+ },
675
+ {
676
+ "inputs": [
677
+ {
678
+ "internalType": "address",
679
+ "name": "",
680
+ "type": "address"
681
+ }
682
+ ],
683
+ "name": "__RESERVED__OLD_TWAP_INTERVAL",
684
+ "outputs": [
685
+ {
686
+ "internalType": "uint32",
687
+ "name": "",
688
+ "type": "uint32"
689
+ }
690
+ ],
691
+ "stateMutability": "view",
692
+ "type": "function"
693
+ },
694
+ {
695
+ "inputs": [],
696
+ "name": "__RESERVED__OLD_WETH",
697
+ "outputs": [
698
+ {
699
+ "internalType": "address",
700
+ "name": "",
701
+ "type": "address"
702
+ }
703
+ ],
704
+ "stateMutability": "view",
705
+ "type": "function"
706
+ },
707
+ {
708
+ "inputs": [],
709
+ "name": "__RESERVED__SLOT_6_USED_IN_PREVIOUS_VERSIONS",
710
+ "outputs": [
711
+ {
712
+ "internalType": "uint256",
713
+ "name": "",
714
+ "type": "uint256"
715
+ }
716
+ ],
717
+ "stateMutability": "view",
718
+ "type": "function"
719
+ },
720
+ {
721
+ "inputs": [
722
+ {
723
+ "internalType": "address",
724
+ "name": "token",
725
+ "type": "address"
726
+ },
727
+ {
728
+ "internalType": "uint256",
729
+ "name": "amount",
730
+ "type": "uint256"
731
+ },
732
+ {
733
+ "internalType": "address",
734
+ "name": "to",
735
+ "type": "address"
736
+ }
737
+ ],
738
+ "name": "approve",
739
+ "outputs": [],
740
+ "stateMutability": "nonpayable",
741
+ "type": "function"
742
+ },
743
+ {
744
+ "inputs": [
745
+ {
746
+ "components": [
747
+ {
748
+ "internalType": "address",
749
+ "name": "tokenIn",
750
+ "type": "address"
751
+ },
752
+ {
753
+ "internalType": "address",
754
+ "name": "tokenOut",
755
+ "type": "address"
756
+ },
757
+ {
758
+ "internalType": "uint256",
759
+ "name": "amountInMax",
760
+ "type": "uint256"
761
+ },
762
+ {
763
+ "internalType": "uint256",
764
+ "name": "amountOut",
765
+ "type": "uint256"
766
+ },
767
+ {
768
+ "internalType": "bool",
769
+ "name": "wrapUnwrap",
770
+ "type": "bool"
771
+ },
772
+ {
773
+ "internalType": "address",
774
+ "name": "to",
775
+ "type": "address"
776
+ },
777
+ {
778
+ "internalType": "uint32",
779
+ "name": "submitDeadline",
780
+ "type": "uint32"
781
+ }
782
+ ],
783
+ "internalType": "struct ITwapRelayer.BuyParams",
784
+ "name": "buyParams",
785
+ "type": "tuple"
786
+ }
787
+ ],
788
+ "name": "buy",
789
+ "outputs": [
790
+ {
791
+ "internalType": "uint256",
792
+ "name": "orderId",
793
+ "type": "uint256"
794
+ }
795
+ ],
796
+ "stateMutability": "payable",
797
+ "type": "function"
798
+ },
799
+ {
800
+ "inputs": [],
801
+ "name": "delay",
802
+ "outputs": [
803
+ {
804
+ "internalType": "address",
805
+ "name": "",
806
+ "type": "address"
807
+ }
808
+ ],
809
+ "stateMutability": "pure",
810
+ "type": "function"
811
+ },
812
+ {
813
+ "inputs": [],
814
+ "name": "ethTransferGasCost",
815
+ "outputs": [
816
+ {
817
+ "internalType": "uint256",
818
+ "name": "",
819
+ "type": "uint256"
820
+ }
821
+ ],
822
+ "stateMutability": "pure",
823
+ "type": "function"
824
+ },
825
+ {
826
+ "inputs": [],
827
+ "name": "executionGasLimit",
828
+ "outputs": [
829
+ {
830
+ "internalType": "uint256",
831
+ "name": "",
832
+ "type": "uint256"
833
+ }
834
+ ],
835
+ "stateMutability": "pure",
836
+ "type": "function"
837
+ },
838
+ {
839
+ "inputs": [],
840
+ "name": "factory",
841
+ "outputs": [
842
+ {
843
+ "internalType": "address",
844
+ "name": "",
845
+ "type": "address"
846
+ }
847
+ ],
848
+ "stateMutability": "pure",
849
+ "type": "function"
850
+ },
851
+ {
852
+ "inputs": [
853
+ {
854
+ "internalType": "address",
855
+ "name": "token0",
856
+ "type": "address"
857
+ },
858
+ {
859
+ "internalType": "address",
860
+ "name": "token1",
861
+ "type": "address"
862
+ }
863
+ ],
864
+ "name": "getPoolState",
865
+ "outputs": [
866
+ {
867
+ "internalType": "uint256",
868
+ "name": "price",
869
+ "type": "uint256"
870
+ },
871
+ {
872
+ "internalType": "uint256",
873
+ "name": "fee",
874
+ "type": "uint256"
875
+ },
876
+ {
877
+ "internalType": "uint256",
878
+ "name": "limitMin0",
879
+ "type": "uint256"
880
+ },
881
+ {
882
+ "internalType": "uint256",
883
+ "name": "limitMax0",
884
+ "type": "uint256"
885
+ },
886
+ {
887
+ "internalType": "uint256",
888
+ "name": "limitMin1",
889
+ "type": "uint256"
890
+ },
891
+ {
892
+ "internalType": "uint256",
893
+ "name": "limitMax1",
894
+ "type": "uint256"
895
+ }
896
+ ],
897
+ "stateMutability": "view",
898
+ "type": "function"
899
+ },
900
+ {
901
+ "inputs": [
902
+ {
903
+ "internalType": "address",
904
+ "name": "pair",
905
+ "type": "address"
906
+ },
907
+ {
908
+ "internalType": "bool",
909
+ "name": "inverted",
910
+ "type": "bool"
911
+ }
912
+ ],
913
+ "name": "getPriceByPairAddress",
914
+ "outputs": [
915
+ {
916
+ "internalType": "uint8",
917
+ "name": "xDecimals",
918
+ "type": "uint8"
919
+ },
920
+ {
921
+ "internalType": "uint8",
922
+ "name": "yDecimals",
923
+ "type": "uint8"
924
+ },
925
+ {
926
+ "internalType": "uint256",
927
+ "name": "price",
928
+ "type": "uint256"
929
+ }
930
+ ],
931
+ "stateMutability": "view",
932
+ "type": "function"
933
+ },
934
+ {
935
+ "inputs": [
936
+ {
937
+ "internalType": "address",
938
+ "name": "tokenIn",
939
+ "type": "address"
940
+ },
941
+ {
942
+ "internalType": "address",
943
+ "name": "tokenOut",
944
+ "type": "address"
945
+ }
946
+ ],
947
+ "name": "getPriceByTokenAddresses",
948
+ "outputs": [
949
+ {
950
+ "internalType": "uint256",
951
+ "name": "price",
952
+ "type": "uint256"
953
+ }
954
+ ],
955
+ "stateMutability": "view",
956
+ "type": "function"
957
+ },
958
+ {
959
+ "inputs": [
960
+ {
961
+ "internalType": "address",
962
+ "name": "",
963
+ "type": "address"
964
+ }
965
+ ],
966
+ "name": "getTokenLimitMaxMultiplier",
967
+ "outputs": [
968
+ {
969
+ "internalType": "uint256",
970
+ "name": "",
971
+ "type": "uint256"
972
+ }
973
+ ],
974
+ "stateMutability": "pure",
975
+ "type": "function"
976
+ },
977
+ {
978
+ "inputs": [
979
+ {
980
+ "internalType": "address",
981
+ "name": "token",
982
+ "type": "address"
983
+ }
984
+ ],
985
+ "name": "getTokenLimitMin",
986
+ "outputs": [
987
+ {
988
+ "internalType": "uint256",
989
+ "name": "",
990
+ "type": "uint256"
991
+ }
992
+ ],
993
+ "stateMutability": "pure",
994
+ "type": "function"
995
+ },
996
+ {
997
+ "inputs": [
998
+ {
999
+ "internalType": "address",
1000
+ "name": "",
1001
+ "type": "address"
1002
+ }
1003
+ ],
1004
+ "name": "getTolerance",
1005
+ "outputs": [
1006
+ {
1007
+ "internalType": "uint16",
1008
+ "name": "",
1009
+ "type": "uint16"
1010
+ }
1011
+ ],
1012
+ "stateMutability": "pure",
1013
+ "type": "function"
1014
+ },
1015
+ {
1016
+ "inputs": [
1017
+ {
1018
+ "internalType": "address",
1019
+ "name": "",
1020
+ "type": "address"
1021
+ }
1022
+ ],
1023
+ "name": "getTwapInterval",
1024
+ "outputs": [
1025
+ {
1026
+ "internalType": "uint32",
1027
+ "name": "",
1028
+ "type": "uint32"
1029
+ }
1030
+ ],
1031
+ "stateMutability": "pure",
1032
+ "type": "function"
1033
+ },
1034
+ {
1035
+ "inputs": [],
1036
+ "name": "initialize",
1037
+ "outputs": [],
1038
+ "stateMutability": "nonpayable",
1039
+ "type": "function"
1040
+ },
1041
+ {
1042
+ "inputs": [],
1043
+ "name": "initializeLock",
1044
+ "outputs": [],
1045
+ "stateMutability": "nonpayable",
1046
+ "type": "function"
1047
+ },
1048
+ {
1049
+ "inputs": [],
1050
+ "name": "initialized",
1051
+ "outputs": [
1052
+ {
1053
+ "internalType": "uint8",
1054
+ "name": "",
1055
+ "type": "uint8"
1056
+ }
1057
+ ],
1058
+ "stateMutability": "view",
1059
+ "type": "function"
1060
+ },
1061
+ {
1062
+ "inputs": [
1063
+ {
1064
+ "internalType": "address",
1065
+ "name": "",
1066
+ "type": "address"
1067
+ }
1068
+ ],
1069
+ "name": "isOneInchRouterWhitelisted",
1070
+ "outputs": [
1071
+ {
1072
+ "internalType": "bool",
1073
+ "name": "",
1074
+ "type": "bool"
1075
+ }
1076
+ ],
1077
+ "stateMutability": "view",
1078
+ "type": "function"
1079
+ },
1080
+ {
1081
+ "inputs": [
1082
+ {
1083
+ "internalType": "address",
1084
+ "name": "",
1085
+ "type": "address"
1086
+ }
1087
+ ],
1088
+ "name": "isPairEnabled",
1089
+ "outputs": [
1090
+ {
1091
+ "internalType": "bool",
1092
+ "name": "",
1093
+ "type": "bool"
1094
+ }
1095
+ ],
1096
+ "stateMutability": "view",
1097
+ "type": "function"
1098
+ },
1099
+ {
1100
+ "inputs": [],
1101
+ "name": "owner",
1102
+ "outputs": [
1103
+ {
1104
+ "internalType": "address",
1105
+ "name": "",
1106
+ "type": "address"
1107
+ }
1108
+ ],
1109
+ "stateMutability": "view",
1110
+ "type": "function"
1111
+ },
1112
+ {
1113
+ "inputs": [
1114
+ {
1115
+ "internalType": "address",
1116
+ "name": "tokenIn",
1117
+ "type": "address"
1118
+ },
1119
+ {
1120
+ "internalType": "address",
1121
+ "name": "tokenOut",
1122
+ "type": "address"
1123
+ },
1124
+ {
1125
+ "internalType": "uint256",
1126
+ "name": "amountOut",
1127
+ "type": "uint256"
1128
+ }
1129
+ ],
1130
+ "name": "quoteBuy",
1131
+ "outputs": [
1132
+ {
1133
+ "internalType": "uint256",
1134
+ "name": "amountIn",
1135
+ "type": "uint256"
1136
+ }
1137
+ ],
1138
+ "stateMutability": "view",
1139
+ "type": "function"
1140
+ },
1141
+ {
1142
+ "inputs": [
1143
+ {
1144
+ "internalType": "address",
1145
+ "name": "tokenIn",
1146
+ "type": "address"
1147
+ },
1148
+ {
1149
+ "internalType": "address",
1150
+ "name": "tokenOut",
1151
+ "type": "address"
1152
+ },
1153
+ {
1154
+ "internalType": "uint256",
1155
+ "name": "amountIn",
1156
+ "type": "uint256"
1157
+ }
1158
+ ],
1159
+ "name": "quoteSell",
1160
+ "outputs": [
1161
+ {
1162
+ "internalType": "uint256",
1163
+ "name": "amountOut",
1164
+ "type": "uint256"
1165
+ }
1166
+ ],
1167
+ "stateMutability": "view",
1168
+ "type": "function"
1169
+ },
1170
+ {
1171
+ "inputs": [
1172
+ {
1173
+ "internalType": "address",
1174
+ "name": "tokenIn",
1175
+ "type": "address"
1176
+ },
1177
+ {
1178
+ "internalType": "address",
1179
+ "name": "tokenOut",
1180
+ "type": "address"
1181
+ },
1182
+ {
1183
+ "internalType": "uint256",
1184
+ "name": "amountIn",
1185
+ "type": "uint256"
1186
+ }
1187
+ ],
1188
+ "name": "rebalanceSellWithDelay",
1189
+ "outputs": [],
1190
+ "stateMutability": "nonpayable",
1191
+ "type": "function"
1192
+ },
1193
+ {
1194
+ "inputs": [
1195
+ {
1196
+ "internalType": "address",
1197
+ "name": "tokenIn",
1198
+ "type": "address"
1199
+ },
1200
+ {
1201
+ "internalType": "uint256",
1202
+ "name": "amountIn",
1203
+ "type": "uint256"
1204
+ },
1205
+ {
1206
+ "internalType": "address",
1207
+ "name": "oneInchRouter",
1208
+ "type": "address"
1209
+ },
1210
+ {
1211
+ "internalType": "uint256",
1212
+ "name": "_gas",
1213
+ "type": "uint256"
1214
+ },
1215
+ {
1216
+ "internalType": "bytes",
1217
+ "name": "data",
1218
+ "type": "bytes"
1219
+ }
1220
+ ],
1221
+ "name": "rebalanceSellWithOneInch",
1222
+ "outputs": [],
1223
+ "stateMutability": "nonpayable",
1224
+ "type": "function"
1225
+ },
1226
+ {
1227
+ "inputs": [],
1228
+ "name": "rebalancer",
1229
+ "outputs": [
1230
+ {
1231
+ "internalType": "address",
1232
+ "name": "",
1233
+ "type": "address"
1234
+ }
1235
+ ],
1236
+ "stateMutability": "view",
1237
+ "type": "function"
1238
+ },
1239
+ {
1240
+ "inputs": [
1241
+ {
1242
+ "components": [
1243
+ {
1244
+ "internalType": "address",
1245
+ "name": "tokenIn",
1246
+ "type": "address"
1247
+ },
1248
+ {
1249
+ "internalType": "address",
1250
+ "name": "tokenOut",
1251
+ "type": "address"
1252
+ },
1253
+ {
1254
+ "internalType": "uint256",
1255
+ "name": "amountIn",
1256
+ "type": "uint256"
1257
+ },
1258
+ {
1259
+ "internalType": "uint256",
1260
+ "name": "amountOutMin",
1261
+ "type": "uint256"
1262
+ },
1263
+ {
1264
+ "internalType": "bool",
1265
+ "name": "wrapUnwrap",
1266
+ "type": "bool"
1267
+ },
1268
+ {
1269
+ "internalType": "address",
1270
+ "name": "to",
1271
+ "type": "address"
1272
+ },
1273
+ {
1274
+ "internalType": "uint32",
1275
+ "name": "submitDeadline",
1276
+ "type": "uint32"
1277
+ }
1278
+ ],
1279
+ "internalType": "struct ITwapRelayer.SellParams",
1280
+ "name": "sellParams",
1281
+ "type": "tuple"
1282
+ }
1283
+ ],
1284
+ "name": "sell",
1285
+ "outputs": [
1286
+ {
1287
+ "internalType": "uint256",
1288
+ "name": "orderId",
1289
+ "type": "uint256"
1290
+ }
1291
+ ],
1292
+ "stateMutability": "payable",
1293
+ "type": "function"
1294
+ },
1295
+ {
1296
+ "inputs": [
1297
+ {
1298
+ "internalType": "address",
1299
+ "name": "_owner",
1300
+ "type": "address"
1301
+ }
1302
+ ],
1303
+ "name": "setOwner",
1304
+ "outputs": [],
1305
+ "stateMutability": "nonpayable",
1306
+ "type": "function"
1307
+ },
1308
+ {
1309
+ "inputs": [
1310
+ {
1311
+ "internalType": "address",
1312
+ "name": "pair",
1313
+ "type": "address"
1314
+ },
1315
+ {
1316
+ "internalType": "bool",
1317
+ "name": "enabled",
1318
+ "type": "bool"
1319
+ }
1320
+ ],
1321
+ "name": "setPairEnabled",
1322
+ "outputs": [],
1323
+ "stateMutability": "nonpayable",
1324
+ "type": "function"
1325
+ },
1326
+ {
1327
+ "inputs": [
1328
+ {
1329
+ "internalType": "address",
1330
+ "name": "_rebalancer",
1331
+ "type": "address"
1332
+ }
1333
+ ],
1334
+ "name": "setRebalancer",
1335
+ "outputs": [],
1336
+ "stateMutability": "nonpayable",
1337
+ "type": "function"
1338
+ },
1339
+ {
1340
+ "inputs": [
1341
+ {
1342
+ "internalType": "address",
1343
+ "name": "pair",
1344
+ "type": "address"
1345
+ },
1346
+ {
1347
+ "internalType": "uint256",
1348
+ "name": "fee",
1349
+ "type": "uint256"
1350
+ }
1351
+ ],
1352
+ "name": "setSwapFee",
1353
+ "outputs": [],
1354
+ "stateMutability": "nonpayable",
1355
+ "type": "function"
1356
+ },
1357
+ {
1358
+ "inputs": [
1359
+ {
1360
+ "internalType": "address",
1361
+ "name": "",
1362
+ "type": "address"
1363
+ }
1364
+ ],
1365
+ "name": "swapFee",
1366
+ "outputs": [
1367
+ {
1368
+ "internalType": "uint256",
1369
+ "name": "",
1370
+ "type": "uint256"
1371
+ }
1372
+ ],
1373
+ "stateMutability": "view",
1374
+ "type": "function"
1375
+ },
1376
+ {
1377
+ "inputs": [
1378
+ {
1379
+ "internalType": "address",
1380
+ "name": "token",
1381
+ "type": "address"
1382
+ }
1383
+ ],
1384
+ "name": "tokenLimitMaxMultiplier",
1385
+ "outputs": [
1386
+ {
1387
+ "internalType": "uint256",
1388
+ "name": "",
1389
+ "type": "uint256"
1390
+ }
1391
+ ],
1392
+ "stateMutability": "pure",
1393
+ "type": "function"
1394
+ },
1395
+ {
1396
+ "inputs": [
1397
+ {
1398
+ "internalType": "address",
1399
+ "name": "token",
1400
+ "type": "address"
1401
+ }
1402
+ ],
1403
+ "name": "tokenLimitMin",
1404
+ "outputs": [
1405
+ {
1406
+ "internalType": "uint256",
1407
+ "name": "",
1408
+ "type": "uint256"
1409
+ }
1410
+ ],
1411
+ "stateMutability": "pure",
1412
+ "type": "function"
1413
+ },
1414
+ {
1415
+ "inputs": [
1416
+ {
1417
+ "internalType": "address",
1418
+ "name": "pair",
1419
+ "type": "address"
1420
+ }
1421
+ ],
1422
+ "name": "tolerance",
1423
+ "outputs": [
1424
+ {
1425
+ "internalType": "uint16",
1426
+ "name": "",
1427
+ "type": "uint16"
1428
+ }
1429
+ ],
1430
+ "stateMutability": "pure",
1431
+ "type": "function"
1432
+ },
1433
+ {
1434
+ "inputs": [
1435
+ {
1436
+ "internalType": "address",
1437
+ "name": "pair",
1438
+ "type": "address"
1439
+ }
1440
+ ],
1441
+ "name": "twapInterval",
1442
+ "outputs": [
1443
+ {
1444
+ "internalType": "uint32",
1445
+ "name": "",
1446
+ "type": "uint32"
1447
+ }
1448
+ ],
1449
+ "stateMutability": "pure",
1450
+ "type": "function"
1451
+ },
1452
+ {
1453
+ "inputs": [
1454
+ {
1455
+ "internalType": "uint256",
1456
+ "name": "amount",
1457
+ "type": "uint256"
1458
+ }
1459
+ ],
1460
+ "name": "unwrapWeth",
1461
+ "outputs": [],
1462
+ "stateMutability": "nonpayable",
1463
+ "type": "function"
1464
+ },
1465
+ {
1466
+ "inputs": [],
1467
+ "name": "weth",
1468
+ "outputs": [
1469
+ {
1470
+ "internalType": "address",
1471
+ "name": "",
1472
+ "type": "address"
1473
+ }
1474
+ ],
1475
+ "stateMutability": "pure",
1476
+ "type": "function"
1477
+ },
1478
+ {
1479
+ "inputs": [
1480
+ {
1481
+ "internalType": "address",
1482
+ "name": "oneInchRouter",
1483
+ "type": "address"
1484
+ },
1485
+ {
1486
+ "internalType": "bool",
1487
+ "name": "whitelisted",
1488
+ "type": "bool"
1489
+ }
1490
+ ],
1491
+ "name": "whitelistOneInchRouter",
1492
+ "outputs": [],
1493
+ "stateMutability": "nonpayable",
1494
+ "type": "function"
1495
+ },
1496
+ {
1497
+ "inputs": [
1498
+ {
1499
+ "internalType": "address",
1500
+ "name": "token",
1501
+ "type": "address"
1502
+ },
1503
+ {
1504
+ "internalType": "uint256",
1505
+ "name": "amount",
1506
+ "type": "uint256"
1507
+ },
1508
+ {
1509
+ "internalType": "address",
1510
+ "name": "to",
1511
+ "type": "address"
1512
+ }
1513
+ ],
1514
+ "name": "withdraw",
1515
+ "outputs": [],
1516
+ "stateMutability": "nonpayable",
1517
+ "type": "function"
1518
+ },
1519
+ {
1520
+ "inputs": [
1521
+ {
1522
+ "internalType": "uint256",
1523
+ "name": "amount",
1524
+ "type": "uint256"
1525
+ }
1526
+ ],
1527
+ "name": "wrapEth",
1528
+ "outputs": [],
1529
+ "stateMutability": "nonpayable",
1530
+ "type": "function"
1531
+ },
1532
+ {
1533
+ "stateMutability": "payable",
1534
+ "type": "receive"
1535
+ }
1536
+ ]