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