@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,3354 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /* @ts-nocheck */
5
+ import { singleQuery, mutate } from '@dappql/async';
6
+ import { encodeEventTopics, parseEventLogs } from 'viem';
7
+ export const abi = [
8
+ {
9
+ "anonymous": false,
10
+ "inputs": [
11
+ {
12
+ "indexed": false,
13
+ "name": "action",
14
+ "type": "uint8"
15
+ },
16
+ {
17
+ "indexed": true,
18
+ "name": "userWallet",
19
+ "type": "address"
20
+ },
21
+ {
22
+ "indexed": true,
23
+ "name": "sender",
24
+ "type": "address"
25
+ }
26
+ ],
27
+ "name": "AgentAction",
28
+ "type": "event"
29
+ },
30
+ {
31
+ "inputs": [
32
+ {
33
+ "name": "_userWallet",
34
+ "type": "address"
35
+ },
36
+ {
37
+ "name": "_recipient",
38
+ "type": "address"
39
+ }
40
+ ],
41
+ "name": "transferFunds",
42
+ "outputs": [
43
+ {
44
+ "name": "",
45
+ "type": "uint256"
46
+ },
47
+ {
48
+ "name": "",
49
+ "type": "uint256"
50
+ }
51
+ ],
52
+ "stateMutability": "nonpayable",
53
+ "type": "function"
54
+ },
55
+ {
56
+ "inputs": [
57
+ {
58
+ "name": "_userWallet",
59
+ "type": "address"
60
+ },
61
+ {
62
+ "name": "_recipient",
63
+ "type": "address"
64
+ },
65
+ {
66
+ "name": "_asset",
67
+ "type": "address"
68
+ }
69
+ ],
70
+ "name": "transferFunds",
71
+ "outputs": [
72
+ {
73
+ "name": "",
74
+ "type": "uint256"
75
+ },
76
+ {
77
+ "name": "",
78
+ "type": "uint256"
79
+ }
80
+ ],
81
+ "stateMutability": "nonpayable",
82
+ "type": "function"
83
+ },
84
+ {
85
+ "inputs": [
86
+ {
87
+ "name": "_userWallet",
88
+ "type": "address"
89
+ },
90
+ {
91
+ "name": "_recipient",
92
+ "type": "address"
93
+ },
94
+ {
95
+ "name": "_asset",
96
+ "type": "address"
97
+ },
98
+ {
99
+ "name": "_amount",
100
+ "type": "uint256"
101
+ }
102
+ ],
103
+ "name": "transferFunds",
104
+ "outputs": [
105
+ {
106
+ "name": "",
107
+ "type": "uint256"
108
+ },
109
+ {
110
+ "name": "",
111
+ "type": "uint256"
112
+ }
113
+ ],
114
+ "stateMutability": "nonpayable",
115
+ "type": "function"
116
+ },
117
+ {
118
+ "inputs": [
119
+ {
120
+ "name": "_userWallet",
121
+ "type": "address"
122
+ },
123
+ {
124
+ "name": "_recipient",
125
+ "type": "address"
126
+ },
127
+ {
128
+ "name": "_asset",
129
+ "type": "address"
130
+ },
131
+ {
132
+ "name": "_amount",
133
+ "type": "uint256"
134
+ },
135
+ {
136
+ "name": "_isCheque",
137
+ "type": "bool"
138
+ }
139
+ ],
140
+ "name": "transferFunds",
141
+ "outputs": [
142
+ {
143
+ "name": "",
144
+ "type": "uint256"
145
+ },
146
+ {
147
+ "name": "",
148
+ "type": "uint256"
149
+ }
150
+ ],
151
+ "stateMutability": "nonpayable",
152
+ "type": "function"
153
+ },
154
+ {
155
+ "inputs": [
156
+ {
157
+ "name": "_userWallet",
158
+ "type": "address"
159
+ },
160
+ {
161
+ "name": "_legoId",
162
+ "type": "uint256"
163
+ },
164
+ {
165
+ "name": "_asset",
166
+ "type": "address"
167
+ }
168
+ ],
169
+ "name": "depositForYield",
170
+ "outputs": [
171
+ {
172
+ "name": "",
173
+ "type": "uint256"
174
+ },
175
+ {
176
+ "name": "",
177
+ "type": "address"
178
+ },
179
+ {
180
+ "name": "",
181
+ "type": "uint256"
182
+ },
183
+ {
184
+ "name": "",
185
+ "type": "uint256"
186
+ }
187
+ ],
188
+ "stateMutability": "nonpayable",
189
+ "type": "function"
190
+ },
191
+ {
192
+ "inputs": [
193
+ {
194
+ "name": "_userWallet",
195
+ "type": "address"
196
+ },
197
+ {
198
+ "name": "_legoId",
199
+ "type": "uint256"
200
+ },
201
+ {
202
+ "name": "_asset",
203
+ "type": "address"
204
+ },
205
+ {
206
+ "name": "_vaultAddr",
207
+ "type": "address"
208
+ }
209
+ ],
210
+ "name": "depositForYield",
211
+ "outputs": [
212
+ {
213
+ "name": "",
214
+ "type": "uint256"
215
+ },
216
+ {
217
+ "name": "",
218
+ "type": "address"
219
+ },
220
+ {
221
+ "name": "",
222
+ "type": "uint256"
223
+ },
224
+ {
225
+ "name": "",
226
+ "type": "uint256"
227
+ }
228
+ ],
229
+ "stateMutability": "nonpayable",
230
+ "type": "function"
231
+ },
232
+ {
233
+ "inputs": [
234
+ {
235
+ "name": "_userWallet",
236
+ "type": "address"
237
+ },
238
+ {
239
+ "name": "_legoId",
240
+ "type": "uint256"
241
+ },
242
+ {
243
+ "name": "_asset",
244
+ "type": "address"
245
+ },
246
+ {
247
+ "name": "_vaultAddr",
248
+ "type": "address"
249
+ },
250
+ {
251
+ "name": "_amount",
252
+ "type": "uint256"
253
+ }
254
+ ],
255
+ "name": "depositForYield",
256
+ "outputs": [
257
+ {
258
+ "name": "",
259
+ "type": "uint256"
260
+ },
261
+ {
262
+ "name": "",
263
+ "type": "address"
264
+ },
265
+ {
266
+ "name": "",
267
+ "type": "uint256"
268
+ },
269
+ {
270
+ "name": "",
271
+ "type": "uint256"
272
+ }
273
+ ],
274
+ "stateMutability": "nonpayable",
275
+ "type": "function"
276
+ },
277
+ {
278
+ "inputs": [
279
+ {
280
+ "name": "_userWallet",
281
+ "type": "address"
282
+ },
283
+ {
284
+ "name": "_legoId",
285
+ "type": "uint256"
286
+ },
287
+ {
288
+ "name": "_asset",
289
+ "type": "address"
290
+ },
291
+ {
292
+ "name": "_vaultAddr",
293
+ "type": "address"
294
+ },
295
+ {
296
+ "name": "_amount",
297
+ "type": "uint256"
298
+ },
299
+ {
300
+ "name": "_extraData",
301
+ "type": "bytes32"
302
+ }
303
+ ],
304
+ "name": "depositForYield",
305
+ "outputs": [
306
+ {
307
+ "name": "",
308
+ "type": "uint256"
309
+ },
310
+ {
311
+ "name": "",
312
+ "type": "address"
313
+ },
314
+ {
315
+ "name": "",
316
+ "type": "uint256"
317
+ },
318
+ {
319
+ "name": "",
320
+ "type": "uint256"
321
+ }
322
+ ],
323
+ "stateMutability": "nonpayable",
324
+ "type": "function"
325
+ },
326
+ {
327
+ "inputs": [
328
+ {
329
+ "name": "_userWallet",
330
+ "type": "address"
331
+ },
332
+ {
333
+ "name": "_legoId",
334
+ "type": "uint256"
335
+ },
336
+ {
337
+ "name": "_vaultToken",
338
+ "type": "address"
339
+ }
340
+ ],
341
+ "name": "withdrawFromYield",
342
+ "outputs": [
343
+ {
344
+ "name": "",
345
+ "type": "uint256"
346
+ },
347
+ {
348
+ "name": "",
349
+ "type": "address"
350
+ },
351
+ {
352
+ "name": "",
353
+ "type": "uint256"
354
+ },
355
+ {
356
+ "name": "",
357
+ "type": "uint256"
358
+ }
359
+ ],
360
+ "stateMutability": "nonpayable",
361
+ "type": "function"
362
+ },
363
+ {
364
+ "inputs": [
365
+ {
366
+ "name": "_userWallet",
367
+ "type": "address"
368
+ },
369
+ {
370
+ "name": "_legoId",
371
+ "type": "uint256"
372
+ },
373
+ {
374
+ "name": "_vaultToken",
375
+ "type": "address"
376
+ },
377
+ {
378
+ "name": "_amount",
379
+ "type": "uint256"
380
+ }
381
+ ],
382
+ "name": "withdrawFromYield",
383
+ "outputs": [
384
+ {
385
+ "name": "",
386
+ "type": "uint256"
387
+ },
388
+ {
389
+ "name": "",
390
+ "type": "address"
391
+ },
392
+ {
393
+ "name": "",
394
+ "type": "uint256"
395
+ },
396
+ {
397
+ "name": "",
398
+ "type": "uint256"
399
+ }
400
+ ],
401
+ "stateMutability": "nonpayable",
402
+ "type": "function"
403
+ },
404
+ {
405
+ "inputs": [
406
+ {
407
+ "name": "_userWallet",
408
+ "type": "address"
409
+ },
410
+ {
411
+ "name": "_legoId",
412
+ "type": "uint256"
413
+ },
414
+ {
415
+ "name": "_vaultToken",
416
+ "type": "address"
417
+ },
418
+ {
419
+ "name": "_amount",
420
+ "type": "uint256"
421
+ },
422
+ {
423
+ "name": "_extraData",
424
+ "type": "bytes32"
425
+ }
426
+ ],
427
+ "name": "withdrawFromYield",
428
+ "outputs": [
429
+ {
430
+ "name": "",
431
+ "type": "uint256"
432
+ },
433
+ {
434
+ "name": "",
435
+ "type": "address"
436
+ },
437
+ {
438
+ "name": "",
439
+ "type": "uint256"
440
+ },
441
+ {
442
+ "name": "",
443
+ "type": "uint256"
444
+ }
445
+ ],
446
+ "stateMutability": "nonpayable",
447
+ "type": "function"
448
+ },
449
+ {
450
+ "inputs": [
451
+ {
452
+ "name": "_userWallet",
453
+ "type": "address"
454
+ },
455
+ {
456
+ "name": "_fromLegoId",
457
+ "type": "uint256"
458
+ },
459
+ {
460
+ "name": "_fromVaultToken",
461
+ "type": "address"
462
+ },
463
+ {
464
+ "name": "_toLegoId",
465
+ "type": "uint256"
466
+ }
467
+ ],
468
+ "name": "rebalanceYieldPosition",
469
+ "outputs": [
470
+ {
471
+ "name": "",
472
+ "type": "uint256"
473
+ },
474
+ {
475
+ "name": "",
476
+ "type": "address"
477
+ },
478
+ {
479
+ "name": "",
480
+ "type": "uint256"
481
+ },
482
+ {
483
+ "name": "",
484
+ "type": "uint256"
485
+ }
486
+ ],
487
+ "stateMutability": "nonpayable",
488
+ "type": "function"
489
+ },
490
+ {
491
+ "inputs": [
492
+ {
493
+ "name": "_userWallet",
494
+ "type": "address"
495
+ },
496
+ {
497
+ "name": "_fromLegoId",
498
+ "type": "uint256"
499
+ },
500
+ {
501
+ "name": "_fromVaultToken",
502
+ "type": "address"
503
+ },
504
+ {
505
+ "name": "_toLegoId",
506
+ "type": "uint256"
507
+ },
508
+ {
509
+ "name": "_toVaultAddr",
510
+ "type": "address"
511
+ }
512
+ ],
513
+ "name": "rebalanceYieldPosition",
514
+ "outputs": [
515
+ {
516
+ "name": "",
517
+ "type": "uint256"
518
+ },
519
+ {
520
+ "name": "",
521
+ "type": "address"
522
+ },
523
+ {
524
+ "name": "",
525
+ "type": "uint256"
526
+ },
527
+ {
528
+ "name": "",
529
+ "type": "uint256"
530
+ }
531
+ ],
532
+ "stateMutability": "nonpayable",
533
+ "type": "function"
534
+ },
535
+ {
536
+ "inputs": [
537
+ {
538
+ "name": "_userWallet",
539
+ "type": "address"
540
+ },
541
+ {
542
+ "name": "_fromLegoId",
543
+ "type": "uint256"
544
+ },
545
+ {
546
+ "name": "_fromVaultToken",
547
+ "type": "address"
548
+ },
549
+ {
550
+ "name": "_toLegoId",
551
+ "type": "uint256"
552
+ },
553
+ {
554
+ "name": "_toVaultAddr",
555
+ "type": "address"
556
+ },
557
+ {
558
+ "name": "_fromVaultAmount",
559
+ "type": "uint256"
560
+ }
561
+ ],
562
+ "name": "rebalanceYieldPosition",
563
+ "outputs": [
564
+ {
565
+ "name": "",
566
+ "type": "uint256"
567
+ },
568
+ {
569
+ "name": "",
570
+ "type": "address"
571
+ },
572
+ {
573
+ "name": "",
574
+ "type": "uint256"
575
+ },
576
+ {
577
+ "name": "",
578
+ "type": "uint256"
579
+ }
580
+ ],
581
+ "stateMutability": "nonpayable",
582
+ "type": "function"
583
+ },
584
+ {
585
+ "inputs": [
586
+ {
587
+ "name": "_userWallet",
588
+ "type": "address"
589
+ },
590
+ {
591
+ "name": "_fromLegoId",
592
+ "type": "uint256"
593
+ },
594
+ {
595
+ "name": "_fromVaultToken",
596
+ "type": "address"
597
+ },
598
+ {
599
+ "name": "_toLegoId",
600
+ "type": "uint256"
601
+ },
602
+ {
603
+ "name": "_toVaultAddr",
604
+ "type": "address"
605
+ },
606
+ {
607
+ "name": "_fromVaultAmount",
608
+ "type": "uint256"
609
+ },
610
+ {
611
+ "name": "_extraData",
612
+ "type": "bytes32"
613
+ }
614
+ ],
615
+ "name": "rebalanceYieldPosition",
616
+ "outputs": [
617
+ {
618
+ "name": "",
619
+ "type": "uint256"
620
+ },
621
+ {
622
+ "name": "",
623
+ "type": "address"
624
+ },
625
+ {
626
+ "name": "",
627
+ "type": "uint256"
628
+ },
629
+ {
630
+ "name": "",
631
+ "type": "uint256"
632
+ }
633
+ ],
634
+ "stateMutability": "nonpayable",
635
+ "type": "function"
636
+ },
637
+ {
638
+ "inputs": [
639
+ {
640
+ "name": "_userWallet",
641
+ "type": "address"
642
+ },
643
+ {
644
+ "components": [
645
+ {
646
+ "name": "legoId",
647
+ "type": "uint256"
648
+ },
649
+ {
650
+ "name": "amountIn",
651
+ "type": "uint256"
652
+ },
653
+ {
654
+ "name": "minAmountOut",
655
+ "type": "uint256"
656
+ },
657
+ {
658
+ "name": "tokenPath",
659
+ "type": "address[]"
660
+ },
661
+ {
662
+ "name": "poolPath",
663
+ "type": "address[]"
664
+ }
665
+ ],
666
+ "name": "_swapInstructions",
667
+ "type": "tuple[]"
668
+ }
669
+ ],
670
+ "name": "swapTokens",
671
+ "outputs": [
672
+ {
673
+ "name": "",
674
+ "type": "address"
675
+ },
676
+ {
677
+ "name": "",
678
+ "type": "uint256"
679
+ },
680
+ {
681
+ "name": "",
682
+ "type": "address"
683
+ },
684
+ {
685
+ "name": "",
686
+ "type": "uint256"
687
+ },
688
+ {
689
+ "name": "",
690
+ "type": "uint256"
691
+ }
692
+ ],
693
+ "stateMutability": "nonpayable",
694
+ "type": "function"
695
+ },
696
+ {
697
+ "inputs": [
698
+ {
699
+ "name": "_userWallet",
700
+ "type": "address"
701
+ },
702
+ {
703
+ "name": "_legoId",
704
+ "type": "uint256"
705
+ },
706
+ {
707
+ "name": "_tokenIn",
708
+ "type": "address"
709
+ },
710
+ {
711
+ "name": "_tokenOut",
712
+ "type": "address"
713
+ }
714
+ ],
715
+ "name": "mintOrRedeemAsset",
716
+ "outputs": [
717
+ {
718
+ "name": "",
719
+ "type": "uint256"
720
+ },
721
+ {
722
+ "name": "",
723
+ "type": "uint256"
724
+ },
725
+ {
726
+ "name": "",
727
+ "type": "bool"
728
+ },
729
+ {
730
+ "name": "",
731
+ "type": "uint256"
732
+ }
733
+ ],
734
+ "stateMutability": "nonpayable",
735
+ "type": "function"
736
+ },
737
+ {
738
+ "inputs": [
739
+ {
740
+ "name": "_userWallet",
741
+ "type": "address"
742
+ },
743
+ {
744
+ "name": "_legoId",
745
+ "type": "uint256"
746
+ },
747
+ {
748
+ "name": "_tokenIn",
749
+ "type": "address"
750
+ },
751
+ {
752
+ "name": "_tokenOut",
753
+ "type": "address"
754
+ },
755
+ {
756
+ "name": "_amountIn",
757
+ "type": "uint256"
758
+ }
759
+ ],
760
+ "name": "mintOrRedeemAsset",
761
+ "outputs": [
762
+ {
763
+ "name": "",
764
+ "type": "uint256"
765
+ },
766
+ {
767
+ "name": "",
768
+ "type": "uint256"
769
+ },
770
+ {
771
+ "name": "",
772
+ "type": "bool"
773
+ },
774
+ {
775
+ "name": "",
776
+ "type": "uint256"
777
+ }
778
+ ],
779
+ "stateMutability": "nonpayable",
780
+ "type": "function"
781
+ },
782
+ {
783
+ "inputs": [
784
+ {
785
+ "name": "_userWallet",
786
+ "type": "address"
787
+ },
788
+ {
789
+ "name": "_legoId",
790
+ "type": "uint256"
791
+ },
792
+ {
793
+ "name": "_tokenIn",
794
+ "type": "address"
795
+ },
796
+ {
797
+ "name": "_tokenOut",
798
+ "type": "address"
799
+ },
800
+ {
801
+ "name": "_amountIn",
802
+ "type": "uint256"
803
+ },
804
+ {
805
+ "name": "_minAmountOut",
806
+ "type": "uint256"
807
+ }
808
+ ],
809
+ "name": "mintOrRedeemAsset",
810
+ "outputs": [
811
+ {
812
+ "name": "",
813
+ "type": "uint256"
814
+ },
815
+ {
816
+ "name": "",
817
+ "type": "uint256"
818
+ },
819
+ {
820
+ "name": "",
821
+ "type": "bool"
822
+ },
823
+ {
824
+ "name": "",
825
+ "type": "uint256"
826
+ }
827
+ ],
828
+ "stateMutability": "nonpayable",
829
+ "type": "function"
830
+ },
831
+ {
832
+ "inputs": [
833
+ {
834
+ "name": "_userWallet",
835
+ "type": "address"
836
+ },
837
+ {
838
+ "name": "_legoId",
839
+ "type": "uint256"
840
+ },
841
+ {
842
+ "name": "_tokenIn",
843
+ "type": "address"
844
+ },
845
+ {
846
+ "name": "_tokenOut",
847
+ "type": "address"
848
+ },
849
+ {
850
+ "name": "_amountIn",
851
+ "type": "uint256"
852
+ },
853
+ {
854
+ "name": "_minAmountOut",
855
+ "type": "uint256"
856
+ },
857
+ {
858
+ "name": "_extraData",
859
+ "type": "bytes32"
860
+ }
861
+ ],
862
+ "name": "mintOrRedeemAsset",
863
+ "outputs": [
864
+ {
865
+ "name": "",
866
+ "type": "uint256"
867
+ },
868
+ {
869
+ "name": "",
870
+ "type": "uint256"
871
+ },
872
+ {
873
+ "name": "",
874
+ "type": "bool"
875
+ },
876
+ {
877
+ "name": "",
878
+ "type": "uint256"
879
+ }
880
+ ],
881
+ "stateMutability": "nonpayable",
882
+ "type": "function"
883
+ },
884
+ {
885
+ "inputs": [
886
+ {
887
+ "name": "_userWallet",
888
+ "type": "address"
889
+ },
890
+ {
891
+ "name": "_legoId",
892
+ "type": "uint256"
893
+ },
894
+ {
895
+ "name": "_tokenIn",
896
+ "type": "address"
897
+ },
898
+ {
899
+ "name": "_tokenOut",
900
+ "type": "address"
901
+ }
902
+ ],
903
+ "name": "confirmMintOrRedeemAsset",
904
+ "outputs": [
905
+ {
906
+ "name": "",
907
+ "type": "uint256"
908
+ },
909
+ {
910
+ "name": "",
911
+ "type": "uint256"
912
+ }
913
+ ],
914
+ "stateMutability": "nonpayable",
915
+ "type": "function"
916
+ },
917
+ {
918
+ "inputs": [
919
+ {
920
+ "name": "_userWallet",
921
+ "type": "address"
922
+ },
923
+ {
924
+ "name": "_legoId",
925
+ "type": "uint256"
926
+ },
927
+ {
928
+ "name": "_tokenIn",
929
+ "type": "address"
930
+ },
931
+ {
932
+ "name": "_tokenOut",
933
+ "type": "address"
934
+ },
935
+ {
936
+ "name": "_extraData",
937
+ "type": "bytes32"
938
+ }
939
+ ],
940
+ "name": "confirmMintOrRedeemAsset",
941
+ "outputs": [
942
+ {
943
+ "name": "",
944
+ "type": "uint256"
945
+ },
946
+ {
947
+ "name": "",
948
+ "type": "uint256"
949
+ }
950
+ ],
951
+ "stateMutability": "nonpayable",
952
+ "type": "function"
953
+ },
954
+ {
955
+ "inputs": [
956
+ {
957
+ "name": "_userWallet",
958
+ "type": "address"
959
+ },
960
+ {
961
+ "name": "_legoId",
962
+ "type": "uint256"
963
+ },
964
+ {
965
+ "name": "_asset",
966
+ "type": "address"
967
+ }
968
+ ],
969
+ "name": "addCollateral",
970
+ "outputs": [
971
+ {
972
+ "name": "",
973
+ "type": "uint256"
974
+ },
975
+ {
976
+ "name": "",
977
+ "type": "uint256"
978
+ }
979
+ ],
980
+ "stateMutability": "nonpayable",
981
+ "type": "function"
982
+ },
983
+ {
984
+ "inputs": [
985
+ {
986
+ "name": "_userWallet",
987
+ "type": "address"
988
+ },
989
+ {
990
+ "name": "_legoId",
991
+ "type": "uint256"
992
+ },
993
+ {
994
+ "name": "_asset",
995
+ "type": "address"
996
+ },
997
+ {
998
+ "name": "_amount",
999
+ "type": "uint256"
1000
+ }
1001
+ ],
1002
+ "name": "addCollateral",
1003
+ "outputs": [
1004
+ {
1005
+ "name": "",
1006
+ "type": "uint256"
1007
+ },
1008
+ {
1009
+ "name": "",
1010
+ "type": "uint256"
1011
+ }
1012
+ ],
1013
+ "stateMutability": "nonpayable",
1014
+ "type": "function"
1015
+ },
1016
+ {
1017
+ "inputs": [
1018
+ {
1019
+ "name": "_userWallet",
1020
+ "type": "address"
1021
+ },
1022
+ {
1023
+ "name": "_legoId",
1024
+ "type": "uint256"
1025
+ },
1026
+ {
1027
+ "name": "_asset",
1028
+ "type": "address"
1029
+ },
1030
+ {
1031
+ "name": "_amount",
1032
+ "type": "uint256"
1033
+ },
1034
+ {
1035
+ "name": "_extraData",
1036
+ "type": "bytes32"
1037
+ }
1038
+ ],
1039
+ "name": "addCollateral",
1040
+ "outputs": [
1041
+ {
1042
+ "name": "",
1043
+ "type": "uint256"
1044
+ },
1045
+ {
1046
+ "name": "",
1047
+ "type": "uint256"
1048
+ }
1049
+ ],
1050
+ "stateMutability": "nonpayable",
1051
+ "type": "function"
1052
+ },
1053
+ {
1054
+ "inputs": [
1055
+ {
1056
+ "name": "_userWallet",
1057
+ "type": "address"
1058
+ },
1059
+ {
1060
+ "name": "_legoId",
1061
+ "type": "uint256"
1062
+ },
1063
+ {
1064
+ "name": "_asset",
1065
+ "type": "address"
1066
+ }
1067
+ ],
1068
+ "name": "removeCollateral",
1069
+ "outputs": [
1070
+ {
1071
+ "name": "",
1072
+ "type": "uint256"
1073
+ },
1074
+ {
1075
+ "name": "",
1076
+ "type": "uint256"
1077
+ }
1078
+ ],
1079
+ "stateMutability": "nonpayable",
1080
+ "type": "function"
1081
+ },
1082
+ {
1083
+ "inputs": [
1084
+ {
1085
+ "name": "_userWallet",
1086
+ "type": "address"
1087
+ },
1088
+ {
1089
+ "name": "_legoId",
1090
+ "type": "uint256"
1091
+ },
1092
+ {
1093
+ "name": "_asset",
1094
+ "type": "address"
1095
+ },
1096
+ {
1097
+ "name": "_amount",
1098
+ "type": "uint256"
1099
+ }
1100
+ ],
1101
+ "name": "removeCollateral",
1102
+ "outputs": [
1103
+ {
1104
+ "name": "",
1105
+ "type": "uint256"
1106
+ },
1107
+ {
1108
+ "name": "",
1109
+ "type": "uint256"
1110
+ }
1111
+ ],
1112
+ "stateMutability": "nonpayable",
1113
+ "type": "function"
1114
+ },
1115
+ {
1116
+ "inputs": [
1117
+ {
1118
+ "name": "_userWallet",
1119
+ "type": "address"
1120
+ },
1121
+ {
1122
+ "name": "_legoId",
1123
+ "type": "uint256"
1124
+ },
1125
+ {
1126
+ "name": "_asset",
1127
+ "type": "address"
1128
+ },
1129
+ {
1130
+ "name": "_amount",
1131
+ "type": "uint256"
1132
+ },
1133
+ {
1134
+ "name": "_extraData",
1135
+ "type": "bytes32"
1136
+ }
1137
+ ],
1138
+ "name": "removeCollateral",
1139
+ "outputs": [
1140
+ {
1141
+ "name": "",
1142
+ "type": "uint256"
1143
+ },
1144
+ {
1145
+ "name": "",
1146
+ "type": "uint256"
1147
+ }
1148
+ ],
1149
+ "stateMutability": "nonpayable",
1150
+ "type": "function"
1151
+ },
1152
+ {
1153
+ "inputs": [
1154
+ {
1155
+ "name": "_userWallet",
1156
+ "type": "address"
1157
+ },
1158
+ {
1159
+ "name": "_legoId",
1160
+ "type": "uint256"
1161
+ },
1162
+ {
1163
+ "name": "_borrowAsset",
1164
+ "type": "address"
1165
+ }
1166
+ ],
1167
+ "name": "borrow",
1168
+ "outputs": [
1169
+ {
1170
+ "name": "",
1171
+ "type": "uint256"
1172
+ },
1173
+ {
1174
+ "name": "",
1175
+ "type": "uint256"
1176
+ }
1177
+ ],
1178
+ "stateMutability": "nonpayable",
1179
+ "type": "function"
1180
+ },
1181
+ {
1182
+ "inputs": [
1183
+ {
1184
+ "name": "_userWallet",
1185
+ "type": "address"
1186
+ },
1187
+ {
1188
+ "name": "_legoId",
1189
+ "type": "uint256"
1190
+ },
1191
+ {
1192
+ "name": "_borrowAsset",
1193
+ "type": "address"
1194
+ },
1195
+ {
1196
+ "name": "_amount",
1197
+ "type": "uint256"
1198
+ }
1199
+ ],
1200
+ "name": "borrow",
1201
+ "outputs": [
1202
+ {
1203
+ "name": "",
1204
+ "type": "uint256"
1205
+ },
1206
+ {
1207
+ "name": "",
1208
+ "type": "uint256"
1209
+ }
1210
+ ],
1211
+ "stateMutability": "nonpayable",
1212
+ "type": "function"
1213
+ },
1214
+ {
1215
+ "inputs": [
1216
+ {
1217
+ "name": "_userWallet",
1218
+ "type": "address"
1219
+ },
1220
+ {
1221
+ "name": "_legoId",
1222
+ "type": "uint256"
1223
+ },
1224
+ {
1225
+ "name": "_borrowAsset",
1226
+ "type": "address"
1227
+ },
1228
+ {
1229
+ "name": "_amount",
1230
+ "type": "uint256"
1231
+ },
1232
+ {
1233
+ "name": "_extraData",
1234
+ "type": "bytes32"
1235
+ }
1236
+ ],
1237
+ "name": "borrow",
1238
+ "outputs": [
1239
+ {
1240
+ "name": "",
1241
+ "type": "uint256"
1242
+ },
1243
+ {
1244
+ "name": "",
1245
+ "type": "uint256"
1246
+ }
1247
+ ],
1248
+ "stateMutability": "nonpayable",
1249
+ "type": "function"
1250
+ },
1251
+ {
1252
+ "inputs": [
1253
+ {
1254
+ "name": "_userWallet",
1255
+ "type": "address"
1256
+ },
1257
+ {
1258
+ "name": "_legoId",
1259
+ "type": "uint256"
1260
+ },
1261
+ {
1262
+ "name": "_paymentAsset",
1263
+ "type": "address"
1264
+ }
1265
+ ],
1266
+ "name": "repayDebt",
1267
+ "outputs": [
1268
+ {
1269
+ "name": "",
1270
+ "type": "uint256"
1271
+ },
1272
+ {
1273
+ "name": "",
1274
+ "type": "uint256"
1275
+ }
1276
+ ],
1277
+ "stateMutability": "nonpayable",
1278
+ "type": "function"
1279
+ },
1280
+ {
1281
+ "inputs": [
1282
+ {
1283
+ "name": "_userWallet",
1284
+ "type": "address"
1285
+ },
1286
+ {
1287
+ "name": "_legoId",
1288
+ "type": "uint256"
1289
+ },
1290
+ {
1291
+ "name": "_paymentAsset",
1292
+ "type": "address"
1293
+ },
1294
+ {
1295
+ "name": "_paymentAmount",
1296
+ "type": "uint256"
1297
+ }
1298
+ ],
1299
+ "name": "repayDebt",
1300
+ "outputs": [
1301
+ {
1302
+ "name": "",
1303
+ "type": "uint256"
1304
+ },
1305
+ {
1306
+ "name": "",
1307
+ "type": "uint256"
1308
+ }
1309
+ ],
1310
+ "stateMutability": "nonpayable",
1311
+ "type": "function"
1312
+ },
1313
+ {
1314
+ "inputs": [
1315
+ {
1316
+ "name": "_userWallet",
1317
+ "type": "address"
1318
+ },
1319
+ {
1320
+ "name": "_legoId",
1321
+ "type": "uint256"
1322
+ },
1323
+ {
1324
+ "name": "_paymentAsset",
1325
+ "type": "address"
1326
+ },
1327
+ {
1328
+ "name": "_paymentAmount",
1329
+ "type": "uint256"
1330
+ },
1331
+ {
1332
+ "name": "_extraData",
1333
+ "type": "bytes32"
1334
+ }
1335
+ ],
1336
+ "name": "repayDebt",
1337
+ "outputs": [
1338
+ {
1339
+ "name": "",
1340
+ "type": "uint256"
1341
+ },
1342
+ {
1343
+ "name": "",
1344
+ "type": "uint256"
1345
+ }
1346
+ ],
1347
+ "stateMutability": "nonpayable",
1348
+ "type": "function"
1349
+ },
1350
+ {
1351
+ "inputs": [
1352
+ {
1353
+ "name": "_userWallet",
1354
+ "type": "address"
1355
+ },
1356
+ {
1357
+ "name": "_legoId",
1358
+ "type": "uint256"
1359
+ }
1360
+ ],
1361
+ "name": "claimIncentives",
1362
+ "outputs": [
1363
+ {
1364
+ "name": "",
1365
+ "type": "uint256"
1366
+ },
1367
+ {
1368
+ "name": "",
1369
+ "type": "uint256"
1370
+ }
1371
+ ],
1372
+ "stateMutability": "nonpayable",
1373
+ "type": "function"
1374
+ },
1375
+ {
1376
+ "inputs": [
1377
+ {
1378
+ "name": "_userWallet",
1379
+ "type": "address"
1380
+ },
1381
+ {
1382
+ "name": "_legoId",
1383
+ "type": "uint256"
1384
+ },
1385
+ {
1386
+ "name": "_rewardToken",
1387
+ "type": "address"
1388
+ }
1389
+ ],
1390
+ "name": "claimIncentives",
1391
+ "outputs": [
1392
+ {
1393
+ "name": "",
1394
+ "type": "uint256"
1395
+ },
1396
+ {
1397
+ "name": "",
1398
+ "type": "uint256"
1399
+ }
1400
+ ],
1401
+ "stateMutability": "nonpayable",
1402
+ "type": "function"
1403
+ },
1404
+ {
1405
+ "inputs": [
1406
+ {
1407
+ "name": "_userWallet",
1408
+ "type": "address"
1409
+ },
1410
+ {
1411
+ "name": "_legoId",
1412
+ "type": "uint256"
1413
+ },
1414
+ {
1415
+ "name": "_rewardToken",
1416
+ "type": "address"
1417
+ },
1418
+ {
1419
+ "name": "_rewardAmount",
1420
+ "type": "uint256"
1421
+ }
1422
+ ],
1423
+ "name": "claimIncentives",
1424
+ "outputs": [
1425
+ {
1426
+ "name": "",
1427
+ "type": "uint256"
1428
+ },
1429
+ {
1430
+ "name": "",
1431
+ "type": "uint256"
1432
+ }
1433
+ ],
1434
+ "stateMutability": "nonpayable",
1435
+ "type": "function"
1436
+ },
1437
+ {
1438
+ "inputs": [
1439
+ {
1440
+ "name": "_userWallet",
1441
+ "type": "address"
1442
+ },
1443
+ {
1444
+ "name": "_legoId",
1445
+ "type": "uint256"
1446
+ },
1447
+ {
1448
+ "name": "_rewardToken",
1449
+ "type": "address"
1450
+ },
1451
+ {
1452
+ "name": "_rewardAmount",
1453
+ "type": "uint256"
1454
+ },
1455
+ {
1456
+ "name": "_proofs",
1457
+ "type": "bytes32[]"
1458
+ }
1459
+ ],
1460
+ "name": "claimIncentives",
1461
+ "outputs": [
1462
+ {
1463
+ "name": "",
1464
+ "type": "uint256"
1465
+ },
1466
+ {
1467
+ "name": "",
1468
+ "type": "uint256"
1469
+ }
1470
+ ],
1471
+ "stateMutability": "nonpayable",
1472
+ "type": "function"
1473
+ },
1474
+ {
1475
+ "inputs": [
1476
+ {
1477
+ "name": "_userWallet",
1478
+ "type": "address"
1479
+ }
1480
+ ],
1481
+ "name": "convertWethToEth",
1482
+ "outputs": [
1483
+ {
1484
+ "name": "",
1485
+ "type": "uint256"
1486
+ },
1487
+ {
1488
+ "name": "",
1489
+ "type": "uint256"
1490
+ }
1491
+ ],
1492
+ "stateMutability": "nonpayable",
1493
+ "type": "function"
1494
+ },
1495
+ {
1496
+ "inputs": [
1497
+ {
1498
+ "name": "_userWallet",
1499
+ "type": "address"
1500
+ },
1501
+ {
1502
+ "name": "_amount",
1503
+ "type": "uint256"
1504
+ }
1505
+ ],
1506
+ "name": "convertWethToEth",
1507
+ "outputs": [
1508
+ {
1509
+ "name": "",
1510
+ "type": "uint256"
1511
+ },
1512
+ {
1513
+ "name": "",
1514
+ "type": "uint256"
1515
+ }
1516
+ ],
1517
+ "stateMutability": "nonpayable",
1518
+ "type": "function"
1519
+ },
1520
+ {
1521
+ "inputs": [
1522
+ {
1523
+ "name": "_userWallet",
1524
+ "type": "address"
1525
+ }
1526
+ ],
1527
+ "name": "convertEthToWeth",
1528
+ "outputs": [
1529
+ {
1530
+ "name": "",
1531
+ "type": "uint256"
1532
+ },
1533
+ {
1534
+ "name": "",
1535
+ "type": "uint256"
1536
+ }
1537
+ ],
1538
+ "stateMutability": "nonpayable",
1539
+ "type": "function"
1540
+ },
1541
+ {
1542
+ "inputs": [
1543
+ {
1544
+ "name": "_userWallet",
1545
+ "type": "address"
1546
+ },
1547
+ {
1548
+ "name": "_amount",
1549
+ "type": "uint256"
1550
+ }
1551
+ ],
1552
+ "name": "convertEthToWeth",
1553
+ "outputs": [
1554
+ {
1555
+ "name": "",
1556
+ "type": "uint256"
1557
+ },
1558
+ {
1559
+ "name": "",
1560
+ "type": "uint256"
1561
+ }
1562
+ ],
1563
+ "stateMutability": "nonpayable",
1564
+ "type": "function"
1565
+ },
1566
+ {
1567
+ "inputs": [
1568
+ {
1569
+ "name": "_userWallet",
1570
+ "type": "address"
1571
+ },
1572
+ {
1573
+ "name": "_legoId",
1574
+ "type": "uint256"
1575
+ },
1576
+ {
1577
+ "name": "_pool",
1578
+ "type": "address"
1579
+ },
1580
+ {
1581
+ "name": "_tokenA",
1582
+ "type": "address"
1583
+ },
1584
+ {
1585
+ "name": "_tokenB",
1586
+ "type": "address"
1587
+ }
1588
+ ],
1589
+ "name": "addLiquidity",
1590
+ "outputs": [
1591
+ {
1592
+ "name": "",
1593
+ "type": "uint256"
1594
+ },
1595
+ {
1596
+ "name": "",
1597
+ "type": "uint256"
1598
+ },
1599
+ {
1600
+ "name": "",
1601
+ "type": "uint256"
1602
+ },
1603
+ {
1604
+ "name": "",
1605
+ "type": "uint256"
1606
+ }
1607
+ ],
1608
+ "stateMutability": "nonpayable",
1609
+ "type": "function"
1610
+ },
1611
+ {
1612
+ "inputs": [
1613
+ {
1614
+ "name": "_userWallet",
1615
+ "type": "address"
1616
+ },
1617
+ {
1618
+ "name": "_legoId",
1619
+ "type": "uint256"
1620
+ },
1621
+ {
1622
+ "name": "_pool",
1623
+ "type": "address"
1624
+ },
1625
+ {
1626
+ "name": "_tokenA",
1627
+ "type": "address"
1628
+ },
1629
+ {
1630
+ "name": "_tokenB",
1631
+ "type": "address"
1632
+ },
1633
+ {
1634
+ "name": "_amountA",
1635
+ "type": "uint256"
1636
+ }
1637
+ ],
1638
+ "name": "addLiquidity",
1639
+ "outputs": [
1640
+ {
1641
+ "name": "",
1642
+ "type": "uint256"
1643
+ },
1644
+ {
1645
+ "name": "",
1646
+ "type": "uint256"
1647
+ },
1648
+ {
1649
+ "name": "",
1650
+ "type": "uint256"
1651
+ },
1652
+ {
1653
+ "name": "",
1654
+ "type": "uint256"
1655
+ }
1656
+ ],
1657
+ "stateMutability": "nonpayable",
1658
+ "type": "function"
1659
+ },
1660
+ {
1661
+ "inputs": [
1662
+ {
1663
+ "name": "_userWallet",
1664
+ "type": "address"
1665
+ },
1666
+ {
1667
+ "name": "_legoId",
1668
+ "type": "uint256"
1669
+ },
1670
+ {
1671
+ "name": "_pool",
1672
+ "type": "address"
1673
+ },
1674
+ {
1675
+ "name": "_tokenA",
1676
+ "type": "address"
1677
+ },
1678
+ {
1679
+ "name": "_tokenB",
1680
+ "type": "address"
1681
+ },
1682
+ {
1683
+ "name": "_amountA",
1684
+ "type": "uint256"
1685
+ },
1686
+ {
1687
+ "name": "_amountB",
1688
+ "type": "uint256"
1689
+ }
1690
+ ],
1691
+ "name": "addLiquidity",
1692
+ "outputs": [
1693
+ {
1694
+ "name": "",
1695
+ "type": "uint256"
1696
+ },
1697
+ {
1698
+ "name": "",
1699
+ "type": "uint256"
1700
+ },
1701
+ {
1702
+ "name": "",
1703
+ "type": "uint256"
1704
+ },
1705
+ {
1706
+ "name": "",
1707
+ "type": "uint256"
1708
+ }
1709
+ ],
1710
+ "stateMutability": "nonpayable",
1711
+ "type": "function"
1712
+ },
1713
+ {
1714
+ "inputs": [
1715
+ {
1716
+ "name": "_userWallet",
1717
+ "type": "address"
1718
+ },
1719
+ {
1720
+ "name": "_legoId",
1721
+ "type": "uint256"
1722
+ },
1723
+ {
1724
+ "name": "_pool",
1725
+ "type": "address"
1726
+ },
1727
+ {
1728
+ "name": "_tokenA",
1729
+ "type": "address"
1730
+ },
1731
+ {
1732
+ "name": "_tokenB",
1733
+ "type": "address"
1734
+ },
1735
+ {
1736
+ "name": "_amountA",
1737
+ "type": "uint256"
1738
+ },
1739
+ {
1740
+ "name": "_amountB",
1741
+ "type": "uint256"
1742
+ },
1743
+ {
1744
+ "name": "_minAmountA",
1745
+ "type": "uint256"
1746
+ }
1747
+ ],
1748
+ "name": "addLiquidity",
1749
+ "outputs": [
1750
+ {
1751
+ "name": "",
1752
+ "type": "uint256"
1753
+ },
1754
+ {
1755
+ "name": "",
1756
+ "type": "uint256"
1757
+ },
1758
+ {
1759
+ "name": "",
1760
+ "type": "uint256"
1761
+ },
1762
+ {
1763
+ "name": "",
1764
+ "type": "uint256"
1765
+ }
1766
+ ],
1767
+ "stateMutability": "nonpayable",
1768
+ "type": "function"
1769
+ },
1770
+ {
1771
+ "inputs": [
1772
+ {
1773
+ "name": "_userWallet",
1774
+ "type": "address"
1775
+ },
1776
+ {
1777
+ "name": "_legoId",
1778
+ "type": "uint256"
1779
+ },
1780
+ {
1781
+ "name": "_pool",
1782
+ "type": "address"
1783
+ },
1784
+ {
1785
+ "name": "_tokenA",
1786
+ "type": "address"
1787
+ },
1788
+ {
1789
+ "name": "_tokenB",
1790
+ "type": "address"
1791
+ },
1792
+ {
1793
+ "name": "_amountA",
1794
+ "type": "uint256"
1795
+ },
1796
+ {
1797
+ "name": "_amountB",
1798
+ "type": "uint256"
1799
+ },
1800
+ {
1801
+ "name": "_minAmountA",
1802
+ "type": "uint256"
1803
+ },
1804
+ {
1805
+ "name": "_minAmountB",
1806
+ "type": "uint256"
1807
+ }
1808
+ ],
1809
+ "name": "addLiquidity",
1810
+ "outputs": [
1811
+ {
1812
+ "name": "",
1813
+ "type": "uint256"
1814
+ },
1815
+ {
1816
+ "name": "",
1817
+ "type": "uint256"
1818
+ },
1819
+ {
1820
+ "name": "",
1821
+ "type": "uint256"
1822
+ },
1823
+ {
1824
+ "name": "",
1825
+ "type": "uint256"
1826
+ }
1827
+ ],
1828
+ "stateMutability": "nonpayable",
1829
+ "type": "function"
1830
+ },
1831
+ {
1832
+ "inputs": [
1833
+ {
1834
+ "name": "_userWallet",
1835
+ "type": "address"
1836
+ },
1837
+ {
1838
+ "name": "_legoId",
1839
+ "type": "uint256"
1840
+ },
1841
+ {
1842
+ "name": "_pool",
1843
+ "type": "address"
1844
+ },
1845
+ {
1846
+ "name": "_tokenA",
1847
+ "type": "address"
1848
+ },
1849
+ {
1850
+ "name": "_tokenB",
1851
+ "type": "address"
1852
+ },
1853
+ {
1854
+ "name": "_amountA",
1855
+ "type": "uint256"
1856
+ },
1857
+ {
1858
+ "name": "_amountB",
1859
+ "type": "uint256"
1860
+ },
1861
+ {
1862
+ "name": "_minAmountA",
1863
+ "type": "uint256"
1864
+ },
1865
+ {
1866
+ "name": "_minAmountB",
1867
+ "type": "uint256"
1868
+ },
1869
+ {
1870
+ "name": "_minLpAmount",
1871
+ "type": "uint256"
1872
+ }
1873
+ ],
1874
+ "name": "addLiquidity",
1875
+ "outputs": [
1876
+ {
1877
+ "name": "",
1878
+ "type": "uint256"
1879
+ },
1880
+ {
1881
+ "name": "",
1882
+ "type": "uint256"
1883
+ },
1884
+ {
1885
+ "name": "",
1886
+ "type": "uint256"
1887
+ },
1888
+ {
1889
+ "name": "",
1890
+ "type": "uint256"
1891
+ }
1892
+ ],
1893
+ "stateMutability": "nonpayable",
1894
+ "type": "function"
1895
+ },
1896
+ {
1897
+ "inputs": [
1898
+ {
1899
+ "name": "_userWallet",
1900
+ "type": "address"
1901
+ },
1902
+ {
1903
+ "name": "_legoId",
1904
+ "type": "uint256"
1905
+ },
1906
+ {
1907
+ "name": "_pool",
1908
+ "type": "address"
1909
+ },
1910
+ {
1911
+ "name": "_tokenA",
1912
+ "type": "address"
1913
+ },
1914
+ {
1915
+ "name": "_tokenB",
1916
+ "type": "address"
1917
+ },
1918
+ {
1919
+ "name": "_amountA",
1920
+ "type": "uint256"
1921
+ },
1922
+ {
1923
+ "name": "_amountB",
1924
+ "type": "uint256"
1925
+ },
1926
+ {
1927
+ "name": "_minAmountA",
1928
+ "type": "uint256"
1929
+ },
1930
+ {
1931
+ "name": "_minAmountB",
1932
+ "type": "uint256"
1933
+ },
1934
+ {
1935
+ "name": "_minLpAmount",
1936
+ "type": "uint256"
1937
+ },
1938
+ {
1939
+ "name": "_extraData",
1940
+ "type": "bytes32"
1941
+ }
1942
+ ],
1943
+ "name": "addLiquidity",
1944
+ "outputs": [
1945
+ {
1946
+ "name": "",
1947
+ "type": "uint256"
1948
+ },
1949
+ {
1950
+ "name": "",
1951
+ "type": "uint256"
1952
+ },
1953
+ {
1954
+ "name": "",
1955
+ "type": "uint256"
1956
+ },
1957
+ {
1958
+ "name": "",
1959
+ "type": "uint256"
1960
+ }
1961
+ ],
1962
+ "stateMutability": "nonpayable",
1963
+ "type": "function"
1964
+ },
1965
+ {
1966
+ "inputs": [
1967
+ {
1968
+ "name": "_userWallet",
1969
+ "type": "address"
1970
+ },
1971
+ {
1972
+ "name": "_legoId",
1973
+ "type": "uint256"
1974
+ },
1975
+ {
1976
+ "name": "_pool",
1977
+ "type": "address"
1978
+ },
1979
+ {
1980
+ "name": "_tokenA",
1981
+ "type": "address"
1982
+ },
1983
+ {
1984
+ "name": "_tokenB",
1985
+ "type": "address"
1986
+ },
1987
+ {
1988
+ "name": "_lpToken",
1989
+ "type": "address"
1990
+ }
1991
+ ],
1992
+ "name": "removeLiquidity",
1993
+ "outputs": [
1994
+ {
1995
+ "name": "",
1996
+ "type": "uint256"
1997
+ },
1998
+ {
1999
+ "name": "",
2000
+ "type": "uint256"
2001
+ },
2002
+ {
2003
+ "name": "",
2004
+ "type": "uint256"
2005
+ },
2006
+ {
2007
+ "name": "",
2008
+ "type": "uint256"
2009
+ }
2010
+ ],
2011
+ "stateMutability": "nonpayable",
2012
+ "type": "function"
2013
+ },
2014
+ {
2015
+ "inputs": [
2016
+ {
2017
+ "name": "_userWallet",
2018
+ "type": "address"
2019
+ },
2020
+ {
2021
+ "name": "_legoId",
2022
+ "type": "uint256"
2023
+ },
2024
+ {
2025
+ "name": "_pool",
2026
+ "type": "address"
2027
+ },
2028
+ {
2029
+ "name": "_tokenA",
2030
+ "type": "address"
2031
+ },
2032
+ {
2033
+ "name": "_tokenB",
2034
+ "type": "address"
2035
+ },
2036
+ {
2037
+ "name": "_lpToken",
2038
+ "type": "address"
2039
+ },
2040
+ {
2041
+ "name": "_lpAmount",
2042
+ "type": "uint256"
2043
+ }
2044
+ ],
2045
+ "name": "removeLiquidity",
2046
+ "outputs": [
2047
+ {
2048
+ "name": "",
2049
+ "type": "uint256"
2050
+ },
2051
+ {
2052
+ "name": "",
2053
+ "type": "uint256"
2054
+ },
2055
+ {
2056
+ "name": "",
2057
+ "type": "uint256"
2058
+ },
2059
+ {
2060
+ "name": "",
2061
+ "type": "uint256"
2062
+ }
2063
+ ],
2064
+ "stateMutability": "nonpayable",
2065
+ "type": "function"
2066
+ },
2067
+ {
2068
+ "inputs": [
2069
+ {
2070
+ "name": "_userWallet",
2071
+ "type": "address"
2072
+ },
2073
+ {
2074
+ "name": "_legoId",
2075
+ "type": "uint256"
2076
+ },
2077
+ {
2078
+ "name": "_pool",
2079
+ "type": "address"
2080
+ },
2081
+ {
2082
+ "name": "_tokenA",
2083
+ "type": "address"
2084
+ },
2085
+ {
2086
+ "name": "_tokenB",
2087
+ "type": "address"
2088
+ },
2089
+ {
2090
+ "name": "_lpToken",
2091
+ "type": "address"
2092
+ },
2093
+ {
2094
+ "name": "_lpAmount",
2095
+ "type": "uint256"
2096
+ },
2097
+ {
2098
+ "name": "_minAmountA",
2099
+ "type": "uint256"
2100
+ }
2101
+ ],
2102
+ "name": "removeLiquidity",
2103
+ "outputs": [
2104
+ {
2105
+ "name": "",
2106
+ "type": "uint256"
2107
+ },
2108
+ {
2109
+ "name": "",
2110
+ "type": "uint256"
2111
+ },
2112
+ {
2113
+ "name": "",
2114
+ "type": "uint256"
2115
+ },
2116
+ {
2117
+ "name": "",
2118
+ "type": "uint256"
2119
+ }
2120
+ ],
2121
+ "stateMutability": "nonpayable",
2122
+ "type": "function"
2123
+ },
2124
+ {
2125
+ "inputs": [
2126
+ {
2127
+ "name": "_userWallet",
2128
+ "type": "address"
2129
+ },
2130
+ {
2131
+ "name": "_legoId",
2132
+ "type": "uint256"
2133
+ },
2134
+ {
2135
+ "name": "_pool",
2136
+ "type": "address"
2137
+ },
2138
+ {
2139
+ "name": "_tokenA",
2140
+ "type": "address"
2141
+ },
2142
+ {
2143
+ "name": "_tokenB",
2144
+ "type": "address"
2145
+ },
2146
+ {
2147
+ "name": "_lpToken",
2148
+ "type": "address"
2149
+ },
2150
+ {
2151
+ "name": "_lpAmount",
2152
+ "type": "uint256"
2153
+ },
2154
+ {
2155
+ "name": "_minAmountA",
2156
+ "type": "uint256"
2157
+ },
2158
+ {
2159
+ "name": "_minAmountB",
2160
+ "type": "uint256"
2161
+ }
2162
+ ],
2163
+ "name": "removeLiquidity",
2164
+ "outputs": [
2165
+ {
2166
+ "name": "",
2167
+ "type": "uint256"
2168
+ },
2169
+ {
2170
+ "name": "",
2171
+ "type": "uint256"
2172
+ },
2173
+ {
2174
+ "name": "",
2175
+ "type": "uint256"
2176
+ },
2177
+ {
2178
+ "name": "",
2179
+ "type": "uint256"
2180
+ }
2181
+ ],
2182
+ "stateMutability": "nonpayable",
2183
+ "type": "function"
2184
+ },
2185
+ {
2186
+ "inputs": [
2187
+ {
2188
+ "name": "_userWallet",
2189
+ "type": "address"
2190
+ },
2191
+ {
2192
+ "name": "_legoId",
2193
+ "type": "uint256"
2194
+ },
2195
+ {
2196
+ "name": "_pool",
2197
+ "type": "address"
2198
+ },
2199
+ {
2200
+ "name": "_tokenA",
2201
+ "type": "address"
2202
+ },
2203
+ {
2204
+ "name": "_tokenB",
2205
+ "type": "address"
2206
+ },
2207
+ {
2208
+ "name": "_lpToken",
2209
+ "type": "address"
2210
+ },
2211
+ {
2212
+ "name": "_lpAmount",
2213
+ "type": "uint256"
2214
+ },
2215
+ {
2216
+ "name": "_minAmountA",
2217
+ "type": "uint256"
2218
+ },
2219
+ {
2220
+ "name": "_minAmountB",
2221
+ "type": "uint256"
2222
+ },
2223
+ {
2224
+ "name": "_extraData",
2225
+ "type": "bytes32"
2226
+ }
2227
+ ],
2228
+ "name": "removeLiquidity",
2229
+ "outputs": [
2230
+ {
2231
+ "name": "",
2232
+ "type": "uint256"
2233
+ },
2234
+ {
2235
+ "name": "",
2236
+ "type": "uint256"
2237
+ },
2238
+ {
2239
+ "name": "",
2240
+ "type": "uint256"
2241
+ },
2242
+ {
2243
+ "name": "",
2244
+ "type": "uint256"
2245
+ }
2246
+ ],
2247
+ "stateMutability": "nonpayable",
2248
+ "type": "function"
2249
+ },
2250
+ {
2251
+ "inputs": [
2252
+ {
2253
+ "name": "_userWallet",
2254
+ "type": "address"
2255
+ },
2256
+ {
2257
+ "name": "_legoId",
2258
+ "type": "uint256"
2259
+ },
2260
+ {
2261
+ "name": "_nftAddr",
2262
+ "type": "address"
2263
+ },
2264
+ {
2265
+ "name": "_nftTokenId",
2266
+ "type": "uint256"
2267
+ },
2268
+ {
2269
+ "name": "_pool",
2270
+ "type": "address"
2271
+ },
2272
+ {
2273
+ "name": "_tokenA",
2274
+ "type": "address"
2275
+ },
2276
+ {
2277
+ "name": "_tokenB",
2278
+ "type": "address"
2279
+ }
2280
+ ],
2281
+ "name": "addLiquidityConcentrated",
2282
+ "outputs": [
2283
+ {
2284
+ "name": "",
2285
+ "type": "uint256"
2286
+ },
2287
+ {
2288
+ "name": "",
2289
+ "type": "uint256"
2290
+ },
2291
+ {
2292
+ "name": "",
2293
+ "type": "uint256"
2294
+ },
2295
+ {
2296
+ "name": "",
2297
+ "type": "uint256"
2298
+ },
2299
+ {
2300
+ "name": "",
2301
+ "type": "uint256"
2302
+ }
2303
+ ],
2304
+ "stateMutability": "nonpayable",
2305
+ "type": "function"
2306
+ },
2307
+ {
2308
+ "inputs": [
2309
+ {
2310
+ "name": "_userWallet",
2311
+ "type": "address"
2312
+ },
2313
+ {
2314
+ "name": "_legoId",
2315
+ "type": "uint256"
2316
+ },
2317
+ {
2318
+ "name": "_nftAddr",
2319
+ "type": "address"
2320
+ },
2321
+ {
2322
+ "name": "_nftTokenId",
2323
+ "type": "uint256"
2324
+ },
2325
+ {
2326
+ "name": "_pool",
2327
+ "type": "address"
2328
+ },
2329
+ {
2330
+ "name": "_tokenA",
2331
+ "type": "address"
2332
+ },
2333
+ {
2334
+ "name": "_tokenB",
2335
+ "type": "address"
2336
+ },
2337
+ {
2338
+ "name": "_amountA",
2339
+ "type": "uint256"
2340
+ }
2341
+ ],
2342
+ "name": "addLiquidityConcentrated",
2343
+ "outputs": [
2344
+ {
2345
+ "name": "",
2346
+ "type": "uint256"
2347
+ },
2348
+ {
2349
+ "name": "",
2350
+ "type": "uint256"
2351
+ },
2352
+ {
2353
+ "name": "",
2354
+ "type": "uint256"
2355
+ },
2356
+ {
2357
+ "name": "",
2358
+ "type": "uint256"
2359
+ },
2360
+ {
2361
+ "name": "",
2362
+ "type": "uint256"
2363
+ }
2364
+ ],
2365
+ "stateMutability": "nonpayable",
2366
+ "type": "function"
2367
+ },
2368
+ {
2369
+ "inputs": [
2370
+ {
2371
+ "name": "_userWallet",
2372
+ "type": "address"
2373
+ },
2374
+ {
2375
+ "name": "_legoId",
2376
+ "type": "uint256"
2377
+ },
2378
+ {
2379
+ "name": "_nftAddr",
2380
+ "type": "address"
2381
+ },
2382
+ {
2383
+ "name": "_nftTokenId",
2384
+ "type": "uint256"
2385
+ },
2386
+ {
2387
+ "name": "_pool",
2388
+ "type": "address"
2389
+ },
2390
+ {
2391
+ "name": "_tokenA",
2392
+ "type": "address"
2393
+ },
2394
+ {
2395
+ "name": "_tokenB",
2396
+ "type": "address"
2397
+ },
2398
+ {
2399
+ "name": "_amountA",
2400
+ "type": "uint256"
2401
+ },
2402
+ {
2403
+ "name": "_amountB",
2404
+ "type": "uint256"
2405
+ }
2406
+ ],
2407
+ "name": "addLiquidityConcentrated",
2408
+ "outputs": [
2409
+ {
2410
+ "name": "",
2411
+ "type": "uint256"
2412
+ },
2413
+ {
2414
+ "name": "",
2415
+ "type": "uint256"
2416
+ },
2417
+ {
2418
+ "name": "",
2419
+ "type": "uint256"
2420
+ },
2421
+ {
2422
+ "name": "",
2423
+ "type": "uint256"
2424
+ },
2425
+ {
2426
+ "name": "",
2427
+ "type": "uint256"
2428
+ }
2429
+ ],
2430
+ "stateMutability": "nonpayable",
2431
+ "type": "function"
2432
+ },
2433
+ {
2434
+ "inputs": [
2435
+ {
2436
+ "name": "_userWallet",
2437
+ "type": "address"
2438
+ },
2439
+ {
2440
+ "name": "_legoId",
2441
+ "type": "uint256"
2442
+ },
2443
+ {
2444
+ "name": "_nftAddr",
2445
+ "type": "address"
2446
+ },
2447
+ {
2448
+ "name": "_nftTokenId",
2449
+ "type": "uint256"
2450
+ },
2451
+ {
2452
+ "name": "_pool",
2453
+ "type": "address"
2454
+ },
2455
+ {
2456
+ "name": "_tokenA",
2457
+ "type": "address"
2458
+ },
2459
+ {
2460
+ "name": "_tokenB",
2461
+ "type": "address"
2462
+ },
2463
+ {
2464
+ "name": "_amountA",
2465
+ "type": "uint256"
2466
+ },
2467
+ {
2468
+ "name": "_amountB",
2469
+ "type": "uint256"
2470
+ },
2471
+ {
2472
+ "name": "_tickLower",
2473
+ "type": "int24"
2474
+ }
2475
+ ],
2476
+ "name": "addLiquidityConcentrated",
2477
+ "outputs": [
2478
+ {
2479
+ "name": "",
2480
+ "type": "uint256"
2481
+ },
2482
+ {
2483
+ "name": "",
2484
+ "type": "uint256"
2485
+ },
2486
+ {
2487
+ "name": "",
2488
+ "type": "uint256"
2489
+ },
2490
+ {
2491
+ "name": "",
2492
+ "type": "uint256"
2493
+ },
2494
+ {
2495
+ "name": "",
2496
+ "type": "uint256"
2497
+ }
2498
+ ],
2499
+ "stateMutability": "nonpayable",
2500
+ "type": "function"
2501
+ },
2502
+ {
2503
+ "inputs": [
2504
+ {
2505
+ "name": "_userWallet",
2506
+ "type": "address"
2507
+ },
2508
+ {
2509
+ "name": "_legoId",
2510
+ "type": "uint256"
2511
+ },
2512
+ {
2513
+ "name": "_nftAddr",
2514
+ "type": "address"
2515
+ },
2516
+ {
2517
+ "name": "_nftTokenId",
2518
+ "type": "uint256"
2519
+ },
2520
+ {
2521
+ "name": "_pool",
2522
+ "type": "address"
2523
+ },
2524
+ {
2525
+ "name": "_tokenA",
2526
+ "type": "address"
2527
+ },
2528
+ {
2529
+ "name": "_tokenB",
2530
+ "type": "address"
2531
+ },
2532
+ {
2533
+ "name": "_amountA",
2534
+ "type": "uint256"
2535
+ },
2536
+ {
2537
+ "name": "_amountB",
2538
+ "type": "uint256"
2539
+ },
2540
+ {
2541
+ "name": "_tickLower",
2542
+ "type": "int24"
2543
+ },
2544
+ {
2545
+ "name": "_tickUpper",
2546
+ "type": "int24"
2547
+ }
2548
+ ],
2549
+ "name": "addLiquidityConcentrated",
2550
+ "outputs": [
2551
+ {
2552
+ "name": "",
2553
+ "type": "uint256"
2554
+ },
2555
+ {
2556
+ "name": "",
2557
+ "type": "uint256"
2558
+ },
2559
+ {
2560
+ "name": "",
2561
+ "type": "uint256"
2562
+ },
2563
+ {
2564
+ "name": "",
2565
+ "type": "uint256"
2566
+ },
2567
+ {
2568
+ "name": "",
2569
+ "type": "uint256"
2570
+ }
2571
+ ],
2572
+ "stateMutability": "nonpayable",
2573
+ "type": "function"
2574
+ },
2575
+ {
2576
+ "inputs": [
2577
+ {
2578
+ "name": "_userWallet",
2579
+ "type": "address"
2580
+ },
2581
+ {
2582
+ "name": "_legoId",
2583
+ "type": "uint256"
2584
+ },
2585
+ {
2586
+ "name": "_nftAddr",
2587
+ "type": "address"
2588
+ },
2589
+ {
2590
+ "name": "_nftTokenId",
2591
+ "type": "uint256"
2592
+ },
2593
+ {
2594
+ "name": "_pool",
2595
+ "type": "address"
2596
+ },
2597
+ {
2598
+ "name": "_tokenA",
2599
+ "type": "address"
2600
+ },
2601
+ {
2602
+ "name": "_tokenB",
2603
+ "type": "address"
2604
+ },
2605
+ {
2606
+ "name": "_amountA",
2607
+ "type": "uint256"
2608
+ },
2609
+ {
2610
+ "name": "_amountB",
2611
+ "type": "uint256"
2612
+ },
2613
+ {
2614
+ "name": "_tickLower",
2615
+ "type": "int24"
2616
+ },
2617
+ {
2618
+ "name": "_tickUpper",
2619
+ "type": "int24"
2620
+ },
2621
+ {
2622
+ "name": "_minAmountA",
2623
+ "type": "uint256"
2624
+ }
2625
+ ],
2626
+ "name": "addLiquidityConcentrated",
2627
+ "outputs": [
2628
+ {
2629
+ "name": "",
2630
+ "type": "uint256"
2631
+ },
2632
+ {
2633
+ "name": "",
2634
+ "type": "uint256"
2635
+ },
2636
+ {
2637
+ "name": "",
2638
+ "type": "uint256"
2639
+ },
2640
+ {
2641
+ "name": "",
2642
+ "type": "uint256"
2643
+ },
2644
+ {
2645
+ "name": "",
2646
+ "type": "uint256"
2647
+ }
2648
+ ],
2649
+ "stateMutability": "nonpayable",
2650
+ "type": "function"
2651
+ },
2652
+ {
2653
+ "inputs": [
2654
+ {
2655
+ "name": "_userWallet",
2656
+ "type": "address"
2657
+ },
2658
+ {
2659
+ "name": "_legoId",
2660
+ "type": "uint256"
2661
+ },
2662
+ {
2663
+ "name": "_nftAddr",
2664
+ "type": "address"
2665
+ },
2666
+ {
2667
+ "name": "_nftTokenId",
2668
+ "type": "uint256"
2669
+ },
2670
+ {
2671
+ "name": "_pool",
2672
+ "type": "address"
2673
+ },
2674
+ {
2675
+ "name": "_tokenA",
2676
+ "type": "address"
2677
+ },
2678
+ {
2679
+ "name": "_tokenB",
2680
+ "type": "address"
2681
+ },
2682
+ {
2683
+ "name": "_amountA",
2684
+ "type": "uint256"
2685
+ },
2686
+ {
2687
+ "name": "_amountB",
2688
+ "type": "uint256"
2689
+ },
2690
+ {
2691
+ "name": "_tickLower",
2692
+ "type": "int24"
2693
+ },
2694
+ {
2695
+ "name": "_tickUpper",
2696
+ "type": "int24"
2697
+ },
2698
+ {
2699
+ "name": "_minAmountA",
2700
+ "type": "uint256"
2701
+ },
2702
+ {
2703
+ "name": "_minAmountB",
2704
+ "type": "uint256"
2705
+ }
2706
+ ],
2707
+ "name": "addLiquidityConcentrated",
2708
+ "outputs": [
2709
+ {
2710
+ "name": "",
2711
+ "type": "uint256"
2712
+ },
2713
+ {
2714
+ "name": "",
2715
+ "type": "uint256"
2716
+ },
2717
+ {
2718
+ "name": "",
2719
+ "type": "uint256"
2720
+ },
2721
+ {
2722
+ "name": "",
2723
+ "type": "uint256"
2724
+ },
2725
+ {
2726
+ "name": "",
2727
+ "type": "uint256"
2728
+ }
2729
+ ],
2730
+ "stateMutability": "nonpayable",
2731
+ "type": "function"
2732
+ },
2733
+ {
2734
+ "inputs": [
2735
+ {
2736
+ "name": "_userWallet",
2737
+ "type": "address"
2738
+ },
2739
+ {
2740
+ "name": "_legoId",
2741
+ "type": "uint256"
2742
+ },
2743
+ {
2744
+ "name": "_nftAddr",
2745
+ "type": "address"
2746
+ },
2747
+ {
2748
+ "name": "_nftTokenId",
2749
+ "type": "uint256"
2750
+ },
2751
+ {
2752
+ "name": "_pool",
2753
+ "type": "address"
2754
+ },
2755
+ {
2756
+ "name": "_tokenA",
2757
+ "type": "address"
2758
+ },
2759
+ {
2760
+ "name": "_tokenB",
2761
+ "type": "address"
2762
+ },
2763
+ {
2764
+ "name": "_amountA",
2765
+ "type": "uint256"
2766
+ },
2767
+ {
2768
+ "name": "_amountB",
2769
+ "type": "uint256"
2770
+ },
2771
+ {
2772
+ "name": "_tickLower",
2773
+ "type": "int24"
2774
+ },
2775
+ {
2776
+ "name": "_tickUpper",
2777
+ "type": "int24"
2778
+ },
2779
+ {
2780
+ "name": "_minAmountA",
2781
+ "type": "uint256"
2782
+ },
2783
+ {
2784
+ "name": "_minAmountB",
2785
+ "type": "uint256"
2786
+ },
2787
+ {
2788
+ "name": "_extraData",
2789
+ "type": "bytes32"
2790
+ }
2791
+ ],
2792
+ "name": "addLiquidityConcentrated",
2793
+ "outputs": [
2794
+ {
2795
+ "name": "",
2796
+ "type": "uint256"
2797
+ },
2798
+ {
2799
+ "name": "",
2800
+ "type": "uint256"
2801
+ },
2802
+ {
2803
+ "name": "",
2804
+ "type": "uint256"
2805
+ },
2806
+ {
2807
+ "name": "",
2808
+ "type": "uint256"
2809
+ },
2810
+ {
2811
+ "name": "",
2812
+ "type": "uint256"
2813
+ }
2814
+ ],
2815
+ "stateMutability": "nonpayable",
2816
+ "type": "function"
2817
+ },
2818
+ {
2819
+ "inputs": [
2820
+ {
2821
+ "name": "_userWallet",
2822
+ "type": "address"
2823
+ },
2824
+ {
2825
+ "name": "_legoId",
2826
+ "type": "uint256"
2827
+ },
2828
+ {
2829
+ "name": "_nftAddr",
2830
+ "type": "address"
2831
+ },
2832
+ {
2833
+ "name": "_nftTokenId",
2834
+ "type": "uint256"
2835
+ },
2836
+ {
2837
+ "name": "_pool",
2838
+ "type": "address"
2839
+ },
2840
+ {
2841
+ "name": "_tokenA",
2842
+ "type": "address"
2843
+ },
2844
+ {
2845
+ "name": "_tokenB",
2846
+ "type": "address"
2847
+ }
2848
+ ],
2849
+ "name": "removeLiquidityConcentrated",
2850
+ "outputs": [
2851
+ {
2852
+ "name": "",
2853
+ "type": "uint256"
2854
+ },
2855
+ {
2856
+ "name": "",
2857
+ "type": "uint256"
2858
+ },
2859
+ {
2860
+ "name": "",
2861
+ "type": "uint256"
2862
+ },
2863
+ {
2864
+ "name": "",
2865
+ "type": "uint256"
2866
+ }
2867
+ ],
2868
+ "stateMutability": "nonpayable",
2869
+ "type": "function"
2870
+ },
2871
+ {
2872
+ "inputs": [
2873
+ {
2874
+ "name": "_userWallet",
2875
+ "type": "address"
2876
+ },
2877
+ {
2878
+ "name": "_legoId",
2879
+ "type": "uint256"
2880
+ },
2881
+ {
2882
+ "name": "_nftAddr",
2883
+ "type": "address"
2884
+ },
2885
+ {
2886
+ "name": "_nftTokenId",
2887
+ "type": "uint256"
2888
+ },
2889
+ {
2890
+ "name": "_pool",
2891
+ "type": "address"
2892
+ },
2893
+ {
2894
+ "name": "_tokenA",
2895
+ "type": "address"
2896
+ },
2897
+ {
2898
+ "name": "_tokenB",
2899
+ "type": "address"
2900
+ },
2901
+ {
2902
+ "name": "_liqToRemove",
2903
+ "type": "uint256"
2904
+ }
2905
+ ],
2906
+ "name": "removeLiquidityConcentrated",
2907
+ "outputs": [
2908
+ {
2909
+ "name": "",
2910
+ "type": "uint256"
2911
+ },
2912
+ {
2913
+ "name": "",
2914
+ "type": "uint256"
2915
+ },
2916
+ {
2917
+ "name": "",
2918
+ "type": "uint256"
2919
+ },
2920
+ {
2921
+ "name": "",
2922
+ "type": "uint256"
2923
+ }
2924
+ ],
2925
+ "stateMutability": "nonpayable",
2926
+ "type": "function"
2927
+ },
2928
+ {
2929
+ "inputs": [
2930
+ {
2931
+ "name": "_userWallet",
2932
+ "type": "address"
2933
+ },
2934
+ {
2935
+ "name": "_legoId",
2936
+ "type": "uint256"
2937
+ },
2938
+ {
2939
+ "name": "_nftAddr",
2940
+ "type": "address"
2941
+ },
2942
+ {
2943
+ "name": "_nftTokenId",
2944
+ "type": "uint256"
2945
+ },
2946
+ {
2947
+ "name": "_pool",
2948
+ "type": "address"
2949
+ },
2950
+ {
2951
+ "name": "_tokenA",
2952
+ "type": "address"
2953
+ },
2954
+ {
2955
+ "name": "_tokenB",
2956
+ "type": "address"
2957
+ },
2958
+ {
2959
+ "name": "_liqToRemove",
2960
+ "type": "uint256"
2961
+ },
2962
+ {
2963
+ "name": "_minAmountA",
2964
+ "type": "uint256"
2965
+ }
2966
+ ],
2967
+ "name": "removeLiquidityConcentrated",
2968
+ "outputs": [
2969
+ {
2970
+ "name": "",
2971
+ "type": "uint256"
2972
+ },
2973
+ {
2974
+ "name": "",
2975
+ "type": "uint256"
2976
+ },
2977
+ {
2978
+ "name": "",
2979
+ "type": "uint256"
2980
+ },
2981
+ {
2982
+ "name": "",
2983
+ "type": "uint256"
2984
+ }
2985
+ ],
2986
+ "stateMutability": "nonpayable",
2987
+ "type": "function"
2988
+ },
2989
+ {
2990
+ "inputs": [
2991
+ {
2992
+ "name": "_userWallet",
2993
+ "type": "address"
2994
+ },
2995
+ {
2996
+ "name": "_legoId",
2997
+ "type": "uint256"
2998
+ },
2999
+ {
3000
+ "name": "_nftAddr",
3001
+ "type": "address"
3002
+ },
3003
+ {
3004
+ "name": "_nftTokenId",
3005
+ "type": "uint256"
3006
+ },
3007
+ {
3008
+ "name": "_pool",
3009
+ "type": "address"
3010
+ },
3011
+ {
3012
+ "name": "_tokenA",
3013
+ "type": "address"
3014
+ },
3015
+ {
3016
+ "name": "_tokenB",
3017
+ "type": "address"
3018
+ },
3019
+ {
3020
+ "name": "_liqToRemove",
3021
+ "type": "uint256"
3022
+ },
3023
+ {
3024
+ "name": "_minAmountA",
3025
+ "type": "uint256"
3026
+ },
3027
+ {
3028
+ "name": "_minAmountB",
3029
+ "type": "uint256"
3030
+ }
3031
+ ],
3032
+ "name": "removeLiquidityConcentrated",
3033
+ "outputs": [
3034
+ {
3035
+ "name": "",
3036
+ "type": "uint256"
3037
+ },
3038
+ {
3039
+ "name": "",
3040
+ "type": "uint256"
3041
+ },
3042
+ {
3043
+ "name": "",
3044
+ "type": "uint256"
3045
+ },
3046
+ {
3047
+ "name": "",
3048
+ "type": "uint256"
3049
+ }
3050
+ ],
3051
+ "stateMutability": "nonpayable",
3052
+ "type": "function"
3053
+ },
3054
+ {
3055
+ "inputs": [
3056
+ {
3057
+ "name": "_userWallet",
3058
+ "type": "address"
3059
+ },
3060
+ {
3061
+ "name": "_legoId",
3062
+ "type": "uint256"
3063
+ },
3064
+ {
3065
+ "name": "_nftAddr",
3066
+ "type": "address"
3067
+ },
3068
+ {
3069
+ "name": "_nftTokenId",
3070
+ "type": "uint256"
3071
+ },
3072
+ {
3073
+ "name": "_pool",
3074
+ "type": "address"
3075
+ },
3076
+ {
3077
+ "name": "_tokenA",
3078
+ "type": "address"
3079
+ },
3080
+ {
3081
+ "name": "_tokenB",
3082
+ "type": "address"
3083
+ },
3084
+ {
3085
+ "name": "_liqToRemove",
3086
+ "type": "uint256"
3087
+ },
3088
+ {
3089
+ "name": "_minAmountA",
3090
+ "type": "uint256"
3091
+ },
3092
+ {
3093
+ "name": "_minAmountB",
3094
+ "type": "uint256"
3095
+ },
3096
+ {
3097
+ "name": "_extraData",
3098
+ "type": "bytes32"
3099
+ }
3100
+ ],
3101
+ "name": "removeLiquidityConcentrated",
3102
+ "outputs": [
3103
+ {
3104
+ "name": "",
3105
+ "type": "uint256"
3106
+ },
3107
+ {
3108
+ "name": "",
3109
+ "type": "uint256"
3110
+ },
3111
+ {
3112
+ "name": "",
3113
+ "type": "uint256"
3114
+ },
3115
+ {
3116
+ "name": "",
3117
+ "type": "uint256"
3118
+ }
3119
+ ],
3120
+ "stateMutability": "nonpayable",
3121
+ "type": "function"
3122
+ },
3123
+ {
3124
+ "inputs": [
3125
+ {
3126
+ "name": "_address",
3127
+ "type": "address"
3128
+ }
3129
+ ],
3130
+ "name": "isSender",
3131
+ "outputs": [
3132
+ {
3133
+ "name": "",
3134
+ "type": "bool"
3135
+ }
3136
+ ],
3137
+ "stateMutability": "view",
3138
+ "type": "function"
3139
+ },
3140
+ {
3141
+ "inputs": [
3142
+ {
3143
+ "name": "_sender",
3144
+ "type": "address"
3145
+ }
3146
+ ],
3147
+ "name": "addSender",
3148
+ "outputs": [],
3149
+ "stateMutability": "nonpayable",
3150
+ "type": "function"
3151
+ },
3152
+ {
3153
+ "inputs": [
3154
+ {
3155
+ "name": "_sender",
3156
+ "type": "address"
3157
+ }
3158
+ ],
3159
+ "name": "removeSender",
3160
+ "outputs": [],
3161
+ "stateMutability": "nonpayable",
3162
+ "type": "function"
3163
+ },
3164
+ {
3165
+ "inputs": [],
3166
+ "name": "groupId",
3167
+ "outputs": [
3168
+ {
3169
+ "name": "",
3170
+ "type": "uint256"
3171
+ }
3172
+ ],
3173
+ "stateMutability": "view",
3174
+ "type": "function"
3175
+ },
3176
+ {
3177
+ "inputs": [
3178
+ {
3179
+ "name": "arg0",
3180
+ "type": "uint256"
3181
+ }
3182
+ ],
3183
+ "name": "senders",
3184
+ "outputs": [
3185
+ {
3186
+ "name": "",
3187
+ "type": "address"
3188
+ }
3189
+ ],
3190
+ "stateMutability": "view",
3191
+ "type": "function"
3192
+ },
3193
+ {
3194
+ "inputs": [
3195
+ {
3196
+ "name": "arg0",
3197
+ "type": "address"
3198
+ }
3199
+ ],
3200
+ "name": "indexOfSender",
3201
+ "outputs": [
3202
+ {
3203
+ "name": "",
3204
+ "type": "uint256"
3205
+ }
3206
+ ],
3207
+ "stateMutability": "view",
3208
+ "type": "function"
3209
+ },
3210
+ {
3211
+ "inputs": [],
3212
+ "name": "numSenders",
3213
+ "outputs": [
3214
+ {
3215
+ "name": "",
3216
+ "type": "uint256"
3217
+ }
3218
+ ],
3219
+ "stateMutability": "view",
3220
+ "type": "function"
3221
+ },
3222
+ {
3223
+ "inputs": [
3224
+ {
3225
+ "name": "_undyHq",
3226
+ "type": "address"
3227
+ },
3228
+ {
3229
+ "name": "_groupId",
3230
+ "type": "uint256"
3231
+ }
3232
+ ],
3233
+ "outputs": [],
3234
+ "stateMutability": "nonpayable",
3235
+ "type": "constructor"
3236
+ }
3237
+ ];
3238
+ export const deployAddress = '0x761fCDFfF8B187901eA11415237632A3F7E0203B';
3239
+ function getRequest(method, args, contractAddressOrOptions) {
3240
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
3241
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
3242
+ const call = {
3243
+ contractName: 'AgentWrapperV2',
3244
+ method,
3245
+ args,
3246
+ address,
3247
+ deployAddress,
3248
+ defaultValue,
3249
+ getAbi: () => abi,
3250
+ with: (options) => {
3251
+ call.address = options.contractAddress;
3252
+ call.defaultValue = options.defaultValue;
3253
+ return call;
3254
+ },
3255
+ defaultTo: (defaultValue) => {
3256
+ call.defaultValue = defaultValue;
3257
+ return call;
3258
+ },
3259
+ at: (address) => {
3260
+ call.address = address;
3261
+ return call;
3262
+ },
3263
+ };
3264
+ return call;
3265
+ }
3266
+ export const call = {
3267
+ isSender: (...args) => getRequest('isSender', args),
3268
+ groupId: (...args) => getRequest('groupId', args),
3269
+ senders: (...args) => getRequest('senders', args),
3270
+ indexOfSender: (...args) => getRequest('indexOfSender', args),
3271
+ numSenders: (...args) => getRequest('numSenders', args),
3272
+ };
3273
+ function getMutation(functionName) {
3274
+ return {
3275
+ contractName: 'AgentWrapperV2',
3276
+ functionName,
3277
+ deployAddress,
3278
+ argsType: undefined,
3279
+ getAbi: () => abi,
3280
+ };
3281
+ }
3282
+ export const mutation = {
3283
+ transferFunds: getMutation('transferFunds'),
3284
+ depositForYield: getMutation('depositForYield'),
3285
+ withdrawFromYield: getMutation('withdrawFromYield'),
3286
+ rebalanceYieldPosition: getMutation('rebalanceYieldPosition'),
3287
+ swapTokens: getMutation('swapTokens'),
3288
+ mintOrRedeemAsset: getMutation('mintOrRedeemAsset'),
3289
+ confirmMintOrRedeemAsset: getMutation('confirmMintOrRedeemAsset'),
3290
+ addCollateral: getMutation('addCollateral'),
3291
+ removeCollateral: getMutation('removeCollateral'),
3292
+ borrow: getMutation('borrow'),
3293
+ repayDebt: getMutation('repayDebt'),
3294
+ claimIncentives: getMutation('claimIncentives'),
3295
+ convertWethToEth: getMutation('convertWethToEth'),
3296
+ convertEthToWeth: getMutation('convertEthToWeth'),
3297
+ addLiquidity: getMutation('addLiquidity'),
3298
+ removeLiquidity: getMutation('removeLiquidity'),
3299
+ addLiquidityConcentrated: getMutation('addLiquidityConcentrated'),
3300
+ removeLiquidityConcentrated: getMutation('removeLiquidityConcentrated'),
3301
+ addSender: getMutation('addSender'),
3302
+ removeSender: getMutation('removeSender'),
3303
+ };
3304
+ export function parseEvents(eventName, events) {
3305
+ return events.map((event) => {
3306
+ return {
3307
+ event,
3308
+ parsed: parseEventLogs({
3309
+ abi,
3310
+ eventName,
3311
+ logs: [event],
3312
+ }),
3313
+ };
3314
+ });
3315
+ }
3316
+ export function getEventTopic(eventName) {
3317
+ return encodeEventTopics({ abi, eventName })[0];
3318
+ }
3319
+ export function toSdk(deployAddress, publicClient, walletClient, addressResolver) {
3320
+ return {
3321
+ deployAddress,
3322
+ abi,
3323
+ events: {
3324
+ AgentAction: { topic: getEventTopic('AgentAction'), parse: (events) => parseEvents('AgentAction', events) },
3325
+ },
3326
+ // Queries
3327
+ isSender: (...args) => singleQuery(publicClient, call.isSender(...args).at(deployAddress), {}, addressResolver),
3328
+ groupId: (...args) => singleQuery(publicClient, call.groupId(...args).at(deployAddress), {}, addressResolver),
3329
+ senders: (...args) => singleQuery(publicClient, call.senders(...args).at(deployAddress), {}, addressResolver),
3330
+ indexOfSender: (...args) => singleQuery(publicClient, call.indexOfSender(...args).at(deployAddress), {}, addressResolver),
3331
+ numSenders: (...args) => singleQuery(publicClient, call.numSenders(...args).at(deployAddress), {}, addressResolver),
3332
+ // Mutations
3333
+ transferFunds: (...args) => mutate(walletClient, mutation.transferFunds, { address: deployAddress, addressResolver })(...args),
3334
+ depositForYield: (...args) => mutate(walletClient, mutation.depositForYield, { address: deployAddress, addressResolver })(...args),
3335
+ withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield, { address: deployAddress, addressResolver })(...args),
3336
+ rebalanceYieldPosition: (...args) => mutate(walletClient, mutation.rebalanceYieldPosition, { address: deployAddress, addressResolver })(...args),
3337
+ swapTokens: (...args) => mutate(walletClient, mutation.swapTokens, { address: deployAddress, addressResolver })(...args),
3338
+ mintOrRedeemAsset: (...args) => mutate(walletClient, mutation.mintOrRedeemAsset, { address: deployAddress, addressResolver })(...args),
3339
+ confirmMintOrRedeemAsset: (...args) => mutate(walletClient, mutation.confirmMintOrRedeemAsset, { address: deployAddress, addressResolver })(...args),
3340
+ addCollateral: (...args) => mutate(walletClient, mutation.addCollateral, { address: deployAddress, addressResolver })(...args),
3341
+ removeCollateral: (...args) => mutate(walletClient, mutation.removeCollateral, { address: deployAddress, addressResolver })(...args),
3342
+ borrow: (...args) => mutate(walletClient, mutation.borrow, { address: deployAddress, addressResolver })(...args),
3343
+ repayDebt: (...args) => mutate(walletClient, mutation.repayDebt, { address: deployAddress, addressResolver })(...args),
3344
+ claimIncentives: (...args) => mutate(walletClient, mutation.claimIncentives, { address: deployAddress, addressResolver })(...args),
3345
+ convertWethToEth: (...args) => mutate(walletClient, mutation.convertWethToEth, { address: deployAddress, addressResolver })(...args),
3346
+ convertEthToWeth: (...args) => mutate(walletClient, mutation.convertEthToWeth, { address: deployAddress, addressResolver })(...args),
3347
+ addLiquidity: (...args) => mutate(walletClient, mutation.addLiquidity, { address: deployAddress, addressResolver })(...args),
3348
+ removeLiquidity: (...args) => mutate(walletClient, mutation.removeLiquidity, { address: deployAddress, addressResolver })(...args),
3349
+ addLiquidityConcentrated: (...args) => mutate(walletClient, mutation.addLiquidityConcentrated, { address: deployAddress, addressResolver })(...args),
3350
+ removeLiquidityConcentrated: (...args) => mutate(walletClient, mutation.removeLiquidityConcentrated, { address: deployAddress, addressResolver })(...args),
3351
+ addSender: (...args) => mutate(walletClient, mutation.addSender, { address: deployAddress, addressResolver })(...args),
3352
+ removeSender: (...args) => mutate(walletClient, mutation.removeSender, { address: deployAddress, addressResolver })(...args),
3353
+ };
3354
+ }