@paraswap/dex-lib 2.45.0 → 2.45.1-core.2.0

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 (210) 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/AugustusV6.abi.json +395 -0
  10. package/build/abi/algebra/AlgebraPool.abi.json +724 -724
  11. package/build/abi/curve-v1/StableSwapFRXETH.json +889 -0
  12. package/build/abi/curve-v1/StableSwapWBETH.json +1223 -0
  13. package/build/abi/sushiswap-v3/QuoterV2.json +267 -0
  14. package/build/abi/sushiswap-v3/RouterProcessor3.json +289 -0
  15. package/build/abi/uniswap-v3/UniswapV3Quoter.abi.json +191 -191
  16. package/build/abi/uniswap-v3/pancakeswap-v3/PancakeswapV3QuoterV2.abi.json +285 -0
  17. package/build/abi/uniswap-v3/pancakeswap-v3/PancakeswapV3Router.abi.json +583 -0
  18. package/build/abi/wBETH.json +1527 -0
  19. package/build/abi/woo-fi/WooFeeManager.abi.json +318 -0
  20. package/build/abi/woo-fi/WooPP.abi.json +548 -0
  21. package/build/abi/woo-fi/Wooracle.abi.json +260 -0
  22. package/build/dex/aave-v3/tokens/arbitrum.json +50 -0
  23. package/build/dex/aave-v3/tokens/avalanche.json +74 -0
  24. package/build/dex/aave-v3/tokens/fantom.json +62 -0
  25. package/build/dex/aave-v3/tokens/optimism.json +50 -0
  26. package/build/dex/aave-v3/tokens/polygon.json +116 -0
  27. package/build/dex/algebra/algebra-pool.d.ts +105 -37
  28. package/build/dex/algebra/algebra-pool.js +434 -322
  29. package/build/dex/balancer-v2/Gyro3Pool.d.ts +43 -0
  30. package/build/dex/balancer-v2/Gyro3Pool.js +160 -0
  31. package/build/dex/balancer-v2/Gyro3Pool.js.map +1 -0
  32. package/build/dex/balancer-v2/LinearMath.d.ts +88 -0
  33. package/build/dex/balancer-v2/LinearMath.js +285 -0
  34. package/build/dex/balancer-v2/LinearMath.js.map +1 -0
  35. package/build/dex/balancer-v2/LinearPool.d.ts +81 -0
  36. package/build/dex/balancer-v2/LinearPool.js +444 -0
  37. package/build/dex/balancer-v2/LinearPool.js.map +1 -0
  38. package/build/dex/balancer-v2/PhantomStablePool.d.ts +90 -0
  39. package/build/dex/balancer-v2/PhantomStablePool.js +418 -0
  40. package/build/dex/balancer-v2/PhantomStablePool.js.map +1 -0
  41. package/build/dex/balancer-v2/StableMath.d.ts +9 -0
  42. package/build/dex/balancer-v2/StableMath.js +272 -0
  43. package/build/dex/balancer-v2/StableMath.js.map +1 -0
  44. package/build/dex/balancer-v2/balancer-v2-pool.d.ts +140 -0
  45. package/build/dex/balancer-v2/balancer-v2-pool.js +647 -0
  46. package/build/dex/balancer-v2/balancer-v2-pool.js.map +1 -0
  47. package/build/dex/balancer-v2/pools/gyro/Gyro3Pool.d.ts +33 -0
  48. package/build/dex/balancer-v2/pools/gyro/Gyro3Pool.js +128 -0
  49. package/build/dex/balancer-v2/pools/gyro/Gyro3Pool.js.map +1 -0
  50. package/build/dex/balancer-v2/pools/gyro/GyroEPool.d.ts +34 -0
  51. package/build/dex/balancer-v2/pools/gyro/GyroEPool.js +151 -0
  52. package/build/dex/balancer-v2/pools/gyro/GyroEPool.js.map +1 -0
  53. package/build/dex/curve-v1/pools/frxETHpool.d.ts +7 -0
  54. package/build/dex/curve-v1/pools/frxETHpool.js +27 -0
  55. package/build/dex/curve-v1/pools/frxETHpool.js.map +1 -0
  56. package/build/dex/curve-v1/pools/wbETHpool.d.ts +29 -0
  57. package/build/dex/curve-v1/pools/wbETHpool.js +408 -0
  58. package/build/dex/curve-v1/pools/wbETHpool.js.map +1 -0
  59. package/build/dex/lighter-v1/abi/erc20.json +222 -0
  60. package/build/dex/lighter-v1/abi/factory.json +291 -0
  61. package/build/dex/lighter-v1/abi/order_book.json +594 -0
  62. package/build/dex/lighter-v1/abi/order_book_helper.json +176 -0
  63. package/build/dex/lighter-v1/abi/router.json +488 -0
  64. package/build/dex/lighter-v1/config.d.ts +4 -0
  65. package/build/dex/lighter-v1/config.js +17 -0
  66. package/build/dex/lighter-v1/config.js.map +1 -0
  67. package/build/dex/lighter-v1/constants.d.ts +2 -0
  68. package/build/dex/lighter-v1/constants.js +13 -0
  69. package/build/dex/lighter-v1/constants.js.map +1 -0
  70. package/build/dex/lighter-v1/lighter-v1-pool.d.ts +57 -0
  71. package/build/dex/lighter-v1/lighter-v1-pool.js +310 -0
  72. package/build/dex/lighter-v1/lighter-v1-pool.js.map +1 -0
  73. package/build/dex/lighter-v1/lighter-v1.d.ts +45 -0
  74. package/build/dex/lighter-v1/lighter-v1.js +331 -0
  75. package/build/dex/lighter-v1/lighter-v1.js.map +1 -0
  76. package/build/dex/lighter-v1/types.d.ts +40 -0
  77. package/build/dex/lighter-v1/types.js +3 -0
  78. package/build/dex/lighter-v1/types.js.map +1 -0
  79. package/build/dex/pancakeswap-v3/types.d.ts +14 -0
  80. package/build/dex/pancakeswap-v3/types.js +3 -0
  81. package/build/dex/pancakeswap-v3/types.js.map +1 -0
  82. package/build/dex/quickswap-v3.d.ts +21 -0
  83. package/build/dex/quickswap-v3.js +40 -0
  84. package/build/dex/quickswap-v3.js.map +1 -0
  85. package/build/dex/ramses-v2/config.d.ts +4 -0
  86. package/build/dex/ramses-v2/config.js +28 -0
  87. package/build/dex/ramses-v2/config.js.map +1 -0
  88. package/build/dex/ramses-v2/constants.d.ts +28 -0
  89. package/build/dex/ramses-v2/constants.js +35 -0
  90. package/build/dex/ramses-v2/constants.js.map +1 -0
  91. package/build/dex/ramses-v2/contract-math/BitMath.d.ts +4 -0
  92. package/build/dex/ramses-v2/contract-math/BitMath.js +93 -0
  93. package/build/dex/ramses-v2/contract-math/BitMath.js.map +1 -0
  94. package/build/dex/ramses-v2/contract-math/FixedPoint128.d.ts +3 -0
  95. package/build/dex/ramses-v2/contract-math/FixedPoint128.js +8 -0
  96. package/build/dex/ramses-v2/contract-math/FixedPoint128.js.map +1 -0
  97. package/build/dex/ramses-v2/contract-math/FixedPoint96.d.ts +4 -0
  98. package/build/dex/ramses-v2/contract-math/FixedPoint96.js +9 -0
  99. package/build/dex/ramses-v2/contract-math/FixedPoint96.js.map +1 -0
  100. package/build/dex/ramses-v2/contract-math/FullMath.d.ts +4 -0
  101. package/build/dex/ramses-v2/contract-math/FullMath.js +19 -0
  102. package/build/dex/ramses-v2/contract-math/FullMath.js.map +1 -0
  103. package/build/dex/ramses-v2/contract-math/LiquidityMath.d.ts +3 -0
  104. package/build/dex/ramses-v2/contract-math/LiquidityMath.js +22 -0
  105. package/build/dex/ramses-v2/contract-math/LiquidityMath.js.map +1 -0
  106. package/build/dex/ramses-v2/contract-math/Oracle.d.ts +10 -0
  107. package/build/dex/ramses-v2/contract-math/Oracle.js +133 -0
  108. package/build/dex/ramses-v2/contract-math/Oracle.js.map +1 -0
  109. package/build/dex/ramses-v2/contract-math/SqrtPriceMath.d.ts +10 -0
  110. package/build/dex/ramses-v2/contract-math/SqrtPriceMath.js +91 -0
  111. package/build/dex/ramses-v2/contract-math/SqrtPriceMath.js.map +1 -0
  112. package/build/dex/ramses-v2/contract-math/SwapMath.d.ts +8 -0
  113. package/build/dex/ramses-v2/contract-math/SwapMath.js +70 -0
  114. package/build/dex/ramses-v2/contract-math/SwapMath.js.map +1 -0
  115. package/build/dex/ramses-v2/contract-math/Tick.d.ts +7 -0
  116. package/build/dex/ramses-v2/contract-math/Tick.js +45 -0
  117. package/build/dex/ramses-v2/contract-math/Tick.js.map +1 -0
  118. package/build/dex/ramses-v2/contract-math/TickBitMap.d.ts +8 -0
  119. package/build/dex/ramses-v2/contract-math/TickBitMap.js +87 -0
  120. package/build/dex/ramses-v2/contract-math/TickBitMap.js.map +1 -0
  121. package/build/dex/ramses-v2/contract-math/TickMath.d.ts +8 -0
  122. package/build/dex/ramses-v2/contract-math/TickMath.js +162 -0
  123. package/build/dex/ramses-v2/contract-math/TickMath.js.map +1 -0
  124. package/build/dex/ramses-v2/contract-math/UnsafeMath.d.ts +3 -0
  125. package/build/dex/ramses-v2/contract-math/UnsafeMath.js +10 -0
  126. package/build/dex/ramses-v2/contract-math/UnsafeMath.js.map +1 -0
  127. package/build/dex/ramses-v2/contract-math/uniswap-v3-math.d.ts +18 -0
  128. package/build/dex/ramses-v2/contract-math/uniswap-v3-math.js +392 -0
  129. package/build/dex/ramses-v2/contract-math/uniswap-v3-math.js.map +1 -0
  130. package/build/dex/ramses-v2/contract-math/utils.d.ts +3 -0
  131. package/build/dex/ramses-v2/contract-math/utils.js +16 -0
  132. package/build/dex/ramses-v2/contract-math/utils.js.map +1 -0
  133. package/build/dex/ramses-v2/ramses-v2-pool.d.ts +42 -0
  134. package/build/dex/ramses-v2/ramses-v2-pool.js +307 -0
  135. package/build/dex/ramses-v2/ramses-v2-pool.js.map +1 -0
  136. package/build/dex/ramses-v2/ramses-v2.d.ts +61 -0
  137. package/build/dex/ramses-v2/ramses-v2.js +690 -0
  138. package/build/dex/ramses-v2/ramses-v2.js.map +1 -0
  139. package/build/dex/ramses-v2/types.d.ts +154 -0
  140. package/build/dex/ramses-v2/types.js +9 -0
  141. package/build/dex/ramses-v2/types.js.map +1 -0
  142. package/build/dex/ramses-v2/utils.d.ts +6 -0
  143. package/build/dex/ramses-v2/utils.js +71 -0
  144. package/build/dex/ramses-v2/utils.js.map +1 -0
  145. package/build/dex/solidly/forks-override/fvm.d.ts +20 -0
  146. package/build/dex/solidly/forks-override/fvm.js +42 -0
  147. package/build/dex/solidly/forks-override/fvm.js.map +1 -0
  148. package/build/dex/sushiswap-v3/config.d.ts +4 -0
  149. package/build/dex/sushiswap-v3/config.js +132 -0
  150. package/build/dex/sushiswap-v3/config.js.map +1 -0
  151. package/build/dex/sushiswap-v3/constants.d.ts +4 -0
  152. package/build/dex/sushiswap-v3/constants.js +32 -0
  153. package/build/dex/sushiswap-v3/constants.js.map +1 -0
  154. package/build/dex/sushiswap-v3/sushiswap-v3-original.d.ts +56 -0
  155. package/build/dex/sushiswap-v3/sushiswap-v3-original.js +598 -0
  156. package/build/dex/sushiswap-v3/sushiswap-v3-original.js.map +1 -0
  157. package/build/dex/sushiswap-v3/sushiswap-v3-pool.d.ts +1 -0
  158. package/build/dex/sushiswap-v3/sushiswap-v3-pool.js +6 -0
  159. package/build/dex/sushiswap-v3/sushiswap-v3-pool.js.map +1 -0
  160. package/build/dex/sushiswap-v3/sushiswap-v3.d.ts +21 -0
  161. package/build/dex/sushiswap-v3/sushiswap-v3.js +58 -0
  162. package/build/dex/sushiswap-v3/sushiswap-v3.js.map +1 -0
  163. package/build/dex/sushiswap-v3/token.d.ts +6 -0
  164. package/build/dex/sushiswap-v3/token.js +23 -0
  165. package/build/dex/sushiswap-v3/token.js.map +1 -0
  166. package/build/dex/sushiswap-v3/types.d.ts +15 -0
  167. package/build/dex/sushiswap-v3/types.js +18 -0
  168. package/build/dex/sushiswap-v3/types.js.map +1 -0
  169. package/build/dex/uniswap-v3/forks/pancakeswap-v3/pancakeswap-v3.d.ts +12 -0
  170. package/build/dex/uniswap-v3/forks/pancakeswap-v3/pancakeswap-v3.js +23 -0
  171. package/build/dex/uniswap-v3/forks/pancakeswap-v3/pancakeswap-v3.js.map +1 -0
  172. package/build/dex/woo-fi/config.d.ts +4 -0
  173. package/build/dex/woo-fi/config.js +141 -0
  174. package/build/dex/woo-fi/config.js.map +1 -0
  175. package/build/dex/woo-fi/constants.d.ts +5 -0
  176. package/build/dex/woo-fi/constants.js +20 -0
  177. package/build/dex/woo-fi/constants.js.map +1 -0
  178. package/build/dex/woo-fi/types.d.ts +48 -0
  179. package/build/dex/woo-fi/types.js +3 -0
  180. package/build/dex/woo-fi/types.js.map +1 -0
  181. package/build/dex/woo-fi/woo-fi-decimal-math.d.ts +14 -0
  182. package/build/dex/woo-fi/woo-fi-decimal-math.js +42 -0
  183. package/build/dex/woo-fi/woo-fi-decimal-math.js.map +1 -0
  184. package/build/dex/woo-fi/woo-fi-math.d.ts +31 -0
  185. package/build/dex/woo-fi/woo-fi-math.js +300 -0
  186. package/build/dex/woo-fi/woo-fi-math.js.map +1 -0
  187. package/build/dex/woo-fi/woo-fi.d.ts +65 -0
  188. package/build/dex/woo-fi/woo-fi.js +480 -0
  189. package/build/dex/woo-fi/woo-fi.js.map +1 -0
  190. package/build/executor/Executor01BytecodeBuilder.d.ts +77 -0
  191. package/build/executor/Executor01BytecodeBuilder.js +359 -0
  192. package/build/executor/Executor01BytecodeBuilder.js.map +1 -0
  193. package/build/executor/Executor02BytecodeBuilder.d.ts +12 -0
  194. package/build/executor/Executor02BytecodeBuilder.js +14 -0
  195. package/build/executor/Executor02BytecodeBuilder.js.map +1 -0
  196. package/build/executor/ExecutorDetector.d.ts +28 -0
  197. package/build/executor/ExecutorDetector.js +89 -0
  198. package/build/executor/ExecutorDetector.js.map +1 -0
  199. package/build/executor/IExecutorBytecodeBuilder.d.ts +6 -0
  200. package/build/executor/IExecutorBytecodeBuilder.js +3 -0
  201. package/build/executor/IExecutorBytecodeBuilder.js.map +1 -0
  202. package/build/generic-swap-transaction-builder.d.ts +39 -0
  203. package/build/generic-swap-transaction-builder.js +156 -0
  204. package/build/generic-swap-transaction-builder.js.map +1 -0
  205. package/build/implementations/local-paraswap-sdk.js +2 -0
  206. package/build/implementations/local-paraswap-sdk.js.map +1 -1
  207. package/package.json +2 -2
  208. package/src/implementations/local-paraswap-sdk.ts +2 -0
  209. package/build/abi/wombat/pool.json +0 -1289
  210. package/build/dex/uniswap-v2/rebase-tokens.json +0 -7
@@ -0,0 +1,1223 @@
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": "AddLiquidity",
80
+ "inputs": [
81
+ {
82
+ "name": "provider",
83
+ "type": "address",
84
+ "indexed": true
85
+ },
86
+ {
87
+ "name": "token_amounts",
88
+ "type": "uint256[2]",
89
+ "indexed": false
90
+ },
91
+ {
92
+ "name": "fees",
93
+ "type": "uint256[2]",
94
+ "indexed": false
95
+ },
96
+ {
97
+ "name": "invariant",
98
+ "type": "uint256",
99
+ "indexed": false
100
+ },
101
+ {
102
+ "name": "token_supply",
103
+ "type": "uint256",
104
+ "indexed": false
105
+ }
106
+ ],
107
+ "anonymous": false,
108
+ "type": "event"
109
+ },
110
+ {
111
+ "name": "RemoveLiquidity",
112
+ "inputs": [
113
+ {
114
+ "name": "provider",
115
+ "type": "address",
116
+ "indexed": true
117
+ },
118
+ {
119
+ "name": "token_amounts",
120
+ "type": "uint256[2]",
121
+ "indexed": false
122
+ },
123
+ {
124
+ "name": "fees",
125
+ "type": "uint256[2]",
126
+ "indexed": false
127
+ },
128
+ {
129
+ "name": "token_supply",
130
+ "type": "uint256",
131
+ "indexed": false
132
+ }
133
+ ],
134
+ "anonymous": false,
135
+ "type": "event"
136
+ },
137
+ {
138
+ "name": "RemoveLiquidityOne",
139
+ "inputs": [
140
+ {
141
+ "name": "provider",
142
+ "type": "address",
143
+ "indexed": true
144
+ },
145
+ {
146
+ "name": "token_amount",
147
+ "type": "uint256",
148
+ "indexed": false
149
+ },
150
+ {
151
+ "name": "coin_amount",
152
+ "type": "uint256",
153
+ "indexed": false
154
+ },
155
+ {
156
+ "name": "token_supply",
157
+ "type": "uint256",
158
+ "indexed": false
159
+ }
160
+ ],
161
+ "anonymous": false,
162
+ "type": "event"
163
+ },
164
+ {
165
+ "name": "RemoveLiquidityImbalance",
166
+ "inputs": [
167
+ {
168
+ "name": "provider",
169
+ "type": "address",
170
+ "indexed": true
171
+ },
172
+ {
173
+ "name": "token_amounts",
174
+ "type": "uint256[2]",
175
+ "indexed": false
176
+ },
177
+ {
178
+ "name": "fees",
179
+ "type": "uint256[2]",
180
+ "indexed": false
181
+ },
182
+ {
183
+ "name": "invariant",
184
+ "type": "uint256",
185
+ "indexed": false
186
+ },
187
+ {
188
+ "name": "token_supply",
189
+ "type": "uint256",
190
+ "indexed": false
191
+ }
192
+ ],
193
+ "anonymous": false,
194
+ "type": "event"
195
+ },
196
+ {
197
+ "name": "RampA",
198
+ "inputs": [
199
+ {
200
+ "name": "old_A",
201
+ "type": "uint256",
202
+ "indexed": false
203
+ },
204
+ {
205
+ "name": "new_A",
206
+ "type": "uint256",
207
+ "indexed": false
208
+ },
209
+ {
210
+ "name": "initial_time",
211
+ "type": "uint256",
212
+ "indexed": false
213
+ },
214
+ {
215
+ "name": "future_time",
216
+ "type": "uint256",
217
+ "indexed": false
218
+ }
219
+ ],
220
+ "anonymous": false,
221
+ "type": "event"
222
+ },
223
+ {
224
+ "name": "StopRampA",
225
+ "inputs": [
226
+ {
227
+ "name": "A",
228
+ "type": "uint256",
229
+ "indexed": false
230
+ },
231
+ {
232
+ "name": "t",
233
+ "type": "uint256",
234
+ "indexed": false
235
+ }
236
+ ],
237
+ "anonymous": false,
238
+ "type": "event"
239
+ },
240
+ {
241
+ "name": "CommitNewFee",
242
+ "inputs": [
243
+ {
244
+ "name": "new_fee",
245
+ "type": "uint256",
246
+ "indexed": false
247
+ }
248
+ ],
249
+ "anonymous": false,
250
+ "type": "event"
251
+ },
252
+ {
253
+ "name": "ApplyNewFee",
254
+ "inputs": [
255
+ {
256
+ "name": "fee",
257
+ "type": "uint256",
258
+ "indexed": false
259
+ }
260
+ ],
261
+ "anonymous": false,
262
+ "type": "event"
263
+ },
264
+ {
265
+ "stateMutability": "nonpayable",
266
+ "type": "constructor",
267
+ "inputs": [
268
+ {
269
+ "name": "_factory",
270
+ "type": "address"
271
+ },
272
+ {
273
+ "name": "_A",
274
+ "type": "uint256"
275
+ },
276
+ {
277
+ "name": "_fee",
278
+ "type": "uint256"
279
+ },
280
+ {
281
+ "name": "_oracle_method_id",
282
+ "type": "bytes4"
283
+ },
284
+ {
285
+ "name": "_oracle_addr",
286
+ "type": "address"
287
+ }
288
+ ],
289
+ "outputs": []
290
+ },
291
+ {
292
+ "stateMutability": "nonpayable",
293
+ "type": "function",
294
+ "name": "transfer",
295
+ "inputs": [
296
+ {
297
+ "name": "_to",
298
+ "type": "address"
299
+ },
300
+ {
301
+ "name": "_value",
302
+ "type": "uint256"
303
+ }
304
+ ],
305
+ "outputs": [
306
+ {
307
+ "name": "",
308
+ "type": "bool"
309
+ }
310
+ ]
311
+ },
312
+ {
313
+ "stateMutability": "nonpayable",
314
+ "type": "function",
315
+ "name": "transferFrom",
316
+ "inputs": [
317
+ {
318
+ "name": "_from",
319
+ "type": "address"
320
+ },
321
+ {
322
+ "name": "_to",
323
+ "type": "address"
324
+ },
325
+ {
326
+ "name": "_value",
327
+ "type": "uint256"
328
+ }
329
+ ],
330
+ "outputs": [
331
+ {
332
+ "name": "",
333
+ "type": "bool"
334
+ }
335
+ ]
336
+ },
337
+ {
338
+ "stateMutability": "nonpayable",
339
+ "type": "function",
340
+ "name": "approve",
341
+ "inputs": [
342
+ {
343
+ "name": "_spender",
344
+ "type": "address"
345
+ },
346
+ {
347
+ "name": "_value",
348
+ "type": "uint256"
349
+ }
350
+ ],
351
+ "outputs": [
352
+ {
353
+ "name": "",
354
+ "type": "bool"
355
+ }
356
+ ]
357
+ },
358
+ {
359
+ "stateMutability": "nonpayable",
360
+ "type": "function",
361
+ "name": "permit",
362
+ "inputs": [
363
+ {
364
+ "name": "_owner",
365
+ "type": "address"
366
+ },
367
+ {
368
+ "name": "_spender",
369
+ "type": "address"
370
+ },
371
+ {
372
+ "name": "_value",
373
+ "type": "uint256"
374
+ },
375
+ {
376
+ "name": "_deadline",
377
+ "type": "uint256"
378
+ },
379
+ {
380
+ "name": "_v",
381
+ "type": "uint8"
382
+ },
383
+ {
384
+ "name": "_r",
385
+ "type": "bytes32"
386
+ },
387
+ {
388
+ "name": "_s",
389
+ "type": "bytes32"
390
+ }
391
+ ],
392
+ "outputs": [
393
+ {
394
+ "name": "",
395
+ "type": "bool"
396
+ }
397
+ ]
398
+ },
399
+ {
400
+ "stateMutability": "view",
401
+ "type": "function",
402
+ "name": "last_price",
403
+ "inputs": [],
404
+ "outputs": [
405
+ {
406
+ "name": "",
407
+ "type": "uint256"
408
+ }
409
+ ]
410
+ },
411
+ {
412
+ "stateMutability": "view",
413
+ "type": "function",
414
+ "name": "ema_price",
415
+ "inputs": [],
416
+ "outputs": [
417
+ {
418
+ "name": "",
419
+ "type": "uint256"
420
+ }
421
+ ]
422
+ },
423
+ {
424
+ "stateMutability": "view",
425
+ "type": "function",
426
+ "name": "stored_rates",
427
+ "inputs": [],
428
+ "outputs": [
429
+ {
430
+ "name": "",
431
+ "type": "uint256[2]"
432
+ }
433
+ ]
434
+ },
435
+ {
436
+ "stateMutability": "view",
437
+ "type": "function",
438
+ "name": "balances",
439
+ "inputs": [
440
+ {
441
+ "name": "i",
442
+ "type": "uint256"
443
+ }
444
+ ],
445
+ "outputs": [
446
+ {
447
+ "name": "",
448
+ "type": "uint256"
449
+ }
450
+ ]
451
+ },
452
+ {
453
+ "stateMutability": "view",
454
+ "type": "function",
455
+ "name": "admin_fee",
456
+ "inputs": [],
457
+ "outputs": [
458
+ {
459
+ "name": "",
460
+ "type": "uint256"
461
+ }
462
+ ]
463
+ },
464
+ {
465
+ "stateMutability": "view",
466
+ "type": "function",
467
+ "name": "A",
468
+ "inputs": [],
469
+ "outputs": [
470
+ {
471
+ "name": "",
472
+ "type": "uint256"
473
+ }
474
+ ]
475
+ },
476
+ {
477
+ "stateMutability": "view",
478
+ "type": "function",
479
+ "name": "A_precise",
480
+ "inputs": [],
481
+ "outputs": [
482
+ {
483
+ "name": "",
484
+ "type": "uint256"
485
+ }
486
+ ]
487
+ },
488
+ {
489
+ "stateMutability": "view",
490
+ "type": "function",
491
+ "name": "get_p",
492
+ "inputs": [],
493
+ "outputs": [
494
+ {
495
+ "name": "",
496
+ "type": "uint256"
497
+ }
498
+ ]
499
+ },
500
+ {
501
+ "stateMutability": "view",
502
+ "type": "function",
503
+ "name": "price_oracle",
504
+ "inputs": [],
505
+ "outputs": [
506
+ {
507
+ "name": "",
508
+ "type": "uint256"
509
+ }
510
+ ]
511
+ },
512
+ {
513
+ "stateMutability": "view",
514
+ "type": "function",
515
+ "name": "get_virtual_price",
516
+ "inputs": [],
517
+ "outputs": [
518
+ {
519
+ "name": "",
520
+ "type": "uint256"
521
+ }
522
+ ]
523
+ },
524
+ {
525
+ "stateMutability": "view",
526
+ "type": "function",
527
+ "name": "calc_token_amount",
528
+ "inputs": [
529
+ {
530
+ "name": "_amounts",
531
+ "type": "uint256[2]"
532
+ },
533
+ {
534
+ "name": "_is_deposit",
535
+ "type": "bool"
536
+ }
537
+ ],
538
+ "outputs": [
539
+ {
540
+ "name": "",
541
+ "type": "uint256"
542
+ }
543
+ ]
544
+ },
545
+ {
546
+ "stateMutability": "payable",
547
+ "type": "function",
548
+ "name": "add_liquidity",
549
+ "inputs": [
550
+ {
551
+ "name": "_amounts",
552
+ "type": "uint256[2]"
553
+ },
554
+ {
555
+ "name": "_min_mint_amount",
556
+ "type": "uint256"
557
+ }
558
+ ],
559
+ "outputs": [
560
+ {
561
+ "name": "",
562
+ "type": "uint256"
563
+ }
564
+ ]
565
+ },
566
+ {
567
+ "stateMutability": "payable",
568
+ "type": "function",
569
+ "name": "add_liquidity",
570
+ "inputs": [
571
+ {
572
+ "name": "_amounts",
573
+ "type": "uint256[2]"
574
+ },
575
+ {
576
+ "name": "_min_mint_amount",
577
+ "type": "uint256"
578
+ },
579
+ {
580
+ "name": "_receiver",
581
+ "type": "address"
582
+ }
583
+ ],
584
+ "outputs": [
585
+ {
586
+ "name": "",
587
+ "type": "uint256"
588
+ }
589
+ ]
590
+ },
591
+ {
592
+ "stateMutability": "view",
593
+ "type": "function",
594
+ "name": "get_dy",
595
+ "inputs": [
596
+ {
597
+ "name": "i",
598
+ "type": "int128"
599
+ },
600
+ {
601
+ "name": "j",
602
+ "type": "int128"
603
+ },
604
+ {
605
+ "name": "dx",
606
+ "type": "uint256"
607
+ }
608
+ ],
609
+ "outputs": [
610
+ {
611
+ "name": "",
612
+ "type": "uint256"
613
+ }
614
+ ]
615
+ },
616
+ {
617
+ "stateMutability": "payable",
618
+ "type": "function",
619
+ "name": "exchange",
620
+ "inputs": [
621
+ {
622
+ "name": "i",
623
+ "type": "int128"
624
+ },
625
+ {
626
+ "name": "j",
627
+ "type": "int128"
628
+ },
629
+ {
630
+ "name": "_dx",
631
+ "type": "uint256"
632
+ },
633
+ {
634
+ "name": "_min_dy",
635
+ "type": "uint256"
636
+ }
637
+ ],
638
+ "outputs": [
639
+ {
640
+ "name": "",
641
+ "type": "uint256"
642
+ }
643
+ ]
644
+ },
645
+ {
646
+ "stateMutability": "payable",
647
+ "type": "function",
648
+ "name": "exchange",
649
+ "inputs": [
650
+ {
651
+ "name": "i",
652
+ "type": "int128"
653
+ },
654
+ {
655
+ "name": "j",
656
+ "type": "int128"
657
+ },
658
+ {
659
+ "name": "_dx",
660
+ "type": "uint256"
661
+ },
662
+ {
663
+ "name": "_min_dy",
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[2]"
690
+ }
691
+ ],
692
+ "outputs": [
693
+ {
694
+ "name": "",
695
+ "type": "uint256[2]"
696
+ }
697
+ ]
698
+ },
699
+ {
700
+ "stateMutability": "nonpayable",
701
+ "type": "function",
702
+ "name": "remove_liquidity",
703
+ "inputs": [
704
+ {
705
+ "name": "_burn_amount",
706
+ "type": "uint256"
707
+ },
708
+ {
709
+ "name": "_min_amounts",
710
+ "type": "uint256[2]"
711
+ },
712
+ {
713
+ "name": "_receiver",
714
+ "type": "address"
715
+ }
716
+ ],
717
+ "outputs": [
718
+ {
719
+ "name": "",
720
+ "type": "uint256[2]"
721
+ }
722
+ ]
723
+ },
724
+ {
725
+ "stateMutability": "nonpayable",
726
+ "type": "function",
727
+ "name": "remove_liquidity_imbalance",
728
+ "inputs": [
729
+ {
730
+ "name": "_amounts",
731
+ "type": "uint256[2]"
732
+ },
733
+ {
734
+ "name": "_max_burn_amount",
735
+ "type": "uint256"
736
+ }
737
+ ],
738
+ "outputs": [
739
+ {
740
+ "name": "",
741
+ "type": "uint256"
742
+ }
743
+ ]
744
+ },
745
+ {
746
+ "stateMutability": "nonpayable",
747
+ "type": "function",
748
+ "name": "remove_liquidity_imbalance",
749
+ "inputs": [
750
+ {
751
+ "name": "_amounts",
752
+ "type": "uint256[2]"
753
+ },
754
+ {
755
+ "name": "_max_burn_amount",
756
+ "type": "uint256"
757
+ },
758
+ {
759
+ "name": "_receiver",
760
+ "type": "address"
761
+ }
762
+ ],
763
+ "outputs": [
764
+ {
765
+ "name": "",
766
+ "type": "uint256"
767
+ }
768
+ ]
769
+ },
770
+ {
771
+ "stateMutability": "view",
772
+ "type": "function",
773
+ "name": "calc_withdraw_one_coin",
774
+ "inputs": [
775
+ {
776
+ "name": "_burn_amount",
777
+ "type": "uint256"
778
+ },
779
+ {
780
+ "name": "i",
781
+ "type": "int128"
782
+ }
783
+ ],
784
+ "outputs": [
785
+ {
786
+ "name": "",
787
+ "type": "uint256"
788
+ }
789
+ ]
790
+ },
791
+ {
792
+ "stateMutability": "nonpayable",
793
+ "type": "function",
794
+ "name": "remove_liquidity_one_coin",
795
+ "inputs": [
796
+ {
797
+ "name": "_burn_amount",
798
+ "type": "uint256"
799
+ },
800
+ {
801
+ "name": "i",
802
+ "type": "int128"
803
+ },
804
+ {
805
+ "name": "_min_received",
806
+ "type": "uint256"
807
+ }
808
+ ],
809
+ "outputs": [
810
+ {
811
+ "name": "",
812
+ "type": "uint256"
813
+ }
814
+ ]
815
+ },
816
+ {
817
+ "stateMutability": "nonpayable",
818
+ "type": "function",
819
+ "name": "remove_liquidity_one_coin",
820
+ "inputs": [
821
+ {
822
+ "name": "_burn_amount",
823
+ "type": "uint256"
824
+ },
825
+ {
826
+ "name": "i",
827
+ "type": "int128"
828
+ },
829
+ {
830
+ "name": "_min_received",
831
+ "type": "uint256"
832
+ },
833
+ {
834
+ "name": "_receiver",
835
+ "type": "address"
836
+ }
837
+ ],
838
+ "outputs": [
839
+ {
840
+ "name": "",
841
+ "type": "uint256"
842
+ }
843
+ ]
844
+ },
845
+ {
846
+ "stateMutability": "nonpayable",
847
+ "type": "function",
848
+ "name": "ramp_A",
849
+ "inputs": [
850
+ {
851
+ "name": "_future_A",
852
+ "type": "uint256"
853
+ },
854
+ {
855
+ "name": "_future_time",
856
+ "type": "uint256"
857
+ }
858
+ ],
859
+ "outputs": []
860
+ },
861
+ {
862
+ "stateMutability": "nonpayable",
863
+ "type": "function",
864
+ "name": "stop_ramp_A",
865
+ "inputs": [],
866
+ "outputs": []
867
+ },
868
+ {
869
+ "stateMutability": "nonpayable",
870
+ "type": "function",
871
+ "name": "withdraw_admin_fees",
872
+ "inputs": [],
873
+ "outputs": []
874
+ },
875
+ {
876
+ "stateMutability": "nonpayable",
877
+ "type": "function",
878
+ "name": "commit_new_fee",
879
+ "inputs": [
880
+ {
881
+ "name": "_new_fee",
882
+ "type": "uint256"
883
+ }
884
+ ],
885
+ "outputs": []
886
+ },
887
+ {
888
+ "stateMutability": "nonpayable",
889
+ "type": "function",
890
+ "name": "apply_new_fee",
891
+ "inputs": [],
892
+ "outputs": []
893
+ },
894
+ {
895
+ "stateMutability": "nonpayable",
896
+ "type": "function",
897
+ "name": "set_ma_exp_time",
898
+ "inputs": [
899
+ {
900
+ "name": "_ma_exp_time",
901
+ "type": "uint256"
902
+ }
903
+ ],
904
+ "outputs": []
905
+ },
906
+ {
907
+ "stateMutability": "view",
908
+ "type": "function",
909
+ "name": "owner",
910
+ "inputs": [],
911
+ "outputs": [
912
+ {
913
+ "name": "",
914
+ "type": "address"
915
+ }
916
+ ]
917
+ },
918
+ {
919
+ "stateMutability": "view",
920
+ "type": "function",
921
+ "name": "admin_fee_receiver",
922
+ "inputs": [],
923
+ "outputs": [
924
+ {
925
+ "name": "",
926
+ "type": "address"
927
+ }
928
+ ]
929
+ },
930
+ {
931
+ "stateMutability": "view",
932
+ "type": "function",
933
+ "name": "version",
934
+ "inputs": [],
935
+ "outputs": [
936
+ {
937
+ "name": "",
938
+ "type": "string"
939
+ }
940
+ ]
941
+ },
942
+ {
943
+ "stateMutability": "view",
944
+ "type": "function",
945
+ "name": "factory",
946
+ "inputs": [],
947
+ "outputs": [
948
+ {
949
+ "name": "",
950
+ "type": "address"
951
+ }
952
+ ]
953
+ },
954
+ {
955
+ "stateMutability": "view",
956
+ "type": "function",
957
+ "name": "admin_balances",
958
+ "inputs": [
959
+ {
960
+ "name": "arg0",
961
+ "type": "uint256"
962
+ }
963
+ ],
964
+ "outputs": [
965
+ {
966
+ "name": "",
967
+ "type": "uint256"
968
+ }
969
+ ]
970
+ },
971
+ {
972
+ "stateMutability": "view",
973
+ "type": "function",
974
+ "name": "fee",
975
+ "inputs": [],
976
+ "outputs": [
977
+ {
978
+ "name": "",
979
+ "type": "uint256"
980
+ }
981
+ ]
982
+ },
983
+ {
984
+ "stateMutability": "view",
985
+ "type": "function",
986
+ "name": "future_fee",
987
+ "inputs": [],
988
+ "outputs": [
989
+ {
990
+ "name": "",
991
+ "type": "uint256"
992
+ }
993
+ ]
994
+ },
995
+ {
996
+ "stateMutability": "view",
997
+ "type": "function",
998
+ "name": "admin_action_deadline",
999
+ "inputs": [],
1000
+ "outputs": [
1001
+ {
1002
+ "name": "",
1003
+ "type": "uint256"
1004
+ }
1005
+ ]
1006
+ },
1007
+ {
1008
+ "stateMutability": "view",
1009
+ "type": "function",
1010
+ "name": "initial_A",
1011
+ "inputs": [],
1012
+ "outputs": [
1013
+ {
1014
+ "name": "",
1015
+ "type": "uint256"
1016
+ }
1017
+ ]
1018
+ },
1019
+ {
1020
+ "stateMutability": "view",
1021
+ "type": "function",
1022
+ "name": "future_A",
1023
+ "inputs": [],
1024
+ "outputs": [
1025
+ {
1026
+ "name": "",
1027
+ "type": "uint256"
1028
+ }
1029
+ ]
1030
+ },
1031
+ {
1032
+ "stateMutability": "view",
1033
+ "type": "function",
1034
+ "name": "initial_A_time",
1035
+ "inputs": [],
1036
+ "outputs": [
1037
+ {
1038
+ "name": "",
1039
+ "type": "uint256"
1040
+ }
1041
+ ]
1042
+ },
1043
+ {
1044
+ "stateMutability": "view",
1045
+ "type": "function",
1046
+ "name": "future_A_time",
1047
+ "inputs": [],
1048
+ "outputs": [
1049
+ {
1050
+ "name": "",
1051
+ "type": "uint256"
1052
+ }
1053
+ ]
1054
+ },
1055
+ {
1056
+ "stateMutability": "view",
1057
+ "type": "function",
1058
+ "name": "balanceOf",
1059
+ "inputs": [
1060
+ {
1061
+ "name": "arg0",
1062
+ "type": "address"
1063
+ }
1064
+ ],
1065
+ "outputs": [
1066
+ {
1067
+ "name": "",
1068
+ "type": "uint256"
1069
+ }
1070
+ ]
1071
+ },
1072
+ {
1073
+ "stateMutability": "view",
1074
+ "type": "function",
1075
+ "name": "allowance",
1076
+ "inputs": [
1077
+ {
1078
+ "name": "arg0",
1079
+ "type": "address"
1080
+ },
1081
+ {
1082
+ "name": "arg1",
1083
+ "type": "address"
1084
+ }
1085
+ ],
1086
+ "outputs": [
1087
+ {
1088
+ "name": "",
1089
+ "type": "uint256"
1090
+ }
1091
+ ]
1092
+ },
1093
+ {
1094
+ "stateMutability": "view",
1095
+ "type": "function",
1096
+ "name": "totalSupply",
1097
+ "inputs": [],
1098
+ "outputs": [
1099
+ {
1100
+ "name": "",
1101
+ "type": "uint256"
1102
+ }
1103
+ ]
1104
+ },
1105
+ {
1106
+ "stateMutability": "view",
1107
+ "type": "function",
1108
+ "name": "DOMAIN_SEPARATOR",
1109
+ "inputs": [],
1110
+ "outputs": [
1111
+ {
1112
+ "name": "",
1113
+ "type": "bytes32"
1114
+ }
1115
+ ]
1116
+ },
1117
+ {
1118
+ "stateMutability": "view",
1119
+ "type": "function",
1120
+ "name": "nonces",
1121
+ "inputs": [
1122
+ {
1123
+ "name": "arg0",
1124
+ "type": "address"
1125
+ }
1126
+ ],
1127
+ "outputs": [
1128
+ {
1129
+ "name": "",
1130
+ "type": "uint256"
1131
+ }
1132
+ ]
1133
+ },
1134
+ {
1135
+ "stateMutability": "view",
1136
+ "type": "function",
1137
+ "name": "ma_exp_time",
1138
+ "inputs": [],
1139
+ "outputs": [
1140
+ {
1141
+ "name": "",
1142
+ "type": "uint256"
1143
+ }
1144
+ ]
1145
+ },
1146
+ {
1147
+ "stateMutability": "view",
1148
+ "type": "function",
1149
+ "name": "ma_last_time",
1150
+ "inputs": [],
1151
+ "outputs": [
1152
+ {
1153
+ "name": "",
1154
+ "type": "uint256"
1155
+ }
1156
+ ]
1157
+ },
1158
+ {
1159
+ "stateMutability": "view",
1160
+ "type": "function",
1161
+ "name": "name",
1162
+ "inputs": [],
1163
+ "outputs": [
1164
+ {
1165
+ "name": "",
1166
+ "type": "string"
1167
+ }
1168
+ ]
1169
+ },
1170
+ {
1171
+ "stateMutability": "view",
1172
+ "type": "function",
1173
+ "name": "symbol",
1174
+ "inputs": [],
1175
+ "outputs": [
1176
+ {
1177
+ "name": "",
1178
+ "type": "string"
1179
+ }
1180
+ ]
1181
+ },
1182
+ {
1183
+ "stateMutability": "view",
1184
+ "type": "function",
1185
+ "name": "decimals",
1186
+ "inputs": [],
1187
+ "outputs": [
1188
+ {
1189
+ "name": "",
1190
+ "type": "uint256"
1191
+ }
1192
+ ]
1193
+ },
1194
+ {
1195
+ "stateMutability": "view",
1196
+ "type": "function",
1197
+ "name": "coins",
1198
+ "inputs": [
1199
+ {
1200
+ "name": "arg0",
1201
+ "type": "uint256"
1202
+ }
1203
+ ],
1204
+ "outputs": [
1205
+ {
1206
+ "name": "",
1207
+ "type": "address"
1208
+ }
1209
+ ]
1210
+ },
1211
+ {
1212
+ "stateMutability": "view",
1213
+ "type": "function",
1214
+ "name": "oracle_method",
1215
+ "inputs": [],
1216
+ "outputs": [
1217
+ {
1218
+ "name": "",
1219
+ "type": "uint256"
1220
+ }
1221
+ ]
1222
+ }
1223
+ ]