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