@underscore-finance/sdk 0.0.3 → 0.0.4

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 (57) hide show
  1. package/dist/contracts/AddyRegistry.d.ts.map +1 -1
  2. package/dist/contracts/AddyRegistry.js +318 -318
  3. package/dist/contracts/AgentFactory.d.ts.map +1 -1
  4. package/dist/contracts/AgentFactory.js +699 -699
  5. package/dist/contracts/AgentTemplate.d.ts.map +1 -1
  6. package/dist/contracts/AgentTemplate.js +1 -1
  7. package/dist/contracts/ChainlinkFeeds.d.ts.map +1 -1
  8. package/dist/contracts/ChainlinkFeeds.js +399 -399
  9. package/dist/contracts/LegoAaveV3.d.ts.map +1 -1
  10. package/dist/contracts/LegoAaveV3.js +643 -643
  11. package/dist/contracts/LegoAeroClassic.d.ts.map +1 -1
  12. package/dist/contracts/LegoAeroClassic.js +749 -749
  13. package/dist/contracts/LegoAeroSlipstream.d.ts.map +1 -1
  14. package/dist/contracts/LegoAeroSlipstream.js +820 -820
  15. package/dist/contracts/LegoCompoundV3.d.ts.map +1 -1
  16. package/dist/contracts/LegoCompoundV3.js +664 -664
  17. package/dist/contracts/LegoCurve.d.ts.map +1 -1
  18. package/dist/contracts/LegoCurve.js +732 -732
  19. package/dist/contracts/LegoEuler.d.ts.map +1 -1
  20. package/dist/contracts/LegoEuler.js +674 -674
  21. package/dist/contracts/LegoFluid.d.ts.map +1 -1
  22. package/dist/contracts/LegoFluid.js +629 -629
  23. package/dist/contracts/LegoHelper.d.ts +22 -16
  24. package/dist/contracts/LegoHelper.d.ts.map +1 -1
  25. package/dist/contracts/LegoHelper.js +1057 -1057
  26. package/dist/contracts/LegoMoonwell.d.ts.map +1 -1
  27. package/dist/contracts/LegoMoonwell.js +649 -649
  28. package/dist/contracts/LegoMorpho.d.ts.map +1 -1
  29. package/dist/contracts/LegoMorpho.js +674 -674
  30. package/dist/contracts/LegoRegistry.d.ts.map +1 -1
  31. package/dist/contracts/LegoRegistry.js +406 -406
  32. package/dist/contracts/LegoSky.d.ts.map +1 -1
  33. package/dist/contracts/LegoSky.js +557 -557
  34. package/dist/contracts/LegoUniswapV2.d.ts.map +1 -1
  35. package/dist/contracts/LegoUniswapV2.js +749 -749
  36. package/dist/contracts/LegoUniswapV3.d.ts.map +1 -1
  37. package/dist/contracts/LegoUniswapV3.js +849 -849
  38. package/dist/contracts/OracleRegistry.d.ts.map +1 -1
  39. package/dist/contracts/OracleRegistry.js +585 -585
  40. package/dist/contracts/PriceSheets.d.ts +18 -15
  41. package/dist/contracts/PriceSheets.d.ts.map +1 -1
  42. package/dist/contracts/PriceSheets.js +718 -718
  43. package/dist/contracts/PythFeeds.d.ts.map +1 -1
  44. package/dist/contracts/PythFeeds.js +352 -352
  45. package/dist/contracts/StorkFeeds.d.ts.map +1 -1
  46. package/dist/contracts/StorkFeeds.js +352 -352
  47. package/dist/contracts/WalletConfig.d.ts +1 -1
  48. package/dist/contracts/WalletConfig.d.ts.map +1 -1
  49. package/dist/contracts/WalletConfig.js +1 -1
  50. package/dist/contracts/WalletFunds.d.ts.map +1 -1
  51. package/dist/contracts/WalletFunds.js +1 -1
  52. package/dist/contracts/sdk.d.ts +1 -1
  53. package/dist/contracts/sdk.d.ts.map +1 -1
  54. package/dist/index.d.ts +3 -0
  55. package/dist/index.d.ts.map +1 -1
  56. package/dist/index.js +9 -0
  57. package/package.json +1 -1
@@ -5,1792 +5,1792 @@
5
5
  import { singleQuery, mutate } from '@dappql/async';
6
6
  export const abi = [
7
7
  {
8
- "inputs": [],
9
- "name": "aaveV3",
10
- "outputs": [
8
+ inputs: [],
9
+ name: 'aaveV3',
10
+ outputs: [
11
11
  {
12
- "name": "",
13
- "type": "address"
14
- }
12
+ name: '',
13
+ type: 'address',
14
+ },
15
15
  ],
16
- "stateMutability": "view",
17
- "type": "function"
16
+ stateMutability: 'view',
17
+ type: 'function',
18
18
  },
19
19
  {
20
- "inputs": [],
21
- "name": "aaveV3Id",
22
- "outputs": [
20
+ inputs: [],
21
+ name: 'aaveV3Id',
22
+ outputs: [
23
23
  {
24
- "name": "",
25
- "type": "uint256"
26
- }
24
+ name: '',
25
+ type: 'uint256',
26
+ },
27
27
  ],
28
- "stateMutability": "view",
29
- "type": "function"
28
+ stateMutability: 'view',
29
+ type: 'function',
30
30
  },
31
31
  {
32
- "inputs": [],
33
- "name": "compoundV3",
34
- "outputs": [
32
+ inputs: [],
33
+ name: 'compoundV3',
34
+ outputs: [
35
35
  {
36
- "name": "",
37
- "type": "address"
38
- }
36
+ name: '',
37
+ type: 'address',
38
+ },
39
39
  ],
40
- "stateMutability": "view",
41
- "type": "function"
40
+ stateMutability: 'view',
41
+ type: 'function',
42
42
  },
43
43
  {
44
- "inputs": [],
45
- "name": "compoundV3Id",
46
- "outputs": [
44
+ inputs: [],
45
+ name: 'compoundV3Id',
46
+ outputs: [
47
47
  {
48
- "name": "",
49
- "type": "uint256"
50
- }
48
+ name: '',
49
+ type: 'uint256',
50
+ },
51
51
  ],
52
- "stateMutability": "view",
53
- "type": "function"
52
+ stateMutability: 'view',
53
+ type: 'function',
54
54
  },
55
55
  {
56
- "inputs": [],
57
- "name": "euler",
58
- "outputs": [
56
+ inputs: [],
57
+ name: 'euler',
58
+ outputs: [
59
59
  {
60
- "name": "",
61
- "type": "address"
62
- }
60
+ name: '',
61
+ type: 'address',
62
+ },
63
63
  ],
64
- "stateMutability": "view",
65
- "type": "function"
64
+ stateMutability: 'view',
65
+ type: 'function',
66
66
  },
67
67
  {
68
- "inputs": [],
69
- "name": "eulerId",
70
- "outputs": [
68
+ inputs: [],
69
+ name: 'eulerId',
70
+ outputs: [
71
71
  {
72
- "name": "",
73
- "type": "uint256"
74
- }
72
+ name: '',
73
+ type: 'uint256',
74
+ },
75
75
  ],
76
- "stateMutability": "view",
77
- "type": "function"
76
+ stateMutability: 'view',
77
+ type: 'function',
78
78
  },
79
79
  {
80
- "inputs": [],
81
- "name": "fluid",
82
- "outputs": [
80
+ inputs: [],
81
+ name: 'fluid',
82
+ outputs: [
83
83
  {
84
- "name": "",
85
- "type": "address"
86
- }
84
+ name: '',
85
+ type: 'address',
86
+ },
87
87
  ],
88
- "stateMutability": "view",
89
- "type": "function"
88
+ stateMutability: 'view',
89
+ type: 'function',
90
90
  },
91
91
  {
92
- "inputs": [],
93
- "name": "fluidId",
94
- "outputs": [
92
+ inputs: [],
93
+ name: 'fluidId',
94
+ outputs: [
95
95
  {
96
- "name": "",
97
- "type": "uint256"
98
- }
96
+ name: '',
97
+ type: 'uint256',
98
+ },
99
99
  ],
100
- "stateMutability": "view",
101
- "type": "function"
100
+ stateMutability: 'view',
101
+ type: 'function',
102
102
  },
103
103
  {
104
- "inputs": [],
105
- "name": "moonwell",
106
- "outputs": [
104
+ inputs: [],
105
+ name: 'moonwell',
106
+ outputs: [
107
107
  {
108
- "name": "",
109
- "type": "address"
110
- }
108
+ name: '',
109
+ type: 'address',
110
+ },
111
111
  ],
112
- "stateMutability": "view",
113
- "type": "function"
112
+ stateMutability: 'view',
113
+ type: 'function',
114
114
  },
115
115
  {
116
- "inputs": [],
117
- "name": "moonwellId",
118
- "outputs": [
116
+ inputs: [],
117
+ name: 'moonwellId',
118
+ outputs: [
119
119
  {
120
- "name": "",
121
- "type": "uint256"
122
- }
120
+ name: '',
121
+ type: 'uint256',
122
+ },
123
123
  ],
124
- "stateMutability": "view",
125
- "type": "function"
124
+ stateMutability: 'view',
125
+ type: 'function',
126
126
  },
127
127
  {
128
- "inputs": [],
129
- "name": "morpho",
130
- "outputs": [
128
+ inputs: [],
129
+ name: 'morpho',
130
+ outputs: [
131
131
  {
132
- "name": "",
133
- "type": "address"
134
- }
132
+ name: '',
133
+ type: 'address',
134
+ },
135
135
  ],
136
- "stateMutability": "view",
137
- "type": "function"
136
+ stateMutability: 'view',
137
+ type: 'function',
138
138
  },
139
139
  {
140
- "inputs": [],
141
- "name": "morphoId",
142
- "outputs": [
140
+ inputs: [],
141
+ name: 'morphoId',
142
+ outputs: [
143
143
  {
144
- "name": "",
145
- "type": "uint256"
146
- }
144
+ name: '',
145
+ type: 'uint256',
146
+ },
147
147
  ],
148
- "stateMutability": "view",
149
- "type": "function"
148
+ stateMutability: 'view',
149
+ type: 'function',
150
150
  },
151
151
  {
152
- "inputs": [],
153
- "name": "sky",
154
- "outputs": [
152
+ inputs: [],
153
+ name: 'sky',
154
+ outputs: [
155
155
  {
156
- "name": "",
157
- "type": "address"
158
- }
156
+ name: '',
157
+ type: 'address',
158
+ },
159
159
  ],
160
- "stateMutability": "view",
161
- "type": "function"
160
+ stateMutability: 'view',
161
+ type: 'function',
162
162
  },
163
163
  {
164
- "inputs": [],
165
- "name": "skyId",
166
- "outputs": [
164
+ inputs: [],
165
+ name: 'skyId',
166
+ outputs: [
167
167
  {
168
- "name": "",
169
- "type": "uint256"
170
- }
168
+ name: '',
169
+ type: 'uint256',
170
+ },
171
171
  ],
172
- "stateMutability": "view",
173
- "type": "function"
172
+ stateMutability: 'view',
173
+ type: 'function',
174
174
  },
175
175
  {
176
- "inputs": [],
177
- "name": "uniswapV2",
178
- "outputs": [
176
+ inputs: [],
177
+ name: 'uniswapV2',
178
+ outputs: [
179
179
  {
180
- "name": "",
181
- "type": "address"
182
- }
180
+ name: '',
181
+ type: 'address',
182
+ },
183
183
  ],
184
- "stateMutability": "view",
185
- "type": "function"
184
+ stateMutability: 'view',
185
+ type: 'function',
186
186
  },
187
187
  {
188
- "inputs": [],
189
- "name": "uniswapV2Id",
190
- "outputs": [
188
+ inputs: [],
189
+ name: 'uniswapV2Id',
190
+ outputs: [
191
191
  {
192
- "name": "",
193
- "type": "uint256"
194
- }
192
+ name: '',
193
+ type: 'uint256',
194
+ },
195
195
  ],
196
- "stateMutability": "view",
197
- "type": "function"
196
+ stateMutability: 'view',
197
+ type: 'function',
198
198
  },
199
199
  {
200
- "inputs": [],
201
- "name": "uniswapV3",
202
- "outputs": [
200
+ inputs: [],
201
+ name: 'uniswapV3',
202
+ outputs: [
203
203
  {
204
- "name": "",
205
- "type": "address"
206
- }
204
+ name: '',
205
+ type: 'address',
206
+ },
207
207
  ],
208
- "stateMutability": "view",
209
- "type": "function"
208
+ stateMutability: 'view',
209
+ type: 'function',
210
210
  },
211
211
  {
212
- "inputs": [],
213
- "name": "uniswapV3Id",
214
- "outputs": [
212
+ inputs: [],
213
+ name: 'uniswapV3Id',
214
+ outputs: [
215
215
  {
216
- "name": "",
217
- "type": "uint256"
218
- }
216
+ name: '',
217
+ type: 'uint256',
218
+ },
219
219
  ],
220
- "stateMutability": "view",
221
- "type": "function"
220
+ stateMutability: 'view',
221
+ type: 'function',
222
222
  },
223
223
  {
224
- "inputs": [],
225
- "name": "aerodrome",
226
- "outputs": [
224
+ inputs: [],
225
+ name: 'aerodrome',
226
+ outputs: [
227
227
  {
228
- "name": "",
229
- "type": "address"
230
- }
228
+ name: '',
229
+ type: 'address',
230
+ },
231
231
  ],
232
- "stateMutability": "view",
233
- "type": "function"
232
+ stateMutability: 'view',
233
+ type: 'function',
234
234
  },
235
235
  {
236
- "inputs": [],
237
- "name": "aerodromeId",
238
- "outputs": [
236
+ inputs: [],
237
+ name: 'aerodromeId',
238
+ outputs: [
239
239
  {
240
- "name": "",
241
- "type": "uint256"
242
- }
240
+ name: '',
241
+ type: 'uint256',
242
+ },
243
243
  ],
244
- "stateMutability": "view",
245
- "type": "function"
244
+ stateMutability: 'view',
245
+ type: 'function',
246
246
  },
247
247
  {
248
- "inputs": [],
249
- "name": "aerodromeSlipstream",
250
- "outputs": [
248
+ inputs: [],
249
+ name: 'aerodromeSlipstream',
250
+ outputs: [
251
251
  {
252
- "name": "",
253
- "type": "address"
254
- }
252
+ name: '',
253
+ type: 'address',
254
+ },
255
255
  ],
256
- "stateMutability": "view",
257
- "type": "function"
256
+ stateMutability: 'view',
257
+ type: 'function',
258
258
  },
259
259
  {
260
- "inputs": [],
261
- "name": "aerodromeSlipstreamId",
262
- "outputs": [
260
+ inputs: [],
261
+ name: 'aerodromeSlipstreamId',
262
+ outputs: [
263
263
  {
264
- "name": "",
265
- "type": "uint256"
266
- }
264
+ name: '',
265
+ type: 'uint256',
266
+ },
267
267
  ],
268
- "stateMutability": "view",
269
- "type": "function"
268
+ stateMutability: 'view',
269
+ type: 'function',
270
270
  },
271
271
  {
272
- "inputs": [],
273
- "name": "curve",
274
- "outputs": [
272
+ inputs: [],
273
+ name: 'curve',
274
+ outputs: [
275
275
  {
276
- "name": "",
277
- "type": "address"
278
- }
276
+ name: '',
277
+ type: 'address',
278
+ },
279
279
  ],
280
- "stateMutability": "view",
281
- "type": "function"
280
+ stateMutability: 'view',
281
+ type: 'function',
282
282
  },
283
283
  {
284
- "inputs": [],
285
- "name": "curveId",
286
- "outputs": [
284
+ inputs: [],
285
+ name: 'curveId',
286
+ outputs: [
287
287
  {
288
- "name": "",
289
- "type": "uint256"
290
- }
288
+ name: '',
289
+ type: 'uint256',
290
+ },
291
291
  ],
292
- "stateMutability": "view",
293
- "type": "function"
292
+ stateMutability: 'view',
293
+ type: 'function',
294
294
  },
295
295
  {
296
- "inputs": [
296
+ inputs: [
297
297
  {
298
- "name": "_asset",
299
- "type": "address"
298
+ name: '_asset',
299
+ type: 'address',
300
300
  },
301
301
  {
302
- "name": "_assetAmount",
303
- "type": "uint256"
302
+ name: '_assetAmount',
303
+ type: 'uint256',
304
304
  },
305
305
  {
306
- "name": "_vaultToken",
307
- "type": "address"
308
- }
306
+ name: '_vaultToken',
307
+ type: 'address',
308
+ },
309
309
  ],
310
- "name": "getVaultTokenAmount",
311
- "outputs": [
310
+ name: 'getVaultTokenAmount',
311
+ outputs: [
312
312
  {
313
- "name": "",
314
- "type": "uint256"
315
- }
313
+ name: '',
314
+ type: 'uint256',
315
+ },
316
316
  ],
317
- "stateMutability": "view",
318
- "type": "function"
317
+ stateMutability: 'view',
318
+ type: 'function',
319
319
  },
320
320
  {
321
- "inputs": [
321
+ inputs: [
322
322
  {
323
- "name": "_vaultToken",
324
- "type": "address"
325
- }
323
+ name: '_vaultToken',
324
+ type: 'address',
325
+ },
326
326
  ],
327
- "name": "getLegoFromVaultToken",
328
- "outputs": [
327
+ name: 'getLegoFromVaultToken',
328
+ outputs: [
329
329
  {
330
- "name": "",
331
- "type": "uint256"
330
+ name: '',
331
+ type: 'uint256',
332
332
  },
333
333
  {
334
- "name": "",
335
- "type": "address"
334
+ name: '',
335
+ type: 'address',
336
336
  },
337
337
  {
338
- "name": "",
339
- "type": "string"
340
- }
338
+ name: '',
339
+ type: 'string',
340
+ },
341
341
  ],
342
- "stateMutability": "view",
343
- "type": "function"
342
+ stateMutability: 'view',
343
+ type: 'function',
344
344
  },
345
345
  {
346
- "inputs": [
346
+ inputs: [
347
347
  {
348
- "name": "_asset",
349
- "type": "address"
348
+ name: '_asset',
349
+ type: 'address',
350
350
  },
351
351
  {
352
- "name": "_amount",
353
- "type": "uint256"
354
- }
352
+ name: '_amount',
353
+ type: 'uint256',
354
+ },
355
355
  ],
356
- "name": "getUnderlyingData",
357
- "outputs": [
356
+ name: 'getUnderlyingData',
357
+ outputs: [
358
358
  {
359
- "components": [
359
+ components: [
360
360
  {
361
- "name": "asset",
362
- "type": "address"
361
+ name: 'asset',
362
+ type: 'address',
363
363
  },
364
364
  {
365
- "name": "amount",
366
- "type": "uint256"
365
+ name: 'amount',
366
+ type: 'uint256',
367
367
  },
368
368
  {
369
- "name": "usdValue",
370
- "type": "uint256"
369
+ name: 'usdValue',
370
+ type: 'uint256',
371
371
  },
372
372
  {
373
- "name": "legoId",
374
- "type": "uint256"
373
+ name: 'legoId',
374
+ type: 'uint256',
375
375
  },
376
376
  {
377
- "name": "legoAddr",
378
- "type": "address"
377
+ name: 'legoAddr',
378
+ type: 'address',
379
379
  },
380
380
  {
381
- "name": "legoDesc",
382
- "type": "string"
383
- }
381
+ name: 'legoDesc',
382
+ type: 'string',
383
+ },
384
384
  ],
385
- "name": "",
386
- "type": "tuple"
387
- }
385
+ name: '',
386
+ type: 'tuple',
387
+ },
388
388
  ],
389
- "stateMutability": "view",
390
- "type": "function"
389
+ stateMutability: 'view',
390
+ type: 'function',
391
391
  },
392
392
  {
393
- "inputs": [
393
+ inputs: [
394
394
  {
395
- "name": "_tokenIn",
396
- "type": "address"
395
+ name: '_tokenIn',
396
+ type: 'address',
397
397
  },
398
398
  {
399
- "name": "_tokenOut",
400
- "type": "address"
399
+ name: '_tokenOut',
400
+ type: 'address',
401
401
  },
402
402
  {
403
- "name": "_amountIn",
404
- "type": "uint256"
403
+ name: '_amountIn',
404
+ type: 'uint256',
405
405
  },
406
406
  {
407
- "name": "_slippage",
408
- "type": "uint256"
409
- }
407
+ name: '_slippage',
408
+ type: 'uint256',
409
+ },
410
410
  ],
411
- "name": "getRoutesAndSwapInstructionsAmountOut",
412
- "outputs": [
411
+ name: 'getRoutesAndSwapInstructionsAmountOut',
412
+ outputs: [
413
413
  {
414
- "components": [
414
+ components: [
415
415
  {
416
- "name": "legoId",
417
- "type": "uint256"
416
+ name: 'legoId',
417
+ type: 'uint256',
418
418
  },
419
419
  {
420
- "name": "amountIn",
421
- "type": "uint256"
420
+ name: 'amountIn',
421
+ type: 'uint256',
422
422
  },
423
423
  {
424
- "name": "minAmountOut",
425
- "type": "uint256"
424
+ name: 'minAmountOut',
425
+ type: 'uint256',
426
426
  },
427
427
  {
428
- "name": "tokenPath",
429
- "type": "address[]"
428
+ name: 'tokenPath',
429
+ type: 'address[]',
430
430
  },
431
431
  {
432
- "name": "poolPath",
433
- "type": "address[]"
434
- }
432
+ name: 'poolPath',
433
+ type: 'address[]',
434
+ },
435
435
  ],
436
- "name": "",
437
- "type": "tuple[]"
438
- }
436
+ name: '',
437
+ type: 'tuple[]',
438
+ },
439
439
  ],
440
- "stateMutability": "nonpayable",
441
- "type": "function"
440
+ stateMutability: 'nonpayable',
441
+ type: 'function',
442
442
  },
443
443
  {
444
- "inputs": [
444
+ inputs: [
445
445
  {
446
- "name": "_tokenIn",
447
- "type": "address"
446
+ name: '_tokenIn',
447
+ type: 'address',
448
448
  },
449
449
  {
450
- "name": "_tokenOut",
451
- "type": "address"
450
+ name: '_tokenOut',
451
+ type: 'address',
452
452
  },
453
453
  {
454
- "name": "_amountIn",
455
- "type": "uint256"
454
+ name: '_amountIn',
455
+ type: 'uint256',
456
456
  },
457
457
  {
458
- "name": "_slippage",
459
- "type": "uint256"
458
+ name: '_slippage',
459
+ type: 'uint256',
460
460
  },
461
461
  {
462
- "name": "_includeLegoIds",
463
- "type": "uint256[]"
464
- }
462
+ name: '_includeLegoIds',
463
+ type: 'uint256[]',
464
+ },
465
465
  ],
466
- "name": "getRoutesAndSwapInstructionsAmountOut",
467
- "outputs": [
466
+ name: 'getRoutesAndSwapInstructionsAmountOut',
467
+ outputs: [
468
468
  {
469
- "components": [
469
+ components: [
470
470
  {
471
- "name": "legoId",
472
- "type": "uint256"
471
+ name: 'legoId',
472
+ type: 'uint256',
473
473
  },
474
474
  {
475
- "name": "amountIn",
476
- "type": "uint256"
475
+ name: 'amountIn',
476
+ type: 'uint256',
477
477
  },
478
478
  {
479
- "name": "minAmountOut",
480
- "type": "uint256"
479
+ name: 'minAmountOut',
480
+ type: 'uint256',
481
481
  },
482
482
  {
483
- "name": "tokenPath",
484
- "type": "address[]"
483
+ name: 'tokenPath',
484
+ type: 'address[]',
485
485
  },
486
486
  {
487
- "name": "poolPath",
488
- "type": "address[]"
489
- }
487
+ name: 'poolPath',
488
+ type: 'address[]',
489
+ },
490
490
  ],
491
- "name": "",
492
- "type": "tuple[]"
493
- }
491
+ name: '',
492
+ type: 'tuple[]',
493
+ },
494
494
  ],
495
- "stateMutability": "nonpayable",
496
- "type": "function"
495
+ stateMutability: 'nonpayable',
496
+ type: 'function',
497
497
  },
498
498
  {
499
- "inputs": [
499
+ inputs: [
500
500
  {
501
- "name": "_tokenIn",
502
- "type": "address"
501
+ name: '_tokenIn',
502
+ type: 'address',
503
503
  },
504
504
  {
505
- "name": "_tokenOut",
506
- "type": "address"
505
+ name: '_tokenOut',
506
+ type: 'address',
507
507
  },
508
508
  {
509
- "name": "_amountOut",
510
- "type": "uint256"
509
+ name: '_amountOut',
510
+ type: 'uint256',
511
511
  },
512
512
  {
513
- "name": "_amountInAvailable",
514
- "type": "uint256"
513
+ name: '_amountInAvailable',
514
+ type: 'uint256',
515
515
  },
516
516
  {
517
- "name": "_slippage",
518
- "type": "uint256"
519
- }
517
+ name: '_slippage',
518
+ type: 'uint256',
519
+ },
520
520
  ],
521
- "name": "getRoutesAndSwapInstructionsAmountIn",
522
- "outputs": [
521
+ name: 'getRoutesAndSwapInstructionsAmountIn',
522
+ outputs: [
523
523
  {
524
- "components": [
524
+ components: [
525
525
  {
526
- "name": "legoId",
527
- "type": "uint256"
526
+ name: 'legoId',
527
+ type: 'uint256',
528
528
  },
529
529
  {
530
- "name": "amountIn",
531
- "type": "uint256"
530
+ name: 'amountIn',
531
+ type: 'uint256',
532
532
  },
533
533
  {
534
- "name": "minAmountOut",
535
- "type": "uint256"
534
+ name: 'minAmountOut',
535
+ type: 'uint256',
536
536
  },
537
537
  {
538
- "name": "tokenPath",
539
- "type": "address[]"
538
+ name: 'tokenPath',
539
+ type: 'address[]',
540
540
  },
541
541
  {
542
- "name": "poolPath",
543
- "type": "address[]"
544
- }
542
+ name: 'poolPath',
543
+ type: 'address[]',
544
+ },
545
545
  ],
546
- "name": "",
547
- "type": "tuple[]"
548
- }
546
+ name: '',
547
+ type: 'tuple[]',
548
+ },
549
549
  ],
550
- "stateMutability": "nonpayable",
551
- "type": "function"
550
+ stateMutability: 'nonpayable',
551
+ type: 'function',
552
552
  },
553
553
  {
554
- "inputs": [
554
+ inputs: [
555
555
  {
556
- "name": "_tokenIn",
557
- "type": "address"
556
+ name: '_tokenIn',
557
+ type: 'address',
558
558
  },
559
559
  {
560
- "name": "_tokenOut",
561
- "type": "address"
560
+ name: '_tokenOut',
561
+ type: 'address',
562
562
  },
563
563
  {
564
- "name": "_amountOut",
565
- "type": "uint256"
564
+ name: '_amountOut',
565
+ type: 'uint256',
566
566
  },
567
567
  {
568
- "name": "_amountInAvailable",
569
- "type": "uint256"
568
+ name: '_amountInAvailable',
569
+ type: 'uint256',
570
570
  },
571
571
  {
572
- "name": "_slippage",
573
- "type": "uint256"
572
+ name: '_slippage',
573
+ type: 'uint256',
574
574
  },
575
575
  {
576
- "name": "_includeLegoIds",
577
- "type": "uint256[]"
578
- }
576
+ name: '_includeLegoIds',
577
+ type: 'uint256[]',
578
+ },
579
579
  ],
580
- "name": "getRoutesAndSwapInstructionsAmountIn",
581
- "outputs": [
580
+ name: 'getRoutesAndSwapInstructionsAmountIn',
581
+ outputs: [
582
582
  {
583
- "components": [
583
+ components: [
584
584
  {
585
- "name": "legoId",
586
- "type": "uint256"
585
+ name: 'legoId',
586
+ type: 'uint256',
587
587
  },
588
588
  {
589
- "name": "amountIn",
590
- "type": "uint256"
589
+ name: 'amountIn',
590
+ type: 'uint256',
591
591
  },
592
592
  {
593
- "name": "minAmountOut",
594
- "type": "uint256"
593
+ name: 'minAmountOut',
594
+ type: 'uint256',
595
595
  },
596
596
  {
597
- "name": "tokenPath",
598
- "type": "address[]"
597
+ name: 'tokenPath',
598
+ type: 'address[]',
599
599
  },
600
600
  {
601
- "name": "poolPath",
602
- "type": "address[]"
603
- }
601
+ name: 'poolPath',
602
+ type: 'address[]',
603
+ },
604
604
  ],
605
- "name": "",
606
- "type": "tuple[]"
607
- }
605
+ name: '',
606
+ type: 'tuple[]',
607
+ },
608
608
  ],
609
- "stateMutability": "nonpayable",
610
- "type": "function"
609
+ stateMutability: 'nonpayable',
610
+ type: 'function',
611
611
  },
612
612
  {
613
- "inputs": [
613
+ inputs: [
614
614
  {
615
- "name": "_slippage",
616
- "type": "uint256"
615
+ name: '_slippage',
616
+ type: 'uint256',
617
617
  },
618
618
  {
619
- "components": [
619
+ components: [
620
620
  {
621
- "name": "legoId",
622
- "type": "uint256"
621
+ name: 'legoId',
622
+ type: 'uint256',
623
623
  },
624
624
  {
625
- "name": "pool",
626
- "type": "address"
625
+ name: 'pool',
626
+ type: 'address',
627
627
  },
628
628
  {
629
- "name": "tokenIn",
630
- "type": "address"
629
+ name: 'tokenIn',
630
+ type: 'address',
631
631
  },
632
632
  {
633
- "name": "tokenOut",
634
- "type": "address"
633
+ name: 'tokenOut',
634
+ type: 'address',
635
635
  },
636
636
  {
637
- "name": "amountIn",
638
- "type": "uint256"
637
+ name: 'amountIn',
638
+ type: 'uint256',
639
639
  },
640
640
  {
641
- "name": "amountOut",
642
- "type": "uint256"
643
- }
641
+ name: 'amountOut',
642
+ type: 'uint256',
643
+ },
644
644
  ],
645
- "name": "_routes",
646
- "type": "tuple[]"
647
- }
645
+ name: '_routes',
646
+ type: 'tuple[]',
647
+ },
648
648
  ],
649
- "name": "prepareSwapInstructionsAmountOut",
650
- "outputs": [
649
+ name: 'prepareSwapInstructionsAmountOut',
650
+ outputs: [
651
651
  {
652
- "components": [
652
+ components: [
653
653
  {
654
- "name": "legoId",
655
- "type": "uint256"
654
+ name: 'legoId',
655
+ type: 'uint256',
656
656
  },
657
657
  {
658
- "name": "amountIn",
659
- "type": "uint256"
658
+ name: 'amountIn',
659
+ type: 'uint256',
660
660
  },
661
661
  {
662
- "name": "minAmountOut",
663
- "type": "uint256"
662
+ name: 'minAmountOut',
663
+ type: 'uint256',
664
664
  },
665
665
  {
666
- "name": "tokenPath",
667
- "type": "address[]"
666
+ name: 'tokenPath',
667
+ type: 'address[]',
668
668
  },
669
669
  {
670
- "name": "poolPath",
671
- "type": "address[]"
672
- }
670
+ name: 'poolPath',
671
+ type: 'address[]',
672
+ },
673
673
  ],
674
- "name": "",
675
- "type": "tuple[]"
676
- }
674
+ name: '',
675
+ type: 'tuple[]',
676
+ },
677
677
  ],
678
- "stateMutability": "nonpayable",
679
- "type": "function"
678
+ stateMutability: 'nonpayable',
679
+ type: 'function',
680
680
  },
681
681
  {
682
- "inputs": [
682
+ inputs: [
683
683
  {
684
- "name": "_tokenIn",
685
- "type": "address"
684
+ name: '_tokenIn',
685
+ type: 'address',
686
686
  },
687
687
  {
688
- "name": "_tokenOut",
689
- "type": "address"
688
+ name: '_tokenOut',
689
+ type: 'address',
690
690
  },
691
691
  {
692
- "name": "_amountIn",
693
- "type": "uint256"
694
- }
692
+ name: '_amountIn',
693
+ type: 'uint256',
694
+ },
695
695
  ],
696
- "name": "getBestSwapRoutesAmountOut",
697
- "outputs": [
696
+ name: 'getBestSwapRoutesAmountOut',
697
+ outputs: [
698
698
  {
699
- "components": [
699
+ components: [
700
700
  {
701
- "name": "legoId",
702
- "type": "uint256"
701
+ name: 'legoId',
702
+ type: 'uint256',
703
703
  },
704
704
  {
705
- "name": "pool",
706
- "type": "address"
705
+ name: 'pool',
706
+ type: 'address',
707
707
  },
708
708
  {
709
- "name": "tokenIn",
710
- "type": "address"
709
+ name: 'tokenIn',
710
+ type: 'address',
711
711
  },
712
712
  {
713
- "name": "tokenOut",
714
- "type": "address"
713
+ name: 'tokenOut',
714
+ type: 'address',
715
715
  },
716
716
  {
717
- "name": "amountIn",
718
- "type": "uint256"
717
+ name: 'amountIn',
718
+ type: 'uint256',
719
719
  },
720
720
  {
721
- "name": "amountOut",
722
- "type": "uint256"
723
- }
721
+ name: 'amountOut',
722
+ type: 'uint256',
723
+ },
724
724
  ],
725
- "name": "",
726
- "type": "tuple[]"
727
- }
725
+ name: '',
726
+ type: 'tuple[]',
727
+ },
728
728
  ],
729
- "stateMutability": "nonpayable",
730
- "type": "function"
729
+ stateMutability: 'nonpayable',
730
+ type: 'function',
731
731
  },
732
732
  {
733
- "inputs": [
733
+ inputs: [
734
734
  {
735
- "name": "_tokenIn",
736
- "type": "address"
735
+ name: '_tokenIn',
736
+ type: 'address',
737
737
  },
738
738
  {
739
- "name": "_tokenOut",
740
- "type": "address"
739
+ name: '_tokenOut',
740
+ type: 'address',
741
741
  },
742
742
  {
743
- "name": "_amountIn",
744
- "type": "uint256"
743
+ name: '_amountIn',
744
+ type: 'uint256',
745
745
  },
746
746
  {
747
- "name": "_includeLegoIds",
748
- "type": "uint256[]"
749
- }
747
+ name: '_includeLegoIds',
748
+ type: 'uint256[]',
749
+ },
750
750
  ],
751
- "name": "getBestSwapRoutesAmountOut",
752
- "outputs": [
751
+ name: 'getBestSwapRoutesAmountOut',
752
+ outputs: [
753
753
  {
754
- "components": [
754
+ components: [
755
755
  {
756
- "name": "legoId",
757
- "type": "uint256"
756
+ name: 'legoId',
757
+ type: 'uint256',
758
758
  },
759
759
  {
760
- "name": "pool",
761
- "type": "address"
760
+ name: 'pool',
761
+ type: 'address',
762
762
  },
763
763
  {
764
- "name": "tokenIn",
765
- "type": "address"
764
+ name: 'tokenIn',
765
+ type: 'address',
766
766
  },
767
767
  {
768
- "name": "tokenOut",
769
- "type": "address"
768
+ name: 'tokenOut',
769
+ type: 'address',
770
770
  },
771
771
  {
772
- "name": "amountIn",
773
- "type": "uint256"
772
+ name: 'amountIn',
773
+ type: 'uint256',
774
774
  },
775
775
  {
776
- "name": "amountOut",
777
- "type": "uint256"
778
- }
776
+ name: 'amountOut',
777
+ type: 'uint256',
778
+ },
779
779
  ],
780
- "name": "",
781
- "type": "tuple[]"
782
- }
780
+ name: '',
781
+ type: 'tuple[]',
782
+ },
783
783
  ],
784
- "stateMutability": "nonpayable",
785
- "type": "function"
784
+ stateMutability: 'nonpayable',
785
+ type: 'function',
786
786
  },
787
787
  {
788
- "inputs": [
788
+ inputs: [
789
789
  {
790
- "name": "_tokenIn",
791
- "type": "address"
790
+ name: '_tokenIn',
791
+ type: 'address',
792
792
  },
793
793
  {
794
- "name": "_tokenOut",
795
- "type": "address"
794
+ name: '_tokenOut',
795
+ type: 'address',
796
796
  },
797
797
  {
798
- "name": "_amountIn",
799
- "type": "uint256"
800
- }
798
+ name: '_amountIn',
799
+ type: 'uint256',
800
+ },
801
801
  ],
802
- "name": "getBestSwapAmountOutWithRouterPool",
803
- "outputs": [
802
+ name: 'getBestSwapAmountOutWithRouterPool',
803
+ outputs: [
804
804
  {
805
- "name": "",
806
- "type": "uint256"
805
+ name: '',
806
+ type: 'uint256',
807
807
  },
808
808
  {
809
- "components": [
809
+ components: [
810
810
  {
811
- "name": "legoId",
812
- "type": "uint256"
811
+ name: 'legoId',
812
+ type: 'uint256',
813
813
  },
814
814
  {
815
- "name": "pool",
816
- "type": "address"
815
+ name: 'pool',
816
+ type: 'address',
817
817
  },
818
818
  {
819
- "name": "tokenIn",
820
- "type": "address"
819
+ name: 'tokenIn',
820
+ type: 'address',
821
821
  },
822
822
  {
823
- "name": "tokenOut",
824
- "type": "address"
823
+ name: 'tokenOut',
824
+ type: 'address',
825
825
  },
826
826
  {
827
- "name": "amountIn",
828
- "type": "uint256"
827
+ name: 'amountIn',
828
+ type: 'uint256',
829
829
  },
830
830
  {
831
- "name": "amountOut",
832
- "type": "uint256"
833
- }
831
+ name: 'amountOut',
832
+ type: 'uint256',
833
+ },
834
834
  ],
835
- "name": "",
836
- "type": "tuple[]"
837
- }
835
+ name: '',
836
+ type: 'tuple[]',
837
+ },
838
838
  ],
839
- "stateMutability": "nonpayable",
840
- "type": "function"
839
+ stateMutability: 'nonpayable',
840
+ type: 'function',
841
841
  },
842
842
  {
843
- "inputs": [
843
+ inputs: [
844
844
  {
845
- "name": "_tokenIn",
846
- "type": "address"
845
+ name: '_tokenIn',
846
+ type: 'address',
847
847
  },
848
848
  {
849
- "name": "_tokenOut",
850
- "type": "address"
849
+ name: '_tokenOut',
850
+ type: 'address',
851
851
  },
852
852
  {
853
- "name": "_amountIn",
854
- "type": "uint256"
853
+ name: '_amountIn',
854
+ type: 'uint256',
855
855
  },
856
856
  {
857
- "name": "_includeLegoIds",
858
- "type": "uint256[]"
859
- }
857
+ name: '_includeLegoIds',
858
+ type: 'uint256[]',
859
+ },
860
860
  ],
861
- "name": "getBestSwapAmountOutWithRouterPool",
862
- "outputs": [
861
+ name: 'getBestSwapAmountOutWithRouterPool',
862
+ outputs: [
863
863
  {
864
- "name": "",
865
- "type": "uint256"
864
+ name: '',
865
+ type: 'uint256',
866
866
  },
867
867
  {
868
- "components": [
868
+ components: [
869
869
  {
870
- "name": "legoId",
871
- "type": "uint256"
870
+ name: 'legoId',
871
+ type: 'uint256',
872
872
  },
873
873
  {
874
- "name": "pool",
875
- "type": "address"
874
+ name: 'pool',
875
+ type: 'address',
876
876
  },
877
877
  {
878
- "name": "tokenIn",
879
- "type": "address"
878
+ name: 'tokenIn',
879
+ type: 'address',
880
880
  },
881
881
  {
882
- "name": "tokenOut",
883
- "type": "address"
882
+ name: 'tokenOut',
883
+ type: 'address',
884
884
  },
885
885
  {
886
- "name": "amountIn",
887
- "type": "uint256"
886
+ name: 'amountIn',
887
+ type: 'uint256',
888
888
  },
889
889
  {
890
- "name": "amountOut",
891
- "type": "uint256"
892
- }
890
+ name: 'amountOut',
891
+ type: 'uint256',
892
+ },
893
893
  ],
894
- "name": "",
895
- "type": "tuple[]"
896
- }
894
+ name: '',
895
+ type: 'tuple[]',
896
+ },
897
897
  ],
898
- "stateMutability": "nonpayable",
899
- "type": "function"
898
+ stateMutability: 'nonpayable',
899
+ type: 'function',
900
900
  },
901
901
  {
902
- "inputs": [
902
+ inputs: [
903
903
  {
904
- "name": "_tokenIn",
905
- "type": "address"
904
+ name: '_tokenIn',
905
+ type: 'address',
906
906
  },
907
907
  {
908
- "name": "_tokenOut",
909
- "type": "address"
908
+ name: '_tokenOut',
909
+ type: 'address',
910
910
  },
911
911
  {
912
- "name": "_amountIn",
913
- "type": "uint256"
914
- }
912
+ name: '_amountIn',
913
+ type: 'uint256',
914
+ },
915
915
  ],
916
- "name": "getBestSwapAmountOutSinglePool",
917
- "outputs": [
916
+ name: 'getBestSwapAmountOutSinglePool',
917
+ outputs: [
918
918
  {
919
- "components": [
919
+ components: [
920
920
  {
921
- "name": "legoId",
922
- "type": "uint256"
921
+ name: 'legoId',
922
+ type: 'uint256',
923
923
  },
924
924
  {
925
- "name": "pool",
926
- "type": "address"
925
+ name: 'pool',
926
+ type: 'address',
927
927
  },
928
928
  {
929
- "name": "tokenIn",
930
- "type": "address"
929
+ name: 'tokenIn',
930
+ type: 'address',
931
931
  },
932
932
  {
933
- "name": "tokenOut",
934
- "type": "address"
933
+ name: 'tokenOut',
934
+ type: 'address',
935
935
  },
936
936
  {
937
- "name": "amountIn",
938
- "type": "uint256"
937
+ name: 'amountIn',
938
+ type: 'uint256',
939
939
  },
940
940
  {
941
- "name": "amountOut",
942
- "type": "uint256"
943
- }
941
+ name: 'amountOut',
942
+ type: 'uint256',
943
+ },
944
944
  ],
945
- "name": "",
946
- "type": "tuple"
947
- }
945
+ name: '',
946
+ type: 'tuple',
947
+ },
948
948
  ],
949
- "stateMutability": "nonpayable",
950
- "type": "function"
949
+ stateMutability: 'nonpayable',
950
+ type: 'function',
951
951
  },
952
952
  {
953
- "inputs": [
953
+ inputs: [
954
954
  {
955
- "name": "_tokenIn",
956
- "type": "address"
955
+ name: '_tokenIn',
956
+ type: 'address',
957
957
  },
958
958
  {
959
- "name": "_tokenOut",
960
- "type": "address"
959
+ name: '_tokenOut',
960
+ type: 'address',
961
961
  },
962
962
  {
963
- "name": "_amountIn",
964
- "type": "uint256"
963
+ name: '_amountIn',
964
+ type: 'uint256',
965
965
  },
966
966
  {
967
- "name": "_includeLegoIds",
968
- "type": "uint256[]"
969
- }
967
+ name: '_includeLegoIds',
968
+ type: 'uint256[]',
969
+ },
970
970
  ],
971
- "name": "getBestSwapAmountOutSinglePool",
972
- "outputs": [
971
+ name: 'getBestSwapAmountOutSinglePool',
972
+ outputs: [
973
973
  {
974
- "components": [
974
+ components: [
975
975
  {
976
- "name": "legoId",
977
- "type": "uint256"
976
+ name: 'legoId',
977
+ type: 'uint256',
978
978
  },
979
979
  {
980
- "name": "pool",
981
- "type": "address"
980
+ name: 'pool',
981
+ type: 'address',
982
982
  },
983
983
  {
984
- "name": "tokenIn",
985
- "type": "address"
984
+ name: 'tokenIn',
985
+ type: 'address',
986
986
  },
987
987
  {
988
- "name": "tokenOut",
989
- "type": "address"
988
+ name: 'tokenOut',
989
+ type: 'address',
990
990
  },
991
991
  {
992
- "name": "amountIn",
993
- "type": "uint256"
992
+ name: 'amountIn',
993
+ type: 'uint256',
994
994
  },
995
995
  {
996
- "name": "amountOut",
997
- "type": "uint256"
998
- }
996
+ name: 'amountOut',
997
+ type: 'uint256',
998
+ },
999
999
  ],
1000
- "name": "",
1001
- "type": "tuple"
1002
- }
1000
+ name: '',
1001
+ type: 'tuple',
1002
+ },
1003
1003
  ],
1004
- "stateMutability": "nonpayable",
1005
- "type": "function"
1004
+ stateMutability: 'nonpayable',
1005
+ type: 'function',
1006
1006
  },
1007
1007
  {
1008
- "inputs": [
1008
+ inputs: [
1009
1009
  {
1010
- "name": "_tokenIn",
1011
- "type": "address"
1010
+ name: '_tokenIn',
1011
+ type: 'address',
1012
1012
  },
1013
1013
  {
1014
- "name": "_tokenOut",
1015
- "type": "address"
1014
+ name: '_tokenOut',
1015
+ type: 'address',
1016
1016
  },
1017
1017
  {
1018
- "name": "_amountIn",
1019
- "type": "uint256"
1020
- }
1018
+ name: '_amountIn',
1019
+ type: 'uint256',
1020
+ },
1021
1021
  ],
1022
- "name": "getSwapAmountOutViaRouterPool",
1023
- "outputs": [
1022
+ name: 'getSwapAmountOutViaRouterPool',
1023
+ outputs: [
1024
1024
  {
1025
- "components": [
1025
+ components: [
1026
1026
  {
1027
- "name": "legoId",
1028
- "type": "uint256"
1027
+ name: 'legoId',
1028
+ type: 'uint256',
1029
1029
  },
1030
1030
  {
1031
- "name": "pool",
1032
- "type": "address"
1031
+ name: 'pool',
1032
+ type: 'address',
1033
1033
  },
1034
1034
  {
1035
- "name": "tokenIn",
1036
- "type": "address"
1035
+ name: 'tokenIn',
1036
+ type: 'address',
1037
1037
  },
1038
1038
  {
1039
- "name": "tokenOut",
1040
- "type": "address"
1039
+ name: 'tokenOut',
1040
+ type: 'address',
1041
1041
  },
1042
1042
  {
1043
- "name": "amountIn",
1044
- "type": "uint256"
1043
+ name: 'amountIn',
1044
+ type: 'uint256',
1045
1045
  },
1046
1046
  {
1047
- "name": "amountOut",
1048
- "type": "uint256"
1049
- }
1047
+ name: 'amountOut',
1048
+ type: 'uint256',
1049
+ },
1050
1050
  ],
1051
- "name": "",
1052
- "type": "tuple"
1053
- }
1051
+ name: '',
1052
+ type: 'tuple',
1053
+ },
1054
1054
  ],
1055
- "stateMutability": "nonpayable",
1056
- "type": "function"
1055
+ stateMutability: 'nonpayable',
1056
+ type: 'function',
1057
1057
  },
1058
1058
  {
1059
- "inputs": [
1059
+ inputs: [
1060
1060
  {
1061
- "name": "_tokenIn",
1062
- "type": "address"
1061
+ name: '_tokenIn',
1062
+ type: 'address',
1063
1063
  },
1064
1064
  {
1065
- "name": "_tokenOut",
1066
- "type": "address"
1065
+ name: '_tokenOut',
1066
+ type: 'address',
1067
1067
  },
1068
1068
  {
1069
- "name": "_amountIn",
1070
- "type": "uint256"
1069
+ name: '_amountIn',
1070
+ type: 'uint256',
1071
1071
  },
1072
1072
  {
1073
- "name": "_includeLegoIds",
1074
- "type": "uint256[]"
1075
- }
1073
+ name: '_includeLegoIds',
1074
+ type: 'uint256[]',
1075
+ },
1076
1076
  ],
1077
- "name": "getSwapAmountOutViaRouterPool",
1078
- "outputs": [
1077
+ name: 'getSwapAmountOutViaRouterPool',
1078
+ outputs: [
1079
1079
  {
1080
- "components": [
1080
+ components: [
1081
1081
  {
1082
- "name": "legoId",
1083
- "type": "uint256"
1082
+ name: 'legoId',
1083
+ type: 'uint256',
1084
1084
  },
1085
1085
  {
1086
- "name": "pool",
1087
- "type": "address"
1086
+ name: 'pool',
1087
+ type: 'address',
1088
1088
  },
1089
1089
  {
1090
- "name": "tokenIn",
1091
- "type": "address"
1090
+ name: 'tokenIn',
1091
+ type: 'address',
1092
1092
  },
1093
1093
  {
1094
- "name": "tokenOut",
1095
- "type": "address"
1094
+ name: 'tokenOut',
1095
+ type: 'address',
1096
1096
  },
1097
1097
  {
1098
- "name": "amountIn",
1099
- "type": "uint256"
1098
+ name: 'amountIn',
1099
+ type: 'uint256',
1100
1100
  },
1101
1101
  {
1102
- "name": "amountOut",
1103
- "type": "uint256"
1104
- }
1102
+ name: 'amountOut',
1103
+ type: 'uint256',
1104
+ },
1105
1105
  ],
1106
- "name": "",
1107
- "type": "tuple"
1108
- }
1106
+ name: '',
1107
+ type: 'tuple',
1108
+ },
1109
1109
  ],
1110
- "stateMutability": "nonpayable",
1111
- "type": "function"
1110
+ stateMutability: 'nonpayable',
1111
+ type: 'function',
1112
1112
  },
1113
1113
  {
1114
- "inputs": [
1114
+ inputs: [
1115
1115
  {
1116
- "name": "_tokenIn",
1117
- "type": "address"
1116
+ name: '_tokenIn',
1117
+ type: 'address',
1118
1118
  },
1119
1119
  {
1120
- "name": "_tokenOut",
1121
- "type": "address"
1120
+ name: '_tokenOut',
1121
+ type: 'address',
1122
1122
  },
1123
1123
  {
1124
- "name": "_amountOut",
1125
- "type": "uint256"
1126
- }
1124
+ name: '_amountOut',
1125
+ type: 'uint256',
1126
+ },
1127
1127
  ],
1128
- "name": "getBestSwapRoutesAmountIn",
1129
- "outputs": [
1128
+ name: 'getBestSwapRoutesAmountIn',
1129
+ outputs: [
1130
1130
  {
1131
- "components": [
1131
+ components: [
1132
1132
  {
1133
- "name": "legoId",
1134
- "type": "uint256"
1133
+ name: 'legoId',
1134
+ type: 'uint256',
1135
1135
  },
1136
1136
  {
1137
- "name": "pool",
1138
- "type": "address"
1137
+ name: 'pool',
1138
+ type: 'address',
1139
1139
  },
1140
1140
  {
1141
- "name": "tokenIn",
1142
- "type": "address"
1141
+ name: 'tokenIn',
1142
+ type: 'address',
1143
1143
  },
1144
1144
  {
1145
- "name": "tokenOut",
1146
- "type": "address"
1145
+ name: 'tokenOut',
1146
+ type: 'address',
1147
1147
  },
1148
1148
  {
1149
- "name": "amountIn",
1150
- "type": "uint256"
1149
+ name: 'amountIn',
1150
+ type: 'uint256',
1151
1151
  },
1152
1152
  {
1153
- "name": "amountOut",
1154
- "type": "uint256"
1155
- }
1153
+ name: 'amountOut',
1154
+ type: 'uint256',
1155
+ },
1156
1156
  ],
1157
- "name": "",
1158
- "type": "tuple[]"
1159
- }
1157
+ name: '',
1158
+ type: 'tuple[]',
1159
+ },
1160
1160
  ],
1161
- "stateMutability": "nonpayable",
1162
- "type": "function"
1161
+ stateMutability: 'nonpayable',
1162
+ type: 'function',
1163
1163
  },
1164
1164
  {
1165
- "inputs": [
1165
+ inputs: [
1166
1166
  {
1167
- "name": "_tokenIn",
1168
- "type": "address"
1167
+ name: '_tokenIn',
1168
+ type: 'address',
1169
1169
  },
1170
1170
  {
1171
- "name": "_tokenOut",
1172
- "type": "address"
1171
+ name: '_tokenOut',
1172
+ type: 'address',
1173
1173
  },
1174
1174
  {
1175
- "name": "_amountOut",
1176
- "type": "uint256"
1175
+ name: '_amountOut',
1176
+ type: 'uint256',
1177
1177
  },
1178
1178
  {
1179
- "name": "_includeLegoIds",
1180
- "type": "uint256[]"
1181
- }
1179
+ name: '_includeLegoIds',
1180
+ type: 'uint256[]',
1181
+ },
1182
1182
  ],
1183
- "name": "getBestSwapRoutesAmountIn",
1184
- "outputs": [
1183
+ name: 'getBestSwapRoutesAmountIn',
1184
+ outputs: [
1185
1185
  {
1186
- "components": [
1186
+ components: [
1187
1187
  {
1188
- "name": "legoId",
1189
- "type": "uint256"
1188
+ name: 'legoId',
1189
+ type: 'uint256',
1190
1190
  },
1191
1191
  {
1192
- "name": "pool",
1193
- "type": "address"
1192
+ name: 'pool',
1193
+ type: 'address',
1194
1194
  },
1195
1195
  {
1196
- "name": "tokenIn",
1197
- "type": "address"
1196
+ name: 'tokenIn',
1197
+ type: 'address',
1198
1198
  },
1199
1199
  {
1200
- "name": "tokenOut",
1201
- "type": "address"
1200
+ name: 'tokenOut',
1201
+ type: 'address',
1202
1202
  },
1203
1203
  {
1204
- "name": "amountIn",
1205
- "type": "uint256"
1204
+ name: 'amountIn',
1205
+ type: 'uint256',
1206
1206
  },
1207
1207
  {
1208
- "name": "amountOut",
1209
- "type": "uint256"
1210
- }
1208
+ name: 'amountOut',
1209
+ type: 'uint256',
1210
+ },
1211
1211
  ],
1212
- "name": "",
1213
- "type": "tuple[]"
1214
- }
1212
+ name: '',
1213
+ type: 'tuple[]',
1214
+ },
1215
1215
  ],
1216
- "stateMutability": "nonpayable",
1217
- "type": "function"
1216
+ stateMutability: 'nonpayable',
1217
+ type: 'function',
1218
1218
  },
1219
1219
  {
1220
- "inputs": [
1220
+ inputs: [
1221
1221
  {
1222
- "name": "_tokenIn",
1223
- "type": "address"
1222
+ name: '_tokenIn',
1223
+ type: 'address',
1224
1224
  },
1225
1225
  {
1226
- "name": "_tokenOut",
1227
- "type": "address"
1226
+ name: '_tokenOut',
1227
+ type: 'address',
1228
1228
  },
1229
1229
  {
1230
- "name": "_amountOut",
1231
- "type": "uint256"
1232
- }
1230
+ name: '_amountOut',
1231
+ type: 'uint256',
1232
+ },
1233
1233
  ],
1234
- "name": "getBestSwapAmountInWithRouterPool",
1235
- "outputs": [
1234
+ name: 'getBestSwapAmountInWithRouterPool',
1235
+ outputs: [
1236
1236
  {
1237
- "name": "",
1238
- "type": "uint256"
1237
+ name: '',
1238
+ type: 'uint256',
1239
1239
  },
1240
1240
  {
1241
- "components": [
1241
+ components: [
1242
1242
  {
1243
- "name": "legoId",
1244
- "type": "uint256"
1243
+ name: 'legoId',
1244
+ type: 'uint256',
1245
1245
  },
1246
1246
  {
1247
- "name": "pool",
1248
- "type": "address"
1247
+ name: 'pool',
1248
+ type: 'address',
1249
1249
  },
1250
1250
  {
1251
- "name": "tokenIn",
1252
- "type": "address"
1251
+ name: 'tokenIn',
1252
+ type: 'address',
1253
1253
  },
1254
1254
  {
1255
- "name": "tokenOut",
1256
- "type": "address"
1255
+ name: 'tokenOut',
1256
+ type: 'address',
1257
1257
  },
1258
1258
  {
1259
- "name": "amountIn",
1260
- "type": "uint256"
1259
+ name: 'amountIn',
1260
+ type: 'uint256',
1261
1261
  },
1262
1262
  {
1263
- "name": "amountOut",
1264
- "type": "uint256"
1265
- }
1263
+ name: 'amountOut',
1264
+ type: 'uint256',
1265
+ },
1266
1266
  ],
1267
- "name": "",
1268
- "type": "tuple[]"
1269
- }
1267
+ name: '',
1268
+ type: 'tuple[]',
1269
+ },
1270
1270
  ],
1271
- "stateMutability": "nonpayable",
1272
- "type": "function"
1271
+ stateMutability: 'nonpayable',
1272
+ type: 'function',
1273
1273
  },
1274
1274
  {
1275
- "inputs": [
1275
+ inputs: [
1276
1276
  {
1277
- "name": "_tokenIn",
1278
- "type": "address"
1277
+ name: '_tokenIn',
1278
+ type: 'address',
1279
1279
  },
1280
1280
  {
1281
- "name": "_tokenOut",
1282
- "type": "address"
1281
+ name: '_tokenOut',
1282
+ type: 'address',
1283
1283
  },
1284
1284
  {
1285
- "name": "_amountOut",
1286
- "type": "uint256"
1285
+ name: '_amountOut',
1286
+ type: 'uint256',
1287
1287
  },
1288
1288
  {
1289
- "name": "_includeLegoIds",
1290
- "type": "uint256[]"
1291
- }
1289
+ name: '_includeLegoIds',
1290
+ type: 'uint256[]',
1291
+ },
1292
1292
  ],
1293
- "name": "getBestSwapAmountInWithRouterPool",
1294
- "outputs": [
1293
+ name: 'getBestSwapAmountInWithRouterPool',
1294
+ outputs: [
1295
1295
  {
1296
- "name": "",
1297
- "type": "uint256"
1296
+ name: '',
1297
+ type: 'uint256',
1298
1298
  },
1299
1299
  {
1300
- "components": [
1300
+ components: [
1301
1301
  {
1302
- "name": "legoId",
1303
- "type": "uint256"
1302
+ name: 'legoId',
1303
+ type: 'uint256',
1304
1304
  },
1305
1305
  {
1306
- "name": "pool",
1307
- "type": "address"
1306
+ name: 'pool',
1307
+ type: 'address',
1308
1308
  },
1309
1309
  {
1310
- "name": "tokenIn",
1311
- "type": "address"
1310
+ name: 'tokenIn',
1311
+ type: 'address',
1312
1312
  },
1313
1313
  {
1314
- "name": "tokenOut",
1315
- "type": "address"
1314
+ name: 'tokenOut',
1315
+ type: 'address',
1316
1316
  },
1317
1317
  {
1318
- "name": "amountIn",
1319
- "type": "uint256"
1318
+ name: 'amountIn',
1319
+ type: 'uint256',
1320
1320
  },
1321
1321
  {
1322
- "name": "amountOut",
1323
- "type": "uint256"
1324
- }
1322
+ name: 'amountOut',
1323
+ type: 'uint256',
1324
+ },
1325
1325
  ],
1326
- "name": "",
1327
- "type": "tuple[]"
1328
- }
1326
+ name: '',
1327
+ type: 'tuple[]',
1328
+ },
1329
1329
  ],
1330
- "stateMutability": "nonpayable",
1331
- "type": "function"
1330
+ stateMutability: 'nonpayable',
1331
+ type: 'function',
1332
1332
  },
1333
1333
  {
1334
- "inputs": [
1334
+ inputs: [
1335
1335
  {
1336
- "name": "_tokenIn",
1337
- "type": "address"
1336
+ name: '_tokenIn',
1337
+ type: 'address',
1338
1338
  },
1339
1339
  {
1340
- "name": "_tokenOut",
1341
- "type": "address"
1340
+ name: '_tokenOut',
1341
+ type: 'address',
1342
1342
  },
1343
1343
  {
1344
- "name": "_amountOut",
1345
- "type": "uint256"
1346
- }
1344
+ name: '_amountOut',
1345
+ type: 'uint256',
1346
+ },
1347
1347
  ],
1348
- "name": "getBestSwapAmountInSinglePool",
1349
- "outputs": [
1348
+ name: 'getBestSwapAmountInSinglePool',
1349
+ outputs: [
1350
1350
  {
1351
- "components": [
1351
+ components: [
1352
1352
  {
1353
- "name": "legoId",
1354
- "type": "uint256"
1353
+ name: 'legoId',
1354
+ type: 'uint256',
1355
1355
  },
1356
1356
  {
1357
- "name": "pool",
1358
- "type": "address"
1357
+ name: 'pool',
1358
+ type: 'address',
1359
1359
  },
1360
1360
  {
1361
- "name": "tokenIn",
1362
- "type": "address"
1361
+ name: 'tokenIn',
1362
+ type: 'address',
1363
1363
  },
1364
1364
  {
1365
- "name": "tokenOut",
1366
- "type": "address"
1365
+ name: 'tokenOut',
1366
+ type: 'address',
1367
1367
  },
1368
1368
  {
1369
- "name": "amountIn",
1370
- "type": "uint256"
1369
+ name: 'amountIn',
1370
+ type: 'uint256',
1371
1371
  },
1372
1372
  {
1373
- "name": "amountOut",
1374
- "type": "uint256"
1375
- }
1373
+ name: 'amountOut',
1374
+ type: 'uint256',
1375
+ },
1376
1376
  ],
1377
- "name": "",
1378
- "type": "tuple"
1379
- }
1377
+ name: '',
1378
+ type: 'tuple',
1379
+ },
1380
1380
  ],
1381
- "stateMutability": "nonpayable",
1382
- "type": "function"
1381
+ stateMutability: 'nonpayable',
1382
+ type: 'function',
1383
1383
  },
1384
1384
  {
1385
- "inputs": [
1385
+ inputs: [
1386
1386
  {
1387
- "name": "_tokenIn",
1388
- "type": "address"
1387
+ name: '_tokenIn',
1388
+ type: 'address',
1389
1389
  },
1390
1390
  {
1391
- "name": "_tokenOut",
1392
- "type": "address"
1391
+ name: '_tokenOut',
1392
+ type: 'address',
1393
1393
  },
1394
1394
  {
1395
- "name": "_amountOut",
1396
- "type": "uint256"
1395
+ name: '_amountOut',
1396
+ type: 'uint256',
1397
1397
  },
1398
1398
  {
1399
- "name": "_includeLegoIds",
1400
- "type": "uint256[]"
1401
- }
1399
+ name: '_includeLegoIds',
1400
+ type: 'uint256[]',
1401
+ },
1402
1402
  ],
1403
- "name": "getBestSwapAmountInSinglePool",
1404
- "outputs": [
1403
+ name: 'getBestSwapAmountInSinglePool',
1404
+ outputs: [
1405
1405
  {
1406
- "components": [
1406
+ components: [
1407
1407
  {
1408
- "name": "legoId",
1409
- "type": "uint256"
1408
+ name: 'legoId',
1409
+ type: 'uint256',
1410
1410
  },
1411
1411
  {
1412
- "name": "pool",
1413
- "type": "address"
1412
+ name: 'pool',
1413
+ type: 'address',
1414
1414
  },
1415
1415
  {
1416
- "name": "tokenIn",
1417
- "type": "address"
1416
+ name: 'tokenIn',
1417
+ type: 'address',
1418
1418
  },
1419
1419
  {
1420
- "name": "tokenOut",
1421
- "type": "address"
1420
+ name: 'tokenOut',
1421
+ type: 'address',
1422
1422
  },
1423
1423
  {
1424
- "name": "amountIn",
1425
- "type": "uint256"
1424
+ name: 'amountIn',
1425
+ type: 'uint256',
1426
1426
  },
1427
1427
  {
1428
- "name": "amountOut",
1429
- "type": "uint256"
1430
- }
1428
+ name: 'amountOut',
1429
+ type: 'uint256',
1430
+ },
1431
1431
  ],
1432
- "name": "",
1433
- "type": "tuple"
1434
- }
1432
+ name: '',
1433
+ type: 'tuple',
1434
+ },
1435
1435
  ],
1436
- "stateMutability": "nonpayable",
1437
- "type": "function"
1436
+ stateMutability: 'nonpayable',
1437
+ type: 'function',
1438
1438
  },
1439
1439
  {
1440
- "inputs": [
1440
+ inputs: [
1441
1441
  {
1442
- "name": "_tokenIn",
1443
- "type": "address"
1442
+ name: '_tokenIn',
1443
+ type: 'address',
1444
1444
  },
1445
1445
  {
1446
- "name": "_tokenOut",
1447
- "type": "address"
1446
+ name: '_tokenOut',
1447
+ type: 'address',
1448
1448
  },
1449
1449
  {
1450
- "name": "_amountOut",
1451
- "type": "uint256"
1452
- }
1450
+ name: '_amountOut',
1451
+ type: 'uint256',
1452
+ },
1453
1453
  ],
1454
- "name": "getSwapAmountInViaRouterPool",
1455
- "outputs": [
1454
+ name: 'getSwapAmountInViaRouterPool',
1455
+ outputs: [
1456
1456
  {
1457
- "components": [
1457
+ components: [
1458
1458
  {
1459
- "name": "legoId",
1460
- "type": "uint256"
1459
+ name: 'legoId',
1460
+ type: 'uint256',
1461
1461
  },
1462
1462
  {
1463
- "name": "pool",
1464
- "type": "address"
1463
+ name: 'pool',
1464
+ type: 'address',
1465
1465
  },
1466
1466
  {
1467
- "name": "tokenIn",
1468
- "type": "address"
1467
+ name: 'tokenIn',
1468
+ type: 'address',
1469
1469
  },
1470
1470
  {
1471
- "name": "tokenOut",
1472
- "type": "address"
1471
+ name: 'tokenOut',
1472
+ type: 'address',
1473
1473
  },
1474
1474
  {
1475
- "name": "amountIn",
1476
- "type": "uint256"
1475
+ name: 'amountIn',
1476
+ type: 'uint256',
1477
1477
  },
1478
1478
  {
1479
- "name": "amountOut",
1480
- "type": "uint256"
1481
- }
1479
+ name: 'amountOut',
1480
+ type: 'uint256',
1481
+ },
1482
1482
  ],
1483
- "name": "",
1484
- "type": "tuple"
1485
- }
1483
+ name: '',
1484
+ type: 'tuple',
1485
+ },
1486
1486
  ],
1487
- "stateMutability": "nonpayable",
1488
- "type": "function"
1487
+ stateMutability: 'nonpayable',
1488
+ type: 'function',
1489
1489
  },
1490
1490
  {
1491
- "inputs": [
1491
+ inputs: [
1492
1492
  {
1493
- "name": "_tokenIn",
1494
- "type": "address"
1493
+ name: '_tokenIn',
1494
+ type: 'address',
1495
1495
  },
1496
1496
  {
1497
- "name": "_tokenOut",
1498
- "type": "address"
1497
+ name: '_tokenOut',
1498
+ type: 'address',
1499
1499
  },
1500
1500
  {
1501
- "name": "_amountOut",
1502
- "type": "uint256"
1501
+ name: '_amountOut',
1502
+ type: 'uint256',
1503
1503
  },
1504
1504
  {
1505
- "name": "_includeLegoIds",
1506
- "type": "uint256[]"
1507
- }
1505
+ name: '_includeLegoIds',
1506
+ type: 'uint256[]',
1507
+ },
1508
1508
  ],
1509
- "name": "getSwapAmountInViaRouterPool",
1510
- "outputs": [
1509
+ name: 'getSwapAmountInViaRouterPool',
1510
+ outputs: [
1511
1511
  {
1512
- "components": [
1512
+ components: [
1513
1513
  {
1514
- "name": "legoId",
1515
- "type": "uint256"
1514
+ name: 'legoId',
1515
+ type: 'uint256',
1516
1516
  },
1517
1517
  {
1518
- "name": "pool",
1519
- "type": "address"
1518
+ name: 'pool',
1519
+ type: 'address',
1520
1520
  },
1521
1521
  {
1522
- "name": "tokenIn",
1523
- "type": "address"
1522
+ name: 'tokenIn',
1523
+ type: 'address',
1524
1524
  },
1525
1525
  {
1526
- "name": "tokenOut",
1527
- "type": "address"
1526
+ name: 'tokenOut',
1527
+ type: 'address',
1528
1528
  },
1529
1529
  {
1530
- "name": "amountIn",
1531
- "type": "uint256"
1530
+ name: 'amountIn',
1531
+ type: 'uint256',
1532
1532
  },
1533
1533
  {
1534
- "name": "amountOut",
1535
- "type": "uint256"
1536
- }
1534
+ name: 'amountOut',
1535
+ type: 'uint256',
1536
+ },
1537
1537
  ],
1538
- "name": "",
1539
- "type": "tuple"
1540
- }
1538
+ name: '',
1539
+ type: 'tuple',
1540
+ },
1541
1541
  ],
1542
- "stateMutability": "nonpayable",
1543
- "type": "function"
1542
+ stateMutability: 'nonpayable',
1543
+ type: 'function',
1544
1544
  },
1545
1545
  {
1546
- "inputs": [],
1547
- "name": "ADDY_REGISTRY",
1548
- "outputs": [
1546
+ inputs: [],
1547
+ name: 'ADDY_REGISTRY',
1548
+ outputs: [
1549
1549
  {
1550
- "name": "",
1551
- "type": "address"
1552
- }
1550
+ name: '',
1551
+ type: 'address',
1552
+ },
1553
1553
  ],
1554
- "stateMutability": "view",
1555
- "type": "function"
1554
+ stateMutability: 'view',
1555
+ type: 'function',
1556
1556
  },
1557
1557
  {
1558
- "inputs": [],
1559
- "name": "ROUTER_TOKENA",
1560
- "outputs": [
1558
+ inputs: [],
1559
+ name: 'ROUTER_TOKENA',
1560
+ outputs: [
1561
1561
  {
1562
- "name": "",
1563
- "type": "address"
1564
- }
1562
+ name: '',
1563
+ type: 'address',
1564
+ },
1565
1565
  ],
1566
- "stateMutability": "view",
1567
- "type": "function"
1566
+ stateMutability: 'view',
1567
+ type: 'function',
1568
1568
  },
1569
1569
  {
1570
- "inputs": [],
1571
- "name": "ROUTER_TOKENB",
1572
- "outputs": [
1570
+ inputs: [],
1571
+ name: 'ROUTER_TOKENB',
1572
+ outputs: [
1573
1573
  {
1574
- "name": "",
1575
- "type": "address"
1576
- }
1574
+ name: '',
1575
+ type: 'address',
1576
+ },
1577
1577
  ],
1578
- "stateMutability": "view",
1579
- "type": "function"
1578
+ stateMutability: 'view',
1579
+ type: 'function',
1580
1580
  },
1581
1581
  {
1582
- "inputs": [],
1583
- "name": "AAVE_V3_ID",
1584
- "outputs": [
1582
+ inputs: [],
1583
+ name: 'AAVE_V3_ID',
1584
+ outputs: [
1585
1585
  {
1586
- "name": "",
1587
- "type": "uint256"
1588
- }
1586
+ name: '',
1587
+ type: 'uint256',
1588
+ },
1589
1589
  ],
1590
- "stateMutability": "view",
1591
- "type": "function"
1590
+ stateMutability: 'view',
1591
+ type: 'function',
1592
1592
  },
1593
1593
  {
1594
- "inputs": [],
1595
- "name": "COMPOUND_V3_ID",
1596
- "outputs": [
1594
+ inputs: [],
1595
+ name: 'COMPOUND_V3_ID',
1596
+ outputs: [
1597
1597
  {
1598
- "name": "",
1599
- "type": "uint256"
1600
- }
1598
+ name: '',
1599
+ type: 'uint256',
1600
+ },
1601
1601
  ],
1602
- "stateMutability": "view",
1603
- "type": "function"
1602
+ stateMutability: 'view',
1603
+ type: 'function',
1604
1604
  },
1605
1605
  {
1606
- "inputs": [],
1607
- "name": "EULER_ID",
1608
- "outputs": [
1606
+ inputs: [],
1607
+ name: 'EULER_ID',
1608
+ outputs: [
1609
1609
  {
1610
- "name": "",
1611
- "type": "uint256"
1612
- }
1610
+ name: '',
1611
+ type: 'uint256',
1612
+ },
1613
1613
  ],
1614
- "stateMutability": "view",
1615
- "type": "function"
1614
+ stateMutability: 'view',
1615
+ type: 'function',
1616
1616
  },
1617
1617
  {
1618
- "inputs": [],
1619
- "name": "FLUID_ID",
1620
- "outputs": [
1618
+ inputs: [],
1619
+ name: 'FLUID_ID',
1620
+ outputs: [
1621
1621
  {
1622
- "name": "",
1623
- "type": "uint256"
1624
- }
1622
+ name: '',
1623
+ type: 'uint256',
1624
+ },
1625
1625
  ],
1626
- "stateMutability": "view",
1627
- "type": "function"
1626
+ stateMutability: 'view',
1627
+ type: 'function',
1628
1628
  },
1629
1629
  {
1630
- "inputs": [],
1631
- "name": "MOONWELL_ID",
1632
- "outputs": [
1630
+ inputs: [],
1631
+ name: 'MOONWELL_ID',
1632
+ outputs: [
1633
1633
  {
1634
- "name": "",
1635
- "type": "uint256"
1636
- }
1634
+ name: '',
1635
+ type: 'uint256',
1636
+ },
1637
1637
  ],
1638
- "stateMutability": "view",
1639
- "type": "function"
1638
+ stateMutability: 'view',
1639
+ type: 'function',
1640
1640
  },
1641
1641
  {
1642
- "inputs": [],
1643
- "name": "MORPHO_ID",
1644
- "outputs": [
1642
+ inputs: [],
1643
+ name: 'MORPHO_ID',
1644
+ outputs: [
1645
1645
  {
1646
- "name": "",
1647
- "type": "uint256"
1648
- }
1646
+ name: '',
1647
+ type: 'uint256',
1648
+ },
1649
1649
  ],
1650
- "stateMutability": "view",
1651
- "type": "function"
1650
+ stateMutability: 'view',
1651
+ type: 'function',
1652
1652
  },
1653
1653
  {
1654
- "inputs": [],
1655
- "name": "SKY_ID",
1656
- "outputs": [
1654
+ inputs: [],
1655
+ name: 'SKY_ID',
1656
+ outputs: [
1657
1657
  {
1658
- "name": "",
1659
- "type": "uint256"
1660
- }
1658
+ name: '',
1659
+ type: 'uint256',
1660
+ },
1661
1661
  ],
1662
- "stateMutability": "view",
1663
- "type": "function"
1662
+ stateMutability: 'view',
1663
+ type: 'function',
1664
1664
  },
1665
1665
  {
1666
- "inputs": [],
1667
- "name": "UNISWAP_V2_ID",
1668
- "outputs": [
1666
+ inputs: [],
1667
+ name: 'UNISWAP_V2_ID',
1668
+ outputs: [
1669
1669
  {
1670
- "name": "",
1671
- "type": "uint256"
1672
- }
1670
+ name: '',
1671
+ type: 'uint256',
1672
+ },
1673
1673
  ],
1674
- "stateMutability": "view",
1675
- "type": "function"
1674
+ stateMutability: 'view',
1675
+ type: 'function',
1676
1676
  },
1677
1677
  {
1678
- "inputs": [],
1679
- "name": "UNISWAP_V3_ID",
1680
- "outputs": [
1678
+ inputs: [],
1679
+ name: 'UNISWAP_V3_ID',
1680
+ outputs: [
1681
1681
  {
1682
- "name": "",
1683
- "type": "uint256"
1684
- }
1682
+ name: '',
1683
+ type: 'uint256',
1684
+ },
1685
1685
  ],
1686
- "stateMutability": "view",
1687
- "type": "function"
1686
+ stateMutability: 'view',
1687
+ type: 'function',
1688
1688
  },
1689
1689
  {
1690
- "inputs": [],
1691
- "name": "AERODROME_ID",
1692
- "outputs": [
1690
+ inputs: [],
1691
+ name: 'AERODROME_ID',
1692
+ outputs: [
1693
1693
  {
1694
- "name": "",
1695
- "type": "uint256"
1696
- }
1694
+ name: '',
1695
+ type: 'uint256',
1696
+ },
1697
1697
  ],
1698
- "stateMutability": "view",
1699
- "type": "function"
1698
+ stateMutability: 'view',
1699
+ type: 'function',
1700
1700
  },
1701
1701
  {
1702
- "inputs": [],
1703
- "name": "AERODROME_SLIPSTREAM_ID",
1704
- "outputs": [
1702
+ inputs: [],
1703
+ name: 'AERODROME_SLIPSTREAM_ID',
1704
+ outputs: [
1705
1705
  {
1706
- "name": "",
1707
- "type": "uint256"
1708
- }
1706
+ name: '',
1707
+ type: 'uint256',
1708
+ },
1709
1709
  ],
1710
- "stateMutability": "view",
1711
- "type": "function"
1710
+ stateMutability: 'view',
1711
+ type: 'function',
1712
1712
  },
1713
1713
  {
1714
- "inputs": [],
1715
- "name": "CURVE_ID",
1716
- "outputs": [
1714
+ inputs: [],
1715
+ name: 'CURVE_ID',
1716
+ outputs: [
1717
1717
  {
1718
- "name": "",
1719
- "type": "uint256"
1720
- }
1718
+ name: '',
1719
+ type: 'uint256',
1720
+ },
1721
1721
  ],
1722
- "stateMutability": "view",
1723
- "type": "function"
1722
+ stateMutability: 'view',
1723
+ type: 'function',
1724
1724
  },
1725
1725
  {
1726
- "inputs": [
1726
+ inputs: [
1727
1727
  {
1728
- "name": "_addyRegistry",
1729
- "type": "address"
1728
+ name: '_addyRegistry',
1729
+ type: 'address',
1730
1730
  },
1731
1731
  {
1732
- "name": "_routerTokenA",
1733
- "type": "address"
1732
+ name: '_routerTokenA',
1733
+ type: 'address',
1734
1734
  },
1735
1735
  {
1736
- "name": "_routerTokenB",
1737
- "type": "address"
1736
+ name: '_routerTokenB',
1737
+ type: 'address',
1738
1738
  },
1739
1739
  {
1740
- "name": "_aaveV3Id",
1741
- "type": "uint256"
1740
+ name: '_aaveV3Id',
1741
+ type: 'uint256',
1742
1742
  },
1743
1743
  {
1744
- "name": "_compoundV3Id",
1745
- "type": "uint256"
1744
+ name: '_compoundV3Id',
1745
+ type: 'uint256',
1746
1746
  },
1747
1747
  {
1748
- "name": "_eulerId",
1749
- "type": "uint256"
1748
+ name: '_eulerId',
1749
+ type: 'uint256',
1750
1750
  },
1751
1751
  {
1752
- "name": "_fluidId",
1753
- "type": "uint256"
1752
+ name: '_fluidId',
1753
+ type: 'uint256',
1754
1754
  },
1755
1755
  {
1756
- "name": "_moonwellId",
1757
- "type": "uint256"
1756
+ name: '_moonwellId',
1757
+ type: 'uint256',
1758
1758
  },
1759
1759
  {
1760
- "name": "_morphoId",
1761
- "type": "uint256"
1760
+ name: '_morphoId',
1761
+ type: 'uint256',
1762
1762
  },
1763
1763
  {
1764
- "name": "_skyId",
1765
- "type": "uint256"
1764
+ name: '_skyId',
1765
+ type: 'uint256',
1766
1766
  },
1767
1767
  {
1768
- "name": "_uniswapV2Id",
1769
- "type": "uint256"
1768
+ name: '_uniswapV2Id',
1769
+ type: 'uint256',
1770
1770
  },
1771
1771
  {
1772
- "name": "_uniswapV3Id",
1773
- "type": "uint256"
1772
+ name: '_uniswapV3Id',
1773
+ type: 'uint256',
1774
1774
  },
1775
1775
  {
1776
- "name": "_aerodromeId",
1777
- "type": "uint256"
1776
+ name: '_aerodromeId',
1777
+ type: 'uint256',
1778
1778
  },
1779
1779
  {
1780
- "name": "_aerodromeSlipstreamId",
1781
- "type": "uint256"
1780
+ name: '_aerodromeSlipstreamId',
1781
+ type: 'uint256',
1782
1782
  },
1783
1783
  {
1784
- "name": "_curveId",
1785
- "type": "uint256"
1786
- }
1784
+ name: '_curveId',
1785
+ type: 'uint256',
1786
+ },
1787
1787
  ],
1788
- "outputs": [],
1789
- "stateMutability": "nonpayable",
1790
- "type": "constructor"
1791
- }
1788
+ outputs: [],
1789
+ stateMutability: 'nonpayable',
1790
+ type: 'constructor',
1791
+ },
1792
1792
  ];
1793
- export const deployAddress = undefined;
1793
+ export const deployAddress = '0xd313d00cC5E2129799B90Ad538334BB19e17dfEd';
1794
1794
  function getRequest(method, args, contractAddressOrOptions) {
1795
1795
  const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
1796
1796
  const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;