@paraswap/dex-lib 4.0.27 → 4.0.28-partner-encoding

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 (246) hide show
  1. package/build/abi/Aave_GSM.json +751 -0
  2. package/build/abi/Balancer.json +257 -0
  3. package/build/abi/BalancerV2.json +1179 -0
  4. package/build/abi/RamsesV2Pool.abi.json +1554 -0
  5. package/build/abi/RamsesV2Quoter.abi.json +274 -0
  6. package/build/abi/USDM.json +807 -0
  7. package/build/abi/UniswapV2Router.json +397 -0
  8. package/build/abi/{wombat/pool.json → angle-transmuter/ChainlinkAccessControlledOffchainAggregator.json} +594 -637
  9. package/build/abi/angle-transmuter/ChainlinkEACAggregatorProxy.json +509 -0
  10. package/build/abi/curve-v1/CurveBUSDv2.abi.json +1356 -0
  11. package/build/abi/curve-v1/CurveTokenV1.json +305 -0
  12. package/build/abi/curve-v1/CurveTokenV2.json +318 -0
  13. package/build/abi/curve-v1/CurveV1StableNg.json +1452 -0
  14. package/build/abi/curve-v1/CurveV2Swap.json +700 -0
  15. package/build/abi/curve-v1/FactoryCryptoRegistry.json +316 -0
  16. package/build/abi/curve-v1/FactoryRegistry.json +508 -0
  17. package/build/abi/curve-v1/StableSwapAave.json +1152 -0
  18. package/build/abi/curve-v1/StableSwapBUSD.json +814 -0
  19. package/build/abi/curve-v1/StableSwapCompound.json +814 -0
  20. package/build/abi/curve-v1/StableSwapIDLE.json +1253 -0
  21. package/build/abi/curve-v1/StableSwapPax.json +865 -0
  22. package/build/abi/curve-v1/StableSwapSnow.json +900 -0
  23. package/build/abi/curve-v1/StableSwapUSDN.json +1004 -0
  24. package/build/abi/curve-v1/StableSwapUSDT.json +814 -0
  25. package/build/abi/curve-v1/StableSwapY.json +814 -0
  26. package/build/abi/inception/inception-ineth.json +609 -0
  27. package/build/abi/kyberdmm/kyber-storage.abi.json +824 -0
  28. package/build/abi/kyberdmm.abi.json +1148 -0
  29. package/build/abi/maverick-v2/MaverickV2Quoter.json +278 -0
  30. package/build/abi/nerve/nerve-metapool.json +790 -0
  31. package/build/abi/uniswap-v3/UniswapV3Quoter.abi.json +193 -0
  32. package/build/abi/velodrome-slipstream/VelodromeSlipstreamQuoterV2.abi.json +267 -0
  33. package/build/dex/aave-v1/aave-v1.js +0 -1
  34. package/build/dex/aave-v1/aave-v1.js.map +1 -1
  35. package/build/dex/algebra/config.js +1 -1
  36. package/build/dex/algebra/config.js.map +1 -1
  37. package/build/dex/balancer-v1/balancer-pools.json +33333 -0
  38. package/build/dex/bebop/websocket-fetcher.d.ts +35 -0
  39. package/build/dex/bebop/websocket-fetcher.js +87 -0
  40. package/build/dex/bebop/websocket-fetcher.js.map +1 -0
  41. package/build/dex/idle-dao/idle-dao-pool.d.ts +56 -0
  42. package/build/dex/idle-dao/idle-dao-pool.js +176 -0
  43. package/build/dex/idle-dao/idle-dao-pool.js.map +1 -0
  44. package/build/dex/idle-dao/idle-dao-pooling-pool.d.ts +16 -0
  45. package/build/dex/idle-dao/idle-dao-pooling-pool.js +57 -0
  46. package/build/dex/idle-dao/idle-dao-pooling-pool.js.map +1 -0
  47. package/build/dex/idle-dao/scripts.d.ts +9 -0
  48. package/build/dex/idle-dao/scripts.js +552 -0
  49. package/build/dex/idle-dao/scripts.js.map +1 -0
  50. package/build/dex/inception/inception-event-pool.d.ts +4 -4
  51. package/build/dex/inception/inception-event-pool.js +9 -7
  52. package/build/dex/inception/inception-event-pool.js.map +1 -1
  53. package/build/dex/inception/inception-native.d.ts +43 -0
  54. package/build/dex/inception/inception-native.js +131 -0
  55. package/build/dex/inception/inception-native.js.map +1 -0
  56. package/build/dex/inception/inception-pool.d.ts +18 -0
  57. package/build/dex/inception/inception-pool.js +32 -0
  58. package/build/dex/inception/inception-pool.js.map +1 -0
  59. package/build/dex/inception/inception-price-feed.d.ts +19 -0
  60. package/build/dex/inception/inception-price-feed.js +51 -0
  61. package/build/dex/inception/inception-price-feed.js.map +1 -0
  62. package/build/dex/inception/inception.d.ts +6 -6
  63. package/build/dex/inception/inception.js +40 -16
  64. package/build/dex/inception/inception.js.map +1 -1
  65. package/build/dex/inception/utils.d.ts +0 -1
  66. package/build/dex/inception/utils.js +1 -22
  67. package/build/dex/inception/utils.js.map +1 -1
  68. package/build/dex/platypus/platypus.js +3 -17
  69. package/build/dex/platypus/platypus.js.map +1 -1
  70. package/build/dex/swaap-v1/swaap-v1.js +0 -4
  71. package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
  72. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +16 -0
  73. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +16 -0
  74. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +16 -0
  75. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +16 -0
  76. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-dai-usdc-eth.json +16 -0
  77. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-eth-usdc-dai.json +16 -0
  78. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +16 -0
  79. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdt-usdc-dai.json +16 -0
  80. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-eth-usdc.json +9 -0
  81. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-eth.json +9 -0
  82. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-wbtc.json +9 -0
  83. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-eth-steth.json +9 -0
  84. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-steth-eth.json +9 -0
  85. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-usdc-usdt.json +9 -0
  86. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-eth-usdc.json +9 -0
  87. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-eth.json +9 -0
  88. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-usdt.json +9 -0
  89. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +12 -0
  90. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +7 -0
  91. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +7 -0
  92. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-dai-usdc-eth.json +7 -0
  93. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-eth-usdc-dai.json +7 -0
  94. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +12 -0
  95. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-eth-usdc.json +7 -0
  96. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-usdc-eth.json +7 -0
  97. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +78 -0
  98. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +81 -0
  99. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +78 -0
  100. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +78 -0
  101. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-dai-usdc-eth.json +81 -0
  102. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-eth-usdc-dai.json +81 -0
  103. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +81 -0
  104. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdt-usdc-dai.json +81 -0
  105. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-eth-usdc.json +64 -0
  106. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-eth.json +85 -0
  107. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-wbtc.json +64 -0
  108. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-eth-steth.json +52 -0
  109. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-steth-eth.json +52 -0
  110. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-usdc-usdt.json +52 -0
  111. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-eth-usdc.json +55 -0
  112. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-eth.json +55 -0
  113. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-usdt.json +55 -0
  114. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +23 -0
  115. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +37 -0
  116. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +23 -0
  117. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +23 -0
  118. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +51 -0
  119. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-univ3-usdt-dai-eth.json +58 -0
  120. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +23 -0
  121. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +23 -0
  122. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +9 -0
  123. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +16 -0
  124. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +23 -0
  125. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +12 -0
  126. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +7 -0
  127. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +12 -0
  128. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +12 -0
  129. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +7 -0
  130. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-univ3-usdt-dai-eth.json +7 -0
  131. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +7 -0
  132. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +7 -0
  133. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +7 -0
  134. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +7 -0
  135. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +130 -0
  136. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +136 -0
  137. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +100 -0
  138. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +100 -0
  139. package/build/executor/fixtures/executor02/routes/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +166 -0
  140. package/build/executor/fixtures/executor02/routes/price-route-multiswap-univ3-usdt-dai-eth.json +190 -0
  141. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +114 -0
  142. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +114 -0
  143. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +55 -0
  144. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +73 -0
  145. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +82 -0
  146. package/build/generic-swap-transaction-builder.js +2 -1
  147. package/build/generic-swap-transaction-builder.js.map +1 -1
  148. package/package.json +1 -1
  149. package/src/dex/algebra/config.ts +1 -1
  150. package/src/generic-swap-transaction-builder.ts +5 -1
  151. package/.vscode/launch.json +0 -53
  152. package/.vscode/settings.json +0 -2
  153. package/.vscode/tasks.json +0 -15
  154. package/build/abi/uniswap-v3/AlienBaseV3Router.abi.json +0 -52
  155. package/build/abi/usual-m-smart-m/usualM.abi.json +0 -483
  156. package/build/dex/aave-v2/tokens-avalanche.json +0 -44
  157. package/build/dex/aave-v2/tokens-mainnet.json +0 -188
  158. package/build/dex/aave-v2/tokens-polygon.json +0 -44
  159. package/build/dex/bProtocol.d.ts +0 -18
  160. package/build/dex/bProtocol.js +0 -39
  161. package/build/dex/bProtocol.js.map +0 -1
  162. package/build/dex/balancer-v3/abi/balancerBatchRouter.d.ts +0 -729
  163. package/build/dex/balancer-v3/abi/balancerBatchRouter.js +0 -732
  164. package/build/dex/balancer-v3/abi/balancerBatchRouter.js.map +0 -1
  165. package/build/dex/balancer-v3/abi/balancerRouter.d.ts +0 -1406
  166. package/build/dex/balancer-v3/abi/balancerRouter.js +0 -1175
  167. package/build/dex/balancer-v3/abi/balancerRouter.js.map +0 -1
  168. package/build/dex/balancer-v3/abi/vaultExtension.V3.d.ts +0 -2081
  169. package/build/dex/balancer-v3/abi/vaultExtension.V3.js +0 -1851
  170. package/build/dex/balancer-v3/abi/vaultExtension.V3.js.map +0 -1
  171. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.d.ts +0 -34
  172. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js +0 -406
  173. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js.map +0 -1
  174. package/build/dex/bancor.d.ts +0 -26
  175. package/build/dex/bancor.js +0 -58
  176. package/build/dex/bancor.js.map +0 -1
  177. package/build/dex/compound.d.ts +0 -18
  178. package/build/dex/compound.js +0 -46
  179. package/build/dex/compound.js.map +0 -1
  180. package/build/dex/curve-v2.d.ts +0 -58
  181. package/build/dex/curve-v2.js +0 -180
  182. package/build/dex/curve-v2.js.map +0 -1
  183. package/build/dex/dodo-v1.d.ts +0 -33
  184. package/build/dex/dodo-v1.js +0 -63
  185. package/build/dex/dodo-v1.js.map +0 -1
  186. package/build/dex/lido.d.ts +0 -19
  187. package/build/dex/lido.js +0 -42
  188. package/build/dex/lido.js.map +0 -1
  189. package/build/dex/maker-psm/scripts/gem.abi.json +0 -136
  190. package/build/dex/maker-psm/scripts/validate-state.d.ts +0 -0
  191. package/build/dex/maker-psm/scripts/validate-state.js +0 -185
  192. package/build/dex/maker-psm/scripts/validate-state.js.map +0 -1
  193. package/build/dex/maker-psm/scripts/vat.abi.json +0 -243
  194. package/build/dex/onebit.d.ts +0 -25
  195. package/build/dex/onebit.js +0 -42
  196. package/build/dex/onebit.js.map +0 -1
  197. package/build/dex/smoothy.d.ts +0 -26
  198. package/build/dex/smoothy.js +0 -48
  199. package/build/dex/smoothy.js.map +0 -1
  200. package/build/dex/solidly-v3/scripts/check-event-pool-event.d.ts +0 -1
  201. package/build/dex/solidly-v3/scripts/check-event-pool-event.js +0 -53
  202. package/build/dex/solidly-v3/scripts/check-event-pool-event.js.map +0 -1
  203. package/build/dex/stable-pool.d.ts +0 -28
  204. package/build/dex/stable-pool.js +0 -55
  205. package/build/dex/stable-pool.js.map +0 -1
  206. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.d.ts +0 -7
  207. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js +0 -20
  208. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js.map +0 -1
  209. package/build/dex/trader-joe-v2.1.d.ts +0 -43
  210. package/build/dex/trader-joe-v2.1.js +0 -79
  211. package/build/dex/trader-joe-v2.1.js.map +0 -1
  212. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.d.ts +0 -17
  213. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js +0 -64
  214. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js.map +0 -1
  215. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.d.ts +0 -17
  216. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js +0 -79
  217. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js.map +0 -1
  218. package/build/dex/uniswap-v3/uniswap-v3-pricing.d.ts +0 -4
  219. package/build/dex/uniswap-v3/uniswap-v3-pricing.js +0 -43
  220. package/build/dex/uniswap-v3/uniswap-v3-pricing.js.map +0 -1
  221. package/build/dex/uniswap-v3/uniswap-v3-worker.d.ts +0 -1
  222. package/build/dex/uniswap-v3/uniswap-v3-worker.js +0 -10
  223. package/build/dex/uniswap-v3/uniswap-v3-worker.js.map +0 -1
  224. package/build/dex/usual/usual-m-smart-m.d.ts +0 -17
  225. package/build/dex/usual/usual-m-smart-m.js +0 -50
  226. package/build/dex/usual/usual-m-smart-m.js.map +0 -1
  227. package/build/dex/usual-m-smart-m/config.d.ts +0 -3
  228. package/build/dex/usual-m-smart-m/config.js +0 -13
  229. package/build/dex/usual-m-smart-m/config.js.map +0 -1
  230. package/build/dex/usual-m-smart-m/types.d.ts +0 -7
  231. package/build/dex/usual-m-smart-m/types.js +0 -3
  232. package/build/dex/usual-m-smart-m/types.js.map +0 -1
  233. package/build/dex/usual-m-smart-m/usual-m-smart-m.d.ts +0 -35
  234. package/build/dex/usual-m-smart-m/usual-m-smart-m.js +0 -161
  235. package/build/dex/usual-m-smart-m/usual-m-smart-m.js.map +0 -1
  236. package/build/dex/usual-m-usd0/config.d.ts +0 -3
  237. package/build/dex/usual-m-usd0/config.js +0 -14
  238. package/build/dex/usual-m-usd0/config.js.map +0 -1
  239. package/build/dex/usual-m-usd0/types.d.ts +0 -8
  240. package/build/dex/usual-m-usd0/types.js +0 -3
  241. package/build/dex/usual-m-usd0/types.js.map +0 -1
  242. package/build/dex/usual-m-usd0/usual-m-usd0.d.ts +0 -35
  243. package/build/dex/usual-m-usd0/usual-m-usd0.js +0 -159
  244. package/build/dex/usual-m-usd0/usual-m-usd0.js.map +0 -1
  245. package/src/dex/balancer-v2/scripts/abi.json +0 -339
  246. package/src/dex/balancer-v2/scripts/test.test.ts +0 -121
@@ -0,0 +1,900 @@
1
+ [
2
+ {
3
+ "anonymous": false,
4
+ "inputs": [
5
+ {
6
+ "indexed": true,
7
+ "name": "buyer",
8
+ "type": "address"
9
+ },
10
+ {
11
+ "indexed": false,
12
+ "name": "sold_id",
13
+ "type": "int128"
14
+ },
15
+ {
16
+ "indexed": false,
17
+ "name": "tokens_sold",
18
+ "type": "uint256"
19
+ },
20
+ {
21
+ "indexed": false,
22
+ "name": "bought_id",
23
+ "type": "int128"
24
+ },
25
+ {
26
+ "indexed": false,
27
+ "name": "tokens_bought",
28
+ "type": "uint256"
29
+ }
30
+ ],
31
+ "name": "TokenExchange",
32
+ "type": "event"
33
+ },
34
+ {
35
+ "anonymous": false,
36
+ "inputs": [
37
+ {
38
+ "indexed": true,
39
+ "name": "buyer",
40
+ "type": "address"
41
+ },
42
+ {
43
+ "indexed": false,
44
+ "name": "sold_id",
45
+ "type": "int128"
46
+ },
47
+ {
48
+ "indexed": false,
49
+ "name": "tokens_sold",
50
+ "type": "uint256"
51
+ },
52
+ {
53
+ "indexed": false,
54
+ "name": "bought_id",
55
+ "type": "int128"
56
+ },
57
+ {
58
+ "indexed": false,
59
+ "name": "tokens_bought",
60
+ "type": "uint256"
61
+ }
62
+ ],
63
+ "name": "TokenExchangeUnderlying",
64
+ "type": "event"
65
+ },
66
+ {
67
+ "anonymous": false,
68
+ "inputs": [
69
+ {
70
+ "indexed": true,
71
+ "name": "provider",
72
+ "type": "address"
73
+ },
74
+ {
75
+ "indexed": false,
76
+ "name": "token_amounts",
77
+ "type": "uint256[6]"
78
+ },
79
+ {
80
+ "indexed": false,
81
+ "name": "fees",
82
+ "type": "uint256[6]"
83
+ },
84
+ {
85
+ "indexed": false,
86
+ "name": "invariant",
87
+ "type": "uint256"
88
+ },
89
+ {
90
+ "indexed": false,
91
+ "name": "token_supply",
92
+ "type": "uint256"
93
+ }
94
+ ],
95
+ "name": "AddLiquidity",
96
+ "type": "event"
97
+ },
98
+ {
99
+ "anonymous": false,
100
+ "inputs": [
101
+ {
102
+ "indexed": true,
103
+ "name": "provider",
104
+ "type": "address"
105
+ },
106
+ {
107
+ "indexed": false,
108
+ "name": "token_amounts",
109
+ "type": "uint256[6]"
110
+ },
111
+ {
112
+ "indexed": false,
113
+ "name": "fees",
114
+ "type": "uint256[6]"
115
+ },
116
+ {
117
+ "indexed": false,
118
+ "name": "token_supply",
119
+ "type": "uint256"
120
+ }
121
+ ],
122
+ "name": "RemoveLiquidity",
123
+ "type": "event"
124
+ },
125
+ {
126
+ "anonymous": false,
127
+ "inputs": [
128
+ {
129
+ "indexed": true,
130
+ "name": "provider",
131
+ "type": "address"
132
+ },
133
+ {
134
+ "indexed": false,
135
+ "name": "token_amount",
136
+ "type": "uint256"
137
+ },
138
+ {
139
+ "indexed": false,
140
+ "name": "coin_amount",
141
+ "type": "uint256"
142
+ }
143
+ ],
144
+ "name": "RemoveLiquidityOne",
145
+ "type": "event"
146
+ },
147
+ {
148
+ "anonymous": false,
149
+ "inputs": [
150
+ {
151
+ "indexed": true,
152
+ "name": "provider",
153
+ "type": "address"
154
+ },
155
+ {
156
+ "indexed": false,
157
+ "name": "token_amounts",
158
+ "type": "uint256[6]"
159
+ },
160
+ {
161
+ "indexed": false,
162
+ "name": "fees",
163
+ "type": "uint256[6]"
164
+ },
165
+ {
166
+ "indexed": false,
167
+ "name": "invariant",
168
+ "type": "uint256"
169
+ },
170
+ {
171
+ "indexed": false,
172
+ "name": "token_supply",
173
+ "type": "uint256"
174
+ }
175
+ ],
176
+ "name": "RemoveLiquidityImbalance",
177
+ "type": "event"
178
+ },
179
+ {
180
+ "anonymous": false,
181
+ "inputs": [
182
+ {
183
+ "indexed": true,
184
+ "name": "deadline",
185
+ "type": "uint256"
186
+ },
187
+ {
188
+ "indexed": true,
189
+ "name": "admin",
190
+ "type": "address"
191
+ }
192
+ ],
193
+ "name": "CommitNewAdmin",
194
+ "type": "event"
195
+ },
196
+ {
197
+ "anonymous": false,
198
+ "inputs": [
199
+ {
200
+ "indexed": true,
201
+ "name": "admin",
202
+ "type": "address"
203
+ }
204
+ ],
205
+ "name": "NewAdmin",
206
+ "type": "event"
207
+ },
208
+ {
209
+ "anonymous": false,
210
+ "inputs": [
211
+ {
212
+ "indexed": true,
213
+ "name": "deadline",
214
+ "type": "uint256"
215
+ },
216
+ {
217
+ "indexed": false,
218
+ "name": "fee",
219
+ "type": "uint256"
220
+ },
221
+ {
222
+ "indexed": false,
223
+ "name": "admin_fee",
224
+ "type": "uint256"
225
+ }
226
+ ],
227
+ "name": "CommitNewFee",
228
+ "type": "event"
229
+ },
230
+ {
231
+ "anonymous": false,
232
+ "inputs": [
233
+ {
234
+ "indexed": false,
235
+ "name": "fee",
236
+ "type": "uint256"
237
+ },
238
+ {
239
+ "indexed": false,
240
+ "name": "admin_fee",
241
+ "type": "uint256"
242
+ }
243
+ ],
244
+ "name": "NewFee",
245
+ "type": "event"
246
+ },
247
+ {
248
+ "anonymous": false,
249
+ "inputs": [
250
+ {
251
+ "indexed": false,
252
+ "name": "old_A",
253
+ "type": "uint256"
254
+ },
255
+ {
256
+ "indexed": false,
257
+ "name": "new_A",
258
+ "type": "uint256"
259
+ },
260
+ {
261
+ "indexed": false,
262
+ "name": "initial_time",
263
+ "type": "uint256"
264
+ },
265
+ {
266
+ "indexed": false,
267
+ "name": "future_time",
268
+ "type": "uint256"
269
+ }
270
+ ],
271
+ "name": "RampA",
272
+ "type": "event"
273
+ },
274
+ {
275
+ "anonymous": false,
276
+ "inputs": [
277
+ {
278
+ "indexed": false,
279
+ "name": "A",
280
+ "type": "uint256"
281
+ },
282
+ {
283
+ "indexed": false,
284
+ "name": "t",
285
+ "type": "uint256"
286
+ }
287
+ ],
288
+ "name": "StopRampA",
289
+ "type": "event"
290
+ },
291
+ {
292
+ "inputs": [
293
+ {
294
+ "name": "_owner",
295
+ "type": "address"
296
+ },
297
+ {
298
+ "name": "_coins",
299
+ "type": "address[6]"
300
+ },
301
+ {
302
+ "name": "_y_pool",
303
+ "type": "address"
304
+ },
305
+ {
306
+ "name": "_pool_token",
307
+ "type": "address"
308
+ },
309
+ {
310
+ "name": "_A",
311
+ "type": "uint256"
312
+ },
313
+ {
314
+ "name": "_fee",
315
+ "type": "uint256"
316
+ },
317
+ {
318
+ "name": "_admin_fee",
319
+ "type": "uint256"
320
+ }
321
+ ],
322
+ "outputs": [],
323
+ "stateMutability": "nonpayable",
324
+ "type": "constructor"
325
+ },
326
+ {
327
+ "gas": 5314,
328
+ "inputs": [],
329
+ "name": "A",
330
+ "outputs": [
331
+ {
332
+ "name": "",
333
+ "type": "uint256"
334
+ }
335
+ ],
336
+ "stateMutability": "view",
337
+ "type": "function"
338
+ },
339
+ {
340
+ "gas": 5257,
341
+ "inputs": [],
342
+ "name": "A_precise",
343
+ "outputs": [
344
+ {
345
+ "name": "",
346
+ "type": "uint256"
347
+ }
348
+ ],
349
+ "stateMutability": "view",
350
+ "type": "function"
351
+ },
352
+ {
353
+ "gas": 20572,
354
+ "inputs": [],
355
+ "name": "get_coin_rates",
356
+ "outputs": [
357
+ {
358
+ "name": "",
359
+ "type": "uint256[6]"
360
+ }
361
+ ],
362
+ "stateMutability": "view",
363
+ "type": "function"
364
+ },
365
+ {
366
+ "gas": 1731937,
367
+ "inputs": [],
368
+ "name": "get_virtual_price",
369
+ "outputs": [
370
+ {
371
+ "name": "",
372
+ "type": "uint256"
373
+ }
374
+ ],
375
+ "stateMutability": "view",
376
+ "type": "function"
377
+ },
378
+ {
379
+ "gas": 6856489,
380
+ "inputs": [
381
+ {
382
+ "name": "amounts",
383
+ "type": "uint256[6]"
384
+ },
385
+ {
386
+ "name": "deposit",
387
+ "type": "bool"
388
+ }
389
+ ],
390
+ "name": "calc_token_amount",
391
+ "outputs": [
392
+ {
393
+ "name": "",
394
+ "type": "uint256"
395
+ }
396
+ ],
397
+ "stateMutability": "view",
398
+ "type": "function"
399
+ },
400
+ {
401
+ "gas": 10847684,
402
+ "inputs": [
403
+ {
404
+ "name": "amounts",
405
+ "type": "uint256[6]"
406
+ },
407
+ {
408
+ "name": "min_mint_amount",
409
+ "type": "uint256"
410
+ }
411
+ ],
412
+ "name": "add_liquidity",
413
+ "outputs": [],
414
+ "stateMutability": "nonpayable",
415
+ "type": "function"
416
+ },
417
+ {
418
+ "gas": 3850934,
419
+ "inputs": [
420
+ {
421
+ "name": "i",
422
+ "type": "int128"
423
+ },
424
+ {
425
+ "name": "j",
426
+ "type": "int128"
427
+ },
428
+ {
429
+ "name": "dx",
430
+ "type": "uint256"
431
+ }
432
+ ],
433
+ "name": "get_dy",
434
+ "outputs": [
435
+ {
436
+ "name": "",
437
+ "type": "uint256"
438
+ }
439
+ ],
440
+ "stateMutability": "view",
441
+ "type": "function"
442
+ },
443
+ {
444
+ "gas": 3850968,
445
+ "inputs": [
446
+ {
447
+ "name": "i",
448
+ "type": "int128"
449
+ },
450
+ {
451
+ "name": "j",
452
+ "type": "int128"
453
+ },
454
+ {
455
+ "name": "dx",
456
+ "type": "uint256"
457
+ }
458
+ ],
459
+ "name": "get_dy_underlying",
460
+ "outputs": [
461
+ {
462
+ "name": "",
463
+ "type": "uint256"
464
+ }
465
+ ],
466
+ "stateMutability": "view",
467
+ "type": "function"
468
+ },
469
+ {
470
+ "gas": 4257882,
471
+ "inputs": [
472
+ {
473
+ "name": "i",
474
+ "type": "int128"
475
+ },
476
+ {
477
+ "name": "j",
478
+ "type": "int128"
479
+ },
480
+ {
481
+ "name": "dx",
482
+ "type": "uint256"
483
+ },
484
+ {
485
+ "name": "min_dy",
486
+ "type": "uint256"
487
+ }
488
+ ],
489
+ "name": "exchange",
490
+ "outputs": [],
491
+ "stateMutability": "nonpayable",
492
+ "type": "function"
493
+ },
494
+ {
495
+ "gas": 302037,
496
+ "inputs": [
497
+ {
498
+ "name": "_amount",
499
+ "type": "uint256"
500
+ },
501
+ {
502
+ "name": "min_amounts",
503
+ "type": "uint256[6]"
504
+ }
505
+ ],
506
+ "name": "remove_liquidity",
507
+ "outputs": [],
508
+ "stateMutability": "nonpayable",
509
+ "type": "function"
510
+ },
511
+ {
512
+ "gas": 10846227,
513
+ "inputs": [
514
+ {
515
+ "name": "amounts",
516
+ "type": "uint256[6]"
517
+ },
518
+ {
519
+ "name": "max_burn_amount",
520
+ "type": "uint256"
521
+ }
522
+ ],
523
+ "name": "remove_liquidity_imbalance",
524
+ "outputs": [],
525
+ "stateMutability": "nonpayable",
526
+ "type": "function"
527
+ },
528
+ {
529
+ "gas": 1222,
530
+ "inputs": [
531
+ {
532
+ "name": "_token_amount",
533
+ "type": "uint256"
534
+ },
535
+ {
536
+ "name": "i",
537
+ "type": "int128"
538
+ }
539
+ ],
540
+ "name": "calc_withdraw_one_coin",
541
+ "outputs": [
542
+ {
543
+ "name": "",
544
+ "type": "uint256"
545
+ }
546
+ ],
547
+ "stateMutability": "view",
548
+ "type": "function"
549
+ },
550
+ {
551
+ "gas": 5520405,
552
+ "inputs": [
553
+ {
554
+ "name": "_token_amount",
555
+ "type": "uint256"
556
+ },
557
+ {
558
+ "name": "i",
559
+ "type": "int128"
560
+ },
561
+ {
562
+ "name": "min_amount",
563
+ "type": "uint256"
564
+ }
565
+ ],
566
+ "name": "remove_liquidity_one_coin",
567
+ "outputs": [],
568
+ "stateMutability": "nonpayable",
569
+ "type": "function"
570
+ },
571
+ {
572
+ "gas": 151996,
573
+ "inputs": [
574
+ {
575
+ "name": "_future_A",
576
+ "type": "uint256"
577
+ },
578
+ {
579
+ "name": "_future_time",
580
+ "type": "uint256"
581
+ }
582
+ ],
583
+ "name": "ramp_A",
584
+ "outputs": [],
585
+ "stateMutability": "nonpayable",
586
+ "type": "function"
587
+ },
588
+ {
589
+ "gas": 148757,
590
+ "inputs": [],
591
+ "name": "stop_ramp_A",
592
+ "outputs": [],
593
+ "stateMutability": "nonpayable",
594
+ "type": "function"
595
+ },
596
+ {
597
+ "gas": 110581,
598
+ "inputs": [
599
+ {
600
+ "name": "new_fee",
601
+ "type": "uint256"
602
+ },
603
+ {
604
+ "name": "new_admin_fee",
605
+ "type": "uint256"
606
+ }
607
+ ],
608
+ "name": "commit_new_fee",
609
+ "outputs": [],
610
+ "stateMutability": "nonpayable",
611
+ "type": "function"
612
+ },
613
+ {
614
+ "gas": 97362,
615
+ "inputs": [],
616
+ "name": "apply_new_fee",
617
+ "outputs": [],
618
+ "stateMutability": "nonpayable",
619
+ "type": "function"
620
+ },
621
+ {
622
+ "gas": 22015,
623
+ "inputs": [],
624
+ "name": "revert_new_parameters",
625
+ "outputs": [],
626
+ "stateMutability": "nonpayable",
627
+ "type": "function"
628
+ },
629
+ {
630
+ "gas": 74692,
631
+ "inputs": [
632
+ {
633
+ "name": "_owner",
634
+ "type": "address"
635
+ }
636
+ ],
637
+ "name": "commit_transfer_ownership",
638
+ "outputs": [],
639
+ "stateMutability": "nonpayable",
640
+ "type": "function"
641
+ },
642
+ {
643
+ "gas": 60830,
644
+ "inputs": [],
645
+ "name": "apply_transfer_ownership",
646
+ "outputs": [],
647
+ "stateMutability": "nonpayable",
648
+ "type": "function"
649
+ },
650
+ {
651
+ "gas": 22105,
652
+ "inputs": [],
653
+ "name": "revert_transfer_ownership",
654
+ "outputs": [],
655
+ "stateMutability": "nonpayable",
656
+ "type": "function"
657
+ },
658
+ {
659
+ "gas": 3601,
660
+ "inputs": [
661
+ {
662
+ "name": "i",
663
+ "type": "uint256"
664
+ }
665
+ ],
666
+ "name": "admin_balances",
667
+ "outputs": [
668
+ {
669
+ "name": "",
670
+ "type": "uint256"
671
+ }
672
+ ],
673
+ "stateMutability": "view",
674
+ "type": "function"
675
+ },
676
+ {
677
+ "gas": 23550,
678
+ "inputs": [],
679
+ "name": "withdraw_admin_fees",
680
+ "outputs": [],
681
+ "stateMutability": "nonpayable",
682
+ "type": "function"
683
+ },
684
+ {
685
+ "gas": 220781,
686
+ "inputs": [],
687
+ "name": "donate_admin_fees",
688
+ "outputs": [],
689
+ "stateMutability": "nonpayable",
690
+ "type": "function"
691
+ },
692
+ {
693
+ "gas": 38118,
694
+ "inputs": [],
695
+ "name": "kill_me",
696
+ "outputs": [],
697
+ "stateMutability": "nonpayable",
698
+ "type": "function"
699
+ },
700
+ {
701
+ "gas": 22255,
702
+ "inputs": [],
703
+ "name": "unkill_me",
704
+ "outputs": [],
705
+ "stateMutability": "nonpayable",
706
+ "type": "function"
707
+ },
708
+ {
709
+ "gas": 2340,
710
+ "inputs": [
711
+ {
712
+ "name": "arg0",
713
+ "type": "uint256"
714
+ }
715
+ ],
716
+ "name": "coins",
717
+ "outputs": [
718
+ {
719
+ "name": "",
720
+ "type": "address"
721
+ }
722
+ ],
723
+ "stateMutability": "view",
724
+ "type": "function"
725
+ },
726
+ {
727
+ "gas": 2370,
728
+ "inputs": [
729
+ {
730
+ "name": "arg0",
731
+ "type": "uint256"
732
+ }
733
+ ],
734
+ "name": "balances",
735
+ "outputs": [
736
+ {
737
+ "name": "",
738
+ "type": "uint256"
739
+ }
740
+ ],
741
+ "stateMutability": "view",
742
+ "type": "function"
743
+ },
744
+ {
745
+ "gas": 2291,
746
+ "inputs": [],
747
+ "name": "fee",
748
+ "outputs": [
749
+ {
750
+ "name": "",
751
+ "type": "uint256"
752
+ }
753
+ ],
754
+ "stateMutability": "view",
755
+ "type": "function"
756
+ },
757
+ {
758
+ "gas": 2321,
759
+ "inputs": [],
760
+ "name": "admin_fee",
761
+ "outputs": [
762
+ {
763
+ "name": "",
764
+ "type": "uint256"
765
+ }
766
+ ],
767
+ "stateMutability": "view",
768
+ "type": "function"
769
+ },
770
+ {
771
+ "gas": 2351,
772
+ "inputs": [],
773
+ "name": "owner",
774
+ "outputs": [
775
+ {
776
+ "name": "",
777
+ "type": "address"
778
+ }
779
+ ],
780
+ "stateMutability": "view",
781
+ "type": "function"
782
+ },
783
+ {
784
+ "gas": 2381,
785
+ "inputs": [],
786
+ "name": "initial_A",
787
+ "outputs": [
788
+ {
789
+ "name": "",
790
+ "type": "uint256"
791
+ }
792
+ ],
793
+ "stateMutability": "view",
794
+ "type": "function"
795
+ },
796
+ {
797
+ "gas": 2411,
798
+ "inputs": [],
799
+ "name": "future_A",
800
+ "outputs": [
801
+ {
802
+ "name": "",
803
+ "type": "uint256"
804
+ }
805
+ ],
806
+ "stateMutability": "view",
807
+ "type": "function"
808
+ },
809
+ {
810
+ "gas": 2441,
811
+ "inputs": [],
812
+ "name": "initial_A_time",
813
+ "outputs": [
814
+ {
815
+ "name": "",
816
+ "type": "uint256"
817
+ }
818
+ ],
819
+ "stateMutability": "view",
820
+ "type": "function"
821
+ },
822
+ {
823
+ "gas": 2471,
824
+ "inputs": [],
825
+ "name": "future_A_time",
826
+ "outputs": [
827
+ {
828
+ "name": "",
829
+ "type": "uint256"
830
+ }
831
+ ],
832
+ "stateMutability": "view",
833
+ "type": "function"
834
+ },
835
+ {
836
+ "gas": 2501,
837
+ "inputs": [],
838
+ "name": "admin_actions_deadline",
839
+ "outputs": [
840
+ {
841
+ "name": "",
842
+ "type": "uint256"
843
+ }
844
+ ],
845
+ "stateMutability": "view",
846
+ "type": "function"
847
+ },
848
+ {
849
+ "gas": 2531,
850
+ "inputs": [],
851
+ "name": "transfer_ownership_deadline",
852
+ "outputs": [
853
+ {
854
+ "name": "",
855
+ "type": "uint256"
856
+ }
857
+ ],
858
+ "stateMutability": "view",
859
+ "type": "function"
860
+ },
861
+ {
862
+ "gas": 2561,
863
+ "inputs": [],
864
+ "name": "future_fee",
865
+ "outputs": [
866
+ {
867
+ "name": "",
868
+ "type": "uint256"
869
+ }
870
+ ],
871
+ "stateMutability": "view",
872
+ "type": "function"
873
+ },
874
+ {
875
+ "gas": 2591,
876
+ "inputs": [],
877
+ "name": "future_admin_fee",
878
+ "outputs": [
879
+ {
880
+ "name": "",
881
+ "type": "uint256"
882
+ }
883
+ ],
884
+ "stateMutability": "view",
885
+ "type": "function"
886
+ },
887
+ {
888
+ "gas": 2621,
889
+ "inputs": [],
890
+ "name": "future_owner",
891
+ "outputs": [
892
+ {
893
+ "name": "",
894
+ "type": "address"
895
+ }
896
+ ],
897
+ "stateMutability": "view",
898
+ "type": "function"
899
+ }
900
+ ]