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