@underscore-finance/sdk 0.3.4 → 1.0.1

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