@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,3640 @@
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: 'NewAssetPending',
9
+ inputs: [
10
+ {
11
+ name: 'asset',
12
+ type: 'address',
13
+ indexed: true,
14
+ },
15
+ {
16
+ name: 'numVaults',
17
+ type: 'uint256',
18
+ indexed: false,
19
+ },
20
+ {
21
+ name: 'stakersPointsAlloc',
22
+ type: 'uint256',
23
+ indexed: false,
24
+ },
25
+ {
26
+ name: 'voterPointsAlloc',
27
+ type: 'uint256',
28
+ indexed: false,
29
+ },
30
+ {
31
+ name: 'perUserDepositLimit',
32
+ type: 'uint256',
33
+ indexed: false,
34
+ },
35
+ {
36
+ name: 'globalDepositLimit',
37
+ type: 'uint256',
38
+ indexed: false,
39
+ },
40
+ {
41
+ name: 'minDepositBalance',
42
+ type: 'uint256',
43
+ indexed: false,
44
+ },
45
+ {
46
+ name: 'debtTermsLtv',
47
+ type: 'uint256',
48
+ indexed: false,
49
+ },
50
+ {
51
+ name: 'debtTermsRedemptionThreshold',
52
+ type: 'uint256',
53
+ indexed: false,
54
+ },
55
+ {
56
+ name: 'debtTermsLiqThreshold',
57
+ type: 'uint256',
58
+ indexed: false,
59
+ },
60
+ {
61
+ name: 'debtTermsLiqFee',
62
+ type: 'uint256',
63
+ indexed: false,
64
+ },
65
+ {
66
+ name: 'debtTermsBorrowRate',
67
+ type: 'uint256',
68
+ indexed: false,
69
+ },
70
+ {
71
+ name: 'debtTermsDaowry',
72
+ type: 'uint256',
73
+ indexed: false,
74
+ },
75
+ {
76
+ name: 'shouldBurnAsPayment',
77
+ type: 'bool',
78
+ indexed: false,
79
+ },
80
+ {
81
+ name: 'shouldTransferToEndaoment',
82
+ type: 'bool',
83
+ indexed: false,
84
+ },
85
+ {
86
+ name: 'shouldSwapInStabPools',
87
+ type: 'bool',
88
+ indexed: false,
89
+ },
90
+ {
91
+ name: 'shouldAuctionInstantly',
92
+ type: 'bool',
93
+ indexed: false,
94
+ },
95
+ {
96
+ name: 'canDeposit',
97
+ type: 'bool',
98
+ indexed: false,
99
+ },
100
+ {
101
+ name: 'canWithdraw',
102
+ type: 'bool',
103
+ indexed: false,
104
+ },
105
+ {
106
+ name: 'canRedeemCollateral',
107
+ type: 'bool',
108
+ indexed: false,
109
+ },
110
+ {
111
+ name: 'canRedeemInStabPool',
112
+ type: 'bool',
113
+ indexed: false,
114
+ },
115
+ {
116
+ name: 'canBuyInAuction',
117
+ type: 'bool',
118
+ indexed: false,
119
+ },
120
+ {
121
+ name: 'canClaimInStabPool',
122
+ type: 'bool',
123
+ indexed: false,
124
+ },
125
+ {
126
+ name: 'specialStabPoolId',
127
+ type: 'uint256',
128
+ indexed: false,
129
+ },
130
+ {
131
+ name: 'auctionStartDiscount',
132
+ type: 'uint256',
133
+ indexed: false,
134
+ },
135
+ {
136
+ name: 'auctionMaxDiscount',
137
+ type: 'uint256',
138
+ indexed: false,
139
+ },
140
+ {
141
+ name: 'auctionDelay',
142
+ type: 'uint256',
143
+ indexed: false,
144
+ },
145
+ {
146
+ name: 'auctionDuration',
147
+ type: 'uint256',
148
+ indexed: false,
149
+ },
150
+ {
151
+ name: 'whitelist',
152
+ type: 'address',
153
+ indexed: false,
154
+ },
155
+ {
156
+ name: 'isNft',
157
+ type: 'bool',
158
+ indexed: false,
159
+ },
160
+ ],
161
+ anonymous: false,
162
+ type: 'event',
163
+ },
164
+ {
165
+ name: 'PendingAssetDepositParamsChange',
166
+ inputs: [
167
+ {
168
+ name: 'asset',
169
+ type: 'address',
170
+ indexed: true,
171
+ },
172
+ {
173
+ name: 'numVaultIds',
174
+ type: 'uint256',
175
+ indexed: false,
176
+ },
177
+ {
178
+ name: 'stakersPointsAlloc',
179
+ type: 'uint256',
180
+ indexed: false,
181
+ },
182
+ {
183
+ name: 'voterPointsAlloc',
184
+ type: 'uint256',
185
+ indexed: false,
186
+ },
187
+ {
188
+ name: 'perUserDepositLimit',
189
+ type: 'uint256',
190
+ indexed: false,
191
+ },
192
+ {
193
+ name: 'globalDepositLimit',
194
+ type: 'uint256',
195
+ indexed: false,
196
+ },
197
+ {
198
+ name: 'minDepositBalance',
199
+ type: 'uint256',
200
+ indexed: false,
201
+ },
202
+ {
203
+ name: 'confirmationBlock',
204
+ type: 'uint256',
205
+ indexed: false,
206
+ },
207
+ {
208
+ name: 'actionId',
209
+ type: 'uint256',
210
+ indexed: false,
211
+ },
212
+ ],
213
+ anonymous: false,
214
+ type: 'event',
215
+ },
216
+ {
217
+ name: 'PendingAssetLiqConfigChange',
218
+ inputs: [
219
+ {
220
+ name: 'asset',
221
+ type: 'address',
222
+ indexed: true,
223
+ },
224
+ {
225
+ name: 'shouldBurnAsPayment',
226
+ type: 'bool',
227
+ indexed: false,
228
+ },
229
+ {
230
+ name: 'shouldTransferToEndaoment',
231
+ type: 'bool',
232
+ indexed: false,
233
+ },
234
+ {
235
+ name: 'shouldSwapInStabPools',
236
+ type: 'bool',
237
+ indexed: false,
238
+ },
239
+ {
240
+ name: 'shouldAuctionInstantly',
241
+ type: 'bool',
242
+ indexed: false,
243
+ },
244
+ {
245
+ name: 'specialStabPoolId',
246
+ type: 'uint256',
247
+ indexed: false,
248
+ },
249
+ {
250
+ name: 'auctionStartDiscount',
251
+ type: 'uint256',
252
+ indexed: false,
253
+ },
254
+ {
255
+ name: 'auctionMaxDiscount',
256
+ type: 'uint256',
257
+ indexed: false,
258
+ },
259
+ {
260
+ name: 'auctionDelay',
261
+ type: 'uint256',
262
+ indexed: false,
263
+ },
264
+ {
265
+ name: 'auctionDuration',
266
+ type: 'uint256',
267
+ indexed: false,
268
+ },
269
+ {
270
+ name: 'confirmationBlock',
271
+ type: 'uint256',
272
+ indexed: false,
273
+ },
274
+ {
275
+ name: 'actionId',
276
+ type: 'uint256',
277
+ indexed: false,
278
+ },
279
+ ],
280
+ anonymous: false,
281
+ type: 'event',
282
+ },
283
+ {
284
+ name: 'PendingAssetDebtTermsChange',
285
+ inputs: [
286
+ {
287
+ name: 'asset',
288
+ type: 'address',
289
+ indexed: true,
290
+ },
291
+ {
292
+ name: 'ltv',
293
+ type: 'uint256',
294
+ indexed: false,
295
+ },
296
+ {
297
+ name: 'redemptionThreshold',
298
+ type: 'uint256',
299
+ indexed: false,
300
+ },
301
+ {
302
+ name: 'liqThreshold',
303
+ type: 'uint256',
304
+ indexed: false,
305
+ },
306
+ {
307
+ name: 'liqFee',
308
+ type: 'uint256',
309
+ indexed: false,
310
+ },
311
+ {
312
+ name: 'borrowRate',
313
+ type: 'uint256',
314
+ indexed: false,
315
+ },
316
+ {
317
+ name: 'daowry',
318
+ type: 'uint256',
319
+ indexed: false,
320
+ },
321
+ {
322
+ name: 'confirmationBlock',
323
+ type: 'uint256',
324
+ indexed: false,
325
+ },
326
+ {
327
+ name: 'actionId',
328
+ type: 'uint256',
329
+ indexed: false,
330
+ },
331
+ ],
332
+ anonymous: false,
333
+ type: 'event',
334
+ },
335
+ {
336
+ name: 'PendingAssetWhitelistChange',
337
+ inputs: [
338
+ {
339
+ name: 'asset',
340
+ type: 'address',
341
+ indexed: true,
342
+ },
343
+ {
344
+ name: 'whitelist',
345
+ type: 'address',
346
+ indexed: true,
347
+ },
348
+ {
349
+ name: 'confirmationBlock',
350
+ type: 'uint256',
351
+ indexed: false,
352
+ },
353
+ {
354
+ name: 'actionId',
355
+ type: 'uint256',
356
+ indexed: false,
357
+ },
358
+ ],
359
+ anonymous: false,
360
+ type: 'event',
361
+ },
362
+ {
363
+ name: 'CanDepositAssetSet',
364
+ inputs: [
365
+ {
366
+ name: 'asset',
367
+ type: 'address',
368
+ indexed: true,
369
+ },
370
+ {
371
+ name: 'canDeposit',
372
+ type: 'bool',
373
+ indexed: false,
374
+ },
375
+ {
376
+ name: 'caller',
377
+ type: 'address',
378
+ indexed: true,
379
+ },
380
+ ],
381
+ anonymous: false,
382
+ type: 'event',
383
+ },
384
+ {
385
+ name: 'CanWithdrawAssetSet',
386
+ inputs: [
387
+ {
388
+ name: 'asset',
389
+ type: 'address',
390
+ indexed: true,
391
+ },
392
+ {
393
+ name: 'canWithdraw',
394
+ type: 'bool',
395
+ indexed: false,
396
+ },
397
+ {
398
+ name: 'caller',
399
+ type: 'address',
400
+ indexed: true,
401
+ },
402
+ ],
403
+ anonymous: false,
404
+ type: 'event',
405
+ },
406
+ {
407
+ name: 'CanRedeemInStabPoolAssetSet',
408
+ inputs: [
409
+ {
410
+ name: 'asset',
411
+ type: 'address',
412
+ indexed: true,
413
+ },
414
+ {
415
+ name: 'canRedeemInStabPool',
416
+ type: 'bool',
417
+ indexed: false,
418
+ },
419
+ {
420
+ name: 'caller',
421
+ type: 'address',
422
+ indexed: true,
423
+ },
424
+ ],
425
+ anonymous: false,
426
+ type: 'event',
427
+ },
428
+ {
429
+ name: 'CanBuyInAuctionAssetSet',
430
+ inputs: [
431
+ {
432
+ name: 'asset',
433
+ type: 'address',
434
+ indexed: true,
435
+ },
436
+ {
437
+ name: 'canBuyInAuction',
438
+ type: 'bool',
439
+ indexed: false,
440
+ },
441
+ {
442
+ name: 'caller',
443
+ type: 'address',
444
+ indexed: true,
445
+ },
446
+ ],
447
+ anonymous: false,
448
+ type: 'event',
449
+ },
450
+ {
451
+ name: 'CanClaimInStabPoolAssetSet',
452
+ inputs: [
453
+ {
454
+ name: 'asset',
455
+ type: 'address',
456
+ indexed: true,
457
+ },
458
+ {
459
+ name: 'canClaimInStabPool',
460
+ type: 'bool',
461
+ indexed: false,
462
+ },
463
+ {
464
+ name: 'caller',
465
+ type: 'address',
466
+ indexed: true,
467
+ },
468
+ ],
469
+ anonymous: false,
470
+ type: 'event',
471
+ },
472
+ {
473
+ name: 'CanRedeemCollateralAssetSet',
474
+ inputs: [
475
+ {
476
+ name: 'asset',
477
+ type: 'address',
478
+ indexed: true,
479
+ },
480
+ {
481
+ name: 'canRedeemCollateral',
482
+ type: 'bool',
483
+ indexed: false,
484
+ },
485
+ {
486
+ name: 'caller',
487
+ type: 'address',
488
+ indexed: true,
489
+ },
490
+ ],
491
+ anonymous: false,
492
+ type: 'event',
493
+ },
494
+ {
495
+ name: 'AssetAdded',
496
+ inputs: [
497
+ {
498
+ name: 'asset',
499
+ type: 'address',
500
+ indexed: true,
501
+ },
502
+ ],
503
+ anonymous: false,
504
+ type: 'event',
505
+ },
506
+ {
507
+ name: 'AssetDepositParamsSet',
508
+ inputs: [
509
+ {
510
+ name: 'asset',
511
+ type: 'address',
512
+ indexed: true,
513
+ },
514
+ {
515
+ name: 'numVaultIds',
516
+ type: 'uint256',
517
+ indexed: false,
518
+ },
519
+ {
520
+ name: 'stakersPointsAlloc',
521
+ type: 'uint256',
522
+ indexed: false,
523
+ },
524
+ {
525
+ name: 'voterPointsAlloc',
526
+ type: 'uint256',
527
+ indexed: false,
528
+ },
529
+ {
530
+ name: 'perUserDepositLimit',
531
+ type: 'uint256',
532
+ indexed: false,
533
+ },
534
+ {
535
+ name: 'globalDepositLimit',
536
+ type: 'uint256',
537
+ indexed: false,
538
+ },
539
+ {
540
+ name: 'minDepositBalance',
541
+ type: 'uint256',
542
+ indexed: false,
543
+ },
544
+ ],
545
+ anonymous: false,
546
+ type: 'event',
547
+ },
548
+ {
549
+ name: 'AssetLiqConfigSet',
550
+ inputs: [
551
+ {
552
+ name: 'asset',
553
+ type: 'address',
554
+ indexed: true,
555
+ },
556
+ {
557
+ name: 'shouldBurnAsPayment',
558
+ type: 'bool',
559
+ indexed: false,
560
+ },
561
+ {
562
+ name: 'shouldTransferToEndaoment',
563
+ type: 'bool',
564
+ indexed: false,
565
+ },
566
+ {
567
+ name: 'shouldSwapInStabPools',
568
+ type: 'bool',
569
+ indexed: false,
570
+ },
571
+ {
572
+ name: 'shouldAuctionInstantly',
573
+ type: 'bool',
574
+ indexed: false,
575
+ },
576
+ {
577
+ name: 'specialStabPoolId',
578
+ type: 'uint256',
579
+ indexed: false,
580
+ },
581
+ {
582
+ name: 'auctionStartDiscount',
583
+ type: 'uint256',
584
+ indexed: false,
585
+ },
586
+ {
587
+ name: 'auctionMaxDiscount',
588
+ type: 'uint256',
589
+ indexed: false,
590
+ },
591
+ {
592
+ name: 'auctionDelay',
593
+ type: 'uint256',
594
+ indexed: false,
595
+ },
596
+ {
597
+ name: 'auctionDuration',
598
+ type: 'uint256',
599
+ indexed: false,
600
+ },
601
+ ],
602
+ anonymous: false,
603
+ type: 'event',
604
+ },
605
+ {
606
+ name: 'AssetDebtTermsSet',
607
+ inputs: [
608
+ {
609
+ name: 'asset',
610
+ type: 'address',
611
+ indexed: true,
612
+ },
613
+ {
614
+ name: 'ltv',
615
+ type: 'uint256',
616
+ indexed: false,
617
+ },
618
+ {
619
+ name: 'redemptionThreshold',
620
+ type: 'uint256',
621
+ indexed: false,
622
+ },
623
+ {
624
+ name: 'liqThreshold',
625
+ type: 'uint256',
626
+ indexed: false,
627
+ },
628
+ {
629
+ name: 'liqFee',
630
+ type: 'uint256',
631
+ indexed: false,
632
+ },
633
+ {
634
+ name: 'borrowRate',
635
+ type: 'uint256',
636
+ indexed: false,
637
+ },
638
+ {
639
+ name: 'daowry',
640
+ type: 'uint256',
641
+ indexed: false,
642
+ },
643
+ ],
644
+ anonymous: false,
645
+ type: 'event',
646
+ },
647
+ {
648
+ name: 'WhitelistAssetSet',
649
+ inputs: [
650
+ {
651
+ name: 'asset',
652
+ type: 'address',
653
+ indexed: true,
654
+ },
655
+ {
656
+ name: 'whitelist',
657
+ type: 'address',
658
+ indexed: true,
659
+ },
660
+ ],
661
+ anonymous: false,
662
+ type: 'event',
663
+ },
664
+ {
665
+ name: 'GovChangeTimeLockModified',
666
+ inputs: [
667
+ {
668
+ name: 'prevTimeLock',
669
+ type: 'uint256',
670
+ indexed: false,
671
+ },
672
+ {
673
+ name: 'newTimeLock',
674
+ type: 'uint256',
675
+ indexed: false,
676
+ },
677
+ ],
678
+ anonymous: false,
679
+ type: 'event',
680
+ },
681
+ {
682
+ name: 'ExpirationSet',
683
+ inputs: [
684
+ {
685
+ name: 'expiration',
686
+ type: 'uint256',
687
+ indexed: false,
688
+ },
689
+ ],
690
+ anonymous: false,
691
+ type: 'event',
692
+ },
693
+ {
694
+ name: 'ActionTimeLockSet',
695
+ inputs: [
696
+ {
697
+ name: 'newTimeLock',
698
+ type: 'uint256',
699
+ indexed: false,
700
+ },
701
+ {
702
+ name: 'prevTimeLock',
703
+ type: 'uint256',
704
+ indexed: false,
705
+ },
706
+ ],
707
+ anonymous: false,
708
+ type: 'event',
709
+ },
710
+ {
711
+ name: 'GovChangeStarted',
712
+ inputs: [
713
+ {
714
+ name: 'prevGov',
715
+ type: 'address',
716
+ indexed: true,
717
+ },
718
+ {
719
+ name: 'newGov',
720
+ type: 'address',
721
+ indexed: true,
722
+ },
723
+ {
724
+ name: 'confirmBlock',
725
+ type: 'uint256',
726
+ indexed: false,
727
+ },
728
+ ],
729
+ anonymous: false,
730
+ type: 'event',
731
+ },
732
+ {
733
+ name: 'GovChangeConfirmed',
734
+ inputs: [
735
+ {
736
+ name: 'prevGov',
737
+ type: 'address',
738
+ indexed: true,
739
+ },
740
+ {
741
+ name: 'newGov',
742
+ type: 'address',
743
+ indexed: true,
744
+ },
745
+ {
746
+ name: 'initiatedBlock',
747
+ type: 'uint256',
748
+ indexed: false,
749
+ },
750
+ {
751
+ name: 'confirmBlock',
752
+ type: 'uint256',
753
+ indexed: false,
754
+ },
755
+ ],
756
+ anonymous: false,
757
+ type: 'event',
758
+ },
759
+ {
760
+ name: 'GovChangeCancelled',
761
+ inputs: [
762
+ {
763
+ name: 'cancelledGov',
764
+ type: 'address',
765
+ indexed: true,
766
+ },
767
+ {
768
+ name: 'initiatedBlock',
769
+ type: 'uint256',
770
+ indexed: false,
771
+ },
772
+ {
773
+ name: 'confirmBlock',
774
+ type: 'uint256',
775
+ indexed: false,
776
+ },
777
+ ],
778
+ anonymous: false,
779
+ type: 'event',
780
+ },
781
+ {
782
+ name: 'RipeHqSetupFinished',
783
+ inputs: [
784
+ {
785
+ name: 'prevGov',
786
+ type: 'address',
787
+ indexed: true,
788
+ },
789
+ {
790
+ name: 'newGov',
791
+ type: 'address',
792
+ indexed: true,
793
+ },
794
+ {
795
+ name: 'timeLock',
796
+ type: 'uint256',
797
+ indexed: false,
798
+ },
799
+ ],
800
+ anonymous: false,
801
+ type: 'event',
802
+ },
803
+ {
804
+ stateMutability: 'view',
805
+ type: 'function',
806
+ name: 'getRipeHqFromGov',
807
+ inputs: [],
808
+ outputs: [
809
+ {
810
+ name: '',
811
+ type: 'address',
812
+ },
813
+ ],
814
+ },
815
+ {
816
+ stateMutability: 'view',
817
+ type: 'function',
818
+ name: 'canGovern',
819
+ inputs: [
820
+ {
821
+ name: '_addr',
822
+ type: 'address',
823
+ },
824
+ ],
825
+ outputs: [
826
+ {
827
+ name: '',
828
+ type: 'bool',
829
+ },
830
+ ],
831
+ },
832
+ {
833
+ stateMutability: 'view',
834
+ type: 'function',
835
+ name: 'getGovernors',
836
+ inputs: [],
837
+ outputs: [
838
+ {
839
+ name: '',
840
+ type: 'address[]',
841
+ },
842
+ ],
843
+ },
844
+ {
845
+ stateMutability: 'view',
846
+ type: 'function',
847
+ name: 'hasPendingGovChange',
848
+ inputs: [],
849
+ outputs: [
850
+ {
851
+ name: '',
852
+ type: 'bool',
853
+ },
854
+ ],
855
+ },
856
+ {
857
+ stateMutability: 'nonpayable',
858
+ type: 'function',
859
+ name: 'startGovernanceChange',
860
+ inputs: [
861
+ {
862
+ name: '_newGov',
863
+ type: 'address',
864
+ },
865
+ ],
866
+ outputs: [],
867
+ },
868
+ {
869
+ stateMutability: 'nonpayable',
870
+ type: 'function',
871
+ name: 'confirmGovernanceChange',
872
+ inputs: [],
873
+ outputs: [],
874
+ },
875
+ {
876
+ stateMutability: 'nonpayable',
877
+ type: 'function',
878
+ name: 'cancelGovernanceChange',
879
+ inputs: [],
880
+ outputs: [],
881
+ },
882
+ {
883
+ stateMutability: 'nonpayable',
884
+ type: 'function',
885
+ name: 'setGovTimeLock',
886
+ inputs: [
887
+ {
888
+ name: '_numBlocks',
889
+ type: 'uint256',
890
+ },
891
+ ],
892
+ outputs: [
893
+ {
894
+ name: '',
895
+ type: 'bool',
896
+ },
897
+ ],
898
+ },
899
+ {
900
+ stateMutability: 'view',
901
+ type: 'function',
902
+ name: 'isValidGovTimeLock',
903
+ inputs: [
904
+ {
905
+ name: '_newTimeLock',
906
+ type: 'uint256',
907
+ },
908
+ ],
909
+ outputs: [
910
+ {
911
+ name: '',
912
+ type: 'bool',
913
+ },
914
+ ],
915
+ },
916
+ {
917
+ stateMutability: 'view',
918
+ type: 'function',
919
+ name: 'minGovChangeTimeLock',
920
+ inputs: [],
921
+ outputs: [
922
+ {
923
+ name: '',
924
+ type: 'uint256',
925
+ },
926
+ ],
927
+ },
928
+ {
929
+ stateMutability: 'view',
930
+ type: 'function',
931
+ name: 'maxGovChangeTimeLock',
932
+ inputs: [],
933
+ outputs: [
934
+ {
935
+ name: '',
936
+ type: 'uint256',
937
+ },
938
+ ],
939
+ },
940
+ {
941
+ stateMutability: 'nonpayable',
942
+ type: 'function',
943
+ name: 'finishRipeHqSetup',
944
+ inputs: [
945
+ {
946
+ name: '_newGov',
947
+ type: 'address',
948
+ },
949
+ ],
950
+ outputs: [
951
+ {
952
+ name: '',
953
+ type: 'bool',
954
+ },
955
+ ],
956
+ },
957
+ {
958
+ stateMutability: 'nonpayable',
959
+ type: 'function',
960
+ name: 'finishRipeHqSetup',
961
+ inputs: [
962
+ {
963
+ name: '_newGov',
964
+ type: 'address',
965
+ },
966
+ {
967
+ name: '_timeLock',
968
+ type: 'uint256',
969
+ },
970
+ ],
971
+ outputs: [
972
+ {
973
+ name: '',
974
+ type: 'bool',
975
+ },
976
+ ],
977
+ },
978
+ {
979
+ stateMutability: 'view',
980
+ type: 'function',
981
+ name: 'governance',
982
+ inputs: [],
983
+ outputs: [
984
+ {
985
+ name: '',
986
+ type: 'address',
987
+ },
988
+ ],
989
+ },
990
+ {
991
+ stateMutability: 'view',
992
+ type: 'function',
993
+ name: 'pendingGov',
994
+ inputs: [],
995
+ outputs: [
996
+ {
997
+ name: '',
998
+ type: 'tuple',
999
+ components: [
1000
+ {
1001
+ name: 'newGov',
1002
+ type: 'address',
1003
+ },
1004
+ {
1005
+ name: 'initiatedBlock',
1006
+ type: 'uint256',
1007
+ },
1008
+ {
1009
+ name: 'confirmBlock',
1010
+ type: 'uint256',
1011
+ },
1012
+ ],
1013
+ },
1014
+ ],
1015
+ },
1016
+ {
1017
+ stateMutability: 'view',
1018
+ type: 'function',
1019
+ name: 'numGovChanges',
1020
+ inputs: [],
1021
+ outputs: [
1022
+ {
1023
+ name: '',
1024
+ type: 'uint256',
1025
+ },
1026
+ ],
1027
+ },
1028
+ {
1029
+ stateMutability: 'view',
1030
+ type: 'function',
1031
+ name: 'govChangeTimeLock',
1032
+ inputs: [],
1033
+ outputs: [
1034
+ {
1035
+ name: '',
1036
+ type: 'uint256',
1037
+ },
1038
+ ],
1039
+ },
1040
+ {
1041
+ stateMutability: 'view',
1042
+ type: 'function',
1043
+ name: 'canConfirmAction',
1044
+ inputs: [
1045
+ {
1046
+ name: '_actionId',
1047
+ type: 'uint256',
1048
+ },
1049
+ ],
1050
+ outputs: [
1051
+ {
1052
+ name: '',
1053
+ type: 'bool',
1054
+ },
1055
+ ],
1056
+ },
1057
+ {
1058
+ stateMutability: 'view',
1059
+ type: 'function',
1060
+ name: 'isExpired',
1061
+ inputs: [
1062
+ {
1063
+ name: '_actionId',
1064
+ type: 'uint256',
1065
+ },
1066
+ ],
1067
+ outputs: [
1068
+ {
1069
+ name: '',
1070
+ type: 'bool',
1071
+ },
1072
+ ],
1073
+ },
1074
+ {
1075
+ stateMutability: 'view',
1076
+ type: 'function',
1077
+ name: 'hasPendingAction',
1078
+ inputs: [
1079
+ {
1080
+ name: '_actionId',
1081
+ type: 'uint256',
1082
+ },
1083
+ ],
1084
+ outputs: [
1085
+ {
1086
+ name: '',
1087
+ type: 'bool',
1088
+ },
1089
+ ],
1090
+ },
1091
+ {
1092
+ stateMutability: 'view',
1093
+ type: 'function',
1094
+ name: 'getActionConfirmationBlock',
1095
+ inputs: [
1096
+ {
1097
+ name: '_actionId',
1098
+ type: 'uint256',
1099
+ },
1100
+ ],
1101
+ outputs: [
1102
+ {
1103
+ name: '',
1104
+ type: 'uint256',
1105
+ },
1106
+ ],
1107
+ },
1108
+ {
1109
+ stateMutability: 'nonpayable',
1110
+ type: 'function',
1111
+ name: 'setActionTimeLock',
1112
+ inputs: [
1113
+ {
1114
+ name: '_newTimeLock',
1115
+ type: 'uint256',
1116
+ },
1117
+ ],
1118
+ outputs: [
1119
+ {
1120
+ name: '',
1121
+ type: 'bool',
1122
+ },
1123
+ ],
1124
+ },
1125
+ {
1126
+ stateMutability: 'view',
1127
+ type: 'function',
1128
+ name: 'isValidActionTimeLock',
1129
+ inputs: [
1130
+ {
1131
+ name: '_newTimeLock',
1132
+ type: 'uint256',
1133
+ },
1134
+ ],
1135
+ outputs: [
1136
+ {
1137
+ name: '',
1138
+ type: 'bool',
1139
+ },
1140
+ ],
1141
+ },
1142
+ {
1143
+ stateMutability: 'view',
1144
+ type: 'function',
1145
+ name: 'minActionTimeLock',
1146
+ inputs: [],
1147
+ outputs: [
1148
+ {
1149
+ name: '',
1150
+ type: 'uint256',
1151
+ },
1152
+ ],
1153
+ },
1154
+ {
1155
+ stateMutability: 'view',
1156
+ type: 'function',
1157
+ name: 'maxActionTimeLock',
1158
+ inputs: [],
1159
+ outputs: [
1160
+ {
1161
+ name: '',
1162
+ type: 'uint256',
1163
+ },
1164
+ ],
1165
+ },
1166
+ {
1167
+ stateMutability: 'nonpayable',
1168
+ type: 'function',
1169
+ name: 'setExpiration',
1170
+ inputs: [
1171
+ {
1172
+ name: '_expiration',
1173
+ type: 'uint256',
1174
+ },
1175
+ ],
1176
+ outputs: [
1177
+ {
1178
+ name: '',
1179
+ type: 'bool',
1180
+ },
1181
+ ],
1182
+ },
1183
+ {
1184
+ stateMutability: 'nonpayable',
1185
+ type: 'function',
1186
+ name: 'setActionTimeLockAfterSetup',
1187
+ inputs: [],
1188
+ outputs: [
1189
+ {
1190
+ name: '',
1191
+ type: 'bool',
1192
+ },
1193
+ ],
1194
+ },
1195
+ {
1196
+ stateMutability: 'nonpayable',
1197
+ type: 'function',
1198
+ name: 'setActionTimeLockAfterSetup',
1199
+ inputs: [
1200
+ {
1201
+ name: '_newTimeLock',
1202
+ type: 'uint256',
1203
+ },
1204
+ ],
1205
+ outputs: [
1206
+ {
1207
+ name: '',
1208
+ type: 'bool',
1209
+ },
1210
+ ],
1211
+ },
1212
+ {
1213
+ stateMutability: 'view',
1214
+ type: 'function',
1215
+ name: 'pendingActions',
1216
+ inputs: [
1217
+ {
1218
+ name: 'arg0',
1219
+ type: 'uint256',
1220
+ },
1221
+ ],
1222
+ outputs: [
1223
+ {
1224
+ name: '',
1225
+ type: 'tuple',
1226
+ components: [
1227
+ {
1228
+ name: 'initiatedBlock',
1229
+ type: 'uint256',
1230
+ },
1231
+ {
1232
+ name: 'confirmBlock',
1233
+ type: 'uint256',
1234
+ },
1235
+ {
1236
+ name: 'expiration',
1237
+ type: 'uint256',
1238
+ },
1239
+ ],
1240
+ },
1241
+ ],
1242
+ },
1243
+ {
1244
+ stateMutability: 'view',
1245
+ type: 'function',
1246
+ name: 'actionId',
1247
+ inputs: [],
1248
+ outputs: [
1249
+ {
1250
+ name: '',
1251
+ type: 'uint256',
1252
+ },
1253
+ ],
1254
+ },
1255
+ {
1256
+ stateMutability: 'view',
1257
+ type: 'function',
1258
+ name: 'actionTimeLock',
1259
+ inputs: [],
1260
+ outputs: [
1261
+ {
1262
+ name: '',
1263
+ type: 'uint256',
1264
+ },
1265
+ ],
1266
+ },
1267
+ {
1268
+ stateMutability: 'view',
1269
+ type: 'function',
1270
+ name: 'expiration',
1271
+ inputs: [],
1272
+ outputs: [
1273
+ {
1274
+ name: '',
1275
+ type: 'uint256',
1276
+ },
1277
+ ],
1278
+ },
1279
+ {
1280
+ stateMutability: 'nonpayable',
1281
+ type: 'function',
1282
+ name: 'addAsset',
1283
+ inputs: [
1284
+ {
1285
+ name: '_asset',
1286
+ type: 'address',
1287
+ },
1288
+ {
1289
+ name: '_vaultIds',
1290
+ type: 'uint256[]',
1291
+ },
1292
+ {
1293
+ name: '_stakersPointsAlloc',
1294
+ type: 'uint256',
1295
+ },
1296
+ {
1297
+ name: '_voterPointsAlloc',
1298
+ type: 'uint256',
1299
+ },
1300
+ {
1301
+ name: '_perUserDepositLimit',
1302
+ type: 'uint256',
1303
+ },
1304
+ {
1305
+ name: '_globalDepositLimit',
1306
+ type: 'uint256',
1307
+ },
1308
+ ],
1309
+ outputs: [
1310
+ {
1311
+ name: '',
1312
+ type: 'uint256',
1313
+ },
1314
+ ],
1315
+ },
1316
+ {
1317
+ stateMutability: 'nonpayable',
1318
+ type: 'function',
1319
+ name: 'addAsset',
1320
+ inputs: [
1321
+ {
1322
+ name: '_asset',
1323
+ type: 'address',
1324
+ },
1325
+ {
1326
+ name: '_vaultIds',
1327
+ type: 'uint256[]',
1328
+ },
1329
+ {
1330
+ name: '_stakersPointsAlloc',
1331
+ type: 'uint256',
1332
+ },
1333
+ {
1334
+ name: '_voterPointsAlloc',
1335
+ type: 'uint256',
1336
+ },
1337
+ {
1338
+ name: '_perUserDepositLimit',
1339
+ type: 'uint256',
1340
+ },
1341
+ {
1342
+ name: '_globalDepositLimit',
1343
+ type: 'uint256',
1344
+ },
1345
+ {
1346
+ name: '_minDepositBalance',
1347
+ type: 'uint256',
1348
+ },
1349
+ ],
1350
+ outputs: [
1351
+ {
1352
+ name: '',
1353
+ type: 'uint256',
1354
+ },
1355
+ ],
1356
+ },
1357
+ {
1358
+ stateMutability: 'nonpayable',
1359
+ type: 'function',
1360
+ name: 'addAsset',
1361
+ inputs: [
1362
+ {
1363
+ name: '_asset',
1364
+ type: 'address',
1365
+ },
1366
+ {
1367
+ name: '_vaultIds',
1368
+ type: 'uint256[]',
1369
+ },
1370
+ {
1371
+ name: '_stakersPointsAlloc',
1372
+ type: 'uint256',
1373
+ },
1374
+ {
1375
+ name: '_voterPointsAlloc',
1376
+ type: 'uint256',
1377
+ },
1378
+ {
1379
+ name: '_perUserDepositLimit',
1380
+ type: 'uint256',
1381
+ },
1382
+ {
1383
+ name: '_globalDepositLimit',
1384
+ type: 'uint256',
1385
+ },
1386
+ {
1387
+ name: '_minDepositBalance',
1388
+ type: 'uint256',
1389
+ },
1390
+ {
1391
+ name: '_debtTerms',
1392
+ type: 'tuple',
1393
+ components: [
1394
+ {
1395
+ name: 'ltv',
1396
+ type: 'uint256',
1397
+ },
1398
+ {
1399
+ name: 'redemptionThreshold',
1400
+ type: 'uint256',
1401
+ },
1402
+ {
1403
+ name: 'liqThreshold',
1404
+ type: 'uint256',
1405
+ },
1406
+ {
1407
+ name: 'liqFee',
1408
+ type: 'uint256',
1409
+ },
1410
+ {
1411
+ name: 'borrowRate',
1412
+ type: 'uint256',
1413
+ },
1414
+ {
1415
+ name: 'daowry',
1416
+ type: 'uint256',
1417
+ },
1418
+ ],
1419
+ },
1420
+ ],
1421
+ outputs: [
1422
+ {
1423
+ name: '',
1424
+ type: 'uint256',
1425
+ },
1426
+ ],
1427
+ },
1428
+ {
1429
+ stateMutability: 'nonpayable',
1430
+ type: 'function',
1431
+ name: 'addAsset',
1432
+ inputs: [
1433
+ {
1434
+ name: '_asset',
1435
+ type: 'address',
1436
+ },
1437
+ {
1438
+ name: '_vaultIds',
1439
+ type: 'uint256[]',
1440
+ },
1441
+ {
1442
+ name: '_stakersPointsAlloc',
1443
+ type: 'uint256',
1444
+ },
1445
+ {
1446
+ name: '_voterPointsAlloc',
1447
+ type: 'uint256',
1448
+ },
1449
+ {
1450
+ name: '_perUserDepositLimit',
1451
+ type: 'uint256',
1452
+ },
1453
+ {
1454
+ name: '_globalDepositLimit',
1455
+ type: 'uint256',
1456
+ },
1457
+ {
1458
+ name: '_minDepositBalance',
1459
+ type: 'uint256',
1460
+ },
1461
+ {
1462
+ name: '_debtTerms',
1463
+ type: 'tuple',
1464
+ components: [
1465
+ {
1466
+ name: 'ltv',
1467
+ type: 'uint256',
1468
+ },
1469
+ {
1470
+ name: 'redemptionThreshold',
1471
+ type: 'uint256',
1472
+ },
1473
+ {
1474
+ name: 'liqThreshold',
1475
+ type: 'uint256',
1476
+ },
1477
+ {
1478
+ name: 'liqFee',
1479
+ type: 'uint256',
1480
+ },
1481
+ {
1482
+ name: 'borrowRate',
1483
+ type: 'uint256',
1484
+ },
1485
+ {
1486
+ name: 'daowry',
1487
+ type: 'uint256',
1488
+ },
1489
+ ],
1490
+ },
1491
+ {
1492
+ name: '_shouldBurnAsPayment',
1493
+ type: 'bool',
1494
+ },
1495
+ ],
1496
+ outputs: [
1497
+ {
1498
+ name: '',
1499
+ type: 'uint256',
1500
+ },
1501
+ ],
1502
+ },
1503
+ {
1504
+ stateMutability: 'nonpayable',
1505
+ type: 'function',
1506
+ name: 'addAsset',
1507
+ inputs: [
1508
+ {
1509
+ name: '_asset',
1510
+ type: 'address',
1511
+ },
1512
+ {
1513
+ name: '_vaultIds',
1514
+ type: 'uint256[]',
1515
+ },
1516
+ {
1517
+ name: '_stakersPointsAlloc',
1518
+ type: 'uint256',
1519
+ },
1520
+ {
1521
+ name: '_voterPointsAlloc',
1522
+ type: 'uint256',
1523
+ },
1524
+ {
1525
+ name: '_perUserDepositLimit',
1526
+ type: 'uint256',
1527
+ },
1528
+ {
1529
+ name: '_globalDepositLimit',
1530
+ type: 'uint256',
1531
+ },
1532
+ {
1533
+ name: '_minDepositBalance',
1534
+ type: 'uint256',
1535
+ },
1536
+ {
1537
+ name: '_debtTerms',
1538
+ type: 'tuple',
1539
+ components: [
1540
+ {
1541
+ name: 'ltv',
1542
+ type: 'uint256',
1543
+ },
1544
+ {
1545
+ name: 'redemptionThreshold',
1546
+ type: 'uint256',
1547
+ },
1548
+ {
1549
+ name: 'liqThreshold',
1550
+ type: 'uint256',
1551
+ },
1552
+ {
1553
+ name: 'liqFee',
1554
+ type: 'uint256',
1555
+ },
1556
+ {
1557
+ name: 'borrowRate',
1558
+ type: 'uint256',
1559
+ },
1560
+ {
1561
+ name: 'daowry',
1562
+ type: 'uint256',
1563
+ },
1564
+ ],
1565
+ },
1566
+ {
1567
+ name: '_shouldBurnAsPayment',
1568
+ type: 'bool',
1569
+ },
1570
+ {
1571
+ name: '_shouldTransferToEndaoment',
1572
+ type: 'bool',
1573
+ },
1574
+ ],
1575
+ outputs: [
1576
+ {
1577
+ name: '',
1578
+ type: 'uint256',
1579
+ },
1580
+ ],
1581
+ },
1582
+ {
1583
+ stateMutability: 'nonpayable',
1584
+ type: 'function',
1585
+ name: 'addAsset',
1586
+ inputs: [
1587
+ {
1588
+ name: '_asset',
1589
+ type: 'address',
1590
+ },
1591
+ {
1592
+ name: '_vaultIds',
1593
+ type: 'uint256[]',
1594
+ },
1595
+ {
1596
+ name: '_stakersPointsAlloc',
1597
+ type: 'uint256',
1598
+ },
1599
+ {
1600
+ name: '_voterPointsAlloc',
1601
+ type: 'uint256',
1602
+ },
1603
+ {
1604
+ name: '_perUserDepositLimit',
1605
+ type: 'uint256',
1606
+ },
1607
+ {
1608
+ name: '_globalDepositLimit',
1609
+ type: 'uint256',
1610
+ },
1611
+ {
1612
+ name: '_minDepositBalance',
1613
+ type: 'uint256',
1614
+ },
1615
+ {
1616
+ name: '_debtTerms',
1617
+ type: 'tuple',
1618
+ components: [
1619
+ {
1620
+ name: 'ltv',
1621
+ type: 'uint256',
1622
+ },
1623
+ {
1624
+ name: 'redemptionThreshold',
1625
+ type: 'uint256',
1626
+ },
1627
+ {
1628
+ name: 'liqThreshold',
1629
+ type: 'uint256',
1630
+ },
1631
+ {
1632
+ name: 'liqFee',
1633
+ type: 'uint256',
1634
+ },
1635
+ {
1636
+ name: 'borrowRate',
1637
+ type: 'uint256',
1638
+ },
1639
+ {
1640
+ name: 'daowry',
1641
+ type: 'uint256',
1642
+ },
1643
+ ],
1644
+ },
1645
+ {
1646
+ name: '_shouldBurnAsPayment',
1647
+ type: 'bool',
1648
+ },
1649
+ {
1650
+ name: '_shouldTransferToEndaoment',
1651
+ type: 'bool',
1652
+ },
1653
+ {
1654
+ name: '_shouldSwapInStabPools',
1655
+ type: 'bool',
1656
+ },
1657
+ ],
1658
+ outputs: [
1659
+ {
1660
+ name: '',
1661
+ type: 'uint256',
1662
+ },
1663
+ ],
1664
+ },
1665
+ {
1666
+ stateMutability: 'nonpayable',
1667
+ type: 'function',
1668
+ name: 'addAsset',
1669
+ inputs: [
1670
+ {
1671
+ name: '_asset',
1672
+ type: 'address',
1673
+ },
1674
+ {
1675
+ name: '_vaultIds',
1676
+ type: 'uint256[]',
1677
+ },
1678
+ {
1679
+ name: '_stakersPointsAlloc',
1680
+ type: 'uint256',
1681
+ },
1682
+ {
1683
+ name: '_voterPointsAlloc',
1684
+ type: 'uint256',
1685
+ },
1686
+ {
1687
+ name: '_perUserDepositLimit',
1688
+ type: 'uint256',
1689
+ },
1690
+ {
1691
+ name: '_globalDepositLimit',
1692
+ type: 'uint256',
1693
+ },
1694
+ {
1695
+ name: '_minDepositBalance',
1696
+ type: 'uint256',
1697
+ },
1698
+ {
1699
+ name: '_debtTerms',
1700
+ type: 'tuple',
1701
+ components: [
1702
+ {
1703
+ name: 'ltv',
1704
+ type: 'uint256',
1705
+ },
1706
+ {
1707
+ name: 'redemptionThreshold',
1708
+ type: 'uint256',
1709
+ },
1710
+ {
1711
+ name: 'liqThreshold',
1712
+ type: 'uint256',
1713
+ },
1714
+ {
1715
+ name: 'liqFee',
1716
+ type: 'uint256',
1717
+ },
1718
+ {
1719
+ name: 'borrowRate',
1720
+ type: 'uint256',
1721
+ },
1722
+ {
1723
+ name: 'daowry',
1724
+ type: 'uint256',
1725
+ },
1726
+ ],
1727
+ },
1728
+ {
1729
+ name: '_shouldBurnAsPayment',
1730
+ type: 'bool',
1731
+ },
1732
+ {
1733
+ name: '_shouldTransferToEndaoment',
1734
+ type: 'bool',
1735
+ },
1736
+ {
1737
+ name: '_shouldSwapInStabPools',
1738
+ type: 'bool',
1739
+ },
1740
+ {
1741
+ name: '_shouldAuctionInstantly',
1742
+ type: 'bool',
1743
+ },
1744
+ ],
1745
+ outputs: [
1746
+ {
1747
+ name: '',
1748
+ type: 'uint256',
1749
+ },
1750
+ ],
1751
+ },
1752
+ {
1753
+ stateMutability: 'nonpayable',
1754
+ type: 'function',
1755
+ name: 'addAsset',
1756
+ inputs: [
1757
+ {
1758
+ name: '_asset',
1759
+ type: 'address',
1760
+ },
1761
+ {
1762
+ name: '_vaultIds',
1763
+ type: 'uint256[]',
1764
+ },
1765
+ {
1766
+ name: '_stakersPointsAlloc',
1767
+ type: 'uint256',
1768
+ },
1769
+ {
1770
+ name: '_voterPointsAlloc',
1771
+ type: 'uint256',
1772
+ },
1773
+ {
1774
+ name: '_perUserDepositLimit',
1775
+ type: 'uint256',
1776
+ },
1777
+ {
1778
+ name: '_globalDepositLimit',
1779
+ type: 'uint256',
1780
+ },
1781
+ {
1782
+ name: '_minDepositBalance',
1783
+ type: 'uint256',
1784
+ },
1785
+ {
1786
+ name: '_debtTerms',
1787
+ type: 'tuple',
1788
+ components: [
1789
+ {
1790
+ name: 'ltv',
1791
+ type: 'uint256',
1792
+ },
1793
+ {
1794
+ name: 'redemptionThreshold',
1795
+ type: 'uint256',
1796
+ },
1797
+ {
1798
+ name: 'liqThreshold',
1799
+ type: 'uint256',
1800
+ },
1801
+ {
1802
+ name: 'liqFee',
1803
+ type: 'uint256',
1804
+ },
1805
+ {
1806
+ name: 'borrowRate',
1807
+ type: 'uint256',
1808
+ },
1809
+ {
1810
+ name: 'daowry',
1811
+ type: 'uint256',
1812
+ },
1813
+ ],
1814
+ },
1815
+ {
1816
+ name: '_shouldBurnAsPayment',
1817
+ type: 'bool',
1818
+ },
1819
+ {
1820
+ name: '_shouldTransferToEndaoment',
1821
+ type: 'bool',
1822
+ },
1823
+ {
1824
+ name: '_shouldSwapInStabPools',
1825
+ type: 'bool',
1826
+ },
1827
+ {
1828
+ name: '_shouldAuctionInstantly',
1829
+ type: 'bool',
1830
+ },
1831
+ {
1832
+ name: '_canDeposit',
1833
+ type: 'bool',
1834
+ },
1835
+ ],
1836
+ outputs: [
1837
+ {
1838
+ name: '',
1839
+ type: 'uint256',
1840
+ },
1841
+ ],
1842
+ },
1843
+ {
1844
+ stateMutability: 'nonpayable',
1845
+ type: 'function',
1846
+ name: 'addAsset',
1847
+ inputs: [
1848
+ {
1849
+ name: '_asset',
1850
+ type: 'address',
1851
+ },
1852
+ {
1853
+ name: '_vaultIds',
1854
+ type: 'uint256[]',
1855
+ },
1856
+ {
1857
+ name: '_stakersPointsAlloc',
1858
+ type: 'uint256',
1859
+ },
1860
+ {
1861
+ name: '_voterPointsAlloc',
1862
+ type: 'uint256',
1863
+ },
1864
+ {
1865
+ name: '_perUserDepositLimit',
1866
+ type: 'uint256',
1867
+ },
1868
+ {
1869
+ name: '_globalDepositLimit',
1870
+ type: 'uint256',
1871
+ },
1872
+ {
1873
+ name: '_minDepositBalance',
1874
+ type: 'uint256',
1875
+ },
1876
+ {
1877
+ name: '_debtTerms',
1878
+ type: 'tuple',
1879
+ components: [
1880
+ {
1881
+ name: 'ltv',
1882
+ type: 'uint256',
1883
+ },
1884
+ {
1885
+ name: 'redemptionThreshold',
1886
+ type: 'uint256',
1887
+ },
1888
+ {
1889
+ name: 'liqThreshold',
1890
+ type: 'uint256',
1891
+ },
1892
+ {
1893
+ name: 'liqFee',
1894
+ type: 'uint256',
1895
+ },
1896
+ {
1897
+ name: 'borrowRate',
1898
+ type: 'uint256',
1899
+ },
1900
+ {
1901
+ name: 'daowry',
1902
+ type: 'uint256',
1903
+ },
1904
+ ],
1905
+ },
1906
+ {
1907
+ name: '_shouldBurnAsPayment',
1908
+ type: 'bool',
1909
+ },
1910
+ {
1911
+ name: '_shouldTransferToEndaoment',
1912
+ type: 'bool',
1913
+ },
1914
+ {
1915
+ name: '_shouldSwapInStabPools',
1916
+ type: 'bool',
1917
+ },
1918
+ {
1919
+ name: '_shouldAuctionInstantly',
1920
+ type: 'bool',
1921
+ },
1922
+ {
1923
+ name: '_canDeposit',
1924
+ type: 'bool',
1925
+ },
1926
+ {
1927
+ name: '_canWithdraw',
1928
+ type: 'bool',
1929
+ },
1930
+ ],
1931
+ outputs: [
1932
+ {
1933
+ name: '',
1934
+ type: 'uint256',
1935
+ },
1936
+ ],
1937
+ },
1938
+ {
1939
+ stateMutability: 'nonpayable',
1940
+ type: 'function',
1941
+ name: 'addAsset',
1942
+ inputs: [
1943
+ {
1944
+ name: '_asset',
1945
+ type: 'address',
1946
+ },
1947
+ {
1948
+ name: '_vaultIds',
1949
+ type: 'uint256[]',
1950
+ },
1951
+ {
1952
+ name: '_stakersPointsAlloc',
1953
+ type: 'uint256',
1954
+ },
1955
+ {
1956
+ name: '_voterPointsAlloc',
1957
+ type: 'uint256',
1958
+ },
1959
+ {
1960
+ name: '_perUserDepositLimit',
1961
+ type: 'uint256',
1962
+ },
1963
+ {
1964
+ name: '_globalDepositLimit',
1965
+ type: 'uint256',
1966
+ },
1967
+ {
1968
+ name: '_minDepositBalance',
1969
+ type: 'uint256',
1970
+ },
1971
+ {
1972
+ name: '_debtTerms',
1973
+ type: 'tuple',
1974
+ components: [
1975
+ {
1976
+ name: 'ltv',
1977
+ type: 'uint256',
1978
+ },
1979
+ {
1980
+ name: 'redemptionThreshold',
1981
+ type: 'uint256',
1982
+ },
1983
+ {
1984
+ name: 'liqThreshold',
1985
+ type: 'uint256',
1986
+ },
1987
+ {
1988
+ name: 'liqFee',
1989
+ type: 'uint256',
1990
+ },
1991
+ {
1992
+ name: 'borrowRate',
1993
+ type: 'uint256',
1994
+ },
1995
+ {
1996
+ name: 'daowry',
1997
+ type: 'uint256',
1998
+ },
1999
+ ],
2000
+ },
2001
+ {
2002
+ name: '_shouldBurnAsPayment',
2003
+ type: 'bool',
2004
+ },
2005
+ {
2006
+ name: '_shouldTransferToEndaoment',
2007
+ type: 'bool',
2008
+ },
2009
+ {
2010
+ name: '_shouldSwapInStabPools',
2011
+ type: 'bool',
2012
+ },
2013
+ {
2014
+ name: '_shouldAuctionInstantly',
2015
+ type: 'bool',
2016
+ },
2017
+ {
2018
+ name: '_canDeposit',
2019
+ type: 'bool',
2020
+ },
2021
+ {
2022
+ name: '_canWithdraw',
2023
+ type: 'bool',
2024
+ },
2025
+ {
2026
+ name: '_canRedeemCollateral',
2027
+ type: 'bool',
2028
+ },
2029
+ ],
2030
+ outputs: [
2031
+ {
2032
+ name: '',
2033
+ type: 'uint256',
2034
+ },
2035
+ ],
2036
+ },
2037
+ {
2038
+ stateMutability: 'nonpayable',
2039
+ type: 'function',
2040
+ name: 'addAsset',
2041
+ inputs: [
2042
+ {
2043
+ name: '_asset',
2044
+ type: 'address',
2045
+ },
2046
+ {
2047
+ name: '_vaultIds',
2048
+ type: 'uint256[]',
2049
+ },
2050
+ {
2051
+ name: '_stakersPointsAlloc',
2052
+ type: 'uint256',
2053
+ },
2054
+ {
2055
+ name: '_voterPointsAlloc',
2056
+ type: 'uint256',
2057
+ },
2058
+ {
2059
+ name: '_perUserDepositLimit',
2060
+ type: 'uint256',
2061
+ },
2062
+ {
2063
+ name: '_globalDepositLimit',
2064
+ type: 'uint256',
2065
+ },
2066
+ {
2067
+ name: '_minDepositBalance',
2068
+ type: 'uint256',
2069
+ },
2070
+ {
2071
+ name: '_debtTerms',
2072
+ type: 'tuple',
2073
+ components: [
2074
+ {
2075
+ name: 'ltv',
2076
+ type: 'uint256',
2077
+ },
2078
+ {
2079
+ name: 'redemptionThreshold',
2080
+ type: 'uint256',
2081
+ },
2082
+ {
2083
+ name: 'liqThreshold',
2084
+ type: 'uint256',
2085
+ },
2086
+ {
2087
+ name: 'liqFee',
2088
+ type: 'uint256',
2089
+ },
2090
+ {
2091
+ name: 'borrowRate',
2092
+ type: 'uint256',
2093
+ },
2094
+ {
2095
+ name: 'daowry',
2096
+ type: 'uint256',
2097
+ },
2098
+ ],
2099
+ },
2100
+ {
2101
+ name: '_shouldBurnAsPayment',
2102
+ type: 'bool',
2103
+ },
2104
+ {
2105
+ name: '_shouldTransferToEndaoment',
2106
+ type: 'bool',
2107
+ },
2108
+ {
2109
+ name: '_shouldSwapInStabPools',
2110
+ type: 'bool',
2111
+ },
2112
+ {
2113
+ name: '_shouldAuctionInstantly',
2114
+ type: 'bool',
2115
+ },
2116
+ {
2117
+ name: '_canDeposit',
2118
+ type: 'bool',
2119
+ },
2120
+ {
2121
+ name: '_canWithdraw',
2122
+ type: 'bool',
2123
+ },
2124
+ {
2125
+ name: '_canRedeemCollateral',
2126
+ type: 'bool',
2127
+ },
2128
+ {
2129
+ name: '_canRedeemInStabPool',
2130
+ type: 'bool',
2131
+ },
2132
+ ],
2133
+ outputs: [
2134
+ {
2135
+ name: '',
2136
+ type: 'uint256',
2137
+ },
2138
+ ],
2139
+ },
2140
+ {
2141
+ stateMutability: 'nonpayable',
2142
+ type: 'function',
2143
+ name: 'addAsset',
2144
+ inputs: [
2145
+ {
2146
+ name: '_asset',
2147
+ type: 'address',
2148
+ },
2149
+ {
2150
+ name: '_vaultIds',
2151
+ type: 'uint256[]',
2152
+ },
2153
+ {
2154
+ name: '_stakersPointsAlloc',
2155
+ type: 'uint256',
2156
+ },
2157
+ {
2158
+ name: '_voterPointsAlloc',
2159
+ type: 'uint256',
2160
+ },
2161
+ {
2162
+ name: '_perUserDepositLimit',
2163
+ type: 'uint256',
2164
+ },
2165
+ {
2166
+ name: '_globalDepositLimit',
2167
+ type: 'uint256',
2168
+ },
2169
+ {
2170
+ name: '_minDepositBalance',
2171
+ type: 'uint256',
2172
+ },
2173
+ {
2174
+ name: '_debtTerms',
2175
+ type: 'tuple',
2176
+ components: [
2177
+ {
2178
+ name: 'ltv',
2179
+ type: 'uint256',
2180
+ },
2181
+ {
2182
+ name: 'redemptionThreshold',
2183
+ type: 'uint256',
2184
+ },
2185
+ {
2186
+ name: 'liqThreshold',
2187
+ type: 'uint256',
2188
+ },
2189
+ {
2190
+ name: 'liqFee',
2191
+ type: 'uint256',
2192
+ },
2193
+ {
2194
+ name: 'borrowRate',
2195
+ type: 'uint256',
2196
+ },
2197
+ {
2198
+ name: 'daowry',
2199
+ type: 'uint256',
2200
+ },
2201
+ ],
2202
+ },
2203
+ {
2204
+ name: '_shouldBurnAsPayment',
2205
+ type: 'bool',
2206
+ },
2207
+ {
2208
+ name: '_shouldTransferToEndaoment',
2209
+ type: 'bool',
2210
+ },
2211
+ {
2212
+ name: '_shouldSwapInStabPools',
2213
+ type: 'bool',
2214
+ },
2215
+ {
2216
+ name: '_shouldAuctionInstantly',
2217
+ type: 'bool',
2218
+ },
2219
+ {
2220
+ name: '_canDeposit',
2221
+ type: 'bool',
2222
+ },
2223
+ {
2224
+ name: '_canWithdraw',
2225
+ type: 'bool',
2226
+ },
2227
+ {
2228
+ name: '_canRedeemCollateral',
2229
+ type: 'bool',
2230
+ },
2231
+ {
2232
+ name: '_canRedeemInStabPool',
2233
+ type: 'bool',
2234
+ },
2235
+ {
2236
+ name: '_canBuyInAuction',
2237
+ type: 'bool',
2238
+ },
2239
+ ],
2240
+ outputs: [
2241
+ {
2242
+ name: '',
2243
+ type: 'uint256',
2244
+ },
2245
+ ],
2246
+ },
2247
+ {
2248
+ stateMutability: 'nonpayable',
2249
+ type: 'function',
2250
+ name: 'addAsset',
2251
+ inputs: [
2252
+ {
2253
+ name: '_asset',
2254
+ type: 'address',
2255
+ },
2256
+ {
2257
+ name: '_vaultIds',
2258
+ type: 'uint256[]',
2259
+ },
2260
+ {
2261
+ name: '_stakersPointsAlloc',
2262
+ type: 'uint256',
2263
+ },
2264
+ {
2265
+ name: '_voterPointsAlloc',
2266
+ type: 'uint256',
2267
+ },
2268
+ {
2269
+ name: '_perUserDepositLimit',
2270
+ type: 'uint256',
2271
+ },
2272
+ {
2273
+ name: '_globalDepositLimit',
2274
+ type: 'uint256',
2275
+ },
2276
+ {
2277
+ name: '_minDepositBalance',
2278
+ type: 'uint256',
2279
+ },
2280
+ {
2281
+ name: '_debtTerms',
2282
+ type: 'tuple',
2283
+ components: [
2284
+ {
2285
+ name: 'ltv',
2286
+ type: 'uint256',
2287
+ },
2288
+ {
2289
+ name: 'redemptionThreshold',
2290
+ type: 'uint256',
2291
+ },
2292
+ {
2293
+ name: 'liqThreshold',
2294
+ type: 'uint256',
2295
+ },
2296
+ {
2297
+ name: 'liqFee',
2298
+ type: 'uint256',
2299
+ },
2300
+ {
2301
+ name: 'borrowRate',
2302
+ type: 'uint256',
2303
+ },
2304
+ {
2305
+ name: 'daowry',
2306
+ type: 'uint256',
2307
+ },
2308
+ ],
2309
+ },
2310
+ {
2311
+ name: '_shouldBurnAsPayment',
2312
+ type: 'bool',
2313
+ },
2314
+ {
2315
+ name: '_shouldTransferToEndaoment',
2316
+ type: 'bool',
2317
+ },
2318
+ {
2319
+ name: '_shouldSwapInStabPools',
2320
+ type: 'bool',
2321
+ },
2322
+ {
2323
+ name: '_shouldAuctionInstantly',
2324
+ type: 'bool',
2325
+ },
2326
+ {
2327
+ name: '_canDeposit',
2328
+ type: 'bool',
2329
+ },
2330
+ {
2331
+ name: '_canWithdraw',
2332
+ type: 'bool',
2333
+ },
2334
+ {
2335
+ name: '_canRedeemCollateral',
2336
+ type: 'bool',
2337
+ },
2338
+ {
2339
+ name: '_canRedeemInStabPool',
2340
+ type: 'bool',
2341
+ },
2342
+ {
2343
+ name: '_canBuyInAuction',
2344
+ type: 'bool',
2345
+ },
2346
+ {
2347
+ name: '_canClaimInStabPool',
2348
+ type: 'bool',
2349
+ },
2350
+ ],
2351
+ outputs: [
2352
+ {
2353
+ name: '',
2354
+ type: 'uint256',
2355
+ },
2356
+ ],
2357
+ },
2358
+ {
2359
+ stateMutability: 'nonpayable',
2360
+ type: 'function',
2361
+ name: 'addAsset',
2362
+ inputs: [
2363
+ {
2364
+ name: '_asset',
2365
+ type: 'address',
2366
+ },
2367
+ {
2368
+ name: '_vaultIds',
2369
+ type: 'uint256[]',
2370
+ },
2371
+ {
2372
+ name: '_stakersPointsAlloc',
2373
+ type: 'uint256',
2374
+ },
2375
+ {
2376
+ name: '_voterPointsAlloc',
2377
+ type: 'uint256',
2378
+ },
2379
+ {
2380
+ name: '_perUserDepositLimit',
2381
+ type: 'uint256',
2382
+ },
2383
+ {
2384
+ name: '_globalDepositLimit',
2385
+ type: 'uint256',
2386
+ },
2387
+ {
2388
+ name: '_minDepositBalance',
2389
+ type: 'uint256',
2390
+ },
2391
+ {
2392
+ name: '_debtTerms',
2393
+ type: 'tuple',
2394
+ components: [
2395
+ {
2396
+ name: 'ltv',
2397
+ type: 'uint256',
2398
+ },
2399
+ {
2400
+ name: 'redemptionThreshold',
2401
+ type: 'uint256',
2402
+ },
2403
+ {
2404
+ name: 'liqThreshold',
2405
+ type: 'uint256',
2406
+ },
2407
+ {
2408
+ name: 'liqFee',
2409
+ type: 'uint256',
2410
+ },
2411
+ {
2412
+ name: 'borrowRate',
2413
+ type: 'uint256',
2414
+ },
2415
+ {
2416
+ name: 'daowry',
2417
+ type: 'uint256',
2418
+ },
2419
+ ],
2420
+ },
2421
+ {
2422
+ name: '_shouldBurnAsPayment',
2423
+ type: 'bool',
2424
+ },
2425
+ {
2426
+ name: '_shouldTransferToEndaoment',
2427
+ type: 'bool',
2428
+ },
2429
+ {
2430
+ name: '_shouldSwapInStabPools',
2431
+ type: 'bool',
2432
+ },
2433
+ {
2434
+ name: '_shouldAuctionInstantly',
2435
+ type: 'bool',
2436
+ },
2437
+ {
2438
+ name: '_canDeposit',
2439
+ type: 'bool',
2440
+ },
2441
+ {
2442
+ name: '_canWithdraw',
2443
+ type: 'bool',
2444
+ },
2445
+ {
2446
+ name: '_canRedeemCollateral',
2447
+ type: 'bool',
2448
+ },
2449
+ {
2450
+ name: '_canRedeemInStabPool',
2451
+ type: 'bool',
2452
+ },
2453
+ {
2454
+ name: '_canBuyInAuction',
2455
+ type: 'bool',
2456
+ },
2457
+ {
2458
+ name: '_canClaimInStabPool',
2459
+ type: 'bool',
2460
+ },
2461
+ {
2462
+ name: '_specialStabPoolId',
2463
+ type: 'uint256',
2464
+ },
2465
+ ],
2466
+ outputs: [
2467
+ {
2468
+ name: '',
2469
+ type: 'uint256',
2470
+ },
2471
+ ],
2472
+ },
2473
+ {
2474
+ stateMutability: 'nonpayable',
2475
+ type: 'function',
2476
+ name: 'addAsset',
2477
+ inputs: [
2478
+ {
2479
+ name: '_asset',
2480
+ type: 'address',
2481
+ },
2482
+ {
2483
+ name: '_vaultIds',
2484
+ type: 'uint256[]',
2485
+ },
2486
+ {
2487
+ name: '_stakersPointsAlloc',
2488
+ type: 'uint256',
2489
+ },
2490
+ {
2491
+ name: '_voterPointsAlloc',
2492
+ type: 'uint256',
2493
+ },
2494
+ {
2495
+ name: '_perUserDepositLimit',
2496
+ type: 'uint256',
2497
+ },
2498
+ {
2499
+ name: '_globalDepositLimit',
2500
+ type: 'uint256',
2501
+ },
2502
+ {
2503
+ name: '_minDepositBalance',
2504
+ type: 'uint256',
2505
+ },
2506
+ {
2507
+ name: '_debtTerms',
2508
+ type: 'tuple',
2509
+ components: [
2510
+ {
2511
+ name: 'ltv',
2512
+ type: 'uint256',
2513
+ },
2514
+ {
2515
+ name: 'redemptionThreshold',
2516
+ type: 'uint256',
2517
+ },
2518
+ {
2519
+ name: 'liqThreshold',
2520
+ type: 'uint256',
2521
+ },
2522
+ {
2523
+ name: 'liqFee',
2524
+ type: 'uint256',
2525
+ },
2526
+ {
2527
+ name: 'borrowRate',
2528
+ type: 'uint256',
2529
+ },
2530
+ {
2531
+ name: 'daowry',
2532
+ type: 'uint256',
2533
+ },
2534
+ ],
2535
+ },
2536
+ {
2537
+ name: '_shouldBurnAsPayment',
2538
+ type: 'bool',
2539
+ },
2540
+ {
2541
+ name: '_shouldTransferToEndaoment',
2542
+ type: 'bool',
2543
+ },
2544
+ {
2545
+ name: '_shouldSwapInStabPools',
2546
+ type: 'bool',
2547
+ },
2548
+ {
2549
+ name: '_shouldAuctionInstantly',
2550
+ type: 'bool',
2551
+ },
2552
+ {
2553
+ name: '_canDeposit',
2554
+ type: 'bool',
2555
+ },
2556
+ {
2557
+ name: '_canWithdraw',
2558
+ type: 'bool',
2559
+ },
2560
+ {
2561
+ name: '_canRedeemCollateral',
2562
+ type: 'bool',
2563
+ },
2564
+ {
2565
+ name: '_canRedeemInStabPool',
2566
+ type: 'bool',
2567
+ },
2568
+ {
2569
+ name: '_canBuyInAuction',
2570
+ type: 'bool',
2571
+ },
2572
+ {
2573
+ name: '_canClaimInStabPool',
2574
+ type: 'bool',
2575
+ },
2576
+ {
2577
+ name: '_specialStabPoolId',
2578
+ type: 'uint256',
2579
+ },
2580
+ {
2581
+ name: '_customAuctionParams',
2582
+ type: 'tuple',
2583
+ components: [
2584
+ {
2585
+ name: 'hasParams',
2586
+ type: 'bool',
2587
+ },
2588
+ {
2589
+ name: 'startDiscount',
2590
+ type: 'uint256',
2591
+ },
2592
+ {
2593
+ name: 'maxDiscount',
2594
+ type: 'uint256',
2595
+ },
2596
+ {
2597
+ name: 'delay',
2598
+ type: 'uint256',
2599
+ },
2600
+ {
2601
+ name: 'duration',
2602
+ type: 'uint256',
2603
+ },
2604
+ ],
2605
+ },
2606
+ ],
2607
+ outputs: [
2608
+ {
2609
+ name: '',
2610
+ type: 'uint256',
2611
+ },
2612
+ ],
2613
+ },
2614
+ {
2615
+ stateMutability: 'nonpayable',
2616
+ type: 'function',
2617
+ name: 'addAsset',
2618
+ inputs: [
2619
+ {
2620
+ name: '_asset',
2621
+ type: 'address',
2622
+ },
2623
+ {
2624
+ name: '_vaultIds',
2625
+ type: 'uint256[]',
2626
+ },
2627
+ {
2628
+ name: '_stakersPointsAlloc',
2629
+ type: 'uint256',
2630
+ },
2631
+ {
2632
+ name: '_voterPointsAlloc',
2633
+ type: 'uint256',
2634
+ },
2635
+ {
2636
+ name: '_perUserDepositLimit',
2637
+ type: 'uint256',
2638
+ },
2639
+ {
2640
+ name: '_globalDepositLimit',
2641
+ type: 'uint256',
2642
+ },
2643
+ {
2644
+ name: '_minDepositBalance',
2645
+ type: 'uint256',
2646
+ },
2647
+ {
2648
+ name: '_debtTerms',
2649
+ type: 'tuple',
2650
+ components: [
2651
+ {
2652
+ name: 'ltv',
2653
+ type: 'uint256',
2654
+ },
2655
+ {
2656
+ name: 'redemptionThreshold',
2657
+ type: 'uint256',
2658
+ },
2659
+ {
2660
+ name: 'liqThreshold',
2661
+ type: 'uint256',
2662
+ },
2663
+ {
2664
+ name: 'liqFee',
2665
+ type: 'uint256',
2666
+ },
2667
+ {
2668
+ name: 'borrowRate',
2669
+ type: 'uint256',
2670
+ },
2671
+ {
2672
+ name: 'daowry',
2673
+ type: 'uint256',
2674
+ },
2675
+ ],
2676
+ },
2677
+ {
2678
+ name: '_shouldBurnAsPayment',
2679
+ type: 'bool',
2680
+ },
2681
+ {
2682
+ name: '_shouldTransferToEndaoment',
2683
+ type: 'bool',
2684
+ },
2685
+ {
2686
+ name: '_shouldSwapInStabPools',
2687
+ type: 'bool',
2688
+ },
2689
+ {
2690
+ name: '_shouldAuctionInstantly',
2691
+ type: 'bool',
2692
+ },
2693
+ {
2694
+ name: '_canDeposit',
2695
+ type: 'bool',
2696
+ },
2697
+ {
2698
+ name: '_canWithdraw',
2699
+ type: 'bool',
2700
+ },
2701
+ {
2702
+ name: '_canRedeemCollateral',
2703
+ type: 'bool',
2704
+ },
2705
+ {
2706
+ name: '_canRedeemInStabPool',
2707
+ type: 'bool',
2708
+ },
2709
+ {
2710
+ name: '_canBuyInAuction',
2711
+ type: 'bool',
2712
+ },
2713
+ {
2714
+ name: '_canClaimInStabPool',
2715
+ type: 'bool',
2716
+ },
2717
+ {
2718
+ name: '_specialStabPoolId',
2719
+ type: 'uint256',
2720
+ },
2721
+ {
2722
+ name: '_customAuctionParams',
2723
+ type: 'tuple',
2724
+ components: [
2725
+ {
2726
+ name: 'hasParams',
2727
+ type: 'bool',
2728
+ },
2729
+ {
2730
+ name: 'startDiscount',
2731
+ type: 'uint256',
2732
+ },
2733
+ {
2734
+ name: 'maxDiscount',
2735
+ type: 'uint256',
2736
+ },
2737
+ {
2738
+ name: 'delay',
2739
+ type: 'uint256',
2740
+ },
2741
+ {
2742
+ name: 'duration',
2743
+ type: 'uint256',
2744
+ },
2745
+ ],
2746
+ },
2747
+ {
2748
+ name: '_whitelist',
2749
+ type: 'address',
2750
+ },
2751
+ ],
2752
+ outputs: [
2753
+ {
2754
+ name: '',
2755
+ type: 'uint256',
2756
+ },
2757
+ ],
2758
+ },
2759
+ {
2760
+ stateMutability: 'nonpayable',
2761
+ type: 'function',
2762
+ name: 'addAsset',
2763
+ inputs: [
2764
+ {
2765
+ name: '_asset',
2766
+ type: 'address',
2767
+ },
2768
+ {
2769
+ name: '_vaultIds',
2770
+ type: 'uint256[]',
2771
+ },
2772
+ {
2773
+ name: '_stakersPointsAlloc',
2774
+ type: 'uint256',
2775
+ },
2776
+ {
2777
+ name: '_voterPointsAlloc',
2778
+ type: 'uint256',
2779
+ },
2780
+ {
2781
+ name: '_perUserDepositLimit',
2782
+ type: 'uint256',
2783
+ },
2784
+ {
2785
+ name: '_globalDepositLimit',
2786
+ type: 'uint256',
2787
+ },
2788
+ {
2789
+ name: '_minDepositBalance',
2790
+ type: 'uint256',
2791
+ },
2792
+ {
2793
+ name: '_debtTerms',
2794
+ type: 'tuple',
2795
+ components: [
2796
+ {
2797
+ name: 'ltv',
2798
+ type: 'uint256',
2799
+ },
2800
+ {
2801
+ name: 'redemptionThreshold',
2802
+ type: 'uint256',
2803
+ },
2804
+ {
2805
+ name: 'liqThreshold',
2806
+ type: 'uint256',
2807
+ },
2808
+ {
2809
+ name: 'liqFee',
2810
+ type: 'uint256',
2811
+ },
2812
+ {
2813
+ name: 'borrowRate',
2814
+ type: 'uint256',
2815
+ },
2816
+ {
2817
+ name: 'daowry',
2818
+ type: 'uint256',
2819
+ },
2820
+ ],
2821
+ },
2822
+ {
2823
+ name: '_shouldBurnAsPayment',
2824
+ type: 'bool',
2825
+ },
2826
+ {
2827
+ name: '_shouldTransferToEndaoment',
2828
+ type: 'bool',
2829
+ },
2830
+ {
2831
+ name: '_shouldSwapInStabPools',
2832
+ type: 'bool',
2833
+ },
2834
+ {
2835
+ name: '_shouldAuctionInstantly',
2836
+ type: 'bool',
2837
+ },
2838
+ {
2839
+ name: '_canDeposit',
2840
+ type: 'bool',
2841
+ },
2842
+ {
2843
+ name: '_canWithdraw',
2844
+ type: 'bool',
2845
+ },
2846
+ {
2847
+ name: '_canRedeemCollateral',
2848
+ type: 'bool',
2849
+ },
2850
+ {
2851
+ name: '_canRedeemInStabPool',
2852
+ type: 'bool',
2853
+ },
2854
+ {
2855
+ name: '_canBuyInAuction',
2856
+ type: 'bool',
2857
+ },
2858
+ {
2859
+ name: '_canClaimInStabPool',
2860
+ type: 'bool',
2861
+ },
2862
+ {
2863
+ name: '_specialStabPoolId',
2864
+ type: 'uint256',
2865
+ },
2866
+ {
2867
+ name: '_customAuctionParams',
2868
+ type: 'tuple',
2869
+ components: [
2870
+ {
2871
+ name: 'hasParams',
2872
+ type: 'bool',
2873
+ },
2874
+ {
2875
+ name: 'startDiscount',
2876
+ type: 'uint256',
2877
+ },
2878
+ {
2879
+ name: 'maxDiscount',
2880
+ type: 'uint256',
2881
+ },
2882
+ {
2883
+ name: 'delay',
2884
+ type: 'uint256',
2885
+ },
2886
+ {
2887
+ name: 'duration',
2888
+ type: 'uint256',
2889
+ },
2890
+ ],
2891
+ },
2892
+ {
2893
+ name: '_whitelist',
2894
+ type: 'address',
2895
+ },
2896
+ {
2897
+ name: '_isNft',
2898
+ type: 'bool',
2899
+ },
2900
+ ],
2901
+ outputs: [
2902
+ {
2903
+ name: '',
2904
+ type: 'uint256',
2905
+ },
2906
+ ],
2907
+ },
2908
+ {
2909
+ stateMutability: 'nonpayable',
2910
+ type: 'function',
2911
+ name: 'setAssetDepositParams',
2912
+ inputs: [
2913
+ {
2914
+ name: '_asset',
2915
+ type: 'address',
2916
+ },
2917
+ {
2918
+ name: '_vaultIds',
2919
+ type: 'uint256[]',
2920
+ },
2921
+ {
2922
+ name: '_stakersPointsAlloc',
2923
+ type: 'uint256',
2924
+ },
2925
+ {
2926
+ name: '_voterPointsAlloc',
2927
+ type: 'uint256',
2928
+ },
2929
+ {
2930
+ name: '_perUserDepositLimit',
2931
+ type: 'uint256',
2932
+ },
2933
+ {
2934
+ name: '_globalDepositLimit',
2935
+ type: 'uint256',
2936
+ },
2937
+ {
2938
+ name: '_minDepositBalance',
2939
+ type: 'uint256',
2940
+ },
2941
+ ],
2942
+ outputs: [
2943
+ {
2944
+ name: '',
2945
+ type: 'uint256',
2946
+ },
2947
+ ],
2948
+ },
2949
+ {
2950
+ stateMutability: 'nonpayable',
2951
+ type: 'function',
2952
+ name: 'setAssetLiqConfig',
2953
+ inputs: [
2954
+ {
2955
+ name: '_asset',
2956
+ type: 'address',
2957
+ },
2958
+ {
2959
+ name: '_shouldBurnAsPayment',
2960
+ type: 'bool',
2961
+ },
2962
+ {
2963
+ name: '_shouldTransferToEndaoment',
2964
+ type: 'bool',
2965
+ },
2966
+ {
2967
+ name: '_shouldSwapInStabPools',
2968
+ type: 'bool',
2969
+ },
2970
+ {
2971
+ name: '_shouldAuctionInstantly',
2972
+ type: 'bool',
2973
+ },
2974
+ ],
2975
+ outputs: [
2976
+ {
2977
+ name: '',
2978
+ type: 'uint256',
2979
+ },
2980
+ ],
2981
+ },
2982
+ {
2983
+ stateMutability: 'nonpayable',
2984
+ type: 'function',
2985
+ name: 'setAssetLiqConfig',
2986
+ inputs: [
2987
+ {
2988
+ name: '_asset',
2989
+ type: 'address',
2990
+ },
2991
+ {
2992
+ name: '_shouldBurnAsPayment',
2993
+ type: 'bool',
2994
+ },
2995
+ {
2996
+ name: '_shouldTransferToEndaoment',
2997
+ type: 'bool',
2998
+ },
2999
+ {
3000
+ name: '_shouldSwapInStabPools',
3001
+ type: 'bool',
3002
+ },
3003
+ {
3004
+ name: '_shouldAuctionInstantly',
3005
+ type: 'bool',
3006
+ },
3007
+ {
3008
+ name: '_specialStabPoolId',
3009
+ type: 'uint256',
3010
+ },
3011
+ ],
3012
+ outputs: [
3013
+ {
3014
+ name: '',
3015
+ type: 'uint256',
3016
+ },
3017
+ ],
3018
+ },
3019
+ {
3020
+ stateMutability: 'nonpayable',
3021
+ type: 'function',
3022
+ name: 'setAssetLiqConfig',
3023
+ inputs: [
3024
+ {
3025
+ name: '_asset',
3026
+ type: 'address',
3027
+ },
3028
+ {
3029
+ name: '_shouldBurnAsPayment',
3030
+ type: 'bool',
3031
+ },
3032
+ {
3033
+ name: '_shouldTransferToEndaoment',
3034
+ type: 'bool',
3035
+ },
3036
+ {
3037
+ name: '_shouldSwapInStabPools',
3038
+ type: 'bool',
3039
+ },
3040
+ {
3041
+ name: '_shouldAuctionInstantly',
3042
+ type: 'bool',
3043
+ },
3044
+ {
3045
+ name: '_specialStabPoolId',
3046
+ type: 'uint256',
3047
+ },
3048
+ {
3049
+ name: '_customAuctionParams',
3050
+ type: 'tuple',
3051
+ components: [
3052
+ {
3053
+ name: 'hasParams',
3054
+ type: 'bool',
3055
+ },
3056
+ {
3057
+ name: 'startDiscount',
3058
+ type: 'uint256',
3059
+ },
3060
+ {
3061
+ name: 'maxDiscount',
3062
+ type: 'uint256',
3063
+ },
3064
+ {
3065
+ name: 'delay',
3066
+ type: 'uint256',
3067
+ },
3068
+ {
3069
+ name: 'duration',
3070
+ type: 'uint256',
3071
+ },
3072
+ ],
3073
+ },
3074
+ ],
3075
+ outputs: [
3076
+ {
3077
+ name: '',
3078
+ type: 'uint256',
3079
+ },
3080
+ ],
3081
+ },
3082
+ {
3083
+ stateMutability: 'nonpayable',
3084
+ type: 'function',
3085
+ name: 'setAssetDebtTerms',
3086
+ inputs: [
3087
+ {
3088
+ name: '_asset',
3089
+ type: 'address',
3090
+ },
3091
+ {
3092
+ name: '_ltv',
3093
+ type: 'uint256',
3094
+ },
3095
+ {
3096
+ name: '_redemptionThreshold',
3097
+ type: 'uint256',
3098
+ },
3099
+ {
3100
+ name: '_liqThreshold',
3101
+ type: 'uint256',
3102
+ },
3103
+ {
3104
+ name: '_liqFee',
3105
+ type: 'uint256',
3106
+ },
3107
+ {
3108
+ name: '_borrowRate',
3109
+ type: 'uint256',
3110
+ },
3111
+ {
3112
+ name: '_daowry',
3113
+ type: 'uint256',
3114
+ },
3115
+ ],
3116
+ outputs: [
3117
+ {
3118
+ name: '',
3119
+ type: 'uint256',
3120
+ },
3121
+ ],
3122
+ },
3123
+ {
3124
+ stateMutability: 'nonpayable',
3125
+ type: 'function',
3126
+ name: 'setWhitelistForAsset',
3127
+ inputs: [
3128
+ {
3129
+ name: '_asset',
3130
+ type: 'address',
3131
+ },
3132
+ {
3133
+ name: '_whitelist',
3134
+ type: 'address',
3135
+ },
3136
+ ],
3137
+ outputs: [
3138
+ {
3139
+ name: '',
3140
+ type: 'uint256',
3141
+ },
3142
+ ],
3143
+ },
3144
+ {
3145
+ stateMutability: 'nonpayable',
3146
+ type: 'function',
3147
+ name: 'setCanDepositAsset',
3148
+ inputs: [
3149
+ {
3150
+ name: '_asset',
3151
+ type: 'address',
3152
+ },
3153
+ {
3154
+ name: '_shouldEnable',
3155
+ type: 'bool',
3156
+ },
3157
+ ],
3158
+ outputs: [
3159
+ {
3160
+ name: '',
3161
+ type: 'bool',
3162
+ },
3163
+ ],
3164
+ },
3165
+ {
3166
+ stateMutability: 'nonpayable',
3167
+ type: 'function',
3168
+ name: 'setCanWithdrawAsset',
3169
+ inputs: [
3170
+ {
3171
+ name: '_asset',
3172
+ type: 'address',
3173
+ },
3174
+ {
3175
+ name: '_shouldEnable',
3176
+ type: 'bool',
3177
+ },
3178
+ ],
3179
+ outputs: [
3180
+ {
3181
+ name: '',
3182
+ type: 'bool',
3183
+ },
3184
+ ],
3185
+ },
3186
+ {
3187
+ stateMutability: 'nonpayable',
3188
+ type: 'function',
3189
+ name: 'setCanRedeemInStabPoolAsset',
3190
+ inputs: [
3191
+ {
3192
+ name: '_asset',
3193
+ type: 'address',
3194
+ },
3195
+ {
3196
+ name: '_shouldEnable',
3197
+ type: 'bool',
3198
+ },
3199
+ ],
3200
+ outputs: [
3201
+ {
3202
+ name: '',
3203
+ type: 'bool',
3204
+ },
3205
+ ],
3206
+ },
3207
+ {
3208
+ stateMutability: 'nonpayable',
3209
+ type: 'function',
3210
+ name: 'setCanBuyInAuctionAsset',
3211
+ inputs: [
3212
+ {
3213
+ name: '_asset',
3214
+ type: 'address',
3215
+ },
3216
+ {
3217
+ name: '_shouldEnable',
3218
+ type: 'bool',
3219
+ },
3220
+ ],
3221
+ outputs: [
3222
+ {
3223
+ name: '',
3224
+ type: 'bool',
3225
+ },
3226
+ ],
3227
+ },
3228
+ {
3229
+ stateMutability: 'nonpayable',
3230
+ type: 'function',
3231
+ name: 'setCanClaimInStabPoolAsset',
3232
+ inputs: [
3233
+ {
3234
+ name: '_asset',
3235
+ type: 'address',
3236
+ },
3237
+ {
3238
+ name: '_shouldEnable',
3239
+ type: 'bool',
3240
+ },
3241
+ ],
3242
+ outputs: [
3243
+ {
3244
+ name: '',
3245
+ type: 'bool',
3246
+ },
3247
+ ],
3248
+ },
3249
+ {
3250
+ stateMutability: 'nonpayable',
3251
+ type: 'function',
3252
+ name: 'setCanRedeemCollateralAsset',
3253
+ inputs: [
3254
+ {
3255
+ name: '_asset',
3256
+ type: 'address',
3257
+ },
3258
+ {
3259
+ name: '_shouldEnable',
3260
+ type: 'bool',
3261
+ },
3262
+ ],
3263
+ outputs: [
3264
+ {
3265
+ name: '',
3266
+ type: 'bool',
3267
+ },
3268
+ ],
3269
+ },
3270
+ {
3271
+ stateMutability: 'nonpayable',
3272
+ type: 'function',
3273
+ name: 'executePendingAction',
3274
+ inputs: [
3275
+ {
3276
+ name: '_aid',
3277
+ type: 'uint256',
3278
+ },
3279
+ ],
3280
+ outputs: [
3281
+ {
3282
+ name: '',
3283
+ type: 'bool',
3284
+ },
3285
+ ],
3286
+ },
3287
+ {
3288
+ stateMutability: 'nonpayable',
3289
+ type: 'function',
3290
+ name: 'cancelPendingAction',
3291
+ inputs: [
3292
+ {
3293
+ name: '_aid',
3294
+ type: 'uint256',
3295
+ },
3296
+ ],
3297
+ outputs: [
3298
+ {
3299
+ name: '',
3300
+ type: 'bool',
3301
+ },
3302
+ ],
3303
+ },
3304
+ {
3305
+ stateMutability: 'view',
3306
+ type: 'function',
3307
+ name: 'actionType',
3308
+ inputs: [
3309
+ {
3310
+ name: 'arg0',
3311
+ type: 'uint256',
3312
+ },
3313
+ ],
3314
+ outputs: [
3315
+ {
3316
+ name: '',
3317
+ type: 'uint256',
3318
+ },
3319
+ ],
3320
+ },
3321
+ {
3322
+ stateMutability: 'view',
3323
+ type: 'function',
3324
+ name: 'pendingAssetConfig',
3325
+ inputs: [
3326
+ {
3327
+ name: 'arg0',
3328
+ type: 'uint256',
3329
+ },
3330
+ ],
3331
+ outputs: [
3332
+ {
3333
+ name: '',
3334
+ type: 'tuple',
3335
+ components: [
3336
+ {
3337
+ name: 'asset',
3338
+ type: 'address',
3339
+ },
3340
+ {
3341
+ name: 'config',
3342
+ type: 'tuple',
3343
+ components: [
3344
+ {
3345
+ name: 'vaultIds',
3346
+ type: 'uint256[]',
3347
+ },
3348
+ {
3349
+ name: 'stakersPointsAlloc',
3350
+ type: 'uint256',
3351
+ },
3352
+ {
3353
+ name: 'voterPointsAlloc',
3354
+ type: 'uint256',
3355
+ },
3356
+ {
3357
+ name: 'perUserDepositLimit',
3358
+ type: 'uint256',
3359
+ },
3360
+ {
3361
+ name: 'globalDepositLimit',
3362
+ type: 'uint256',
3363
+ },
3364
+ {
3365
+ name: 'minDepositBalance',
3366
+ type: 'uint256',
3367
+ },
3368
+ {
3369
+ name: 'debtTerms',
3370
+ type: 'tuple',
3371
+ components: [
3372
+ {
3373
+ name: 'ltv',
3374
+ type: 'uint256',
3375
+ },
3376
+ {
3377
+ name: 'redemptionThreshold',
3378
+ type: 'uint256',
3379
+ },
3380
+ {
3381
+ name: 'liqThreshold',
3382
+ type: 'uint256',
3383
+ },
3384
+ {
3385
+ name: 'liqFee',
3386
+ type: 'uint256',
3387
+ },
3388
+ {
3389
+ name: 'borrowRate',
3390
+ type: 'uint256',
3391
+ },
3392
+ {
3393
+ name: 'daowry',
3394
+ type: 'uint256',
3395
+ },
3396
+ ],
3397
+ },
3398
+ {
3399
+ name: 'shouldBurnAsPayment',
3400
+ type: 'bool',
3401
+ },
3402
+ {
3403
+ name: 'shouldTransferToEndaoment',
3404
+ type: 'bool',
3405
+ },
3406
+ {
3407
+ name: 'shouldSwapInStabPools',
3408
+ type: 'bool',
3409
+ },
3410
+ {
3411
+ name: 'shouldAuctionInstantly',
3412
+ type: 'bool',
3413
+ },
3414
+ {
3415
+ name: 'canDeposit',
3416
+ type: 'bool',
3417
+ },
3418
+ {
3419
+ name: 'canWithdraw',
3420
+ type: 'bool',
3421
+ },
3422
+ {
3423
+ name: 'canRedeemCollateral',
3424
+ type: 'bool',
3425
+ },
3426
+ {
3427
+ name: 'canRedeemInStabPool',
3428
+ type: 'bool',
3429
+ },
3430
+ {
3431
+ name: 'canBuyInAuction',
3432
+ type: 'bool',
3433
+ },
3434
+ {
3435
+ name: 'canClaimInStabPool',
3436
+ type: 'bool',
3437
+ },
3438
+ {
3439
+ name: 'specialStabPoolId',
3440
+ type: 'uint256',
3441
+ },
3442
+ {
3443
+ name: 'customAuctionParams',
3444
+ type: 'tuple',
3445
+ components: [
3446
+ {
3447
+ name: 'hasParams',
3448
+ type: 'bool',
3449
+ },
3450
+ {
3451
+ name: 'startDiscount',
3452
+ type: 'uint256',
3453
+ },
3454
+ {
3455
+ name: 'maxDiscount',
3456
+ type: 'uint256',
3457
+ },
3458
+ {
3459
+ name: 'delay',
3460
+ type: 'uint256',
3461
+ },
3462
+ {
3463
+ name: 'duration',
3464
+ type: 'uint256',
3465
+ },
3466
+ ],
3467
+ },
3468
+ {
3469
+ name: 'whitelist',
3470
+ type: 'address',
3471
+ },
3472
+ {
3473
+ name: 'isNft',
3474
+ type: 'bool',
3475
+ },
3476
+ ],
3477
+ },
3478
+ ],
3479
+ },
3480
+ ],
3481
+ },
3482
+ {
3483
+ stateMutability: 'nonpayable',
3484
+ type: 'constructor',
3485
+ inputs: [
3486
+ {
3487
+ name: '_ripeHq',
3488
+ type: 'address',
3489
+ },
3490
+ {
3491
+ name: '_minConfigTimeLock',
3492
+ type: 'uint256',
3493
+ },
3494
+ {
3495
+ name: '_maxConfigTimeLock',
3496
+ type: 'uint256',
3497
+ },
3498
+ ],
3499
+ outputs: [],
3500
+ },
3501
+ ];
3502
+ export const deployAddress = '0x277821781f0e9f6892F2742A68827e21D491e60B';
3503
+ function getRequest(method, args, contractAddressOrOptions) {
3504
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
3505
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
3506
+ const call = {
3507
+ contractName: 'SwitchboardBravo',
3508
+ method,
3509
+ args,
3510
+ address,
3511
+ deployAddress,
3512
+ defaultValue,
3513
+ getAbi: () => abi,
3514
+ with: (options) => {
3515
+ call.address = options.contractAddress;
3516
+ call.defaultValue = options.defaultValue;
3517
+ return call;
3518
+ },
3519
+ defaultTo: (defaultValue) => {
3520
+ call.defaultValue = defaultValue;
3521
+ return call;
3522
+ },
3523
+ at: (address) => {
3524
+ call.address = address;
3525
+ return call;
3526
+ },
3527
+ };
3528
+ return call;
3529
+ }
3530
+ export const call = {
3531
+ getRipeHqFromGov: (...args) => getRequest('getRipeHqFromGov', args),
3532
+ canGovern: (...args) => getRequest('canGovern', args),
3533
+ getGovernors: (...args) => getRequest('getGovernors', args),
3534
+ hasPendingGovChange: (...args) => getRequest('hasPendingGovChange', args),
3535
+ isValidGovTimeLock: (...args) => getRequest('isValidGovTimeLock', args),
3536
+ minGovChangeTimeLock: (...args) => getRequest('minGovChangeTimeLock', args),
3537
+ maxGovChangeTimeLock: (...args) => getRequest('maxGovChangeTimeLock', args),
3538
+ governance: (...args) => getRequest('governance', args),
3539
+ pendingGov: (...args) => getRequest('pendingGov', args),
3540
+ numGovChanges: (...args) => getRequest('numGovChanges', args),
3541
+ govChangeTimeLock: (...args) => getRequest('govChangeTimeLock', args),
3542
+ canConfirmAction: (...args) => getRequest('canConfirmAction', args),
3543
+ isExpired: (...args) => getRequest('isExpired', args),
3544
+ hasPendingAction: (...args) => getRequest('hasPendingAction', args),
3545
+ getActionConfirmationBlock: (...args) => getRequest('getActionConfirmationBlock', args),
3546
+ isValidActionTimeLock: (...args) => getRequest('isValidActionTimeLock', args),
3547
+ minActionTimeLock: (...args) => getRequest('minActionTimeLock', args),
3548
+ maxActionTimeLock: (...args) => getRequest('maxActionTimeLock', args),
3549
+ pendingActions: (...args) => getRequest('pendingActions', args),
3550
+ actionId: (...args) => getRequest('actionId', args),
3551
+ actionTimeLock: (...args) => getRequest('actionTimeLock', args),
3552
+ expiration: (...args) => getRequest('expiration', args),
3553
+ actionType: (...args) => getRequest('actionType', args),
3554
+ pendingAssetConfig: (...args) => getRequest('pendingAssetConfig', args),
3555
+ };
3556
+ function getMutation(functionName) {
3557
+ return {
3558
+ contractName: 'SwitchboardBravo',
3559
+ functionName,
3560
+ deployAddress,
3561
+ argsType: undefined,
3562
+ getAbi: () => abi,
3563
+ };
3564
+ }
3565
+ export const mutation = {
3566
+ startGovernanceChange: getMutation('startGovernanceChange'),
3567
+ confirmGovernanceChange: getMutation('confirmGovernanceChange'),
3568
+ cancelGovernanceChange: getMutation('cancelGovernanceChange'),
3569
+ setGovTimeLock: getMutation('setGovTimeLock'),
3570
+ finishRipeHqSetup: getMutation('finishRipeHqSetup'),
3571
+ setActionTimeLock: getMutation('setActionTimeLock'),
3572
+ setExpiration: getMutation('setExpiration'),
3573
+ setActionTimeLockAfterSetup: getMutation('setActionTimeLockAfterSetup'),
3574
+ addAsset: getMutation('addAsset'),
3575
+ setAssetDepositParams: getMutation('setAssetDepositParams'),
3576
+ setAssetLiqConfig: getMutation('setAssetLiqConfig'),
3577
+ setAssetDebtTerms: getMutation('setAssetDebtTerms'),
3578
+ setWhitelistForAsset: getMutation('setWhitelistForAsset'),
3579
+ setCanDepositAsset: getMutation('setCanDepositAsset'),
3580
+ setCanWithdrawAsset: getMutation('setCanWithdrawAsset'),
3581
+ setCanRedeemInStabPoolAsset: getMutation('setCanRedeemInStabPoolAsset'),
3582
+ setCanBuyInAuctionAsset: getMutation('setCanBuyInAuctionAsset'),
3583
+ setCanClaimInStabPoolAsset: getMutation('setCanClaimInStabPoolAsset'),
3584
+ setCanRedeemCollateralAsset: getMutation('setCanRedeemCollateralAsset'),
3585
+ executePendingAction: getMutation('executePendingAction'),
3586
+ cancelPendingAction: getMutation('cancelPendingAction'),
3587
+ };
3588
+ export function toSdk(publicClient, walletClient) {
3589
+ return {
3590
+ deployAddress,
3591
+ abi,
3592
+ // Queries
3593
+ getRipeHqFromGov: (...args) => singleQuery(publicClient, call.getRipeHqFromGov(...args)),
3594
+ canGovern: (...args) => singleQuery(publicClient, call.canGovern(...args)),
3595
+ getGovernors: (...args) => singleQuery(publicClient, call.getGovernors(...args)),
3596
+ hasPendingGovChange: (...args) => singleQuery(publicClient, call.hasPendingGovChange(...args)),
3597
+ isValidGovTimeLock: (...args) => singleQuery(publicClient, call.isValidGovTimeLock(...args)),
3598
+ minGovChangeTimeLock: (...args) => singleQuery(publicClient, call.minGovChangeTimeLock(...args)),
3599
+ maxGovChangeTimeLock: (...args) => singleQuery(publicClient, call.maxGovChangeTimeLock(...args)),
3600
+ governance: (...args) => singleQuery(publicClient, call.governance(...args)),
3601
+ pendingGov: (...args) => singleQuery(publicClient, call.pendingGov(...args)),
3602
+ numGovChanges: (...args) => singleQuery(publicClient, call.numGovChanges(...args)),
3603
+ govChangeTimeLock: (...args) => singleQuery(publicClient, call.govChangeTimeLock(...args)),
3604
+ canConfirmAction: (...args) => singleQuery(publicClient, call.canConfirmAction(...args)),
3605
+ isExpired: (...args) => singleQuery(publicClient, call.isExpired(...args)),
3606
+ hasPendingAction: (...args) => singleQuery(publicClient, call.hasPendingAction(...args)),
3607
+ getActionConfirmationBlock: (...args) => singleQuery(publicClient, call.getActionConfirmationBlock(...args)),
3608
+ isValidActionTimeLock: (...args) => singleQuery(publicClient, call.isValidActionTimeLock(...args)),
3609
+ minActionTimeLock: (...args) => singleQuery(publicClient, call.minActionTimeLock(...args)),
3610
+ maxActionTimeLock: (...args) => singleQuery(publicClient, call.maxActionTimeLock(...args)),
3611
+ pendingActions: (...args) => singleQuery(publicClient, call.pendingActions(...args)),
3612
+ actionId: (...args) => singleQuery(publicClient, call.actionId(...args)),
3613
+ actionTimeLock: (...args) => singleQuery(publicClient, call.actionTimeLock(...args)),
3614
+ expiration: (...args) => singleQuery(publicClient, call.expiration(...args)),
3615
+ actionType: (...args) => singleQuery(publicClient, call.actionType(...args)),
3616
+ pendingAssetConfig: (...args) => singleQuery(publicClient, call.pendingAssetConfig(...args)),
3617
+ // Mutations
3618
+ startGovernanceChange: (...args) => mutate(walletClient, mutation.startGovernanceChange)(...args),
3619
+ confirmGovernanceChange: (...args) => mutate(walletClient, mutation.confirmGovernanceChange)(...args),
3620
+ cancelGovernanceChange: (...args) => mutate(walletClient, mutation.cancelGovernanceChange)(...args),
3621
+ setGovTimeLock: (...args) => mutate(walletClient, mutation.setGovTimeLock)(...args),
3622
+ finishRipeHqSetup: (...args) => mutate(walletClient, mutation.finishRipeHqSetup)(...args),
3623
+ setActionTimeLock: (...args) => mutate(walletClient, mutation.setActionTimeLock)(...args),
3624
+ setExpiration: (...args) => mutate(walletClient, mutation.setExpiration)(...args),
3625
+ setActionTimeLockAfterSetup: (...args) => mutate(walletClient, mutation.setActionTimeLockAfterSetup)(...args),
3626
+ addAsset: (...args) => mutate(walletClient, mutation.addAsset)(...args),
3627
+ setAssetDepositParams: (...args) => mutate(walletClient, mutation.setAssetDepositParams)(...args),
3628
+ setAssetLiqConfig: (...args) => mutate(walletClient, mutation.setAssetLiqConfig)(...args),
3629
+ setAssetDebtTerms: (...args) => mutate(walletClient, mutation.setAssetDebtTerms)(...args),
3630
+ setWhitelistForAsset: (...args) => mutate(walletClient, mutation.setWhitelistForAsset)(...args),
3631
+ setCanDepositAsset: (...args) => mutate(walletClient, mutation.setCanDepositAsset)(...args),
3632
+ setCanWithdrawAsset: (...args) => mutate(walletClient, mutation.setCanWithdrawAsset)(...args),
3633
+ setCanRedeemInStabPoolAsset: (...args) => mutate(walletClient, mutation.setCanRedeemInStabPoolAsset)(...args),
3634
+ setCanBuyInAuctionAsset: (...args) => mutate(walletClient, mutation.setCanBuyInAuctionAsset)(...args),
3635
+ setCanClaimInStabPoolAsset: (...args) => mutate(walletClient, mutation.setCanClaimInStabPoolAsset)(...args),
3636
+ setCanRedeemCollateralAsset: (...args) => mutate(walletClient, mutation.setCanRedeemCollateralAsset)(...args),
3637
+ executePendingAction: (...args) => mutate(walletClient, mutation.executePendingAction)(...args),
3638
+ cancelPendingAction: (...args) => mutate(walletClient, mutation.cancelPendingAction)(...args),
3639
+ };
3640
+ }