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