@underscore-finance/sdk 1.2.20-next.0 → 1.2.20-next.1

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