@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,1819 @@
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: 'NewStorkFeedPending',
9
+ inputs: [
10
+ {
11
+ name: 'asset',
12
+ type: 'address',
13
+ indexed: true,
14
+ },
15
+ {
16
+ name: 'feedId',
17
+ type: 'bytes32',
18
+ indexed: false,
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: 'NewStorkFeedAdded',
36
+ inputs: [
37
+ {
38
+ name: 'asset',
39
+ type: 'address',
40
+ indexed: true,
41
+ },
42
+ {
43
+ name: 'feedId',
44
+ type: 'bytes32',
45
+ indexed: false,
46
+ },
47
+ ],
48
+ anonymous: false,
49
+ type: 'event',
50
+ },
51
+ {
52
+ name: 'NewStorkFeedCancelled',
53
+ inputs: [
54
+ {
55
+ name: 'asset',
56
+ type: 'address',
57
+ indexed: true,
58
+ },
59
+ {
60
+ name: 'feedId',
61
+ type: 'bytes32',
62
+ indexed: false,
63
+ },
64
+ ],
65
+ anonymous: false,
66
+ type: 'event',
67
+ },
68
+ {
69
+ name: 'StorkFeedUpdatePending',
70
+ inputs: [
71
+ {
72
+ name: 'asset',
73
+ type: 'address',
74
+ indexed: true,
75
+ },
76
+ {
77
+ name: 'feedId',
78
+ type: 'bytes32',
79
+ indexed: false,
80
+ },
81
+ {
82
+ name: 'confirmationBlock',
83
+ type: 'uint256',
84
+ indexed: false,
85
+ },
86
+ {
87
+ name: 'oldFeedId',
88
+ type: 'bytes32',
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: 'StorkFeedUpdated',
102
+ inputs: [
103
+ {
104
+ name: 'asset',
105
+ type: 'address',
106
+ indexed: true,
107
+ },
108
+ {
109
+ name: 'feedId',
110
+ type: 'bytes32',
111
+ indexed: false,
112
+ },
113
+ {
114
+ name: 'oldFeedId',
115
+ type: 'bytes32',
116
+ indexed: false,
117
+ },
118
+ ],
119
+ anonymous: false,
120
+ type: 'event',
121
+ },
122
+ {
123
+ name: 'StorkFeedUpdateCancelled',
124
+ inputs: [
125
+ {
126
+ name: 'asset',
127
+ type: 'address',
128
+ indexed: true,
129
+ },
130
+ {
131
+ name: 'feedId',
132
+ type: 'bytes32',
133
+ indexed: false,
134
+ },
135
+ {
136
+ name: 'oldFeedId',
137
+ type: 'bytes32',
138
+ indexed: false,
139
+ },
140
+ ],
141
+ anonymous: false,
142
+ type: 'event',
143
+ },
144
+ {
145
+ name: 'DisableStorkFeedPending',
146
+ inputs: [
147
+ {
148
+ name: 'asset',
149
+ type: 'address',
150
+ indexed: true,
151
+ },
152
+ {
153
+ name: 'feedId',
154
+ type: 'bytes32',
155
+ indexed: false,
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: 'StorkFeedDisabled',
173
+ inputs: [
174
+ {
175
+ name: 'asset',
176
+ type: 'address',
177
+ indexed: true,
178
+ },
179
+ {
180
+ name: 'feedId',
181
+ type: 'bytes32',
182
+ indexed: false,
183
+ },
184
+ ],
185
+ anonymous: false,
186
+ type: 'event',
187
+ },
188
+ {
189
+ name: 'DisableStorkFeedCancelled',
190
+ inputs: [
191
+ {
192
+ name: 'asset',
193
+ type: 'address',
194
+ indexed: true,
195
+ },
196
+ {
197
+ name: 'feedId',
198
+ type: 'bytes32',
199
+ indexed: false,
200
+ },
201
+ ],
202
+ anonymous: false,
203
+ type: 'event',
204
+ },
205
+ {
206
+ name: 'StorkPriceUpdated',
207
+ inputs: [
208
+ {
209
+ name: 'payload',
210
+ type: 'bytes',
211
+ indexed: false,
212
+ },
213
+ {
214
+ name: 'feeAmount',
215
+ type: 'uint256',
216
+ indexed: false,
217
+ },
218
+ {
219
+ name: 'caller',
220
+ type: 'address',
221
+ indexed: true,
222
+ },
223
+ ],
224
+ anonymous: false,
225
+ type: 'event',
226
+ },
227
+ {
228
+ name: 'EthRecoveredFromStork',
229
+ inputs: [
230
+ {
231
+ name: 'recipient',
232
+ type: 'address',
233
+ indexed: true,
234
+ },
235
+ {
236
+ name: 'amount',
237
+ type: 'uint256',
238
+ indexed: false,
239
+ },
240
+ ],
241
+ anonymous: false,
242
+ type: 'event',
243
+ },
244
+ {
245
+ name: 'GovChangeTimeLockModified',
246
+ inputs: [
247
+ {
248
+ name: 'prevTimeLock',
249
+ type: 'uint256',
250
+ indexed: false,
251
+ },
252
+ {
253
+ name: 'newTimeLock',
254
+ type: 'uint256',
255
+ indexed: false,
256
+ },
257
+ ],
258
+ anonymous: false,
259
+ type: 'event',
260
+ },
261
+ {
262
+ name: 'ExpirationSet',
263
+ inputs: [
264
+ {
265
+ name: 'expiration',
266
+ type: 'uint256',
267
+ indexed: false,
268
+ },
269
+ ],
270
+ anonymous: false,
271
+ type: 'event',
272
+ },
273
+ {
274
+ name: 'ActionTimeLockSet',
275
+ inputs: [
276
+ {
277
+ name: 'newTimeLock',
278
+ type: 'uint256',
279
+ indexed: false,
280
+ },
281
+ {
282
+ name: 'prevTimeLock',
283
+ type: 'uint256',
284
+ indexed: false,
285
+ },
286
+ ],
287
+ anonymous: false,
288
+ type: 'event',
289
+ },
290
+ {
291
+ name: 'GovChangeStarted',
292
+ inputs: [
293
+ {
294
+ name: 'prevGov',
295
+ type: 'address',
296
+ indexed: true,
297
+ },
298
+ {
299
+ name: 'newGov',
300
+ type: 'address',
301
+ indexed: true,
302
+ },
303
+ {
304
+ name: 'confirmBlock',
305
+ type: 'uint256',
306
+ indexed: false,
307
+ },
308
+ ],
309
+ anonymous: false,
310
+ type: 'event',
311
+ },
312
+ {
313
+ name: 'GovChangeConfirmed',
314
+ inputs: [
315
+ {
316
+ name: 'prevGov',
317
+ type: 'address',
318
+ indexed: true,
319
+ },
320
+ {
321
+ name: 'newGov',
322
+ type: 'address',
323
+ indexed: true,
324
+ },
325
+ {
326
+ name: 'initiatedBlock',
327
+ type: 'uint256',
328
+ indexed: false,
329
+ },
330
+ {
331
+ name: 'confirmBlock',
332
+ type: 'uint256',
333
+ indexed: false,
334
+ },
335
+ ],
336
+ anonymous: false,
337
+ type: 'event',
338
+ },
339
+ {
340
+ name: 'GovChangeCancelled',
341
+ inputs: [
342
+ {
343
+ name: 'cancelledGov',
344
+ type: 'address',
345
+ indexed: true,
346
+ },
347
+ {
348
+ name: 'initiatedBlock',
349
+ type: 'uint256',
350
+ indexed: false,
351
+ },
352
+ {
353
+ name: 'confirmBlock',
354
+ type: 'uint256',
355
+ indexed: false,
356
+ },
357
+ ],
358
+ anonymous: false,
359
+ type: 'event',
360
+ },
361
+ {
362
+ name: 'RipeHqSetupFinished',
363
+ inputs: [
364
+ {
365
+ name: 'prevGov',
366
+ type: 'address',
367
+ indexed: true,
368
+ },
369
+ {
370
+ name: 'newGov',
371
+ type: 'address',
372
+ indexed: true,
373
+ },
374
+ {
375
+ name: 'timeLock',
376
+ type: 'uint256',
377
+ indexed: false,
378
+ },
379
+ ],
380
+ anonymous: false,
381
+ type: 'event',
382
+ },
383
+ {
384
+ name: 'PriceSourcePauseModified',
385
+ inputs: [
386
+ {
387
+ name: 'isPaused',
388
+ type: 'bool',
389
+ indexed: false,
390
+ },
391
+ ],
392
+ anonymous: false,
393
+ type: 'event',
394
+ },
395
+ {
396
+ name: 'PriceSourceFundsRecovered',
397
+ inputs: [
398
+ {
399
+ name: 'asset',
400
+ type: 'address',
401
+ indexed: true,
402
+ },
403
+ {
404
+ name: 'recipient',
405
+ type: 'address',
406
+ indexed: true,
407
+ },
408
+ {
409
+ name: 'balance',
410
+ type: 'uint256',
411
+ indexed: false,
412
+ },
413
+ ],
414
+ anonymous: false,
415
+ type: 'event',
416
+ },
417
+ {
418
+ stateMutability: 'view',
419
+ type: 'function',
420
+ name: 'getRipeHqFromGov',
421
+ inputs: [],
422
+ outputs: [
423
+ {
424
+ name: '',
425
+ type: 'address',
426
+ },
427
+ ],
428
+ },
429
+ {
430
+ stateMutability: 'view',
431
+ type: 'function',
432
+ name: 'canGovern',
433
+ inputs: [
434
+ {
435
+ name: '_addr',
436
+ type: 'address',
437
+ },
438
+ ],
439
+ outputs: [
440
+ {
441
+ name: '',
442
+ type: 'bool',
443
+ },
444
+ ],
445
+ },
446
+ {
447
+ stateMutability: 'view',
448
+ type: 'function',
449
+ name: 'getGovernors',
450
+ inputs: [],
451
+ outputs: [
452
+ {
453
+ name: '',
454
+ type: 'address[]',
455
+ },
456
+ ],
457
+ },
458
+ {
459
+ stateMutability: 'view',
460
+ type: 'function',
461
+ name: 'hasPendingGovChange',
462
+ inputs: [],
463
+ outputs: [
464
+ {
465
+ name: '',
466
+ type: 'bool',
467
+ },
468
+ ],
469
+ },
470
+ {
471
+ stateMutability: 'nonpayable',
472
+ type: 'function',
473
+ name: 'startGovernanceChange',
474
+ inputs: [
475
+ {
476
+ name: '_newGov',
477
+ type: 'address',
478
+ },
479
+ ],
480
+ outputs: [],
481
+ },
482
+ {
483
+ stateMutability: 'nonpayable',
484
+ type: 'function',
485
+ name: 'confirmGovernanceChange',
486
+ inputs: [],
487
+ outputs: [],
488
+ },
489
+ {
490
+ stateMutability: 'nonpayable',
491
+ type: 'function',
492
+ name: 'cancelGovernanceChange',
493
+ inputs: [],
494
+ outputs: [],
495
+ },
496
+ {
497
+ stateMutability: 'nonpayable',
498
+ type: 'function',
499
+ name: 'setGovTimeLock',
500
+ inputs: [
501
+ {
502
+ name: '_numBlocks',
503
+ type: 'uint256',
504
+ },
505
+ ],
506
+ outputs: [
507
+ {
508
+ name: '',
509
+ type: 'bool',
510
+ },
511
+ ],
512
+ },
513
+ {
514
+ stateMutability: 'view',
515
+ type: 'function',
516
+ name: 'isValidGovTimeLock',
517
+ inputs: [
518
+ {
519
+ name: '_newTimeLock',
520
+ type: 'uint256',
521
+ },
522
+ ],
523
+ outputs: [
524
+ {
525
+ name: '',
526
+ type: 'bool',
527
+ },
528
+ ],
529
+ },
530
+ {
531
+ stateMutability: 'view',
532
+ type: 'function',
533
+ name: 'minGovChangeTimeLock',
534
+ inputs: [],
535
+ outputs: [
536
+ {
537
+ name: '',
538
+ type: 'uint256',
539
+ },
540
+ ],
541
+ },
542
+ {
543
+ stateMutability: 'view',
544
+ type: 'function',
545
+ name: 'maxGovChangeTimeLock',
546
+ inputs: [],
547
+ outputs: [
548
+ {
549
+ name: '',
550
+ type: 'uint256',
551
+ },
552
+ ],
553
+ },
554
+ {
555
+ stateMutability: 'nonpayable',
556
+ type: 'function',
557
+ name: 'finishRipeHqSetup',
558
+ inputs: [
559
+ {
560
+ name: '_newGov',
561
+ type: 'address',
562
+ },
563
+ ],
564
+ outputs: [
565
+ {
566
+ name: '',
567
+ type: 'bool',
568
+ },
569
+ ],
570
+ },
571
+ {
572
+ stateMutability: 'nonpayable',
573
+ type: 'function',
574
+ name: 'finishRipeHqSetup',
575
+ inputs: [
576
+ {
577
+ name: '_newGov',
578
+ type: 'address',
579
+ },
580
+ {
581
+ name: '_timeLock',
582
+ type: 'uint256',
583
+ },
584
+ ],
585
+ outputs: [
586
+ {
587
+ name: '',
588
+ type: 'bool',
589
+ },
590
+ ],
591
+ },
592
+ {
593
+ stateMutability: 'view',
594
+ type: 'function',
595
+ name: 'governance',
596
+ inputs: [],
597
+ outputs: [
598
+ {
599
+ name: '',
600
+ type: 'address',
601
+ },
602
+ ],
603
+ },
604
+ {
605
+ stateMutability: 'view',
606
+ type: 'function',
607
+ name: 'pendingGov',
608
+ inputs: [],
609
+ outputs: [
610
+ {
611
+ name: '',
612
+ type: 'tuple',
613
+ components: [
614
+ {
615
+ name: 'newGov',
616
+ type: 'address',
617
+ },
618
+ {
619
+ name: 'initiatedBlock',
620
+ type: 'uint256',
621
+ },
622
+ {
623
+ name: 'confirmBlock',
624
+ type: 'uint256',
625
+ },
626
+ ],
627
+ },
628
+ ],
629
+ },
630
+ {
631
+ stateMutability: 'view',
632
+ type: 'function',
633
+ name: 'numGovChanges',
634
+ inputs: [],
635
+ outputs: [
636
+ {
637
+ name: '',
638
+ type: 'uint256',
639
+ },
640
+ ],
641
+ },
642
+ {
643
+ stateMutability: 'view',
644
+ type: 'function',
645
+ name: 'govChangeTimeLock',
646
+ inputs: [],
647
+ outputs: [
648
+ {
649
+ name: '',
650
+ type: 'uint256',
651
+ },
652
+ ],
653
+ },
654
+ {
655
+ stateMutability: 'view',
656
+ type: 'function',
657
+ name: 'getAddys',
658
+ inputs: [],
659
+ outputs: [
660
+ {
661
+ name: '',
662
+ type: 'tuple',
663
+ components: [
664
+ {
665
+ name: 'hq',
666
+ type: 'address',
667
+ },
668
+ {
669
+ name: 'greenToken',
670
+ type: 'address',
671
+ },
672
+ {
673
+ name: 'savingsGreen',
674
+ type: 'address',
675
+ },
676
+ {
677
+ name: 'ripeToken',
678
+ type: 'address',
679
+ },
680
+ {
681
+ name: 'ledger',
682
+ type: 'address',
683
+ },
684
+ {
685
+ name: 'missionControl',
686
+ type: 'address',
687
+ },
688
+ {
689
+ name: 'switchboard',
690
+ type: 'address',
691
+ },
692
+ {
693
+ name: 'priceDesk',
694
+ type: 'address',
695
+ },
696
+ {
697
+ name: 'vaultBook',
698
+ type: 'address',
699
+ },
700
+ {
701
+ name: 'auctionHouse',
702
+ type: 'address',
703
+ },
704
+ {
705
+ name: 'auctionHouseNft',
706
+ type: 'address',
707
+ },
708
+ {
709
+ name: 'boardroom',
710
+ type: 'address',
711
+ },
712
+ {
713
+ name: 'bondRoom',
714
+ type: 'address',
715
+ },
716
+ {
717
+ name: 'creditEngine',
718
+ type: 'address',
719
+ },
720
+ {
721
+ name: 'endaoment',
722
+ type: 'address',
723
+ },
724
+ {
725
+ name: 'humanResources',
726
+ type: 'address',
727
+ },
728
+ {
729
+ name: 'lootbox',
730
+ type: 'address',
731
+ },
732
+ {
733
+ name: 'teller',
734
+ type: 'address',
735
+ },
736
+ ],
737
+ },
738
+ ],
739
+ },
740
+ {
741
+ stateMutability: 'view',
742
+ type: 'function',
743
+ name: 'getRipeHq',
744
+ inputs: [],
745
+ outputs: [
746
+ {
747
+ name: '',
748
+ type: 'address',
749
+ },
750
+ ],
751
+ },
752
+ {
753
+ stateMutability: 'view',
754
+ type: 'function',
755
+ name: 'getPricedAssets',
756
+ inputs: [],
757
+ outputs: [
758
+ {
759
+ name: '',
760
+ type: 'address[]',
761
+ },
762
+ ],
763
+ },
764
+ {
765
+ stateMutability: 'nonpayable',
766
+ type: 'function',
767
+ name: 'pause',
768
+ inputs: [
769
+ {
770
+ name: '_shouldPause',
771
+ type: 'bool',
772
+ },
773
+ ],
774
+ outputs: [],
775
+ },
776
+ {
777
+ stateMutability: 'nonpayable',
778
+ type: 'function',
779
+ name: 'recoverFunds',
780
+ inputs: [
781
+ {
782
+ name: '_recipient',
783
+ type: 'address',
784
+ },
785
+ {
786
+ name: '_asset',
787
+ type: 'address',
788
+ },
789
+ ],
790
+ outputs: [],
791
+ },
792
+ {
793
+ stateMutability: 'nonpayable',
794
+ type: 'function',
795
+ name: 'recoverFundsMany',
796
+ inputs: [
797
+ {
798
+ name: '_recipient',
799
+ type: 'address',
800
+ },
801
+ {
802
+ name: '_assets',
803
+ type: 'address[]',
804
+ },
805
+ ],
806
+ outputs: [],
807
+ },
808
+ {
809
+ stateMutability: 'view',
810
+ type: 'function',
811
+ name: 'isPaused',
812
+ inputs: [],
813
+ outputs: [
814
+ {
815
+ name: '',
816
+ type: 'bool',
817
+ },
818
+ ],
819
+ },
820
+ {
821
+ stateMutability: 'view',
822
+ type: 'function',
823
+ name: 'assets',
824
+ inputs: [
825
+ {
826
+ name: 'arg0',
827
+ type: 'uint256',
828
+ },
829
+ ],
830
+ outputs: [
831
+ {
832
+ name: '',
833
+ type: 'address',
834
+ },
835
+ ],
836
+ },
837
+ {
838
+ stateMutability: 'view',
839
+ type: 'function',
840
+ name: 'indexOfAsset',
841
+ inputs: [
842
+ {
843
+ name: 'arg0',
844
+ type: 'address',
845
+ },
846
+ ],
847
+ outputs: [
848
+ {
849
+ name: '',
850
+ type: 'uint256',
851
+ },
852
+ ],
853
+ },
854
+ {
855
+ stateMutability: 'view',
856
+ type: 'function',
857
+ name: 'numAssets',
858
+ inputs: [],
859
+ outputs: [
860
+ {
861
+ name: '',
862
+ type: 'uint256',
863
+ },
864
+ ],
865
+ },
866
+ {
867
+ stateMutability: 'view',
868
+ type: 'function',
869
+ name: 'canConfirmAction',
870
+ inputs: [
871
+ {
872
+ name: '_actionId',
873
+ type: 'uint256',
874
+ },
875
+ ],
876
+ outputs: [
877
+ {
878
+ name: '',
879
+ type: 'bool',
880
+ },
881
+ ],
882
+ },
883
+ {
884
+ stateMutability: 'view',
885
+ type: 'function',
886
+ name: 'isExpired',
887
+ inputs: [
888
+ {
889
+ name: '_actionId',
890
+ type: 'uint256',
891
+ },
892
+ ],
893
+ outputs: [
894
+ {
895
+ name: '',
896
+ type: 'bool',
897
+ },
898
+ ],
899
+ },
900
+ {
901
+ stateMutability: 'view',
902
+ type: 'function',
903
+ name: 'hasPendingAction',
904
+ inputs: [
905
+ {
906
+ name: '_actionId',
907
+ type: 'uint256',
908
+ },
909
+ ],
910
+ outputs: [
911
+ {
912
+ name: '',
913
+ type: 'bool',
914
+ },
915
+ ],
916
+ },
917
+ {
918
+ stateMutability: 'view',
919
+ type: 'function',
920
+ name: 'getActionConfirmationBlock',
921
+ inputs: [
922
+ {
923
+ name: '_actionId',
924
+ type: 'uint256',
925
+ },
926
+ ],
927
+ outputs: [
928
+ {
929
+ name: '',
930
+ type: 'uint256',
931
+ },
932
+ ],
933
+ },
934
+ {
935
+ stateMutability: 'nonpayable',
936
+ type: 'function',
937
+ name: 'setActionTimeLock',
938
+ inputs: [
939
+ {
940
+ name: '_newTimeLock',
941
+ type: 'uint256',
942
+ },
943
+ ],
944
+ outputs: [
945
+ {
946
+ name: '',
947
+ type: 'bool',
948
+ },
949
+ ],
950
+ },
951
+ {
952
+ stateMutability: 'view',
953
+ type: 'function',
954
+ name: 'isValidActionTimeLock',
955
+ inputs: [
956
+ {
957
+ name: '_newTimeLock',
958
+ type: 'uint256',
959
+ },
960
+ ],
961
+ outputs: [
962
+ {
963
+ name: '',
964
+ type: 'bool',
965
+ },
966
+ ],
967
+ },
968
+ {
969
+ stateMutability: 'view',
970
+ type: 'function',
971
+ name: 'minActionTimeLock',
972
+ inputs: [],
973
+ outputs: [
974
+ {
975
+ name: '',
976
+ type: 'uint256',
977
+ },
978
+ ],
979
+ },
980
+ {
981
+ stateMutability: 'view',
982
+ type: 'function',
983
+ name: 'maxActionTimeLock',
984
+ inputs: [],
985
+ outputs: [
986
+ {
987
+ name: '',
988
+ type: 'uint256',
989
+ },
990
+ ],
991
+ },
992
+ {
993
+ stateMutability: 'nonpayable',
994
+ type: 'function',
995
+ name: 'setExpiration',
996
+ inputs: [
997
+ {
998
+ name: '_expiration',
999
+ type: 'uint256',
1000
+ },
1001
+ ],
1002
+ outputs: [
1003
+ {
1004
+ name: '',
1005
+ type: 'bool',
1006
+ },
1007
+ ],
1008
+ },
1009
+ {
1010
+ stateMutability: 'nonpayable',
1011
+ type: 'function',
1012
+ name: 'setActionTimeLockAfterSetup',
1013
+ inputs: [],
1014
+ outputs: [
1015
+ {
1016
+ name: '',
1017
+ type: 'bool',
1018
+ },
1019
+ ],
1020
+ },
1021
+ {
1022
+ stateMutability: 'nonpayable',
1023
+ type: 'function',
1024
+ name: 'setActionTimeLockAfterSetup',
1025
+ inputs: [
1026
+ {
1027
+ name: '_newTimeLock',
1028
+ type: 'uint256',
1029
+ },
1030
+ ],
1031
+ outputs: [
1032
+ {
1033
+ name: '',
1034
+ type: 'bool',
1035
+ },
1036
+ ],
1037
+ },
1038
+ {
1039
+ stateMutability: 'view',
1040
+ type: 'function',
1041
+ name: 'pendingActions',
1042
+ inputs: [
1043
+ {
1044
+ name: 'arg0',
1045
+ type: 'uint256',
1046
+ },
1047
+ ],
1048
+ outputs: [
1049
+ {
1050
+ name: '',
1051
+ type: 'tuple',
1052
+ components: [
1053
+ {
1054
+ name: 'initiatedBlock',
1055
+ type: 'uint256',
1056
+ },
1057
+ {
1058
+ name: 'confirmBlock',
1059
+ type: 'uint256',
1060
+ },
1061
+ {
1062
+ name: 'expiration',
1063
+ type: 'uint256',
1064
+ },
1065
+ ],
1066
+ },
1067
+ ],
1068
+ },
1069
+ {
1070
+ stateMutability: 'view',
1071
+ type: 'function',
1072
+ name: 'actionId',
1073
+ inputs: [],
1074
+ outputs: [
1075
+ {
1076
+ name: '',
1077
+ type: 'uint256',
1078
+ },
1079
+ ],
1080
+ },
1081
+ {
1082
+ stateMutability: 'view',
1083
+ type: 'function',
1084
+ name: 'actionTimeLock',
1085
+ inputs: [],
1086
+ outputs: [
1087
+ {
1088
+ name: '',
1089
+ type: 'uint256',
1090
+ },
1091
+ ],
1092
+ },
1093
+ {
1094
+ stateMutability: 'view',
1095
+ type: 'function',
1096
+ name: 'expiration',
1097
+ inputs: [],
1098
+ outputs: [
1099
+ {
1100
+ name: '',
1101
+ type: 'uint256',
1102
+ },
1103
+ ],
1104
+ },
1105
+ {
1106
+ stateMutability: 'view',
1107
+ type: 'function',
1108
+ name: 'getPrice',
1109
+ inputs: [
1110
+ {
1111
+ name: '_asset',
1112
+ type: 'address',
1113
+ },
1114
+ ],
1115
+ outputs: [
1116
+ {
1117
+ name: '',
1118
+ type: 'uint256',
1119
+ },
1120
+ ],
1121
+ },
1122
+ {
1123
+ stateMutability: 'view',
1124
+ type: 'function',
1125
+ name: 'getPrice',
1126
+ inputs: [
1127
+ {
1128
+ name: '_asset',
1129
+ type: 'address',
1130
+ },
1131
+ {
1132
+ name: '_staleTime',
1133
+ type: 'uint256',
1134
+ },
1135
+ ],
1136
+ outputs: [
1137
+ {
1138
+ name: '',
1139
+ type: 'uint256',
1140
+ },
1141
+ ],
1142
+ },
1143
+ {
1144
+ stateMutability: 'view',
1145
+ type: 'function',
1146
+ name: 'getPrice',
1147
+ inputs: [
1148
+ {
1149
+ name: '_asset',
1150
+ type: 'address',
1151
+ },
1152
+ {
1153
+ name: '_staleTime',
1154
+ type: 'uint256',
1155
+ },
1156
+ {
1157
+ name: '_priceDesk',
1158
+ type: 'address',
1159
+ },
1160
+ ],
1161
+ outputs: [
1162
+ {
1163
+ name: '',
1164
+ type: 'uint256',
1165
+ },
1166
+ ],
1167
+ },
1168
+ {
1169
+ stateMutability: 'view',
1170
+ type: 'function',
1171
+ name: 'getPriceAndHasFeed',
1172
+ inputs: [
1173
+ {
1174
+ name: '_asset',
1175
+ type: 'address',
1176
+ },
1177
+ ],
1178
+ outputs: [
1179
+ {
1180
+ name: '',
1181
+ type: 'uint256',
1182
+ },
1183
+ {
1184
+ name: '',
1185
+ type: 'bool',
1186
+ },
1187
+ ],
1188
+ },
1189
+ {
1190
+ stateMutability: 'view',
1191
+ type: 'function',
1192
+ name: 'getPriceAndHasFeed',
1193
+ inputs: [
1194
+ {
1195
+ name: '_asset',
1196
+ type: 'address',
1197
+ },
1198
+ {
1199
+ name: '_staleTime',
1200
+ type: 'uint256',
1201
+ },
1202
+ ],
1203
+ outputs: [
1204
+ {
1205
+ name: '',
1206
+ type: 'uint256',
1207
+ },
1208
+ {
1209
+ name: '',
1210
+ type: 'bool',
1211
+ },
1212
+ ],
1213
+ },
1214
+ {
1215
+ stateMutability: 'view',
1216
+ type: 'function',
1217
+ name: 'getPriceAndHasFeed',
1218
+ inputs: [
1219
+ {
1220
+ name: '_asset',
1221
+ type: 'address',
1222
+ },
1223
+ {
1224
+ name: '_staleTime',
1225
+ type: 'uint256',
1226
+ },
1227
+ {
1228
+ name: '_priceDesk',
1229
+ type: 'address',
1230
+ },
1231
+ ],
1232
+ outputs: [
1233
+ {
1234
+ name: '',
1235
+ type: 'uint256',
1236
+ },
1237
+ {
1238
+ name: '',
1239
+ type: 'bool',
1240
+ },
1241
+ ],
1242
+ },
1243
+ {
1244
+ stateMutability: 'view',
1245
+ type: 'function',
1246
+ name: 'hasPriceFeed',
1247
+ inputs: [
1248
+ {
1249
+ name: '_asset',
1250
+ type: 'address',
1251
+ },
1252
+ ],
1253
+ outputs: [
1254
+ {
1255
+ name: '',
1256
+ type: 'bool',
1257
+ },
1258
+ ],
1259
+ },
1260
+ {
1261
+ stateMutability: 'view',
1262
+ type: 'function',
1263
+ name: 'hasPendingPriceFeedUpdate',
1264
+ inputs: [
1265
+ {
1266
+ name: '_asset',
1267
+ type: 'address',
1268
+ },
1269
+ ],
1270
+ outputs: [
1271
+ {
1272
+ name: '',
1273
+ type: 'bool',
1274
+ },
1275
+ ],
1276
+ },
1277
+ {
1278
+ stateMutability: 'nonpayable',
1279
+ type: 'function',
1280
+ name: 'addPriceSnapshot',
1281
+ inputs: [
1282
+ {
1283
+ name: '_asset',
1284
+ type: 'address',
1285
+ },
1286
+ ],
1287
+ outputs: [
1288
+ {
1289
+ name: '',
1290
+ type: 'bool',
1291
+ },
1292
+ ],
1293
+ },
1294
+ {
1295
+ stateMutability: 'nonpayable',
1296
+ type: 'function',
1297
+ name: 'addNewPriceFeed',
1298
+ inputs: [
1299
+ {
1300
+ name: '_asset',
1301
+ type: 'address',
1302
+ },
1303
+ {
1304
+ name: '_feedId',
1305
+ type: 'bytes32',
1306
+ },
1307
+ ],
1308
+ outputs: [
1309
+ {
1310
+ name: '',
1311
+ type: 'bool',
1312
+ },
1313
+ ],
1314
+ },
1315
+ {
1316
+ stateMutability: 'nonpayable',
1317
+ type: 'function',
1318
+ name: 'confirmNewPriceFeed',
1319
+ inputs: [
1320
+ {
1321
+ name: '_asset',
1322
+ type: 'address',
1323
+ },
1324
+ ],
1325
+ outputs: [
1326
+ {
1327
+ name: '',
1328
+ type: 'bool',
1329
+ },
1330
+ ],
1331
+ },
1332
+ {
1333
+ stateMutability: 'nonpayable',
1334
+ type: 'function',
1335
+ name: 'cancelNewPendingPriceFeed',
1336
+ inputs: [
1337
+ {
1338
+ name: '_asset',
1339
+ type: 'address',
1340
+ },
1341
+ ],
1342
+ outputs: [
1343
+ {
1344
+ name: '',
1345
+ type: 'bool',
1346
+ },
1347
+ ],
1348
+ },
1349
+ {
1350
+ stateMutability: 'view',
1351
+ type: 'function',
1352
+ name: 'isValidNewFeed',
1353
+ inputs: [
1354
+ {
1355
+ name: '_asset',
1356
+ type: 'address',
1357
+ },
1358
+ {
1359
+ name: '_feedId',
1360
+ type: 'bytes32',
1361
+ },
1362
+ ],
1363
+ outputs: [
1364
+ {
1365
+ name: '',
1366
+ type: 'bool',
1367
+ },
1368
+ ],
1369
+ },
1370
+ {
1371
+ stateMutability: 'nonpayable',
1372
+ type: 'function',
1373
+ name: 'updatePriceFeed',
1374
+ inputs: [
1375
+ {
1376
+ name: '_asset',
1377
+ type: 'address',
1378
+ },
1379
+ {
1380
+ name: '_feedId',
1381
+ type: 'bytes32',
1382
+ },
1383
+ ],
1384
+ outputs: [
1385
+ {
1386
+ name: '',
1387
+ type: 'bool',
1388
+ },
1389
+ ],
1390
+ },
1391
+ {
1392
+ stateMutability: 'nonpayable',
1393
+ type: 'function',
1394
+ name: 'confirmPriceFeedUpdate',
1395
+ inputs: [
1396
+ {
1397
+ name: '_asset',
1398
+ type: 'address',
1399
+ },
1400
+ ],
1401
+ outputs: [
1402
+ {
1403
+ name: '',
1404
+ type: 'bool',
1405
+ },
1406
+ ],
1407
+ },
1408
+ {
1409
+ stateMutability: 'nonpayable',
1410
+ type: 'function',
1411
+ name: 'cancelPriceFeedUpdate',
1412
+ inputs: [
1413
+ {
1414
+ name: '_asset',
1415
+ type: 'address',
1416
+ },
1417
+ ],
1418
+ outputs: [
1419
+ {
1420
+ name: '',
1421
+ type: 'bool',
1422
+ },
1423
+ ],
1424
+ },
1425
+ {
1426
+ stateMutability: 'view',
1427
+ type: 'function',
1428
+ name: 'isValidUpdateFeed',
1429
+ inputs: [
1430
+ {
1431
+ name: '_asset',
1432
+ type: 'address',
1433
+ },
1434
+ {
1435
+ name: '_feedId',
1436
+ type: 'bytes32',
1437
+ },
1438
+ ],
1439
+ outputs: [
1440
+ {
1441
+ name: '',
1442
+ type: 'bool',
1443
+ },
1444
+ ],
1445
+ },
1446
+ {
1447
+ stateMutability: 'nonpayable',
1448
+ type: 'function',
1449
+ name: 'disablePriceFeed',
1450
+ inputs: [
1451
+ {
1452
+ name: '_asset',
1453
+ type: 'address',
1454
+ },
1455
+ ],
1456
+ outputs: [
1457
+ {
1458
+ name: '',
1459
+ type: 'bool',
1460
+ },
1461
+ ],
1462
+ },
1463
+ {
1464
+ stateMutability: 'nonpayable',
1465
+ type: 'function',
1466
+ name: 'confirmDisablePriceFeed',
1467
+ inputs: [
1468
+ {
1469
+ name: '_asset',
1470
+ type: 'address',
1471
+ },
1472
+ ],
1473
+ outputs: [
1474
+ {
1475
+ name: '',
1476
+ type: 'bool',
1477
+ },
1478
+ ],
1479
+ },
1480
+ {
1481
+ stateMutability: 'nonpayable',
1482
+ type: 'function',
1483
+ name: 'cancelDisablePriceFeed',
1484
+ inputs: [
1485
+ {
1486
+ name: '_asset',
1487
+ type: 'address',
1488
+ },
1489
+ ],
1490
+ outputs: [
1491
+ {
1492
+ name: '',
1493
+ type: 'bool',
1494
+ },
1495
+ ],
1496
+ },
1497
+ {
1498
+ stateMutability: 'view',
1499
+ type: 'function',
1500
+ name: 'isValidDisablePriceFeed',
1501
+ inputs: [
1502
+ {
1503
+ name: '_asset',
1504
+ type: 'address',
1505
+ },
1506
+ ],
1507
+ outputs: [
1508
+ {
1509
+ name: '',
1510
+ type: 'bool',
1511
+ },
1512
+ ],
1513
+ },
1514
+ {
1515
+ stateMutability: 'nonpayable',
1516
+ type: 'function',
1517
+ name: 'updateManyStorkPrices',
1518
+ inputs: [
1519
+ {
1520
+ name: '_payloads',
1521
+ type: 'bytes[]',
1522
+ },
1523
+ ],
1524
+ outputs: [
1525
+ {
1526
+ name: '',
1527
+ type: 'uint256',
1528
+ },
1529
+ ],
1530
+ },
1531
+ {
1532
+ stateMutability: 'nonpayable',
1533
+ type: 'function',
1534
+ name: 'updateStorkPrice',
1535
+ inputs: [
1536
+ {
1537
+ name: '_payload',
1538
+ type: 'bytes',
1539
+ },
1540
+ ],
1541
+ outputs: [
1542
+ {
1543
+ name: '',
1544
+ type: 'bool',
1545
+ },
1546
+ ],
1547
+ },
1548
+ {
1549
+ stateMutability: 'nonpayable',
1550
+ type: 'function',
1551
+ name: 'recoverEthBalance',
1552
+ inputs: [
1553
+ {
1554
+ name: '_recipient',
1555
+ type: 'address',
1556
+ },
1557
+ ],
1558
+ outputs: [
1559
+ {
1560
+ name: '',
1561
+ type: 'bool',
1562
+ },
1563
+ ],
1564
+ },
1565
+ {
1566
+ stateMutability: 'view',
1567
+ type: 'function',
1568
+ name: 'feedConfig',
1569
+ inputs: [
1570
+ {
1571
+ name: 'arg0',
1572
+ type: 'address',
1573
+ },
1574
+ ],
1575
+ outputs: [
1576
+ {
1577
+ name: '',
1578
+ type: 'bytes32',
1579
+ },
1580
+ ],
1581
+ },
1582
+ {
1583
+ stateMutability: 'view',
1584
+ type: 'function',
1585
+ name: 'pendingUpdates',
1586
+ inputs: [
1587
+ {
1588
+ name: 'arg0',
1589
+ type: 'address',
1590
+ },
1591
+ ],
1592
+ outputs: [
1593
+ {
1594
+ name: '',
1595
+ type: 'tuple',
1596
+ components: [
1597
+ {
1598
+ name: 'actionId',
1599
+ type: 'uint256',
1600
+ },
1601
+ {
1602
+ name: 'feedId',
1603
+ type: 'bytes32',
1604
+ },
1605
+ ],
1606
+ },
1607
+ ],
1608
+ },
1609
+ {
1610
+ stateMutability: 'view',
1611
+ type: 'function',
1612
+ name: 'STORK',
1613
+ inputs: [],
1614
+ outputs: [
1615
+ {
1616
+ name: '',
1617
+ type: 'address',
1618
+ },
1619
+ ],
1620
+ },
1621
+ {
1622
+ stateMutability: 'nonpayable',
1623
+ type: 'constructor',
1624
+ inputs: [
1625
+ {
1626
+ name: '_ripeHq',
1627
+ type: 'address',
1628
+ },
1629
+ {
1630
+ name: '_stork',
1631
+ type: 'address',
1632
+ },
1633
+ {
1634
+ name: '_minPriceChangeTimeLock',
1635
+ type: 'uint256',
1636
+ },
1637
+ {
1638
+ name: '_maxPriceChangeTimeLock',
1639
+ type: 'uint256',
1640
+ },
1641
+ ],
1642
+ outputs: [],
1643
+ },
1644
+ ];
1645
+ export const deployAddress = '0xb08E389a45BA558bcEc598c9356df1E7c78FC933';
1646
+ function getRequest(method, args, contractAddressOrOptions) {
1647
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
1648
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
1649
+ const call = {
1650
+ contractName: 'StorkPrices',
1651
+ method,
1652
+ args,
1653
+ address,
1654
+ deployAddress,
1655
+ defaultValue,
1656
+ getAbi: () => abi,
1657
+ with: (options) => {
1658
+ call.address = options.contractAddress;
1659
+ call.defaultValue = options.defaultValue;
1660
+ return call;
1661
+ },
1662
+ defaultTo: (defaultValue) => {
1663
+ call.defaultValue = defaultValue;
1664
+ return call;
1665
+ },
1666
+ at: (address) => {
1667
+ call.address = address;
1668
+ return call;
1669
+ },
1670
+ };
1671
+ return call;
1672
+ }
1673
+ export const call = {
1674
+ getRipeHqFromGov: (...args) => getRequest('getRipeHqFromGov', args),
1675
+ canGovern: (...args) => getRequest('canGovern', args),
1676
+ getGovernors: (...args) => getRequest('getGovernors', args),
1677
+ hasPendingGovChange: (...args) => getRequest('hasPendingGovChange', args),
1678
+ isValidGovTimeLock: (...args) => getRequest('isValidGovTimeLock', args),
1679
+ minGovChangeTimeLock: (...args) => getRequest('minGovChangeTimeLock', args),
1680
+ maxGovChangeTimeLock: (...args) => getRequest('maxGovChangeTimeLock', args),
1681
+ governance: (...args) => getRequest('governance', args),
1682
+ pendingGov: (...args) => getRequest('pendingGov', args),
1683
+ numGovChanges: (...args) => getRequest('numGovChanges', args),
1684
+ govChangeTimeLock: (...args) => getRequest('govChangeTimeLock', args),
1685
+ getAddys: (...args) => getRequest('getAddys', args),
1686
+ getRipeHq: (...args) => getRequest('getRipeHq', args),
1687
+ getPricedAssets: (...args) => getRequest('getPricedAssets', args),
1688
+ isPaused: (...args) => getRequest('isPaused', args),
1689
+ assets: (...args) => getRequest('assets', args),
1690
+ indexOfAsset: (...args) => getRequest('indexOfAsset', args),
1691
+ numAssets: (...args) => getRequest('numAssets', args),
1692
+ canConfirmAction: (...args) => getRequest('canConfirmAction', args),
1693
+ isExpired: (...args) => getRequest('isExpired', args),
1694
+ hasPendingAction: (...args) => getRequest('hasPendingAction', args),
1695
+ getActionConfirmationBlock: (...args) => getRequest('getActionConfirmationBlock', args),
1696
+ isValidActionTimeLock: (...args) => getRequest('isValidActionTimeLock', args),
1697
+ minActionTimeLock: (...args) => getRequest('minActionTimeLock', args),
1698
+ maxActionTimeLock: (...args) => getRequest('maxActionTimeLock', args),
1699
+ pendingActions: (...args) => getRequest('pendingActions', args),
1700
+ actionId: (...args) => getRequest('actionId', args),
1701
+ actionTimeLock: (...args) => getRequest('actionTimeLock', args),
1702
+ expiration: (...args) => getRequest('expiration', args),
1703
+ getPrice: (...args) => getRequest('getPrice', args),
1704
+ getPriceAndHasFeed: (...args) => getRequest('getPriceAndHasFeed', args),
1705
+ hasPriceFeed: (...args) => getRequest('hasPriceFeed', args),
1706
+ hasPendingPriceFeedUpdate: (...args) => getRequest('hasPendingPriceFeedUpdate', args),
1707
+ isValidNewFeed: (...args) => getRequest('isValidNewFeed', args),
1708
+ isValidUpdateFeed: (...args) => getRequest('isValidUpdateFeed', args),
1709
+ isValidDisablePriceFeed: (...args) => getRequest('isValidDisablePriceFeed', args),
1710
+ feedConfig: (...args) => getRequest('feedConfig', args),
1711
+ pendingUpdates: (...args) => getRequest('pendingUpdates', args),
1712
+ STORK: (...args) => getRequest('STORK', args),
1713
+ };
1714
+ function getMutation(functionName) {
1715
+ return {
1716
+ contractName: 'StorkPrices',
1717
+ functionName,
1718
+ deployAddress,
1719
+ argsType: undefined,
1720
+ getAbi: () => abi,
1721
+ };
1722
+ }
1723
+ export const mutation = {
1724
+ startGovernanceChange: getMutation('startGovernanceChange'),
1725
+ confirmGovernanceChange: getMutation('confirmGovernanceChange'),
1726
+ cancelGovernanceChange: getMutation('cancelGovernanceChange'),
1727
+ setGovTimeLock: getMutation('setGovTimeLock'),
1728
+ finishRipeHqSetup: getMutation('finishRipeHqSetup'),
1729
+ pause: getMutation('pause'),
1730
+ recoverFunds: getMutation('recoverFunds'),
1731
+ recoverFundsMany: getMutation('recoverFundsMany'),
1732
+ setActionTimeLock: getMutation('setActionTimeLock'),
1733
+ setExpiration: getMutation('setExpiration'),
1734
+ setActionTimeLockAfterSetup: getMutation('setActionTimeLockAfterSetup'),
1735
+ addPriceSnapshot: getMutation('addPriceSnapshot'),
1736
+ addNewPriceFeed: getMutation('addNewPriceFeed'),
1737
+ confirmNewPriceFeed: getMutation('confirmNewPriceFeed'),
1738
+ cancelNewPendingPriceFeed: getMutation('cancelNewPendingPriceFeed'),
1739
+ updatePriceFeed: getMutation('updatePriceFeed'),
1740
+ confirmPriceFeedUpdate: getMutation('confirmPriceFeedUpdate'),
1741
+ cancelPriceFeedUpdate: getMutation('cancelPriceFeedUpdate'),
1742
+ disablePriceFeed: getMutation('disablePriceFeed'),
1743
+ confirmDisablePriceFeed: getMutation('confirmDisablePriceFeed'),
1744
+ cancelDisablePriceFeed: getMutation('cancelDisablePriceFeed'),
1745
+ updateManyStorkPrices: getMutation('updateManyStorkPrices'),
1746
+ updateStorkPrice: getMutation('updateStorkPrice'),
1747
+ recoverEthBalance: getMutation('recoverEthBalance'),
1748
+ };
1749
+ export function toSdk(publicClient, walletClient) {
1750
+ return {
1751
+ deployAddress,
1752
+ abi,
1753
+ // Queries
1754
+ getRipeHqFromGov: (...args) => singleQuery(publicClient, call.getRipeHqFromGov(...args)),
1755
+ canGovern: (...args) => singleQuery(publicClient, call.canGovern(...args)),
1756
+ getGovernors: (...args) => singleQuery(publicClient, call.getGovernors(...args)),
1757
+ hasPendingGovChange: (...args) => singleQuery(publicClient, call.hasPendingGovChange(...args)),
1758
+ isValidGovTimeLock: (...args) => singleQuery(publicClient, call.isValidGovTimeLock(...args)),
1759
+ minGovChangeTimeLock: (...args) => singleQuery(publicClient, call.minGovChangeTimeLock(...args)),
1760
+ maxGovChangeTimeLock: (...args) => singleQuery(publicClient, call.maxGovChangeTimeLock(...args)),
1761
+ governance: (...args) => singleQuery(publicClient, call.governance(...args)),
1762
+ pendingGov: (...args) => singleQuery(publicClient, call.pendingGov(...args)),
1763
+ numGovChanges: (...args) => singleQuery(publicClient, call.numGovChanges(...args)),
1764
+ govChangeTimeLock: (...args) => singleQuery(publicClient, call.govChangeTimeLock(...args)),
1765
+ getAddys: (...args) => singleQuery(publicClient, call.getAddys(...args)),
1766
+ getRipeHq: (...args) => singleQuery(publicClient, call.getRipeHq(...args)),
1767
+ getPricedAssets: (...args) => singleQuery(publicClient, call.getPricedAssets(...args)),
1768
+ isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
1769
+ assets: (...args) => singleQuery(publicClient, call.assets(...args)),
1770
+ indexOfAsset: (...args) => singleQuery(publicClient, call.indexOfAsset(...args)),
1771
+ numAssets: (...args) => singleQuery(publicClient, call.numAssets(...args)),
1772
+ canConfirmAction: (...args) => singleQuery(publicClient, call.canConfirmAction(...args)),
1773
+ isExpired: (...args) => singleQuery(publicClient, call.isExpired(...args)),
1774
+ hasPendingAction: (...args) => singleQuery(publicClient, call.hasPendingAction(...args)),
1775
+ getActionConfirmationBlock: (...args) => singleQuery(publicClient, call.getActionConfirmationBlock(...args)),
1776
+ isValidActionTimeLock: (...args) => singleQuery(publicClient, call.isValidActionTimeLock(...args)),
1777
+ minActionTimeLock: (...args) => singleQuery(publicClient, call.minActionTimeLock(...args)),
1778
+ maxActionTimeLock: (...args) => singleQuery(publicClient, call.maxActionTimeLock(...args)),
1779
+ pendingActions: (...args) => singleQuery(publicClient, call.pendingActions(...args)),
1780
+ actionId: (...args) => singleQuery(publicClient, call.actionId(...args)),
1781
+ actionTimeLock: (...args) => singleQuery(publicClient, call.actionTimeLock(...args)),
1782
+ expiration: (...args) => singleQuery(publicClient, call.expiration(...args)),
1783
+ getPrice: (...args) => singleQuery(publicClient, call.getPrice(...args)),
1784
+ getPriceAndHasFeed: (...args) => singleQuery(publicClient, call.getPriceAndHasFeed(...args)),
1785
+ hasPriceFeed: (...args) => singleQuery(publicClient, call.hasPriceFeed(...args)),
1786
+ hasPendingPriceFeedUpdate: (...args) => singleQuery(publicClient, call.hasPendingPriceFeedUpdate(...args)),
1787
+ isValidNewFeed: (...args) => singleQuery(publicClient, call.isValidNewFeed(...args)),
1788
+ isValidUpdateFeed: (...args) => singleQuery(publicClient, call.isValidUpdateFeed(...args)),
1789
+ isValidDisablePriceFeed: (...args) => singleQuery(publicClient, call.isValidDisablePriceFeed(...args)),
1790
+ feedConfig: (...args) => singleQuery(publicClient, call.feedConfig(...args)),
1791
+ pendingUpdates: (...args) => singleQuery(publicClient, call.pendingUpdates(...args)),
1792
+ STORK: (...args) => singleQuery(publicClient, call.STORK(...args)),
1793
+ // Mutations
1794
+ startGovernanceChange: (...args) => mutate(walletClient, mutation.startGovernanceChange)(...args),
1795
+ confirmGovernanceChange: (...args) => mutate(walletClient, mutation.confirmGovernanceChange)(...args),
1796
+ cancelGovernanceChange: (...args) => mutate(walletClient, mutation.cancelGovernanceChange)(...args),
1797
+ setGovTimeLock: (...args) => mutate(walletClient, mutation.setGovTimeLock)(...args),
1798
+ finishRipeHqSetup: (...args) => mutate(walletClient, mutation.finishRipeHqSetup)(...args),
1799
+ pause: (...args) => mutate(walletClient, mutation.pause)(...args),
1800
+ recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
1801
+ recoverFundsMany: (...args) => mutate(walletClient, mutation.recoverFundsMany)(...args),
1802
+ setActionTimeLock: (...args) => mutate(walletClient, mutation.setActionTimeLock)(...args),
1803
+ setExpiration: (...args) => mutate(walletClient, mutation.setExpiration)(...args),
1804
+ setActionTimeLockAfterSetup: (...args) => mutate(walletClient, mutation.setActionTimeLockAfterSetup)(...args),
1805
+ addPriceSnapshot: (...args) => mutate(walletClient, mutation.addPriceSnapshot)(...args),
1806
+ addNewPriceFeed: (...args) => mutate(walletClient, mutation.addNewPriceFeed)(...args),
1807
+ confirmNewPriceFeed: (...args) => mutate(walletClient, mutation.confirmNewPriceFeed)(...args),
1808
+ cancelNewPendingPriceFeed: (...args) => mutate(walletClient, mutation.cancelNewPendingPriceFeed)(...args),
1809
+ updatePriceFeed: (...args) => mutate(walletClient, mutation.updatePriceFeed)(...args),
1810
+ confirmPriceFeedUpdate: (...args) => mutate(walletClient, mutation.confirmPriceFeedUpdate)(...args),
1811
+ cancelPriceFeedUpdate: (...args) => mutate(walletClient, mutation.cancelPriceFeedUpdate)(...args),
1812
+ disablePriceFeed: (...args) => mutate(walletClient, mutation.disablePriceFeed)(...args),
1813
+ confirmDisablePriceFeed: (...args) => mutate(walletClient, mutation.confirmDisablePriceFeed)(...args),
1814
+ cancelDisablePriceFeed: (...args) => mutate(walletClient, mutation.cancelDisablePriceFeed)(...args),
1815
+ updateManyStorkPrices: (...args) => mutate(walletClient, mutation.updateManyStorkPrices)(...args),
1816
+ updateStorkPrice: (...args) => mutate(walletClient, mutation.updateStorkPrice)(...args),
1817
+ recoverEthBalance: (...args) => mutate(walletClient, mutation.recoverEthBalance)(...args),
1818
+ };
1819
+ }