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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (284) hide show
  1. package/AGENTS.md +172 -0
  2. package/README.md +17 -116
  3. package/abis.json +193056 -0
  4. package/addresses.json +76 -0
  5. package/dist/contracts/AaveV3.d.ts +2594 -0
  6. package/dist/contracts/AaveV3.d.ts.map +1 -0
  7. package/dist/contracts/AaveV3.js +3272 -0
  8. package/dist/contracts/Addys.d.ts +124 -0
  9. package/dist/contracts/Addys.d.ts.map +1 -0
  10. package/dist/contracts/Addys.js +134 -0
  11. package/dist/contracts/AeroClassic.d.ts +2118 -0
  12. package/dist/contracts/AeroClassic.d.ts.map +1 -0
  13. package/dist/contracts/AeroClassic.js +2679 -0
  14. package/dist/contracts/AeroSlipstream.d.ts +2256 -0
  15. package/dist/contracts/AeroSlipstream.d.ts.map +1 -0
  16. package/dist/contracts/AeroSlipstream.js +2848 -0
  17. package/dist/contracts/AgentSenderGeneric.d.ts +4771 -0
  18. package/dist/contracts/AgentSenderGeneric.d.ts.map +1 -0
  19. package/dist/contracts/AgentSenderGeneric.js +6192 -0
  20. package/dist/contracts/AgentSenderSpecial.d.ts +2124 -0
  21. package/dist/contracts/AgentSenderSpecial.d.ts.map +1 -0
  22. package/dist/contracts/AgentSenderSpecial.js +2671 -0
  23. package/dist/contracts/AgentSenderSpecialAdmin.d.ts +984 -0
  24. package/dist/contracts/AgentSenderSpecialAdmin.d.ts.map +1 -0
  25. package/dist/contracts/AgentSenderSpecialAdmin.js +1185 -0
  26. package/dist/contracts/AgentSenderSpecialSigHelper.d.ts +3180 -0
  27. package/dist/contracts/AgentSenderSpecialSigHelper.d.ts.map +1 -0
  28. package/dist/contracts/AgentSenderSpecialSigHelper.js +4211 -0
  29. package/dist/contracts/AgentWrapper.d.ts +2678 -0
  30. package/dist/contracts/AgentWrapper.d.ts.map +1 -0
  31. package/dist/contracts/AgentWrapper.js +3602 -0
  32. package/dist/contracts/AgentWrapperV1.d.ts +3789 -0
  33. package/dist/contracts/AgentWrapperV1.d.ts.map +1 -0
  34. package/dist/contracts/AgentWrapperV1.js +4945 -0
  35. package/dist/contracts/AgentWrapperV2.d.ts +2494 -0
  36. package/dist/contracts/AgentWrapperV2.d.ts.map +1 -0
  37. package/dist/contracts/AgentWrapperV2.js +3354 -0
  38. package/dist/contracts/Appraiser.d.ts +577 -0
  39. package/dist/contracts/Appraiser.d.ts.map +1 -0
  40. package/dist/contracts/Appraiser.js +735 -0
  41. package/dist/contracts/Avantis.d.ts +2606 -0
  42. package/dist/contracts/Avantis.d.ts.map +1 -0
  43. package/dist/contracts/Avantis.js +3282 -0
  44. package/dist/contracts/Billing.d.ts +381 -0
  45. package/dist/contracts/Billing.d.ts.map +1 -0
  46. package/dist/contracts/Billing.js +451 -0
  47. package/dist/contracts/ChequeBook.d.ts +1860 -0
  48. package/dist/contracts/ChequeBook.d.ts.map +1 -0
  49. package/dist/contracts/ChequeBook.js +2131 -0
  50. package/dist/contracts/CompoundV3.d.ts +2622 -0
  51. package/dist/contracts/CompoundV3.d.ts.map +1 -0
  52. package/dist/contracts/CompoundV3.js +3304 -0
  53. package/dist/contracts/ConvertVaultToken.d.ts +64 -0
  54. package/dist/contracts/ConvertVaultToken.d.ts.map +1 -0
  55. package/dist/contracts/ConvertVaultToken.js +75 -0
  56. package/dist/contracts/Curve.d.ts +1107 -0
  57. package/dist/contracts/Curve.d.ts.map +1 -0
  58. package/dist/contracts/Curve.js +1379 -0
  59. package/dist/contracts/DefaultsBase.d.ts +306 -0
  60. package/dist/contracts/DefaultsBase.d.ts.map +1 -0
  61. package/dist/contracts/DefaultsBase.js +331 -0
  62. package/dist/contracts/DefaultsLocal.d.ts +320 -0
  63. package/dist/contracts/DefaultsLocal.d.ts.map +1 -0
  64. package/dist/contracts/DefaultsLocal.js +350 -0
  65. package/dist/contracts/ERC20.d.ts +813 -0
  66. package/dist/contracts/ERC20.d.ts.map +1 -0
  67. package/dist/contracts/ERC20.js +1006 -0
  68. package/dist/contracts/EarnVault.d.ts +1762 -0
  69. package/dist/contracts/EarnVault.d.ts.map +1 -0
  70. package/dist/contracts/EarnVault.js +2267 -0
  71. package/dist/contracts/EarnVaultAgent.d.ts +1160 -0
  72. package/dist/contracts/EarnVaultAgent.d.ts.map +1 -0
  73. package/dist/contracts/EarnVaultAgent.js +1435 -0
  74. package/dist/contracts/EarnVaultAgentSigHelper.d.ts +905 -0
  75. package/dist/contracts/EarnVaultAgentSigHelper.d.ts.map +1 -0
  76. package/dist/contracts/EarnVaultAgentSigHelper.js +1198 -0
  77. package/dist/contracts/EarnVaultWallet.d.ts +777 -0
  78. package/dist/contracts/EarnVaultWallet.d.ts.map +1 -0
  79. package/dist/contracts/EarnVaultWallet.js +987 -0
  80. package/dist/contracts/Erc20Token.d.ts +813 -0
  81. package/dist/contracts/Erc20Token.d.ts.map +1 -0
  82. package/dist/contracts/Erc20Token.js +1006 -0
  83. package/dist/contracts/Euler.d.ts +2662 -0
  84. package/dist/contracts/Euler.d.ts.map +1 -0
  85. package/dist/contracts/Euler.js +3350 -0
  86. package/dist/contracts/ExtraFi.d.ts +2637 -0
  87. package/dist/contracts/ExtraFi.d.ts.map +1 -0
  88. package/dist/contracts/ExtraFi.js +3323 -0
  89. package/dist/contracts/Fluid.d.ts +2634 -0
  90. package/dist/contracts/Fluid.d.ts.map +1 -0
  91. package/dist/contracts/Fluid.js +3318 -0
  92. package/dist/contracts/FortyAcres.d.ts +2620 -0
  93. package/dist/contracts/FortyAcres.d.ts.map +1 -0
  94. package/dist/contracts/FortyAcres.js +3300 -0
  95. package/dist/contracts/Hatchery.d.ts +392 -0
  96. package/dist/contracts/Hatchery.d.ts.map +1 -0
  97. package/dist/contracts/Hatchery.js +472 -0
  98. package/dist/contracts/Helpers.d.ts +1463 -0
  99. package/dist/contracts/Helpers.d.ts.map +1 -0
  100. package/dist/contracts/Helpers.js +1763 -0
  101. package/dist/contracts/HighCommand.d.ts +2169 -0
  102. package/dist/contracts/HighCommand.d.ts.map +1 -0
  103. package/dist/contracts/HighCommand.js +2474 -0
  104. package/dist/contracts/Kernel.d.ts +391 -0
  105. package/dist/contracts/Kernel.d.ts.map +1 -0
  106. package/dist/contracts/Kernel.js +446 -0
  107. package/dist/contracts/Ledger.d.ts +637 -0
  108. package/dist/contracts/Ledger.d.ts.map +1 -0
  109. package/dist/contracts/Ledger.js +759 -0
  110. package/dist/contracts/LegoBook.d.ts +1463 -0
  111. package/dist/contracts/LegoBook.d.ts.map +1 -0
  112. package/dist/contracts/LegoBook.js +1763 -0
  113. package/dist/contracts/LegoTools.d.ts +1913 -0
  114. package/dist/contracts/LegoTools.d.ts.map +1 -0
  115. package/dist/contracts/LegoTools.js +2402 -0
  116. package/dist/contracts/LevgVault.d.ts +2115 -0
  117. package/dist/contracts/LevgVault.d.ts.map +1 -0
  118. package/dist/contracts/LevgVault.js +2733 -0
  119. package/dist/contracts/LevgVaultAgent.d.ts +2013 -0
  120. package/dist/contracts/LevgVaultAgent.d.ts.map +1 -0
  121. package/dist/contracts/LevgVaultAgent.js +2563 -0
  122. package/dist/contracts/LevgVaultAgentSigHelper.d.ts +2221 -0
  123. package/dist/contracts/LevgVaultAgentSigHelper.d.ts.map +1 -0
  124. package/dist/contracts/LevgVaultAgentSigHelper.js +2963 -0
  125. package/dist/contracts/LevgVaultHelper.d.ts +977 -0
  126. package/dist/contracts/LevgVaultHelper.d.ts.map +1 -0
  127. package/dist/contracts/LevgVaultHelper.js +1289 -0
  128. package/dist/contracts/LevgVaultTools.d.ts +2629 -0
  129. package/dist/contracts/LevgVaultTools.d.ts.map +1 -0
  130. package/dist/contracts/LevgVaultTools.js +3560 -0
  131. package/dist/contracts/LevgVaultWallet.d.ts +1119 -0
  132. package/dist/contracts/LevgVaultWallet.d.ts.map +1 -0
  133. package/dist/contracts/LevgVaultWallet.js +1439 -0
  134. package/dist/contracts/LocalGov.d.ts +427 -0
  135. package/dist/contracts/LocalGov.d.ts.map +1 -0
  136. package/dist/contracts/LocalGov.js +507 -0
  137. package/dist/contracts/LootDistributor.d.ts +1053 -0
  138. package/dist/contracts/LootDistributor.d.ts.map +1 -0
  139. package/dist/contracts/LootDistributor.js +1291 -0
  140. package/dist/contracts/Migrator.d.ts +449 -0
  141. package/dist/contracts/Migrator.d.ts.map +1 -0
  142. package/dist/contracts/Migrator.js +535 -0
  143. package/dist/contracts/MissionControl.d.ts +1405 -0
  144. package/dist/contracts/MissionControl.d.ts.map +1 -0
  145. package/dist/contracts/MissionControl.js +1592 -0
  146. package/dist/contracts/Moonwell.d.ts +2623 -0
  147. package/dist/contracts/Moonwell.d.ts.map +1 -0
  148. package/dist/contracts/Moonwell.js +3304 -0
  149. package/dist/contracts/Morpho.d.ts +2662 -0
  150. package/dist/contracts/Morpho.d.ts.map +1 -0
  151. package/dist/contracts/Morpho.js +3350 -0
  152. package/dist/contracts/Ownership.d.ts +414 -0
  153. package/dist/contracts/Ownership.d.ts.map +1 -0
  154. package/dist/contracts/Ownership.js +472 -0
  155. package/dist/contracts/Paymaster.d.ts +1511 -0
  156. package/dist/contracts/Paymaster.d.ts.map +1 -0
  157. package/dist/contracts/Paymaster.js +1812 -0
  158. package/dist/contracts/RipeLego.d.ts +2913 -0
  159. package/dist/contracts/RipeLego.d.ts.map +1 -0
  160. package/dist/contracts/RipeLego.js +3643 -0
  161. package/dist/contracts/Sentinel.d.ts +2067 -0
  162. package/dist/contracts/Sentinel.d.ts.map +1 -0
  163. package/dist/contracts/Sentinel.js +2480 -0
  164. package/dist/contracts/SignatureHelper.d.ts +4250 -0
  165. package/dist/contracts/SignatureHelper.d.ts.map +1 -0
  166. package/dist/contracts/SignatureHelper.js +5714 -0
  167. package/dist/contracts/SignatureHelperV1.d.ts +4250 -0
  168. package/dist/contracts/SignatureHelperV1.d.ts.map +1 -0
  169. package/dist/contracts/SignatureHelperV1.js +5714 -0
  170. package/dist/contracts/SkyPsm.d.ts +2667 -0
  171. package/dist/contracts/SkyPsm.d.ts.map +1 -0
  172. package/dist/contracts/SkyPsm.js +3356 -0
  173. package/dist/contracts/Switchboard.d.ts +1483 -0
  174. package/dist/contracts/Switchboard.d.ts.map +1 -0
  175. package/dist/contracts/Switchboard.js +1790 -0
  176. package/dist/contracts/SwitchboardAlpha.d.ts +3161 -0
  177. package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -0
  178. package/dist/contracts/SwitchboardAlpha.js +3771 -0
  179. package/dist/contracts/SwitchboardBravo.d.ts +1591 -0
  180. package/dist/contracts/SwitchboardBravo.d.ts.map +1 -0
  181. package/dist/contracts/SwitchboardBravo.js +1872 -0
  182. package/dist/contracts/SwitchboardCharlie.d.ts +3172 -0
  183. package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -0
  184. package/dist/contracts/SwitchboardCharlie.js +3713 -0
  185. package/dist/contracts/UnderscoreLego.d.ts +2592 -0
  186. package/dist/contracts/UnderscoreLego.d.ts.map +1 -0
  187. package/dist/contracts/UnderscoreLego.js +3264 -0
  188. package/dist/contracts/UndyAero.d.ts +1733 -0
  189. package/dist/contracts/UndyAero.d.ts.map +1 -0
  190. package/dist/contracts/UndyAero.js +2235 -0
  191. package/dist/contracts/UndyBtc.d.ts +1733 -0
  192. package/dist/contracts/UndyBtc.d.ts.map +1 -0
  193. package/dist/contracts/UndyBtc.js +2235 -0
  194. package/dist/contracts/UndyCbeth.d.ts +1733 -0
  195. package/dist/contracts/UndyCbeth.d.ts.map +1 -0
  196. package/dist/contracts/UndyCbeth.js +2235 -0
  197. package/dist/contracts/UndyEth.d.ts +1733 -0
  198. package/dist/contracts/UndyEth.d.ts.map +1 -0
  199. package/dist/contracts/UndyEth.js +2235 -0
  200. package/dist/contracts/UndyEurc.d.ts +1733 -0
  201. package/dist/contracts/UndyEurc.d.ts.map +1 -0
  202. package/dist/contracts/UndyEurc.js +2235 -0
  203. package/dist/contracts/UndyGho.d.ts +1733 -0
  204. package/dist/contracts/UndyGho.d.ts.map +1 -0
  205. package/dist/contracts/UndyGho.js +2235 -0
  206. package/dist/contracts/UndyHq.d.ts +1677 -0
  207. package/dist/contracts/UndyHq.d.ts.map +1 -0
  208. package/dist/contracts/UndyHq.js +2026 -0
  209. package/dist/contracts/UndyRewardsLego.d.ts +1572 -0
  210. package/dist/contracts/UndyRewardsLego.d.ts.map +1 -0
  211. package/dist/contracts/UndyRewardsLego.js +1994 -0
  212. package/dist/contracts/UndyToken.d.ts +821 -0
  213. package/dist/contracts/UndyToken.d.ts.map +1 -0
  214. package/dist/contracts/UndyToken.js +1017 -0
  215. package/dist/contracts/UndyUsd.d.ts +1733 -0
  216. package/dist/contracts/UndyUsd.d.ts.map +1 -0
  217. package/dist/contracts/UndyUsd.js +2235 -0
  218. package/dist/contracts/UndyUsdV2.d.ts +1762 -0
  219. package/dist/contracts/UndyUsdV2.d.ts.map +1 -0
  220. package/dist/contracts/UndyUsdV2.js +2267 -0
  221. package/dist/contracts/UndyUsds.d.ts +1733 -0
  222. package/dist/contracts/UndyUsds.d.ts.map +1 -0
  223. package/dist/contracts/UndyUsds.js +2235 -0
  224. package/dist/contracts/UndyVirtual.d.ts +1762 -0
  225. package/dist/contracts/UndyVirtual.d.ts.map +1 -0
  226. package/dist/contracts/UndyVirtual.js +2267 -0
  227. package/dist/contracts/UniswapV2.d.ts +2118 -0
  228. package/dist/contracts/UniswapV2.d.ts.map +1 -0
  229. package/dist/contracts/UniswapV2.js +2679 -0
  230. package/dist/contracts/UniswapV3.d.ts +2256 -0
  231. package/dist/contracts/UniswapV3.d.ts.map +1 -0
  232. package/dist/contracts/UniswapV3.js +2848 -0
  233. package/dist/contracts/UserWallet.d.ts +2650 -0
  234. package/dist/contracts/UserWallet.d.ts.map +1 -0
  235. package/dist/contracts/UserWallet.js +3520 -0
  236. package/dist/contracts/UserWalletConfig.d.ts +3918 -0
  237. package/dist/contracts/UserWalletConfig.d.ts.map +1 -0
  238. package/dist/contracts/UserWalletConfig.js +4527 -0
  239. package/dist/contracts/UserWalletConfigV1.d.ts +3692 -0
  240. package/dist/contracts/UserWalletConfigV1.d.ts.map +1 -0
  241. package/dist/contracts/UserWalletConfigV1.js +4276 -0
  242. package/dist/contracts/UserWalletSignatureHelper.d.ts +5558 -0
  243. package/dist/contracts/UserWalletSignatureHelper.d.ts.map +1 -0
  244. package/dist/contracts/UserWalletSignatureHelper.js +7480 -0
  245. package/dist/contracts/UserWalletV1.d.ts +2650 -0
  246. package/dist/contracts/UserWalletV1.d.ts.map +1 -0
  247. package/dist/contracts/UserWalletV1.js +3520 -0
  248. package/dist/contracts/VaultErc20Token.d.ts +522 -0
  249. package/dist/contracts/VaultErc20Token.d.ts.map +1 -0
  250. package/dist/contracts/VaultErc20Token.js +658 -0
  251. package/dist/contracts/VaultRegistry.d.ts +3162 -0
  252. package/dist/contracts/VaultRegistry.d.ts.map +1 -0
  253. package/dist/contracts/VaultRegistry.js +3893 -0
  254. package/dist/contracts/WalletBackpack.d.ts +1248 -0
  255. package/dist/contracts/WalletBackpack.d.ts.map +1 -0
  256. package/dist/contracts/WalletBackpack.js +1519 -0
  257. package/dist/contracts/Wasabi.d.ts +2620 -0
  258. package/dist/contracts/Wasabi.d.ts.map +1 -0
  259. package/dist/contracts/Wasabi.js +3300 -0
  260. package/dist/contracts/index.d.ts +86 -0
  261. package/dist/contracts/index.d.ts.map +1 -0
  262. package/dist/contracts/index.js +89 -0
  263. package/dist/contracts/sdk.d.ts +176 -0
  264. package/dist/contracts/sdk.d.ts.map +1 -0
  265. package/dist/contracts/sdk.js +178 -0
  266. package/dist/getSwapInstructions.d.ts +34 -0
  267. package/dist/getSwapInstructions.d.ts.map +1 -0
  268. package/dist/getSwapInstructions.js +21 -0
  269. package/dist/index.d.ts +135 -0
  270. package/dist/index.d.ts.map +1 -0
  271. package/dist/index.js +137 -0
  272. package/package.json +44 -17
  273. package/.claude/settings.local.json +0 -31
  274. package/.eslintrc.json +0 -27
  275. package/.prettierrc +0 -9
  276. package/.tool-versions +0 -1
  277. package/LICENSE +0 -41
  278. package/LICENSE_DATE.md +0 -34
  279. package/LICENSE_GRANTS.md +0 -33
  280. package/LICENSE_INFO.md +0 -90
  281. package/dapp.config.js +0 -154
  282. package/src/getSwapInstructions.ts +0 -55
  283. package/src/index.ts +0 -192
  284. package/tsconfig.json +0 -18
@@ -0,0 +1,2474 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /* @ts-nocheck */
5
+ import { singleQuery, mutate } from '@dappql/async';
6
+ import { encodeEventTopics, parseEventLogs } from 'viem';
7
+ export const abi = [
8
+ {
9
+ "name": "GlobalManagerSettingsModified",
10
+ "inputs": [
11
+ {
12
+ "name": "user",
13
+ "type": "address",
14
+ "indexed": true
15
+ },
16
+ {
17
+ "name": "managerPeriod",
18
+ "type": "uint256",
19
+ "indexed": false
20
+ },
21
+ {
22
+ "name": "startDelay",
23
+ "type": "uint256",
24
+ "indexed": false
25
+ },
26
+ {
27
+ "name": "activationLength",
28
+ "type": "uint256",
29
+ "indexed": false
30
+ },
31
+ {
32
+ "name": "canOwnerManage",
33
+ "type": "bool",
34
+ "indexed": false
35
+ },
36
+ {
37
+ "name": "maxUsdValuePerTx",
38
+ "type": "uint256",
39
+ "indexed": false
40
+ },
41
+ {
42
+ "name": "maxUsdValuePerPeriod",
43
+ "type": "uint256",
44
+ "indexed": false
45
+ },
46
+ {
47
+ "name": "maxUsdValueLifetime",
48
+ "type": "uint256",
49
+ "indexed": false
50
+ },
51
+ {
52
+ "name": "maxNumTxsPerPeriod",
53
+ "type": "uint256",
54
+ "indexed": false
55
+ },
56
+ {
57
+ "name": "txCooldownBlocks",
58
+ "type": "uint256",
59
+ "indexed": false
60
+ },
61
+ {
62
+ "name": "failOnZeroPrice",
63
+ "type": "bool",
64
+ "indexed": false
65
+ },
66
+ {
67
+ "name": "canManageYield",
68
+ "type": "bool",
69
+ "indexed": false
70
+ },
71
+ {
72
+ "name": "canBuyAndSell",
73
+ "type": "bool",
74
+ "indexed": false
75
+ },
76
+ {
77
+ "name": "canManageDebt",
78
+ "type": "bool",
79
+ "indexed": false
80
+ },
81
+ {
82
+ "name": "canManageLiq",
83
+ "type": "bool",
84
+ "indexed": false
85
+ },
86
+ {
87
+ "name": "canClaimRewards",
88
+ "type": "bool",
89
+ "indexed": false
90
+ },
91
+ {
92
+ "name": "numAllowedLegos",
93
+ "type": "uint256",
94
+ "indexed": false
95
+ },
96
+ {
97
+ "name": "canAddPendingWhitelist",
98
+ "type": "bool",
99
+ "indexed": false
100
+ },
101
+ {
102
+ "name": "canConfirmWhitelist",
103
+ "type": "bool",
104
+ "indexed": false
105
+ },
106
+ {
107
+ "name": "canCancelWhitelist",
108
+ "type": "bool",
109
+ "indexed": false
110
+ },
111
+ {
112
+ "name": "canRemoveWhitelist",
113
+ "type": "bool",
114
+ "indexed": false
115
+ },
116
+ {
117
+ "name": "canTransfer",
118
+ "type": "bool",
119
+ "indexed": false
120
+ },
121
+ {
122
+ "name": "canCreateCheque",
123
+ "type": "bool",
124
+ "indexed": false
125
+ },
126
+ {
127
+ "name": "canAddPendingPayee",
128
+ "type": "bool",
129
+ "indexed": false
130
+ },
131
+ {
132
+ "name": "numAllowedRecipients",
133
+ "type": "uint256",
134
+ "indexed": false
135
+ },
136
+ {
137
+ "name": "numAllowedAssets",
138
+ "type": "uint256",
139
+ "indexed": false
140
+ }
141
+ ],
142
+ "anonymous": false,
143
+ "type": "event"
144
+ },
145
+ {
146
+ "name": "ManagerSettingsModified",
147
+ "inputs": [
148
+ {
149
+ "name": "user",
150
+ "type": "address",
151
+ "indexed": true
152
+ },
153
+ {
154
+ "name": "manager",
155
+ "type": "address",
156
+ "indexed": true
157
+ },
158
+ {
159
+ "name": "startBlock",
160
+ "type": "uint256",
161
+ "indexed": false
162
+ },
163
+ {
164
+ "name": "expiryBlock",
165
+ "type": "uint256",
166
+ "indexed": false
167
+ },
168
+ {
169
+ "name": "maxUsdValuePerTx",
170
+ "type": "uint256",
171
+ "indexed": false
172
+ },
173
+ {
174
+ "name": "maxUsdValuePerPeriod",
175
+ "type": "uint256",
176
+ "indexed": false
177
+ },
178
+ {
179
+ "name": "maxUsdValueLifetime",
180
+ "type": "uint256",
181
+ "indexed": false
182
+ },
183
+ {
184
+ "name": "maxNumTxsPerPeriod",
185
+ "type": "uint256",
186
+ "indexed": false
187
+ },
188
+ {
189
+ "name": "txCooldownBlocks",
190
+ "type": "uint256",
191
+ "indexed": false
192
+ },
193
+ {
194
+ "name": "failOnZeroPrice",
195
+ "type": "bool",
196
+ "indexed": false
197
+ },
198
+ {
199
+ "name": "canManageYield",
200
+ "type": "bool",
201
+ "indexed": false
202
+ },
203
+ {
204
+ "name": "canBuyAndSell",
205
+ "type": "bool",
206
+ "indexed": false
207
+ },
208
+ {
209
+ "name": "canManageDebt",
210
+ "type": "bool",
211
+ "indexed": false
212
+ },
213
+ {
214
+ "name": "canManageLiq",
215
+ "type": "bool",
216
+ "indexed": false
217
+ },
218
+ {
219
+ "name": "canClaimRewards",
220
+ "type": "bool",
221
+ "indexed": false
222
+ },
223
+ {
224
+ "name": "numAllowedLegos",
225
+ "type": "uint256",
226
+ "indexed": false
227
+ },
228
+ {
229
+ "name": "canAddPendingWhitelist",
230
+ "type": "bool",
231
+ "indexed": false
232
+ },
233
+ {
234
+ "name": "canConfirmWhitelist",
235
+ "type": "bool",
236
+ "indexed": false
237
+ },
238
+ {
239
+ "name": "canCancelWhitelist",
240
+ "type": "bool",
241
+ "indexed": false
242
+ },
243
+ {
244
+ "name": "canRemoveWhitelist",
245
+ "type": "bool",
246
+ "indexed": false
247
+ },
248
+ {
249
+ "name": "canTransfer",
250
+ "type": "bool",
251
+ "indexed": false
252
+ },
253
+ {
254
+ "name": "canCreateCheque",
255
+ "type": "bool",
256
+ "indexed": false
257
+ },
258
+ {
259
+ "name": "canAddPendingPayee",
260
+ "type": "bool",
261
+ "indexed": false
262
+ },
263
+ {
264
+ "name": "numAllowedRecipients",
265
+ "type": "uint256",
266
+ "indexed": false
267
+ },
268
+ {
269
+ "name": "numAllowedAssets",
270
+ "type": "uint256",
271
+ "indexed": false
272
+ },
273
+ {
274
+ "name": "canClaimLoot",
275
+ "type": "bool",
276
+ "indexed": false
277
+ }
278
+ ],
279
+ "anonymous": false,
280
+ "type": "event"
281
+ },
282
+ {
283
+ "name": "ManagerRemoved",
284
+ "inputs": [
285
+ {
286
+ "name": "user",
287
+ "type": "address",
288
+ "indexed": true
289
+ },
290
+ {
291
+ "name": "manager",
292
+ "type": "address",
293
+ "indexed": true
294
+ }
295
+ ],
296
+ "anonymous": false,
297
+ "type": "event"
298
+ },
299
+ {
300
+ "name": "ManagerActivationLengthAdjusted",
301
+ "inputs": [
302
+ {
303
+ "name": "user",
304
+ "type": "address",
305
+ "indexed": true
306
+ },
307
+ {
308
+ "name": "manager",
309
+ "type": "address",
310
+ "indexed": true
311
+ },
312
+ {
313
+ "name": "activationLength",
314
+ "type": "uint256",
315
+ "indexed": false
316
+ },
317
+ {
318
+ "name": "didRestart",
319
+ "type": "bool",
320
+ "indexed": false
321
+ }
322
+ ],
323
+ "anonymous": false,
324
+ "type": "event"
325
+ },
326
+ {
327
+ "name": "StarterAgentNeutered",
328
+ "inputs": [
329
+ {
330
+ "name": "user",
331
+ "type": "address",
332
+ "indexed": true
333
+ },
334
+ {
335
+ "name": "starterAgent",
336
+ "type": "address",
337
+ "indexed": true
338
+ }
339
+ ],
340
+ "anonymous": false,
341
+ "type": "event"
342
+ },
343
+ {
344
+ "stateMutability": "nonpayable",
345
+ "type": "function",
346
+ "name": "addManager",
347
+ "inputs": [
348
+ {
349
+ "name": "_userWallet",
350
+ "type": "address"
351
+ },
352
+ {
353
+ "name": "_manager",
354
+ "type": "address"
355
+ },
356
+ {
357
+ "name": "_limits",
358
+ "type": "tuple",
359
+ "components": [
360
+ {
361
+ "name": "maxUsdValuePerTx",
362
+ "type": "uint256"
363
+ },
364
+ {
365
+ "name": "maxUsdValuePerPeriod",
366
+ "type": "uint256"
367
+ },
368
+ {
369
+ "name": "maxUsdValueLifetime",
370
+ "type": "uint256"
371
+ },
372
+ {
373
+ "name": "maxNumTxsPerPeriod",
374
+ "type": "uint256"
375
+ },
376
+ {
377
+ "name": "txCooldownBlocks",
378
+ "type": "uint256"
379
+ },
380
+ {
381
+ "name": "failOnZeroPrice",
382
+ "type": "bool"
383
+ }
384
+ ]
385
+ },
386
+ {
387
+ "name": "_legoPerms",
388
+ "type": "tuple",
389
+ "components": [
390
+ {
391
+ "name": "canManageYield",
392
+ "type": "bool"
393
+ },
394
+ {
395
+ "name": "canBuyAndSell",
396
+ "type": "bool"
397
+ },
398
+ {
399
+ "name": "canManageDebt",
400
+ "type": "bool"
401
+ },
402
+ {
403
+ "name": "canManageLiq",
404
+ "type": "bool"
405
+ },
406
+ {
407
+ "name": "canClaimRewards",
408
+ "type": "bool"
409
+ },
410
+ {
411
+ "name": "onlyApprovedYieldOpps",
412
+ "type": "bool"
413
+ },
414
+ {
415
+ "name": "allowedLegos",
416
+ "type": "uint256[]"
417
+ }
418
+ ]
419
+ },
420
+ {
421
+ "name": "_swapPerms",
422
+ "type": "tuple",
423
+ "components": [
424
+ {
425
+ "name": "mustHaveUsdValue",
426
+ "type": "bool"
427
+ },
428
+ {
429
+ "name": "maxNumSwapsPerPeriod",
430
+ "type": "uint256"
431
+ },
432
+ {
433
+ "name": "maxSlippage",
434
+ "type": "uint256"
435
+ }
436
+ ]
437
+ },
438
+ {
439
+ "name": "_whitelistPerms",
440
+ "type": "tuple",
441
+ "components": [
442
+ {
443
+ "name": "canAddPending",
444
+ "type": "bool"
445
+ },
446
+ {
447
+ "name": "canConfirm",
448
+ "type": "bool"
449
+ },
450
+ {
451
+ "name": "canCancel",
452
+ "type": "bool"
453
+ },
454
+ {
455
+ "name": "canRemove",
456
+ "type": "bool"
457
+ }
458
+ ]
459
+ },
460
+ {
461
+ "name": "_transferPerms",
462
+ "type": "tuple",
463
+ "components": [
464
+ {
465
+ "name": "canTransfer",
466
+ "type": "bool"
467
+ },
468
+ {
469
+ "name": "canCreateCheque",
470
+ "type": "bool"
471
+ },
472
+ {
473
+ "name": "canAddPendingPayee",
474
+ "type": "bool"
475
+ },
476
+ {
477
+ "name": "allowedPayees",
478
+ "type": "address[]"
479
+ }
480
+ ]
481
+ },
482
+ {
483
+ "name": "_allowedAssets",
484
+ "type": "address[]"
485
+ },
486
+ {
487
+ "name": "_canClaimLoot",
488
+ "type": "bool"
489
+ }
490
+ ],
491
+ "outputs": [
492
+ {
493
+ "name": "",
494
+ "type": "bool"
495
+ }
496
+ ]
497
+ },
498
+ {
499
+ "stateMutability": "nonpayable",
500
+ "type": "function",
501
+ "name": "addManager",
502
+ "inputs": [
503
+ {
504
+ "name": "_userWallet",
505
+ "type": "address"
506
+ },
507
+ {
508
+ "name": "_manager",
509
+ "type": "address"
510
+ },
511
+ {
512
+ "name": "_limits",
513
+ "type": "tuple",
514
+ "components": [
515
+ {
516
+ "name": "maxUsdValuePerTx",
517
+ "type": "uint256"
518
+ },
519
+ {
520
+ "name": "maxUsdValuePerPeriod",
521
+ "type": "uint256"
522
+ },
523
+ {
524
+ "name": "maxUsdValueLifetime",
525
+ "type": "uint256"
526
+ },
527
+ {
528
+ "name": "maxNumTxsPerPeriod",
529
+ "type": "uint256"
530
+ },
531
+ {
532
+ "name": "txCooldownBlocks",
533
+ "type": "uint256"
534
+ },
535
+ {
536
+ "name": "failOnZeroPrice",
537
+ "type": "bool"
538
+ }
539
+ ]
540
+ },
541
+ {
542
+ "name": "_legoPerms",
543
+ "type": "tuple",
544
+ "components": [
545
+ {
546
+ "name": "canManageYield",
547
+ "type": "bool"
548
+ },
549
+ {
550
+ "name": "canBuyAndSell",
551
+ "type": "bool"
552
+ },
553
+ {
554
+ "name": "canManageDebt",
555
+ "type": "bool"
556
+ },
557
+ {
558
+ "name": "canManageLiq",
559
+ "type": "bool"
560
+ },
561
+ {
562
+ "name": "canClaimRewards",
563
+ "type": "bool"
564
+ },
565
+ {
566
+ "name": "onlyApprovedYieldOpps",
567
+ "type": "bool"
568
+ },
569
+ {
570
+ "name": "allowedLegos",
571
+ "type": "uint256[]"
572
+ }
573
+ ]
574
+ },
575
+ {
576
+ "name": "_swapPerms",
577
+ "type": "tuple",
578
+ "components": [
579
+ {
580
+ "name": "mustHaveUsdValue",
581
+ "type": "bool"
582
+ },
583
+ {
584
+ "name": "maxNumSwapsPerPeriod",
585
+ "type": "uint256"
586
+ },
587
+ {
588
+ "name": "maxSlippage",
589
+ "type": "uint256"
590
+ }
591
+ ]
592
+ },
593
+ {
594
+ "name": "_whitelistPerms",
595
+ "type": "tuple",
596
+ "components": [
597
+ {
598
+ "name": "canAddPending",
599
+ "type": "bool"
600
+ },
601
+ {
602
+ "name": "canConfirm",
603
+ "type": "bool"
604
+ },
605
+ {
606
+ "name": "canCancel",
607
+ "type": "bool"
608
+ },
609
+ {
610
+ "name": "canRemove",
611
+ "type": "bool"
612
+ }
613
+ ]
614
+ },
615
+ {
616
+ "name": "_transferPerms",
617
+ "type": "tuple",
618
+ "components": [
619
+ {
620
+ "name": "canTransfer",
621
+ "type": "bool"
622
+ },
623
+ {
624
+ "name": "canCreateCheque",
625
+ "type": "bool"
626
+ },
627
+ {
628
+ "name": "canAddPendingPayee",
629
+ "type": "bool"
630
+ },
631
+ {
632
+ "name": "allowedPayees",
633
+ "type": "address[]"
634
+ }
635
+ ]
636
+ },
637
+ {
638
+ "name": "_allowedAssets",
639
+ "type": "address[]"
640
+ },
641
+ {
642
+ "name": "_canClaimLoot",
643
+ "type": "bool"
644
+ },
645
+ {
646
+ "name": "_startDelay",
647
+ "type": "uint256"
648
+ }
649
+ ],
650
+ "outputs": [
651
+ {
652
+ "name": "",
653
+ "type": "bool"
654
+ }
655
+ ]
656
+ },
657
+ {
658
+ "stateMutability": "nonpayable",
659
+ "type": "function",
660
+ "name": "addManager",
661
+ "inputs": [
662
+ {
663
+ "name": "_userWallet",
664
+ "type": "address"
665
+ },
666
+ {
667
+ "name": "_manager",
668
+ "type": "address"
669
+ },
670
+ {
671
+ "name": "_limits",
672
+ "type": "tuple",
673
+ "components": [
674
+ {
675
+ "name": "maxUsdValuePerTx",
676
+ "type": "uint256"
677
+ },
678
+ {
679
+ "name": "maxUsdValuePerPeriod",
680
+ "type": "uint256"
681
+ },
682
+ {
683
+ "name": "maxUsdValueLifetime",
684
+ "type": "uint256"
685
+ },
686
+ {
687
+ "name": "maxNumTxsPerPeriod",
688
+ "type": "uint256"
689
+ },
690
+ {
691
+ "name": "txCooldownBlocks",
692
+ "type": "uint256"
693
+ },
694
+ {
695
+ "name": "failOnZeroPrice",
696
+ "type": "bool"
697
+ }
698
+ ]
699
+ },
700
+ {
701
+ "name": "_legoPerms",
702
+ "type": "tuple",
703
+ "components": [
704
+ {
705
+ "name": "canManageYield",
706
+ "type": "bool"
707
+ },
708
+ {
709
+ "name": "canBuyAndSell",
710
+ "type": "bool"
711
+ },
712
+ {
713
+ "name": "canManageDebt",
714
+ "type": "bool"
715
+ },
716
+ {
717
+ "name": "canManageLiq",
718
+ "type": "bool"
719
+ },
720
+ {
721
+ "name": "canClaimRewards",
722
+ "type": "bool"
723
+ },
724
+ {
725
+ "name": "onlyApprovedYieldOpps",
726
+ "type": "bool"
727
+ },
728
+ {
729
+ "name": "allowedLegos",
730
+ "type": "uint256[]"
731
+ }
732
+ ]
733
+ },
734
+ {
735
+ "name": "_swapPerms",
736
+ "type": "tuple",
737
+ "components": [
738
+ {
739
+ "name": "mustHaveUsdValue",
740
+ "type": "bool"
741
+ },
742
+ {
743
+ "name": "maxNumSwapsPerPeriod",
744
+ "type": "uint256"
745
+ },
746
+ {
747
+ "name": "maxSlippage",
748
+ "type": "uint256"
749
+ }
750
+ ]
751
+ },
752
+ {
753
+ "name": "_whitelistPerms",
754
+ "type": "tuple",
755
+ "components": [
756
+ {
757
+ "name": "canAddPending",
758
+ "type": "bool"
759
+ },
760
+ {
761
+ "name": "canConfirm",
762
+ "type": "bool"
763
+ },
764
+ {
765
+ "name": "canCancel",
766
+ "type": "bool"
767
+ },
768
+ {
769
+ "name": "canRemove",
770
+ "type": "bool"
771
+ }
772
+ ]
773
+ },
774
+ {
775
+ "name": "_transferPerms",
776
+ "type": "tuple",
777
+ "components": [
778
+ {
779
+ "name": "canTransfer",
780
+ "type": "bool"
781
+ },
782
+ {
783
+ "name": "canCreateCheque",
784
+ "type": "bool"
785
+ },
786
+ {
787
+ "name": "canAddPendingPayee",
788
+ "type": "bool"
789
+ },
790
+ {
791
+ "name": "allowedPayees",
792
+ "type": "address[]"
793
+ }
794
+ ]
795
+ },
796
+ {
797
+ "name": "_allowedAssets",
798
+ "type": "address[]"
799
+ },
800
+ {
801
+ "name": "_canClaimLoot",
802
+ "type": "bool"
803
+ },
804
+ {
805
+ "name": "_startDelay",
806
+ "type": "uint256"
807
+ },
808
+ {
809
+ "name": "_activationLength",
810
+ "type": "uint256"
811
+ }
812
+ ],
813
+ "outputs": [
814
+ {
815
+ "name": "",
816
+ "type": "bool"
817
+ }
818
+ ]
819
+ },
820
+ {
821
+ "stateMutability": "nonpayable",
822
+ "type": "function",
823
+ "name": "updateManager",
824
+ "inputs": [
825
+ {
826
+ "name": "_userWallet",
827
+ "type": "address"
828
+ },
829
+ {
830
+ "name": "_manager",
831
+ "type": "address"
832
+ },
833
+ {
834
+ "name": "_limits",
835
+ "type": "tuple",
836
+ "components": [
837
+ {
838
+ "name": "maxUsdValuePerTx",
839
+ "type": "uint256"
840
+ },
841
+ {
842
+ "name": "maxUsdValuePerPeriod",
843
+ "type": "uint256"
844
+ },
845
+ {
846
+ "name": "maxUsdValueLifetime",
847
+ "type": "uint256"
848
+ },
849
+ {
850
+ "name": "maxNumTxsPerPeriod",
851
+ "type": "uint256"
852
+ },
853
+ {
854
+ "name": "txCooldownBlocks",
855
+ "type": "uint256"
856
+ },
857
+ {
858
+ "name": "failOnZeroPrice",
859
+ "type": "bool"
860
+ }
861
+ ]
862
+ },
863
+ {
864
+ "name": "_legoPerms",
865
+ "type": "tuple",
866
+ "components": [
867
+ {
868
+ "name": "canManageYield",
869
+ "type": "bool"
870
+ },
871
+ {
872
+ "name": "canBuyAndSell",
873
+ "type": "bool"
874
+ },
875
+ {
876
+ "name": "canManageDebt",
877
+ "type": "bool"
878
+ },
879
+ {
880
+ "name": "canManageLiq",
881
+ "type": "bool"
882
+ },
883
+ {
884
+ "name": "canClaimRewards",
885
+ "type": "bool"
886
+ },
887
+ {
888
+ "name": "onlyApprovedYieldOpps",
889
+ "type": "bool"
890
+ },
891
+ {
892
+ "name": "allowedLegos",
893
+ "type": "uint256[]"
894
+ }
895
+ ]
896
+ },
897
+ {
898
+ "name": "_swapPerms",
899
+ "type": "tuple",
900
+ "components": [
901
+ {
902
+ "name": "mustHaveUsdValue",
903
+ "type": "bool"
904
+ },
905
+ {
906
+ "name": "maxNumSwapsPerPeriod",
907
+ "type": "uint256"
908
+ },
909
+ {
910
+ "name": "maxSlippage",
911
+ "type": "uint256"
912
+ }
913
+ ]
914
+ },
915
+ {
916
+ "name": "_whitelistPerms",
917
+ "type": "tuple",
918
+ "components": [
919
+ {
920
+ "name": "canAddPending",
921
+ "type": "bool"
922
+ },
923
+ {
924
+ "name": "canConfirm",
925
+ "type": "bool"
926
+ },
927
+ {
928
+ "name": "canCancel",
929
+ "type": "bool"
930
+ },
931
+ {
932
+ "name": "canRemove",
933
+ "type": "bool"
934
+ }
935
+ ]
936
+ },
937
+ {
938
+ "name": "_transferPerms",
939
+ "type": "tuple",
940
+ "components": [
941
+ {
942
+ "name": "canTransfer",
943
+ "type": "bool"
944
+ },
945
+ {
946
+ "name": "canCreateCheque",
947
+ "type": "bool"
948
+ },
949
+ {
950
+ "name": "canAddPendingPayee",
951
+ "type": "bool"
952
+ },
953
+ {
954
+ "name": "allowedPayees",
955
+ "type": "address[]"
956
+ }
957
+ ]
958
+ },
959
+ {
960
+ "name": "_allowedAssets",
961
+ "type": "address[]"
962
+ },
963
+ {
964
+ "name": "_canClaimLoot",
965
+ "type": "bool"
966
+ }
967
+ ],
968
+ "outputs": [
969
+ {
970
+ "name": "",
971
+ "type": "bool"
972
+ }
973
+ ]
974
+ },
975
+ {
976
+ "stateMutability": "nonpayable",
977
+ "type": "function",
978
+ "name": "removeManager",
979
+ "inputs": [
980
+ {
981
+ "name": "_userWallet",
982
+ "type": "address"
983
+ },
984
+ {
985
+ "name": "_manager",
986
+ "type": "address"
987
+ }
988
+ ],
989
+ "outputs": [
990
+ {
991
+ "name": "",
992
+ "type": "bool"
993
+ }
994
+ ]
995
+ },
996
+ {
997
+ "stateMutability": "nonpayable",
998
+ "type": "function",
999
+ "name": "neuterStarterAgent",
1000
+ "inputs": [
1001
+ {
1002
+ "name": "_userWallet",
1003
+ "type": "address"
1004
+ }
1005
+ ],
1006
+ "outputs": [
1007
+ {
1008
+ "name": "",
1009
+ "type": "bool"
1010
+ }
1011
+ ]
1012
+ },
1013
+ {
1014
+ "stateMutability": "nonpayable",
1015
+ "type": "function",
1016
+ "name": "adjustManagerActivationLength",
1017
+ "inputs": [
1018
+ {
1019
+ "name": "_userWallet",
1020
+ "type": "address"
1021
+ },
1022
+ {
1023
+ "name": "_manager",
1024
+ "type": "address"
1025
+ },
1026
+ {
1027
+ "name": "_activationLength",
1028
+ "type": "uint256"
1029
+ }
1030
+ ],
1031
+ "outputs": [
1032
+ {
1033
+ "name": "",
1034
+ "type": "bool"
1035
+ }
1036
+ ]
1037
+ },
1038
+ {
1039
+ "stateMutability": "nonpayable",
1040
+ "type": "function",
1041
+ "name": "adjustManagerActivationLength",
1042
+ "inputs": [
1043
+ {
1044
+ "name": "_userWallet",
1045
+ "type": "address"
1046
+ },
1047
+ {
1048
+ "name": "_manager",
1049
+ "type": "address"
1050
+ },
1051
+ {
1052
+ "name": "_activationLength",
1053
+ "type": "uint256"
1054
+ },
1055
+ {
1056
+ "name": "_shouldResetStartBlock",
1057
+ "type": "bool"
1058
+ }
1059
+ ],
1060
+ "outputs": [
1061
+ {
1062
+ "name": "",
1063
+ "type": "bool"
1064
+ }
1065
+ ]
1066
+ },
1067
+ {
1068
+ "stateMutability": "nonpayable",
1069
+ "type": "function",
1070
+ "name": "setGlobalManagerSettings",
1071
+ "inputs": [
1072
+ {
1073
+ "name": "_userWallet",
1074
+ "type": "address"
1075
+ },
1076
+ {
1077
+ "name": "_managerPeriod",
1078
+ "type": "uint256"
1079
+ },
1080
+ {
1081
+ "name": "_startDelay",
1082
+ "type": "uint256"
1083
+ },
1084
+ {
1085
+ "name": "_activationLength",
1086
+ "type": "uint256"
1087
+ },
1088
+ {
1089
+ "name": "_canOwnerManage",
1090
+ "type": "bool"
1091
+ },
1092
+ {
1093
+ "name": "_limits",
1094
+ "type": "tuple",
1095
+ "components": [
1096
+ {
1097
+ "name": "maxUsdValuePerTx",
1098
+ "type": "uint256"
1099
+ },
1100
+ {
1101
+ "name": "maxUsdValuePerPeriod",
1102
+ "type": "uint256"
1103
+ },
1104
+ {
1105
+ "name": "maxUsdValueLifetime",
1106
+ "type": "uint256"
1107
+ },
1108
+ {
1109
+ "name": "maxNumTxsPerPeriod",
1110
+ "type": "uint256"
1111
+ },
1112
+ {
1113
+ "name": "txCooldownBlocks",
1114
+ "type": "uint256"
1115
+ },
1116
+ {
1117
+ "name": "failOnZeroPrice",
1118
+ "type": "bool"
1119
+ }
1120
+ ]
1121
+ },
1122
+ {
1123
+ "name": "_legoPerms",
1124
+ "type": "tuple",
1125
+ "components": [
1126
+ {
1127
+ "name": "canManageYield",
1128
+ "type": "bool"
1129
+ },
1130
+ {
1131
+ "name": "canBuyAndSell",
1132
+ "type": "bool"
1133
+ },
1134
+ {
1135
+ "name": "canManageDebt",
1136
+ "type": "bool"
1137
+ },
1138
+ {
1139
+ "name": "canManageLiq",
1140
+ "type": "bool"
1141
+ },
1142
+ {
1143
+ "name": "canClaimRewards",
1144
+ "type": "bool"
1145
+ },
1146
+ {
1147
+ "name": "onlyApprovedYieldOpps",
1148
+ "type": "bool"
1149
+ },
1150
+ {
1151
+ "name": "allowedLegos",
1152
+ "type": "uint256[]"
1153
+ }
1154
+ ]
1155
+ },
1156
+ {
1157
+ "name": "_swapPerms",
1158
+ "type": "tuple",
1159
+ "components": [
1160
+ {
1161
+ "name": "mustHaveUsdValue",
1162
+ "type": "bool"
1163
+ },
1164
+ {
1165
+ "name": "maxNumSwapsPerPeriod",
1166
+ "type": "uint256"
1167
+ },
1168
+ {
1169
+ "name": "maxSlippage",
1170
+ "type": "uint256"
1171
+ }
1172
+ ]
1173
+ },
1174
+ {
1175
+ "name": "_whitelistPerms",
1176
+ "type": "tuple",
1177
+ "components": [
1178
+ {
1179
+ "name": "canAddPending",
1180
+ "type": "bool"
1181
+ },
1182
+ {
1183
+ "name": "canConfirm",
1184
+ "type": "bool"
1185
+ },
1186
+ {
1187
+ "name": "canCancel",
1188
+ "type": "bool"
1189
+ },
1190
+ {
1191
+ "name": "canRemove",
1192
+ "type": "bool"
1193
+ }
1194
+ ]
1195
+ },
1196
+ {
1197
+ "name": "_transferPerms",
1198
+ "type": "tuple",
1199
+ "components": [
1200
+ {
1201
+ "name": "canTransfer",
1202
+ "type": "bool"
1203
+ },
1204
+ {
1205
+ "name": "canCreateCheque",
1206
+ "type": "bool"
1207
+ },
1208
+ {
1209
+ "name": "canAddPendingPayee",
1210
+ "type": "bool"
1211
+ },
1212
+ {
1213
+ "name": "allowedPayees",
1214
+ "type": "address[]"
1215
+ }
1216
+ ]
1217
+ },
1218
+ {
1219
+ "name": "_allowedAssets",
1220
+ "type": "address[]"
1221
+ }
1222
+ ],
1223
+ "outputs": [
1224
+ {
1225
+ "name": "",
1226
+ "type": "bool"
1227
+ }
1228
+ ]
1229
+ },
1230
+ {
1231
+ "stateMutability": "view",
1232
+ "type": "function",
1233
+ "name": "isValidNewManager",
1234
+ "inputs": [
1235
+ {
1236
+ "name": "_userWallet",
1237
+ "type": "address"
1238
+ },
1239
+ {
1240
+ "name": "_manager",
1241
+ "type": "address"
1242
+ },
1243
+ {
1244
+ "name": "_startDelay",
1245
+ "type": "uint256"
1246
+ },
1247
+ {
1248
+ "name": "_activationLength",
1249
+ "type": "uint256"
1250
+ },
1251
+ {
1252
+ "name": "_limits",
1253
+ "type": "tuple",
1254
+ "components": [
1255
+ {
1256
+ "name": "maxUsdValuePerTx",
1257
+ "type": "uint256"
1258
+ },
1259
+ {
1260
+ "name": "maxUsdValuePerPeriod",
1261
+ "type": "uint256"
1262
+ },
1263
+ {
1264
+ "name": "maxUsdValueLifetime",
1265
+ "type": "uint256"
1266
+ },
1267
+ {
1268
+ "name": "maxNumTxsPerPeriod",
1269
+ "type": "uint256"
1270
+ },
1271
+ {
1272
+ "name": "txCooldownBlocks",
1273
+ "type": "uint256"
1274
+ },
1275
+ {
1276
+ "name": "failOnZeroPrice",
1277
+ "type": "bool"
1278
+ }
1279
+ ]
1280
+ },
1281
+ {
1282
+ "name": "_legoPerms",
1283
+ "type": "tuple",
1284
+ "components": [
1285
+ {
1286
+ "name": "canManageYield",
1287
+ "type": "bool"
1288
+ },
1289
+ {
1290
+ "name": "canBuyAndSell",
1291
+ "type": "bool"
1292
+ },
1293
+ {
1294
+ "name": "canManageDebt",
1295
+ "type": "bool"
1296
+ },
1297
+ {
1298
+ "name": "canManageLiq",
1299
+ "type": "bool"
1300
+ },
1301
+ {
1302
+ "name": "canClaimRewards",
1303
+ "type": "bool"
1304
+ },
1305
+ {
1306
+ "name": "onlyApprovedYieldOpps",
1307
+ "type": "bool"
1308
+ },
1309
+ {
1310
+ "name": "allowedLegos",
1311
+ "type": "uint256[]"
1312
+ }
1313
+ ]
1314
+ },
1315
+ {
1316
+ "name": "_swapPerms",
1317
+ "type": "tuple",
1318
+ "components": [
1319
+ {
1320
+ "name": "mustHaveUsdValue",
1321
+ "type": "bool"
1322
+ },
1323
+ {
1324
+ "name": "maxNumSwapsPerPeriod",
1325
+ "type": "uint256"
1326
+ },
1327
+ {
1328
+ "name": "maxSlippage",
1329
+ "type": "uint256"
1330
+ }
1331
+ ]
1332
+ },
1333
+ {
1334
+ "name": "_whitelistPerms",
1335
+ "type": "tuple",
1336
+ "components": [
1337
+ {
1338
+ "name": "canAddPending",
1339
+ "type": "bool"
1340
+ },
1341
+ {
1342
+ "name": "canConfirm",
1343
+ "type": "bool"
1344
+ },
1345
+ {
1346
+ "name": "canCancel",
1347
+ "type": "bool"
1348
+ },
1349
+ {
1350
+ "name": "canRemove",
1351
+ "type": "bool"
1352
+ }
1353
+ ]
1354
+ },
1355
+ {
1356
+ "name": "_transferPerms",
1357
+ "type": "tuple",
1358
+ "components": [
1359
+ {
1360
+ "name": "canTransfer",
1361
+ "type": "bool"
1362
+ },
1363
+ {
1364
+ "name": "canCreateCheque",
1365
+ "type": "bool"
1366
+ },
1367
+ {
1368
+ "name": "canAddPendingPayee",
1369
+ "type": "bool"
1370
+ },
1371
+ {
1372
+ "name": "allowedPayees",
1373
+ "type": "address[]"
1374
+ }
1375
+ ]
1376
+ },
1377
+ {
1378
+ "name": "_allowedAssets",
1379
+ "type": "address[]"
1380
+ },
1381
+ {
1382
+ "name": "_canClaimLoot",
1383
+ "type": "bool"
1384
+ }
1385
+ ],
1386
+ "outputs": [
1387
+ {
1388
+ "name": "",
1389
+ "type": "bool"
1390
+ }
1391
+ ]
1392
+ },
1393
+ {
1394
+ "stateMutability": "view",
1395
+ "type": "function",
1396
+ "name": "validateManagerOnUpdate",
1397
+ "inputs": [
1398
+ {
1399
+ "name": "_userWallet",
1400
+ "type": "address"
1401
+ },
1402
+ {
1403
+ "name": "_manager",
1404
+ "type": "address"
1405
+ },
1406
+ {
1407
+ "name": "_limits",
1408
+ "type": "tuple",
1409
+ "components": [
1410
+ {
1411
+ "name": "maxUsdValuePerTx",
1412
+ "type": "uint256"
1413
+ },
1414
+ {
1415
+ "name": "maxUsdValuePerPeriod",
1416
+ "type": "uint256"
1417
+ },
1418
+ {
1419
+ "name": "maxUsdValueLifetime",
1420
+ "type": "uint256"
1421
+ },
1422
+ {
1423
+ "name": "maxNumTxsPerPeriod",
1424
+ "type": "uint256"
1425
+ },
1426
+ {
1427
+ "name": "txCooldownBlocks",
1428
+ "type": "uint256"
1429
+ },
1430
+ {
1431
+ "name": "failOnZeroPrice",
1432
+ "type": "bool"
1433
+ }
1434
+ ]
1435
+ },
1436
+ {
1437
+ "name": "_legoPerms",
1438
+ "type": "tuple",
1439
+ "components": [
1440
+ {
1441
+ "name": "canManageYield",
1442
+ "type": "bool"
1443
+ },
1444
+ {
1445
+ "name": "canBuyAndSell",
1446
+ "type": "bool"
1447
+ },
1448
+ {
1449
+ "name": "canManageDebt",
1450
+ "type": "bool"
1451
+ },
1452
+ {
1453
+ "name": "canManageLiq",
1454
+ "type": "bool"
1455
+ },
1456
+ {
1457
+ "name": "canClaimRewards",
1458
+ "type": "bool"
1459
+ },
1460
+ {
1461
+ "name": "onlyApprovedYieldOpps",
1462
+ "type": "bool"
1463
+ },
1464
+ {
1465
+ "name": "allowedLegos",
1466
+ "type": "uint256[]"
1467
+ }
1468
+ ]
1469
+ },
1470
+ {
1471
+ "name": "_swapPerms",
1472
+ "type": "tuple",
1473
+ "components": [
1474
+ {
1475
+ "name": "mustHaveUsdValue",
1476
+ "type": "bool"
1477
+ },
1478
+ {
1479
+ "name": "maxNumSwapsPerPeriod",
1480
+ "type": "uint256"
1481
+ },
1482
+ {
1483
+ "name": "maxSlippage",
1484
+ "type": "uint256"
1485
+ }
1486
+ ]
1487
+ },
1488
+ {
1489
+ "name": "_whitelistPerms",
1490
+ "type": "tuple",
1491
+ "components": [
1492
+ {
1493
+ "name": "canAddPending",
1494
+ "type": "bool"
1495
+ },
1496
+ {
1497
+ "name": "canConfirm",
1498
+ "type": "bool"
1499
+ },
1500
+ {
1501
+ "name": "canCancel",
1502
+ "type": "bool"
1503
+ },
1504
+ {
1505
+ "name": "canRemove",
1506
+ "type": "bool"
1507
+ }
1508
+ ]
1509
+ },
1510
+ {
1511
+ "name": "_transferPerms",
1512
+ "type": "tuple",
1513
+ "components": [
1514
+ {
1515
+ "name": "canTransfer",
1516
+ "type": "bool"
1517
+ },
1518
+ {
1519
+ "name": "canCreateCheque",
1520
+ "type": "bool"
1521
+ },
1522
+ {
1523
+ "name": "canAddPendingPayee",
1524
+ "type": "bool"
1525
+ },
1526
+ {
1527
+ "name": "allowedPayees",
1528
+ "type": "address[]"
1529
+ }
1530
+ ]
1531
+ },
1532
+ {
1533
+ "name": "_allowedAssets",
1534
+ "type": "address[]"
1535
+ },
1536
+ {
1537
+ "name": "_canClaimLoot",
1538
+ "type": "bool"
1539
+ }
1540
+ ],
1541
+ "outputs": [
1542
+ {
1543
+ "name": "",
1544
+ "type": "bool"
1545
+ }
1546
+ ]
1547
+ },
1548
+ {
1549
+ "stateMutability": "view",
1550
+ "type": "function",
1551
+ "name": "validateGlobalManagerSettings",
1552
+ "inputs": [
1553
+ {
1554
+ "name": "_userWallet",
1555
+ "type": "address"
1556
+ },
1557
+ {
1558
+ "name": "_managerPeriod",
1559
+ "type": "uint256"
1560
+ },
1561
+ {
1562
+ "name": "_startDelay",
1563
+ "type": "uint256"
1564
+ },
1565
+ {
1566
+ "name": "_activationLength",
1567
+ "type": "uint256"
1568
+ },
1569
+ {
1570
+ "name": "_canOwnerManage",
1571
+ "type": "bool"
1572
+ },
1573
+ {
1574
+ "name": "_limits",
1575
+ "type": "tuple",
1576
+ "components": [
1577
+ {
1578
+ "name": "maxUsdValuePerTx",
1579
+ "type": "uint256"
1580
+ },
1581
+ {
1582
+ "name": "maxUsdValuePerPeriod",
1583
+ "type": "uint256"
1584
+ },
1585
+ {
1586
+ "name": "maxUsdValueLifetime",
1587
+ "type": "uint256"
1588
+ },
1589
+ {
1590
+ "name": "maxNumTxsPerPeriod",
1591
+ "type": "uint256"
1592
+ },
1593
+ {
1594
+ "name": "txCooldownBlocks",
1595
+ "type": "uint256"
1596
+ },
1597
+ {
1598
+ "name": "failOnZeroPrice",
1599
+ "type": "bool"
1600
+ }
1601
+ ]
1602
+ },
1603
+ {
1604
+ "name": "_legoPerms",
1605
+ "type": "tuple",
1606
+ "components": [
1607
+ {
1608
+ "name": "canManageYield",
1609
+ "type": "bool"
1610
+ },
1611
+ {
1612
+ "name": "canBuyAndSell",
1613
+ "type": "bool"
1614
+ },
1615
+ {
1616
+ "name": "canManageDebt",
1617
+ "type": "bool"
1618
+ },
1619
+ {
1620
+ "name": "canManageLiq",
1621
+ "type": "bool"
1622
+ },
1623
+ {
1624
+ "name": "canClaimRewards",
1625
+ "type": "bool"
1626
+ },
1627
+ {
1628
+ "name": "onlyApprovedYieldOpps",
1629
+ "type": "bool"
1630
+ },
1631
+ {
1632
+ "name": "allowedLegos",
1633
+ "type": "uint256[]"
1634
+ }
1635
+ ]
1636
+ },
1637
+ {
1638
+ "name": "_swapPerms",
1639
+ "type": "tuple",
1640
+ "components": [
1641
+ {
1642
+ "name": "mustHaveUsdValue",
1643
+ "type": "bool"
1644
+ },
1645
+ {
1646
+ "name": "maxNumSwapsPerPeriod",
1647
+ "type": "uint256"
1648
+ },
1649
+ {
1650
+ "name": "maxSlippage",
1651
+ "type": "uint256"
1652
+ }
1653
+ ]
1654
+ },
1655
+ {
1656
+ "name": "_whitelistPerms",
1657
+ "type": "tuple",
1658
+ "components": [
1659
+ {
1660
+ "name": "canAddPending",
1661
+ "type": "bool"
1662
+ },
1663
+ {
1664
+ "name": "canConfirm",
1665
+ "type": "bool"
1666
+ },
1667
+ {
1668
+ "name": "canCancel",
1669
+ "type": "bool"
1670
+ },
1671
+ {
1672
+ "name": "canRemove",
1673
+ "type": "bool"
1674
+ }
1675
+ ]
1676
+ },
1677
+ {
1678
+ "name": "_transferPerms",
1679
+ "type": "tuple",
1680
+ "components": [
1681
+ {
1682
+ "name": "canTransfer",
1683
+ "type": "bool"
1684
+ },
1685
+ {
1686
+ "name": "canCreateCheque",
1687
+ "type": "bool"
1688
+ },
1689
+ {
1690
+ "name": "canAddPendingPayee",
1691
+ "type": "bool"
1692
+ },
1693
+ {
1694
+ "name": "allowedPayees",
1695
+ "type": "address[]"
1696
+ }
1697
+ ]
1698
+ },
1699
+ {
1700
+ "name": "_allowedAssets",
1701
+ "type": "address[]"
1702
+ }
1703
+ ],
1704
+ "outputs": [
1705
+ {
1706
+ "name": "",
1707
+ "type": "bool"
1708
+ }
1709
+ ]
1710
+ },
1711
+ {
1712
+ "stateMutability": "view",
1713
+ "type": "function",
1714
+ "name": "createDefaultGlobalManagerSettings",
1715
+ "inputs": [
1716
+ {
1717
+ "name": "_managerPeriod",
1718
+ "type": "uint256"
1719
+ },
1720
+ {
1721
+ "name": "_minTimeLock",
1722
+ "type": "uint256"
1723
+ },
1724
+ {
1725
+ "name": "_defaultActivationLength",
1726
+ "type": "uint256"
1727
+ },
1728
+ {
1729
+ "name": "_mustHaveUsdValueOnSwaps",
1730
+ "type": "bool"
1731
+ },
1732
+ {
1733
+ "name": "_maxNumSwapsPerPeriod",
1734
+ "type": "uint256"
1735
+ },
1736
+ {
1737
+ "name": "_maxSlippageOnSwaps",
1738
+ "type": "uint256"
1739
+ },
1740
+ {
1741
+ "name": "_onlyApprovedYieldOpps",
1742
+ "type": "bool"
1743
+ }
1744
+ ],
1745
+ "outputs": [
1746
+ {
1747
+ "name": "",
1748
+ "type": "tuple",
1749
+ "components": [
1750
+ {
1751
+ "name": "managerPeriod",
1752
+ "type": "uint256"
1753
+ },
1754
+ {
1755
+ "name": "startDelay",
1756
+ "type": "uint256"
1757
+ },
1758
+ {
1759
+ "name": "activationLength",
1760
+ "type": "uint256"
1761
+ },
1762
+ {
1763
+ "name": "canOwnerManage",
1764
+ "type": "bool"
1765
+ },
1766
+ {
1767
+ "name": "limits",
1768
+ "type": "tuple",
1769
+ "components": [
1770
+ {
1771
+ "name": "maxUsdValuePerTx",
1772
+ "type": "uint256"
1773
+ },
1774
+ {
1775
+ "name": "maxUsdValuePerPeriod",
1776
+ "type": "uint256"
1777
+ },
1778
+ {
1779
+ "name": "maxUsdValueLifetime",
1780
+ "type": "uint256"
1781
+ },
1782
+ {
1783
+ "name": "maxNumTxsPerPeriod",
1784
+ "type": "uint256"
1785
+ },
1786
+ {
1787
+ "name": "txCooldownBlocks",
1788
+ "type": "uint256"
1789
+ },
1790
+ {
1791
+ "name": "failOnZeroPrice",
1792
+ "type": "bool"
1793
+ }
1794
+ ]
1795
+ },
1796
+ {
1797
+ "name": "legoPerms",
1798
+ "type": "tuple",
1799
+ "components": [
1800
+ {
1801
+ "name": "canManageYield",
1802
+ "type": "bool"
1803
+ },
1804
+ {
1805
+ "name": "canBuyAndSell",
1806
+ "type": "bool"
1807
+ },
1808
+ {
1809
+ "name": "canManageDebt",
1810
+ "type": "bool"
1811
+ },
1812
+ {
1813
+ "name": "canManageLiq",
1814
+ "type": "bool"
1815
+ },
1816
+ {
1817
+ "name": "canClaimRewards",
1818
+ "type": "bool"
1819
+ },
1820
+ {
1821
+ "name": "onlyApprovedYieldOpps",
1822
+ "type": "bool"
1823
+ },
1824
+ {
1825
+ "name": "allowedLegos",
1826
+ "type": "uint256[]"
1827
+ }
1828
+ ]
1829
+ },
1830
+ {
1831
+ "name": "swapPerms",
1832
+ "type": "tuple",
1833
+ "components": [
1834
+ {
1835
+ "name": "mustHaveUsdValue",
1836
+ "type": "bool"
1837
+ },
1838
+ {
1839
+ "name": "maxNumSwapsPerPeriod",
1840
+ "type": "uint256"
1841
+ },
1842
+ {
1843
+ "name": "maxSlippage",
1844
+ "type": "uint256"
1845
+ }
1846
+ ]
1847
+ },
1848
+ {
1849
+ "name": "whitelistPerms",
1850
+ "type": "tuple",
1851
+ "components": [
1852
+ {
1853
+ "name": "canAddPending",
1854
+ "type": "bool"
1855
+ },
1856
+ {
1857
+ "name": "canConfirm",
1858
+ "type": "bool"
1859
+ },
1860
+ {
1861
+ "name": "canCancel",
1862
+ "type": "bool"
1863
+ },
1864
+ {
1865
+ "name": "canRemove",
1866
+ "type": "bool"
1867
+ }
1868
+ ]
1869
+ },
1870
+ {
1871
+ "name": "transferPerms",
1872
+ "type": "tuple",
1873
+ "components": [
1874
+ {
1875
+ "name": "canTransfer",
1876
+ "type": "bool"
1877
+ },
1878
+ {
1879
+ "name": "canCreateCheque",
1880
+ "type": "bool"
1881
+ },
1882
+ {
1883
+ "name": "canAddPendingPayee",
1884
+ "type": "bool"
1885
+ },
1886
+ {
1887
+ "name": "allowedPayees",
1888
+ "type": "address[]"
1889
+ }
1890
+ ]
1891
+ },
1892
+ {
1893
+ "name": "allowedAssets",
1894
+ "type": "address[]"
1895
+ }
1896
+ ]
1897
+ }
1898
+ ]
1899
+ },
1900
+ {
1901
+ "stateMutability": "view",
1902
+ "type": "function",
1903
+ "name": "createStarterAgentSettings",
1904
+ "inputs": [
1905
+ {
1906
+ "name": "_startingAgentActivationLength",
1907
+ "type": "uint256"
1908
+ }
1909
+ ],
1910
+ "outputs": [
1911
+ {
1912
+ "name": "",
1913
+ "type": "tuple",
1914
+ "components": [
1915
+ {
1916
+ "name": "startBlock",
1917
+ "type": "uint256"
1918
+ },
1919
+ {
1920
+ "name": "expiryBlock",
1921
+ "type": "uint256"
1922
+ },
1923
+ {
1924
+ "name": "limits",
1925
+ "type": "tuple",
1926
+ "components": [
1927
+ {
1928
+ "name": "maxUsdValuePerTx",
1929
+ "type": "uint256"
1930
+ },
1931
+ {
1932
+ "name": "maxUsdValuePerPeriod",
1933
+ "type": "uint256"
1934
+ },
1935
+ {
1936
+ "name": "maxUsdValueLifetime",
1937
+ "type": "uint256"
1938
+ },
1939
+ {
1940
+ "name": "maxNumTxsPerPeriod",
1941
+ "type": "uint256"
1942
+ },
1943
+ {
1944
+ "name": "txCooldownBlocks",
1945
+ "type": "uint256"
1946
+ },
1947
+ {
1948
+ "name": "failOnZeroPrice",
1949
+ "type": "bool"
1950
+ }
1951
+ ]
1952
+ },
1953
+ {
1954
+ "name": "legoPerms",
1955
+ "type": "tuple",
1956
+ "components": [
1957
+ {
1958
+ "name": "canManageYield",
1959
+ "type": "bool"
1960
+ },
1961
+ {
1962
+ "name": "canBuyAndSell",
1963
+ "type": "bool"
1964
+ },
1965
+ {
1966
+ "name": "canManageDebt",
1967
+ "type": "bool"
1968
+ },
1969
+ {
1970
+ "name": "canManageLiq",
1971
+ "type": "bool"
1972
+ },
1973
+ {
1974
+ "name": "canClaimRewards",
1975
+ "type": "bool"
1976
+ },
1977
+ {
1978
+ "name": "onlyApprovedYieldOpps",
1979
+ "type": "bool"
1980
+ },
1981
+ {
1982
+ "name": "allowedLegos",
1983
+ "type": "uint256[]"
1984
+ }
1985
+ ]
1986
+ },
1987
+ {
1988
+ "name": "swapPerms",
1989
+ "type": "tuple",
1990
+ "components": [
1991
+ {
1992
+ "name": "mustHaveUsdValue",
1993
+ "type": "bool"
1994
+ },
1995
+ {
1996
+ "name": "maxNumSwapsPerPeriod",
1997
+ "type": "uint256"
1998
+ },
1999
+ {
2000
+ "name": "maxSlippage",
2001
+ "type": "uint256"
2002
+ }
2003
+ ]
2004
+ },
2005
+ {
2006
+ "name": "whitelistPerms",
2007
+ "type": "tuple",
2008
+ "components": [
2009
+ {
2010
+ "name": "canAddPending",
2011
+ "type": "bool"
2012
+ },
2013
+ {
2014
+ "name": "canConfirm",
2015
+ "type": "bool"
2016
+ },
2017
+ {
2018
+ "name": "canCancel",
2019
+ "type": "bool"
2020
+ },
2021
+ {
2022
+ "name": "canRemove",
2023
+ "type": "bool"
2024
+ }
2025
+ ]
2026
+ },
2027
+ {
2028
+ "name": "transferPerms",
2029
+ "type": "tuple",
2030
+ "components": [
2031
+ {
2032
+ "name": "canTransfer",
2033
+ "type": "bool"
2034
+ },
2035
+ {
2036
+ "name": "canCreateCheque",
2037
+ "type": "bool"
2038
+ },
2039
+ {
2040
+ "name": "canAddPendingPayee",
2041
+ "type": "bool"
2042
+ },
2043
+ {
2044
+ "name": "allowedPayees",
2045
+ "type": "address[]"
2046
+ }
2047
+ ]
2048
+ },
2049
+ {
2050
+ "name": "allowedAssets",
2051
+ "type": "address[]"
2052
+ },
2053
+ {
2054
+ "name": "canClaimLoot",
2055
+ "type": "bool"
2056
+ }
2057
+ ]
2058
+ }
2059
+ ]
2060
+ },
2061
+ {
2062
+ "stateMutability": "view",
2063
+ "type": "function",
2064
+ "name": "getManagerSettingsBundle",
2065
+ "inputs": [
2066
+ {
2067
+ "name": "_userWallet",
2068
+ "type": "address"
2069
+ },
2070
+ {
2071
+ "name": "_manager",
2072
+ "type": "address"
2073
+ }
2074
+ ],
2075
+ "outputs": [
2076
+ {
2077
+ "name": "",
2078
+ "type": "tuple",
2079
+ "components": [
2080
+ {
2081
+ "name": "owner",
2082
+ "type": "address"
2083
+ },
2084
+ {
2085
+ "name": "isManager",
2086
+ "type": "bool"
2087
+ },
2088
+ {
2089
+ "name": "isPayee",
2090
+ "type": "bool"
2091
+ },
2092
+ {
2093
+ "name": "isWhitelisted",
2094
+ "type": "bool"
2095
+ },
2096
+ {
2097
+ "name": "timeLock",
2098
+ "type": "uint256"
2099
+ },
2100
+ {
2101
+ "name": "walletConfig",
2102
+ "type": "address"
2103
+ },
2104
+ {
2105
+ "name": "legoBook",
2106
+ "type": "address"
2107
+ },
2108
+ {
2109
+ "name": "globalManagerSettings",
2110
+ "type": "tuple",
2111
+ "components": [
2112
+ {
2113
+ "name": "managerPeriod",
2114
+ "type": "uint256"
2115
+ },
2116
+ {
2117
+ "name": "startDelay",
2118
+ "type": "uint256"
2119
+ },
2120
+ {
2121
+ "name": "activationLength",
2122
+ "type": "uint256"
2123
+ },
2124
+ {
2125
+ "name": "canOwnerManage",
2126
+ "type": "bool"
2127
+ },
2128
+ {
2129
+ "name": "limits",
2130
+ "type": "tuple",
2131
+ "components": [
2132
+ {
2133
+ "name": "maxUsdValuePerTx",
2134
+ "type": "uint256"
2135
+ },
2136
+ {
2137
+ "name": "maxUsdValuePerPeriod",
2138
+ "type": "uint256"
2139
+ },
2140
+ {
2141
+ "name": "maxUsdValueLifetime",
2142
+ "type": "uint256"
2143
+ },
2144
+ {
2145
+ "name": "maxNumTxsPerPeriod",
2146
+ "type": "uint256"
2147
+ },
2148
+ {
2149
+ "name": "txCooldownBlocks",
2150
+ "type": "uint256"
2151
+ },
2152
+ {
2153
+ "name": "failOnZeroPrice",
2154
+ "type": "bool"
2155
+ }
2156
+ ]
2157
+ },
2158
+ {
2159
+ "name": "legoPerms",
2160
+ "type": "tuple",
2161
+ "components": [
2162
+ {
2163
+ "name": "canManageYield",
2164
+ "type": "bool"
2165
+ },
2166
+ {
2167
+ "name": "canBuyAndSell",
2168
+ "type": "bool"
2169
+ },
2170
+ {
2171
+ "name": "canManageDebt",
2172
+ "type": "bool"
2173
+ },
2174
+ {
2175
+ "name": "canManageLiq",
2176
+ "type": "bool"
2177
+ },
2178
+ {
2179
+ "name": "canClaimRewards",
2180
+ "type": "bool"
2181
+ },
2182
+ {
2183
+ "name": "onlyApprovedYieldOpps",
2184
+ "type": "bool"
2185
+ },
2186
+ {
2187
+ "name": "allowedLegos",
2188
+ "type": "uint256[]"
2189
+ }
2190
+ ]
2191
+ },
2192
+ {
2193
+ "name": "swapPerms",
2194
+ "type": "tuple",
2195
+ "components": [
2196
+ {
2197
+ "name": "mustHaveUsdValue",
2198
+ "type": "bool"
2199
+ },
2200
+ {
2201
+ "name": "maxNumSwapsPerPeriod",
2202
+ "type": "uint256"
2203
+ },
2204
+ {
2205
+ "name": "maxSlippage",
2206
+ "type": "uint256"
2207
+ }
2208
+ ]
2209
+ },
2210
+ {
2211
+ "name": "whitelistPerms",
2212
+ "type": "tuple",
2213
+ "components": [
2214
+ {
2215
+ "name": "canAddPending",
2216
+ "type": "bool"
2217
+ },
2218
+ {
2219
+ "name": "canConfirm",
2220
+ "type": "bool"
2221
+ },
2222
+ {
2223
+ "name": "canCancel",
2224
+ "type": "bool"
2225
+ },
2226
+ {
2227
+ "name": "canRemove",
2228
+ "type": "bool"
2229
+ }
2230
+ ]
2231
+ },
2232
+ {
2233
+ "name": "transferPerms",
2234
+ "type": "tuple",
2235
+ "components": [
2236
+ {
2237
+ "name": "canTransfer",
2238
+ "type": "bool"
2239
+ },
2240
+ {
2241
+ "name": "canCreateCheque",
2242
+ "type": "bool"
2243
+ },
2244
+ {
2245
+ "name": "canAddPendingPayee",
2246
+ "type": "bool"
2247
+ },
2248
+ {
2249
+ "name": "allowedPayees",
2250
+ "type": "address[]"
2251
+ }
2252
+ ]
2253
+ },
2254
+ {
2255
+ "name": "allowedAssets",
2256
+ "type": "address[]"
2257
+ }
2258
+ ]
2259
+ }
2260
+ ]
2261
+ }
2262
+ ]
2263
+ },
2264
+ {
2265
+ "stateMutability": "view",
2266
+ "type": "function",
2267
+ "name": "UNDY_HQ",
2268
+ "inputs": [],
2269
+ "outputs": [
2270
+ {
2271
+ "name": "",
2272
+ "type": "address"
2273
+ }
2274
+ ]
2275
+ },
2276
+ {
2277
+ "stateMutability": "view",
2278
+ "type": "function",
2279
+ "name": "MIN_MANAGER_PERIOD",
2280
+ "inputs": [],
2281
+ "outputs": [
2282
+ {
2283
+ "name": "",
2284
+ "type": "uint256"
2285
+ }
2286
+ ]
2287
+ },
2288
+ {
2289
+ "stateMutability": "view",
2290
+ "type": "function",
2291
+ "name": "MAX_MANAGER_PERIOD",
2292
+ "inputs": [],
2293
+ "outputs": [
2294
+ {
2295
+ "name": "",
2296
+ "type": "uint256"
2297
+ }
2298
+ ]
2299
+ },
2300
+ {
2301
+ "stateMutability": "view",
2302
+ "type": "function",
2303
+ "name": "MAX_START_DELAY",
2304
+ "inputs": [],
2305
+ "outputs": [
2306
+ {
2307
+ "name": "",
2308
+ "type": "uint256"
2309
+ }
2310
+ ]
2311
+ },
2312
+ {
2313
+ "stateMutability": "view",
2314
+ "type": "function",
2315
+ "name": "MIN_ACTIVATION_LENGTH",
2316
+ "inputs": [],
2317
+ "outputs": [
2318
+ {
2319
+ "name": "",
2320
+ "type": "uint256"
2321
+ }
2322
+ ]
2323
+ },
2324
+ {
2325
+ "stateMutability": "view",
2326
+ "type": "function",
2327
+ "name": "MAX_ACTIVATION_LENGTH",
2328
+ "inputs": [],
2329
+ "outputs": [
2330
+ {
2331
+ "name": "",
2332
+ "type": "uint256"
2333
+ }
2334
+ ]
2335
+ },
2336
+ {
2337
+ "stateMutability": "nonpayable",
2338
+ "type": "constructor",
2339
+ "inputs": [
2340
+ {
2341
+ "name": "_undyHq",
2342
+ "type": "address"
2343
+ },
2344
+ {
2345
+ "name": "_minManagerPeriod",
2346
+ "type": "uint256"
2347
+ },
2348
+ {
2349
+ "name": "_maxManagerPeriod",
2350
+ "type": "uint256"
2351
+ },
2352
+ {
2353
+ "name": "_minActivationLength",
2354
+ "type": "uint256"
2355
+ },
2356
+ {
2357
+ "name": "_maxActivationLength",
2358
+ "type": "uint256"
2359
+ },
2360
+ {
2361
+ "name": "_maxStartDelay",
2362
+ "type": "uint256"
2363
+ }
2364
+ ],
2365
+ "outputs": []
2366
+ }
2367
+ ];
2368
+ export const deployAddress = '0x06492EA8F83B3a61d71B61FEEF7F167aDD9A78EC';
2369
+ function getRequest(method, args, contractAddressOrOptions) {
2370
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
2371
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
2372
+ const call = {
2373
+ contractName: 'HighCommand',
2374
+ method,
2375
+ args,
2376
+ address,
2377
+ deployAddress,
2378
+ defaultValue,
2379
+ getAbi: () => abi,
2380
+ with: (options) => {
2381
+ call.address = options.contractAddress;
2382
+ call.defaultValue = options.defaultValue;
2383
+ return call;
2384
+ },
2385
+ defaultTo: (defaultValue) => {
2386
+ call.defaultValue = defaultValue;
2387
+ return call;
2388
+ },
2389
+ at: (address) => {
2390
+ call.address = address;
2391
+ return call;
2392
+ },
2393
+ };
2394
+ return call;
2395
+ }
2396
+ export const call = {
2397
+ isValidNewManager: (...args) => getRequest('isValidNewManager', args),
2398
+ validateManagerOnUpdate: (...args) => getRequest('validateManagerOnUpdate', args),
2399
+ validateGlobalManagerSettings: (...args) => getRequest('validateGlobalManagerSettings', args),
2400
+ createDefaultGlobalManagerSettings: (...args) => getRequest('createDefaultGlobalManagerSettings', args),
2401
+ createStarterAgentSettings: (...args) => getRequest('createStarterAgentSettings', args),
2402
+ getManagerSettingsBundle: (...args) => getRequest('getManagerSettingsBundle', args),
2403
+ UNDY_HQ: (...args) => getRequest('UNDY_HQ', args),
2404
+ MIN_MANAGER_PERIOD: (...args) => getRequest('MIN_MANAGER_PERIOD', args),
2405
+ MAX_MANAGER_PERIOD: (...args) => getRequest('MAX_MANAGER_PERIOD', args),
2406
+ MAX_START_DELAY: (...args) => getRequest('MAX_START_DELAY', args),
2407
+ MIN_ACTIVATION_LENGTH: (...args) => getRequest('MIN_ACTIVATION_LENGTH', args),
2408
+ MAX_ACTIVATION_LENGTH: (...args) => getRequest('MAX_ACTIVATION_LENGTH', args),
2409
+ };
2410
+ function getMutation(functionName) {
2411
+ return {
2412
+ contractName: 'HighCommand',
2413
+ functionName,
2414
+ deployAddress,
2415
+ argsType: undefined,
2416
+ getAbi: () => abi,
2417
+ };
2418
+ }
2419
+ export const mutation = {
2420
+ addManager: getMutation('addManager'),
2421
+ updateManager: getMutation('updateManager'),
2422
+ removeManager: getMutation('removeManager'),
2423
+ neuterStarterAgent: getMutation('neuterStarterAgent'),
2424
+ adjustManagerActivationLength: getMutation('adjustManagerActivationLength'),
2425
+ setGlobalManagerSettings: getMutation('setGlobalManagerSettings'),
2426
+ };
2427
+ export function parseEvents(eventName, events) {
2428
+ return events.map((event) => {
2429
+ return {
2430
+ event,
2431
+ parsed: parseEventLogs({
2432
+ abi,
2433
+ eventName,
2434
+ logs: [event],
2435
+ }),
2436
+ };
2437
+ });
2438
+ }
2439
+ export function getEventTopic(eventName) {
2440
+ return encodeEventTopics({ abi, eventName })[0];
2441
+ }
2442
+ export function toSdk(publicClient, walletClient, addressResolver) {
2443
+ return {
2444
+ deployAddress,
2445
+ abi,
2446
+ events: {
2447
+ GlobalManagerSettingsModified: { topic: getEventTopic('GlobalManagerSettingsModified'), parse: (events) => parseEvents('GlobalManagerSettingsModified', events) },
2448
+ ManagerSettingsModified: { topic: getEventTopic('ManagerSettingsModified'), parse: (events) => parseEvents('ManagerSettingsModified', events) },
2449
+ ManagerRemoved: { topic: getEventTopic('ManagerRemoved'), parse: (events) => parseEvents('ManagerRemoved', events) },
2450
+ ManagerActivationLengthAdjusted: { topic: getEventTopic('ManagerActivationLengthAdjusted'), parse: (events) => parseEvents('ManagerActivationLengthAdjusted', events) },
2451
+ StarterAgentNeutered: { topic: getEventTopic('StarterAgentNeutered'), parse: (events) => parseEvents('StarterAgentNeutered', events) },
2452
+ },
2453
+ // Queries
2454
+ isValidNewManager: (...args) => singleQuery(publicClient, call.isValidNewManager(...args), {}, addressResolver),
2455
+ validateManagerOnUpdate: (...args) => singleQuery(publicClient, call.validateManagerOnUpdate(...args), {}, addressResolver),
2456
+ validateGlobalManagerSettings: (...args) => singleQuery(publicClient, call.validateGlobalManagerSettings(...args), {}, addressResolver),
2457
+ createDefaultGlobalManagerSettings: (...args) => singleQuery(publicClient, call.createDefaultGlobalManagerSettings(...args), {}, addressResolver),
2458
+ createStarterAgentSettings: (...args) => singleQuery(publicClient, call.createStarterAgentSettings(...args), {}, addressResolver),
2459
+ getManagerSettingsBundle: (...args) => singleQuery(publicClient, call.getManagerSettingsBundle(...args), {}, addressResolver),
2460
+ UNDY_HQ: (...args) => singleQuery(publicClient, call.UNDY_HQ(...args), {}, addressResolver),
2461
+ MIN_MANAGER_PERIOD: (...args) => singleQuery(publicClient, call.MIN_MANAGER_PERIOD(...args), {}, addressResolver),
2462
+ MAX_MANAGER_PERIOD: (...args) => singleQuery(publicClient, call.MAX_MANAGER_PERIOD(...args), {}, addressResolver),
2463
+ MAX_START_DELAY: (...args) => singleQuery(publicClient, call.MAX_START_DELAY(...args), {}, addressResolver),
2464
+ MIN_ACTIVATION_LENGTH: (...args) => singleQuery(publicClient, call.MIN_ACTIVATION_LENGTH(...args), {}, addressResolver),
2465
+ MAX_ACTIVATION_LENGTH: (...args) => singleQuery(publicClient, call.MAX_ACTIVATION_LENGTH(...args), {}, addressResolver),
2466
+ // Mutations
2467
+ addManager: (...args) => mutate(walletClient, mutation.addManager, { addressResolver })(...args),
2468
+ updateManager: (...args) => mutate(walletClient, mutation.updateManager, { addressResolver })(...args),
2469
+ removeManager: (...args) => mutate(walletClient, mutation.removeManager, { addressResolver })(...args),
2470
+ neuterStarterAgent: (...args) => mutate(walletClient, mutation.neuterStarterAgent, { addressResolver })(...args),
2471
+ adjustManagerActivationLength: (...args) => mutate(walletClient, mutation.adjustManagerActivationLength, { addressResolver })(...args),
2472
+ setGlobalManagerSettings: (...args) => mutate(walletClient, mutation.setGlobalManagerSettings, { addressResolver })(...args),
2473
+ };
2474
+ }