@underscore-finance/sdk 1.2.17 → 1.2.19

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