@paraswap/dex-lib 3.11.2 → 3.11.3

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