@underscore-finance/sdk 0.3.5 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (244) hide show
  1. package/dist/contracts/AaveV3.d.ts +2120 -0
  2. package/dist/contracts/AaveV3.d.ts.map +1 -0
  3. package/dist/contracts/AaveV3.js +2714 -0
  4. package/dist/contracts/AeroClassic.d.ts +2017 -0
  5. package/dist/contracts/AeroClassic.d.ts.map +1 -0
  6. package/dist/contracts/AeroClassic.js +2567 -0
  7. package/dist/contracts/AeroSlipstream.d.ts +2113 -0
  8. package/dist/contracts/AeroSlipstream.d.ts.map +1 -0
  9. package/dist/contracts/AeroSlipstream.js +2692 -0
  10. package/dist/contracts/Agent.d.ts +2189 -1138
  11. package/dist/contracts/Agent.d.ts.map +1 -1
  12. package/dist/contracts/Agent.js +2807 -1343
  13. package/dist/contracts/AgentWrapper.d.ts +3760 -0
  14. package/dist/contracts/AgentWrapper.d.ts.map +1 -0
  15. package/dist/contracts/AgentWrapper.js +4922 -0
  16. package/dist/contracts/Appraiser.d.ts +997 -0
  17. package/dist/contracts/Appraiser.d.ts.map +1 -0
  18. package/dist/contracts/Appraiser.js +1285 -0
  19. package/dist/contracts/Billing.d.ts +420 -0
  20. package/dist/contracts/Billing.d.ts.map +1 -0
  21. package/dist/contracts/Billing.js +506 -0
  22. package/dist/contracts/ChequeBook.d.ts +1184 -0
  23. package/dist/contracts/ChequeBook.d.ts.map +1 -0
  24. package/dist/contracts/ChequeBook.js +1352 -0
  25. package/dist/contracts/CompoundV3.d.ts +2158 -0
  26. package/dist/contracts/CompoundV3.d.ts.map +1 -0
  27. package/dist/contracts/CompoundV3.js +2764 -0
  28. package/dist/contracts/Curve.d.ts +1077 -0
  29. package/dist/contracts/Curve.d.ts.map +1 -0
  30. package/dist/contracts/Curve.js +1357 -0
  31. package/dist/contracts/DefaultsBase.d.ts +290 -0
  32. package/dist/contracts/DefaultsBase.d.ts.map +1 -0
  33. package/dist/contracts/DefaultsBase.js +316 -0
  34. package/dist/contracts/Euler.d.ts +2172 -0
  35. package/dist/contracts/Euler.d.ts.map +1 -0
  36. package/dist/contracts/Euler.js +2782 -0
  37. package/dist/contracts/Fluid.d.ts +2106 -0
  38. package/dist/contracts/Fluid.d.ts.map +1 -0
  39. package/dist/contracts/Fluid.js +2696 -0
  40. package/dist/contracts/Hatchery.d.ts +541 -0
  41. package/dist/contracts/Hatchery.d.ts.map +1 -0
  42. package/dist/contracts/Hatchery.js +671 -0
  43. package/dist/contracts/HighCommand.d.ts +1868 -0
  44. package/dist/contracts/HighCommand.d.ts.map +1 -0
  45. package/dist/contracts/HighCommand.js +2149 -0
  46. package/dist/contracts/Kernel.d.ts +354 -0
  47. package/dist/contracts/Kernel.d.ts.map +1 -0
  48. package/dist/contracts/Kernel.js +412 -0
  49. package/dist/contracts/Ledger.d.ts +694 -0
  50. package/dist/contracts/Ledger.d.ts.map +1 -0
  51. package/dist/contracts/Ledger.js +834 -0
  52. package/dist/contracts/LegoBook.d.ts +1424 -0
  53. package/dist/contracts/LegoBook.d.ts.map +1 -0
  54. package/dist/contracts/LegoBook.js +1783 -0
  55. package/dist/contracts/LegoTools.d.ts +1898 -0
  56. package/dist/contracts/LegoTools.d.ts.map +1 -0
  57. package/dist/contracts/LegoTools.js +2378 -0
  58. package/dist/contracts/LegoUniswapV0_2.d.ts +1204 -0
  59. package/dist/contracts/LegoUniswapV0_2.d.ts.map +1 -0
  60. package/dist/contracts/LegoUniswapV0_2.js +1546 -0
  61. package/dist/contracts/LootDistributor.d.ts +996 -0
  62. package/dist/contracts/LootDistributor.d.ts.map +1 -0
  63. package/dist/contracts/LootDistributor.js +1255 -0
  64. package/dist/contracts/Migrator.d.ts +268 -0
  65. package/dist/contracts/Migrator.d.ts.map +1 -0
  66. package/dist/contracts/Migrator.js +324 -0
  67. package/dist/contracts/MissionControl.d.ts +1331 -0
  68. package/dist/contracts/MissionControl.d.ts.map +1 -0
  69. package/dist/contracts/MissionControl.js +1485 -0
  70. package/dist/contracts/Moonwell.d.ts +2137 -0
  71. package/dist/contracts/Moonwell.d.ts.map +1 -0
  72. package/dist/contracts/Moonwell.js +2737 -0
  73. package/dist/contracts/Morpho.d.ts +2172 -0
  74. package/dist/contracts/Morpho.d.ts.map +1 -0
  75. package/dist/contracts/Morpho.js +2782 -0
  76. package/dist/contracts/Paymaster.d.ts +1679 -0
  77. package/dist/contracts/Paymaster.d.ts.map +1 -0
  78. package/dist/contracts/Paymaster.js +2077 -0
  79. package/dist/contracts/RipeLego.d.ts +2263 -0
  80. package/dist/contracts/RipeLego.d.ts.map +1 -0
  81. package/dist/contracts/RipeLego.js +2891 -0
  82. package/dist/contracts/Sentinel.d.ts +1804 -0
  83. package/dist/contracts/Sentinel.d.ts.map +1 -0
  84. package/dist/contracts/Sentinel.js +2152 -0
  85. package/dist/contracts/Switchboard.d.ts +1395 -0
  86. package/dist/contracts/Switchboard.d.ts.map +1 -0
  87. package/dist/contracts/Switchboard.js +1746 -0
  88. package/dist/contracts/SwitchboardAlpha.d.ts +2228 -0
  89. package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -0
  90. package/dist/contracts/SwitchboardAlpha.js +2743 -0
  91. package/dist/contracts/SwitchboardBravo.d.ts +1498 -0
  92. package/dist/contracts/SwitchboardBravo.d.ts.map +1 -0
  93. package/dist/contracts/SwitchboardBravo.js +1855 -0
  94. package/dist/contracts/UndyHq.d.ts +1580 -0
  95. package/dist/contracts/UndyHq.d.ts.map +1 -0
  96. package/dist/contracts/UndyHq.js +1986 -0
  97. package/dist/contracts/UniswapV2.d.ts +2017 -0
  98. package/dist/contracts/UniswapV2.d.ts.map +1 -0
  99. package/dist/contracts/UniswapV2.js +2567 -0
  100. package/dist/contracts/UniswapV3.d.ts +2113 -0
  101. package/dist/contracts/UniswapV3.d.ts.map +1 -0
  102. package/dist/contracts/UniswapV3.js +2692 -0
  103. package/dist/contracts/UserWallet.d.ts +1438 -784
  104. package/dist/contracts/UserWallet.d.ts.map +1 -1
  105. package/dist/contracts/UserWallet.js +1854 -935
  106. package/dist/contracts/UserWalletConfig.d.ts +3034 -1231
  107. package/dist/contracts/UserWalletConfig.d.ts.map +1 -1
  108. package/dist/contracts/UserWalletConfig.js +3395 -1407
  109. package/dist/contracts/WalletBackpack.d.ts +1183 -0
  110. package/dist/contracts/WalletBackpack.d.ts.map +1 -0
  111. package/dist/contracts/WalletBackpack.js +1484 -0
  112. package/dist/contracts/index.d.ts +72 -36
  113. package/dist/contracts/index.d.ts.map +1 -1
  114. package/dist/contracts/index.js +72 -36
  115. package/dist/contracts/sdk.d.ts +146 -72
  116. package/dist/contracts/sdk.d.ts.map +1 -1
  117. package/dist/contracts/sdk.js +146 -72
  118. package/dist/contracts/v0_1_AddyRegistry.d.ts +473 -0
  119. package/dist/contracts/v0_1_AddyRegistry.d.ts.map +1 -0
  120. package/dist/contracts/v0_1_AddyRegistry.js +594 -0
  121. package/dist/contracts/v0_1_Agent.d.ts +2631 -0
  122. package/dist/contracts/v0_1_Agent.d.ts.map +1 -0
  123. package/dist/contracts/v0_1_Agent.js +3372 -0
  124. package/dist/contracts/v0_1_AgentFactory.d.ts +1054 -0
  125. package/dist/contracts/v0_1_AgentFactory.d.ts.map +1 -0
  126. package/dist/contracts/v0_1_AgentFactory.js +1336 -0
  127. package/dist/contracts/v0_1_UserWallet.d.ts +1980 -0
  128. package/dist/contracts/v0_1_UserWallet.d.ts.map +1 -0
  129. package/dist/contracts/v0_1_UserWallet.js +2581 -0
  130. package/dist/contracts/v0_1_UserWalletConfig.d.ts +1400 -0
  131. package/dist/contracts/v0_1_UserWalletConfig.d.ts.map +1 -0
  132. package/dist/contracts/v0_1_UserWalletConfig.js +1676 -0
  133. package/dist/contracts/v0_2_AddyRegistry.d.ts +1050 -0
  134. package/dist/contracts/v0_2_AddyRegistry.d.ts.map +1 -0
  135. package/dist/contracts/v0_2_AddyRegistry.js +1313 -0
  136. package/dist/contracts/v0_2_Agent.d.ts +2709 -0
  137. package/dist/contracts/v0_2_Agent.d.ts.map +1 -0
  138. package/dist/contracts/v0_2_Agent.js +3458 -0
  139. package/dist/contracts/v0_2_AgentFactory.d.ts +1275 -0
  140. package/dist/contracts/v0_2_AgentFactory.d.ts.map +1 -0
  141. package/dist/contracts/v0_2_AgentFactory.js +1609 -0
  142. package/dist/contracts/v0_2_UserWallet.d.ts +1958 -0
  143. package/dist/contracts/v0_2_UserWallet.d.ts.map +1 -0
  144. package/dist/contracts/v0_2_UserWallet.js +2553 -0
  145. package/dist/contracts/v0_2_UserWalletConfig.d.ts +1468 -0
  146. package/dist/contracts/v0_2_UserWalletConfig.d.ts.map +1 -0
  147. package/dist/contracts/v0_2_UserWalletConfig.js +1764 -0
  148. package/dist/contracts/v0_3_AddyRegistry.d.ts +1109 -0
  149. package/dist/contracts/v0_3_AddyRegistry.d.ts.map +1 -0
  150. package/dist/contracts/v0_3_AddyRegistry.js +1392 -0
  151. package/dist/contracts/v0_3_Agent.d.ts +2709 -0
  152. package/dist/contracts/v0_3_Agent.d.ts.map +1 -0
  153. package/dist/contracts/v0_3_Agent.js +3458 -0
  154. package/dist/contracts/v0_3_AgentFactory.d.ts +1665 -0
  155. package/dist/contracts/v0_3_AgentFactory.d.ts.map +1 -0
  156. package/dist/contracts/v0_3_AgentFactory.js +2078 -0
  157. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts +706 -0
  158. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts.map +1 -0
  159. package/dist/contracts/v0_3_ChainlinkFeeds.js +900 -0
  160. package/dist/contracts/v0_3_LegoAaveV3.d.ts +1033 -0
  161. package/dist/contracts/v0_3_LegoAaveV3.d.ts.map +1 -0
  162. package/dist/contracts/v0_3_LegoAaveV3.js +1330 -0
  163. package/dist/contracts/v0_3_LegoAeroClassic.d.ts +1204 -0
  164. package/dist/contracts/v0_3_LegoAeroClassic.d.ts.map +1 -0
  165. package/dist/contracts/v0_3_LegoAeroClassic.js +1546 -0
  166. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts +1300 -0
  167. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts.map +1 -0
  168. package/dist/contracts/v0_3_LegoAeroSlipstream.js +1671 -0
  169. package/dist/contracts/v0_3_LegoCommon.d.ts +164 -0
  170. package/dist/contracts/v0_3_LegoCommon.d.ts.map +1 -0
  171. package/dist/contracts/v0_3_LegoCommon.js +202 -0
  172. package/dist/contracts/v0_3_LegoCompoundV3.d.ts +1060 -0
  173. package/dist/contracts/v0_3_LegoCompoundV3.d.ts.map +1 -0
  174. package/dist/contracts/v0_3_LegoCompoundV3.js +1365 -0
  175. package/dist/contracts/v0_3_LegoCredit.d.ts +140 -0
  176. package/dist/contracts/v0_3_LegoCredit.d.ts.map +1 -0
  177. package/dist/contracts/v0_3_LegoCredit.js +179 -0
  178. package/dist/contracts/v0_3_LegoCurve.d.ts +1189 -0
  179. package/dist/contracts/v0_3_LegoCurve.d.ts.map +1 -0
  180. package/dist/contracts/v0_3_LegoCurve.js +1519 -0
  181. package/dist/contracts/v0_3_LegoDex.d.ts +587 -0
  182. package/dist/contracts/v0_3_LegoDex.d.ts.map +1 -0
  183. package/dist/contracts/v0_3_LegoDex.js +774 -0
  184. package/dist/contracts/v0_3_LegoEuler.d.ts +1074 -0
  185. package/dist/contracts/v0_3_LegoEuler.d.ts.map +1 -0
  186. package/dist/contracts/v0_3_LegoEuler.js +1383 -0
  187. package/dist/contracts/v0_3_LegoFluid.d.ts +1025 -0
  188. package/dist/contracts/v0_3_LegoFluid.d.ts.map +1 -0
  189. package/dist/contracts/v0_3_LegoFluid.js +1320 -0
  190. package/dist/contracts/v0_3_LegoHelper.d.ts +1563 -0
  191. package/dist/contracts/v0_3_LegoHelper.d.ts.map +1 -0
  192. package/dist/contracts/v0_3_LegoHelper.js +1947 -0
  193. package/dist/contracts/v0_3_LegoMoonwell.d.ts +1042 -0
  194. package/dist/contracts/v0_3_LegoMoonwell.d.ts.map +1 -0
  195. package/dist/contracts/v0_3_LegoMoonwell.js +1342 -0
  196. package/dist/contracts/v0_3_LegoMorpho.d.ts +1074 -0
  197. package/dist/contracts/v0_3_LegoMorpho.d.ts.map +1 -0
  198. package/dist/contracts/v0_3_LegoMorpho.js +1383 -0
  199. package/dist/contracts/v0_3_LegoRegistry.d.ts +1079 -0
  200. package/dist/contracts/v0_3_LegoRegistry.d.ts.map +1 -0
  201. package/dist/contracts/v0_3_LegoRegistry.js +1368 -0
  202. package/dist/contracts/v0_3_LegoSky.d.ts +923 -0
  203. package/dist/contracts/v0_3_LegoSky.d.ts.map +1 -0
  204. package/dist/contracts/v0_3_LegoSky.js +1180 -0
  205. package/dist/contracts/v0_3_LegoUniswapV3.d.ts +1338 -0
  206. package/dist/contracts/v0_3_LegoUniswapV3.d.ts.map +1 -0
  207. package/dist/contracts/v0_3_LegoUniswapV3.js +1718 -0
  208. package/dist/contracts/v0_3_LegoYield.d.ts +390 -0
  209. package/dist/contracts/v0_3_LegoYield.d.ts.map +1 -0
  210. package/dist/contracts/v0_3_LegoYield.js +511 -0
  211. package/dist/contracts/v0_3_OracleParser.d.ts +207 -0
  212. package/dist/contracts/v0_3_OracleParser.d.ts.map +1 -0
  213. package/dist/contracts/v0_3_OracleParser.js +264 -0
  214. package/dist/contracts/v0_3_OracleRegistry.d.ts +1221 -0
  215. package/dist/contracts/v0_3_OracleRegistry.d.ts.map +1 -0
  216. package/dist/contracts/v0_3_OracleRegistry.js +1562 -0
  217. package/dist/contracts/v0_3_PriceSheets.d.ts +1127 -0
  218. package/dist/contracts/v0_3_PriceSheets.d.ts.map +1 -0
  219. package/dist/contracts/v0_3_PriceSheets.js +1383 -0
  220. package/dist/contracts/v0_3_PythFeeds.d.ts +640 -0
  221. package/dist/contracts/v0_3_PythFeeds.d.ts.map +1 -0
  222. package/dist/contracts/v0_3_PythFeeds.js +813 -0
  223. package/dist/contracts/v0_3_StorkFeeds.d.ts +640 -0
  224. package/dist/contracts/v0_3_StorkFeeds.d.ts.map +1 -0
  225. package/dist/contracts/v0_3_StorkFeeds.js +813 -0
  226. package/dist/contracts/v0_3_UserWallet.d.ts +1975 -0
  227. package/dist/contracts/v0_3_UserWallet.d.ts.map +1 -0
  228. package/dist/contracts/v0_3_UserWallet.js +2577 -0
  229. package/dist/contracts/v0_3_UserWalletConfig.d.ts +1852 -0
  230. package/dist/contracts/v0_3_UserWalletConfig.d.ts.map +1 -0
  231. package/dist/contracts/v0_3_UserWalletConfig.js +2263 -0
  232. package/dist/getContracts.d.ts +77 -0
  233. package/dist/getContracts.d.ts.map +1 -0
  234. package/dist/getContracts.js +67 -0
  235. package/dist/getLegacyContracts.d.ts +69 -0
  236. package/dist/getLegacyContracts.d.ts.map +1 -0
  237. package/dist/getLegacyContracts.js +55 -0
  238. package/dist/getSwapInstructions.d.ts +60 -0
  239. package/dist/getSwapInstructions.d.ts.map +1 -0
  240. package/dist/getSwapInstructions.js +41 -0
  241. package/dist/index.d.ts +3 -475
  242. package/dist/index.d.ts.map +1 -1
  243. package/dist/index.js +8 -182
  244. package/package.json +2 -2
@@ -2,419 +2,177 @@ import { PublicClient, WalletClient } from 'viem';
2
2
  type ExtractArgs<T> = T extends (...args: infer P) => any ? P : never;
3
3
  type Address = `0x${string}`;
4
4
  export declare const abi: readonly [{
5
- readonly anonymous: false;
6
- readonly inputs: readonly [{
7
- readonly indexed: true;
8
- readonly name: "agent";
9
- readonly type: "address";
10
- }, {
11
- readonly indexed: false;
12
- readonly name: "allowedAssets";
13
- readonly type: "uint256";
14
- }, {
15
- readonly indexed: false;
16
- readonly name: "allowedLegoIds";
17
- readonly type: "uint256";
18
- }];
19
- readonly name: "AgentAdded";
20
- readonly type: "event";
21
- }, {
22
- readonly anonymous: false;
23
- readonly inputs: readonly [{
24
- readonly indexed: true;
25
- readonly name: "agent";
26
- readonly type: "address";
27
- }, {
28
- readonly indexed: false;
29
- readonly name: "allowedAssets";
30
- readonly type: "uint256";
31
- }, {
32
- readonly indexed: false;
33
- readonly name: "allowedLegoIds";
34
- readonly type: "uint256";
35
- }];
36
- readonly name: "AgentModified";
37
- readonly type: "event";
38
- }, {
39
- readonly anonymous: false;
40
- readonly inputs: readonly [{
41
- readonly indexed: true;
42
- readonly name: "agent";
43
- readonly type: "address";
44
- }, {
45
- readonly indexed: false;
46
- readonly name: "prevAllowedAssets";
47
- readonly type: "uint256";
48
- }, {
49
- readonly indexed: false;
50
- readonly name: "prevAllowedLegoIds";
51
- readonly type: "uint256";
52
- }];
53
- readonly name: "AgentDisabled";
54
- readonly type: "event";
55
- }, {
56
- readonly anonymous: false;
57
- readonly inputs: readonly [{
58
- readonly indexed: true;
59
- readonly name: "agent";
60
- readonly type: "address";
61
- }, {
62
- readonly indexed: true;
63
- readonly name: "legoId";
64
- readonly type: "uint256";
65
- }];
66
- readonly name: "LegoIdAddedToAgent";
67
- readonly type: "event";
68
- }, {
69
- readonly anonymous: false;
70
- readonly inputs: readonly [{
71
- readonly indexed: true;
72
- readonly name: "agent";
73
- readonly type: "address";
74
- }, {
75
- readonly indexed: true;
76
- readonly name: "asset";
77
- readonly type: "address";
78
- }];
79
- readonly name: "AssetAddedToAgent";
80
- readonly type: "event";
81
- }, {
82
- readonly anonymous: false;
5
+ readonly name: "EjectionModeSet";
83
6
  readonly inputs: readonly [{
84
- readonly indexed: true;
85
- readonly name: "agent";
86
- readonly type: "address";
87
- }, {
88
- readonly indexed: false;
89
- readonly name: "canDeposit";
7
+ readonly name: "inEjectMode";
90
8
  readonly type: "bool";
91
- }, {
92
- readonly indexed: false;
93
- readonly name: "canWithdraw";
94
- readonly type: "bool";
95
- }, {
96
- readonly indexed: false;
97
- readonly name: "canRebalance";
98
- readonly type: "bool";
99
- }, {
100
- readonly indexed: false;
101
- readonly name: "canTransfer";
102
- readonly type: "bool";
103
- }, {
104
- readonly indexed: false;
105
- readonly name: "canSwap";
106
- readonly type: "bool";
107
- }, {
108
- readonly indexed: false;
109
- readonly name: "canConvert";
110
- readonly type: "bool";
111
- }, {
112
- readonly indexed: false;
113
- readonly name: "canAddLiq";
114
- readonly type: "bool";
115
- }, {
116
- readonly indexed: false;
117
- readonly name: "canRemoveLiq";
118
- readonly type: "bool";
119
- }, {
120
- readonly indexed: false;
121
- readonly name: "canClaimRewards";
122
- readonly type: "bool";
123
- }, {
124
- readonly indexed: false;
125
- readonly name: "canBorrow";
126
- readonly type: "bool";
127
- }, {
128
- readonly indexed: false;
129
- readonly name: "canRepay";
130
- readonly type: "bool";
131
- }];
132
- readonly name: "AllowedActionsModified";
133
- readonly type: "event";
134
- }, {
135
- readonly anonymous: false;
136
- readonly inputs: readonly [{
137
9
  readonly indexed: false;
138
- readonly name: "canTransfer";
139
- readonly type: "bool";
140
10
  }];
141
- readonly name: "CanTransferToAltOwnerWalletsSet";
142
- readonly type: "event";
143
- }, {
144
11
  readonly anonymous: false;
145
- readonly inputs: readonly [{
146
- readonly indexed: true;
147
- readonly name: "addr";
148
- readonly type: "address";
149
- }, {
150
- readonly indexed: false;
151
- readonly name: "confirmBlock";
152
- readonly type: "uint256";
153
- }];
154
- readonly name: "WhitelistAddrPending";
155
12
  readonly type: "event";
156
13
  }, {
157
- readonly anonymous: false;
14
+ readonly name: "FrozenSet";
158
15
  readonly inputs: readonly [{
159
- readonly indexed: true;
160
- readonly name: "addr";
161
- readonly type: "address";
162
- }, {
16
+ readonly name: "isFrozen";
17
+ readonly type: "bool";
163
18
  readonly indexed: false;
164
- readonly name: "initiatedBlock";
165
- readonly type: "uint256";
166
19
  }, {
167
- readonly indexed: false;
168
- readonly name: "confirmBlock";
169
- readonly type: "uint256";
170
- }];
171
- readonly name: "WhitelistAddrConfirmed";
172
- readonly type: "event";
173
- }, {
174
- readonly anonymous: false;
175
- readonly inputs: readonly [{
176
- readonly indexed: true;
177
- readonly name: "addr";
20
+ readonly name: "caller";
178
21
  readonly type: "address";
179
- }, {
180
- readonly indexed: false;
181
- readonly name: "initiatedBlock";
182
- readonly type: "uint256";
183
- }, {
184
- readonly indexed: false;
185
- readonly name: "confirmBlock";
186
- readonly type: "uint256";
187
- }, {
188
22
  readonly indexed: true;
189
- readonly name: "cancelledBy";
190
- readonly type: "address";
191
23
  }];
192
- readonly name: "WhitelistAddrCancelled";
193
- readonly type: "event";
194
- }, {
195
24
  readonly anonymous: false;
196
- readonly inputs: readonly [{
197
- readonly indexed: true;
198
- readonly name: "addr";
199
- readonly type: "address";
200
- }];
201
- readonly name: "WhitelistAddrRemoved";
202
25
  readonly type: "event";
203
26
  }, {
204
- readonly anonymous: false;
27
+ readonly name: "NftRecovered";
205
28
  readonly inputs: readonly [{
206
- readonly indexed: true;
207
- readonly name: "addr";
29
+ readonly name: "collection";
208
30
  readonly type: "address";
209
- }];
210
- readonly name: "WhitelistAddrSetViaMigration";
211
- readonly type: "event";
212
- }, {
213
- readonly anonymous: false;
214
- readonly inputs: readonly [{
215
31
  readonly indexed: true;
216
- readonly name: "asset";
217
- readonly type: "address";
218
32
  }, {
219
- readonly indexed: false;
220
- readonly name: "amount";
33
+ readonly name: "nftTokenId";
221
34
  readonly type: "uint256";
222
- }];
223
- readonly name: "ReserveAssetSet";
224
- readonly type: "event";
225
- }, {
226
- readonly anonymous: false;
227
- readonly inputs: readonly [{
228
35
  readonly indexed: false;
229
- readonly name: "canWalletBeAmbassador";
230
- readonly type: "bool";
231
- }];
232
- readonly name: "CanWalletBeAmbassadorSet";
233
- readonly type: "event";
234
- }, {
235
- readonly anonymous: false;
236
- readonly inputs: readonly [{
237
- readonly indexed: true;
238
- readonly name: "addr";
239
- readonly type: "address";
240
- }];
241
- readonly name: "AmbassadorForwarderSet";
242
- readonly type: "event";
243
- }, {
244
- readonly anonymous: false;
245
- readonly inputs: readonly [{
246
- readonly indexed: true;
247
- readonly name: "asset";
248
- readonly type: "address";
249
36
  }, {
250
- readonly indexed: true;
251
37
  readonly name: "recipient";
252
38
  readonly type: "address";
253
- }, {
254
- readonly indexed: false;
255
- readonly name: "balance";
256
- readonly type: "uint256";
257
- }];
258
- readonly name: "FundsRecovered";
259
- readonly type: "event";
260
- }, {
261
- readonly anonymous: false;
262
- readonly inputs: readonly [{
263
39
  readonly indexed: true;
264
- readonly name: "newWallet";
265
- readonly type: "address";
266
- }, {
267
- readonly indexed: false;
268
- readonly name: "numAssetsToMigrate";
269
- readonly type: "uint256";
270
- }, {
271
- readonly indexed: false;
272
- readonly name: "numWhitelistToMigrate";
273
- readonly type: "uint256";
274
40
  }];
275
- readonly name: "UserWalletStartMigration";
276
- readonly type: "event";
277
- }, {
278
41
  readonly anonymous: false;
279
- readonly inputs: readonly [{
280
- readonly indexed: true;
281
- readonly name: "oldWallet";
282
- readonly type: "address";
283
- }, {
284
- readonly indexed: false;
285
- readonly name: "numWhitelistMigrated";
286
- readonly type: "uint256";
287
- }, {
288
- readonly indexed: false;
289
- readonly name: "numVaultTokensMigrated";
290
- readonly type: "uint256";
291
- }, {
292
- readonly indexed: false;
293
- readonly name: "numAssetsMigrated";
294
- readonly type: "uint256";
295
- }];
296
- readonly name: "UserWalletFinishMigration";
297
42
  readonly type: "event";
298
43
  }, {
299
- readonly anonymous: false;
44
+ readonly name: "OwnershipChangeInitiated";
300
45
  readonly inputs: readonly [{
301
- readonly indexed: true;
302
46
  readonly name: "prevOwner";
303
47
  readonly type: "address";
304
- }, {
305
48
  readonly indexed: true;
49
+ }, {
306
50
  readonly name: "newOwner";
307
51
  readonly type: "address";
52
+ readonly indexed: true;
308
53
  }, {
309
- readonly indexed: false;
310
54
  readonly name: "confirmBlock";
311
55
  readonly type: "uint256";
56
+ readonly indexed: false;
312
57
  }];
313
- readonly name: "OwnershipChangeInitiated";
58
+ readonly anonymous: false;
314
59
  readonly type: "event";
315
60
  }, {
316
- readonly anonymous: false;
61
+ readonly name: "OwnershipChangeConfirmed";
317
62
  readonly inputs: readonly [{
318
- readonly indexed: true;
319
63
  readonly name: "prevOwner";
320
64
  readonly type: "address";
321
- }, {
322
65
  readonly indexed: true;
66
+ }, {
323
67
  readonly name: "newOwner";
324
68
  readonly type: "address";
69
+ readonly indexed: true;
325
70
  }, {
326
- readonly indexed: false;
327
71
  readonly name: "initiatedBlock";
328
72
  readonly type: "uint256";
329
- }, {
330
73
  readonly indexed: false;
74
+ }, {
331
75
  readonly name: "confirmBlock";
332
76
  readonly type: "uint256";
77
+ readonly indexed: false;
333
78
  }];
334
- readonly name: "OwnershipChangeConfirmed";
79
+ readonly anonymous: false;
335
80
  readonly type: "event";
336
81
  }, {
337
- readonly anonymous: false;
82
+ readonly name: "OwnershipChangeCancelled";
338
83
  readonly inputs: readonly [{
339
- readonly indexed: true;
340
84
  readonly name: "cancelledOwner";
341
85
  readonly type: "address";
342
- }, {
343
86
  readonly indexed: true;
87
+ }, {
344
88
  readonly name: "cancelledBy";
345
89
  readonly type: "address";
90
+ readonly indexed: true;
346
91
  }, {
347
- readonly indexed: false;
348
92
  readonly name: "initiatedBlock";
349
93
  readonly type: "uint256";
350
- }, {
351
94
  readonly indexed: false;
95
+ }, {
352
96
  readonly name: "confirmBlock";
353
97
  readonly type: "uint256";
98
+ readonly indexed: false;
354
99
  }];
355
- readonly name: "OwnershipChangeCancelled";
100
+ readonly anonymous: false;
356
101
  readonly type: "event";
357
102
  }, {
358
- readonly anonymous: false;
103
+ readonly name: "OwnershipTimeLockSet";
359
104
  readonly inputs: readonly [{
360
- readonly indexed: false;
361
- readonly name: "delayBlocks";
105
+ readonly name: "numBlocks";
362
106
  readonly type: "uint256";
107
+ readonly indexed: false;
363
108
  }];
364
- readonly name: "OwnershipChangeDelaySet";
109
+ readonly anonymous: false;
365
110
  readonly type: "event";
366
111
  }, {
367
- readonly inputs: readonly [];
368
- readonly name: "hasPendingOwnerChange";
369
- readonly outputs: readonly [{
370
- readonly name: "";
371
- readonly type: "bool";
372
- }];
373
- readonly stateMutability: "view";
112
+ readonly stateMutability: "nonpayable";
374
113
  readonly type: "function";
375
- }, {
114
+ readonly name: "changeOwnership";
376
115
  readonly inputs: readonly [{
377
116
  readonly name: "_newOwner";
378
117
  readonly type: "address";
379
118
  }];
380
- readonly name: "changeOwnership";
381
119
  readonly outputs: readonly [];
120
+ }, {
382
121
  readonly stateMutability: "nonpayable";
383
122
  readonly type: "function";
384
- }, {
385
- readonly inputs: readonly [];
386
123
  readonly name: "confirmOwnershipChange";
124
+ readonly inputs: readonly [];
387
125
  readonly outputs: readonly [];
126
+ }, {
388
127
  readonly stateMutability: "nonpayable";
389
128
  readonly type: "function";
390
- }, {
391
- readonly inputs: readonly [];
392
129
  readonly name: "cancelOwnershipChange";
130
+ readonly inputs: readonly [];
393
131
  readonly outputs: readonly [];
394
- readonly stateMutability: "nonpayable";
132
+ }, {
133
+ readonly stateMutability: "view";
395
134
  readonly type: "function";
135
+ readonly name: "hasPendingOwnerChange";
136
+ readonly inputs: readonly [];
137
+ readonly outputs: readonly [{
138
+ readonly name: "";
139
+ readonly type: "bool";
140
+ }];
396
141
  }, {
142
+ readonly stateMutability: "nonpayable";
143
+ readonly type: "function";
144
+ readonly name: "setOwnershipTimeLock";
397
145
  readonly inputs: readonly [{
398
146
  readonly name: "_numBlocks";
399
147
  readonly type: "uint256";
400
148
  }];
401
- readonly name: "setOwnershipChangeDelay";
402
149
  readonly outputs: readonly [];
403
- readonly stateMutability: "nonpayable";
404
- readonly type: "function";
405
150
  }, {
406
- readonly inputs: readonly [];
151
+ readonly stateMutability: "view";
152
+ readonly type: "function";
407
153
  readonly name: "owner";
154
+ readonly inputs: readonly [];
408
155
  readonly outputs: readonly [{
409
156
  readonly name: "";
410
157
  readonly type: "address";
411
158
  }];
159
+ }, {
412
160
  readonly stateMutability: "view";
413
161
  readonly type: "function";
414
- }, {
162
+ readonly name: "ownershipTimeLock";
415
163
  readonly inputs: readonly [];
164
+ readonly outputs: readonly [{
165
+ readonly name: "";
166
+ readonly type: "uint256";
167
+ }];
168
+ }, {
169
+ readonly stateMutability: "view";
170
+ readonly type: "function";
416
171
  readonly name: "pendingOwner";
172
+ readonly inputs: readonly [];
417
173
  readonly outputs: readonly [{
174
+ readonly name: "";
175
+ readonly type: "tuple";
418
176
  readonly components: readonly [{
419
177
  readonly name: "newOwner";
420
178
  readonly type: "address";
@@ -425,178 +183,125 @@ export declare const abi: readonly [{
425
183
  readonly name: "confirmBlock";
426
184
  readonly type: "uint256";
427
185
  }];
428
- readonly name: "";
429
- readonly type: "tuple";
430
186
  }];
431
- readonly stateMutability: "view";
432
- readonly type: "function";
433
187
  }, {
434
- readonly inputs: readonly [];
435
- readonly name: "ownershipChangeDelay";
436
- readonly outputs: readonly [{
437
- readonly name: "";
438
- readonly type: "uint256";
439
- }];
440
188
  readonly stateMutability: "view";
441
189
  readonly type: "function";
442
- }, {
190
+ readonly name: "MIN_OWNERSHIP_TIMELOCK";
443
191
  readonly inputs: readonly [];
444
- readonly name: "MIN_OWNER_CHANGE_DELAY";
445
192
  readonly outputs: readonly [{
446
193
  readonly name: "";
447
194
  readonly type: "uint256";
448
195
  }];
196
+ }, {
449
197
  readonly stateMutability: "view";
450
198
  readonly type: "function";
451
- }, {
199
+ readonly name: "MAX_OWNERSHIP_TIMELOCK";
452
200
  readonly inputs: readonly [];
453
- readonly name: "MAX_OWNER_CHANGE_DELAY";
454
201
  readonly outputs: readonly [{
455
202
  readonly name: "";
456
203
  readonly type: "uint256";
457
204
  }];
458
- readonly stateMutability: "view";
459
- readonly type: "function";
460
205
  }, {
461
- readonly inputs: readonly [];
462
- readonly name: "_ADDY_REGISTRY";
463
- readonly outputs: readonly [{
464
- readonly name: "";
465
- readonly type: "address";
466
- }];
467
- readonly stateMutability: "view";
206
+ readonly stateMutability: "nonpayable";
468
207
  readonly type: "function";
469
- }, {
208
+ readonly name: "setWallet";
470
209
  readonly inputs: readonly [{
471
210
  readonly name: "_wallet";
472
211
  readonly type: "address";
473
212
  }];
474
- readonly name: "setWallet";
475
213
  readonly outputs: readonly [{
476
214
  readonly name: "";
477
215
  readonly type: "bool";
478
216
  }];
479
- readonly stateMutability: "nonpayable";
480
- readonly type: "function";
481
217
  }, {
482
- readonly inputs: readonly [];
218
+ readonly stateMutability: "pure";
219
+ readonly type: "function";
483
220
  readonly name: "apiVersion";
221
+ readonly inputs: readonly [];
484
222
  readonly outputs: readonly [{
485
223
  readonly name: "";
486
224
  readonly type: "string";
487
225
  }];
488
- readonly stateMutability: "pure";
489
- readonly type: "function";
490
226
  }, {
491
- readonly inputs: readonly [{
492
- readonly name: "_agent";
493
- readonly type: "address";
494
- }];
495
- readonly name: "isAgentActive";
496
- readonly outputs: readonly [{
497
- readonly name: "";
498
- readonly type: "bool";
499
- }];
500
227
  readonly stateMutability: "view";
501
228
  readonly type: "function";
502
- }, {
229
+ readonly name: "checkSignerPermissionsAndGetBundle";
503
230
  readonly inputs: readonly [{
504
- readonly name: "_agent";
231
+ readonly name: "_signer";
505
232
  readonly type: "address";
506
233
  }, {
507
234
  readonly name: "_action";
508
235
  readonly type: "uint256";
509
- }, {
510
- readonly name: "_assets";
511
- readonly type: "address[]";
512
- }, {
513
- readonly name: "_legoIds";
514
- readonly type: "uint256[]";
515
236
  }];
516
- readonly name: "canAgentAccess";
517
237
  readonly outputs: readonly [{
518
238
  readonly name: "";
519
- readonly type: "bool";
520
- }];
521
- readonly stateMutability: "view";
522
- readonly type: "function";
523
- }, {
524
- readonly inputs: readonly [{
525
- readonly name: "_agent";
526
- readonly type: "address";
527
- }];
528
- readonly name: "getAgentSubscriptionStatus";
529
- readonly outputs: readonly [{
239
+ readonly type: "tuple";
530
240
  readonly components: readonly [{
531
- readonly name: "recipient";
241
+ readonly name: "ledger";
532
242
  readonly type: "address";
533
243
  }, {
534
- readonly name: "asset";
244
+ readonly name: "missionControl";
535
245
  readonly type: "address";
536
246
  }, {
537
- readonly name: "amount";
538
- readonly type: "uint256";
247
+ readonly name: "legoBook";
248
+ readonly type: "address";
539
249
  }, {
540
- readonly name: "usdValue";
541
- readonly type: "uint256";
250
+ readonly name: "hatchery";
251
+ readonly type: "address";
542
252
  }, {
543
- readonly name: "paidThroughBlock";
544
- readonly type: "uint256";
253
+ readonly name: "lootDistributor";
254
+ readonly type: "address";
545
255
  }, {
546
- readonly name: "didChange";
547
- readonly type: "bool";
548
- }];
549
- readonly name: "";
550
- readonly type: "tuple";
551
- }];
552
- readonly stateMutability: "view";
553
- readonly type: "function";
554
- }, {
555
- readonly inputs: readonly [];
556
- readonly name: "getProtocolSubscriptionStatus";
557
- readonly outputs: readonly [{
558
- readonly components: readonly [{
559
- readonly name: "recipient";
256
+ readonly name: "appraiser";
560
257
  readonly type: "address";
561
258
  }, {
562
- readonly name: "asset";
259
+ readonly name: "billing";
563
260
  readonly type: "address";
564
261
  }, {
565
- readonly name: "amount";
566
- readonly type: "uint256";
262
+ readonly name: "wallet";
263
+ readonly type: "address";
567
264
  }, {
568
- readonly name: "usdValue";
569
- readonly type: "uint256";
265
+ readonly name: "walletConfig";
266
+ readonly type: "address";
267
+ }, {
268
+ readonly name: "walletOwner";
269
+ readonly type: "address";
570
270
  }, {
571
- readonly name: "paidThroughBlock";
271
+ readonly name: "inEjectMode";
272
+ readonly type: "bool";
273
+ }, {
274
+ readonly name: "isFrozen";
275
+ readonly type: "bool";
276
+ }, {
277
+ readonly name: "lastTotalUsdValue";
572
278
  readonly type: "uint256";
573
279
  }, {
574
- readonly name: "didChange";
280
+ readonly name: "signer";
281
+ readonly type: "address";
282
+ }, {
283
+ readonly name: "isManager";
575
284
  readonly type: "bool";
285
+ }, {
286
+ readonly name: "legoId";
287
+ readonly type: "uint256";
288
+ }, {
289
+ readonly name: "legoAddr";
290
+ readonly type: "address";
291
+ }, {
292
+ readonly name: "eth";
293
+ readonly type: "address";
294
+ }, {
295
+ readonly name: "weth";
296
+ readonly type: "address";
576
297
  }];
577
- readonly name: "";
578
- readonly type: "tuple";
579
298
  }];
580
- readonly stateMutability: "view";
581
- readonly type: "function";
582
299
  }, {
583
- readonly inputs: readonly [{
584
- readonly name: "_agent";
585
- readonly type: "address";
586
- }];
587
- readonly name: "canMakeSubscriptionPayments";
588
- readonly outputs: readonly [{
589
- readonly name: "";
590
- readonly type: "bool";
591
- }, {
592
- readonly name: "";
593
- readonly type: "bool";
594
- }];
595
300
  readonly stateMutability: "view";
596
301
  readonly type: "function";
597
- }, {
302
+ readonly name: "checkSignerPermissionsAndGetBundle";
598
303
  readonly inputs: readonly [{
599
- readonly name: "_agent";
304
+ readonly name: "_signer";
600
305
  readonly type: "address";
601
306
  }, {
602
307
  readonly name: "_action";
@@ -604,1146 +309,3212 @@ export declare const abi: readonly [{
604
309
  }, {
605
310
  readonly name: "_assets";
606
311
  readonly type: "address[]";
607
- }, {
608
- readonly name: "_legoIds";
609
- readonly type: "uint256[]";
610
- }, {
312
+ }];
313
+ readonly outputs: readonly [{
314
+ readonly name: "";
315
+ readonly type: "tuple";
611
316
  readonly components: readonly [{
612
- readonly name: "owner";
613
- readonly type: "address";
614
- }, {
615
- readonly name: "wallet";
317
+ readonly name: "ledger";
616
318
  readonly type: "address";
617
319
  }, {
618
- readonly name: "walletConfig";
320
+ readonly name: "missionControl";
619
321
  readonly type: "address";
620
322
  }, {
621
- readonly name: "addyRegistry";
323
+ readonly name: "legoBook";
622
324
  readonly type: "address";
623
325
  }, {
624
- readonly name: "agentFactory";
326
+ readonly name: "hatchery";
625
327
  readonly type: "address";
626
328
  }, {
627
- readonly name: "legoRegistry";
329
+ readonly name: "lootDistributor";
628
330
  readonly type: "address";
629
331
  }, {
630
- readonly name: "priceSheets";
332
+ readonly name: "appraiser";
631
333
  readonly type: "address";
632
334
  }, {
633
- readonly name: "oracleRegistry";
335
+ readonly name: "billing";
634
336
  readonly type: "address";
635
337
  }, {
636
- readonly name: "trialFundsAsset";
338
+ readonly name: "wallet";
637
339
  readonly type: "address";
638
340
  }, {
639
- readonly name: "trialFundsInitialAmount";
640
- readonly type: "uint256";
641
- }];
642
- readonly name: "_cd";
643
- readonly type: "tuple";
644
- }];
645
- readonly name: "handleSubscriptionsAndPermissions";
646
- readonly outputs: readonly [{
647
- readonly components: readonly [{
648
- readonly name: "recipient";
341
+ readonly name: "walletConfig";
649
342
  readonly type: "address";
650
343
  }, {
651
- readonly name: "asset";
344
+ readonly name: "walletOwner";
652
345
  readonly type: "address";
653
346
  }, {
654
- readonly name: "amount";
655
- readonly type: "uint256";
347
+ readonly name: "inEjectMode";
348
+ readonly type: "bool";
656
349
  }, {
657
- readonly name: "usdValue";
658
- readonly type: "uint256";
350
+ readonly name: "isFrozen";
351
+ readonly type: "bool";
659
352
  }, {
660
- readonly name: "paidThroughBlock";
353
+ readonly name: "lastTotalUsdValue";
661
354
  readonly type: "uint256";
662
355
  }, {
663
- readonly name: "didChange";
664
- readonly type: "bool";
665
- }];
666
- readonly name: "";
667
- readonly type: "tuple";
668
- }, {
669
- readonly components: readonly [{
670
- readonly name: "recipient";
356
+ readonly name: "signer";
671
357
  readonly type: "address";
672
358
  }, {
673
- readonly name: "asset";
674
- readonly type: "address";
359
+ readonly name: "isManager";
360
+ readonly type: "bool";
675
361
  }, {
676
- readonly name: "amount";
362
+ readonly name: "legoId";
677
363
  readonly type: "uint256";
678
364
  }, {
679
- readonly name: "usdValue";
680
- readonly type: "uint256";
365
+ readonly name: "legoAddr";
366
+ readonly type: "address";
681
367
  }, {
682
- readonly name: "paidThroughBlock";
683
- readonly type: "uint256";
368
+ readonly name: "eth";
369
+ readonly type: "address";
684
370
  }, {
685
- readonly name: "didChange";
686
- readonly type: "bool";
371
+ readonly name: "weth";
372
+ readonly type: "address";
687
373
  }];
688
- readonly name: "";
689
- readonly type: "tuple";
690
374
  }];
691
- readonly stateMutability: "nonpayable";
692
- readonly type: "function";
693
375
  }, {
694
- readonly inputs: readonly [{
695
- readonly name: "_asset";
696
- readonly type: "address";
697
- }, {
698
- readonly name: "_wantedAmount";
699
- readonly type: "uint256";
700
- }, {
701
- readonly name: "_shouldCheckTrialFunds";
702
- readonly type: "bool";
703
- }];
704
- readonly name: "getAvailableTxAmount";
705
- readonly outputs: readonly [{
706
- readonly name: "";
707
- readonly type: "uint256";
708
- }];
709
376
  readonly stateMutability: "view";
710
377
  readonly type: "function";
711
- }, {
378
+ readonly name: "checkSignerPermissionsAndGetBundle";
712
379
  readonly inputs: readonly [{
713
- readonly name: "_asset";
380
+ readonly name: "_signer";
714
381
  readonly type: "address";
715
382
  }, {
716
- readonly name: "_wantedAmount";
383
+ readonly name: "_action";
717
384
  readonly type: "uint256";
718
385
  }, {
719
- readonly name: "_shouldCheckTrialFunds";
720
- readonly type: "bool";
386
+ readonly name: "_assets";
387
+ readonly type: "address[]";
721
388
  }, {
389
+ readonly name: "_legoIds";
390
+ readonly type: "uint256[]";
391
+ }];
392
+ readonly outputs: readonly [{
393
+ readonly name: "";
394
+ readonly type: "tuple";
722
395
  readonly components: readonly [{
723
- readonly name: "owner";
396
+ readonly name: "ledger";
724
397
  readonly type: "address";
725
398
  }, {
726
- readonly name: "wallet";
399
+ readonly name: "missionControl";
727
400
  readonly type: "address";
728
401
  }, {
729
- readonly name: "walletConfig";
402
+ readonly name: "legoBook";
403
+ readonly type: "address";
404
+ }, {
405
+ readonly name: "hatchery";
406
+ readonly type: "address";
407
+ }, {
408
+ readonly name: "lootDistributor";
730
409
  readonly type: "address";
731
410
  }, {
732
- readonly name: "addyRegistry";
411
+ readonly name: "appraiser";
733
412
  readonly type: "address";
734
413
  }, {
735
- readonly name: "agentFactory";
414
+ readonly name: "billing";
736
415
  readonly type: "address";
737
416
  }, {
738
- readonly name: "legoRegistry";
417
+ readonly name: "wallet";
739
418
  readonly type: "address";
740
419
  }, {
741
- readonly name: "priceSheets";
420
+ readonly name: "walletConfig";
742
421
  readonly type: "address";
743
422
  }, {
744
- readonly name: "oracleRegistry";
423
+ readonly name: "walletOwner";
745
424
  readonly type: "address";
746
425
  }, {
747
- readonly name: "trialFundsAsset";
426
+ readonly name: "inEjectMode";
427
+ readonly type: "bool";
428
+ }, {
429
+ readonly name: "isFrozen";
430
+ readonly type: "bool";
431
+ }, {
432
+ readonly name: "lastTotalUsdValue";
433
+ readonly type: "uint256";
434
+ }, {
435
+ readonly name: "signer";
748
436
  readonly type: "address";
749
437
  }, {
750
- readonly name: "trialFundsInitialAmount";
438
+ readonly name: "isManager";
439
+ readonly type: "bool";
440
+ }, {
441
+ readonly name: "legoId";
751
442
  readonly type: "uint256";
443
+ }, {
444
+ readonly name: "legoAddr";
445
+ readonly type: "address";
446
+ }, {
447
+ readonly name: "eth";
448
+ readonly type: "address";
449
+ }, {
450
+ readonly name: "weth";
451
+ readonly type: "address";
752
452
  }];
753
- readonly name: "_cd";
754
- readonly type: "tuple";
755
- }];
756
- readonly name: "getAvailableTxAmount";
757
- readonly outputs: readonly [{
758
- readonly name: "";
759
- readonly type: "uint256";
760
453
  }];
454
+ }, {
761
455
  readonly stateMutability: "view";
762
456
  readonly type: "function";
763
- }, {
457
+ readonly name: "checkSignerPermissionsAndGetBundle";
764
458
  readonly inputs: readonly [{
765
- readonly name: "_asset";
766
- readonly type: "address";
767
- }, {
768
- readonly name: "_vaultToken";
459
+ readonly name: "_signer";
769
460
  readonly type: "address";
770
461
  }, {
771
- readonly name: "_vaultTokenAmountReceived";
462
+ readonly name: "_action";
772
463
  readonly type: "uint256";
773
464
  }, {
774
- readonly name: "_assetAmountDeposited";
775
- readonly type: "uint256";
465
+ readonly name: "_assets";
466
+ readonly type: "address[]";
467
+ }, {
468
+ readonly name: "_legoIds";
469
+ readonly type: "uint256[]";
776
470
  }, {
777
- readonly name: "_legoRegistry";
471
+ readonly name: "_transferRecipient";
778
472
  readonly type: "address";
779
473
  }];
780
- readonly name: "updateYieldTrackingOnDeposit";
781
- readonly outputs: readonly [];
474
+ readonly outputs: readonly [{
475
+ readonly name: "";
476
+ readonly type: "tuple";
477
+ readonly components: readonly [{
478
+ readonly name: "ledger";
479
+ readonly type: "address";
480
+ }, {
481
+ readonly name: "missionControl";
482
+ readonly type: "address";
483
+ }, {
484
+ readonly name: "legoBook";
485
+ readonly type: "address";
486
+ }, {
487
+ readonly name: "hatchery";
488
+ readonly type: "address";
489
+ }, {
490
+ readonly name: "lootDistributor";
491
+ readonly type: "address";
492
+ }, {
493
+ readonly name: "appraiser";
494
+ readonly type: "address";
495
+ }, {
496
+ readonly name: "billing";
497
+ readonly type: "address";
498
+ }, {
499
+ readonly name: "wallet";
500
+ readonly type: "address";
501
+ }, {
502
+ readonly name: "walletConfig";
503
+ readonly type: "address";
504
+ }, {
505
+ readonly name: "walletOwner";
506
+ readonly type: "address";
507
+ }, {
508
+ readonly name: "inEjectMode";
509
+ readonly type: "bool";
510
+ }, {
511
+ readonly name: "isFrozen";
512
+ readonly type: "bool";
513
+ }, {
514
+ readonly name: "lastTotalUsdValue";
515
+ readonly type: "uint256";
516
+ }, {
517
+ readonly name: "signer";
518
+ readonly type: "address";
519
+ }, {
520
+ readonly name: "isManager";
521
+ readonly type: "bool";
522
+ }, {
523
+ readonly name: "legoId";
524
+ readonly type: "uint256";
525
+ }, {
526
+ readonly name: "legoAddr";
527
+ readonly type: "address";
528
+ }, {
529
+ readonly name: "eth";
530
+ readonly type: "address";
531
+ }, {
532
+ readonly name: "weth";
533
+ readonly type: "address";
534
+ }];
535
+ }];
536
+ }, {
782
537
  readonly stateMutability: "nonpayable";
783
538
  readonly type: "function";
784
- }, {
539
+ readonly name: "checkManagerUsdLimitsAndUpdateData";
785
540
  readonly inputs: readonly [{
786
- readonly name: "_vaultToken";
787
- readonly type: "address";
788
- }, {
789
- readonly name: "_vaultTokenAmountBurned";
790
- readonly type: "uint256";
791
- }, {
792
- readonly name: "_asset";
541
+ readonly name: "_manager";
793
542
  readonly type: "address";
794
543
  }, {
795
- readonly name: "_assetAmountReceived";
544
+ readonly name: "_txUsdValue";
796
545
  readonly type: "uint256";
797
- }, {
798
- readonly name: "_legoRegistry";
799
- readonly type: "address";
800
546
  }];
801
- readonly name: "updateYieldTrackingOnWithdrawal";
802
547
  readonly outputs: readonly [{
803
548
  readonly name: "";
804
- readonly type: "uint256";
549
+ readonly type: "bool";
805
550
  }];
551
+ }, {
806
552
  readonly stateMutability: "nonpayable";
807
553
  readonly type: "function";
808
- }, {
554
+ readonly name: "checkRecipientLimitsAndUpdateData";
809
555
  readonly inputs: readonly [{
810
- readonly name: "_tokenIn";
811
- readonly type: "address";
812
- }, {
813
- readonly name: "_tokenOut";
556
+ readonly name: "_recipient";
814
557
  readonly type: "address";
815
558
  }, {
816
- readonly name: "_tokenOutAmount";
559
+ readonly name: "_txUsdValue";
817
560
  readonly type: "uint256";
818
561
  }, {
819
- readonly name: "_legoRegistry";
820
- readonly type: "address";
821
- }];
822
- readonly name: "updateYieldTrackingOnSwap";
823
- readonly outputs: readonly [];
824
- readonly stateMutability: "nonpayable";
825
- readonly type: "function";
826
- }, {
827
- readonly inputs: readonly [{
828
562
  readonly name: "_asset";
829
563
  readonly type: "address";
830
564
  }, {
831
565
  readonly name: "_amount";
832
566
  readonly type: "uint256";
833
- }, {
834
- readonly name: "_legoRegistry";
835
- readonly type: "address";
836
- }];
837
- readonly name: "updateYieldTrackingOnEntry";
838
- readonly outputs: readonly [];
839
- readonly stateMutability: "nonpayable";
840
- readonly type: "function";
841
- }, {
842
- readonly inputs: readonly [{
843
- readonly name: "_asset";
844
- readonly type: "address";
845
- }, {
846
- readonly name: "_legoRegistry";
847
- readonly type: "address";
848
- }];
849
- readonly name: "updateYieldTrackingOnExit";
850
- readonly outputs: readonly [];
851
- readonly stateMutability: "nonpayable";
852
- readonly type: "function";
853
- }, {
854
- readonly inputs: readonly [{
855
- readonly name: "_newWallet";
856
- readonly type: "address";
857
567
  }];
858
- readonly name: "startMigrationOut";
859
568
  readonly outputs: readonly [{
860
569
  readonly name: "";
861
570
  readonly type: "bool";
862
571
  }];
572
+ }, {
863
573
  readonly stateMutability: "nonpayable";
864
574
  readonly type: "function";
865
- }, {
575
+ readonly name: "validateCheque";
866
576
  readonly inputs: readonly [{
867
- readonly name: "_newWallet";
577
+ readonly name: "_recipient";
868
578
  readonly type: "address";
869
579
  }, {
870
- readonly name: "_assetsToMigrate";
871
- readonly type: "address[]";
580
+ readonly name: "_asset";
581
+ readonly type: "address";
582
+ }, {
583
+ readonly name: "_amount";
584
+ readonly type: "uint256";
585
+ }, {
586
+ readonly name: "_txUsdValue";
587
+ readonly type: "uint256";
588
+ }, {
589
+ readonly name: "_signer";
590
+ readonly type: "address";
872
591
  }];
873
- readonly name: "startMigrationOut";
874
592
  readonly outputs: readonly [{
875
593
  readonly name: "";
876
594
  readonly type: "bool";
877
595
  }];
596
+ }, {
878
597
  readonly stateMutability: "nonpayable";
879
598
  readonly type: "function";
880
- }, {
599
+ readonly name: "addPendingWhitelistAddr";
881
600
  readonly inputs: readonly [{
882
- readonly name: "_newWallet";
601
+ readonly name: "_addr";
883
602
  readonly type: "address";
884
603
  }, {
885
- readonly name: "_assetsToMigrate";
886
- readonly type: "address[]";
887
- }, {
888
- readonly name: "_whitelistToMigrate";
889
- readonly type: "address[]";
890
- }];
891
- readonly name: "startMigrationOut";
892
- readonly outputs: readonly [{
893
- readonly name: "";
894
- readonly type: "bool";
604
+ readonly name: "_pending";
605
+ readonly type: "tuple";
606
+ readonly components: readonly [{
607
+ readonly name: "initiatedBlock";
608
+ readonly type: "uint256";
609
+ }, {
610
+ readonly name: "confirmBlock";
611
+ readonly type: "uint256";
612
+ }, {
613
+ readonly name: "currentOwner";
614
+ readonly type: "address";
615
+ }];
895
616
  }];
617
+ readonly outputs: readonly [];
618
+ }, {
896
619
  readonly stateMutability: "nonpayable";
897
620
  readonly type: "function";
898
- }, {
621
+ readonly name: "cancelPendingWhitelistAddr";
899
622
  readonly inputs: readonly [{
900
- readonly name: "_whitelistToMigrate";
901
- readonly type: "address[]";
902
- }, {
903
- readonly name: "_assetsMigrated";
904
- readonly type: "address[]";
905
- }, {
906
- readonly name: "_vaultTokensMigrated";
907
- readonly type: "address[]";
908
- }];
909
- readonly name: "finishMigrationIn";
910
- readonly outputs: readonly [{
911
- readonly name: "";
912
- readonly type: "bool";
623
+ readonly name: "_addr";
624
+ readonly type: "address";
913
625
  }];
626
+ readonly outputs: readonly [];
627
+ }, {
914
628
  readonly stateMutability: "nonpayable";
915
629
  readonly type: "function";
916
- }, {
630
+ readonly name: "confirmWhitelistAddr";
917
631
  readonly inputs: readonly [{
918
- readonly name: "_agent";
632
+ readonly name: "_addr";
919
633
  readonly type: "address";
920
634
  }];
921
- readonly name: "addOrModifyAgent";
922
- readonly outputs: readonly [{
923
- readonly name: "";
924
- readonly type: "bool";
925
- }];
635
+ readonly outputs: readonly [];
636
+ }, {
926
637
  readonly stateMutability: "nonpayable";
927
638
  readonly type: "function";
928
- }, {
639
+ readonly name: "addWhitelistAddrViaMigrator";
929
640
  readonly inputs: readonly [{
930
- readonly name: "_agent";
641
+ readonly name: "_addr";
931
642
  readonly type: "address";
932
- }, {
933
- readonly name: "_allowedAssets";
934
- readonly type: "address[]";
935
- }];
936
- readonly name: "addOrModifyAgent";
937
- readonly outputs: readonly [{
938
- readonly name: "";
939
- readonly type: "bool";
940
643
  }];
644
+ readonly outputs: readonly [];
645
+ }, {
941
646
  readonly stateMutability: "nonpayable";
942
647
  readonly type: "function";
943
- }, {
648
+ readonly name: "removeWhitelistAddr";
944
649
  readonly inputs: readonly [{
945
- readonly name: "_agent";
650
+ readonly name: "_addr";
946
651
  readonly type: "address";
947
- }, {
948
- readonly name: "_allowedAssets";
949
- readonly type: "address[]";
950
- }, {
951
- readonly name: "_allowedLegoIds";
952
- readonly type: "uint256[]";
953
- }];
954
- readonly name: "addOrModifyAgent";
955
- readonly outputs: readonly [{
956
- readonly name: "";
957
- readonly type: "bool";
958
652
  }];
653
+ readonly outputs: readonly [];
654
+ }, {
959
655
  readonly stateMutability: "nonpayable";
960
656
  readonly type: "function";
961
- }, {
657
+ readonly name: "addManager";
962
658
  readonly inputs: readonly [{
963
- readonly name: "_agent";
659
+ readonly name: "_manager";
964
660
  readonly type: "address";
965
661
  }, {
966
- readonly name: "_allowedAssets";
967
- readonly type: "address[]";
968
- }, {
969
- readonly name: "_allowedLegoIds";
970
- readonly type: "uint256[]";
971
- }, {
662
+ readonly name: "_config";
663
+ readonly type: "tuple";
972
664
  readonly components: readonly [{
973
- readonly name: "isSet";
974
- readonly type: "bool";
975
- }, {
976
- readonly name: "canDeposit";
977
- readonly type: "bool";
978
- }, {
979
- readonly name: "canWithdraw";
980
- readonly type: "bool";
981
- }, {
982
- readonly name: "canRebalance";
983
- readonly type: "bool";
984
- }, {
985
- readonly name: "canTransfer";
986
- readonly type: "bool";
665
+ readonly name: "startBlock";
666
+ readonly type: "uint256";
987
667
  }, {
988
- readonly name: "canSwap";
989
- readonly type: "bool";
668
+ readonly name: "expiryBlock";
669
+ readonly type: "uint256";
990
670
  }, {
991
- readonly name: "canConvert";
992
- readonly type: "bool";
671
+ readonly name: "limits";
672
+ readonly type: "tuple";
673
+ readonly components: readonly [{
674
+ readonly name: "maxUsdValuePerTx";
675
+ readonly type: "uint256";
676
+ }, {
677
+ readonly name: "maxUsdValuePerPeriod";
678
+ readonly type: "uint256";
679
+ }, {
680
+ readonly name: "maxUsdValueLifetime";
681
+ readonly type: "uint256";
682
+ }, {
683
+ readonly name: "maxNumTxsPerPeriod";
684
+ readonly type: "uint256";
685
+ }, {
686
+ readonly name: "txCooldownBlocks";
687
+ readonly type: "uint256";
688
+ }, {
689
+ readonly name: "failOnZeroPrice";
690
+ readonly type: "bool";
691
+ }];
993
692
  }, {
994
- readonly name: "canAddLiq";
995
- readonly type: "bool";
693
+ readonly name: "legoPerms";
694
+ readonly type: "tuple";
695
+ readonly components: readonly [{
696
+ readonly name: "canManageYield";
697
+ readonly type: "bool";
698
+ }, {
699
+ readonly name: "canBuyAndSell";
700
+ readonly type: "bool";
701
+ }, {
702
+ readonly name: "canManageDebt";
703
+ readonly type: "bool";
704
+ }, {
705
+ readonly name: "canManageLiq";
706
+ readonly type: "bool";
707
+ }, {
708
+ readonly name: "canClaimRewards";
709
+ readonly type: "bool";
710
+ }, {
711
+ readonly name: "allowedLegos";
712
+ readonly type: "uint256[]";
713
+ }];
996
714
  }, {
997
- readonly name: "canRemoveLiq";
998
- readonly type: "bool";
715
+ readonly name: "whitelistPerms";
716
+ readonly type: "tuple";
717
+ readonly components: readonly [{
718
+ readonly name: "canAddPending";
719
+ readonly type: "bool";
720
+ }, {
721
+ readonly name: "canConfirm";
722
+ readonly type: "bool";
723
+ }, {
724
+ readonly name: "canCancel";
725
+ readonly type: "bool";
726
+ }, {
727
+ readonly name: "canRemove";
728
+ readonly type: "bool";
729
+ }];
999
730
  }, {
1000
- readonly name: "canClaimRewards";
1001
- readonly type: "bool";
731
+ readonly name: "transferPerms";
732
+ readonly type: "tuple";
733
+ readonly components: readonly [{
734
+ readonly name: "canTransfer";
735
+ readonly type: "bool";
736
+ }, {
737
+ readonly name: "canCreateCheque";
738
+ readonly type: "bool";
739
+ }, {
740
+ readonly name: "canAddPendingPayee";
741
+ readonly type: "bool";
742
+ }, {
743
+ readonly name: "allowedPayees";
744
+ readonly type: "address[]";
745
+ }];
1002
746
  }, {
1003
- readonly name: "canBorrow";
1004
- readonly type: "bool";
747
+ readonly name: "allowedAssets";
748
+ readonly type: "address[]";
1005
749
  }, {
1006
- readonly name: "canRepay";
750
+ readonly name: "canClaimLoot";
1007
751
  readonly type: "bool";
1008
752
  }];
1009
- readonly name: "_allowedActions";
1010
- readonly type: "tuple";
1011
- }];
1012
- readonly name: "addOrModifyAgent";
1013
- readonly outputs: readonly [{
1014
- readonly name: "";
1015
- readonly type: "bool";
1016
753
  }];
754
+ readonly outputs: readonly [];
755
+ }, {
1017
756
  readonly stateMutability: "nonpayable";
1018
757
  readonly type: "function";
1019
- }, {
758
+ readonly name: "updateManager";
1020
759
  readonly inputs: readonly [{
1021
- readonly name: "_agent";
760
+ readonly name: "_manager";
1022
761
  readonly type: "address";
762
+ }, {
763
+ readonly name: "_config";
764
+ readonly type: "tuple";
765
+ readonly components: readonly [{
766
+ readonly name: "startBlock";
767
+ readonly type: "uint256";
768
+ }, {
769
+ readonly name: "expiryBlock";
770
+ readonly type: "uint256";
771
+ }, {
772
+ readonly name: "limits";
773
+ readonly type: "tuple";
774
+ readonly components: readonly [{
775
+ readonly name: "maxUsdValuePerTx";
776
+ readonly type: "uint256";
777
+ }, {
778
+ readonly name: "maxUsdValuePerPeriod";
779
+ readonly type: "uint256";
780
+ }, {
781
+ readonly name: "maxUsdValueLifetime";
782
+ readonly type: "uint256";
783
+ }, {
784
+ readonly name: "maxNumTxsPerPeriod";
785
+ readonly type: "uint256";
786
+ }, {
787
+ readonly name: "txCooldownBlocks";
788
+ readonly type: "uint256";
789
+ }, {
790
+ readonly name: "failOnZeroPrice";
791
+ readonly type: "bool";
792
+ }];
793
+ }, {
794
+ readonly name: "legoPerms";
795
+ readonly type: "tuple";
796
+ readonly components: readonly [{
797
+ readonly name: "canManageYield";
798
+ readonly type: "bool";
799
+ }, {
800
+ readonly name: "canBuyAndSell";
801
+ readonly type: "bool";
802
+ }, {
803
+ readonly name: "canManageDebt";
804
+ readonly type: "bool";
805
+ }, {
806
+ readonly name: "canManageLiq";
807
+ readonly type: "bool";
808
+ }, {
809
+ readonly name: "canClaimRewards";
810
+ readonly type: "bool";
811
+ }, {
812
+ readonly name: "allowedLegos";
813
+ readonly type: "uint256[]";
814
+ }];
815
+ }, {
816
+ readonly name: "whitelistPerms";
817
+ readonly type: "tuple";
818
+ readonly components: readonly [{
819
+ readonly name: "canAddPending";
820
+ readonly type: "bool";
821
+ }, {
822
+ readonly name: "canConfirm";
823
+ readonly type: "bool";
824
+ }, {
825
+ readonly name: "canCancel";
826
+ readonly type: "bool";
827
+ }, {
828
+ readonly name: "canRemove";
829
+ readonly type: "bool";
830
+ }];
831
+ }, {
832
+ readonly name: "transferPerms";
833
+ readonly type: "tuple";
834
+ readonly components: readonly [{
835
+ readonly name: "canTransfer";
836
+ readonly type: "bool";
837
+ }, {
838
+ readonly name: "canCreateCheque";
839
+ readonly type: "bool";
840
+ }, {
841
+ readonly name: "canAddPendingPayee";
842
+ readonly type: "bool";
843
+ }, {
844
+ readonly name: "allowedPayees";
845
+ readonly type: "address[]";
846
+ }];
847
+ }, {
848
+ readonly name: "allowedAssets";
849
+ readonly type: "address[]";
850
+ }, {
851
+ readonly name: "canClaimLoot";
852
+ readonly type: "bool";
853
+ }];
854
+ }];
855
+ readonly outputs: readonly [];
856
+ }, {
857
+ readonly stateMutability: "nonpayable";
858
+ readonly type: "function";
859
+ readonly name: "removeManager";
860
+ readonly inputs: readonly [{
861
+ readonly name: "_manager";
862
+ readonly type: "address";
863
+ }];
864
+ readonly outputs: readonly [];
865
+ }, {
866
+ readonly stateMutability: "nonpayable";
867
+ readonly type: "function";
868
+ readonly name: "setGlobalManagerSettings";
869
+ readonly inputs: readonly [{
870
+ readonly name: "_config";
871
+ readonly type: "tuple";
872
+ readonly components: readonly [{
873
+ readonly name: "managerPeriod";
874
+ readonly type: "uint256";
875
+ }, {
876
+ readonly name: "startDelay";
877
+ readonly type: "uint256";
878
+ }, {
879
+ readonly name: "activationLength";
880
+ readonly type: "uint256";
881
+ }, {
882
+ readonly name: "canOwnerManage";
883
+ readonly type: "bool";
884
+ }, {
885
+ readonly name: "limits";
886
+ readonly type: "tuple";
887
+ readonly components: readonly [{
888
+ readonly name: "maxUsdValuePerTx";
889
+ readonly type: "uint256";
890
+ }, {
891
+ readonly name: "maxUsdValuePerPeriod";
892
+ readonly type: "uint256";
893
+ }, {
894
+ readonly name: "maxUsdValueLifetime";
895
+ readonly type: "uint256";
896
+ }, {
897
+ readonly name: "maxNumTxsPerPeriod";
898
+ readonly type: "uint256";
899
+ }, {
900
+ readonly name: "txCooldownBlocks";
901
+ readonly type: "uint256";
902
+ }, {
903
+ readonly name: "failOnZeroPrice";
904
+ readonly type: "bool";
905
+ }];
906
+ }, {
907
+ readonly name: "legoPerms";
908
+ readonly type: "tuple";
909
+ readonly components: readonly [{
910
+ readonly name: "canManageYield";
911
+ readonly type: "bool";
912
+ }, {
913
+ readonly name: "canBuyAndSell";
914
+ readonly type: "bool";
915
+ }, {
916
+ readonly name: "canManageDebt";
917
+ readonly type: "bool";
918
+ }, {
919
+ readonly name: "canManageLiq";
920
+ readonly type: "bool";
921
+ }, {
922
+ readonly name: "canClaimRewards";
923
+ readonly type: "bool";
924
+ }, {
925
+ readonly name: "allowedLegos";
926
+ readonly type: "uint256[]";
927
+ }];
928
+ }, {
929
+ readonly name: "whitelistPerms";
930
+ readonly type: "tuple";
931
+ readonly components: readonly [{
932
+ readonly name: "canAddPending";
933
+ readonly type: "bool";
934
+ }, {
935
+ readonly name: "canConfirm";
936
+ readonly type: "bool";
937
+ }, {
938
+ readonly name: "canCancel";
939
+ readonly type: "bool";
940
+ }, {
941
+ readonly name: "canRemove";
942
+ readonly type: "bool";
943
+ }];
944
+ }, {
945
+ readonly name: "transferPerms";
946
+ readonly type: "tuple";
947
+ readonly components: readonly [{
948
+ readonly name: "canTransfer";
949
+ readonly type: "bool";
950
+ }, {
951
+ readonly name: "canCreateCheque";
952
+ readonly type: "bool";
953
+ }, {
954
+ readonly name: "canAddPendingPayee";
955
+ readonly type: "bool";
956
+ }, {
957
+ readonly name: "allowedPayees";
958
+ readonly type: "address[]";
959
+ }];
960
+ }, {
961
+ readonly name: "allowedAssets";
962
+ readonly type: "address[]";
963
+ }];
964
+ }];
965
+ readonly outputs: readonly [];
966
+ }, {
967
+ readonly stateMutability: "nonpayable";
968
+ readonly type: "function";
969
+ readonly name: "addPayee";
970
+ readonly inputs: readonly [{
971
+ readonly name: "_payee";
972
+ readonly type: "address";
973
+ }, {
974
+ readonly name: "_config";
975
+ readonly type: "tuple";
976
+ readonly components: readonly [{
977
+ readonly name: "startBlock";
978
+ readonly type: "uint256";
979
+ }, {
980
+ readonly name: "expiryBlock";
981
+ readonly type: "uint256";
982
+ }, {
983
+ readonly name: "canPull";
984
+ readonly type: "bool";
985
+ }, {
986
+ readonly name: "periodLength";
987
+ readonly type: "uint256";
988
+ }, {
989
+ readonly name: "maxNumTxsPerPeriod";
990
+ readonly type: "uint256";
991
+ }, {
992
+ readonly name: "txCooldownBlocks";
993
+ readonly type: "uint256";
994
+ }, {
995
+ readonly name: "failOnZeroPrice";
996
+ readonly type: "bool";
997
+ }, {
998
+ readonly name: "primaryAsset";
999
+ readonly type: "address";
1000
+ }, {
1001
+ readonly name: "onlyPrimaryAsset";
1002
+ readonly type: "bool";
1003
+ }, {
1004
+ readonly name: "unitLimits";
1005
+ readonly type: "tuple";
1006
+ readonly components: readonly [{
1007
+ readonly name: "perTxCap";
1008
+ readonly type: "uint256";
1009
+ }, {
1010
+ readonly name: "perPeriodCap";
1011
+ readonly type: "uint256";
1012
+ }, {
1013
+ readonly name: "lifetimeCap";
1014
+ readonly type: "uint256";
1015
+ }];
1016
+ }, {
1017
+ readonly name: "usdLimits";
1018
+ readonly type: "tuple";
1019
+ readonly components: readonly [{
1020
+ readonly name: "perTxCap";
1021
+ readonly type: "uint256";
1022
+ }, {
1023
+ readonly name: "perPeriodCap";
1024
+ readonly type: "uint256";
1025
+ }, {
1026
+ readonly name: "lifetimeCap";
1027
+ readonly type: "uint256";
1028
+ }];
1029
+ }];
1030
+ }];
1031
+ readonly outputs: readonly [];
1032
+ }, {
1033
+ readonly stateMutability: "nonpayable";
1034
+ readonly type: "function";
1035
+ readonly name: "updatePayee";
1036
+ readonly inputs: readonly [{
1037
+ readonly name: "_payee";
1038
+ readonly type: "address";
1039
+ }, {
1040
+ readonly name: "_config";
1041
+ readonly type: "tuple";
1042
+ readonly components: readonly [{
1043
+ readonly name: "startBlock";
1044
+ readonly type: "uint256";
1045
+ }, {
1046
+ readonly name: "expiryBlock";
1047
+ readonly type: "uint256";
1048
+ }, {
1049
+ readonly name: "canPull";
1050
+ readonly type: "bool";
1051
+ }, {
1052
+ readonly name: "periodLength";
1053
+ readonly type: "uint256";
1054
+ }, {
1055
+ readonly name: "maxNumTxsPerPeriod";
1056
+ readonly type: "uint256";
1057
+ }, {
1058
+ readonly name: "txCooldownBlocks";
1059
+ readonly type: "uint256";
1060
+ }, {
1061
+ readonly name: "failOnZeroPrice";
1062
+ readonly type: "bool";
1063
+ }, {
1064
+ readonly name: "primaryAsset";
1065
+ readonly type: "address";
1066
+ }, {
1067
+ readonly name: "onlyPrimaryAsset";
1068
+ readonly type: "bool";
1069
+ }, {
1070
+ readonly name: "unitLimits";
1071
+ readonly type: "tuple";
1072
+ readonly components: readonly [{
1073
+ readonly name: "perTxCap";
1074
+ readonly type: "uint256";
1075
+ }, {
1076
+ readonly name: "perPeriodCap";
1077
+ readonly type: "uint256";
1078
+ }, {
1079
+ readonly name: "lifetimeCap";
1080
+ readonly type: "uint256";
1081
+ }];
1082
+ }, {
1083
+ readonly name: "usdLimits";
1084
+ readonly type: "tuple";
1085
+ readonly components: readonly [{
1086
+ readonly name: "perTxCap";
1087
+ readonly type: "uint256";
1088
+ }, {
1089
+ readonly name: "perPeriodCap";
1090
+ readonly type: "uint256";
1091
+ }, {
1092
+ readonly name: "lifetimeCap";
1093
+ readonly type: "uint256";
1094
+ }];
1095
+ }];
1096
+ }];
1097
+ readonly outputs: readonly [];
1098
+ }, {
1099
+ readonly stateMutability: "nonpayable";
1100
+ readonly type: "function";
1101
+ readonly name: "removePayee";
1102
+ readonly inputs: readonly [{
1103
+ readonly name: "_payee";
1104
+ readonly type: "address";
1105
+ }];
1106
+ readonly outputs: readonly [];
1107
+ }, {
1108
+ readonly stateMutability: "nonpayable";
1109
+ readonly type: "function";
1110
+ readonly name: "setGlobalPayeeSettings";
1111
+ readonly inputs: readonly [{
1112
+ readonly name: "_config";
1113
+ readonly type: "tuple";
1114
+ readonly components: readonly [{
1115
+ readonly name: "defaultPeriodLength";
1116
+ readonly type: "uint256";
1117
+ }, {
1118
+ readonly name: "startDelay";
1119
+ readonly type: "uint256";
1120
+ }, {
1121
+ readonly name: "activationLength";
1122
+ readonly type: "uint256";
1123
+ }, {
1124
+ readonly name: "maxNumTxsPerPeriod";
1125
+ readonly type: "uint256";
1126
+ }, {
1127
+ readonly name: "txCooldownBlocks";
1128
+ readonly type: "uint256";
1129
+ }, {
1130
+ readonly name: "failOnZeroPrice";
1131
+ readonly type: "bool";
1132
+ }, {
1133
+ readonly name: "usdLimits";
1134
+ readonly type: "tuple";
1135
+ readonly components: readonly [{
1136
+ readonly name: "perTxCap";
1137
+ readonly type: "uint256";
1138
+ }, {
1139
+ readonly name: "perPeriodCap";
1140
+ readonly type: "uint256";
1141
+ }, {
1142
+ readonly name: "lifetimeCap";
1143
+ readonly type: "uint256";
1144
+ }];
1145
+ }, {
1146
+ readonly name: "canPayOwner";
1147
+ readonly type: "bool";
1148
+ }, {
1149
+ readonly name: "canPull";
1150
+ readonly type: "bool";
1151
+ }];
1152
+ }];
1153
+ readonly outputs: readonly [];
1154
+ }, {
1155
+ readonly stateMutability: "nonpayable";
1156
+ readonly type: "function";
1157
+ readonly name: "addPendingPayee";
1158
+ readonly inputs: readonly [{
1159
+ readonly name: "_payee";
1160
+ readonly type: "address";
1161
+ }, {
1162
+ readonly name: "_pending";
1163
+ readonly type: "tuple";
1164
+ readonly components: readonly [{
1165
+ readonly name: "settings";
1166
+ readonly type: "tuple";
1167
+ readonly components: readonly [{
1168
+ readonly name: "startBlock";
1169
+ readonly type: "uint256";
1170
+ }, {
1171
+ readonly name: "expiryBlock";
1172
+ readonly type: "uint256";
1173
+ }, {
1174
+ readonly name: "canPull";
1175
+ readonly type: "bool";
1176
+ }, {
1177
+ readonly name: "periodLength";
1178
+ readonly type: "uint256";
1179
+ }, {
1180
+ readonly name: "maxNumTxsPerPeriod";
1181
+ readonly type: "uint256";
1182
+ }, {
1183
+ readonly name: "txCooldownBlocks";
1184
+ readonly type: "uint256";
1185
+ }, {
1186
+ readonly name: "failOnZeroPrice";
1187
+ readonly type: "bool";
1188
+ }, {
1189
+ readonly name: "primaryAsset";
1190
+ readonly type: "address";
1191
+ }, {
1192
+ readonly name: "onlyPrimaryAsset";
1193
+ readonly type: "bool";
1194
+ }, {
1195
+ readonly name: "unitLimits";
1196
+ readonly type: "tuple";
1197
+ readonly components: readonly [{
1198
+ readonly name: "perTxCap";
1199
+ readonly type: "uint256";
1200
+ }, {
1201
+ readonly name: "perPeriodCap";
1202
+ readonly type: "uint256";
1203
+ }, {
1204
+ readonly name: "lifetimeCap";
1205
+ readonly type: "uint256";
1206
+ }];
1207
+ }, {
1208
+ readonly name: "usdLimits";
1209
+ readonly type: "tuple";
1210
+ readonly components: readonly [{
1211
+ readonly name: "perTxCap";
1212
+ readonly type: "uint256";
1213
+ }, {
1214
+ readonly name: "perPeriodCap";
1215
+ readonly type: "uint256";
1216
+ }, {
1217
+ readonly name: "lifetimeCap";
1218
+ readonly type: "uint256";
1219
+ }];
1220
+ }];
1221
+ }, {
1222
+ readonly name: "initiatedBlock";
1223
+ readonly type: "uint256";
1224
+ }, {
1225
+ readonly name: "confirmBlock";
1226
+ readonly type: "uint256";
1227
+ }, {
1228
+ readonly name: "currentOwner";
1229
+ readonly type: "address";
1230
+ }];
1231
+ }];
1232
+ readonly outputs: readonly [];
1233
+ }, {
1234
+ readonly stateMutability: "nonpayable";
1235
+ readonly type: "function";
1236
+ readonly name: "confirmPendingPayee";
1237
+ readonly inputs: readonly [{
1238
+ readonly name: "_payee";
1239
+ readonly type: "address";
1240
+ }];
1241
+ readonly outputs: readonly [];
1242
+ }, {
1243
+ readonly stateMutability: "nonpayable";
1244
+ readonly type: "function";
1245
+ readonly name: "cancelPendingPayee";
1246
+ readonly inputs: readonly [{
1247
+ readonly name: "_payee";
1248
+ readonly type: "address";
1249
+ }];
1250
+ readonly outputs: readonly [];
1251
+ }, {
1252
+ readonly stateMutability: "nonpayable";
1253
+ readonly type: "function";
1254
+ readonly name: "createCheque";
1255
+ readonly inputs: readonly [{
1256
+ readonly name: "_recipient";
1257
+ readonly type: "address";
1258
+ }, {
1259
+ readonly name: "_cheque";
1260
+ readonly type: "tuple";
1261
+ readonly components: readonly [{
1262
+ readonly name: "recipient";
1263
+ readonly type: "address";
1264
+ }, {
1265
+ readonly name: "asset";
1266
+ readonly type: "address";
1267
+ }, {
1268
+ readonly name: "amount";
1269
+ readonly type: "uint256";
1270
+ }, {
1271
+ readonly name: "creationBlock";
1272
+ readonly type: "uint256";
1273
+ }, {
1274
+ readonly name: "unlockBlock";
1275
+ readonly type: "uint256";
1276
+ }, {
1277
+ readonly name: "expiryBlock";
1278
+ readonly type: "uint256";
1279
+ }, {
1280
+ readonly name: "usdValueOnCreation";
1281
+ readonly type: "uint256";
1282
+ }, {
1283
+ readonly name: "canManagerPay";
1284
+ readonly type: "bool";
1285
+ }, {
1286
+ readonly name: "canBePulled";
1287
+ readonly type: "bool";
1288
+ }, {
1289
+ readonly name: "creator";
1290
+ readonly type: "address";
1291
+ }, {
1292
+ readonly name: "active";
1293
+ readonly type: "bool";
1294
+ }];
1295
+ }, {
1296
+ readonly name: "_chequeData";
1297
+ readonly type: "tuple";
1298
+ readonly components: readonly [{
1299
+ readonly name: "numChequesPaidInPeriod";
1300
+ readonly type: "uint256";
1301
+ }, {
1302
+ readonly name: "totalUsdValuePaidInPeriod";
1303
+ readonly type: "uint256";
1304
+ }, {
1305
+ readonly name: "totalNumChequesPaid";
1306
+ readonly type: "uint256";
1307
+ }, {
1308
+ readonly name: "totalUsdValuePaid";
1309
+ readonly type: "uint256";
1310
+ }, {
1311
+ readonly name: "lastChequePaidBlock";
1312
+ readonly type: "uint256";
1313
+ }, {
1314
+ readonly name: "numChequesCreatedInPeriod";
1315
+ readonly type: "uint256";
1316
+ }, {
1317
+ readonly name: "totalUsdValueCreatedInPeriod";
1318
+ readonly type: "uint256";
1319
+ }, {
1320
+ readonly name: "totalNumChequesCreated";
1321
+ readonly type: "uint256";
1322
+ }, {
1323
+ readonly name: "totalUsdValueCreated";
1324
+ readonly type: "uint256";
1325
+ }, {
1326
+ readonly name: "lastChequeCreatedBlock";
1327
+ readonly type: "uint256";
1328
+ }, {
1329
+ readonly name: "periodStartBlock";
1330
+ readonly type: "uint256";
1331
+ }];
1332
+ }, {
1333
+ readonly name: "_isExistingCheque";
1334
+ readonly type: "bool";
1335
+ }];
1336
+ readonly outputs: readonly [];
1337
+ }, {
1338
+ readonly stateMutability: "nonpayable";
1339
+ readonly type: "function";
1340
+ readonly name: "cancelCheque";
1341
+ readonly inputs: readonly [{
1342
+ readonly name: "_recipient";
1343
+ readonly type: "address";
1344
+ }];
1345
+ readonly outputs: readonly [];
1346
+ }, {
1347
+ readonly stateMutability: "nonpayable";
1348
+ readonly type: "function";
1349
+ readonly name: "setChequeSettings";
1350
+ readonly inputs: readonly [{
1351
+ readonly name: "_config";
1352
+ readonly type: "tuple";
1353
+ readonly components: readonly [{
1354
+ readonly name: "maxNumActiveCheques";
1355
+ readonly type: "uint256";
1356
+ }, {
1357
+ readonly name: "maxChequeUsdValue";
1358
+ readonly type: "uint256";
1359
+ }, {
1360
+ readonly name: "instantUsdThreshold";
1361
+ readonly type: "uint256";
1362
+ }, {
1363
+ readonly name: "perPeriodPaidUsdCap";
1364
+ readonly type: "uint256";
1365
+ }, {
1366
+ readonly name: "maxNumChequesPaidPerPeriod";
1367
+ readonly type: "uint256";
1368
+ }, {
1369
+ readonly name: "payCooldownBlocks";
1370
+ readonly type: "uint256";
1371
+ }, {
1372
+ readonly name: "perPeriodCreatedUsdCap";
1373
+ readonly type: "uint256";
1374
+ }, {
1375
+ readonly name: "maxNumChequesCreatedPerPeriod";
1376
+ readonly type: "uint256";
1377
+ }, {
1378
+ readonly name: "createCooldownBlocks";
1379
+ readonly type: "uint256";
1380
+ }, {
1381
+ readonly name: "periodLength";
1382
+ readonly type: "uint256";
1383
+ }, {
1384
+ readonly name: "expensiveDelayBlocks";
1385
+ readonly type: "uint256";
1386
+ }, {
1387
+ readonly name: "defaultExpiryBlocks";
1388
+ readonly type: "uint256";
1389
+ }, {
1390
+ readonly name: "allowedAssets";
1391
+ readonly type: "address[]";
1392
+ }, {
1393
+ readonly name: "canManagersCreateCheques";
1394
+ readonly type: "bool";
1395
+ }, {
1396
+ readonly name: "canManagerPay";
1397
+ readonly type: "bool";
1398
+ }, {
1399
+ readonly name: "canBePulled";
1400
+ readonly type: "bool";
1401
+ }];
1402
+ }];
1403
+ readonly outputs: readonly [];
1404
+ }, {
1405
+ readonly stateMutability: "nonpayable";
1406
+ readonly type: "function";
1407
+ readonly name: "updateAssetData";
1408
+ readonly inputs: readonly [{
1409
+ readonly name: "_legoId";
1410
+ readonly type: "uint256";
1411
+ }, {
1412
+ readonly name: "_asset";
1413
+ readonly type: "address";
1414
+ }, {
1415
+ readonly name: "_shouldCheckYield";
1416
+ readonly type: "bool";
1417
+ }];
1418
+ readonly outputs: readonly [{
1419
+ readonly name: "";
1420
+ readonly type: "uint256";
1421
+ }];
1422
+ }, {
1423
+ readonly stateMutability: "nonpayable";
1424
+ readonly type: "function";
1425
+ readonly name: "updateAllAssetData";
1426
+ readonly inputs: readonly [{
1427
+ readonly name: "_shouldCheckYield";
1428
+ readonly type: "bool";
1429
+ }];
1430
+ readonly outputs: readonly [{
1431
+ readonly name: "";
1432
+ readonly type: "uint256";
1433
+ }];
1434
+ }, {
1435
+ readonly stateMutability: "nonpayable";
1436
+ readonly type: "function";
1437
+ readonly name: "removeTrialFunds";
1438
+ readonly inputs: readonly [];
1439
+ readonly outputs: readonly [{
1440
+ readonly name: "";
1441
+ readonly type: "uint256";
1442
+ }];
1443
+ }, {
1444
+ readonly stateMutability: "view";
1445
+ readonly type: "function";
1446
+ readonly name: "getTrialFundsInfo";
1447
+ readonly inputs: readonly [];
1448
+ readonly outputs: readonly [{
1449
+ readonly name: "";
1450
+ readonly type: "address";
1451
+ }, {
1452
+ readonly name: "";
1453
+ readonly type: "uint256";
1454
+ }];
1455
+ }, {
1456
+ readonly stateMutability: "nonpayable";
1457
+ readonly type: "function";
1458
+ readonly name: "migrateFunds";
1459
+ readonly inputs: readonly [{
1460
+ readonly name: "_toWallet";
1461
+ readonly type: "address";
1462
+ }, {
1463
+ readonly name: "_asset";
1464
+ readonly type: "address";
1465
+ }];
1466
+ readonly outputs: readonly [{
1467
+ readonly name: "";
1468
+ readonly type: "uint256";
1469
+ }];
1470
+ }, {
1471
+ readonly stateMutability: "nonpayable";
1472
+ readonly type: "function";
1473
+ readonly name: "preparePayment";
1474
+ readonly inputs: readonly [{
1475
+ readonly name: "_targetAsset";
1476
+ readonly type: "address";
1477
+ }, {
1478
+ readonly name: "_legoId";
1479
+ readonly type: "uint256";
1480
+ }, {
1481
+ readonly name: "_vaultToken";
1482
+ readonly type: "address";
1483
+ }];
1484
+ readonly outputs: readonly [{
1485
+ readonly name: "";
1486
+ readonly type: "uint256";
1487
+ }, {
1488
+ readonly name: "";
1489
+ readonly type: "uint256";
1490
+ }];
1491
+ }, {
1492
+ readonly stateMutability: "nonpayable";
1493
+ readonly type: "function";
1494
+ readonly name: "preparePayment";
1495
+ readonly inputs: readonly [{
1496
+ readonly name: "_targetAsset";
1497
+ readonly type: "address";
1498
+ }, {
1499
+ readonly name: "_legoId";
1500
+ readonly type: "uint256";
1501
+ }, {
1502
+ readonly name: "_vaultToken";
1503
+ readonly type: "address";
1504
+ }, {
1505
+ readonly name: "_vaultAmount";
1506
+ readonly type: "uint256";
1507
+ }];
1508
+ readonly outputs: readonly [{
1509
+ readonly name: "";
1510
+ readonly type: "uint256";
1511
+ }, {
1512
+ readonly name: "";
1513
+ readonly type: "uint256";
1514
+ }];
1515
+ }, {
1516
+ readonly stateMutability: "nonpayable";
1517
+ readonly type: "function";
1518
+ readonly name: "deregisterAsset";
1519
+ readonly inputs: readonly [{
1520
+ readonly name: "_asset";
1521
+ readonly type: "address";
1522
+ }];
1523
+ readonly outputs: readonly [{
1524
+ readonly name: "";
1525
+ readonly type: "bool";
1526
+ }];
1527
+ }, {
1528
+ readonly stateMutability: "nonpayable";
1529
+ readonly type: "function";
1530
+ readonly name: "recoverNft";
1531
+ readonly inputs: readonly [{
1532
+ readonly name: "_collection";
1533
+ readonly type: "address";
1534
+ }, {
1535
+ readonly name: "_nftTokenId";
1536
+ readonly type: "uint256";
1537
+ }, {
1538
+ readonly name: "_recipient";
1539
+ readonly type: "address";
1540
+ }];
1541
+ readonly outputs: readonly [];
1542
+ }, {
1543
+ readonly stateMutability: "nonpayable";
1544
+ readonly type: "function";
1545
+ readonly name: "setFrozen";
1546
+ readonly inputs: readonly [{
1547
+ readonly name: "_isFrozen";
1548
+ readonly type: "bool";
1549
+ }];
1550
+ readonly outputs: readonly [];
1551
+ }, {
1552
+ readonly stateMutability: "nonpayable";
1553
+ readonly type: "function";
1554
+ readonly name: "setEjectionMode";
1555
+ readonly inputs: readonly [{
1556
+ readonly name: "_shouldEject";
1557
+ readonly type: "bool";
1558
+ }];
1559
+ readonly outputs: readonly [];
1560
+ }, {
1561
+ readonly stateMutability: "nonpayable";
1562
+ readonly type: "function";
1563
+ readonly name: "setLegoAccessForAction";
1564
+ readonly inputs: readonly [{
1565
+ readonly name: "_legoId";
1566
+ readonly type: "uint256";
1567
+ }, {
1568
+ readonly name: "_action";
1569
+ readonly type: "uint256";
1570
+ }];
1571
+ readonly outputs: readonly [{
1572
+ readonly name: "";
1573
+ readonly type: "bool";
1574
+ }];
1575
+ }, {
1576
+ readonly stateMutability: "nonpayable";
1577
+ readonly type: "function";
1578
+ readonly name: "setKernel";
1579
+ readonly inputs: readonly [{
1580
+ readonly name: "_kernel";
1581
+ readonly type: "address";
1582
+ }];
1583
+ readonly outputs: readonly [];
1584
+ }, {
1585
+ readonly stateMutability: "nonpayable";
1586
+ readonly type: "function";
1587
+ readonly name: "setSentinel";
1588
+ readonly inputs: readonly [{
1589
+ readonly name: "_sentinel";
1590
+ readonly type: "address";
1591
+ }];
1592
+ readonly outputs: readonly [];
1593
+ }, {
1594
+ readonly stateMutability: "nonpayable";
1595
+ readonly type: "function";
1596
+ readonly name: "setHighCommand";
1597
+ readonly inputs: readonly [{
1598
+ readonly name: "_highCommand";
1599
+ readonly type: "address";
1600
+ }];
1601
+ readonly outputs: readonly [];
1602
+ }, {
1603
+ readonly stateMutability: "nonpayable";
1604
+ readonly type: "function";
1605
+ readonly name: "setPaymaster";
1606
+ readonly inputs: readonly [{
1607
+ readonly name: "_paymaster";
1608
+ readonly type: "address";
1609
+ }];
1610
+ readonly outputs: readonly [];
1611
+ }, {
1612
+ readonly stateMutability: "nonpayable";
1613
+ readonly type: "function";
1614
+ readonly name: "setChequeBook";
1615
+ readonly inputs: readonly [{
1616
+ readonly name: "_chequeBook";
1617
+ readonly type: "address";
1618
+ }];
1619
+ readonly outputs: readonly [];
1620
+ }, {
1621
+ readonly stateMutability: "nonpayable";
1622
+ readonly type: "function";
1623
+ readonly name: "setMigrator";
1624
+ readonly inputs: readonly [{
1625
+ readonly name: "_migrator";
1626
+ readonly type: "address";
1627
+ }];
1628
+ readonly outputs: readonly [];
1629
+ }, {
1630
+ readonly stateMutability: "view";
1631
+ readonly type: "function";
1632
+ readonly name: "getActionDataBundle";
1633
+ readonly inputs: readonly [{
1634
+ readonly name: "_legoId";
1635
+ readonly type: "uint256";
1636
+ }, {
1637
+ readonly name: "_signer";
1638
+ readonly type: "address";
1639
+ }];
1640
+ readonly outputs: readonly [{
1641
+ readonly name: "";
1642
+ readonly type: "tuple";
1643
+ readonly components: readonly [{
1644
+ readonly name: "ledger";
1645
+ readonly type: "address";
1646
+ }, {
1647
+ readonly name: "missionControl";
1648
+ readonly type: "address";
1649
+ }, {
1650
+ readonly name: "legoBook";
1651
+ readonly type: "address";
1652
+ }, {
1653
+ readonly name: "hatchery";
1654
+ readonly type: "address";
1655
+ }, {
1656
+ readonly name: "lootDistributor";
1657
+ readonly type: "address";
1658
+ }, {
1659
+ readonly name: "appraiser";
1660
+ readonly type: "address";
1661
+ }, {
1662
+ readonly name: "billing";
1663
+ readonly type: "address";
1664
+ }, {
1665
+ readonly name: "wallet";
1666
+ readonly type: "address";
1667
+ }, {
1668
+ readonly name: "walletConfig";
1669
+ readonly type: "address";
1670
+ }, {
1671
+ readonly name: "walletOwner";
1672
+ readonly type: "address";
1673
+ }, {
1674
+ readonly name: "inEjectMode";
1675
+ readonly type: "bool";
1676
+ }, {
1677
+ readonly name: "isFrozen";
1678
+ readonly type: "bool";
1679
+ }, {
1680
+ readonly name: "lastTotalUsdValue";
1681
+ readonly type: "uint256";
1682
+ }, {
1683
+ readonly name: "signer";
1684
+ readonly type: "address";
1685
+ }, {
1686
+ readonly name: "isManager";
1687
+ readonly type: "bool";
1688
+ }, {
1689
+ readonly name: "legoId";
1690
+ readonly type: "uint256";
1691
+ }, {
1692
+ readonly name: "legoAddr";
1693
+ readonly type: "address";
1694
+ }, {
1695
+ readonly name: "eth";
1696
+ readonly type: "address";
1697
+ }, {
1698
+ readonly name: "weth";
1699
+ readonly type: "address";
1700
+ }];
1701
+ }];
1702
+ }, {
1703
+ readonly stateMutability: "view";
1704
+ readonly type: "function";
1705
+ readonly name: "wallet";
1706
+ readonly inputs: readonly [];
1707
+ readonly outputs: readonly [{
1708
+ readonly name: "";
1709
+ readonly type: "address";
1710
+ }];
1711
+ }, {
1712
+ readonly stateMutability: "view";
1713
+ readonly type: "function";
1714
+ readonly name: "kernel";
1715
+ readonly inputs: readonly [];
1716
+ readonly outputs: readonly [{
1717
+ readonly name: "";
1718
+ readonly type: "address";
1719
+ }];
1720
+ }, {
1721
+ readonly stateMutability: "view";
1722
+ readonly type: "function";
1723
+ readonly name: "sentinel";
1724
+ readonly inputs: readonly [];
1725
+ readonly outputs: readonly [{
1726
+ readonly name: "";
1727
+ readonly type: "address";
1728
+ }];
1729
+ }, {
1730
+ readonly stateMutability: "view";
1731
+ readonly type: "function";
1732
+ readonly name: "highCommand";
1733
+ readonly inputs: readonly [];
1734
+ readonly outputs: readonly [{
1735
+ readonly name: "";
1736
+ readonly type: "address";
1737
+ }];
1738
+ }, {
1739
+ readonly stateMutability: "view";
1740
+ readonly type: "function";
1741
+ readonly name: "paymaster";
1742
+ readonly inputs: readonly [];
1743
+ readonly outputs: readonly [{
1744
+ readonly name: "";
1745
+ readonly type: "address";
1746
+ }];
1747
+ }, {
1748
+ readonly stateMutability: "view";
1749
+ readonly type: "function";
1750
+ readonly name: "chequeBook";
1751
+ readonly inputs: readonly [];
1752
+ readonly outputs: readonly [{
1753
+ readonly name: "";
1754
+ readonly type: "address";
1755
+ }];
1756
+ }, {
1757
+ readonly stateMutability: "view";
1758
+ readonly type: "function";
1759
+ readonly name: "migrator";
1760
+ readonly inputs: readonly [];
1761
+ readonly outputs: readonly [{
1762
+ readonly name: "";
1763
+ readonly type: "address";
1764
+ }];
1765
+ }, {
1766
+ readonly stateMutability: "view";
1767
+ readonly type: "function";
1768
+ readonly name: "trialFundsAsset";
1769
+ readonly inputs: readonly [];
1770
+ readonly outputs: readonly [{
1771
+ readonly name: "";
1772
+ readonly type: "address";
1773
+ }];
1774
+ }, {
1775
+ readonly stateMutability: "view";
1776
+ readonly type: "function";
1777
+ readonly name: "trialFundsAmount";
1778
+ readonly inputs: readonly [];
1779
+ readonly outputs: readonly [{
1780
+ readonly name: "";
1781
+ readonly type: "uint256";
1782
+ }];
1783
+ }, {
1784
+ readonly stateMutability: "view";
1785
+ readonly type: "function";
1786
+ readonly name: "managerSettings";
1787
+ readonly inputs: readonly [{
1788
+ readonly name: "arg0";
1789
+ readonly type: "address";
1790
+ }];
1791
+ readonly outputs: readonly [{
1792
+ readonly name: "";
1793
+ readonly type: "tuple";
1794
+ readonly components: readonly [{
1795
+ readonly name: "startBlock";
1796
+ readonly type: "uint256";
1797
+ }, {
1798
+ readonly name: "expiryBlock";
1799
+ readonly type: "uint256";
1800
+ }, {
1801
+ readonly name: "limits";
1802
+ readonly type: "tuple";
1803
+ readonly components: readonly [{
1804
+ readonly name: "maxUsdValuePerTx";
1805
+ readonly type: "uint256";
1806
+ }, {
1807
+ readonly name: "maxUsdValuePerPeriod";
1808
+ readonly type: "uint256";
1809
+ }, {
1810
+ readonly name: "maxUsdValueLifetime";
1811
+ readonly type: "uint256";
1812
+ }, {
1813
+ readonly name: "maxNumTxsPerPeriod";
1814
+ readonly type: "uint256";
1815
+ }, {
1816
+ readonly name: "txCooldownBlocks";
1817
+ readonly type: "uint256";
1818
+ }, {
1819
+ readonly name: "failOnZeroPrice";
1820
+ readonly type: "bool";
1821
+ }];
1822
+ }, {
1823
+ readonly name: "legoPerms";
1824
+ readonly type: "tuple";
1825
+ readonly components: readonly [{
1826
+ readonly name: "canManageYield";
1827
+ readonly type: "bool";
1828
+ }, {
1829
+ readonly name: "canBuyAndSell";
1830
+ readonly type: "bool";
1831
+ }, {
1832
+ readonly name: "canManageDebt";
1833
+ readonly type: "bool";
1834
+ }, {
1835
+ readonly name: "canManageLiq";
1836
+ readonly type: "bool";
1837
+ }, {
1838
+ readonly name: "canClaimRewards";
1839
+ readonly type: "bool";
1840
+ }, {
1841
+ readonly name: "allowedLegos";
1842
+ readonly type: "uint256[]";
1843
+ }];
1844
+ }, {
1845
+ readonly name: "whitelistPerms";
1846
+ readonly type: "tuple";
1847
+ readonly components: readonly [{
1848
+ readonly name: "canAddPending";
1849
+ readonly type: "bool";
1850
+ }, {
1851
+ readonly name: "canConfirm";
1852
+ readonly type: "bool";
1853
+ }, {
1854
+ readonly name: "canCancel";
1855
+ readonly type: "bool";
1856
+ }, {
1857
+ readonly name: "canRemove";
1858
+ readonly type: "bool";
1859
+ }];
1860
+ }, {
1861
+ readonly name: "transferPerms";
1862
+ readonly type: "tuple";
1863
+ readonly components: readonly [{
1864
+ readonly name: "canTransfer";
1865
+ readonly type: "bool";
1866
+ }, {
1867
+ readonly name: "canCreateCheque";
1868
+ readonly type: "bool";
1869
+ }, {
1870
+ readonly name: "canAddPendingPayee";
1871
+ readonly type: "bool";
1872
+ }, {
1873
+ readonly name: "allowedPayees";
1874
+ readonly type: "address[]";
1875
+ }];
1876
+ }, {
1877
+ readonly name: "allowedAssets";
1878
+ readonly type: "address[]";
1879
+ }, {
1880
+ readonly name: "canClaimLoot";
1881
+ readonly type: "bool";
1882
+ }];
1883
+ }];
1884
+ }, {
1885
+ readonly stateMutability: "view";
1886
+ readonly type: "function";
1887
+ readonly name: "managerPeriodData";
1888
+ readonly inputs: readonly [{
1889
+ readonly name: "arg0";
1890
+ readonly type: "address";
1891
+ }];
1892
+ readonly outputs: readonly [{
1893
+ readonly name: "";
1894
+ readonly type: "tuple";
1895
+ readonly components: readonly [{
1896
+ readonly name: "numTxsInPeriod";
1897
+ readonly type: "uint256";
1898
+ }, {
1899
+ readonly name: "totalUsdValueInPeriod";
1900
+ readonly type: "uint256";
1901
+ }, {
1902
+ readonly name: "totalNumTxs";
1903
+ readonly type: "uint256";
1904
+ }, {
1905
+ readonly name: "totalUsdValue";
1906
+ readonly type: "uint256";
1907
+ }, {
1908
+ readonly name: "lastTxBlock";
1909
+ readonly type: "uint256";
1910
+ }, {
1911
+ readonly name: "periodStartBlock";
1912
+ readonly type: "uint256";
1913
+ }];
1914
+ }];
1915
+ }, {
1916
+ readonly stateMutability: "view";
1917
+ readonly type: "function";
1918
+ readonly name: "managers";
1919
+ readonly inputs: readonly [{
1920
+ readonly name: "arg0";
1921
+ readonly type: "uint256";
1922
+ }];
1923
+ readonly outputs: readonly [{
1924
+ readonly name: "";
1925
+ readonly type: "address";
1926
+ }];
1927
+ }, {
1928
+ readonly stateMutability: "view";
1929
+ readonly type: "function";
1930
+ readonly name: "indexOfManager";
1931
+ readonly inputs: readonly [{
1932
+ readonly name: "arg0";
1933
+ readonly type: "address";
1934
+ }];
1935
+ readonly outputs: readonly [{
1936
+ readonly name: "";
1937
+ readonly type: "uint256";
1938
+ }];
1939
+ }, {
1940
+ readonly stateMutability: "view";
1941
+ readonly type: "function";
1942
+ readonly name: "numManagers";
1943
+ readonly inputs: readonly [];
1944
+ readonly outputs: readonly [{
1945
+ readonly name: "";
1946
+ readonly type: "uint256";
1947
+ }];
1948
+ }, {
1949
+ readonly stateMutability: "view";
1950
+ readonly type: "function";
1951
+ readonly name: "payeeSettings";
1952
+ readonly inputs: readonly [{
1953
+ readonly name: "arg0";
1954
+ readonly type: "address";
1955
+ }];
1956
+ readonly outputs: readonly [{
1957
+ readonly name: "";
1958
+ readonly type: "tuple";
1959
+ readonly components: readonly [{
1960
+ readonly name: "startBlock";
1961
+ readonly type: "uint256";
1962
+ }, {
1963
+ readonly name: "expiryBlock";
1964
+ readonly type: "uint256";
1965
+ }, {
1966
+ readonly name: "canPull";
1967
+ readonly type: "bool";
1968
+ }, {
1969
+ readonly name: "periodLength";
1970
+ readonly type: "uint256";
1971
+ }, {
1972
+ readonly name: "maxNumTxsPerPeriod";
1973
+ readonly type: "uint256";
1974
+ }, {
1975
+ readonly name: "txCooldownBlocks";
1976
+ readonly type: "uint256";
1977
+ }, {
1978
+ readonly name: "failOnZeroPrice";
1979
+ readonly type: "bool";
1980
+ }, {
1981
+ readonly name: "primaryAsset";
1982
+ readonly type: "address";
1983
+ }, {
1984
+ readonly name: "onlyPrimaryAsset";
1985
+ readonly type: "bool";
1986
+ }, {
1987
+ readonly name: "unitLimits";
1988
+ readonly type: "tuple";
1989
+ readonly components: readonly [{
1990
+ readonly name: "perTxCap";
1991
+ readonly type: "uint256";
1992
+ }, {
1993
+ readonly name: "perPeriodCap";
1994
+ readonly type: "uint256";
1995
+ }, {
1996
+ readonly name: "lifetimeCap";
1997
+ readonly type: "uint256";
1998
+ }];
1999
+ }, {
2000
+ readonly name: "usdLimits";
2001
+ readonly type: "tuple";
2002
+ readonly components: readonly [{
2003
+ readonly name: "perTxCap";
2004
+ readonly type: "uint256";
2005
+ }, {
2006
+ readonly name: "perPeriodCap";
2007
+ readonly type: "uint256";
2008
+ }, {
2009
+ readonly name: "lifetimeCap";
2010
+ readonly type: "uint256";
2011
+ }];
2012
+ }];
2013
+ }];
2014
+ }, {
2015
+ readonly stateMutability: "view";
2016
+ readonly type: "function";
2017
+ readonly name: "payeePeriodData";
2018
+ readonly inputs: readonly [{
2019
+ readonly name: "arg0";
2020
+ readonly type: "address";
2021
+ }];
2022
+ readonly outputs: readonly [{
2023
+ readonly name: "";
2024
+ readonly type: "tuple";
2025
+ readonly components: readonly [{
2026
+ readonly name: "numTxsInPeriod";
2027
+ readonly type: "uint256";
2028
+ }, {
2029
+ readonly name: "totalUnitsInPeriod";
2030
+ readonly type: "uint256";
2031
+ }, {
2032
+ readonly name: "totalUsdValueInPeriod";
2033
+ readonly type: "uint256";
2034
+ }, {
2035
+ readonly name: "totalNumTxs";
2036
+ readonly type: "uint256";
2037
+ }, {
2038
+ readonly name: "totalUnits";
2039
+ readonly type: "uint256";
2040
+ }, {
2041
+ readonly name: "totalUsdValue";
2042
+ readonly type: "uint256";
2043
+ }, {
2044
+ readonly name: "lastTxBlock";
2045
+ readonly type: "uint256";
2046
+ }, {
2047
+ readonly name: "periodStartBlock";
2048
+ readonly type: "uint256";
2049
+ }];
2050
+ }];
2051
+ }, {
2052
+ readonly stateMutability: "view";
2053
+ readonly type: "function";
2054
+ readonly name: "payees";
2055
+ readonly inputs: readonly [{
2056
+ readonly name: "arg0";
2057
+ readonly type: "uint256";
2058
+ }];
2059
+ readonly outputs: readonly [{
2060
+ readonly name: "";
2061
+ readonly type: "address";
2062
+ }];
2063
+ }, {
2064
+ readonly stateMutability: "view";
2065
+ readonly type: "function";
2066
+ readonly name: "indexOfPayee";
2067
+ readonly inputs: readonly [{
2068
+ readonly name: "arg0";
2069
+ readonly type: "address";
2070
+ }];
2071
+ readonly outputs: readonly [{
2072
+ readonly name: "";
2073
+ readonly type: "uint256";
2074
+ }];
2075
+ }, {
2076
+ readonly stateMutability: "view";
2077
+ readonly type: "function";
2078
+ readonly name: "numPayees";
2079
+ readonly inputs: readonly [];
2080
+ readonly outputs: readonly [{
2081
+ readonly name: "";
2082
+ readonly type: "uint256";
2083
+ }];
2084
+ }, {
2085
+ readonly stateMutability: "view";
2086
+ readonly type: "function";
2087
+ readonly name: "pendingPayees";
2088
+ readonly inputs: readonly [{
2089
+ readonly name: "arg0";
2090
+ readonly type: "address";
2091
+ }];
2092
+ readonly outputs: readonly [{
2093
+ readonly name: "";
2094
+ readonly type: "tuple";
2095
+ readonly components: readonly [{
2096
+ readonly name: "settings";
2097
+ readonly type: "tuple";
2098
+ readonly components: readonly [{
2099
+ readonly name: "startBlock";
2100
+ readonly type: "uint256";
2101
+ }, {
2102
+ readonly name: "expiryBlock";
2103
+ readonly type: "uint256";
2104
+ }, {
2105
+ readonly name: "canPull";
2106
+ readonly type: "bool";
2107
+ }, {
2108
+ readonly name: "periodLength";
2109
+ readonly type: "uint256";
2110
+ }, {
2111
+ readonly name: "maxNumTxsPerPeriod";
2112
+ readonly type: "uint256";
2113
+ }, {
2114
+ readonly name: "txCooldownBlocks";
2115
+ readonly type: "uint256";
2116
+ }, {
2117
+ readonly name: "failOnZeroPrice";
2118
+ readonly type: "bool";
2119
+ }, {
2120
+ readonly name: "primaryAsset";
2121
+ readonly type: "address";
2122
+ }, {
2123
+ readonly name: "onlyPrimaryAsset";
2124
+ readonly type: "bool";
2125
+ }, {
2126
+ readonly name: "unitLimits";
2127
+ readonly type: "tuple";
2128
+ readonly components: readonly [{
2129
+ readonly name: "perTxCap";
2130
+ readonly type: "uint256";
2131
+ }, {
2132
+ readonly name: "perPeriodCap";
2133
+ readonly type: "uint256";
2134
+ }, {
2135
+ readonly name: "lifetimeCap";
2136
+ readonly type: "uint256";
2137
+ }];
2138
+ }, {
2139
+ readonly name: "usdLimits";
2140
+ readonly type: "tuple";
2141
+ readonly components: readonly [{
2142
+ readonly name: "perTxCap";
2143
+ readonly type: "uint256";
2144
+ }, {
2145
+ readonly name: "perPeriodCap";
2146
+ readonly type: "uint256";
2147
+ }, {
2148
+ readonly name: "lifetimeCap";
2149
+ readonly type: "uint256";
2150
+ }];
2151
+ }];
2152
+ }, {
2153
+ readonly name: "initiatedBlock";
2154
+ readonly type: "uint256";
2155
+ }, {
2156
+ readonly name: "confirmBlock";
2157
+ readonly type: "uint256";
2158
+ }, {
2159
+ readonly name: "currentOwner";
2160
+ readonly type: "address";
2161
+ }];
1023
2162
  }];
1024
- readonly name: "disableAgent";
1025
- readonly outputs: readonly [{
1026
- readonly name: "";
1027
- readonly type: "bool";
1028
- }];
1029
- readonly stateMutability: "nonpayable";
1030
- readonly type: "function";
1031
2163
  }, {
2164
+ readonly stateMutability: "view";
2165
+ readonly type: "function";
2166
+ readonly name: "whitelistAddr";
1032
2167
  readonly inputs: readonly [{
1033
- readonly name: "_agent";
1034
- readonly type: "address";
1035
- }, {
1036
- readonly name: "_legoId";
2168
+ readonly name: "arg0";
1037
2169
  readonly type: "uint256";
1038
2170
  }];
1039
- readonly name: "addLegoIdForAgent";
1040
2171
  readonly outputs: readonly [{
1041
2172
  readonly name: "";
1042
- readonly type: "bool";
2173
+ readonly type: "address";
1043
2174
  }];
1044
- readonly stateMutability: "nonpayable";
1045
- readonly type: "function";
1046
2175
  }, {
2176
+ readonly stateMutability: "view";
2177
+ readonly type: "function";
2178
+ readonly name: "indexOfWhitelist";
1047
2179
  readonly inputs: readonly [{
1048
- readonly name: "_agent";
1049
- readonly type: "address";
1050
- }, {
1051
- readonly name: "_asset";
2180
+ readonly name: "arg0";
1052
2181
  readonly type: "address";
1053
2182
  }];
1054
- readonly name: "addAssetForAgent";
1055
2183
  readonly outputs: readonly [{
1056
2184
  readonly name: "";
1057
- readonly type: "bool";
2185
+ readonly type: "uint256";
1058
2186
  }];
1059
- readonly stateMutability: "nonpayable";
2187
+ }, {
2188
+ readonly stateMutability: "view";
1060
2189
  readonly type: "function";
2190
+ readonly name: "numWhitelisted";
2191
+ readonly inputs: readonly [];
2192
+ readonly outputs: readonly [{
2193
+ readonly name: "";
2194
+ readonly type: "uint256";
2195
+ }];
1061
2196
  }, {
2197
+ readonly stateMutability: "view";
2198
+ readonly type: "function";
2199
+ readonly name: "pendingWhitelist";
1062
2200
  readonly inputs: readonly [{
1063
- readonly name: "_agent";
2201
+ readonly name: "arg0";
1064
2202
  readonly type: "address";
1065
2203
  }];
1066
- readonly name: "modifyAllowedActions";
1067
2204
  readonly outputs: readonly [{
1068
2205
  readonly name: "";
1069
- readonly type: "bool";
2206
+ readonly type: "tuple";
2207
+ readonly components: readonly [{
2208
+ readonly name: "initiatedBlock";
2209
+ readonly type: "uint256";
2210
+ }, {
2211
+ readonly name: "confirmBlock";
2212
+ readonly type: "uint256";
2213
+ }, {
2214
+ readonly name: "currentOwner";
2215
+ readonly type: "address";
2216
+ }];
1070
2217
  }];
1071
- readonly stateMutability: "nonpayable";
1072
- readonly type: "function";
1073
2218
  }, {
2219
+ readonly stateMutability: "view";
2220
+ readonly type: "function";
2221
+ readonly name: "cheques";
1074
2222
  readonly inputs: readonly [{
1075
- readonly name: "_agent";
2223
+ readonly name: "arg0";
1076
2224
  readonly type: "address";
1077
- }, {
2225
+ }];
2226
+ readonly outputs: readonly [{
2227
+ readonly name: "";
2228
+ readonly type: "tuple";
1078
2229
  readonly components: readonly [{
1079
- readonly name: "isSet";
1080
- readonly type: "bool";
2230
+ readonly name: "recipient";
2231
+ readonly type: "address";
1081
2232
  }, {
1082
- readonly name: "canDeposit";
1083
- readonly type: "bool";
2233
+ readonly name: "asset";
2234
+ readonly type: "address";
1084
2235
  }, {
1085
- readonly name: "canWithdraw";
1086
- readonly type: "bool";
2236
+ readonly name: "amount";
2237
+ readonly type: "uint256";
1087
2238
  }, {
1088
- readonly name: "canRebalance";
1089
- readonly type: "bool";
2239
+ readonly name: "creationBlock";
2240
+ readonly type: "uint256";
1090
2241
  }, {
1091
- readonly name: "canTransfer";
1092
- readonly type: "bool";
2242
+ readonly name: "unlockBlock";
2243
+ readonly type: "uint256";
1093
2244
  }, {
1094
- readonly name: "canSwap";
1095
- readonly type: "bool";
2245
+ readonly name: "expiryBlock";
2246
+ readonly type: "uint256";
2247
+ }, {
2248
+ readonly name: "usdValueOnCreation";
2249
+ readonly type: "uint256";
1096
2250
  }, {
1097
- readonly name: "canConvert";
2251
+ readonly name: "canManagerPay";
1098
2252
  readonly type: "bool";
1099
2253
  }, {
1100
- readonly name: "canAddLiq";
2254
+ readonly name: "canBePulled";
1101
2255
  readonly type: "bool";
1102
2256
  }, {
1103
- readonly name: "canRemoveLiq";
2257
+ readonly name: "creator";
2258
+ readonly type: "address";
2259
+ }, {
2260
+ readonly name: "active";
1104
2261
  readonly type: "bool";
2262
+ }];
2263
+ }];
2264
+ }, {
2265
+ readonly stateMutability: "view";
2266
+ readonly type: "function";
2267
+ readonly name: "chequeSettings";
2268
+ readonly inputs: readonly [];
2269
+ readonly outputs: readonly [{
2270
+ readonly name: "";
2271
+ readonly type: "tuple";
2272
+ readonly components: readonly [{
2273
+ readonly name: "maxNumActiveCheques";
2274
+ readonly type: "uint256";
2275
+ }, {
2276
+ readonly name: "maxChequeUsdValue";
2277
+ readonly type: "uint256";
2278
+ }, {
2279
+ readonly name: "instantUsdThreshold";
2280
+ readonly type: "uint256";
1105
2281
  }, {
1106
- readonly name: "canClaimRewards";
2282
+ readonly name: "perPeriodPaidUsdCap";
2283
+ readonly type: "uint256";
2284
+ }, {
2285
+ readonly name: "maxNumChequesPaidPerPeriod";
2286
+ readonly type: "uint256";
2287
+ }, {
2288
+ readonly name: "payCooldownBlocks";
2289
+ readonly type: "uint256";
2290
+ }, {
2291
+ readonly name: "perPeriodCreatedUsdCap";
2292
+ readonly type: "uint256";
2293
+ }, {
2294
+ readonly name: "maxNumChequesCreatedPerPeriod";
2295
+ readonly type: "uint256";
2296
+ }, {
2297
+ readonly name: "createCooldownBlocks";
2298
+ readonly type: "uint256";
2299
+ }, {
2300
+ readonly name: "periodLength";
2301
+ readonly type: "uint256";
2302
+ }, {
2303
+ readonly name: "expensiveDelayBlocks";
2304
+ readonly type: "uint256";
2305
+ }, {
2306
+ readonly name: "defaultExpiryBlocks";
2307
+ readonly type: "uint256";
2308
+ }, {
2309
+ readonly name: "allowedAssets";
2310
+ readonly type: "address[]";
2311
+ }, {
2312
+ readonly name: "canManagersCreateCheques";
1107
2313
  readonly type: "bool";
1108
2314
  }, {
1109
- readonly name: "canBorrow";
2315
+ readonly name: "canManagerPay";
1110
2316
  readonly type: "bool";
1111
2317
  }, {
1112
- readonly name: "canRepay";
2318
+ readonly name: "canBePulled";
1113
2319
  readonly type: "bool";
1114
2320
  }];
1115
- readonly name: "_allowedActions";
1116
- readonly type: "tuple";
1117
- }];
1118
- readonly name: "modifyAllowedActions";
1119
- readonly outputs: readonly [{
1120
- readonly name: "";
1121
- readonly type: "bool";
1122
2321
  }];
1123
- readonly stateMutability: "nonpayable";
1124
- readonly type: "function";
1125
2322
  }, {
1126
- readonly inputs: readonly [{
1127
- readonly name: "_recipient";
1128
- readonly type: "address";
1129
- }];
1130
- readonly name: "canTransferToRecipient";
1131
- readonly outputs: readonly [{
1132
- readonly name: "";
1133
- readonly type: "bool";
1134
- }];
1135
2323
  readonly stateMutability: "view";
1136
2324
  readonly type: "function";
1137
- }, {
1138
- readonly inputs: readonly [{
1139
- readonly name: "_wallet";
1140
- readonly type: "address";
1141
- }];
1142
- readonly name: "doesWalletHaveSameOwner";
2325
+ readonly name: "chequePeriodData";
2326
+ readonly inputs: readonly [];
1143
2327
  readonly outputs: readonly [{
1144
2328
  readonly name: "";
1145
- readonly type: "bool";
2329
+ readonly type: "tuple";
2330
+ readonly components: readonly [{
2331
+ readonly name: "numChequesPaidInPeriod";
2332
+ readonly type: "uint256";
2333
+ }, {
2334
+ readonly name: "totalUsdValuePaidInPeriod";
2335
+ readonly type: "uint256";
2336
+ }, {
2337
+ readonly name: "totalNumChequesPaid";
2338
+ readonly type: "uint256";
2339
+ }, {
2340
+ readonly name: "totalUsdValuePaid";
2341
+ readonly type: "uint256";
2342
+ }, {
2343
+ readonly name: "lastChequePaidBlock";
2344
+ readonly type: "uint256";
2345
+ }, {
2346
+ readonly name: "numChequesCreatedInPeriod";
2347
+ readonly type: "uint256";
2348
+ }, {
2349
+ readonly name: "totalUsdValueCreatedInPeriod";
2350
+ readonly type: "uint256";
2351
+ }, {
2352
+ readonly name: "totalNumChequesCreated";
2353
+ readonly type: "uint256";
2354
+ }, {
2355
+ readonly name: "totalUsdValueCreated";
2356
+ readonly type: "uint256";
2357
+ }, {
2358
+ readonly name: "lastChequeCreatedBlock";
2359
+ readonly type: "uint256";
2360
+ }, {
2361
+ readonly name: "periodStartBlock";
2362
+ readonly type: "uint256";
2363
+ }];
1146
2364
  }];
2365
+ }, {
1147
2366
  readonly stateMutability: "view";
1148
2367
  readonly type: "function";
1149
- }, {
1150
- readonly inputs: readonly [{
1151
- readonly name: "_canTransfer";
1152
- readonly type: "bool";
1153
- }];
1154
- readonly name: "setCanTransferToAltOwnerWallets";
2368
+ readonly name: "numActiveCheques";
2369
+ readonly inputs: readonly [];
1155
2370
  readonly outputs: readonly [{
1156
2371
  readonly name: "";
1157
- readonly type: "bool";
1158
- }];
1159
- readonly stateMutability: "nonpayable";
1160
- readonly type: "function";
1161
- }, {
1162
- readonly inputs: readonly [{
1163
- readonly name: "_addr";
1164
- readonly type: "address";
2372
+ readonly type: "uint256";
1165
2373
  }];
1166
- readonly name: "addWhitelistAddr";
1167
- readonly outputs: readonly [];
1168
- readonly stateMutability: "nonpayable";
1169
- readonly type: "function";
1170
2374
  }, {
1171
- readonly inputs: readonly [{
1172
- readonly name: "_addr";
1173
- readonly type: "address";
1174
- }];
1175
- readonly name: "confirmWhitelistAddr";
1176
- readonly outputs: readonly [];
1177
- readonly stateMutability: "nonpayable";
2375
+ readonly stateMutability: "view";
1178
2376
  readonly type: "function";
1179
- }, {
1180
- readonly inputs: readonly [{
1181
- readonly name: "_addr";
1182
- readonly type: "address";
2377
+ readonly name: "globalManagerSettings";
2378
+ readonly inputs: readonly [];
2379
+ readonly outputs: readonly [{
2380
+ readonly name: "";
2381
+ readonly type: "tuple";
2382
+ readonly components: readonly [{
2383
+ readonly name: "managerPeriod";
2384
+ readonly type: "uint256";
2385
+ }, {
2386
+ readonly name: "startDelay";
2387
+ readonly type: "uint256";
2388
+ }, {
2389
+ readonly name: "activationLength";
2390
+ readonly type: "uint256";
2391
+ }, {
2392
+ readonly name: "canOwnerManage";
2393
+ readonly type: "bool";
2394
+ }, {
2395
+ readonly name: "limits";
2396
+ readonly type: "tuple";
2397
+ readonly components: readonly [{
2398
+ readonly name: "maxUsdValuePerTx";
2399
+ readonly type: "uint256";
2400
+ }, {
2401
+ readonly name: "maxUsdValuePerPeriod";
2402
+ readonly type: "uint256";
2403
+ }, {
2404
+ readonly name: "maxUsdValueLifetime";
2405
+ readonly type: "uint256";
2406
+ }, {
2407
+ readonly name: "maxNumTxsPerPeriod";
2408
+ readonly type: "uint256";
2409
+ }, {
2410
+ readonly name: "txCooldownBlocks";
2411
+ readonly type: "uint256";
2412
+ }, {
2413
+ readonly name: "failOnZeroPrice";
2414
+ readonly type: "bool";
2415
+ }];
2416
+ }, {
2417
+ readonly name: "legoPerms";
2418
+ readonly type: "tuple";
2419
+ readonly components: readonly [{
2420
+ readonly name: "canManageYield";
2421
+ readonly type: "bool";
2422
+ }, {
2423
+ readonly name: "canBuyAndSell";
2424
+ readonly type: "bool";
2425
+ }, {
2426
+ readonly name: "canManageDebt";
2427
+ readonly type: "bool";
2428
+ }, {
2429
+ readonly name: "canManageLiq";
2430
+ readonly type: "bool";
2431
+ }, {
2432
+ readonly name: "canClaimRewards";
2433
+ readonly type: "bool";
2434
+ }, {
2435
+ readonly name: "allowedLegos";
2436
+ readonly type: "uint256[]";
2437
+ }];
2438
+ }, {
2439
+ readonly name: "whitelistPerms";
2440
+ readonly type: "tuple";
2441
+ readonly components: readonly [{
2442
+ readonly name: "canAddPending";
2443
+ readonly type: "bool";
2444
+ }, {
2445
+ readonly name: "canConfirm";
2446
+ readonly type: "bool";
2447
+ }, {
2448
+ readonly name: "canCancel";
2449
+ readonly type: "bool";
2450
+ }, {
2451
+ readonly name: "canRemove";
2452
+ readonly type: "bool";
2453
+ }];
2454
+ }, {
2455
+ readonly name: "transferPerms";
2456
+ readonly type: "tuple";
2457
+ readonly components: readonly [{
2458
+ readonly name: "canTransfer";
2459
+ readonly type: "bool";
2460
+ }, {
2461
+ readonly name: "canCreateCheque";
2462
+ readonly type: "bool";
2463
+ }, {
2464
+ readonly name: "canAddPendingPayee";
2465
+ readonly type: "bool";
2466
+ }, {
2467
+ readonly name: "allowedPayees";
2468
+ readonly type: "address[]";
2469
+ }];
2470
+ }, {
2471
+ readonly name: "allowedAssets";
2472
+ readonly type: "address[]";
2473
+ }];
1183
2474
  }];
1184
- readonly name: "cancelPendingWhitelistAddr";
1185
- readonly outputs: readonly [];
1186
- readonly stateMutability: "nonpayable";
1187
- readonly type: "function";
1188
2475
  }, {
1189
- readonly inputs: readonly [{
1190
- readonly name: "_addr";
1191
- readonly type: "address";
1192
- }];
1193
- readonly name: "removeWhitelistAddr";
1194
- readonly outputs: readonly [];
1195
- readonly stateMutability: "nonpayable";
2476
+ readonly stateMutability: "view";
1196
2477
  readonly type: "function";
1197
- }, {
1198
- readonly inputs: readonly [{
1199
- readonly name: "_asset";
1200
- readonly type: "address";
1201
- }, {
1202
- readonly name: "_amount";
1203
- readonly type: "uint256";
1204
- }];
1205
- readonly name: "setReserveAsset";
2478
+ readonly name: "globalPayeeSettings";
2479
+ readonly inputs: readonly [];
1206
2480
  readonly outputs: readonly [{
1207
2481
  readonly name: "";
1208
- readonly type: "bool";
1209
- }];
1210
- readonly stateMutability: "nonpayable";
1211
- readonly type: "function";
1212
- }, {
1213
- readonly inputs: readonly [{
2482
+ readonly type: "tuple";
1214
2483
  readonly components: readonly [{
1215
- readonly name: "asset";
1216
- readonly type: "address";
2484
+ readonly name: "defaultPeriodLength";
2485
+ readonly type: "uint256";
1217
2486
  }, {
1218
- readonly name: "amount";
2487
+ readonly name: "startDelay";
1219
2488
  readonly type: "uint256";
2489
+ }, {
2490
+ readonly name: "activationLength";
2491
+ readonly type: "uint256";
2492
+ }, {
2493
+ readonly name: "maxNumTxsPerPeriod";
2494
+ readonly type: "uint256";
2495
+ }, {
2496
+ readonly name: "txCooldownBlocks";
2497
+ readonly type: "uint256";
2498
+ }, {
2499
+ readonly name: "failOnZeroPrice";
2500
+ readonly type: "bool";
2501
+ }, {
2502
+ readonly name: "usdLimits";
2503
+ readonly type: "tuple";
2504
+ readonly components: readonly [{
2505
+ readonly name: "perTxCap";
2506
+ readonly type: "uint256";
2507
+ }, {
2508
+ readonly name: "perPeriodCap";
2509
+ readonly type: "uint256";
2510
+ }, {
2511
+ readonly name: "lifetimeCap";
2512
+ readonly type: "uint256";
2513
+ }];
2514
+ }, {
2515
+ readonly name: "canPayOwner";
2516
+ readonly type: "bool";
2517
+ }, {
2518
+ readonly name: "canPull";
2519
+ readonly type: "bool";
1220
2520
  }];
1221
- readonly name: "_assets";
1222
- readonly type: "tuple[]";
1223
2521
  }];
1224
- readonly name: "setManyReserveAssets";
2522
+ }, {
2523
+ readonly stateMutability: "view";
2524
+ readonly type: "function";
2525
+ readonly name: "timeLock";
2526
+ readonly inputs: readonly [];
1225
2527
  readonly outputs: readonly [{
1226
2528
  readonly name: "";
1227
- readonly type: "bool";
2529
+ readonly type: "uint256";
1228
2530
  }];
1229
- readonly stateMutability: "nonpayable";
1230
- readonly type: "function";
1231
2531
  }, {
2532
+ readonly stateMutability: "view";
2533
+ readonly type: "function";
2534
+ readonly name: "isFrozen";
1232
2535
  readonly inputs: readonly [];
1233
- readonly name: "getProceedsAddr";
1234
2536
  readonly outputs: readonly [{
1235
2537
  readonly name: "";
1236
- readonly type: "address";
2538
+ readonly type: "bool";
1237
2539
  }];
2540
+ }, {
1238
2541
  readonly stateMutability: "view";
1239
2542
  readonly type: "function";
1240
- }, {
1241
- readonly inputs: readonly [{
1242
- readonly name: "_addr";
1243
- readonly type: "address";
1244
- }];
1245
- readonly name: "setAmbassadorForwarder";
2543
+ readonly name: "inEjectMode";
2544
+ readonly inputs: readonly [];
1246
2545
  readonly outputs: readonly [{
1247
2546
  readonly name: "";
1248
2547
  readonly type: "bool";
1249
2548
  }];
1250
- readonly stateMutability: "nonpayable";
1251
- readonly type: "function";
1252
2549
  }, {
1253
- readonly inputs: readonly [{
1254
- readonly name: "_canWalletBeAmbassador";
1255
- readonly type: "bool";
1256
- }];
1257
- readonly name: "setCanWalletBeAmbassador";
2550
+ readonly stateMutability: "view";
2551
+ readonly type: "function";
2552
+ readonly name: "groupId";
2553
+ readonly inputs: readonly [];
1258
2554
  readonly outputs: readonly [{
1259
2555
  readonly name: "";
1260
- readonly type: "bool";
2556
+ readonly type: "uint256";
1261
2557
  }];
1262
- readonly stateMutability: "nonpayable";
1263
- readonly type: "function";
1264
2558
  }, {
1265
- readonly inputs: readonly [{
1266
- readonly name: "_asset";
2559
+ readonly stateMutability: "view";
2560
+ readonly type: "function";
2561
+ readonly name: "startingAgent";
2562
+ readonly inputs: readonly [];
2563
+ readonly outputs: readonly [{
2564
+ readonly name: "";
1267
2565
  readonly type: "address";
1268
2566
  }];
1269
- readonly name: "recoverFunds";
2567
+ }, {
2568
+ readonly stateMutability: "view";
2569
+ readonly type: "function";
2570
+ readonly name: "didSetWallet";
2571
+ readonly inputs: readonly [];
1270
2572
  readonly outputs: readonly [{
1271
2573
  readonly name: "";
1272
2574
  readonly type: "bool";
1273
2575
  }];
1274
- readonly stateMutability: "nonpayable";
1275
- readonly type: "function";
1276
2576
  }, {
2577
+ readonly stateMutability: "view";
2578
+ readonly type: "function";
2579
+ readonly name: "UNDY_HQ";
1277
2580
  readonly inputs: readonly [];
1278
- readonly name: "wallet";
1279
2581
  readonly outputs: readonly [{
1280
2582
  readonly name: "";
1281
2583
  readonly type: "address";
1282
2584
  }];
2585
+ }, {
1283
2586
  readonly stateMutability: "view";
1284
2587
  readonly type: "function";
1285
- }, {
2588
+ readonly name: "WETH";
1286
2589
  readonly inputs: readonly [];
1287
- readonly name: "didSetWallet";
1288
2590
  readonly outputs: readonly [{
1289
2591
  readonly name: "";
1290
- readonly type: "bool";
2592
+ readonly type: "address";
1291
2593
  }];
2594
+ }, {
1292
2595
  readonly stateMutability: "view";
1293
2596
  readonly type: "function";
1294
- }, {
2597
+ readonly name: "ETH";
1295
2598
  readonly inputs: readonly [];
1296
- readonly name: "protocolSub";
1297
2599
  readonly outputs: readonly [{
1298
- readonly components: readonly [{
1299
- readonly name: "installBlock";
1300
- readonly type: "uint256";
1301
- }, {
1302
- readonly name: "paidThroughBlock";
1303
- readonly type: "uint256";
1304
- }];
1305
2600
  readonly name: "";
1306
- readonly type: "tuple";
2601
+ readonly type: "address";
1307
2602
  }];
2603
+ }, {
1308
2604
  readonly stateMutability: "view";
1309
2605
  readonly type: "function";
1310
- }, {
1311
- readonly inputs: readonly [{
1312
- readonly name: "arg0";
1313
- readonly type: "address";
1314
- }];
1315
- readonly name: "reserveAssets";
2606
+ readonly name: "MIN_TIMELOCK";
2607
+ readonly inputs: readonly [];
1316
2608
  readonly outputs: readonly [{
1317
2609
  readonly name: "";
1318
2610
  readonly type: "uint256";
1319
2611
  }];
2612
+ }, {
1320
2613
  readonly stateMutability: "view";
1321
2614
  readonly type: "function";
2615
+ readonly name: "MAX_TIMELOCK";
2616
+ readonly inputs: readonly [];
2617
+ readonly outputs: readonly [{
2618
+ readonly name: "";
2619
+ readonly type: "uint256";
2620
+ }];
1322
2621
  }, {
2622
+ readonly stateMutability: "nonpayable";
2623
+ readonly type: "constructor";
1323
2624
  readonly inputs: readonly [{
1324
- readonly name: "arg0";
2625
+ readonly name: "_undyHq";
1325
2626
  readonly type: "address";
1326
- }];
1327
- readonly name: "agentSettings";
1328
- readonly outputs: readonly [{
2627
+ }, {
2628
+ readonly name: "_owner";
2629
+ readonly type: "address";
2630
+ }, {
2631
+ readonly name: "_groupId";
2632
+ readonly type: "uint256";
2633
+ }, {
2634
+ readonly name: "_trialFundsAsset";
2635
+ readonly type: "address";
2636
+ }, {
2637
+ readonly name: "_trialFundsAmount";
2638
+ readonly type: "uint256";
2639
+ }, {
2640
+ readonly name: "_globalManagerSettings";
2641
+ readonly type: "tuple";
2642
+ readonly components: readonly [{
2643
+ readonly name: "managerPeriod";
2644
+ readonly type: "uint256";
2645
+ }, {
2646
+ readonly name: "startDelay";
2647
+ readonly type: "uint256";
2648
+ }, {
2649
+ readonly name: "activationLength";
2650
+ readonly type: "uint256";
2651
+ }, {
2652
+ readonly name: "canOwnerManage";
2653
+ readonly type: "bool";
2654
+ }, {
2655
+ readonly name: "limits";
2656
+ readonly type: "tuple";
2657
+ readonly components: readonly [{
2658
+ readonly name: "maxUsdValuePerTx";
2659
+ readonly type: "uint256";
2660
+ }, {
2661
+ readonly name: "maxUsdValuePerPeriod";
2662
+ readonly type: "uint256";
2663
+ }, {
2664
+ readonly name: "maxUsdValueLifetime";
2665
+ readonly type: "uint256";
2666
+ }, {
2667
+ readonly name: "maxNumTxsPerPeriod";
2668
+ readonly type: "uint256";
2669
+ }, {
2670
+ readonly name: "txCooldownBlocks";
2671
+ readonly type: "uint256";
2672
+ }, {
2673
+ readonly name: "failOnZeroPrice";
2674
+ readonly type: "bool";
2675
+ }];
2676
+ }, {
2677
+ readonly name: "legoPerms";
2678
+ readonly type: "tuple";
2679
+ readonly components: readonly [{
2680
+ readonly name: "canManageYield";
2681
+ readonly type: "bool";
2682
+ }, {
2683
+ readonly name: "canBuyAndSell";
2684
+ readonly type: "bool";
2685
+ }, {
2686
+ readonly name: "canManageDebt";
2687
+ readonly type: "bool";
2688
+ }, {
2689
+ readonly name: "canManageLiq";
2690
+ readonly type: "bool";
2691
+ }, {
2692
+ readonly name: "canClaimRewards";
2693
+ readonly type: "bool";
2694
+ }, {
2695
+ readonly name: "allowedLegos";
2696
+ readonly type: "uint256[]";
2697
+ }];
2698
+ }, {
2699
+ readonly name: "whitelistPerms";
2700
+ readonly type: "tuple";
2701
+ readonly components: readonly [{
2702
+ readonly name: "canAddPending";
2703
+ readonly type: "bool";
2704
+ }, {
2705
+ readonly name: "canConfirm";
2706
+ readonly type: "bool";
2707
+ }, {
2708
+ readonly name: "canCancel";
2709
+ readonly type: "bool";
2710
+ }, {
2711
+ readonly name: "canRemove";
2712
+ readonly type: "bool";
2713
+ }];
2714
+ }, {
2715
+ readonly name: "transferPerms";
2716
+ readonly type: "tuple";
2717
+ readonly components: readonly [{
2718
+ readonly name: "canTransfer";
2719
+ readonly type: "bool";
2720
+ }, {
2721
+ readonly name: "canCreateCheque";
2722
+ readonly type: "bool";
2723
+ }, {
2724
+ readonly name: "canAddPendingPayee";
2725
+ readonly type: "bool";
2726
+ }, {
2727
+ readonly name: "allowedPayees";
2728
+ readonly type: "address[]";
2729
+ }];
2730
+ }, {
2731
+ readonly name: "allowedAssets";
2732
+ readonly type: "address[]";
2733
+ }];
2734
+ }, {
2735
+ readonly name: "_globalPayeeSettings";
2736
+ readonly type: "tuple";
2737
+ readonly components: readonly [{
2738
+ readonly name: "defaultPeriodLength";
2739
+ readonly type: "uint256";
2740
+ }, {
2741
+ readonly name: "startDelay";
2742
+ readonly type: "uint256";
2743
+ }, {
2744
+ readonly name: "activationLength";
2745
+ readonly type: "uint256";
2746
+ }, {
2747
+ readonly name: "maxNumTxsPerPeriod";
2748
+ readonly type: "uint256";
2749
+ }, {
2750
+ readonly name: "txCooldownBlocks";
2751
+ readonly type: "uint256";
2752
+ }, {
2753
+ readonly name: "failOnZeroPrice";
2754
+ readonly type: "bool";
2755
+ }, {
2756
+ readonly name: "usdLimits";
2757
+ readonly type: "tuple";
2758
+ readonly components: readonly [{
2759
+ readonly name: "perTxCap";
2760
+ readonly type: "uint256";
2761
+ }, {
2762
+ readonly name: "perPeriodCap";
2763
+ readonly type: "uint256";
2764
+ }, {
2765
+ readonly name: "lifetimeCap";
2766
+ readonly type: "uint256";
2767
+ }];
2768
+ }, {
2769
+ readonly name: "canPayOwner";
2770
+ readonly type: "bool";
2771
+ }, {
2772
+ readonly name: "canPull";
2773
+ readonly type: "bool";
2774
+ }];
2775
+ }, {
2776
+ readonly name: "_chequeSettings";
2777
+ readonly type: "tuple";
1329
2778
  readonly components: readonly [{
1330
- readonly name: "isActive";
2779
+ readonly name: "maxNumActiveCheques";
2780
+ readonly type: "uint256";
2781
+ }, {
2782
+ readonly name: "maxChequeUsdValue";
2783
+ readonly type: "uint256";
2784
+ }, {
2785
+ readonly name: "instantUsdThreshold";
2786
+ readonly type: "uint256";
2787
+ }, {
2788
+ readonly name: "perPeriodPaidUsdCap";
2789
+ readonly type: "uint256";
2790
+ }, {
2791
+ readonly name: "maxNumChequesPaidPerPeriod";
2792
+ readonly type: "uint256";
2793
+ }, {
2794
+ readonly name: "payCooldownBlocks";
2795
+ readonly type: "uint256";
2796
+ }, {
2797
+ readonly name: "perPeriodCreatedUsdCap";
2798
+ readonly type: "uint256";
2799
+ }, {
2800
+ readonly name: "maxNumChequesCreatedPerPeriod";
2801
+ readonly type: "uint256";
2802
+ }, {
2803
+ readonly name: "createCooldownBlocks";
2804
+ readonly type: "uint256";
2805
+ }, {
2806
+ readonly name: "periodLength";
2807
+ readonly type: "uint256";
2808
+ }, {
2809
+ readonly name: "expensiveDelayBlocks";
2810
+ readonly type: "uint256";
2811
+ }, {
2812
+ readonly name: "defaultExpiryBlocks";
2813
+ readonly type: "uint256";
2814
+ }, {
2815
+ readonly name: "allowedAssets";
2816
+ readonly type: "address[]";
2817
+ }, {
2818
+ readonly name: "canManagersCreateCheques";
2819
+ readonly type: "bool";
2820
+ }, {
2821
+ readonly name: "canManagerPay";
1331
2822
  readonly type: "bool";
1332
2823
  }, {
1333
- readonly name: "installBlock";
2824
+ readonly name: "canBePulled";
2825
+ readonly type: "bool";
2826
+ }];
2827
+ }, {
2828
+ readonly name: "_startingAgent";
2829
+ readonly type: "address";
2830
+ }, {
2831
+ readonly name: "_starterAgentSettings";
2832
+ readonly type: "tuple";
2833
+ readonly components: readonly [{
2834
+ readonly name: "startBlock";
1334
2835
  readonly type: "uint256";
1335
2836
  }, {
1336
- readonly name: "paidThroughBlock";
2837
+ readonly name: "expiryBlock";
1337
2838
  readonly type: "uint256";
1338
2839
  }, {
1339
- readonly name: "allowedAssets";
1340
- readonly type: "address[]";
1341
- }, {
1342
- readonly name: "allowedLegoIds";
1343
- readonly type: "uint256[]";
2840
+ readonly name: "limits";
2841
+ readonly type: "tuple";
2842
+ readonly components: readonly [{
2843
+ readonly name: "maxUsdValuePerTx";
2844
+ readonly type: "uint256";
2845
+ }, {
2846
+ readonly name: "maxUsdValuePerPeriod";
2847
+ readonly type: "uint256";
2848
+ }, {
2849
+ readonly name: "maxUsdValueLifetime";
2850
+ readonly type: "uint256";
2851
+ }, {
2852
+ readonly name: "maxNumTxsPerPeriod";
2853
+ readonly type: "uint256";
2854
+ }, {
2855
+ readonly name: "txCooldownBlocks";
2856
+ readonly type: "uint256";
2857
+ }, {
2858
+ readonly name: "failOnZeroPrice";
2859
+ readonly type: "bool";
2860
+ }];
1344
2861
  }, {
2862
+ readonly name: "legoPerms";
2863
+ readonly type: "tuple";
1345
2864
  readonly components: readonly [{
1346
- readonly name: "isSet";
2865
+ readonly name: "canManageYield";
1347
2866
  readonly type: "bool";
1348
2867
  }, {
1349
- readonly name: "canDeposit";
2868
+ readonly name: "canBuyAndSell";
1350
2869
  readonly type: "bool";
1351
2870
  }, {
1352
- readonly name: "canWithdraw";
2871
+ readonly name: "canManageDebt";
1353
2872
  readonly type: "bool";
1354
2873
  }, {
1355
- readonly name: "canRebalance";
2874
+ readonly name: "canManageLiq";
1356
2875
  readonly type: "bool";
1357
2876
  }, {
1358
- readonly name: "canTransfer";
2877
+ readonly name: "canClaimRewards";
1359
2878
  readonly type: "bool";
1360
2879
  }, {
1361
- readonly name: "canSwap";
2880
+ readonly name: "allowedLegos";
2881
+ readonly type: "uint256[]";
2882
+ }];
2883
+ }, {
2884
+ readonly name: "whitelistPerms";
2885
+ readonly type: "tuple";
2886
+ readonly components: readonly [{
2887
+ readonly name: "canAddPending";
1362
2888
  readonly type: "bool";
1363
2889
  }, {
1364
- readonly name: "canConvert";
2890
+ readonly name: "canConfirm";
1365
2891
  readonly type: "bool";
1366
2892
  }, {
1367
- readonly name: "canAddLiq";
2893
+ readonly name: "canCancel";
1368
2894
  readonly type: "bool";
1369
2895
  }, {
1370
- readonly name: "canRemoveLiq";
2896
+ readonly name: "canRemove";
1371
2897
  readonly type: "bool";
1372
- }, {
1373
- readonly name: "canClaimRewards";
2898
+ }];
2899
+ }, {
2900
+ readonly name: "transferPerms";
2901
+ readonly type: "tuple";
2902
+ readonly components: readonly [{
2903
+ readonly name: "canTransfer";
1374
2904
  readonly type: "bool";
1375
2905
  }, {
1376
- readonly name: "canBorrow";
2906
+ readonly name: "canCreateCheque";
1377
2907
  readonly type: "bool";
1378
2908
  }, {
1379
- readonly name: "canRepay";
2909
+ readonly name: "canAddPendingPayee";
1380
2910
  readonly type: "bool";
2911
+ }, {
2912
+ readonly name: "allowedPayees";
2913
+ readonly type: "address[]";
1381
2914
  }];
1382
- readonly name: "allowedActions";
1383
- readonly type: "tuple";
1384
- }];
1385
- readonly name: "";
1386
- readonly type: "tuple";
1387
- }];
1388
- readonly stateMutability: "view";
1389
- readonly type: "function";
1390
- }, {
1391
- readonly inputs: readonly [{
1392
- readonly name: "arg0";
1393
- readonly type: "address";
1394
- }];
1395
- readonly name: "isRecipientAllowed";
1396
- readonly outputs: readonly [{
1397
- readonly name: "";
1398
- readonly type: "bool";
1399
- }];
1400
- readonly stateMutability: "view";
1401
- readonly type: "function";
1402
- }, {
1403
- readonly inputs: readonly [{
1404
- readonly name: "arg0";
1405
- readonly type: "address";
1406
- }];
1407
- readonly name: "pendingWhitelist";
1408
- readonly outputs: readonly [{
1409
- readonly components: readonly [{
1410
- readonly name: "initiatedBlock";
1411
- readonly type: "uint256";
1412
2915
  }, {
1413
- readonly name: "confirmBlock";
1414
- readonly type: "uint256";
2916
+ readonly name: "allowedAssets";
2917
+ readonly type: "address[]";
2918
+ }, {
2919
+ readonly name: "canClaimLoot";
2920
+ readonly type: "bool";
1415
2921
  }];
1416
- readonly name: "";
1417
- readonly type: "tuple";
1418
- }];
1419
- readonly stateMutability: "view";
1420
- readonly type: "function";
1421
- }, {
1422
- readonly inputs: readonly [];
1423
- readonly name: "canTransferToAltOwnerWallets";
1424
- readonly outputs: readonly [{
1425
- readonly name: "";
1426
- readonly type: "bool";
1427
- }];
1428
- readonly stateMutability: "view";
1429
- readonly type: "function";
1430
- }, {
1431
- readonly inputs: readonly [];
1432
- readonly name: "canWalletBeAmbassador";
1433
- readonly outputs: readonly [{
1434
- readonly name: "";
1435
- readonly type: "bool";
1436
- }];
1437
- readonly stateMutability: "view";
1438
- readonly type: "function";
1439
- }, {
1440
- readonly inputs: readonly [];
1441
- readonly name: "ambassadorForwarder";
1442
- readonly outputs: readonly [{
1443
- readonly name: "";
1444
- readonly type: "address";
1445
- }];
1446
- readonly stateMutability: "view";
1447
- readonly type: "function";
1448
- }, {
1449
- readonly inputs: readonly [];
1450
- readonly name: "myAmbassador";
1451
- readonly outputs: readonly [{
1452
- readonly name: "";
1453
- readonly type: "address";
1454
- }];
1455
- readonly stateMutability: "view";
1456
- readonly type: "function";
1457
- }, {
1458
- readonly inputs: readonly [];
1459
- readonly name: "didMigrateIn";
1460
- readonly outputs: readonly [{
1461
- readonly name: "";
1462
- readonly type: "bool";
1463
- }];
1464
- readonly stateMutability: "view";
1465
- readonly type: "function";
1466
- }, {
1467
- readonly inputs: readonly [];
1468
- readonly name: "didMigrateOut";
1469
- readonly outputs: readonly [{
1470
- readonly name: "";
1471
- readonly type: "bool";
1472
- }];
1473
- readonly stateMutability: "view";
1474
- readonly type: "function";
1475
- }, {
1476
- readonly inputs: readonly [{
1477
- readonly name: "arg0";
2922
+ }, {
2923
+ readonly name: "_kernel";
1478
2924
  readonly type: "address";
1479
- }];
1480
- readonly name: "isVaultToken";
1481
- readonly outputs: readonly [{
1482
- readonly name: "";
1483
- readonly type: "bool";
1484
- }];
1485
- readonly stateMutability: "view";
1486
- readonly type: "function";
1487
- }, {
1488
- readonly inputs: readonly [{
1489
- readonly name: "arg0";
2925
+ }, {
2926
+ readonly name: "_sentinel";
1490
2927
  readonly type: "address";
1491
- }];
1492
- readonly name: "vaultTokenAmounts";
1493
- readonly outputs: readonly [{
1494
- readonly name: "";
1495
- readonly type: "uint256";
1496
- }];
1497
- readonly stateMutability: "view";
1498
- readonly type: "function";
1499
- }, {
1500
- readonly inputs: readonly [{
1501
- readonly name: "arg0";
2928
+ }, {
2929
+ readonly name: "_highCommand";
1502
2930
  readonly type: "address";
1503
- }];
1504
- readonly name: "depositedAmounts";
1505
- readonly outputs: readonly [{
1506
- readonly name: "";
1507
- readonly type: "uint256";
1508
- }];
1509
- readonly stateMutability: "view";
1510
- readonly type: "function";
1511
- }, {
1512
- readonly inputs: readonly [];
1513
- readonly name: "ADDY_REGISTRY";
1514
- readonly outputs: readonly [{
1515
- readonly name: "";
2931
+ }, {
2932
+ readonly name: "_paymaster";
1516
2933
  readonly type: "address";
1517
- }];
1518
- readonly stateMutability: "view";
1519
- readonly type: "function";
1520
- }, {
1521
- readonly inputs: readonly [{
1522
- readonly name: "_owner";
2934
+ }, {
2935
+ readonly name: "_chequeBook";
1523
2936
  readonly type: "address";
1524
2937
  }, {
1525
- readonly name: "_initialAgent";
2938
+ readonly name: "_migrator";
1526
2939
  readonly type: "address";
1527
2940
  }, {
1528
- readonly name: "_ambassador";
2941
+ readonly name: "_wethAddr";
1529
2942
  readonly type: "address";
1530
2943
  }, {
1531
- readonly name: "_addyRegistry";
2944
+ readonly name: "_ethAddr";
1532
2945
  readonly type: "address";
1533
2946
  }, {
1534
- readonly name: "_minOwnerChangeDelay";
2947
+ readonly name: "_minTimeLock";
1535
2948
  readonly type: "uint256";
1536
2949
  }, {
1537
- readonly name: "_maxOwnerChangeDelay";
2950
+ readonly name: "_maxTimeLock";
1538
2951
  readonly type: "uint256";
1539
2952
  }];
1540
2953
  readonly outputs: readonly [];
1541
- readonly stateMutability: "nonpayable";
1542
- readonly type: "constructor";
1543
2954
  }];
1544
2955
  export declare const deployAddress: Address | undefined;
1545
2956
  export type Contract = {
1546
2957
  calls: {
1547
2958
  hasPendingOwnerChange: () => Promise<boolean>;
1548
2959
  owner: () => Promise<`0x${string}`>;
2960
+ ownershipTimeLock: () => Promise<bigint>;
1549
2961
  pendingOwner: () => Promise<{
1550
2962
  newOwner: `0x${string}`;
1551
2963
  initiatedBlock: bigint;
1552
2964
  confirmBlock: bigint;
1553
2965
  }>;
1554
- ownershipChangeDelay: () => Promise<bigint>;
1555
- MIN_OWNER_CHANGE_DELAY: () => Promise<bigint>;
1556
- MAX_OWNER_CHANGE_DELAY: () => Promise<bigint>;
1557
- _ADDY_REGISTRY: () => Promise<`0x${string}`>;
2966
+ MIN_OWNERSHIP_TIMELOCK: () => Promise<bigint>;
2967
+ MAX_OWNERSHIP_TIMELOCK: () => Promise<bigint>;
1558
2968
  apiVersion: () => Promise<string>;
1559
- isAgentActive: (agent: `0x${string}`) => Promise<boolean>;
1560
- canAgentAccess: (agent: `0x${string}`, action: bigint, assets: `0x${string}`[], legoIds: bigint[]) => Promise<boolean>;
1561
- getAgentSubscriptionStatus: (agent: `0x${string}`) => Promise<{
1562
- recipient: `0x${string}`;
1563
- asset: `0x${string}`;
1564
- amount: bigint;
1565
- usdValue: bigint;
1566
- paidThroughBlock: bigint;
1567
- didChange: boolean;
1568
- }>;
1569
- getProtocolSubscriptionStatus: () => Promise<{
1570
- recipient: `0x${string}`;
1571
- asset: `0x${string}`;
1572
- amount: bigint;
1573
- usdValue: bigint;
1574
- paidThroughBlock: bigint;
1575
- didChange: boolean;
2969
+ checkSignerPermissionsAndGetBundle: (signer: `0x${string}`, action: bigint, assets?: `0x${string}`[], legoIds?: bigint[], transferRecipient?: `0x${string}`) => Promise<{
2970
+ ledger: `0x${string}`;
2971
+ missionControl: `0x${string}`;
2972
+ legoBook: `0x${string}`;
2973
+ hatchery: `0x${string}`;
2974
+ lootDistributor: `0x${string}`;
2975
+ appraiser: `0x${string}`;
2976
+ billing: `0x${string}`;
2977
+ wallet: `0x${string}`;
2978
+ walletConfig: `0x${string}`;
2979
+ walletOwner: `0x${string}`;
2980
+ inEjectMode: boolean;
2981
+ isFrozen: boolean;
2982
+ lastTotalUsdValue: bigint;
2983
+ signer: `0x${string}`;
2984
+ isManager: boolean;
2985
+ legoId: bigint;
2986
+ legoAddr: `0x${string}`;
2987
+ eth: `0x${string}`;
2988
+ weth: `0x${string}`;
1576
2989
  }>;
1577
- canMakeSubscriptionPayments: (agent: `0x${string}`) => Promise<[boolean, boolean]>;
1578
- getAvailableTxAmount: (asset: `0x${string}`, wantedAmount: bigint, shouldCheckTrialFunds: boolean, cd?: {
1579
- owner: `0x${string}`;
2990
+ getTrialFundsInfo: () => Promise<[`0x${string}`, bigint]>;
2991
+ getActionDataBundle: (legoId: bigint, signer: `0x${string}`) => Promise<{
2992
+ ledger: `0x${string}`;
2993
+ missionControl: `0x${string}`;
2994
+ legoBook: `0x${string}`;
2995
+ hatchery: `0x${string}`;
2996
+ lootDistributor: `0x${string}`;
2997
+ appraiser: `0x${string}`;
2998
+ billing: `0x${string}`;
1580
2999
  wallet: `0x${string}`;
1581
3000
  walletConfig: `0x${string}`;
1582
- addyRegistry: `0x${string}`;
1583
- agentFactory: `0x${string}`;
1584
- legoRegistry: `0x${string}`;
1585
- priceSheets: `0x${string}`;
1586
- oracleRegistry: `0x${string}`;
1587
- trialFundsAsset: `0x${string}`;
1588
- trialFundsInitialAmount: bigint;
1589
- }) => Promise<bigint>;
1590
- canTransferToRecipient: (recipient: `0x${string}`) => Promise<boolean>;
1591
- doesWalletHaveSameOwner: (wallet: `0x${string}`) => Promise<boolean>;
1592
- getProceedsAddr: () => Promise<`0x${string}`>;
1593
- wallet: () => Promise<`0x${string}`>;
1594
- didSetWallet: () => Promise<boolean>;
1595
- protocolSub: () => Promise<{
1596
- installBlock: bigint;
1597
- paidThroughBlock: bigint;
3001
+ walletOwner: `0x${string}`;
3002
+ inEjectMode: boolean;
3003
+ isFrozen: boolean;
3004
+ lastTotalUsdValue: bigint;
3005
+ signer: `0x${string}`;
3006
+ isManager: boolean;
3007
+ legoId: bigint;
3008
+ legoAddr: `0x${string}`;
3009
+ eth: `0x${string}`;
3010
+ weth: `0x${string}`;
1598
3011
  }>;
1599
- reserveAssets: (arg0: `0x${string}`) => Promise<bigint>;
1600
- agentSettings: (arg0: `0x${string}`) => Promise<{
1601
- isActive: boolean;
1602
- installBlock: bigint;
1603
- paidThroughBlock: bigint;
1604
- allowedAssets: `0x${string}`[];
1605
- allowedLegoIds: bigint[];
1606
- allowedActions: {
1607
- isSet: boolean;
1608
- canDeposit: boolean;
1609
- canWithdraw: boolean;
1610
- canRebalance: boolean;
1611
- canTransfer: boolean;
1612
- canSwap: boolean;
1613
- canConvert: boolean;
1614
- canAddLiq: boolean;
1615
- canRemoveLiq: boolean;
3012
+ wallet: () => Promise<`0x${string}`>;
3013
+ kernel: () => Promise<`0x${string}`>;
3014
+ sentinel: () => Promise<`0x${string}`>;
3015
+ highCommand: () => Promise<`0x${string}`>;
3016
+ paymaster: () => Promise<`0x${string}`>;
3017
+ chequeBook: () => Promise<`0x${string}`>;
3018
+ migrator: () => Promise<`0x${string}`>;
3019
+ trialFundsAsset: () => Promise<`0x${string}`>;
3020
+ trialFundsAmount: () => Promise<bigint>;
3021
+ managerSettings: (arg0: `0x${string}`) => Promise<{
3022
+ startBlock: bigint;
3023
+ expiryBlock: bigint;
3024
+ limits: {
3025
+ maxUsdValuePerTx: bigint;
3026
+ maxUsdValuePerPeriod: bigint;
3027
+ maxUsdValueLifetime: bigint;
3028
+ maxNumTxsPerPeriod: bigint;
3029
+ txCooldownBlocks: bigint;
3030
+ failOnZeroPrice: boolean;
3031
+ };
3032
+ legoPerms: {
3033
+ canManageYield: boolean;
3034
+ canBuyAndSell: boolean;
3035
+ canManageDebt: boolean;
3036
+ canManageLiq: boolean;
1616
3037
  canClaimRewards: boolean;
1617
- canBorrow: boolean;
1618
- canRepay: boolean;
3038
+ allowedLegos: bigint[];
3039
+ };
3040
+ whitelistPerms: {
3041
+ canAddPending: boolean;
3042
+ canConfirm: boolean;
3043
+ canCancel: boolean;
3044
+ canRemove: boolean;
3045
+ };
3046
+ transferPerms: {
3047
+ canTransfer: boolean;
3048
+ canCreateCheque: boolean;
3049
+ canAddPendingPayee: boolean;
3050
+ allowedPayees: `0x${string}`[];
3051
+ };
3052
+ allowedAssets: `0x${string}`[];
3053
+ canClaimLoot: boolean;
3054
+ }>;
3055
+ managerPeriodData: (arg0: `0x${string}`) => Promise<{
3056
+ numTxsInPeriod: bigint;
3057
+ totalUsdValueInPeriod: bigint;
3058
+ totalNumTxs: bigint;
3059
+ totalUsdValue: bigint;
3060
+ lastTxBlock: bigint;
3061
+ periodStartBlock: bigint;
3062
+ }>;
3063
+ managers: (arg0: bigint) => Promise<`0x${string}`>;
3064
+ indexOfManager: (arg0: `0x${string}`) => Promise<bigint>;
3065
+ numManagers: () => Promise<bigint>;
3066
+ payeeSettings: (arg0: `0x${string}`) => Promise<{
3067
+ startBlock: bigint;
3068
+ expiryBlock: bigint;
3069
+ canPull: boolean;
3070
+ periodLength: bigint;
3071
+ maxNumTxsPerPeriod: bigint;
3072
+ txCooldownBlocks: bigint;
3073
+ failOnZeroPrice: boolean;
3074
+ primaryAsset: `0x${string}`;
3075
+ onlyPrimaryAsset: boolean;
3076
+ unitLimits: {
3077
+ perTxCap: bigint;
3078
+ perPeriodCap: bigint;
3079
+ lifetimeCap: bigint;
3080
+ };
3081
+ usdLimits: {
3082
+ perTxCap: bigint;
3083
+ perPeriodCap: bigint;
3084
+ lifetimeCap: bigint;
1619
3085
  };
1620
3086
  }>;
1621
- isRecipientAllowed: (arg0: `0x${string}`) => Promise<boolean>;
3087
+ payeePeriodData: (arg0: `0x${string}`) => Promise<{
3088
+ numTxsInPeriod: bigint;
3089
+ totalUnitsInPeriod: bigint;
3090
+ totalUsdValueInPeriod: bigint;
3091
+ totalNumTxs: bigint;
3092
+ totalUnits: bigint;
3093
+ totalUsdValue: bigint;
3094
+ lastTxBlock: bigint;
3095
+ periodStartBlock: bigint;
3096
+ }>;
3097
+ payees: (arg0: bigint) => Promise<`0x${string}`>;
3098
+ indexOfPayee: (arg0: `0x${string}`) => Promise<bigint>;
3099
+ numPayees: () => Promise<bigint>;
3100
+ pendingPayees: (arg0: `0x${string}`) => Promise<{
3101
+ settings: {
3102
+ startBlock: bigint;
3103
+ expiryBlock: bigint;
3104
+ canPull: boolean;
3105
+ periodLength: bigint;
3106
+ maxNumTxsPerPeriod: bigint;
3107
+ txCooldownBlocks: bigint;
3108
+ failOnZeroPrice: boolean;
3109
+ primaryAsset: `0x${string}`;
3110
+ onlyPrimaryAsset: boolean;
3111
+ unitLimits: {
3112
+ perTxCap: bigint;
3113
+ perPeriodCap: bigint;
3114
+ lifetimeCap: bigint;
3115
+ };
3116
+ usdLimits: {
3117
+ perTxCap: bigint;
3118
+ perPeriodCap: bigint;
3119
+ lifetimeCap: bigint;
3120
+ };
3121
+ };
3122
+ initiatedBlock: bigint;
3123
+ confirmBlock: bigint;
3124
+ currentOwner: `0x${string}`;
3125
+ }>;
3126
+ whitelistAddr: (arg0: bigint) => Promise<`0x${string}`>;
3127
+ indexOfWhitelist: (arg0: `0x${string}`) => Promise<bigint>;
3128
+ numWhitelisted: () => Promise<bigint>;
1622
3129
  pendingWhitelist: (arg0: `0x${string}`) => Promise<{
1623
3130
  initiatedBlock: bigint;
1624
3131
  confirmBlock: bigint;
3132
+ currentOwner: `0x${string}`;
3133
+ }>;
3134
+ cheques: (arg0: `0x${string}`) => Promise<{
3135
+ recipient: `0x${string}`;
3136
+ asset: `0x${string}`;
3137
+ amount: bigint;
3138
+ creationBlock: bigint;
3139
+ unlockBlock: bigint;
3140
+ expiryBlock: bigint;
3141
+ usdValueOnCreation: bigint;
3142
+ canManagerPay: boolean;
3143
+ canBePulled: boolean;
3144
+ creator: `0x${string}`;
3145
+ active: boolean;
3146
+ }>;
3147
+ chequeSettings: () => Promise<{
3148
+ maxNumActiveCheques: bigint;
3149
+ maxChequeUsdValue: bigint;
3150
+ instantUsdThreshold: bigint;
3151
+ perPeriodPaidUsdCap: bigint;
3152
+ maxNumChequesPaidPerPeriod: bigint;
3153
+ payCooldownBlocks: bigint;
3154
+ perPeriodCreatedUsdCap: bigint;
3155
+ maxNumChequesCreatedPerPeriod: bigint;
3156
+ createCooldownBlocks: bigint;
3157
+ periodLength: bigint;
3158
+ expensiveDelayBlocks: bigint;
3159
+ defaultExpiryBlocks: bigint;
3160
+ allowedAssets: `0x${string}`[];
3161
+ canManagersCreateCheques: boolean;
3162
+ canManagerPay: boolean;
3163
+ canBePulled: boolean;
3164
+ }>;
3165
+ chequePeriodData: () => Promise<{
3166
+ numChequesPaidInPeriod: bigint;
3167
+ totalUsdValuePaidInPeriod: bigint;
3168
+ totalNumChequesPaid: bigint;
3169
+ totalUsdValuePaid: bigint;
3170
+ lastChequePaidBlock: bigint;
3171
+ numChequesCreatedInPeriod: bigint;
3172
+ totalUsdValueCreatedInPeriod: bigint;
3173
+ totalNumChequesCreated: bigint;
3174
+ totalUsdValueCreated: bigint;
3175
+ lastChequeCreatedBlock: bigint;
3176
+ periodStartBlock: bigint;
3177
+ }>;
3178
+ numActiveCheques: () => Promise<bigint>;
3179
+ globalManagerSettings: () => Promise<{
3180
+ managerPeriod: bigint;
3181
+ startDelay: bigint;
3182
+ activationLength: bigint;
3183
+ canOwnerManage: boolean;
3184
+ limits: {
3185
+ maxUsdValuePerTx: bigint;
3186
+ maxUsdValuePerPeriod: bigint;
3187
+ maxUsdValueLifetime: bigint;
3188
+ maxNumTxsPerPeriod: bigint;
3189
+ txCooldownBlocks: bigint;
3190
+ failOnZeroPrice: boolean;
3191
+ };
3192
+ legoPerms: {
3193
+ canManageYield: boolean;
3194
+ canBuyAndSell: boolean;
3195
+ canManageDebt: boolean;
3196
+ canManageLiq: boolean;
3197
+ canClaimRewards: boolean;
3198
+ allowedLegos: bigint[];
3199
+ };
3200
+ whitelistPerms: {
3201
+ canAddPending: boolean;
3202
+ canConfirm: boolean;
3203
+ canCancel: boolean;
3204
+ canRemove: boolean;
3205
+ };
3206
+ transferPerms: {
3207
+ canTransfer: boolean;
3208
+ canCreateCheque: boolean;
3209
+ canAddPendingPayee: boolean;
3210
+ allowedPayees: `0x${string}`[];
3211
+ };
3212
+ allowedAssets: `0x${string}`[];
1625
3213
  }>;
1626
- canTransferToAltOwnerWallets: () => Promise<boolean>;
1627
- canWalletBeAmbassador: () => Promise<boolean>;
1628
- ambassadorForwarder: () => Promise<`0x${string}`>;
1629
- myAmbassador: () => Promise<`0x${string}`>;
1630
- didMigrateIn: () => Promise<boolean>;
1631
- didMigrateOut: () => Promise<boolean>;
1632
- isVaultToken: (arg0: `0x${string}`) => Promise<boolean>;
1633
- vaultTokenAmounts: (arg0: `0x${string}`) => Promise<bigint>;
1634
- depositedAmounts: (arg0: `0x${string}`) => Promise<bigint>;
1635
- ADDY_REGISTRY: () => Promise<`0x${string}`>;
3214
+ globalPayeeSettings: () => Promise<{
3215
+ defaultPeriodLength: bigint;
3216
+ startDelay: bigint;
3217
+ activationLength: bigint;
3218
+ maxNumTxsPerPeriod: bigint;
3219
+ txCooldownBlocks: bigint;
3220
+ failOnZeroPrice: boolean;
3221
+ usdLimits: {
3222
+ perTxCap: bigint;
3223
+ perPeriodCap: bigint;
3224
+ lifetimeCap: bigint;
3225
+ };
3226
+ canPayOwner: boolean;
3227
+ canPull: boolean;
3228
+ }>;
3229
+ timeLock: () => Promise<bigint>;
3230
+ isFrozen: () => Promise<boolean>;
3231
+ inEjectMode: () => Promise<boolean>;
3232
+ groupId: () => Promise<bigint>;
3233
+ startingAgent: () => Promise<`0x${string}`>;
3234
+ didSetWallet: () => Promise<boolean>;
3235
+ UNDY_HQ: () => Promise<`0x${string}`>;
3236
+ WETH: () => Promise<`0x${string}`>;
3237
+ ETH: () => Promise<`0x${string}`>;
3238
+ MIN_TIMELOCK: () => Promise<bigint>;
3239
+ MAX_TIMELOCK: () => Promise<bigint>;
1636
3240
  };
1637
3241
  mutations: {
1638
3242
  changeOwnership: (newOwner: `0x${string}`) => Promise<void>;
1639
3243
  confirmOwnershipChange: () => Promise<void>;
1640
3244
  cancelOwnershipChange: () => Promise<void>;
1641
- setOwnershipChangeDelay: (numBlocks: bigint) => Promise<void>;
3245
+ setOwnershipTimeLock: (numBlocks: bigint) => Promise<void>;
1642
3246
  setWallet: (wallet: `0x${string}`) => Promise<boolean>;
1643
- handleSubscriptionsAndPermissions: (agent: `0x${string}`, action: bigint, assets: `0x${string}`[], legoIds: bigint[], cd: {
1644
- owner: `0x${string}`;
1645
- wallet: `0x${string}`;
1646
- walletConfig: `0x${string}`;
1647
- addyRegistry: `0x${string}`;
1648
- agentFactory: `0x${string}`;
1649
- legoRegistry: `0x${string}`;
1650
- priceSheets: `0x${string}`;
1651
- oracleRegistry: `0x${string}`;
1652
- trialFundsAsset: `0x${string}`;
1653
- trialFundsInitialAmount: bigint;
1654
- }) => Promise<[
1655
- {
1656
- recipient: `0x${string}`;
1657
- asset: `0x${string}`;
1658
- amount: bigint;
1659
- usdValue: bigint;
1660
- paidThroughBlock: bigint;
1661
- didChange: boolean;
1662
- },
1663
- {
1664
- recipient: `0x${string}`;
1665
- asset: `0x${string}`;
1666
- amount: bigint;
1667
- usdValue: bigint;
1668
- paidThroughBlock: bigint;
1669
- didChange: boolean;
1670
- }
1671
- ]>;
1672
- updateYieldTrackingOnDeposit: (asset: `0x${string}`, vaultToken: `0x${string}`, vaultTokenAmountReceived: bigint, assetAmountDeposited: bigint, legoRegistry: `0x${string}`) => Promise<void>;
1673
- updateYieldTrackingOnWithdrawal: (vaultToken: `0x${string}`, vaultTokenAmountBurned: bigint, asset: `0x${string}`, assetAmountReceived: bigint, legoRegistry: `0x${string}`) => Promise<bigint>;
1674
- updateYieldTrackingOnSwap: (tokenIn: `0x${string}`, tokenOut: `0x${string}`, tokenOutAmount: bigint, legoRegistry: `0x${string}`) => Promise<void>;
1675
- updateYieldTrackingOnEntry: (asset: `0x${string}`, amount: bigint, legoRegistry: `0x${string}`) => Promise<void>;
1676
- updateYieldTrackingOnExit: (asset: `0x${string}`, legoRegistry: `0x${string}`) => Promise<void>;
1677
- startMigrationOut: (newWallet: `0x${string}`, assetsToMigrate?: `0x${string}`[], whitelistToMigrate?: `0x${string}`[]) => Promise<boolean>;
1678
- finishMigrationIn: (whitelistToMigrate: `0x${string}`[], assetsMigrated: `0x${string}`[], vaultTokensMigrated: `0x${string}`[]) => Promise<boolean>;
1679
- addOrModifyAgent: (agent: `0x${string}`, allowedAssets?: `0x${string}`[], allowedLegoIds?: bigint[], allowedActions?: {
1680
- isSet: boolean;
1681
- canDeposit: boolean;
1682
- canWithdraw: boolean;
1683
- canRebalance: boolean;
1684
- canTransfer: boolean;
1685
- canSwap: boolean;
1686
- canConvert: boolean;
1687
- canAddLiq: boolean;
1688
- canRemoveLiq: boolean;
1689
- canClaimRewards: boolean;
1690
- canBorrow: boolean;
1691
- canRepay: boolean;
1692
- }) => Promise<boolean>;
1693
- disableAgent: (agent: `0x${string}`) => Promise<boolean>;
1694
- addLegoIdForAgent: (agent: `0x${string}`, legoId: bigint) => Promise<boolean>;
1695
- addAssetForAgent: (agent: `0x${string}`, asset: `0x${string}`) => Promise<boolean>;
1696
- modifyAllowedActions: (agent: `0x${string}`, allowedActions?: {
1697
- isSet: boolean;
1698
- canDeposit: boolean;
1699
- canWithdraw: boolean;
1700
- canRebalance: boolean;
1701
- canTransfer: boolean;
1702
- canSwap: boolean;
1703
- canConvert: boolean;
1704
- canAddLiq: boolean;
1705
- canRemoveLiq: boolean;
1706
- canClaimRewards: boolean;
1707
- canBorrow: boolean;
1708
- canRepay: boolean;
1709
- }) => Promise<boolean>;
1710
- setCanTransferToAltOwnerWallets: (canTransfer: boolean) => Promise<boolean>;
1711
- addWhitelistAddr: (addr: `0x${string}`) => Promise<void>;
1712
- confirmWhitelistAddr: (addr: `0x${string}`) => Promise<void>;
3247
+ checkManagerUsdLimitsAndUpdateData: (manager: `0x${string}`, txUsdValue: bigint) => Promise<boolean>;
3248
+ checkRecipientLimitsAndUpdateData: (recipient: `0x${string}`, txUsdValue: bigint, asset: `0x${string}`, amount: bigint) => Promise<boolean>;
3249
+ validateCheque: (recipient: `0x${string}`, asset: `0x${string}`, amount: bigint, txUsdValue: bigint, signer: `0x${string}`) => Promise<boolean>;
3250
+ addPendingWhitelistAddr: (addr: `0x${string}`, pending: {
3251
+ initiatedBlock: bigint;
3252
+ confirmBlock: bigint;
3253
+ currentOwner: `0x${string}`;
3254
+ }) => Promise<void>;
1713
3255
  cancelPendingWhitelistAddr: (addr: `0x${string}`) => Promise<void>;
3256
+ confirmWhitelistAddr: (addr: `0x${string}`) => Promise<void>;
3257
+ addWhitelistAddrViaMigrator: (addr: `0x${string}`) => Promise<void>;
1714
3258
  removeWhitelistAddr: (addr: `0x${string}`) => Promise<void>;
1715
- setReserveAsset: (asset: `0x${string}`, amount: bigint) => Promise<boolean>;
1716
- setManyReserveAssets: (assets: {
3259
+ addManager: (manager: `0x${string}`, config: {
3260
+ startBlock: bigint;
3261
+ expiryBlock: bigint;
3262
+ limits: {
3263
+ maxUsdValuePerTx: bigint;
3264
+ maxUsdValuePerPeriod: bigint;
3265
+ maxUsdValueLifetime: bigint;
3266
+ maxNumTxsPerPeriod: bigint;
3267
+ txCooldownBlocks: bigint;
3268
+ failOnZeroPrice: boolean;
3269
+ };
3270
+ legoPerms: {
3271
+ canManageYield: boolean;
3272
+ canBuyAndSell: boolean;
3273
+ canManageDebt: boolean;
3274
+ canManageLiq: boolean;
3275
+ canClaimRewards: boolean;
3276
+ allowedLegos: bigint[];
3277
+ };
3278
+ whitelistPerms: {
3279
+ canAddPending: boolean;
3280
+ canConfirm: boolean;
3281
+ canCancel: boolean;
3282
+ canRemove: boolean;
3283
+ };
3284
+ transferPerms: {
3285
+ canTransfer: boolean;
3286
+ canCreateCheque: boolean;
3287
+ canAddPendingPayee: boolean;
3288
+ allowedPayees: `0x${string}`[];
3289
+ };
3290
+ allowedAssets: `0x${string}`[];
3291
+ canClaimLoot: boolean;
3292
+ }) => Promise<void>;
3293
+ updateManager: (manager: `0x${string}`, config: {
3294
+ startBlock: bigint;
3295
+ expiryBlock: bigint;
3296
+ limits: {
3297
+ maxUsdValuePerTx: bigint;
3298
+ maxUsdValuePerPeriod: bigint;
3299
+ maxUsdValueLifetime: bigint;
3300
+ maxNumTxsPerPeriod: bigint;
3301
+ txCooldownBlocks: bigint;
3302
+ failOnZeroPrice: boolean;
3303
+ };
3304
+ legoPerms: {
3305
+ canManageYield: boolean;
3306
+ canBuyAndSell: boolean;
3307
+ canManageDebt: boolean;
3308
+ canManageLiq: boolean;
3309
+ canClaimRewards: boolean;
3310
+ allowedLegos: bigint[];
3311
+ };
3312
+ whitelistPerms: {
3313
+ canAddPending: boolean;
3314
+ canConfirm: boolean;
3315
+ canCancel: boolean;
3316
+ canRemove: boolean;
3317
+ };
3318
+ transferPerms: {
3319
+ canTransfer: boolean;
3320
+ canCreateCheque: boolean;
3321
+ canAddPendingPayee: boolean;
3322
+ allowedPayees: `0x${string}`[];
3323
+ };
3324
+ allowedAssets: `0x${string}`[];
3325
+ canClaimLoot: boolean;
3326
+ }) => Promise<void>;
3327
+ removeManager: (manager: `0x${string}`) => Promise<void>;
3328
+ setGlobalManagerSettings: (config: {
3329
+ managerPeriod: bigint;
3330
+ startDelay: bigint;
3331
+ activationLength: bigint;
3332
+ canOwnerManage: boolean;
3333
+ limits: {
3334
+ maxUsdValuePerTx: bigint;
3335
+ maxUsdValuePerPeriod: bigint;
3336
+ maxUsdValueLifetime: bigint;
3337
+ maxNumTxsPerPeriod: bigint;
3338
+ txCooldownBlocks: bigint;
3339
+ failOnZeroPrice: boolean;
3340
+ };
3341
+ legoPerms: {
3342
+ canManageYield: boolean;
3343
+ canBuyAndSell: boolean;
3344
+ canManageDebt: boolean;
3345
+ canManageLiq: boolean;
3346
+ canClaimRewards: boolean;
3347
+ allowedLegos: bigint[];
3348
+ };
3349
+ whitelistPerms: {
3350
+ canAddPending: boolean;
3351
+ canConfirm: boolean;
3352
+ canCancel: boolean;
3353
+ canRemove: boolean;
3354
+ };
3355
+ transferPerms: {
3356
+ canTransfer: boolean;
3357
+ canCreateCheque: boolean;
3358
+ canAddPendingPayee: boolean;
3359
+ allowedPayees: `0x${string}`[];
3360
+ };
3361
+ allowedAssets: `0x${string}`[];
3362
+ }) => Promise<void>;
3363
+ addPayee: (payee: `0x${string}`, config: {
3364
+ startBlock: bigint;
3365
+ expiryBlock: bigint;
3366
+ canPull: boolean;
3367
+ periodLength: bigint;
3368
+ maxNumTxsPerPeriod: bigint;
3369
+ txCooldownBlocks: bigint;
3370
+ failOnZeroPrice: boolean;
3371
+ primaryAsset: `0x${string}`;
3372
+ onlyPrimaryAsset: boolean;
3373
+ unitLimits: {
3374
+ perTxCap: bigint;
3375
+ perPeriodCap: bigint;
3376
+ lifetimeCap: bigint;
3377
+ };
3378
+ usdLimits: {
3379
+ perTxCap: bigint;
3380
+ perPeriodCap: bigint;
3381
+ lifetimeCap: bigint;
3382
+ };
3383
+ }) => Promise<void>;
3384
+ updatePayee: (payee: `0x${string}`, config: {
3385
+ startBlock: bigint;
3386
+ expiryBlock: bigint;
3387
+ canPull: boolean;
3388
+ periodLength: bigint;
3389
+ maxNumTxsPerPeriod: bigint;
3390
+ txCooldownBlocks: bigint;
3391
+ failOnZeroPrice: boolean;
3392
+ primaryAsset: `0x${string}`;
3393
+ onlyPrimaryAsset: boolean;
3394
+ unitLimits: {
3395
+ perTxCap: bigint;
3396
+ perPeriodCap: bigint;
3397
+ lifetimeCap: bigint;
3398
+ };
3399
+ usdLimits: {
3400
+ perTxCap: bigint;
3401
+ perPeriodCap: bigint;
3402
+ lifetimeCap: bigint;
3403
+ };
3404
+ }) => Promise<void>;
3405
+ removePayee: (payee: `0x${string}`) => Promise<void>;
3406
+ setGlobalPayeeSettings: (config: {
3407
+ defaultPeriodLength: bigint;
3408
+ startDelay: bigint;
3409
+ activationLength: bigint;
3410
+ maxNumTxsPerPeriod: bigint;
3411
+ txCooldownBlocks: bigint;
3412
+ failOnZeroPrice: boolean;
3413
+ usdLimits: {
3414
+ perTxCap: bigint;
3415
+ perPeriodCap: bigint;
3416
+ lifetimeCap: bigint;
3417
+ };
3418
+ canPayOwner: boolean;
3419
+ canPull: boolean;
3420
+ }) => Promise<void>;
3421
+ addPendingPayee: (payee: `0x${string}`, pending: {
3422
+ settings: {
3423
+ startBlock: bigint;
3424
+ expiryBlock: bigint;
3425
+ canPull: boolean;
3426
+ periodLength: bigint;
3427
+ maxNumTxsPerPeriod: bigint;
3428
+ txCooldownBlocks: bigint;
3429
+ failOnZeroPrice: boolean;
3430
+ primaryAsset: `0x${string}`;
3431
+ onlyPrimaryAsset: boolean;
3432
+ unitLimits: {
3433
+ perTxCap: bigint;
3434
+ perPeriodCap: bigint;
3435
+ lifetimeCap: bigint;
3436
+ };
3437
+ usdLimits: {
3438
+ perTxCap: bigint;
3439
+ perPeriodCap: bigint;
3440
+ lifetimeCap: bigint;
3441
+ };
3442
+ };
3443
+ initiatedBlock: bigint;
3444
+ confirmBlock: bigint;
3445
+ currentOwner: `0x${string}`;
3446
+ }) => Promise<void>;
3447
+ confirmPendingPayee: (payee: `0x${string}`) => Promise<void>;
3448
+ cancelPendingPayee: (payee: `0x${string}`) => Promise<void>;
3449
+ createCheque: (recipient: `0x${string}`, cheque: {
3450
+ recipient: `0x${string}`;
1717
3451
  asset: `0x${string}`;
1718
3452
  amount: bigint;
1719
- }[]) => Promise<boolean>;
1720
- setAmbassadorForwarder: (addr: `0x${string}`) => Promise<boolean>;
1721
- setCanWalletBeAmbassador: (canWalletBeAmbassador: boolean) => Promise<boolean>;
1722
- recoverFunds: (asset: `0x${string}`) => Promise<boolean>;
3453
+ creationBlock: bigint;
3454
+ unlockBlock: bigint;
3455
+ expiryBlock: bigint;
3456
+ usdValueOnCreation: bigint;
3457
+ canManagerPay: boolean;
3458
+ canBePulled: boolean;
3459
+ creator: `0x${string}`;
3460
+ active: boolean;
3461
+ }, chequeData: {
3462
+ numChequesPaidInPeriod: bigint;
3463
+ totalUsdValuePaidInPeriod: bigint;
3464
+ totalNumChequesPaid: bigint;
3465
+ totalUsdValuePaid: bigint;
3466
+ lastChequePaidBlock: bigint;
3467
+ numChequesCreatedInPeriod: bigint;
3468
+ totalUsdValueCreatedInPeriod: bigint;
3469
+ totalNumChequesCreated: bigint;
3470
+ totalUsdValueCreated: bigint;
3471
+ lastChequeCreatedBlock: bigint;
3472
+ periodStartBlock: bigint;
3473
+ }, isExistingCheque: boolean) => Promise<void>;
3474
+ cancelCheque: (recipient: `0x${string}`) => Promise<void>;
3475
+ setChequeSettings: (config: {
3476
+ maxNumActiveCheques: bigint;
3477
+ maxChequeUsdValue: bigint;
3478
+ instantUsdThreshold: bigint;
3479
+ perPeriodPaidUsdCap: bigint;
3480
+ maxNumChequesPaidPerPeriod: bigint;
3481
+ payCooldownBlocks: bigint;
3482
+ perPeriodCreatedUsdCap: bigint;
3483
+ maxNumChequesCreatedPerPeriod: bigint;
3484
+ createCooldownBlocks: bigint;
3485
+ periodLength: bigint;
3486
+ expensiveDelayBlocks: bigint;
3487
+ defaultExpiryBlocks: bigint;
3488
+ allowedAssets: `0x${string}`[];
3489
+ canManagersCreateCheques: boolean;
3490
+ canManagerPay: boolean;
3491
+ canBePulled: boolean;
3492
+ }) => Promise<void>;
3493
+ updateAssetData: (legoId: bigint, asset: `0x${string}`, shouldCheckYield: boolean) => Promise<bigint>;
3494
+ updateAllAssetData: (shouldCheckYield: boolean) => Promise<bigint>;
3495
+ removeTrialFunds: () => Promise<bigint>;
3496
+ migrateFunds: (toWallet: `0x${string}`, asset: `0x${string}`) => Promise<bigint>;
3497
+ preparePayment: (targetAsset: `0x${string}`, legoId: bigint, vaultToken: `0x${string}`, vaultAmount?: bigint) => Promise<[bigint, bigint]>;
3498
+ deregisterAsset: (asset: `0x${string}`) => Promise<boolean>;
3499
+ recoverNft: (collection: `0x${string}`, nftTokenId: bigint, recipient: `0x${string}`) => Promise<void>;
3500
+ setFrozen: (isFrozen: boolean) => Promise<void>;
3501
+ setEjectionMode: (shouldEject: boolean) => Promise<void>;
3502
+ setLegoAccessForAction: (legoId: bigint, action: bigint) => Promise<boolean>;
3503
+ setKernel: (kernel: `0x${string}`) => Promise<void>;
3504
+ setSentinel: (sentinel: `0x${string}`) => Promise<void>;
3505
+ setHighCommand: (highCommand: `0x${string}`) => Promise<void>;
3506
+ setPaymaster: (paymaster: `0x${string}`) => Promise<void>;
3507
+ setChequeBook: (chequeBook: `0x${string}`) => Promise<void>;
3508
+ setMigrator: (migrator: `0x${string}`) => Promise<void>;
1723
3509
  };
1724
3510
  events: {
1725
- AgentAdded: (agent: `0x${string}`, allowedAssets: bigint, allowedLegoIds: bigint) => Promise<void>;
1726
- AgentModified: (agent: `0x${string}`, allowedAssets: bigint, allowedLegoIds: bigint) => Promise<void>;
1727
- AgentDisabled: (agent: `0x${string}`, prevAllowedAssets: bigint, prevAllowedLegoIds: bigint) => Promise<void>;
1728
- LegoIdAddedToAgent: (agent: `0x${string}`, legoId: bigint) => Promise<void>;
1729
- AssetAddedToAgent: (agent: `0x${string}`, asset: `0x${string}`) => Promise<void>;
1730
- AllowedActionsModified: (agent: `0x${string}`, canDeposit: boolean, canWithdraw: boolean, canRebalance: boolean, canTransfer: boolean, canSwap: boolean, canConvert: boolean, canAddLiq: boolean, canRemoveLiq: boolean, canClaimRewards: boolean, canBorrow: boolean, canRepay: boolean) => Promise<void>;
1731
- CanTransferToAltOwnerWalletsSet: (canTransfer: boolean) => Promise<void>;
1732
- WhitelistAddrPending: (addr: `0x${string}`, confirmBlock: bigint) => Promise<void>;
1733
- WhitelistAddrConfirmed: (addr: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint) => Promise<void>;
1734
- WhitelistAddrCancelled: (addr: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint, cancelledBy: `0x${string}`) => Promise<void>;
1735
- WhitelistAddrRemoved: (addr: `0x${string}`) => Promise<void>;
1736
- WhitelistAddrSetViaMigration: (addr: `0x${string}`) => Promise<void>;
1737
- ReserveAssetSet: (asset: `0x${string}`, amount: bigint) => Promise<void>;
1738
- CanWalletBeAmbassadorSet: (canWalletBeAmbassador: boolean) => Promise<void>;
1739
- AmbassadorForwarderSet: (addr: `0x${string}`) => Promise<void>;
1740
- FundsRecovered: (asset: `0x${string}`, recipient: `0x${string}`, balance: bigint) => Promise<void>;
1741
- UserWalletStartMigration: (newWallet: `0x${string}`, numAssetsToMigrate: bigint, numWhitelistToMigrate: bigint) => Promise<void>;
1742
- UserWalletFinishMigration: (oldWallet: `0x${string}`, numWhitelistMigrated: bigint, numVaultTokensMigrated: bigint, numAssetsMigrated: bigint) => Promise<void>;
3511
+ EjectionModeSet: (inEjectMode: boolean) => Promise<void>;
3512
+ FrozenSet: (isFrozen: boolean, caller: `0x${string}`) => Promise<void>;
3513
+ NftRecovered: (collection: `0x${string}`, nftTokenId: bigint, recipient: `0x${string}`) => Promise<void>;
1743
3514
  OwnershipChangeInitiated: (prevOwner: `0x${string}`, newOwner: `0x${string}`, confirmBlock: bigint) => Promise<void>;
1744
3515
  OwnershipChangeConfirmed: (prevOwner: `0x${string}`, newOwner: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint) => Promise<void>;
1745
3516
  OwnershipChangeCancelled: (cancelledOwner: `0x${string}`, cancelledBy: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint) => Promise<void>;
1746
- OwnershipChangeDelaySet: (delayBlocks: bigint) => Promise<void>;
3517
+ OwnershipTimeLockSet: (numBlocks: bigint) => Promise<void>;
1747
3518
  };
1748
3519
  };
1749
3520
  export type Calls = keyof Contract['calls'];
@@ -1786,66 +3557,98 @@ export type SDK = {
1786
3557
  abi: typeof abi;
1787
3558
  hasPendingOwnerChange: (...args: ExtractArgs<Contract['calls']['hasPendingOwnerChange']>) => Promise<CallReturn<'hasPendingOwnerChange'>>;
1788
3559
  owner: (...args: ExtractArgs<Contract['calls']['owner']>) => Promise<CallReturn<'owner'>>;
3560
+ ownershipTimeLock: (...args: ExtractArgs<Contract['calls']['ownershipTimeLock']>) => Promise<CallReturn<'ownershipTimeLock'>>;
1789
3561
  pendingOwner: (...args: ExtractArgs<Contract['calls']['pendingOwner']>) => Promise<CallReturn<'pendingOwner'>>;
1790
- ownershipChangeDelay: (...args: ExtractArgs<Contract['calls']['ownershipChangeDelay']>) => Promise<CallReturn<'ownershipChangeDelay'>>;
1791
- MIN_OWNER_CHANGE_DELAY: (...args: ExtractArgs<Contract['calls']['MIN_OWNER_CHANGE_DELAY']>) => Promise<CallReturn<'MIN_OWNER_CHANGE_DELAY'>>;
1792
- MAX_OWNER_CHANGE_DELAY: (...args: ExtractArgs<Contract['calls']['MAX_OWNER_CHANGE_DELAY']>) => Promise<CallReturn<'MAX_OWNER_CHANGE_DELAY'>>;
1793
- _ADDY_REGISTRY: (...args: ExtractArgs<Contract['calls']['_ADDY_REGISTRY']>) => Promise<CallReturn<'_ADDY_REGISTRY'>>;
3562
+ MIN_OWNERSHIP_TIMELOCK: (...args: ExtractArgs<Contract['calls']['MIN_OWNERSHIP_TIMELOCK']>) => Promise<CallReturn<'MIN_OWNERSHIP_TIMELOCK'>>;
3563
+ MAX_OWNERSHIP_TIMELOCK: (...args: ExtractArgs<Contract['calls']['MAX_OWNERSHIP_TIMELOCK']>) => Promise<CallReturn<'MAX_OWNERSHIP_TIMELOCK'>>;
1794
3564
  apiVersion: (...args: ExtractArgs<Contract['calls']['apiVersion']>) => Promise<CallReturn<'apiVersion'>>;
1795
- isAgentActive: (...args: ExtractArgs<Contract['calls']['isAgentActive']>) => Promise<CallReturn<'isAgentActive'>>;
1796
- canAgentAccess: (...args: ExtractArgs<Contract['calls']['canAgentAccess']>) => Promise<CallReturn<'canAgentAccess'>>;
1797
- getAgentSubscriptionStatus: (...args: ExtractArgs<Contract['calls']['getAgentSubscriptionStatus']>) => Promise<CallReturn<'getAgentSubscriptionStatus'>>;
1798
- getProtocolSubscriptionStatus: (...args: ExtractArgs<Contract['calls']['getProtocolSubscriptionStatus']>) => Promise<CallReturn<'getProtocolSubscriptionStatus'>>;
1799
- canMakeSubscriptionPayments: (...args: ExtractArgs<Contract['calls']['canMakeSubscriptionPayments']>) => Promise<CallReturn<'canMakeSubscriptionPayments'>>;
1800
- getAvailableTxAmount: (...args: ExtractArgs<Contract['calls']['getAvailableTxAmount']>) => Promise<CallReturn<'getAvailableTxAmount'>>;
1801
- canTransferToRecipient: (...args: ExtractArgs<Contract['calls']['canTransferToRecipient']>) => Promise<CallReturn<'canTransferToRecipient'>>;
1802
- doesWalletHaveSameOwner: (...args: ExtractArgs<Contract['calls']['doesWalletHaveSameOwner']>) => Promise<CallReturn<'doesWalletHaveSameOwner'>>;
1803
- getProceedsAddr: (...args: ExtractArgs<Contract['calls']['getProceedsAddr']>) => Promise<CallReturn<'getProceedsAddr'>>;
3565
+ checkSignerPermissionsAndGetBundle: (...args: ExtractArgs<Contract['calls']['checkSignerPermissionsAndGetBundle']>) => Promise<CallReturn<'checkSignerPermissionsAndGetBundle'>>;
3566
+ getTrialFundsInfo: (...args: ExtractArgs<Contract['calls']['getTrialFundsInfo']>) => Promise<CallReturn<'getTrialFundsInfo'>>;
3567
+ getActionDataBundle: (...args: ExtractArgs<Contract['calls']['getActionDataBundle']>) => Promise<CallReturn<'getActionDataBundle'>>;
1804
3568
  wallet: (...args: ExtractArgs<Contract['calls']['wallet']>) => Promise<CallReturn<'wallet'>>;
1805
- didSetWallet: (...args: ExtractArgs<Contract['calls']['didSetWallet']>) => Promise<CallReturn<'didSetWallet'>>;
1806
- protocolSub: (...args: ExtractArgs<Contract['calls']['protocolSub']>) => Promise<CallReturn<'protocolSub'>>;
1807
- reserveAssets: (...args: ExtractArgs<Contract['calls']['reserveAssets']>) => Promise<CallReturn<'reserveAssets'>>;
1808
- agentSettings: (...args: ExtractArgs<Contract['calls']['agentSettings']>) => Promise<CallReturn<'agentSettings'>>;
1809
- isRecipientAllowed: (...args: ExtractArgs<Contract['calls']['isRecipientAllowed']>) => Promise<CallReturn<'isRecipientAllowed'>>;
3569
+ kernel: (...args: ExtractArgs<Contract['calls']['kernel']>) => Promise<CallReturn<'kernel'>>;
3570
+ sentinel: (...args: ExtractArgs<Contract['calls']['sentinel']>) => Promise<CallReturn<'sentinel'>>;
3571
+ highCommand: (...args: ExtractArgs<Contract['calls']['highCommand']>) => Promise<CallReturn<'highCommand'>>;
3572
+ paymaster: (...args: ExtractArgs<Contract['calls']['paymaster']>) => Promise<CallReturn<'paymaster'>>;
3573
+ chequeBook: (...args: ExtractArgs<Contract['calls']['chequeBook']>) => Promise<CallReturn<'chequeBook'>>;
3574
+ migrator: (...args: ExtractArgs<Contract['calls']['migrator']>) => Promise<CallReturn<'migrator'>>;
3575
+ trialFundsAsset: (...args: ExtractArgs<Contract['calls']['trialFundsAsset']>) => Promise<CallReturn<'trialFundsAsset'>>;
3576
+ trialFundsAmount: (...args: ExtractArgs<Contract['calls']['trialFundsAmount']>) => Promise<CallReturn<'trialFundsAmount'>>;
3577
+ managerSettings: (...args: ExtractArgs<Contract['calls']['managerSettings']>) => Promise<CallReturn<'managerSettings'>>;
3578
+ managerPeriodData: (...args: ExtractArgs<Contract['calls']['managerPeriodData']>) => Promise<CallReturn<'managerPeriodData'>>;
3579
+ managers: (...args: ExtractArgs<Contract['calls']['managers']>) => Promise<CallReturn<'managers'>>;
3580
+ indexOfManager: (...args: ExtractArgs<Contract['calls']['indexOfManager']>) => Promise<CallReturn<'indexOfManager'>>;
3581
+ numManagers: (...args: ExtractArgs<Contract['calls']['numManagers']>) => Promise<CallReturn<'numManagers'>>;
3582
+ payeeSettings: (...args: ExtractArgs<Contract['calls']['payeeSettings']>) => Promise<CallReturn<'payeeSettings'>>;
3583
+ payeePeriodData: (...args: ExtractArgs<Contract['calls']['payeePeriodData']>) => Promise<CallReturn<'payeePeriodData'>>;
3584
+ payees: (...args: ExtractArgs<Contract['calls']['payees']>) => Promise<CallReturn<'payees'>>;
3585
+ indexOfPayee: (...args: ExtractArgs<Contract['calls']['indexOfPayee']>) => Promise<CallReturn<'indexOfPayee'>>;
3586
+ numPayees: (...args: ExtractArgs<Contract['calls']['numPayees']>) => Promise<CallReturn<'numPayees'>>;
3587
+ pendingPayees: (...args: ExtractArgs<Contract['calls']['pendingPayees']>) => Promise<CallReturn<'pendingPayees'>>;
3588
+ whitelistAddr: (...args: ExtractArgs<Contract['calls']['whitelistAddr']>) => Promise<CallReturn<'whitelistAddr'>>;
3589
+ indexOfWhitelist: (...args: ExtractArgs<Contract['calls']['indexOfWhitelist']>) => Promise<CallReturn<'indexOfWhitelist'>>;
3590
+ numWhitelisted: (...args: ExtractArgs<Contract['calls']['numWhitelisted']>) => Promise<CallReturn<'numWhitelisted'>>;
1810
3591
  pendingWhitelist: (...args: ExtractArgs<Contract['calls']['pendingWhitelist']>) => Promise<CallReturn<'pendingWhitelist'>>;
1811
- canTransferToAltOwnerWallets: (...args: ExtractArgs<Contract['calls']['canTransferToAltOwnerWallets']>) => Promise<CallReturn<'canTransferToAltOwnerWallets'>>;
1812
- canWalletBeAmbassador: (...args: ExtractArgs<Contract['calls']['canWalletBeAmbassador']>) => Promise<CallReturn<'canWalletBeAmbassador'>>;
1813
- ambassadorForwarder: (...args: ExtractArgs<Contract['calls']['ambassadorForwarder']>) => Promise<CallReturn<'ambassadorForwarder'>>;
1814
- myAmbassador: (...args: ExtractArgs<Contract['calls']['myAmbassador']>) => Promise<CallReturn<'myAmbassador'>>;
1815
- didMigrateIn: (...args: ExtractArgs<Contract['calls']['didMigrateIn']>) => Promise<CallReturn<'didMigrateIn'>>;
1816
- didMigrateOut: (...args: ExtractArgs<Contract['calls']['didMigrateOut']>) => Promise<CallReturn<'didMigrateOut'>>;
1817
- isVaultToken: (...args: ExtractArgs<Contract['calls']['isVaultToken']>) => Promise<CallReturn<'isVaultToken'>>;
1818
- vaultTokenAmounts: (...args: ExtractArgs<Contract['calls']['vaultTokenAmounts']>) => Promise<CallReturn<'vaultTokenAmounts'>>;
1819
- depositedAmounts: (...args: ExtractArgs<Contract['calls']['depositedAmounts']>) => Promise<CallReturn<'depositedAmounts'>>;
1820
- ADDY_REGISTRY: (...args: ExtractArgs<Contract['calls']['ADDY_REGISTRY']>) => Promise<CallReturn<'ADDY_REGISTRY'>>;
3592
+ cheques: (...args: ExtractArgs<Contract['calls']['cheques']>) => Promise<CallReturn<'cheques'>>;
3593
+ chequeSettings: (...args: ExtractArgs<Contract['calls']['chequeSettings']>) => Promise<CallReturn<'chequeSettings'>>;
3594
+ chequePeriodData: (...args: ExtractArgs<Contract['calls']['chequePeriodData']>) => Promise<CallReturn<'chequePeriodData'>>;
3595
+ numActiveCheques: (...args: ExtractArgs<Contract['calls']['numActiveCheques']>) => Promise<CallReturn<'numActiveCheques'>>;
3596
+ globalManagerSettings: (...args: ExtractArgs<Contract['calls']['globalManagerSettings']>) => Promise<CallReturn<'globalManagerSettings'>>;
3597
+ globalPayeeSettings: (...args: ExtractArgs<Contract['calls']['globalPayeeSettings']>) => Promise<CallReturn<'globalPayeeSettings'>>;
3598
+ timeLock: (...args: ExtractArgs<Contract['calls']['timeLock']>) => Promise<CallReturn<'timeLock'>>;
3599
+ isFrozen: (...args: ExtractArgs<Contract['calls']['isFrozen']>) => Promise<CallReturn<'isFrozen'>>;
3600
+ inEjectMode: (...args: ExtractArgs<Contract['calls']['inEjectMode']>) => Promise<CallReturn<'inEjectMode'>>;
3601
+ groupId: (...args: ExtractArgs<Contract['calls']['groupId']>) => Promise<CallReturn<'groupId'>>;
3602
+ startingAgent: (...args: ExtractArgs<Contract['calls']['startingAgent']>) => Promise<CallReturn<'startingAgent'>>;
3603
+ didSetWallet: (...args: ExtractArgs<Contract['calls']['didSetWallet']>) => Promise<CallReturn<'didSetWallet'>>;
3604
+ UNDY_HQ: (...args: ExtractArgs<Contract['calls']['UNDY_HQ']>) => Promise<CallReturn<'UNDY_HQ'>>;
3605
+ WETH: (...args: ExtractArgs<Contract['calls']['WETH']>) => Promise<CallReturn<'WETH'>>;
3606
+ ETH: (...args: ExtractArgs<Contract['calls']['ETH']>) => Promise<CallReturn<'ETH'>>;
3607
+ MIN_TIMELOCK: (...args: ExtractArgs<Contract['calls']['MIN_TIMELOCK']>) => Promise<CallReturn<'MIN_TIMELOCK'>>;
3608
+ MAX_TIMELOCK: (...args: ExtractArgs<Contract['calls']['MAX_TIMELOCK']>) => Promise<CallReturn<'MAX_TIMELOCK'>>;
1821
3609
  changeOwnership: (...args: ExtractArgs<Contract['mutations']['changeOwnership']>) => Promise<Address>;
1822
3610
  confirmOwnershipChange: (...args: ExtractArgs<Contract['mutations']['confirmOwnershipChange']>) => Promise<Address>;
1823
3611
  cancelOwnershipChange: (...args: ExtractArgs<Contract['mutations']['cancelOwnershipChange']>) => Promise<Address>;
1824
- setOwnershipChangeDelay: (...args: ExtractArgs<Contract['mutations']['setOwnershipChangeDelay']>) => Promise<Address>;
3612
+ setOwnershipTimeLock: (...args: ExtractArgs<Contract['mutations']['setOwnershipTimeLock']>) => Promise<Address>;
1825
3613
  setWallet: (...args: ExtractArgs<Contract['mutations']['setWallet']>) => Promise<Address>;
1826
- handleSubscriptionsAndPermissions: (...args: ExtractArgs<Contract['mutations']['handleSubscriptionsAndPermissions']>) => Promise<Address>;
1827
- updateYieldTrackingOnDeposit: (...args: ExtractArgs<Contract['mutations']['updateYieldTrackingOnDeposit']>) => Promise<Address>;
1828
- updateYieldTrackingOnWithdrawal: (...args: ExtractArgs<Contract['mutations']['updateYieldTrackingOnWithdrawal']>) => Promise<Address>;
1829
- updateYieldTrackingOnSwap: (...args: ExtractArgs<Contract['mutations']['updateYieldTrackingOnSwap']>) => Promise<Address>;
1830
- updateYieldTrackingOnEntry: (...args: ExtractArgs<Contract['mutations']['updateYieldTrackingOnEntry']>) => Promise<Address>;
1831
- updateYieldTrackingOnExit: (...args: ExtractArgs<Contract['mutations']['updateYieldTrackingOnExit']>) => Promise<Address>;
1832
- startMigrationOut: (...args: ExtractArgs<Contract['mutations']['startMigrationOut']>) => Promise<Address>;
1833
- finishMigrationIn: (...args: ExtractArgs<Contract['mutations']['finishMigrationIn']>) => Promise<Address>;
1834
- addOrModifyAgent: (...args: ExtractArgs<Contract['mutations']['addOrModifyAgent']>) => Promise<Address>;
1835
- disableAgent: (...args: ExtractArgs<Contract['mutations']['disableAgent']>) => Promise<Address>;
1836
- addLegoIdForAgent: (...args: ExtractArgs<Contract['mutations']['addLegoIdForAgent']>) => Promise<Address>;
1837
- addAssetForAgent: (...args: ExtractArgs<Contract['mutations']['addAssetForAgent']>) => Promise<Address>;
1838
- modifyAllowedActions: (...args: ExtractArgs<Contract['mutations']['modifyAllowedActions']>) => Promise<Address>;
1839
- setCanTransferToAltOwnerWallets: (...args: ExtractArgs<Contract['mutations']['setCanTransferToAltOwnerWallets']>) => Promise<Address>;
1840
- addWhitelistAddr: (...args: ExtractArgs<Contract['mutations']['addWhitelistAddr']>) => Promise<Address>;
1841
- confirmWhitelistAddr: (...args: ExtractArgs<Contract['mutations']['confirmWhitelistAddr']>) => Promise<Address>;
3614
+ checkManagerUsdLimitsAndUpdateData: (...args: ExtractArgs<Contract['mutations']['checkManagerUsdLimitsAndUpdateData']>) => Promise<Address>;
3615
+ checkRecipientLimitsAndUpdateData: (...args: ExtractArgs<Contract['mutations']['checkRecipientLimitsAndUpdateData']>) => Promise<Address>;
3616
+ validateCheque: (...args: ExtractArgs<Contract['mutations']['validateCheque']>) => Promise<Address>;
3617
+ addPendingWhitelistAddr: (...args: ExtractArgs<Contract['mutations']['addPendingWhitelistAddr']>) => Promise<Address>;
1842
3618
  cancelPendingWhitelistAddr: (...args: ExtractArgs<Contract['mutations']['cancelPendingWhitelistAddr']>) => Promise<Address>;
3619
+ confirmWhitelistAddr: (...args: ExtractArgs<Contract['mutations']['confirmWhitelistAddr']>) => Promise<Address>;
3620
+ addWhitelistAddrViaMigrator: (...args: ExtractArgs<Contract['mutations']['addWhitelistAddrViaMigrator']>) => Promise<Address>;
1843
3621
  removeWhitelistAddr: (...args: ExtractArgs<Contract['mutations']['removeWhitelistAddr']>) => Promise<Address>;
1844
- setReserveAsset: (...args: ExtractArgs<Contract['mutations']['setReserveAsset']>) => Promise<Address>;
1845
- setManyReserveAssets: (...args: ExtractArgs<Contract['mutations']['setManyReserveAssets']>) => Promise<Address>;
1846
- setAmbassadorForwarder: (...args: ExtractArgs<Contract['mutations']['setAmbassadorForwarder']>) => Promise<Address>;
1847
- setCanWalletBeAmbassador: (...args: ExtractArgs<Contract['mutations']['setCanWalletBeAmbassador']>) => Promise<Address>;
1848
- recoverFunds: (...args: ExtractArgs<Contract['mutations']['recoverFunds']>) => Promise<Address>;
3622
+ addManager: (...args: ExtractArgs<Contract['mutations']['addManager']>) => Promise<Address>;
3623
+ updateManager: (...args: ExtractArgs<Contract['mutations']['updateManager']>) => Promise<Address>;
3624
+ removeManager: (...args: ExtractArgs<Contract['mutations']['removeManager']>) => Promise<Address>;
3625
+ setGlobalManagerSettings: (...args: ExtractArgs<Contract['mutations']['setGlobalManagerSettings']>) => Promise<Address>;
3626
+ addPayee: (...args: ExtractArgs<Contract['mutations']['addPayee']>) => Promise<Address>;
3627
+ updatePayee: (...args: ExtractArgs<Contract['mutations']['updatePayee']>) => Promise<Address>;
3628
+ removePayee: (...args: ExtractArgs<Contract['mutations']['removePayee']>) => Promise<Address>;
3629
+ setGlobalPayeeSettings: (...args: ExtractArgs<Contract['mutations']['setGlobalPayeeSettings']>) => Promise<Address>;
3630
+ addPendingPayee: (...args: ExtractArgs<Contract['mutations']['addPendingPayee']>) => Promise<Address>;
3631
+ confirmPendingPayee: (...args: ExtractArgs<Contract['mutations']['confirmPendingPayee']>) => Promise<Address>;
3632
+ cancelPendingPayee: (...args: ExtractArgs<Contract['mutations']['cancelPendingPayee']>) => Promise<Address>;
3633
+ createCheque: (...args: ExtractArgs<Contract['mutations']['createCheque']>) => Promise<Address>;
3634
+ cancelCheque: (...args: ExtractArgs<Contract['mutations']['cancelCheque']>) => Promise<Address>;
3635
+ setChequeSettings: (...args: ExtractArgs<Contract['mutations']['setChequeSettings']>) => Promise<Address>;
3636
+ updateAssetData: (...args: ExtractArgs<Contract['mutations']['updateAssetData']>) => Promise<Address>;
3637
+ updateAllAssetData: (...args: ExtractArgs<Contract['mutations']['updateAllAssetData']>) => Promise<Address>;
3638
+ removeTrialFunds: (...args: ExtractArgs<Contract['mutations']['removeTrialFunds']>) => Promise<Address>;
3639
+ migrateFunds: (...args: ExtractArgs<Contract['mutations']['migrateFunds']>) => Promise<Address>;
3640
+ preparePayment: (...args: ExtractArgs<Contract['mutations']['preparePayment']>) => Promise<Address>;
3641
+ deregisterAsset: (...args: ExtractArgs<Contract['mutations']['deregisterAsset']>) => Promise<Address>;
3642
+ recoverNft: (...args: ExtractArgs<Contract['mutations']['recoverNft']>) => Promise<Address>;
3643
+ setFrozen: (...args: ExtractArgs<Contract['mutations']['setFrozen']>) => Promise<Address>;
3644
+ setEjectionMode: (...args: ExtractArgs<Contract['mutations']['setEjectionMode']>) => Promise<Address>;
3645
+ setLegoAccessForAction: (...args: ExtractArgs<Contract['mutations']['setLegoAccessForAction']>) => Promise<Address>;
3646
+ setKernel: (...args: ExtractArgs<Contract['mutations']['setKernel']>) => Promise<Address>;
3647
+ setSentinel: (...args: ExtractArgs<Contract['mutations']['setSentinel']>) => Promise<Address>;
3648
+ setHighCommand: (...args: ExtractArgs<Contract['mutations']['setHighCommand']>) => Promise<Address>;
3649
+ setPaymaster: (...args: ExtractArgs<Contract['mutations']['setPaymaster']>) => Promise<Address>;
3650
+ setChequeBook: (...args: ExtractArgs<Contract['mutations']['setChequeBook']>) => Promise<Address>;
3651
+ setMigrator: (...args: ExtractArgs<Contract['mutations']['setMigrator']>) => Promise<Address>;
1849
3652
  };
1850
3653
  export declare function toSdk(deployAddress: Address, publicClient?: PublicClient, walletClient?: WalletClient): SDK;
1851
3654
  export {};