@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,1484 @@
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: 'PendingBackpackItemAdded',
9
+ inputs: [
10
+ {
11
+ name: 'backpackType',
12
+ type: 'uint256',
13
+ indexed: false,
14
+ },
15
+ {
16
+ name: 'addr',
17
+ type: 'address',
18
+ indexed: true,
19
+ },
20
+ {
21
+ name: 'actionId',
22
+ type: 'uint256',
23
+ indexed: false,
24
+ },
25
+ {
26
+ name: 'confirmationBlock',
27
+ type: 'uint256',
28
+ indexed: false,
29
+ },
30
+ {
31
+ name: 'addedBy',
32
+ type: 'address',
33
+ indexed: true,
34
+ },
35
+ ],
36
+ anonymous: false,
37
+ type: 'event',
38
+ },
39
+ {
40
+ name: 'BackpackItemConfirmed',
41
+ inputs: [
42
+ {
43
+ name: 'backpackType',
44
+ type: 'uint256',
45
+ indexed: false,
46
+ },
47
+ {
48
+ name: 'addr',
49
+ type: 'address',
50
+ indexed: true,
51
+ },
52
+ {
53
+ name: 'actionId',
54
+ type: 'uint256',
55
+ indexed: false,
56
+ },
57
+ {
58
+ name: 'confirmedBy',
59
+ type: 'address',
60
+ indexed: true,
61
+ },
62
+ ],
63
+ anonymous: false,
64
+ type: 'event',
65
+ },
66
+ {
67
+ name: 'PendingBackpackItemCancelled',
68
+ inputs: [
69
+ {
70
+ name: 'backpackType',
71
+ type: 'uint256',
72
+ indexed: false,
73
+ },
74
+ {
75
+ name: 'addr',
76
+ type: 'address',
77
+ indexed: true,
78
+ },
79
+ {
80
+ name: 'actionId',
81
+ type: 'uint256',
82
+ indexed: false,
83
+ },
84
+ {
85
+ name: 'cancelledBy',
86
+ type: 'address',
87
+ indexed: true,
88
+ },
89
+ ],
90
+ anonymous: false,
91
+ type: 'event',
92
+ },
93
+ {
94
+ name: 'GovChangeTimeLockModified',
95
+ inputs: [
96
+ {
97
+ name: 'prevTimeLock',
98
+ type: 'uint256',
99
+ indexed: false,
100
+ },
101
+ {
102
+ name: 'newTimeLock',
103
+ type: 'uint256',
104
+ indexed: false,
105
+ },
106
+ ],
107
+ anonymous: false,
108
+ type: 'event',
109
+ },
110
+ {
111
+ name: 'ExpirationSet',
112
+ inputs: [
113
+ {
114
+ name: 'expiration',
115
+ type: 'uint256',
116
+ indexed: false,
117
+ },
118
+ ],
119
+ anonymous: false,
120
+ type: 'event',
121
+ },
122
+ {
123
+ name: 'ActionTimeLockSet',
124
+ inputs: [
125
+ {
126
+ name: 'newTimeLock',
127
+ type: 'uint256',
128
+ indexed: false,
129
+ },
130
+ {
131
+ name: 'prevTimeLock',
132
+ type: 'uint256',
133
+ indexed: false,
134
+ },
135
+ ],
136
+ anonymous: false,
137
+ type: 'event',
138
+ },
139
+ {
140
+ name: 'GovChangeStarted',
141
+ inputs: [
142
+ {
143
+ name: 'prevGov',
144
+ type: 'address',
145
+ indexed: true,
146
+ },
147
+ {
148
+ name: 'newGov',
149
+ type: 'address',
150
+ indexed: true,
151
+ },
152
+ {
153
+ name: 'confirmBlock',
154
+ type: 'uint256',
155
+ indexed: false,
156
+ },
157
+ ],
158
+ anonymous: false,
159
+ type: 'event',
160
+ },
161
+ {
162
+ name: 'GovChangeConfirmed',
163
+ inputs: [
164
+ {
165
+ name: 'prevGov',
166
+ type: 'address',
167
+ indexed: true,
168
+ },
169
+ {
170
+ name: 'newGov',
171
+ type: 'address',
172
+ indexed: true,
173
+ },
174
+ {
175
+ name: 'initiatedBlock',
176
+ type: 'uint256',
177
+ indexed: false,
178
+ },
179
+ {
180
+ name: 'confirmBlock',
181
+ type: 'uint256',
182
+ indexed: false,
183
+ },
184
+ ],
185
+ anonymous: false,
186
+ type: 'event',
187
+ },
188
+ {
189
+ name: 'GovChangeCancelled',
190
+ inputs: [
191
+ {
192
+ name: 'cancelledGov',
193
+ type: 'address',
194
+ indexed: true,
195
+ },
196
+ {
197
+ name: 'initiatedBlock',
198
+ type: 'uint256',
199
+ indexed: false,
200
+ },
201
+ {
202
+ name: 'confirmBlock',
203
+ type: 'uint256',
204
+ indexed: false,
205
+ },
206
+ ],
207
+ anonymous: false,
208
+ type: 'event',
209
+ },
210
+ {
211
+ name: 'GovRelinquished',
212
+ inputs: [
213
+ {
214
+ name: 'prevGov',
215
+ type: 'address',
216
+ indexed: true,
217
+ },
218
+ ],
219
+ anonymous: false,
220
+ type: 'event',
221
+ },
222
+ {
223
+ name: 'UndyHqSetupFinished',
224
+ inputs: [
225
+ {
226
+ name: 'prevGov',
227
+ type: 'address',
228
+ indexed: true,
229
+ },
230
+ {
231
+ name: 'newGov',
232
+ type: 'address',
233
+ indexed: true,
234
+ },
235
+ {
236
+ name: 'timeLock',
237
+ type: 'uint256',
238
+ indexed: false,
239
+ },
240
+ ],
241
+ anonymous: false,
242
+ type: 'event',
243
+ },
244
+ {
245
+ name: 'DepartmentPauseModified',
246
+ inputs: [
247
+ {
248
+ name: 'isPaused',
249
+ type: 'bool',
250
+ indexed: false,
251
+ },
252
+ ],
253
+ anonymous: false,
254
+ type: 'event',
255
+ },
256
+ {
257
+ name: 'DepartmentFundsRecovered',
258
+ inputs: [
259
+ {
260
+ name: 'asset',
261
+ type: 'address',
262
+ indexed: true,
263
+ },
264
+ {
265
+ name: 'recipient',
266
+ type: 'address',
267
+ indexed: true,
268
+ },
269
+ {
270
+ name: 'balance',
271
+ type: 'uint256',
272
+ indexed: false,
273
+ },
274
+ ],
275
+ anonymous: false,
276
+ type: 'event',
277
+ },
278
+ {
279
+ stateMutability: 'view',
280
+ type: 'function',
281
+ name: 'getUndyHqFromGov',
282
+ inputs: [],
283
+ outputs: [
284
+ {
285
+ name: '',
286
+ type: 'address',
287
+ },
288
+ ],
289
+ },
290
+ {
291
+ stateMutability: 'view',
292
+ type: 'function',
293
+ name: 'canGovern',
294
+ inputs: [
295
+ {
296
+ name: '_addr',
297
+ type: 'address',
298
+ },
299
+ ],
300
+ outputs: [
301
+ {
302
+ name: '',
303
+ type: 'bool',
304
+ },
305
+ ],
306
+ },
307
+ {
308
+ stateMutability: 'view',
309
+ type: 'function',
310
+ name: 'getGovernors',
311
+ inputs: [],
312
+ outputs: [
313
+ {
314
+ name: '',
315
+ type: 'address[]',
316
+ },
317
+ ],
318
+ },
319
+ {
320
+ stateMutability: 'view',
321
+ type: 'function',
322
+ name: 'hasPendingGovChange',
323
+ inputs: [],
324
+ outputs: [
325
+ {
326
+ name: '',
327
+ type: 'bool',
328
+ },
329
+ ],
330
+ },
331
+ {
332
+ stateMutability: 'nonpayable',
333
+ type: 'function',
334
+ name: 'startGovernanceChange',
335
+ inputs: [
336
+ {
337
+ name: '_newGov',
338
+ type: 'address',
339
+ },
340
+ ],
341
+ outputs: [],
342
+ },
343
+ {
344
+ stateMutability: 'nonpayable',
345
+ type: 'function',
346
+ name: 'confirmGovernanceChange',
347
+ inputs: [],
348
+ outputs: [],
349
+ },
350
+ {
351
+ stateMutability: 'nonpayable',
352
+ type: 'function',
353
+ name: 'cancelGovernanceChange',
354
+ inputs: [],
355
+ outputs: [],
356
+ },
357
+ {
358
+ stateMutability: 'nonpayable',
359
+ type: 'function',
360
+ name: 'relinquishGov',
361
+ inputs: [],
362
+ outputs: [],
363
+ },
364
+ {
365
+ stateMutability: 'nonpayable',
366
+ type: 'function',
367
+ name: 'setGovTimeLock',
368
+ inputs: [
369
+ {
370
+ name: '_numBlocks',
371
+ type: 'uint256',
372
+ },
373
+ ],
374
+ outputs: [
375
+ {
376
+ name: '',
377
+ type: 'bool',
378
+ },
379
+ ],
380
+ },
381
+ {
382
+ stateMutability: 'view',
383
+ type: 'function',
384
+ name: 'isValidGovTimeLock',
385
+ inputs: [
386
+ {
387
+ name: '_newTimeLock',
388
+ type: 'uint256',
389
+ },
390
+ ],
391
+ outputs: [
392
+ {
393
+ name: '',
394
+ type: 'bool',
395
+ },
396
+ ],
397
+ },
398
+ {
399
+ stateMutability: 'view',
400
+ type: 'function',
401
+ name: 'minGovChangeTimeLock',
402
+ inputs: [],
403
+ outputs: [
404
+ {
405
+ name: '',
406
+ type: 'uint256',
407
+ },
408
+ ],
409
+ },
410
+ {
411
+ stateMutability: 'view',
412
+ type: 'function',
413
+ name: 'maxGovChangeTimeLock',
414
+ inputs: [],
415
+ outputs: [
416
+ {
417
+ name: '',
418
+ type: 'uint256',
419
+ },
420
+ ],
421
+ },
422
+ {
423
+ stateMutability: 'nonpayable',
424
+ type: 'function',
425
+ name: 'finishUndyHqSetup',
426
+ inputs: [
427
+ {
428
+ name: '_newGov',
429
+ type: 'address',
430
+ },
431
+ ],
432
+ outputs: [
433
+ {
434
+ name: '',
435
+ type: 'bool',
436
+ },
437
+ ],
438
+ },
439
+ {
440
+ stateMutability: 'nonpayable',
441
+ type: 'function',
442
+ name: 'finishUndyHqSetup',
443
+ inputs: [
444
+ {
445
+ name: '_newGov',
446
+ type: 'address',
447
+ },
448
+ {
449
+ name: '_timeLock',
450
+ type: 'uint256',
451
+ },
452
+ ],
453
+ outputs: [
454
+ {
455
+ name: '',
456
+ type: 'bool',
457
+ },
458
+ ],
459
+ },
460
+ {
461
+ stateMutability: 'view',
462
+ type: 'function',
463
+ name: 'governance',
464
+ inputs: [],
465
+ outputs: [
466
+ {
467
+ name: '',
468
+ type: 'address',
469
+ },
470
+ ],
471
+ },
472
+ {
473
+ stateMutability: 'view',
474
+ type: 'function',
475
+ name: 'pendingGov',
476
+ inputs: [],
477
+ outputs: [
478
+ {
479
+ name: '',
480
+ type: 'tuple',
481
+ components: [
482
+ {
483
+ name: 'newGov',
484
+ type: 'address',
485
+ },
486
+ {
487
+ name: 'initiatedBlock',
488
+ type: 'uint256',
489
+ },
490
+ {
491
+ name: 'confirmBlock',
492
+ type: 'uint256',
493
+ },
494
+ ],
495
+ },
496
+ ],
497
+ },
498
+ {
499
+ stateMutability: 'view',
500
+ type: 'function',
501
+ name: 'numGovChanges',
502
+ inputs: [],
503
+ outputs: [
504
+ {
505
+ name: '',
506
+ type: 'uint256',
507
+ },
508
+ ],
509
+ },
510
+ {
511
+ stateMutability: 'view',
512
+ type: 'function',
513
+ name: 'govChangeTimeLock',
514
+ inputs: [],
515
+ outputs: [
516
+ {
517
+ name: '',
518
+ type: 'uint256',
519
+ },
520
+ ],
521
+ },
522
+ {
523
+ stateMutability: 'view',
524
+ type: 'function',
525
+ name: 'getAddys',
526
+ inputs: [],
527
+ outputs: [
528
+ {
529
+ name: '',
530
+ type: 'tuple',
531
+ components: [
532
+ {
533
+ name: 'hq',
534
+ type: 'address',
535
+ },
536
+ {
537
+ name: 'undyToken',
538
+ type: 'address',
539
+ },
540
+ {
541
+ name: 'ledger',
542
+ type: 'address',
543
+ },
544
+ {
545
+ name: 'missionControl',
546
+ type: 'address',
547
+ },
548
+ {
549
+ name: 'legoBook',
550
+ type: 'address',
551
+ },
552
+ {
553
+ name: 'switchboard',
554
+ type: 'address',
555
+ },
556
+ {
557
+ name: 'hatchery',
558
+ type: 'address',
559
+ },
560
+ {
561
+ name: 'lootDistributor',
562
+ type: 'address',
563
+ },
564
+ {
565
+ name: 'appraiser',
566
+ type: 'address',
567
+ },
568
+ {
569
+ name: 'walletBackpack',
570
+ type: 'address',
571
+ },
572
+ {
573
+ name: 'billing',
574
+ type: 'address',
575
+ },
576
+ ],
577
+ },
578
+ ],
579
+ },
580
+ {
581
+ stateMutability: 'view',
582
+ type: 'function',
583
+ name: 'getUndyHq',
584
+ inputs: [],
585
+ outputs: [
586
+ {
587
+ name: '',
588
+ type: 'address',
589
+ },
590
+ ],
591
+ },
592
+ {
593
+ stateMutability: 'view',
594
+ type: 'function',
595
+ name: 'canMintUndy',
596
+ inputs: [],
597
+ outputs: [
598
+ {
599
+ name: '',
600
+ type: 'bool',
601
+ },
602
+ ],
603
+ },
604
+ {
605
+ stateMutability: 'nonpayable',
606
+ type: 'function',
607
+ name: 'pause',
608
+ inputs: [
609
+ {
610
+ name: '_shouldPause',
611
+ type: 'bool',
612
+ },
613
+ ],
614
+ outputs: [],
615
+ },
616
+ {
617
+ stateMutability: 'nonpayable',
618
+ type: 'function',
619
+ name: 'recoverFunds',
620
+ inputs: [
621
+ {
622
+ name: '_recipient',
623
+ type: 'address',
624
+ },
625
+ {
626
+ name: '_asset',
627
+ type: 'address',
628
+ },
629
+ ],
630
+ outputs: [],
631
+ },
632
+ {
633
+ stateMutability: 'nonpayable',
634
+ type: 'function',
635
+ name: 'recoverFundsMany',
636
+ inputs: [
637
+ {
638
+ name: '_recipient',
639
+ type: 'address',
640
+ },
641
+ {
642
+ name: '_assets',
643
+ type: 'address[]',
644
+ },
645
+ ],
646
+ outputs: [],
647
+ },
648
+ {
649
+ stateMutability: 'view',
650
+ type: 'function',
651
+ name: 'isPaused',
652
+ inputs: [],
653
+ outputs: [
654
+ {
655
+ name: '',
656
+ type: 'bool',
657
+ },
658
+ ],
659
+ },
660
+ {
661
+ stateMutability: 'view',
662
+ type: 'function',
663
+ name: 'canConfirmAction',
664
+ inputs: [
665
+ {
666
+ name: '_actionId',
667
+ type: 'uint256',
668
+ },
669
+ ],
670
+ outputs: [
671
+ {
672
+ name: '',
673
+ type: 'bool',
674
+ },
675
+ ],
676
+ },
677
+ {
678
+ stateMutability: 'view',
679
+ type: 'function',
680
+ name: 'isExpired',
681
+ inputs: [
682
+ {
683
+ name: '_actionId',
684
+ type: 'uint256',
685
+ },
686
+ ],
687
+ outputs: [
688
+ {
689
+ name: '',
690
+ type: 'bool',
691
+ },
692
+ ],
693
+ },
694
+ {
695
+ stateMutability: 'view',
696
+ type: 'function',
697
+ name: 'hasPendingAction',
698
+ inputs: [
699
+ {
700
+ name: '_actionId',
701
+ type: 'uint256',
702
+ },
703
+ ],
704
+ outputs: [
705
+ {
706
+ name: '',
707
+ type: 'bool',
708
+ },
709
+ ],
710
+ },
711
+ {
712
+ stateMutability: 'view',
713
+ type: 'function',
714
+ name: 'getActionConfirmationBlock',
715
+ inputs: [
716
+ {
717
+ name: '_actionId',
718
+ type: 'uint256',
719
+ },
720
+ ],
721
+ outputs: [
722
+ {
723
+ name: '',
724
+ type: 'uint256',
725
+ },
726
+ ],
727
+ },
728
+ {
729
+ stateMutability: 'nonpayable',
730
+ type: 'function',
731
+ name: 'setActionTimeLock',
732
+ inputs: [
733
+ {
734
+ name: '_newTimeLock',
735
+ type: 'uint256',
736
+ },
737
+ ],
738
+ outputs: [
739
+ {
740
+ name: '',
741
+ type: 'bool',
742
+ },
743
+ ],
744
+ },
745
+ {
746
+ stateMutability: 'view',
747
+ type: 'function',
748
+ name: 'isValidActionTimeLock',
749
+ inputs: [
750
+ {
751
+ name: '_newTimeLock',
752
+ type: 'uint256',
753
+ },
754
+ ],
755
+ outputs: [
756
+ {
757
+ name: '',
758
+ type: 'bool',
759
+ },
760
+ ],
761
+ },
762
+ {
763
+ stateMutability: 'view',
764
+ type: 'function',
765
+ name: 'minActionTimeLock',
766
+ inputs: [],
767
+ outputs: [
768
+ {
769
+ name: '',
770
+ type: 'uint256',
771
+ },
772
+ ],
773
+ },
774
+ {
775
+ stateMutability: 'view',
776
+ type: 'function',
777
+ name: 'maxActionTimeLock',
778
+ inputs: [],
779
+ outputs: [
780
+ {
781
+ name: '',
782
+ type: 'uint256',
783
+ },
784
+ ],
785
+ },
786
+ {
787
+ stateMutability: 'nonpayable',
788
+ type: 'function',
789
+ name: 'setExpiration',
790
+ inputs: [
791
+ {
792
+ name: '_expiration',
793
+ type: 'uint256',
794
+ },
795
+ ],
796
+ outputs: [
797
+ {
798
+ name: '',
799
+ type: 'bool',
800
+ },
801
+ ],
802
+ },
803
+ {
804
+ stateMutability: 'nonpayable',
805
+ type: 'function',
806
+ name: 'setActionTimeLockAfterSetup',
807
+ inputs: [],
808
+ outputs: [
809
+ {
810
+ name: '',
811
+ type: 'bool',
812
+ },
813
+ ],
814
+ },
815
+ {
816
+ stateMutability: 'nonpayable',
817
+ type: 'function',
818
+ name: 'setActionTimeLockAfterSetup',
819
+ inputs: [
820
+ {
821
+ name: '_newTimeLock',
822
+ type: 'uint256',
823
+ },
824
+ ],
825
+ outputs: [
826
+ {
827
+ name: '',
828
+ type: 'bool',
829
+ },
830
+ ],
831
+ },
832
+ {
833
+ stateMutability: 'view',
834
+ type: 'function',
835
+ name: 'pendingActions',
836
+ inputs: [
837
+ {
838
+ name: 'arg0',
839
+ type: 'uint256',
840
+ },
841
+ ],
842
+ outputs: [
843
+ {
844
+ name: '',
845
+ type: 'tuple',
846
+ components: [
847
+ {
848
+ name: 'initiatedBlock',
849
+ type: 'uint256',
850
+ },
851
+ {
852
+ name: 'confirmBlock',
853
+ type: 'uint256',
854
+ },
855
+ {
856
+ name: 'expiration',
857
+ type: 'uint256',
858
+ },
859
+ ],
860
+ },
861
+ ],
862
+ },
863
+ {
864
+ stateMutability: 'view',
865
+ type: 'function',
866
+ name: 'actionId',
867
+ inputs: [],
868
+ outputs: [
869
+ {
870
+ name: '',
871
+ type: 'uint256',
872
+ },
873
+ ],
874
+ },
875
+ {
876
+ stateMutability: 'view',
877
+ type: 'function',
878
+ name: 'actionTimeLock',
879
+ inputs: [],
880
+ outputs: [
881
+ {
882
+ name: '',
883
+ type: 'uint256',
884
+ },
885
+ ],
886
+ },
887
+ {
888
+ stateMutability: 'view',
889
+ type: 'function',
890
+ name: 'expiration',
891
+ inputs: [],
892
+ outputs: [
893
+ {
894
+ name: '',
895
+ type: 'uint256',
896
+ },
897
+ ],
898
+ },
899
+ {
900
+ stateMutability: 'nonpayable',
901
+ type: 'function',
902
+ name: 'addPendingKernel',
903
+ inputs: [
904
+ {
905
+ name: '_addr',
906
+ type: 'address',
907
+ },
908
+ ],
909
+ outputs: [
910
+ {
911
+ name: '',
912
+ type: 'bool',
913
+ },
914
+ ],
915
+ },
916
+ {
917
+ stateMutability: 'nonpayable',
918
+ type: 'function',
919
+ name: 'addPendingSentinel',
920
+ inputs: [
921
+ {
922
+ name: '_addr',
923
+ type: 'address',
924
+ },
925
+ ],
926
+ outputs: [
927
+ {
928
+ name: '',
929
+ type: 'bool',
930
+ },
931
+ ],
932
+ },
933
+ {
934
+ stateMutability: 'nonpayable',
935
+ type: 'function',
936
+ name: 'addPendingHighCommand',
937
+ inputs: [
938
+ {
939
+ name: '_addr',
940
+ type: 'address',
941
+ },
942
+ ],
943
+ outputs: [
944
+ {
945
+ name: '',
946
+ type: 'bool',
947
+ },
948
+ ],
949
+ },
950
+ {
951
+ stateMutability: 'nonpayable',
952
+ type: 'function',
953
+ name: 'addPendingPaymaster',
954
+ inputs: [
955
+ {
956
+ name: '_addr',
957
+ type: 'address',
958
+ },
959
+ ],
960
+ outputs: [
961
+ {
962
+ name: '',
963
+ type: 'bool',
964
+ },
965
+ ],
966
+ },
967
+ {
968
+ stateMutability: 'nonpayable',
969
+ type: 'function',
970
+ name: 'addPendingChequeBook',
971
+ inputs: [
972
+ {
973
+ name: '_addr',
974
+ type: 'address',
975
+ },
976
+ ],
977
+ outputs: [
978
+ {
979
+ name: '',
980
+ type: 'bool',
981
+ },
982
+ ],
983
+ },
984
+ {
985
+ stateMutability: 'nonpayable',
986
+ type: 'function',
987
+ name: 'addPendingMigrator',
988
+ inputs: [
989
+ {
990
+ name: '_addr',
991
+ type: 'address',
992
+ },
993
+ ],
994
+ outputs: [
995
+ {
996
+ name: '',
997
+ type: 'bool',
998
+ },
999
+ ],
1000
+ },
1001
+ {
1002
+ stateMutability: 'view',
1003
+ type: 'function',
1004
+ name: 'canAddBackpackItem',
1005
+ inputs: [
1006
+ {
1007
+ name: '_backpackType',
1008
+ type: 'uint256',
1009
+ },
1010
+ {
1011
+ name: '_addr',
1012
+ type: 'address',
1013
+ },
1014
+ ],
1015
+ outputs: [
1016
+ {
1017
+ name: '',
1018
+ type: 'bool',
1019
+ },
1020
+ ],
1021
+ },
1022
+ {
1023
+ stateMutability: 'nonpayable',
1024
+ type: 'function',
1025
+ name: 'confirmPendingKernel',
1026
+ inputs: [],
1027
+ outputs: [
1028
+ {
1029
+ name: '',
1030
+ type: 'bool',
1031
+ },
1032
+ ],
1033
+ },
1034
+ {
1035
+ stateMutability: 'nonpayable',
1036
+ type: 'function',
1037
+ name: 'confirmPendingSentinel',
1038
+ inputs: [],
1039
+ outputs: [
1040
+ {
1041
+ name: '',
1042
+ type: 'bool',
1043
+ },
1044
+ ],
1045
+ },
1046
+ {
1047
+ stateMutability: 'nonpayable',
1048
+ type: 'function',
1049
+ name: 'confirmPendingHighCommand',
1050
+ inputs: [],
1051
+ outputs: [
1052
+ {
1053
+ name: '',
1054
+ type: 'bool',
1055
+ },
1056
+ ],
1057
+ },
1058
+ {
1059
+ stateMutability: 'nonpayable',
1060
+ type: 'function',
1061
+ name: 'confirmPendingPaymaster',
1062
+ inputs: [],
1063
+ outputs: [
1064
+ {
1065
+ name: '',
1066
+ type: 'bool',
1067
+ },
1068
+ ],
1069
+ },
1070
+ {
1071
+ stateMutability: 'nonpayable',
1072
+ type: 'function',
1073
+ name: 'confirmPendingChequeBook',
1074
+ inputs: [],
1075
+ outputs: [
1076
+ {
1077
+ name: '',
1078
+ type: 'bool',
1079
+ },
1080
+ ],
1081
+ },
1082
+ {
1083
+ stateMutability: 'nonpayable',
1084
+ type: 'function',
1085
+ name: 'confirmPendingMigrator',
1086
+ inputs: [],
1087
+ outputs: [
1088
+ {
1089
+ name: '',
1090
+ type: 'bool',
1091
+ },
1092
+ ],
1093
+ },
1094
+ {
1095
+ stateMutability: 'nonpayable',
1096
+ type: 'function',
1097
+ name: 'cancelPendingKernel',
1098
+ inputs: [],
1099
+ outputs: [
1100
+ {
1101
+ name: '',
1102
+ type: 'bool',
1103
+ },
1104
+ ],
1105
+ },
1106
+ {
1107
+ stateMutability: 'nonpayable',
1108
+ type: 'function',
1109
+ name: 'cancelPendingSentinel',
1110
+ inputs: [],
1111
+ outputs: [
1112
+ {
1113
+ name: '',
1114
+ type: 'bool',
1115
+ },
1116
+ ],
1117
+ },
1118
+ {
1119
+ stateMutability: 'nonpayable',
1120
+ type: 'function',
1121
+ name: 'cancelPendingHighCommand',
1122
+ inputs: [],
1123
+ outputs: [
1124
+ {
1125
+ name: '',
1126
+ type: 'bool',
1127
+ },
1128
+ ],
1129
+ },
1130
+ {
1131
+ stateMutability: 'nonpayable',
1132
+ type: 'function',
1133
+ name: 'cancelPendingPaymaster',
1134
+ inputs: [],
1135
+ outputs: [
1136
+ {
1137
+ name: '',
1138
+ type: 'bool',
1139
+ },
1140
+ ],
1141
+ },
1142
+ {
1143
+ stateMutability: 'nonpayable',
1144
+ type: 'function',
1145
+ name: 'cancelPendingChequeBook',
1146
+ inputs: [],
1147
+ outputs: [
1148
+ {
1149
+ name: '',
1150
+ type: 'bool',
1151
+ },
1152
+ ],
1153
+ },
1154
+ {
1155
+ stateMutability: 'nonpayable',
1156
+ type: 'function',
1157
+ name: 'cancelPendingMigrator',
1158
+ inputs: [],
1159
+ outputs: [
1160
+ {
1161
+ name: '',
1162
+ type: 'bool',
1163
+ },
1164
+ ],
1165
+ },
1166
+ {
1167
+ stateMutability: 'view',
1168
+ type: 'function',
1169
+ name: 'isRegisteredBackpackItem',
1170
+ inputs: [
1171
+ {
1172
+ name: '_addr',
1173
+ type: 'address',
1174
+ },
1175
+ ],
1176
+ outputs: [
1177
+ {
1178
+ name: '',
1179
+ type: 'bool',
1180
+ },
1181
+ ],
1182
+ },
1183
+ {
1184
+ stateMutability: 'view',
1185
+ type: 'function',
1186
+ name: 'kernel',
1187
+ inputs: [],
1188
+ outputs: [
1189
+ {
1190
+ name: '',
1191
+ type: 'address',
1192
+ },
1193
+ ],
1194
+ },
1195
+ {
1196
+ stateMutability: 'view',
1197
+ type: 'function',
1198
+ name: 'sentinel',
1199
+ inputs: [],
1200
+ outputs: [
1201
+ {
1202
+ name: '',
1203
+ type: 'address',
1204
+ },
1205
+ ],
1206
+ },
1207
+ {
1208
+ stateMutability: 'view',
1209
+ type: 'function',
1210
+ name: 'highCommand',
1211
+ inputs: [],
1212
+ outputs: [
1213
+ {
1214
+ name: '',
1215
+ type: 'address',
1216
+ },
1217
+ ],
1218
+ },
1219
+ {
1220
+ stateMutability: 'view',
1221
+ type: 'function',
1222
+ name: 'paymaster',
1223
+ inputs: [],
1224
+ outputs: [
1225
+ {
1226
+ name: '',
1227
+ type: 'address',
1228
+ },
1229
+ ],
1230
+ },
1231
+ {
1232
+ stateMutability: 'view',
1233
+ type: 'function',
1234
+ name: 'chequeBook',
1235
+ inputs: [],
1236
+ outputs: [
1237
+ {
1238
+ name: '',
1239
+ type: 'address',
1240
+ },
1241
+ ],
1242
+ },
1243
+ {
1244
+ stateMutability: 'view',
1245
+ type: 'function',
1246
+ name: 'migrator',
1247
+ inputs: [],
1248
+ outputs: [
1249
+ {
1250
+ name: '',
1251
+ type: 'address',
1252
+ },
1253
+ ],
1254
+ },
1255
+ {
1256
+ stateMutability: 'view',
1257
+ type: 'function',
1258
+ name: 'pendingUpdates',
1259
+ inputs: [
1260
+ {
1261
+ name: 'arg0',
1262
+ type: 'uint256',
1263
+ },
1264
+ ],
1265
+ outputs: [
1266
+ {
1267
+ name: '',
1268
+ type: 'tuple',
1269
+ components: [
1270
+ {
1271
+ name: 'actionId',
1272
+ type: 'uint256',
1273
+ },
1274
+ {
1275
+ name: 'addr',
1276
+ type: 'address',
1277
+ },
1278
+ ],
1279
+ },
1280
+ ],
1281
+ },
1282
+ {
1283
+ stateMutability: 'nonpayable',
1284
+ type: 'constructor',
1285
+ inputs: [
1286
+ {
1287
+ name: '_undyHq',
1288
+ type: 'address',
1289
+ },
1290
+ {
1291
+ name: '_tempGov',
1292
+ type: 'address',
1293
+ },
1294
+ {
1295
+ name: '_minTimeLock',
1296
+ type: 'uint256',
1297
+ },
1298
+ {
1299
+ name: '_maxTimeLock',
1300
+ type: 'uint256',
1301
+ },
1302
+ ],
1303
+ outputs: [],
1304
+ },
1305
+ ];
1306
+ export const deployAddress = '0x0E8D974Cdea08BcAa43421A15B7947Ec901f5CcD';
1307
+ function getRequest(method, args, contractAddressOrOptions) {
1308
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
1309
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
1310
+ const call = {
1311
+ contractName: 'WalletBackpack',
1312
+ method,
1313
+ args,
1314
+ address,
1315
+ deployAddress,
1316
+ defaultValue,
1317
+ getAbi: () => abi,
1318
+ with: (options) => {
1319
+ call.address = options.contractAddress;
1320
+ call.defaultValue = options.defaultValue;
1321
+ return call;
1322
+ },
1323
+ defaultTo: (defaultValue) => {
1324
+ call.defaultValue = defaultValue;
1325
+ return call;
1326
+ },
1327
+ at: (address) => {
1328
+ call.address = address;
1329
+ return call;
1330
+ },
1331
+ };
1332
+ return call;
1333
+ }
1334
+ export const call = {
1335
+ getUndyHqFromGov: (...args) => getRequest('getUndyHqFromGov', args),
1336
+ canGovern: (...args) => getRequest('canGovern', args),
1337
+ getGovernors: (...args) => getRequest('getGovernors', args),
1338
+ hasPendingGovChange: (...args) => getRequest('hasPendingGovChange', args),
1339
+ isValidGovTimeLock: (...args) => getRequest('isValidGovTimeLock', args),
1340
+ minGovChangeTimeLock: (...args) => getRequest('minGovChangeTimeLock', args),
1341
+ maxGovChangeTimeLock: (...args) => getRequest('maxGovChangeTimeLock', args),
1342
+ governance: (...args) => getRequest('governance', args),
1343
+ pendingGov: (...args) => getRequest('pendingGov', args),
1344
+ numGovChanges: (...args) => getRequest('numGovChanges', args),
1345
+ govChangeTimeLock: (...args) => getRequest('govChangeTimeLock', args),
1346
+ getAddys: (...args) => getRequest('getAddys', args),
1347
+ getUndyHq: (...args) => getRequest('getUndyHq', args),
1348
+ canMintUndy: (...args) => getRequest('canMintUndy', args),
1349
+ isPaused: (...args) => getRequest('isPaused', args),
1350
+ canConfirmAction: (...args) => getRequest('canConfirmAction', args),
1351
+ isExpired: (...args) => getRequest('isExpired', args),
1352
+ hasPendingAction: (...args) => getRequest('hasPendingAction', args),
1353
+ getActionConfirmationBlock: (...args) => getRequest('getActionConfirmationBlock', args),
1354
+ isValidActionTimeLock: (...args) => getRequest('isValidActionTimeLock', args),
1355
+ minActionTimeLock: (...args) => getRequest('minActionTimeLock', args),
1356
+ maxActionTimeLock: (...args) => getRequest('maxActionTimeLock', args),
1357
+ pendingActions: (...args) => getRequest('pendingActions', args),
1358
+ actionId: (...args) => getRequest('actionId', args),
1359
+ actionTimeLock: (...args) => getRequest('actionTimeLock', args),
1360
+ expiration: (...args) => getRequest('expiration', args),
1361
+ canAddBackpackItem: (...args) => getRequest('canAddBackpackItem', args),
1362
+ isRegisteredBackpackItem: (...args) => getRequest('isRegisteredBackpackItem', args),
1363
+ kernel: (...args) => getRequest('kernel', args),
1364
+ sentinel: (...args) => getRequest('sentinel', args),
1365
+ highCommand: (...args) => getRequest('highCommand', args),
1366
+ paymaster: (...args) => getRequest('paymaster', args),
1367
+ chequeBook: (...args) => getRequest('chequeBook', args),
1368
+ migrator: (...args) => getRequest('migrator', args),
1369
+ pendingUpdates: (...args) => getRequest('pendingUpdates', args),
1370
+ };
1371
+ function getMutation(functionName) {
1372
+ return {
1373
+ contractName: 'WalletBackpack',
1374
+ functionName,
1375
+ deployAddress,
1376
+ argsType: undefined,
1377
+ getAbi: () => abi,
1378
+ };
1379
+ }
1380
+ export const mutation = {
1381
+ startGovernanceChange: getMutation('startGovernanceChange'),
1382
+ confirmGovernanceChange: getMutation('confirmGovernanceChange'),
1383
+ cancelGovernanceChange: getMutation('cancelGovernanceChange'),
1384
+ relinquishGov: getMutation('relinquishGov'),
1385
+ setGovTimeLock: getMutation('setGovTimeLock'),
1386
+ finishUndyHqSetup: getMutation('finishUndyHqSetup'),
1387
+ pause: getMutation('pause'),
1388
+ recoverFunds: getMutation('recoverFunds'),
1389
+ recoverFundsMany: getMutation('recoverFundsMany'),
1390
+ setActionTimeLock: getMutation('setActionTimeLock'),
1391
+ setExpiration: getMutation('setExpiration'),
1392
+ setActionTimeLockAfterSetup: getMutation('setActionTimeLockAfterSetup'),
1393
+ addPendingKernel: getMutation('addPendingKernel'),
1394
+ addPendingSentinel: getMutation('addPendingSentinel'),
1395
+ addPendingHighCommand: getMutation('addPendingHighCommand'),
1396
+ addPendingPaymaster: getMutation('addPendingPaymaster'),
1397
+ addPendingChequeBook: getMutation('addPendingChequeBook'),
1398
+ addPendingMigrator: getMutation('addPendingMigrator'),
1399
+ confirmPendingKernel: getMutation('confirmPendingKernel'),
1400
+ confirmPendingSentinel: getMutation('confirmPendingSentinel'),
1401
+ confirmPendingHighCommand: getMutation('confirmPendingHighCommand'),
1402
+ confirmPendingPaymaster: getMutation('confirmPendingPaymaster'),
1403
+ confirmPendingChequeBook: getMutation('confirmPendingChequeBook'),
1404
+ confirmPendingMigrator: getMutation('confirmPendingMigrator'),
1405
+ cancelPendingKernel: getMutation('cancelPendingKernel'),
1406
+ cancelPendingSentinel: getMutation('cancelPendingSentinel'),
1407
+ cancelPendingHighCommand: getMutation('cancelPendingHighCommand'),
1408
+ cancelPendingPaymaster: getMutation('cancelPendingPaymaster'),
1409
+ cancelPendingChequeBook: getMutation('cancelPendingChequeBook'),
1410
+ cancelPendingMigrator: getMutation('cancelPendingMigrator'),
1411
+ };
1412
+ export function toSdk(publicClient, walletClient) {
1413
+ return {
1414
+ deployAddress,
1415
+ abi,
1416
+ // Queries
1417
+ getUndyHqFromGov: (...args) => singleQuery(publicClient, call.getUndyHqFromGov(...args)),
1418
+ canGovern: (...args) => singleQuery(publicClient, call.canGovern(...args)),
1419
+ getGovernors: (...args) => singleQuery(publicClient, call.getGovernors(...args)),
1420
+ hasPendingGovChange: (...args) => singleQuery(publicClient, call.hasPendingGovChange(...args)),
1421
+ isValidGovTimeLock: (...args) => singleQuery(publicClient, call.isValidGovTimeLock(...args)),
1422
+ minGovChangeTimeLock: (...args) => singleQuery(publicClient, call.minGovChangeTimeLock(...args)),
1423
+ maxGovChangeTimeLock: (...args) => singleQuery(publicClient, call.maxGovChangeTimeLock(...args)),
1424
+ governance: (...args) => singleQuery(publicClient, call.governance(...args)),
1425
+ pendingGov: (...args) => singleQuery(publicClient, call.pendingGov(...args)),
1426
+ numGovChanges: (...args) => singleQuery(publicClient, call.numGovChanges(...args)),
1427
+ govChangeTimeLock: (...args) => singleQuery(publicClient, call.govChangeTimeLock(...args)),
1428
+ getAddys: (...args) => singleQuery(publicClient, call.getAddys(...args)),
1429
+ getUndyHq: (...args) => singleQuery(publicClient, call.getUndyHq(...args)),
1430
+ canMintUndy: (...args) => singleQuery(publicClient, call.canMintUndy(...args)),
1431
+ isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
1432
+ canConfirmAction: (...args) => singleQuery(publicClient, call.canConfirmAction(...args)),
1433
+ isExpired: (...args) => singleQuery(publicClient, call.isExpired(...args)),
1434
+ hasPendingAction: (...args) => singleQuery(publicClient, call.hasPendingAction(...args)),
1435
+ getActionConfirmationBlock: (...args) => singleQuery(publicClient, call.getActionConfirmationBlock(...args)),
1436
+ isValidActionTimeLock: (...args) => singleQuery(publicClient, call.isValidActionTimeLock(...args)),
1437
+ minActionTimeLock: (...args) => singleQuery(publicClient, call.minActionTimeLock(...args)),
1438
+ maxActionTimeLock: (...args) => singleQuery(publicClient, call.maxActionTimeLock(...args)),
1439
+ pendingActions: (...args) => singleQuery(publicClient, call.pendingActions(...args)),
1440
+ actionId: (...args) => singleQuery(publicClient, call.actionId(...args)),
1441
+ actionTimeLock: (...args) => singleQuery(publicClient, call.actionTimeLock(...args)),
1442
+ expiration: (...args) => singleQuery(publicClient, call.expiration(...args)),
1443
+ canAddBackpackItem: (...args) => singleQuery(publicClient, call.canAddBackpackItem(...args)),
1444
+ isRegisteredBackpackItem: (...args) => singleQuery(publicClient, call.isRegisteredBackpackItem(...args)),
1445
+ kernel: (...args) => singleQuery(publicClient, call.kernel(...args)),
1446
+ sentinel: (...args) => singleQuery(publicClient, call.sentinel(...args)),
1447
+ highCommand: (...args) => singleQuery(publicClient, call.highCommand(...args)),
1448
+ paymaster: (...args) => singleQuery(publicClient, call.paymaster(...args)),
1449
+ chequeBook: (...args) => singleQuery(publicClient, call.chequeBook(...args)),
1450
+ migrator: (...args) => singleQuery(publicClient, call.migrator(...args)),
1451
+ pendingUpdates: (...args) => singleQuery(publicClient, call.pendingUpdates(...args)),
1452
+ // Mutations
1453
+ startGovernanceChange: (...args) => mutate(walletClient, mutation.startGovernanceChange)(...args),
1454
+ confirmGovernanceChange: (...args) => mutate(walletClient, mutation.confirmGovernanceChange)(...args),
1455
+ cancelGovernanceChange: (...args) => mutate(walletClient, mutation.cancelGovernanceChange)(...args),
1456
+ relinquishGov: (...args) => mutate(walletClient, mutation.relinquishGov)(...args),
1457
+ setGovTimeLock: (...args) => mutate(walletClient, mutation.setGovTimeLock)(...args),
1458
+ finishUndyHqSetup: (...args) => mutate(walletClient, mutation.finishUndyHqSetup)(...args),
1459
+ pause: (...args) => mutate(walletClient, mutation.pause)(...args),
1460
+ recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
1461
+ recoverFundsMany: (...args) => mutate(walletClient, mutation.recoverFundsMany)(...args),
1462
+ setActionTimeLock: (...args) => mutate(walletClient, mutation.setActionTimeLock)(...args),
1463
+ setExpiration: (...args) => mutate(walletClient, mutation.setExpiration)(...args),
1464
+ setActionTimeLockAfterSetup: (...args) => mutate(walletClient, mutation.setActionTimeLockAfterSetup)(...args),
1465
+ addPendingKernel: (...args) => mutate(walletClient, mutation.addPendingKernel)(...args),
1466
+ addPendingSentinel: (...args) => mutate(walletClient, mutation.addPendingSentinel)(...args),
1467
+ addPendingHighCommand: (...args) => mutate(walletClient, mutation.addPendingHighCommand)(...args),
1468
+ addPendingPaymaster: (...args) => mutate(walletClient, mutation.addPendingPaymaster)(...args),
1469
+ addPendingChequeBook: (...args) => mutate(walletClient, mutation.addPendingChequeBook)(...args),
1470
+ addPendingMigrator: (...args) => mutate(walletClient, mutation.addPendingMigrator)(...args),
1471
+ confirmPendingKernel: (...args) => mutate(walletClient, mutation.confirmPendingKernel)(...args),
1472
+ confirmPendingSentinel: (...args) => mutate(walletClient, mutation.confirmPendingSentinel)(...args),
1473
+ confirmPendingHighCommand: (...args) => mutate(walletClient, mutation.confirmPendingHighCommand)(...args),
1474
+ confirmPendingPaymaster: (...args) => mutate(walletClient, mutation.confirmPendingPaymaster)(...args),
1475
+ confirmPendingChequeBook: (...args) => mutate(walletClient, mutation.confirmPendingChequeBook)(...args),
1476
+ confirmPendingMigrator: (...args) => mutate(walletClient, mutation.confirmPendingMigrator)(...args),
1477
+ cancelPendingKernel: (...args) => mutate(walletClient, mutation.cancelPendingKernel)(...args),
1478
+ cancelPendingSentinel: (...args) => mutate(walletClient, mutation.cancelPendingSentinel)(...args),
1479
+ cancelPendingHighCommand: (...args) => mutate(walletClient, mutation.cancelPendingHighCommand)(...args),
1480
+ cancelPendingPaymaster: (...args) => mutate(walletClient, mutation.cancelPendingPaymaster)(...args),
1481
+ cancelPendingChequeBook: (...args) => mutate(walletClient, mutation.cancelPendingChequeBook)(...args),
1482
+ cancelPendingMigrator: (...args) => mutate(walletClient, mutation.cancelPendingMigrator)(...args),
1483
+ };
1484
+ }