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