@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,900 +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[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
- ]