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