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