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

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