@ripe-finance/sdk 0.0.2

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 (246) hide show
  1. package/LICENSE +41 -0
  2. package/README.md +44 -0
  3. package/dist/contracts/AddyRegistry.d.ts +1109 -0
  4. package/dist/contracts/AddyRegistry.d.ts.map +1 -0
  5. package/dist/contracts/AddyRegistry.js +1392 -0
  6. package/dist/contracts/AddyRegistry_v1.d.ts +473 -0
  7. package/dist/contracts/AddyRegistry_v1.d.ts.map +1 -0
  8. package/dist/contracts/AddyRegistry_v1.js +594 -0
  9. package/dist/contracts/AddyRegistry_v2.d.ts +1050 -0
  10. package/dist/contracts/AddyRegistry_v2.d.ts.map +1 -0
  11. package/dist/contracts/AddyRegistry_v2.js +1313 -0
  12. package/dist/contracts/Agent.d.ts +2709 -0
  13. package/dist/contracts/Agent.d.ts.map +1 -0
  14. package/dist/contracts/Agent.js +3458 -0
  15. package/dist/contracts/AgentFactory.d.ts +1665 -0
  16. package/dist/contracts/AgentFactory.d.ts.map +1 -0
  17. package/dist/contracts/AgentFactory.js +2078 -0
  18. package/dist/contracts/AgentFactory_v1.d.ts +1054 -0
  19. package/dist/contracts/AgentFactory_v1.d.ts.map +1 -0
  20. package/dist/contracts/AgentFactory_v1.js +1336 -0
  21. package/dist/contracts/AgentFactory_v2.d.ts +1275 -0
  22. package/dist/contracts/AgentFactory_v2.d.ts.map +1 -0
  23. package/dist/contracts/AgentFactory_v2.js +1609 -0
  24. package/dist/contracts/AgentTemplate.d.ts +2629 -0
  25. package/dist/contracts/AgentTemplate.d.ts.map +1 -0
  26. package/dist/contracts/AgentTemplate.js +3370 -0
  27. package/dist/contracts/Agent_v1.d.ts +2631 -0
  28. package/dist/contracts/Agent_v1.d.ts.map +1 -0
  29. package/dist/contracts/Agent_v1.js +3372 -0
  30. package/dist/contracts/Agent_v2.d.ts +2709 -0
  31. package/dist/contracts/Agent_v2.d.ts.map +1 -0
  32. package/dist/contracts/Agent_v2.js +3458 -0
  33. package/dist/contracts/AuctionHouse.d.ts +1566 -0
  34. package/dist/contracts/AuctionHouse.d.ts.map +1 -0
  35. package/dist/contracts/AuctionHouse.js +1814 -0
  36. package/dist/contracts/AuctionHouseNFT.d.ts +259 -0
  37. package/dist/contracts/AuctionHouseNFT.d.ts.map +1 -0
  38. package/dist/contracts/AuctionHouseNFT.js +295 -0
  39. package/dist/contracts/BlueChipYieldPrices.d.ts +1916 -0
  40. package/dist/contracts/BlueChipYieldPrices.d.ts.map +1 -0
  41. package/dist/contracts/BlueChipYieldPrices.js +2414 -0
  42. package/dist/contracts/Boardroom.d.ts +276 -0
  43. package/dist/contracts/Boardroom.d.ts.map +1 -0
  44. package/dist/contracts/Boardroom.js +317 -0
  45. package/dist/contracts/BondRoom.d.ts +539 -0
  46. package/dist/contracts/BondRoom.d.ts.map +1 -0
  47. package/dist/contracts/BondRoom.js +640 -0
  48. package/dist/contracts/ChainlinkFeeds.d.ts +706 -0
  49. package/dist/contracts/ChainlinkFeeds.d.ts.map +1 -0
  50. package/dist/contracts/ChainlinkFeeds.js +900 -0
  51. package/dist/contracts/ChainlinkPrices.d.ts +1594 -0
  52. package/dist/contracts/ChainlinkPrices.d.ts.map +1 -0
  53. package/dist/contracts/ChainlinkPrices.js +2023 -0
  54. package/dist/contracts/Contributor.d.ts +731 -0
  55. package/dist/contracts/Contributor.d.ts.map +1 -0
  56. package/dist/contracts/Contributor.js +896 -0
  57. package/dist/contracts/CreditEngine.d.ts +2295 -0
  58. package/dist/contracts/CreditEngine.d.ts.map +1 -0
  59. package/dist/contracts/CreditEngine.js +2662 -0
  60. package/dist/contracts/CurvePrices.d.ts +2041 -0
  61. package/dist/contracts/CurvePrices.d.ts.map +1 -0
  62. package/dist/contracts/CurvePrices.js +2523 -0
  63. package/dist/contracts/DefaultsBase.d.ts +470 -0
  64. package/dist/contracts/DefaultsBase.d.ts.map +1 -0
  65. package/dist/contracts/DefaultsBase.js +512 -0
  66. package/dist/contracts/ERC20.d.ts +271 -0
  67. package/dist/contracts/ERC20.d.ts.map +1 -0
  68. package/dist/contracts/ERC20.js +339 -0
  69. package/dist/contracts/Endaoment.d.ts +2208 -0
  70. package/dist/contracts/Endaoment.d.ts.map +1 -0
  71. package/dist/contracts/Endaoment.js +2877 -0
  72. package/dist/contracts/GreenPool.d.ts +1248 -0
  73. package/dist/contracts/GreenPool.d.ts.map +1 -0
  74. package/dist/contracts/GreenPool.js +1614 -0
  75. package/dist/contracts/GreenToken.d.ts +776 -0
  76. package/dist/contracts/GreenToken.d.ts.map +1 -0
  77. package/dist/contracts/GreenToken.js +990 -0
  78. package/dist/contracts/HumanResources.d.ts +1176 -0
  79. package/dist/contracts/HumanResources.d.ts.map +1 -0
  80. package/dist/contracts/HumanResources.js +1464 -0
  81. package/dist/contracts/Ledger.d.ts +2312 -0
  82. package/dist/contracts/Ledger.d.ts.map +1 -0
  83. package/dist/contracts/Ledger.js +2712 -0
  84. package/dist/contracts/LegoAaveV3.d.ts +1033 -0
  85. package/dist/contracts/LegoAaveV3.d.ts.map +1 -0
  86. package/dist/contracts/LegoAaveV3.js +1330 -0
  87. package/dist/contracts/LegoAeroClassic.d.ts +1204 -0
  88. package/dist/contracts/LegoAeroClassic.d.ts.map +1 -0
  89. package/dist/contracts/LegoAeroClassic.js +1546 -0
  90. package/dist/contracts/LegoAeroSlipstream.d.ts +1300 -0
  91. package/dist/contracts/LegoAeroSlipstream.d.ts.map +1 -0
  92. package/dist/contracts/LegoAeroSlipstream.js +1671 -0
  93. package/dist/contracts/LegoCommon.d.ts +164 -0
  94. package/dist/contracts/LegoCommon.d.ts.map +1 -0
  95. package/dist/contracts/LegoCommon.js +202 -0
  96. package/dist/contracts/LegoCompoundV3.d.ts +1060 -0
  97. package/dist/contracts/LegoCompoundV3.d.ts.map +1 -0
  98. package/dist/contracts/LegoCompoundV3.js +1365 -0
  99. package/dist/contracts/LegoCredit.d.ts +140 -0
  100. package/dist/contracts/LegoCredit.d.ts.map +1 -0
  101. package/dist/contracts/LegoCredit.js +179 -0
  102. package/dist/contracts/LegoCurve.d.ts +1189 -0
  103. package/dist/contracts/LegoCurve.d.ts.map +1 -0
  104. package/dist/contracts/LegoCurve.js +1519 -0
  105. package/dist/contracts/LegoDex.d.ts +587 -0
  106. package/dist/contracts/LegoDex.d.ts.map +1 -0
  107. package/dist/contracts/LegoDex.js +774 -0
  108. package/dist/contracts/LegoEuler.d.ts +1074 -0
  109. package/dist/contracts/LegoEuler.d.ts.map +1 -0
  110. package/dist/contracts/LegoEuler.js +1383 -0
  111. package/dist/contracts/LegoFluid.d.ts +1025 -0
  112. package/dist/contracts/LegoFluid.d.ts.map +1 -0
  113. package/dist/contracts/LegoFluid.js +1320 -0
  114. package/dist/contracts/LegoHelper.d.ts +1563 -0
  115. package/dist/contracts/LegoHelper.d.ts.map +1 -0
  116. package/dist/contracts/LegoHelper.js +1947 -0
  117. package/dist/contracts/LegoMoonwell.d.ts +1042 -0
  118. package/dist/contracts/LegoMoonwell.d.ts.map +1 -0
  119. package/dist/contracts/LegoMoonwell.js +1342 -0
  120. package/dist/contracts/LegoMorpho.d.ts +1074 -0
  121. package/dist/contracts/LegoMorpho.d.ts.map +1 -0
  122. package/dist/contracts/LegoMorpho.js +1383 -0
  123. package/dist/contracts/LegoRegistry.d.ts +1079 -0
  124. package/dist/contracts/LegoRegistry.d.ts.map +1 -0
  125. package/dist/contracts/LegoRegistry.js +1368 -0
  126. package/dist/contracts/LegoSky.d.ts +923 -0
  127. package/dist/contracts/LegoSky.d.ts.map +1 -0
  128. package/dist/contracts/LegoSky.js +1180 -0
  129. package/dist/contracts/LegoUniswapV2.d.ts +1204 -0
  130. package/dist/contracts/LegoUniswapV2.d.ts.map +1 -0
  131. package/dist/contracts/LegoUniswapV2.js +1546 -0
  132. package/dist/contracts/LegoUniswapV3.d.ts +1338 -0
  133. package/dist/contracts/LegoUniswapV3.d.ts.map +1 -0
  134. package/dist/contracts/LegoUniswapV3.js +1718 -0
  135. package/dist/contracts/LegoYield.d.ts +390 -0
  136. package/dist/contracts/LegoYield.d.ts.map +1 -0
  137. package/dist/contracts/LegoYield.js +511 -0
  138. package/dist/contracts/Lootbox.d.ts +1258 -0
  139. package/dist/contracts/Lootbox.d.ts.map +1 -0
  140. package/dist/contracts/Lootbox.js +1435 -0
  141. package/dist/contracts/MissionControl.d.ts +2642 -0
  142. package/dist/contracts/MissionControl.d.ts.map +1 -0
  143. package/dist/contracts/MissionControl.js +2957 -0
  144. package/dist/contracts/OracleParser.d.ts +207 -0
  145. package/dist/contracts/OracleParser.d.ts.map +1 -0
  146. package/dist/contracts/OracleParser.js +264 -0
  147. package/dist/contracts/OracleRegistry.d.ts +1221 -0
  148. package/dist/contracts/OracleRegistry.d.ts.map +1 -0
  149. package/dist/contracts/OracleRegistry.js +1562 -0
  150. package/dist/contracts/PriceDesk.d.ts +1581 -0
  151. package/dist/contracts/PriceDesk.d.ts.map +1 -0
  152. package/dist/contracts/PriceDesk.js +1993 -0
  153. package/dist/contracts/PriceSheets.d.ts +1127 -0
  154. package/dist/contracts/PriceSheets.d.ts.map +1 -0
  155. package/dist/contracts/PriceSheets.js +1383 -0
  156. package/dist/contracts/PythFeeds.d.ts +640 -0
  157. package/dist/contracts/PythFeeds.d.ts.map +1 -0
  158. package/dist/contracts/PythFeeds.js +813 -0
  159. package/dist/contracts/PythPrices.d.ts +1435 -0
  160. package/dist/contracts/PythPrices.d.ts.map +1 -0
  161. package/dist/contracts/PythPrices.js +1819 -0
  162. package/dist/contracts/RebaseErc20.d.ts +1080 -0
  163. package/dist/contracts/RebaseErc20.d.ts.map +1 -0
  164. package/dist/contracts/RebaseErc20.js +1312 -0
  165. package/dist/contracts/RipeGov.d.ts +2157 -0
  166. package/dist/contracts/RipeGov.d.ts.map +1 -0
  167. package/dist/contracts/RipeGov.js +2529 -0
  168. package/dist/contracts/RipeHq.d.ts +1612 -0
  169. package/dist/contracts/RipeHq.d.ts.map +1 -0
  170. package/dist/contracts/RipeHq.js +2029 -0
  171. package/dist/contracts/RipeToken.d.ts +776 -0
  172. package/dist/contracts/RipeToken.d.ts.map +1 -0
  173. package/dist/contracts/RipeToken.js +990 -0
  174. package/dist/contracts/SavingsGreen.d.ts +1160 -0
  175. package/dist/contracts/SavingsGreen.d.ts.map +1 -0
  176. package/dist/contracts/SavingsGreen.js +1505 -0
  177. package/dist/contracts/SimpleErc20.d.ts +1028 -0
  178. package/dist/contracts/SimpleErc20.d.ts.map +1 -0
  179. package/dist/contracts/SimpleErc20.js +1243 -0
  180. package/dist/contracts/StabilityPool.d.ts +1843 -0
  181. package/dist/contracts/StabilityPool.d.ts.map +1 -0
  182. package/dist/contracts/StabilityPool.js +2229 -0
  183. package/dist/contracts/StorkFeeds.d.ts +640 -0
  184. package/dist/contracts/StorkFeeds.d.ts.map +1 -0
  185. package/dist/contracts/StorkFeeds.js +813 -0
  186. package/dist/contracts/StorkPrices.d.ts +1435 -0
  187. package/dist/contracts/StorkPrices.d.ts.map +1 -0
  188. package/dist/contracts/StorkPrices.js +1819 -0
  189. package/dist/contracts/Switchboard.d.ts +1416 -0
  190. package/dist/contracts/Switchboard.d.ts.map +1 -0
  191. package/dist/contracts/Switchboard.js +1767 -0
  192. package/dist/contracts/SwitchboardAlpha.d.ts +2647 -0
  193. package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -0
  194. package/dist/contracts/SwitchboardAlpha.js +3301 -0
  195. package/dist/contracts/SwitchboardBravo.d.ts +2833 -0
  196. package/dist/contracts/SwitchboardBravo.d.ts.map +1 -0
  197. package/dist/contracts/SwitchboardBravo.js +3640 -0
  198. package/dist/contracts/SwitchboardCharlie.d.ts +3651 -0
  199. package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -0
  200. package/dist/contracts/SwitchboardCharlie.js +4642 -0
  201. package/dist/contracts/SwitchboardDelta.d.ts +1490 -0
  202. package/dist/contracts/SwitchboardDelta.d.ts.map +1 -0
  203. package/dist/contracts/SwitchboardDelta.js +1872 -0
  204. package/dist/contracts/Teller.d.ts +2664 -0
  205. package/dist/contracts/Teller.d.ts.map +1 -0
  206. package/dist/contracts/Teller.js +3518 -0
  207. package/dist/contracts/TrainingWheels.d.ts +321 -0
  208. package/dist/contracts/TrainingWheels.d.ts.map +1 -0
  209. package/dist/contracts/TrainingWheels.js +376 -0
  210. package/dist/contracts/UserWallet.d.ts +1975 -0
  211. package/dist/contracts/UserWallet.d.ts.map +1 -0
  212. package/dist/contracts/UserWallet.js +2577 -0
  213. package/dist/contracts/UserWalletConfig.d.ts +1852 -0
  214. package/dist/contracts/UserWalletConfig.d.ts.map +1 -0
  215. package/dist/contracts/UserWalletConfig.js +2263 -0
  216. package/dist/contracts/UserWalletConfig_v1.d.ts +1400 -0
  217. package/dist/contracts/UserWalletConfig_v1.d.ts.map +1 -0
  218. package/dist/contracts/UserWalletConfig_v1.js +1676 -0
  219. package/dist/contracts/UserWalletConfig_v2.d.ts +1468 -0
  220. package/dist/contracts/UserWalletConfig_v2.d.ts.map +1 -0
  221. package/dist/contracts/UserWalletConfig_v2.js +1764 -0
  222. package/dist/contracts/UserWallet_v1.d.ts +1980 -0
  223. package/dist/contracts/UserWallet_v1.d.ts.map +1 -0
  224. package/dist/contracts/UserWallet_v1.js +2581 -0
  225. package/dist/contracts/UserWallet_v2.d.ts +1958 -0
  226. package/dist/contracts/UserWallet_v2.d.ts.map +1 -0
  227. package/dist/contracts/UserWallet_v2.js +2553 -0
  228. package/dist/contracts/VaultBook.d.ts +1416 -0
  229. package/dist/contracts/VaultBook.d.ts.map +1 -0
  230. package/dist/contracts/VaultBook.js +1767 -0
  231. package/dist/contracts/WalletConfig.d.ts +1398 -0
  232. package/dist/contracts/WalletConfig.d.ts.map +1 -0
  233. package/dist/contracts/WalletConfig.js +1674 -0
  234. package/dist/contracts/WalletFunds.d.ts +1978 -0
  235. package/dist/contracts/WalletFunds.d.ts.map +1 -0
  236. package/dist/contracts/WalletFunds.js +2579 -0
  237. package/dist/contracts/index.d.ts +37 -0
  238. package/dist/contracts/index.d.ts.map +1 -0
  239. package/dist/contracts/index.js +40 -0
  240. package/dist/contracts/sdk.d.ts +77 -0
  241. package/dist/contracts/sdk.d.ts.map +1 -0
  242. package/dist/contracts/sdk.js +80 -0
  243. package/dist/index.d.ts +2907 -0
  244. package/dist/index.d.ts.map +1 -0
  245. package/dist/index.js +317 -0
  246. package/package.json +36 -0
@@ -0,0 +1,1614 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /* @ts-nocheck */
5
+ import { singleQuery, mutate } from '@dappql/async';
6
+ export const abi = [
7
+ {
8
+ name: 'Transfer',
9
+ inputs: [
10
+ {
11
+ name: 'sender',
12
+ type: 'address',
13
+ indexed: true,
14
+ },
15
+ {
16
+ name: 'receiver',
17
+ type: 'address',
18
+ indexed: true,
19
+ },
20
+ {
21
+ name: 'value',
22
+ type: 'uint256',
23
+ indexed: false,
24
+ },
25
+ ],
26
+ anonymous: false,
27
+ type: 'event',
28
+ },
29
+ {
30
+ name: 'Approval',
31
+ inputs: [
32
+ {
33
+ name: 'owner',
34
+ type: 'address',
35
+ indexed: true,
36
+ },
37
+ {
38
+ name: 'spender',
39
+ type: 'address',
40
+ indexed: true,
41
+ },
42
+ {
43
+ name: 'value',
44
+ type: 'uint256',
45
+ indexed: false,
46
+ },
47
+ ],
48
+ anonymous: false,
49
+ type: 'event',
50
+ },
51
+ {
52
+ name: 'TokenExchange',
53
+ inputs: [
54
+ {
55
+ name: 'buyer',
56
+ type: 'address',
57
+ indexed: true,
58
+ },
59
+ {
60
+ name: 'sold_id',
61
+ type: 'int128',
62
+ indexed: false,
63
+ },
64
+ {
65
+ name: 'tokens_sold',
66
+ type: 'uint256',
67
+ indexed: false,
68
+ },
69
+ {
70
+ name: 'bought_id',
71
+ type: 'int128',
72
+ indexed: false,
73
+ },
74
+ {
75
+ name: 'tokens_bought',
76
+ type: 'uint256',
77
+ indexed: false,
78
+ },
79
+ ],
80
+ anonymous: false,
81
+ type: 'event',
82
+ },
83
+ {
84
+ name: 'TokenExchangeUnderlying',
85
+ inputs: [
86
+ {
87
+ name: 'buyer',
88
+ type: 'address',
89
+ indexed: true,
90
+ },
91
+ {
92
+ name: 'sold_id',
93
+ type: 'int128',
94
+ indexed: false,
95
+ },
96
+ {
97
+ name: 'tokens_sold',
98
+ type: 'uint256',
99
+ indexed: false,
100
+ },
101
+ {
102
+ name: 'bought_id',
103
+ type: 'int128',
104
+ indexed: false,
105
+ },
106
+ {
107
+ name: 'tokens_bought',
108
+ type: 'uint256',
109
+ indexed: false,
110
+ },
111
+ ],
112
+ anonymous: false,
113
+ type: 'event',
114
+ },
115
+ {
116
+ name: 'AddLiquidity',
117
+ inputs: [
118
+ {
119
+ name: 'provider',
120
+ type: 'address',
121
+ indexed: true,
122
+ },
123
+ {
124
+ name: 'token_amounts',
125
+ type: 'uint256[]',
126
+ indexed: false,
127
+ },
128
+ {
129
+ name: 'fees',
130
+ type: 'uint256[]',
131
+ indexed: false,
132
+ },
133
+ {
134
+ name: 'invariant',
135
+ type: 'uint256',
136
+ indexed: false,
137
+ },
138
+ {
139
+ name: 'token_supply',
140
+ type: 'uint256',
141
+ indexed: false,
142
+ },
143
+ ],
144
+ anonymous: false,
145
+ type: 'event',
146
+ },
147
+ {
148
+ name: 'RemoveLiquidity',
149
+ inputs: [
150
+ {
151
+ name: 'provider',
152
+ type: 'address',
153
+ indexed: true,
154
+ },
155
+ {
156
+ name: 'token_amounts',
157
+ type: 'uint256[]',
158
+ indexed: false,
159
+ },
160
+ {
161
+ name: 'fees',
162
+ type: 'uint256[]',
163
+ indexed: false,
164
+ },
165
+ {
166
+ name: 'token_supply',
167
+ type: 'uint256',
168
+ indexed: false,
169
+ },
170
+ ],
171
+ anonymous: false,
172
+ type: 'event',
173
+ },
174
+ {
175
+ name: 'RemoveLiquidityOne',
176
+ inputs: [
177
+ {
178
+ name: 'provider',
179
+ type: 'address',
180
+ indexed: true,
181
+ },
182
+ {
183
+ name: 'token_id',
184
+ type: 'int128',
185
+ indexed: false,
186
+ },
187
+ {
188
+ name: 'token_amount',
189
+ type: 'uint256',
190
+ indexed: false,
191
+ },
192
+ {
193
+ name: 'coin_amount',
194
+ type: 'uint256',
195
+ indexed: false,
196
+ },
197
+ {
198
+ name: 'token_supply',
199
+ type: 'uint256',
200
+ indexed: false,
201
+ },
202
+ ],
203
+ anonymous: false,
204
+ type: 'event',
205
+ },
206
+ {
207
+ name: 'RemoveLiquidityImbalance',
208
+ inputs: [
209
+ {
210
+ name: 'provider',
211
+ type: 'address',
212
+ indexed: true,
213
+ },
214
+ {
215
+ name: 'token_amounts',
216
+ type: 'uint256[]',
217
+ indexed: false,
218
+ },
219
+ {
220
+ name: 'fees',
221
+ type: 'uint256[]',
222
+ indexed: false,
223
+ },
224
+ {
225
+ name: 'invariant',
226
+ type: 'uint256',
227
+ indexed: false,
228
+ },
229
+ {
230
+ name: 'token_supply',
231
+ type: 'uint256',
232
+ indexed: false,
233
+ },
234
+ ],
235
+ anonymous: false,
236
+ type: 'event',
237
+ },
238
+ {
239
+ name: 'RampA',
240
+ inputs: [
241
+ {
242
+ name: 'old_A',
243
+ type: 'uint256',
244
+ indexed: false,
245
+ },
246
+ {
247
+ name: 'new_A',
248
+ type: 'uint256',
249
+ indexed: false,
250
+ },
251
+ {
252
+ name: 'initial_time',
253
+ type: 'uint256',
254
+ indexed: false,
255
+ },
256
+ {
257
+ name: 'future_time',
258
+ type: 'uint256',
259
+ indexed: false,
260
+ },
261
+ ],
262
+ anonymous: false,
263
+ type: 'event',
264
+ },
265
+ {
266
+ name: 'StopRampA',
267
+ inputs: [
268
+ {
269
+ name: 'A',
270
+ type: 'uint256',
271
+ indexed: false,
272
+ },
273
+ {
274
+ name: 't',
275
+ type: 'uint256',
276
+ indexed: false,
277
+ },
278
+ ],
279
+ anonymous: false,
280
+ type: 'event',
281
+ },
282
+ {
283
+ name: 'ApplyNewFee',
284
+ inputs: [
285
+ {
286
+ name: 'fee',
287
+ type: 'uint256',
288
+ indexed: false,
289
+ },
290
+ {
291
+ name: 'offpeg_fee_multiplier',
292
+ type: 'uint256',
293
+ indexed: false,
294
+ },
295
+ ],
296
+ anonymous: false,
297
+ type: 'event',
298
+ },
299
+ {
300
+ name: 'SetNewMATime',
301
+ inputs: [
302
+ {
303
+ name: 'ma_exp_time',
304
+ type: 'uint256',
305
+ indexed: false,
306
+ },
307
+ {
308
+ name: 'D_ma_time',
309
+ type: 'uint256',
310
+ indexed: false,
311
+ },
312
+ ],
313
+ anonymous: false,
314
+ type: 'event',
315
+ },
316
+ {
317
+ stateMutability: 'nonpayable',
318
+ type: 'constructor',
319
+ inputs: [
320
+ {
321
+ name: '_name',
322
+ type: 'string',
323
+ },
324
+ {
325
+ name: '_symbol',
326
+ type: 'string',
327
+ },
328
+ {
329
+ name: '_A',
330
+ type: 'uint256',
331
+ },
332
+ {
333
+ name: '_fee',
334
+ type: 'uint256',
335
+ },
336
+ {
337
+ name: '_offpeg_fee_multiplier',
338
+ type: 'uint256',
339
+ },
340
+ {
341
+ name: '_ma_exp_time',
342
+ type: 'uint256',
343
+ },
344
+ {
345
+ name: '_coins',
346
+ type: 'address[]',
347
+ },
348
+ {
349
+ name: '_rate_multipliers',
350
+ type: 'uint256[]',
351
+ },
352
+ {
353
+ name: '_asset_types',
354
+ type: 'uint8[]',
355
+ },
356
+ {
357
+ name: '_method_ids',
358
+ type: 'bytes4[]',
359
+ },
360
+ {
361
+ name: '_oracles',
362
+ type: 'address[]',
363
+ },
364
+ ],
365
+ outputs: [],
366
+ },
367
+ {
368
+ stateMutability: 'nonpayable',
369
+ type: 'function',
370
+ name: 'exchange',
371
+ inputs: [
372
+ {
373
+ name: 'i',
374
+ type: 'int128',
375
+ },
376
+ {
377
+ name: 'j',
378
+ type: 'int128',
379
+ },
380
+ {
381
+ name: '_dx',
382
+ type: 'uint256',
383
+ },
384
+ {
385
+ name: '_min_dy',
386
+ type: 'uint256',
387
+ },
388
+ ],
389
+ outputs: [
390
+ {
391
+ name: '',
392
+ type: 'uint256',
393
+ },
394
+ ],
395
+ },
396
+ {
397
+ stateMutability: 'nonpayable',
398
+ type: 'function',
399
+ name: 'exchange',
400
+ inputs: [
401
+ {
402
+ name: 'i',
403
+ type: 'int128',
404
+ },
405
+ {
406
+ name: 'j',
407
+ type: 'int128',
408
+ },
409
+ {
410
+ name: '_dx',
411
+ type: 'uint256',
412
+ },
413
+ {
414
+ name: '_min_dy',
415
+ type: 'uint256',
416
+ },
417
+ {
418
+ name: '_receiver',
419
+ type: 'address',
420
+ },
421
+ ],
422
+ outputs: [
423
+ {
424
+ name: '',
425
+ type: 'uint256',
426
+ },
427
+ ],
428
+ },
429
+ {
430
+ stateMutability: 'nonpayable',
431
+ type: 'function',
432
+ name: 'exchange_received',
433
+ inputs: [
434
+ {
435
+ name: 'i',
436
+ type: 'int128',
437
+ },
438
+ {
439
+ name: 'j',
440
+ type: 'int128',
441
+ },
442
+ {
443
+ name: '_dx',
444
+ type: 'uint256',
445
+ },
446
+ {
447
+ name: '_min_dy',
448
+ type: 'uint256',
449
+ },
450
+ ],
451
+ outputs: [
452
+ {
453
+ name: '',
454
+ type: 'uint256',
455
+ },
456
+ ],
457
+ },
458
+ {
459
+ stateMutability: 'nonpayable',
460
+ type: 'function',
461
+ name: 'exchange_received',
462
+ inputs: [
463
+ {
464
+ name: 'i',
465
+ type: 'int128',
466
+ },
467
+ {
468
+ name: 'j',
469
+ type: 'int128',
470
+ },
471
+ {
472
+ name: '_dx',
473
+ type: 'uint256',
474
+ },
475
+ {
476
+ name: '_min_dy',
477
+ type: 'uint256',
478
+ },
479
+ {
480
+ name: '_receiver',
481
+ type: 'address',
482
+ },
483
+ ],
484
+ outputs: [
485
+ {
486
+ name: '',
487
+ type: 'uint256',
488
+ },
489
+ ],
490
+ },
491
+ {
492
+ stateMutability: 'nonpayable',
493
+ type: 'function',
494
+ name: 'add_liquidity',
495
+ inputs: [
496
+ {
497
+ name: '_amounts',
498
+ type: 'uint256[]',
499
+ },
500
+ {
501
+ name: '_min_mint_amount',
502
+ type: 'uint256',
503
+ },
504
+ ],
505
+ outputs: [
506
+ {
507
+ name: '',
508
+ type: 'uint256',
509
+ },
510
+ ],
511
+ },
512
+ {
513
+ stateMutability: 'nonpayable',
514
+ type: 'function',
515
+ name: 'add_liquidity',
516
+ inputs: [
517
+ {
518
+ name: '_amounts',
519
+ type: 'uint256[]',
520
+ },
521
+ {
522
+ name: '_min_mint_amount',
523
+ type: 'uint256',
524
+ },
525
+ {
526
+ name: '_receiver',
527
+ type: 'address',
528
+ },
529
+ ],
530
+ outputs: [
531
+ {
532
+ name: '',
533
+ type: 'uint256',
534
+ },
535
+ ],
536
+ },
537
+ {
538
+ stateMutability: 'nonpayable',
539
+ type: 'function',
540
+ name: 'remove_liquidity_one_coin',
541
+ inputs: [
542
+ {
543
+ name: '_burn_amount',
544
+ type: 'uint256',
545
+ },
546
+ {
547
+ name: 'i',
548
+ type: 'int128',
549
+ },
550
+ {
551
+ name: '_min_received',
552
+ type: 'uint256',
553
+ },
554
+ ],
555
+ outputs: [
556
+ {
557
+ name: '',
558
+ type: 'uint256',
559
+ },
560
+ ],
561
+ },
562
+ {
563
+ stateMutability: 'nonpayable',
564
+ type: 'function',
565
+ name: 'remove_liquidity_one_coin',
566
+ inputs: [
567
+ {
568
+ name: '_burn_amount',
569
+ type: 'uint256',
570
+ },
571
+ {
572
+ name: 'i',
573
+ type: 'int128',
574
+ },
575
+ {
576
+ name: '_min_received',
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: 'nonpayable',
593
+ type: 'function',
594
+ name: 'remove_liquidity_imbalance',
595
+ inputs: [
596
+ {
597
+ name: '_amounts',
598
+ type: 'uint256[]',
599
+ },
600
+ {
601
+ name: '_max_burn_amount',
602
+ type: 'uint256',
603
+ },
604
+ ],
605
+ outputs: [
606
+ {
607
+ name: '',
608
+ type: 'uint256',
609
+ },
610
+ ],
611
+ },
612
+ {
613
+ stateMutability: 'nonpayable',
614
+ type: 'function',
615
+ name: 'remove_liquidity_imbalance',
616
+ inputs: [
617
+ {
618
+ name: '_amounts',
619
+ type: 'uint256[]',
620
+ },
621
+ {
622
+ name: '_max_burn_amount',
623
+ type: 'uint256',
624
+ },
625
+ {
626
+ name: '_receiver',
627
+ type: 'address',
628
+ },
629
+ ],
630
+ outputs: [
631
+ {
632
+ name: '',
633
+ type: 'uint256',
634
+ },
635
+ ],
636
+ },
637
+ {
638
+ stateMutability: 'nonpayable',
639
+ type: 'function',
640
+ name: 'remove_liquidity',
641
+ inputs: [
642
+ {
643
+ name: '_burn_amount',
644
+ type: 'uint256',
645
+ },
646
+ {
647
+ name: '_min_amounts',
648
+ type: 'uint256[]',
649
+ },
650
+ ],
651
+ outputs: [
652
+ {
653
+ name: '',
654
+ type: 'uint256[]',
655
+ },
656
+ ],
657
+ },
658
+ {
659
+ stateMutability: 'nonpayable',
660
+ type: 'function',
661
+ name: 'remove_liquidity',
662
+ inputs: [
663
+ {
664
+ name: '_burn_amount',
665
+ type: 'uint256',
666
+ },
667
+ {
668
+ name: '_min_amounts',
669
+ type: 'uint256[]',
670
+ },
671
+ {
672
+ name: '_receiver',
673
+ type: 'address',
674
+ },
675
+ ],
676
+ outputs: [
677
+ {
678
+ name: '',
679
+ type: 'uint256[]',
680
+ },
681
+ ],
682
+ },
683
+ {
684
+ stateMutability: 'nonpayable',
685
+ type: 'function',
686
+ name: 'remove_liquidity',
687
+ inputs: [
688
+ {
689
+ name: '_burn_amount',
690
+ type: 'uint256',
691
+ },
692
+ {
693
+ name: '_min_amounts',
694
+ type: 'uint256[]',
695
+ },
696
+ {
697
+ name: '_receiver',
698
+ type: 'address',
699
+ },
700
+ {
701
+ name: '_claim_admin_fees',
702
+ type: 'bool',
703
+ },
704
+ ],
705
+ outputs: [
706
+ {
707
+ name: '',
708
+ type: 'uint256[]',
709
+ },
710
+ ],
711
+ },
712
+ {
713
+ stateMutability: 'nonpayable',
714
+ type: 'function',
715
+ name: 'withdraw_admin_fees',
716
+ inputs: [],
717
+ outputs: [],
718
+ },
719
+ {
720
+ stateMutability: 'view',
721
+ type: 'function',
722
+ name: 'last_price',
723
+ inputs: [
724
+ {
725
+ name: 'i',
726
+ type: 'uint256',
727
+ },
728
+ ],
729
+ outputs: [
730
+ {
731
+ name: '',
732
+ type: 'uint256',
733
+ },
734
+ ],
735
+ },
736
+ {
737
+ stateMutability: 'view',
738
+ type: 'function',
739
+ name: 'ema_price',
740
+ inputs: [
741
+ {
742
+ name: 'i',
743
+ type: 'uint256',
744
+ },
745
+ ],
746
+ outputs: [
747
+ {
748
+ name: '',
749
+ type: 'uint256',
750
+ },
751
+ ],
752
+ },
753
+ {
754
+ stateMutability: 'view',
755
+ type: 'function',
756
+ name: 'get_p',
757
+ inputs: [
758
+ {
759
+ name: 'i',
760
+ type: 'uint256',
761
+ },
762
+ ],
763
+ outputs: [
764
+ {
765
+ name: '',
766
+ type: 'uint256',
767
+ },
768
+ ],
769
+ },
770
+ {
771
+ stateMutability: 'view',
772
+ type: 'function',
773
+ name: 'price_oracle',
774
+ inputs: [
775
+ {
776
+ name: 'i',
777
+ type: 'uint256',
778
+ },
779
+ ],
780
+ outputs: [
781
+ {
782
+ name: '',
783
+ type: 'uint256',
784
+ },
785
+ ],
786
+ },
787
+ {
788
+ stateMutability: 'view',
789
+ type: 'function',
790
+ name: 'D_oracle',
791
+ inputs: [],
792
+ outputs: [
793
+ {
794
+ name: '',
795
+ type: 'uint256',
796
+ },
797
+ ],
798
+ },
799
+ {
800
+ stateMutability: 'nonpayable',
801
+ type: 'function',
802
+ name: 'transfer',
803
+ inputs: [
804
+ {
805
+ name: '_to',
806
+ type: 'address',
807
+ },
808
+ {
809
+ name: '_value',
810
+ type: 'uint256',
811
+ },
812
+ ],
813
+ outputs: [
814
+ {
815
+ name: '',
816
+ type: 'bool',
817
+ },
818
+ ],
819
+ },
820
+ {
821
+ stateMutability: 'nonpayable',
822
+ type: 'function',
823
+ name: 'transferFrom',
824
+ inputs: [
825
+ {
826
+ name: '_from',
827
+ type: 'address',
828
+ },
829
+ {
830
+ name: '_to',
831
+ type: 'address',
832
+ },
833
+ {
834
+ name: '_value',
835
+ type: 'uint256',
836
+ },
837
+ ],
838
+ outputs: [
839
+ {
840
+ name: '',
841
+ type: 'bool',
842
+ },
843
+ ],
844
+ },
845
+ {
846
+ stateMutability: 'nonpayable',
847
+ type: 'function',
848
+ name: 'approve',
849
+ inputs: [
850
+ {
851
+ name: '_spender',
852
+ type: 'address',
853
+ },
854
+ {
855
+ name: '_value',
856
+ type: 'uint256',
857
+ },
858
+ ],
859
+ outputs: [
860
+ {
861
+ name: '',
862
+ type: 'bool',
863
+ },
864
+ ],
865
+ },
866
+ {
867
+ stateMutability: 'nonpayable',
868
+ type: 'function',
869
+ name: 'permit',
870
+ inputs: [
871
+ {
872
+ name: '_owner',
873
+ type: 'address',
874
+ },
875
+ {
876
+ name: '_spender',
877
+ type: 'address',
878
+ },
879
+ {
880
+ name: '_value',
881
+ type: 'uint256',
882
+ },
883
+ {
884
+ name: '_deadline',
885
+ type: 'uint256',
886
+ },
887
+ {
888
+ name: '_v',
889
+ type: 'uint8',
890
+ },
891
+ {
892
+ name: '_r',
893
+ type: 'bytes32',
894
+ },
895
+ {
896
+ name: '_s',
897
+ type: 'bytes32',
898
+ },
899
+ ],
900
+ outputs: [
901
+ {
902
+ name: '',
903
+ type: 'bool',
904
+ },
905
+ ],
906
+ },
907
+ {
908
+ stateMutability: 'view',
909
+ type: 'function',
910
+ name: 'DOMAIN_SEPARATOR',
911
+ inputs: [],
912
+ outputs: [
913
+ {
914
+ name: '',
915
+ type: 'bytes32',
916
+ },
917
+ ],
918
+ },
919
+ {
920
+ stateMutability: 'view',
921
+ type: 'function',
922
+ name: 'get_dx',
923
+ inputs: [
924
+ {
925
+ name: 'i',
926
+ type: 'int128',
927
+ },
928
+ {
929
+ name: 'j',
930
+ type: 'int128',
931
+ },
932
+ {
933
+ name: 'dy',
934
+ type: 'uint256',
935
+ },
936
+ ],
937
+ outputs: [
938
+ {
939
+ name: '',
940
+ type: 'uint256',
941
+ },
942
+ ],
943
+ },
944
+ {
945
+ stateMutability: 'view',
946
+ type: 'function',
947
+ name: 'get_dy',
948
+ inputs: [
949
+ {
950
+ name: 'i',
951
+ type: 'int128',
952
+ },
953
+ {
954
+ name: 'j',
955
+ type: 'int128',
956
+ },
957
+ {
958
+ name: 'dx',
959
+ type: 'uint256',
960
+ },
961
+ ],
962
+ outputs: [
963
+ {
964
+ name: '',
965
+ type: 'uint256',
966
+ },
967
+ ],
968
+ },
969
+ {
970
+ stateMutability: 'view',
971
+ type: 'function',
972
+ name: 'calc_withdraw_one_coin',
973
+ inputs: [
974
+ {
975
+ name: '_burn_amount',
976
+ type: 'uint256',
977
+ },
978
+ {
979
+ name: 'i',
980
+ type: 'int128',
981
+ },
982
+ ],
983
+ outputs: [
984
+ {
985
+ name: '',
986
+ type: 'uint256',
987
+ },
988
+ ],
989
+ },
990
+ {
991
+ stateMutability: 'view',
992
+ type: 'function',
993
+ name: 'totalSupply',
994
+ inputs: [],
995
+ outputs: [
996
+ {
997
+ name: '',
998
+ type: 'uint256',
999
+ },
1000
+ ],
1001
+ },
1002
+ {
1003
+ stateMutability: 'view',
1004
+ type: 'function',
1005
+ name: 'get_virtual_price',
1006
+ inputs: [],
1007
+ outputs: [
1008
+ {
1009
+ name: '',
1010
+ type: 'uint256',
1011
+ },
1012
+ ],
1013
+ },
1014
+ {
1015
+ stateMutability: 'view',
1016
+ type: 'function',
1017
+ name: 'calc_token_amount',
1018
+ inputs: [
1019
+ {
1020
+ name: '_amounts',
1021
+ type: 'uint256[]',
1022
+ },
1023
+ {
1024
+ name: '_is_deposit',
1025
+ type: 'bool',
1026
+ },
1027
+ ],
1028
+ outputs: [
1029
+ {
1030
+ name: '',
1031
+ type: 'uint256',
1032
+ },
1033
+ ],
1034
+ },
1035
+ {
1036
+ stateMutability: 'view',
1037
+ type: 'function',
1038
+ name: 'A',
1039
+ inputs: [],
1040
+ outputs: [
1041
+ {
1042
+ name: '',
1043
+ type: 'uint256',
1044
+ },
1045
+ ],
1046
+ },
1047
+ {
1048
+ stateMutability: 'view',
1049
+ type: 'function',
1050
+ name: 'A_precise',
1051
+ inputs: [],
1052
+ outputs: [
1053
+ {
1054
+ name: '',
1055
+ type: 'uint256',
1056
+ },
1057
+ ],
1058
+ },
1059
+ {
1060
+ stateMutability: 'view',
1061
+ type: 'function',
1062
+ name: 'balances',
1063
+ inputs: [
1064
+ {
1065
+ name: 'i',
1066
+ type: 'uint256',
1067
+ },
1068
+ ],
1069
+ outputs: [
1070
+ {
1071
+ name: '',
1072
+ type: 'uint256',
1073
+ },
1074
+ ],
1075
+ },
1076
+ {
1077
+ stateMutability: 'view',
1078
+ type: 'function',
1079
+ name: 'get_balances',
1080
+ inputs: [],
1081
+ outputs: [
1082
+ {
1083
+ name: '',
1084
+ type: 'uint256[]',
1085
+ },
1086
+ ],
1087
+ },
1088
+ {
1089
+ stateMutability: 'view',
1090
+ type: 'function',
1091
+ name: 'stored_rates',
1092
+ inputs: [],
1093
+ outputs: [
1094
+ {
1095
+ name: '',
1096
+ type: 'uint256[]',
1097
+ },
1098
+ ],
1099
+ },
1100
+ {
1101
+ stateMutability: 'view',
1102
+ type: 'function',
1103
+ name: 'dynamic_fee',
1104
+ inputs: [
1105
+ {
1106
+ name: 'i',
1107
+ type: 'int128',
1108
+ },
1109
+ {
1110
+ name: 'j',
1111
+ type: 'int128',
1112
+ },
1113
+ ],
1114
+ outputs: [
1115
+ {
1116
+ name: '',
1117
+ type: 'uint256',
1118
+ },
1119
+ ],
1120
+ },
1121
+ {
1122
+ stateMutability: 'nonpayable',
1123
+ type: 'function',
1124
+ name: 'ramp_A',
1125
+ inputs: [
1126
+ {
1127
+ name: '_future_A',
1128
+ type: 'uint256',
1129
+ },
1130
+ {
1131
+ name: '_future_time',
1132
+ type: 'uint256',
1133
+ },
1134
+ ],
1135
+ outputs: [],
1136
+ },
1137
+ {
1138
+ stateMutability: 'nonpayable',
1139
+ type: 'function',
1140
+ name: 'stop_ramp_A',
1141
+ inputs: [],
1142
+ outputs: [],
1143
+ },
1144
+ {
1145
+ stateMutability: 'nonpayable',
1146
+ type: 'function',
1147
+ name: 'set_new_fee',
1148
+ inputs: [
1149
+ {
1150
+ name: '_new_fee',
1151
+ type: 'uint256',
1152
+ },
1153
+ {
1154
+ name: '_new_offpeg_fee_multiplier',
1155
+ type: 'uint256',
1156
+ },
1157
+ ],
1158
+ outputs: [],
1159
+ },
1160
+ {
1161
+ stateMutability: 'nonpayable',
1162
+ type: 'function',
1163
+ name: 'set_ma_exp_time',
1164
+ inputs: [
1165
+ {
1166
+ name: '_ma_exp_time',
1167
+ type: 'uint256',
1168
+ },
1169
+ {
1170
+ name: '_D_ma_time',
1171
+ type: 'uint256',
1172
+ },
1173
+ ],
1174
+ outputs: [],
1175
+ },
1176
+ {
1177
+ stateMutability: 'view',
1178
+ type: 'function',
1179
+ name: 'N_COINS',
1180
+ inputs: [],
1181
+ outputs: [
1182
+ {
1183
+ name: '',
1184
+ type: 'uint256',
1185
+ },
1186
+ ],
1187
+ },
1188
+ {
1189
+ stateMutability: 'view',
1190
+ type: 'function',
1191
+ name: 'coins',
1192
+ inputs: [
1193
+ {
1194
+ name: 'arg0',
1195
+ type: 'uint256',
1196
+ },
1197
+ ],
1198
+ outputs: [
1199
+ {
1200
+ name: '',
1201
+ type: 'address',
1202
+ },
1203
+ ],
1204
+ },
1205
+ {
1206
+ stateMutability: 'view',
1207
+ type: 'function',
1208
+ name: 'fee',
1209
+ inputs: [],
1210
+ outputs: [
1211
+ {
1212
+ name: '',
1213
+ type: 'uint256',
1214
+ },
1215
+ ],
1216
+ },
1217
+ {
1218
+ stateMutability: 'view',
1219
+ type: 'function',
1220
+ name: 'offpeg_fee_multiplier',
1221
+ inputs: [],
1222
+ outputs: [
1223
+ {
1224
+ name: '',
1225
+ type: 'uint256',
1226
+ },
1227
+ ],
1228
+ },
1229
+ {
1230
+ stateMutability: 'view',
1231
+ type: 'function',
1232
+ name: 'admin_fee',
1233
+ inputs: [],
1234
+ outputs: [
1235
+ {
1236
+ name: '',
1237
+ type: 'uint256',
1238
+ },
1239
+ ],
1240
+ },
1241
+ {
1242
+ stateMutability: 'view',
1243
+ type: 'function',
1244
+ name: 'initial_A',
1245
+ inputs: [],
1246
+ outputs: [
1247
+ {
1248
+ name: '',
1249
+ type: 'uint256',
1250
+ },
1251
+ ],
1252
+ },
1253
+ {
1254
+ stateMutability: 'view',
1255
+ type: 'function',
1256
+ name: 'future_A',
1257
+ inputs: [],
1258
+ outputs: [
1259
+ {
1260
+ name: '',
1261
+ type: 'uint256',
1262
+ },
1263
+ ],
1264
+ },
1265
+ {
1266
+ stateMutability: 'view',
1267
+ type: 'function',
1268
+ name: 'initial_A_time',
1269
+ inputs: [],
1270
+ outputs: [
1271
+ {
1272
+ name: '',
1273
+ type: 'uint256',
1274
+ },
1275
+ ],
1276
+ },
1277
+ {
1278
+ stateMutability: 'view',
1279
+ type: 'function',
1280
+ name: 'future_A_time',
1281
+ inputs: [],
1282
+ outputs: [
1283
+ {
1284
+ name: '',
1285
+ type: 'uint256',
1286
+ },
1287
+ ],
1288
+ },
1289
+ {
1290
+ stateMutability: 'view',
1291
+ type: 'function',
1292
+ name: 'admin_balances',
1293
+ inputs: [
1294
+ {
1295
+ name: 'arg0',
1296
+ type: 'uint256',
1297
+ },
1298
+ ],
1299
+ outputs: [
1300
+ {
1301
+ name: '',
1302
+ type: 'uint256',
1303
+ },
1304
+ ],
1305
+ },
1306
+ {
1307
+ stateMutability: 'view',
1308
+ type: 'function',
1309
+ name: 'ma_exp_time',
1310
+ inputs: [],
1311
+ outputs: [
1312
+ {
1313
+ name: '',
1314
+ type: 'uint256',
1315
+ },
1316
+ ],
1317
+ },
1318
+ {
1319
+ stateMutability: 'view',
1320
+ type: 'function',
1321
+ name: 'D_ma_time',
1322
+ inputs: [],
1323
+ outputs: [
1324
+ {
1325
+ name: '',
1326
+ type: 'uint256',
1327
+ },
1328
+ ],
1329
+ },
1330
+ {
1331
+ stateMutability: 'view',
1332
+ type: 'function',
1333
+ name: 'ma_last_time',
1334
+ inputs: [],
1335
+ outputs: [
1336
+ {
1337
+ name: '',
1338
+ type: 'uint256',
1339
+ },
1340
+ ],
1341
+ },
1342
+ {
1343
+ stateMutability: 'view',
1344
+ type: 'function',
1345
+ name: 'name',
1346
+ inputs: [],
1347
+ outputs: [
1348
+ {
1349
+ name: '',
1350
+ type: 'string',
1351
+ },
1352
+ ],
1353
+ },
1354
+ {
1355
+ stateMutability: 'view',
1356
+ type: 'function',
1357
+ name: 'symbol',
1358
+ inputs: [],
1359
+ outputs: [
1360
+ {
1361
+ name: '',
1362
+ type: 'string',
1363
+ },
1364
+ ],
1365
+ },
1366
+ {
1367
+ stateMutability: 'view',
1368
+ type: 'function',
1369
+ name: 'decimals',
1370
+ inputs: [],
1371
+ outputs: [
1372
+ {
1373
+ name: '',
1374
+ type: 'uint8',
1375
+ },
1376
+ ],
1377
+ },
1378
+ {
1379
+ stateMutability: 'view',
1380
+ type: 'function',
1381
+ name: 'version',
1382
+ inputs: [],
1383
+ outputs: [
1384
+ {
1385
+ name: '',
1386
+ type: 'string',
1387
+ },
1388
+ ],
1389
+ },
1390
+ {
1391
+ stateMutability: 'view',
1392
+ type: 'function',
1393
+ name: 'balanceOf',
1394
+ inputs: [
1395
+ {
1396
+ name: 'arg0',
1397
+ type: 'address',
1398
+ },
1399
+ ],
1400
+ outputs: [
1401
+ {
1402
+ name: '',
1403
+ type: 'uint256',
1404
+ },
1405
+ ],
1406
+ },
1407
+ {
1408
+ stateMutability: 'view',
1409
+ type: 'function',
1410
+ name: 'allowance',
1411
+ inputs: [
1412
+ {
1413
+ name: 'arg0',
1414
+ type: 'address',
1415
+ },
1416
+ {
1417
+ name: 'arg1',
1418
+ type: 'address',
1419
+ },
1420
+ ],
1421
+ outputs: [
1422
+ {
1423
+ name: '',
1424
+ type: 'uint256',
1425
+ },
1426
+ ],
1427
+ },
1428
+ {
1429
+ stateMutability: 'view',
1430
+ type: 'function',
1431
+ name: 'nonces',
1432
+ inputs: [
1433
+ {
1434
+ name: 'arg0',
1435
+ type: 'address',
1436
+ },
1437
+ ],
1438
+ outputs: [
1439
+ {
1440
+ name: '',
1441
+ type: 'uint256',
1442
+ },
1443
+ ],
1444
+ },
1445
+ {
1446
+ stateMutability: 'view',
1447
+ type: 'function',
1448
+ name: 'salt',
1449
+ inputs: [],
1450
+ outputs: [
1451
+ {
1452
+ name: '',
1453
+ type: 'bytes32',
1454
+ },
1455
+ ],
1456
+ },
1457
+ ];
1458
+ export const deployAddress = '0xd6c283655B42FA0eb2685F7AB819784F071459dc';
1459
+ function getRequest(method, args, contractAddressOrOptions) {
1460
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
1461
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
1462
+ const call = {
1463
+ contractName: 'GreenPool',
1464
+ method,
1465
+ args,
1466
+ address,
1467
+ deployAddress,
1468
+ defaultValue,
1469
+ getAbi: () => abi,
1470
+ with: (options) => {
1471
+ call.address = options.contractAddress;
1472
+ call.defaultValue = options.defaultValue;
1473
+ return call;
1474
+ },
1475
+ defaultTo: (defaultValue) => {
1476
+ call.defaultValue = defaultValue;
1477
+ return call;
1478
+ },
1479
+ at: (address) => {
1480
+ call.address = address;
1481
+ return call;
1482
+ },
1483
+ };
1484
+ return call;
1485
+ }
1486
+ export const call = {
1487
+ last_price: (...args) => getRequest('last_price', args),
1488
+ ema_price: (...args) => getRequest('ema_price', args),
1489
+ get_p: (...args) => getRequest('get_p', args),
1490
+ price_oracle: (...args) => getRequest('price_oracle', args),
1491
+ D_oracle: (...args) => getRequest('D_oracle', args),
1492
+ DOMAIN_SEPARATOR: (...args) => getRequest('DOMAIN_SEPARATOR', args),
1493
+ get_dx: (...args) => getRequest('get_dx', args),
1494
+ get_dy: (...args) => getRequest('get_dy', args),
1495
+ calc_withdraw_one_coin: (...args) => getRequest('calc_withdraw_one_coin', args),
1496
+ totalSupply: (...args) => getRequest('totalSupply', args),
1497
+ get_virtual_price: (...args) => getRequest('get_virtual_price', args),
1498
+ calc_token_amount: (...args) => getRequest('calc_token_amount', args),
1499
+ A: (...args) => getRequest('A', args),
1500
+ A_precise: (...args) => getRequest('A_precise', args),
1501
+ balances: (...args) => getRequest('balances', args),
1502
+ get_balances: (...args) => getRequest('get_balances', args),
1503
+ stored_rates: (...args) => getRequest('stored_rates', args),
1504
+ dynamic_fee: (...args) => getRequest('dynamic_fee', args),
1505
+ N_COINS: (...args) => getRequest('N_COINS', args),
1506
+ coins: (...args) => getRequest('coins', args),
1507
+ fee: (...args) => getRequest('fee', args),
1508
+ offpeg_fee_multiplier: (...args) => getRequest('offpeg_fee_multiplier', args),
1509
+ admin_fee: (...args) => getRequest('admin_fee', args),
1510
+ initial_A: (...args) => getRequest('initial_A', args),
1511
+ future_A: (...args) => getRequest('future_A', args),
1512
+ initial_A_time: (...args) => getRequest('initial_A_time', args),
1513
+ future_A_time: (...args) => getRequest('future_A_time', args),
1514
+ admin_balances: (...args) => getRequest('admin_balances', args),
1515
+ ma_exp_time: (...args) => getRequest('ma_exp_time', args),
1516
+ D_ma_time: (...args) => getRequest('D_ma_time', args),
1517
+ ma_last_time: (...args) => getRequest('ma_last_time', args),
1518
+ name: (...args) => getRequest('name', args),
1519
+ symbol: (...args) => getRequest('symbol', args),
1520
+ decimals: (...args) => getRequest('decimals', args),
1521
+ version: (...args) => getRequest('version', args),
1522
+ balanceOf: (...args) => getRequest('balanceOf', args),
1523
+ allowance: (...args) => getRequest('allowance', args),
1524
+ nonces: (...args) => getRequest('nonces', args),
1525
+ salt: (...args) => getRequest('salt', args),
1526
+ };
1527
+ function getMutation(functionName) {
1528
+ return {
1529
+ contractName: 'GreenPool',
1530
+ functionName,
1531
+ deployAddress,
1532
+ argsType: undefined,
1533
+ getAbi: () => abi,
1534
+ };
1535
+ }
1536
+ export const mutation = {
1537
+ exchange: getMutation('exchange'),
1538
+ exchange_received: getMutation('exchange_received'),
1539
+ add_liquidity: getMutation('add_liquidity'),
1540
+ remove_liquidity_one_coin: getMutation('remove_liquidity_one_coin'),
1541
+ remove_liquidity_imbalance: getMutation('remove_liquidity_imbalance'),
1542
+ remove_liquidity: getMutation('remove_liquidity'),
1543
+ withdraw_admin_fees: getMutation('withdraw_admin_fees'),
1544
+ transfer: getMutation('transfer'),
1545
+ transferFrom: getMutation('transferFrom'),
1546
+ approve: getMutation('approve'),
1547
+ permit: getMutation('permit'),
1548
+ ramp_A: getMutation('ramp_A'),
1549
+ stop_ramp_A: getMutation('stop_ramp_A'),
1550
+ set_new_fee: getMutation('set_new_fee'),
1551
+ set_ma_exp_time: getMutation('set_ma_exp_time'),
1552
+ };
1553
+ export function toSdk(publicClient, walletClient) {
1554
+ return {
1555
+ deployAddress,
1556
+ abi,
1557
+ // Queries
1558
+ last_price: (...args) => singleQuery(publicClient, call.last_price(...args)),
1559
+ ema_price: (...args) => singleQuery(publicClient, call.ema_price(...args)),
1560
+ get_p: (...args) => singleQuery(publicClient, call.get_p(...args)),
1561
+ price_oracle: (...args) => singleQuery(publicClient, call.price_oracle(...args)),
1562
+ D_oracle: (...args) => singleQuery(publicClient, call.D_oracle(...args)),
1563
+ DOMAIN_SEPARATOR: (...args) => singleQuery(publicClient, call.DOMAIN_SEPARATOR(...args)),
1564
+ get_dx: (...args) => singleQuery(publicClient, call.get_dx(...args)),
1565
+ get_dy: (...args) => singleQuery(publicClient, call.get_dy(...args)),
1566
+ calc_withdraw_one_coin: (...args) => singleQuery(publicClient, call.calc_withdraw_one_coin(...args)),
1567
+ totalSupply: (...args) => singleQuery(publicClient, call.totalSupply(...args)),
1568
+ get_virtual_price: (...args) => singleQuery(publicClient, call.get_virtual_price(...args)),
1569
+ calc_token_amount: (...args) => singleQuery(publicClient, call.calc_token_amount(...args)),
1570
+ A: (...args) => singleQuery(publicClient, call.A(...args)),
1571
+ A_precise: (...args) => singleQuery(publicClient, call.A_precise(...args)),
1572
+ balances: (...args) => singleQuery(publicClient, call.balances(...args)),
1573
+ get_balances: (...args) => singleQuery(publicClient, call.get_balances(...args)),
1574
+ stored_rates: (...args) => singleQuery(publicClient, call.stored_rates(...args)),
1575
+ dynamic_fee: (...args) => singleQuery(publicClient, call.dynamic_fee(...args)),
1576
+ N_COINS: (...args) => singleQuery(publicClient, call.N_COINS(...args)),
1577
+ coins: (...args) => singleQuery(publicClient, call.coins(...args)),
1578
+ fee: (...args) => singleQuery(publicClient, call.fee(...args)),
1579
+ offpeg_fee_multiplier: (...args) => singleQuery(publicClient, call.offpeg_fee_multiplier(...args)),
1580
+ admin_fee: (...args) => singleQuery(publicClient, call.admin_fee(...args)),
1581
+ initial_A: (...args) => singleQuery(publicClient, call.initial_A(...args)),
1582
+ future_A: (...args) => singleQuery(publicClient, call.future_A(...args)),
1583
+ initial_A_time: (...args) => singleQuery(publicClient, call.initial_A_time(...args)),
1584
+ future_A_time: (...args) => singleQuery(publicClient, call.future_A_time(...args)),
1585
+ admin_balances: (...args) => singleQuery(publicClient, call.admin_balances(...args)),
1586
+ ma_exp_time: (...args) => singleQuery(publicClient, call.ma_exp_time(...args)),
1587
+ D_ma_time: (...args) => singleQuery(publicClient, call.D_ma_time(...args)),
1588
+ ma_last_time: (...args) => singleQuery(publicClient, call.ma_last_time(...args)),
1589
+ name: (...args) => singleQuery(publicClient, call.name(...args)),
1590
+ symbol: (...args) => singleQuery(publicClient, call.symbol(...args)),
1591
+ decimals: (...args) => singleQuery(publicClient, call.decimals(...args)),
1592
+ version: (...args) => singleQuery(publicClient, call.version(...args)),
1593
+ balanceOf: (...args) => singleQuery(publicClient, call.balanceOf(...args)),
1594
+ allowance: (...args) => singleQuery(publicClient, call.allowance(...args)),
1595
+ nonces: (...args) => singleQuery(publicClient, call.nonces(...args)),
1596
+ salt: (...args) => singleQuery(publicClient, call.salt(...args)),
1597
+ // Mutations
1598
+ exchange: (...args) => mutate(walletClient, mutation.exchange)(...args),
1599
+ exchange_received: (...args) => mutate(walletClient, mutation.exchange_received)(...args),
1600
+ add_liquidity: (...args) => mutate(walletClient, mutation.add_liquidity)(...args),
1601
+ remove_liquidity_one_coin: (...args) => mutate(walletClient, mutation.remove_liquidity_one_coin)(...args),
1602
+ remove_liquidity_imbalance: (...args) => mutate(walletClient, mutation.remove_liquidity_imbalance)(...args),
1603
+ remove_liquidity: (...args) => mutate(walletClient, mutation.remove_liquidity)(...args),
1604
+ withdraw_admin_fees: (...args) => mutate(walletClient, mutation.withdraw_admin_fees)(...args),
1605
+ transfer: (...args) => mutate(walletClient, mutation.transfer)(...args),
1606
+ transferFrom: (...args) => mutate(walletClient, mutation.transferFrom)(...args),
1607
+ approve: (...args) => mutate(walletClient, mutation.approve)(...args),
1608
+ permit: (...args) => mutate(walletClient, mutation.permit)(...args),
1609
+ ramp_A: (...args) => mutate(walletClient, mutation.ramp_A)(...args),
1610
+ stop_ramp_A: (...args) => mutate(walletClient, mutation.stop_ramp_A)(...args),
1611
+ set_new_fee: (...args) => mutate(walletClient, mutation.set_new_fee)(...args),
1612
+ set_ma_exp_time: (...args) => mutate(walletClient, mutation.set_ma_exp_time)(...args),
1613
+ };
1614
+ }