@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
@@ -2,14 +2,14 @@
2
2
  {
3
3
  "inputs": [
4
4
  {
5
- "internalType": "uint8",
6
- "name": "_xDecimals",
7
- "type": "uint8"
5
+ "internalType": "address",
6
+ "name": "_aggregator",
7
+ "type": "address"
8
8
  },
9
9
  {
10
- "internalType": "uint8",
11
- "name": "_yDecimals",
12
- "type": "uint8"
10
+ "internalType": "address",
11
+ "name": "_accessController",
12
+ "type": "address"
13
13
  }
14
14
  ],
15
15
  "stateMutability": "nonpayable",
@@ -18,84 +18,119 @@
18
18
  {
19
19
  "anonymous": false,
20
20
  "inputs": [
21
+ {
22
+ "indexed": true,
23
+ "internalType": "int256",
24
+ "name": "current",
25
+ "type": "int256"
26
+ },
27
+ {
28
+ "indexed": true,
29
+ "internalType": "uint256",
30
+ "name": "roundId",
31
+ "type": "uint256"
32
+ },
21
33
  {
22
34
  "indexed": false,
35
+ "internalType": "uint256",
36
+ "name": "updatedAt",
37
+ "type": "uint256"
38
+ }
39
+ ],
40
+ "name": "AnswerUpdated",
41
+ "type": "event"
42
+ },
43
+ {
44
+ "anonymous": false,
45
+ "inputs": [
46
+ {
47
+ "indexed": true,
48
+ "internalType": "uint256",
49
+ "name": "roundId",
50
+ "type": "uint256"
51
+ },
52
+ {
53
+ "indexed": true,
23
54
  "internalType": "address",
24
- "name": "owner",
55
+ "name": "startedBy",
25
56
  "type": "address"
57
+ },
58
+ {
59
+ "indexed": false,
60
+ "internalType": "uint256",
61
+ "name": "startedAt",
62
+ "type": "uint256"
26
63
  }
27
64
  ],
28
- "name": "OwnerSet",
65
+ "name": "NewRound",
29
66
  "type": "event"
30
67
  },
31
68
  {
32
69
  "anonymous": false,
33
70
  "inputs": [
34
71
  {
35
- "indexed": false,
36
- "internalType": "uint32",
37
- "name": "interval",
38
- "type": "uint32"
72
+ "indexed": true,
73
+ "internalType": "address",
74
+ "name": "from",
75
+ "type": "address"
76
+ },
77
+ {
78
+ "indexed": true,
79
+ "internalType": "address",
80
+ "name": "to",
81
+ "type": "address"
39
82
  }
40
83
  ],
41
- "name": "TwapIntervalSet",
84
+ "name": "OwnershipTransferRequested",
42
85
  "type": "event"
43
86
  },
44
87
  {
45
88
  "anonymous": false,
46
89
  "inputs": [
47
90
  {
48
- "indexed": false,
91
+ "indexed": true,
92
+ "internalType": "address",
93
+ "name": "from",
94
+ "type": "address"
95
+ },
96
+ {
97
+ "indexed": true,
49
98
  "internalType": "address",
50
- "name": "uniswapPair",
99
+ "name": "to",
51
100
  "type": "address"
52
101
  }
53
102
  ],
54
- "name": "UniswapPairSet",
103
+ "name": "OwnershipTransferred",
55
104
  "type": "event"
56
105
  },
57
106
  {
58
107
  "inputs": [],
59
- "name": "decimalsConverter",
108
+ "name": "acceptOwnership",
109
+ "outputs": [],
110
+ "stateMutability": "nonpayable",
111
+ "type": "function"
112
+ },
113
+ {
114
+ "inputs": [],
115
+ "name": "accessController",
60
116
  "outputs": [
61
117
  {
62
- "internalType": "int256",
118
+ "internalType": "contract AccessControllerInterface",
63
119
  "name": "",
64
- "type": "int256"
120
+ "type": "address"
65
121
  }
66
122
  ],
67
123
  "stateMutability": "view",
68
124
  "type": "function"
69
125
  },
70
126
  {
71
- "inputs": [
72
- {
73
- "internalType": "uint256",
74
- "name": "xLeft",
75
- "type": "uint256"
76
- },
77
- {
78
- "internalType": "uint256",
79
- "name": "xBefore",
80
- "type": "uint256"
81
- },
82
- {
83
- "internalType": "uint256",
84
- "name": "yBefore",
85
- "type": "uint256"
86
- },
87
- {
88
- "internalType": "bytes",
89
- "name": "data",
90
- "type": "bytes"
91
- }
92
- ],
93
- "name": "depositTradeXIn",
127
+ "inputs": [],
128
+ "name": "aggregator",
94
129
  "outputs": [
95
130
  {
96
- "internalType": "uint256",
131
+ "internalType": "address",
97
132
  "name": "",
98
- "type": "uint256"
133
+ "type": "address"
99
134
  }
100
135
  ],
101
136
  "stateMutability": "view",
@@ -104,87 +139,56 @@
104
139
  {
105
140
  "inputs": [
106
141
  {
107
- "internalType": "uint256",
108
- "name": "yLeft",
109
- "type": "uint256"
110
- },
111
- {
112
- "internalType": "uint256",
113
- "name": "xBefore",
114
- "type": "uint256"
115
- },
116
- {
117
- "internalType": "uint256",
118
- "name": "yBefore",
119
- "type": "uint256"
120
- },
121
- {
122
- "internalType": "bytes",
123
- "name": "data",
124
- "type": "bytes"
142
+ "internalType": "address",
143
+ "name": "_aggregator",
144
+ "type": "address"
125
145
  }
126
146
  ],
127
- "name": "depositTradeYIn",
147
+ "name": "confirmAggregator",
148
+ "outputs": [],
149
+ "stateMutability": "nonpayable",
150
+ "type": "function"
151
+ },
152
+ {
153
+ "inputs": [],
154
+ "name": "decimals",
128
155
  "outputs": [
129
156
  {
130
- "internalType": "uint256",
157
+ "internalType": "uint8",
131
158
  "name": "",
132
- "type": "uint256"
159
+ "type": "uint8"
133
160
  }
134
161
  ],
135
162
  "stateMutability": "view",
136
163
  "type": "function"
137
164
  },
138
165
  {
139
- "inputs": [
140
- {
141
- "internalType": "uint256",
142
- "name": "",
143
- "type": "uint256"
144
- },
145
- {
146
- "internalType": "uint256",
147
- "name": "",
148
- "type": "uint256"
149
- }
150
- ],
151
- "name": "getAveragePrice",
166
+ "inputs": [],
167
+ "name": "description",
152
168
  "outputs": [
153
169
  {
154
- "internalType": "uint256",
170
+ "internalType": "string",
155
171
  "name": "",
156
- "type": "uint256"
172
+ "type": "string"
157
173
  }
158
174
  ],
159
175
  "stateMutability": "view",
160
176
  "type": "function"
161
177
  },
162
178
  {
163
- "inputs": [],
164
- "name": "getPriceInfo",
165
- "outputs": [
166
- {
167
- "internalType": "uint256",
168
- "name": "priceAccumulator",
169
- "type": "uint256"
170
- },
179
+ "inputs": [
171
180
  {
172
181
  "internalType": "uint256",
173
- "name": "priceTimestamp",
182
+ "name": "_roundId",
174
183
  "type": "uint256"
175
184
  }
176
185
  ],
177
- "stateMutability": "view",
178
- "type": "function"
179
- },
180
- {
181
- "inputs": [],
182
- "name": "getSpotPrice",
186
+ "name": "getAnswer",
183
187
  "outputs": [
184
188
  {
185
- "internalType": "uint256",
189
+ "internalType": "int256",
186
190
  "name": "",
187
- "type": "uint256"
191
+ "type": "int256"
188
192
  }
189
193
  ],
190
194
  "stateMutability": "view",
@@ -193,27 +197,37 @@
193
197
  {
194
198
  "inputs": [
195
199
  {
196
- "internalType": "uint256",
197
- "name": "swapFee",
198
- "type": "uint256"
200
+ "internalType": "uint80",
201
+ "name": "_roundId",
202
+ "type": "uint80"
203
+ }
204
+ ],
205
+ "name": "getRoundData",
206
+ "outputs": [
207
+ {
208
+ "internalType": "uint80",
209
+ "name": "roundId",
210
+ "type": "uint80"
211
+ },
212
+ {
213
+ "internalType": "int256",
214
+ "name": "answer",
215
+ "type": "int256"
199
216
  },
200
217
  {
201
218
  "internalType": "uint256",
202
- "name": "amount1In",
219
+ "name": "startedAt",
203
220
  "type": "uint256"
204
221
  },
205
- {
206
- "internalType": "bytes",
207
- "name": "data",
208
- "type": "bytes"
209
- }
210
- ],
211
- "name": "getSwapAmount0Out",
212
- "outputs": [
213
222
  {
214
223
  "internalType": "uint256",
215
- "name": "amount0Out",
224
+ "name": "updatedAt",
216
225
  "type": "uint256"
226
+ },
227
+ {
228
+ "internalType": "uint80",
229
+ "name": "answeredInRound",
230
+ "type": "uint80"
217
231
  }
218
232
  ],
219
233
  "stateMutability": "view",
@@ -223,25 +237,15 @@
223
237
  "inputs": [
224
238
  {
225
239
  "internalType": "uint256",
226
- "name": "swapFee",
240
+ "name": "_roundId",
227
241
  "type": "uint256"
228
- },
229
- {
230
- "internalType": "uint256",
231
- "name": "amount0In",
232
- "type": "uint256"
233
- },
234
- {
235
- "internalType": "bytes",
236
- "name": "data",
237
- "type": "bytes"
238
242
  }
239
243
  ],
240
- "name": "getSwapAmount1Out",
244
+ "name": "getTimestamp",
241
245
  "outputs": [
242
246
  {
243
247
  "internalType": "uint256",
244
- "name": "amount1Out",
248
+ "name": "",
245
249
  "type": "uint256"
246
250
  }
247
251
  ],
@@ -249,38 +253,25 @@
249
253
  "type": "function"
250
254
  },
251
255
  {
252
- "inputs": [
253
- {
254
- "internalType": "bool",
255
- "name": "inverse",
256
- "type": "bool"
257
- },
258
- {
259
- "internalType": "uint256",
260
- "name": "swapFee",
261
- "type": "uint256"
262
- },
263
- {
264
- "internalType": "uint256",
265
- "name": "_amountOut",
266
- "type": "uint256"
267
- },
256
+ "inputs": [],
257
+ "name": "latestAnswer",
258
+ "outputs": [
268
259
  {
269
- "internalType": "bytes",
270
- "name": "data",
271
- "type": "bytes"
260
+ "internalType": "int256",
261
+ "name": "",
262
+ "type": "int256"
272
263
  }
273
264
  ],
274
- "name": "getSwapAmountInMaxOut",
265
+ "stateMutability": "view",
266
+ "type": "function"
267
+ },
268
+ {
269
+ "inputs": [],
270
+ "name": "latestRound",
275
271
  "outputs": [
276
272
  {
277
273
  "internalType": "uint256",
278
- "name": "amountIn",
279
- "type": "uint256"
280
- },
281
- {
282
- "internalType": "uint256",
283
- "name": "amountOut",
274
+ "name": "",
284
275
  "type": "uint256"
285
276
  }
286
277
  ],
@@ -288,38 +279,45 @@
288
279
  "type": "function"
289
280
  },
290
281
  {
291
- "inputs": [
282
+ "inputs": [],
283
+ "name": "latestRoundData",
284
+ "outputs": [
292
285
  {
293
- "internalType": "bool",
294
- "name": "inverse",
295
- "type": "bool"
286
+ "internalType": "uint80",
287
+ "name": "roundId",
288
+ "type": "uint80"
289
+ },
290
+ {
291
+ "internalType": "int256",
292
+ "name": "answer",
293
+ "type": "int256"
296
294
  },
297
295
  {
298
296
  "internalType": "uint256",
299
- "name": "swapFee",
297
+ "name": "startedAt",
300
298
  "type": "uint256"
301
299
  },
302
300
  {
303
301
  "internalType": "uint256",
304
- "name": "_amountOut",
302
+ "name": "updatedAt",
305
303
  "type": "uint256"
306
304
  },
307
305
  {
308
- "internalType": "bytes",
309
- "name": "data",
310
- "type": "bytes"
306
+ "internalType": "uint80",
307
+ "name": "answeredInRound",
308
+ "type": "uint80"
311
309
  }
312
310
  ],
313
- "name": "getSwapAmountInMinOut",
311
+ "stateMutability": "view",
312
+ "type": "function"
313
+ },
314
+ {
315
+ "inputs": [],
316
+ "name": "latestTimestamp",
314
317
  "outputs": [
315
318
  {
316
319
  "internalType": "uint256",
317
- "name": "amountIn",
318
- "type": "uint256"
319
- },
320
- {
321
- "internalType": "uint256",
322
- "name": "amountOut",
320
+ "name": "",
323
321
  "type": "uint256"
324
322
  }
325
323
  ],
@@ -342,157 +340,167 @@
342
340
  {
343
341
  "inputs": [
344
342
  {
345
- "internalType": "address",
346
- "name": "_owner",
343
+ "internalType": "uint16",
344
+ "name": "",
345
+ "type": "uint16"
346
+ }
347
+ ],
348
+ "name": "phaseAggregators",
349
+ "outputs": [
350
+ {
351
+ "internalType": "contract AggregatorV2V3Interface",
352
+ "name": "",
347
353
  "type": "address"
348
354
  }
349
355
  ],
350
- "name": "setOwner",
351
- "outputs": [],
352
- "stateMutability": "nonpayable",
356
+ "stateMutability": "view",
353
357
  "type": "function"
354
358
  },
355
359
  {
356
- "inputs": [
360
+ "inputs": [],
361
+ "name": "phaseId",
362
+ "outputs": [
357
363
  {
358
- "internalType": "uint32",
359
- "name": "_interval",
360
- "type": "uint32"
364
+ "internalType": "uint16",
365
+ "name": "",
366
+ "type": "uint16"
361
367
  }
362
368
  ],
363
- "name": "setTwapInterval",
364
- "outputs": [],
365
- "stateMutability": "nonpayable",
369
+ "stateMutability": "view",
366
370
  "type": "function"
367
371
  },
368
372
  {
369
373
  "inputs": [
370
374
  {
371
375
  "internalType": "address",
372
- "name": "_uniswapPair",
376
+ "name": "_aggregator",
373
377
  "type": "address"
374
378
  }
375
379
  ],
376
- "name": "setUniswapPair",
380
+ "name": "proposeAggregator",
377
381
  "outputs": [],
378
382
  "stateMutability": "nonpayable",
379
383
  "type": "function"
380
384
  },
385
+ {
386
+ "inputs": [],
387
+ "name": "proposedAggregator",
388
+ "outputs": [
389
+ {
390
+ "internalType": "contract AggregatorV2V3Interface",
391
+ "name": "",
392
+ "type": "address"
393
+ }
394
+ ],
395
+ "stateMutability": "view",
396
+ "type": "function"
397
+ },
381
398
  {
382
399
  "inputs": [
383
400
  {
384
- "internalType": "uint256",
385
- "name": "xAfter",
386
- "type": "uint256"
401
+ "internalType": "uint80",
402
+ "name": "_roundId",
403
+ "type": "uint80"
404
+ }
405
+ ],
406
+ "name": "proposedGetRoundData",
407
+ "outputs": [
408
+ {
409
+ "internalType": "uint80",
410
+ "name": "roundId",
411
+ "type": "uint80"
387
412
  },
388
413
  {
389
- "internalType": "uint256",
390
- "name": "xBefore",
391
- "type": "uint256"
414
+ "internalType": "int256",
415
+ "name": "answer",
416
+ "type": "int256"
392
417
  },
393
418
  {
394
419
  "internalType": "uint256",
395
- "name": "yBefore",
420
+ "name": "startedAt",
396
421
  "type": "uint256"
397
422
  },
398
- {
399
- "internalType": "bytes",
400
- "name": "data",
401
- "type": "bytes"
402
- }
403
- ],
404
- "name": "tradeX",
405
- "outputs": [
406
423
  {
407
424
  "internalType": "uint256",
408
- "name": "yAfter",
425
+ "name": "updatedAt",
409
426
  "type": "uint256"
427
+ },
428
+ {
429
+ "internalType": "uint80",
430
+ "name": "answeredInRound",
431
+ "type": "uint80"
410
432
  }
411
433
  ],
412
434
  "stateMutability": "view",
413
435
  "type": "function"
414
436
  },
415
437
  {
416
- "inputs": [
438
+ "inputs": [],
439
+ "name": "proposedLatestRoundData",
440
+ "outputs": [
417
441
  {
418
- "internalType": "uint256",
419
- "name": "yAfter",
420
- "type": "uint256"
442
+ "internalType": "uint80",
443
+ "name": "roundId",
444
+ "type": "uint80"
421
445
  },
422
446
  {
423
- "internalType": "uint256",
424
- "name": "xBefore",
425
- "type": "uint256"
447
+ "internalType": "int256",
448
+ "name": "answer",
449
+ "type": "int256"
426
450
  },
427
451
  {
428
452
  "internalType": "uint256",
429
- "name": "yBefore",
453
+ "name": "startedAt",
430
454
  "type": "uint256"
431
455
  },
432
- {
433
- "internalType": "bytes",
434
- "name": "data",
435
- "type": "bytes"
436
- }
437
- ],
438
- "name": "tradeY",
439
- "outputs": [
440
456
  {
441
457
  "internalType": "uint256",
442
- "name": "xAfter",
458
+ "name": "updatedAt",
443
459
  "type": "uint256"
444
- }
445
- ],
446
- "stateMutability": "view",
447
- "type": "function"
448
- },
449
- {
450
- "inputs": [],
451
- "name": "twapInterval",
452
- "outputs": [
460
+ },
453
461
  {
454
- "internalType": "uint32",
455
- "name": "",
456
- "type": "uint32"
462
+ "internalType": "uint80",
463
+ "name": "answeredInRound",
464
+ "type": "uint80"
457
465
  }
458
466
  ],
459
467
  "stateMutability": "view",
460
468
  "type": "function"
461
469
  },
462
470
  {
463
- "inputs": [],
464
- "name": "uniswapPair",
465
- "outputs": [
471
+ "inputs": [
466
472
  {
467
473
  "internalType": "address",
468
- "name": "",
474
+ "name": "_accessController",
469
475
  "type": "address"
470
476
  }
471
477
  ],
472
- "stateMutability": "view",
478
+ "name": "setController",
479
+ "outputs": [],
480
+ "stateMutability": "nonpayable",
473
481
  "type": "function"
474
482
  },
475
483
  {
476
- "inputs": [],
477
- "name": "xDecimals",
478
- "outputs": [
484
+ "inputs": [
479
485
  {
480
- "internalType": "uint8",
481
- "name": "",
482
- "type": "uint8"
486
+ "internalType": "address",
487
+ "name": "_to",
488
+ "type": "address"
483
489
  }
484
490
  ],
485
- "stateMutability": "view",
491
+ "name": "transferOwnership",
492
+ "outputs": [],
493
+ "stateMutability": "nonpayable",
486
494
  "type": "function"
487
495
  },
488
496
  {
489
497
  "inputs": [],
490
- "name": "yDecimals",
498
+ "name": "version",
491
499
  "outputs": [
492
500
  {
493
- "internalType": "uint8",
501
+ "internalType": "uint256",
494
502
  "name": "",
495
- "type": "uint8"
503
+ "type": "uint256"
496
504
  }
497
505
  ],
498
506
  "stateMutability": "view",