@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,4945 @@
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": "oldNonce",
14
+ "type": "uint256"
15
+ },
16
+ {
17
+ "indexed": false,
18
+ "name": "newNonce",
19
+ "type": "uint256"
20
+ }
21
+ ],
22
+ "name": "NonceIncremented",
23
+ "type": "event"
24
+ },
25
+ {
26
+ "anonymous": false,
27
+ "inputs": [
28
+ {
29
+ "indexed": true,
30
+ "name": "prevOwner",
31
+ "type": "address"
32
+ },
33
+ {
34
+ "indexed": true,
35
+ "name": "newOwner",
36
+ "type": "address"
37
+ },
38
+ {
39
+ "indexed": false,
40
+ "name": "confirmBlock",
41
+ "type": "uint256"
42
+ }
43
+ ],
44
+ "name": "OwnershipChangeInitiated",
45
+ "type": "event"
46
+ },
47
+ {
48
+ "anonymous": false,
49
+ "inputs": [
50
+ {
51
+ "indexed": true,
52
+ "name": "prevOwner",
53
+ "type": "address"
54
+ },
55
+ {
56
+ "indexed": true,
57
+ "name": "newOwner",
58
+ "type": "address"
59
+ },
60
+ {
61
+ "indexed": false,
62
+ "name": "initiatedBlock",
63
+ "type": "uint256"
64
+ },
65
+ {
66
+ "indexed": false,
67
+ "name": "confirmBlock",
68
+ "type": "uint256"
69
+ }
70
+ ],
71
+ "name": "OwnershipChangeConfirmed",
72
+ "type": "event"
73
+ },
74
+ {
75
+ "anonymous": false,
76
+ "inputs": [
77
+ {
78
+ "indexed": true,
79
+ "name": "cancelledOwner",
80
+ "type": "address"
81
+ },
82
+ {
83
+ "indexed": true,
84
+ "name": "cancelledBy",
85
+ "type": "address"
86
+ },
87
+ {
88
+ "indexed": false,
89
+ "name": "initiatedBlock",
90
+ "type": "uint256"
91
+ },
92
+ {
93
+ "indexed": false,
94
+ "name": "confirmBlock",
95
+ "type": "uint256"
96
+ }
97
+ ],
98
+ "name": "OwnershipChangeCancelled",
99
+ "type": "event"
100
+ },
101
+ {
102
+ "anonymous": false,
103
+ "inputs": [
104
+ {
105
+ "indexed": false,
106
+ "name": "numBlocks",
107
+ "type": "uint256"
108
+ }
109
+ ],
110
+ "name": "OwnershipTimeLockSet",
111
+ "type": "event"
112
+ },
113
+ {
114
+ "inputs": [
115
+ {
116
+ "name": "_newOwner",
117
+ "type": "address"
118
+ }
119
+ ],
120
+ "name": "changeOwnership",
121
+ "outputs": [],
122
+ "stateMutability": "nonpayable",
123
+ "type": "function"
124
+ },
125
+ {
126
+ "inputs": [],
127
+ "name": "confirmOwnershipChange",
128
+ "outputs": [],
129
+ "stateMutability": "nonpayable",
130
+ "type": "function"
131
+ },
132
+ {
133
+ "inputs": [],
134
+ "name": "cancelOwnershipChange",
135
+ "outputs": [],
136
+ "stateMutability": "nonpayable",
137
+ "type": "function"
138
+ },
139
+ {
140
+ "inputs": [],
141
+ "name": "hasPendingOwnerChange",
142
+ "outputs": [
143
+ {
144
+ "name": "",
145
+ "type": "bool"
146
+ }
147
+ ],
148
+ "stateMutability": "view",
149
+ "type": "function"
150
+ },
151
+ {
152
+ "inputs": [
153
+ {
154
+ "name": "_numBlocks",
155
+ "type": "uint256"
156
+ }
157
+ ],
158
+ "name": "setOwnershipTimeLock",
159
+ "outputs": [],
160
+ "stateMutability": "nonpayable",
161
+ "type": "function"
162
+ },
163
+ {
164
+ "inputs": [],
165
+ "name": "owner",
166
+ "outputs": [
167
+ {
168
+ "name": "",
169
+ "type": "address"
170
+ }
171
+ ],
172
+ "stateMutability": "view",
173
+ "type": "function"
174
+ },
175
+ {
176
+ "inputs": [],
177
+ "name": "ownershipTimeLock",
178
+ "outputs": [
179
+ {
180
+ "name": "",
181
+ "type": "uint256"
182
+ }
183
+ ],
184
+ "stateMutability": "view",
185
+ "type": "function"
186
+ },
187
+ {
188
+ "inputs": [],
189
+ "name": "pendingOwner",
190
+ "outputs": [
191
+ {
192
+ "components": [
193
+ {
194
+ "name": "newOwner",
195
+ "type": "address"
196
+ },
197
+ {
198
+ "name": "initiatedBlock",
199
+ "type": "uint256"
200
+ },
201
+ {
202
+ "name": "confirmBlock",
203
+ "type": "uint256"
204
+ }
205
+ ],
206
+ "name": "",
207
+ "type": "tuple"
208
+ }
209
+ ],
210
+ "stateMutability": "view",
211
+ "type": "function"
212
+ },
213
+ {
214
+ "inputs": [],
215
+ "name": "MIN_OWNERSHIP_TIMELOCK",
216
+ "outputs": [
217
+ {
218
+ "name": "",
219
+ "type": "uint256"
220
+ }
221
+ ],
222
+ "stateMutability": "view",
223
+ "type": "function"
224
+ },
225
+ {
226
+ "inputs": [],
227
+ "name": "MAX_OWNERSHIP_TIMELOCK",
228
+ "outputs": [
229
+ {
230
+ "name": "",
231
+ "type": "uint256"
232
+ }
233
+ ],
234
+ "stateMutability": "view",
235
+ "type": "function"
236
+ },
237
+ {
238
+ "inputs": [
239
+ {
240
+ "name": "_userWallet",
241
+ "type": "address"
242
+ },
243
+ {
244
+ "name": "_recipient",
245
+ "type": "address"
246
+ }
247
+ ],
248
+ "name": "transferFunds",
249
+ "outputs": [
250
+ {
251
+ "name": "",
252
+ "type": "uint256"
253
+ },
254
+ {
255
+ "name": "",
256
+ "type": "uint256"
257
+ }
258
+ ],
259
+ "stateMutability": "nonpayable",
260
+ "type": "function"
261
+ },
262
+ {
263
+ "inputs": [
264
+ {
265
+ "name": "_userWallet",
266
+ "type": "address"
267
+ },
268
+ {
269
+ "name": "_recipient",
270
+ "type": "address"
271
+ },
272
+ {
273
+ "name": "_asset",
274
+ "type": "address"
275
+ }
276
+ ],
277
+ "name": "transferFunds",
278
+ "outputs": [
279
+ {
280
+ "name": "",
281
+ "type": "uint256"
282
+ },
283
+ {
284
+ "name": "",
285
+ "type": "uint256"
286
+ }
287
+ ],
288
+ "stateMutability": "nonpayable",
289
+ "type": "function"
290
+ },
291
+ {
292
+ "inputs": [
293
+ {
294
+ "name": "_userWallet",
295
+ "type": "address"
296
+ },
297
+ {
298
+ "name": "_recipient",
299
+ "type": "address"
300
+ },
301
+ {
302
+ "name": "_asset",
303
+ "type": "address"
304
+ },
305
+ {
306
+ "name": "_amount",
307
+ "type": "uint256"
308
+ }
309
+ ],
310
+ "name": "transferFunds",
311
+ "outputs": [
312
+ {
313
+ "name": "",
314
+ "type": "uint256"
315
+ },
316
+ {
317
+ "name": "",
318
+ "type": "uint256"
319
+ }
320
+ ],
321
+ "stateMutability": "nonpayable",
322
+ "type": "function"
323
+ },
324
+ {
325
+ "inputs": [
326
+ {
327
+ "name": "_userWallet",
328
+ "type": "address"
329
+ },
330
+ {
331
+ "name": "_recipient",
332
+ "type": "address"
333
+ },
334
+ {
335
+ "name": "_asset",
336
+ "type": "address"
337
+ },
338
+ {
339
+ "name": "_amount",
340
+ "type": "uint256"
341
+ },
342
+ {
343
+ "name": "_isCheque",
344
+ "type": "bool"
345
+ }
346
+ ],
347
+ "name": "transferFunds",
348
+ "outputs": [
349
+ {
350
+ "name": "",
351
+ "type": "uint256"
352
+ },
353
+ {
354
+ "name": "",
355
+ "type": "uint256"
356
+ }
357
+ ],
358
+ "stateMutability": "nonpayable",
359
+ "type": "function"
360
+ },
361
+ {
362
+ "inputs": [
363
+ {
364
+ "name": "_userWallet",
365
+ "type": "address"
366
+ },
367
+ {
368
+ "name": "_recipient",
369
+ "type": "address"
370
+ },
371
+ {
372
+ "name": "_asset",
373
+ "type": "address"
374
+ },
375
+ {
376
+ "name": "_amount",
377
+ "type": "uint256"
378
+ },
379
+ {
380
+ "name": "_isCheque",
381
+ "type": "bool"
382
+ },
383
+ {
384
+ "components": [
385
+ {
386
+ "name": "signature",
387
+ "type": "bytes"
388
+ },
389
+ {
390
+ "name": "nonce",
391
+ "type": "uint256"
392
+ },
393
+ {
394
+ "name": "expiration",
395
+ "type": "uint256"
396
+ }
397
+ ],
398
+ "name": "_sig",
399
+ "type": "tuple"
400
+ }
401
+ ],
402
+ "name": "transferFunds",
403
+ "outputs": [
404
+ {
405
+ "name": "",
406
+ "type": "uint256"
407
+ },
408
+ {
409
+ "name": "",
410
+ "type": "uint256"
411
+ }
412
+ ],
413
+ "stateMutability": "nonpayable",
414
+ "type": "function"
415
+ },
416
+ {
417
+ "inputs": [
418
+ {
419
+ "name": "_userWallet",
420
+ "type": "address"
421
+ },
422
+ {
423
+ "name": "_legoId",
424
+ "type": "uint256"
425
+ },
426
+ {
427
+ "name": "_asset",
428
+ "type": "address"
429
+ }
430
+ ],
431
+ "name": "depositForYield",
432
+ "outputs": [
433
+ {
434
+ "name": "",
435
+ "type": "uint256"
436
+ },
437
+ {
438
+ "name": "",
439
+ "type": "address"
440
+ },
441
+ {
442
+ "name": "",
443
+ "type": "uint256"
444
+ },
445
+ {
446
+ "name": "",
447
+ "type": "uint256"
448
+ }
449
+ ],
450
+ "stateMutability": "nonpayable",
451
+ "type": "function"
452
+ },
453
+ {
454
+ "inputs": [
455
+ {
456
+ "name": "_userWallet",
457
+ "type": "address"
458
+ },
459
+ {
460
+ "name": "_legoId",
461
+ "type": "uint256"
462
+ },
463
+ {
464
+ "name": "_asset",
465
+ "type": "address"
466
+ },
467
+ {
468
+ "name": "_vaultAddr",
469
+ "type": "address"
470
+ }
471
+ ],
472
+ "name": "depositForYield",
473
+ "outputs": [
474
+ {
475
+ "name": "",
476
+ "type": "uint256"
477
+ },
478
+ {
479
+ "name": "",
480
+ "type": "address"
481
+ },
482
+ {
483
+ "name": "",
484
+ "type": "uint256"
485
+ },
486
+ {
487
+ "name": "",
488
+ "type": "uint256"
489
+ }
490
+ ],
491
+ "stateMutability": "nonpayable",
492
+ "type": "function"
493
+ },
494
+ {
495
+ "inputs": [
496
+ {
497
+ "name": "_userWallet",
498
+ "type": "address"
499
+ },
500
+ {
501
+ "name": "_legoId",
502
+ "type": "uint256"
503
+ },
504
+ {
505
+ "name": "_asset",
506
+ "type": "address"
507
+ },
508
+ {
509
+ "name": "_vaultAddr",
510
+ "type": "address"
511
+ },
512
+ {
513
+ "name": "_amount",
514
+ "type": "uint256"
515
+ }
516
+ ],
517
+ "name": "depositForYield",
518
+ "outputs": [
519
+ {
520
+ "name": "",
521
+ "type": "uint256"
522
+ },
523
+ {
524
+ "name": "",
525
+ "type": "address"
526
+ },
527
+ {
528
+ "name": "",
529
+ "type": "uint256"
530
+ },
531
+ {
532
+ "name": "",
533
+ "type": "uint256"
534
+ }
535
+ ],
536
+ "stateMutability": "nonpayable",
537
+ "type": "function"
538
+ },
539
+ {
540
+ "inputs": [
541
+ {
542
+ "name": "_userWallet",
543
+ "type": "address"
544
+ },
545
+ {
546
+ "name": "_legoId",
547
+ "type": "uint256"
548
+ },
549
+ {
550
+ "name": "_asset",
551
+ "type": "address"
552
+ },
553
+ {
554
+ "name": "_vaultAddr",
555
+ "type": "address"
556
+ },
557
+ {
558
+ "name": "_amount",
559
+ "type": "uint256"
560
+ },
561
+ {
562
+ "name": "_extraData",
563
+ "type": "bytes32"
564
+ }
565
+ ],
566
+ "name": "depositForYield",
567
+ "outputs": [
568
+ {
569
+ "name": "",
570
+ "type": "uint256"
571
+ },
572
+ {
573
+ "name": "",
574
+ "type": "address"
575
+ },
576
+ {
577
+ "name": "",
578
+ "type": "uint256"
579
+ },
580
+ {
581
+ "name": "",
582
+ "type": "uint256"
583
+ }
584
+ ],
585
+ "stateMutability": "nonpayable",
586
+ "type": "function"
587
+ },
588
+ {
589
+ "inputs": [
590
+ {
591
+ "name": "_userWallet",
592
+ "type": "address"
593
+ },
594
+ {
595
+ "name": "_legoId",
596
+ "type": "uint256"
597
+ },
598
+ {
599
+ "name": "_asset",
600
+ "type": "address"
601
+ },
602
+ {
603
+ "name": "_vaultAddr",
604
+ "type": "address"
605
+ },
606
+ {
607
+ "name": "_amount",
608
+ "type": "uint256"
609
+ },
610
+ {
611
+ "name": "_extraData",
612
+ "type": "bytes32"
613
+ },
614
+ {
615
+ "components": [
616
+ {
617
+ "name": "signature",
618
+ "type": "bytes"
619
+ },
620
+ {
621
+ "name": "nonce",
622
+ "type": "uint256"
623
+ },
624
+ {
625
+ "name": "expiration",
626
+ "type": "uint256"
627
+ }
628
+ ],
629
+ "name": "_sig",
630
+ "type": "tuple"
631
+ }
632
+ ],
633
+ "name": "depositForYield",
634
+ "outputs": [
635
+ {
636
+ "name": "",
637
+ "type": "uint256"
638
+ },
639
+ {
640
+ "name": "",
641
+ "type": "address"
642
+ },
643
+ {
644
+ "name": "",
645
+ "type": "uint256"
646
+ },
647
+ {
648
+ "name": "",
649
+ "type": "uint256"
650
+ }
651
+ ],
652
+ "stateMutability": "nonpayable",
653
+ "type": "function"
654
+ },
655
+ {
656
+ "inputs": [
657
+ {
658
+ "name": "_userWallet",
659
+ "type": "address"
660
+ },
661
+ {
662
+ "name": "_legoId",
663
+ "type": "uint256"
664
+ },
665
+ {
666
+ "name": "_vaultToken",
667
+ "type": "address"
668
+ }
669
+ ],
670
+ "name": "withdrawFromYield",
671
+ "outputs": [
672
+ {
673
+ "name": "",
674
+ "type": "uint256"
675
+ },
676
+ {
677
+ "name": "",
678
+ "type": "address"
679
+ },
680
+ {
681
+ "name": "",
682
+ "type": "uint256"
683
+ },
684
+ {
685
+ "name": "",
686
+ "type": "uint256"
687
+ }
688
+ ],
689
+ "stateMutability": "nonpayable",
690
+ "type": "function"
691
+ },
692
+ {
693
+ "inputs": [
694
+ {
695
+ "name": "_userWallet",
696
+ "type": "address"
697
+ },
698
+ {
699
+ "name": "_legoId",
700
+ "type": "uint256"
701
+ },
702
+ {
703
+ "name": "_vaultToken",
704
+ "type": "address"
705
+ },
706
+ {
707
+ "name": "_amount",
708
+ "type": "uint256"
709
+ }
710
+ ],
711
+ "name": "withdrawFromYield",
712
+ "outputs": [
713
+ {
714
+ "name": "",
715
+ "type": "uint256"
716
+ },
717
+ {
718
+ "name": "",
719
+ "type": "address"
720
+ },
721
+ {
722
+ "name": "",
723
+ "type": "uint256"
724
+ },
725
+ {
726
+ "name": "",
727
+ "type": "uint256"
728
+ }
729
+ ],
730
+ "stateMutability": "nonpayable",
731
+ "type": "function"
732
+ },
733
+ {
734
+ "inputs": [
735
+ {
736
+ "name": "_userWallet",
737
+ "type": "address"
738
+ },
739
+ {
740
+ "name": "_legoId",
741
+ "type": "uint256"
742
+ },
743
+ {
744
+ "name": "_vaultToken",
745
+ "type": "address"
746
+ },
747
+ {
748
+ "name": "_amount",
749
+ "type": "uint256"
750
+ },
751
+ {
752
+ "name": "_extraData",
753
+ "type": "bytes32"
754
+ }
755
+ ],
756
+ "name": "withdrawFromYield",
757
+ "outputs": [
758
+ {
759
+ "name": "",
760
+ "type": "uint256"
761
+ },
762
+ {
763
+ "name": "",
764
+ "type": "address"
765
+ },
766
+ {
767
+ "name": "",
768
+ "type": "uint256"
769
+ },
770
+ {
771
+ "name": "",
772
+ "type": "uint256"
773
+ }
774
+ ],
775
+ "stateMutability": "nonpayable",
776
+ "type": "function"
777
+ },
778
+ {
779
+ "inputs": [
780
+ {
781
+ "name": "_userWallet",
782
+ "type": "address"
783
+ },
784
+ {
785
+ "name": "_legoId",
786
+ "type": "uint256"
787
+ },
788
+ {
789
+ "name": "_vaultToken",
790
+ "type": "address"
791
+ },
792
+ {
793
+ "name": "_amount",
794
+ "type": "uint256"
795
+ },
796
+ {
797
+ "name": "_extraData",
798
+ "type": "bytes32"
799
+ },
800
+ {
801
+ "components": [
802
+ {
803
+ "name": "signature",
804
+ "type": "bytes"
805
+ },
806
+ {
807
+ "name": "nonce",
808
+ "type": "uint256"
809
+ },
810
+ {
811
+ "name": "expiration",
812
+ "type": "uint256"
813
+ }
814
+ ],
815
+ "name": "_sig",
816
+ "type": "tuple"
817
+ }
818
+ ],
819
+ "name": "withdrawFromYield",
820
+ "outputs": [
821
+ {
822
+ "name": "",
823
+ "type": "uint256"
824
+ },
825
+ {
826
+ "name": "",
827
+ "type": "address"
828
+ },
829
+ {
830
+ "name": "",
831
+ "type": "uint256"
832
+ },
833
+ {
834
+ "name": "",
835
+ "type": "uint256"
836
+ }
837
+ ],
838
+ "stateMutability": "nonpayable",
839
+ "type": "function"
840
+ },
841
+ {
842
+ "inputs": [
843
+ {
844
+ "name": "_userWallet",
845
+ "type": "address"
846
+ },
847
+ {
848
+ "name": "_fromLegoId",
849
+ "type": "uint256"
850
+ },
851
+ {
852
+ "name": "_fromVaultToken",
853
+ "type": "address"
854
+ },
855
+ {
856
+ "name": "_toLegoId",
857
+ "type": "uint256"
858
+ }
859
+ ],
860
+ "name": "rebalanceYieldPosition",
861
+ "outputs": [
862
+ {
863
+ "name": "",
864
+ "type": "uint256"
865
+ },
866
+ {
867
+ "name": "",
868
+ "type": "address"
869
+ },
870
+ {
871
+ "name": "",
872
+ "type": "uint256"
873
+ },
874
+ {
875
+ "name": "",
876
+ "type": "uint256"
877
+ }
878
+ ],
879
+ "stateMutability": "nonpayable",
880
+ "type": "function"
881
+ },
882
+ {
883
+ "inputs": [
884
+ {
885
+ "name": "_userWallet",
886
+ "type": "address"
887
+ },
888
+ {
889
+ "name": "_fromLegoId",
890
+ "type": "uint256"
891
+ },
892
+ {
893
+ "name": "_fromVaultToken",
894
+ "type": "address"
895
+ },
896
+ {
897
+ "name": "_toLegoId",
898
+ "type": "uint256"
899
+ },
900
+ {
901
+ "name": "_toVaultAddr",
902
+ "type": "address"
903
+ }
904
+ ],
905
+ "name": "rebalanceYieldPosition",
906
+ "outputs": [
907
+ {
908
+ "name": "",
909
+ "type": "uint256"
910
+ },
911
+ {
912
+ "name": "",
913
+ "type": "address"
914
+ },
915
+ {
916
+ "name": "",
917
+ "type": "uint256"
918
+ },
919
+ {
920
+ "name": "",
921
+ "type": "uint256"
922
+ }
923
+ ],
924
+ "stateMutability": "nonpayable",
925
+ "type": "function"
926
+ },
927
+ {
928
+ "inputs": [
929
+ {
930
+ "name": "_userWallet",
931
+ "type": "address"
932
+ },
933
+ {
934
+ "name": "_fromLegoId",
935
+ "type": "uint256"
936
+ },
937
+ {
938
+ "name": "_fromVaultToken",
939
+ "type": "address"
940
+ },
941
+ {
942
+ "name": "_toLegoId",
943
+ "type": "uint256"
944
+ },
945
+ {
946
+ "name": "_toVaultAddr",
947
+ "type": "address"
948
+ },
949
+ {
950
+ "name": "_fromVaultAmount",
951
+ "type": "uint256"
952
+ }
953
+ ],
954
+ "name": "rebalanceYieldPosition",
955
+ "outputs": [
956
+ {
957
+ "name": "",
958
+ "type": "uint256"
959
+ },
960
+ {
961
+ "name": "",
962
+ "type": "address"
963
+ },
964
+ {
965
+ "name": "",
966
+ "type": "uint256"
967
+ },
968
+ {
969
+ "name": "",
970
+ "type": "uint256"
971
+ }
972
+ ],
973
+ "stateMutability": "nonpayable",
974
+ "type": "function"
975
+ },
976
+ {
977
+ "inputs": [
978
+ {
979
+ "name": "_userWallet",
980
+ "type": "address"
981
+ },
982
+ {
983
+ "name": "_fromLegoId",
984
+ "type": "uint256"
985
+ },
986
+ {
987
+ "name": "_fromVaultToken",
988
+ "type": "address"
989
+ },
990
+ {
991
+ "name": "_toLegoId",
992
+ "type": "uint256"
993
+ },
994
+ {
995
+ "name": "_toVaultAddr",
996
+ "type": "address"
997
+ },
998
+ {
999
+ "name": "_fromVaultAmount",
1000
+ "type": "uint256"
1001
+ },
1002
+ {
1003
+ "name": "_extraData",
1004
+ "type": "bytes32"
1005
+ }
1006
+ ],
1007
+ "name": "rebalanceYieldPosition",
1008
+ "outputs": [
1009
+ {
1010
+ "name": "",
1011
+ "type": "uint256"
1012
+ },
1013
+ {
1014
+ "name": "",
1015
+ "type": "address"
1016
+ },
1017
+ {
1018
+ "name": "",
1019
+ "type": "uint256"
1020
+ },
1021
+ {
1022
+ "name": "",
1023
+ "type": "uint256"
1024
+ }
1025
+ ],
1026
+ "stateMutability": "nonpayable",
1027
+ "type": "function"
1028
+ },
1029
+ {
1030
+ "inputs": [
1031
+ {
1032
+ "name": "_userWallet",
1033
+ "type": "address"
1034
+ },
1035
+ {
1036
+ "name": "_fromLegoId",
1037
+ "type": "uint256"
1038
+ },
1039
+ {
1040
+ "name": "_fromVaultToken",
1041
+ "type": "address"
1042
+ },
1043
+ {
1044
+ "name": "_toLegoId",
1045
+ "type": "uint256"
1046
+ },
1047
+ {
1048
+ "name": "_toVaultAddr",
1049
+ "type": "address"
1050
+ },
1051
+ {
1052
+ "name": "_fromVaultAmount",
1053
+ "type": "uint256"
1054
+ },
1055
+ {
1056
+ "name": "_extraData",
1057
+ "type": "bytes32"
1058
+ },
1059
+ {
1060
+ "components": [
1061
+ {
1062
+ "name": "signature",
1063
+ "type": "bytes"
1064
+ },
1065
+ {
1066
+ "name": "nonce",
1067
+ "type": "uint256"
1068
+ },
1069
+ {
1070
+ "name": "expiration",
1071
+ "type": "uint256"
1072
+ }
1073
+ ],
1074
+ "name": "_sig",
1075
+ "type": "tuple"
1076
+ }
1077
+ ],
1078
+ "name": "rebalanceYieldPosition",
1079
+ "outputs": [
1080
+ {
1081
+ "name": "",
1082
+ "type": "uint256"
1083
+ },
1084
+ {
1085
+ "name": "",
1086
+ "type": "address"
1087
+ },
1088
+ {
1089
+ "name": "",
1090
+ "type": "uint256"
1091
+ },
1092
+ {
1093
+ "name": "",
1094
+ "type": "uint256"
1095
+ }
1096
+ ],
1097
+ "stateMutability": "nonpayable",
1098
+ "type": "function"
1099
+ },
1100
+ {
1101
+ "inputs": [
1102
+ {
1103
+ "name": "_userWallet",
1104
+ "type": "address"
1105
+ },
1106
+ {
1107
+ "components": [
1108
+ {
1109
+ "name": "legoId",
1110
+ "type": "uint256"
1111
+ },
1112
+ {
1113
+ "name": "amountIn",
1114
+ "type": "uint256"
1115
+ },
1116
+ {
1117
+ "name": "minAmountOut",
1118
+ "type": "uint256"
1119
+ },
1120
+ {
1121
+ "name": "tokenPath",
1122
+ "type": "address[]"
1123
+ },
1124
+ {
1125
+ "name": "poolPath",
1126
+ "type": "address[]"
1127
+ }
1128
+ ],
1129
+ "name": "_swapInstructions",
1130
+ "type": "tuple[]"
1131
+ }
1132
+ ],
1133
+ "name": "swapTokens",
1134
+ "outputs": [
1135
+ {
1136
+ "name": "",
1137
+ "type": "address"
1138
+ },
1139
+ {
1140
+ "name": "",
1141
+ "type": "uint256"
1142
+ },
1143
+ {
1144
+ "name": "",
1145
+ "type": "address"
1146
+ },
1147
+ {
1148
+ "name": "",
1149
+ "type": "uint256"
1150
+ },
1151
+ {
1152
+ "name": "",
1153
+ "type": "uint256"
1154
+ }
1155
+ ],
1156
+ "stateMutability": "nonpayable",
1157
+ "type": "function"
1158
+ },
1159
+ {
1160
+ "inputs": [
1161
+ {
1162
+ "name": "_userWallet",
1163
+ "type": "address"
1164
+ },
1165
+ {
1166
+ "components": [
1167
+ {
1168
+ "name": "legoId",
1169
+ "type": "uint256"
1170
+ },
1171
+ {
1172
+ "name": "amountIn",
1173
+ "type": "uint256"
1174
+ },
1175
+ {
1176
+ "name": "minAmountOut",
1177
+ "type": "uint256"
1178
+ },
1179
+ {
1180
+ "name": "tokenPath",
1181
+ "type": "address[]"
1182
+ },
1183
+ {
1184
+ "name": "poolPath",
1185
+ "type": "address[]"
1186
+ }
1187
+ ],
1188
+ "name": "_swapInstructions",
1189
+ "type": "tuple[]"
1190
+ },
1191
+ {
1192
+ "components": [
1193
+ {
1194
+ "name": "signature",
1195
+ "type": "bytes"
1196
+ },
1197
+ {
1198
+ "name": "nonce",
1199
+ "type": "uint256"
1200
+ },
1201
+ {
1202
+ "name": "expiration",
1203
+ "type": "uint256"
1204
+ }
1205
+ ],
1206
+ "name": "_sig",
1207
+ "type": "tuple"
1208
+ }
1209
+ ],
1210
+ "name": "swapTokens",
1211
+ "outputs": [
1212
+ {
1213
+ "name": "",
1214
+ "type": "address"
1215
+ },
1216
+ {
1217
+ "name": "",
1218
+ "type": "uint256"
1219
+ },
1220
+ {
1221
+ "name": "",
1222
+ "type": "address"
1223
+ },
1224
+ {
1225
+ "name": "",
1226
+ "type": "uint256"
1227
+ },
1228
+ {
1229
+ "name": "",
1230
+ "type": "uint256"
1231
+ }
1232
+ ],
1233
+ "stateMutability": "nonpayable",
1234
+ "type": "function"
1235
+ },
1236
+ {
1237
+ "inputs": [
1238
+ {
1239
+ "name": "_userWallet",
1240
+ "type": "address"
1241
+ },
1242
+ {
1243
+ "name": "_legoId",
1244
+ "type": "uint256"
1245
+ },
1246
+ {
1247
+ "name": "_tokenIn",
1248
+ "type": "address"
1249
+ },
1250
+ {
1251
+ "name": "_tokenOut",
1252
+ "type": "address"
1253
+ }
1254
+ ],
1255
+ "name": "mintOrRedeemAsset",
1256
+ "outputs": [
1257
+ {
1258
+ "name": "",
1259
+ "type": "uint256"
1260
+ },
1261
+ {
1262
+ "name": "",
1263
+ "type": "uint256"
1264
+ },
1265
+ {
1266
+ "name": "",
1267
+ "type": "bool"
1268
+ },
1269
+ {
1270
+ "name": "",
1271
+ "type": "uint256"
1272
+ }
1273
+ ],
1274
+ "stateMutability": "nonpayable",
1275
+ "type": "function"
1276
+ },
1277
+ {
1278
+ "inputs": [
1279
+ {
1280
+ "name": "_userWallet",
1281
+ "type": "address"
1282
+ },
1283
+ {
1284
+ "name": "_legoId",
1285
+ "type": "uint256"
1286
+ },
1287
+ {
1288
+ "name": "_tokenIn",
1289
+ "type": "address"
1290
+ },
1291
+ {
1292
+ "name": "_tokenOut",
1293
+ "type": "address"
1294
+ },
1295
+ {
1296
+ "name": "_amountIn",
1297
+ "type": "uint256"
1298
+ }
1299
+ ],
1300
+ "name": "mintOrRedeemAsset",
1301
+ "outputs": [
1302
+ {
1303
+ "name": "",
1304
+ "type": "uint256"
1305
+ },
1306
+ {
1307
+ "name": "",
1308
+ "type": "uint256"
1309
+ },
1310
+ {
1311
+ "name": "",
1312
+ "type": "bool"
1313
+ },
1314
+ {
1315
+ "name": "",
1316
+ "type": "uint256"
1317
+ }
1318
+ ],
1319
+ "stateMutability": "nonpayable",
1320
+ "type": "function"
1321
+ },
1322
+ {
1323
+ "inputs": [
1324
+ {
1325
+ "name": "_userWallet",
1326
+ "type": "address"
1327
+ },
1328
+ {
1329
+ "name": "_legoId",
1330
+ "type": "uint256"
1331
+ },
1332
+ {
1333
+ "name": "_tokenIn",
1334
+ "type": "address"
1335
+ },
1336
+ {
1337
+ "name": "_tokenOut",
1338
+ "type": "address"
1339
+ },
1340
+ {
1341
+ "name": "_amountIn",
1342
+ "type": "uint256"
1343
+ },
1344
+ {
1345
+ "name": "_minAmountOut",
1346
+ "type": "uint256"
1347
+ }
1348
+ ],
1349
+ "name": "mintOrRedeemAsset",
1350
+ "outputs": [
1351
+ {
1352
+ "name": "",
1353
+ "type": "uint256"
1354
+ },
1355
+ {
1356
+ "name": "",
1357
+ "type": "uint256"
1358
+ },
1359
+ {
1360
+ "name": "",
1361
+ "type": "bool"
1362
+ },
1363
+ {
1364
+ "name": "",
1365
+ "type": "uint256"
1366
+ }
1367
+ ],
1368
+ "stateMutability": "nonpayable",
1369
+ "type": "function"
1370
+ },
1371
+ {
1372
+ "inputs": [
1373
+ {
1374
+ "name": "_userWallet",
1375
+ "type": "address"
1376
+ },
1377
+ {
1378
+ "name": "_legoId",
1379
+ "type": "uint256"
1380
+ },
1381
+ {
1382
+ "name": "_tokenIn",
1383
+ "type": "address"
1384
+ },
1385
+ {
1386
+ "name": "_tokenOut",
1387
+ "type": "address"
1388
+ },
1389
+ {
1390
+ "name": "_amountIn",
1391
+ "type": "uint256"
1392
+ },
1393
+ {
1394
+ "name": "_minAmountOut",
1395
+ "type": "uint256"
1396
+ },
1397
+ {
1398
+ "name": "_extraData",
1399
+ "type": "bytes32"
1400
+ }
1401
+ ],
1402
+ "name": "mintOrRedeemAsset",
1403
+ "outputs": [
1404
+ {
1405
+ "name": "",
1406
+ "type": "uint256"
1407
+ },
1408
+ {
1409
+ "name": "",
1410
+ "type": "uint256"
1411
+ },
1412
+ {
1413
+ "name": "",
1414
+ "type": "bool"
1415
+ },
1416
+ {
1417
+ "name": "",
1418
+ "type": "uint256"
1419
+ }
1420
+ ],
1421
+ "stateMutability": "nonpayable",
1422
+ "type": "function"
1423
+ },
1424
+ {
1425
+ "inputs": [
1426
+ {
1427
+ "name": "_userWallet",
1428
+ "type": "address"
1429
+ },
1430
+ {
1431
+ "name": "_legoId",
1432
+ "type": "uint256"
1433
+ },
1434
+ {
1435
+ "name": "_tokenIn",
1436
+ "type": "address"
1437
+ },
1438
+ {
1439
+ "name": "_tokenOut",
1440
+ "type": "address"
1441
+ },
1442
+ {
1443
+ "name": "_amountIn",
1444
+ "type": "uint256"
1445
+ },
1446
+ {
1447
+ "name": "_minAmountOut",
1448
+ "type": "uint256"
1449
+ },
1450
+ {
1451
+ "name": "_extraData",
1452
+ "type": "bytes32"
1453
+ },
1454
+ {
1455
+ "components": [
1456
+ {
1457
+ "name": "signature",
1458
+ "type": "bytes"
1459
+ },
1460
+ {
1461
+ "name": "nonce",
1462
+ "type": "uint256"
1463
+ },
1464
+ {
1465
+ "name": "expiration",
1466
+ "type": "uint256"
1467
+ }
1468
+ ],
1469
+ "name": "_sig",
1470
+ "type": "tuple"
1471
+ }
1472
+ ],
1473
+ "name": "mintOrRedeemAsset",
1474
+ "outputs": [
1475
+ {
1476
+ "name": "",
1477
+ "type": "uint256"
1478
+ },
1479
+ {
1480
+ "name": "",
1481
+ "type": "uint256"
1482
+ },
1483
+ {
1484
+ "name": "",
1485
+ "type": "bool"
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": "_legoId",
1503
+ "type": "uint256"
1504
+ },
1505
+ {
1506
+ "name": "_tokenIn",
1507
+ "type": "address"
1508
+ },
1509
+ {
1510
+ "name": "_tokenOut",
1511
+ "type": "address"
1512
+ }
1513
+ ],
1514
+ "name": "confirmMintOrRedeemAsset",
1515
+ "outputs": [
1516
+ {
1517
+ "name": "",
1518
+ "type": "uint256"
1519
+ },
1520
+ {
1521
+ "name": "",
1522
+ "type": "uint256"
1523
+ }
1524
+ ],
1525
+ "stateMutability": "nonpayable",
1526
+ "type": "function"
1527
+ },
1528
+ {
1529
+ "inputs": [
1530
+ {
1531
+ "name": "_userWallet",
1532
+ "type": "address"
1533
+ },
1534
+ {
1535
+ "name": "_legoId",
1536
+ "type": "uint256"
1537
+ },
1538
+ {
1539
+ "name": "_tokenIn",
1540
+ "type": "address"
1541
+ },
1542
+ {
1543
+ "name": "_tokenOut",
1544
+ "type": "address"
1545
+ },
1546
+ {
1547
+ "name": "_extraData",
1548
+ "type": "bytes32"
1549
+ }
1550
+ ],
1551
+ "name": "confirmMintOrRedeemAsset",
1552
+ "outputs": [
1553
+ {
1554
+ "name": "",
1555
+ "type": "uint256"
1556
+ },
1557
+ {
1558
+ "name": "",
1559
+ "type": "uint256"
1560
+ }
1561
+ ],
1562
+ "stateMutability": "nonpayable",
1563
+ "type": "function"
1564
+ },
1565
+ {
1566
+ "inputs": [
1567
+ {
1568
+ "name": "_userWallet",
1569
+ "type": "address"
1570
+ },
1571
+ {
1572
+ "name": "_legoId",
1573
+ "type": "uint256"
1574
+ },
1575
+ {
1576
+ "name": "_tokenIn",
1577
+ "type": "address"
1578
+ },
1579
+ {
1580
+ "name": "_tokenOut",
1581
+ "type": "address"
1582
+ },
1583
+ {
1584
+ "name": "_extraData",
1585
+ "type": "bytes32"
1586
+ },
1587
+ {
1588
+ "components": [
1589
+ {
1590
+ "name": "signature",
1591
+ "type": "bytes"
1592
+ },
1593
+ {
1594
+ "name": "nonce",
1595
+ "type": "uint256"
1596
+ },
1597
+ {
1598
+ "name": "expiration",
1599
+ "type": "uint256"
1600
+ }
1601
+ ],
1602
+ "name": "_sig",
1603
+ "type": "tuple"
1604
+ }
1605
+ ],
1606
+ "name": "confirmMintOrRedeemAsset",
1607
+ "outputs": [
1608
+ {
1609
+ "name": "",
1610
+ "type": "uint256"
1611
+ },
1612
+ {
1613
+ "name": "",
1614
+ "type": "uint256"
1615
+ }
1616
+ ],
1617
+ "stateMutability": "nonpayable",
1618
+ "type": "function"
1619
+ },
1620
+ {
1621
+ "inputs": [
1622
+ {
1623
+ "name": "_userWallet",
1624
+ "type": "address"
1625
+ },
1626
+ {
1627
+ "name": "_legoId",
1628
+ "type": "uint256"
1629
+ },
1630
+ {
1631
+ "name": "_asset",
1632
+ "type": "address"
1633
+ }
1634
+ ],
1635
+ "name": "addCollateral",
1636
+ "outputs": [
1637
+ {
1638
+ "name": "",
1639
+ "type": "uint256"
1640
+ },
1641
+ {
1642
+ "name": "",
1643
+ "type": "uint256"
1644
+ }
1645
+ ],
1646
+ "stateMutability": "nonpayable",
1647
+ "type": "function"
1648
+ },
1649
+ {
1650
+ "inputs": [
1651
+ {
1652
+ "name": "_userWallet",
1653
+ "type": "address"
1654
+ },
1655
+ {
1656
+ "name": "_legoId",
1657
+ "type": "uint256"
1658
+ },
1659
+ {
1660
+ "name": "_asset",
1661
+ "type": "address"
1662
+ },
1663
+ {
1664
+ "name": "_amount",
1665
+ "type": "uint256"
1666
+ }
1667
+ ],
1668
+ "name": "addCollateral",
1669
+ "outputs": [
1670
+ {
1671
+ "name": "",
1672
+ "type": "uint256"
1673
+ },
1674
+ {
1675
+ "name": "",
1676
+ "type": "uint256"
1677
+ }
1678
+ ],
1679
+ "stateMutability": "nonpayable",
1680
+ "type": "function"
1681
+ },
1682
+ {
1683
+ "inputs": [
1684
+ {
1685
+ "name": "_userWallet",
1686
+ "type": "address"
1687
+ },
1688
+ {
1689
+ "name": "_legoId",
1690
+ "type": "uint256"
1691
+ },
1692
+ {
1693
+ "name": "_asset",
1694
+ "type": "address"
1695
+ },
1696
+ {
1697
+ "name": "_amount",
1698
+ "type": "uint256"
1699
+ },
1700
+ {
1701
+ "name": "_extraData",
1702
+ "type": "bytes32"
1703
+ }
1704
+ ],
1705
+ "name": "addCollateral",
1706
+ "outputs": [
1707
+ {
1708
+ "name": "",
1709
+ "type": "uint256"
1710
+ },
1711
+ {
1712
+ "name": "",
1713
+ "type": "uint256"
1714
+ }
1715
+ ],
1716
+ "stateMutability": "nonpayable",
1717
+ "type": "function"
1718
+ },
1719
+ {
1720
+ "inputs": [
1721
+ {
1722
+ "name": "_userWallet",
1723
+ "type": "address"
1724
+ },
1725
+ {
1726
+ "name": "_legoId",
1727
+ "type": "uint256"
1728
+ },
1729
+ {
1730
+ "name": "_asset",
1731
+ "type": "address"
1732
+ },
1733
+ {
1734
+ "name": "_amount",
1735
+ "type": "uint256"
1736
+ },
1737
+ {
1738
+ "name": "_extraData",
1739
+ "type": "bytes32"
1740
+ },
1741
+ {
1742
+ "components": [
1743
+ {
1744
+ "name": "signature",
1745
+ "type": "bytes"
1746
+ },
1747
+ {
1748
+ "name": "nonce",
1749
+ "type": "uint256"
1750
+ },
1751
+ {
1752
+ "name": "expiration",
1753
+ "type": "uint256"
1754
+ }
1755
+ ],
1756
+ "name": "_sig",
1757
+ "type": "tuple"
1758
+ }
1759
+ ],
1760
+ "name": "addCollateral",
1761
+ "outputs": [
1762
+ {
1763
+ "name": "",
1764
+ "type": "uint256"
1765
+ },
1766
+ {
1767
+ "name": "",
1768
+ "type": "uint256"
1769
+ }
1770
+ ],
1771
+ "stateMutability": "nonpayable",
1772
+ "type": "function"
1773
+ },
1774
+ {
1775
+ "inputs": [
1776
+ {
1777
+ "name": "_userWallet",
1778
+ "type": "address"
1779
+ },
1780
+ {
1781
+ "name": "_legoId",
1782
+ "type": "uint256"
1783
+ },
1784
+ {
1785
+ "name": "_asset",
1786
+ "type": "address"
1787
+ }
1788
+ ],
1789
+ "name": "removeCollateral",
1790
+ "outputs": [
1791
+ {
1792
+ "name": "",
1793
+ "type": "uint256"
1794
+ },
1795
+ {
1796
+ "name": "",
1797
+ "type": "uint256"
1798
+ }
1799
+ ],
1800
+ "stateMutability": "nonpayable",
1801
+ "type": "function"
1802
+ },
1803
+ {
1804
+ "inputs": [
1805
+ {
1806
+ "name": "_userWallet",
1807
+ "type": "address"
1808
+ },
1809
+ {
1810
+ "name": "_legoId",
1811
+ "type": "uint256"
1812
+ },
1813
+ {
1814
+ "name": "_asset",
1815
+ "type": "address"
1816
+ },
1817
+ {
1818
+ "name": "_amount",
1819
+ "type": "uint256"
1820
+ }
1821
+ ],
1822
+ "name": "removeCollateral",
1823
+ "outputs": [
1824
+ {
1825
+ "name": "",
1826
+ "type": "uint256"
1827
+ },
1828
+ {
1829
+ "name": "",
1830
+ "type": "uint256"
1831
+ }
1832
+ ],
1833
+ "stateMutability": "nonpayable",
1834
+ "type": "function"
1835
+ },
1836
+ {
1837
+ "inputs": [
1838
+ {
1839
+ "name": "_userWallet",
1840
+ "type": "address"
1841
+ },
1842
+ {
1843
+ "name": "_legoId",
1844
+ "type": "uint256"
1845
+ },
1846
+ {
1847
+ "name": "_asset",
1848
+ "type": "address"
1849
+ },
1850
+ {
1851
+ "name": "_amount",
1852
+ "type": "uint256"
1853
+ },
1854
+ {
1855
+ "name": "_extraData",
1856
+ "type": "bytes32"
1857
+ }
1858
+ ],
1859
+ "name": "removeCollateral",
1860
+ "outputs": [
1861
+ {
1862
+ "name": "",
1863
+ "type": "uint256"
1864
+ },
1865
+ {
1866
+ "name": "",
1867
+ "type": "uint256"
1868
+ }
1869
+ ],
1870
+ "stateMutability": "nonpayable",
1871
+ "type": "function"
1872
+ },
1873
+ {
1874
+ "inputs": [
1875
+ {
1876
+ "name": "_userWallet",
1877
+ "type": "address"
1878
+ },
1879
+ {
1880
+ "name": "_legoId",
1881
+ "type": "uint256"
1882
+ },
1883
+ {
1884
+ "name": "_asset",
1885
+ "type": "address"
1886
+ },
1887
+ {
1888
+ "name": "_amount",
1889
+ "type": "uint256"
1890
+ },
1891
+ {
1892
+ "name": "_extraData",
1893
+ "type": "bytes32"
1894
+ },
1895
+ {
1896
+ "components": [
1897
+ {
1898
+ "name": "signature",
1899
+ "type": "bytes"
1900
+ },
1901
+ {
1902
+ "name": "nonce",
1903
+ "type": "uint256"
1904
+ },
1905
+ {
1906
+ "name": "expiration",
1907
+ "type": "uint256"
1908
+ }
1909
+ ],
1910
+ "name": "_sig",
1911
+ "type": "tuple"
1912
+ }
1913
+ ],
1914
+ "name": "removeCollateral",
1915
+ "outputs": [
1916
+ {
1917
+ "name": "",
1918
+ "type": "uint256"
1919
+ },
1920
+ {
1921
+ "name": "",
1922
+ "type": "uint256"
1923
+ }
1924
+ ],
1925
+ "stateMutability": "nonpayable",
1926
+ "type": "function"
1927
+ },
1928
+ {
1929
+ "inputs": [
1930
+ {
1931
+ "name": "_userWallet",
1932
+ "type": "address"
1933
+ },
1934
+ {
1935
+ "name": "_legoId",
1936
+ "type": "uint256"
1937
+ },
1938
+ {
1939
+ "name": "_borrowAsset",
1940
+ "type": "address"
1941
+ }
1942
+ ],
1943
+ "name": "borrow",
1944
+ "outputs": [
1945
+ {
1946
+ "name": "",
1947
+ "type": "uint256"
1948
+ },
1949
+ {
1950
+ "name": "",
1951
+ "type": "uint256"
1952
+ }
1953
+ ],
1954
+ "stateMutability": "nonpayable",
1955
+ "type": "function"
1956
+ },
1957
+ {
1958
+ "inputs": [
1959
+ {
1960
+ "name": "_userWallet",
1961
+ "type": "address"
1962
+ },
1963
+ {
1964
+ "name": "_legoId",
1965
+ "type": "uint256"
1966
+ },
1967
+ {
1968
+ "name": "_borrowAsset",
1969
+ "type": "address"
1970
+ },
1971
+ {
1972
+ "name": "_amount",
1973
+ "type": "uint256"
1974
+ }
1975
+ ],
1976
+ "name": "borrow",
1977
+ "outputs": [
1978
+ {
1979
+ "name": "",
1980
+ "type": "uint256"
1981
+ },
1982
+ {
1983
+ "name": "",
1984
+ "type": "uint256"
1985
+ }
1986
+ ],
1987
+ "stateMutability": "nonpayable",
1988
+ "type": "function"
1989
+ },
1990
+ {
1991
+ "inputs": [
1992
+ {
1993
+ "name": "_userWallet",
1994
+ "type": "address"
1995
+ },
1996
+ {
1997
+ "name": "_legoId",
1998
+ "type": "uint256"
1999
+ },
2000
+ {
2001
+ "name": "_borrowAsset",
2002
+ "type": "address"
2003
+ },
2004
+ {
2005
+ "name": "_amount",
2006
+ "type": "uint256"
2007
+ },
2008
+ {
2009
+ "name": "_extraData",
2010
+ "type": "bytes32"
2011
+ }
2012
+ ],
2013
+ "name": "borrow",
2014
+ "outputs": [
2015
+ {
2016
+ "name": "",
2017
+ "type": "uint256"
2018
+ },
2019
+ {
2020
+ "name": "",
2021
+ "type": "uint256"
2022
+ }
2023
+ ],
2024
+ "stateMutability": "nonpayable",
2025
+ "type": "function"
2026
+ },
2027
+ {
2028
+ "inputs": [
2029
+ {
2030
+ "name": "_userWallet",
2031
+ "type": "address"
2032
+ },
2033
+ {
2034
+ "name": "_legoId",
2035
+ "type": "uint256"
2036
+ },
2037
+ {
2038
+ "name": "_borrowAsset",
2039
+ "type": "address"
2040
+ },
2041
+ {
2042
+ "name": "_amount",
2043
+ "type": "uint256"
2044
+ },
2045
+ {
2046
+ "name": "_extraData",
2047
+ "type": "bytes32"
2048
+ },
2049
+ {
2050
+ "components": [
2051
+ {
2052
+ "name": "signature",
2053
+ "type": "bytes"
2054
+ },
2055
+ {
2056
+ "name": "nonce",
2057
+ "type": "uint256"
2058
+ },
2059
+ {
2060
+ "name": "expiration",
2061
+ "type": "uint256"
2062
+ }
2063
+ ],
2064
+ "name": "_sig",
2065
+ "type": "tuple"
2066
+ }
2067
+ ],
2068
+ "name": "borrow",
2069
+ "outputs": [
2070
+ {
2071
+ "name": "",
2072
+ "type": "uint256"
2073
+ },
2074
+ {
2075
+ "name": "",
2076
+ "type": "uint256"
2077
+ }
2078
+ ],
2079
+ "stateMutability": "nonpayable",
2080
+ "type": "function"
2081
+ },
2082
+ {
2083
+ "inputs": [
2084
+ {
2085
+ "name": "_userWallet",
2086
+ "type": "address"
2087
+ },
2088
+ {
2089
+ "name": "_legoId",
2090
+ "type": "uint256"
2091
+ },
2092
+ {
2093
+ "name": "_paymentAsset",
2094
+ "type": "address"
2095
+ }
2096
+ ],
2097
+ "name": "repayDebt",
2098
+ "outputs": [
2099
+ {
2100
+ "name": "",
2101
+ "type": "uint256"
2102
+ },
2103
+ {
2104
+ "name": "",
2105
+ "type": "uint256"
2106
+ }
2107
+ ],
2108
+ "stateMutability": "nonpayable",
2109
+ "type": "function"
2110
+ },
2111
+ {
2112
+ "inputs": [
2113
+ {
2114
+ "name": "_userWallet",
2115
+ "type": "address"
2116
+ },
2117
+ {
2118
+ "name": "_legoId",
2119
+ "type": "uint256"
2120
+ },
2121
+ {
2122
+ "name": "_paymentAsset",
2123
+ "type": "address"
2124
+ },
2125
+ {
2126
+ "name": "_paymentAmount",
2127
+ "type": "uint256"
2128
+ }
2129
+ ],
2130
+ "name": "repayDebt",
2131
+ "outputs": [
2132
+ {
2133
+ "name": "",
2134
+ "type": "uint256"
2135
+ },
2136
+ {
2137
+ "name": "",
2138
+ "type": "uint256"
2139
+ }
2140
+ ],
2141
+ "stateMutability": "nonpayable",
2142
+ "type": "function"
2143
+ },
2144
+ {
2145
+ "inputs": [
2146
+ {
2147
+ "name": "_userWallet",
2148
+ "type": "address"
2149
+ },
2150
+ {
2151
+ "name": "_legoId",
2152
+ "type": "uint256"
2153
+ },
2154
+ {
2155
+ "name": "_paymentAsset",
2156
+ "type": "address"
2157
+ },
2158
+ {
2159
+ "name": "_paymentAmount",
2160
+ "type": "uint256"
2161
+ },
2162
+ {
2163
+ "name": "_extraData",
2164
+ "type": "bytes32"
2165
+ }
2166
+ ],
2167
+ "name": "repayDebt",
2168
+ "outputs": [
2169
+ {
2170
+ "name": "",
2171
+ "type": "uint256"
2172
+ },
2173
+ {
2174
+ "name": "",
2175
+ "type": "uint256"
2176
+ }
2177
+ ],
2178
+ "stateMutability": "nonpayable",
2179
+ "type": "function"
2180
+ },
2181
+ {
2182
+ "inputs": [
2183
+ {
2184
+ "name": "_userWallet",
2185
+ "type": "address"
2186
+ },
2187
+ {
2188
+ "name": "_legoId",
2189
+ "type": "uint256"
2190
+ },
2191
+ {
2192
+ "name": "_paymentAsset",
2193
+ "type": "address"
2194
+ },
2195
+ {
2196
+ "name": "_paymentAmount",
2197
+ "type": "uint256"
2198
+ },
2199
+ {
2200
+ "name": "_extraData",
2201
+ "type": "bytes32"
2202
+ },
2203
+ {
2204
+ "components": [
2205
+ {
2206
+ "name": "signature",
2207
+ "type": "bytes"
2208
+ },
2209
+ {
2210
+ "name": "nonce",
2211
+ "type": "uint256"
2212
+ },
2213
+ {
2214
+ "name": "expiration",
2215
+ "type": "uint256"
2216
+ }
2217
+ ],
2218
+ "name": "_sig",
2219
+ "type": "tuple"
2220
+ }
2221
+ ],
2222
+ "name": "repayDebt",
2223
+ "outputs": [
2224
+ {
2225
+ "name": "",
2226
+ "type": "uint256"
2227
+ },
2228
+ {
2229
+ "name": "",
2230
+ "type": "uint256"
2231
+ }
2232
+ ],
2233
+ "stateMutability": "nonpayable",
2234
+ "type": "function"
2235
+ },
2236
+ {
2237
+ "inputs": [
2238
+ {
2239
+ "name": "_userWallet",
2240
+ "type": "address"
2241
+ },
2242
+ {
2243
+ "name": "_legoId",
2244
+ "type": "uint256"
2245
+ }
2246
+ ],
2247
+ "name": "claimRewards",
2248
+ "outputs": [
2249
+ {
2250
+ "name": "",
2251
+ "type": "uint256"
2252
+ },
2253
+ {
2254
+ "name": "",
2255
+ "type": "uint256"
2256
+ }
2257
+ ],
2258
+ "stateMutability": "nonpayable",
2259
+ "type": "function"
2260
+ },
2261
+ {
2262
+ "inputs": [
2263
+ {
2264
+ "name": "_userWallet",
2265
+ "type": "address"
2266
+ },
2267
+ {
2268
+ "name": "_legoId",
2269
+ "type": "uint256"
2270
+ },
2271
+ {
2272
+ "name": "_rewardToken",
2273
+ "type": "address"
2274
+ }
2275
+ ],
2276
+ "name": "claimRewards",
2277
+ "outputs": [
2278
+ {
2279
+ "name": "",
2280
+ "type": "uint256"
2281
+ },
2282
+ {
2283
+ "name": "",
2284
+ "type": "uint256"
2285
+ }
2286
+ ],
2287
+ "stateMutability": "nonpayable",
2288
+ "type": "function"
2289
+ },
2290
+ {
2291
+ "inputs": [
2292
+ {
2293
+ "name": "_userWallet",
2294
+ "type": "address"
2295
+ },
2296
+ {
2297
+ "name": "_legoId",
2298
+ "type": "uint256"
2299
+ },
2300
+ {
2301
+ "name": "_rewardToken",
2302
+ "type": "address"
2303
+ },
2304
+ {
2305
+ "name": "_rewardAmount",
2306
+ "type": "uint256"
2307
+ }
2308
+ ],
2309
+ "name": "claimRewards",
2310
+ "outputs": [
2311
+ {
2312
+ "name": "",
2313
+ "type": "uint256"
2314
+ },
2315
+ {
2316
+ "name": "",
2317
+ "type": "uint256"
2318
+ }
2319
+ ],
2320
+ "stateMutability": "nonpayable",
2321
+ "type": "function"
2322
+ },
2323
+ {
2324
+ "inputs": [
2325
+ {
2326
+ "name": "_userWallet",
2327
+ "type": "address"
2328
+ },
2329
+ {
2330
+ "name": "_legoId",
2331
+ "type": "uint256"
2332
+ },
2333
+ {
2334
+ "name": "_rewardToken",
2335
+ "type": "address"
2336
+ },
2337
+ {
2338
+ "name": "_rewardAmount",
2339
+ "type": "uint256"
2340
+ },
2341
+ {
2342
+ "name": "_extraData",
2343
+ "type": "bytes32"
2344
+ }
2345
+ ],
2346
+ "name": "claimRewards",
2347
+ "outputs": [
2348
+ {
2349
+ "name": "",
2350
+ "type": "uint256"
2351
+ },
2352
+ {
2353
+ "name": "",
2354
+ "type": "uint256"
2355
+ }
2356
+ ],
2357
+ "stateMutability": "nonpayable",
2358
+ "type": "function"
2359
+ },
2360
+ {
2361
+ "inputs": [
2362
+ {
2363
+ "name": "_userWallet",
2364
+ "type": "address"
2365
+ },
2366
+ {
2367
+ "name": "_legoId",
2368
+ "type": "uint256"
2369
+ },
2370
+ {
2371
+ "name": "_rewardToken",
2372
+ "type": "address"
2373
+ },
2374
+ {
2375
+ "name": "_rewardAmount",
2376
+ "type": "uint256"
2377
+ },
2378
+ {
2379
+ "name": "_extraData",
2380
+ "type": "bytes32"
2381
+ },
2382
+ {
2383
+ "components": [
2384
+ {
2385
+ "name": "signature",
2386
+ "type": "bytes"
2387
+ },
2388
+ {
2389
+ "name": "nonce",
2390
+ "type": "uint256"
2391
+ },
2392
+ {
2393
+ "name": "expiration",
2394
+ "type": "uint256"
2395
+ }
2396
+ ],
2397
+ "name": "_sig",
2398
+ "type": "tuple"
2399
+ }
2400
+ ],
2401
+ "name": "claimRewards",
2402
+ "outputs": [
2403
+ {
2404
+ "name": "",
2405
+ "type": "uint256"
2406
+ },
2407
+ {
2408
+ "name": "",
2409
+ "type": "uint256"
2410
+ }
2411
+ ],
2412
+ "stateMutability": "nonpayable",
2413
+ "type": "function"
2414
+ },
2415
+ {
2416
+ "inputs": [
2417
+ {
2418
+ "name": "_userWallet",
2419
+ "type": "address"
2420
+ }
2421
+ ],
2422
+ "name": "convertWethToEth",
2423
+ "outputs": [
2424
+ {
2425
+ "name": "",
2426
+ "type": "uint256"
2427
+ },
2428
+ {
2429
+ "name": "",
2430
+ "type": "uint256"
2431
+ }
2432
+ ],
2433
+ "stateMutability": "nonpayable",
2434
+ "type": "function"
2435
+ },
2436
+ {
2437
+ "inputs": [
2438
+ {
2439
+ "name": "_userWallet",
2440
+ "type": "address"
2441
+ },
2442
+ {
2443
+ "name": "_amount",
2444
+ "type": "uint256"
2445
+ }
2446
+ ],
2447
+ "name": "convertWethToEth",
2448
+ "outputs": [
2449
+ {
2450
+ "name": "",
2451
+ "type": "uint256"
2452
+ },
2453
+ {
2454
+ "name": "",
2455
+ "type": "uint256"
2456
+ }
2457
+ ],
2458
+ "stateMutability": "nonpayable",
2459
+ "type": "function"
2460
+ },
2461
+ {
2462
+ "inputs": [
2463
+ {
2464
+ "name": "_userWallet",
2465
+ "type": "address"
2466
+ },
2467
+ {
2468
+ "name": "_amount",
2469
+ "type": "uint256"
2470
+ },
2471
+ {
2472
+ "components": [
2473
+ {
2474
+ "name": "signature",
2475
+ "type": "bytes"
2476
+ },
2477
+ {
2478
+ "name": "nonce",
2479
+ "type": "uint256"
2480
+ },
2481
+ {
2482
+ "name": "expiration",
2483
+ "type": "uint256"
2484
+ }
2485
+ ],
2486
+ "name": "_sig",
2487
+ "type": "tuple"
2488
+ }
2489
+ ],
2490
+ "name": "convertWethToEth",
2491
+ "outputs": [
2492
+ {
2493
+ "name": "",
2494
+ "type": "uint256"
2495
+ },
2496
+ {
2497
+ "name": "",
2498
+ "type": "uint256"
2499
+ }
2500
+ ],
2501
+ "stateMutability": "nonpayable",
2502
+ "type": "function"
2503
+ },
2504
+ {
2505
+ "inputs": [
2506
+ {
2507
+ "name": "_userWallet",
2508
+ "type": "address"
2509
+ }
2510
+ ],
2511
+ "name": "convertEthToWeth",
2512
+ "outputs": [
2513
+ {
2514
+ "name": "",
2515
+ "type": "uint256"
2516
+ },
2517
+ {
2518
+ "name": "",
2519
+ "type": "uint256"
2520
+ }
2521
+ ],
2522
+ "stateMutability": "nonpayable",
2523
+ "type": "function"
2524
+ },
2525
+ {
2526
+ "inputs": [
2527
+ {
2528
+ "name": "_userWallet",
2529
+ "type": "address"
2530
+ },
2531
+ {
2532
+ "name": "_amount",
2533
+ "type": "uint256"
2534
+ }
2535
+ ],
2536
+ "name": "convertEthToWeth",
2537
+ "outputs": [
2538
+ {
2539
+ "name": "",
2540
+ "type": "uint256"
2541
+ },
2542
+ {
2543
+ "name": "",
2544
+ "type": "uint256"
2545
+ }
2546
+ ],
2547
+ "stateMutability": "nonpayable",
2548
+ "type": "function"
2549
+ },
2550
+ {
2551
+ "inputs": [
2552
+ {
2553
+ "name": "_userWallet",
2554
+ "type": "address"
2555
+ },
2556
+ {
2557
+ "name": "_amount",
2558
+ "type": "uint256"
2559
+ },
2560
+ {
2561
+ "components": [
2562
+ {
2563
+ "name": "signature",
2564
+ "type": "bytes"
2565
+ },
2566
+ {
2567
+ "name": "nonce",
2568
+ "type": "uint256"
2569
+ },
2570
+ {
2571
+ "name": "expiration",
2572
+ "type": "uint256"
2573
+ }
2574
+ ],
2575
+ "name": "_sig",
2576
+ "type": "tuple"
2577
+ }
2578
+ ],
2579
+ "name": "convertEthToWeth",
2580
+ "outputs": [
2581
+ {
2582
+ "name": "",
2583
+ "type": "uint256"
2584
+ },
2585
+ {
2586
+ "name": "",
2587
+ "type": "uint256"
2588
+ }
2589
+ ],
2590
+ "stateMutability": "nonpayable",
2591
+ "type": "function"
2592
+ },
2593
+ {
2594
+ "inputs": [
2595
+ {
2596
+ "name": "_userWallet",
2597
+ "type": "address"
2598
+ },
2599
+ {
2600
+ "name": "_legoId",
2601
+ "type": "uint256"
2602
+ },
2603
+ {
2604
+ "name": "_pool",
2605
+ "type": "address"
2606
+ },
2607
+ {
2608
+ "name": "_tokenA",
2609
+ "type": "address"
2610
+ },
2611
+ {
2612
+ "name": "_tokenB",
2613
+ "type": "address"
2614
+ }
2615
+ ],
2616
+ "name": "addLiquidity",
2617
+ "outputs": [
2618
+ {
2619
+ "name": "",
2620
+ "type": "uint256"
2621
+ },
2622
+ {
2623
+ "name": "",
2624
+ "type": "uint256"
2625
+ },
2626
+ {
2627
+ "name": "",
2628
+ "type": "uint256"
2629
+ },
2630
+ {
2631
+ "name": "",
2632
+ "type": "uint256"
2633
+ }
2634
+ ],
2635
+ "stateMutability": "nonpayable",
2636
+ "type": "function"
2637
+ },
2638
+ {
2639
+ "inputs": [
2640
+ {
2641
+ "name": "_userWallet",
2642
+ "type": "address"
2643
+ },
2644
+ {
2645
+ "name": "_legoId",
2646
+ "type": "uint256"
2647
+ },
2648
+ {
2649
+ "name": "_pool",
2650
+ "type": "address"
2651
+ },
2652
+ {
2653
+ "name": "_tokenA",
2654
+ "type": "address"
2655
+ },
2656
+ {
2657
+ "name": "_tokenB",
2658
+ "type": "address"
2659
+ },
2660
+ {
2661
+ "name": "_amountA",
2662
+ "type": "uint256"
2663
+ }
2664
+ ],
2665
+ "name": "addLiquidity",
2666
+ "outputs": [
2667
+ {
2668
+ "name": "",
2669
+ "type": "uint256"
2670
+ },
2671
+ {
2672
+ "name": "",
2673
+ "type": "uint256"
2674
+ },
2675
+ {
2676
+ "name": "",
2677
+ "type": "uint256"
2678
+ },
2679
+ {
2680
+ "name": "",
2681
+ "type": "uint256"
2682
+ }
2683
+ ],
2684
+ "stateMutability": "nonpayable",
2685
+ "type": "function"
2686
+ },
2687
+ {
2688
+ "inputs": [
2689
+ {
2690
+ "name": "_userWallet",
2691
+ "type": "address"
2692
+ },
2693
+ {
2694
+ "name": "_legoId",
2695
+ "type": "uint256"
2696
+ },
2697
+ {
2698
+ "name": "_pool",
2699
+ "type": "address"
2700
+ },
2701
+ {
2702
+ "name": "_tokenA",
2703
+ "type": "address"
2704
+ },
2705
+ {
2706
+ "name": "_tokenB",
2707
+ "type": "address"
2708
+ },
2709
+ {
2710
+ "name": "_amountA",
2711
+ "type": "uint256"
2712
+ },
2713
+ {
2714
+ "name": "_amountB",
2715
+ "type": "uint256"
2716
+ }
2717
+ ],
2718
+ "name": "addLiquidity",
2719
+ "outputs": [
2720
+ {
2721
+ "name": "",
2722
+ "type": "uint256"
2723
+ },
2724
+ {
2725
+ "name": "",
2726
+ "type": "uint256"
2727
+ },
2728
+ {
2729
+ "name": "",
2730
+ "type": "uint256"
2731
+ },
2732
+ {
2733
+ "name": "",
2734
+ "type": "uint256"
2735
+ }
2736
+ ],
2737
+ "stateMutability": "nonpayable",
2738
+ "type": "function"
2739
+ },
2740
+ {
2741
+ "inputs": [
2742
+ {
2743
+ "name": "_userWallet",
2744
+ "type": "address"
2745
+ },
2746
+ {
2747
+ "name": "_legoId",
2748
+ "type": "uint256"
2749
+ },
2750
+ {
2751
+ "name": "_pool",
2752
+ "type": "address"
2753
+ },
2754
+ {
2755
+ "name": "_tokenA",
2756
+ "type": "address"
2757
+ },
2758
+ {
2759
+ "name": "_tokenB",
2760
+ "type": "address"
2761
+ },
2762
+ {
2763
+ "name": "_amountA",
2764
+ "type": "uint256"
2765
+ },
2766
+ {
2767
+ "name": "_amountB",
2768
+ "type": "uint256"
2769
+ },
2770
+ {
2771
+ "name": "_minAmountA",
2772
+ "type": "uint256"
2773
+ }
2774
+ ],
2775
+ "name": "addLiquidity",
2776
+ "outputs": [
2777
+ {
2778
+ "name": "",
2779
+ "type": "uint256"
2780
+ },
2781
+ {
2782
+ "name": "",
2783
+ "type": "uint256"
2784
+ },
2785
+ {
2786
+ "name": "",
2787
+ "type": "uint256"
2788
+ },
2789
+ {
2790
+ "name": "",
2791
+ "type": "uint256"
2792
+ }
2793
+ ],
2794
+ "stateMutability": "nonpayable",
2795
+ "type": "function"
2796
+ },
2797
+ {
2798
+ "inputs": [
2799
+ {
2800
+ "name": "_userWallet",
2801
+ "type": "address"
2802
+ },
2803
+ {
2804
+ "name": "_legoId",
2805
+ "type": "uint256"
2806
+ },
2807
+ {
2808
+ "name": "_pool",
2809
+ "type": "address"
2810
+ },
2811
+ {
2812
+ "name": "_tokenA",
2813
+ "type": "address"
2814
+ },
2815
+ {
2816
+ "name": "_tokenB",
2817
+ "type": "address"
2818
+ },
2819
+ {
2820
+ "name": "_amountA",
2821
+ "type": "uint256"
2822
+ },
2823
+ {
2824
+ "name": "_amountB",
2825
+ "type": "uint256"
2826
+ },
2827
+ {
2828
+ "name": "_minAmountA",
2829
+ "type": "uint256"
2830
+ },
2831
+ {
2832
+ "name": "_minAmountB",
2833
+ "type": "uint256"
2834
+ }
2835
+ ],
2836
+ "name": "addLiquidity",
2837
+ "outputs": [
2838
+ {
2839
+ "name": "",
2840
+ "type": "uint256"
2841
+ },
2842
+ {
2843
+ "name": "",
2844
+ "type": "uint256"
2845
+ },
2846
+ {
2847
+ "name": "",
2848
+ "type": "uint256"
2849
+ },
2850
+ {
2851
+ "name": "",
2852
+ "type": "uint256"
2853
+ }
2854
+ ],
2855
+ "stateMutability": "nonpayable",
2856
+ "type": "function"
2857
+ },
2858
+ {
2859
+ "inputs": [
2860
+ {
2861
+ "name": "_userWallet",
2862
+ "type": "address"
2863
+ },
2864
+ {
2865
+ "name": "_legoId",
2866
+ "type": "uint256"
2867
+ },
2868
+ {
2869
+ "name": "_pool",
2870
+ "type": "address"
2871
+ },
2872
+ {
2873
+ "name": "_tokenA",
2874
+ "type": "address"
2875
+ },
2876
+ {
2877
+ "name": "_tokenB",
2878
+ "type": "address"
2879
+ },
2880
+ {
2881
+ "name": "_amountA",
2882
+ "type": "uint256"
2883
+ },
2884
+ {
2885
+ "name": "_amountB",
2886
+ "type": "uint256"
2887
+ },
2888
+ {
2889
+ "name": "_minAmountA",
2890
+ "type": "uint256"
2891
+ },
2892
+ {
2893
+ "name": "_minAmountB",
2894
+ "type": "uint256"
2895
+ },
2896
+ {
2897
+ "name": "_minLpAmount",
2898
+ "type": "uint256"
2899
+ }
2900
+ ],
2901
+ "name": "addLiquidity",
2902
+ "outputs": [
2903
+ {
2904
+ "name": "",
2905
+ "type": "uint256"
2906
+ },
2907
+ {
2908
+ "name": "",
2909
+ "type": "uint256"
2910
+ },
2911
+ {
2912
+ "name": "",
2913
+ "type": "uint256"
2914
+ },
2915
+ {
2916
+ "name": "",
2917
+ "type": "uint256"
2918
+ }
2919
+ ],
2920
+ "stateMutability": "nonpayable",
2921
+ "type": "function"
2922
+ },
2923
+ {
2924
+ "inputs": [
2925
+ {
2926
+ "name": "_userWallet",
2927
+ "type": "address"
2928
+ },
2929
+ {
2930
+ "name": "_legoId",
2931
+ "type": "uint256"
2932
+ },
2933
+ {
2934
+ "name": "_pool",
2935
+ "type": "address"
2936
+ },
2937
+ {
2938
+ "name": "_tokenA",
2939
+ "type": "address"
2940
+ },
2941
+ {
2942
+ "name": "_tokenB",
2943
+ "type": "address"
2944
+ },
2945
+ {
2946
+ "name": "_amountA",
2947
+ "type": "uint256"
2948
+ },
2949
+ {
2950
+ "name": "_amountB",
2951
+ "type": "uint256"
2952
+ },
2953
+ {
2954
+ "name": "_minAmountA",
2955
+ "type": "uint256"
2956
+ },
2957
+ {
2958
+ "name": "_minAmountB",
2959
+ "type": "uint256"
2960
+ },
2961
+ {
2962
+ "name": "_minLpAmount",
2963
+ "type": "uint256"
2964
+ },
2965
+ {
2966
+ "name": "_extraData",
2967
+ "type": "bytes32"
2968
+ }
2969
+ ],
2970
+ "name": "addLiquidity",
2971
+ "outputs": [
2972
+ {
2973
+ "name": "",
2974
+ "type": "uint256"
2975
+ },
2976
+ {
2977
+ "name": "",
2978
+ "type": "uint256"
2979
+ },
2980
+ {
2981
+ "name": "",
2982
+ "type": "uint256"
2983
+ },
2984
+ {
2985
+ "name": "",
2986
+ "type": "uint256"
2987
+ }
2988
+ ],
2989
+ "stateMutability": "nonpayable",
2990
+ "type": "function"
2991
+ },
2992
+ {
2993
+ "inputs": [
2994
+ {
2995
+ "name": "_userWallet",
2996
+ "type": "address"
2997
+ },
2998
+ {
2999
+ "name": "_legoId",
3000
+ "type": "uint256"
3001
+ },
3002
+ {
3003
+ "name": "_pool",
3004
+ "type": "address"
3005
+ },
3006
+ {
3007
+ "name": "_tokenA",
3008
+ "type": "address"
3009
+ },
3010
+ {
3011
+ "name": "_tokenB",
3012
+ "type": "address"
3013
+ },
3014
+ {
3015
+ "name": "_amountA",
3016
+ "type": "uint256"
3017
+ },
3018
+ {
3019
+ "name": "_amountB",
3020
+ "type": "uint256"
3021
+ },
3022
+ {
3023
+ "name": "_minAmountA",
3024
+ "type": "uint256"
3025
+ },
3026
+ {
3027
+ "name": "_minAmountB",
3028
+ "type": "uint256"
3029
+ },
3030
+ {
3031
+ "name": "_minLpAmount",
3032
+ "type": "uint256"
3033
+ },
3034
+ {
3035
+ "name": "_extraData",
3036
+ "type": "bytes32"
3037
+ },
3038
+ {
3039
+ "components": [
3040
+ {
3041
+ "name": "signature",
3042
+ "type": "bytes"
3043
+ },
3044
+ {
3045
+ "name": "nonce",
3046
+ "type": "uint256"
3047
+ },
3048
+ {
3049
+ "name": "expiration",
3050
+ "type": "uint256"
3051
+ }
3052
+ ],
3053
+ "name": "_sig",
3054
+ "type": "tuple"
3055
+ }
3056
+ ],
3057
+ "name": "addLiquidity",
3058
+ "outputs": [
3059
+ {
3060
+ "name": "",
3061
+ "type": "uint256"
3062
+ },
3063
+ {
3064
+ "name": "",
3065
+ "type": "uint256"
3066
+ },
3067
+ {
3068
+ "name": "",
3069
+ "type": "uint256"
3070
+ },
3071
+ {
3072
+ "name": "",
3073
+ "type": "uint256"
3074
+ }
3075
+ ],
3076
+ "stateMutability": "nonpayable",
3077
+ "type": "function"
3078
+ },
3079
+ {
3080
+ "inputs": [
3081
+ {
3082
+ "name": "_userWallet",
3083
+ "type": "address"
3084
+ },
3085
+ {
3086
+ "name": "_legoId",
3087
+ "type": "uint256"
3088
+ },
3089
+ {
3090
+ "name": "_pool",
3091
+ "type": "address"
3092
+ },
3093
+ {
3094
+ "name": "_tokenA",
3095
+ "type": "address"
3096
+ },
3097
+ {
3098
+ "name": "_tokenB",
3099
+ "type": "address"
3100
+ },
3101
+ {
3102
+ "name": "_lpToken",
3103
+ "type": "address"
3104
+ }
3105
+ ],
3106
+ "name": "removeLiquidity",
3107
+ "outputs": [
3108
+ {
3109
+ "name": "",
3110
+ "type": "uint256"
3111
+ },
3112
+ {
3113
+ "name": "",
3114
+ "type": "uint256"
3115
+ },
3116
+ {
3117
+ "name": "",
3118
+ "type": "uint256"
3119
+ },
3120
+ {
3121
+ "name": "",
3122
+ "type": "uint256"
3123
+ }
3124
+ ],
3125
+ "stateMutability": "nonpayable",
3126
+ "type": "function"
3127
+ },
3128
+ {
3129
+ "inputs": [
3130
+ {
3131
+ "name": "_userWallet",
3132
+ "type": "address"
3133
+ },
3134
+ {
3135
+ "name": "_legoId",
3136
+ "type": "uint256"
3137
+ },
3138
+ {
3139
+ "name": "_pool",
3140
+ "type": "address"
3141
+ },
3142
+ {
3143
+ "name": "_tokenA",
3144
+ "type": "address"
3145
+ },
3146
+ {
3147
+ "name": "_tokenB",
3148
+ "type": "address"
3149
+ },
3150
+ {
3151
+ "name": "_lpToken",
3152
+ "type": "address"
3153
+ },
3154
+ {
3155
+ "name": "_lpAmount",
3156
+ "type": "uint256"
3157
+ }
3158
+ ],
3159
+ "name": "removeLiquidity",
3160
+ "outputs": [
3161
+ {
3162
+ "name": "",
3163
+ "type": "uint256"
3164
+ },
3165
+ {
3166
+ "name": "",
3167
+ "type": "uint256"
3168
+ },
3169
+ {
3170
+ "name": "",
3171
+ "type": "uint256"
3172
+ },
3173
+ {
3174
+ "name": "",
3175
+ "type": "uint256"
3176
+ }
3177
+ ],
3178
+ "stateMutability": "nonpayable",
3179
+ "type": "function"
3180
+ },
3181
+ {
3182
+ "inputs": [
3183
+ {
3184
+ "name": "_userWallet",
3185
+ "type": "address"
3186
+ },
3187
+ {
3188
+ "name": "_legoId",
3189
+ "type": "uint256"
3190
+ },
3191
+ {
3192
+ "name": "_pool",
3193
+ "type": "address"
3194
+ },
3195
+ {
3196
+ "name": "_tokenA",
3197
+ "type": "address"
3198
+ },
3199
+ {
3200
+ "name": "_tokenB",
3201
+ "type": "address"
3202
+ },
3203
+ {
3204
+ "name": "_lpToken",
3205
+ "type": "address"
3206
+ },
3207
+ {
3208
+ "name": "_lpAmount",
3209
+ "type": "uint256"
3210
+ },
3211
+ {
3212
+ "name": "_minAmountA",
3213
+ "type": "uint256"
3214
+ }
3215
+ ],
3216
+ "name": "removeLiquidity",
3217
+ "outputs": [
3218
+ {
3219
+ "name": "",
3220
+ "type": "uint256"
3221
+ },
3222
+ {
3223
+ "name": "",
3224
+ "type": "uint256"
3225
+ },
3226
+ {
3227
+ "name": "",
3228
+ "type": "uint256"
3229
+ },
3230
+ {
3231
+ "name": "",
3232
+ "type": "uint256"
3233
+ }
3234
+ ],
3235
+ "stateMutability": "nonpayable",
3236
+ "type": "function"
3237
+ },
3238
+ {
3239
+ "inputs": [
3240
+ {
3241
+ "name": "_userWallet",
3242
+ "type": "address"
3243
+ },
3244
+ {
3245
+ "name": "_legoId",
3246
+ "type": "uint256"
3247
+ },
3248
+ {
3249
+ "name": "_pool",
3250
+ "type": "address"
3251
+ },
3252
+ {
3253
+ "name": "_tokenA",
3254
+ "type": "address"
3255
+ },
3256
+ {
3257
+ "name": "_tokenB",
3258
+ "type": "address"
3259
+ },
3260
+ {
3261
+ "name": "_lpToken",
3262
+ "type": "address"
3263
+ },
3264
+ {
3265
+ "name": "_lpAmount",
3266
+ "type": "uint256"
3267
+ },
3268
+ {
3269
+ "name": "_minAmountA",
3270
+ "type": "uint256"
3271
+ },
3272
+ {
3273
+ "name": "_minAmountB",
3274
+ "type": "uint256"
3275
+ }
3276
+ ],
3277
+ "name": "removeLiquidity",
3278
+ "outputs": [
3279
+ {
3280
+ "name": "",
3281
+ "type": "uint256"
3282
+ },
3283
+ {
3284
+ "name": "",
3285
+ "type": "uint256"
3286
+ },
3287
+ {
3288
+ "name": "",
3289
+ "type": "uint256"
3290
+ },
3291
+ {
3292
+ "name": "",
3293
+ "type": "uint256"
3294
+ }
3295
+ ],
3296
+ "stateMutability": "nonpayable",
3297
+ "type": "function"
3298
+ },
3299
+ {
3300
+ "inputs": [
3301
+ {
3302
+ "name": "_userWallet",
3303
+ "type": "address"
3304
+ },
3305
+ {
3306
+ "name": "_legoId",
3307
+ "type": "uint256"
3308
+ },
3309
+ {
3310
+ "name": "_pool",
3311
+ "type": "address"
3312
+ },
3313
+ {
3314
+ "name": "_tokenA",
3315
+ "type": "address"
3316
+ },
3317
+ {
3318
+ "name": "_tokenB",
3319
+ "type": "address"
3320
+ },
3321
+ {
3322
+ "name": "_lpToken",
3323
+ "type": "address"
3324
+ },
3325
+ {
3326
+ "name": "_lpAmount",
3327
+ "type": "uint256"
3328
+ },
3329
+ {
3330
+ "name": "_minAmountA",
3331
+ "type": "uint256"
3332
+ },
3333
+ {
3334
+ "name": "_minAmountB",
3335
+ "type": "uint256"
3336
+ },
3337
+ {
3338
+ "name": "_extraData",
3339
+ "type": "bytes32"
3340
+ }
3341
+ ],
3342
+ "name": "removeLiquidity",
3343
+ "outputs": [
3344
+ {
3345
+ "name": "",
3346
+ "type": "uint256"
3347
+ },
3348
+ {
3349
+ "name": "",
3350
+ "type": "uint256"
3351
+ },
3352
+ {
3353
+ "name": "",
3354
+ "type": "uint256"
3355
+ },
3356
+ {
3357
+ "name": "",
3358
+ "type": "uint256"
3359
+ }
3360
+ ],
3361
+ "stateMutability": "nonpayable",
3362
+ "type": "function"
3363
+ },
3364
+ {
3365
+ "inputs": [
3366
+ {
3367
+ "name": "_userWallet",
3368
+ "type": "address"
3369
+ },
3370
+ {
3371
+ "name": "_legoId",
3372
+ "type": "uint256"
3373
+ },
3374
+ {
3375
+ "name": "_pool",
3376
+ "type": "address"
3377
+ },
3378
+ {
3379
+ "name": "_tokenA",
3380
+ "type": "address"
3381
+ },
3382
+ {
3383
+ "name": "_tokenB",
3384
+ "type": "address"
3385
+ },
3386
+ {
3387
+ "name": "_lpToken",
3388
+ "type": "address"
3389
+ },
3390
+ {
3391
+ "name": "_lpAmount",
3392
+ "type": "uint256"
3393
+ },
3394
+ {
3395
+ "name": "_minAmountA",
3396
+ "type": "uint256"
3397
+ },
3398
+ {
3399
+ "name": "_minAmountB",
3400
+ "type": "uint256"
3401
+ },
3402
+ {
3403
+ "name": "_extraData",
3404
+ "type": "bytes32"
3405
+ },
3406
+ {
3407
+ "components": [
3408
+ {
3409
+ "name": "signature",
3410
+ "type": "bytes"
3411
+ },
3412
+ {
3413
+ "name": "nonce",
3414
+ "type": "uint256"
3415
+ },
3416
+ {
3417
+ "name": "expiration",
3418
+ "type": "uint256"
3419
+ }
3420
+ ],
3421
+ "name": "_sig",
3422
+ "type": "tuple"
3423
+ }
3424
+ ],
3425
+ "name": "removeLiquidity",
3426
+ "outputs": [
3427
+ {
3428
+ "name": "",
3429
+ "type": "uint256"
3430
+ },
3431
+ {
3432
+ "name": "",
3433
+ "type": "uint256"
3434
+ },
3435
+ {
3436
+ "name": "",
3437
+ "type": "uint256"
3438
+ },
3439
+ {
3440
+ "name": "",
3441
+ "type": "uint256"
3442
+ }
3443
+ ],
3444
+ "stateMutability": "nonpayable",
3445
+ "type": "function"
3446
+ },
3447
+ {
3448
+ "inputs": [
3449
+ {
3450
+ "name": "_userWallet",
3451
+ "type": "address"
3452
+ },
3453
+ {
3454
+ "name": "_legoId",
3455
+ "type": "uint256"
3456
+ },
3457
+ {
3458
+ "name": "_nftAddr",
3459
+ "type": "address"
3460
+ },
3461
+ {
3462
+ "name": "_nftTokenId",
3463
+ "type": "uint256"
3464
+ },
3465
+ {
3466
+ "name": "_pool",
3467
+ "type": "address"
3468
+ },
3469
+ {
3470
+ "name": "_tokenA",
3471
+ "type": "address"
3472
+ },
3473
+ {
3474
+ "name": "_tokenB",
3475
+ "type": "address"
3476
+ }
3477
+ ],
3478
+ "name": "addLiquidityConcentrated",
3479
+ "outputs": [
3480
+ {
3481
+ "name": "",
3482
+ "type": "uint256"
3483
+ },
3484
+ {
3485
+ "name": "",
3486
+ "type": "uint256"
3487
+ },
3488
+ {
3489
+ "name": "",
3490
+ "type": "uint256"
3491
+ },
3492
+ {
3493
+ "name": "",
3494
+ "type": "uint256"
3495
+ },
3496
+ {
3497
+ "name": "",
3498
+ "type": "uint256"
3499
+ }
3500
+ ],
3501
+ "stateMutability": "nonpayable",
3502
+ "type": "function"
3503
+ },
3504
+ {
3505
+ "inputs": [
3506
+ {
3507
+ "name": "_userWallet",
3508
+ "type": "address"
3509
+ },
3510
+ {
3511
+ "name": "_legoId",
3512
+ "type": "uint256"
3513
+ },
3514
+ {
3515
+ "name": "_nftAddr",
3516
+ "type": "address"
3517
+ },
3518
+ {
3519
+ "name": "_nftTokenId",
3520
+ "type": "uint256"
3521
+ },
3522
+ {
3523
+ "name": "_pool",
3524
+ "type": "address"
3525
+ },
3526
+ {
3527
+ "name": "_tokenA",
3528
+ "type": "address"
3529
+ },
3530
+ {
3531
+ "name": "_tokenB",
3532
+ "type": "address"
3533
+ },
3534
+ {
3535
+ "name": "_amountA",
3536
+ "type": "uint256"
3537
+ }
3538
+ ],
3539
+ "name": "addLiquidityConcentrated",
3540
+ "outputs": [
3541
+ {
3542
+ "name": "",
3543
+ "type": "uint256"
3544
+ },
3545
+ {
3546
+ "name": "",
3547
+ "type": "uint256"
3548
+ },
3549
+ {
3550
+ "name": "",
3551
+ "type": "uint256"
3552
+ },
3553
+ {
3554
+ "name": "",
3555
+ "type": "uint256"
3556
+ },
3557
+ {
3558
+ "name": "",
3559
+ "type": "uint256"
3560
+ }
3561
+ ],
3562
+ "stateMutability": "nonpayable",
3563
+ "type": "function"
3564
+ },
3565
+ {
3566
+ "inputs": [
3567
+ {
3568
+ "name": "_userWallet",
3569
+ "type": "address"
3570
+ },
3571
+ {
3572
+ "name": "_legoId",
3573
+ "type": "uint256"
3574
+ },
3575
+ {
3576
+ "name": "_nftAddr",
3577
+ "type": "address"
3578
+ },
3579
+ {
3580
+ "name": "_nftTokenId",
3581
+ "type": "uint256"
3582
+ },
3583
+ {
3584
+ "name": "_pool",
3585
+ "type": "address"
3586
+ },
3587
+ {
3588
+ "name": "_tokenA",
3589
+ "type": "address"
3590
+ },
3591
+ {
3592
+ "name": "_tokenB",
3593
+ "type": "address"
3594
+ },
3595
+ {
3596
+ "name": "_amountA",
3597
+ "type": "uint256"
3598
+ },
3599
+ {
3600
+ "name": "_amountB",
3601
+ "type": "uint256"
3602
+ }
3603
+ ],
3604
+ "name": "addLiquidityConcentrated",
3605
+ "outputs": [
3606
+ {
3607
+ "name": "",
3608
+ "type": "uint256"
3609
+ },
3610
+ {
3611
+ "name": "",
3612
+ "type": "uint256"
3613
+ },
3614
+ {
3615
+ "name": "",
3616
+ "type": "uint256"
3617
+ },
3618
+ {
3619
+ "name": "",
3620
+ "type": "uint256"
3621
+ },
3622
+ {
3623
+ "name": "",
3624
+ "type": "uint256"
3625
+ }
3626
+ ],
3627
+ "stateMutability": "nonpayable",
3628
+ "type": "function"
3629
+ },
3630
+ {
3631
+ "inputs": [
3632
+ {
3633
+ "name": "_userWallet",
3634
+ "type": "address"
3635
+ },
3636
+ {
3637
+ "name": "_legoId",
3638
+ "type": "uint256"
3639
+ },
3640
+ {
3641
+ "name": "_nftAddr",
3642
+ "type": "address"
3643
+ },
3644
+ {
3645
+ "name": "_nftTokenId",
3646
+ "type": "uint256"
3647
+ },
3648
+ {
3649
+ "name": "_pool",
3650
+ "type": "address"
3651
+ },
3652
+ {
3653
+ "name": "_tokenA",
3654
+ "type": "address"
3655
+ },
3656
+ {
3657
+ "name": "_tokenB",
3658
+ "type": "address"
3659
+ },
3660
+ {
3661
+ "name": "_amountA",
3662
+ "type": "uint256"
3663
+ },
3664
+ {
3665
+ "name": "_amountB",
3666
+ "type": "uint256"
3667
+ },
3668
+ {
3669
+ "name": "_tickLower",
3670
+ "type": "int24"
3671
+ }
3672
+ ],
3673
+ "name": "addLiquidityConcentrated",
3674
+ "outputs": [
3675
+ {
3676
+ "name": "",
3677
+ "type": "uint256"
3678
+ },
3679
+ {
3680
+ "name": "",
3681
+ "type": "uint256"
3682
+ },
3683
+ {
3684
+ "name": "",
3685
+ "type": "uint256"
3686
+ },
3687
+ {
3688
+ "name": "",
3689
+ "type": "uint256"
3690
+ },
3691
+ {
3692
+ "name": "",
3693
+ "type": "uint256"
3694
+ }
3695
+ ],
3696
+ "stateMutability": "nonpayable",
3697
+ "type": "function"
3698
+ },
3699
+ {
3700
+ "inputs": [
3701
+ {
3702
+ "name": "_userWallet",
3703
+ "type": "address"
3704
+ },
3705
+ {
3706
+ "name": "_legoId",
3707
+ "type": "uint256"
3708
+ },
3709
+ {
3710
+ "name": "_nftAddr",
3711
+ "type": "address"
3712
+ },
3713
+ {
3714
+ "name": "_nftTokenId",
3715
+ "type": "uint256"
3716
+ },
3717
+ {
3718
+ "name": "_pool",
3719
+ "type": "address"
3720
+ },
3721
+ {
3722
+ "name": "_tokenA",
3723
+ "type": "address"
3724
+ },
3725
+ {
3726
+ "name": "_tokenB",
3727
+ "type": "address"
3728
+ },
3729
+ {
3730
+ "name": "_amountA",
3731
+ "type": "uint256"
3732
+ },
3733
+ {
3734
+ "name": "_amountB",
3735
+ "type": "uint256"
3736
+ },
3737
+ {
3738
+ "name": "_tickLower",
3739
+ "type": "int24"
3740
+ },
3741
+ {
3742
+ "name": "_tickUpper",
3743
+ "type": "int24"
3744
+ }
3745
+ ],
3746
+ "name": "addLiquidityConcentrated",
3747
+ "outputs": [
3748
+ {
3749
+ "name": "",
3750
+ "type": "uint256"
3751
+ },
3752
+ {
3753
+ "name": "",
3754
+ "type": "uint256"
3755
+ },
3756
+ {
3757
+ "name": "",
3758
+ "type": "uint256"
3759
+ },
3760
+ {
3761
+ "name": "",
3762
+ "type": "uint256"
3763
+ },
3764
+ {
3765
+ "name": "",
3766
+ "type": "uint256"
3767
+ }
3768
+ ],
3769
+ "stateMutability": "nonpayable",
3770
+ "type": "function"
3771
+ },
3772
+ {
3773
+ "inputs": [
3774
+ {
3775
+ "name": "_userWallet",
3776
+ "type": "address"
3777
+ },
3778
+ {
3779
+ "name": "_legoId",
3780
+ "type": "uint256"
3781
+ },
3782
+ {
3783
+ "name": "_nftAddr",
3784
+ "type": "address"
3785
+ },
3786
+ {
3787
+ "name": "_nftTokenId",
3788
+ "type": "uint256"
3789
+ },
3790
+ {
3791
+ "name": "_pool",
3792
+ "type": "address"
3793
+ },
3794
+ {
3795
+ "name": "_tokenA",
3796
+ "type": "address"
3797
+ },
3798
+ {
3799
+ "name": "_tokenB",
3800
+ "type": "address"
3801
+ },
3802
+ {
3803
+ "name": "_amountA",
3804
+ "type": "uint256"
3805
+ },
3806
+ {
3807
+ "name": "_amountB",
3808
+ "type": "uint256"
3809
+ },
3810
+ {
3811
+ "name": "_tickLower",
3812
+ "type": "int24"
3813
+ },
3814
+ {
3815
+ "name": "_tickUpper",
3816
+ "type": "int24"
3817
+ },
3818
+ {
3819
+ "name": "_minAmountA",
3820
+ "type": "uint256"
3821
+ }
3822
+ ],
3823
+ "name": "addLiquidityConcentrated",
3824
+ "outputs": [
3825
+ {
3826
+ "name": "",
3827
+ "type": "uint256"
3828
+ },
3829
+ {
3830
+ "name": "",
3831
+ "type": "uint256"
3832
+ },
3833
+ {
3834
+ "name": "",
3835
+ "type": "uint256"
3836
+ },
3837
+ {
3838
+ "name": "",
3839
+ "type": "uint256"
3840
+ },
3841
+ {
3842
+ "name": "",
3843
+ "type": "uint256"
3844
+ }
3845
+ ],
3846
+ "stateMutability": "nonpayable",
3847
+ "type": "function"
3848
+ },
3849
+ {
3850
+ "inputs": [
3851
+ {
3852
+ "name": "_userWallet",
3853
+ "type": "address"
3854
+ },
3855
+ {
3856
+ "name": "_legoId",
3857
+ "type": "uint256"
3858
+ },
3859
+ {
3860
+ "name": "_nftAddr",
3861
+ "type": "address"
3862
+ },
3863
+ {
3864
+ "name": "_nftTokenId",
3865
+ "type": "uint256"
3866
+ },
3867
+ {
3868
+ "name": "_pool",
3869
+ "type": "address"
3870
+ },
3871
+ {
3872
+ "name": "_tokenA",
3873
+ "type": "address"
3874
+ },
3875
+ {
3876
+ "name": "_tokenB",
3877
+ "type": "address"
3878
+ },
3879
+ {
3880
+ "name": "_amountA",
3881
+ "type": "uint256"
3882
+ },
3883
+ {
3884
+ "name": "_amountB",
3885
+ "type": "uint256"
3886
+ },
3887
+ {
3888
+ "name": "_tickLower",
3889
+ "type": "int24"
3890
+ },
3891
+ {
3892
+ "name": "_tickUpper",
3893
+ "type": "int24"
3894
+ },
3895
+ {
3896
+ "name": "_minAmountA",
3897
+ "type": "uint256"
3898
+ },
3899
+ {
3900
+ "name": "_minAmountB",
3901
+ "type": "uint256"
3902
+ }
3903
+ ],
3904
+ "name": "addLiquidityConcentrated",
3905
+ "outputs": [
3906
+ {
3907
+ "name": "",
3908
+ "type": "uint256"
3909
+ },
3910
+ {
3911
+ "name": "",
3912
+ "type": "uint256"
3913
+ },
3914
+ {
3915
+ "name": "",
3916
+ "type": "uint256"
3917
+ },
3918
+ {
3919
+ "name": "",
3920
+ "type": "uint256"
3921
+ },
3922
+ {
3923
+ "name": "",
3924
+ "type": "uint256"
3925
+ }
3926
+ ],
3927
+ "stateMutability": "nonpayable",
3928
+ "type": "function"
3929
+ },
3930
+ {
3931
+ "inputs": [
3932
+ {
3933
+ "name": "_userWallet",
3934
+ "type": "address"
3935
+ },
3936
+ {
3937
+ "name": "_legoId",
3938
+ "type": "uint256"
3939
+ },
3940
+ {
3941
+ "name": "_nftAddr",
3942
+ "type": "address"
3943
+ },
3944
+ {
3945
+ "name": "_nftTokenId",
3946
+ "type": "uint256"
3947
+ },
3948
+ {
3949
+ "name": "_pool",
3950
+ "type": "address"
3951
+ },
3952
+ {
3953
+ "name": "_tokenA",
3954
+ "type": "address"
3955
+ },
3956
+ {
3957
+ "name": "_tokenB",
3958
+ "type": "address"
3959
+ },
3960
+ {
3961
+ "name": "_amountA",
3962
+ "type": "uint256"
3963
+ },
3964
+ {
3965
+ "name": "_amountB",
3966
+ "type": "uint256"
3967
+ },
3968
+ {
3969
+ "name": "_tickLower",
3970
+ "type": "int24"
3971
+ },
3972
+ {
3973
+ "name": "_tickUpper",
3974
+ "type": "int24"
3975
+ },
3976
+ {
3977
+ "name": "_minAmountA",
3978
+ "type": "uint256"
3979
+ },
3980
+ {
3981
+ "name": "_minAmountB",
3982
+ "type": "uint256"
3983
+ },
3984
+ {
3985
+ "name": "_extraData",
3986
+ "type": "bytes32"
3987
+ }
3988
+ ],
3989
+ "name": "addLiquidityConcentrated",
3990
+ "outputs": [
3991
+ {
3992
+ "name": "",
3993
+ "type": "uint256"
3994
+ },
3995
+ {
3996
+ "name": "",
3997
+ "type": "uint256"
3998
+ },
3999
+ {
4000
+ "name": "",
4001
+ "type": "uint256"
4002
+ },
4003
+ {
4004
+ "name": "",
4005
+ "type": "uint256"
4006
+ },
4007
+ {
4008
+ "name": "",
4009
+ "type": "uint256"
4010
+ }
4011
+ ],
4012
+ "stateMutability": "nonpayable",
4013
+ "type": "function"
4014
+ },
4015
+ {
4016
+ "inputs": [
4017
+ {
4018
+ "name": "_userWallet",
4019
+ "type": "address"
4020
+ },
4021
+ {
4022
+ "name": "_legoId",
4023
+ "type": "uint256"
4024
+ },
4025
+ {
4026
+ "name": "_nftAddr",
4027
+ "type": "address"
4028
+ },
4029
+ {
4030
+ "name": "_nftTokenId",
4031
+ "type": "uint256"
4032
+ },
4033
+ {
4034
+ "name": "_pool",
4035
+ "type": "address"
4036
+ },
4037
+ {
4038
+ "name": "_tokenA",
4039
+ "type": "address"
4040
+ },
4041
+ {
4042
+ "name": "_tokenB",
4043
+ "type": "address"
4044
+ },
4045
+ {
4046
+ "name": "_amountA",
4047
+ "type": "uint256"
4048
+ },
4049
+ {
4050
+ "name": "_amountB",
4051
+ "type": "uint256"
4052
+ },
4053
+ {
4054
+ "name": "_tickLower",
4055
+ "type": "int24"
4056
+ },
4057
+ {
4058
+ "name": "_tickUpper",
4059
+ "type": "int24"
4060
+ },
4061
+ {
4062
+ "name": "_minAmountA",
4063
+ "type": "uint256"
4064
+ },
4065
+ {
4066
+ "name": "_minAmountB",
4067
+ "type": "uint256"
4068
+ },
4069
+ {
4070
+ "name": "_extraData",
4071
+ "type": "bytes32"
4072
+ },
4073
+ {
4074
+ "components": [
4075
+ {
4076
+ "name": "signature",
4077
+ "type": "bytes"
4078
+ },
4079
+ {
4080
+ "name": "nonce",
4081
+ "type": "uint256"
4082
+ },
4083
+ {
4084
+ "name": "expiration",
4085
+ "type": "uint256"
4086
+ }
4087
+ ],
4088
+ "name": "_sig",
4089
+ "type": "tuple"
4090
+ }
4091
+ ],
4092
+ "name": "addLiquidityConcentrated",
4093
+ "outputs": [
4094
+ {
4095
+ "name": "",
4096
+ "type": "uint256"
4097
+ },
4098
+ {
4099
+ "name": "",
4100
+ "type": "uint256"
4101
+ },
4102
+ {
4103
+ "name": "",
4104
+ "type": "uint256"
4105
+ },
4106
+ {
4107
+ "name": "",
4108
+ "type": "uint256"
4109
+ },
4110
+ {
4111
+ "name": "",
4112
+ "type": "uint256"
4113
+ }
4114
+ ],
4115
+ "stateMutability": "nonpayable",
4116
+ "type": "function"
4117
+ },
4118
+ {
4119
+ "inputs": [
4120
+ {
4121
+ "name": "_userWallet",
4122
+ "type": "address"
4123
+ },
4124
+ {
4125
+ "name": "_legoId",
4126
+ "type": "uint256"
4127
+ },
4128
+ {
4129
+ "name": "_nftAddr",
4130
+ "type": "address"
4131
+ },
4132
+ {
4133
+ "name": "_nftTokenId",
4134
+ "type": "uint256"
4135
+ },
4136
+ {
4137
+ "name": "_pool",
4138
+ "type": "address"
4139
+ },
4140
+ {
4141
+ "name": "_tokenA",
4142
+ "type": "address"
4143
+ },
4144
+ {
4145
+ "name": "_tokenB",
4146
+ "type": "address"
4147
+ }
4148
+ ],
4149
+ "name": "removeLiquidityConcentrated",
4150
+ "outputs": [
4151
+ {
4152
+ "name": "",
4153
+ "type": "uint256"
4154
+ },
4155
+ {
4156
+ "name": "",
4157
+ "type": "uint256"
4158
+ },
4159
+ {
4160
+ "name": "",
4161
+ "type": "uint256"
4162
+ },
4163
+ {
4164
+ "name": "",
4165
+ "type": "uint256"
4166
+ }
4167
+ ],
4168
+ "stateMutability": "nonpayable",
4169
+ "type": "function"
4170
+ },
4171
+ {
4172
+ "inputs": [
4173
+ {
4174
+ "name": "_userWallet",
4175
+ "type": "address"
4176
+ },
4177
+ {
4178
+ "name": "_legoId",
4179
+ "type": "uint256"
4180
+ },
4181
+ {
4182
+ "name": "_nftAddr",
4183
+ "type": "address"
4184
+ },
4185
+ {
4186
+ "name": "_nftTokenId",
4187
+ "type": "uint256"
4188
+ },
4189
+ {
4190
+ "name": "_pool",
4191
+ "type": "address"
4192
+ },
4193
+ {
4194
+ "name": "_tokenA",
4195
+ "type": "address"
4196
+ },
4197
+ {
4198
+ "name": "_tokenB",
4199
+ "type": "address"
4200
+ },
4201
+ {
4202
+ "name": "_liqToRemove",
4203
+ "type": "uint256"
4204
+ }
4205
+ ],
4206
+ "name": "removeLiquidityConcentrated",
4207
+ "outputs": [
4208
+ {
4209
+ "name": "",
4210
+ "type": "uint256"
4211
+ },
4212
+ {
4213
+ "name": "",
4214
+ "type": "uint256"
4215
+ },
4216
+ {
4217
+ "name": "",
4218
+ "type": "uint256"
4219
+ },
4220
+ {
4221
+ "name": "",
4222
+ "type": "uint256"
4223
+ }
4224
+ ],
4225
+ "stateMutability": "nonpayable",
4226
+ "type": "function"
4227
+ },
4228
+ {
4229
+ "inputs": [
4230
+ {
4231
+ "name": "_userWallet",
4232
+ "type": "address"
4233
+ },
4234
+ {
4235
+ "name": "_legoId",
4236
+ "type": "uint256"
4237
+ },
4238
+ {
4239
+ "name": "_nftAddr",
4240
+ "type": "address"
4241
+ },
4242
+ {
4243
+ "name": "_nftTokenId",
4244
+ "type": "uint256"
4245
+ },
4246
+ {
4247
+ "name": "_pool",
4248
+ "type": "address"
4249
+ },
4250
+ {
4251
+ "name": "_tokenA",
4252
+ "type": "address"
4253
+ },
4254
+ {
4255
+ "name": "_tokenB",
4256
+ "type": "address"
4257
+ },
4258
+ {
4259
+ "name": "_liqToRemove",
4260
+ "type": "uint256"
4261
+ },
4262
+ {
4263
+ "name": "_minAmountA",
4264
+ "type": "uint256"
4265
+ }
4266
+ ],
4267
+ "name": "removeLiquidityConcentrated",
4268
+ "outputs": [
4269
+ {
4270
+ "name": "",
4271
+ "type": "uint256"
4272
+ },
4273
+ {
4274
+ "name": "",
4275
+ "type": "uint256"
4276
+ },
4277
+ {
4278
+ "name": "",
4279
+ "type": "uint256"
4280
+ },
4281
+ {
4282
+ "name": "",
4283
+ "type": "uint256"
4284
+ }
4285
+ ],
4286
+ "stateMutability": "nonpayable",
4287
+ "type": "function"
4288
+ },
4289
+ {
4290
+ "inputs": [
4291
+ {
4292
+ "name": "_userWallet",
4293
+ "type": "address"
4294
+ },
4295
+ {
4296
+ "name": "_legoId",
4297
+ "type": "uint256"
4298
+ },
4299
+ {
4300
+ "name": "_nftAddr",
4301
+ "type": "address"
4302
+ },
4303
+ {
4304
+ "name": "_nftTokenId",
4305
+ "type": "uint256"
4306
+ },
4307
+ {
4308
+ "name": "_pool",
4309
+ "type": "address"
4310
+ },
4311
+ {
4312
+ "name": "_tokenA",
4313
+ "type": "address"
4314
+ },
4315
+ {
4316
+ "name": "_tokenB",
4317
+ "type": "address"
4318
+ },
4319
+ {
4320
+ "name": "_liqToRemove",
4321
+ "type": "uint256"
4322
+ },
4323
+ {
4324
+ "name": "_minAmountA",
4325
+ "type": "uint256"
4326
+ },
4327
+ {
4328
+ "name": "_minAmountB",
4329
+ "type": "uint256"
4330
+ }
4331
+ ],
4332
+ "name": "removeLiquidityConcentrated",
4333
+ "outputs": [
4334
+ {
4335
+ "name": "",
4336
+ "type": "uint256"
4337
+ },
4338
+ {
4339
+ "name": "",
4340
+ "type": "uint256"
4341
+ },
4342
+ {
4343
+ "name": "",
4344
+ "type": "uint256"
4345
+ },
4346
+ {
4347
+ "name": "",
4348
+ "type": "uint256"
4349
+ }
4350
+ ],
4351
+ "stateMutability": "nonpayable",
4352
+ "type": "function"
4353
+ },
4354
+ {
4355
+ "inputs": [
4356
+ {
4357
+ "name": "_userWallet",
4358
+ "type": "address"
4359
+ },
4360
+ {
4361
+ "name": "_legoId",
4362
+ "type": "uint256"
4363
+ },
4364
+ {
4365
+ "name": "_nftAddr",
4366
+ "type": "address"
4367
+ },
4368
+ {
4369
+ "name": "_nftTokenId",
4370
+ "type": "uint256"
4371
+ },
4372
+ {
4373
+ "name": "_pool",
4374
+ "type": "address"
4375
+ },
4376
+ {
4377
+ "name": "_tokenA",
4378
+ "type": "address"
4379
+ },
4380
+ {
4381
+ "name": "_tokenB",
4382
+ "type": "address"
4383
+ },
4384
+ {
4385
+ "name": "_liqToRemove",
4386
+ "type": "uint256"
4387
+ },
4388
+ {
4389
+ "name": "_minAmountA",
4390
+ "type": "uint256"
4391
+ },
4392
+ {
4393
+ "name": "_minAmountB",
4394
+ "type": "uint256"
4395
+ },
4396
+ {
4397
+ "name": "_extraData",
4398
+ "type": "bytes32"
4399
+ }
4400
+ ],
4401
+ "name": "removeLiquidityConcentrated",
4402
+ "outputs": [
4403
+ {
4404
+ "name": "",
4405
+ "type": "uint256"
4406
+ },
4407
+ {
4408
+ "name": "",
4409
+ "type": "uint256"
4410
+ },
4411
+ {
4412
+ "name": "",
4413
+ "type": "uint256"
4414
+ },
4415
+ {
4416
+ "name": "",
4417
+ "type": "uint256"
4418
+ }
4419
+ ],
4420
+ "stateMutability": "nonpayable",
4421
+ "type": "function"
4422
+ },
4423
+ {
4424
+ "inputs": [
4425
+ {
4426
+ "name": "_userWallet",
4427
+ "type": "address"
4428
+ },
4429
+ {
4430
+ "name": "_legoId",
4431
+ "type": "uint256"
4432
+ },
4433
+ {
4434
+ "name": "_nftAddr",
4435
+ "type": "address"
4436
+ },
4437
+ {
4438
+ "name": "_nftTokenId",
4439
+ "type": "uint256"
4440
+ },
4441
+ {
4442
+ "name": "_pool",
4443
+ "type": "address"
4444
+ },
4445
+ {
4446
+ "name": "_tokenA",
4447
+ "type": "address"
4448
+ },
4449
+ {
4450
+ "name": "_tokenB",
4451
+ "type": "address"
4452
+ },
4453
+ {
4454
+ "name": "_liqToRemove",
4455
+ "type": "uint256"
4456
+ },
4457
+ {
4458
+ "name": "_minAmountA",
4459
+ "type": "uint256"
4460
+ },
4461
+ {
4462
+ "name": "_minAmountB",
4463
+ "type": "uint256"
4464
+ },
4465
+ {
4466
+ "name": "_extraData",
4467
+ "type": "bytes32"
4468
+ },
4469
+ {
4470
+ "components": [
4471
+ {
4472
+ "name": "signature",
4473
+ "type": "bytes"
4474
+ },
4475
+ {
4476
+ "name": "nonce",
4477
+ "type": "uint256"
4478
+ },
4479
+ {
4480
+ "name": "expiration",
4481
+ "type": "uint256"
4482
+ }
4483
+ ],
4484
+ "name": "_sig",
4485
+ "type": "tuple"
4486
+ }
4487
+ ],
4488
+ "name": "removeLiquidityConcentrated",
4489
+ "outputs": [
4490
+ {
4491
+ "name": "",
4492
+ "type": "uint256"
4493
+ },
4494
+ {
4495
+ "name": "",
4496
+ "type": "uint256"
4497
+ },
4498
+ {
4499
+ "name": "",
4500
+ "type": "uint256"
4501
+ },
4502
+ {
4503
+ "name": "",
4504
+ "type": "uint256"
4505
+ }
4506
+ ],
4507
+ "stateMutability": "nonpayable",
4508
+ "type": "function"
4509
+ },
4510
+ {
4511
+ "inputs": [
4512
+ {
4513
+ "name": "_userWallet",
4514
+ "type": "address"
4515
+ },
4516
+ {
4517
+ "components": [
4518
+ {
4519
+ "name": "usePrevAmountOut",
4520
+ "type": "bool"
4521
+ },
4522
+ {
4523
+ "name": "action",
4524
+ "type": "uint8"
4525
+ },
4526
+ {
4527
+ "name": "legoId",
4528
+ "type": "uint16"
4529
+ },
4530
+ {
4531
+ "name": "asset",
4532
+ "type": "address"
4533
+ },
4534
+ {
4535
+ "name": "target",
4536
+ "type": "address"
4537
+ },
4538
+ {
4539
+ "name": "amount",
4540
+ "type": "uint256"
4541
+ },
4542
+ {
4543
+ "name": "asset2",
4544
+ "type": "address"
4545
+ },
4546
+ {
4547
+ "name": "amount2",
4548
+ "type": "uint256"
4549
+ },
4550
+ {
4551
+ "name": "minOut1",
4552
+ "type": "uint256"
4553
+ },
4554
+ {
4555
+ "name": "minOut2",
4556
+ "type": "uint256"
4557
+ },
4558
+ {
4559
+ "name": "tickLower",
4560
+ "type": "int24"
4561
+ },
4562
+ {
4563
+ "name": "tickUpper",
4564
+ "type": "int24"
4565
+ },
4566
+ {
4567
+ "name": "extraData",
4568
+ "type": "bytes32"
4569
+ },
4570
+ {
4571
+ "name": "auxData",
4572
+ "type": "bytes32"
4573
+ },
4574
+ {
4575
+ "components": [
4576
+ {
4577
+ "name": "legoId",
4578
+ "type": "uint256"
4579
+ },
4580
+ {
4581
+ "name": "amountIn",
4582
+ "type": "uint256"
4583
+ },
4584
+ {
4585
+ "name": "minAmountOut",
4586
+ "type": "uint256"
4587
+ },
4588
+ {
4589
+ "name": "tokenPath",
4590
+ "type": "address[]"
4591
+ },
4592
+ {
4593
+ "name": "poolPath",
4594
+ "type": "address[]"
4595
+ }
4596
+ ],
4597
+ "name": "swapInstructions",
4598
+ "type": "tuple[]"
4599
+ }
4600
+ ],
4601
+ "name": "_instructions",
4602
+ "type": "tuple[]"
4603
+ }
4604
+ ],
4605
+ "name": "performBatchActions",
4606
+ "outputs": [
4607
+ {
4608
+ "name": "",
4609
+ "type": "bool"
4610
+ }
4611
+ ],
4612
+ "stateMutability": "nonpayable",
4613
+ "type": "function"
4614
+ },
4615
+ {
4616
+ "inputs": [
4617
+ {
4618
+ "name": "_userWallet",
4619
+ "type": "address"
4620
+ },
4621
+ {
4622
+ "components": [
4623
+ {
4624
+ "name": "usePrevAmountOut",
4625
+ "type": "bool"
4626
+ },
4627
+ {
4628
+ "name": "action",
4629
+ "type": "uint8"
4630
+ },
4631
+ {
4632
+ "name": "legoId",
4633
+ "type": "uint16"
4634
+ },
4635
+ {
4636
+ "name": "asset",
4637
+ "type": "address"
4638
+ },
4639
+ {
4640
+ "name": "target",
4641
+ "type": "address"
4642
+ },
4643
+ {
4644
+ "name": "amount",
4645
+ "type": "uint256"
4646
+ },
4647
+ {
4648
+ "name": "asset2",
4649
+ "type": "address"
4650
+ },
4651
+ {
4652
+ "name": "amount2",
4653
+ "type": "uint256"
4654
+ },
4655
+ {
4656
+ "name": "minOut1",
4657
+ "type": "uint256"
4658
+ },
4659
+ {
4660
+ "name": "minOut2",
4661
+ "type": "uint256"
4662
+ },
4663
+ {
4664
+ "name": "tickLower",
4665
+ "type": "int24"
4666
+ },
4667
+ {
4668
+ "name": "tickUpper",
4669
+ "type": "int24"
4670
+ },
4671
+ {
4672
+ "name": "extraData",
4673
+ "type": "bytes32"
4674
+ },
4675
+ {
4676
+ "name": "auxData",
4677
+ "type": "bytes32"
4678
+ },
4679
+ {
4680
+ "components": [
4681
+ {
4682
+ "name": "legoId",
4683
+ "type": "uint256"
4684
+ },
4685
+ {
4686
+ "name": "amountIn",
4687
+ "type": "uint256"
4688
+ },
4689
+ {
4690
+ "name": "minAmountOut",
4691
+ "type": "uint256"
4692
+ },
4693
+ {
4694
+ "name": "tokenPath",
4695
+ "type": "address[]"
4696
+ },
4697
+ {
4698
+ "name": "poolPath",
4699
+ "type": "address[]"
4700
+ }
4701
+ ],
4702
+ "name": "swapInstructions",
4703
+ "type": "tuple[]"
4704
+ }
4705
+ ],
4706
+ "name": "_instructions",
4707
+ "type": "tuple[]"
4708
+ },
4709
+ {
4710
+ "components": [
4711
+ {
4712
+ "name": "signature",
4713
+ "type": "bytes"
4714
+ },
4715
+ {
4716
+ "name": "nonce",
4717
+ "type": "uint256"
4718
+ },
4719
+ {
4720
+ "name": "expiration",
4721
+ "type": "uint256"
4722
+ }
4723
+ ],
4724
+ "name": "_sig",
4725
+ "type": "tuple"
4726
+ }
4727
+ ],
4728
+ "name": "performBatchActions",
4729
+ "outputs": [
4730
+ {
4731
+ "name": "",
4732
+ "type": "bool"
4733
+ }
4734
+ ],
4735
+ "stateMutability": "nonpayable",
4736
+ "type": "function"
4737
+ },
4738
+ {
4739
+ "inputs": [],
4740
+ "name": "incrementNonce",
4741
+ "outputs": [],
4742
+ "stateMutability": "nonpayable",
4743
+ "type": "function"
4744
+ },
4745
+ {
4746
+ "inputs": [],
4747
+ "name": "getNonce",
4748
+ "outputs": [
4749
+ {
4750
+ "name": "",
4751
+ "type": "uint256"
4752
+ }
4753
+ ],
4754
+ "stateMutability": "view",
4755
+ "type": "function"
4756
+ },
4757
+ {
4758
+ "inputs": [],
4759
+ "name": "groupId",
4760
+ "outputs": [
4761
+ {
4762
+ "name": "",
4763
+ "type": "uint256"
4764
+ }
4765
+ ],
4766
+ "stateMutability": "view",
4767
+ "type": "function"
4768
+ },
4769
+ {
4770
+ "inputs": [],
4771
+ "name": "currentNonce",
4772
+ "outputs": [
4773
+ {
4774
+ "name": "",
4775
+ "type": "uint256"
4776
+ }
4777
+ ],
4778
+ "stateMutability": "view",
4779
+ "type": "function"
4780
+ },
4781
+ {
4782
+ "inputs": [
4783
+ {
4784
+ "name": "_undyHq",
4785
+ "type": "address"
4786
+ },
4787
+ {
4788
+ "name": "_owner",
4789
+ "type": "address"
4790
+ },
4791
+ {
4792
+ "name": "_groupId",
4793
+ "type": "uint256"
4794
+ },
4795
+ {
4796
+ "name": "_minTimeLock",
4797
+ "type": "uint256"
4798
+ },
4799
+ {
4800
+ "name": "_maxTimeLock",
4801
+ "type": "uint256"
4802
+ }
4803
+ ],
4804
+ "outputs": [],
4805
+ "stateMutability": "nonpayable",
4806
+ "type": "constructor"
4807
+ }
4808
+ ];
4809
+ export const deployAddress = '0x9d3F593380875860cC18F5736373ae4B084Ba2F9';
4810
+ function getRequest(method, args, contractAddressOrOptions) {
4811
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
4812
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
4813
+ const call = {
4814
+ contractName: 'AgentWrapperV1',
4815
+ method,
4816
+ args,
4817
+ address,
4818
+ deployAddress,
4819
+ defaultValue,
4820
+ getAbi: () => abi,
4821
+ with: (options) => {
4822
+ call.address = options.contractAddress;
4823
+ call.defaultValue = options.defaultValue;
4824
+ return call;
4825
+ },
4826
+ defaultTo: (defaultValue) => {
4827
+ call.defaultValue = defaultValue;
4828
+ return call;
4829
+ },
4830
+ at: (address) => {
4831
+ call.address = address;
4832
+ return call;
4833
+ },
4834
+ };
4835
+ return call;
4836
+ }
4837
+ export const call = {
4838
+ hasPendingOwnerChange: (...args) => getRequest('hasPendingOwnerChange', args),
4839
+ owner: (...args) => getRequest('owner', args),
4840
+ ownershipTimeLock: (...args) => getRequest('ownershipTimeLock', args),
4841
+ pendingOwner: (...args) => getRequest('pendingOwner', args),
4842
+ MIN_OWNERSHIP_TIMELOCK: (...args) => getRequest('MIN_OWNERSHIP_TIMELOCK', args),
4843
+ MAX_OWNERSHIP_TIMELOCK: (...args) => getRequest('MAX_OWNERSHIP_TIMELOCK', args),
4844
+ getNonce: (...args) => getRequest('getNonce', args),
4845
+ groupId: (...args) => getRequest('groupId', args),
4846
+ currentNonce: (...args) => getRequest('currentNonce', args),
4847
+ };
4848
+ function getMutation(functionName) {
4849
+ return {
4850
+ contractName: 'AgentWrapperV1',
4851
+ functionName,
4852
+ deployAddress,
4853
+ argsType: undefined,
4854
+ getAbi: () => abi,
4855
+ };
4856
+ }
4857
+ export const mutation = {
4858
+ changeOwnership: getMutation('changeOwnership'),
4859
+ confirmOwnershipChange: getMutation('confirmOwnershipChange'),
4860
+ cancelOwnershipChange: getMutation('cancelOwnershipChange'),
4861
+ setOwnershipTimeLock: getMutation('setOwnershipTimeLock'),
4862
+ transferFunds: getMutation('transferFunds'),
4863
+ depositForYield: getMutation('depositForYield'),
4864
+ withdrawFromYield: getMutation('withdrawFromYield'),
4865
+ rebalanceYieldPosition: getMutation('rebalanceYieldPosition'),
4866
+ swapTokens: getMutation('swapTokens'),
4867
+ mintOrRedeemAsset: getMutation('mintOrRedeemAsset'),
4868
+ confirmMintOrRedeemAsset: getMutation('confirmMintOrRedeemAsset'),
4869
+ addCollateral: getMutation('addCollateral'),
4870
+ removeCollateral: getMutation('removeCollateral'),
4871
+ borrow: getMutation('borrow'),
4872
+ repayDebt: getMutation('repayDebt'),
4873
+ claimRewards: getMutation('claimRewards'),
4874
+ convertWethToEth: getMutation('convertWethToEth'),
4875
+ convertEthToWeth: getMutation('convertEthToWeth'),
4876
+ addLiquidity: getMutation('addLiquidity'),
4877
+ removeLiquidity: getMutation('removeLiquidity'),
4878
+ addLiquidityConcentrated: getMutation('addLiquidityConcentrated'),
4879
+ removeLiquidityConcentrated: getMutation('removeLiquidityConcentrated'),
4880
+ performBatchActions: getMutation('performBatchActions'),
4881
+ incrementNonce: getMutation('incrementNonce'),
4882
+ };
4883
+ export function parseEvents(eventName, events) {
4884
+ return events.map((event) => {
4885
+ return {
4886
+ event,
4887
+ parsed: parseEventLogs({
4888
+ abi,
4889
+ eventName,
4890
+ logs: [event],
4891
+ }),
4892
+ };
4893
+ });
4894
+ }
4895
+ export function getEventTopic(eventName) {
4896
+ return encodeEventTopics({ abi, eventName })[0];
4897
+ }
4898
+ export function toSdk(deployAddress, publicClient, walletClient, addressResolver) {
4899
+ return {
4900
+ deployAddress,
4901
+ abi,
4902
+ events: {
4903
+ NonceIncremented: { topic: getEventTopic('NonceIncremented'), parse: (events) => parseEvents('NonceIncremented', events) },
4904
+ OwnershipChangeInitiated: { topic: getEventTopic('OwnershipChangeInitiated'), parse: (events) => parseEvents('OwnershipChangeInitiated', events) },
4905
+ OwnershipChangeConfirmed: { topic: getEventTopic('OwnershipChangeConfirmed'), parse: (events) => parseEvents('OwnershipChangeConfirmed', events) },
4906
+ OwnershipChangeCancelled: { topic: getEventTopic('OwnershipChangeCancelled'), parse: (events) => parseEvents('OwnershipChangeCancelled', events) },
4907
+ OwnershipTimeLockSet: { topic: getEventTopic('OwnershipTimeLockSet'), parse: (events) => parseEvents('OwnershipTimeLockSet', events) },
4908
+ },
4909
+ // Queries
4910
+ hasPendingOwnerChange: (...args) => singleQuery(publicClient, call.hasPendingOwnerChange(...args).at(deployAddress), {}, addressResolver),
4911
+ owner: (...args) => singleQuery(publicClient, call.owner(...args).at(deployAddress), {}, addressResolver),
4912
+ ownershipTimeLock: (...args) => singleQuery(publicClient, call.ownershipTimeLock(...args).at(deployAddress), {}, addressResolver),
4913
+ pendingOwner: (...args) => singleQuery(publicClient, call.pendingOwner(...args).at(deployAddress), {}, addressResolver),
4914
+ MIN_OWNERSHIP_TIMELOCK: (...args) => singleQuery(publicClient, call.MIN_OWNERSHIP_TIMELOCK(...args).at(deployAddress), {}, addressResolver),
4915
+ MAX_OWNERSHIP_TIMELOCK: (...args) => singleQuery(publicClient, call.MAX_OWNERSHIP_TIMELOCK(...args).at(deployAddress), {}, addressResolver),
4916
+ getNonce: (...args) => singleQuery(publicClient, call.getNonce(...args).at(deployAddress), {}, addressResolver),
4917
+ groupId: (...args) => singleQuery(publicClient, call.groupId(...args).at(deployAddress), {}, addressResolver),
4918
+ currentNonce: (...args) => singleQuery(publicClient, call.currentNonce(...args).at(deployAddress), {}, addressResolver),
4919
+ // Mutations
4920
+ changeOwnership: (...args) => mutate(walletClient, mutation.changeOwnership, { address: deployAddress, addressResolver })(...args),
4921
+ confirmOwnershipChange: (...args) => mutate(walletClient, mutation.confirmOwnershipChange, { address: deployAddress, addressResolver })(...args),
4922
+ cancelOwnershipChange: (...args) => mutate(walletClient, mutation.cancelOwnershipChange, { address: deployAddress, addressResolver })(...args),
4923
+ setOwnershipTimeLock: (...args) => mutate(walletClient, mutation.setOwnershipTimeLock, { address: deployAddress, addressResolver })(...args),
4924
+ transferFunds: (...args) => mutate(walletClient, mutation.transferFunds, { address: deployAddress, addressResolver })(...args),
4925
+ depositForYield: (...args) => mutate(walletClient, mutation.depositForYield, { address: deployAddress, addressResolver })(...args),
4926
+ withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield, { address: deployAddress, addressResolver })(...args),
4927
+ rebalanceYieldPosition: (...args) => mutate(walletClient, mutation.rebalanceYieldPosition, { address: deployAddress, addressResolver })(...args),
4928
+ swapTokens: (...args) => mutate(walletClient, mutation.swapTokens, { address: deployAddress, addressResolver })(...args),
4929
+ mintOrRedeemAsset: (...args) => mutate(walletClient, mutation.mintOrRedeemAsset, { address: deployAddress, addressResolver })(...args),
4930
+ confirmMintOrRedeemAsset: (...args) => mutate(walletClient, mutation.confirmMintOrRedeemAsset, { address: deployAddress, addressResolver })(...args),
4931
+ addCollateral: (...args) => mutate(walletClient, mutation.addCollateral, { address: deployAddress, addressResolver })(...args),
4932
+ removeCollateral: (...args) => mutate(walletClient, mutation.removeCollateral, { address: deployAddress, addressResolver })(...args),
4933
+ borrow: (...args) => mutate(walletClient, mutation.borrow, { address: deployAddress, addressResolver })(...args),
4934
+ repayDebt: (...args) => mutate(walletClient, mutation.repayDebt, { address: deployAddress, addressResolver })(...args),
4935
+ claimRewards: (...args) => mutate(walletClient, mutation.claimRewards, { address: deployAddress, addressResolver })(...args),
4936
+ convertWethToEth: (...args) => mutate(walletClient, mutation.convertWethToEth, { address: deployAddress, addressResolver })(...args),
4937
+ convertEthToWeth: (...args) => mutate(walletClient, mutation.convertEthToWeth, { address: deployAddress, addressResolver })(...args),
4938
+ addLiquidity: (...args) => mutate(walletClient, mutation.addLiquidity, { address: deployAddress, addressResolver })(...args),
4939
+ removeLiquidity: (...args) => mutate(walletClient, mutation.removeLiquidity, { address: deployAddress, addressResolver })(...args),
4940
+ addLiquidityConcentrated: (...args) => mutate(walletClient, mutation.addLiquidityConcentrated, { address: deployAddress, addressResolver })(...args),
4941
+ removeLiquidityConcentrated: (...args) => mutate(walletClient, mutation.removeLiquidityConcentrated, { address: deployAddress, addressResolver })(...args),
4942
+ performBatchActions: (...args) => mutate(walletClient, mutation.performBatchActions, { address: deployAddress, addressResolver })(...args),
4943
+ incrementNonce: (...args) => mutate(walletClient, mutation.incrementNonce, { address: deployAddress, addressResolver })(...args),
4944
+ };
4945
+ }