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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (254) hide show
  1. package/.claude/settings.local.json +31 -0
  2. package/.eslintrc.json +27 -0
  3. package/.prettierrc +9 -0
  4. package/.tool-versions +1 -0
  5. package/LICENSE +41 -0
  6. package/LICENSE_DATE.md +34 -0
  7. package/LICENSE_GRANTS.md +33 -0
  8. package/LICENSE_INFO.md +90 -0
  9. package/README.md +116 -17
  10. package/dapp.config.js +154 -0
  11. package/package.json +17 -44
  12. package/src/getSwapInstructions.ts +55 -0
  13. package/src/index.ts +192 -0
  14. package/tsconfig.json +18 -0
  15. package/AGENTS.md +0 -162
  16. package/abis.json +0 -181875
  17. package/addresses.json +0 -76
  18. package/dist/contracts/AaveV3.d.ts +0 -2594
  19. package/dist/contracts/AaveV3.d.ts.map +0 -1
  20. package/dist/contracts/AaveV3.js +0 -3272
  21. package/dist/contracts/AeroClassic.d.ts +0 -2118
  22. package/dist/contracts/AeroClassic.d.ts.map +0 -1
  23. package/dist/contracts/AeroClassic.js +0 -2679
  24. package/dist/contracts/AeroSlipstream.d.ts +0 -2256
  25. package/dist/contracts/AeroSlipstream.d.ts.map +0 -1
  26. package/dist/contracts/AeroSlipstream.js +0 -2848
  27. package/dist/contracts/AgentSenderGeneric.d.ts +0 -4129
  28. package/dist/contracts/AgentSenderGeneric.d.ts.map +0 -1
  29. package/dist/contracts/AgentSenderGeneric.js +0 -5397
  30. package/dist/contracts/AgentSenderSpecial.d.ts +0 -1997
  31. package/dist/contracts/AgentSenderSpecial.d.ts.map +0 -1
  32. package/dist/contracts/AgentSenderSpecial.js +0 -2532
  33. package/dist/contracts/AgentSenderSpecialSigHelper.d.ts +0 -2245
  34. package/dist/contracts/AgentSenderSpecialSigHelper.d.ts.map +0 -1
  35. package/dist/contracts/AgentSenderSpecialSigHelper.js +0 -2971
  36. package/dist/contracts/AgentWrapper.d.ts +0 -2520
  37. package/dist/contracts/AgentWrapper.d.ts.map +0 -1
  38. package/dist/contracts/AgentWrapper.js +0 -3389
  39. package/dist/contracts/AgentWrapperV1.d.ts +0 -3789
  40. package/dist/contracts/AgentWrapperV1.d.ts.map +0 -1
  41. package/dist/contracts/AgentWrapperV1.js +0 -4945
  42. package/dist/contracts/AgentWrapperV2.d.ts +0 -2494
  43. package/dist/contracts/AgentWrapperV2.d.ts.map +0 -1
  44. package/dist/contracts/AgentWrapperV2.js +0 -3354
  45. package/dist/contracts/Appraiser.d.ts +0 -577
  46. package/dist/contracts/Appraiser.d.ts.map +0 -1
  47. package/dist/contracts/Appraiser.js +0 -735
  48. package/dist/contracts/Avantis.d.ts +0 -2606
  49. package/dist/contracts/Avantis.d.ts.map +0 -1
  50. package/dist/contracts/Avantis.js +0 -3282
  51. package/dist/contracts/Billing.d.ts +0 -381
  52. package/dist/contracts/Billing.d.ts.map +0 -1
  53. package/dist/contracts/Billing.js +0 -451
  54. package/dist/contracts/ChequeBook.d.ts +0 -1704
  55. package/dist/contracts/ChequeBook.d.ts.map +0 -1
  56. package/dist/contracts/ChequeBook.js +0 -1922
  57. package/dist/contracts/CompoundV3.d.ts +0 -2622
  58. package/dist/contracts/CompoundV3.d.ts.map +0 -1
  59. package/dist/contracts/CompoundV3.js +0 -3304
  60. package/dist/contracts/ConvertVaultToken.d.ts +0 -64
  61. package/dist/contracts/ConvertVaultToken.d.ts.map +0 -1
  62. package/dist/contracts/ConvertVaultToken.js +0 -75
  63. package/dist/contracts/Curve.d.ts +0 -1107
  64. package/dist/contracts/Curve.d.ts.map +0 -1
  65. package/dist/contracts/Curve.js +0 -1379
  66. package/dist/contracts/DefaultsBase.d.ts +0 -306
  67. package/dist/contracts/DefaultsBase.d.ts.map +0 -1
  68. package/dist/contracts/DefaultsBase.js +0 -331
  69. package/dist/contracts/ERC20.d.ts +0 -288
  70. package/dist/contracts/ERC20.d.ts.map +0 -1
  71. package/dist/contracts/ERC20.js +0 -359
  72. package/dist/contracts/EarnVault.d.ts +0 -1733
  73. package/dist/contracts/EarnVault.d.ts.map +0 -1
  74. package/dist/contracts/EarnVault.js +0 -2235
  75. package/dist/contracts/EarnVaultAgent.d.ts +0 -1033
  76. package/dist/contracts/EarnVaultAgent.d.ts.map +0 -1
  77. package/dist/contracts/EarnVaultAgent.js +0 -1296
  78. package/dist/contracts/EarnVaultAgentSigHelper.d.ts +0 -905
  79. package/dist/contracts/EarnVaultAgentSigHelper.d.ts.map +0 -1
  80. package/dist/contracts/EarnVaultAgentSigHelper.js +0 -1198
  81. package/dist/contracts/Euler.d.ts +0 -2662
  82. package/dist/contracts/Euler.d.ts.map +0 -1
  83. package/dist/contracts/Euler.js +0 -3350
  84. package/dist/contracts/ExtraFi.d.ts +0 -2637
  85. package/dist/contracts/ExtraFi.d.ts.map +0 -1
  86. package/dist/contracts/ExtraFi.js +0 -3323
  87. package/dist/contracts/Fluid.d.ts +0 -2634
  88. package/dist/contracts/Fluid.d.ts.map +0 -1
  89. package/dist/contracts/Fluid.js +0 -3318
  90. package/dist/contracts/FortyAcres.d.ts +0 -2620
  91. package/dist/contracts/FortyAcres.d.ts.map +0 -1
  92. package/dist/contracts/FortyAcres.js +0 -3300
  93. package/dist/contracts/Hatchery.d.ts +0 -392
  94. package/dist/contracts/Hatchery.d.ts.map +0 -1
  95. package/dist/contracts/Hatchery.js +0 -472
  96. package/dist/contracts/Helpers.d.ts +0 -1463
  97. package/dist/contracts/Helpers.d.ts.map +0 -1
  98. package/dist/contracts/Helpers.js +0 -1763
  99. package/dist/contracts/HighCommand.d.ts +0 -2129
  100. package/dist/contracts/HighCommand.d.ts.map +0 -1
  101. package/dist/contracts/HighCommand.js +0 -2429
  102. package/dist/contracts/Kernel.d.ts +0 -387
  103. package/dist/contracts/Kernel.d.ts.map +0 -1
  104. package/dist/contracts/Kernel.js +0 -442
  105. package/dist/contracts/Ledger.d.ts +0 -708
  106. package/dist/contracts/Ledger.d.ts.map +0 -1
  107. package/dist/contracts/Ledger.js +0 -854
  108. package/dist/contracts/LegoBook.d.ts +0 -1463
  109. package/dist/contracts/LegoBook.d.ts.map +0 -1
  110. package/dist/contracts/LegoBook.js +0 -1763
  111. package/dist/contracts/LegoTools.d.ts +0 -1913
  112. package/dist/contracts/LegoTools.d.ts.map +0 -1
  113. package/dist/contracts/LegoTools.js +0 -2402
  114. package/dist/contracts/LevgVault.d.ts +0 -2115
  115. package/dist/contracts/LevgVault.d.ts.map +0 -1
  116. package/dist/contracts/LevgVault.js +0 -2733
  117. package/dist/contracts/LevgVaultAgent.d.ts +0 -1955
  118. package/dist/contracts/LevgVaultAgent.d.ts.map +0 -1
  119. package/dist/contracts/LevgVaultAgent.js +0 -2508
  120. package/dist/contracts/LevgVaultAgentSigHelper.d.ts +0 -2221
  121. package/dist/contracts/LevgVaultAgentSigHelper.d.ts.map +0 -1
  122. package/dist/contracts/LevgVaultAgentSigHelper.js +0 -2963
  123. package/dist/contracts/LevgVaultHelper.d.ts +0 -977
  124. package/dist/contracts/LevgVaultHelper.d.ts.map +0 -1
  125. package/dist/contracts/LevgVaultHelper.js +0 -1289
  126. package/dist/contracts/LevgVaultTools.d.ts +0 -2629
  127. package/dist/contracts/LevgVaultTools.d.ts.map +0 -1
  128. package/dist/contracts/LevgVaultTools.js +0 -3560
  129. package/dist/contracts/LootDistributor.d.ts +0 -1053
  130. package/dist/contracts/LootDistributor.d.ts.map +0 -1
  131. package/dist/contracts/LootDistributor.js +0 -1291
  132. package/dist/contracts/Migrator.d.ts +0 -289
  133. package/dist/contracts/Migrator.d.ts.map +0 -1
  134. package/dist/contracts/Migrator.js +0 -348
  135. package/dist/contracts/MissionControl.d.ts +0 -1405
  136. package/dist/contracts/MissionControl.d.ts.map +0 -1
  137. package/dist/contracts/MissionControl.js +0 -1592
  138. package/dist/contracts/Moonwell.d.ts +0 -2623
  139. package/dist/contracts/Moonwell.d.ts.map +0 -1
  140. package/dist/contracts/Moonwell.js +0 -3304
  141. package/dist/contracts/Morpho.d.ts +0 -2662
  142. package/dist/contracts/Morpho.d.ts.map +0 -1
  143. package/dist/contracts/Morpho.js +0 -3350
  144. package/dist/contracts/Paymaster.d.ts +0 -1714
  145. package/dist/contracts/Paymaster.d.ts.map +0 -1
  146. package/dist/contracts/Paymaster.js +0 -2098
  147. package/dist/contracts/RipeLego.d.ts +0 -2913
  148. package/dist/contracts/RipeLego.d.ts.map +0 -1
  149. package/dist/contracts/RipeLego.js +0 -3643
  150. package/dist/contracts/Sentinel.d.ts +0 -2064
  151. package/dist/contracts/Sentinel.d.ts.map +0 -1
  152. package/dist/contracts/Sentinel.js +0 -2476
  153. package/dist/contracts/SignatureHelper.d.ts +0 -4250
  154. package/dist/contracts/SignatureHelper.d.ts.map +0 -1
  155. package/dist/contracts/SignatureHelper.js +0 -5714
  156. package/dist/contracts/SignatureHelperV1.d.ts +0 -4250
  157. package/dist/contracts/SignatureHelperV1.d.ts.map +0 -1
  158. package/dist/contracts/SignatureHelperV1.js +0 -5714
  159. package/dist/contracts/SkyPsm.d.ts +0 -2667
  160. package/dist/contracts/SkyPsm.d.ts.map +0 -1
  161. package/dist/contracts/SkyPsm.js +0 -3356
  162. package/dist/contracts/Switchboard.d.ts +0 -1483
  163. package/dist/contracts/Switchboard.d.ts.map +0 -1
  164. package/dist/contracts/Switchboard.js +0 -1790
  165. package/dist/contracts/SwitchboardAlpha.d.ts +0 -3161
  166. package/dist/contracts/SwitchboardAlpha.d.ts.map +0 -1
  167. package/dist/contracts/SwitchboardAlpha.js +0 -3771
  168. package/dist/contracts/SwitchboardBravo.d.ts +0 -1591
  169. package/dist/contracts/SwitchboardBravo.d.ts.map +0 -1
  170. package/dist/contracts/SwitchboardBravo.js +0 -1872
  171. package/dist/contracts/SwitchboardCharlie.d.ts +0 -3172
  172. package/dist/contracts/SwitchboardCharlie.d.ts.map +0 -1
  173. package/dist/contracts/SwitchboardCharlie.js +0 -3713
  174. package/dist/contracts/UnderscoreLego.d.ts +0 -2592
  175. package/dist/contracts/UnderscoreLego.d.ts.map +0 -1
  176. package/dist/contracts/UnderscoreLego.js +0 -3264
  177. package/dist/contracts/UndyAero.d.ts +0 -1733
  178. package/dist/contracts/UndyAero.d.ts.map +0 -1
  179. package/dist/contracts/UndyAero.js +0 -2235
  180. package/dist/contracts/UndyBtc.d.ts +0 -1733
  181. package/dist/contracts/UndyBtc.d.ts.map +0 -1
  182. package/dist/contracts/UndyBtc.js +0 -2235
  183. package/dist/contracts/UndyCbeth.d.ts +0 -1733
  184. package/dist/contracts/UndyCbeth.d.ts.map +0 -1
  185. package/dist/contracts/UndyCbeth.js +0 -2235
  186. package/dist/contracts/UndyEth.d.ts +0 -1733
  187. package/dist/contracts/UndyEth.d.ts.map +0 -1
  188. package/dist/contracts/UndyEth.js +0 -2235
  189. package/dist/contracts/UndyEurc.d.ts +0 -1733
  190. package/dist/contracts/UndyEurc.d.ts.map +0 -1
  191. package/dist/contracts/UndyEurc.js +0 -2235
  192. package/dist/contracts/UndyGho.d.ts +0 -1733
  193. package/dist/contracts/UndyGho.d.ts.map +0 -1
  194. package/dist/contracts/UndyGho.js +0 -2235
  195. package/dist/contracts/UndyHq.d.ts +0 -1677
  196. package/dist/contracts/UndyHq.d.ts.map +0 -1
  197. package/dist/contracts/UndyHq.js +0 -2026
  198. package/dist/contracts/UndyRewardsLego.d.ts +0 -1572
  199. package/dist/contracts/UndyRewardsLego.d.ts.map +0 -1
  200. package/dist/contracts/UndyRewardsLego.js +0 -1994
  201. package/dist/contracts/UndyUsd.d.ts +0 -1733
  202. package/dist/contracts/UndyUsd.d.ts.map +0 -1
  203. package/dist/contracts/UndyUsd.js +0 -2235
  204. package/dist/contracts/UndyUsdV2.d.ts +0 -1762
  205. package/dist/contracts/UndyUsdV2.d.ts.map +0 -1
  206. package/dist/contracts/UndyUsdV2.js +0 -2267
  207. package/dist/contracts/UndyUsds.d.ts +0 -1733
  208. package/dist/contracts/UndyUsds.d.ts.map +0 -1
  209. package/dist/contracts/UndyUsds.js +0 -2235
  210. package/dist/contracts/UndyVirtual.d.ts +0 -1762
  211. package/dist/contracts/UndyVirtual.d.ts.map +0 -1
  212. package/dist/contracts/UndyVirtual.js +0 -2267
  213. package/dist/contracts/UniswapV2.d.ts +0 -2118
  214. package/dist/contracts/UniswapV2.d.ts.map +0 -1
  215. package/dist/contracts/UniswapV2.js +0 -2679
  216. package/dist/contracts/UniswapV3.d.ts +0 -2256
  217. package/dist/contracts/UniswapV3.d.ts.map +0 -1
  218. package/dist/contracts/UniswapV3.js +0 -2848
  219. package/dist/contracts/UserWallet.d.ts +0 -2650
  220. package/dist/contracts/UserWallet.d.ts.map +0 -1
  221. package/dist/contracts/UserWallet.js +0 -3520
  222. package/dist/contracts/UserWalletConfig.d.ts +0 -3901
  223. package/dist/contracts/UserWalletConfig.d.ts.map +0 -1
  224. package/dist/contracts/UserWalletConfig.js +0 -4507
  225. package/dist/contracts/UserWalletConfigV1.d.ts +0 -3692
  226. package/dist/contracts/UserWalletConfigV1.d.ts.map +0 -1
  227. package/dist/contracts/UserWalletConfigV1.js +0 -4276
  228. package/dist/contracts/UserWalletSignatureHelper.d.ts +0 -4552
  229. package/dist/contracts/UserWalletSignatureHelper.d.ts.map +0 -1
  230. package/dist/contracts/UserWalletSignatureHelper.js +0 -6123
  231. package/dist/contracts/UserWalletV1.d.ts +0 -2650
  232. package/dist/contracts/UserWalletV1.d.ts.map +0 -1
  233. package/dist/contracts/UserWalletV1.js +0 -3520
  234. package/dist/contracts/VaultRegistry.d.ts +0 -3162
  235. package/dist/contracts/VaultRegistry.d.ts.map +0 -1
  236. package/dist/contracts/VaultRegistry.js +0 -3893
  237. package/dist/contracts/WalletBackpack.d.ts +0 -1248
  238. package/dist/contracts/WalletBackpack.d.ts.map +0 -1
  239. package/dist/contracts/WalletBackpack.js +0 -1519
  240. package/dist/contracts/Wasabi.d.ts +0 -2620
  241. package/dist/contracts/Wasabi.d.ts.map +0 -1
  242. package/dist/contracts/Wasabi.js +0 -3300
  243. package/dist/contracts/index.d.ts +0 -76
  244. package/dist/contracts/index.d.ts.map +0 -1
  245. package/dist/contracts/index.js +0 -79
  246. package/dist/contracts/sdk.d.ts +0 -156
  247. package/dist/contracts/sdk.d.ts.map +0 -1
  248. package/dist/contracts/sdk.js +0 -158
  249. package/dist/getSwapInstructions.d.ts +0 -34
  250. package/dist/getSwapInstructions.d.ts.map +0 -1
  251. package/dist/getSwapInstructions.js +0 -21
  252. package/dist/index.d.ts +0 -135
  253. package/dist/index.d.ts.map +0 -1
  254. package/dist/index.js +0 -137
@@ -1,4507 +0,0 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /* @ts-nocheck */
5
- import { singleQuery, mutate } from '@dappql/async';
6
- import { encodeEventTopics, parseEventLogs } from 'viem';
7
- export const abi = [
8
- {
9
- "name": "EjectionModeSet",
10
- "inputs": [
11
- {
12
- "name": "inEjectMode",
13
- "type": "bool",
14
- "indexed": false
15
- }
16
- ],
17
- "anonymous": false,
18
- "type": "event"
19
- },
20
- {
21
- "name": "FrozenSet",
22
- "inputs": [
23
- {
24
- "name": "isFrozen",
25
- "type": "bool",
26
- "indexed": false
27
- },
28
- {
29
- "name": "caller",
30
- "type": "address",
31
- "indexed": true
32
- }
33
- ],
34
- "anonymous": false,
35
- "type": "event"
36
- },
37
- {
38
- "name": "NftRecovered",
39
- "inputs": [
40
- {
41
- "name": "collection",
42
- "type": "address",
43
- "indexed": true
44
- },
45
- {
46
- "name": "nftTokenId",
47
- "type": "uint256",
48
- "indexed": false
49
- },
50
- {
51
- "name": "recipient",
52
- "type": "address",
53
- "indexed": true
54
- }
55
- ],
56
- "anonymous": false,
57
- "type": "event"
58
- },
59
- {
60
- "name": "OwnershipChangeInitiated",
61
- "inputs": [
62
- {
63
- "name": "prevOwner",
64
- "type": "address",
65
- "indexed": true
66
- },
67
- {
68
- "name": "newOwner",
69
- "type": "address",
70
- "indexed": true
71
- },
72
- {
73
- "name": "confirmBlock",
74
- "type": "uint256",
75
- "indexed": false
76
- }
77
- ],
78
- "anonymous": false,
79
- "type": "event"
80
- },
81
- {
82
- "name": "OwnershipChangeConfirmed",
83
- "inputs": [
84
- {
85
- "name": "prevOwner",
86
- "type": "address",
87
- "indexed": true
88
- },
89
- {
90
- "name": "newOwner",
91
- "type": "address",
92
- "indexed": true
93
- },
94
- {
95
- "name": "initiatedBlock",
96
- "type": "uint256",
97
- "indexed": false
98
- },
99
- {
100
- "name": "confirmBlock",
101
- "type": "uint256",
102
- "indexed": false
103
- }
104
- ],
105
- "anonymous": false,
106
- "type": "event"
107
- },
108
- {
109
- "name": "OwnershipChangeCancelled",
110
- "inputs": [
111
- {
112
- "name": "cancelledOwner",
113
- "type": "address",
114
- "indexed": true
115
- },
116
- {
117
- "name": "cancelledBy",
118
- "type": "address",
119
- "indexed": true
120
- },
121
- {
122
- "name": "initiatedBlock",
123
- "type": "uint256",
124
- "indexed": false
125
- },
126
- {
127
- "name": "confirmBlock",
128
- "type": "uint256",
129
- "indexed": false
130
- }
131
- ],
132
- "anonymous": false,
133
- "type": "event"
134
- },
135
- {
136
- "name": "OwnershipTimeLockSet",
137
- "inputs": [
138
- {
139
- "name": "numBlocks",
140
- "type": "uint256",
141
- "indexed": false
142
- }
143
- ],
144
- "anonymous": false,
145
- "type": "event"
146
- },
147
- {
148
- "stateMutability": "nonpayable",
149
- "type": "function",
150
- "name": "changeOwnership",
151
- "inputs": [
152
- {
153
- "name": "_newOwner",
154
- "type": "address"
155
- }
156
- ],
157
- "outputs": []
158
- },
159
- {
160
- "stateMutability": "nonpayable",
161
- "type": "function",
162
- "name": "confirmOwnershipChange",
163
- "inputs": [],
164
- "outputs": []
165
- },
166
- {
167
- "stateMutability": "nonpayable",
168
- "type": "function",
169
- "name": "cancelOwnershipChange",
170
- "inputs": [],
171
- "outputs": []
172
- },
173
- {
174
- "stateMutability": "view",
175
- "type": "function",
176
- "name": "hasPendingOwnerChange",
177
- "inputs": [],
178
- "outputs": [
179
- {
180
- "name": "",
181
- "type": "bool"
182
- }
183
- ]
184
- },
185
- {
186
- "stateMutability": "nonpayable",
187
- "type": "function",
188
- "name": "setOwnershipTimeLock",
189
- "inputs": [
190
- {
191
- "name": "_numBlocks",
192
- "type": "uint256"
193
- }
194
- ],
195
- "outputs": []
196
- },
197
- {
198
- "stateMutability": "view",
199
- "type": "function",
200
- "name": "owner",
201
- "inputs": [],
202
- "outputs": [
203
- {
204
- "name": "",
205
- "type": "address"
206
- }
207
- ]
208
- },
209
- {
210
- "stateMutability": "view",
211
- "type": "function",
212
- "name": "ownershipTimeLock",
213
- "inputs": [],
214
- "outputs": [
215
- {
216
- "name": "",
217
- "type": "uint256"
218
- }
219
- ]
220
- },
221
- {
222
- "stateMutability": "view",
223
- "type": "function",
224
- "name": "pendingOwner",
225
- "inputs": [],
226
- "outputs": [
227
- {
228
- "name": "",
229
- "type": "tuple",
230
- "components": [
231
- {
232
- "name": "newOwner",
233
- "type": "address"
234
- },
235
- {
236
- "name": "initiatedBlock",
237
- "type": "uint256"
238
- },
239
- {
240
- "name": "confirmBlock",
241
- "type": "uint256"
242
- }
243
- ]
244
- }
245
- ]
246
- },
247
- {
248
- "stateMutability": "view",
249
- "type": "function",
250
- "name": "MIN_OWNERSHIP_TIMELOCK",
251
- "inputs": [],
252
- "outputs": [
253
- {
254
- "name": "",
255
- "type": "uint256"
256
- }
257
- ]
258
- },
259
- {
260
- "stateMutability": "view",
261
- "type": "function",
262
- "name": "MAX_OWNERSHIP_TIMELOCK",
263
- "inputs": [],
264
- "outputs": [
265
- {
266
- "name": "",
267
- "type": "uint256"
268
- }
269
- ]
270
- },
271
- {
272
- "stateMutability": "nonpayable",
273
- "type": "function",
274
- "name": "setWallet",
275
- "inputs": [
276
- {
277
- "name": "_wallet",
278
- "type": "address"
279
- }
280
- ],
281
- "outputs": [
282
- {
283
- "name": "",
284
- "type": "bool"
285
- }
286
- ]
287
- },
288
- {
289
- "stateMutability": "pure",
290
- "type": "function",
291
- "name": "apiVersion",
292
- "inputs": [],
293
- "outputs": [
294
- {
295
- "name": "",
296
- "type": "string"
297
- }
298
- ]
299
- },
300
- {
301
- "stateMutability": "view",
302
- "type": "function",
303
- "name": "checkSignerPermissionsAndGetBundle",
304
- "inputs": [
305
- {
306
- "name": "_signer",
307
- "type": "address"
308
- },
309
- {
310
- "name": "_action",
311
- "type": "uint256"
312
- }
313
- ],
314
- "outputs": [
315
- {
316
- "name": "",
317
- "type": "tuple",
318
- "components": [
319
- {
320
- "name": "ledger",
321
- "type": "address"
322
- },
323
- {
324
- "name": "missionControl",
325
- "type": "address"
326
- },
327
- {
328
- "name": "legoBook",
329
- "type": "address"
330
- },
331
- {
332
- "name": "hatchery",
333
- "type": "address"
334
- },
335
- {
336
- "name": "lootDistributor",
337
- "type": "address"
338
- },
339
- {
340
- "name": "appraiser",
341
- "type": "address"
342
- },
343
- {
344
- "name": "billing",
345
- "type": "address"
346
- },
347
- {
348
- "name": "vaultRegistry",
349
- "type": "address"
350
- },
351
- {
352
- "name": "wallet",
353
- "type": "address"
354
- },
355
- {
356
- "name": "walletConfig",
357
- "type": "address"
358
- },
359
- {
360
- "name": "walletOwner",
361
- "type": "address"
362
- },
363
- {
364
- "name": "inEjectMode",
365
- "type": "bool"
366
- },
367
- {
368
- "name": "isFrozen",
369
- "type": "bool"
370
- },
371
- {
372
- "name": "lastTotalUsdValue",
373
- "type": "uint256"
374
- },
375
- {
376
- "name": "signer",
377
- "type": "address"
378
- },
379
- {
380
- "name": "isManager",
381
- "type": "bool"
382
- },
383
- {
384
- "name": "legoId",
385
- "type": "uint256"
386
- },
387
- {
388
- "name": "legoAddr",
389
- "type": "address"
390
- },
391
- {
392
- "name": "eth",
393
- "type": "address"
394
- },
395
- {
396
- "name": "weth",
397
- "type": "address"
398
- }
399
- ]
400
- }
401
- ]
402
- },
403
- {
404
- "stateMutability": "view",
405
- "type": "function",
406
- "name": "checkSignerPermissionsAndGetBundle",
407
- "inputs": [
408
- {
409
- "name": "_signer",
410
- "type": "address"
411
- },
412
- {
413
- "name": "_action",
414
- "type": "uint256"
415
- },
416
- {
417
- "name": "_assets",
418
- "type": "address[]"
419
- }
420
- ],
421
- "outputs": [
422
- {
423
- "name": "",
424
- "type": "tuple",
425
- "components": [
426
- {
427
- "name": "ledger",
428
- "type": "address"
429
- },
430
- {
431
- "name": "missionControl",
432
- "type": "address"
433
- },
434
- {
435
- "name": "legoBook",
436
- "type": "address"
437
- },
438
- {
439
- "name": "hatchery",
440
- "type": "address"
441
- },
442
- {
443
- "name": "lootDistributor",
444
- "type": "address"
445
- },
446
- {
447
- "name": "appraiser",
448
- "type": "address"
449
- },
450
- {
451
- "name": "billing",
452
- "type": "address"
453
- },
454
- {
455
- "name": "vaultRegistry",
456
- "type": "address"
457
- },
458
- {
459
- "name": "wallet",
460
- "type": "address"
461
- },
462
- {
463
- "name": "walletConfig",
464
- "type": "address"
465
- },
466
- {
467
- "name": "walletOwner",
468
- "type": "address"
469
- },
470
- {
471
- "name": "inEjectMode",
472
- "type": "bool"
473
- },
474
- {
475
- "name": "isFrozen",
476
- "type": "bool"
477
- },
478
- {
479
- "name": "lastTotalUsdValue",
480
- "type": "uint256"
481
- },
482
- {
483
- "name": "signer",
484
- "type": "address"
485
- },
486
- {
487
- "name": "isManager",
488
- "type": "bool"
489
- },
490
- {
491
- "name": "legoId",
492
- "type": "uint256"
493
- },
494
- {
495
- "name": "legoAddr",
496
- "type": "address"
497
- },
498
- {
499
- "name": "eth",
500
- "type": "address"
501
- },
502
- {
503
- "name": "weth",
504
- "type": "address"
505
- }
506
- ]
507
- }
508
- ]
509
- },
510
- {
511
- "stateMutability": "view",
512
- "type": "function",
513
- "name": "checkSignerPermissionsAndGetBundle",
514
- "inputs": [
515
- {
516
- "name": "_signer",
517
- "type": "address"
518
- },
519
- {
520
- "name": "_action",
521
- "type": "uint256"
522
- },
523
- {
524
- "name": "_assets",
525
- "type": "address[]"
526
- },
527
- {
528
- "name": "_legoIds",
529
- "type": "uint256[]"
530
- }
531
- ],
532
- "outputs": [
533
- {
534
- "name": "",
535
- "type": "tuple",
536
- "components": [
537
- {
538
- "name": "ledger",
539
- "type": "address"
540
- },
541
- {
542
- "name": "missionControl",
543
- "type": "address"
544
- },
545
- {
546
- "name": "legoBook",
547
- "type": "address"
548
- },
549
- {
550
- "name": "hatchery",
551
- "type": "address"
552
- },
553
- {
554
- "name": "lootDistributor",
555
- "type": "address"
556
- },
557
- {
558
- "name": "appraiser",
559
- "type": "address"
560
- },
561
- {
562
- "name": "billing",
563
- "type": "address"
564
- },
565
- {
566
- "name": "vaultRegistry",
567
- "type": "address"
568
- },
569
- {
570
- "name": "wallet",
571
- "type": "address"
572
- },
573
- {
574
- "name": "walletConfig",
575
- "type": "address"
576
- },
577
- {
578
- "name": "walletOwner",
579
- "type": "address"
580
- },
581
- {
582
- "name": "inEjectMode",
583
- "type": "bool"
584
- },
585
- {
586
- "name": "isFrozen",
587
- "type": "bool"
588
- },
589
- {
590
- "name": "lastTotalUsdValue",
591
- "type": "uint256"
592
- },
593
- {
594
- "name": "signer",
595
- "type": "address"
596
- },
597
- {
598
- "name": "isManager",
599
- "type": "bool"
600
- },
601
- {
602
- "name": "legoId",
603
- "type": "uint256"
604
- },
605
- {
606
- "name": "legoAddr",
607
- "type": "address"
608
- },
609
- {
610
- "name": "eth",
611
- "type": "address"
612
- },
613
- {
614
- "name": "weth",
615
- "type": "address"
616
- }
617
- ]
618
- }
619
- ]
620
- },
621
- {
622
- "stateMutability": "view",
623
- "type": "function",
624
- "name": "checkSignerPermissionsAndGetBundle",
625
- "inputs": [
626
- {
627
- "name": "_signer",
628
- "type": "address"
629
- },
630
- {
631
- "name": "_action",
632
- "type": "uint256"
633
- },
634
- {
635
- "name": "_assets",
636
- "type": "address[]"
637
- },
638
- {
639
- "name": "_legoIds",
640
- "type": "uint256[]"
641
- },
642
- {
643
- "name": "_transferRecipient",
644
- "type": "address"
645
- }
646
- ],
647
- "outputs": [
648
- {
649
- "name": "",
650
- "type": "tuple",
651
- "components": [
652
- {
653
- "name": "ledger",
654
- "type": "address"
655
- },
656
- {
657
- "name": "missionControl",
658
- "type": "address"
659
- },
660
- {
661
- "name": "legoBook",
662
- "type": "address"
663
- },
664
- {
665
- "name": "hatchery",
666
- "type": "address"
667
- },
668
- {
669
- "name": "lootDistributor",
670
- "type": "address"
671
- },
672
- {
673
- "name": "appraiser",
674
- "type": "address"
675
- },
676
- {
677
- "name": "billing",
678
- "type": "address"
679
- },
680
- {
681
- "name": "vaultRegistry",
682
- "type": "address"
683
- },
684
- {
685
- "name": "wallet",
686
- "type": "address"
687
- },
688
- {
689
- "name": "walletConfig",
690
- "type": "address"
691
- },
692
- {
693
- "name": "walletOwner",
694
- "type": "address"
695
- },
696
- {
697
- "name": "inEjectMode",
698
- "type": "bool"
699
- },
700
- {
701
- "name": "isFrozen",
702
- "type": "bool"
703
- },
704
- {
705
- "name": "lastTotalUsdValue",
706
- "type": "uint256"
707
- },
708
- {
709
- "name": "signer",
710
- "type": "address"
711
- },
712
- {
713
- "name": "isManager",
714
- "type": "bool"
715
- },
716
- {
717
- "name": "legoId",
718
- "type": "uint256"
719
- },
720
- {
721
- "name": "legoAddr",
722
- "type": "address"
723
- },
724
- {
725
- "name": "eth",
726
- "type": "address"
727
- },
728
- {
729
- "name": "weth",
730
- "type": "address"
731
- }
732
- ]
733
- }
734
- ]
735
- },
736
- {
737
- "stateMutability": "nonpayable",
738
- "type": "function",
739
- "name": "checkManagerLimitsPostTx",
740
- "inputs": [
741
- {
742
- "name": "_manager",
743
- "type": "address"
744
- },
745
- {
746
- "name": "_txUsdValue",
747
- "type": "uint256"
748
- },
749
- {
750
- "name": "_underlyingAsset",
751
- "type": "address"
752
- },
753
- {
754
- "name": "_vaultToken",
755
- "type": "address"
756
- },
757
- {
758
- "name": "_shouldCheckSwap",
759
- "type": "bool"
760
- },
761
- {
762
- "name": "_fromAssetUsdValue",
763
- "type": "uint256"
764
- },
765
- {
766
- "name": "_toAssetUsdValue",
767
- "type": "uint256"
768
- },
769
- {
770
- "name": "_vaultRegistry",
771
- "type": "address"
772
- }
773
- ],
774
- "outputs": [
775
- {
776
- "name": "",
777
- "type": "bool"
778
- }
779
- ]
780
- },
781
- {
782
- "stateMutability": "nonpayable",
783
- "type": "function",
784
- "name": "checkRecipientLimitsAndUpdateData",
785
- "inputs": [
786
- {
787
- "name": "_recipient",
788
- "type": "address"
789
- },
790
- {
791
- "name": "_txUsdValue",
792
- "type": "uint256"
793
- },
794
- {
795
- "name": "_asset",
796
- "type": "address"
797
- },
798
- {
799
- "name": "_amount",
800
- "type": "uint256"
801
- }
802
- ],
803
- "outputs": [
804
- {
805
- "name": "",
806
- "type": "bool"
807
- }
808
- ]
809
- },
810
- {
811
- "stateMutability": "nonpayable",
812
- "type": "function",
813
- "name": "validateCheque",
814
- "inputs": [
815
- {
816
- "name": "_recipient",
817
- "type": "address"
818
- },
819
- {
820
- "name": "_asset",
821
- "type": "address"
822
- },
823
- {
824
- "name": "_amount",
825
- "type": "uint256"
826
- },
827
- {
828
- "name": "_txUsdValue",
829
- "type": "uint256"
830
- },
831
- {
832
- "name": "_signer",
833
- "type": "address"
834
- }
835
- ],
836
- "outputs": [
837
- {
838
- "name": "",
839
- "type": "bool"
840
- }
841
- ]
842
- },
843
- {
844
- "stateMutability": "nonpayable",
845
- "type": "function",
846
- "name": "addPendingWhitelistAddr",
847
- "inputs": [
848
- {
849
- "name": "_addr",
850
- "type": "address"
851
- },
852
- {
853
- "name": "_pending",
854
- "type": "tuple",
855
- "components": [
856
- {
857
- "name": "initiatedBlock",
858
- "type": "uint256"
859
- },
860
- {
861
- "name": "confirmBlock",
862
- "type": "uint256"
863
- },
864
- {
865
- "name": "currentOwner",
866
- "type": "address"
867
- }
868
- ]
869
- }
870
- ],
871
- "outputs": []
872
- },
873
- {
874
- "stateMutability": "nonpayable",
875
- "type": "function",
876
- "name": "cancelPendingWhitelistAddr",
877
- "inputs": [
878
- {
879
- "name": "_addr",
880
- "type": "address"
881
- }
882
- ],
883
- "outputs": []
884
- },
885
- {
886
- "stateMutability": "nonpayable",
887
- "type": "function",
888
- "name": "confirmWhitelistAddr",
889
- "inputs": [
890
- {
891
- "name": "_addr",
892
- "type": "address"
893
- }
894
- ],
895
- "outputs": []
896
- },
897
- {
898
- "stateMutability": "nonpayable",
899
- "type": "function",
900
- "name": "addWhitelistAddrViaMigrator",
901
- "inputs": [
902
- {
903
- "name": "_addr",
904
- "type": "address"
905
- }
906
- ],
907
- "outputs": []
908
- },
909
- {
910
- "stateMutability": "nonpayable",
911
- "type": "function",
912
- "name": "removeWhitelistAddr",
913
- "inputs": [
914
- {
915
- "name": "_addr",
916
- "type": "address"
917
- }
918
- ],
919
- "outputs": []
920
- },
921
- {
922
- "stateMutability": "nonpayable",
923
- "type": "function",
924
- "name": "addManager",
925
- "inputs": [
926
- {
927
- "name": "_manager",
928
- "type": "address"
929
- },
930
- {
931
- "name": "_config",
932
- "type": "tuple",
933
- "components": [
934
- {
935
- "name": "startBlock",
936
- "type": "uint256"
937
- },
938
- {
939
- "name": "expiryBlock",
940
- "type": "uint256"
941
- },
942
- {
943
- "name": "limits",
944
- "type": "tuple",
945
- "components": [
946
- {
947
- "name": "maxUsdValuePerTx",
948
- "type": "uint256"
949
- },
950
- {
951
- "name": "maxUsdValuePerPeriod",
952
- "type": "uint256"
953
- },
954
- {
955
- "name": "maxUsdValueLifetime",
956
- "type": "uint256"
957
- },
958
- {
959
- "name": "maxNumTxsPerPeriod",
960
- "type": "uint256"
961
- },
962
- {
963
- "name": "txCooldownBlocks",
964
- "type": "uint256"
965
- },
966
- {
967
- "name": "failOnZeroPrice",
968
- "type": "bool"
969
- }
970
- ]
971
- },
972
- {
973
- "name": "legoPerms",
974
- "type": "tuple",
975
- "components": [
976
- {
977
- "name": "canManageYield",
978
- "type": "bool"
979
- },
980
- {
981
- "name": "canBuyAndSell",
982
- "type": "bool"
983
- },
984
- {
985
- "name": "canManageDebt",
986
- "type": "bool"
987
- },
988
- {
989
- "name": "canManageLiq",
990
- "type": "bool"
991
- },
992
- {
993
- "name": "canClaimRewards",
994
- "type": "bool"
995
- },
996
- {
997
- "name": "onlyApprovedYieldOpps",
998
- "type": "bool"
999
- },
1000
- {
1001
- "name": "allowedLegos",
1002
- "type": "uint256[]"
1003
- }
1004
- ]
1005
- },
1006
- {
1007
- "name": "swapPerms",
1008
- "type": "tuple",
1009
- "components": [
1010
- {
1011
- "name": "mustHaveUsdValue",
1012
- "type": "bool"
1013
- },
1014
- {
1015
- "name": "maxNumSwapsPerPeriod",
1016
- "type": "uint256"
1017
- },
1018
- {
1019
- "name": "maxSlippage",
1020
- "type": "uint256"
1021
- }
1022
- ]
1023
- },
1024
- {
1025
- "name": "whitelistPerms",
1026
- "type": "tuple",
1027
- "components": [
1028
- {
1029
- "name": "canAddPending",
1030
- "type": "bool"
1031
- },
1032
- {
1033
- "name": "canConfirm",
1034
- "type": "bool"
1035
- },
1036
- {
1037
- "name": "canCancel",
1038
- "type": "bool"
1039
- },
1040
- {
1041
- "name": "canRemove",
1042
- "type": "bool"
1043
- }
1044
- ]
1045
- },
1046
- {
1047
- "name": "transferPerms",
1048
- "type": "tuple",
1049
- "components": [
1050
- {
1051
- "name": "canTransfer",
1052
- "type": "bool"
1053
- },
1054
- {
1055
- "name": "canCreateCheque",
1056
- "type": "bool"
1057
- },
1058
- {
1059
- "name": "canAddPendingPayee",
1060
- "type": "bool"
1061
- },
1062
- {
1063
- "name": "allowedPayees",
1064
- "type": "address[]"
1065
- }
1066
- ]
1067
- },
1068
- {
1069
- "name": "allowedAssets",
1070
- "type": "address[]"
1071
- },
1072
- {
1073
- "name": "canClaimLoot",
1074
- "type": "bool"
1075
- }
1076
- ]
1077
- }
1078
- ],
1079
- "outputs": []
1080
- },
1081
- {
1082
- "stateMutability": "nonpayable",
1083
- "type": "function",
1084
- "name": "updateManager",
1085
- "inputs": [
1086
- {
1087
- "name": "_manager",
1088
- "type": "address"
1089
- },
1090
- {
1091
- "name": "_config",
1092
- "type": "tuple",
1093
- "components": [
1094
- {
1095
- "name": "startBlock",
1096
- "type": "uint256"
1097
- },
1098
- {
1099
- "name": "expiryBlock",
1100
- "type": "uint256"
1101
- },
1102
- {
1103
- "name": "limits",
1104
- "type": "tuple",
1105
- "components": [
1106
- {
1107
- "name": "maxUsdValuePerTx",
1108
- "type": "uint256"
1109
- },
1110
- {
1111
- "name": "maxUsdValuePerPeriod",
1112
- "type": "uint256"
1113
- },
1114
- {
1115
- "name": "maxUsdValueLifetime",
1116
- "type": "uint256"
1117
- },
1118
- {
1119
- "name": "maxNumTxsPerPeriod",
1120
- "type": "uint256"
1121
- },
1122
- {
1123
- "name": "txCooldownBlocks",
1124
- "type": "uint256"
1125
- },
1126
- {
1127
- "name": "failOnZeroPrice",
1128
- "type": "bool"
1129
- }
1130
- ]
1131
- },
1132
- {
1133
- "name": "legoPerms",
1134
- "type": "tuple",
1135
- "components": [
1136
- {
1137
- "name": "canManageYield",
1138
- "type": "bool"
1139
- },
1140
- {
1141
- "name": "canBuyAndSell",
1142
- "type": "bool"
1143
- },
1144
- {
1145
- "name": "canManageDebt",
1146
- "type": "bool"
1147
- },
1148
- {
1149
- "name": "canManageLiq",
1150
- "type": "bool"
1151
- },
1152
- {
1153
- "name": "canClaimRewards",
1154
- "type": "bool"
1155
- },
1156
- {
1157
- "name": "onlyApprovedYieldOpps",
1158
- "type": "bool"
1159
- },
1160
- {
1161
- "name": "allowedLegos",
1162
- "type": "uint256[]"
1163
- }
1164
- ]
1165
- },
1166
- {
1167
- "name": "swapPerms",
1168
- "type": "tuple",
1169
- "components": [
1170
- {
1171
- "name": "mustHaveUsdValue",
1172
- "type": "bool"
1173
- },
1174
- {
1175
- "name": "maxNumSwapsPerPeriod",
1176
- "type": "uint256"
1177
- },
1178
- {
1179
- "name": "maxSlippage",
1180
- "type": "uint256"
1181
- }
1182
- ]
1183
- },
1184
- {
1185
- "name": "whitelistPerms",
1186
- "type": "tuple",
1187
- "components": [
1188
- {
1189
- "name": "canAddPending",
1190
- "type": "bool"
1191
- },
1192
- {
1193
- "name": "canConfirm",
1194
- "type": "bool"
1195
- },
1196
- {
1197
- "name": "canCancel",
1198
- "type": "bool"
1199
- },
1200
- {
1201
- "name": "canRemove",
1202
- "type": "bool"
1203
- }
1204
- ]
1205
- },
1206
- {
1207
- "name": "transferPerms",
1208
- "type": "tuple",
1209
- "components": [
1210
- {
1211
- "name": "canTransfer",
1212
- "type": "bool"
1213
- },
1214
- {
1215
- "name": "canCreateCheque",
1216
- "type": "bool"
1217
- },
1218
- {
1219
- "name": "canAddPendingPayee",
1220
- "type": "bool"
1221
- },
1222
- {
1223
- "name": "allowedPayees",
1224
- "type": "address[]"
1225
- }
1226
- ]
1227
- },
1228
- {
1229
- "name": "allowedAssets",
1230
- "type": "address[]"
1231
- },
1232
- {
1233
- "name": "canClaimLoot",
1234
- "type": "bool"
1235
- }
1236
- ]
1237
- }
1238
- ],
1239
- "outputs": []
1240
- },
1241
- {
1242
- "stateMutability": "nonpayable",
1243
- "type": "function",
1244
- "name": "removeManager",
1245
- "inputs": [
1246
- {
1247
- "name": "_manager",
1248
- "type": "address"
1249
- }
1250
- ],
1251
- "outputs": []
1252
- },
1253
- {
1254
- "stateMutability": "nonpayable",
1255
- "type": "function",
1256
- "name": "setGlobalManagerSettings",
1257
- "inputs": [
1258
- {
1259
- "name": "_config",
1260
- "type": "tuple",
1261
- "components": [
1262
- {
1263
- "name": "managerPeriod",
1264
- "type": "uint256"
1265
- },
1266
- {
1267
- "name": "startDelay",
1268
- "type": "uint256"
1269
- },
1270
- {
1271
- "name": "activationLength",
1272
- "type": "uint256"
1273
- },
1274
- {
1275
- "name": "canOwnerManage",
1276
- "type": "bool"
1277
- },
1278
- {
1279
- "name": "limits",
1280
- "type": "tuple",
1281
- "components": [
1282
- {
1283
- "name": "maxUsdValuePerTx",
1284
- "type": "uint256"
1285
- },
1286
- {
1287
- "name": "maxUsdValuePerPeriod",
1288
- "type": "uint256"
1289
- },
1290
- {
1291
- "name": "maxUsdValueLifetime",
1292
- "type": "uint256"
1293
- },
1294
- {
1295
- "name": "maxNumTxsPerPeriod",
1296
- "type": "uint256"
1297
- },
1298
- {
1299
- "name": "txCooldownBlocks",
1300
- "type": "uint256"
1301
- },
1302
- {
1303
- "name": "failOnZeroPrice",
1304
- "type": "bool"
1305
- }
1306
- ]
1307
- },
1308
- {
1309
- "name": "legoPerms",
1310
- "type": "tuple",
1311
- "components": [
1312
- {
1313
- "name": "canManageYield",
1314
- "type": "bool"
1315
- },
1316
- {
1317
- "name": "canBuyAndSell",
1318
- "type": "bool"
1319
- },
1320
- {
1321
- "name": "canManageDebt",
1322
- "type": "bool"
1323
- },
1324
- {
1325
- "name": "canManageLiq",
1326
- "type": "bool"
1327
- },
1328
- {
1329
- "name": "canClaimRewards",
1330
- "type": "bool"
1331
- },
1332
- {
1333
- "name": "onlyApprovedYieldOpps",
1334
- "type": "bool"
1335
- },
1336
- {
1337
- "name": "allowedLegos",
1338
- "type": "uint256[]"
1339
- }
1340
- ]
1341
- },
1342
- {
1343
- "name": "swapPerms",
1344
- "type": "tuple",
1345
- "components": [
1346
- {
1347
- "name": "mustHaveUsdValue",
1348
- "type": "bool"
1349
- },
1350
- {
1351
- "name": "maxNumSwapsPerPeriod",
1352
- "type": "uint256"
1353
- },
1354
- {
1355
- "name": "maxSlippage",
1356
- "type": "uint256"
1357
- }
1358
- ]
1359
- },
1360
- {
1361
- "name": "whitelistPerms",
1362
- "type": "tuple",
1363
- "components": [
1364
- {
1365
- "name": "canAddPending",
1366
- "type": "bool"
1367
- },
1368
- {
1369
- "name": "canConfirm",
1370
- "type": "bool"
1371
- },
1372
- {
1373
- "name": "canCancel",
1374
- "type": "bool"
1375
- },
1376
- {
1377
- "name": "canRemove",
1378
- "type": "bool"
1379
- }
1380
- ]
1381
- },
1382
- {
1383
- "name": "transferPerms",
1384
- "type": "tuple",
1385
- "components": [
1386
- {
1387
- "name": "canTransfer",
1388
- "type": "bool"
1389
- },
1390
- {
1391
- "name": "canCreateCheque",
1392
- "type": "bool"
1393
- },
1394
- {
1395
- "name": "canAddPendingPayee",
1396
- "type": "bool"
1397
- },
1398
- {
1399
- "name": "allowedPayees",
1400
- "type": "address[]"
1401
- }
1402
- ]
1403
- },
1404
- {
1405
- "name": "allowedAssets",
1406
- "type": "address[]"
1407
- }
1408
- ]
1409
- }
1410
- ],
1411
- "outputs": []
1412
- },
1413
- {
1414
- "stateMutability": "nonpayable",
1415
- "type": "function",
1416
- "name": "addPayee",
1417
- "inputs": [
1418
- {
1419
- "name": "_payee",
1420
- "type": "address"
1421
- },
1422
- {
1423
- "name": "_config",
1424
- "type": "tuple",
1425
- "components": [
1426
- {
1427
- "name": "startBlock",
1428
- "type": "uint256"
1429
- },
1430
- {
1431
- "name": "expiryBlock",
1432
- "type": "uint256"
1433
- },
1434
- {
1435
- "name": "canPull",
1436
- "type": "bool"
1437
- },
1438
- {
1439
- "name": "periodLength",
1440
- "type": "uint256"
1441
- },
1442
- {
1443
- "name": "maxNumTxsPerPeriod",
1444
- "type": "uint256"
1445
- },
1446
- {
1447
- "name": "txCooldownBlocks",
1448
- "type": "uint256"
1449
- },
1450
- {
1451
- "name": "failOnZeroPrice",
1452
- "type": "bool"
1453
- },
1454
- {
1455
- "name": "primaryAsset",
1456
- "type": "address"
1457
- },
1458
- {
1459
- "name": "onlyPrimaryAsset",
1460
- "type": "bool"
1461
- },
1462
- {
1463
- "name": "unitLimits",
1464
- "type": "tuple",
1465
- "components": [
1466
- {
1467
- "name": "perTxCap",
1468
- "type": "uint256"
1469
- },
1470
- {
1471
- "name": "perPeriodCap",
1472
- "type": "uint256"
1473
- },
1474
- {
1475
- "name": "lifetimeCap",
1476
- "type": "uint256"
1477
- }
1478
- ]
1479
- },
1480
- {
1481
- "name": "usdLimits",
1482
- "type": "tuple",
1483
- "components": [
1484
- {
1485
- "name": "perTxCap",
1486
- "type": "uint256"
1487
- },
1488
- {
1489
- "name": "perPeriodCap",
1490
- "type": "uint256"
1491
- },
1492
- {
1493
- "name": "lifetimeCap",
1494
- "type": "uint256"
1495
- }
1496
- ]
1497
- }
1498
- ]
1499
- }
1500
- ],
1501
- "outputs": []
1502
- },
1503
- {
1504
- "stateMutability": "nonpayable",
1505
- "type": "function",
1506
- "name": "updatePayee",
1507
- "inputs": [
1508
- {
1509
- "name": "_payee",
1510
- "type": "address"
1511
- },
1512
- {
1513
- "name": "_config",
1514
- "type": "tuple",
1515
- "components": [
1516
- {
1517
- "name": "startBlock",
1518
- "type": "uint256"
1519
- },
1520
- {
1521
- "name": "expiryBlock",
1522
- "type": "uint256"
1523
- },
1524
- {
1525
- "name": "canPull",
1526
- "type": "bool"
1527
- },
1528
- {
1529
- "name": "periodLength",
1530
- "type": "uint256"
1531
- },
1532
- {
1533
- "name": "maxNumTxsPerPeriod",
1534
- "type": "uint256"
1535
- },
1536
- {
1537
- "name": "txCooldownBlocks",
1538
- "type": "uint256"
1539
- },
1540
- {
1541
- "name": "failOnZeroPrice",
1542
- "type": "bool"
1543
- },
1544
- {
1545
- "name": "primaryAsset",
1546
- "type": "address"
1547
- },
1548
- {
1549
- "name": "onlyPrimaryAsset",
1550
- "type": "bool"
1551
- },
1552
- {
1553
- "name": "unitLimits",
1554
- "type": "tuple",
1555
- "components": [
1556
- {
1557
- "name": "perTxCap",
1558
- "type": "uint256"
1559
- },
1560
- {
1561
- "name": "perPeriodCap",
1562
- "type": "uint256"
1563
- },
1564
- {
1565
- "name": "lifetimeCap",
1566
- "type": "uint256"
1567
- }
1568
- ]
1569
- },
1570
- {
1571
- "name": "usdLimits",
1572
- "type": "tuple",
1573
- "components": [
1574
- {
1575
- "name": "perTxCap",
1576
- "type": "uint256"
1577
- },
1578
- {
1579
- "name": "perPeriodCap",
1580
- "type": "uint256"
1581
- },
1582
- {
1583
- "name": "lifetimeCap",
1584
- "type": "uint256"
1585
- }
1586
- ]
1587
- }
1588
- ]
1589
- }
1590
- ],
1591
- "outputs": []
1592
- },
1593
- {
1594
- "stateMutability": "nonpayable",
1595
- "type": "function",
1596
- "name": "removePayee",
1597
- "inputs": [
1598
- {
1599
- "name": "_payee",
1600
- "type": "address"
1601
- }
1602
- ],
1603
- "outputs": []
1604
- },
1605
- {
1606
- "stateMutability": "nonpayable",
1607
- "type": "function",
1608
- "name": "setGlobalPayeeSettings",
1609
- "inputs": [
1610
- {
1611
- "name": "_config",
1612
- "type": "tuple",
1613
- "components": [
1614
- {
1615
- "name": "defaultPeriodLength",
1616
- "type": "uint256"
1617
- },
1618
- {
1619
- "name": "startDelay",
1620
- "type": "uint256"
1621
- },
1622
- {
1623
- "name": "activationLength",
1624
- "type": "uint256"
1625
- },
1626
- {
1627
- "name": "maxNumTxsPerPeriod",
1628
- "type": "uint256"
1629
- },
1630
- {
1631
- "name": "txCooldownBlocks",
1632
- "type": "uint256"
1633
- },
1634
- {
1635
- "name": "failOnZeroPrice",
1636
- "type": "bool"
1637
- },
1638
- {
1639
- "name": "usdLimits",
1640
- "type": "tuple",
1641
- "components": [
1642
- {
1643
- "name": "perTxCap",
1644
- "type": "uint256"
1645
- },
1646
- {
1647
- "name": "perPeriodCap",
1648
- "type": "uint256"
1649
- },
1650
- {
1651
- "name": "lifetimeCap",
1652
- "type": "uint256"
1653
- }
1654
- ]
1655
- },
1656
- {
1657
- "name": "canPayOwner",
1658
- "type": "bool"
1659
- },
1660
- {
1661
- "name": "canPull",
1662
- "type": "bool"
1663
- }
1664
- ]
1665
- }
1666
- ],
1667
- "outputs": []
1668
- },
1669
- {
1670
- "stateMutability": "nonpayable",
1671
- "type": "function",
1672
- "name": "addPendingPayee",
1673
- "inputs": [
1674
- {
1675
- "name": "_payee",
1676
- "type": "address"
1677
- },
1678
- {
1679
- "name": "_pending",
1680
- "type": "tuple",
1681
- "components": [
1682
- {
1683
- "name": "settings",
1684
- "type": "tuple",
1685
- "components": [
1686
- {
1687
- "name": "startBlock",
1688
- "type": "uint256"
1689
- },
1690
- {
1691
- "name": "expiryBlock",
1692
- "type": "uint256"
1693
- },
1694
- {
1695
- "name": "canPull",
1696
- "type": "bool"
1697
- },
1698
- {
1699
- "name": "periodLength",
1700
- "type": "uint256"
1701
- },
1702
- {
1703
- "name": "maxNumTxsPerPeriod",
1704
- "type": "uint256"
1705
- },
1706
- {
1707
- "name": "txCooldownBlocks",
1708
- "type": "uint256"
1709
- },
1710
- {
1711
- "name": "failOnZeroPrice",
1712
- "type": "bool"
1713
- },
1714
- {
1715
- "name": "primaryAsset",
1716
- "type": "address"
1717
- },
1718
- {
1719
- "name": "onlyPrimaryAsset",
1720
- "type": "bool"
1721
- },
1722
- {
1723
- "name": "unitLimits",
1724
- "type": "tuple",
1725
- "components": [
1726
- {
1727
- "name": "perTxCap",
1728
- "type": "uint256"
1729
- },
1730
- {
1731
- "name": "perPeriodCap",
1732
- "type": "uint256"
1733
- },
1734
- {
1735
- "name": "lifetimeCap",
1736
- "type": "uint256"
1737
- }
1738
- ]
1739
- },
1740
- {
1741
- "name": "usdLimits",
1742
- "type": "tuple",
1743
- "components": [
1744
- {
1745
- "name": "perTxCap",
1746
- "type": "uint256"
1747
- },
1748
- {
1749
- "name": "perPeriodCap",
1750
- "type": "uint256"
1751
- },
1752
- {
1753
- "name": "lifetimeCap",
1754
- "type": "uint256"
1755
- }
1756
- ]
1757
- }
1758
- ]
1759
- },
1760
- {
1761
- "name": "initiatedBlock",
1762
- "type": "uint256"
1763
- },
1764
- {
1765
- "name": "confirmBlock",
1766
- "type": "uint256"
1767
- },
1768
- {
1769
- "name": "currentOwner",
1770
- "type": "address"
1771
- }
1772
- ]
1773
- }
1774
- ],
1775
- "outputs": []
1776
- },
1777
- {
1778
- "stateMutability": "nonpayable",
1779
- "type": "function",
1780
- "name": "confirmPendingPayee",
1781
- "inputs": [
1782
- {
1783
- "name": "_payee",
1784
- "type": "address"
1785
- }
1786
- ],
1787
- "outputs": []
1788
- },
1789
- {
1790
- "stateMutability": "nonpayable",
1791
- "type": "function",
1792
- "name": "cancelPendingPayee",
1793
- "inputs": [
1794
- {
1795
- "name": "_payee",
1796
- "type": "address"
1797
- }
1798
- ],
1799
- "outputs": []
1800
- },
1801
- {
1802
- "stateMutability": "nonpayable",
1803
- "type": "function",
1804
- "name": "createCheque",
1805
- "inputs": [
1806
- {
1807
- "name": "_recipient",
1808
- "type": "address"
1809
- },
1810
- {
1811
- "name": "_cheque",
1812
- "type": "tuple",
1813
- "components": [
1814
- {
1815
- "name": "recipient",
1816
- "type": "address"
1817
- },
1818
- {
1819
- "name": "asset",
1820
- "type": "address"
1821
- },
1822
- {
1823
- "name": "amount",
1824
- "type": "uint256"
1825
- },
1826
- {
1827
- "name": "creationBlock",
1828
- "type": "uint256"
1829
- },
1830
- {
1831
- "name": "unlockBlock",
1832
- "type": "uint256"
1833
- },
1834
- {
1835
- "name": "expiryBlock",
1836
- "type": "uint256"
1837
- },
1838
- {
1839
- "name": "usdValueOnCreation",
1840
- "type": "uint256"
1841
- },
1842
- {
1843
- "name": "canManagerPay",
1844
- "type": "bool"
1845
- },
1846
- {
1847
- "name": "canBePulled",
1848
- "type": "bool"
1849
- },
1850
- {
1851
- "name": "creator",
1852
- "type": "address"
1853
- },
1854
- {
1855
- "name": "active",
1856
- "type": "bool"
1857
- }
1858
- ]
1859
- },
1860
- {
1861
- "name": "_chequeData",
1862
- "type": "tuple",
1863
- "components": [
1864
- {
1865
- "name": "numChequesPaidInPeriod",
1866
- "type": "uint256"
1867
- },
1868
- {
1869
- "name": "totalUsdValuePaidInPeriod",
1870
- "type": "uint256"
1871
- },
1872
- {
1873
- "name": "totalNumChequesPaid",
1874
- "type": "uint256"
1875
- },
1876
- {
1877
- "name": "totalUsdValuePaid",
1878
- "type": "uint256"
1879
- },
1880
- {
1881
- "name": "lastChequePaidBlock",
1882
- "type": "uint256"
1883
- },
1884
- {
1885
- "name": "numChequesCreatedInPeriod",
1886
- "type": "uint256"
1887
- },
1888
- {
1889
- "name": "totalUsdValueCreatedInPeriod",
1890
- "type": "uint256"
1891
- },
1892
- {
1893
- "name": "totalNumChequesCreated",
1894
- "type": "uint256"
1895
- },
1896
- {
1897
- "name": "totalUsdValueCreated",
1898
- "type": "uint256"
1899
- },
1900
- {
1901
- "name": "lastChequeCreatedBlock",
1902
- "type": "uint256"
1903
- },
1904
- {
1905
- "name": "periodStartBlock",
1906
- "type": "uint256"
1907
- }
1908
- ]
1909
- },
1910
- {
1911
- "name": "_isExistingCheque",
1912
- "type": "bool"
1913
- }
1914
- ],
1915
- "outputs": []
1916
- },
1917
- {
1918
- "stateMutability": "nonpayable",
1919
- "type": "function",
1920
- "name": "cancelCheque",
1921
- "inputs": [
1922
- {
1923
- "name": "_recipient",
1924
- "type": "address"
1925
- }
1926
- ],
1927
- "outputs": []
1928
- },
1929
- {
1930
- "stateMutability": "nonpayable",
1931
- "type": "function",
1932
- "name": "setChequeSettings",
1933
- "inputs": [
1934
- {
1935
- "name": "_config",
1936
- "type": "tuple",
1937
- "components": [
1938
- {
1939
- "name": "maxNumActiveCheques",
1940
- "type": "uint256"
1941
- },
1942
- {
1943
- "name": "maxChequeUsdValue",
1944
- "type": "uint256"
1945
- },
1946
- {
1947
- "name": "instantUsdThreshold",
1948
- "type": "uint256"
1949
- },
1950
- {
1951
- "name": "perPeriodPaidUsdCap",
1952
- "type": "uint256"
1953
- },
1954
- {
1955
- "name": "maxNumChequesPaidPerPeriod",
1956
- "type": "uint256"
1957
- },
1958
- {
1959
- "name": "payCooldownBlocks",
1960
- "type": "uint256"
1961
- },
1962
- {
1963
- "name": "perPeriodCreatedUsdCap",
1964
- "type": "uint256"
1965
- },
1966
- {
1967
- "name": "maxNumChequesCreatedPerPeriod",
1968
- "type": "uint256"
1969
- },
1970
- {
1971
- "name": "createCooldownBlocks",
1972
- "type": "uint256"
1973
- },
1974
- {
1975
- "name": "periodLength",
1976
- "type": "uint256"
1977
- },
1978
- {
1979
- "name": "expensiveDelayBlocks",
1980
- "type": "uint256"
1981
- },
1982
- {
1983
- "name": "defaultExpiryBlocks",
1984
- "type": "uint256"
1985
- },
1986
- {
1987
- "name": "allowedAssets",
1988
- "type": "address[]"
1989
- },
1990
- {
1991
- "name": "canManagersCreateCheques",
1992
- "type": "bool"
1993
- },
1994
- {
1995
- "name": "canManagerPay",
1996
- "type": "bool"
1997
- },
1998
- {
1999
- "name": "canBePulled",
2000
- "type": "bool"
2001
- }
2002
- ]
2003
- }
2004
- ],
2005
- "outputs": []
2006
- },
2007
- {
2008
- "stateMutability": "nonpayable",
2009
- "type": "function",
2010
- "name": "updateAssetData",
2011
- "inputs": [
2012
- {
2013
- "name": "_legoId",
2014
- "type": "uint256"
2015
- },
2016
- {
2017
- "name": "_asset",
2018
- "type": "address"
2019
- },
2020
- {
2021
- "name": "_shouldCheckYield",
2022
- "type": "bool"
2023
- }
2024
- ],
2025
- "outputs": [
2026
- {
2027
- "name": "",
2028
- "type": "uint256"
2029
- }
2030
- ]
2031
- },
2032
- {
2033
- "stateMutability": "nonpayable",
2034
- "type": "function",
2035
- "name": "updateAllAssetData",
2036
- "inputs": [
2037
- {
2038
- "name": "_shouldCheckYield",
2039
- "type": "bool"
2040
- }
2041
- ],
2042
- "outputs": [
2043
- {
2044
- "name": "",
2045
- "type": "uint256"
2046
- }
2047
- ]
2048
- },
2049
- {
2050
- "stateMutability": "nonpayable",
2051
- "type": "function",
2052
- "name": "migrateFunds",
2053
- "inputs": [
2054
- {
2055
- "name": "_toWallet",
2056
- "type": "address"
2057
- },
2058
- {
2059
- "name": "_asset",
2060
- "type": "address"
2061
- }
2062
- ],
2063
- "outputs": [
2064
- {
2065
- "name": "",
2066
- "type": "uint256"
2067
- }
2068
- ]
2069
- },
2070
- {
2071
- "stateMutability": "nonpayable",
2072
- "type": "function",
2073
- "name": "preparePayment",
2074
- "inputs": [
2075
- {
2076
- "name": "_targetAsset",
2077
- "type": "address"
2078
- },
2079
- {
2080
- "name": "_legoId",
2081
- "type": "uint256"
2082
- },
2083
- {
2084
- "name": "_vaultToken",
2085
- "type": "address"
2086
- }
2087
- ],
2088
- "outputs": [
2089
- {
2090
- "name": "",
2091
- "type": "uint256"
2092
- },
2093
- {
2094
- "name": "",
2095
- "type": "uint256"
2096
- }
2097
- ]
2098
- },
2099
- {
2100
- "stateMutability": "nonpayable",
2101
- "type": "function",
2102
- "name": "preparePayment",
2103
- "inputs": [
2104
- {
2105
- "name": "_targetAsset",
2106
- "type": "address"
2107
- },
2108
- {
2109
- "name": "_legoId",
2110
- "type": "uint256"
2111
- },
2112
- {
2113
- "name": "_vaultToken",
2114
- "type": "address"
2115
- },
2116
- {
2117
- "name": "_vaultAmount",
2118
- "type": "uint256"
2119
- }
2120
- ],
2121
- "outputs": [
2122
- {
2123
- "name": "",
2124
- "type": "uint256"
2125
- },
2126
- {
2127
- "name": "",
2128
- "type": "uint256"
2129
- }
2130
- ]
2131
- },
2132
- {
2133
- "stateMutability": "nonpayable",
2134
- "type": "function",
2135
- "name": "deregisterAsset",
2136
- "inputs": [
2137
- {
2138
- "name": "_asset",
2139
- "type": "address"
2140
- }
2141
- ],
2142
- "outputs": [
2143
- {
2144
- "name": "",
2145
- "type": "bool"
2146
- }
2147
- ]
2148
- },
2149
- {
2150
- "stateMutability": "nonpayable",
2151
- "type": "function",
2152
- "name": "recoverNft",
2153
- "inputs": [
2154
- {
2155
- "name": "_collection",
2156
- "type": "address"
2157
- },
2158
- {
2159
- "name": "_nftTokenId",
2160
- "type": "uint256"
2161
- },
2162
- {
2163
- "name": "_recipient",
2164
- "type": "address"
2165
- }
2166
- ],
2167
- "outputs": []
2168
- },
2169
- {
2170
- "stateMutability": "nonpayable",
2171
- "type": "function",
2172
- "name": "setFrozen",
2173
- "inputs": [
2174
- {
2175
- "name": "_isFrozen",
2176
- "type": "bool"
2177
- }
2178
- ],
2179
- "outputs": []
2180
- },
2181
- {
2182
- "stateMutability": "nonpayable",
2183
- "type": "function",
2184
- "name": "setEjectionMode",
2185
- "inputs": [
2186
- {
2187
- "name": "_shouldEject",
2188
- "type": "bool"
2189
- }
2190
- ],
2191
- "outputs": []
2192
- },
2193
- {
2194
- "stateMutability": "nonpayable",
2195
- "type": "function",
2196
- "name": "setLegoAccessForAction",
2197
- "inputs": [
2198
- {
2199
- "name": "_legoId",
2200
- "type": "uint256"
2201
- },
2202
- {
2203
- "name": "_action",
2204
- "type": "uint256"
2205
- }
2206
- ],
2207
- "outputs": [
2208
- {
2209
- "name": "",
2210
- "type": "bool"
2211
- }
2212
- ]
2213
- },
2214
- {
2215
- "stateMutability": "view",
2216
- "type": "function",
2217
- "name": "isAgentSender",
2218
- "inputs": [
2219
- {
2220
- "name": "_addr",
2221
- "type": "address"
2222
- }
2223
- ],
2224
- "outputs": [
2225
- {
2226
- "name": "",
2227
- "type": "bool"
2228
- }
2229
- ]
2230
- },
2231
- {
2232
- "stateMutability": "nonpayable",
2233
- "type": "function",
2234
- "name": "setKernel",
2235
- "inputs": [
2236
- {
2237
- "name": "_kernel",
2238
- "type": "address"
2239
- }
2240
- ],
2241
- "outputs": []
2242
- },
2243
- {
2244
- "stateMutability": "nonpayable",
2245
- "type": "function",
2246
- "name": "setSentinel",
2247
- "inputs": [
2248
- {
2249
- "name": "_sentinel",
2250
- "type": "address"
2251
- }
2252
- ],
2253
- "outputs": []
2254
- },
2255
- {
2256
- "stateMutability": "nonpayable",
2257
- "type": "function",
2258
- "name": "setHighCommand",
2259
- "inputs": [
2260
- {
2261
- "name": "_highCommand",
2262
- "type": "address"
2263
- }
2264
- ],
2265
- "outputs": []
2266
- },
2267
- {
2268
- "stateMutability": "nonpayable",
2269
- "type": "function",
2270
- "name": "setPaymaster",
2271
- "inputs": [
2272
- {
2273
- "name": "_paymaster",
2274
- "type": "address"
2275
- }
2276
- ],
2277
- "outputs": []
2278
- },
2279
- {
2280
- "stateMutability": "nonpayable",
2281
- "type": "function",
2282
- "name": "setChequeBook",
2283
- "inputs": [
2284
- {
2285
- "name": "_chequeBook",
2286
- "type": "address"
2287
- }
2288
- ],
2289
- "outputs": []
2290
- },
2291
- {
2292
- "stateMutability": "nonpayable",
2293
- "type": "function",
2294
- "name": "setMigrator",
2295
- "inputs": [
2296
- {
2297
- "name": "_migrator",
2298
- "type": "address"
2299
- }
2300
- ],
2301
- "outputs": []
2302
- },
2303
- {
2304
- "stateMutability": "view",
2305
- "type": "function",
2306
- "name": "getActionDataBundle",
2307
- "inputs": [
2308
- {
2309
- "name": "_legoId",
2310
- "type": "uint256"
2311
- },
2312
- {
2313
- "name": "_signer",
2314
- "type": "address"
2315
- }
2316
- ],
2317
- "outputs": [
2318
- {
2319
- "name": "",
2320
- "type": "tuple",
2321
- "components": [
2322
- {
2323
- "name": "ledger",
2324
- "type": "address"
2325
- },
2326
- {
2327
- "name": "missionControl",
2328
- "type": "address"
2329
- },
2330
- {
2331
- "name": "legoBook",
2332
- "type": "address"
2333
- },
2334
- {
2335
- "name": "hatchery",
2336
- "type": "address"
2337
- },
2338
- {
2339
- "name": "lootDistributor",
2340
- "type": "address"
2341
- },
2342
- {
2343
- "name": "appraiser",
2344
- "type": "address"
2345
- },
2346
- {
2347
- "name": "billing",
2348
- "type": "address"
2349
- },
2350
- {
2351
- "name": "vaultRegistry",
2352
- "type": "address"
2353
- },
2354
- {
2355
- "name": "wallet",
2356
- "type": "address"
2357
- },
2358
- {
2359
- "name": "walletConfig",
2360
- "type": "address"
2361
- },
2362
- {
2363
- "name": "walletOwner",
2364
- "type": "address"
2365
- },
2366
- {
2367
- "name": "inEjectMode",
2368
- "type": "bool"
2369
- },
2370
- {
2371
- "name": "isFrozen",
2372
- "type": "bool"
2373
- },
2374
- {
2375
- "name": "lastTotalUsdValue",
2376
- "type": "uint256"
2377
- },
2378
- {
2379
- "name": "signer",
2380
- "type": "address"
2381
- },
2382
- {
2383
- "name": "isManager",
2384
- "type": "bool"
2385
- },
2386
- {
2387
- "name": "legoId",
2388
- "type": "uint256"
2389
- },
2390
- {
2391
- "name": "legoAddr",
2392
- "type": "address"
2393
- },
2394
- {
2395
- "name": "eth",
2396
- "type": "address"
2397
- },
2398
- {
2399
- "name": "weth",
2400
- "type": "address"
2401
- }
2402
- ]
2403
- }
2404
- ]
2405
- },
2406
- {
2407
- "stateMutability": "view",
2408
- "type": "function",
2409
- "name": "wallet",
2410
- "inputs": [],
2411
- "outputs": [
2412
- {
2413
- "name": "",
2414
- "type": "address"
2415
- }
2416
- ]
2417
- },
2418
- {
2419
- "stateMutability": "view",
2420
- "type": "function",
2421
- "name": "kernel",
2422
- "inputs": [],
2423
- "outputs": [
2424
- {
2425
- "name": "",
2426
- "type": "address"
2427
- }
2428
- ]
2429
- },
2430
- {
2431
- "stateMutability": "view",
2432
- "type": "function",
2433
- "name": "sentinel",
2434
- "inputs": [],
2435
- "outputs": [
2436
- {
2437
- "name": "",
2438
- "type": "address"
2439
- }
2440
- ]
2441
- },
2442
- {
2443
- "stateMutability": "view",
2444
- "type": "function",
2445
- "name": "highCommand",
2446
- "inputs": [],
2447
- "outputs": [
2448
- {
2449
- "name": "",
2450
- "type": "address"
2451
- }
2452
- ]
2453
- },
2454
- {
2455
- "stateMutability": "view",
2456
- "type": "function",
2457
- "name": "paymaster",
2458
- "inputs": [],
2459
- "outputs": [
2460
- {
2461
- "name": "",
2462
- "type": "address"
2463
- }
2464
- ]
2465
- },
2466
- {
2467
- "stateMutability": "view",
2468
- "type": "function",
2469
- "name": "chequeBook",
2470
- "inputs": [],
2471
- "outputs": [
2472
- {
2473
- "name": "",
2474
- "type": "address"
2475
- }
2476
- ]
2477
- },
2478
- {
2479
- "stateMutability": "view",
2480
- "type": "function",
2481
- "name": "migrator",
2482
- "inputs": [],
2483
- "outputs": [
2484
- {
2485
- "name": "",
2486
- "type": "address"
2487
- }
2488
- ]
2489
- },
2490
- {
2491
- "stateMutability": "view",
2492
- "type": "function",
2493
- "name": "managerSettings",
2494
- "inputs": [
2495
- {
2496
- "name": "arg0",
2497
- "type": "address"
2498
- }
2499
- ],
2500
- "outputs": [
2501
- {
2502
- "name": "",
2503
- "type": "tuple",
2504
- "components": [
2505
- {
2506
- "name": "startBlock",
2507
- "type": "uint256"
2508
- },
2509
- {
2510
- "name": "expiryBlock",
2511
- "type": "uint256"
2512
- },
2513
- {
2514
- "name": "limits",
2515
- "type": "tuple",
2516
- "components": [
2517
- {
2518
- "name": "maxUsdValuePerTx",
2519
- "type": "uint256"
2520
- },
2521
- {
2522
- "name": "maxUsdValuePerPeriod",
2523
- "type": "uint256"
2524
- },
2525
- {
2526
- "name": "maxUsdValueLifetime",
2527
- "type": "uint256"
2528
- },
2529
- {
2530
- "name": "maxNumTxsPerPeriod",
2531
- "type": "uint256"
2532
- },
2533
- {
2534
- "name": "txCooldownBlocks",
2535
- "type": "uint256"
2536
- },
2537
- {
2538
- "name": "failOnZeroPrice",
2539
- "type": "bool"
2540
- }
2541
- ]
2542
- },
2543
- {
2544
- "name": "legoPerms",
2545
- "type": "tuple",
2546
- "components": [
2547
- {
2548
- "name": "canManageYield",
2549
- "type": "bool"
2550
- },
2551
- {
2552
- "name": "canBuyAndSell",
2553
- "type": "bool"
2554
- },
2555
- {
2556
- "name": "canManageDebt",
2557
- "type": "bool"
2558
- },
2559
- {
2560
- "name": "canManageLiq",
2561
- "type": "bool"
2562
- },
2563
- {
2564
- "name": "canClaimRewards",
2565
- "type": "bool"
2566
- },
2567
- {
2568
- "name": "onlyApprovedYieldOpps",
2569
- "type": "bool"
2570
- },
2571
- {
2572
- "name": "allowedLegos",
2573
- "type": "uint256[]"
2574
- }
2575
- ]
2576
- },
2577
- {
2578
- "name": "swapPerms",
2579
- "type": "tuple",
2580
- "components": [
2581
- {
2582
- "name": "mustHaveUsdValue",
2583
- "type": "bool"
2584
- },
2585
- {
2586
- "name": "maxNumSwapsPerPeriod",
2587
- "type": "uint256"
2588
- },
2589
- {
2590
- "name": "maxSlippage",
2591
- "type": "uint256"
2592
- }
2593
- ]
2594
- },
2595
- {
2596
- "name": "whitelistPerms",
2597
- "type": "tuple",
2598
- "components": [
2599
- {
2600
- "name": "canAddPending",
2601
- "type": "bool"
2602
- },
2603
- {
2604
- "name": "canConfirm",
2605
- "type": "bool"
2606
- },
2607
- {
2608
- "name": "canCancel",
2609
- "type": "bool"
2610
- },
2611
- {
2612
- "name": "canRemove",
2613
- "type": "bool"
2614
- }
2615
- ]
2616
- },
2617
- {
2618
- "name": "transferPerms",
2619
- "type": "tuple",
2620
- "components": [
2621
- {
2622
- "name": "canTransfer",
2623
- "type": "bool"
2624
- },
2625
- {
2626
- "name": "canCreateCheque",
2627
- "type": "bool"
2628
- },
2629
- {
2630
- "name": "canAddPendingPayee",
2631
- "type": "bool"
2632
- },
2633
- {
2634
- "name": "allowedPayees",
2635
- "type": "address[]"
2636
- }
2637
- ]
2638
- },
2639
- {
2640
- "name": "allowedAssets",
2641
- "type": "address[]"
2642
- },
2643
- {
2644
- "name": "canClaimLoot",
2645
- "type": "bool"
2646
- }
2647
- ]
2648
- }
2649
- ]
2650
- },
2651
- {
2652
- "stateMutability": "view",
2653
- "type": "function",
2654
- "name": "managerPeriodData",
2655
- "inputs": [
2656
- {
2657
- "name": "arg0",
2658
- "type": "address"
2659
- }
2660
- ],
2661
- "outputs": [
2662
- {
2663
- "name": "",
2664
- "type": "tuple",
2665
- "components": [
2666
- {
2667
- "name": "numTxsInPeriod",
2668
- "type": "uint256"
2669
- },
2670
- {
2671
- "name": "totalUsdValueInPeriod",
2672
- "type": "uint256"
2673
- },
2674
- {
2675
- "name": "totalNumTxs",
2676
- "type": "uint256"
2677
- },
2678
- {
2679
- "name": "totalUsdValue",
2680
- "type": "uint256"
2681
- },
2682
- {
2683
- "name": "lastTxBlock",
2684
- "type": "uint256"
2685
- },
2686
- {
2687
- "name": "periodStartBlock",
2688
- "type": "uint256"
2689
- },
2690
- {
2691
- "name": "numSwapsInPeriod",
2692
- "type": "uint256"
2693
- }
2694
- ]
2695
- }
2696
- ]
2697
- },
2698
- {
2699
- "stateMutability": "view",
2700
- "type": "function",
2701
- "name": "managers",
2702
- "inputs": [
2703
- {
2704
- "name": "arg0",
2705
- "type": "uint256"
2706
- }
2707
- ],
2708
- "outputs": [
2709
- {
2710
- "name": "",
2711
- "type": "address"
2712
- }
2713
- ]
2714
- },
2715
- {
2716
- "stateMutability": "view",
2717
- "type": "function",
2718
- "name": "indexOfManager",
2719
- "inputs": [
2720
- {
2721
- "name": "arg0",
2722
- "type": "address"
2723
- }
2724
- ],
2725
- "outputs": [
2726
- {
2727
- "name": "",
2728
- "type": "uint256"
2729
- }
2730
- ]
2731
- },
2732
- {
2733
- "stateMutability": "view",
2734
- "type": "function",
2735
- "name": "numManagers",
2736
- "inputs": [],
2737
- "outputs": [
2738
- {
2739
- "name": "",
2740
- "type": "uint256"
2741
- }
2742
- ]
2743
- },
2744
- {
2745
- "stateMutability": "view",
2746
- "type": "function",
2747
- "name": "payeeSettings",
2748
- "inputs": [
2749
- {
2750
- "name": "arg0",
2751
- "type": "address"
2752
- }
2753
- ],
2754
- "outputs": [
2755
- {
2756
- "name": "",
2757
- "type": "tuple",
2758
- "components": [
2759
- {
2760
- "name": "startBlock",
2761
- "type": "uint256"
2762
- },
2763
- {
2764
- "name": "expiryBlock",
2765
- "type": "uint256"
2766
- },
2767
- {
2768
- "name": "canPull",
2769
- "type": "bool"
2770
- },
2771
- {
2772
- "name": "periodLength",
2773
- "type": "uint256"
2774
- },
2775
- {
2776
- "name": "maxNumTxsPerPeriod",
2777
- "type": "uint256"
2778
- },
2779
- {
2780
- "name": "txCooldownBlocks",
2781
- "type": "uint256"
2782
- },
2783
- {
2784
- "name": "failOnZeroPrice",
2785
- "type": "bool"
2786
- },
2787
- {
2788
- "name": "primaryAsset",
2789
- "type": "address"
2790
- },
2791
- {
2792
- "name": "onlyPrimaryAsset",
2793
- "type": "bool"
2794
- },
2795
- {
2796
- "name": "unitLimits",
2797
- "type": "tuple",
2798
- "components": [
2799
- {
2800
- "name": "perTxCap",
2801
- "type": "uint256"
2802
- },
2803
- {
2804
- "name": "perPeriodCap",
2805
- "type": "uint256"
2806
- },
2807
- {
2808
- "name": "lifetimeCap",
2809
- "type": "uint256"
2810
- }
2811
- ]
2812
- },
2813
- {
2814
- "name": "usdLimits",
2815
- "type": "tuple",
2816
- "components": [
2817
- {
2818
- "name": "perTxCap",
2819
- "type": "uint256"
2820
- },
2821
- {
2822
- "name": "perPeriodCap",
2823
- "type": "uint256"
2824
- },
2825
- {
2826
- "name": "lifetimeCap",
2827
- "type": "uint256"
2828
- }
2829
- ]
2830
- }
2831
- ]
2832
- }
2833
- ]
2834
- },
2835
- {
2836
- "stateMutability": "view",
2837
- "type": "function",
2838
- "name": "payeePeriodData",
2839
- "inputs": [
2840
- {
2841
- "name": "arg0",
2842
- "type": "address"
2843
- }
2844
- ],
2845
- "outputs": [
2846
- {
2847
- "name": "",
2848
- "type": "tuple",
2849
- "components": [
2850
- {
2851
- "name": "numTxsInPeriod",
2852
- "type": "uint256"
2853
- },
2854
- {
2855
- "name": "totalUnitsInPeriod",
2856
- "type": "uint256"
2857
- },
2858
- {
2859
- "name": "totalUsdValueInPeriod",
2860
- "type": "uint256"
2861
- },
2862
- {
2863
- "name": "totalNumTxs",
2864
- "type": "uint256"
2865
- },
2866
- {
2867
- "name": "totalUnits",
2868
- "type": "uint256"
2869
- },
2870
- {
2871
- "name": "totalUsdValue",
2872
- "type": "uint256"
2873
- },
2874
- {
2875
- "name": "lastTxBlock",
2876
- "type": "uint256"
2877
- },
2878
- {
2879
- "name": "periodStartBlock",
2880
- "type": "uint256"
2881
- }
2882
- ]
2883
- }
2884
- ]
2885
- },
2886
- {
2887
- "stateMutability": "view",
2888
- "type": "function",
2889
- "name": "payees",
2890
- "inputs": [
2891
- {
2892
- "name": "arg0",
2893
- "type": "uint256"
2894
- }
2895
- ],
2896
- "outputs": [
2897
- {
2898
- "name": "",
2899
- "type": "address"
2900
- }
2901
- ]
2902
- },
2903
- {
2904
- "stateMutability": "view",
2905
- "type": "function",
2906
- "name": "indexOfPayee",
2907
- "inputs": [
2908
- {
2909
- "name": "arg0",
2910
- "type": "address"
2911
- }
2912
- ],
2913
- "outputs": [
2914
- {
2915
- "name": "",
2916
- "type": "uint256"
2917
- }
2918
- ]
2919
- },
2920
- {
2921
- "stateMutability": "view",
2922
- "type": "function",
2923
- "name": "numPayees",
2924
- "inputs": [],
2925
- "outputs": [
2926
- {
2927
- "name": "",
2928
- "type": "uint256"
2929
- }
2930
- ]
2931
- },
2932
- {
2933
- "stateMutability": "view",
2934
- "type": "function",
2935
- "name": "pendingPayees",
2936
- "inputs": [
2937
- {
2938
- "name": "arg0",
2939
- "type": "address"
2940
- }
2941
- ],
2942
- "outputs": [
2943
- {
2944
- "name": "",
2945
- "type": "tuple",
2946
- "components": [
2947
- {
2948
- "name": "settings",
2949
- "type": "tuple",
2950
- "components": [
2951
- {
2952
- "name": "startBlock",
2953
- "type": "uint256"
2954
- },
2955
- {
2956
- "name": "expiryBlock",
2957
- "type": "uint256"
2958
- },
2959
- {
2960
- "name": "canPull",
2961
- "type": "bool"
2962
- },
2963
- {
2964
- "name": "periodLength",
2965
- "type": "uint256"
2966
- },
2967
- {
2968
- "name": "maxNumTxsPerPeriod",
2969
- "type": "uint256"
2970
- },
2971
- {
2972
- "name": "txCooldownBlocks",
2973
- "type": "uint256"
2974
- },
2975
- {
2976
- "name": "failOnZeroPrice",
2977
- "type": "bool"
2978
- },
2979
- {
2980
- "name": "primaryAsset",
2981
- "type": "address"
2982
- },
2983
- {
2984
- "name": "onlyPrimaryAsset",
2985
- "type": "bool"
2986
- },
2987
- {
2988
- "name": "unitLimits",
2989
- "type": "tuple",
2990
- "components": [
2991
- {
2992
- "name": "perTxCap",
2993
- "type": "uint256"
2994
- },
2995
- {
2996
- "name": "perPeriodCap",
2997
- "type": "uint256"
2998
- },
2999
- {
3000
- "name": "lifetimeCap",
3001
- "type": "uint256"
3002
- }
3003
- ]
3004
- },
3005
- {
3006
- "name": "usdLimits",
3007
- "type": "tuple",
3008
- "components": [
3009
- {
3010
- "name": "perTxCap",
3011
- "type": "uint256"
3012
- },
3013
- {
3014
- "name": "perPeriodCap",
3015
- "type": "uint256"
3016
- },
3017
- {
3018
- "name": "lifetimeCap",
3019
- "type": "uint256"
3020
- }
3021
- ]
3022
- }
3023
- ]
3024
- },
3025
- {
3026
- "name": "initiatedBlock",
3027
- "type": "uint256"
3028
- },
3029
- {
3030
- "name": "confirmBlock",
3031
- "type": "uint256"
3032
- },
3033
- {
3034
- "name": "currentOwner",
3035
- "type": "address"
3036
- }
3037
- ]
3038
- }
3039
- ]
3040
- },
3041
- {
3042
- "stateMutability": "view",
3043
- "type": "function",
3044
- "name": "whitelistAddr",
3045
- "inputs": [
3046
- {
3047
- "name": "arg0",
3048
- "type": "uint256"
3049
- }
3050
- ],
3051
- "outputs": [
3052
- {
3053
- "name": "",
3054
- "type": "address"
3055
- }
3056
- ]
3057
- },
3058
- {
3059
- "stateMutability": "view",
3060
- "type": "function",
3061
- "name": "indexOfWhitelist",
3062
- "inputs": [
3063
- {
3064
- "name": "arg0",
3065
- "type": "address"
3066
- }
3067
- ],
3068
- "outputs": [
3069
- {
3070
- "name": "",
3071
- "type": "uint256"
3072
- }
3073
- ]
3074
- },
3075
- {
3076
- "stateMutability": "view",
3077
- "type": "function",
3078
- "name": "numWhitelisted",
3079
- "inputs": [],
3080
- "outputs": [
3081
- {
3082
- "name": "",
3083
- "type": "uint256"
3084
- }
3085
- ]
3086
- },
3087
- {
3088
- "stateMutability": "view",
3089
- "type": "function",
3090
- "name": "pendingWhitelist",
3091
- "inputs": [
3092
- {
3093
- "name": "arg0",
3094
- "type": "address"
3095
- }
3096
- ],
3097
- "outputs": [
3098
- {
3099
- "name": "",
3100
- "type": "tuple",
3101
- "components": [
3102
- {
3103
- "name": "initiatedBlock",
3104
- "type": "uint256"
3105
- },
3106
- {
3107
- "name": "confirmBlock",
3108
- "type": "uint256"
3109
- },
3110
- {
3111
- "name": "currentOwner",
3112
- "type": "address"
3113
- }
3114
- ]
3115
- }
3116
- ]
3117
- },
3118
- {
3119
- "stateMutability": "view",
3120
- "type": "function",
3121
- "name": "cheques",
3122
- "inputs": [
3123
- {
3124
- "name": "arg0",
3125
- "type": "address"
3126
- }
3127
- ],
3128
- "outputs": [
3129
- {
3130
- "name": "",
3131
- "type": "tuple",
3132
- "components": [
3133
- {
3134
- "name": "recipient",
3135
- "type": "address"
3136
- },
3137
- {
3138
- "name": "asset",
3139
- "type": "address"
3140
- },
3141
- {
3142
- "name": "amount",
3143
- "type": "uint256"
3144
- },
3145
- {
3146
- "name": "creationBlock",
3147
- "type": "uint256"
3148
- },
3149
- {
3150
- "name": "unlockBlock",
3151
- "type": "uint256"
3152
- },
3153
- {
3154
- "name": "expiryBlock",
3155
- "type": "uint256"
3156
- },
3157
- {
3158
- "name": "usdValueOnCreation",
3159
- "type": "uint256"
3160
- },
3161
- {
3162
- "name": "canManagerPay",
3163
- "type": "bool"
3164
- },
3165
- {
3166
- "name": "canBePulled",
3167
- "type": "bool"
3168
- },
3169
- {
3170
- "name": "creator",
3171
- "type": "address"
3172
- },
3173
- {
3174
- "name": "active",
3175
- "type": "bool"
3176
- }
3177
- ]
3178
- }
3179
- ]
3180
- },
3181
- {
3182
- "stateMutability": "view",
3183
- "type": "function",
3184
- "name": "chequeSettings",
3185
- "inputs": [],
3186
- "outputs": [
3187
- {
3188
- "name": "",
3189
- "type": "tuple",
3190
- "components": [
3191
- {
3192
- "name": "maxNumActiveCheques",
3193
- "type": "uint256"
3194
- },
3195
- {
3196
- "name": "maxChequeUsdValue",
3197
- "type": "uint256"
3198
- },
3199
- {
3200
- "name": "instantUsdThreshold",
3201
- "type": "uint256"
3202
- },
3203
- {
3204
- "name": "perPeriodPaidUsdCap",
3205
- "type": "uint256"
3206
- },
3207
- {
3208
- "name": "maxNumChequesPaidPerPeriod",
3209
- "type": "uint256"
3210
- },
3211
- {
3212
- "name": "payCooldownBlocks",
3213
- "type": "uint256"
3214
- },
3215
- {
3216
- "name": "perPeriodCreatedUsdCap",
3217
- "type": "uint256"
3218
- },
3219
- {
3220
- "name": "maxNumChequesCreatedPerPeriod",
3221
- "type": "uint256"
3222
- },
3223
- {
3224
- "name": "createCooldownBlocks",
3225
- "type": "uint256"
3226
- },
3227
- {
3228
- "name": "periodLength",
3229
- "type": "uint256"
3230
- },
3231
- {
3232
- "name": "expensiveDelayBlocks",
3233
- "type": "uint256"
3234
- },
3235
- {
3236
- "name": "defaultExpiryBlocks",
3237
- "type": "uint256"
3238
- },
3239
- {
3240
- "name": "allowedAssets",
3241
- "type": "address[]"
3242
- },
3243
- {
3244
- "name": "canManagersCreateCheques",
3245
- "type": "bool"
3246
- },
3247
- {
3248
- "name": "canManagerPay",
3249
- "type": "bool"
3250
- },
3251
- {
3252
- "name": "canBePulled",
3253
- "type": "bool"
3254
- }
3255
- ]
3256
- }
3257
- ]
3258
- },
3259
- {
3260
- "stateMutability": "view",
3261
- "type": "function",
3262
- "name": "chequePeriodData",
3263
- "inputs": [],
3264
- "outputs": [
3265
- {
3266
- "name": "",
3267
- "type": "tuple",
3268
- "components": [
3269
- {
3270
- "name": "numChequesPaidInPeriod",
3271
- "type": "uint256"
3272
- },
3273
- {
3274
- "name": "totalUsdValuePaidInPeriod",
3275
- "type": "uint256"
3276
- },
3277
- {
3278
- "name": "totalNumChequesPaid",
3279
- "type": "uint256"
3280
- },
3281
- {
3282
- "name": "totalUsdValuePaid",
3283
- "type": "uint256"
3284
- },
3285
- {
3286
- "name": "lastChequePaidBlock",
3287
- "type": "uint256"
3288
- },
3289
- {
3290
- "name": "numChequesCreatedInPeriod",
3291
- "type": "uint256"
3292
- },
3293
- {
3294
- "name": "totalUsdValueCreatedInPeriod",
3295
- "type": "uint256"
3296
- },
3297
- {
3298
- "name": "totalNumChequesCreated",
3299
- "type": "uint256"
3300
- },
3301
- {
3302
- "name": "totalUsdValueCreated",
3303
- "type": "uint256"
3304
- },
3305
- {
3306
- "name": "lastChequeCreatedBlock",
3307
- "type": "uint256"
3308
- },
3309
- {
3310
- "name": "periodStartBlock",
3311
- "type": "uint256"
3312
- }
3313
- ]
3314
- }
3315
- ]
3316
- },
3317
- {
3318
- "stateMutability": "view",
3319
- "type": "function",
3320
- "name": "numActiveCheques",
3321
- "inputs": [],
3322
- "outputs": [
3323
- {
3324
- "name": "",
3325
- "type": "uint256"
3326
- }
3327
- ]
3328
- },
3329
- {
3330
- "stateMutability": "view",
3331
- "type": "function",
3332
- "name": "globalManagerSettings",
3333
- "inputs": [],
3334
- "outputs": [
3335
- {
3336
- "name": "",
3337
- "type": "tuple",
3338
- "components": [
3339
- {
3340
- "name": "managerPeriod",
3341
- "type": "uint256"
3342
- },
3343
- {
3344
- "name": "startDelay",
3345
- "type": "uint256"
3346
- },
3347
- {
3348
- "name": "activationLength",
3349
- "type": "uint256"
3350
- },
3351
- {
3352
- "name": "canOwnerManage",
3353
- "type": "bool"
3354
- },
3355
- {
3356
- "name": "limits",
3357
- "type": "tuple",
3358
- "components": [
3359
- {
3360
- "name": "maxUsdValuePerTx",
3361
- "type": "uint256"
3362
- },
3363
- {
3364
- "name": "maxUsdValuePerPeriod",
3365
- "type": "uint256"
3366
- },
3367
- {
3368
- "name": "maxUsdValueLifetime",
3369
- "type": "uint256"
3370
- },
3371
- {
3372
- "name": "maxNumTxsPerPeriod",
3373
- "type": "uint256"
3374
- },
3375
- {
3376
- "name": "txCooldownBlocks",
3377
- "type": "uint256"
3378
- },
3379
- {
3380
- "name": "failOnZeroPrice",
3381
- "type": "bool"
3382
- }
3383
- ]
3384
- },
3385
- {
3386
- "name": "legoPerms",
3387
- "type": "tuple",
3388
- "components": [
3389
- {
3390
- "name": "canManageYield",
3391
- "type": "bool"
3392
- },
3393
- {
3394
- "name": "canBuyAndSell",
3395
- "type": "bool"
3396
- },
3397
- {
3398
- "name": "canManageDebt",
3399
- "type": "bool"
3400
- },
3401
- {
3402
- "name": "canManageLiq",
3403
- "type": "bool"
3404
- },
3405
- {
3406
- "name": "canClaimRewards",
3407
- "type": "bool"
3408
- },
3409
- {
3410
- "name": "onlyApprovedYieldOpps",
3411
- "type": "bool"
3412
- },
3413
- {
3414
- "name": "allowedLegos",
3415
- "type": "uint256[]"
3416
- }
3417
- ]
3418
- },
3419
- {
3420
- "name": "swapPerms",
3421
- "type": "tuple",
3422
- "components": [
3423
- {
3424
- "name": "mustHaveUsdValue",
3425
- "type": "bool"
3426
- },
3427
- {
3428
- "name": "maxNumSwapsPerPeriod",
3429
- "type": "uint256"
3430
- },
3431
- {
3432
- "name": "maxSlippage",
3433
- "type": "uint256"
3434
- }
3435
- ]
3436
- },
3437
- {
3438
- "name": "whitelistPerms",
3439
- "type": "tuple",
3440
- "components": [
3441
- {
3442
- "name": "canAddPending",
3443
- "type": "bool"
3444
- },
3445
- {
3446
- "name": "canConfirm",
3447
- "type": "bool"
3448
- },
3449
- {
3450
- "name": "canCancel",
3451
- "type": "bool"
3452
- },
3453
- {
3454
- "name": "canRemove",
3455
- "type": "bool"
3456
- }
3457
- ]
3458
- },
3459
- {
3460
- "name": "transferPerms",
3461
- "type": "tuple",
3462
- "components": [
3463
- {
3464
- "name": "canTransfer",
3465
- "type": "bool"
3466
- },
3467
- {
3468
- "name": "canCreateCheque",
3469
- "type": "bool"
3470
- },
3471
- {
3472
- "name": "canAddPendingPayee",
3473
- "type": "bool"
3474
- },
3475
- {
3476
- "name": "allowedPayees",
3477
- "type": "address[]"
3478
- }
3479
- ]
3480
- },
3481
- {
3482
- "name": "allowedAssets",
3483
- "type": "address[]"
3484
- }
3485
- ]
3486
- }
3487
- ]
3488
- },
3489
- {
3490
- "stateMutability": "view",
3491
- "type": "function",
3492
- "name": "globalPayeeSettings",
3493
- "inputs": [],
3494
- "outputs": [
3495
- {
3496
- "name": "",
3497
- "type": "tuple",
3498
- "components": [
3499
- {
3500
- "name": "defaultPeriodLength",
3501
- "type": "uint256"
3502
- },
3503
- {
3504
- "name": "startDelay",
3505
- "type": "uint256"
3506
- },
3507
- {
3508
- "name": "activationLength",
3509
- "type": "uint256"
3510
- },
3511
- {
3512
- "name": "maxNumTxsPerPeriod",
3513
- "type": "uint256"
3514
- },
3515
- {
3516
- "name": "txCooldownBlocks",
3517
- "type": "uint256"
3518
- },
3519
- {
3520
- "name": "failOnZeroPrice",
3521
- "type": "bool"
3522
- },
3523
- {
3524
- "name": "usdLimits",
3525
- "type": "tuple",
3526
- "components": [
3527
- {
3528
- "name": "perTxCap",
3529
- "type": "uint256"
3530
- },
3531
- {
3532
- "name": "perPeriodCap",
3533
- "type": "uint256"
3534
- },
3535
- {
3536
- "name": "lifetimeCap",
3537
- "type": "uint256"
3538
- }
3539
- ]
3540
- },
3541
- {
3542
- "name": "canPayOwner",
3543
- "type": "bool"
3544
- },
3545
- {
3546
- "name": "canPull",
3547
- "type": "bool"
3548
- }
3549
- ]
3550
- }
3551
- ]
3552
- },
3553
- {
3554
- "stateMutability": "view",
3555
- "type": "function",
3556
- "name": "timeLock",
3557
- "inputs": [],
3558
- "outputs": [
3559
- {
3560
- "name": "",
3561
- "type": "uint256"
3562
- }
3563
- ]
3564
- },
3565
- {
3566
- "stateMutability": "view",
3567
- "type": "function",
3568
- "name": "isFrozen",
3569
- "inputs": [],
3570
- "outputs": [
3571
- {
3572
- "name": "",
3573
- "type": "bool"
3574
- }
3575
- ]
3576
- },
3577
- {
3578
- "stateMutability": "view",
3579
- "type": "function",
3580
- "name": "inEjectMode",
3581
- "inputs": [],
3582
- "outputs": [
3583
- {
3584
- "name": "",
3585
- "type": "bool"
3586
- }
3587
- ]
3588
- },
3589
- {
3590
- "stateMutability": "view",
3591
- "type": "function",
3592
- "name": "groupId",
3593
- "inputs": [],
3594
- "outputs": [
3595
- {
3596
- "name": "",
3597
- "type": "uint256"
3598
- }
3599
- ]
3600
- },
3601
- {
3602
- "stateMutability": "view",
3603
- "type": "function",
3604
- "name": "startingAgent",
3605
- "inputs": [],
3606
- "outputs": [
3607
- {
3608
- "name": "",
3609
- "type": "address"
3610
- }
3611
- ]
3612
- },
3613
- {
3614
- "stateMutability": "view",
3615
- "type": "function",
3616
- "name": "didSetWallet",
3617
- "inputs": [],
3618
- "outputs": [
3619
- {
3620
- "name": "",
3621
- "type": "bool"
3622
- }
3623
- ]
3624
- },
3625
- {
3626
- "stateMutability": "view",
3627
- "type": "function",
3628
- "name": "UNDY_HQ",
3629
- "inputs": [],
3630
- "outputs": [
3631
- {
3632
- "name": "",
3633
- "type": "address"
3634
- }
3635
- ]
3636
- },
3637
- {
3638
- "stateMutability": "view",
3639
- "type": "function",
3640
- "name": "WETH",
3641
- "inputs": [],
3642
- "outputs": [
3643
- {
3644
- "name": "",
3645
- "type": "address"
3646
- }
3647
- ]
3648
- },
3649
- {
3650
- "stateMutability": "view",
3651
- "type": "function",
3652
- "name": "ETH",
3653
- "inputs": [],
3654
- "outputs": [
3655
- {
3656
- "name": "",
3657
- "type": "address"
3658
- }
3659
- ]
3660
- },
3661
- {
3662
- "stateMutability": "view",
3663
- "type": "function",
3664
- "name": "MIN_TIMELOCK",
3665
- "inputs": [],
3666
- "outputs": [
3667
- {
3668
- "name": "",
3669
- "type": "uint256"
3670
- }
3671
- ]
3672
- },
3673
- {
3674
- "stateMutability": "view",
3675
- "type": "function",
3676
- "name": "MAX_TIMELOCK",
3677
- "inputs": [],
3678
- "outputs": [
3679
- {
3680
- "name": "",
3681
- "type": "uint256"
3682
- }
3683
- ]
3684
- },
3685
- {
3686
- "stateMutability": "nonpayable",
3687
- "type": "constructor",
3688
- "inputs": [
3689
- {
3690
- "name": "_undyHq",
3691
- "type": "address"
3692
- },
3693
- {
3694
- "name": "_owner",
3695
- "type": "address"
3696
- },
3697
- {
3698
- "name": "_groupId",
3699
- "type": "uint256"
3700
- },
3701
- {
3702
- "name": "_globalManagerSettings",
3703
- "type": "tuple",
3704
- "components": [
3705
- {
3706
- "name": "managerPeriod",
3707
- "type": "uint256"
3708
- },
3709
- {
3710
- "name": "startDelay",
3711
- "type": "uint256"
3712
- },
3713
- {
3714
- "name": "activationLength",
3715
- "type": "uint256"
3716
- },
3717
- {
3718
- "name": "canOwnerManage",
3719
- "type": "bool"
3720
- },
3721
- {
3722
- "name": "limits",
3723
- "type": "tuple",
3724
- "components": [
3725
- {
3726
- "name": "maxUsdValuePerTx",
3727
- "type": "uint256"
3728
- },
3729
- {
3730
- "name": "maxUsdValuePerPeriod",
3731
- "type": "uint256"
3732
- },
3733
- {
3734
- "name": "maxUsdValueLifetime",
3735
- "type": "uint256"
3736
- },
3737
- {
3738
- "name": "maxNumTxsPerPeriod",
3739
- "type": "uint256"
3740
- },
3741
- {
3742
- "name": "txCooldownBlocks",
3743
- "type": "uint256"
3744
- },
3745
- {
3746
- "name": "failOnZeroPrice",
3747
- "type": "bool"
3748
- }
3749
- ]
3750
- },
3751
- {
3752
- "name": "legoPerms",
3753
- "type": "tuple",
3754
- "components": [
3755
- {
3756
- "name": "canManageYield",
3757
- "type": "bool"
3758
- },
3759
- {
3760
- "name": "canBuyAndSell",
3761
- "type": "bool"
3762
- },
3763
- {
3764
- "name": "canManageDebt",
3765
- "type": "bool"
3766
- },
3767
- {
3768
- "name": "canManageLiq",
3769
- "type": "bool"
3770
- },
3771
- {
3772
- "name": "canClaimRewards",
3773
- "type": "bool"
3774
- },
3775
- {
3776
- "name": "onlyApprovedYieldOpps",
3777
- "type": "bool"
3778
- },
3779
- {
3780
- "name": "allowedLegos",
3781
- "type": "uint256[]"
3782
- }
3783
- ]
3784
- },
3785
- {
3786
- "name": "swapPerms",
3787
- "type": "tuple",
3788
- "components": [
3789
- {
3790
- "name": "mustHaveUsdValue",
3791
- "type": "bool"
3792
- },
3793
- {
3794
- "name": "maxNumSwapsPerPeriod",
3795
- "type": "uint256"
3796
- },
3797
- {
3798
- "name": "maxSlippage",
3799
- "type": "uint256"
3800
- }
3801
- ]
3802
- },
3803
- {
3804
- "name": "whitelistPerms",
3805
- "type": "tuple",
3806
- "components": [
3807
- {
3808
- "name": "canAddPending",
3809
- "type": "bool"
3810
- },
3811
- {
3812
- "name": "canConfirm",
3813
- "type": "bool"
3814
- },
3815
- {
3816
- "name": "canCancel",
3817
- "type": "bool"
3818
- },
3819
- {
3820
- "name": "canRemove",
3821
- "type": "bool"
3822
- }
3823
- ]
3824
- },
3825
- {
3826
- "name": "transferPerms",
3827
- "type": "tuple",
3828
- "components": [
3829
- {
3830
- "name": "canTransfer",
3831
- "type": "bool"
3832
- },
3833
- {
3834
- "name": "canCreateCheque",
3835
- "type": "bool"
3836
- },
3837
- {
3838
- "name": "canAddPendingPayee",
3839
- "type": "bool"
3840
- },
3841
- {
3842
- "name": "allowedPayees",
3843
- "type": "address[]"
3844
- }
3845
- ]
3846
- },
3847
- {
3848
- "name": "allowedAssets",
3849
- "type": "address[]"
3850
- }
3851
- ]
3852
- },
3853
- {
3854
- "name": "_globalPayeeSettings",
3855
- "type": "tuple",
3856
- "components": [
3857
- {
3858
- "name": "defaultPeriodLength",
3859
- "type": "uint256"
3860
- },
3861
- {
3862
- "name": "startDelay",
3863
- "type": "uint256"
3864
- },
3865
- {
3866
- "name": "activationLength",
3867
- "type": "uint256"
3868
- },
3869
- {
3870
- "name": "maxNumTxsPerPeriod",
3871
- "type": "uint256"
3872
- },
3873
- {
3874
- "name": "txCooldownBlocks",
3875
- "type": "uint256"
3876
- },
3877
- {
3878
- "name": "failOnZeroPrice",
3879
- "type": "bool"
3880
- },
3881
- {
3882
- "name": "usdLimits",
3883
- "type": "tuple",
3884
- "components": [
3885
- {
3886
- "name": "perTxCap",
3887
- "type": "uint256"
3888
- },
3889
- {
3890
- "name": "perPeriodCap",
3891
- "type": "uint256"
3892
- },
3893
- {
3894
- "name": "lifetimeCap",
3895
- "type": "uint256"
3896
- }
3897
- ]
3898
- },
3899
- {
3900
- "name": "canPayOwner",
3901
- "type": "bool"
3902
- },
3903
- {
3904
- "name": "canPull",
3905
- "type": "bool"
3906
- }
3907
- ]
3908
- },
3909
- {
3910
- "name": "_chequeSettings",
3911
- "type": "tuple",
3912
- "components": [
3913
- {
3914
- "name": "maxNumActiveCheques",
3915
- "type": "uint256"
3916
- },
3917
- {
3918
- "name": "maxChequeUsdValue",
3919
- "type": "uint256"
3920
- },
3921
- {
3922
- "name": "instantUsdThreshold",
3923
- "type": "uint256"
3924
- },
3925
- {
3926
- "name": "perPeriodPaidUsdCap",
3927
- "type": "uint256"
3928
- },
3929
- {
3930
- "name": "maxNumChequesPaidPerPeriod",
3931
- "type": "uint256"
3932
- },
3933
- {
3934
- "name": "payCooldownBlocks",
3935
- "type": "uint256"
3936
- },
3937
- {
3938
- "name": "perPeriodCreatedUsdCap",
3939
- "type": "uint256"
3940
- },
3941
- {
3942
- "name": "maxNumChequesCreatedPerPeriod",
3943
- "type": "uint256"
3944
- },
3945
- {
3946
- "name": "createCooldownBlocks",
3947
- "type": "uint256"
3948
- },
3949
- {
3950
- "name": "periodLength",
3951
- "type": "uint256"
3952
- },
3953
- {
3954
- "name": "expensiveDelayBlocks",
3955
- "type": "uint256"
3956
- },
3957
- {
3958
- "name": "defaultExpiryBlocks",
3959
- "type": "uint256"
3960
- },
3961
- {
3962
- "name": "allowedAssets",
3963
- "type": "address[]"
3964
- },
3965
- {
3966
- "name": "canManagersCreateCheques",
3967
- "type": "bool"
3968
- },
3969
- {
3970
- "name": "canManagerPay",
3971
- "type": "bool"
3972
- },
3973
- {
3974
- "name": "canBePulled",
3975
- "type": "bool"
3976
- }
3977
- ]
3978
- },
3979
- {
3980
- "name": "_startingAgent",
3981
- "type": "address"
3982
- },
3983
- {
3984
- "name": "_starterAgentSettings",
3985
- "type": "tuple",
3986
- "components": [
3987
- {
3988
- "name": "startBlock",
3989
- "type": "uint256"
3990
- },
3991
- {
3992
- "name": "expiryBlock",
3993
- "type": "uint256"
3994
- },
3995
- {
3996
- "name": "limits",
3997
- "type": "tuple",
3998
- "components": [
3999
- {
4000
- "name": "maxUsdValuePerTx",
4001
- "type": "uint256"
4002
- },
4003
- {
4004
- "name": "maxUsdValuePerPeriod",
4005
- "type": "uint256"
4006
- },
4007
- {
4008
- "name": "maxUsdValueLifetime",
4009
- "type": "uint256"
4010
- },
4011
- {
4012
- "name": "maxNumTxsPerPeriod",
4013
- "type": "uint256"
4014
- },
4015
- {
4016
- "name": "txCooldownBlocks",
4017
- "type": "uint256"
4018
- },
4019
- {
4020
- "name": "failOnZeroPrice",
4021
- "type": "bool"
4022
- }
4023
- ]
4024
- },
4025
- {
4026
- "name": "legoPerms",
4027
- "type": "tuple",
4028
- "components": [
4029
- {
4030
- "name": "canManageYield",
4031
- "type": "bool"
4032
- },
4033
- {
4034
- "name": "canBuyAndSell",
4035
- "type": "bool"
4036
- },
4037
- {
4038
- "name": "canManageDebt",
4039
- "type": "bool"
4040
- },
4041
- {
4042
- "name": "canManageLiq",
4043
- "type": "bool"
4044
- },
4045
- {
4046
- "name": "canClaimRewards",
4047
- "type": "bool"
4048
- },
4049
- {
4050
- "name": "onlyApprovedYieldOpps",
4051
- "type": "bool"
4052
- },
4053
- {
4054
- "name": "allowedLegos",
4055
- "type": "uint256[]"
4056
- }
4057
- ]
4058
- },
4059
- {
4060
- "name": "swapPerms",
4061
- "type": "tuple",
4062
- "components": [
4063
- {
4064
- "name": "mustHaveUsdValue",
4065
- "type": "bool"
4066
- },
4067
- {
4068
- "name": "maxNumSwapsPerPeriod",
4069
- "type": "uint256"
4070
- },
4071
- {
4072
- "name": "maxSlippage",
4073
- "type": "uint256"
4074
- }
4075
- ]
4076
- },
4077
- {
4078
- "name": "whitelistPerms",
4079
- "type": "tuple",
4080
- "components": [
4081
- {
4082
- "name": "canAddPending",
4083
- "type": "bool"
4084
- },
4085
- {
4086
- "name": "canConfirm",
4087
- "type": "bool"
4088
- },
4089
- {
4090
- "name": "canCancel",
4091
- "type": "bool"
4092
- },
4093
- {
4094
- "name": "canRemove",
4095
- "type": "bool"
4096
- }
4097
- ]
4098
- },
4099
- {
4100
- "name": "transferPerms",
4101
- "type": "tuple",
4102
- "components": [
4103
- {
4104
- "name": "canTransfer",
4105
- "type": "bool"
4106
- },
4107
- {
4108
- "name": "canCreateCheque",
4109
- "type": "bool"
4110
- },
4111
- {
4112
- "name": "canAddPendingPayee",
4113
- "type": "bool"
4114
- },
4115
- {
4116
- "name": "allowedPayees",
4117
- "type": "address[]"
4118
- }
4119
- ]
4120
- },
4121
- {
4122
- "name": "allowedAssets",
4123
- "type": "address[]"
4124
- },
4125
- {
4126
- "name": "canClaimLoot",
4127
- "type": "bool"
4128
- }
4129
- ]
4130
- },
4131
- {
4132
- "name": "_kernel",
4133
- "type": "address"
4134
- },
4135
- {
4136
- "name": "_sentinel",
4137
- "type": "address"
4138
- },
4139
- {
4140
- "name": "_highCommand",
4141
- "type": "address"
4142
- },
4143
- {
4144
- "name": "_paymaster",
4145
- "type": "address"
4146
- },
4147
- {
4148
- "name": "_chequeBook",
4149
- "type": "address"
4150
- },
4151
- {
4152
- "name": "_migrator",
4153
- "type": "address"
4154
- },
4155
- {
4156
- "name": "_wethAddr",
4157
- "type": "address"
4158
- },
4159
- {
4160
- "name": "_ethAddr",
4161
- "type": "address"
4162
- },
4163
- {
4164
- "name": "_minTimeLock",
4165
- "type": "uint256"
4166
- },
4167
- {
4168
- "name": "_maxTimeLock",
4169
- "type": "uint256"
4170
- }
4171
- ],
4172
- "outputs": []
4173
- },
4174
- {
4175
- "stateMutability": "nonpayable",
4176
- "type": "function",
4177
- "name": "setTimeLock",
4178
- "inputs": [
4179
- {
4180
- "name": "_numBlocks",
4181
- "type": "uint256"
4182
- }
4183
- ],
4184
- "outputs": []
4185
- },
4186
- {
4187
- "stateMutability": "nonpayable",
4188
- "type": "function",
4189
- "name": "setTimeLockViaMigrator",
4190
- "inputs": [
4191
- {
4192
- "name": "_numBlocks",
4193
- "type": "uint256"
4194
- }
4195
- ],
4196
- "outputs": []
4197
- },
4198
- {
4199
- "stateMutability": "nonpayable",
4200
- "type": "function",
4201
- "name": "confirmPendingTimeLock",
4202
- "inputs": [],
4203
- "outputs": []
4204
- },
4205
- {
4206
- "stateMutability": "nonpayable",
4207
- "type": "function",
4208
- "name": "cancelPendingTimeLock",
4209
- "inputs": [],
4210
- "outputs": []
4211
- },
4212
- {
4213
- "stateMutability": "view",
4214
- "type": "function",
4215
- "name": "pendingTimeLock",
4216
- "inputs": [],
4217
- "outputs": [
4218
- {
4219
- "name": "",
4220
- "type": "tuple",
4221
- "components": [
4222
- {
4223
- "name": "newTimeLock",
4224
- "type": "uint256"
4225
- },
4226
- {
4227
- "name": "initiatedBlock",
4228
- "type": "uint256"
4229
- },
4230
- {
4231
- "name": "confirmBlock",
4232
- "type": "uint256"
4233
- },
4234
- {
4235
- "name": "currentOwner",
4236
- "type": "address"
4237
- }
4238
- ]
4239
- }
4240
- ]
4241
- }
4242
- ];
4243
- export const deployAddress = '0xbF7bAdf4c71102cA49b3f82D50348256cE6C10Fb';
4244
- function getRequest(method, args, contractAddressOrOptions) {
4245
- const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
4246
- const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
4247
- const call = {
4248
- contractName: 'UserWalletConfig',
4249
- method,
4250
- args,
4251
- address,
4252
- deployAddress,
4253
- defaultValue,
4254
- getAbi: () => abi,
4255
- with: (options) => {
4256
- call.address = options.contractAddress;
4257
- call.defaultValue = options.defaultValue;
4258
- return call;
4259
- },
4260
- defaultTo: (defaultValue) => {
4261
- call.defaultValue = defaultValue;
4262
- return call;
4263
- },
4264
- at: (address) => {
4265
- call.address = address;
4266
- return call;
4267
- },
4268
- };
4269
- return call;
4270
- }
4271
- export const call = {
4272
- hasPendingOwnerChange: (...args) => getRequest('hasPendingOwnerChange', args),
4273
- owner: (...args) => getRequest('owner', args),
4274
- ownershipTimeLock: (...args) => getRequest('ownershipTimeLock', args),
4275
- pendingOwner: (...args) => getRequest('pendingOwner', args),
4276
- MIN_OWNERSHIP_TIMELOCK: (...args) => getRequest('MIN_OWNERSHIP_TIMELOCK', args),
4277
- MAX_OWNERSHIP_TIMELOCK: (...args) => getRequest('MAX_OWNERSHIP_TIMELOCK', args),
4278
- apiVersion: (...args) => getRequest('apiVersion', args),
4279
- checkSignerPermissionsAndGetBundle: (...args) => getRequest('checkSignerPermissionsAndGetBundle', args),
4280
- isAgentSender: (...args) => getRequest('isAgentSender', args),
4281
- getActionDataBundle: (...args) => getRequest('getActionDataBundle', args),
4282
- wallet: (...args) => getRequest('wallet', args),
4283
- kernel: (...args) => getRequest('kernel', args),
4284
- sentinel: (...args) => getRequest('sentinel', args),
4285
- highCommand: (...args) => getRequest('highCommand', args),
4286
- paymaster: (...args) => getRequest('paymaster', args),
4287
- chequeBook: (...args) => getRequest('chequeBook', args),
4288
- migrator: (...args) => getRequest('migrator', args),
4289
- managerSettings: (...args) => getRequest('managerSettings', args),
4290
- managerPeriodData: (...args) => getRequest('managerPeriodData', args),
4291
- managers: (...args) => getRequest('managers', args),
4292
- indexOfManager: (...args) => getRequest('indexOfManager', args),
4293
- numManagers: (...args) => getRequest('numManagers', args),
4294
- payeeSettings: (...args) => getRequest('payeeSettings', args),
4295
- payeePeriodData: (...args) => getRequest('payeePeriodData', args),
4296
- payees: (...args) => getRequest('payees', args),
4297
- indexOfPayee: (...args) => getRequest('indexOfPayee', args),
4298
- numPayees: (...args) => getRequest('numPayees', args),
4299
- pendingPayees: (...args) => getRequest('pendingPayees', args),
4300
- whitelistAddr: (...args) => getRequest('whitelistAddr', args),
4301
- indexOfWhitelist: (...args) => getRequest('indexOfWhitelist', args),
4302
- numWhitelisted: (...args) => getRequest('numWhitelisted', args),
4303
- pendingWhitelist: (...args) => getRequest('pendingWhitelist', args),
4304
- cheques: (...args) => getRequest('cheques', args),
4305
- chequeSettings: (...args) => getRequest('chequeSettings', args),
4306
- chequePeriodData: (...args) => getRequest('chequePeriodData', args),
4307
- numActiveCheques: (...args) => getRequest('numActiveCheques', args),
4308
- globalManagerSettings: (...args) => getRequest('globalManagerSettings', args),
4309
- globalPayeeSettings: (...args) => getRequest('globalPayeeSettings', args),
4310
- timeLock: (...args) => getRequest('timeLock', args),
4311
- isFrozen: (...args) => getRequest('isFrozen', args),
4312
- inEjectMode: (...args) => getRequest('inEjectMode', args),
4313
- groupId: (...args) => getRequest('groupId', args),
4314
- startingAgent: (...args) => getRequest('startingAgent', args),
4315
- didSetWallet: (...args) => getRequest('didSetWallet', args),
4316
- UNDY_HQ: (...args) => getRequest('UNDY_HQ', args),
4317
- WETH: (...args) => getRequest('WETH', args),
4318
- ETH: (...args) => getRequest('ETH', args),
4319
- MIN_TIMELOCK: (...args) => getRequest('MIN_TIMELOCK', args),
4320
- MAX_TIMELOCK: (...args) => getRequest('MAX_TIMELOCK', args),
4321
- pendingTimeLock: (...args) => getRequest('pendingTimeLock', args),
4322
- };
4323
- function getMutation(functionName) {
4324
- return {
4325
- contractName: 'UserWalletConfig',
4326
- functionName,
4327
- deployAddress,
4328
- argsType: undefined,
4329
- getAbi: () => abi,
4330
- };
4331
- }
4332
- export const mutation = {
4333
- changeOwnership: getMutation('changeOwnership'),
4334
- confirmOwnershipChange: getMutation('confirmOwnershipChange'),
4335
- cancelOwnershipChange: getMutation('cancelOwnershipChange'),
4336
- setOwnershipTimeLock: getMutation('setOwnershipTimeLock'),
4337
- setWallet: getMutation('setWallet'),
4338
- checkManagerLimitsPostTx: getMutation('checkManagerLimitsPostTx'),
4339
- checkRecipientLimitsAndUpdateData: getMutation('checkRecipientLimitsAndUpdateData'),
4340
- validateCheque: getMutation('validateCheque'),
4341
- addPendingWhitelistAddr: getMutation('addPendingWhitelistAddr'),
4342
- cancelPendingWhitelistAddr: getMutation('cancelPendingWhitelistAddr'),
4343
- confirmWhitelistAddr: getMutation('confirmWhitelistAddr'),
4344
- addWhitelistAddrViaMigrator: getMutation('addWhitelistAddrViaMigrator'),
4345
- removeWhitelistAddr: getMutation('removeWhitelistAddr'),
4346
- addManager: getMutation('addManager'),
4347
- updateManager: getMutation('updateManager'),
4348
- removeManager: getMutation('removeManager'),
4349
- setGlobalManagerSettings: getMutation('setGlobalManagerSettings'),
4350
- addPayee: getMutation('addPayee'),
4351
- updatePayee: getMutation('updatePayee'),
4352
- removePayee: getMutation('removePayee'),
4353
- setGlobalPayeeSettings: getMutation('setGlobalPayeeSettings'),
4354
- addPendingPayee: getMutation('addPendingPayee'),
4355
- confirmPendingPayee: getMutation('confirmPendingPayee'),
4356
- cancelPendingPayee: getMutation('cancelPendingPayee'),
4357
- createCheque: getMutation('createCheque'),
4358
- cancelCheque: getMutation('cancelCheque'),
4359
- setChequeSettings: getMutation('setChequeSettings'),
4360
- updateAssetData: getMutation('updateAssetData'),
4361
- updateAllAssetData: getMutation('updateAllAssetData'),
4362
- migrateFunds: getMutation('migrateFunds'),
4363
- preparePayment: getMutation('preparePayment'),
4364
- deregisterAsset: getMutation('deregisterAsset'),
4365
- recoverNft: getMutation('recoverNft'),
4366
- setFrozen: getMutation('setFrozen'),
4367
- setEjectionMode: getMutation('setEjectionMode'),
4368
- setLegoAccessForAction: getMutation('setLegoAccessForAction'),
4369
- setKernel: getMutation('setKernel'),
4370
- setSentinel: getMutation('setSentinel'),
4371
- setHighCommand: getMutation('setHighCommand'),
4372
- setPaymaster: getMutation('setPaymaster'),
4373
- setChequeBook: getMutation('setChequeBook'),
4374
- setMigrator: getMutation('setMigrator'),
4375
- setTimeLock: getMutation('setTimeLock'),
4376
- setTimeLockViaMigrator: getMutation('setTimeLockViaMigrator'),
4377
- confirmPendingTimeLock: getMutation('confirmPendingTimeLock'),
4378
- cancelPendingTimeLock: getMutation('cancelPendingTimeLock'),
4379
- };
4380
- export function parseEvents(eventName, events) {
4381
- return events.map((event) => {
4382
- return {
4383
- event,
4384
- parsed: parseEventLogs({
4385
- abi,
4386
- eventName,
4387
- logs: [event],
4388
- }),
4389
- };
4390
- });
4391
- }
4392
- export function getEventTopic(eventName) {
4393
- return encodeEventTopics({ abi, eventName })[0];
4394
- }
4395
- export function toSdk(deployAddress, publicClient, walletClient, addressResolver) {
4396
- return {
4397
- deployAddress,
4398
- abi,
4399
- events: {
4400
- EjectionModeSet: { topic: getEventTopic('EjectionModeSet'), parse: (events) => parseEvents('EjectionModeSet', events) },
4401
- FrozenSet: { topic: getEventTopic('FrozenSet'), parse: (events) => parseEvents('FrozenSet', events) },
4402
- NftRecovered: { topic: getEventTopic('NftRecovered'), parse: (events) => parseEvents('NftRecovered', events) },
4403
- OwnershipChangeInitiated: { topic: getEventTopic('OwnershipChangeInitiated'), parse: (events) => parseEvents('OwnershipChangeInitiated', events) },
4404
- OwnershipChangeConfirmed: { topic: getEventTopic('OwnershipChangeConfirmed'), parse: (events) => parseEvents('OwnershipChangeConfirmed', events) },
4405
- OwnershipChangeCancelled: { topic: getEventTopic('OwnershipChangeCancelled'), parse: (events) => parseEvents('OwnershipChangeCancelled', events) },
4406
- OwnershipTimeLockSet: { topic: getEventTopic('OwnershipTimeLockSet'), parse: (events) => parseEvents('OwnershipTimeLockSet', events) },
4407
- },
4408
- // Queries
4409
- hasPendingOwnerChange: (...args) => singleQuery(publicClient, call.hasPendingOwnerChange(...args).at(deployAddress), {}, addressResolver),
4410
- owner: (...args) => singleQuery(publicClient, call.owner(...args).at(deployAddress), {}, addressResolver),
4411
- ownershipTimeLock: (...args) => singleQuery(publicClient, call.ownershipTimeLock(...args).at(deployAddress), {}, addressResolver),
4412
- pendingOwner: (...args) => singleQuery(publicClient, call.pendingOwner(...args).at(deployAddress), {}, addressResolver),
4413
- MIN_OWNERSHIP_TIMELOCK: (...args) => singleQuery(publicClient, call.MIN_OWNERSHIP_TIMELOCK(...args).at(deployAddress), {}, addressResolver),
4414
- MAX_OWNERSHIP_TIMELOCK: (...args) => singleQuery(publicClient, call.MAX_OWNERSHIP_TIMELOCK(...args).at(deployAddress), {}, addressResolver),
4415
- apiVersion: (...args) => singleQuery(publicClient, call.apiVersion(...args).at(deployAddress), {}, addressResolver),
4416
- checkSignerPermissionsAndGetBundle: (...args) => singleQuery(publicClient, call.checkSignerPermissionsAndGetBundle(...args).at(deployAddress), {}, addressResolver),
4417
- isAgentSender: (...args) => singleQuery(publicClient, call.isAgentSender(...args).at(deployAddress), {}, addressResolver),
4418
- getActionDataBundle: (...args) => singleQuery(publicClient, call.getActionDataBundle(...args).at(deployAddress), {}, addressResolver),
4419
- wallet: (...args) => singleQuery(publicClient, call.wallet(...args).at(deployAddress), {}, addressResolver),
4420
- kernel: (...args) => singleQuery(publicClient, call.kernel(...args).at(deployAddress), {}, addressResolver),
4421
- sentinel: (...args) => singleQuery(publicClient, call.sentinel(...args).at(deployAddress), {}, addressResolver),
4422
- highCommand: (...args) => singleQuery(publicClient, call.highCommand(...args).at(deployAddress), {}, addressResolver),
4423
- paymaster: (...args) => singleQuery(publicClient, call.paymaster(...args).at(deployAddress), {}, addressResolver),
4424
- chequeBook: (...args) => singleQuery(publicClient, call.chequeBook(...args).at(deployAddress), {}, addressResolver),
4425
- migrator: (...args) => singleQuery(publicClient, call.migrator(...args).at(deployAddress), {}, addressResolver),
4426
- managerSettings: (...args) => singleQuery(publicClient, call.managerSettings(...args).at(deployAddress), {}, addressResolver),
4427
- managerPeriodData: (...args) => singleQuery(publicClient, call.managerPeriodData(...args).at(deployAddress), {}, addressResolver),
4428
- managers: (...args) => singleQuery(publicClient, call.managers(...args).at(deployAddress), {}, addressResolver),
4429
- indexOfManager: (...args) => singleQuery(publicClient, call.indexOfManager(...args).at(deployAddress), {}, addressResolver),
4430
- numManagers: (...args) => singleQuery(publicClient, call.numManagers(...args).at(deployAddress), {}, addressResolver),
4431
- payeeSettings: (...args) => singleQuery(publicClient, call.payeeSettings(...args).at(deployAddress), {}, addressResolver),
4432
- payeePeriodData: (...args) => singleQuery(publicClient, call.payeePeriodData(...args).at(deployAddress), {}, addressResolver),
4433
- payees: (...args) => singleQuery(publicClient, call.payees(...args).at(deployAddress), {}, addressResolver),
4434
- indexOfPayee: (...args) => singleQuery(publicClient, call.indexOfPayee(...args).at(deployAddress), {}, addressResolver),
4435
- numPayees: (...args) => singleQuery(publicClient, call.numPayees(...args).at(deployAddress), {}, addressResolver),
4436
- pendingPayees: (...args) => singleQuery(publicClient, call.pendingPayees(...args).at(deployAddress), {}, addressResolver),
4437
- whitelistAddr: (...args) => singleQuery(publicClient, call.whitelistAddr(...args).at(deployAddress), {}, addressResolver),
4438
- indexOfWhitelist: (...args) => singleQuery(publicClient, call.indexOfWhitelist(...args).at(deployAddress), {}, addressResolver),
4439
- numWhitelisted: (...args) => singleQuery(publicClient, call.numWhitelisted(...args).at(deployAddress), {}, addressResolver),
4440
- pendingWhitelist: (...args) => singleQuery(publicClient, call.pendingWhitelist(...args).at(deployAddress), {}, addressResolver),
4441
- cheques: (...args) => singleQuery(publicClient, call.cheques(...args).at(deployAddress), {}, addressResolver),
4442
- chequeSettings: (...args) => singleQuery(publicClient, call.chequeSettings(...args).at(deployAddress), {}, addressResolver),
4443
- chequePeriodData: (...args) => singleQuery(publicClient, call.chequePeriodData(...args).at(deployAddress), {}, addressResolver),
4444
- numActiveCheques: (...args) => singleQuery(publicClient, call.numActiveCheques(...args).at(deployAddress), {}, addressResolver),
4445
- globalManagerSettings: (...args) => singleQuery(publicClient, call.globalManagerSettings(...args).at(deployAddress), {}, addressResolver),
4446
- globalPayeeSettings: (...args) => singleQuery(publicClient, call.globalPayeeSettings(...args).at(deployAddress), {}, addressResolver),
4447
- timeLock: (...args) => singleQuery(publicClient, call.timeLock(...args).at(deployAddress), {}, addressResolver),
4448
- isFrozen: (...args) => singleQuery(publicClient, call.isFrozen(...args).at(deployAddress), {}, addressResolver),
4449
- inEjectMode: (...args) => singleQuery(publicClient, call.inEjectMode(...args).at(deployAddress), {}, addressResolver),
4450
- groupId: (...args) => singleQuery(publicClient, call.groupId(...args).at(deployAddress), {}, addressResolver),
4451
- startingAgent: (...args) => singleQuery(publicClient, call.startingAgent(...args).at(deployAddress), {}, addressResolver),
4452
- didSetWallet: (...args) => singleQuery(publicClient, call.didSetWallet(...args).at(deployAddress), {}, addressResolver),
4453
- UNDY_HQ: (...args) => singleQuery(publicClient, call.UNDY_HQ(...args).at(deployAddress), {}, addressResolver),
4454
- WETH: (...args) => singleQuery(publicClient, call.WETH(...args).at(deployAddress), {}, addressResolver),
4455
- ETH: (...args) => singleQuery(publicClient, call.ETH(...args).at(deployAddress), {}, addressResolver),
4456
- MIN_TIMELOCK: (...args) => singleQuery(publicClient, call.MIN_TIMELOCK(...args).at(deployAddress), {}, addressResolver),
4457
- MAX_TIMELOCK: (...args) => singleQuery(publicClient, call.MAX_TIMELOCK(...args).at(deployAddress), {}, addressResolver),
4458
- pendingTimeLock: (...args) => singleQuery(publicClient, call.pendingTimeLock(...args).at(deployAddress), {}, addressResolver),
4459
- // Mutations
4460
- changeOwnership: (...args) => mutate(walletClient, mutation.changeOwnership, { address: deployAddress, addressResolver })(...args),
4461
- confirmOwnershipChange: (...args) => mutate(walletClient, mutation.confirmOwnershipChange, { address: deployAddress, addressResolver })(...args),
4462
- cancelOwnershipChange: (...args) => mutate(walletClient, mutation.cancelOwnershipChange, { address: deployAddress, addressResolver })(...args),
4463
- setOwnershipTimeLock: (...args) => mutate(walletClient, mutation.setOwnershipTimeLock, { address: deployAddress, addressResolver })(...args),
4464
- setWallet: (...args) => mutate(walletClient, mutation.setWallet, { address: deployAddress, addressResolver })(...args),
4465
- checkManagerLimitsPostTx: (...args) => mutate(walletClient, mutation.checkManagerLimitsPostTx, { address: deployAddress, addressResolver })(...args),
4466
- checkRecipientLimitsAndUpdateData: (...args) => mutate(walletClient, mutation.checkRecipientLimitsAndUpdateData, { address: deployAddress, addressResolver })(...args),
4467
- validateCheque: (...args) => mutate(walletClient, mutation.validateCheque, { address: deployAddress, addressResolver })(...args),
4468
- addPendingWhitelistAddr: (...args) => mutate(walletClient, mutation.addPendingWhitelistAddr, { address: deployAddress, addressResolver })(...args),
4469
- cancelPendingWhitelistAddr: (...args) => mutate(walletClient, mutation.cancelPendingWhitelistAddr, { address: deployAddress, addressResolver })(...args),
4470
- confirmWhitelistAddr: (...args) => mutate(walletClient, mutation.confirmWhitelistAddr, { address: deployAddress, addressResolver })(...args),
4471
- addWhitelistAddrViaMigrator: (...args) => mutate(walletClient, mutation.addWhitelistAddrViaMigrator, { address: deployAddress, addressResolver })(...args),
4472
- removeWhitelistAddr: (...args) => mutate(walletClient, mutation.removeWhitelistAddr, { address: deployAddress, addressResolver })(...args),
4473
- addManager: (...args) => mutate(walletClient, mutation.addManager, { address: deployAddress, addressResolver })(...args),
4474
- updateManager: (...args) => mutate(walletClient, mutation.updateManager, { address: deployAddress, addressResolver })(...args),
4475
- removeManager: (...args) => mutate(walletClient, mutation.removeManager, { address: deployAddress, addressResolver })(...args),
4476
- setGlobalManagerSettings: (...args) => mutate(walletClient, mutation.setGlobalManagerSettings, { address: deployAddress, addressResolver })(...args),
4477
- addPayee: (...args) => mutate(walletClient, mutation.addPayee, { address: deployAddress, addressResolver })(...args),
4478
- updatePayee: (...args) => mutate(walletClient, mutation.updatePayee, { address: deployAddress, addressResolver })(...args),
4479
- removePayee: (...args) => mutate(walletClient, mutation.removePayee, { address: deployAddress, addressResolver })(...args),
4480
- setGlobalPayeeSettings: (...args) => mutate(walletClient, mutation.setGlobalPayeeSettings, { address: deployAddress, addressResolver })(...args),
4481
- addPendingPayee: (...args) => mutate(walletClient, mutation.addPendingPayee, { address: deployAddress, addressResolver })(...args),
4482
- confirmPendingPayee: (...args) => mutate(walletClient, mutation.confirmPendingPayee, { address: deployAddress, addressResolver })(...args),
4483
- cancelPendingPayee: (...args) => mutate(walletClient, mutation.cancelPendingPayee, { address: deployAddress, addressResolver })(...args),
4484
- createCheque: (...args) => mutate(walletClient, mutation.createCheque, { address: deployAddress, addressResolver })(...args),
4485
- cancelCheque: (...args) => mutate(walletClient, mutation.cancelCheque, { address: deployAddress, addressResolver })(...args),
4486
- setChequeSettings: (...args) => mutate(walletClient, mutation.setChequeSettings, { address: deployAddress, addressResolver })(...args),
4487
- updateAssetData: (...args) => mutate(walletClient, mutation.updateAssetData, { address: deployAddress, addressResolver })(...args),
4488
- updateAllAssetData: (...args) => mutate(walletClient, mutation.updateAllAssetData, { address: deployAddress, addressResolver })(...args),
4489
- migrateFunds: (...args) => mutate(walletClient, mutation.migrateFunds, { address: deployAddress, addressResolver })(...args),
4490
- preparePayment: (...args) => mutate(walletClient, mutation.preparePayment, { address: deployAddress, addressResolver })(...args),
4491
- deregisterAsset: (...args) => mutate(walletClient, mutation.deregisterAsset, { address: deployAddress, addressResolver })(...args),
4492
- recoverNft: (...args) => mutate(walletClient, mutation.recoverNft, { address: deployAddress, addressResolver })(...args),
4493
- setFrozen: (...args) => mutate(walletClient, mutation.setFrozen, { address: deployAddress, addressResolver })(...args),
4494
- setEjectionMode: (...args) => mutate(walletClient, mutation.setEjectionMode, { address: deployAddress, addressResolver })(...args),
4495
- setLegoAccessForAction: (...args) => mutate(walletClient, mutation.setLegoAccessForAction, { address: deployAddress, addressResolver })(...args),
4496
- setKernel: (...args) => mutate(walletClient, mutation.setKernel, { address: deployAddress, addressResolver })(...args),
4497
- setSentinel: (...args) => mutate(walletClient, mutation.setSentinel, { address: deployAddress, addressResolver })(...args),
4498
- setHighCommand: (...args) => mutate(walletClient, mutation.setHighCommand, { address: deployAddress, addressResolver })(...args),
4499
- setPaymaster: (...args) => mutate(walletClient, mutation.setPaymaster, { address: deployAddress, addressResolver })(...args),
4500
- setChequeBook: (...args) => mutate(walletClient, mutation.setChequeBook, { address: deployAddress, addressResolver })(...args),
4501
- setMigrator: (...args) => mutate(walletClient, mutation.setMigrator, { address: deployAddress, addressResolver })(...args),
4502
- setTimeLock: (...args) => mutate(walletClient, mutation.setTimeLock, { address: deployAddress, addressResolver })(...args),
4503
- setTimeLockViaMigrator: (...args) => mutate(walletClient, mutation.setTimeLockViaMigrator, { address: deployAddress, addressResolver })(...args),
4504
- confirmPendingTimeLock: (...args) => mutate(walletClient, mutation.confirmPendingTimeLock, { address: deployAddress, addressResolver })(...args),
4505
- cancelPendingTimeLock: (...args) => mutate(walletClient, mutation.cancelPendingTimeLock, { address: deployAddress, addressResolver })(...args),
4506
- };
4507
- }