@underscore-finance/sdk 0.3.5 → 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 +3 -475
  242. package/dist/index.d.ts.map +1 -1
  243. package/dist/index.js +8 -182
  244. package/package.json +2 -2
@@ -0,0 +1,2149 @@
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: 'GlobalManagerSettingsModified',
9
+ inputs: [
10
+ {
11
+ name: 'user',
12
+ type: 'address',
13
+ indexed: true,
14
+ },
15
+ {
16
+ name: 'managerPeriod',
17
+ type: 'uint256',
18
+ indexed: false,
19
+ },
20
+ {
21
+ name: 'startDelay',
22
+ type: 'uint256',
23
+ indexed: false,
24
+ },
25
+ {
26
+ name: 'activationLength',
27
+ type: 'uint256',
28
+ indexed: false,
29
+ },
30
+ {
31
+ name: 'canOwnerManage',
32
+ type: 'bool',
33
+ indexed: false,
34
+ },
35
+ {
36
+ name: 'maxUsdValuePerTx',
37
+ type: 'uint256',
38
+ indexed: false,
39
+ },
40
+ {
41
+ name: 'maxUsdValuePerPeriod',
42
+ type: 'uint256',
43
+ indexed: false,
44
+ },
45
+ {
46
+ name: 'maxUsdValueLifetime',
47
+ type: 'uint256',
48
+ indexed: false,
49
+ },
50
+ {
51
+ name: 'maxNumTxsPerPeriod',
52
+ type: 'uint256',
53
+ indexed: false,
54
+ },
55
+ {
56
+ name: 'txCooldownBlocks',
57
+ type: 'uint256',
58
+ indexed: false,
59
+ },
60
+ {
61
+ name: 'failOnZeroPrice',
62
+ type: 'bool',
63
+ indexed: false,
64
+ },
65
+ {
66
+ name: 'canManageYield',
67
+ type: 'bool',
68
+ indexed: false,
69
+ },
70
+ {
71
+ name: 'canBuyAndSell',
72
+ type: 'bool',
73
+ indexed: false,
74
+ },
75
+ {
76
+ name: 'canManageDebt',
77
+ type: 'bool',
78
+ indexed: false,
79
+ },
80
+ {
81
+ name: 'canManageLiq',
82
+ type: 'bool',
83
+ indexed: false,
84
+ },
85
+ {
86
+ name: 'canClaimRewards',
87
+ type: 'bool',
88
+ indexed: false,
89
+ },
90
+ {
91
+ name: 'numAllowedLegos',
92
+ type: 'uint256',
93
+ indexed: false,
94
+ },
95
+ {
96
+ name: 'canAddPendingWhitelist',
97
+ type: 'bool',
98
+ indexed: false,
99
+ },
100
+ {
101
+ name: 'canConfirmWhitelist',
102
+ type: 'bool',
103
+ indexed: false,
104
+ },
105
+ {
106
+ name: 'canCancelWhitelist',
107
+ type: 'bool',
108
+ indexed: false,
109
+ },
110
+ {
111
+ name: 'canRemoveWhitelist',
112
+ type: 'bool',
113
+ indexed: false,
114
+ },
115
+ {
116
+ name: 'canTransfer',
117
+ type: 'bool',
118
+ indexed: false,
119
+ },
120
+ {
121
+ name: 'canCreateCheque',
122
+ type: 'bool',
123
+ indexed: false,
124
+ },
125
+ {
126
+ name: 'canAddPendingPayee',
127
+ type: 'bool',
128
+ indexed: false,
129
+ },
130
+ {
131
+ name: 'numAllowedRecipients',
132
+ type: 'uint256',
133
+ indexed: false,
134
+ },
135
+ {
136
+ name: 'numAllowedAssets',
137
+ type: 'uint256',
138
+ indexed: false,
139
+ },
140
+ ],
141
+ anonymous: false,
142
+ type: 'event',
143
+ },
144
+ {
145
+ name: 'ManagerSettingsModified',
146
+ inputs: [
147
+ {
148
+ name: 'user',
149
+ type: 'address',
150
+ indexed: true,
151
+ },
152
+ {
153
+ name: 'manager',
154
+ type: 'address',
155
+ indexed: true,
156
+ },
157
+ {
158
+ name: 'startBlock',
159
+ type: 'uint256',
160
+ indexed: false,
161
+ },
162
+ {
163
+ name: 'expiryBlock',
164
+ type: 'uint256',
165
+ indexed: false,
166
+ },
167
+ {
168
+ name: 'maxUsdValuePerTx',
169
+ type: 'uint256',
170
+ indexed: false,
171
+ },
172
+ {
173
+ name: 'maxUsdValuePerPeriod',
174
+ type: 'uint256',
175
+ indexed: false,
176
+ },
177
+ {
178
+ name: 'maxUsdValueLifetime',
179
+ type: 'uint256',
180
+ indexed: false,
181
+ },
182
+ {
183
+ name: 'maxNumTxsPerPeriod',
184
+ type: 'uint256',
185
+ indexed: false,
186
+ },
187
+ {
188
+ name: 'txCooldownBlocks',
189
+ type: 'uint256',
190
+ indexed: false,
191
+ },
192
+ {
193
+ name: 'failOnZeroPrice',
194
+ type: 'bool',
195
+ indexed: false,
196
+ },
197
+ {
198
+ name: 'canManageYield',
199
+ type: 'bool',
200
+ indexed: false,
201
+ },
202
+ {
203
+ name: 'canBuyAndSell',
204
+ type: 'bool',
205
+ indexed: false,
206
+ },
207
+ {
208
+ name: 'canManageDebt',
209
+ type: 'bool',
210
+ indexed: false,
211
+ },
212
+ {
213
+ name: 'canManageLiq',
214
+ type: 'bool',
215
+ indexed: false,
216
+ },
217
+ {
218
+ name: 'canClaimRewards',
219
+ type: 'bool',
220
+ indexed: false,
221
+ },
222
+ {
223
+ name: 'numAllowedLegos',
224
+ type: 'uint256',
225
+ indexed: false,
226
+ },
227
+ {
228
+ name: 'canAddPendingWhitelist',
229
+ type: 'bool',
230
+ indexed: false,
231
+ },
232
+ {
233
+ name: 'canConfirmWhitelist',
234
+ type: 'bool',
235
+ indexed: false,
236
+ },
237
+ {
238
+ name: 'canCancelWhitelist',
239
+ type: 'bool',
240
+ indexed: false,
241
+ },
242
+ {
243
+ name: 'canRemoveWhitelist',
244
+ type: 'bool',
245
+ indexed: false,
246
+ },
247
+ {
248
+ name: 'canTransfer',
249
+ type: 'bool',
250
+ indexed: false,
251
+ },
252
+ {
253
+ name: 'canCreateCheque',
254
+ type: 'bool',
255
+ indexed: false,
256
+ },
257
+ {
258
+ name: 'canAddPendingPayee',
259
+ type: 'bool',
260
+ indexed: false,
261
+ },
262
+ {
263
+ name: 'numAllowedRecipients',
264
+ type: 'uint256',
265
+ indexed: false,
266
+ },
267
+ {
268
+ name: 'numAllowedAssets',
269
+ type: 'uint256',
270
+ indexed: false,
271
+ },
272
+ {
273
+ name: 'canClaimLoot',
274
+ type: 'bool',
275
+ indexed: false,
276
+ },
277
+ ],
278
+ anonymous: false,
279
+ type: 'event',
280
+ },
281
+ {
282
+ name: 'ManagerRemoved',
283
+ inputs: [
284
+ {
285
+ name: 'user',
286
+ type: 'address',
287
+ indexed: true,
288
+ },
289
+ {
290
+ name: 'manager',
291
+ type: 'address',
292
+ indexed: true,
293
+ },
294
+ ],
295
+ anonymous: false,
296
+ type: 'event',
297
+ },
298
+ {
299
+ name: 'ManagerActivationLengthAdjusted',
300
+ inputs: [
301
+ {
302
+ name: 'user',
303
+ type: 'address',
304
+ indexed: true,
305
+ },
306
+ {
307
+ name: 'manager',
308
+ type: 'address',
309
+ indexed: true,
310
+ },
311
+ {
312
+ name: 'activationLength',
313
+ type: 'uint256',
314
+ indexed: false,
315
+ },
316
+ {
317
+ name: 'didRestart',
318
+ type: 'bool',
319
+ indexed: false,
320
+ },
321
+ ],
322
+ anonymous: false,
323
+ type: 'event',
324
+ },
325
+ {
326
+ stateMutability: 'nonpayable',
327
+ type: 'function',
328
+ name: 'addManager',
329
+ inputs: [
330
+ {
331
+ name: '_userWallet',
332
+ type: 'address',
333
+ },
334
+ {
335
+ name: '_manager',
336
+ type: 'address',
337
+ },
338
+ {
339
+ name: '_limits',
340
+ type: 'tuple',
341
+ components: [
342
+ {
343
+ name: 'maxUsdValuePerTx',
344
+ type: 'uint256',
345
+ },
346
+ {
347
+ name: 'maxUsdValuePerPeriod',
348
+ type: 'uint256',
349
+ },
350
+ {
351
+ name: 'maxUsdValueLifetime',
352
+ type: 'uint256',
353
+ },
354
+ {
355
+ name: 'maxNumTxsPerPeriod',
356
+ type: 'uint256',
357
+ },
358
+ {
359
+ name: 'txCooldownBlocks',
360
+ type: 'uint256',
361
+ },
362
+ {
363
+ name: 'failOnZeroPrice',
364
+ type: 'bool',
365
+ },
366
+ ],
367
+ },
368
+ {
369
+ name: '_legoPerms',
370
+ type: 'tuple',
371
+ components: [
372
+ {
373
+ name: 'canManageYield',
374
+ type: 'bool',
375
+ },
376
+ {
377
+ name: 'canBuyAndSell',
378
+ type: 'bool',
379
+ },
380
+ {
381
+ name: 'canManageDebt',
382
+ type: 'bool',
383
+ },
384
+ {
385
+ name: 'canManageLiq',
386
+ type: 'bool',
387
+ },
388
+ {
389
+ name: 'canClaimRewards',
390
+ type: 'bool',
391
+ },
392
+ {
393
+ name: 'allowedLegos',
394
+ type: 'uint256[]',
395
+ },
396
+ ],
397
+ },
398
+ {
399
+ name: '_whitelistPerms',
400
+ type: 'tuple',
401
+ components: [
402
+ {
403
+ name: 'canAddPending',
404
+ type: 'bool',
405
+ },
406
+ {
407
+ name: 'canConfirm',
408
+ type: 'bool',
409
+ },
410
+ {
411
+ name: 'canCancel',
412
+ type: 'bool',
413
+ },
414
+ {
415
+ name: 'canRemove',
416
+ type: 'bool',
417
+ },
418
+ ],
419
+ },
420
+ {
421
+ name: '_transferPerms',
422
+ type: 'tuple',
423
+ components: [
424
+ {
425
+ name: 'canTransfer',
426
+ type: 'bool',
427
+ },
428
+ {
429
+ name: 'canCreateCheque',
430
+ type: 'bool',
431
+ },
432
+ {
433
+ name: 'canAddPendingPayee',
434
+ type: 'bool',
435
+ },
436
+ {
437
+ name: 'allowedPayees',
438
+ type: 'address[]',
439
+ },
440
+ ],
441
+ },
442
+ {
443
+ name: '_allowedAssets',
444
+ type: 'address[]',
445
+ },
446
+ {
447
+ name: '_canClaimLoot',
448
+ type: 'bool',
449
+ },
450
+ ],
451
+ outputs: [
452
+ {
453
+ name: '',
454
+ type: 'bool',
455
+ },
456
+ ],
457
+ },
458
+ {
459
+ stateMutability: 'nonpayable',
460
+ type: 'function',
461
+ name: 'addManager',
462
+ inputs: [
463
+ {
464
+ name: '_userWallet',
465
+ type: 'address',
466
+ },
467
+ {
468
+ name: '_manager',
469
+ type: 'address',
470
+ },
471
+ {
472
+ name: '_limits',
473
+ type: 'tuple',
474
+ components: [
475
+ {
476
+ name: 'maxUsdValuePerTx',
477
+ type: 'uint256',
478
+ },
479
+ {
480
+ name: 'maxUsdValuePerPeriod',
481
+ type: 'uint256',
482
+ },
483
+ {
484
+ name: 'maxUsdValueLifetime',
485
+ type: 'uint256',
486
+ },
487
+ {
488
+ name: 'maxNumTxsPerPeriod',
489
+ type: 'uint256',
490
+ },
491
+ {
492
+ name: 'txCooldownBlocks',
493
+ type: 'uint256',
494
+ },
495
+ {
496
+ name: 'failOnZeroPrice',
497
+ type: 'bool',
498
+ },
499
+ ],
500
+ },
501
+ {
502
+ name: '_legoPerms',
503
+ type: 'tuple',
504
+ components: [
505
+ {
506
+ name: 'canManageYield',
507
+ type: 'bool',
508
+ },
509
+ {
510
+ name: 'canBuyAndSell',
511
+ type: 'bool',
512
+ },
513
+ {
514
+ name: 'canManageDebt',
515
+ type: 'bool',
516
+ },
517
+ {
518
+ name: 'canManageLiq',
519
+ type: 'bool',
520
+ },
521
+ {
522
+ name: 'canClaimRewards',
523
+ type: 'bool',
524
+ },
525
+ {
526
+ name: 'allowedLegos',
527
+ type: 'uint256[]',
528
+ },
529
+ ],
530
+ },
531
+ {
532
+ name: '_whitelistPerms',
533
+ type: 'tuple',
534
+ components: [
535
+ {
536
+ name: 'canAddPending',
537
+ type: 'bool',
538
+ },
539
+ {
540
+ name: 'canConfirm',
541
+ type: 'bool',
542
+ },
543
+ {
544
+ name: 'canCancel',
545
+ type: 'bool',
546
+ },
547
+ {
548
+ name: 'canRemove',
549
+ type: 'bool',
550
+ },
551
+ ],
552
+ },
553
+ {
554
+ name: '_transferPerms',
555
+ type: 'tuple',
556
+ components: [
557
+ {
558
+ name: 'canTransfer',
559
+ type: 'bool',
560
+ },
561
+ {
562
+ name: 'canCreateCheque',
563
+ type: 'bool',
564
+ },
565
+ {
566
+ name: 'canAddPendingPayee',
567
+ type: 'bool',
568
+ },
569
+ {
570
+ name: 'allowedPayees',
571
+ type: 'address[]',
572
+ },
573
+ ],
574
+ },
575
+ {
576
+ name: '_allowedAssets',
577
+ type: 'address[]',
578
+ },
579
+ {
580
+ name: '_canClaimLoot',
581
+ type: 'bool',
582
+ },
583
+ {
584
+ name: '_startDelay',
585
+ type: 'uint256',
586
+ },
587
+ ],
588
+ outputs: [
589
+ {
590
+ name: '',
591
+ type: 'bool',
592
+ },
593
+ ],
594
+ },
595
+ {
596
+ stateMutability: 'nonpayable',
597
+ type: 'function',
598
+ name: 'addManager',
599
+ inputs: [
600
+ {
601
+ name: '_userWallet',
602
+ type: 'address',
603
+ },
604
+ {
605
+ name: '_manager',
606
+ type: 'address',
607
+ },
608
+ {
609
+ name: '_limits',
610
+ type: 'tuple',
611
+ components: [
612
+ {
613
+ name: 'maxUsdValuePerTx',
614
+ type: 'uint256',
615
+ },
616
+ {
617
+ name: 'maxUsdValuePerPeriod',
618
+ type: 'uint256',
619
+ },
620
+ {
621
+ name: 'maxUsdValueLifetime',
622
+ type: 'uint256',
623
+ },
624
+ {
625
+ name: 'maxNumTxsPerPeriod',
626
+ type: 'uint256',
627
+ },
628
+ {
629
+ name: 'txCooldownBlocks',
630
+ type: 'uint256',
631
+ },
632
+ {
633
+ name: 'failOnZeroPrice',
634
+ type: 'bool',
635
+ },
636
+ ],
637
+ },
638
+ {
639
+ name: '_legoPerms',
640
+ type: 'tuple',
641
+ components: [
642
+ {
643
+ name: 'canManageYield',
644
+ type: 'bool',
645
+ },
646
+ {
647
+ name: 'canBuyAndSell',
648
+ type: 'bool',
649
+ },
650
+ {
651
+ name: 'canManageDebt',
652
+ type: 'bool',
653
+ },
654
+ {
655
+ name: 'canManageLiq',
656
+ type: 'bool',
657
+ },
658
+ {
659
+ name: 'canClaimRewards',
660
+ type: 'bool',
661
+ },
662
+ {
663
+ name: 'allowedLegos',
664
+ type: 'uint256[]',
665
+ },
666
+ ],
667
+ },
668
+ {
669
+ name: '_whitelistPerms',
670
+ type: 'tuple',
671
+ components: [
672
+ {
673
+ name: 'canAddPending',
674
+ type: 'bool',
675
+ },
676
+ {
677
+ name: 'canConfirm',
678
+ type: 'bool',
679
+ },
680
+ {
681
+ name: 'canCancel',
682
+ type: 'bool',
683
+ },
684
+ {
685
+ name: 'canRemove',
686
+ type: 'bool',
687
+ },
688
+ ],
689
+ },
690
+ {
691
+ name: '_transferPerms',
692
+ type: 'tuple',
693
+ components: [
694
+ {
695
+ name: 'canTransfer',
696
+ type: 'bool',
697
+ },
698
+ {
699
+ name: 'canCreateCheque',
700
+ type: 'bool',
701
+ },
702
+ {
703
+ name: 'canAddPendingPayee',
704
+ type: 'bool',
705
+ },
706
+ {
707
+ name: 'allowedPayees',
708
+ type: 'address[]',
709
+ },
710
+ ],
711
+ },
712
+ {
713
+ name: '_allowedAssets',
714
+ type: 'address[]',
715
+ },
716
+ {
717
+ name: '_canClaimLoot',
718
+ type: 'bool',
719
+ },
720
+ {
721
+ name: '_startDelay',
722
+ type: 'uint256',
723
+ },
724
+ {
725
+ name: '_activationLength',
726
+ type: 'uint256',
727
+ },
728
+ ],
729
+ outputs: [
730
+ {
731
+ name: '',
732
+ type: 'bool',
733
+ },
734
+ ],
735
+ },
736
+ {
737
+ stateMutability: 'nonpayable',
738
+ type: 'function',
739
+ name: 'updateManager',
740
+ inputs: [
741
+ {
742
+ name: '_userWallet',
743
+ type: 'address',
744
+ },
745
+ {
746
+ name: '_manager',
747
+ type: 'address',
748
+ },
749
+ {
750
+ name: '_limits',
751
+ type: 'tuple',
752
+ components: [
753
+ {
754
+ name: 'maxUsdValuePerTx',
755
+ type: 'uint256',
756
+ },
757
+ {
758
+ name: 'maxUsdValuePerPeriod',
759
+ type: 'uint256',
760
+ },
761
+ {
762
+ name: 'maxUsdValueLifetime',
763
+ type: 'uint256',
764
+ },
765
+ {
766
+ name: 'maxNumTxsPerPeriod',
767
+ type: 'uint256',
768
+ },
769
+ {
770
+ name: 'txCooldownBlocks',
771
+ type: 'uint256',
772
+ },
773
+ {
774
+ name: 'failOnZeroPrice',
775
+ type: 'bool',
776
+ },
777
+ ],
778
+ },
779
+ {
780
+ name: '_legoPerms',
781
+ type: 'tuple',
782
+ components: [
783
+ {
784
+ name: 'canManageYield',
785
+ type: 'bool',
786
+ },
787
+ {
788
+ name: 'canBuyAndSell',
789
+ type: 'bool',
790
+ },
791
+ {
792
+ name: 'canManageDebt',
793
+ type: 'bool',
794
+ },
795
+ {
796
+ name: 'canManageLiq',
797
+ type: 'bool',
798
+ },
799
+ {
800
+ name: 'canClaimRewards',
801
+ type: 'bool',
802
+ },
803
+ {
804
+ name: 'allowedLegos',
805
+ type: 'uint256[]',
806
+ },
807
+ ],
808
+ },
809
+ {
810
+ name: '_whitelistPerms',
811
+ type: 'tuple',
812
+ components: [
813
+ {
814
+ name: 'canAddPending',
815
+ type: 'bool',
816
+ },
817
+ {
818
+ name: 'canConfirm',
819
+ type: 'bool',
820
+ },
821
+ {
822
+ name: 'canCancel',
823
+ type: 'bool',
824
+ },
825
+ {
826
+ name: 'canRemove',
827
+ type: 'bool',
828
+ },
829
+ ],
830
+ },
831
+ {
832
+ name: '_transferPerms',
833
+ type: 'tuple',
834
+ components: [
835
+ {
836
+ name: 'canTransfer',
837
+ type: 'bool',
838
+ },
839
+ {
840
+ name: 'canCreateCheque',
841
+ type: 'bool',
842
+ },
843
+ {
844
+ name: 'canAddPendingPayee',
845
+ type: 'bool',
846
+ },
847
+ {
848
+ name: 'allowedPayees',
849
+ type: 'address[]',
850
+ },
851
+ ],
852
+ },
853
+ {
854
+ name: '_allowedAssets',
855
+ type: 'address[]',
856
+ },
857
+ {
858
+ name: '_canClaimLoot',
859
+ type: 'bool',
860
+ },
861
+ ],
862
+ outputs: [
863
+ {
864
+ name: '',
865
+ type: 'bool',
866
+ },
867
+ ],
868
+ },
869
+ {
870
+ stateMutability: 'nonpayable',
871
+ type: 'function',
872
+ name: 'removeManager',
873
+ inputs: [
874
+ {
875
+ name: '_userWallet',
876
+ type: 'address',
877
+ },
878
+ {
879
+ name: '_manager',
880
+ type: 'address',
881
+ },
882
+ ],
883
+ outputs: [
884
+ {
885
+ name: '',
886
+ type: 'bool',
887
+ },
888
+ ],
889
+ },
890
+ {
891
+ stateMutability: 'nonpayable',
892
+ type: 'function',
893
+ name: 'adjustManagerActivationLength',
894
+ inputs: [
895
+ {
896
+ name: '_userWallet',
897
+ type: 'address',
898
+ },
899
+ {
900
+ name: '_manager',
901
+ type: 'address',
902
+ },
903
+ {
904
+ name: '_activationLength',
905
+ type: 'uint256',
906
+ },
907
+ ],
908
+ outputs: [
909
+ {
910
+ name: '',
911
+ type: 'bool',
912
+ },
913
+ ],
914
+ },
915
+ {
916
+ stateMutability: 'nonpayable',
917
+ type: 'function',
918
+ name: 'adjustManagerActivationLength',
919
+ inputs: [
920
+ {
921
+ name: '_userWallet',
922
+ type: 'address',
923
+ },
924
+ {
925
+ name: '_manager',
926
+ type: 'address',
927
+ },
928
+ {
929
+ name: '_activationLength',
930
+ type: 'uint256',
931
+ },
932
+ {
933
+ name: '_shouldResetStartBlock',
934
+ type: 'bool',
935
+ },
936
+ ],
937
+ outputs: [
938
+ {
939
+ name: '',
940
+ type: 'bool',
941
+ },
942
+ ],
943
+ },
944
+ {
945
+ stateMutability: 'nonpayable',
946
+ type: 'function',
947
+ name: 'setGlobalManagerSettings',
948
+ inputs: [
949
+ {
950
+ name: '_userWallet',
951
+ type: 'address',
952
+ },
953
+ {
954
+ name: '_managerPeriod',
955
+ type: 'uint256',
956
+ },
957
+ {
958
+ name: '_startDelay',
959
+ type: 'uint256',
960
+ },
961
+ {
962
+ name: '_activationLength',
963
+ type: 'uint256',
964
+ },
965
+ {
966
+ name: '_canOwnerManage',
967
+ type: 'bool',
968
+ },
969
+ {
970
+ name: '_limits',
971
+ type: 'tuple',
972
+ components: [
973
+ {
974
+ name: 'maxUsdValuePerTx',
975
+ type: 'uint256',
976
+ },
977
+ {
978
+ name: 'maxUsdValuePerPeriod',
979
+ type: 'uint256',
980
+ },
981
+ {
982
+ name: 'maxUsdValueLifetime',
983
+ type: 'uint256',
984
+ },
985
+ {
986
+ name: 'maxNumTxsPerPeriod',
987
+ type: 'uint256',
988
+ },
989
+ {
990
+ name: 'txCooldownBlocks',
991
+ type: 'uint256',
992
+ },
993
+ {
994
+ name: 'failOnZeroPrice',
995
+ type: 'bool',
996
+ },
997
+ ],
998
+ },
999
+ {
1000
+ name: '_legoPerms',
1001
+ type: 'tuple',
1002
+ components: [
1003
+ {
1004
+ name: 'canManageYield',
1005
+ type: 'bool',
1006
+ },
1007
+ {
1008
+ name: 'canBuyAndSell',
1009
+ type: 'bool',
1010
+ },
1011
+ {
1012
+ name: 'canManageDebt',
1013
+ type: 'bool',
1014
+ },
1015
+ {
1016
+ name: 'canManageLiq',
1017
+ type: 'bool',
1018
+ },
1019
+ {
1020
+ name: 'canClaimRewards',
1021
+ type: 'bool',
1022
+ },
1023
+ {
1024
+ name: 'allowedLegos',
1025
+ type: 'uint256[]',
1026
+ },
1027
+ ],
1028
+ },
1029
+ {
1030
+ name: '_whitelistPerms',
1031
+ type: 'tuple',
1032
+ components: [
1033
+ {
1034
+ name: 'canAddPending',
1035
+ type: 'bool',
1036
+ },
1037
+ {
1038
+ name: 'canConfirm',
1039
+ type: 'bool',
1040
+ },
1041
+ {
1042
+ name: 'canCancel',
1043
+ type: 'bool',
1044
+ },
1045
+ {
1046
+ name: 'canRemove',
1047
+ type: 'bool',
1048
+ },
1049
+ ],
1050
+ },
1051
+ {
1052
+ name: '_transferPerms',
1053
+ type: 'tuple',
1054
+ components: [
1055
+ {
1056
+ name: 'canTransfer',
1057
+ type: 'bool',
1058
+ },
1059
+ {
1060
+ name: 'canCreateCheque',
1061
+ type: 'bool',
1062
+ },
1063
+ {
1064
+ name: 'canAddPendingPayee',
1065
+ type: 'bool',
1066
+ },
1067
+ {
1068
+ name: 'allowedPayees',
1069
+ type: 'address[]',
1070
+ },
1071
+ ],
1072
+ },
1073
+ {
1074
+ name: '_allowedAssets',
1075
+ type: 'address[]',
1076
+ },
1077
+ ],
1078
+ outputs: [
1079
+ {
1080
+ name: '',
1081
+ type: 'bool',
1082
+ },
1083
+ ],
1084
+ },
1085
+ {
1086
+ stateMutability: 'view',
1087
+ type: 'function',
1088
+ name: 'isValidNewManager',
1089
+ inputs: [
1090
+ {
1091
+ name: '_userWallet',
1092
+ type: 'address',
1093
+ },
1094
+ {
1095
+ name: '_manager',
1096
+ type: 'address',
1097
+ },
1098
+ {
1099
+ name: '_startDelay',
1100
+ type: 'uint256',
1101
+ },
1102
+ {
1103
+ name: '_activationLength',
1104
+ type: 'uint256',
1105
+ },
1106
+ {
1107
+ name: '_limits',
1108
+ type: 'tuple',
1109
+ components: [
1110
+ {
1111
+ name: 'maxUsdValuePerTx',
1112
+ type: 'uint256',
1113
+ },
1114
+ {
1115
+ name: 'maxUsdValuePerPeriod',
1116
+ type: 'uint256',
1117
+ },
1118
+ {
1119
+ name: 'maxUsdValueLifetime',
1120
+ type: 'uint256',
1121
+ },
1122
+ {
1123
+ name: 'maxNumTxsPerPeriod',
1124
+ type: 'uint256',
1125
+ },
1126
+ {
1127
+ name: 'txCooldownBlocks',
1128
+ type: 'uint256',
1129
+ },
1130
+ {
1131
+ name: 'failOnZeroPrice',
1132
+ type: 'bool',
1133
+ },
1134
+ ],
1135
+ },
1136
+ {
1137
+ name: '_legoPerms',
1138
+ type: 'tuple',
1139
+ components: [
1140
+ {
1141
+ name: 'canManageYield',
1142
+ type: 'bool',
1143
+ },
1144
+ {
1145
+ name: 'canBuyAndSell',
1146
+ type: 'bool',
1147
+ },
1148
+ {
1149
+ name: 'canManageDebt',
1150
+ type: 'bool',
1151
+ },
1152
+ {
1153
+ name: 'canManageLiq',
1154
+ type: 'bool',
1155
+ },
1156
+ {
1157
+ name: 'canClaimRewards',
1158
+ type: 'bool',
1159
+ },
1160
+ {
1161
+ name: 'allowedLegos',
1162
+ type: 'uint256[]',
1163
+ },
1164
+ ],
1165
+ },
1166
+ {
1167
+ name: '_whitelistPerms',
1168
+ type: 'tuple',
1169
+ components: [
1170
+ {
1171
+ name: 'canAddPending',
1172
+ type: 'bool',
1173
+ },
1174
+ {
1175
+ name: 'canConfirm',
1176
+ type: 'bool',
1177
+ },
1178
+ {
1179
+ name: 'canCancel',
1180
+ type: 'bool',
1181
+ },
1182
+ {
1183
+ name: 'canRemove',
1184
+ type: 'bool',
1185
+ },
1186
+ ],
1187
+ },
1188
+ {
1189
+ name: '_transferPerms',
1190
+ type: 'tuple',
1191
+ components: [
1192
+ {
1193
+ name: 'canTransfer',
1194
+ type: 'bool',
1195
+ },
1196
+ {
1197
+ name: 'canCreateCheque',
1198
+ type: 'bool',
1199
+ },
1200
+ {
1201
+ name: 'canAddPendingPayee',
1202
+ type: 'bool',
1203
+ },
1204
+ {
1205
+ name: 'allowedPayees',
1206
+ type: 'address[]',
1207
+ },
1208
+ ],
1209
+ },
1210
+ {
1211
+ name: '_allowedAssets',
1212
+ type: 'address[]',
1213
+ },
1214
+ {
1215
+ name: '_canClaimLoot',
1216
+ type: 'bool',
1217
+ },
1218
+ ],
1219
+ outputs: [
1220
+ {
1221
+ name: '',
1222
+ type: 'bool',
1223
+ },
1224
+ ],
1225
+ },
1226
+ {
1227
+ stateMutability: 'view',
1228
+ type: 'function',
1229
+ name: 'validateManagerOnUpdate',
1230
+ inputs: [
1231
+ {
1232
+ name: '_userWallet',
1233
+ type: 'address',
1234
+ },
1235
+ {
1236
+ name: '_manager',
1237
+ type: 'address',
1238
+ },
1239
+ {
1240
+ name: '_limits',
1241
+ type: 'tuple',
1242
+ components: [
1243
+ {
1244
+ name: 'maxUsdValuePerTx',
1245
+ type: 'uint256',
1246
+ },
1247
+ {
1248
+ name: 'maxUsdValuePerPeriod',
1249
+ type: 'uint256',
1250
+ },
1251
+ {
1252
+ name: 'maxUsdValueLifetime',
1253
+ type: 'uint256',
1254
+ },
1255
+ {
1256
+ name: 'maxNumTxsPerPeriod',
1257
+ type: 'uint256',
1258
+ },
1259
+ {
1260
+ name: 'txCooldownBlocks',
1261
+ type: 'uint256',
1262
+ },
1263
+ {
1264
+ name: 'failOnZeroPrice',
1265
+ type: 'bool',
1266
+ },
1267
+ ],
1268
+ },
1269
+ {
1270
+ name: '_legoPerms',
1271
+ type: 'tuple',
1272
+ components: [
1273
+ {
1274
+ name: 'canManageYield',
1275
+ type: 'bool',
1276
+ },
1277
+ {
1278
+ name: 'canBuyAndSell',
1279
+ type: 'bool',
1280
+ },
1281
+ {
1282
+ name: 'canManageDebt',
1283
+ type: 'bool',
1284
+ },
1285
+ {
1286
+ name: 'canManageLiq',
1287
+ type: 'bool',
1288
+ },
1289
+ {
1290
+ name: 'canClaimRewards',
1291
+ type: 'bool',
1292
+ },
1293
+ {
1294
+ name: 'allowedLegos',
1295
+ type: 'uint256[]',
1296
+ },
1297
+ ],
1298
+ },
1299
+ {
1300
+ name: '_whitelistPerms',
1301
+ type: 'tuple',
1302
+ components: [
1303
+ {
1304
+ name: 'canAddPending',
1305
+ type: 'bool',
1306
+ },
1307
+ {
1308
+ name: 'canConfirm',
1309
+ type: 'bool',
1310
+ },
1311
+ {
1312
+ name: 'canCancel',
1313
+ type: 'bool',
1314
+ },
1315
+ {
1316
+ name: 'canRemove',
1317
+ type: 'bool',
1318
+ },
1319
+ ],
1320
+ },
1321
+ {
1322
+ name: '_transferPerms',
1323
+ type: 'tuple',
1324
+ components: [
1325
+ {
1326
+ name: 'canTransfer',
1327
+ type: 'bool',
1328
+ },
1329
+ {
1330
+ name: 'canCreateCheque',
1331
+ type: 'bool',
1332
+ },
1333
+ {
1334
+ name: 'canAddPendingPayee',
1335
+ type: 'bool',
1336
+ },
1337
+ {
1338
+ name: 'allowedPayees',
1339
+ type: 'address[]',
1340
+ },
1341
+ ],
1342
+ },
1343
+ {
1344
+ name: '_allowedAssets',
1345
+ type: 'address[]',
1346
+ },
1347
+ {
1348
+ name: '_canClaimLoot',
1349
+ type: 'bool',
1350
+ },
1351
+ ],
1352
+ outputs: [
1353
+ {
1354
+ name: '',
1355
+ type: 'bool',
1356
+ },
1357
+ ],
1358
+ },
1359
+ {
1360
+ stateMutability: 'view',
1361
+ type: 'function',
1362
+ name: 'validateGlobalManagerSettings',
1363
+ inputs: [
1364
+ {
1365
+ name: '_userWallet',
1366
+ type: 'address',
1367
+ },
1368
+ {
1369
+ name: '_managerPeriod',
1370
+ type: 'uint256',
1371
+ },
1372
+ {
1373
+ name: '_startDelay',
1374
+ type: 'uint256',
1375
+ },
1376
+ {
1377
+ name: '_activationLength',
1378
+ type: 'uint256',
1379
+ },
1380
+ {
1381
+ name: '_canOwnerManage',
1382
+ type: 'bool',
1383
+ },
1384
+ {
1385
+ name: '_limits',
1386
+ type: 'tuple',
1387
+ components: [
1388
+ {
1389
+ name: 'maxUsdValuePerTx',
1390
+ type: 'uint256',
1391
+ },
1392
+ {
1393
+ name: 'maxUsdValuePerPeriod',
1394
+ type: 'uint256',
1395
+ },
1396
+ {
1397
+ name: 'maxUsdValueLifetime',
1398
+ type: 'uint256',
1399
+ },
1400
+ {
1401
+ name: 'maxNumTxsPerPeriod',
1402
+ type: 'uint256',
1403
+ },
1404
+ {
1405
+ name: 'txCooldownBlocks',
1406
+ type: 'uint256',
1407
+ },
1408
+ {
1409
+ name: 'failOnZeroPrice',
1410
+ type: 'bool',
1411
+ },
1412
+ ],
1413
+ },
1414
+ {
1415
+ name: '_legoPerms',
1416
+ type: 'tuple',
1417
+ components: [
1418
+ {
1419
+ name: 'canManageYield',
1420
+ type: 'bool',
1421
+ },
1422
+ {
1423
+ name: 'canBuyAndSell',
1424
+ type: 'bool',
1425
+ },
1426
+ {
1427
+ name: 'canManageDebt',
1428
+ type: 'bool',
1429
+ },
1430
+ {
1431
+ name: 'canManageLiq',
1432
+ type: 'bool',
1433
+ },
1434
+ {
1435
+ name: 'canClaimRewards',
1436
+ type: 'bool',
1437
+ },
1438
+ {
1439
+ name: 'allowedLegos',
1440
+ type: 'uint256[]',
1441
+ },
1442
+ ],
1443
+ },
1444
+ {
1445
+ name: '_whitelistPerms',
1446
+ type: 'tuple',
1447
+ components: [
1448
+ {
1449
+ name: 'canAddPending',
1450
+ type: 'bool',
1451
+ },
1452
+ {
1453
+ name: 'canConfirm',
1454
+ type: 'bool',
1455
+ },
1456
+ {
1457
+ name: 'canCancel',
1458
+ type: 'bool',
1459
+ },
1460
+ {
1461
+ name: 'canRemove',
1462
+ type: 'bool',
1463
+ },
1464
+ ],
1465
+ },
1466
+ {
1467
+ name: '_transferPerms',
1468
+ type: 'tuple',
1469
+ components: [
1470
+ {
1471
+ name: 'canTransfer',
1472
+ type: 'bool',
1473
+ },
1474
+ {
1475
+ name: 'canCreateCheque',
1476
+ type: 'bool',
1477
+ },
1478
+ {
1479
+ name: 'canAddPendingPayee',
1480
+ type: 'bool',
1481
+ },
1482
+ {
1483
+ name: 'allowedPayees',
1484
+ type: 'address[]',
1485
+ },
1486
+ ],
1487
+ },
1488
+ {
1489
+ name: '_allowedAssets',
1490
+ type: 'address[]',
1491
+ },
1492
+ ],
1493
+ outputs: [
1494
+ {
1495
+ name: '',
1496
+ type: 'bool',
1497
+ },
1498
+ ],
1499
+ },
1500
+ {
1501
+ stateMutability: 'view',
1502
+ type: 'function',
1503
+ name: 'createDefaultGlobalManagerSettings',
1504
+ inputs: [
1505
+ {
1506
+ name: '_managerPeriod',
1507
+ type: 'uint256',
1508
+ },
1509
+ {
1510
+ name: '_minTimeLock',
1511
+ type: 'uint256',
1512
+ },
1513
+ {
1514
+ name: '_defaultActivationLength',
1515
+ type: 'uint256',
1516
+ },
1517
+ ],
1518
+ outputs: [
1519
+ {
1520
+ name: '',
1521
+ type: 'tuple',
1522
+ components: [
1523
+ {
1524
+ name: 'managerPeriod',
1525
+ type: 'uint256',
1526
+ },
1527
+ {
1528
+ name: 'startDelay',
1529
+ type: 'uint256',
1530
+ },
1531
+ {
1532
+ name: 'activationLength',
1533
+ type: 'uint256',
1534
+ },
1535
+ {
1536
+ name: 'canOwnerManage',
1537
+ type: 'bool',
1538
+ },
1539
+ {
1540
+ name: 'limits',
1541
+ type: 'tuple',
1542
+ components: [
1543
+ {
1544
+ name: 'maxUsdValuePerTx',
1545
+ type: 'uint256',
1546
+ },
1547
+ {
1548
+ name: 'maxUsdValuePerPeriod',
1549
+ type: 'uint256',
1550
+ },
1551
+ {
1552
+ name: 'maxUsdValueLifetime',
1553
+ type: 'uint256',
1554
+ },
1555
+ {
1556
+ name: 'maxNumTxsPerPeriod',
1557
+ type: 'uint256',
1558
+ },
1559
+ {
1560
+ name: 'txCooldownBlocks',
1561
+ type: 'uint256',
1562
+ },
1563
+ {
1564
+ name: 'failOnZeroPrice',
1565
+ type: 'bool',
1566
+ },
1567
+ ],
1568
+ },
1569
+ {
1570
+ name: 'legoPerms',
1571
+ type: 'tuple',
1572
+ components: [
1573
+ {
1574
+ name: 'canManageYield',
1575
+ type: 'bool',
1576
+ },
1577
+ {
1578
+ name: 'canBuyAndSell',
1579
+ type: 'bool',
1580
+ },
1581
+ {
1582
+ name: 'canManageDebt',
1583
+ type: 'bool',
1584
+ },
1585
+ {
1586
+ name: 'canManageLiq',
1587
+ type: 'bool',
1588
+ },
1589
+ {
1590
+ name: 'canClaimRewards',
1591
+ type: 'bool',
1592
+ },
1593
+ {
1594
+ name: 'allowedLegos',
1595
+ type: 'uint256[]',
1596
+ },
1597
+ ],
1598
+ },
1599
+ {
1600
+ name: 'whitelistPerms',
1601
+ type: 'tuple',
1602
+ components: [
1603
+ {
1604
+ name: 'canAddPending',
1605
+ type: 'bool',
1606
+ },
1607
+ {
1608
+ name: 'canConfirm',
1609
+ type: 'bool',
1610
+ },
1611
+ {
1612
+ name: 'canCancel',
1613
+ type: 'bool',
1614
+ },
1615
+ {
1616
+ name: 'canRemove',
1617
+ type: 'bool',
1618
+ },
1619
+ ],
1620
+ },
1621
+ {
1622
+ name: 'transferPerms',
1623
+ type: 'tuple',
1624
+ components: [
1625
+ {
1626
+ name: 'canTransfer',
1627
+ type: 'bool',
1628
+ },
1629
+ {
1630
+ name: 'canCreateCheque',
1631
+ type: 'bool',
1632
+ },
1633
+ {
1634
+ name: 'canAddPendingPayee',
1635
+ type: 'bool',
1636
+ },
1637
+ {
1638
+ name: 'allowedPayees',
1639
+ type: 'address[]',
1640
+ },
1641
+ ],
1642
+ },
1643
+ {
1644
+ name: 'allowedAssets',
1645
+ type: 'address[]',
1646
+ },
1647
+ ],
1648
+ },
1649
+ ],
1650
+ },
1651
+ {
1652
+ stateMutability: 'view',
1653
+ type: 'function',
1654
+ name: 'createStarterAgentSettings',
1655
+ inputs: [
1656
+ {
1657
+ name: '_startingAgentActivationLength',
1658
+ type: 'uint256',
1659
+ },
1660
+ ],
1661
+ outputs: [
1662
+ {
1663
+ name: '',
1664
+ type: 'tuple',
1665
+ components: [
1666
+ {
1667
+ name: 'startBlock',
1668
+ type: 'uint256',
1669
+ },
1670
+ {
1671
+ name: 'expiryBlock',
1672
+ type: 'uint256',
1673
+ },
1674
+ {
1675
+ name: 'limits',
1676
+ type: 'tuple',
1677
+ components: [
1678
+ {
1679
+ name: 'maxUsdValuePerTx',
1680
+ type: 'uint256',
1681
+ },
1682
+ {
1683
+ name: 'maxUsdValuePerPeriod',
1684
+ type: 'uint256',
1685
+ },
1686
+ {
1687
+ name: 'maxUsdValueLifetime',
1688
+ type: 'uint256',
1689
+ },
1690
+ {
1691
+ name: 'maxNumTxsPerPeriod',
1692
+ type: 'uint256',
1693
+ },
1694
+ {
1695
+ name: 'txCooldownBlocks',
1696
+ type: 'uint256',
1697
+ },
1698
+ {
1699
+ name: 'failOnZeroPrice',
1700
+ type: 'bool',
1701
+ },
1702
+ ],
1703
+ },
1704
+ {
1705
+ name: 'legoPerms',
1706
+ type: 'tuple',
1707
+ components: [
1708
+ {
1709
+ name: 'canManageYield',
1710
+ type: 'bool',
1711
+ },
1712
+ {
1713
+ name: 'canBuyAndSell',
1714
+ type: 'bool',
1715
+ },
1716
+ {
1717
+ name: 'canManageDebt',
1718
+ type: 'bool',
1719
+ },
1720
+ {
1721
+ name: 'canManageLiq',
1722
+ type: 'bool',
1723
+ },
1724
+ {
1725
+ name: 'canClaimRewards',
1726
+ type: 'bool',
1727
+ },
1728
+ {
1729
+ name: 'allowedLegos',
1730
+ type: 'uint256[]',
1731
+ },
1732
+ ],
1733
+ },
1734
+ {
1735
+ name: 'whitelistPerms',
1736
+ type: 'tuple',
1737
+ components: [
1738
+ {
1739
+ name: 'canAddPending',
1740
+ type: 'bool',
1741
+ },
1742
+ {
1743
+ name: 'canConfirm',
1744
+ type: 'bool',
1745
+ },
1746
+ {
1747
+ name: 'canCancel',
1748
+ type: 'bool',
1749
+ },
1750
+ {
1751
+ name: 'canRemove',
1752
+ type: 'bool',
1753
+ },
1754
+ ],
1755
+ },
1756
+ {
1757
+ name: 'transferPerms',
1758
+ type: 'tuple',
1759
+ components: [
1760
+ {
1761
+ name: 'canTransfer',
1762
+ type: 'bool',
1763
+ },
1764
+ {
1765
+ name: 'canCreateCheque',
1766
+ type: 'bool',
1767
+ },
1768
+ {
1769
+ name: 'canAddPendingPayee',
1770
+ type: 'bool',
1771
+ },
1772
+ {
1773
+ name: 'allowedPayees',
1774
+ type: 'address[]',
1775
+ },
1776
+ ],
1777
+ },
1778
+ {
1779
+ name: 'allowedAssets',
1780
+ type: 'address[]',
1781
+ },
1782
+ {
1783
+ name: 'canClaimLoot',
1784
+ type: 'bool',
1785
+ },
1786
+ ],
1787
+ },
1788
+ ],
1789
+ },
1790
+ {
1791
+ stateMutability: 'view',
1792
+ type: 'function',
1793
+ name: 'getManagerSettingsBundle',
1794
+ inputs: [
1795
+ {
1796
+ name: '_userWallet',
1797
+ type: 'address',
1798
+ },
1799
+ {
1800
+ name: '_manager',
1801
+ type: 'address',
1802
+ },
1803
+ ],
1804
+ outputs: [
1805
+ {
1806
+ name: '',
1807
+ type: 'tuple',
1808
+ components: [
1809
+ {
1810
+ name: 'owner',
1811
+ type: 'address',
1812
+ },
1813
+ {
1814
+ name: 'isManager',
1815
+ type: 'bool',
1816
+ },
1817
+ {
1818
+ name: 'timeLock',
1819
+ type: 'uint256',
1820
+ },
1821
+ {
1822
+ name: 'walletConfig',
1823
+ type: 'address',
1824
+ },
1825
+ {
1826
+ name: 'legoBook',
1827
+ type: 'address',
1828
+ },
1829
+ {
1830
+ name: 'globalManagerSettings',
1831
+ type: 'tuple',
1832
+ components: [
1833
+ {
1834
+ name: 'managerPeriod',
1835
+ type: 'uint256',
1836
+ },
1837
+ {
1838
+ name: 'startDelay',
1839
+ type: 'uint256',
1840
+ },
1841
+ {
1842
+ name: 'activationLength',
1843
+ type: 'uint256',
1844
+ },
1845
+ {
1846
+ name: 'canOwnerManage',
1847
+ type: 'bool',
1848
+ },
1849
+ {
1850
+ name: 'limits',
1851
+ type: 'tuple',
1852
+ components: [
1853
+ {
1854
+ name: 'maxUsdValuePerTx',
1855
+ type: 'uint256',
1856
+ },
1857
+ {
1858
+ name: 'maxUsdValuePerPeriod',
1859
+ type: 'uint256',
1860
+ },
1861
+ {
1862
+ name: 'maxUsdValueLifetime',
1863
+ type: 'uint256',
1864
+ },
1865
+ {
1866
+ name: 'maxNumTxsPerPeriod',
1867
+ type: 'uint256',
1868
+ },
1869
+ {
1870
+ name: 'txCooldownBlocks',
1871
+ type: 'uint256',
1872
+ },
1873
+ {
1874
+ name: 'failOnZeroPrice',
1875
+ type: 'bool',
1876
+ },
1877
+ ],
1878
+ },
1879
+ {
1880
+ name: 'legoPerms',
1881
+ type: 'tuple',
1882
+ components: [
1883
+ {
1884
+ name: 'canManageYield',
1885
+ type: 'bool',
1886
+ },
1887
+ {
1888
+ name: 'canBuyAndSell',
1889
+ type: 'bool',
1890
+ },
1891
+ {
1892
+ name: 'canManageDebt',
1893
+ type: 'bool',
1894
+ },
1895
+ {
1896
+ name: 'canManageLiq',
1897
+ type: 'bool',
1898
+ },
1899
+ {
1900
+ name: 'canClaimRewards',
1901
+ type: 'bool',
1902
+ },
1903
+ {
1904
+ name: 'allowedLegos',
1905
+ type: 'uint256[]',
1906
+ },
1907
+ ],
1908
+ },
1909
+ {
1910
+ name: 'whitelistPerms',
1911
+ type: 'tuple',
1912
+ components: [
1913
+ {
1914
+ name: 'canAddPending',
1915
+ type: 'bool',
1916
+ },
1917
+ {
1918
+ name: 'canConfirm',
1919
+ type: 'bool',
1920
+ },
1921
+ {
1922
+ name: 'canCancel',
1923
+ type: 'bool',
1924
+ },
1925
+ {
1926
+ name: 'canRemove',
1927
+ type: 'bool',
1928
+ },
1929
+ ],
1930
+ },
1931
+ {
1932
+ name: 'transferPerms',
1933
+ type: 'tuple',
1934
+ components: [
1935
+ {
1936
+ name: 'canTransfer',
1937
+ type: 'bool',
1938
+ },
1939
+ {
1940
+ name: 'canCreateCheque',
1941
+ type: 'bool',
1942
+ },
1943
+ {
1944
+ name: 'canAddPendingPayee',
1945
+ type: 'bool',
1946
+ },
1947
+ {
1948
+ name: 'allowedPayees',
1949
+ type: 'address[]',
1950
+ },
1951
+ ],
1952
+ },
1953
+ {
1954
+ name: 'allowedAssets',
1955
+ type: 'address[]',
1956
+ },
1957
+ ],
1958
+ },
1959
+ ],
1960
+ },
1961
+ ],
1962
+ },
1963
+ {
1964
+ stateMutability: 'view',
1965
+ type: 'function',
1966
+ name: 'UNDY_HQ',
1967
+ inputs: [],
1968
+ outputs: [
1969
+ {
1970
+ name: '',
1971
+ type: 'address',
1972
+ },
1973
+ ],
1974
+ },
1975
+ {
1976
+ stateMutability: 'view',
1977
+ type: 'function',
1978
+ name: 'MIN_MANAGER_PERIOD',
1979
+ inputs: [],
1980
+ outputs: [
1981
+ {
1982
+ name: '',
1983
+ type: 'uint256',
1984
+ },
1985
+ ],
1986
+ },
1987
+ {
1988
+ stateMutability: 'view',
1989
+ type: 'function',
1990
+ name: 'MAX_MANAGER_PERIOD',
1991
+ inputs: [],
1992
+ outputs: [
1993
+ {
1994
+ name: '',
1995
+ type: 'uint256',
1996
+ },
1997
+ ],
1998
+ },
1999
+ {
2000
+ stateMutability: 'view',
2001
+ type: 'function',
2002
+ name: 'MAX_START_DELAY',
2003
+ inputs: [],
2004
+ outputs: [
2005
+ {
2006
+ name: '',
2007
+ type: 'uint256',
2008
+ },
2009
+ ],
2010
+ },
2011
+ {
2012
+ stateMutability: 'view',
2013
+ type: 'function',
2014
+ name: 'MIN_ACTIVATION_LENGTH',
2015
+ inputs: [],
2016
+ outputs: [
2017
+ {
2018
+ name: '',
2019
+ type: 'uint256',
2020
+ },
2021
+ ],
2022
+ },
2023
+ {
2024
+ stateMutability: 'view',
2025
+ type: 'function',
2026
+ name: 'MAX_ACTIVATION_LENGTH',
2027
+ inputs: [],
2028
+ outputs: [
2029
+ {
2030
+ name: '',
2031
+ type: 'uint256',
2032
+ },
2033
+ ],
2034
+ },
2035
+ {
2036
+ stateMutability: 'nonpayable',
2037
+ type: 'constructor',
2038
+ inputs: [
2039
+ {
2040
+ name: '_undyHq',
2041
+ type: 'address',
2042
+ },
2043
+ {
2044
+ name: '_minManagerPeriod',
2045
+ type: 'uint256',
2046
+ },
2047
+ {
2048
+ name: '_maxManagerPeriod',
2049
+ type: 'uint256',
2050
+ },
2051
+ {
2052
+ name: '_minActivationLength',
2053
+ type: 'uint256',
2054
+ },
2055
+ {
2056
+ name: '_maxActivationLength',
2057
+ type: 'uint256',
2058
+ },
2059
+ {
2060
+ name: '_maxStartDelay',
2061
+ type: 'uint256',
2062
+ },
2063
+ ],
2064
+ outputs: [],
2065
+ },
2066
+ ];
2067
+ export const deployAddress = '0xD13E72Dea7a32f487be9a3c6d0B640472Eccb4C8';
2068
+ function getRequest(method, args, contractAddressOrOptions) {
2069
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
2070
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
2071
+ const call = {
2072
+ contractName: 'HighCommand',
2073
+ method,
2074
+ args,
2075
+ address,
2076
+ deployAddress,
2077
+ defaultValue,
2078
+ getAbi: () => abi,
2079
+ with: (options) => {
2080
+ call.address = options.contractAddress;
2081
+ call.defaultValue = options.defaultValue;
2082
+ return call;
2083
+ },
2084
+ defaultTo: (defaultValue) => {
2085
+ call.defaultValue = defaultValue;
2086
+ return call;
2087
+ },
2088
+ at: (address) => {
2089
+ call.address = address;
2090
+ return call;
2091
+ },
2092
+ };
2093
+ return call;
2094
+ }
2095
+ export const call = {
2096
+ isValidNewManager: (...args) => getRequest('isValidNewManager', args),
2097
+ validateManagerOnUpdate: (...args) => getRequest('validateManagerOnUpdate', args),
2098
+ validateGlobalManagerSettings: (...args) => getRequest('validateGlobalManagerSettings', args),
2099
+ createDefaultGlobalManagerSettings: (...args) => getRequest('createDefaultGlobalManagerSettings', args),
2100
+ createStarterAgentSettings: (...args) => getRequest('createStarterAgentSettings', args),
2101
+ getManagerSettingsBundle: (...args) => getRequest('getManagerSettingsBundle', args),
2102
+ UNDY_HQ: (...args) => getRequest('UNDY_HQ', args),
2103
+ MIN_MANAGER_PERIOD: (...args) => getRequest('MIN_MANAGER_PERIOD', args),
2104
+ MAX_MANAGER_PERIOD: (...args) => getRequest('MAX_MANAGER_PERIOD', args),
2105
+ MAX_START_DELAY: (...args) => getRequest('MAX_START_DELAY', args),
2106
+ MIN_ACTIVATION_LENGTH: (...args) => getRequest('MIN_ACTIVATION_LENGTH', args),
2107
+ MAX_ACTIVATION_LENGTH: (...args) => getRequest('MAX_ACTIVATION_LENGTH', args),
2108
+ };
2109
+ function getMutation(functionName) {
2110
+ return {
2111
+ contractName: 'HighCommand',
2112
+ functionName,
2113
+ deployAddress,
2114
+ argsType: undefined,
2115
+ getAbi: () => abi,
2116
+ };
2117
+ }
2118
+ export const mutation = {
2119
+ addManager: getMutation('addManager'),
2120
+ updateManager: getMutation('updateManager'),
2121
+ removeManager: getMutation('removeManager'),
2122
+ adjustManagerActivationLength: getMutation('adjustManagerActivationLength'),
2123
+ setGlobalManagerSettings: getMutation('setGlobalManagerSettings'),
2124
+ };
2125
+ export function toSdk(publicClient, walletClient) {
2126
+ return {
2127
+ deployAddress,
2128
+ abi,
2129
+ // Queries
2130
+ isValidNewManager: (...args) => singleQuery(publicClient, call.isValidNewManager(...args)),
2131
+ validateManagerOnUpdate: (...args) => singleQuery(publicClient, call.validateManagerOnUpdate(...args)),
2132
+ validateGlobalManagerSettings: (...args) => singleQuery(publicClient, call.validateGlobalManagerSettings(...args)),
2133
+ createDefaultGlobalManagerSettings: (...args) => singleQuery(publicClient, call.createDefaultGlobalManagerSettings(...args)),
2134
+ createStarterAgentSettings: (...args) => singleQuery(publicClient, call.createStarterAgentSettings(...args)),
2135
+ getManagerSettingsBundle: (...args) => singleQuery(publicClient, call.getManagerSettingsBundle(...args)),
2136
+ UNDY_HQ: (...args) => singleQuery(publicClient, call.UNDY_HQ(...args)),
2137
+ MIN_MANAGER_PERIOD: (...args) => singleQuery(publicClient, call.MIN_MANAGER_PERIOD(...args)),
2138
+ MAX_MANAGER_PERIOD: (...args) => singleQuery(publicClient, call.MAX_MANAGER_PERIOD(...args)),
2139
+ MAX_START_DELAY: (...args) => singleQuery(publicClient, call.MAX_START_DELAY(...args)),
2140
+ MIN_ACTIVATION_LENGTH: (...args) => singleQuery(publicClient, call.MIN_ACTIVATION_LENGTH(...args)),
2141
+ MAX_ACTIVATION_LENGTH: (...args) => singleQuery(publicClient, call.MAX_ACTIVATION_LENGTH(...args)),
2142
+ // Mutations
2143
+ addManager: (...args) => mutate(walletClient, mutation.addManager)(...args),
2144
+ updateManager: (...args) => mutate(walletClient, mutation.updateManager)(...args),
2145
+ removeManager: (...args) => mutate(walletClient, mutation.removeManager)(...args),
2146
+ adjustManagerActivationLength: (...args) => mutate(walletClient, mutation.adjustManagerActivationLength)(...args),
2147
+ setGlobalManagerSettings: (...args) => mutate(walletClient, mutation.setGlobalManagerSettings)(...args),
2148
+ };
2149
+ }