@paraswap/dex-lib 5.1.33-1 → 5.1.34

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 (299) hide show
  1. package/build/abi/curve-v1/StableSwapAcryptos4Pool.json +490 -0
  2. package/build/abi/pancakeswap-infinity/cl-pool-manager.json +80 -0
  3. package/build/dex/bebop/bebop.d.ts +2 -0
  4. package/build/dex/bebop/bebop.js +63 -5
  5. package/build/dex/bebop/bebop.js.map +1 -1
  6. package/build/dex/bebop/constants.d.ts +2 -0
  7. package/build/dex/bebop/constants.js +5 -1
  8. package/build/dex/bebop/constants.js.map +1 -1
  9. package/build/dex/bebop/types.d.ts +2 -0
  10. package/build/dex/curve-v1/forks/curve-forks/curve-forks.js +7 -0
  11. package/build/dex/curve-v1/forks/curve-forks/curve-forks.js.map +1 -1
  12. package/build/dex/curve-v1/pools/acryptos-4pool.d.ts +7 -0
  13. package/build/dex/curve-v1/pools/acryptos-4pool.js +28 -0
  14. package/build/dex/curve-v1/pools/acryptos-4pool.js.map +1 -0
  15. package/build/dex/fluid-dex/scripts/measure-calc-time.js +178 -0
  16. package/build/dex/fluid-dex/scripts/measure-calc-time.js.map +1 -0
  17. package/build/dex/uniswap-v4/api-go/compare-pricing.d.ts +1 -0
  18. package/build/dex/uniswap-v4/api-go/compare-pricing.js +187 -0
  19. package/build/dex/uniswap-v4/api-go/compare-pricing.js.map +1 -0
  20. package/build/dex/uniswap-v4/api-go/compare-states.d.ts +1 -0
  21. package/build/dex/uniswap-v4/api-go/compare-states.js +149 -0
  22. package/build/dex/uniswap-v4/api-go/compare-states.js.map +1 -0
  23. package/build/dex/uniswap-v4/api-go/fetch-pool-key.d.ts +0 -0
  24. package/build/dex/uniswap-v4/api-go/fetch-pool-key.js +140 -0
  25. package/build/dex/uniswap-v4/api-go/fetch-pool-key.js.map +1 -0
  26. package/build/executor/__test-utils__/snapshot-test-helpers.d.ts +10 -0
  27. package/build/executor/__test-utils__/snapshot-test-helpers.js +72 -0
  28. package/build/executor/__test-utils__/snapshot-test-helpers.js.map +1 -0
  29. package/build/executor/address-utils.d.ts +2 -0
  30. package/build/executor/address-utils.js +7 -0
  31. package/build/executor/address-utils.js.map +1 -0
  32. package/build/executor/approval.d.ts +9 -0
  33. package/build/executor/approval.js +29 -0
  34. package/build/executor/approval.js.map +1 -0
  35. package/build/executor/encoding-context.d.ts +4 -0
  36. package/build/executor/encoding-context.js +54 -0
  37. package/build/executor/encoding-context.js.map +1 -0
  38. package/build/executor/encoding-types.d.ts +75 -0
  39. package/build/{dex/quick-perps/types.js → executor/encoding-types.js} +1 -1
  40. package/build/executor/encoding-types.js.map +1 -0
  41. package/build/executor/factory.d.ts +4 -0
  42. package/build/executor/factory.js +23 -0
  43. package/build/executor/factory.js.map +1 -0
  44. package/build/executor/route-plan.d.ts +8 -0
  45. package/build/executor/route-plan.js +109 -0
  46. package/build/executor/route-plan.js.map +1 -0
  47. package/build/generic-swap-transaction-builder/dex-encoder/direct-methods.d.ts +6 -0
  48. package/build/generic-swap-transaction-builder/dex-encoder/direct-methods.js +39 -0
  49. package/build/generic-swap-transaction-builder/dex-encoder/direct-methods.js.map +1 -0
  50. package/build/generic-swap-transaction-builder/dex-encoder/index.d.ts +4 -0
  51. package/build/generic-swap-transaction-builder/dex-encoder/index.js +21 -0
  52. package/build/generic-swap-transaction-builder/dex-encoder/index.js.map +1 -0
  53. package/build/generic-swap-transaction-builder/dex-encoder/ports.d.ts +26 -0
  54. package/build/{dex/maker-psm/types.js → generic-swap-transaction-builder/dex-encoder/ports.js} +1 -1
  55. package/build/generic-swap-transaction-builder/dex-encoder/ports.js.map +1 -0
  56. package/build/generic-swap-transaction-builder/dex-encoder/ts-adapter.d.ts +22 -0
  57. package/build/generic-swap-transaction-builder/dex-encoder/ts-adapter.js +299 -0
  58. package/build/generic-swap-transaction-builder/dex-encoder/ts-adapter.js.map +1 -0
  59. package/build/generic-swap-transaction-builder/dex-encoder/types.d.ts +207 -0
  60. package/build/generic-swap-transaction-builder/dex-encoder/types.js +194 -0
  61. package/build/generic-swap-transaction-builder/dex-encoder/types.js.map +1 -0
  62. package/build/generic-swap-transaction-builder/orchestration.d.ts +65 -0
  63. package/build/generic-swap-transaction-builder/orchestration.js +198 -0
  64. package/build/generic-swap-transaction-builder/orchestration.js.map +1 -0
  65. package/build/generic-swap-transaction-builder/resolved/build-transaction.d.ts +13 -0
  66. package/build/generic-swap-transaction-builder/resolved/build-transaction.js +343 -0
  67. package/build/generic-swap-transaction-builder/resolved/build-transaction.js.map +1 -0
  68. package/build/generic-swap-transaction-builder/resolved/index.d.ts +4 -0
  69. package/build/generic-swap-transaction-builder/resolved/index.js +21 -0
  70. package/build/generic-swap-transaction-builder/resolved/index.js.map +1 -0
  71. package/build/generic-swap-transaction-builder/resolved/route-plan.d.ts +2 -0
  72. package/build/generic-swap-transaction-builder/resolved/route-plan.js +11 -0
  73. package/build/generic-swap-transaction-builder/resolved/route-plan.js.map +1 -0
  74. package/build/generic-swap-transaction-builder/resolved/types.d.ts +67 -0
  75. package/build/generic-swap-transaction-builder/resolved/types.js.map +1 -0
  76. package/build/generic-swap-transaction-builder/resolved/validation.d.ts +10 -0
  77. package/build/generic-swap-transaction-builder/resolved/validation.js +69 -0
  78. package/build/generic-swap-transaction-builder/resolved/validation.js.map +1 -0
  79. package/package.json +1 -1
  80. package/build/abi/BProtocol.json +0 -1155
  81. package/build/abi/Jarvis.json +0 -1172
  82. package/build/abi/MStableAsset.json +0 -1545
  83. package/build/abi/OneInchLp.json +0 -1304
  84. package/build/abi/Onebit.json +0 -736
  85. package/build/abi/Shell.json +0 -1294
  86. package/build/abi/TraderJoeV2Router.json +0 -50
  87. package/build/abi/idle-dao/idle-cdo-factory.json +0 -38
  88. package/build/abi/idle-dao/idle-cdo.json +0 -1245
  89. package/build/abi/infusion/InfusionFactory.json +0 -147
  90. package/build/abi/infusion/InfusionPair.json +0 -658
  91. package/build/abi/infusion/InfusionRouter.json +0 -442
  92. package/build/abi/maker-psm/pot.json +0 -322
  93. package/build/abi/maker-psm/psm.json +0 -243
  94. package/build/abi/maker-psm/vat.json +0 -363
  95. package/build/abi/nomiswap-v2/nomiswap-v2-pool.json +0 -773
  96. package/build/abi/quick-perps/fast-price-events.json +0 -70
  97. package/build/abi/quick-perps/fast-price-feed.json +0 -741
  98. package/build/abi/quick-perps/reader.json +0 -313
  99. package/build/abi/quick-perps/vault-price-feed.json +0 -323
  100. package/build/abi/quick-perps/vault.json +0 -1953
  101. package/build/abi/uniswap-v2/excalibur-pool.json +0 -881
  102. package/build/abi/uniswap-v2/mdex-factory.json +0 -759
  103. package/build/abi/wUSDM.json +0 -757
  104. package/build/abi/zrx.v2.json +0 -1967
  105. package/build/abi/zrx.v3.json +0 -3454
  106. package/build/abi/zrx.v4.json +0 -2193
  107. package/build/dex/OneInchLp.d.ts +0 -24
  108. package/build/dex/OneInchLp.js +0 -43
  109. package/build/dex/OneInchLp.js.map +0 -1
  110. package/build/dex/bProtocol/bProtocol.d.ts +0 -15
  111. package/build/dex/bProtocol/bProtocol.js +0 -56
  112. package/build/dex/bProtocol/bProtocol.js.map +0 -1
  113. package/build/dex/bProtocol/types.d.ts +0 -11
  114. package/build/dex/bProtocol/types.js +0 -8
  115. package/build/dex/bProtocol/types.js.map +0 -1
  116. package/build/dex/ekubo/pools/base-pool.d.ts +0 -47
  117. package/build/dex/ekubo/pools/base-pool.js +0 -184
  118. package/build/dex/ekubo/pools/base-pool.js.map +0 -1
  119. package/build/dex/ekubo/pools/iface.d.ts +0 -46
  120. package/build/dex/ekubo/pools/iface.js +0 -75
  121. package/build/dex/ekubo/pools/iface.js.map +0 -1
  122. package/build/dex/ekubo/pools/math/price.d.ts +0 -7
  123. package/build/dex/ekubo/pools/math/price.js +0 -112
  124. package/build/dex/ekubo/pools/math/price.js.map +0 -1
  125. package/build/dex/ekubo/pools/oracle-pool.d.ts +0 -10
  126. package/build/dex/ekubo/pools/oracle-pool.js +0 -19
  127. package/build/dex/ekubo/pools/oracle-pool.js.map +0 -1
  128. package/build/dex/ekubo/pools/pool-utils.d.ts +0 -44
  129. package/build/dex/ekubo/pools/pool-utils.js +0 -240
  130. package/build/dex/ekubo/pools/pool-utils.js.map +0 -1
  131. package/build/dex/idle-dao/config.d.ts +0 -5
  132. package/build/dex/idle-dao/config.js +0 -24
  133. package/build/dex/idle-dao/config.js.map +0 -1
  134. package/build/dex/idle-dao/idle-dao.d.ts +0 -42
  135. package/build/dex/idle-dao/idle-dao.js +0 -279
  136. package/build/dex/idle-dao/idle-dao.js.map +0 -1
  137. package/build/dex/idle-dao/token_list.d.ts +0 -4
  138. package/build/dex/idle-dao/token_list.js +0 -289
  139. package/build/dex/idle-dao/token_list.js.map +0 -1
  140. package/build/dex/idle-dao/tokens.d.ts +0 -9
  141. package/build/dex/idle-dao/tokens.js +0 -68
  142. package/build/dex/idle-dao/tokens.js.map +0 -1
  143. package/build/dex/idle-dao/types.d.ts +0 -35
  144. package/build/dex/idle-dao/types.js +0 -11
  145. package/build/dex/idle-dao/types.js.map +0 -1
  146. package/build/dex/idle-dao/utils.d.ts +0 -8
  147. package/build/dex/idle-dao/utils.js +0 -149
  148. package/build/dex/idle-dao/utils.js.map +0 -1
  149. package/build/dex/infusion/config.d.ts +0 -3
  150. package/build/dex/infusion/config.js +0 -20
  151. package/build/dex/infusion/config.js.map +0 -1
  152. package/build/dex/infusion/infusion-stable-pool.d.ts +0 -4
  153. package/build/dex/infusion/infusion-stable-pool.js +0 -74
  154. package/build/dex/infusion/infusion-stable-pool.js.map +0 -1
  155. package/build/dex/infusion/infusion.d.ts +0 -51
  156. package/build/dex/infusion/infusion.js +0 -500
  157. package/build/dex/infusion/infusion.js.map +0 -1
  158. package/build/dex/infusion/types.d.ts +0 -45
  159. package/build/dex/infusion/types.js.map +0 -1
  160. package/build/dex/infusion/utils/isStablePair.d.ts +0 -2
  161. package/build/dex/infusion/utils/isStablePair.js +0 -18
  162. package/build/dex/infusion/utils/isStablePair.js.map +0 -1
  163. package/build/dex/jarvis.d.ts +0 -56
  164. package/build/dex/jarvis.js +0 -163
  165. package/build/dex/jarvis.js.map +0 -1
  166. package/build/dex/mStable.d.ts +0 -44
  167. package/build/dex/mStable.js +0 -75
  168. package/build/dex/mStable.js.map +0 -1
  169. package/build/dex/maker-psm/config.d.ts +0 -11
  170. package/build/dex/maker-psm/config.js +0 -53
  171. package/build/dex/maker-psm/config.js.map +0 -1
  172. package/build/dex/maker-psm/maker-psm.d.ts +0 -103
  173. package/build/dex/maker-psm/maker-psm.js +0 -493
  174. package/build/dex/maker-psm/maker-psm.js.map +0 -1
  175. package/build/dex/maker-psm/types.d.ts +0 -39
  176. package/build/dex/maker-psm/types.js.map +0 -1
  177. package/build/dex/onebit/onebit.d.ts +0 -16
  178. package/build/dex/onebit/onebit.js +0 -61
  179. package/build/dex/onebit/onebit.js.map +0 -1
  180. package/build/dex/onebit/types.d.ts +0 -14
  181. package/build/dex/onebit/types.js +0 -8
  182. package/build/dex/onebit/types.js.map +0 -1
  183. package/build/dex/quick-perps/config.d.ts +0 -11
  184. package/build/dex/quick-perps/config.js +0 -27
  185. package/build/dex/quick-perps/config.js.map +0 -1
  186. package/build/dex/quick-perps/fast-price-feed.d.ts +0 -26
  187. package/build/dex/quick-perps/fast-price-feed.js +0 -184
  188. package/build/dex/quick-perps/fast-price-feed.js.map +0 -1
  189. package/build/dex/quick-perps/pool.d.ts +0 -21
  190. package/build/dex/quick-perps/pool.js +0 -229
  191. package/build/dex/quick-perps/pool.js.map +0 -1
  192. package/build/dex/quick-perps/quick-perps.d.ts +0 -53
  193. package/build/dex/quick-perps/quick-perps.js +0 -247
  194. package/build/dex/quick-perps/quick-perps.js.map +0 -1
  195. package/build/dex/quick-perps/types.d.ts +0 -98
  196. package/build/dex/quick-perps/types.js.map +0 -1
  197. package/build/dex/quick-perps/usdq.d.ts +0 -15
  198. package/build/dex/quick-perps/usdq.js +0 -62
  199. package/build/dex/quick-perps/usdq.js.map +0 -1
  200. package/build/dex/quick-perps/vault-price-feed.d.ts +0 -43
  201. package/build/dex/quick-perps/vault-price-feed.js +0 -203
  202. package/build/dex/quick-perps/vault-price-feed.js.map +0 -1
  203. package/build/dex/quick-perps/vault-utils.d.ts +0 -8
  204. package/build/dex/quick-perps/vault-utils.js +0 -42
  205. package/build/dex/quick-perps/vault-utils.js.map +0 -1
  206. package/build/dex/quick-perps/vault.d.ts +0 -46
  207. package/build/dex/quick-perps/vault.js +0 -182
  208. package/build/dex/quick-perps/vault.js.map +0 -1
  209. package/build/dex/se-vlr/config.d.ts +0 -3
  210. package/build/dex/se-vlr/config.js +0 -24
  211. package/build/dex/se-vlr/config.js.map +0 -1
  212. package/build/dex/se-vlr/se-vlr-pool.d.ts +0 -39
  213. package/build/dex/se-vlr/se-vlr-pool.js +0 -70
  214. package/build/dex/se-vlr/se-vlr-pool.js.map +0 -1
  215. package/build/dex/se-vlr/se-vlr.d.ts +0 -35
  216. package/build/dex/se-vlr/se-vlr.js +0 -131
  217. package/build/dex/se-vlr/se-vlr.js.map +0 -1
  218. package/build/dex/se-vlr/types.d.ts +0 -6
  219. package/build/dex/se-vlr/types.js +0 -3
  220. package/build/dex/se-vlr/types.js.map +0 -1
  221. package/build/dex/shell.d.ts +0 -25
  222. package/build/dex/shell.js +0 -41
  223. package/build/dex/shell.js.map +0 -1
  224. package/build/dex/solidly/forks-override/aerodrome.d.ts +0 -14
  225. package/build/dex/solidly/forks-override/aerodrome.js +0 -46
  226. package/build/dex/solidly/forks-override/aerodrome.js.map +0 -1
  227. package/build/dex/solidly/forks-override/chronos.d.ts +0 -23
  228. package/build/dex/solidly/forks-override/chronos.js +0 -141
  229. package/build/dex/solidly/forks-override/chronos.js.map +0 -1
  230. package/build/dex/solidly/forks-override/usdfi.d.ts +0 -8
  231. package/build/dex/solidly/forks-override/usdfi.js +0 -15
  232. package/build/dex/solidly/forks-override/usdfi.js.map +0 -1
  233. package/build/dex/solidly/forks-override/velocimeter.d.ts +0 -23
  234. package/build/dex/solidly/forks-override/velocimeter.js +0 -77
  235. package/build/dex/solidly/forks-override/velocimeter.js.map +0 -1
  236. package/build/dex/tessera/types.d.ts +0 -3
  237. package/build/dex/tessera/types.js +0 -3
  238. package/build/dex/tessera/types.js.map +0 -1
  239. package/build/dex/trader-joe-v2.d.ts +0 -40
  240. package/build/dex/trader-joe-v2.js +0 -74
  241. package/build/dex/trader-joe-v2.js.map +0 -1
  242. package/build/dex/uniswap-v2/dfyn.d.ts +0 -19
  243. package/build/dex/uniswap-v2/dfyn.js +0 -61
  244. package/build/dex/uniswap-v2/dfyn.js.map +0 -1
  245. package/build/dex/uniswap-v2/excalibur.d.ts +0 -24
  246. package/build/dex/uniswap-v2/excalibur.js +0 -47
  247. package/build/dex/uniswap-v2/excalibur.js.map +0 -1
  248. package/build/dex/uniswap-v2/mdex.d.ts +0 -24
  249. package/build/dex/uniswap-v2/mdex.js +0 -50
  250. package/build/dex/uniswap-v2/mdex.js.map +0 -1
  251. package/build/dex/uniswap-v2/nomiswap-v2.d.ts +0 -24
  252. package/build/dex/uniswap-v2/nomiswap-v2.js +0 -57
  253. package/build/dex/uniswap-v2/nomiswap-v2.js.map +0 -1
  254. package/build/dex/uniswap-v3/scripts/bench-all-dexes.js +0 -160
  255. package/build/dex/uniswap-v3/scripts/bench-all-dexes.js.map +0 -1
  256. package/build/dex/uniswap-v3/uniswap-v3-new.d.ts +0 -94
  257. package/build/dex/uniswap-v3/uniswap-v3-new.js +0 -923
  258. package/build/dex/uniswap-v3/uniswap-v3-new.js.map +0 -1
  259. package/build/dex/uniswap-v4/contract-math/Position.d.ts +0 -3
  260. package/build/dex/uniswap-v4/contract-math/Position.js +0 -10
  261. package/build/dex/uniswap-v4/contract-math/Position.js.map +0 -1
  262. package/build/dex/usual-bond/config.d.ts +0 -3
  263. package/build/dex/usual-bond/config.js +0 -13
  264. package/build/dex/usual-bond/config.js.map +0 -1
  265. package/build/dex/usual-bond/types.d.ts +0 -7
  266. package/build/dex/usual-bond/types.js +0 -3
  267. package/build/dex/usual-bond/types.js.map +0 -1
  268. package/build/dex/usual-bond/usual-bond.d.ts +0 -35
  269. package/build/dex/usual-bond/usual-bond.js +0 -176
  270. package/build/dex/usual-bond/usual-bond.js.map +0 -1
  271. package/build/dex/wusdm/config.d.ts +0 -3
  272. package/build/dex/wusdm/config.js +0 -43
  273. package/build/dex/wusdm/config.js.map +0 -1
  274. package/build/dex/wusdm/constants.d.ts +0 -2
  275. package/build/dex/wusdm/constants.js +0 -6
  276. package/build/dex/wusdm/constants.js.map +0 -1
  277. package/build/dex/wusdm/types.d.ts +0 -18
  278. package/build/dex/wusdm/types.js +0 -11
  279. package/build/dex/wusdm/types.js.map +0 -1
  280. package/build/dex/wusdm/wusdm-pool.d.ts +0 -21
  281. package/build/dex/wusdm/wusdm-pool.js +0 -74
  282. package/build/dex/wusdm/wusdm-pool.js.map +0 -1
  283. package/build/dex/wusdm/wusdm.d.ts +0 -46
  284. package/build/dex/wusdm/wusdm.js +0 -243
  285. package/build/dex/wusdm/wusdm.js.map +0 -1
  286. package/build/dex/zerox/config.d.ts +0 -2
  287. package/build/dex/zerox/config.js +0 -33
  288. package/build/dex/zerox/config.js.map +0 -1
  289. package/build/dex/zerox/index.d.ts +0 -22
  290. package/build/dex/zerox/index.js +0 -225
  291. package/build/dex/zerox/index.js.map +0 -1
  292. package/build/dex/zerox/order.d.ts +0 -88
  293. package/build/dex/zerox/order.js +0 -53
  294. package/build/dex/zerox/order.js.map +0 -1
  295. package/build/dex/zerox/types.d.ts +0 -73
  296. package/build/dex/zerox/types.js +0 -21
  297. package/build/dex/zerox/types.js.map +0 -1
  298. /package/build/dex/{uniswap-v3/scripts/bench-all-dexes.d.ts → fluid-dex/scripts/measure-calc-time.d.ts} +0 -0
  299. /package/build/{dex/infusion → generic-swap-transaction-builder/resolved}/types.js +0 -0
@@ -0,0 +1,490 @@
1
+ [
2
+ {
3
+ "name": "TokenExchange",
4
+ "type": "event",
5
+ "inputs": [
6
+ { "name": "buyer", "type": "address", "indexed": true },
7
+ { "name": "sold_id", "type": "int128", "indexed": false },
8
+ { "name": "tokens_sold", "type": "uint256", "indexed": false },
9
+ { "name": "bought_id", "type": "int128", "indexed": false },
10
+ { "name": "tokens_bought", "type": "uint256", "indexed": false }
11
+ ],
12
+ "anonymous": false
13
+ },
14
+ {
15
+ "name": "AddLiquidity",
16
+ "type": "event",
17
+ "inputs": [
18
+ { "name": "provider", "type": "address", "indexed": true },
19
+ { "name": "token_amounts", "type": "uint256[4]", "indexed": false },
20
+ { "name": "fees", "type": "uint256[4]", "indexed": false },
21
+ { "name": "invariant", "type": "uint256", "indexed": false },
22
+ { "name": "token_supply", "type": "uint256", "indexed": false }
23
+ ],
24
+ "anonymous": false
25
+ },
26
+ {
27
+ "name": "RemoveLiquidity",
28
+ "type": "event",
29
+ "inputs": [
30
+ { "name": "provider", "type": "address", "indexed": true },
31
+ { "name": "token_amounts", "type": "uint256[4]", "indexed": false },
32
+ { "name": "fees", "type": "uint256[4]", "indexed": false },
33
+ { "name": "token_supply", "type": "uint256", "indexed": false }
34
+ ],
35
+ "anonymous": false
36
+ },
37
+ {
38
+ "name": "RemoveLiquidityOne",
39
+ "type": "event",
40
+ "inputs": [
41
+ { "name": "provider", "type": "address", "indexed": true },
42
+ { "name": "token_amount", "type": "uint256", "indexed": false },
43
+ { "name": "coin_amount", "type": "uint256", "indexed": false },
44
+ { "name": "token_supply", "type": "uint256", "indexed": false }
45
+ ],
46
+ "anonymous": false
47
+ },
48
+ {
49
+ "name": "RemoveLiquidityImbalance",
50
+ "type": "event",
51
+ "inputs": [
52
+ { "name": "provider", "type": "address", "indexed": true },
53
+ { "name": "token_amounts", "type": "uint256[4]", "indexed": false },
54
+ { "name": "fees", "type": "uint256[4]", "indexed": false },
55
+ { "name": "invariant", "type": "uint256", "indexed": false },
56
+ { "name": "token_supply", "type": "uint256", "indexed": false }
57
+ ],
58
+ "anonymous": false
59
+ },
60
+ {
61
+ "name": "CommitNewAdmin",
62
+ "type": "event",
63
+ "inputs": [
64
+ { "name": "deadline", "type": "uint256", "indexed": true },
65
+ { "name": "admin", "type": "address", "indexed": true }
66
+ ],
67
+ "anonymous": false
68
+ },
69
+ {
70
+ "name": "NewAdmin",
71
+ "type": "event",
72
+ "inputs": [{ "name": "admin", "type": "address", "indexed": true }],
73
+ "anonymous": false
74
+ },
75
+ {
76
+ "name": "CommitNewFee",
77
+ "type": "event",
78
+ "inputs": [
79
+ { "name": "deadline", "type": "uint256", "indexed": true },
80
+ { "name": "fee", "type": "uint256", "indexed": false },
81
+ { "name": "admin_fee", "type": "uint256", "indexed": false }
82
+ ],
83
+ "anonymous": false
84
+ },
85
+ {
86
+ "name": "NewFee",
87
+ "type": "event",
88
+ "inputs": [
89
+ { "name": "fee", "type": "uint256", "indexed": false },
90
+ { "name": "admin_fee", "type": "uint256", "indexed": false }
91
+ ],
92
+ "anonymous": false
93
+ },
94
+ {
95
+ "name": "RampA",
96
+ "type": "event",
97
+ "inputs": [
98
+ { "name": "old_A", "type": "uint256", "indexed": false },
99
+ { "name": "new_A", "type": "uint256", "indexed": false },
100
+ { "name": "initial_time", "type": "uint256", "indexed": false },
101
+ { "name": "future_time", "type": "uint256", "indexed": false }
102
+ ],
103
+ "anonymous": false
104
+ },
105
+ {
106
+ "name": "StopRampA",
107
+ "type": "event",
108
+ "inputs": [
109
+ { "name": "A", "type": "uint256", "indexed": false },
110
+ { "name": "t", "type": "uint256", "indexed": false }
111
+ ],
112
+ "anonymous": false
113
+ },
114
+ {
115
+ "type": "constructor",
116
+ "inputs": [
117
+ { "name": "_owner", "type": "address" },
118
+ { "name": "_coins", "type": "address[4]" },
119
+ { "name": "_pool_token", "type": "address" },
120
+ { "name": "_A", "type": "uint256" },
121
+ { "name": "_fee", "type": "uint256" },
122
+ { "name": "_admin_fee", "type": "uint256" },
123
+ { "name": "_admin_fee_address", "type": "address" }
124
+ ],
125
+ "outputs": [],
126
+ "stateMutability": "nonpayable"
127
+ },
128
+ {
129
+ "gas": 5199,
130
+ "name": "A",
131
+ "type": "function",
132
+ "inputs": [],
133
+ "outputs": [{ "name": "", "type": "uint256" }],
134
+ "stateMutability": "view"
135
+ },
136
+ {
137
+ "gas": 5161,
138
+ "name": "A_precise",
139
+ "type": "function",
140
+ "inputs": [],
141
+ "outputs": [{ "name": "", "type": "uint256" }],
142
+ "stateMutability": "view"
143
+ },
144
+ {
145
+ "gas": 1346183,
146
+ "name": "get_virtual_price",
147
+ "type": "function",
148
+ "inputs": [],
149
+ "outputs": [{ "name": "", "type": "uint256" }],
150
+ "stateMutability": "view"
151
+ },
152
+ {
153
+ "gas": 5357629,
154
+ "name": "calc_token_amount",
155
+ "type": "function",
156
+ "inputs": [
157
+ { "name": "amounts", "type": "uint256[4]" },
158
+ { "name": "is_deposit", "type": "bool" }
159
+ ],
160
+ "outputs": [{ "name": "", "type": "uint256" }],
161
+ "stateMutability": "view"
162
+ },
163
+ {
164
+ "gas": 8287631,
165
+ "name": "add_liquidity",
166
+ "type": "function",
167
+ "inputs": [
168
+ { "name": "amounts", "type": "uint256[4]" },
169
+ { "name": "min_mint_amount", "type": "uint256" }
170
+ ],
171
+ "outputs": [{ "name": "", "type": "uint256" }],
172
+ "stateMutability": "nonpayable"
173
+ },
174
+ {
175
+ "gas": 3099381,
176
+ "name": "get_dy",
177
+ "type": "function",
178
+ "inputs": [
179
+ { "name": "i", "type": "int128" },
180
+ { "name": "j", "type": "int128" },
181
+ { "name": "dx", "type": "uint256" }
182
+ ],
183
+ "outputs": [{ "name": "", "type": "uint256" }],
184
+ "stateMutability": "view"
185
+ },
186
+ {
187
+ "gas": 3262485,
188
+ "name": "exchange",
189
+ "type": "function",
190
+ "inputs": [
191
+ { "name": "i", "type": "int128" },
192
+ { "name": "j", "type": "int128" },
193
+ { "name": "dx", "type": "uint256" },
194
+ { "name": "min_dy", "type": "uint256" }
195
+ ],
196
+ "outputs": [{ "name": "", "type": "uint256" }],
197
+ "stateMutability": "nonpayable"
198
+ },
199
+ {
200
+ "gas": 255557,
201
+ "name": "remove_liquidity",
202
+ "type": "function",
203
+ "inputs": [
204
+ { "name": "_amount", "type": "uint256" },
205
+ { "name": "min_amounts", "type": "uint256[4]" }
206
+ ],
207
+ "outputs": [{ "name": "", "type": "uint256[4]" }],
208
+ "stateMutability": "nonpayable"
209
+ },
210
+ {
211
+ "gas": 8286723,
212
+ "name": "remove_liquidity_imbalance",
213
+ "type": "function",
214
+ "inputs": [
215
+ { "name": "amounts", "type": "uint256[4]" },
216
+ { "name": "max_burn_amount", "type": "uint256" }
217
+ ],
218
+ "outputs": [{ "name": "", "type": "uint256" }],
219
+ "stateMutability": "nonpayable"
220
+ },
221
+ {
222
+ "gas": 1489,
223
+ "name": "calc_withdraw_one_coin",
224
+ "type": "function",
225
+ "inputs": [
226
+ { "name": "_token_amount", "type": "uint256" },
227
+ { "name": "i", "type": "int128" }
228
+ ],
229
+ "outputs": [{ "name": "", "type": "uint256" }],
230
+ "stateMutability": "view"
231
+ },
232
+ {
233
+ "gas": 4478633,
234
+ "name": "remove_liquidity_one_coin",
235
+ "type": "function",
236
+ "inputs": [
237
+ { "name": "_token_amount", "type": "uint256" },
238
+ { "name": "i", "type": "int128" },
239
+ { "name": "_min_amount", "type": "uint256" }
240
+ ],
241
+ "outputs": [{ "name": "", "type": "uint256" }],
242
+ "stateMutability": "nonpayable"
243
+ },
244
+ {
245
+ "gas": 151774,
246
+ "name": "ramp_A",
247
+ "type": "function",
248
+ "inputs": [
249
+ { "name": "_future_A", "type": "uint256" },
250
+ { "name": "_future_time", "type": "uint256" }
251
+ ],
252
+ "outputs": [],
253
+ "stateMutability": "nonpayable"
254
+ },
255
+ {
256
+ "gas": 148535,
257
+ "name": "stop_ramp_A",
258
+ "type": "function",
259
+ "inputs": [],
260
+ "outputs": [],
261
+ "stateMutability": "nonpayable"
262
+ },
263
+ {
264
+ "gas": 110371,
265
+ "name": "commit_new_fee",
266
+ "type": "function",
267
+ "inputs": [
268
+ { "name": "new_fee", "type": "uint256" },
269
+ { "name": "new_admin_fee", "type": "uint256" }
270
+ ],
271
+ "outputs": [],
272
+ "stateMutability": "nonpayable"
273
+ },
274
+ {
275
+ "gas": 97152,
276
+ "name": "apply_new_fee",
277
+ "type": "function",
278
+ "inputs": [],
279
+ "outputs": [],
280
+ "stateMutability": "nonpayable"
281
+ },
282
+ {
283
+ "gas": 21805,
284
+ "name": "revert_new_parameters",
285
+ "type": "function",
286
+ "inputs": [],
287
+ "outputs": [],
288
+ "stateMutability": "nonpayable"
289
+ },
290
+ {
291
+ "gas": 74543,
292
+ "name": "commit_transfer_ownership",
293
+ "type": "function",
294
+ "inputs": [{ "name": "_owner", "type": "address" }],
295
+ "outputs": [],
296
+ "stateMutability": "nonpayable"
297
+ },
298
+ {
299
+ "gas": 60620,
300
+ "name": "apply_transfer_ownership",
301
+ "type": "function",
302
+ "inputs": [],
303
+ "outputs": [],
304
+ "stateMutability": "nonpayable"
305
+ },
306
+ {
307
+ "gas": 21895,
308
+ "name": "revert_transfer_ownership",
309
+ "type": "function",
310
+ "inputs": [],
311
+ "outputs": [],
312
+ "stateMutability": "nonpayable"
313
+ },
314
+ {
315
+ "gas": 3391,
316
+ "name": "admin_balances",
317
+ "type": "function",
318
+ "inputs": [{ "name": "i", "type": "uint256" }],
319
+ "outputs": [{ "name": "", "type": "uint256" }],
320
+ "stateMutability": "view"
321
+ },
322
+ {
323
+ "gas": 31898,
324
+ "name": "withdraw_admin_fees",
325
+ "type": "function",
326
+ "inputs": [],
327
+ "outputs": [],
328
+ "stateMutability": "nonpayable"
329
+ },
330
+ {
331
+ "gas": 147723,
332
+ "name": "donate_admin_fees",
333
+ "type": "function",
334
+ "inputs": [],
335
+ "outputs": [],
336
+ "stateMutability": "nonpayable"
337
+ },
338
+ {
339
+ "gas": 37908,
340
+ "name": "kill_me",
341
+ "type": "function",
342
+ "inputs": [],
343
+ "outputs": [],
344
+ "stateMutability": "nonpayable"
345
+ },
346
+ {
347
+ "gas": 22045,
348
+ "name": "unkill_me",
349
+ "type": "function",
350
+ "inputs": [],
351
+ "outputs": [],
352
+ "stateMutability": "nonpayable"
353
+ },
354
+ {
355
+ "gas": 37178,
356
+ "name": "set_admin_fee_address",
357
+ "type": "function",
358
+ "inputs": [{ "name": "_admin_fee_address", "type": "address" }],
359
+ "outputs": [],
360
+ "stateMutability": "nonpayable"
361
+ },
362
+ {
363
+ "gas": 2160,
364
+ "name": "coins",
365
+ "type": "function",
366
+ "inputs": [{ "name": "arg0", "type": "uint256" }],
367
+ "outputs": [{ "name": "", "type": "address" }],
368
+ "stateMutability": "view"
369
+ },
370
+ {
371
+ "gas": 2190,
372
+ "name": "balances",
373
+ "type": "function",
374
+ "inputs": [{ "name": "arg0", "type": "uint256" }],
375
+ "outputs": [{ "name": "", "type": "uint256" }],
376
+ "stateMutability": "view"
377
+ },
378
+ {
379
+ "gas": 2111,
380
+ "name": "fee",
381
+ "type": "function",
382
+ "inputs": [],
383
+ "outputs": [{ "name": "", "type": "uint256" }],
384
+ "stateMutability": "view"
385
+ },
386
+ {
387
+ "gas": 2141,
388
+ "name": "admin_fee",
389
+ "type": "function",
390
+ "inputs": [],
391
+ "outputs": [{ "name": "", "type": "uint256" }],
392
+ "stateMutability": "view"
393
+ },
394
+ {
395
+ "gas": 2171,
396
+ "name": "admin_fee_address",
397
+ "type": "function",
398
+ "inputs": [],
399
+ "outputs": [{ "name": "", "type": "address" }],
400
+ "stateMutability": "view"
401
+ },
402
+ {
403
+ "gas": 2201,
404
+ "name": "owner",
405
+ "type": "function",
406
+ "inputs": [],
407
+ "outputs": [{ "name": "", "type": "address" }],
408
+ "stateMutability": "view"
409
+ },
410
+ {
411
+ "gas": 2231,
412
+ "name": "lp_token",
413
+ "type": "function",
414
+ "inputs": [],
415
+ "outputs": [{ "name": "", "type": "address" }],
416
+ "stateMutability": "view"
417
+ },
418
+ {
419
+ "gas": 2261,
420
+ "name": "initial_A",
421
+ "type": "function",
422
+ "inputs": [],
423
+ "outputs": [{ "name": "", "type": "uint256" }],
424
+ "stateMutability": "view"
425
+ },
426
+ {
427
+ "gas": 2291,
428
+ "name": "future_A",
429
+ "type": "function",
430
+ "inputs": [],
431
+ "outputs": [{ "name": "", "type": "uint256" }],
432
+ "stateMutability": "view"
433
+ },
434
+ {
435
+ "gas": 2321,
436
+ "name": "initial_A_time",
437
+ "type": "function",
438
+ "inputs": [],
439
+ "outputs": [{ "name": "", "type": "uint256" }],
440
+ "stateMutability": "view"
441
+ },
442
+ {
443
+ "gas": 2351,
444
+ "name": "future_A_time",
445
+ "type": "function",
446
+ "inputs": [],
447
+ "outputs": [{ "name": "", "type": "uint256" }],
448
+ "stateMutability": "view"
449
+ },
450
+ {
451
+ "gas": 2381,
452
+ "name": "admin_actions_deadline",
453
+ "type": "function",
454
+ "inputs": [],
455
+ "outputs": [{ "name": "", "type": "uint256" }],
456
+ "stateMutability": "view"
457
+ },
458
+ {
459
+ "gas": 2411,
460
+ "name": "transfer_ownership_deadline",
461
+ "type": "function",
462
+ "inputs": [],
463
+ "outputs": [{ "name": "", "type": "uint256" }],
464
+ "stateMutability": "view"
465
+ },
466
+ {
467
+ "gas": 2441,
468
+ "name": "future_fee",
469
+ "type": "function",
470
+ "inputs": [],
471
+ "outputs": [{ "name": "", "type": "uint256" }],
472
+ "stateMutability": "view"
473
+ },
474
+ {
475
+ "gas": 2471,
476
+ "name": "future_admin_fee",
477
+ "type": "function",
478
+ "inputs": [],
479
+ "outputs": [{ "name": "", "type": "uint256" }],
480
+ "stateMutability": "view"
481
+ },
482
+ {
483
+ "gas": 2501,
484
+ "name": "future_owner",
485
+ "type": "function",
486
+ "inputs": [],
487
+ "outputs": [{ "name": "", "type": "address" }],
488
+ "stateMutability": "view"
489
+ }
490
+ ]
@@ -0,0 +1,80 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "components": [
6
+ {
7
+ "internalType": "Currency",
8
+ "name": "currency0",
9
+ "type": "address"
10
+ },
11
+ {
12
+ "internalType": "Currency",
13
+ "name": "currency1",
14
+ "type": "address"
15
+ },
16
+ {
17
+ "internalType": "contract IHooks",
18
+ "name": "hooks",
19
+ "type": "address"
20
+ },
21
+ {
22
+ "internalType": "contract IPoolManager",
23
+ "name": "poolManager",
24
+ "type": "address"
25
+ },
26
+ {
27
+ "internalType": "uint24",
28
+ "name": "fee",
29
+ "type": "uint24"
30
+ },
31
+ {
32
+ "internalType": "bytes32",
33
+ "name": "parameters",
34
+ "type": "bytes32"
35
+ }
36
+ ],
37
+ "internalType": "struct PoolKey",
38
+ "name": "key",
39
+ "type": "tuple"
40
+ },
41
+ {
42
+ "components": [
43
+ {
44
+ "internalType": "bool",
45
+ "name": "zeroForOne",
46
+ "type": "bool"
47
+ },
48
+ {
49
+ "internalType": "int256",
50
+ "name": "amountSpecified",
51
+ "type": "int256"
52
+ },
53
+ {
54
+ "internalType": "uint160",
55
+ "name": "sqrtPriceLimitX96",
56
+ "type": "uint160"
57
+ }
58
+ ],
59
+ "internalType": "struct ICLPoolManager.SwapParams",
60
+ "name": "params",
61
+ "type": "tuple"
62
+ },
63
+ {
64
+ "internalType": "bytes",
65
+ "name": "hookData",
66
+ "type": "bytes"
67
+ }
68
+ ],
69
+ "name": "swap",
70
+ "outputs": [
71
+ {
72
+ "internalType": "BalanceDelta",
73
+ "name": "delta",
74
+ "type": "int256"
75
+ }
76
+ ],
77
+ "stateMutability": "nonpayable",
78
+ "type": "function"
79
+ }
80
+ ]
@@ -32,6 +32,8 @@ export declare class Bebop extends SimpleExchangeWithRestrictions implements IDe
32
32
  constructor(network: Network, dexKey: string, dexHelper: IDexHelper, settlementAddress?: string, settlementInterface?: Interface);
33
33
  private getTokenAmount;
34
34
  private getTokenMinimumAmount;
35
+ private applyHaircut;
36
+ private logFirmQuote;
35
37
  private getQuoteSlippage;
36
38
  private getTransactionTarget;
37
39
  private getApprovalTarget;