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

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