@paraswap/dex-lib 4.1.0 → 4.1.1

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 (256) 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/{integral/relayer.json → RamsesV2Pool.abi.json} +850 -832
  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/angle-transmuter/ChainlinkAccessControlledOffchainAggregator.json +1246 -0
  9. package/build/abi/{integral/oracle.json → angle-transmuter/ChainlinkEACAggregatorProxy.json} +247 -239
  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/{integral/pool.json → curve-v1/StableSwapUSDN.json} +450 -487
  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-pool.json +1062 -0
  27. package/build/abi/inception/inception-ineth.json +609 -0
  28. package/build/abi/inception/inception-ratio-feed.json +329 -0
  29. package/build/abi/inception/inception-vault.json +991 -0
  30. package/build/abi/kyberdmm/kyber-storage.abi.json +824 -0
  31. package/build/abi/kyberdmm.abi.json +1148 -0
  32. package/build/abi/maverick-v2/MaverickV2Quoter.json +278 -0
  33. package/build/abi/nerve/nerve-metapool.json +790 -0
  34. package/build/abi/uniswap-v3/UniswapV3Quoter.abi.json +193 -0
  35. package/build/abi/velodrome-slipstream/VelodromeSlipstreamQuoterV2.abi.json +267 -0
  36. package/build/dex/aave-v1/aave-v1.d.ts +2 -1
  37. package/build/dex/aave-v1/aave-v1.js +22 -0
  38. package/build/dex/aave-v1/aave-v1.js.map +1 -1
  39. package/build/dex/balancer-v1/balancer-pools.json +33333 -0
  40. package/build/dex/bebop/websocket-fetcher.d.ts +35 -0
  41. package/build/dex/bebop/websocket-fetcher.js +87 -0
  42. package/build/dex/bebop/websocket-fetcher.js.map +1 -0
  43. package/build/dex/cables/cables.d.ts +1 -1
  44. package/build/dex/cables/cables.js +26 -7
  45. package/build/dex/cables/cables.js.map +1 -1
  46. package/build/dex/idle-dao/idle-dao-pool.d.ts +56 -0
  47. package/build/dex/idle-dao/idle-dao-pool.js +176 -0
  48. package/build/dex/idle-dao/idle-dao-pool.js.map +1 -0
  49. package/build/dex/idle-dao/idle-dao-pooling-pool.d.ts +16 -0
  50. package/build/dex/idle-dao/idle-dao-pooling-pool.js +57 -0
  51. package/build/dex/idle-dao/idle-dao-pooling-pool.js.map +1 -0
  52. package/build/dex/idle-dao/scripts.d.ts +9 -0
  53. package/build/dex/idle-dao/scripts.js +552 -0
  54. package/build/dex/idle-dao/scripts.js.map +1 -0
  55. package/build/dex/inception/config.d.ts +4 -0
  56. package/build/dex/inception/config.js +109 -0
  57. package/build/dex/inception/config.js.map +1 -0
  58. package/build/dex/inception/inception-event-pool.d.ts +16 -0
  59. package/build/dex/inception/inception-event-pool.js +51 -0
  60. package/build/dex/inception/inception-event-pool.js.map +1 -0
  61. package/build/dex/{integral/integral.d.ts → inception/inception-native.d.ts} +21 -19
  62. package/build/dex/inception/inception-native.js +131 -0
  63. package/build/dex/inception/inception-native.js.map +1 -0
  64. package/build/dex/inception/inception-pool.d.ts +18 -0
  65. package/build/dex/inception/inception-pool.js +32 -0
  66. package/build/dex/inception/inception-pool.js.map +1 -0
  67. package/build/dex/inception/inception-price-feed.d.ts +19 -0
  68. package/build/dex/inception/inception-price-feed.js +51 -0
  69. package/build/dex/inception/inception-price-feed.js.map +1 -0
  70. package/build/dex/inception/inception.d.ts +43 -0
  71. package/build/dex/inception/inception.js +204 -0
  72. package/build/dex/inception/inception.js.map +1 -0
  73. package/build/dex/inception/tokens.d.ts +9 -0
  74. package/build/dex/inception/tokens.js +28 -0
  75. package/build/dex/inception/tokens.js.map +1 -0
  76. package/build/dex/inception/types.d.ts +22 -0
  77. package/build/dex/inception/types.js +3 -0
  78. package/build/dex/inception/types.js.map +1 -0
  79. package/build/dex/inception/utils.d.ts +6 -0
  80. package/build/dex/inception/utils.js +37 -0
  81. package/build/dex/inception/utils.js.map +1 -0
  82. package/build/dex/jarvis.d.ts +2 -1
  83. package/build/dex/jarvis.js +58 -0
  84. package/build/dex/jarvis.js.map +1 -1
  85. package/build/dex/platypus/platypus.d.ts +2 -1
  86. package/build/dex/platypus/platypus.js +31 -0
  87. package/build/dex/platypus/platypus.js.map +1 -1
  88. package/build/dex/swaap-v1/swaap-v1.d.ts +2 -1
  89. package/build/dex/swaap-v1/swaap-v1.js +10 -0
  90. package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
  91. package/build/dex/zerox/index.d.ts +4 -26
  92. package/build/dex/zerox/index.js +50 -42
  93. package/build/dex/zerox/index.js.map +1 -1
  94. package/build/dex/zerox/types.d.ts +29 -0
  95. package/build/dex/zerox/types.js +8 -1
  96. package/build/dex/zerox/types.js.map +1 -1
  97. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +16 -0
  98. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +16 -0
  99. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +16 -0
  100. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +16 -0
  101. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-dai-usdc-eth.json +16 -0
  102. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-eth-usdc-dai.json +16 -0
  103. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +16 -0
  104. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdt-usdc-dai.json +16 -0
  105. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-eth-usdc.json +9 -0
  106. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-eth.json +9 -0
  107. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-wbtc.json +9 -0
  108. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-eth-steth.json +9 -0
  109. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-steth-eth.json +9 -0
  110. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-usdc-usdt.json +9 -0
  111. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-eth-usdc.json +9 -0
  112. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-eth.json +9 -0
  113. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-usdt.json +9 -0
  114. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +12 -0
  115. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +7 -0
  116. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +7 -0
  117. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-dai-usdc-eth.json +7 -0
  118. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-eth-usdc-dai.json +7 -0
  119. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +12 -0
  120. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-eth-usdc.json +7 -0
  121. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-usdc-eth.json +7 -0
  122. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +78 -0
  123. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +81 -0
  124. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +78 -0
  125. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +78 -0
  126. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-dai-usdc-eth.json +81 -0
  127. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-eth-usdc-dai.json +81 -0
  128. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +81 -0
  129. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdt-usdc-dai.json +81 -0
  130. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-eth-usdc.json +64 -0
  131. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-eth.json +85 -0
  132. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-wbtc.json +64 -0
  133. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-eth-steth.json +52 -0
  134. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-steth-eth.json +52 -0
  135. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-usdc-usdt.json +52 -0
  136. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-eth-usdc.json +55 -0
  137. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-eth.json +55 -0
  138. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-usdt.json +55 -0
  139. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +23 -0
  140. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +37 -0
  141. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +23 -0
  142. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +23 -0
  143. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +51 -0
  144. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-univ3-usdt-dai-eth.json +58 -0
  145. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +23 -0
  146. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +23 -0
  147. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +9 -0
  148. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +16 -0
  149. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +23 -0
  150. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +12 -0
  151. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +7 -0
  152. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +12 -0
  153. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +12 -0
  154. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +7 -0
  155. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-univ3-usdt-dai-eth.json +7 -0
  156. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +7 -0
  157. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +7 -0
  158. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +7 -0
  159. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +7 -0
  160. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +130 -0
  161. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +136 -0
  162. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +100 -0
  163. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +100 -0
  164. package/build/executor/fixtures/executor02/routes/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +166 -0
  165. package/build/executor/fixtures/executor02/routes/price-route-multiswap-univ3-usdt-dai-eth.json +190 -0
  166. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +114 -0
  167. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +114 -0
  168. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +55 -0
  169. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +73 -0
  170. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +82 -0
  171. package/build/generic-swap-transaction-builder.js +4 -1
  172. package/build/generic-swap-transaction-builder.js.map +1 -1
  173. package/package.json +1 -1
  174. package/src/dex/cables/cables-e2e.test.ts +40 -40
  175. package/src/dex/cables/cables.ts +37 -10
  176. package/src/generic-swap-transaction-builder.ts +7 -1
  177. package/.idea/aws.xml +0 -17
  178. package/.idea/codeStyles/Project.xml +0 -19
  179. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  180. package/.idea/misc.xml +0 -6
  181. package/.idea/modules.xml +0 -8
  182. package/.idea/paraswap-dex-lib.iml +0 -9
  183. package/.idea/prettier.xml +0 -7
  184. package/.idea/vcs.xml +0 -6
  185. package/build/abi/integral/factory.json +0 -333
  186. package/build/dex/bProtocol.d.ts +0 -18
  187. package/build/dex/bProtocol.js +0 -39
  188. package/build/dex/bProtocol.js.map +0 -1
  189. package/build/dex/bancor.d.ts +0 -26
  190. package/build/dex/bancor.js +0 -58
  191. package/build/dex/bancor.js.map +0 -1
  192. package/build/dex/compound.d.ts +0 -18
  193. package/build/dex/compound.js +0 -46
  194. package/build/dex/compound.js.map +0 -1
  195. package/build/dex/curve-v2.d.ts +0 -58
  196. package/build/dex/curve-v2.js +0 -180
  197. package/build/dex/curve-v2.js.map +0 -1
  198. package/build/dex/dodo-v1.d.ts +0 -33
  199. package/build/dex/dodo-v1.js +0 -63
  200. package/build/dex/dodo-v1.js.map +0 -1
  201. package/build/dex/fluid-dex/fluid-dex-generate-pool.d.ts +0 -49
  202. package/build/dex/fluid-dex/fluid-dex-generate-pool.js +0 -104
  203. package/build/dex/fluid-dex/fluid-dex-generate-pool.js.map +0 -1
  204. package/build/dex/integral/config.d.ts +0 -4
  205. package/build/dex/integral/config.js +0 -20
  206. package/build/dex/integral/config.js.map +0 -1
  207. package/build/dex/integral/context.d.ts +0 -40
  208. package/build/dex/integral/context.js +0 -158
  209. package/build/dex/integral/context.js.map +0 -1
  210. package/build/dex/integral/integral-factory.d.ts +0 -24
  211. package/build/dex/integral/integral-factory.js +0 -95
  212. package/build/dex/integral/integral-factory.js.map +0 -1
  213. package/build/dex/integral/integral-pool.d.ts +0 -50
  214. package/build/dex/integral/integral-pool.js +0 -149
  215. package/build/dex/integral/integral-pool.js.map +0 -1
  216. package/build/dex/integral/integral-pricing.d.ts +0 -18
  217. package/build/dex/integral/integral-pricing.js +0 -114
  218. package/build/dex/integral/integral-pricing.js.map +0 -1
  219. package/build/dex/integral/integral-relayer.d.ts +0 -42
  220. package/build/dex/integral/integral-relayer.js +0 -192
  221. package/build/dex/integral/integral-relayer.js.map +0 -1
  222. package/build/dex/integral/integral-token.d.ts +0 -27
  223. package/build/dex/integral/integral-token.js +0 -59
  224. package/build/dex/integral/integral-token.js.map +0 -1
  225. package/build/dex/integral/integral.js +0 -376
  226. package/build/dex/integral/integral.js.map +0 -1
  227. package/build/dex/integral/types.d.ts +0 -85
  228. package/build/dex/integral/types.js +0 -9
  229. package/build/dex/integral/types.js.map +0 -1
  230. package/build/dex/integral/utils-e2e.d.ts +0 -9
  231. package/build/dex/integral/utils-e2e.js +0 -131
  232. package/build/dex/integral/utils-e2e.js.map +0 -1
  233. package/build/dex/integral/utils.d.ts +0 -17
  234. package/build/dex/integral/utils.js +0 -94
  235. package/build/dex/integral/utils.js.map +0 -1
  236. package/build/dex/lido.d.ts +0 -19
  237. package/build/dex/lido.js +0 -42
  238. package/build/dex/lido.js.map +0 -1
  239. package/build/dex/onebit.d.ts +0 -25
  240. package/build/dex/onebit.js +0 -42
  241. package/build/dex/onebit.js.map +0 -1
  242. package/build/dex/smoothy.d.ts +0 -26
  243. package/build/dex/smoothy.js +0 -48
  244. package/build/dex/smoothy.js.map +0 -1
  245. package/build/dex/stable-pool.d.ts +0 -28
  246. package/build/dex/stable-pool.js +0 -62
  247. package/build/dex/stable-pool.js.map +0 -1
  248. package/build/dex/trader-joe-v2.1/optimizer.d.ts +0 -2
  249. package/build/dex/trader-joe-v2.1/optimizer.js +0 -47
  250. package/build/dex/trader-joe-v2.1/optimizer.js.map +0 -1
  251. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.d.ts +0 -7
  252. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js +0 -20
  253. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js.map +0 -1
  254. package/build/dex/trader-joe-v2.1.d.ts +0 -43
  255. package/build/dex/trader-joe-v2.1.js +0 -79
  256. package/build/dex/trader-joe-v2.1.js.map +0 -1
@@ -1,32 +1,34 @@
1
1
  [
2
- {
3
- "inputs": [],
4
- "stateMutability": "nonpayable",
5
- "type": "constructor"
6
- },
7
2
  {
8
3
  "anonymous": false,
9
4
  "inputs": [
10
5
  {
11
6
  "indexed": true,
12
- "internalType": "address",
13
- "name": "owner",
7
+ "name": "buyer",
14
8
  "type": "address"
15
9
  },
16
10
  {
17
- "indexed": true,
18
- "internalType": "address",
19
- "name": "spender",
20
- "type": "address"
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"
21
24
  },
22
25
  {
23
26
  "indexed": false,
24
- "internalType": "uint256",
25
- "name": "value",
27
+ "name": "tokens_bought",
26
28
  "type": "uint256"
27
29
  }
28
30
  ],
29
- "name": "Approval",
31
+ "name": "TokenExchange",
30
32
  "type": "event"
31
33
  },
32
34
  {
@@ -34,36 +36,63 @@
34
36
  "inputs": [
35
37
  {
36
38
  "indexed": true,
37
- "internalType": "address",
38
- "name": "sender",
39
+ "name": "buyer",
39
40
  "type": "address"
40
41
  },
41
42
  {
42
43
  "indexed": false,
43
- "internalType": "uint256",
44
- "name": "amount0Out",
45
- "type": "uint256"
44
+ "name": "sold_id",
45
+ "type": "int128"
46
46
  },
47
47
  {
48
48
  "indexed": false,
49
- "internalType": "uint256",
50
- "name": "amount1Out",
49
+ "name": "tokens_sold",
51
50
  "type": "uint256"
52
51
  },
53
52
  {
54
53
  "indexed": false,
55
- "internalType": "uint256",
56
- "name": "liquidityIn",
57
- "type": "uint256"
54
+ "name": "bought_id",
55
+ "type": "int128"
58
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": [
59
69
  {
60
70
  "indexed": true,
61
- "internalType": "address",
62
- "name": "to",
71
+ "name": "provider",
63
72
  "type": "address"
73
+ },
74
+ {
75
+ "indexed": false,
76
+ "name": "token_amounts",
77
+ "type": "uint256[2]"
78
+ },
79
+ {
80
+ "indexed": false,
81
+ "name": "fees",
82
+ "type": "uint256[2]"
83
+ },
84
+ {
85
+ "indexed": false,
86
+ "name": "invariant",
87
+ "type": "uint256"
88
+ },
89
+ {
90
+ "indexed": false,
91
+ "name": "token_supply",
92
+ "type": "uint256"
64
93
  }
65
94
  ],
66
- "name": "Burn",
95
+ "name": "AddLiquidity",
67
96
  "type": "event"
68
97
  },
69
98
  {
@@ -71,88 +100,136 @@
71
100
  "inputs": [
72
101
  {
73
102
  "indexed": true,
74
- "internalType": "address",
75
- "name": "sender",
103
+ "name": "provider",
76
104
  "type": "address"
77
105
  },
78
106
  {
79
107
  "indexed": false,
80
- "internalType": "uint256",
81
- "name": "amount0In",
108
+ "name": "token_amounts",
109
+ "type": "uint256[2]"
110
+ },
111
+ {
112
+ "indexed": false,
113
+ "name": "fees",
114
+ "type": "uint256[2]"
115
+ },
116
+ {
117
+ "indexed": false,
118
+ "name": "token_supply",
82
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"
83
132
  },
84
133
  {
85
134
  "indexed": false,
86
- "internalType": "uint256",
87
- "name": "amount1In",
135
+ "name": "token_amount",
88
136
  "type": "uint256"
89
137
  },
90
138
  {
91
139
  "indexed": false,
92
- "internalType": "uint256",
93
- "name": "liquidityOut",
140
+ "name": "coin_amount",
94
141
  "type": "uint256"
95
142
  },
96
143
  {
97
- "indexed": true,
98
- "internalType": "address",
99
- "name": "to",
100
- "type": "address"
144
+ "indexed": false,
145
+ "name": "token_supply",
146
+ "type": "uint256"
101
147
  }
102
148
  ],
103
- "name": "Mint",
149
+ "name": "RemoveLiquidityOne",
104
150
  "type": "event"
105
151
  },
106
152
  {
107
153
  "anonymous": false,
108
154
  "inputs": [
155
+ {
156
+ "indexed": true,
157
+ "name": "provider",
158
+ "type": "address"
159
+ },
109
160
  {
110
161
  "indexed": false,
111
- "internalType": "uint256",
112
- "name": "fee",
162
+ "name": "token_amounts",
163
+ "type": "uint256[2]"
164
+ },
165
+ {
166
+ "indexed": false,
167
+ "name": "fees",
168
+ "type": "uint256[2]"
169
+ },
170
+ {
171
+ "indexed": false,
172
+ "name": "invariant",
173
+ "type": "uint256"
174
+ },
175
+ {
176
+ "indexed": false,
177
+ "name": "token_supply",
113
178
  "type": "uint256"
114
179
  }
115
180
  ],
116
- "name": "SetBurnFee",
181
+ "name": "RemoveLiquidityImbalance",
117
182
  "type": "event"
118
183
  },
119
184
  {
120
185
  "anonymous": false,
121
186
  "inputs": [
122
187
  {
123
- "indexed": false,
124
- "internalType": "uint256",
125
- "name": "fee",
188
+ "indexed": true,
189
+ "name": "deadline",
126
190
  "type": "uint256"
191
+ },
192
+ {
193
+ "indexed": true,
194
+ "name": "admin",
195
+ "type": "address"
127
196
  }
128
197
  ],
129
- "name": "SetMintFee",
198
+ "name": "CommitNewAdmin",
130
199
  "type": "event"
131
200
  },
132
201
  {
133
202
  "anonymous": false,
134
203
  "inputs": [
135
204
  {
136
- "indexed": false,
137
- "internalType": "address",
138
- "name": "account",
205
+ "indexed": true,
206
+ "name": "admin",
139
207
  "type": "address"
140
208
  }
141
209
  ],
142
- "name": "SetOracle",
210
+ "name": "NewAdmin",
143
211
  "type": "event"
144
212
  },
145
213
  {
146
214
  "anonymous": false,
147
215
  "inputs": [
216
+ {
217
+ "indexed": true,
218
+ "name": "deadline",
219
+ "type": "uint256"
220
+ },
148
221
  {
149
222
  "indexed": false,
150
- "internalType": "uint256",
151
223
  "name": "fee",
152
224
  "type": "uint256"
225
+ },
226
+ {
227
+ "indexed": false,
228
+ "name": "admin_fee",
229
+ "type": "uint256"
153
230
  }
154
231
  ],
155
- "name": "SetSwapFee",
232
+ "name": "CommitNewFee",
156
233
  "type": "event"
157
234
  },
158
235
  {
@@ -160,101 +237,116 @@
160
237
  "inputs": [
161
238
  {
162
239
  "indexed": false,
163
- "internalType": "address",
164
- "name": "trader",
165
- "type": "address"
240
+ "name": "fee",
241
+ "type": "uint256"
242
+ },
243
+ {
244
+ "indexed": false,
245
+ "name": "admin_fee",
246
+ "type": "uint256"
166
247
  }
167
248
  ],
168
- "name": "SetTrader",
249
+ "name": "NewFee",
169
250
  "type": "event"
170
251
  },
171
252
  {
172
253
  "anonymous": false,
173
254
  "inputs": [
174
255
  {
175
- "indexed": true,
176
- "internalType": "address",
177
- "name": "sender",
178
- "type": "address"
256
+ "indexed": false,
257
+ "name": "old_A",
258
+ "type": "uint256"
179
259
  },
180
260
  {
181
261
  "indexed": false,
182
- "internalType": "uint256",
183
- "name": "amount0In",
262
+ "name": "new_A",
184
263
  "type": "uint256"
185
264
  },
186
265
  {
187
266
  "indexed": false,
188
- "internalType": "uint256",
189
- "name": "amount1In",
267
+ "name": "initial_time",
190
268
  "type": "uint256"
191
269
  },
192
270
  {
193
271
  "indexed": false,
194
- "internalType": "uint256",
195
- "name": "amount0Out",
272
+ "name": "future_time",
196
273
  "type": "uint256"
197
- },
274
+ }
275
+ ],
276
+ "name": "RampA",
277
+ "type": "event"
278
+ },
279
+ {
280
+ "anonymous": false,
281
+ "inputs": [
198
282
  {
199
283
  "indexed": false,
200
- "internalType": "uint256",
201
- "name": "amount1Out",
284
+ "name": "A",
202
285
  "type": "uint256"
203
286
  },
204
287
  {
205
- "indexed": true,
206
- "internalType": "address",
207
- "name": "to",
208
- "type": "address"
288
+ "indexed": false,
289
+ "name": "t",
290
+ "type": "uint256"
209
291
  }
210
292
  ],
211
- "name": "Swap",
293
+ "name": "StopRampA",
212
294
  "type": "event"
213
295
  },
214
296
  {
215
- "anonymous": false,
216
297
  "inputs": [
217
298
  {
218
- "indexed": true,
219
- "internalType": "address",
220
- "name": "from",
299
+ "name": "_owner",
221
300
  "type": "address"
222
301
  },
223
302
  {
224
- "indexed": true,
225
- "internalType": "address",
226
- "name": "to",
303
+ "name": "_coins",
304
+ "type": "address[2]"
305
+ },
306
+ {
307
+ "name": "_pool_token",
227
308
  "type": "address"
228
309
  },
229
310
  {
230
- "indexed": false,
231
- "internalType": "uint256",
232
- "name": "value",
311
+ "name": "_base_pool",
312
+ "type": "address"
313
+ },
314
+ {
315
+ "name": "_A",
316
+ "type": "uint256"
317
+ },
318
+ {
319
+ "name": "_fee",
320
+ "type": "uint256"
321
+ },
322
+ {
323
+ "name": "_admin_fee",
233
324
  "type": "uint256"
234
325
  }
235
326
  ],
236
- "name": "Transfer",
237
- "type": "event"
327
+ "outputs": [],
328
+ "stateMutability": "nonpayable",
329
+ "type": "constructor"
238
330
  },
239
331
  {
332
+ "gas": 5205,
240
333
  "inputs": [],
241
- "name": "DOMAIN_TYPEHASH",
334
+ "name": "A",
242
335
  "outputs": [
243
336
  {
244
- "internalType": "bytes32",
245
337
  "name": "",
246
- "type": "bytes32"
338
+ "type": "uint256"
247
339
  }
248
340
  ],
249
341
  "stateMutability": "view",
250
342
  "type": "function"
251
343
  },
252
344
  {
345
+ "gas": 5167,
253
346
  "inputs": [],
254
- "name": "MINIMUM_LIQUIDITY",
347
+ "name": "A_precise",
255
348
  "outputs": [
256
349
  {
257
- "internalType": "uint256",
258
350
  "name": "",
259
351
  "type": "uint256"
260
352
  }
@@ -263,35 +355,33 @@
263
355
  "type": "function"
264
356
  },
265
357
  {
358
+ "gas": 992854,
266
359
  "inputs": [],
267
- "name": "PERMIT_TYPEHASH",
360
+ "name": "get_virtual_price",
268
361
  "outputs": [
269
362
  {
270
- "internalType": "bytes32",
271
363
  "name": "",
272
- "type": "bytes32"
364
+ "type": "uint256"
273
365
  }
274
366
  ],
275
367
  "stateMutability": "view",
276
368
  "type": "function"
277
369
  },
278
370
  {
371
+ "gas": 3939870,
279
372
  "inputs": [
280
373
  {
281
- "internalType": "address",
282
- "name": "",
283
- "type": "address"
374
+ "name": "amounts",
375
+ "type": "uint256[2]"
284
376
  },
285
377
  {
286
- "internalType": "address",
287
- "name": "",
288
- "type": "address"
378
+ "name": "is_deposit",
379
+ "type": "bool"
289
380
  }
290
381
  ],
291
- "name": "allowance",
382
+ "name": "calc_token_amount",
292
383
  "outputs": [
293
384
  {
294
- "internalType": "uint256",
295
385
  "name": "",
296
386
  "type": "uint256"
297
387
  }
@@ -300,41 +390,46 @@
300
390
  "type": "function"
301
391
  },
302
392
  {
393
+ "gas": 6138492,
303
394
  "inputs": [
304
395
  {
305
- "internalType": "address",
306
- "name": "spender",
307
- "type": "address"
396
+ "name": "amounts",
397
+ "type": "uint256[2]"
308
398
  },
309
399
  {
310
- "internalType": "uint256",
311
- "name": "value",
400
+ "name": "min_mint_amount",
312
401
  "type": "uint256"
313
402
  }
314
403
  ],
315
- "name": "approve",
404
+ "name": "add_liquidity",
316
405
  "outputs": [
317
406
  {
318
- "internalType": "bool",
319
407
  "name": "",
320
- "type": "bool"
408
+ "type": "uint256"
321
409
  }
322
410
  ],
323
411
  "stateMutability": "nonpayable",
324
412
  "type": "function"
325
413
  },
326
414
  {
415
+ "gas": 2390368,
327
416
  "inputs": [
328
417
  {
329
- "internalType": "address",
330
- "name": "",
331
- "type": "address"
418
+ "name": "i",
419
+ "type": "int128"
420
+ },
421
+ {
422
+ "name": "j",
423
+ "type": "int128"
424
+ },
425
+ {
426
+ "name": "dx",
427
+ "type": "uint256"
332
428
  }
333
429
  ],
334
- "name": "balanceOf",
430
+ "name": "get_dy",
335
431
  "outputs": [
336
432
  {
337
- "internalType": "uint256",
338
433
  "name": "",
339
434
  "type": "uint256"
340
435
  }
@@ -343,35 +438,24 @@
343
438
  "type": "function"
344
439
  },
345
440
  {
441
+ "gas": 2393485,
346
442
  "inputs": [
347
443
  {
348
- "internalType": "address",
349
- "name": "to",
350
- "type": "address"
351
- }
352
- ],
353
- "name": "burn",
354
- "outputs": [
444
+ "name": "i",
445
+ "type": "int128"
446
+ },
355
447
  {
356
- "internalType": "uint256",
357
- "name": "amount0Out",
358
- "type": "uint256"
448
+ "name": "j",
449
+ "type": "int128"
359
450
  },
360
451
  {
361
- "internalType": "uint256",
362
- "name": "amount1Out",
452
+ "name": "dx",
363
453
  "type": "uint256"
364
454
  }
365
455
  ],
366
- "stateMutability": "nonpayable",
367
- "type": "function"
368
- },
369
- {
370
- "inputs": [],
371
- "name": "burnFee",
456
+ "name": "get_dy_underlying",
372
457
  "outputs": [
373
458
  {
374
- "internalType": "uint256",
375
459
  "name": "",
376
460
  "type": "uint256"
377
461
  }
@@ -380,183 +464,125 @@
380
464
  "type": "function"
381
465
  },
382
466
  {
467
+ "gas": 2617568,
383
468
  "inputs": [
384
469
  {
385
- "internalType": "address",
386
- "name": "to",
387
- "type": "address"
388
- }
389
- ],
390
- "name": "collect",
391
- "outputs": [],
392
- "stateMutability": "nonpayable",
393
- "type": "function"
394
- },
395
- {
396
- "inputs": [],
397
- "name": "decimals",
398
- "outputs": [
470
+ "name": "i",
471
+ "type": "int128"
472
+ },
399
473
  {
400
- "internalType": "uint8",
401
- "name": "",
402
- "type": "uint8"
403
- }
404
- ],
405
- "stateMutability": "view",
406
- "type": "function"
407
- },
408
- {
409
- "inputs": [
474
+ "name": "j",
475
+ "type": "int128"
476
+ },
410
477
  {
411
- "internalType": "address",
412
- "name": "spender",
413
- "type": "address"
478
+ "name": "dx",
479
+ "type": "uint256"
414
480
  },
415
481
  {
416
- "internalType": "uint256",
417
- "name": "subtractedValue",
482
+ "name": "min_dy",
418
483
  "type": "uint256"
419
484
  }
420
485
  ],
421
- "name": "decreaseAllowance",
486
+ "name": "exchange",
422
487
  "outputs": [
423
488
  {
424
- "internalType": "bool",
425
489
  "name": "",
426
- "type": "bool"
490
+ "type": "uint256"
427
491
  }
428
492
  ],
429
493
  "stateMutability": "nonpayable",
430
494
  "type": "function"
431
495
  },
432
496
  {
433
- "inputs": [],
434
- "name": "factory",
435
- "outputs": [
436
- {
437
- "internalType": "address",
438
- "name": "",
439
- "type": "address"
440
- }
441
- ],
442
- "stateMutability": "view",
443
- "type": "function"
444
- },
445
- {
497
+ "gas": 2632475,
446
498
  "inputs": [
447
499
  {
448
- "internalType": "uint256",
449
- "name": "amount0",
500
+ "name": "i",
501
+ "type": "int128"
502
+ },
503
+ {
504
+ "name": "j",
505
+ "type": "int128"
506
+ },
507
+ {
508
+ "name": "dx",
450
509
  "type": "uint256"
451
510
  },
452
511
  {
453
- "internalType": "bytes",
454
- "name": "data",
455
- "type": "bytes"
512
+ "name": "min_dy",
513
+ "type": "uint256"
456
514
  }
457
515
  ],
458
- "name": "getDepositAmount0In",
516
+ "name": "exchange_underlying",
459
517
  "outputs": [
460
518
  {
461
- "internalType": "uint256",
462
519
  "name": "",
463
520
  "type": "uint256"
464
521
  }
465
522
  ],
466
- "stateMutability": "view",
523
+ "stateMutability": "nonpayable",
467
524
  "type": "function"
468
525
  },
469
526
  {
527
+ "gas": 163289,
470
528
  "inputs": [
471
529
  {
472
- "internalType": "uint256",
473
- "name": "amount1",
530
+ "name": "_amount",
474
531
  "type": "uint256"
475
532
  },
476
533
  {
477
- "internalType": "bytes",
478
- "name": "data",
479
- "type": "bytes"
534
+ "name": "min_amounts",
535
+ "type": "uint256[2]"
480
536
  }
481
537
  ],
482
- "name": "getDepositAmount1In",
538
+ "name": "remove_liquidity",
483
539
  "outputs": [
484
540
  {
485
- "internalType": "uint256",
486
541
  "name": "",
487
- "type": "uint256"
542
+ "type": "uint256[2]"
488
543
  }
489
544
  ],
490
- "stateMutability": "view",
491
- "type": "function"
492
- },
493
- {
494
- "inputs": [],
495
- "name": "getDomainSeparator",
496
- "outputs": [
497
- {
498
- "internalType": "bytes32",
499
- "name": "",
500
- "type": "bytes32"
501
- }
502
- ],
503
- "stateMutability": "view",
545
+ "stateMutability": "nonpayable",
504
546
  "type": "function"
505
547
  },
506
548
  {
507
- "inputs": [],
508
- "name": "getFees",
509
- "outputs": [
549
+ "gas": 6138317,
550
+ "inputs": [
510
551
  {
511
- "internalType": "uint256",
512
- "name": "",
513
- "type": "uint256"
552
+ "name": "amounts",
553
+ "type": "uint256[2]"
514
554
  },
515
555
  {
516
- "internalType": "uint256",
517
- "name": "",
556
+ "name": "max_burn_amount",
518
557
  "type": "uint256"
519
558
  }
520
559
  ],
521
- "stateMutability": "view",
522
- "type": "function"
523
- },
524
- {
525
- "inputs": [],
526
- "name": "getReserves",
560
+ "name": "remove_liquidity_imbalance",
527
561
  "outputs": [
528
562
  {
529
- "internalType": "uint112",
530
563
  "name": "",
531
- "type": "uint112"
532
- },
533
- {
534
- "internalType": "uint112",
535
- "name": "",
536
- "type": "uint112"
564
+ "type": "uint256"
537
565
  }
538
566
  ],
539
- "stateMutability": "view",
567
+ "stateMutability": "nonpayable",
540
568
  "type": "function"
541
569
  },
542
570
  {
571
+ "gas": 4335,
543
572
  "inputs": [
544
573
  {
545
- "internalType": "uint256",
546
- "name": "amount1Out",
574
+ "name": "_token_amount",
547
575
  "type": "uint256"
548
576
  },
549
577
  {
550
- "internalType": "bytes",
551
- "name": "data",
552
- "type": "bytes"
578
+ "name": "i",
579
+ "type": "int128"
553
580
  }
554
581
  ],
555
- "name": "getSwapAmount0In",
582
+ "name": "calc_withdraw_one_coin",
556
583
  "outputs": [
557
584
  {
558
- "internalType": "uint256",
559
- "name": "swapAmount0In",
585
+ "name": "",
560
586
  "type": "uint256"
561
587
  }
562
588
  ],
@@ -564,154 +590,197 @@
564
590
  "type": "function"
565
591
  },
566
592
  {
593
+ "gas": 3827137,
567
594
  "inputs": [
568
595
  {
569
- "internalType": "uint256",
570
- "name": "amount1In",
596
+ "name": "_token_amount",
571
597
  "type": "uint256"
572
598
  },
573
599
  {
574
- "internalType": "bytes",
575
- "name": "data",
576
- "type": "bytes"
600
+ "name": "i",
601
+ "type": "int128"
602
+ },
603
+ {
604
+ "name": "_min_amount",
605
+ "type": "uint256"
577
606
  }
578
607
  ],
579
- "name": "getSwapAmount0Out",
608
+ "name": "remove_liquidity_one_coin",
580
609
  "outputs": [
581
610
  {
582
- "internalType": "uint256",
583
- "name": "swapAmount0Out",
611
+ "name": "",
584
612
  "type": "uint256"
585
613
  }
586
614
  ],
587
- "stateMutability": "view",
615
+ "stateMutability": "nonpayable",
588
616
  "type": "function"
589
617
  },
590
618
  {
619
+ "gas": 151906,
591
620
  "inputs": [
592
621
  {
593
- "internalType": "uint256",
594
- "name": "amount0Out",
622
+ "name": "_future_A",
595
623
  "type": "uint256"
596
624
  },
597
625
  {
598
- "internalType": "bytes",
599
- "name": "data",
600
- "type": "bytes"
601
- }
602
- ],
603
- "name": "getSwapAmount1In",
604
- "outputs": [
605
- {
606
- "internalType": "uint256",
607
- "name": "swapAmount1In",
626
+ "name": "_future_time",
608
627
  "type": "uint256"
609
628
  }
610
629
  ],
611
- "stateMutability": "view",
630
+ "name": "ramp_A",
631
+ "outputs": [],
632
+ "stateMutability": "nonpayable",
612
633
  "type": "function"
613
634
  },
614
635
  {
636
+ "gas": 148667,
637
+ "inputs": [],
638
+ "name": "stop_ramp_A",
639
+ "outputs": [],
640
+ "stateMutability": "nonpayable",
641
+ "type": "function"
642
+ },
643
+ {
644
+ "gas": 110491,
615
645
  "inputs": [
616
646
  {
617
- "internalType": "uint256",
618
- "name": "amount0In",
647
+ "name": "new_fee",
619
648
  "type": "uint256"
620
649
  },
621
650
  {
622
- "internalType": "bytes",
623
- "name": "data",
624
- "type": "bytes"
625
- }
626
- ],
627
- "name": "getSwapAmount1Out",
628
- "outputs": [
629
- {
630
- "internalType": "uint256",
631
- "name": "swapAmount1Out",
651
+ "name": "new_admin_fee",
632
652
  "type": "uint256"
633
653
  }
634
654
  ],
635
- "stateMutability": "view",
655
+ "name": "commit_new_fee",
656
+ "outputs": [],
657
+ "stateMutability": "nonpayable",
636
658
  "type": "function"
637
659
  },
638
660
  {
661
+ "gas": 97272,
662
+ "inputs": [],
663
+ "name": "apply_new_fee",
664
+ "outputs": [],
665
+ "stateMutability": "nonpayable",
666
+ "type": "function"
667
+ },
668
+ {
669
+ "gas": 21925,
670
+ "inputs": [],
671
+ "name": "revert_new_parameters",
672
+ "outputs": [],
673
+ "stateMutability": "nonpayable",
674
+ "type": "function"
675
+ },
676
+ {
677
+ "gas": 74663,
639
678
  "inputs": [
640
679
  {
641
- "internalType": "address",
642
- "name": "spender",
680
+ "name": "_owner",
643
681
  "type": "address"
644
- },
682
+ }
683
+ ],
684
+ "name": "commit_transfer_ownership",
685
+ "outputs": [],
686
+ "stateMutability": "nonpayable",
687
+ "type": "function"
688
+ },
689
+ {
690
+ "gas": 60740,
691
+ "inputs": [],
692
+ "name": "apply_transfer_ownership",
693
+ "outputs": [],
694
+ "stateMutability": "nonpayable",
695
+ "type": "function"
696
+ },
697
+ {
698
+ "gas": 22015,
699
+ "inputs": [],
700
+ "name": "revert_transfer_ownership",
701
+ "outputs": [],
702
+ "stateMutability": "nonpayable",
703
+ "type": "function"
704
+ },
705
+ {
706
+ "gas": 3511,
707
+ "inputs": [
645
708
  {
646
- "internalType": "uint256",
647
- "name": "addedValue",
709
+ "name": "i",
648
710
  "type": "uint256"
649
711
  }
650
712
  ],
651
- "name": "increaseAllowance",
713
+ "name": "admin_balances",
652
714
  "outputs": [
653
715
  {
654
- "internalType": "bool",
655
716
  "name": "",
656
- "type": "bool"
717
+ "type": "uint256"
657
718
  }
658
719
  ],
720
+ "stateMutability": "view",
721
+ "type": "function"
722
+ },
723
+ {
724
+ "gas": 9248,
725
+ "inputs": [],
726
+ "name": "withdraw_admin_fees",
727
+ "outputs": [],
659
728
  "stateMutability": "nonpayable",
660
729
  "type": "function"
661
730
  },
662
731
  {
663
- "inputs": [
664
- {
665
- "internalType": "address",
666
- "name": "_token0",
667
- "type": "address"
668
- },
669
- {
670
- "internalType": "address",
671
- "name": "_token1",
672
- "type": "address"
673
- },
674
- {
675
- "internalType": "address",
676
- "name": "_oracle",
677
- "type": "address"
678
- },
679
- {
680
- "internalType": "address",
681
- "name": "_trader",
682
- "type": "address"
683
- }
684
- ],
685
- "name": "initialize",
732
+ "gas": 74995,
733
+ "inputs": [],
734
+ "name": "donate_admin_fees",
686
735
  "outputs": [],
687
736
  "stateMutability": "nonpayable",
688
737
  "type": "function"
689
738
  },
690
739
  {
740
+ "gas": 38028,
741
+ "inputs": [],
742
+ "name": "kill_me",
743
+ "outputs": [],
744
+ "stateMutability": "nonpayable",
745
+ "type": "function"
746
+ },
747
+ {
748
+ "gas": 22165,
749
+ "inputs": [],
750
+ "name": "unkill_me",
751
+ "outputs": [],
752
+ "stateMutability": "nonpayable",
753
+ "type": "function"
754
+ },
755
+ {
756
+ "gas": 2250,
691
757
  "inputs": [
692
758
  {
693
- "internalType": "address",
694
- "name": "to",
695
- "type": "address"
759
+ "name": "arg0",
760
+ "type": "uint256"
696
761
  }
697
762
  ],
698
- "name": "mint",
763
+ "name": "coins",
699
764
  "outputs": [
700
765
  {
701
- "internalType": "uint256",
702
- "name": "liquidityOut",
703
- "type": "uint256"
766
+ "name": "",
767
+ "type": "address"
704
768
  }
705
769
  ],
706
- "stateMutability": "nonpayable",
770
+ "stateMutability": "view",
707
771
  "type": "function"
708
772
  },
709
773
  {
710
- "inputs": [],
711
- "name": "mintFee",
774
+ "gas": 2280,
775
+ "inputs": [
776
+ {
777
+ "name": "arg0",
778
+ "type": "uint256"
779
+ }
780
+ ],
781
+ "name": "balances",
712
782
  "outputs": [
713
783
  {
714
- "internalType": "uint256",
715
784
  "name": "",
716
785
  "type": "uint256"
717
786
  }
@@ -720,30 +789,24 @@
720
789
  "type": "function"
721
790
  },
722
791
  {
792
+ "gas": 2201,
723
793
  "inputs": [],
724
- "name": "name",
794
+ "name": "fee",
725
795
  "outputs": [
726
796
  {
727
- "internalType": "string",
728
797
  "name": "",
729
- "type": "string"
798
+ "type": "uint256"
730
799
  }
731
800
  ],
732
801
  "stateMutability": "view",
733
802
  "type": "function"
734
803
  },
735
804
  {
736
- "inputs": [
737
- {
738
- "internalType": "address",
739
- "name": "",
740
- "type": "address"
741
- }
742
- ],
743
- "name": "nonces",
805
+ "gas": 2231,
806
+ "inputs": [],
807
+ "name": "admin_fee",
744
808
  "outputs": [
745
809
  {
746
- "internalType": "uint256",
747
810
  "name": "",
748
811
  "type": "uint256"
749
812
  }
@@ -752,11 +815,11 @@
752
815
  "type": "function"
753
816
  },
754
817
  {
818
+ "gas": 2261,
755
819
  "inputs": [],
756
- "name": "oracle",
820
+ "name": "owner",
757
821
  "outputs": [
758
822
  {
759
- "internalType": "address",
760
823
  "name": "",
761
824
  "type": "address"
762
825
  }
@@ -765,147 +828,81 @@
765
828
  "type": "function"
766
829
  },
767
830
  {
768
- "inputs": [
769
- {
770
- "internalType": "address",
771
- "name": "owner",
772
- "type": "address"
773
- },
831
+ "gas": 2291,
832
+ "inputs": [],
833
+ "name": "base_pool",
834
+ "outputs": [
774
835
  {
775
- "internalType": "address",
776
- "name": "spender",
836
+ "name": "",
777
837
  "type": "address"
778
- },
779
- {
780
- "internalType": "uint256",
781
- "name": "value",
782
- "type": "uint256"
783
- },
784
- {
785
- "internalType": "uint256",
786
- "name": "deadline",
787
- "type": "uint256"
788
- },
789
- {
790
- "internalType": "uint8",
791
- "name": "v",
792
- "type": "uint8"
793
- },
794
- {
795
- "internalType": "bytes32",
796
- "name": "r",
797
- "type": "bytes32"
798
- },
799
- {
800
- "internalType": "bytes32",
801
- "name": "s",
802
- "type": "bytes32"
803
838
  }
804
839
  ],
805
- "name": "permit",
806
- "outputs": [],
807
- "stateMutability": "nonpayable",
840
+ "stateMutability": "view",
808
841
  "type": "function"
809
842
  },
810
843
  {
811
- "inputs": [
844
+ "gas": 2321,
845
+ "inputs": [],
846
+ "name": "base_virtual_price",
847
+ "outputs": [
812
848
  {
813
- "internalType": "uint256",
814
- "name": "fee",
849
+ "name": "",
815
850
  "type": "uint256"
816
851
  }
817
852
  ],
818
- "name": "setBurnFee",
819
- "outputs": [],
820
- "stateMutability": "nonpayable",
853
+ "stateMutability": "view",
821
854
  "type": "function"
822
855
  },
823
856
  {
824
- "inputs": [
857
+ "gas": 2351,
858
+ "inputs": [],
859
+ "name": "base_cache_updated",
860
+ "outputs": [
825
861
  {
826
- "internalType": "uint256",
827
- "name": "fee",
862
+ "name": "",
828
863
  "type": "uint256"
829
864
  }
830
865
  ],
831
- "name": "setMintFee",
832
- "outputs": [],
833
- "stateMutability": "nonpayable",
834
- "type": "function"
835
- },
836
- {
837
- "inputs": [
838
- {
839
- "internalType": "address",
840
- "name": "_oracle",
841
- "type": "address"
842
- }
843
- ],
844
- "name": "setOracle",
845
- "outputs": [],
846
- "stateMutability": "nonpayable",
866
+ "stateMutability": "view",
847
867
  "type": "function"
848
868
  },
849
869
  {
870
+ "gas": 2490,
850
871
  "inputs": [
851
872
  {
852
- "internalType": "uint256",
853
- "name": "fee",
873
+ "name": "arg0",
854
874
  "type": "uint256"
855
875
  }
856
876
  ],
857
- "name": "setSwapFee",
858
- "outputs": [],
859
- "stateMutability": "nonpayable",
860
- "type": "function"
861
- },
862
- {
863
- "inputs": [
877
+ "name": "base_coins",
878
+ "outputs": [
864
879
  {
865
- "internalType": "address",
866
- "name": "_trader",
880
+ "name": "",
867
881
  "type": "address"
868
882
  }
869
883
  ],
870
- "name": "setTrader",
871
- "outputs": [],
872
- "stateMutability": "nonpayable",
884
+ "stateMutability": "view",
873
885
  "type": "function"
874
886
  },
875
887
  {
876
- "inputs": [
877
- {
878
- "internalType": "uint256",
879
- "name": "amount0Out",
880
- "type": "uint256"
881
- },
888
+ "gas": 2411,
889
+ "inputs": [],
890
+ "name": "initial_A",
891
+ "outputs": [
882
892
  {
883
- "internalType": "uint256",
884
- "name": "amount1Out",
893
+ "name": "",
885
894
  "type": "uint256"
886
- },
887
- {
888
- "internalType": "address",
889
- "name": "to",
890
- "type": "address"
891
- },
892
- {
893
- "internalType": "bytes",
894
- "name": "data",
895
- "type": "bytes"
896
895
  }
897
896
  ],
898
- "name": "swap",
899
- "outputs": [],
900
- "stateMutability": "nonpayable",
897
+ "stateMutability": "view",
901
898
  "type": "function"
902
899
  },
903
900
  {
901
+ "gas": 2441,
904
902
  "inputs": [],
905
- "name": "swapFee",
903
+ "name": "future_A",
906
904
  "outputs": [
907
905
  {
908
- "internalType": "uint256",
909
906
  "name": "",
910
907
  "type": "uint256"
911
908
  }
@@ -914,57 +911,50 @@
914
911
  "type": "function"
915
912
  },
916
913
  {
914
+ "gas": 2471,
917
915
  "inputs": [],
918
- "name": "symbol",
916
+ "name": "initial_A_time",
919
917
  "outputs": [
920
918
  {
921
- "internalType": "string",
922
919
  "name": "",
923
- "type": "string"
920
+ "type": "uint256"
924
921
  }
925
922
  ],
926
923
  "stateMutability": "view",
927
924
  "type": "function"
928
925
  },
929
926
  {
927
+ "gas": 2501,
930
928
  "inputs": [],
931
- "name": "sync",
932
- "outputs": [],
933
- "stateMutability": "nonpayable",
934
- "type": "function"
935
- },
936
- {
937
- "inputs": [],
938
- "name": "token0",
929
+ "name": "future_A_time",
939
930
  "outputs": [
940
931
  {
941
- "internalType": "address",
942
932
  "name": "",
943
- "type": "address"
933
+ "type": "uint256"
944
934
  }
945
935
  ],
946
936
  "stateMutability": "view",
947
937
  "type": "function"
948
938
  },
949
939
  {
940
+ "gas": 2531,
950
941
  "inputs": [],
951
- "name": "token1",
942
+ "name": "admin_actions_deadline",
952
943
  "outputs": [
953
944
  {
954
- "internalType": "address",
955
945
  "name": "",
956
- "type": "address"
946
+ "type": "uint256"
957
947
  }
958
948
  ],
959
949
  "stateMutability": "view",
960
950
  "type": "function"
961
951
  },
962
952
  {
953
+ "gas": 2561,
963
954
  "inputs": [],
964
- "name": "totalSupply",
955
+ "name": "transfer_ownership_deadline",
965
956
  "outputs": [
966
957
  {
967
- "internalType": "uint256",
968
958
  "name": "",
969
959
  "type": "uint256"
970
960
  }
@@ -973,69 +963,42 @@
973
963
  "type": "function"
974
964
  },
975
965
  {
966
+ "gas": 2591,
976
967
  "inputs": [],
977
- "name": "trader",
968
+ "name": "future_fee",
978
969
  "outputs": [
979
970
  {
980
- "internalType": "address",
981
971
  "name": "",
982
- "type": "address"
972
+ "type": "uint256"
983
973
  }
984
974
  ],
985
975
  "stateMutability": "view",
986
976
  "type": "function"
987
977
  },
988
978
  {
989
- "inputs": [
990
- {
991
- "internalType": "address",
992
- "name": "to",
993
- "type": "address"
994
- },
995
- {
996
- "internalType": "uint256",
997
- "name": "value",
998
- "type": "uint256"
999
- }
1000
- ],
1001
- "name": "transfer",
979
+ "gas": 2621,
980
+ "inputs": [],
981
+ "name": "future_admin_fee",
1002
982
  "outputs": [
1003
983
  {
1004
- "internalType": "bool",
1005
984
  "name": "",
1006
- "type": "bool"
985
+ "type": "uint256"
1007
986
  }
1008
987
  ],
1009
- "stateMutability": "nonpayable",
988
+ "stateMutability": "view",
1010
989
  "type": "function"
1011
990
  },
1012
991
  {
1013
- "inputs": [
1014
- {
1015
- "internalType": "address",
1016
- "name": "from",
1017
- "type": "address"
1018
- },
1019
- {
1020
- "internalType": "address",
1021
- "name": "to",
1022
- "type": "address"
1023
- },
1024
- {
1025
- "internalType": "uint256",
1026
- "name": "value",
1027
- "type": "uint256"
1028
- }
1029
- ],
1030
- "name": "transferFrom",
992
+ "gas": 2651,
993
+ "inputs": [],
994
+ "name": "future_owner",
1031
995
  "outputs": [
1032
996
  {
1033
- "internalType": "bool",
1034
997
  "name": "",
1035
- "type": "bool"
998
+ "type": "address"
1036
999
  }
1037
1000
  ],
1038
- "stateMutability": "nonpayable",
1001
+ "stateMutability": "view",
1039
1002
  "type": "function"
1040
1003
  }
1041
1004
  ]