@paraswap/dex-lib 4.0.20 → 4.0.21

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