@paraswap/dex-lib 4.0.20 → 4.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (241) hide show
  1. package/.vscode/launch.json +53 -0
  2. package/.vscode/settings.json +2 -0
  3. package/.vscode/tasks.json +15 -0
  4. package/build/abi/uniswap-v3/AlienBaseV3Router.abi.json +52 -0
  5. package/build/abi/usual-m-smart-m/usualM.abi.json +483 -0
  6. package/build/abi/{angle-transmuter/ChainlinkAccessControlledOffchainAggregator.json → wombat/pool.json} +637 -594
  7. package/build/dex/aave-v1/aave-v1.js +1 -0
  8. package/build/dex/aave-v1/aave-v1.js.map +1 -1
  9. package/build/dex/aave-v2/tokens-avalanche.json +44 -0
  10. package/build/dex/aave-v2/tokens-mainnet.json +188 -0
  11. package/build/dex/aave-v2/tokens-polygon.json +44 -0
  12. package/build/dex/bProtocol.d.ts +18 -0
  13. package/build/dex/bProtocol.js +39 -0
  14. package/build/dex/bProtocol.js.map +1 -0
  15. package/build/dex/balancer-v3/abi/balancerBatchRouter.d.ts +729 -0
  16. package/build/dex/balancer-v3/abi/balancerBatchRouter.js +732 -0
  17. package/build/dex/balancer-v3/abi/balancerBatchRouter.js.map +1 -0
  18. package/build/dex/balancer-v3/abi/balancerRouter.d.ts +1406 -0
  19. package/build/dex/balancer-v3/abi/balancerRouter.js +1175 -0
  20. package/build/dex/balancer-v3/abi/balancerRouter.js.map +1 -0
  21. package/build/dex/balancer-v3/abi/vaultExtension.V3.d.ts +2081 -0
  22. package/build/dex/balancer-v3/abi/vaultExtension.V3.js +1851 -0
  23. package/build/dex/balancer-v3/abi/vaultExtension.V3.js.map +1 -0
  24. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.d.ts +34 -0
  25. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js +406 -0
  26. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js.map +1 -0
  27. package/build/dex/bancor.d.ts +26 -0
  28. package/build/dex/bancor.js +58 -0
  29. package/build/dex/bancor.js.map +1 -0
  30. package/build/dex/compound.d.ts +18 -0
  31. package/build/dex/compound.js +46 -0
  32. package/build/dex/compound.js.map +1 -0
  33. package/build/dex/curve-v2.d.ts +58 -0
  34. package/build/dex/curve-v2.js +180 -0
  35. package/build/dex/curve-v2.js.map +1 -0
  36. package/build/dex/dodo-v1.d.ts +33 -0
  37. package/build/dex/dodo-v1.js +63 -0
  38. package/build/dex/dodo-v1.js.map +1 -0
  39. package/build/dex/inception/inception-event-pool.d.ts +4 -4
  40. package/build/dex/inception/inception-event-pool.js +7 -9
  41. package/build/dex/inception/inception-event-pool.js.map +1 -1
  42. package/build/dex/inception/inception.d.ts +6 -6
  43. package/build/dex/inception/inception.js +16 -40
  44. package/build/dex/inception/inception.js.map +1 -1
  45. package/build/dex/inception/utils.d.ts +1 -0
  46. package/build/dex/inception/utils.js +22 -1
  47. package/build/dex/inception/utils.js.map +1 -1
  48. package/build/dex/lido.d.ts +19 -0
  49. package/build/dex/lido.js +42 -0
  50. package/build/dex/lido.js.map +1 -0
  51. package/build/dex/maker-psm/scripts/gem.abi.json +136 -0
  52. package/build/dex/maker-psm/scripts/validate-state.d.ts +0 -0
  53. package/build/dex/maker-psm/scripts/validate-state.js +185 -0
  54. package/build/dex/maker-psm/scripts/validate-state.js.map +1 -0
  55. package/build/dex/maker-psm/scripts/vat.abi.json +243 -0
  56. package/build/dex/onebit.d.ts +25 -0
  57. package/build/dex/onebit.js +42 -0
  58. package/build/dex/onebit.js.map +1 -0
  59. package/build/dex/platypus/platypus.js +17 -3
  60. package/build/dex/platypus/platypus.js.map +1 -1
  61. package/build/dex/smoothy.d.ts +26 -0
  62. package/build/dex/smoothy.js +48 -0
  63. package/build/dex/smoothy.js.map +1 -0
  64. package/build/dex/solidly-v3/scripts/check-event-pool-event.d.ts +1 -0
  65. package/build/dex/solidly-v3/scripts/check-event-pool-event.js +53 -0
  66. package/build/dex/solidly-v3/scripts/check-event-pool-event.js.map +1 -0
  67. package/build/dex/stable-pool.d.ts +28 -0
  68. package/build/dex/stable-pool.js +55 -0
  69. package/build/dex/stable-pool.js.map +1 -0
  70. package/build/dex/stkgho/stkgho.js +4 -2
  71. package/build/dex/stkgho/stkgho.js.map +1 -1
  72. package/build/dex/swaap-v1/swaap-v1.js +4 -0
  73. package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
  74. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.d.ts +7 -0
  75. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js +20 -0
  76. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js.map +1 -0
  77. package/build/dex/trader-joe-v2.1.d.ts +43 -0
  78. package/build/dex/trader-joe-v2.1.js +79 -0
  79. package/build/dex/trader-joe-v2.1.js.map +1 -0
  80. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.d.ts +17 -0
  81. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js +64 -0
  82. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js.map +1 -0
  83. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.d.ts +17 -0
  84. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js +79 -0
  85. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js.map +1 -0
  86. package/build/dex/uniswap-v3/uniswap-v3-pricing.d.ts +4 -0
  87. package/build/dex/uniswap-v3/uniswap-v3-pricing.js +43 -0
  88. package/build/dex/uniswap-v3/uniswap-v3-pricing.js.map +1 -0
  89. package/build/dex/uniswap-v3/uniswap-v3-worker.d.ts +1 -0
  90. package/build/dex/uniswap-v3/uniswap-v3-worker.js +10 -0
  91. package/build/dex/uniswap-v3/uniswap-v3-worker.js.map +1 -0
  92. package/build/dex/usual/usual-m-smart-m.d.ts +17 -0
  93. package/build/dex/usual/usual-m-smart-m.js +50 -0
  94. package/build/dex/usual/usual-m-smart-m.js.map +1 -0
  95. package/build/dex/usual-m-smart-m/config.d.ts +3 -0
  96. package/build/dex/usual-m-smart-m/config.js +13 -0
  97. package/build/dex/usual-m-smart-m/config.js.map +1 -0
  98. package/build/dex/usual-m-smart-m/types.d.ts +7 -0
  99. package/build/dex/usual-m-smart-m/types.js +3 -0
  100. package/build/dex/usual-m-smart-m/types.js.map +1 -0
  101. package/build/dex/usual-m-smart-m/usual-m-smart-m.d.ts +35 -0
  102. package/build/dex/usual-m-smart-m/usual-m-smart-m.js +161 -0
  103. package/build/dex/usual-m-smart-m/usual-m-smart-m.js.map +1 -0
  104. package/build/dex/usual-m-usd0/config.d.ts +3 -0
  105. package/build/dex/usual-m-usd0/config.js +14 -0
  106. package/build/dex/usual-m-usd0/config.js.map +1 -0
  107. package/build/dex/usual-m-usd0/types.d.ts +8 -0
  108. package/build/dex/usual-m-usd0/types.js +3 -0
  109. package/build/dex/usual-m-usd0/types.js.map +1 -0
  110. package/build/dex/usual-m-usd0/usual-m-usd0.d.ts +35 -0
  111. package/build/dex/usual-m-usd0/usual-m-usd0.js +159 -0
  112. package/build/dex/usual-m-usd0/usual-m-usd0.js.map +1 -0
  113. package/package.json +1 -1
  114. package/src/dex/stkgho/stkgho.ts +4 -2
  115. package/build/abi/Aave_GSM.json +0 -751
  116. package/build/abi/Balancer.json +0 -257
  117. package/build/abi/BalancerV2.json +0 -1179
  118. package/build/abi/RamsesV2Pool.abi.json +0 -1554
  119. package/build/abi/RamsesV2Quoter.abi.json +0 -274
  120. package/build/abi/USDM.json +0 -807
  121. package/build/abi/UniswapV2Router.json +0 -397
  122. package/build/abi/angle-transmuter/ChainlinkEACAggregatorProxy.json +0 -509
  123. package/build/abi/curve-v1/CurveBUSDv2.abi.json +0 -1356
  124. package/build/abi/curve-v1/CurveTokenV1.json +0 -305
  125. package/build/abi/curve-v1/CurveTokenV2.json +0 -318
  126. package/build/abi/curve-v1/CurveV1StableNg.json +0 -1452
  127. package/build/abi/curve-v1/CurveV2Swap.json +0 -700
  128. package/build/abi/curve-v1/FactoryCryptoRegistry.json +0 -316
  129. package/build/abi/curve-v1/FactoryRegistry.json +0 -508
  130. package/build/abi/curve-v1/StableSwapAave.json +0 -1152
  131. package/build/abi/curve-v1/StableSwapBUSD.json +0 -814
  132. package/build/abi/curve-v1/StableSwapCompound.json +0 -814
  133. package/build/abi/curve-v1/StableSwapIDLE.json +0 -1253
  134. package/build/abi/curve-v1/StableSwapPax.json +0 -865
  135. package/build/abi/curve-v1/StableSwapSnow.json +0 -900
  136. package/build/abi/curve-v1/StableSwapUSDN.json +0 -1004
  137. package/build/abi/curve-v1/StableSwapUSDT.json +0 -814
  138. package/build/abi/curve-v1/StableSwapY.json +0 -814
  139. package/build/abi/inception/inception-ineth.json +0 -609
  140. package/build/abi/kyberdmm/kyber-storage.abi.json +0 -824
  141. package/build/abi/kyberdmm.abi.json +0 -1148
  142. package/build/abi/maverick-v2/MaverickV2Quoter.json +0 -278
  143. package/build/abi/nerve/nerve-metapool.json +0 -790
  144. package/build/abi/uniswap-v3/UniswapV3Quoter.abi.json +0 -193
  145. package/build/abi/velodrome-slipstream/VelodromeSlipstreamQuoterV2.abi.json +0 -267
  146. package/build/dex/balancer-v1/balancer-pools.json +0 -33333
  147. package/build/dex/bebop/websocket-fetcher.d.ts +0 -35
  148. package/build/dex/bebop/websocket-fetcher.js +0 -87
  149. package/build/dex/bebop/websocket-fetcher.js.map +0 -1
  150. package/build/dex/idle-dao/idle-dao-pool.d.ts +0 -56
  151. package/build/dex/idle-dao/idle-dao-pool.js +0 -176
  152. package/build/dex/idle-dao/idle-dao-pool.js.map +0 -1
  153. package/build/dex/idle-dao/idle-dao-pooling-pool.d.ts +0 -16
  154. package/build/dex/idle-dao/idle-dao-pooling-pool.js +0 -57
  155. package/build/dex/idle-dao/idle-dao-pooling-pool.js.map +0 -1
  156. package/build/dex/idle-dao/scripts.d.ts +0 -9
  157. package/build/dex/idle-dao/scripts.js +0 -552
  158. package/build/dex/idle-dao/scripts.js.map +0 -1
  159. package/build/dex/inception/inception-native.d.ts +0 -43
  160. package/build/dex/inception/inception-native.js +0 -131
  161. package/build/dex/inception/inception-native.js.map +0 -1
  162. package/build/dex/inception/inception-pool.d.ts +0 -18
  163. package/build/dex/inception/inception-pool.js +0 -32
  164. package/build/dex/inception/inception-pool.js.map +0 -1
  165. package/build/dex/inception/inception-price-feed.d.ts +0 -19
  166. package/build/dex/inception/inception-price-feed.js +0 -51
  167. package/build/dex/inception/inception-price-feed.js.map +0 -1
  168. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +0 -16
  169. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +0 -16
  170. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +0 -16
  171. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +0 -16
  172. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-dai-usdc-eth.json +0 -16
  173. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-eth-usdc-dai.json +0 -16
  174. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +0 -16
  175. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdt-usdc-dai.json +0 -16
  176. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-eth-usdc.json +0 -9
  177. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-eth.json +0 -9
  178. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-wbtc.json +0 -9
  179. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-eth-steth.json +0 -9
  180. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-steth-eth.json +0 -9
  181. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-usdc-usdt.json +0 -9
  182. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-eth-usdc.json +0 -9
  183. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-eth.json +0 -9
  184. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-usdt.json +0 -9
  185. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +0 -12
  186. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +0 -7
  187. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +0 -7
  188. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-dai-usdc-eth.json +0 -7
  189. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-eth-usdc-dai.json +0 -7
  190. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +0 -12
  191. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-eth-usdc.json +0 -7
  192. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-usdc-eth.json +0 -7
  193. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +0 -78
  194. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +0 -81
  195. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +0 -78
  196. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +0 -78
  197. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-dai-usdc-eth.json +0 -81
  198. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-eth-usdc-dai.json +0 -81
  199. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +0 -81
  200. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdt-usdc-dai.json +0 -81
  201. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-eth-usdc.json +0 -64
  202. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-eth.json +0 -85
  203. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-wbtc.json +0 -64
  204. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-eth-steth.json +0 -52
  205. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-steth-eth.json +0 -52
  206. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-usdc-usdt.json +0 -52
  207. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-eth-usdc.json +0 -55
  208. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-eth.json +0 -55
  209. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-usdt.json +0 -55
  210. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +0 -23
  211. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +0 -37
  212. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +0 -23
  213. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +0 -23
  214. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +0 -51
  215. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-univ3-usdt-dai-eth.json +0 -58
  216. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +0 -23
  217. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +0 -23
  218. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +0 -9
  219. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +0 -16
  220. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +0 -23
  221. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +0 -12
  222. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +0 -7
  223. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +0 -12
  224. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +0 -12
  225. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +0 -7
  226. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-univ3-usdt-dai-eth.json +0 -7
  227. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +0 -7
  228. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +0 -7
  229. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +0 -7
  230. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +0 -7
  231. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +0 -130
  232. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +0 -136
  233. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +0 -100
  234. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +0 -100
  235. package/build/executor/fixtures/executor02/routes/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +0 -166
  236. package/build/executor/fixtures/executor02/routes/price-route-multiswap-univ3-usdt-dai-eth.json +0 -190
  237. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +0 -114
  238. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +0 -114
  239. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +0 -55
  240. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +0 -73
  241. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +0 -82
@@ -1,1452 +0,0 @@
1
- [
2
- {
3
- "name": "Transfer",
4
- "inputs": [
5
- {
6
- "name": "sender",
7
- "type": "address",
8
- "indexed": true
9
- },
10
- {
11
- "name": "receiver",
12
- "type": "address",
13
- "indexed": true
14
- },
15
- {
16
- "name": "value",
17
- "type": "uint256",
18
- "indexed": false
19
- }
20
- ],
21
- "anonymous": false,
22
- "type": "event"
23
- },
24
- {
25
- "name": "Approval",
26
- "inputs": [
27
- {
28
- "name": "owner",
29
- "type": "address",
30
- "indexed": true
31
- },
32
- {
33
- "name": "spender",
34
- "type": "address",
35
- "indexed": true
36
- },
37
- {
38
- "name": "value",
39
- "type": "uint256",
40
- "indexed": false
41
- }
42
- ],
43
- "anonymous": false,
44
- "type": "event"
45
- },
46
- {
47
- "name": "TokenExchange",
48
- "inputs": [
49
- {
50
- "name": "buyer",
51
- "type": "address",
52
- "indexed": true
53
- },
54
- {
55
- "name": "sold_id",
56
- "type": "int128",
57
- "indexed": false
58
- },
59
- {
60
- "name": "tokens_sold",
61
- "type": "uint256",
62
- "indexed": false
63
- },
64
- {
65
- "name": "bought_id",
66
- "type": "int128",
67
- "indexed": false
68
- },
69
- {
70
- "name": "tokens_bought",
71
- "type": "uint256",
72
- "indexed": false
73
- }
74
- ],
75
- "anonymous": false,
76
- "type": "event"
77
- },
78
- {
79
- "name": "TokenExchangeUnderlying",
80
- "inputs": [
81
- {
82
- "name": "buyer",
83
- "type": "address",
84
- "indexed": true
85
- },
86
- {
87
- "name": "sold_id",
88
- "type": "int128",
89
- "indexed": false
90
- },
91
- {
92
- "name": "tokens_sold",
93
- "type": "uint256",
94
- "indexed": false
95
- },
96
- {
97
- "name": "bought_id",
98
- "type": "int128",
99
- "indexed": false
100
- },
101
- {
102
- "name": "tokens_bought",
103
- "type": "uint256",
104
- "indexed": false
105
- }
106
- ],
107
- "anonymous": false,
108
- "type": "event"
109
- },
110
- {
111
- "name": "AddLiquidity",
112
- "inputs": [
113
- {
114
- "name": "provider",
115
- "type": "address",
116
- "indexed": true
117
- },
118
- {
119
- "name": "token_amounts",
120
- "type": "uint256[]",
121
- "indexed": false
122
- },
123
- {
124
- "name": "fees",
125
- "type": "uint256[]",
126
- "indexed": false
127
- },
128
- {
129
- "name": "invariant",
130
- "type": "uint256",
131
- "indexed": false
132
- },
133
- {
134
- "name": "token_supply",
135
- "type": "uint256",
136
- "indexed": false
137
- }
138
- ],
139
- "anonymous": false,
140
- "type": "event"
141
- },
142
- {
143
- "name": "RemoveLiquidity",
144
- "inputs": [
145
- {
146
- "name": "provider",
147
- "type": "address",
148
- "indexed": true
149
- },
150
- {
151
- "name": "token_amounts",
152
- "type": "uint256[]",
153
- "indexed": false
154
- },
155
- {
156
- "name": "fees",
157
- "type": "uint256[]",
158
- "indexed": false
159
- },
160
- {
161
- "name": "token_supply",
162
- "type": "uint256",
163
- "indexed": false
164
- }
165
- ],
166
- "anonymous": false,
167
- "type": "event"
168
- },
169
- {
170
- "name": "RemoveLiquidityOne",
171
- "inputs": [
172
- {
173
- "name": "provider",
174
- "type": "address",
175
- "indexed": true
176
- },
177
- {
178
- "name": "token_id",
179
- "type": "int128",
180
- "indexed": false
181
- },
182
- {
183
- "name": "token_amount",
184
- "type": "uint256",
185
- "indexed": false
186
- },
187
- {
188
- "name": "coin_amount",
189
- "type": "uint256",
190
- "indexed": false
191
- },
192
- {
193
- "name": "token_supply",
194
- "type": "uint256",
195
- "indexed": false
196
- }
197
- ],
198
- "anonymous": false,
199
- "type": "event"
200
- },
201
- {
202
- "name": "RemoveLiquidityImbalance",
203
- "inputs": [
204
- {
205
- "name": "provider",
206
- "type": "address",
207
- "indexed": true
208
- },
209
- {
210
- "name": "token_amounts",
211
- "type": "uint256[]",
212
- "indexed": false
213
- },
214
- {
215
- "name": "fees",
216
- "type": "uint256[]",
217
- "indexed": false
218
- },
219
- {
220
- "name": "invariant",
221
- "type": "uint256",
222
- "indexed": false
223
- },
224
- {
225
- "name": "token_supply",
226
- "type": "uint256",
227
- "indexed": false
228
- }
229
- ],
230
- "anonymous": false,
231
- "type": "event"
232
- },
233
- {
234
- "name": "RampA",
235
- "inputs": [
236
- {
237
- "name": "old_A",
238
- "type": "uint256",
239
- "indexed": false
240
- },
241
- {
242
- "name": "new_A",
243
- "type": "uint256",
244
- "indexed": false
245
- },
246
- {
247
- "name": "initial_time",
248
- "type": "uint256",
249
- "indexed": false
250
- },
251
- {
252
- "name": "future_time",
253
- "type": "uint256",
254
- "indexed": false
255
- }
256
- ],
257
- "anonymous": false,
258
- "type": "event"
259
- },
260
- {
261
- "name": "StopRampA",
262
- "inputs": [
263
- {
264
- "name": "A",
265
- "type": "uint256",
266
- "indexed": false
267
- },
268
- {
269
- "name": "t",
270
- "type": "uint256",
271
- "indexed": false
272
- }
273
- ],
274
- "anonymous": false,
275
- "type": "event"
276
- },
277
- {
278
- "name": "ApplyNewFee",
279
- "inputs": [
280
- {
281
- "name": "fee",
282
- "type": "uint256",
283
- "indexed": false
284
- },
285
- {
286
- "name": "offpeg_fee_multiplier",
287
- "type": "uint256",
288
- "indexed": false
289
- }
290
- ],
291
- "anonymous": false,
292
- "type": "event"
293
- },
294
- {
295
- "name": "SetNewMATime",
296
- "inputs": [
297
- {
298
- "name": "ma_exp_time",
299
- "type": "uint256",
300
- "indexed": false
301
- },
302
- {
303
- "name": "D_ma_time",
304
- "type": "uint256",
305
- "indexed": false
306
- }
307
- ],
308
- "anonymous": false,
309
- "type": "event"
310
- },
311
- {
312
- "stateMutability": "nonpayable",
313
- "type": "constructor",
314
- "inputs": [
315
- {
316
- "name": "_name",
317
- "type": "string"
318
- },
319
- {
320
- "name": "_symbol",
321
- "type": "string"
322
- },
323
- {
324
- "name": "_A",
325
- "type": "uint256"
326
- },
327
- {
328
- "name": "_fee",
329
- "type": "uint256"
330
- },
331
- {
332
- "name": "_offpeg_fee_multiplier",
333
- "type": "uint256"
334
- },
335
- {
336
- "name": "_ma_exp_time",
337
- "type": "uint256"
338
- },
339
- {
340
- "name": "_coins",
341
- "type": "address[]"
342
- },
343
- {
344
- "name": "_rate_multipliers",
345
- "type": "uint256[]"
346
- },
347
- {
348
- "name": "_asset_types",
349
- "type": "uint8[]"
350
- },
351
- {
352
- "name": "_method_ids",
353
- "type": "bytes4[]"
354
- },
355
- {
356
- "name": "_oracles",
357
- "type": "address[]"
358
- }
359
- ],
360
- "outputs": []
361
- },
362
- {
363
- "stateMutability": "nonpayable",
364
- "type": "function",
365
- "name": "exchange",
366
- "inputs": [
367
- {
368
- "name": "i",
369
- "type": "int128"
370
- },
371
- {
372
- "name": "j",
373
- "type": "int128"
374
- },
375
- {
376
- "name": "_dx",
377
- "type": "uint256"
378
- },
379
- {
380
- "name": "_min_dy",
381
- "type": "uint256"
382
- }
383
- ],
384
- "outputs": [
385
- {
386
- "name": "",
387
- "type": "uint256"
388
- }
389
- ]
390
- },
391
- {
392
- "stateMutability": "nonpayable",
393
- "type": "function",
394
- "name": "exchange",
395
- "inputs": [
396
- {
397
- "name": "i",
398
- "type": "int128"
399
- },
400
- {
401
- "name": "j",
402
- "type": "int128"
403
- },
404
- {
405
- "name": "_dx",
406
- "type": "uint256"
407
- },
408
- {
409
- "name": "_min_dy",
410
- "type": "uint256"
411
- },
412
- {
413
- "name": "_receiver",
414
- "type": "address"
415
- }
416
- ],
417
- "outputs": [
418
- {
419
- "name": "",
420
- "type": "uint256"
421
- }
422
- ]
423
- },
424
- {
425
- "stateMutability": "nonpayable",
426
- "type": "function",
427
- "name": "exchange_received",
428
- "inputs": [
429
- {
430
- "name": "i",
431
- "type": "int128"
432
- },
433
- {
434
- "name": "j",
435
- "type": "int128"
436
- },
437
- {
438
- "name": "_dx",
439
- "type": "uint256"
440
- },
441
- {
442
- "name": "_min_dy",
443
- "type": "uint256"
444
- }
445
- ],
446
- "outputs": [
447
- {
448
- "name": "",
449
- "type": "uint256"
450
- }
451
- ]
452
- },
453
- {
454
- "stateMutability": "nonpayable",
455
- "type": "function",
456
- "name": "exchange_received",
457
- "inputs": [
458
- {
459
- "name": "i",
460
- "type": "int128"
461
- },
462
- {
463
- "name": "j",
464
- "type": "int128"
465
- },
466
- {
467
- "name": "_dx",
468
- "type": "uint256"
469
- },
470
- {
471
- "name": "_min_dy",
472
- "type": "uint256"
473
- },
474
- {
475
- "name": "_receiver",
476
- "type": "address"
477
- }
478
- ],
479
- "outputs": [
480
- {
481
- "name": "",
482
- "type": "uint256"
483
- }
484
- ]
485
- },
486
- {
487
- "stateMutability": "nonpayable",
488
- "type": "function",
489
- "name": "add_liquidity",
490
- "inputs": [
491
- {
492
- "name": "_amounts",
493
- "type": "uint256[]"
494
- },
495
- {
496
- "name": "_min_mint_amount",
497
- "type": "uint256"
498
- }
499
- ],
500
- "outputs": [
501
- {
502
- "name": "",
503
- "type": "uint256"
504
- }
505
- ]
506
- },
507
- {
508
- "stateMutability": "nonpayable",
509
- "type": "function",
510
- "name": "add_liquidity",
511
- "inputs": [
512
- {
513
- "name": "_amounts",
514
- "type": "uint256[]"
515
- },
516
- {
517
- "name": "_min_mint_amount",
518
- "type": "uint256"
519
- },
520
- {
521
- "name": "_receiver",
522
- "type": "address"
523
- }
524
- ],
525
- "outputs": [
526
- {
527
- "name": "",
528
- "type": "uint256"
529
- }
530
- ]
531
- },
532
- {
533
- "stateMutability": "nonpayable",
534
- "type": "function",
535
- "name": "remove_liquidity_one_coin",
536
- "inputs": [
537
- {
538
- "name": "_burn_amount",
539
- "type": "uint256"
540
- },
541
- {
542
- "name": "i",
543
- "type": "int128"
544
- },
545
- {
546
- "name": "_min_received",
547
- "type": "uint256"
548
- }
549
- ],
550
- "outputs": [
551
- {
552
- "name": "",
553
- "type": "uint256"
554
- }
555
- ]
556
- },
557
- {
558
- "stateMutability": "nonpayable",
559
- "type": "function",
560
- "name": "remove_liquidity_one_coin",
561
- "inputs": [
562
- {
563
- "name": "_burn_amount",
564
- "type": "uint256"
565
- },
566
- {
567
- "name": "i",
568
- "type": "int128"
569
- },
570
- {
571
- "name": "_min_received",
572
- "type": "uint256"
573
- },
574
- {
575
- "name": "_receiver",
576
- "type": "address"
577
- }
578
- ],
579
- "outputs": [
580
- {
581
- "name": "",
582
- "type": "uint256"
583
- }
584
- ]
585
- },
586
- {
587
- "stateMutability": "nonpayable",
588
- "type": "function",
589
- "name": "remove_liquidity_imbalance",
590
- "inputs": [
591
- {
592
- "name": "_amounts",
593
- "type": "uint256[]"
594
- },
595
- {
596
- "name": "_max_burn_amount",
597
- "type": "uint256"
598
- }
599
- ],
600
- "outputs": [
601
- {
602
- "name": "",
603
- "type": "uint256"
604
- }
605
- ]
606
- },
607
- {
608
- "stateMutability": "nonpayable",
609
- "type": "function",
610
- "name": "remove_liquidity_imbalance",
611
- "inputs": [
612
- {
613
- "name": "_amounts",
614
- "type": "uint256[]"
615
- },
616
- {
617
- "name": "_max_burn_amount",
618
- "type": "uint256"
619
- },
620
- {
621
- "name": "_receiver",
622
- "type": "address"
623
- }
624
- ],
625
- "outputs": [
626
- {
627
- "name": "",
628
- "type": "uint256"
629
- }
630
- ]
631
- },
632
- {
633
- "stateMutability": "nonpayable",
634
- "type": "function",
635
- "name": "remove_liquidity",
636
- "inputs": [
637
- {
638
- "name": "_burn_amount",
639
- "type": "uint256"
640
- },
641
- {
642
- "name": "_min_amounts",
643
- "type": "uint256[]"
644
- }
645
- ],
646
- "outputs": [
647
- {
648
- "name": "",
649
- "type": "uint256[]"
650
- }
651
- ]
652
- },
653
- {
654
- "stateMutability": "nonpayable",
655
- "type": "function",
656
- "name": "remove_liquidity",
657
- "inputs": [
658
- {
659
- "name": "_burn_amount",
660
- "type": "uint256"
661
- },
662
- {
663
- "name": "_min_amounts",
664
- "type": "uint256[]"
665
- },
666
- {
667
- "name": "_receiver",
668
- "type": "address"
669
- }
670
- ],
671
- "outputs": [
672
- {
673
- "name": "",
674
- "type": "uint256[]"
675
- }
676
- ]
677
- },
678
- {
679
- "stateMutability": "nonpayable",
680
- "type": "function",
681
- "name": "remove_liquidity",
682
- "inputs": [
683
- {
684
- "name": "_burn_amount",
685
- "type": "uint256"
686
- },
687
- {
688
- "name": "_min_amounts",
689
- "type": "uint256[]"
690
- },
691
- {
692
- "name": "_receiver",
693
- "type": "address"
694
- },
695
- {
696
- "name": "_claim_admin_fees",
697
- "type": "bool"
698
- }
699
- ],
700
- "outputs": [
701
- {
702
- "name": "",
703
- "type": "uint256[]"
704
- }
705
- ]
706
- },
707
- {
708
- "stateMutability": "nonpayable",
709
- "type": "function",
710
- "name": "withdraw_admin_fees",
711
- "inputs": [],
712
- "outputs": []
713
- },
714
- {
715
- "stateMutability": "view",
716
- "type": "function",
717
- "name": "last_price",
718
- "inputs": [
719
- {
720
- "name": "i",
721
- "type": "uint256"
722
- }
723
- ],
724
- "outputs": [
725
- {
726
- "name": "",
727
- "type": "uint256"
728
- }
729
- ]
730
- },
731
- {
732
- "stateMutability": "view",
733
- "type": "function",
734
- "name": "ema_price",
735
- "inputs": [
736
- {
737
- "name": "i",
738
- "type": "uint256"
739
- }
740
- ],
741
- "outputs": [
742
- {
743
- "name": "",
744
- "type": "uint256"
745
- }
746
- ]
747
- },
748
- {
749
- "stateMutability": "view",
750
- "type": "function",
751
- "name": "get_p",
752
- "inputs": [
753
- {
754
- "name": "i",
755
- "type": "uint256"
756
- }
757
- ],
758
- "outputs": [
759
- {
760
- "name": "",
761
- "type": "uint256"
762
- }
763
- ]
764
- },
765
- {
766
- "stateMutability": "view",
767
- "type": "function",
768
- "name": "price_oracle",
769
- "inputs": [
770
- {
771
- "name": "i",
772
- "type": "uint256"
773
- }
774
- ],
775
- "outputs": [
776
- {
777
- "name": "",
778
- "type": "uint256"
779
- }
780
- ]
781
- },
782
- {
783
- "stateMutability": "view",
784
- "type": "function",
785
- "name": "D_oracle",
786
- "inputs": [],
787
- "outputs": [
788
- {
789
- "name": "",
790
- "type": "uint256"
791
- }
792
- ]
793
- },
794
- {
795
- "stateMutability": "nonpayable",
796
- "type": "function",
797
- "name": "transfer",
798
- "inputs": [
799
- {
800
- "name": "_to",
801
- "type": "address"
802
- },
803
- {
804
- "name": "_value",
805
- "type": "uint256"
806
- }
807
- ],
808
- "outputs": [
809
- {
810
- "name": "",
811
- "type": "bool"
812
- }
813
- ]
814
- },
815
- {
816
- "stateMutability": "nonpayable",
817
- "type": "function",
818
- "name": "transferFrom",
819
- "inputs": [
820
- {
821
- "name": "_from",
822
- "type": "address"
823
- },
824
- {
825
- "name": "_to",
826
- "type": "address"
827
- },
828
- {
829
- "name": "_value",
830
- "type": "uint256"
831
- }
832
- ],
833
- "outputs": [
834
- {
835
- "name": "",
836
- "type": "bool"
837
- }
838
- ]
839
- },
840
- {
841
- "stateMutability": "nonpayable",
842
- "type": "function",
843
- "name": "approve",
844
- "inputs": [
845
- {
846
- "name": "_spender",
847
- "type": "address"
848
- },
849
- {
850
- "name": "_value",
851
- "type": "uint256"
852
- }
853
- ],
854
- "outputs": [
855
- {
856
- "name": "",
857
- "type": "bool"
858
- }
859
- ]
860
- },
861
- {
862
- "stateMutability": "nonpayable",
863
- "type": "function",
864
- "name": "permit",
865
- "inputs": [
866
- {
867
- "name": "_owner",
868
- "type": "address"
869
- },
870
- {
871
- "name": "_spender",
872
- "type": "address"
873
- },
874
- {
875
- "name": "_value",
876
- "type": "uint256"
877
- },
878
- {
879
- "name": "_deadline",
880
- "type": "uint256"
881
- },
882
- {
883
- "name": "_v",
884
- "type": "uint8"
885
- },
886
- {
887
- "name": "_r",
888
- "type": "bytes32"
889
- },
890
- {
891
- "name": "_s",
892
- "type": "bytes32"
893
- }
894
- ],
895
- "outputs": [
896
- {
897
- "name": "",
898
- "type": "bool"
899
- }
900
- ]
901
- },
902
- {
903
- "stateMutability": "view",
904
- "type": "function",
905
- "name": "DOMAIN_SEPARATOR",
906
- "inputs": [],
907
- "outputs": [
908
- {
909
- "name": "",
910
- "type": "bytes32"
911
- }
912
- ]
913
- },
914
- {
915
- "stateMutability": "view",
916
- "type": "function",
917
- "name": "get_dx",
918
- "inputs": [
919
- {
920
- "name": "i",
921
- "type": "int128"
922
- },
923
- {
924
- "name": "j",
925
- "type": "int128"
926
- },
927
- {
928
- "name": "dy",
929
- "type": "uint256"
930
- }
931
- ],
932
- "outputs": [
933
- {
934
- "name": "",
935
- "type": "uint256"
936
- }
937
- ]
938
- },
939
- {
940
- "stateMutability": "view",
941
- "type": "function",
942
- "name": "get_dy",
943
- "inputs": [
944
- {
945
- "name": "i",
946
- "type": "int128"
947
- },
948
- {
949
- "name": "j",
950
- "type": "int128"
951
- },
952
- {
953
- "name": "dx",
954
- "type": "uint256"
955
- }
956
- ],
957
- "outputs": [
958
- {
959
- "name": "",
960
- "type": "uint256"
961
- }
962
- ]
963
- },
964
- {
965
- "stateMutability": "view",
966
- "type": "function",
967
- "name": "calc_withdraw_one_coin",
968
- "inputs": [
969
- {
970
- "name": "_burn_amount",
971
- "type": "uint256"
972
- },
973
- {
974
- "name": "i",
975
- "type": "int128"
976
- }
977
- ],
978
- "outputs": [
979
- {
980
- "name": "",
981
- "type": "uint256"
982
- }
983
- ]
984
- },
985
- {
986
- "stateMutability": "view",
987
- "type": "function",
988
- "name": "totalSupply",
989
- "inputs": [],
990
- "outputs": [
991
- {
992
- "name": "",
993
- "type": "uint256"
994
- }
995
- ]
996
- },
997
- {
998
- "stateMutability": "view",
999
- "type": "function",
1000
- "name": "get_virtual_price",
1001
- "inputs": [],
1002
- "outputs": [
1003
- {
1004
- "name": "",
1005
- "type": "uint256"
1006
- }
1007
- ]
1008
- },
1009
- {
1010
- "stateMutability": "view",
1011
- "type": "function",
1012
- "name": "calc_token_amount",
1013
- "inputs": [
1014
- {
1015
- "name": "_amounts",
1016
- "type": "uint256[]"
1017
- },
1018
- {
1019
- "name": "_is_deposit",
1020
- "type": "bool"
1021
- }
1022
- ],
1023
- "outputs": [
1024
- {
1025
- "name": "",
1026
- "type": "uint256"
1027
- }
1028
- ]
1029
- },
1030
- {
1031
- "stateMutability": "view",
1032
- "type": "function",
1033
- "name": "A",
1034
- "inputs": [],
1035
- "outputs": [
1036
- {
1037
- "name": "",
1038
- "type": "uint256"
1039
- }
1040
- ]
1041
- },
1042
- {
1043
- "stateMutability": "view",
1044
- "type": "function",
1045
- "name": "A_precise",
1046
- "inputs": [],
1047
- "outputs": [
1048
- {
1049
- "name": "",
1050
- "type": "uint256"
1051
- }
1052
- ]
1053
- },
1054
- {
1055
- "stateMutability": "view",
1056
- "type": "function",
1057
- "name": "balances",
1058
- "inputs": [
1059
- {
1060
- "name": "i",
1061
- "type": "uint256"
1062
- }
1063
- ],
1064
- "outputs": [
1065
- {
1066
- "name": "",
1067
- "type": "uint256"
1068
- }
1069
- ]
1070
- },
1071
- {
1072
- "stateMutability": "view",
1073
- "type": "function",
1074
- "name": "get_balances",
1075
- "inputs": [],
1076
- "outputs": [
1077
- {
1078
- "name": "",
1079
- "type": "uint256[]"
1080
- }
1081
- ]
1082
- },
1083
- {
1084
- "stateMutability": "view",
1085
- "type": "function",
1086
- "name": "stored_rates",
1087
- "inputs": [],
1088
- "outputs": [
1089
- {
1090
- "name": "",
1091
- "type": "uint256[]"
1092
- }
1093
- ]
1094
- },
1095
- {
1096
- "stateMutability": "view",
1097
- "type": "function",
1098
- "name": "dynamic_fee",
1099
- "inputs": [
1100
- {
1101
- "name": "i",
1102
- "type": "int128"
1103
- },
1104
- {
1105
- "name": "j",
1106
- "type": "int128"
1107
- }
1108
- ],
1109
- "outputs": [
1110
- {
1111
- "name": "",
1112
- "type": "uint256"
1113
- }
1114
- ]
1115
- },
1116
- {
1117
- "stateMutability": "nonpayable",
1118
- "type": "function",
1119
- "name": "ramp_A",
1120
- "inputs": [
1121
- {
1122
- "name": "_future_A",
1123
- "type": "uint256"
1124
- },
1125
- {
1126
- "name": "_future_time",
1127
- "type": "uint256"
1128
- }
1129
- ],
1130
- "outputs": []
1131
- },
1132
- {
1133
- "stateMutability": "nonpayable",
1134
- "type": "function",
1135
- "name": "stop_ramp_A",
1136
- "inputs": [],
1137
- "outputs": []
1138
- },
1139
- {
1140
- "stateMutability": "nonpayable",
1141
- "type": "function",
1142
- "name": "set_new_fee",
1143
- "inputs": [
1144
- {
1145
- "name": "_new_fee",
1146
- "type": "uint256"
1147
- },
1148
- {
1149
- "name": "_new_offpeg_fee_multiplier",
1150
- "type": "uint256"
1151
- }
1152
- ],
1153
- "outputs": []
1154
- },
1155
- {
1156
- "stateMutability": "nonpayable",
1157
- "type": "function",
1158
- "name": "set_ma_exp_time",
1159
- "inputs": [
1160
- {
1161
- "name": "_ma_exp_time",
1162
- "type": "uint256"
1163
- },
1164
- {
1165
- "name": "_D_ma_time",
1166
- "type": "uint256"
1167
- }
1168
- ],
1169
- "outputs": []
1170
- },
1171
- {
1172
- "stateMutability": "view",
1173
- "type": "function",
1174
- "name": "N_COINS",
1175
- "inputs": [],
1176
- "outputs": [
1177
- {
1178
- "name": "",
1179
- "type": "uint256"
1180
- }
1181
- ]
1182
- },
1183
- {
1184
- "stateMutability": "view",
1185
- "type": "function",
1186
- "name": "coins",
1187
- "inputs": [
1188
- {
1189
- "name": "arg0",
1190
- "type": "uint256"
1191
- }
1192
- ],
1193
- "outputs": [
1194
- {
1195
- "name": "",
1196
- "type": "address"
1197
- }
1198
- ]
1199
- },
1200
- {
1201
- "stateMutability": "view",
1202
- "type": "function",
1203
- "name": "fee",
1204
- "inputs": [],
1205
- "outputs": [
1206
- {
1207
- "name": "",
1208
- "type": "uint256"
1209
- }
1210
- ]
1211
- },
1212
- {
1213
- "stateMutability": "view",
1214
- "type": "function",
1215
- "name": "offpeg_fee_multiplier",
1216
- "inputs": [],
1217
- "outputs": [
1218
- {
1219
- "name": "",
1220
- "type": "uint256"
1221
- }
1222
- ]
1223
- },
1224
- {
1225
- "stateMutability": "view",
1226
- "type": "function",
1227
- "name": "admin_fee",
1228
- "inputs": [],
1229
- "outputs": [
1230
- {
1231
- "name": "",
1232
- "type": "uint256"
1233
- }
1234
- ]
1235
- },
1236
- {
1237
- "stateMutability": "view",
1238
- "type": "function",
1239
- "name": "initial_A",
1240
- "inputs": [],
1241
- "outputs": [
1242
- {
1243
- "name": "",
1244
- "type": "uint256"
1245
- }
1246
- ]
1247
- },
1248
- {
1249
- "stateMutability": "view",
1250
- "type": "function",
1251
- "name": "future_A",
1252
- "inputs": [],
1253
- "outputs": [
1254
- {
1255
- "name": "",
1256
- "type": "uint256"
1257
- }
1258
- ]
1259
- },
1260
- {
1261
- "stateMutability": "view",
1262
- "type": "function",
1263
- "name": "initial_A_time",
1264
- "inputs": [],
1265
- "outputs": [
1266
- {
1267
- "name": "",
1268
- "type": "uint256"
1269
- }
1270
- ]
1271
- },
1272
- {
1273
- "stateMutability": "view",
1274
- "type": "function",
1275
- "name": "future_A_time",
1276
- "inputs": [],
1277
- "outputs": [
1278
- {
1279
- "name": "",
1280
- "type": "uint256"
1281
- }
1282
- ]
1283
- },
1284
- {
1285
- "stateMutability": "view",
1286
- "type": "function",
1287
- "name": "admin_balances",
1288
- "inputs": [
1289
- {
1290
- "name": "arg0",
1291
- "type": "uint256"
1292
- }
1293
- ],
1294
- "outputs": [
1295
- {
1296
- "name": "",
1297
- "type": "uint256"
1298
- }
1299
- ]
1300
- },
1301
- {
1302
- "stateMutability": "view",
1303
- "type": "function",
1304
- "name": "ma_exp_time",
1305
- "inputs": [],
1306
- "outputs": [
1307
- {
1308
- "name": "",
1309
- "type": "uint256"
1310
- }
1311
- ]
1312
- },
1313
- {
1314
- "stateMutability": "view",
1315
- "type": "function",
1316
- "name": "D_ma_time",
1317
- "inputs": [],
1318
- "outputs": [
1319
- {
1320
- "name": "",
1321
- "type": "uint256"
1322
- }
1323
- ]
1324
- },
1325
- {
1326
- "stateMutability": "view",
1327
- "type": "function",
1328
- "name": "ma_last_time",
1329
- "inputs": [],
1330
- "outputs": [
1331
- {
1332
- "name": "",
1333
- "type": "uint256"
1334
- }
1335
- ]
1336
- },
1337
- {
1338
- "stateMutability": "view",
1339
- "type": "function",
1340
- "name": "name",
1341
- "inputs": [],
1342
- "outputs": [
1343
- {
1344
- "name": "",
1345
- "type": "string"
1346
- }
1347
- ]
1348
- },
1349
- {
1350
- "stateMutability": "view",
1351
- "type": "function",
1352
- "name": "symbol",
1353
- "inputs": [],
1354
- "outputs": [
1355
- {
1356
- "name": "",
1357
- "type": "string"
1358
- }
1359
- ]
1360
- },
1361
- {
1362
- "stateMutability": "view",
1363
- "type": "function",
1364
- "name": "decimals",
1365
- "inputs": [],
1366
- "outputs": [
1367
- {
1368
- "name": "",
1369
- "type": "uint8"
1370
- }
1371
- ]
1372
- },
1373
- {
1374
- "stateMutability": "view",
1375
- "type": "function",
1376
- "name": "version",
1377
- "inputs": [],
1378
- "outputs": [
1379
- {
1380
- "name": "",
1381
- "type": "string"
1382
- }
1383
- ]
1384
- },
1385
- {
1386
- "stateMutability": "view",
1387
- "type": "function",
1388
- "name": "balanceOf",
1389
- "inputs": [
1390
- {
1391
- "name": "arg0",
1392
- "type": "address"
1393
- }
1394
- ],
1395
- "outputs": [
1396
- {
1397
- "name": "",
1398
- "type": "uint256"
1399
- }
1400
- ]
1401
- },
1402
- {
1403
- "stateMutability": "view",
1404
- "type": "function",
1405
- "name": "allowance",
1406
- "inputs": [
1407
- {
1408
- "name": "arg0",
1409
- "type": "address"
1410
- },
1411
- {
1412
- "name": "arg1",
1413
- "type": "address"
1414
- }
1415
- ],
1416
- "outputs": [
1417
- {
1418
- "name": "",
1419
- "type": "uint256"
1420
- }
1421
- ]
1422
- },
1423
- {
1424
- "stateMutability": "view",
1425
- "type": "function",
1426
- "name": "nonces",
1427
- "inputs": [
1428
- {
1429
- "name": "arg0",
1430
- "type": "address"
1431
- }
1432
- ],
1433
- "outputs": [
1434
- {
1435
- "name": "",
1436
- "type": "uint256"
1437
- }
1438
- ]
1439
- },
1440
- {
1441
- "stateMutability": "view",
1442
- "type": "function",
1443
- "name": "salt",
1444
- "inputs": [],
1445
- "outputs": [
1446
- {
1447
- "name": "",
1448
- "type": "bytes32"
1449
- }
1450
- ]
1451
- }
1452
- ]