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