@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,2523 @@
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: 'NewCurvePricePending',
9
+ inputs: [
10
+ {
11
+ name: 'asset',
12
+ type: 'address',
13
+ indexed: true,
14
+ },
15
+ {
16
+ name: 'pool',
17
+ type: 'address',
18
+ indexed: true,
19
+ },
20
+ {
21
+ name: 'confirmationBlock',
22
+ type: 'uint256',
23
+ indexed: false,
24
+ },
25
+ {
26
+ name: 'actionId',
27
+ type: 'uint256',
28
+ indexed: false,
29
+ },
30
+ ],
31
+ anonymous: false,
32
+ type: 'event',
33
+ },
34
+ {
35
+ name: 'NewCurvePriceAdded',
36
+ inputs: [
37
+ {
38
+ name: 'asset',
39
+ type: 'address',
40
+ indexed: true,
41
+ },
42
+ {
43
+ name: 'pool',
44
+ type: 'address',
45
+ indexed: true,
46
+ },
47
+ ],
48
+ anonymous: false,
49
+ type: 'event',
50
+ },
51
+ {
52
+ name: 'NewCurvePriceCancelled',
53
+ inputs: [
54
+ {
55
+ name: 'asset',
56
+ type: 'address',
57
+ indexed: true,
58
+ },
59
+ {
60
+ name: 'pool',
61
+ type: 'address',
62
+ indexed: true,
63
+ },
64
+ ],
65
+ anonymous: false,
66
+ type: 'event',
67
+ },
68
+ {
69
+ name: 'CurvePriceConfigUpdatePending',
70
+ inputs: [
71
+ {
72
+ name: 'asset',
73
+ type: 'address',
74
+ indexed: true,
75
+ },
76
+ {
77
+ name: 'pool',
78
+ type: 'address',
79
+ indexed: true,
80
+ },
81
+ {
82
+ name: 'prevPool',
83
+ type: 'address',
84
+ indexed: true,
85
+ },
86
+ {
87
+ name: 'confirmationBlock',
88
+ type: 'uint256',
89
+ indexed: false,
90
+ },
91
+ {
92
+ name: 'actionId',
93
+ type: 'uint256',
94
+ indexed: false,
95
+ },
96
+ ],
97
+ anonymous: false,
98
+ type: 'event',
99
+ },
100
+ {
101
+ name: 'CurvePriceConfigUpdated',
102
+ inputs: [
103
+ {
104
+ name: 'asset',
105
+ type: 'address',
106
+ indexed: true,
107
+ },
108
+ {
109
+ name: 'pool',
110
+ type: 'address',
111
+ indexed: true,
112
+ },
113
+ {
114
+ name: 'prevPool',
115
+ type: 'address',
116
+ indexed: true,
117
+ },
118
+ ],
119
+ anonymous: false,
120
+ type: 'event',
121
+ },
122
+ {
123
+ name: 'CurvePriceConfigUpdateCancelled',
124
+ inputs: [
125
+ {
126
+ name: 'asset',
127
+ type: 'address',
128
+ indexed: true,
129
+ },
130
+ {
131
+ name: 'pool',
132
+ type: 'address',
133
+ indexed: true,
134
+ },
135
+ {
136
+ name: 'prevPool',
137
+ type: 'address',
138
+ indexed: true,
139
+ },
140
+ ],
141
+ anonymous: false,
142
+ type: 'event',
143
+ },
144
+ {
145
+ name: 'DisableCurvePricePending',
146
+ inputs: [
147
+ {
148
+ name: 'asset',
149
+ type: 'address',
150
+ indexed: true,
151
+ },
152
+ {
153
+ name: 'prevPool',
154
+ type: 'address',
155
+ indexed: true,
156
+ },
157
+ {
158
+ name: 'confirmationBlock',
159
+ type: 'uint256',
160
+ indexed: false,
161
+ },
162
+ {
163
+ name: 'actionId',
164
+ type: 'uint256',
165
+ indexed: false,
166
+ },
167
+ ],
168
+ anonymous: false,
169
+ type: 'event',
170
+ },
171
+ {
172
+ name: 'CurvePriceDisabled',
173
+ inputs: [
174
+ {
175
+ name: 'asset',
176
+ type: 'address',
177
+ indexed: true,
178
+ },
179
+ {
180
+ name: 'prevPool',
181
+ type: 'address',
182
+ indexed: true,
183
+ },
184
+ ],
185
+ anonymous: false,
186
+ type: 'event',
187
+ },
188
+ {
189
+ name: 'DisableCurvePriceCancelled',
190
+ inputs: [
191
+ {
192
+ name: 'asset',
193
+ type: 'address',
194
+ indexed: true,
195
+ },
196
+ {
197
+ name: 'prevPool',
198
+ type: 'address',
199
+ indexed: true,
200
+ },
201
+ ],
202
+ anonymous: false,
203
+ type: 'event',
204
+ },
205
+ {
206
+ name: 'GreenRefPoolConfigPending',
207
+ inputs: [
208
+ {
209
+ name: 'pool',
210
+ type: 'address',
211
+ indexed: true,
212
+ },
213
+ {
214
+ name: 'maxNumSnapshots',
215
+ type: 'uint256',
216
+ indexed: false,
217
+ },
218
+ {
219
+ name: 'dangerTrigger',
220
+ type: 'uint256',
221
+ indexed: false,
222
+ },
223
+ {
224
+ name: 'staleBlocks',
225
+ type: 'uint256',
226
+ indexed: false,
227
+ },
228
+ {
229
+ name: 'stabilizerAdjustWeight',
230
+ type: 'uint256',
231
+ indexed: false,
232
+ },
233
+ {
234
+ name: 'stabilizerMaxPoolDebt',
235
+ type: 'uint256',
236
+ indexed: false,
237
+ },
238
+ {
239
+ name: 'confirmationBlock',
240
+ type: 'uint256',
241
+ indexed: false,
242
+ },
243
+ {
244
+ name: 'actionId',
245
+ type: 'uint256',
246
+ indexed: false,
247
+ },
248
+ ],
249
+ anonymous: false,
250
+ type: 'event',
251
+ },
252
+ {
253
+ name: 'GreenRefPoolConfigUpdated',
254
+ inputs: [
255
+ {
256
+ name: 'pool',
257
+ type: 'address',
258
+ indexed: true,
259
+ },
260
+ {
261
+ name: 'maxNumSnapshots',
262
+ type: 'uint256',
263
+ indexed: false,
264
+ },
265
+ {
266
+ name: 'dangerTrigger',
267
+ type: 'uint256',
268
+ indexed: false,
269
+ },
270
+ {
271
+ name: 'staleBlocks',
272
+ type: 'uint256',
273
+ indexed: false,
274
+ },
275
+ {
276
+ name: 'stabilizerAdjustWeight',
277
+ type: 'uint256',
278
+ indexed: false,
279
+ },
280
+ {
281
+ name: 'stabilizerMaxPoolDebt',
282
+ type: 'uint256',
283
+ indexed: false,
284
+ },
285
+ ],
286
+ anonymous: false,
287
+ type: 'event',
288
+ },
289
+ {
290
+ name: 'GreenRefPoolConfigUpdateCancelled',
291
+ inputs: [
292
+ {
293
+ name: 'pool',
294
+ type: 'address',
295
+ indexed: true,
296
+ },
297
+ {
298
+ name: 'maxNumSnapshots',
299
+ type: 'uint256',
300
+ indexed: false,
301
+ },
302
+ {
303
+ name: 'dangerTrigger',
304
+ type: 'uint256',
305
+ indexed: false,
306
+ },
307
+ {
308
+ name: 'staleBlocks',
309
+ type: 'uint256',
310
+ indexed: false,
311
+ },
312
+ {
313
+ name: 'stabilizerAdjustWeight',
314
+ type: 'uint256',
315
+ indexed: false,
316
+ },
317
+ {
318
+ name: 'stabilizerMaxPoolDebt',
319
+ type: 'uint256',
320
+ indexed: false,
321
+ },
322
+ ],
323
+ anonymous: false,
324
+ type: 'event',
325
+ },
326
+ {
327
+ name: 'GreenRefPoolSnapshotAdded',
328
+ inputs: [
329
+ {
330
+ name: 'pool',
331
+ type: 'address',
332
+ indexed: true,
333
+ },
334
+ {
335
+ name: 'greenBalance',
336
+ type: 'uint256',
337
+ indexed: false,
338
+ },
339
+ {
340
+ name: 'greenRatio',
341
+ type: 'uint256',
342
+ indexed: false,
343
+ },
344
+ {
345
+ name: 'inDanger',
346
+ type: 'bool',
347
+ indexed: false,
348
+ },
349
+ ],
350
+ anonymous: false,
351
+ type: 'event',
352
+ },
353
+ {
354
+ name: 'GovChangeTimeLockModified',
355
+ inputs: [
356
+ {
357
+ name: 'prevTimeLock',
358
+ type: 'uint256',
359
+ indexed: false,
360
+ },
361
+ {
362
+ name: 'newTimeLock',
363
+ type: 'uint256',
364
+ indexed: false,
365
+ },
366
+ ],
367
+ anonymous: false,
368
+ type: 'event',
369
+ },
370
+ {
371
+ name: 'ExpirationSet',
372
+ inputs: [
373
+ {
374
+ name: 'expiration',
375
+ type: 'uint256',
376
+ indexed: false,
377
+ },
378
+ ],
379
+ anonymous: false,
380
+ type: 'event',
381
+ },
382
+ {
383
+ name: 'ActionTimeLockSet',
384
+ inputs: [
385
+ {
386
+ name: 'newTimeLock',
387
+ type: 'uint256',
388
+ indexed: false,
389
+ },
390
+ {
391
+ name: 'prevTimeLock',
392
+ type: 'uint256',
393
+ indexed: false,
394
+ },
395
+ ],
396
+ anonymous: false,
397
+ type: 'event',
398
+ },
399
+ {
400
+ name: 'GovChangeStarted',
401
+ inputs: [
402
+ {
403
+ name: 'prevGov',
404
+ type: 'address',
405
+ indexed: true,
406
+ },
407
+ {
408
+ name: 'newGov',
409
+ type: 'address',
410
+ indexed: true,
411
+ },
412
+ {
413
+ name: 'confirmBlock',
414
+ type: 'uint256',
415
+ indexed: false,
416
+ },
417
+ ],
418
+ anonymous: false,
419
+ type: 'event',
420
+ },
421
+ {
422
+ name: 'GovChangeConfirmed',
423
+ inputs: [
424
+ {
425
+ name: 'prevGov',
426
+ type: 'address',
427
+ indexed: true,
428
+ },
429
+ {
430
+ name: 'newGov',
431
+ type: 'address',
432
+ indexed: true,
433
+ },
434
+ {
435
+ name: 'initiatedBlock',
436
+ type: 'uint256',
437
+ indexed: false,
438
+ },
439
+ {
440
+ name: 'confirmBlock',
441
+ type: 'uint256',
442
+ indexed: false,
443
+ },
444
+ ],
445
+ anonymous: false,
446
+ type: 'event',
447
+ },
448
+ {
449
+ name: 'GovChangeCancelled',
450
+ inputs: [
451
+ {
452
+ name: 'cancelledGov',
453
+ type: 'address',
454
+ indexed: true,
455
+ },
456
+ {
457
+ name: 'initiatedBlock',
458
+ type: 'uint256',
459
+ indexed: false,
460
+ },
461
+ {
462
+ name: 'confirmBlock',
463
+ type: 'uint256',
464
+ indexed: false,
465
+ },
466
+ ],
467
+ anonymous: false,
468
+ type: 'event',
469
+ },
470
+ {
471
+ name: 'RipeHqSetupFinished',
472
+ inputs: [
473
+ {
474
+ name: 'prevGov',
475
+ type: 'address',
476
+ indexed: true,
477
+ },
478
+ {
479
+ name: 'newGov',
480
+ type: 'address',
481
+ indexed: true,
482
+ },
483
+ {
484
+ name: 'timeLock',
485
+ type: 'uint256',
486
+ indexed: false,
487
+ },
488
+ ],
489
+ anonymous: false,
490
+ type: 'event',
491
+ },
492
+ {
493
+ name: 'PriceSourcePauseModified',
494
+ inputs: [
495
+ {
496
+ name: 'isPaused',
497
+ type: 'bool',
498
+ indexed: false,
499
+ },
500
+ ],
501
+ anonymous: false,
502
+ type: 'event',
503
+ },
504
+ {
505
+ name: 'PriceSourceFundsRecovered',
506
+ inputs: [
507
+ {
508
+ name: 'asset',
509
+ type: 'address',
510
+ indexed: true,
511
+ },
512
+ {
513
+ name: 'recipient',
514
+ type: 'address',
515
+ indexed: true,
516
+ },
517
+ {
518
+ name: 'balance',
519
+ type: 'uint256',
520
+ indexed: false,
521
+ },
522
+ ],
523
+ anonymous: false,
524
+ type: 'event',
525
+ },
526
+ {
527
+ stateMutability: 'view',
528
+ type: 'function',
529
+ name: 'getRipeHqFromGov',
530
+ inputs: [],
531
+ outputs: [
532
+ {
533
+ name: '',
534
+ type: 'address',
535
+ },
536
+ ],
537
+ },
538
+ {
539
+ stateMutability: 'view',
540
+ type: 'function',
541
+ name: 'canGovern',
542
+ inputs: [
543
+ {
544
+ name: '_addr',
545
+ type: 'address',
546
+ },
547
+ ],
548
+ outputs: [
549
+ {
550
+ name: '',
551
+ type: 'bool',
552
+ },
553
+ ],
554
+ },
555
+ {
556
+ stateMutability: 'view',
557
+ type: 'function',
558
+ name: 'getGovernors',
559
+ inputs: [],
560
+ outputs: [
561
+ {
562
+ name: '',
563
+ type: 'address[]',
564
+ },
565
+ ],
566
+ },
567
+ {
568
+ stateMutability: 'view',
569
+ type: 'function',
570
+ name: 'hasPendingGovChange',
571
+ inputs: [],
572
+ outputs: [
573
+ {
574
+ name: '',
575
+ type: 'bool',
576
+ },
577
+ ],
578
+ },
579
+ {
580
+ stateMutability: 'nonpayable',
581
+ type: 'function',
582
+ name: 'startGovernanceChange',
583
+ inputs: [
584
+ {
585
+ name: '_newGov',
586
+ type: 'address',
587
+ },
588
+ ],
589
+ outputs: [],
590
+ },
591
+ {
592
+ stateMutability: 'nonpayable',
593
+ type: 'function',
594
+ name: 'confirmGovernanceChange',
595
+ inputs: [],
596
+ outputs: [],
597
+ },
598
+ {
599
+ stateMutability: 'nonpayable',
600
+ type: 'function',
601
+ name: 'cancelGovernanceChange',
602
+ inputs: [],
603
+ outputs: [],
604
+ },
605
+ {
606
+ stateMutability: 'nonpayable',
607
+ type: 'function',
608
+ name: 'setGovTimeLock',
609
+ inputs: [
610
+ {
611
+ name: '_numBlocks',
612
+ type: 'uint256',
613
+ },
614
+ ],
615
+ outputs: [
616
+ {
617
+ name: '',
618
+ type: 'bool',
619
+ },
620
+ ],
621
+ },
622
+ {
623
+ stateMutability: 'view',
624
+ type: 'function',
625
+ name: 'isValidGovTimeLock',
626
+ inputs: [
627
+ {
628
+ name: '_newTimeLock',
629
+ type: 'uint256',
630
+ },
631
+ ],
632
+ outputs: [
633
+ {
634
+ name: '',
635
+ type: 'bool',
636
+ },
637
+ ],
638
+ },
639
+ {
640
+ stateMutability: 'view',
641
+ type: 'function',
642
+ name: 'minGovChangeTimeLock',
643
+ inputs: [],
644
+ outputs: [
645
+ {
646
+ name: '',
647
+ type: 'uint256',
648
+ },
649
+ ],
650
+ },
651
+ {
652
+ stateMutability: 'view',
653
+ type: 'function',
654
+ name: 'maxGovChangeTimeLock',
655
+ inputs: [],
656
+ outputs: [
657
+ {
658
+ name: '',
659
+ type: 'uint256',
660
+ },
661
+ ],
662
+ },
663
+ {
664
+ stateMutability: 'nonpayable',
665
+ type: 'function',
666
+ name: 'finishRipeHqSetup',
667
+ inputs: [
668
+ {
669
+ name: '_newGov',
670
+ type: 'address',
671
+ },
672
+ ],
673
+ outputs: [
674
+ {
675
+ name: '',
676
+ type: 'bool',
677
+ },
678
+ ],
679
+ },
680
+ {
681
+ stateMutability: 'nonpayable',
682
+ type: 'function',
683
+ name: 'finishRipeHqSetup',
684
+ inputs: [
685
+ {
686
+ name: '_newGov',
687
+ type: 'address',
688
+ },
689
+ {
690
+ name: '_timeLock',
691
+ type: 'uint256',
692
+ },
693
+ ],
694
+ outputs: [
695
+ {
696
+ name: '',
697
+ type: 'bool',
698
+ },
699
+ ],
700
+ },
701
+ {
702
+ stateMutability: 'view',
703
+ type: 'function',
704
+ name: 'governance',
705
+ inputs: [],
706
+ outputs: [
707
+ {
708
+ name: '',
709
+ type: 'address',
710
+ },
711
+ ],
712
+ },
713
+ {
714
+ stateMutability: 'view',
715
+ type: 'function',
716
+ name: 'pendingGov',
717
+ inputs: [],
718
+ outputs: [
719
+ {
720
+ name: '',
721
+ type: 'tuple',
722
+ components: [
723
+ {
724
+ name: 'newGov',
725
+ type: 'address',
726
+ },
727
+ {
728
+ name: 'initiatedBlock',
729
+ type: 'uint256',
730
+ },
731
+ {
732
+ name: 'confirmBlock',
733
+ type: 'uint256',
734
+ },
735
+ ],
736
+ },
737
+ ],
738
+ },
739
+ {
740
+ stateMutability: 'view',
741
+ type: 'function',
742
+ name: 'numGovChanges',
743
+ inputs: [],
744
+ outputs: [
745
+ {
746
+ name: '',
747
+ type: 'uint256',
748
+ },
749
+ ],
750
+ },
751
+ {
752
+ stateMutability: 'view',
753
+ type: 'function',
754
+ name: 'govChangeTimeLock',
755
+ inputs: [],
756
+ outputs: [
757
+ {
758
+ name: '',
759
+ type: 'uint256',
760
+ },
761
+ ],
762
+ },
763
+ {
764
+ stateMutability: 'view',
765
+ type: 'function',
766
+ name: 'getAddys',
767
+ inputs: [],
768
+ outputs: [
769
+ {
770
+ name: '',
771
+ type: 'tuple',
772
+ components: [
773
+ {
774
+ name: 'hq',
775
+ type: 'address',
776
+ },
777
+ {
778
+ name: 'greenToken',
779
+ type: 'address',
780
+ },
781
+ {
782
+ name: 'savingsGreen',
783
+ type: 'address',
784
+ },
785
+ {
786
+ name: 'ripeToken',
787
+ type: 'address',
788
+ },
789
+ {
790
+ name: 'ledger',
791
+ type: 'address',
792
+ },
793
+ {
794
+ name: 'missionControl',
795
+ type: 'address',
796
+ },
797
+ {
798
+ name: 'switchboard',
799
+ type: 'address',
800
+ },
801
+ {
802
+ name: 'priceDesk',
803
+ type: 'address',
804
+ },
805
+ {
806
+ name: 'vaultBook',
807
+ type: 'address',
808
+ },
809
+ {
810
+ name: 'auctionHouse',
811
+ type: 'address',
812
+ },
813
+ {
814
+ name: 'auctionHouseNft',
815
+ type: 'address',
816
+ },
817
+ {
818
+ name: 'boardroom',
819
+ type: 'address',
820
+ },
821
+ {
822
+ name: 'bondRoom',
823
+ type: 'address',
824
+ },
825
+ {
826
+ name: 'creditEngine',
827
+ type: 'address',
828
+ },
829
+ {
830
+ name: 'endaoment',
831
+ type: 'address',
832
+ },
833
+ {
834
+ name: 'humanResources',
835
+ type: 'address',
836
+ },
837
+ {
838
+ name: 'lootbox',
839
+ type: 'address',
840
+ },
841
+ {
842
+ name: 'teller',
843
+ type: 'address',
844
+ },
845
+ ],
846
+ },
847
+ ],
848
+ },
849
+ {
850
+ stateMutability: 'view',
851
+ type: 'function',
852
+ name: 'getRipeHq',
853
+ inputs: [],
854
+ outputs: [
855
+ {
856
+ name: '',
857
+ type: 'address',
858
+ },
859
+ ],
860
+ },
861
+ {
862
+ stateMutability: 'view',
863
+ type: 'function',
864
+ name: 'getPricedAssets',
865
+ inputs: [],
866
+ outputs: [
867
+ {
868
+ name: '',
869
+ type: 'address[]',
870
+ },
871
+ ],
872
+ },
873
+ {
874
+ stateMutability: 'nonpayable',
875
+ type: 'function',
876
+ name: 'pause',
877
+ inputs: [
878
+ {
879
+ name: '_shouldPause',
880
+ type: 'bool',
881
+ },
882
+ ],
883
+ outputs: [],
884
+ },
885
+ {
886
+ stateMutability: 'nonpayable',
887
+ type: 'function',
888
+ name: 'recoverFunds',
889
+ inputs: [
890
+ {
891
+ name: '_recipient',
892
+ type: 'address',
893
+ },
894
+ {
895
+ name: '_asset',
896
+ type: 'address',
897
+ },
898
+ ],
899
+ outputs: [],
900
+ },
901
+ {
902
+ stateMutability: 'nonpayable',
903
+ type: 'function',
904
+ name: 'recoverFundsMany',
905
+ inputs: [
906
+ {
907
+ name: '_recipient',
908
+ type: 'address',
909
+ },
910
+ {
911
+ name: '_assets',
912
+ type: 'address[]',
913
+ },
914
+ ],
915
+ outputs: [],
916
+ },
917
+ {
918
+ stateMutability: 'view',
919
+ type: 'function',
920
+ name: 'isPaused',
921
+ inputs: [],
922
+ outputs: [
923
+ {
924
+ name: '',
925
+ type: 'bool',
926
+ },
927
+ ],
928
+ },
929
+ {
930
+ stateMutability: 'view',
931
+ type: 'function',
932
+ name: 'assets',
933
+ inputs: [
934
+ {
935
+ name: 'arg0',
936
+ type: 'uint256',
937
+ },
938
+ ],
939
+ outputs: [
940
+ {
941
+ name: '',
942
+ type: 'address',
943
+ },
944
+ ],
945
+ },
946
+ {
947
+ stateMutability: 'view',
948
+ type: 'function',
949
+ name: 'indexOfAsset',
950
+ inputs: [
951
+ {
952
+ name: 'arg0',
953
+ type: 'address',
954
+ },
955
+ ],
956
+ outputs: [
957
+ {
958
+ name: '',
959
+ type: 'uint256',
960
+ },
961
+ ],
962
+ },
963
+ {
964
+ stateMutability: 'view',
965
+ type: 'function',
966
+ name: 'numAssets',
967
+ inputs: [],
968
+ outputs: [
969
+ {
970
+ name: '',
971
+ type: 'uint256',
972
+ },
973
+ ],
974
+ },
975
+ {
976
+ stateMutability: 'view',
977
+ type: 'function',
978
+ name: 'canConfirmAction',
979
+ inputs: [
980
+ {
981
+ name: '_actionId',
982
+ type: 'uint256',
983
+ },
984
+ ],
985
+ outputs: [
986
+ {
987
+ name: '',
988
+ type: 'bool',
989
+ },
990
+ ],
991
+ },
992
+ {
993
+ stateMutability: 'view',
994
+ type: 'function',
995
+ name: 'isExpired',
996
+ inputs: [
997
+ {
998
+ name: '_actionId',
999
+ type: 'uint256',
1000
+ },
1001
+ ],
1002
+ outputs: [
1003
+ {
1004
+ name: '',
1005
+ type: 'bool',
1006
+ },
1007
+ ],
1008
+ },
1009
+ {
1010
+ stateMutability: 'view',
1011
+ type: 'function',
1012
+ name: 'hasPendingAction',
1013
+ inputs: [
1014
+ {
1015
+ name: '_actionId',
1016
+ type: 'uint256',
1017
+ },
1018
+ ],
1019
+ outputs: [
1020
+ {
1021
+ name: '',
1022
+ type: 'bool',
1023
+ },
1024
+ ],
1025
+ },
1026
+ {
1027
+ stateMutability: 'view',
1028
+ type: 'function',
1029
+ name: 'getActionConfirmationBlock',
1030
+ inputs: [
1031
+ {
1032
+ name: '_actionId',
1033
+ type: 'uint256',
1034
+ },
1035
+ ],
1036
+ outputs: [
1037
+ {
1038
+ name: '',
1039
+ type: 'uint256',
1040
+ },
1041
+ ],
1042
+ },
1043
+ {
1044
+ stateMutability: 'nonpayable',
1045
+ type: 'function',
1046
+ name: 'setActionTimeLock',
1047
+ inputs: [
1048
+ {
1049
+ name: '_newTimeLock',
1050
+ type: 'uint256',
1051
+ },
1052
+ ],
1053
+ outputs: [
1054
+ {
1055
+ name: '',
1056
+ type: 'bool',
1057
+ },
1058
+ ],
1059
+ },
1060
+ {
1061
+ stateMutability: 'view',
1062
+ type: 'function',
1063
+ name: 'isValidActionTimeLock',
1064
+ inputs: [
1065
+ {
1066
+ name: '_newTimeLock',
1067
+ type: 'uint256',
1068
+ },
1069
+ ],
1070
+ outputs: [
1071
+ {
1072
+ name: '',
1073
+ type: 'bool',
1074
+ },
1075
+ ],
1076
+ },
1077
+ {
1078
+ stateMutability: 'view',
1079
+ type: 'function',
1080
+ name: 'minActionTimeLock',
1081
+ inputs: [],
1082
+ outputs: [
1083
+ {
1084
+ name: '',
1085
+ type: 'uint256',
1086
+ },
1087
+ ],
1088
+ },
1089
+ {
1090
+ stateMutability: 'view',
1091
+ type: 'function',
1092
+ name: 'maxActionTimeLock',
1093
+ inputs: [],
1094
+ outputs: [
1095
+ {
1096
+ name: '',
1097
+ type: 'uint256',
1098
+ },
1099
+ ],
1100
+ },
1101
+ {
1102
+ stateMutability: 'nonpayable',
1103
+ type: 'function',
1104
+ name: 'setExpiration',
1105
+ inputs: [
1106
+ {
1107
+ name: '_expiration',
1108
+ type: 'uint256',
1109
+ },
1110
+ ],
1111
+ outputs: [
1112
+ {
1113
+ name: '',
1114
+ type: 'bool',
1115
+ },
1116
+ ],
1117
+ },
1118
+ {
1119
+ stateMutability: 'nonpayable',
1120
+ type: 'function',
1121
+ name: 'setActionTimeLockAfterSetup',
1122
+ inputs: [],
1123
+ outputs: [
1124
+ {
1125
+ name: '',
1126
+ type: 'bool',
1127
+ },
1128
+ ],
1129
+ },
1130
+ {
1131
+ stateMutability: 'nonpayable',
1132
+ type: 'function',
1133
+ name: 'setActionTimeLockAfterSetup',
1134
+ inputs: [
1135
+ {
1136
+ name: '_newTimeLock',
1137
+ type: 'uint256',
1138
+ },
1139
+ ],
1140
+ outputs: [
1141
+ {
1142
+ name: '',
1143
+ type: 'bool',
1144
+ },
1145
+ ],
1146
+ },
1147
+ {
1148
+ stateMutability: 'view',
1149
+ type: 'function',
1150
+ name: 'pendingActions',
1151
+ inputs: [
1152
+ {
1153
+ name: 'arg0',
1154
+ type: 'uint256',
1155
+ },
1156
+ ],
1157
+ outputs: [
1158
+ {
1159
+ name: '',
1160
+ type: 'tuple',
1161
+ components: [
1162
+ {
1163
+ name: 'initiatedBlock',
1164
+ type: 'uint256',
1165
+ },
1166
+ {
1167
+ name: 'confirmBlock',
1168
+ type: 'uint256',
1169
+ },
1170
+ {
1171
+ name: 'expiration',
1172
+ type: 'uint256',
1173
+ },
1174
+ ],
1175
+ },
1176
+ ],
1177
+ },
1178
+ {
1179
+ stateMutability: 'view',
1180
+ type: 'function',
1181
+ name: 'actionId',
1182
+ inputs: [],
1183
+ outputs: [
1184
+ {
1185
+ name: '',
1186
+ type: 'uint256',
1187
+ },
1188
+ ],
1189
+ },
1190
+ {
1191
+ stateMutability: 'view',
1192
+ type: 'function',
1193
+ name: 'actionTimeLock',
1194
+ inputs: [],
1195
+ outputs: [
1196
+ {
1197
+ name: '',
1198
+ type: 'uint256',
1199
+ },
1200
+ ],
1201
+ },
1202
+ {
1203
+ stateMutability: 'view',
1204
+ type: 'function',
1205
+ name: 'expiration',
1206
+ inputs: [],
1207
+ outputs: [
1208
+ {
1209
+ name: '',
1210
+ type: 'uint256',
1211
+ },
1212
+ ],
1213
+ },
1214
+ {
1215
+ stateMutability: 'view',
1216
+ type: 'function',
1217
+ name: 'getPrice',
1218
+ inputs: [
1219
+ {
1220
+ name: '_asset',
1221
+ type: 'address',
1222
+ },
1223
+ ],
1224
+ outputs: [
1225
+ {
1226
+ name: '',
1227
+ type: 'uint256',
1228
+ },
1229
+ ],
1230
+ },
1231
+ {
1232
+ stateMutability: 'view',
1233
+ type: 'function',
1234
+ name: 'getPrice',
1235
+ inputs: [
1236
+ {
1237
+ name: '_asset',
1238
+ type: 'address',
1239
+ },
1240
+ {
1241
+ name: '_staleTime',
1242
+ type: 'uint256',
1243
+ },
1244
+ ],
1245
+ outputs: [
1246
+ {
1247
+ name: '',
1248
+ type: 'uint256',
1249
+ },
1250
+ ],
1251
+ },
1252
+ {
1253
+ stateMutability: 'view',
1254
+ type: 'function',
1255
+ name: 'getPrice',
1256
+ inputs: [
1257
+ {
1258
+ name: '_asset',
1259
+ type: 'address',
1260
+ },
1261
+ {
1262
+ name: '_staleTime',
1263
+ type: 'uint256',
1264
+ },
1265
+ {
1266
+ name: '_priceDesk',
1267
+ type: 'address',
1268
+ },
1269
+ ],
1270
+ outputs: [
1271
+ {
1272
+ name: '',
1273
+ type: 'uint256',
1274
+ },
1275
+ ],
1276
+ },
1277
+ {
1278
+ stateMutability: 'view',
1279
+ type: 'function',
1280
+ name: 'getPriceAndHasFeed',
1281
+ inputs: [
1282
+ {
1283
+ name: '_asset',
1284
+ type: 'address',
1285
+ },
1286
+ ],
1287
+ outputs: [
1288
+ {
1289
+ name: '',
1290
+ type: 'uint256',
1291
+ },
1292
+ {
1293
+ name: '',
1294
+ type: 'bool',
1295
+ },
1296
+ ],
1297
+ },
1298
+ {
1299
+ stateMutability: 'view',
1300
+ type: 'function',
1301
+ name: 'getPriceAndHasFeed',
1302
+ inputs: [
1303
+ {
1304
+ name: '_asset',
1305
+ type: 'address',
1306
+ },
1307
+ {
1308
+ name: '_staleTime',
1309
+ type: 'uint256',
1310
+ },
1311
+ ],
1312
+ outputs: [
1313
+ {
1314
+ name: '',
1315
+ type: 'uint256',
1316
+ },
1317
+ {
1318
+ name: '',
1319
+ type: 'bool',
1320
+ },
1321
+ ],
1322
+ },
1323
+ {
1324
+ stateMutability: 'view',
1325
+ type: 'function',
1326
+ name: 'getPriceAndHasFeed',
1327
+ inputs: [
1328
+ {
1329
+ name: '_asset',
1330
+ type: 'address',
1331
+ },
1332
+ {
1333
+ name: '_staleTime',
1334
+ type: 'uint256',
1335
+ },
1336
+ {
1337
+ name: '_priceDesk',
1338
+ type: 'address',
1339
+ },
1340
+ ],
1341
+ outputs: [
1342
+ {
1343
+ name: '',
1344
+ type: 'uint256',
1345
+ },
1346
+ {
1347
+ name: '',
1348
+ type: 'bool',
1349
+ },
1350
+ ],
1351
+ },
1352
+ {
1353
+ stateMutability: 'view',
1354
+ type: 'function',
1355
+ name: 'hasPriceFeed',
1356
+ inputs: [
1357
+ {
1358
+ name: '_asset',
1359
+ type: 'address',
1360
+ },
1361
+ ],
1362
+ outputs: [
1363
+ {
1364
+ name: '',
1365
+ type: 'bool',
1366
+ },
1367
+ ],
1368
+ },
1369
+ {
1370
+ stateMutability: 'view',
1371
+ type: 'function',
1372
+ name: 'hasPendingPriceFeedUpdate',
1373
+ inputs: [
1374
+ {
1375
+ name: '_asset',
1376
+ type: 'address',
1377
+ },
1378
+ ],
1379
+ outputs: [
1380
+ {
1381
+ name: '',
1382
+ type: 'bool',
1383
+ },
1384
+ ],
1385
+ },
1386
+ {
1387
+ stateMutability: 'nonpayable',
1388
+ type: 'function',
1389
+ name: 'addPriceSnapshot',
1390
+ inputs: [
1391
+ {
1392
+ name: '_asset',
1393
+ type: 'address',
1394
+ },
1395
+ ],
1396
+ outputs: [
1397
+ {
1398
+ name: '',
1399
+ type: 'bool',
1400
+ },
1401
+ ],
1402
+ },
1403
+ {
1404
+ stateMutability: 'view',
1405
+ type: 'function',
1406
+ name: 'getStableLpPrice',
1407
+ inputs: [
1408
+ {
1409
+ name: '_pool',
1410
+ type: 'address',
1411
+ },
1412
+ {
1413
+ name: '_coins',
1414
+ type: 'address[4]',
1415
+ },
1416
+ ],
1417
+ outputs: [
1418
+ {
1419
+ name: '',
1420
+ type: 'uint256',
1421
+ },
1422
+ ],
1423
+ },
1424
+ {
1425
+ stateMutability: 'view',
1426
+ type: 'function',
1427
+ name: 'getCryptoLpPrice',
1428
+ inputs: [
1429
+ {
1430
+ name: '_pool',
1431
+ type: 'address',
1432
+ },
1433
+ {
1434
+ name: '_firstAsset',
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: 'getSingleTokenPrice',
1449
+ inputs: [
1450
+ {
1451
+ name: '_pool',
1452
+ type: 'address',
1453
+ },
1454
+ {
1455
+ name: '_targetAsset',
1456
+ type: 'address',
1457
+ },
1458
+ {
1459
+ name: '_coins',
1460
+ type: 'address[2]',
1461
+ },
1462
+ ],
1463
+ outputs: [
1464
+ {
1465
+ name: '',
1466
+ type: 'uint256',
1467
+ },
1468
+ ],
1469
+ },
1470
+ {
1471
+ stateMutability: 'view',
1472
+ type: 'function',
1473
+ name: 'getSingleTokenPrice',
1474
+ inputs: [
1475
+ {
1476
+ name: '_pool',
1477
+ type: 'address',
1478
+ },
1479
+ {
1480
+ name: '_targetAsset',
1481
+ type: 'address',
1482
+ },
1483
+ {
1484
+ name: '_coins',
1485
+ type: 'address[2]',
1486
+ },
1487
+ {
1488
+ name: '_poolType',
1489
+ type: 'uint256',
1490
+ },
1491
+ ],
1492
+ outputs: [
1493
+ {
1494
+ name: '',
1495
+ type: 'uint256',
1496
+ },
1497
+ ],
1498
+ },
1499
+ {
1500
+ stateMutability: 'nonpayable',
1501
+ type: 'function',
1502
+ name: 'addNewPriceFeed',
1503
+ inputs: [
1504
+ {
1505
+ name: '_asset',
1506
+ type: 'address',
1507
+ },
1508
+ {
1509
+ name: '_pool',
1510
+ type: 'address',
1511
+ },
1512
+ ],
1513
+ outputs: [
1514
+ {
1515
+ name: '',
1516
+ type: 'bool',
1517
+ },
1518
+ ],
1519
+ },
1520
+ {
1521
+ stateMutability: 'nonpayable',
1522
+ type: 'function',
1523
+ name: 'confirmNewPriceFeed',
1524
+ inputs: [
1525
+ {
1526
+ name: '_asset',
1527
+ type: 'address',
1528
+ },
1529
+ ],
1530
+ outputs: [
1531
+ {
1532
+ name: '',
1533
+ type: 'bool',
1534
+ },
1535
+ ],
1536
+ },
1537
+ {
1538
+ stateMutability: 'nonpayable',
1539
+ type: 'function',
1540
+ name: 'cancelNewPendingPriceFeed',
1541
+ inputs: [
1542
+ {
1543
+ name: '_asset',
1544
+ type: 'address',
1545
+ },
1546
+ ],
1547
+ outputs: [
1548
+ {
1549
+ name: '',
1550
+ type: 'bool',
1551
+ },
1552
+ ],
1553
+ },
1554
+ {
1555
+ stateMutability: 'view',
1556
+ type: 'function',
1557
+ name: 'isValidNewFeed',
1558
+ inputs: [
1559
+ {
1560
+ name: '_asset',
1561
+ type: 'address',
1562
+ },
1563
+ {
1564
+ name: '_pool',
1565
+ type: 'address',
1566
+ },
1567
+ ],
1568
+ outputs: [
1569
+ {
1570
+ name: '',
1571
+ type: 'bool',
1572
+ },
1573
+ ],
1574
+ },
1575
+ {
1576
+ stateMutability: 'nonpayable',
1577
+ type: 'function',
1578
+ name: 'updatePriceFeed',
1579
+ inputs: [
1580
+ {
1581
+ name: '_asset',
1582
+ type: 'address',
1583
+ },
1584
+ {
1585
+ name: '_pool',
1586
+ type: 'address',
1587
+ },
1588
+ ],
1589
+ outputs: [
1590
+ {
1591
+ name: '',
1592
+ type: 'bool',
1593
+ },
1594
+ ],
1595
+ },
1596
+ {
1597
+ stateMutability: 'nonpayable',
1598
+ type: 'function',
1599
+ name: 'confirmPriceFeedUpdate',
1600
+ inputs: [
1601
+ {
1602
+ name: '_asset',
1603
+ type: 'address',
1604
+ },
1605
+ ],
1606
+ outputs: [
1607
+ {
1608
+ name: '',
1609
+ type: 'bool',
1610
+ },
1611
+ ],
1612
+ },
1613
+ {
1614
+ stateMutability: 'nonpayable',
1615
+ type: 'function',
1616
+ name: 'cancelPriceFeedUpdate',
1617
+ inputs: [
1618
+ {
1619
+ name: '_asset',
1620
+ type: 'address',
1621
+ },
1622
+ ],
1623
+ outputs: [
1624
+ {
1625
+ name: '',
1626
+ type: 'bool',
1627
+ },
1628
+ ],
1629
+ },
1630
+ {
1631
+ stateMutability: 'view',
1632
+ type: 'function',
1633
+ name: 'isValidUpdateFeed',
1634
+ inputs: [
1635
+ {
1636
+ name: '_asset',
1637
+ type: 'address',
1638
+ },
1639
+ {
1640
+ name: '_newPool',
1641
+ type: 'address',
1642
+ },
1643
+ ],
1644
+ outputs: [
1645
+ {
1646
+ name: '',
1647
+ type: 'bool',
1648
+ },
1649
+ ],
1650
+ },
1651
+ {
1652
+ stateMutability: 'nonpayable',
1653
+ type: 'function',
1654
+ name: 'disablePriceFeed',
1655
+ inputs: [
1656
+ {
1657
+ name: '_asset',
1658
+ type: 'address',
1659
+ },
1660
+ ],
1661
+ outputs: [
1662
+ {
1663
+ name: '',
1664
+ type: 'bool',
1665
+ },
1666
+ ],
1667
+ },
1668
+ {
1669
+ stateMutability: 'nonpayable',
1670
+ type: 'function',
1671
+ name: 'confirmDisablePriceFeed',
1672
+ inputs: [
1673
+ {
1674
+ name: '_asset',
1675
+ type: 'address',
1676
+ },
1677
+ ],
1678
+ outputs: [
1679
+ {
1680
+ name: '',
1681
+ type: 'bool',
1682
+ },
1683
+ ],
1684
+ },
1685
+ {
1686
+ stateMutability: 'nonpayable',
1687
+ type: 'function',
1688
+ name: 'cancelDisablePriceFeed',
1689
+ inputs: [
1690
+ {
1691
+ name: '_asset',
1692
+ type: 'address',
1693
+ },
1694
+ ],
1695
+ outputs: [
1696
+ {
1697
+ name: '',
1698
+ type: 'bool',
1699
+ },
1700
+ ],
1701
+ },
1702
+ {
1703
+ stateMutability: 'view',
1704
+ type: 'function',
1705
+ name: 'isValidDisablePriceFeed',
1706
+ inputs: [
1707
+ {
1708
+ name: '_asset',
1709
+ type: 'address',
1710
+ },
1711
+ ],
1712
+ outputs: [
1713
+ {
1714
+ name: '',
1715
+ type: 'bool',
1716
+ },
1717
+ ],
1718
+ },
1719
+ {
1720
+ stateMutability: 'view',
1721
+ type: 'function',
1722
+ name: 'getCurvePoolConfig',
1723
+ inputs: [
1724
+ {
1725
+ name: '_pool',
1726
+ type: 'address',
1727
+ },
1728
+ ],
1729
+ outputs: [
1730
+ {
1731
+ name: '',
1732
+ type: 'tuple',
1733
+ components: [
1734
+ {
1735
+ name: 'pool',
1736
+ type: 'address',
1737
+ },
1738
+ {
1739
+ name: 'lpToken',
1740
+ type: 'address',
1741
+ },
1742
+ {
1743
+ name: 'numUnderlying',
1744
+ type: 'uint256',
1745
+ },
1746
+ {
1747
+ name: 'underlying',
1748
+ type: 'address[4]',
1749
+ },
1750
+ {
1751
+ name: 'poolType',
1752
+ type: 'uint256',
1753
+ },
1754
+ {
1755
+ name: 'hasEcoToken',
1756
+ type: 'bool',
1757
+ },
1758
+ ],
1759
+ },
1760
+ ],
1761
+ },
1762
+ {
1763
+ stateMutability: 'nonpayable',
1764
+ type: 'function',
1765
+ name: 'setGreenRefPoolConfig',
1766
+ inputs: [
1767
+ {
1768
+ name: '_pool',
1769
+ type: 'address',
1770
+ },
1771
+ {
1772
+ name: '_maxNumSnapshots',
1773
+ type: 'uint256',
1774
+ },
1775
+ {
1776
+ name: '_dangerTrigger',
1777
+ type: 'uint256',
1778
+ },
1779
+ {
1780
+ name: '_staleBlocks',
1781
+ type: 'uint256',
1782
+ },
1783
+ {
1784
+ name: '_stabilizerAdjustWeight',
1785
+ type: 'uint256',
1786
+ },
1787
+ {
1788
+ name: '_stabilizerMaxPoolDebt',
1789
+ type: 'uint256',
1790
+ },
1791
+ ],
1792
+ outputs: [
1793
+ {
1794
+ name: '',
1795
+ type: 'uint256',
1796
+ },
1797
+ ],
1798
+ },
1799
+ {
1800
+ stateMutability: 'nonpayable',
1801
+ type: 'function',
1802
+ name: 'confirmGreenRefPoolConfig',
1803
+ inputs: [
1804
+ {
1805
+ name: '_aid',
1806
+ type: 'uint256',
1807
+ },
1808
+ ],
1809
+ outputs: [
1810
+ {
1811
+ name: '',
1812
+ type: 'bool',
1813
+ },
1814
+ ],
1815
+ },
1816
+ {
1817
+ stateMutability: 'nonpayable',
1818
+ type: 'function',
1819
+ name: 'cancelGreenRefPoolConfig',
1820
+ inputs: [
1821
+ {
1822
+ name: '_aid',
1823
+ type: 'uint256',
1824
+ },
1825
+ ],
1826
+ outputs: [
1827
+ {
1828
+ name: '',
1829
+ type: 'bool',
1830
+ },
1831
+ ],
1832
+ },
1833
+ {
1834
+ stateMutability: 'view',
1835
+ type: 'function',
1836
+ name: 'getCurrentGreenPoolStatus',
1837
+ inputs: [],
1838
+ outputs: [
1839
+ {
1840
+ name: '',
1841
+ type: 'tuple',
1842
+ components: [
1843
+ {
1844
+ name: 'weightedRatio',
1845
+ type: 'uint256',
1846
+ },
1847
+ {
1848
+ name: 'dangerTrigger',
1849
+ type: 'uint256',
1850
+ },
1851
+ {
1852
+ name: 'numBlocksInDanger',
1853
+ type: 'uint256',
1854
+ },
1855
+ ],
1856
+ },
1857
+ ],
1858
+ },
1859
+ {
1860
+ stateMutability: 'nonpayable',
1861
+ type: 'function',
1862
+ name: 'addGreenRefPoolSnapshot',
1863
+ inputs: [],
1864
+ outputs: [
1865
+ {
1866
+ name: '',
1867
+ type: 'bool',
1868
+ },
1869
+ ],
1870
+ },
1871
+ {
1872
+ stateMutability: 'view',
1873
+ type: 'function',
1874
+ name: 'getCurvePoolData',
1875
+ inputs: [],
1876
+ outputs: [
1877
+ {
1878
+ name: '',
1879
+ type: 'uint256',
1880
+ },
1881
+ {
1882
+ name: '',
1883
+ type: 'uint256',
1884
+ },
1885
+ ],
1886
+ },
1887
+ {
1888
+ stateMutability: 'view',
1889
+ type: 'function',
1890
+ name: 'getGreenStabilizerConfig',
1891
+ inputs: [],
1892
+ outputs: [
1893
+ {
1894
+ name: '',
1895
+ type: 'tuple',
1896
+ components: [
1897
+ {
1898
+ name: 'pool',
1899
+ type: 'address',
1900
+ },
1901
+ {
1902
+ name: 'lpToken',
1903
+ type: 'address',
1904
+ },
1905
+ {
1906
+ name: 'greenBalance',
1907
+ type: 'uint256',
1908
+ },
1909
+ {
1910
+ name: 'greenRatio',
1911
+ type: 'uint256',
1912
+ },
1913
+ {
1914
+ name: 'greenIndex',
1915
+ type: 'uint256',
1916
+ },
1917
+ {
1918
+ name: 'stabilizerAdjustWeight',
1919
+ type: 'uint256',
1920
+ },
1921
+ {
1922
+ name: 'stabilizerMaxPoolDebt',
1923
+ type: 'uint256',
1924
+ },
1925
+ ],
1926
+ },
1927
+ ],
1928
+ },
1929
+ {
1930
+ stateMutability: 'view',
1931
+ type: 'function',
1932
+ name: 'curveConfig',
1933
+ inputs: [
1934
+ {
1935
+ name: 'arg0',
1936
+ type: 'address',
1937
+ },
1938
+ ],
1939
+ outputs: [
1940
+ {
1941
+ name: '',
1942
+ type: 'tuple',
1943
+ components: [
1944
+ {
1945
+ name: 'pool',
1946
+ type: 'address',
1947
+ },
1948
+ {
1949
+ name: 'lpToken',
1950
+ type: 'address',
1951
+ },
1952
+ {
1953
+ name: 'numUnderlying',
1954
+ type: 'uint256',
1955
+ },
1956
+ {
1957
+ name: 'underlying',
1958
+ type: 'address[4]',
1959
+ },
1960
+ {
1961
+ name: 'poolType',
1962
+ type: 'uint256',
1963
+ },
1964
+ {
1965
+ name: 'hasEcoToken',
1966
+ type: 'bool',
1967
+ },
1968
+ ],
1969
+ },
1970
+ ],
1971
+ },
1972
+ {
1973
+ stateMutability: 'view',
1974
+ type: 'function',
1975
+ name: 'pendingUpdates',
1976
+ inputs: [
1977
+ {
1978
+ name: 'arg0',
1979
+ type: 'address',
1980
+ },
1981
+ ],
1982
+ outputs: [
1983
+ {
1984
+ name: '',
1985
+ type: 'tuple',
1986
+ components: [
1987
+ {
1988
+ name: 'actionId',
1989
+ type: 'uint256',
1990
+ },
1991
+ {
1992
+ name: 'config',
1993
+ type: 'tuple',
1994
+ components: [
1995
+ {
1996
+ name: 'pool',
1997
+ type: 'address',
1998
+ },
1999
+ {
2000
+ name: 'lpToken',
2001
+ type: 'address',
2002
+ },
2003
+ {
2004
+ name: 'numUnderlying',
2005
+ type: 'uint256',
2006
+ },
2007
+ {
2008
+ name: 'underlying',
2009
+ type: 'address[4]',
2010
+ },
2011
+ {
2012
+ name: 'poolType',
2013
+ type: 'uint256',
2014
+ },
2015
+ {
2016
+ name: 'hasEcoToken',
2017
+ type: 'bool',
2018
+ },
2019
+ ],
2020
+ },
2021
+ ],
2022
+ },
2023
+ ],
2024
+ },
2025
+ {
2026
+ stateMutability: 'view',
2027
+ type: 'function',
2028
+ name: 'greenRefPoolConfig',
2029
+ inputs: [],
2030
+ outputs: [
2031
+ {
2032
+ name: '',
2033
+ type: 'tuple',
2034
+ components: [
2035
+ {
2036
+ name: 'pool',
2037
+ type: 'address',
2038
+ },
2039
+ {
2040
+ name: 'lpToken',
2041
+ type: 'address',
2042
+ },
2043
+ {
2044
+ name: 'greenIndex',
2045
+ type: 'uint256',
2046
+ },
2047
+ {
2048
+ name: 'altAsset',
2049
+ type: 'address',
2050
+ },
2051
+ {
2052
+ name: 'altAssetDecimals',
2053
+ type: 'uint256',
2054
+ },
2055
+ {
2056
+ name: 'maxNumSnapshots',
2057
+ type: 'uint256',
2058
+ },
2059
+ {
2060
+ name: 'dangerTrigger',
2061
+ type: 'uint256',
2062
+ },
2063
+ {
2064
+ name: 'staleBlocks',
2065
+ type: 'uint256',
2066
+ },
2067
+ {
2068
+ name: 'stabilizerAdjustWeight',
2069
+ type: 'uint256',
2070
+ },
2071
+ {
2072
+ name: 'stabilizerMaxPoolDebt',
2073
+ type: 'uint256',
2074
+ },
2075
+ ],
2076
+ },
2077
+ ],
2078
+ },
2079
+ {
2080
+ stateMutability: 'view',
2081
+ type: 'function',
2082
+ name: 'greenRefPoolData',
2083
+ inputs: [],
2084
+ outputs: [
2085
+ {
2086
+ name: '',
2087
+ type: 'tuple',
2088
+ components: [
2089
+ {
2090
+ name: 'lastSnapshot',
2091
+ type: 'tuple',
2092
+ components: [
2093
+ {
2094
+ name: 'greenBalance',
2095
+ type: 'uint256',
2096
+ },
2097
+ {
2098
+ name: 'ratio',
2099
+ type: 'uint256',
2100
+ },
2101
+ {
2102
+ name: 'update',
2103
+ type: 'uint256',
2104
+ },
2105
+ {
2106
+ name: 'inDanger',
2107
+ type: 'bool',
2108
+ },
2109
+ ],
2110
+ },
2111
+ {
2112
+ name: 'numBlocksInDanger',
2113
+ type: 'uint256',
2114
+ },
2115
+ {
2116
+ name: 'nextIndex',
2117
+ type: 'uint256',
2118
+ },
2119
+ ],
2120
+ },
2121
+ ],
2122
+ },
2123
+ {
2124
+ stateMutability: 'view',
2125
+ type: 'function',
2126
+ name: 'snapShots',
2127
+ inputs: [
2128
+ {
2129
+ name: 'arg0',
2130
+ type: 'uint256',
2131
+ },
2132
+ ],
2133
+ outputs: [
2134
+ {
2135
+ name: '',
2136
+ type: 'tuple',
2137
+ components: [
2138
+ {
2139
+ name: 'greenBalance',
2140
+ type: 'uint256',
2141
+ },
2142
+ {
2143
+ name: 'ratio',
2144
+ type: 'uint256',
2145
+ },
2146
+ {
2147
+ name: 'update',
2148
+ type: 'uint256',
2149
+ },
2150
+ {
2151
+ name: 'inDanger',
2152
+ type: 'bool',
2153
+ },
2154
+ ],
2155
+ },
2156
+ ],
2157
+ },
2158
+ {
2159
+ stateMutability: 'view',
2160
+ type: 'function',
2161
+ name: 'pendingGreenRefPoolConfig',
2162
+ inputs: [
2163
+ {
2164
+ name: 'arg0',
2165
+ type: 'uint256',
2166
+ },
2167
+ ],
2168
+ outputs: [
2169
+ {
2170
+ name: '',
2171
+ type: 'tuple',
2172
+ components: [
2173
+ {
2174
+ name: 'pool',
2175
+ type: 'address',
2176
+ },
2177
+ {
2178
+ name: 'lpToken',
2179
+ type: 'address',
2180
+ },
2181
+ {
2182
+ name: 'greenIndex',
2183
+ type: 'uint256',
2184
+ },
2185
+ {
2186
+ name: 'altAsset',
2187
+ type: 'address',
2188
+ },
2189
+ {
2190
+ name: 'altAssetDecimals',
2191
+ type: 'uint256',
2192
+ },
2193
+ {
2194
+ name: 'maxNumSnapshots',
2195
+ type: 'uint256',
2196
+ },
2197
+ {
2198
+ name: 'dangerTrigger',
2199
+ type: 'uint256',
2200
+ },
2201
+ {
2202
+ name: 'staleBlocks',
2203
+ type: 'uint256',
2204
+ },
2205
+ {
2206
+ name: 'stabilizerAdjustWeight',
2207
+ type: 'uint256',
2208
+ },
2209
+ {
2210
+ name: 'stabilizerMaxPoolDebt',
2211
+ type: 'uint256',
2212
+ },
2213
+ ],
2214
+ },
2215
+ ],
2216
+ },
2217
+ {
2218
+ stateMutability: 'view',
2219
+ type: 'function',
2220
+ name: 'CURVE_META_REGISTRY',
2221
+ inputs: [],
2222
+ outputs: [
2223
+ {
2224
+ name: '',
2225
+ type: 'address',
2226
+ },
2227
+ ],
2228
+ },
2229
+ {
2230
+ stateMutability: 'view',
2231
+ type: 'function',
2232
+ name: 'CURVE_REGISTRIES',
2233
+ inputs: [],
2234
+ outputs: [
2235
+ {
2236
+ name: '',
2237
+ type: 'tuple',
2238
+ components: [
2239
+ {
2240
+ name: 'StableSwapNg',
2241
+ type: 'address',
2242
+ },
2243
+ {
2244
+ name: 'TwoCryptoNg',
2245
+ type: 'address',
2246
+ },
2247
+ {
2248
+ name: 'TricryptoNg',
2249
+ type: 'address',
2250
+ },
2251
+ {
2252
+ name: 'TwoCrypto',
2253
+ type: 'address',
2254
+ },
2255
+ {
2256
+ name: 'MetaPool',
2257
+ type: 'address',
2258
+ },
2259
+ ],
2260
+ },
2261
+ ],
2262
+ },
2263
+ {
2264
+ stateMutability: 'view',
2265
+ type: 'function',
2266
+ name: 'GREEN',
2267
+ inputs: [],
2268
+ outputs: [
2269
+ {
2270
+ name: '',
2271
+ type: 'address',
2272
+ },
2273
+ ],
2274
+ },
2275
+ {
2276
+ stateMutability: 'view',
2277
+ type: 'function',
2278
+ name: 'SGREEN',
2279
+ inputs: [],
2280
+ outputs: [
2281
+ {
2282
+ name: '',
2283
+ type: 'address',
2284
+ },
2285
+ ],
2286
+ },
2287
+ {
2288
+ stateMutability: 'nonpayable',
2289
+ type: 'constructor',
2290
+ inputs: [
2291
+ {
2292
+ name: '_ripeHq',
2293
+ type: 'address',
2294
+ },
2295
+ {
2296
+ name: '_curveAddressProvider',
2297
+ type: 'address',
2298
+ },
2299
+ {
2300
+ name: '_green',
2301
+ type: 'address',
2302
+ },
2303
+ {
2304
+ name: '_savingsGreen',
2305
+ type: 'address',
2306
+ },
2307
+ {
2308
+ name: '_minPriceChangeTimeLock',
2309
+ type: 'uint256',
2310
+ },
2311
+ {
2312
+ name: '_maxPriceChangeTimeLock',
2313
+ type: 'uint256',
2314
+ },
2315
+ ],
2316
+ outputs: [],
2317
+ },
2318
+ ];
2319
+ export const deployAddress = '0x677044541aFDf098984b1A4f5bD150e5e850997d';
2320
+ function getRequest(method, args, contractAddressOrOptions) {
2321
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
2322
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
2323
+ const call = {
2324
+ contractName: 'CurvePrices',
2325
+ method,
2326
+ args,
2327
+ address,
2328
+ deployAddress,
2329
+ defaultValue,
2330
+ getAbi: () => abi,
2331
+ with: (options) => {
2332
+ call.address = options.contractAddress;
2333
+ call.defaultValue = options.defaultValue;
2334
+ return call;
2335
+ },
2336
+ defaultTo: (defaultValue) => {
2337
+ call.defaultValue = defaultValue;
2338
+ return call;
2339
+ },
2340
+ at: (address) => {
2341
+ call.address = address;
2342
+ return call;
2343
+ },
2344
+ };
2345
+ return call;
2346
+ }
2347
+ export const call = {
2348
+ getRipeHqFromGov: (...args) => getRequest('getRipeHqFromGov', args),
2349
+ canGovern: (...args) => getRequest('canGovern', args),
2350
+ getGovernors: (...args) => getRequest('getGovernors', args),
2351
+ hasPendingGovChange: (...args) => getRequest('hasPendingGovChange', args),
2352
+ isValidGovTimeLock: (...args) => getRequest('isValidGovTimeLock', args),
2353
+ minGovChangeTimeLock: (...args) => getRequest('minGovChangeTimeLock', args),
2354
+ maxGovChangeTimeLock: (...args) => getRequest('maxGovChangeTimeLock', args),
2355
+ governance: (...args) => getRequest('governance', args),
2356
+ pendingGov: (...args) => getRequest('pendingGov', args),
2357
+ numGovChanges: (...args) => getRequest('numGovChanges', args),
2358
+ govChangeTimeLock: (...args) => getRequest('govChangeTimeLock', args),
2359
+ getAddys: (...args) => getRequest('getAddys', args),
2360
+ getRipeHq: (...args) => getRequest('getRipeHq', args),
2361
+ getPricedAssets: (...args) => getRequest('getPricedAssets', args),
2362
+ isPaused: (...args) => getRequest('isPaused', args),
2363
+ assets: (...args) => getRequest('assets', args),
2364
+ indexOfAsset: (...args) => getRequest('indexOfAsset', args),
2365
+ numAssets: (...args) => getRequest('numAssets', args),
2366
+ canConfirmAction: (...args) => getRequest('canConfirmAction', args),
2367
+ isExpired: (...args) => getRequest('isExpired', args),
2368
+ hasPendingAction: (...args) => getRequest('hasPendingAction', args),
2369
+ getActionConfirmationBlock: (...args) => getRequest('getActionConfirmationBlock', args),
2370
+ isValidActionTimeLock: (...args) => getRequest('isValidActionTimeLock', args),
2371
+ minActionTimeLock: (...args) => getRequest('minActionTimeLock', args),
2372
+ maxActionTimeLock: (...args) => getRequest('maxActionTimeLock', args),
2373
+ pendingActions: (...args) => getRequest('pendingActions', args),
2374
+ actionId: (...args) => getRequest('actionId', args),
2375
+ actionTimeLock: (...args) => getRequest('actionTimeLock', args),
2376
+ expiration: (...args) => getRequest('expiration', args),
2377
+ getPrice: (...args) => getRequest('getPrice', args),
2378
+ getPriceAndHasFeed: (...args) => getRequest('getPriceAndHasFeed', args),
2379
+ hasPriceFeed: (...args) => getRequest('hasPriceFeed', args),
2380
+ hasPendingPriceFeedUpdate: (...args) => getRequest('hasPendingPriceFeedUpdate', args),
2381
+ getStableLpPrice: (...args) => getRequest('getStableLpPrice', args),
2382
+ getCryptoLpPrice: (...args) => getRequest('getCryptoLpPrice', args),
2383
+ getSingleTokenPrice: (...args) => getRequest('getSingleTokenPrice', args),
2384
+ isValidNewFeed: (...args) => getRequest('isValidNewFeed', args),
2385
+ isValidUpdateFeed: (...args) => getRequest('isValidUpdateFeed', args),
2386
+ isValidDisablePriceFeed: (...args) => getRequest('isValidDisablePriceFeed', args),
2387
+ getCurvePoolConfig: (...args) => getRequest('getCurvePoolConfig', args),
2388
+ getCurrentGreenPoolStatus: (...args) => getRequest('getCurrentGreenPoolStatus', args),
2389
+ getCurvePoolData: (...args) => getRequest('getCurvePoolData', args),
2390
+ getGreenStabilizerConfig: (...args) => getRequest('getGreenStabilizerConfig', args),
2391
+ curveConfig: (...args) => getRequest('curveConfig', args),
2392
+ pendingUpdates: (...args) => getRequest('pendingUpdates', args),
2393
+ greenRefPoolConfig: (...args) => getRequest('greenRefPoolConfig', args),
2394
+ greenRefPoolData: (...args) => getRequest('greenRefPoolData', args),
2395
+ snapShots: (...args) => getRequest('snapShots', args),
2396
+ pendingGreenRefPoolConfig: (...args) => getRequest('pendingGreenRefPoolConfig', args),
2397
+ CURVE_META_REGISTRY: (...args) => getRequest('CURVE_META_REGISTRY', args),
2398
+ CURVE_REGISTRIES: (...args) => getRequest('CURVE_REGISTRIES', args),
2399
+ GREEN: (...args) => getRequest('GREEN', args),
2400
+ SGREEN: (...args) => getRequest('SGREEN', args),
2401
+ };
2402
+ function getMutation(functionName) {
2403
+ return {
2404
+ contractName: 'CurvePrices',
2405
+ functionName,
2406
+ deployAddress,
2407
+ argsType: undefined,
2408
+ getAbi: () => abi,
2409
+ };
2410
+ }
2411
+ export const mutation = {
2412
+ startGovernanceChange: getMutation('startGovernanceChange'),
2413
+ confirmGovernanceChange: getMutation('confirmGovernanceChange'),
2414
+ cancelGovernanceChange: getMutation('cancelGovernanceChange'),
2415
+ setGovTimeLock: getMutation('setGovTimeLock'),
2416
+ finishRipeHqSetup: getMutation('finishRipeHqSetup'),
2417
+ pause: getMutation('pause'),
2418
+ recoverFunds: getMutation('recoverFunds'),
2419
+ recoverFundsMany: getMutation('recoverFundsMany'),
2420
+ setActionTimeLock: getMutation('setActionTimeLock'),
2421
+ setExpiration: getMutation('setExpiration'),
2422
+ setActionTimeLockAfterSetup: getMutation('setActionTimeLockAfterSetup'),
2423
+ addPriceSnapshot: getMutation('addPriceSnapshot'),
2424
+ addNewPriceFeed: getMutation('addNewPriceFeed'),
2425
+ confirmNewPriceFeed: getMutation('confirmNewPriceFeed'),
2426
+ cancelNewPendingPriceFeed: getMutation('cancelNewPendingPriceFeed'),
2427
+ updatePriceFeed: getMutation('updatePriceFeed'),
2428
+ confirmPriceFeedUpdate: getMutation('confirmPriceFeedUpdate'),
2429
+ cancelPriceFeedUpdate: getMutation('cancelPriceFeedUpdate'),
2430
+ disablePriceFeed: getMutation('disablePriceFeed'),
2431
+ confirmDisablePriceFeed: getMutation('confirmDisablePriceFeed'),
2432
+ cancelDisablePriceFeed: getMutation('cancelDisablePriceFeed'),
2433
+ setGreenRefPoolConfig: getMutation('setGreenRefPoolConfig'),
2434
+ confirmGreenRefPoolConfig: getMutation('confirmGreenRefPoolConfig'),
2435
+ cancelGreenRefPoolConfig: getMutation('cancelGreenRefPoolConfig'),
2436
+ addGreenRefPoolSnapshot: getMutation('addGreenRefPoolSnapshot'),
2437
+ };
2438
+ export function toSdk(publicClient, walletClient) {
2439
+ return {
2440
+ deployAddress,
2441
+ abi,
2442
+ // Queries
2443
+ getRipeHqFromGov: (...args) => singleQuery(publicClient, call.getRipeHqFromGov(...args)),
2444
+ canGovern: (...args) => singleQuery(publicClient, call.canGovern(...args)),
2445
+ getGovernors: (...args) => singleQuery(publicClient, call.getGovernors(...args)),
2446
+ hasPendingGovChange: (...args) => singleQuery(publicClient, call.hasPendingGovChange(...args)),
2447
+ isValidGovTimeLock: (...args) => singleQuery(publicClient, call.isValidGovTimeLock(...args)),
2448
+ minGovChangeTimeLock: (...args) => singleQuery(publicClient, call.minGovChangeTimeLock(...args)),
2449
+ maxGovChangeTimeLock: (...args) => singleQuery(publicClient, call.maxGovChangeTimeLock(...args)),
2450
+ governance: (...args) => singleQuery(publicClient, call.governance(...args)),
2451
+ pendingGov: (...args) => singleQuery(publicClient, call.pendingGov(...args)),
2452
+ numGovChanges: (...args) => singleQuery(publicClient, call.numGovChanges(...args)),
2453
+ govChangeTimeLock: (...args) => singleQuery(publicClient, call.govChangeTimeLock(...args)),
2454
+ getAddys: (...args) => singleQuery(publicClient, call.getAddys(...args)),
2455
+ getRipeHq: (...args) => singleQuery(publicClient, call.getRipeHq(...args)),
2456
+ getPricedAssets: (...args) => singleQuery(publicClient, call.getPricedAssets(...args)),
2457
+ isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
2458
+ assets: (...args) => singleQuery(publicClient, call.assets(...args)),
2459
+ indexOfAsset: (...args) => singleQuery(publicClient, call.indexOfAsset(...args)),
2460
+ numAssets: (...args) => singleQuery(publicClient, call.numAssets(...args)),
2461
+ canConfirmAction: (...args) => singleQuery(publicClient, call.canConfirmAction(...args)),
2462
+ isExpired: (...args) => singleQuery(publicClient, call.isExpired(...args)),
2463
+ hasPendingAction: (...args) => singleQuery(publicClient, call.hasPendingAction(...args)),
2464
+ getActionConfirmationBlock: (...args) => singleQuery(publicClient, call.getActionConfirmationBlock(...args)),
2465
+ isValidActionTimeLock: (...args) => singleQuery(publicClient, call.isValidActionTimeLock(...args)),
2466
+ minActionTimeLock: (...args) => singleQuery(publicClient, call.minActionTimeLock(...args)),
2467
+ maxActionTimeLock: (...args) => singleQuery(publicClient, call.maxActionTimeLock(...args)),
2468
+ pendingActions: (...args) => singleQuery(publicClient, call.pendingActions(...args)),
2469
+ actionId: (...args) => singleQuery(publicClient, call.actionId(...args)),
2470
+ actionTimeLock: (...args) => singleQuery(publicClient, call.actionTimeLock(...args)),
2471
+ expiration: (...args) => singleQuery(publicClient, call.expiration(...args)),
2472
+ getPrice: (...args) => singleQuery(publicClient, call.getPrice(...args)),
2473
+ getPriceAndHasFeed: (...args) => singleQuery(publicClient, call.getPriceAndHasFeed(...args)),
2474
+ hasPriceFeed: (...args) => singleQuery(publicClient, call.hasPriceFeed(...args)),
2475
+ hasPendingPriceFeedUpdate: (...args) => singleQuery(publicClient, call.hasPendingPriceFeedUpdate(...args)),
2476
+ getStableLpPrice: (...args) => singleQuery(publicClient, call.getStableLpPrice(...args)),
2477
+ getCryptoLpPrice: (...args) => singleQuery(publicClient, call.getCryptoLpPrice(...args)),
2478
+ getSingleTokenPrice: (...args) => singleQuery(publicClient, call.getSingleTokenPrice(...args)),
2479
+ isValidNewFeed: (...args) => singleQuery(publicClient, call.isValidNewFeed(...args)),
2480
+ isValidUpdateFeed: (...args) => singleQuery(publicClient, call.isValidUpdateFeed(...args)),
2481
+ isValidDisablePriceFeed: (...args) => singleQuery(publicClient, call.isValidDisablePriceFeed(...args)),
2482
+ getCurvePoolConfig: (...args) => singleQuery(publicClient, call.getCurvePoolConfig(...args)),
2483
+ getCurrentGreenPoolStatus: (...args) => singleQuery(publicClient, call.getCurrentGreenPoolStatus(...args)),
2484
+ getCurvePoolData: (...args) => singleQuery(publicClient, call.getCurvePoolData(...args)),
2485
+ getGreenStabilizerConfig: (...args) => singleQuery(publicClient, call.getGreenStabilizerConfig(...args)),
2486
+ curveConfig: (...args) => singleQuery(publicClient, call.curveConfig(...args)),
2487
+ pendingUpdates: (...args) => singleQuery(publicClient, call.pendingUpdates(...args)),
2488
+ greenRefPoolConfig: (...args) => singleQuery(publicClient, call.greenRefPoolConfig(...args)),
2489
+ greenRefPoolData: (...args) => singleQuery(publicClient, call.greenRefPoolData(...args)),
2490
+ snapShots: (...args) => singleQuery(publicClient, call.snapShots(...args)),
2491
+ pendingGreenRefPoolConfig: (...args) => singleQuery(publicClient, call.pendingGreenRefPoolConfig(...args)),
2492
+ CURVE_META_REGISTRY: (...args) => singleQuery(publicClient, call.CURVE_META_REGISTRY(...args)),
2493
+ CURVE_REGISTRIES: (...args) => singleQuery(publicClient, call.CURVE_REGISTRIES(...args)),
2494
+ GREEN: (...args) => singleQuery(publicClient, call.GREEN(...args)),
2495
+ SGREEN: (...args) => singleQuery(publicClient, call.SGREEN(...args)),
2496
+ // Mutations
2497
+ startGovernanceChange: (...args) => mutate(walletClient, mutation.startGovernanceChange)(...args),
2498
+ confirmGovernanceChange: (...args) => mutate(walletClient, mutation.confirmGovernanceChange)(...args),
2499
+ cancelGovernanceChange: (...args) => mutate(walletClient, mutation.cancelGovernanceChange)(...args),
2500
+ setGovTimeLock: (...args) => mutate(walletClient, mutation.setGovTimeLock)(...args),
2501
+ finishRipeHqSetup: (...args) => mutate(walletClient, mutation.finishRipeHqSetup)(...args),
2502
+ pause: (...args) => mutate(walletClient, mutation.pause)(...args),
2503
+ recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
2504
+ recoverFundsMany: (...args) => mutate(walletClient, mutation.recoverFundsMany)(...args),
2505
+ setActionTimeLock: (...args) => mutate(walletClient, mutation.setActionTimeLock)(...args),
2506
+ setExpiration: (...args) => mutate(walletClient, mutation.setExpiration)(...args),
2507
+ setActionTimeLockAfterSetup: (...args) => mutate(walletClient, mutation.setActionTimeLockAfterSetup)(...args),
2508
+ addPriceSnapshot: (...args) => mutate(walletClient, mutation.addPriceSnapshot)(...args),
2509
+ addNewPriceFeed: (...args) => mutate(walletClient, mutation.addNewPriceFeed)(...args),
2510
+ confirmNewPriceFeed: (...args) => mutate(walletClient, mutation.confirmNewPriceFeed)(...args),
2511
+ cancelNewPendingPriceFeed: (...args) => mutate(walletClient, mutation.cancelNewPendingPriceFeed)(...args),
2512
+ updatePriceFeed: (...args) => mutate(walletClient, mutation.updatePriceFeed)(...args),
2513
+ confirmPriceFeedUpdate: (...args) => mutate(walletClient, mutation.confirmPriceFeedUpdate)(...args),
2514
+ cancelPriceFeedUpdate: (...args) => mutate(walletClient, mutation.cancelPriceFeedUpdate)(...args),
2515
+ disablePriceFeed: (...args) => mutate(walletClient, mutation.disablePriceFeed)(...args),
2516
+ confirmDisablePriceFeed: (...args) => mutate(walletClient, mutation.confirmDisablePriceFeed)(...args),
2517
+ cancelDisablePriceFeed: (...args) => mutate(walletClient, mutation.cancelDisablePriceFeed)(...args),
2518
+ setGreenRefPoolConfig: (...args) => mutate(walletClient, mutation.setGreenRefPoolConfig)(...args),
2519
+ confirmGreenRefPoolConfig: (...args) => mutate(walletClient, mutation.confirmGreenRefPoolConfig)(...args),
2520
+ cancelGreenRefPoolConfig: (...args) => mutate(walletClient, mutation.cancelGreenRefPoolConfig)(...args),
2521
+ addGreenRefPoolSnapshot: (...args) => mutate(walletClient, mutation.addGreenRefPoolSnapshot)(...args),
2522
+ };
2523
+ }