@underscore-finance/sdk 1.1.2 → 1.2.2

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