@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,2476 +0,0 @@
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": "_isOwner",
1933
- "type": "bool"
1934
- },
1935
- {
1936
- "name": "_isPayee",
1937
- "type": "bool"
1938
- },
1939
- {
1940
- "name": "_asset",
1941
- "type": "address"
1942
- },
1943
- {
1944
- "name": "_amount",
1945
- "type": "uint256"
1946
- },
1947
- {
1948
- "name": "_txUsdValue",
1949
- "type": "uint256"
1950
- },
1951
- {
1952
- "name": "_config",
1953
- "type": "tuple",
1954
- "components": [
1955
- {
1956
- "name": "startBlock",
1957
- "type": "uint256"
1958
- },
1959
- {
1960
- "name": "expiryBlock",
1961
- "type": "uint256"
1962
- },
1963
- {
1964
- "name": "canPull",
1965
- "type": "bool"
1966
- },
1967
- {
1968
- "name": "periodLength",
1969
- "type": "uint256"
1970
- },
1971
- {
1972
- "name": "maxNumTxsPerPeriod",
1973
- "type": "uint256"
1974
- },
1975
- {
1976
- "name": "txCooldownBlocks",
1977
- "type": "uint256"
1978
- },
1979
- {
1980
- "name": "failOnZeroPrice",
1981
- "type": "bool"
1982
- },
1983
- {
1984
- "name": "primaryAsset",
1985
- "type": "address"
1986
- },
1987
- {
1988
- "name": "onlyPrimaryAsset",
1989
- "type": "bool"
1990
- },
1991
- {
1992
- "name": "unitLimits",
1993
- "type": "tuple",
1994
- "components": [
1995
- {
1996
- "name": "perTxCap",
1997
- "type": "uint256"
1998
- },
1999
- {
2000
- "name": "perPeriodCap",
2001
- "type": "uint256"
2002
- },
2003
- {
2004
- "name": "lifetimeCap",
2005
- "type": "uint256"
2006
- }
2007
- ]
2008
- },
2009
- {
2010
- "name": "usdLimits",
2011
- "type": "tuple",
2012
- "components": [
2013
- {
2014
- "name": "perTxCap",
2015
- "type": "uint256"
2016
- },
2017
- {
2018
- "name": "perPeriodCap",
2019
- "type": "uint256"
2020
- },
2021
- {
2022
- "name": "lifetimeCap",
2023
- "type": "uint256"
2024
- }
2025
- ]
2026
- }
2027
- ]
2028
- },
2029
- {
2030
- "name": "_globalConfig",
2031
- "type": "tuple",
2032
- "components": [
2033
- {
2034
- "name": "defaultPeriodLength",
2035
- "type": "uint256"
2036
- },
2037
- {
2038
- "name": "startDelay",
2039
- "type": "uint256"
2040
- },
2041
- {
2042
- "name": "activationLength",
2043
- "type": "uint256"
2044
- },
2045
- {
2046
- "name": "maxNumTxsPerPeriod",
2047
- "type": "uint256"
2048
- },
2049
- {
2050
- "name": "txCooldownBlocks",
2051
- "type": "uint256"
2052
- },
2053
- {
2054
- "name": "failOnZeroPrice",
2055
- "type": "bool"
2056
- },
2057
- {
2058
- "name": "usdLimits",
2059
- "type": "tuple",
2060
- "components": [
2061
- {
2062
- "name": "perTxCap",
2063
- "type": "uint256"
2064
- },
2065
- {
2066
- "name": "perPeriodCap",
2067
- "type": "uint256"
2068
- },
2069
- {
2070
- "name": "lifetimeCap",
2071
- "type": "uint256"
2072
- }
2073
- ]
2074
- },
2075
- {
2076
- "name": "canPayOwner",
2077
- "type": "bool"
2078
- },
2079
- {
2080
- "name": "canPull",
2081
- "type": "bool"
2082
- }
2083
- ]
2084
- },
2085
- {
2086
- "name": "_payeeData",
2087
- "type": "tuple",
2088
- "components": [
2089
- {
2090
- "name": "numTxsInPeriod",
2091
- "type": "uint256"
2092
- },
2093
- {
2094
- "name": "totalUnitsInPeriod",
2095
- "type": "uint256"
2096
- },
2097
- {
2098
- "name": "totalUsdValueInPeriod",
2099
- "type": "uint256"
2100
- },
2101
- {
2102
- "name": "totalNumTxs",
2103
- "type": "uint256"
2104
- },
2105
- {
2106
- "name": "totalUnits",
2107
- "type": "uint256"
2108
- },
2109
- {
2110
- "name": "totalUsdValue",
2111
- "type": "uint256"
2112
- },
2113
- {
2114
- "name": "lastTxBlock",
2115
- "type": "uint256"
2116
- },
2117
- {
2118
- "name": "periodStartBlock",
2119
- "type": "uint256"
2120
- }
2121
- ]
2122
- }
2123
- ],
2124
- "outputs": [
2125
- {
2126
- "name": "",
2127
- "type": "bool"
2128
- },
2129
- {
2130
- "name": "",
2131
- "type": "tuple",
2132
- "components": [
2133
- {
2134
- "name": "numTxsInPeriod",
2135
- "type": "uint256"
2136
- },
2137
- {
2138
- "name": "totalUnitsInPeriod",
2139
- "type": "uint256"
2140
- },
2141
- {
2142
- "name": "totalUsdValueInPeriod",
2143
- "type": "uint256"
2144
- },
2145
- {
2146
- "name": "totalNumTxs",
2147
- "type": "uint256"
2148
- },
2149
- {
2150
- "name": "totalUnits",
2151
- "type": "uint256"
2152
- },
2153
- {
2154
- "name": "totalUsdValue",
2155
- "type": "uint256"
2156
- },
2157
- {
2158
- "name": "lastTxBlock",
2159
- "type": "uint256"
2160
- },
2161
- {
2162
- "name": "periodStartBlock",
2163
- "type": "uint256"
2164
- }
2165
- ]
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
- },
2418
- {
2419
- "stateMutability": "nonpayable",
2420
- "type": "constructor",
2421
- "inputs": [],
2422
- "outputs": []
2423
- }
2424
- ];
2425
- export const deployAddress = '0xB566EdDbB1d8fEBCD60D194b62a14aFc9a65795b';
2426
- function getRequest(method, args, contractAddressOrOptions) {
2427
- const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
2428
- const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
2429
- const call = {
2430
- contractName: 'Sentinel',
2431
- method,
2432
- args,
2433
- address,
2434
- deployAddress,
2435
- defaultValue,
2436
- getAbi: () => abi,
2437
- with: (options) => {
2438
- call.address = options.contractAddress;
2439
- call.defaultValue = options.defaultValue;
2440
- return call;
2441
- },
2442
- defaultTo: (defaultValue) => {
2443
- call.defaultValue = defaultValue;
2444
- return call;
2445
- },
2446
- at: (address) => {
2447
- call.address = address;
2448
- return call;
2449
- },
2450
- };
2451
- return call;
2452
- }
2453
- export const call = {
2454
- canSignerPerformAction: (...args) => getRequest('canSignerPerformAction', args),
2455
- canSignerPerformActionWithConfig: (...args) => getRequest('canSignerPerformActionWithConfig', args),
2456
- canManagerFinishTx: (...args) => getRequest('canManagerFinishTx', args),
2457
- checkManagerLimitsPostTx: (...args) => getRequest('checkManagerLimitsPostTx', args),
2458
- isValidPayee: (...args) => getRequest('isValidPayee', args),
2459
- isValidPayeeAndGetData: (...args) => getRequest('isValidPayeeAndGetData', args),
2460
- isValidChequeAndGetData: (...args) => getRequest('isValidChequeAndGetData', args),
2461
- };
2462
- export function toSdk(publicClient, walletClient, addressResolver) {
2463
- return {
2464
- deployAddress,
2465
- abi,
2466
- // Queries
2467
- canSignerPerformAction: (...args) => singleQuery(publicClient, call.canSignerPerformAction(...args), {}, addressResolver),
2468
- canSignerPerformActionWithConfig: (...args) => singleQuery(publicClient, call.canSignerPerformActionWithConfig(...args), {}, addressResolver),
2469
- canManagerFinishTx: (...args) => singleQuery(publicClient, call.canManagerFinishTx(...args), {}, addressResolver),
2470
- checkManagerLimitsPostTx: (...args) => singleQuery(publicClient, call.checkManagerLimitsPostTx(...args), {}, addressResolver),
2471
- isValidPayee: (...args) => singleQuery(publicClient, call.isValidPayee(...args), {}, addressResolver),
2472
- isValidPayeeAndGetData: (...args) => singleQuery(publicClient, call.isValidPayeeAndGetData(...args), {}, addressResolver),
2473
- isValidChequeAndGetData: (...args) => singleQuery(publicClient, call.isValidChequeAndGetData(...args), {}, addressResolver),
2474
- // Mutations
2475
- };
2476
- }