@underscore-finance/sdk 0.3.5 → 1.0.1

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