@paraswap/dex-lib 5.1.32 → 5.1.33-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (305) hide show
  1. package/build/abi/BProtocol.json +1155 -0
  2. package/build/abi/Jarvis.json +1172 -0
  3. package/build/abi/MStableAsset.json +1545 -0
  4. package/build/abi/OneInchLp.json +1304 -0
  5. package/build/abi/Onebit.json +736 -0
  6. package/build/abi/Shell.json +1294 -0
  7. package/build/abi/TraderJoeV2Router.json +50 -0
  8. package/build/abi/curve-v1/StableSwapArbitrum2Pool.json +1206 -0
  9. package/build/abi/curve-v1/StableSwapGnosis3Pool.json +868 -0
  10. package/build/abi/curve-v1/StableSwapOptimism3Pool.json +1216 -0
  11. package/build/abi/idle-dao/idle-cdo-factory.json +38 -0
  12. package/build/abi/idle-dao/idle-cdo.json +1245 -0
  13. package/build/abi/infusion/InfusionFactory.json +147 -0
  14. package/build/abi/infusion/InfusionPair.json +658 -0
  15. package/build/abi/infusion/InfusionRouter.json +442 -0
  16. package/build/abi/maker-psm/pot.json +322 -0
  17. package/build/abi/maker-psm/psm.json +243 -0
  18. package/build/abi/maker-psm/vat.json +363 -0
  19. package/build/abi/nomiswap-v2/nomiswap-v2-pool.json +773 -0
  20. package/build/abi/quick-perps/fast-price-events.json +70 -0
  21. package/build/abi/quick-perps/fast-price-feed.json +741 -0
  22. package/build/abi/quick-perps/reader.json +313 -0
  23. package/build/abi/quick-perps/vault-price-feed.json +323 -0
  24. package/build/abi/quick-perps/vault.json +1953 -0
  25. package/build/abi/uniswap-v2/excalibur-pool.json +881 -0
  26. package/build/abi/uniswap-v2/mdex-factory.json +759 -0
  27. package/build/abi/wUSDM.json +757 -0
  28. package/build/abi/zrx.v2.json +1967 -0
  29. package/build/abi/zrx.v3.json +3454 -0
  30. package/build/abi/zrx.v4.json +2193 -0
  31. package/build/dex/OneInchLp.d.ts +24 -0
  32. package/build/dex/OneInchLp.js +43 -0
  33. package/build/dex/OneInchLp.js.map +1 -0
  34. package/build/dex/bProtocol/bProtocol.d.ts +15 -0
  35. package/build/dex/bProtocol/bProtocol.js +56 -0
  36. package/build/dex/bProtocol/bProtocol.js.map +1 -0
  37. package/build/dex/bProtocol/types.d.ts +11 -0
  38. package/build/dex/bProtocol/types.js +8 -0
  39. package/build/dex/bProtocol/types.js.map +1 -0
  40. package/build/dex/curve-v1/config.js +6 -3
  41. package/build/dex/curve-v1/config.js.map +1 -1
  42. package/build/dex/curve-v1/curve-v1.js +24 -1
  43. package/build/dex/curve-v1/curve-v1.js.map +1 -1
  44. package/build/dex/curve-v1/pools/arbitrum-2pool.d.ts +7 -0
  45. package/build/dex/curve-v1/pools/arbitrum-2pool.js +26 -0
  46. package/build/dex/curve-v1/pools/arbitrum-2pool.js.map +1 -0
  47. package/build/dex/curve-v1/pools/gnosis-3pool.d.ts +7 -0
  48. package/build/dex/curve-v1/pools/gnosis-3pool.js +26 -0
  49. package/build/dex/curve-v1/pools/gnosis-3pool.js.map +1 -0
  50. package/build/dex/curve-v1/pools/optimism-3pool.d.ts +7 -0
  51. package/build/dex/curve-v1/pools/optimism-3pool.js +27 -0
  52. package/build/dex/curve-v1/pools/optimism-3pool.js.map +1 -0
  53. package/build/dex/curve-v1/pools/sidechain-pool.d.ts +12 -0
  54. package/build/dex/curve-v1/pools/sidechain-pool.js +61 -0
  55. package/build/dex/curve-v1/pools/sidechain-pool.js.map +1 -0
  56. package/build/dex/ekubo/pools/base-pool.d.ts +47 -0
  57. package/build/dex/ekubo/pools/base-pool.js +184 -0
  58. package/build/dex/ekubo/pools/base-pool.js.map +1 -0
  59. package/build/dex/ekubo/pools/iface.d.ts +46 -0
  60. package/build/dex/ekubo/pools/iface.js +75 -0
  61. package/build/dex/ekubo/pools/iface.js.map +1 -0
  62. package/build/dex/ekubo/pools/math/price.d.ts +7 -0
  63. package/build/dex/ekubo/pools/math/price.js +112 -0
  64. package/build/dex/ekubo/pools/math/price.js.map +1 -0
  65. package/build/dex/ekubo/pools/oracle-pool.d.ts +10 -0
  66. package/build/dex/ekubo/pools/oracle-pool.js +19 -0
  67. package/build/dex/ekubo/pools/oracle-pool.js.map +1 -0
  68. package/build/dex/ekubo/pools/pool-utils.d.ts +44 -0
  69. package/build/dex/ekubo/pools/pool-utils.js +240 -0
  70. package/build/dex/ekubo/pools/pool-utils.js.map +1 -0
  71. package/build/dex/idle-dao/config.d.ts +5 -0
  72. package/build/dex/idle-dao/config.js +24 -0
  73. package/build/dex/idle-dao/config.js.map +1 -0
  74. package/build/dex/idle-dao/idle-dao.d.ts +42 -0
  75. package/build/dex/idle-dao/idle-dao.js +279 -0
  76. package/build/dex/idle-dao/idle-dao.js.map +1 -0
  77. package/build/dex/idle-dao/token_list.d.ts +4 -0
  78. package/build/dex/idle-dao/token_list.js +289 -0
  79. package/build/dex/idle-dao/token_list.js.map +1 -0
  80. package/build/dex/idle-dao/tokens.d.ts +9 -0
  81. package/build/dex/idle-dao/tokens.js +68 -0
  82. package/build/dex/idle-dao/tokens.js.map +1 -0
  83. package/build/dex/idle-dao/types.d.ts +35 -0
  84. package/build/dex/idle-dao/types.js +11 -0
  85. package/build/dex/idle-dao/types.js.map +1 -0
  86. package/build/dex/idle-dao/utils.d.ts +8 -0
  87. package/build/dex/idle-dao/utils.js +149 -0
  88. package/build/dex/idle-dao/utils.js.map +1 -0
  89. package/build/dex/infusion/config.d.ts +3 -0
  90. package/build/dex/infusion/config.js +20 -0
  91. package/build/dex/infusion/config.js.map +1 -0
  92. package/build/dex/infusion/infusion-stable-pool.d.ts +4 -0
  93. package/build/dex/infusion/infusion-stable-pool.js +74 -0
  94. package/build/dex/infusion/infusion-stable-pool.js.map +1 -0
  95. package/build/dex/infusion/infusion.d.ts +51 -0
  96. package/build/dex/infusion/infusion.js +500 -0
  97. package/build/dex/infusion/infusion.js.map +1 -0
  98. package/build/dex/infusion/types.d.ts +45 -0
  99. package/build/dex/infusion/types.js.map +1 -0
  100. package/build/dex/infusion/utils/isStablePair.d.ts +2 -0
  101. package/build/dex/infusion/utils/isStablePair.js +18 -0
  102. package/build/dex/infusion/utils/isStablePair.js.map +1 -0
  103. package/build/dex/jarvis.d.ts +56 -0
  104. package/build/dex/jarvis.js +163 -0
  105. package/build/dex/jarvis.js.map +1 -0
  106. package/build/dex/mStable.d.ts +44 -0
  107. package/build/dex/mStable.js +75 -0
  108. package/build/dex/mStable.js.map +1 -0
  109. package/build/dex/maker-psm/config.d.ts +11 -0
  110. package/build/dex/maker-psm/config.js +53 -0
  111. package/build/dex/maker-psm/config.js.map +1 -0
  112. package/build/dex/maker-psm/maker-psm.d.ts +103 -0
  113. package/build/dex/maker-psm/maker-psm.js +493 -0
  114. package/build/dex/maker-psm/maker-psm.js.map +1 -0
  115. package/build/dex/maker-psm/types.d.ts +39 -0
  116. package/build/{generic-swap-transaction-builder/dex-encoder/ports.js → dex/maker-psm/types.js} +1 -1
  117. package/build/dex/maker-psm/types.js.map +1 -0
  118. package/build/dex/onebit/onebit.d.ts +16 -0
  119. package/build/dex/onebit/onebit.js +61 -0
  120. package/build/dex/onebit/onebit.js.map +1 -0
  121. package/build/dex/onebit/types.d.ts +14 -0
  122. package/build/dex/onebit/types.js +8 -0
  123. package/build/dex/onebit/types.js.map +1 -0
  124. package/build/dex/quick-perps/config.d.ts +11 -0
  125. package/build/dex/quick-perps/config.js +27 -0
  126. package/build/dex/quick-perps/config.js.map +1 -0
  127. package/build/dex/quick-perps/fast-price-feed.d.ts +26 -0
  128. package/build/dex/quick-perps/fast-price-feed.js +184 -0
  129. package/build/dex/quick-perps/fast-price-feed.js.map +1 -0
  130. package/build/dex/quick-perps/pool.d.ts +21 -0
  131. package/build/dex/quick-perps/pool.js +229 -0
  132. package/build/dex/quick-perps/pool.js.map +1 -0
  133. package/build/dex/quick-perps/quick-perps.d.ts +53 -0
  134. package/build/dex/quick-perps/quick-perps.js +247 -0
  135. package/build/dex/quick-perps/quick-perps.js.map +1 -0
  136. package/build/dex/quick-perps/types.d.ts +98 -0
  137. package/build/{executor/encoding-types.js → dex/quick-perps/types.js} +1 -1
  138. package/build/dex/quick-perps/types.js.map +1 -0
  139. package/build/dex/quick-perps/usdq.d.ts +15 -0
  140. package/build/dex/quick-perps/usdq.js +62 -0
  141. package/build/dex/quick-perps/usdq.js.map +1 -0
  142. package/build/dex/quick-perps/vault-price-feed.d.ts +43 -0
  143. package/build/dex/quick-perps/vault-price-feed.js +203 -0
  144. package/build/dex/quick-perps/vault-price-feed.js.map +1 -0
  145. package/build/dex/quick-perps/vault-utils.d.ts +8 -0
  146. package/build/dex/quick-perps/vault-utils.js +42 -0
  147. package/build/dex/quick-perps/vault-utils.js.map +1 -0
  148. package/build/dex/quick-perps/vault.d.ts +46 -0
  149. package/build/dex/quick-perps/vault.js +182 -0
  150. package/build/dex/quick-perps/vault.js.map +1 -0
  151. package/build/dex/se-vlr/config.d.ts +3 -0
  152. package/build/dex/se-vlr/config.js +24 -0
  153. package/build/dex/se-vlr/config.js.map +1 -0
  154. package/build/dex/se-vlr/se-vlr-pool.d.ts +39 -0
  155. package/build/dex/se-vlr/se-vlr-pool.js +70 -0
  156. package/build/dex/se-vlr/se-vlr-pool.js.map +1 -0
  157. package/build/dex/se-vlr/se-vlr.d.ts +35 -0
  158. package/build/dex/se-vlr/se-vlr.js +131 -0
  159. package/build/dex/se-vlr/se-vlr.js.map +1 -0
  160. package/build/dex/se-vlr/types.d.ts +6 -0
  161. package/build/dex/se-vlr/types.js +3 -0
  162. package/build/dex/se-vlr/types.js.map +1 -0
  163. package/build/dex/shell.d.ts +25 -0
  164. package/build/dex/shell.js +41 -0
  165. package/build/dex/shell.js.map +1 -0
  166. package/build/dex/solidly/forks-override/aerodrome.d.ts +14 -0
  167. package/build/dex/solidly/forks-override/aerodrome.js +46 -0
  168. package/build/dex/solidly/forks-override/aerodrome.js.map +1 -0
  169. package/build/dex/solidly/forks-override/chronos.d.ts +23 -0
  170. package/build/dex/solidly/forks-override/chronos.js +141 -0
  171. package/build/dex/solidly/forks-override/chronos.js.map +1 -0
  172. package/build/dex/solidly/forks-override/usdfi.d.ts +8 -0
  173. package/build/dex/solidly/forks-override/usdfi.js +15 -0
  174. package/build/dex/solidly/forks-override/usdfi.js.map +1 -0
  175. package/build/dex/solidly/forks-override/velocimeter.d.ts +23 -0
  176. package/build/dex/solidly/forks-override/velocimeter.js +77 -0
  177. package/build/dex/solidly/forks-override/velocimeter.js.map +1 -0
  178. package/build/dex/tessera/types.d.ts +3 -0
  179. package/build/dex/tessera/types.js +3 -0
  180. package/build/dex/tessera/types.js.map +1 -0
  181. package/build/dex/trader-joe-v2.d.ts +40 -0
  182. package/build/dex/trader-joe-v2.js +74 -0
  183. package/build/dex/trader-joe-v2.js.map +1 -0
  184. package/build/dex/uniswap-v2/dfyn.d.ts +19 -0
  185. package/build/dex/uniswap-v2/dfyn.js +61 -0
  186. package/build/dex/uniswap-v2/dfyn.js.map +1 -0
  187. package/build/dex/uniswap-v2/excalibur.d.ts +24 -0
  188. package/build/dex/uniswap-v2/excalibur.js +47 -0
  189. package/build/dex/uniswap-v2/excalibur.js.map +1 -0
  190. package/build/dex/uniswap-v2/mdex.d.ts +24 -0
  191. package/build/dex/uniswap-v2/mdex.js +50 -0
  192. package/build/dex/uniswap-v2/mdex.js.map +1 -0
  193. package/build/dex/uniswap-v2/nomiswap-v2.d.ts +24 -0
  194. package/build/dex/uniswap-v2/nomiswap-v2.js +57 -0
  195. package/build/dex/uniswap-v2/nomiswap-v2.js.map +1 -0
  196. package/build/dex/uniswap-v3/scripts/bench-all-dexes.js +160 -0
  197. package/build/dex/uniswap-v3/scripts/bench-all-dexes.js.map +1 -0
  198. package/build/dex/uniswap-v3/uniswap-v3-new.d.ts +94 -0
  199. package/build/dex/uniswap-v3/uniswap-v3-new.js +923 -0
  200. package/build/dex/uniswap-v3/uniswap-v3-new.js.map +1 -0
  201. package/build/dex/uniswap-v4/contract-math/Position.d.ts +3 -0
  202. package/build/dex/uniswap-v4/contract-math/Position.js +10 -0
  203. package/build/dex/uniswap-v4/contract-math/Position.js.map +1 -0
  204. package/build/dex/usual-bond/config.d.ts +3 -0
  205. package/build/dex/usual-bond/config.js +13 -0
  206. package/build/dex/usual-bond/config.js.map +1 -0
  207. package/build/dex/usual-bond/types.d.ts +7 -0
  208. package/build/dex/usual-bond/types.js +3 -0
  209. package/build/dex/usual-bond/types.js.map +1 -0
  210. package/build/dex/usual-bond/usual-bond.d.ts +35 -0
  211. package/build/dex/usual-bond/usual-bond.js +176 -0
  212. package/build/dex/usual-bond/usual-bond.js.map +1 -0
  213. package/build/dex/wusdm/config.d.ts +3 -0
  214. package/build/dex/wusdm/config.js +43 -0
  215. package/build/dex/wusdm/config.js.map +1 -0
  216. package/build/dex/wusdm/constants.d.ts +2 -0
  217. package/build/dex/wusdm/constants.js +6 -0
  218. package/build/dex/wusdm/constants.js.map +1 -0
  219. package/build/dex/wusdm/types.d.ts +18 -0
  220. package/build/dex/wusdm/types.js +11 -0
  221. package/build/dex/wusdm/types.js.map +1 -0
  222. package/build/dex/wusdm/wusdm-pool.d.ts +21 -0
  223. package/build/dex/wusdm/wusdm-pool.js +74 -0
  224. package/build/dex/wusdm/wusdm-pool.js.map +1 -0
  225. package/build/dex/wusdm/wusdm.d.ts +46 -0
  226. package/build/dex/wusdm/wusdm.js +243 -0
  227. package/build/dex/wusdm/wusdm.js.map +1 -0
  228. package/build/dex/zerox/config.d.ts +2 -0
  229. package/build/dex/zerox/config.js +33 -0
  230. package/build/dex/zerox/config.js.map +1 -0
  231. package/build/dex/zerox/index.d.ts +22 -0
  232. package/build/dex/zerox/index.js +225 -0
  233. package/build/dex/zerox/index.js.map +1 -0
  234. package/build/dex/zerox/order.d.ts +88 -0
  235. package/build/dex/zerox/order.js +53 -0
  236. package/build/dex/zerox/order.js.map +1 -0
  237. package/build/dex/zerox/types.d.ts +73 -0
  238. package/build/dex/zerox/types.js +21 -0
  239. package/build/dex/zerox/types.js.map +1 -0
  240. package/package.json +1 -1
  241. package/build/abi/pancakeswap-infinity/cl-pool-manager.json +0 -80
  242. package/build/dex/fluid-dex/scripts/measure-calc-time.js +0 -178
  243. package/build/dex/fluid-dex/scripts/measure-calc-time.js.map +0 -1
  244. package/build/dex/uniswap-v4/api-go/compare-pricing.d.ts +0 -1
  245. package/build/dex/uniswap-v4/api-go/compare-pricing.js +0 -187
  246. package/build/dex/uniswap-v4/api-go/compare-pricing.js.map +0 -1
  247. package/build/dex/uniswap-v4/api-go/compare-states.d.ts +0 -1
  248. package/build/dex/uniswap-v4/api-go/compare-states.js +0 -149
  249. package/build/dex/uniswap-v4/api-go/compare-states.js.map +0 -1
  250. package/build/dex/uniswap-v4/api-go/fetch-pool-key.d.ts +0 -0
  251. package/build/dex/uniswap-v4/api-go/fetch-pool-key.js +0 -140
  252. package/build/dex/uniswap-v4/api-go/fetch-pool-key.js.map +0 -1
  253. package/build/executor/__test-utils__/snapshot-test-helpers.d.ts +0 -10
  254. package/build/executor/__test-utils__/snapshot-test-helpers.js +0 -72
  255. package/build/executor/__test-utils__/snapshot-test-helpers.js.map +0 -1
  256. package/build/executor/address-utils.d.ts +0 -2
  257. package/build/executor/address-utils.js +0 -7
  258. package/build/executor/address-utils.js.map +0 -1
  259. package/build/executor/approval.d.ts +0 -9
  260. package/build/executor/approval.js +0 -29
  261. package/build/executor/approval.js.map +0 -1
  262. package/build/executor/encoding-context.d.ts +0 -4
  263. package/build/executor/encoding-context.js +0 -54
  264. package/build/executor/encoding-context.js.map +0 -1
  265. package/build/executor/encoding-types.d.ts +0 -75
  266. package/build/executor/encoding-types.js.map +0 -1
  267. package/build/executor/factory.d.ts +0 -4
  268. package/build/executor/factory.js +0 -23
  269. package/build/executor/factory.js.map +0 -1
  270. package/build/executor/route-plan.d.ts +0 -8
  271. package/build/executor/route-plan.js +0 -109
  272. package/build/executor/route-plan.js.map +0 -1
  273. package/build/generic-swap-transaction-builder/dex-encoder/direct-methods.d.ts +0 -6
  274. package/build/generic-swap-transaction-builder/dex-encoder/direct-methods.js +0 -39
  275. package/build/generic-swap-transaction-builder/dex-encoder/direct-methods.js.map +0 -1
  276. package/build/generic-swap-transaction-builder/dex-encoder/index.d.ts +0 -4
  277. package/build/generic-swap-transaction-builder/dex-encoder/index.js +0 -21
  278. package/build/generic-swap-transaction-builder/dex-encoder/index.js.map +0 -1
  279. package/build/generic-swap-transaction-builder/dex-encoder/ports.d.ts +0 -26
  280. package/build/generic-swap-transaction-builder/dex-encoder/ports.js.map +0 -1
  281. package/build/generic-swap-transaction-builder/dex-encoder/ts-adapter.d.ts +0 -22
  282. package/build/generic-swap-transaction-builder/dex-encoder/ts-adapter.js +0 -299
  283. package/build/generic-swap-transaction-builder/dex-encoder/ts-adapter.js.map +0 -1
  284. package/build/generic-swap-transaction-builder/dex-encoder/types.d.ts +0 -207
  285. package/build/generic-swap-transaction-builder/dex-encoder/types.js +0 -194
  286. package/build/generic-swap-transaction-builder/dex-encoder/types.js.map +0 -1
  287. package/build/generic-swap-transaction-builder/orchestration.d.ts +0 -65
  288. package/build/generic-swap-transaction-builder/orchestration.js +0 -198
  289. package/build/generic-swap-transaction-builder/orchestration.js.map +0 -1
  290. package/build/generic-swap-transaction-builder/resolved/build-transaction.d.ts +0 -13
  291. package/build/generic-swap-transaction-builder/resolved/build-transaction.js +0 -343
  292. package/build/generic-swap-transaction-builder/resolved/build-transaction.js.map +0 -1
  293. package/build/generic-swap-transaction-builder/resolved/index.d.ts +0 -4
  294. package/build/generic-swap-transaction-builder/resolved/index.js +0 -21
  295. package/build/generic-swap-transaction-builder/resolved/index.js.map +0 -1
  296. package/build/generic-swap-transaction-builder/resolved/route-plan.d.ts +0 -2
  297. package/build/generic-swap-transaction-builder/resolved/route-plan.js +0 -11
  298. package/build/generic-swap-transaction-builder/resolved/route-plan.js.map +0 -1
  299. package/build/generic-swap-transaction-builder/resolved/types.d.ts +0 -67
  300. package/build/generic-swap-transaction-builder/resolved/types.js.map +0 -1
  301. package/build/generic-swap-transaction-builder/resolved/validation.d.ts +0 -10
  302. package/build/generic-swap-transaction-builder/resolved/validation.js +0 -69
  303. package/build/generic-swap-transaction-builder/resolved/validation.js.map +0 -1
  304. /package/build/{generic-swap-transaction-builder/resolved → dex/infusion}/types.js +0 -0
  305. /package/build/dex/{fluid-dex/scripts/measure-calc-time.d.ts → uniswap-v3/scripts/bench-all-dexes.d.ts} +0 -0
@@ -0,0 +1,868 @@
1
+ [
2
+ {
3
+ "name": "TokenExchange",
4
+ "type": "event",
5
+ "inputs": [
6
+ {
7
+ "name": "buyer",
8
+ "type": "address",
9
+ "indexed": true
10
+ },
11
+ {
12
+ "name": "sold_id",
13
+ "type": "int128",
14
+ "indexed": false
15
+ },
16
+ {
17
+ "name": "tokens_sold",
18
+ "type": "uint256",
19
+ "indexed": false
20
+ },
21
+ {
22
+ "name": "bought_id",
23
+ "type": "int128",
24
+ "indexed": false
25
+ },
26
+ {
27
+ "name": "tokens_bought",
28
+ "type": "uint256",
29
+ "indexed": false
30
+ }
31
+ ],
32
+ "anonymous": false
33
+ },
34
+ {
35
+ "name": "AddLiquidity",
36
+ "type": "event",
37
+ "inputs": [
38
+ {
39
+ "name": "provider",
40
+ "type": "address",
41
+ "indexed": true
42
+ },
43
+ {
44
+ "name": "token_amounts",
45
+ "type": "uint256[3]",
46
+ "indexed": false
47
+ },
48
+ {
49
+ "name": "fees",
50
+ "type": "uint256[3]",
51
+ "indexed": false
52
+ },
53
+ {
54
+ "name": "invariant",
55
+ "type": "uint256",
56
+ "indexed": false
57
+ },
58
+ {
59
+ "name": "token_supply",
60
+ "type": "uint256",
61
+ "indexed": false
62
+ }
63
+ ],
64
+ "anonymous": false
65
+ },
66
+ {
67
+ "name": "RemoveLiquidity",
68
+ "type": "event",
69
+ "inputs": [
70
+ {
71
+ "name": "provider",
72
+ "type": "address",
73
+ "indexed": true
74
+ },
75
+ {
76
+ "name": "token_amounts",
77
+ "type": "uint256[3]",
78
+ "indexed": false
79
+ },
80
+ {
81
+ "name": "fees",
82
+ "type": "uint256[3]",
83
+ "indexed": false
84
+ },
85
+ {
86
+ "name": "token_supply",
87
+ "type": "uint256",
88
+ "indexed": false
89
+ }
90
+ ],
91
+ "anonymous": false
92
+ },
93
+ {
94
+ "name": "RemoveLiquidityOne",
95
+ "type": "event",
96
+ "inputs": [
97
+ {
98
+ "name": "provider",
99
+ "type": "address",
100
+ "indexed": true
101
+ },
102
+ {
103
+ "name": "token_amount",
104
+ "type": "uint256",
105
+ "indexed": false
106
+ },
107
+ {
108
+ "name": "coin_amount",
109
+ "type": "uint256",
110
+ "indexed": false
111
+ },
112
+ {
113
+ "name": "token_supply",
114
+ "type": "uint256",
115
+ "indexed": false
116
+ }
117
+ ],
118
+ "anonymous": false
119
+ },
120
+ {
121
+ "name": "RemoveLiquidityImbalance",
122
+ "type": "event",
123
+ "inputs": [
124
+ {
125
+ "name": "provider",
126
+ "type": "address",
127
+ "indexed": true
128
+ },
129
+ {
130
+ "name": "token_amounts",
131
+ "type": "uint256[3]",
132
+ "indexed": false
133
+ },
134
+ {
135
+ "name": "fees",
136
+ "type": "uint256[3]",
137
+ "indexed": false
138
+ },
139
+ {
140
+ "name": "invariant",
141
+ "type": "uint256",
142
+ "indexed": false
143
+ },
144
+ {
145
+ "name": "token_supply",
146
+ "type": "uint256",
147
+ "indexed": false
148
+ }
149
+ ],
150
+ "anonymous": false
151
+ },
152
+ {
153
+ "name": "CommitNewAdmin",
154
+ "type": "event",
155
+ "inputs": [
156
+ {
157
+ "name": "deadline",
158
+ "type": "uint256",
159
+ "indexed": true
160
+ },
161
+ {
162
+ "name": "admin",
163
+ "type": "address",
164
+ "indexed": true
165
+ }
166
+ ],
167
+ "anonymous": false
168
+ },
169
+ {
170
+ "name": "NewAdmin",
171
+ "type": "event",
172
+ "inputs": [
173
+ {
174
+ "name": "admin",
175
+ "type": "address",
176
+ "indexed": true
177
+ }
178
+ ],
179
+ "anonymous": false
180
+ },
181
+ {
182
+ "name": "CommitNewFee",
183
+ "type": "event",
184
+ "inputs": [
185
+ {
186
+ "name": "deadline",
187
+ "type": "uint256",
188
+ "indexed": true
189
+ },
190
+ {
191
+ "name": "fee",
192
+ "type": "uint256",
193
+ "indexed": false
194
+ },
195
+ {
196
+ "name": "admin_fee",
197
+ "type": "uint256",
198
+ "indexed": false
199
+ }
200
+ ],
201
+ "anonymous": false
202
+ },
203
+ {
204
+ "name": "NewFee",
205
+ "type": "event",
206
+ "inputs": [
207
+ {
208
+ "name": "fee",
209
+ "type": "uint256",
210
+ "indexed": false
211
+ },
212
+ {
213
+ "name": "admin_fee",
214
+ "type": "uint256",
215
+ "indexed": false
216
+ }
217
+ ],
218
+ "anonymous": false
219
+ },
220
+ {
221
+ "name": "RampA",
222
+ "type": "event",
223
+ "inputs": [
224
+ {
225
+ "name": "old_A",
226
+ "type": "uint256",
227
+ "indexed": false
228
+ },
229
+ {
230
+ "name": "new_A",
231
+ "type": "uint256",
232
+ "indexed": false
233
+ },
234
+ {
235
+ "name": "initial_time",
236
+ "type": "uint256",
237
+ "indexed": false
238
+ },
239
+ {
240
+ "name": "future_time",
241
+ "type": "uint256",
242
+ "indexed": false
243
+ }
244
+ ],
245
+ "anonymous": false
246
+ },
247
+ {
248
+ "name": "StopRampA",
249
+ "type": "event",
250
+ "inputs": [
251
+ {
252
+ "name": "A",
253
+ "type": "uint256",
254
+ "indexed": false
255
+ },
256
+ {
257
+ "name": "t",
258
+ "type": "uint256",
259
+ "indexed": false
260
+ }
261
+ ],
262
+ "anonymous": false
263
+ },
264
+ {
265
+ "type": "constructor",
266
+ "inputs": [
267
+ {
268
+ "name": "_owner",
269
+ "type": "address"
270
+ },
271
+ {
272
+ "name": "_coins",
273
+ "type": "address[3]"
274
+ },
275
+ {
276
+ "name": "_pool_token",
277
+ "type": "address"
278
+ },
279
+ {
280
+ "name": "_A",
281
+ "type": "uint256"
282
+ },
283
+ {
284
+ "name": "_fee",
285
+ "type": "uint256"
286
+ },
287
+ {
288
+ "name": "_admin_fee",
289
+ "type": "uint256"
290
+ }
291
+ ],
292
+ "outputs": [],
293
+ "stateMutability": "nonpayable"
294
+ },
295
+ {
296
+ "gas": 5174,
297
+ "name": "A",
298
+ "type": "function",
299
+ "inputs": [],
300
+ "outputs": [
301
+ {
302
+ "name": "",
303
+ "type": "uint256"
304
+ }
305
+ ],
306
+ "stateMutability": "view"
307
+ },
308
+ {
309
+ "gas": 5136,
310
+ "name": "A_precise",
311
+ "type": "function",
312
+ "inputs": [],
313
+ "outputs": [
314
+ {
315
+ "name": "",
316
+ "type": "uint256"
317
+ }
318
+ ],
319
+ "stateMutability": "view"
320
+ },
321
+ {
322
+ "gas": 1187598,
323
+ "name": "get_virtual_price",
324
+ "type": "function",
325
+ "inputs": [],
326
+ "outputs": [
327
+ {
328
+ "name": "",
329
+ "type": "uint256"
330
+ }
331
+ ],
332
+ "stateMutability": "view"
333
+ },
334
+ {
335
+ "gas": 4725451,
336
+ "name": "calc_token_amount",
337
+ "type": "function",
338
+ "inputs": [
339
+ {
340
+ "name": "_amounts",
341
+ "type": "uint256[3]"
342
+ },
343
+ {
344
+ "name": "_is_deposit",
345
+ "type": "bool"
346
+ }
347
+ ],
348
+ "outputs": [
349
+ {
350
+ "name": "",
351
+ "type": "uint256"
352
+ }
353
+ ],
354
+ "stateMutability": "view"
355
+ },
356
+ {
357
+ "gas": 7295966,
358
+ "name": "add_liquidity",
359
+ "type": "function",
360
+ "inputs": [
361
+ {
362
+ "name": "_amounts",
363
+ "type": "uint256[3]"
364
+ },
365
+ {
366
+ "name": "_min_mint_amount",
367
+ "type": "uint256"
368
+ }
369
+ ],
370
+ "outputs": [
371
+ {
372
+ "name": "",
373
+ "type": "uint256"
374
+ }
375
+ ],
376
+ "stateMutability": "nonpayable"
377
+ },
378
+ {
379
+ "gas": 2802664,
380
+ "name": "get_dy",
381
+ "type": "function",
382
+ "inputs": [
383
+ {
384
+ "name": "i",
385
+ "type": "int128"
386
+ },
387
+ {
388
+ "name": "j",
389
+ "type": "int128"
390
+ },
391
+ {
392
+ "name": "_dx",
393
+ "type": "uint256"
394
+ }
395
+ ],
396
+ "outputs": [
397
+ {
398
+ "name": "",
399
+ "type": "uint256"
400
+ }
401
+ ],
402
+ "stateMutability": "view"
403
+ },
404
+ {
405
+ "gas": 2965660,
406
+ "name": "exchange",
407
+ "type": "function",
408
+ "inputs": [
409
+ {
410
+ "name": "i",
411
+ "type": "int128"
412
+ },
413
+ {
414
+ "name": "j",
415
+ "type": "int128"
416
+ },
417
+ {
418
+ "name": "_dx",
419
+ "type": "uint256"
420
+ },
421
+ {
422
+ "name": "_min_dy",
423
+ "type": "uint256"
424
+ }
425
+ ],
426
+ "outputs": [
427
+ {
428
+ "name": "",
429
+ "type": "uint256"
430
+ }
431
+ ],
432
+ "stateMutability": "nonpayable"
433
+ },
434
+ {
435
+ "gas": 209248,
436
+ "name": "remove_liquidity",
437
+ "type": "function",
438
+ "inputs": [
439
+ {
440
+ "name": "_amount",
441
+ "type": "uint256"
442
+ },
443
+ {
444
+ "name": "_min_amounts",
445
+ "type": "uint256[3]"
446
+ }
447
+ ],
448
+ "outputs": [
449
+ {
450
+ "name": "",
451
+ "type": "uint256[3]"
452
+ }
453
+ ],
454
+ "stateMutability": "nonpayable"
455
+ },
456
+ {
457
+ "gas": 7295372,
458
+ "name": "remove_liquidity_imbalance",
459
+ "type": "function",
460
+ "inputs": [
461
+ {
462
+ "name": "_amounts",
463
+ "type": "uint256[3]"
464
+ },
465
+ {
466
+ "name": "_max_burn_amount",
467
+ "type": "uint256"
468
+ }
469
+ ],
470
+ "outputs": [
471
+ {
472
+ "name": "",
473
+ "type": "uint256"
474
+ }
475
+ ],
476
+ "stateMutability": "nonpayable"
477
+ },
478
+ {
479
+ "gas": 1276,
480
+ "name": "calc_withdraw_one_coin",
481
+ "type": "function",
482
+ "inputs": [
483
+ {
484
+ "name": "_token_amount",
485
+ "type": "uint256"
486
+ },
487
+ {
488
+ "name": "i",
489
+ "type": "int128"
490
+ }
491
+ ],
492
+ "outputs": [
493
+ {
494
+ "name": "",
495
+ "type": "uint256"
496
+ }
497
+ ],
498
+ "stateMutability": "view"
499
+ },
500
+ {
501
+ "gas": 4235225,
502
+ "name": "remove_liquidity_one_coin",
503
+ "type": "function",
504
+ "inputs": [
505
+ {
506
+ "name": "_token_amount",
507
+ "type": "uint256"
508
+ },
509
+ {
510
+ "name": "i",
511
+ "type": "int128"
512
+ },
513
+ {
514
+ "name": "_min_amount",
515
+ "type": "uint256"
516
+ }
517
+ ],
518
+ "outputs": [
519
+ {
520
+ "name": "",
521
+ "type": "uint256"
522
+ }
523
+ ],
524
+ "stateMutability": "nonpayable"
525
+ },
526
+ {
527
+ "gas": 151539,
528
+ "name": "ramp_A",
529
+ "type": "function",
530
+ "inputs": [
531
+ {
532
+ "name": "_future_A",
533
+ "type": "uint256"
534
+ },
535
+ {
536
+ "name": "_future_time",
537
+ "type": "uint256"
538
+ }
539
+ ],
540
+ "outputs": [],
541
+ "stateMutability": "nonpayable"
542
+ },
543
+ {
544
+ "gas": 148300,
545
+ "name": "stop_ramp_A",
546
+ "type": "function",
547
+ "inputs": [],
548
+ "outputs": [],
549
+ "stateMutability": "nonpayable"
550
+ },
551
+ {
552
+ "gas": 110158,
553
+ "name": "commit_new_fee",
554
+ "type": "function",
555
+ "inputs": [
556
+ {
557
+ "name": "_new_fee",
558
+ "type": "uint256"
559
+ },
560
+ {
561
+ "name": "_new_admin_fee",
562
+ "type": "uint256"
563
+ }
564
+ ],
565
+ "outputs": [],
566
+ "stateMutability": "nonpayable"
567
+ },
568
+ {
569
+ "gas": 96939,
570
+ "name": "apply_new_fee",
571
+ "type": "function",
572
+ "inputs": [],
573
+ "outputs": [],
574
+ "stateMutability": "nonpayable"
575
+ },
576
+ {
577
+ "gas": 21592,
578
+ "name": "revert_new_parameters",
579
+ "type": "function",
580
+ "inputs": [],
581
+ "outputs": [],
582
+ "stateMutability": "nonpayable"
583
+ },
584
+ {
585
+ "gas": 74330,
586
+ "name": "commit_transfer_ownership",
587
+ "type": "function",
588
+ "inputs": [
589
+ {
590
+ "name": "_owner",
591
+ "type": "address"
592
+ }
593
+ ],
594
+ "outputs": [],
595
+ "stateMutability": "nonpayable"
596
+ },
597
+ {
598
+ "gas": 60407,
599
+ "name": "apply_transfer_ownership",
600
+ "type": "function",
601
+ "inputs": [],
602
+ "outputs": [],
603
+ "stateMutability": "nonpayable"
604
+ },
605
+ {
606
+ "gas": 21682,
607
+ "name": "revert_transfer_ownership",
608
+ "type": "function",
609
+ "inputs": [],
610
+ "outputs": [],
611
+ "stateMutability": "nonpayable"
612
+ },
613
+ {
614
+ "gas": 3178,
615
+ "name": "admin_balances",
616
+ "type": "function",
617
+ "inputs": [
618
+ {
619
+ "name": "i",
620
+ "type": "uint256"
621
+ }
622
+ ],
623
+ "outputs": [
624
+ {
625
+ "name": "",
626
+ "type": "uint256"
627
+ }
628
+ ],
629
+ "stateMutability": "view"
630
+ },
631
+ {
632
+ "gas": 21184,
633
+ "name": "withdraw_admin_fees",
634
+ "type": "function",
635
+ "inputs": [],
636
+ "outputs": [],
637
+ "stateMutability": "nonpayable"
638
+ },
639
+ {
640
+ "gas": 111086,
641
+ "name": "donate_admin_fees",
642
+ "type": "function",
643
+ "inputs": [],
644
+ "outputs": [],
645
+ "stateMutability": "nonpayable"
646
+ },
647
+ {
648
+ "gas": 37695,
649
+ "name": "kill_me",
650
+ "type": "function",
651
+ "inputs": [],
652
+ "outputs": [],
653
+ "stateMutability": "nonpayable"
654
+ },
655
+ {
656
+ "gas": 21832,
657
+ "name": "unkill_me",
658
+ "type": "function",
659
+ "inputs": [],
660
+ "outputs": [],
661
+ "stateMutability": "nonpayable"
662
+ },
663
+ {
664
+ "gas": 1917,
665
+ "name": "coins",
666
+ "type": "function",
667
+ "inputs": [
668
+ {
669
+ "name": "arg0",
670
+ "type": "uint256"
671
+ }
672
+ ],
673
+ "outputs": [
674
+ {
675
+ "name": "",
676
+ "type": "address"
677
+ }
678
+ ],
679
+ "stateMutability": "view"
680
+ },
681
+ {
682
+ "gas": 1947,
683
+ "name": "balances",
684
+ "type": "function",
685
+ "inputs": [
686
+ {
687
+ "name": "arg0",
688
+ "type": "uint256"
689
+ }
690
+ ],
691
+ "outputs": [
692
+ {
693
+ "name": "",
694
+ "type": "uint256"
695
+ }
696
+ ],
697
+ "stateMutability": "view"
698
+ },
699
+ {
700
+ "gas": 1868,
701
+ "name": "fee",
702
+ "type": "function",
703
+ "inputs": [],
704
+ "outputs": [
705
+ {
706
+ "name": "",
707
+ "type": "uint256"
708
+ }
709
+ ],
710
+ "stateMutability": "view"
711
+ },
712
+ {
713
+ "gas": 1898,
714
+ "name": "admin_fee",
715
+ "type": "function",
716
+ "inputs": [],
717
+ "outputs": [
718
+ {
719
+ "name": "",
720
+ "type": "uint256"
721
+ }
722
+ ],
723
+ "stateMutability": "view"
724
+ },
725
+ {
726
+ "gas": 1928,
727
+ "name": "owner",
728
+ "type": "function",
729
+ "inputs": [],
730
+ "outputs": [
731
+ {
732
+ "name": "",
733
+ "type": "address"
734
+ }
735
+ ],
736
+ "stateMutability": "view"
737
+ },
738
+ {
739
+ "gas": 1958,
740
+ "name": "lp_token",
741
+ "type": "function",
742
+ "inputs": [],
743
+ "outputs": [
744
+ {
745
+ "name": "",
746
+ "type": "address"
747
+ }
748
+ ],
749
+ "stateMutability": "view"
750
+ },
751
+ {
752
+ "gas": 1988,
753
+ "name": "initial_A",
754
+ "type": "function",
755
+ "inputs": [],
756
+ "outputs": [
757
+ {
758
+ "name": "",
759
+ "type": "uint256"
760
+ }
761
+ ],
762
+ "stateMutability": "view"
763
+ },
764
+ {
765
+ "gas": 2018,
766
+ "name": "future_A",
767
+ "type": "function",
768
+ "inputs": [],
769
+ "outputs": [
770
+ {
771
+ "name": "",
772
+ "type": "uint256"
773
+ }
774
+ ],
775
+ "stateMutability": "view"
776
+ },
777
+ {
778
+ "gas": 2048,
779
+ "name": "initial_A_time",
780
+ "type": "function",
781
+ "inputs": [],
782
+ "outputs": [
783
+ {
784
+ "name": "",
785
+ "type": "uint256"
786
+ }
787
+ ],
788
+ "stateMutability": "view"
789
+ },
790
+ {
791
+ "gas": 2078,
792
+ "name": "future_A_time",
793
+ "type": "function",
794
+ "inputs": [],
795
+ "outputs": [
796
+ {
797
+ "name": "",
798
+ "type": "uint256"
799
+ }
800
+ ],
801
+ "stateMutability": "view"
802
+ },
803
+ {
804
+ "gas": 2108,
805
+ "name": "admin_actions_deadline",
806
+ "type": "function",
807
+ "inputs": [],
808
+ "outputs": [
809
+ {
810
+ "name": "",
811
+ "type": "uint256"
812
+ }
813
+ ],
814
+ "stateMutability": "view"
815
+ },
816
+ {
817
+ "gas": 2138,
818
+ "name": "transfer_ownership_deadline",
819
+ "type": "function",
820
+ "inputs": [],
821
+ "outputs": [
822
+ {
823
+ "name": "",
824
+ "type": "uint256"
825
+ }
826
+ ],
827
+ "stateMutability": "view"
828
+ },
829
+ {
830
+ "gas": 2168,
831
+ "name": "future_fee",
832
+ "type": "function",
833
+ "inputs": [],
834
+ "outputs": [
835
+ {
836
+ "name": "",
837
+ "type": "uint256"
838
+ }
839
+ ],
840
+ "stateMutability": "view"
841
+ },
842
+ {
843
+ "gas": 2198,
844
+ "name": "future_admin_fee",
845
+ "type": "function",
846
+ "inputs": [],
847
+ "outputs": [
848
+ {
849
+ "name": "",
850
+ "type": "uint256"
851
+ }
852
+ ],
853
+ "stateMutability": "view"
854
+ },
855
+ {
856
+ "gas": 2228,
857
+ "name": "future_owner",
858
+ "type": "function",
859
+ "inputs": [],
860
+ "outputs": [
861
+ {
862
+ "name": "",
863
+ "type": "address"
864
+ }
865
+ ],
866
+ "stateMutability": "view"
867
+ }
868
+ ]