@morpho-dev/router 0.7.1 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +151 -21
- package/dist/evm/bytecode/erc20.txt +1 -1
- package/dist/evm/bytecode/morpho.txt +1 -1
- package/dist/evm/bytecode/multicall3.txt +1 -1
- package/dist/evm/bytecode/oracle.txt +1 -1
- package/dist/evm/bytecode/vault.txt +1 -1
- package/dist/index.browser.d.mts +1009 -3
- package/dist/index.browser.d.mts.map +1 -1
- package/dist/index.browser.d.ts +1009 -3
- package/dist/index.browser.d.ts.map +1 -1
- package/dist/index.browser.js +73 -5
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +73 -5
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +1014 -7
- package/dist/index.node.d.mts.map +1 -1
- package/dist/index.node.d.ts +1014 -7
- package/dist/index.node.d.ts.map +1 -1
- package/dist/index.node.js +150 -19
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +150 -19
- package/dist/index.node.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.node.d.mts
CHANGED
|
@@ -149,8 +149,1014 @@ declare const MetaMorphoFactory: readonly [{
|
|
|
149
149
|
}];
|
|
150
150
|
}];
|
|
151
151
|
type MetaMorphoFactory = typeof MetaMorphoFactory;
|
|
152
|
+
//#endregion
|
|
153
|
+
//#region src/core/Abi/MorphoV2.d.ts
|
|
154
|
+
declare const MorphoV2: readonly [{
|
|
155
|
+
readonly type: "constructor";
|
|
156
|
+
readonly stateMutability: "nonpayable";
|
|
157
|
+
readonly inputs: readonly [];
|
|
158
|
+
}, {
|
|
159
|
+
readonly name: "collateralOf";
|
|
160
|
+
readonly type: "function";
|
|
161
|
+
readonly stateMutability: "view";
|
|
162
|
+
readonly inputs: readonly [{
|
|
163
|
+
readonly type: "bytes32";
|
|
164
|
+
readonly name: "id";
|
|
165
|
+
}, {
|
|
166
|
+
readonly type: "address";
|
|
167
|
+
readonly name: "user";
|
|
168
|
+
}, {
|
|
169
|
+
readonly type: "address";
|
|
170
|
+
readonly name: "collateralToken";
|
|
171
|
+
}];
|
|
172
|
+
readonly outputs: readonly [{
|
|
173
|
+
readonly type: "uint256";
|
|
174
|
+
}];
|
|
175
|
+
}, {
|
|
176
|
+
readonly name: "consume";
|
|
177
|
+
readonly type: "function";
|
|
178
|
+
readonly stateMutability: "nonpayable";
|
|
179
|
+
readonly inputs: readonly [{
|
|
180
|
+
readonly type: "bytes32";
|
|
181
|
+
readonly name: "group";
|
|
182
|
+
}, {
|
|
183
|
+
readonly type: "uint256";
|
|
184
|
+
readonly name: "amount";
|
|
185
|
+
}];
|
|
186
|
+
readonly outputs: readonly [];
|
|
187
|
+
}, {
|
|
188
|
+
readonly name: "consumed";
|
|
189
|
+
readonly type: "function";
|
|
190
|
+
readonly stateMutability: "view";
|
|
191
|
+
readonly inputs: readonly [{
|
|
192
|
+
readonly type: "address";
|
|
193
|
+
readonly name: "user";
|
|
194
|
+
}, {
|
|
195
|
+
readonly type: "bytes32";
|
|
196
|
+
readonly name: "group";
|
|
197
|
+
}];
|
|
198
|
+
readonly outputs: readonly [{
|
|
199
|
+
readonly type: "uint256";
|
|
200
|
+
}];
|
|
201
|
+
}, {
|
|
202
|
+
readonly name: "debtOf";
|
|
203
|
+
readonly type: "function";
|
|
204
|
+
readonly stateMutability: "view";
|
|
205
|
+
readonly inputs: readonly [{
|
|
206
|
+
readonly type: "bytes32";
|
|
207
|
+
readonly name: "id";
|
|
208
|
+
}, {
|
|
209
|
+
readonly type: "address";
|
|
210
|
+
readonly name: "user";
|
|
211
|
+
}];
|
|
212
|
+
readonly outputs: readonly [{
|
|
213
|
+
readonly type: "uint256";
|
|
214
|
+
}];
|
|
215
|
+
}, {
|
|
216
|
+
readonly name: "defaultFees";
|
|
217
|
+
readonly type: "function";
|
|
218
|
+
readonly stateMutability: "view";
|
|
219
|
+
readonly inputs: readonly [{
|
|
220
|
+
readonly type: "address";
|
|
221
|
+
readonly name: "loanToken";
|
|
222
|
+
}, {
|
|
223
|
+
readonly type: "uint256";
|
|
224
|
+
readonly name: "index";
|
|
225
|
+
}];
|
|
226
|
+
readonly outputs: readonly [{
|
|
227
|
+
readonly type: "uint16";
|
|
228
|
+
}];
|
|
229
|
+
}, {
|
|
230
|
+
readonly name: "feeSetter";
|
|
231
|
+
readonly type: "function";
|
|
232
|
+
readonly stateMutability: "view";
|
|
233
|
+
readonly inputs: readonly [];
|
|
234
|
+
readonly outputs: readonly [{
|
|
235
|
+
readonly type: "address";
|
|
236
|
+
}];
|
|
237
|
+
}, {
|
|
238
|
+
readonly name: "fees";
|
|
239
|
+
readonly type: "function";
|
|
240
|
+
readonly stateMutability: "view";
|
|
241
|
+
readonly inputs: readonly [{
|
|
242
|
+
readonly type: "bytes32";
|
|
243
|
+
readonly name: "id";
|
|
244
|
+
}];
|
|
245
|
+
readonly outputs: readonly [{
|
|
246
|
+
readonly type: "uint16[6]";
|
|
247
|
+
}];
|
|
248
|
+
}, {
|
|
249
|
+
readonly name: "flashLoan";
|
|
250
|
+
readonly type: "function";
|
|
251
|
+
readonly stateMutability: "nonpayable";
|
|
252
|
+
readonly inputs: readonly [{
|
|
253
|
+
readonly type: "address";
|
|
254
|
+
readonly name: "token";
|
|
255
|
+
}, {
|
|
256
|
+
readonly type: "uint256";
|
|
257
|
+
readonly name: "assets";
|
|
258
|
+
}, {
|
|
259
|
+
readonly type: "address";
|
|
260
|
+
readonly name: "callback";
|
|
261
|
+
}, {
|
|
262
|
+
readonly type: "bytes";
|
|
263
|
+
readonly name: "data";
|
|
264
|
+
}];
|
|
265
|
+
readonly outputs: readonly [];
|
|
266
|
+
}, {
|
|
267
|
+
readonly name: "isHealthy";
|
|
268
|
+
readonly type: "function";
|
|
269
|
+
readonly stateMutability: "view";
|
|
270
|
+
readonly inputs: readonly [{
|
|
271
|
+
readonly type: "tuple";
|
|
272
|
+
readonly components: readonly [{
|
|
273
|
+
readonly type: "address";
|
|
274
|
+
readonly name: "loanToken";
|
|
275
|
+
}, {
|
|
276
|
+
readonly type: "tuple[]";
|
|
277
|
+
readonly components: readonly [{
|
|
278
|
+
readonly type: "address";
|
|
279
|
+
readonly name: "token";
|
|
280
|
+
}, {
|
|
281
|
+
readonly type: "uint256";
|
|
282
|
+
readonly name: "lltv";
|
|
283
|
+
}, {
|
|
284
|
+
readonly type: "address";
|
|
285
|
+
readonly name: "oracle";
|
|
286
|
+
}];
|
|
287
|
+
readonly name: "collaterals";
|
|
288
|
+
}, {
|
|
289
|
+
readonly type: "uint256";
|
|
290
|
+
readonly name: "maturity";
|
|
291
|
+
}];
|
|
292
|
+
readonly name: "obligation";
|
|
293
|
+
}, {
|
|
294
|
+
readonly type: "bytes32";
|
|
295
|
+
readonly name: "id";
|
|
296
|
+
}, {
|
|
297
|
+
readonly type: "address";
|
|
298
|
+
readonly name: "borrower";
|
|
299
|
+
}];
|
|
300
|
+
readonly outputs: readonly [{
|
|
301
|
+
readonly type: "bool";
|
|
302
|
+
}];
|
|
303
|
+
}, {
|
|
304
|
+
readonly name: "liquidate";
|
|
305
|
+
readonly type: "function";
|
|
306
|
+
readonly stateMutability: "nonpayable";
|
|
307
|
+
readonly inputs: readonly [{
|
|
308
|
+
readonly type: "tuple";
|
|
309
|
+
readonly components: readonly [{
|
|
310
|
+
readonly type: "address";
|
|
311
|
+
readonly name: "loanToken";
|
|
312
|
+
}, {
|
|
313
|
+
readonly type: "tuple[]";
|
|
314
|
+
readonly components: readonly [{
|
|
315
|
+
readonly type: "address";
|
|
316
|
+
readonly name: "token";
|
|
317
|
+
}, {
|
|
318
|
+
readonly type: "uint256";
|
|
319
|
+
readonly name: "lltv";
|
|
320
|
+
}, {
|
|
321
|
+
readonly type: "address";
|
|
322
|
+
readonly name: "oracle";
|
|
323
|
+
}];
|
|
324
|
+
readonly name: "collaterals";
|
|
325
|
+
}, {
|
|
326
|
+
readonly type: "uint256";
|
|
327
|
+
readonly name: "maturity";
|
|
328
|
+
}];
|
|
329
|
+
readonly name: "obligation";
|
|
330
|
+
}, {
|
|
331
|
+
readonly type: "tuple[]";
|
|
332
|
+
readonly components: readonly [{
|
|
333
|
+
readonly type: "uint256";
|
|
334
|
+
readonly name: "collateralIndex";
|
|
335
|
+
}, {
|
|
336
|
+
readonly type: "uint256";
|
|
337
|
+
readonly name: "repaid";
|
|
338
|
+
}, {
|
|
339
|
+
readonly type: "uint256";
|
|
340
|
+
readonly name: "seized";
|
|
341
|
+
}];
|
|
342
|
+
readonly name: "seizures";
|
|
343
|
+
}, {
|
|
344
|
+
readonly type: "address";
|
|
345
|
+
readonly name: "borrower";
|
|
346
|
+
}, {
|
|
347
|
+
readonly type: "bytes";
|
|
348
|
+
readonly name: "data";
|
|
349
|
+
}];
|
|
350
|
+
readonly outputs: readonly [{
|
|
351
|
+
readonly type: "tuple[]";
|
|
352
|
+
readonly components: readonly [{
|
|
353
|
+
readonly type: "uint256";
|
|
354
|
+
readonly name: "collateralIndex";
|
|
355
|
+
}, {
|
|
356
|
+
readonly type: "uint256";
|
|
357
|
+
readonly name: "repaid";
|
|
358
|
+
}, {
|
|
359
|
+
readonly type: "uint256";
|
|
360
|
+
readonly name: "seized";
|
|
361
|
+
}];
|
|
362
|
+
}];
|
|
363
|
+
}, {
|
|
364
|
+
readonly name: "multicall";
|
|
365
|
+
readonly type: "function";
|
|
366
|
+
readonly stateMutability: "nonpayable";
|
|
367
|
+
readonly inputs: readonly [{
|
|
368
|
+
readonly type: "bytes[]";
|
|
369
|
+
readonly name: "calls";
|
|
370
|
+
}];
|
|
371
|
+
readonly outputs: readonly [];
|
|
372
|
+
}, {
|
|
373
|
+
readonly name: "obligationCreated";
|
|
374
|
+
readonly type: "function";
|
|
375
|
+
readonly stateMutability: "view";
|
|
376
|
+
readonly inputs: readonly [{
|
|
377
|
+
readonly type: "bytes32";
|
|
378
|
+
readonly name: "id";
|
|
379
|
+
}];
|
|
380
|
+
readonly outputs: readonly [{
|
|
381
|
+
readonly type: "bool";
|
|
382
|
+
}];
|
|
383
|
+
}, {
|
|
384
|
+
readonly name: "obligationState";
|
|
385
|
+
readonly type: "function";
|
|
386
|
+
readonly stateMutability: "view";
|
|
387
|
+
readonly inputs: readonly [{
|
|
388
|
+
readonly type: "bytes32";
|
|
389
|
+
readonly name: "id";
|
|
390
|
+
}];
|
|
391
|
+
readonly outputs: readonly [{
|
|
392
|
+
readonly type: "uint128";
|
|
393
|
+
readonly name: "totalUnits";
|
|
394
|
+
}, {
|
|
395
|
+
readonly type: "uint128";
|
|
396
|
+
readonly name: "totalShares";
|
|
397
|
+
}, {
|
|
398
|
+
readonly type: "uint256";
|
|
399
|
+
readonly name: "withdrawable";
|
|
400
|
+
}, {
|
|
401
|
+
readonly type: "bool";
|
|
402
|
+
readonly name: "created";
|
|
403
|
+
}];
|
|
404
|
+
}, {
|
|
405
|
+
readonly name: "owner";
|
|
406
|
+
readonly type: "function";
|
|
407
|
+
readonly stateMutability: "view";
|
|
408
|
+
readonly inputs: readonly [];
|
|
409
|
+
readonly outputs: readonly [{
|
|
410
|
+
readonly type: "address";
|
|
411
|
+
}];
|
|
412
|
+
}, {
|
|
413
|
+
readonly name: "repay";
|
|
414
|
+
readonly type: "function";
|
|
415
|
+
readonly stateMutability: "nonpayable";
|
|
416
|
+
readonly inputs: readonly [{
|
|
417
|
+
readonly type: "tuple";
|
|
418
|
+
readonly components: readonly [{
|
|
419
|
+
readonly type: "address";
|
|
420
|
+
readonly name: "loanToken";
|
|
421
|
+
}, {
|
|
422
|
+
readonly type: "tuple[]";
|
|
423
|
+
readonly components: readonly [{
|
|
424
|
+
readonly type: "address";
|
|
425
|
+
readonly name: "token";
|
|
426
|
+
}, {
|
|
427
|
+
readonly type: "uint256";
|
|
428
|
+
readonly name: "lltv";
|
|
429
|
+
}, {
|
|
430
|
+
readonly type: "address";
|
|
431
|
+
readonly name: "oracle";
|
|
432
|
+
}];
|
|
433
|
+
readonly name: "collaterals";
|
|
434
|
+
}, {
|
|
435
|
+
readonly type: "uint256";
|
|
436
|
+
readonly name: "maturity";
|
|
437
|
+
}];
|
|
438
|
+
readonly name: "obligation";
|
|
439
|
+
}, {
|
|
440
|
+
readonly type: "uint256";
|
|
441
|
+
readonly name: "obligationUnits";
|
|
442
|
+
}, {
|
|
443
|
+
readonly type: "address";
|
|
444
|
+
readonly name: "onBehalf";
|
|
445
|
+
}];
|
|
446
|
+
readonly outputs: readonly [];
|
|
447
|
+
}, {
|
|
448
|
+
readonly name: "session";
|
|
449
|
+
readonly type: "function";
|
|
450
|
+
readonly stateMutability: "view";
|
|
451
|
+
readonly inputs: readonly [{
|
|
452
|
+
readonly type: "address";
|
|
453
|
+
readonly name: "user";
|
|
454
|
+
}];
|
|
455
|
+
readonly outputs: readonly [{
|
|
456
|
+
readonly type: "bytes32";
|
|
457
|
+
}];
|
|
458
|
+
}, {
|
|
459
|
+
readonly name: "setDefaultTradingFee";
|
|
460
|
+
readonly type: "function";
|
|
461
|
+
readonly stateMutability: "nonpayable";
|
|
462
|
+
readonly inputs: readonly [{
|
|
463
|
+
readonly type: "address";
|
|
464
|
+
readonly name: "loanToken";
|
|
465
|
+
}, {
|
|
466
|
+
readonly type: "uint256";
|
|
467
|
+
readonly name: "index";
|
|
468
|
+
}, {
|
|
469
|
+
readonly type: "uint256";
|
|
470
|
+
readonly name: "newTradingFee";
|
|
471
|
+
}];
|
|
472
|
+
readonly outputs: readonly [];
|
|
473
|
+
}, {
|
|
474
|
+
readonly name: "setFeeSetter";
|
|
475
|
+
readonly type: "function";
|
|
476
|
+
readonly stateMutability: "nonpayable";
|
|
477
|
+
readonly inputs: readonly [{
|
|
478
|
+
readonly type: "address";
|
|
479
|
+
readonly name: "newFeeSetter";
|
|
480
|
+
}];
|
|
481
|
+
readonly outputs: readonly [];
|
|
482
|
+
}, {
|
|
483
|
+
readonly name: "setObligationTradingFee";
|
|
484
|
+
readonly type: "function";
|
|
485
|
+
readonly stateMutability: "nonpayable";
|
|
486
|
+
readonly inputs: readonly [{
|
|
487
|
+
readonly type: "bytes32";
|
|
488
|
+
readonly name: "id";
|
|
489
|
+
}, {
|
|
490
|
+
readonly type: "uint256";
|
|
491
|
+
readonly name: "index";
|
|
492
|
+
}, {
|
|
493
|
+
readonly type: "uint256";
|
|
494
|
+
readonly name: "newTradingFee";
|
|
495
|
+
}];
|
|
496
|
+
readonly outputs: readonly [];
|
|
497
|
+
}, {
|
|
498
|
+
readonly name: "setOwner";
|
|
499
|
+
readonly type: "function";
|
|
500
|
+
readonly stateMutability: "nonpayable";
|
|
501
|
+
readonly inputs: readonly [{
|
|
502
|
+
readonly type: "address";
|
|
503
|
+
readonly name: "newOwner";
|
|
504
|
+
}];
|
|
505
|
+
readonly outputs: readonly [];
|
|
506
|
+
}, {
|
|
507
|
+
readonly name: "setTradingFeeRecipient";
|
|
508
|
+
readonly type: "function";
|
|
509
|
+
readonly stateMutability: "nonpayable";
|
|
510
|
+
readonly inputs: readonly [{
|
|
511
|
+
readonly type: "address";
|
|
512
|
+
readonly name: "recipient";
|
|
513
|
+
}];
|
|
514
|
+
readonly outputs: readonly [];
|
|
515
|
+
}, {
|
|
516
|
+
readonly name: "sharesOf";
|
|
517
|
+
readonly type: "function";
|
|
518
|
+
readonly stateMutability: "view";
|
|
519
|
+
readonly inputs: readonly [{
|
|
520
|
+
readonly type: "bytes32";
|
|
521
|
+
readonly name: "id";
|
|
522
|
+
}, {
|
|
523
|
+
readonly type: "address";
|
|
524
|
+
readonly name: "user";
|
|
525
|
+
}];
|
|
526
|
+
readonly outputs: readonly [{
|
|
527
|
+
readonly type: "uint256";
|
|
528
|
+
}];
|
|
529
|
+
}, {
|
|
530
|
+
readonly name: "shuffleSession";
|
|
531
|
+
readonly type: "function";
|
|
532
|
+
readonly stateMutability: "nonpayable";
|
|
533
|
+
readonly inputs: readonly [];
|
|
534
|
+
readonly outputs: readonly [];
|
|
535
|
+
}, {
|
|
536
|
+
readonly name: "supplyCollateral";
|
|
537
|
+
readonly type: "function";
|
|
538
|
+
readonly stateMutability: "nonpayable";
|
|
539
|
+
readonly inputs: readonly [{
|
|
540
|
+
readonly type: "tuple";
|
|
541
|
+
readonly components: readonly [{
|
|
542
|
+
readonly type: "address";
|
|
543
|
+
readonly name: "loanToken";
|
|
544
|
+
}, {
|
|
545
|
+
readonly type: "tuple[]";
|
|
546
|
+
readonly components: readonly [{
|
|
547
|
+
readonly type: "address";
|
|
548
|
+
readonly name: "token";
|
|
549
|
+
}, {
|
|
550
|
+
readonly type: "uint256";
|
|
551
|
+
readonly name: "lltv";
|
|
552
|
+
}, {
|
|
553
|
+
readonly type: "address";
|
|
554
|
+
readonly name: "oracle";
|
|
555
|
+
}];
|
|
556
|
+
readonly name: "collaterals";
|
|
557
|
+
}, {
|
|
558
|
+
readonly type: "uint256";
|
|
559
|
+
readonly name: "maturity";
|
|
560
|
+
}];
|
|
561
|
+
readonly name: "obligation";
|
|
562
|
+
}, {
|
|
563
|
+
readonly type: "address";
|
|
564
|
+
readonly name: "collateral";
|
|
565
|
+
}, {
|
|
566
|
+
readonly type: "uint256";
|
|
567
|
+
readonly name: "assets";
|
|
568
|
+
}, {
|
|
569
|
+
readonly type: "address";
|
|
570
|
+
readonly name: "onBehalf";
|
|
571
|
+
}];
|
|
572
|
+
readonly outputs: readonly [];
|
|
573
|
+
}, {
|
|
574
|
+
readonly name: "take";
|
|
575
|
+
readonly type: "function";
|
|
576
|
+
readonly stateMutability: "nonpayable";
|
|
577
|
+
readonly inputs: readonly [{
|
|
578
|
+
readonly type: "uint256";
|
|
579
|
+
readonly name: "buyerAssets";
|
|
580
|
+
}, {
|
|
581
|
+
readonly type: "uint256";
|
|
582
|
+
readonly name: "sellerAssets";
|
|
583
|
+
}, {
|
|
584
|
+
readonly type: "uint256";
|
|
585
|
+
readonly name: "obligationUnits";
|
|
586
|
+
}, {
|
|
587
|
+
readonly type: "uint256";
|
|
588
|
+
readonly name: "obligationShares";
|
|
589
|
+
}, {
|
|
590
|
+
readonly type: "address";
|
|
591
|
+
readonly name: "taker";
|
|
592
|
+
}, {
|
|
593
|
+
readonly type: "tuple";
|
|
594
|
+
readonly components: readonly [{
|
|
595
|
+
readonly type: "tuple";
|
|
596
|
+
readonly components: readonly [{
|
|
597
|
+
readonly type: "address";
|
|
598
|
+
readonly name: "loanToken";
|
|
599
|
+
}, {
|
|
600
|
+
readonly type: "tuple[]";
|
|
601
|
+
readonly components: readonly [{
|
|
602
|
+
readonly type: "address";
|
|
603
|
+
readonly name: "token";
|
|
604
|
+
}, {
|
|
605
|
+
readonly type: "uint256";
|
|
606
|
+
readonly name: "lltv";
|
|
607
|
+
}, {
|
|
608
|
+
readonly type: "address";
|
|
609
|
+
readonly name: "oracle";
|
|
610
|
+
}];
|
|
611
|
+
readonly name: "collaterals";
|
|
612
|
+
}, {
|
|
613
|
+
readonly type: "uint256";
|
|
614
|
+
readonly name: "maturity";
|
|
615
|
+
}];
|
|
616
|
+
readonly name: "obligation";
|
|
617
|
+
}, {
|
|
618
|
+
readonly type: "bool";
|
|
619
|
+
readonly name: "buy";
|
|
620
|
+
}, {
|
|
621
|
+
readonly type: "address";
|
|
622
|
+
readonly name: "maker";
|
|
623
|
+
}, {
|
|
624
|
+
readonly type: "uint256";
|
|
625
|
+
readonly name: "assets";
|
|
626
|
+
}, {
|
|
627
|
+
readonly type: "uint256";
|
|
628
|
+
readonly name: "obligationUnits";
|
|
629
|
+
}, {
|
|
630
|
+
readonly type: "uint256";
|
|
631
|
+
readonly name: "obligationShares";
|
|
632
|
+
}, {
|
|
633
|
+
readonly type: "uint256";
|
|
634
|
+
readonly name: "start";
|
|
635
|
+
}, {
|
|
636
|
+
readonly type: "uint256";
|
|
637
|
+
readonly name: "expiry";
|
|
638
|
+
}, {
|
|
639
|
+
readonly type: "uint256";
|
|
640
|
+
readonly name: "tick";
|
|
641
|
+
}, {
|
|
642
|
+
readonly type: "bytes32";
|
|
643
|
+
readonly name: "group";
|
|
644
|
+
}, {
|
|
645
|
+
readonly type: "bytes32";
|
|
646
|
+
readonly name: "session";
|
|
647
|
+
}, {
|
|
648
|
+
readonly type: "address";
|
|
649
|
+
readonly name: "callback";
|
|
650
|
+
}, {
|
|
651
|
+
readonly type: "bytes";
|
|
652
|
+
readonly name: "callbackData";
|
|
653
|
+
}];
|
|
654
|
+
readonly name: "offer";
|
|
655
|
+
}, {
|
|
656
|
+
readonly type: "tuple";
|
|
657
|
+
readonly components: readonly [{
|
|
658
|
+
readonly type: "uint8";
|
|
659
|
+
readonly name: "v";
|
|
660
|
+
}, {
|
|
661
|
+
readonly type: "bytes32";
|
|
662
|
+
readonly name: "r";
|
|
663
|
+
}, {
|
|
664
|
+
readonly type: "bytes32";
|
|
665
|
+
readonly name: "s";
|
|
666
|
+
}];
|
|
667
|
+
readonly name: "sig";
|
|
668
|
+
}, {
|
|
669
|
+
readonly type: "bytes32";
|
|
670
|
+
readonly name: "root";
|
|
671
|
+
}, {
|
|
672
|
+
readonly type: "bytes32[]";
|
|
673
|
+
readonly name: "proof";
|
|
674
|
+
}, {
|
|
675
|
+
readonly type: "address";
|
|
676
|
+
readonly name: "takerCallback";
|
|
677
|
+
}, {
|
|
678
|
+
readonly type: "bytes";
|
|
679
|
+
readonly name: "takerCallbackData";
|
|
680
|
+
}];
|
|
681
|
+
readonly outputs: readonly [{
|
|
682
|
+
readonly type: "uint256";
|
|
683
|
+
}, {
|
|
684
|
+
readonly type: "uint256";
|
|
685
|
+
}, {
|
|
686
|
+
readonly type: "uint256";
|
|
687
|
+
}, {
|
|
688
|
+
readonly type: "uint256";
|
|
689
|
+
}];
|
|
690
|
+
}, {
|
|
691
|
+
readonly name: "totalShares";
|
|
692
|
+
readonly type: "function";
|
|
693
|
+
readonly stateMutability: "view";
|
|
694
|
+
readonly inputs: readonly [{
|
|
695
|
+
readonly type: "bytes32";
|
|
696
|
+
readonly name: "id";
|
|
697
|
+
}];
|
|
698
|
+
readonly outputs: readonly [{
|
|
699
|
+
readonly type: "uint256";
|
|
700
|
+
}];
|
|
701
|
+
}, {
|
|
702
|
+
readonly name: "totalUnits";
|
|
703
|
+
readonly type: "function";
|
|
704
|
+
readonly stateMutability: "view";
|
|
705
|
+
readonly inputs: readonly [{
|
|
706
|
+
readonly type: "bytes32";
|
|
707
|
+
readonly name: "id";
|
|
708
|
+
}];
|
|
709
|
+
readonly outputs: readonly [{
|
|
710
|
+
readonly type: "uint256";
|
|
711
|
+
}];
|
|
712
|
+
}, {
|
|
713
|
+
readonly name: "touchObligation";
|
|
714
|
+
readonly type: "function";
|
|
715
|
+
readonly stateMutability: "nonpayable";
|
|
716
|
+
readonly inputs: readonly [{
|
|
717
|
+
readonly type: "tuple";
|
|
718
|
+
readonly components: readonly [{
|
|
719
|
+
readonly type: "address";
|
|
720
|
+
readonly name: "loanToken";
|
|
721
|
+
}, {
|
|
722
|
+
readonly type: "tuple[]";
|
|
723
|
+
readonly components: readonly [{
|
|
724
|
+
readonly type: "address";
|
|
725
|
+
readonly name: "token";
|
|
726
|
+
}, {
|
|
727
|
+
readonly type: "uint256";
|
|
728
|
+
readonly name: "lltv";
|
|
729
|
+
}, {
|
|
730
|
+
readonly type: "address";
|
|
731
|
+
readonly name: "oracle";
|
|
732
|
+
}];
|
|
733
|
+
readonly name: "collaterals";
|
|
734
|
+
}, {
|
|
735
|
+
readonly type: "uint256";
|
|
736
|
+
readonly name: "maturity";
|
|
737
|
+
}];
|
|
738
|
+
readonly name: "obligation";
|
|
739
|
+
}];
|
|
740
|
+
readonly outputs: readonly [{
|
|
741
|
+
readonly type: "bytes32";
|
|
742
|
+
}];
|
|
743
|
+
}, {
|
|
744
|
+
readonly name: "tradingFee";
|
|
745
|
+
readonly type: "function";
|
|
746
|
+
readonly stateMutability: "view";
|
|
747
|
+
readonly inputs: readonly [{
|
|
748
|
+
readonly type: "bytes32";
|
|
749
|
+
readonly name: "id";
|
|
750
|
+
}, {
|
|
751
|
+
readonly type: "uint256";
|
|
752
|
+
readonly name: "timeToMaturity";
|
|
753
|
+
}];
|
|
754
|
+
readonly outputs: readonly [{
|
|
755
|
+
readonly type: "uint256";
|
|
756
|
+
}];
|
|
757
|
+
}, {
|
|
758
|
+
readonly name: "tradingFeeRecipient";
|
|
759
|
+
readonly type: "function";
|
|
760
|
+
readonly stateMutability: "view";
|
|
761
|
+
readonly inputs: readonly [];
|
|
762
|
+
readonly outputs: readonly [{
|
|
763
|
+
readonly type: "address";
|
|
764
|
+
}];
|
|
765
|
+
}, {
|
|
766
|
+
readonly name: "withdraw";
|
|
767
|
+
readonly type: "function";
|
|
768
|
+
readonly stateMutability: "nonpayable";
|
|
769
|
+
readonly inputs: readonly [{
|
|
770
|
+
readonly type: "tuple";
|
|
771
|
+
readonly components: readonly [{
|
|
772
|
+
readonly type: "address";
|
|
773
|
+
readonly name: "loanToken";
|
|
774
|
+
}, {
|
|
775
|
+
readonly type: "tuple[]";
|
|
776
|
+
readonly components: readonly [{
|
|
777
|
+
readonly type: "address";
|
|
778
|
+
readonly name: "token";
|
|
779
|
+
}, {
|
|
780
|
+
readonly type: "uint256";
|
|
781
|
+
readonly name: "lltv";
|
|
782
|
+
}, {
|
|
783
|
+
readonly type: "address";
|
|
784
|
+
readonly name: "oracle";
|
|
785
|
+
}];
|
|
786
|
+
readonly name: "collaterals";
|
|
787
|
+
}, {
|
|
788
|
+
readonly type: "uint256";
|
|
789
|
+
readonly name: "maturity";
|
|
790
|
+
}];
|
|
791
|
+
readonly name: "obligation";
|
|
792
|
+
}, {
|
|
793
|
+
readonly type: "uint256";
|
|
794
|
+
readonly name: "obligationUnits";
|
|
795
|
+
}, {
|
|
796
|
+
readonly type: "uint256";
|
|
797
|
+
readonly name: "shares";
|
|
798
|
+
}, {
|
|
799
|
+
readonly type: "address";
|
|
800
|
+
readonly name: "onBehalf";
|
|
801
|
+
}];
|
|
802
|
+
readonly outputs: readonly [{
|
|
803
|
+
readonly type: "uint256";
|
|
804
|
+
}, {
|
|
805
|
+
readonly type: "uint256";
|
|
806
|
+
}];
|
|
807
|
+
}, {
|
|
808
|
+
readonly name: "withdrawCollateral";
|
|
809
|
+
readonly type: "function";
|
|
810
|
+
readonly stateMutability: "nonpayable";
|
|
811
|
+
readonly inputs: readonly [{
|
|
812
|
+
readonly type: "tuple";
|
|
813
|
+
readonly components: readonly [{
|
|
814
|
+
readonly type: "address";
|
|
815
|
+
readonly name: "loanToken";
|
|
816
|
+
}, {
|
|
817
|
+
readonly type: "tuple[]";
|
|
818
|
+
readonly components: readonly [{
|
|
819
|
+
readonly type: "address";
|
|
820
|
+
readonly name: "token";
|
|
821
|
+
}, {
|
|
822
|
+
readonly type: "uint256";
|
|
823
|
+
readonly name: "lltv";
|
|
824
|
+
}, {
|
|
825
|
+
readonly type: "address";
|
|
826
|
+
readonly name: "oracle";
|
|
827
|
+
}];
|
|
828
|
+
readonly name: "collaterals";
|
|
829
|
+
}, {
|
|
830
|
+
readonly type: "uint256";
|
|
831
|
+
readonly name: "maturity";
|
|
832
|
+
}];
|
|
833
|
+
readonly name: "obligation";
|
|
834
|
+
}, {
|
|
835
|
+
readonly type: "address";
|
|
836
|
+
readonly name: "collateral";
|
|
837
|
+
}, {
|
|
838
|
+
readonly type: "uint256";
|
|
839
|
+
readonly name: "assets";
|
|
840
|
+
}, {
|
|
841
|
+
readonly type: "address";
|
|
842
|
+
readonly name: "onBehalf";
|
|
843
|
+
}];
|
|
844
|
+
readonly outputs: readonly [];
|
|
845
|
+
}, {
|
|
846
|
+
readonly name: "withdrawable";
|
|
847
|
+
readonly type: "function";
|
|
848
|
+
readonly stateMutability: "view";
|
|
849
|
+
readonly inputs: readonly [{
|
|
850
|
+
readonly type: "bytes32";
|
|
851
|
+
readonly name: "id";
|
|
852
|
+
}];
|
|
853
|
+
readonly outputs: readonly [{
|
|
854
|
+
readonly type: "uint256";
|
|
855
|
+
}];
|
|
856
|
+
}, {
|
|
857
|
+
readonly name: "Constructor";
|
|
858
|
+
readonly type: "event";
|
|
859
|
+
readonly inputs: readonly [{
|
|
860
|
+
readonly type: "address";
|
|
861
|
+
readonly name: "owner";
|
|
862
|
+
readonly indexed: true;
|
|
863
|
+
}];
|
|
864
|
+
}, {
|
|
865
|
+
readonly name: "Consume";
|
|
866
|
+
readonly type: "event";
|
|
867
|
+
readonly inputs: readonly [{
|
|
868
|
+
readonly type: "address";
|
|
869
|
+
readonly name: "user";
|
|
870
|
+
readonly indexed: true;
|
|
871
|
+
}, {
|
|
872
|
+
readonly type: "bytes32";
|
|
873
|
+
readonly name: "group";
|
|
874
|
+
readonly indexed: true;
|
|
875
|
+
}, {
|
|
876
|
+
readonly type: "uint256";
|
|
877
|
+
readonly name: "amount";
|
|
878
|
+
}];
|
|
879
|
+
}, {
|
|
880
|
+
readonly name: "FlashLoan";
|
|
881
|
+
readonly type: "event";
|
|
882
|
+
readonly inputs: readonly [{
|
|
883
|
+
readonly type: "address";
|
|
884
|
+
readonly name: "caller";
|
|
885
|
+
readonly indexed: true;
|
|
886
|
+
}, {
|
|
887
|
+
readonly type: "address";
|
|
888
|
+
readonly name: "token";
|
|
889
|
+
readonly indexed: true;
|
|
890
|
+
}, {
|
|
891
|
+
readonly type: "uint256";
|
|
892
|
+
readonly name: "assets";
|
|
893
|
+
}];
|
|
894
|
+
}, {
|
|
895
|
+
readonly name: "Liquidate";
|
|
896
|
+
readonly type: "event";
|
|
897
|
+
readonly inputs: readonly [{
|
|
898
|
+
readonly type: "address";
|
|
899
|
+
readonly name: "caller";
|
|
900
|
+
readonly indexed: true;
|
|
901
|
+
}, {
|
|
902
|
+
readonly type: "bytes32";
|
|
903
|
+
readonly name: "id";
|
|
904
|
+
readonly indexed: true;
|
|
905
|
+
}, {
|
|
906
|
+
readonly type: "tuple[]";
|
|
907
|
+
readonly components: readonly [{
|
|
908
|
+
readonly type: "uint256";
|
|
909
|
+
readonly name: "collateralIndex";
|
|
910
|
+
}, {
|
|
911
|
+
readonly type: "uint256";
|
|
912
|
+
readonly name: "repaid";
|
|
913
|
+
}, {
|
|
914
|
+
readonly type: "uint256";
|
|
915
|
+
readonly name: "seized";
|
|
916
|
+
}];
|
|
917
|
+
readonly name: "seizures";
|
|
918
|
+
}, {
|
|
919
|
+
readonly type: "address";
|
|
920
|
+
readonly name: "borrower";
|
|
921
|
+
readonly indexed: true;
|
|
922
|
+
}, {
|
|
923
|
+
readonly type: "uint256";
|
|
924
|
+
readonly name: "totalRepaid";
|
|
925
|
+
}, {
|
|
926
|
+
readonly type: "uint256";
|
|
927
|
+
readonly name: "badDebt";
|
|
928
|
+
}];
|
|
929
|
+
}, {
|
|
930
|
+
readonly name: "ObligationCreated";
|
|
931
|
+
readonly type: "event";
|
|
932
|
+
readonly inputs: readonly [{
|
|
933
|
+
readonly type: "bytes32";
|
|
934
|
+
readonly name: "id";
|
|
935
|
+
readonly indexed: true;
|
|
936
|
+
}, {
|
|
937
|
+
readonly type: "tuple";
|
|
938
|
+
readonly components: readonly [{
|
|
939
|
+
readonly type: "address";
|
|
940
|
+
readonly name: "loanToken";
|
|
941
|
+
}, {
|
|
942
|
+
readonly type: "tuple[]";
|
|
943
|
+
readonly components: readonly [{
|
|
944
|
+
readonly type: "address";
|
|
945
|
+
readonly name: "token";
|
|
946
|
+
}, {
|
|
947
|
+
readonly type: "uint256";
|
|
948
|
+
readonly name: "lltv";
|
|
949
|
+
}, {
|
|
950
|
+
readonly type: "address";
|
|
951
|
+
readonly name: "oracle";
|
|
952
|
+
}];
|
|
953
|
+
readonly name: "collaterals";
|
|
954
|
+
}, {
|
|
955
|
+
readonly type: "uint256";
|
|
956
|
+
readonly name: "maturity";
|
|
957
|
+
}];
|
|
958
|
+
readonly name: "obligation";
|
|
959
|
+
}];
|
|
960
|
+
}, {
|
|
961
|
+
readonly name: "Repay";
|
|
962
|
+
readonly type: "event";
|
|
963
|
+
readonly inputs: readonly [{
|
|
964
|
+
readonly type: "address";
|
|
965
|
+
readonly name: "caller";
|
|
966
|
+
readonly indexed: true;
|
|
967
|
+
}, {
|
|
968
|
+
readonly type: "bytes32";
|
|
969
|
+
readonly name: "id";
|
|
970
|
+
readonly indexed: true;
|
|
971
|
+
}, {
|
|
972
|
+
readonly type: "uint256";
|
|
973
|
+
readonly name: "obligationUnits";
|
|
974
|
+
}, {
|
|
975
|
+
readonly type: "address";
|
|
976
|
+
readonly name: "onBehalf";
|
|
977
|
+
readonly indexed: true;
|
|
978
|
+
}];
|
|
979
|
+
}, {
|
|
980
|
+
readonly name: "SetDefaultTradingFee";
|
|
981
|
+
readonly type: "event";
|
|
982
|
+
readonly inputs: readonly [{
|
|
983
|
+
readonly type: "address";
|
|
984
|
+
readonly name: "loanToken";
|
|
985
|
+
readonly indexed: true;
|
|
986
|
+
}, {
|
|
987
|
+
readonly type: "uint256";
|
|
988
|
+
readonly name: "index";
|
|
989
|
+
readonly indexed: true;
|
|
990
|
+
}, {
|
|
991
|
+
readonly type: "uint256";
|
|
992
|
+
readonly name: "newTradingFee";
|
|
993
|
+
}];
|
|
994
|
+
}, {
|
|
995
|
+
readonly name: "SetFeeSetter";
|
|
996
|
+
readonly type: "event";
|
|
997
|
+
readonly inputs: readonly [{
|
|
998
|
+
readonly type: "address";
|
|
999
|
+
readonly name: "feeSetter";
|
|
1000
|
+
readonly indexed: true;
|
|
1001
|
+
}];
|
|
1002
|
+
}, {
|
|
1003
|
+
readonly name: "SetObligationTradingFee";
|
|
1004
|
+
readonly type: "event";
|
|
1005
|
+
readonly inputs: readonly [{
|
|
1006
|
+
readonly type: "bytes32";
|
|
1007
|
+
readonly name: "id";
|
|
1008
|
+
readonly indexed: true;
|
|
1009
|
+
}, {
|
|
1010
|
+
readonly type: "uint256";
|
|
1011
|
+
readonly name: "index";
|
|
1012
|
+
readonly indexed: true;
|
|
1013
|
+
}, {
|
|
1014
|
+
readonly type: "uint256";
|
|
1015
|
+
readonly name: "newTradingFee";
|
|
1016
|
+
}];
|
|
1017
|
+
}, {
|
|
1018
|
+
readonly name: "SetOwner";
|
|
1019
|
+
readonly type: "event";
|
|
1020
|
+
readonly inputs: readonly [{
|
|
1021
|
+
readonly type: "address";
|
|
1022
|
+
readonly name: "owner";
|
|
1023
|
+
readonly indexed: true;
|
|
1024
|
+
}];
|
|
1025
|
+
}, {
|
|
1026
|
+
readonly name: "SetTradingFeeRecipient";
|
|
1027
|
+
readonly type: "event";
|
|
1028
|
+
readonly inputs: readonly [{
|
|
1029
|
+
readonly type: "address";
|
|
1030
|
+
readonly name: "recipient";
|
|
1031
|
+
readonly indexed: true;
|
|
1032
|
+
}];
|
|
1033
|
+
}, {
|
|
1034
|
+
readonly name: "ShuffleSession";
|
|
1035
|
+
readonly type: "event";
|
|
1036
|
+
readonly inputs: readonly [{
|
|
1037
|
+
readonly type: "address";
|
|
1038
|
+
readonly name: "user";
|
|
1039
|
+
readonly indexed: true;
|
|
1040
|
+
}, {
|
|
1041
|
+
readonly type: "bytes32";
|
|
1042
|
+
readonly name: "session";
|
|
1043
|
+
}];
|
|
1044
|
+
}, {
|
|
1045
|
+
readonly name: "SupplyCollateral";
|
|
1046
|
+
readonly type: "event";
|
|
1047
|
+
readonly inputs: readonly [{
|
|
1048
|
+
readonly type: "address";
|
|
1049
|
+
readonly name: "caller";
|
|
1050
|
+
}, {
|
|
1051
|
+
readonly type: "bytes32";
|
|
1052
|
+
readonly name: "id";
|
|
1053
|
+
readonly indexed: true;
|
|
1054
|
+
}, {
|
|
1055
|
+
readonly type: "address";
|
|
1056
|
+
readonly name: "collateral";
|
|
1057
|
+
readonly indexed: true;
|
|
1058
|
+
}, {
|
|
1059
|
+
readonly type: "uint256";
|
|
1060
|
+
readonly name: "assets";
|
|
1061
|
+
}, {
|
|
1062
|
+
readonly type: "address";
|
|
1063
|
+
readonly name: "onBehalf";
|
|
1064
|
+
readonly indexed: true;
|
|
1065
|
+
}];
|
|
1066
|
+
}, {
|
|
1067
|
+
readonly name: "Take";
|
|
1068
|
+
readonly type: "event";
|
|
1069
|
+
readonly inputs: readonly [{
|
|
1070
|
+
readonly type: "address";
|
|
1071
|
+
readonly name: "caller";
|
|
1072
|
+
}, {
|
|
1073
|
+
readonly type: "bytes32";
|
|
1074
|
+
readonly name: "id";
|
|
1075
|
+
readonly indexed: true;
|
|
1076
|
+
}, {
|
|
1077
|
+
readonly type: "address";
|
|
1078
|
+
readonly name: "maker";
|
|
1079
|
+
readonly indexed: true;
|
|
1080
|
+
}, {
|
|
1081
|
+
readonly type: "address";
|
|
1082
|
+
readonly name: "taker";
|
|
1083
|
+
readonly indexed: true;
|
|
1084
|
+
}, {
|
|
1085
|
+
readonly type: "bool";
|
|
1086
|
+
readonly name: "offerIsBuy";
|
|
1087
|
+
}, {
|
|
1088
|
+
readonly type: "uint256";
|
|
1089
|
+
readonly name: "buyerAssets";
|
|
1090
|
+
}, {
|
|
1091
|
+
readonly type: "uint256";
|
|
1092
|
+
readonly name: "sellerAssets";
|
|
1093
|
+
}, {
|
|
1094
|
+
readonly type: "uint256";
|
|
1095
|
+
readonly name: "obligationUnits";
|
|
1096
|
+
}, {
|
|
1097
|
+
readonly type: "uint256";
|
|
1098
|
+
readonly name: "obligationShares";
|
|
1099
|
+
}, {
|
|
1100
|
+
readonly type: "bool";
|
|
1101
|
+
readonly name: "buyerIsLender";
|
|
1102
|
+
}, {
|
|
1103
|
+
readonly type: "bool";
|
|
1104
|
+
readonly name: "sellerIsBorrower";
|
|
1105
|
+
}, {
|
|
1106
|
+
readonly type: "bytes32";
|
|
1107
|
+
readonly name: "group";
|
|
1108
|
+
}, {
|
|
1109
|
+
readonly type: "uint256";
|
|
1110
|
+
readonly name: "consumed";
|
|
1111
|
+
}];
|
|
1112
|
+
}, {
|
|
1113
|
+
readonly name: "Withdraw";
|
|
1114
|
+
readonly type: "event";
|
|
1115
|
+
readonly inputs: readonly [{
|
|
1116
|
+
readonly type: "address";
|
|
1117
|
+
readonly name: "caller";
|
|
1118
|
+
readonly indexed: true;
|
|
1119
|
+
}, {
|
|
1120
|
+
readonly type: "bytes32";
|
|
1121
|
+
readonly name: "id";
|
|
1122
|
+
readonly indexed: true;
|
|
1123
|
+
}, {
|
|
1124
|
+
readonly type: "uint256";
|
|
1125
|
+
readonly name: "obligationUnits";
|
|
1126
|
+
}, {
|
|
1127
|
+
readonly type: "uint256";
|
|
1128
|
+
readonly name: "shares";
|
|
1129
|
+
}, {
|
|
1130
|
+
readonly type: "address";
|
|
1131
|
+
readonly name: "onBehalf";
|
|
1132
|
+
readonly indexed: true;
|
|
1133
|
+
}];
|
|
1134
|
+
}, {
|
|
1135
|
+
readonly name: "WithdrawCollateral";
|
|
1136
|
+
readonly type: "event";
|
|
1137
|
+
readonly inputs: readonly [{
|
|
1138
|
+
readonly type: "address";
|
|
1139
|
+
readonly name: "caller";
|
|
1140
|
+
}, {
|
|
1141
|
+
readonly type: "bytes32";
|
|
1142
|
+
readonly name: "id";
|
|
1143
|
+
readonly indexed: true;
|
|
1144
|
+
}, {
|
|
1145
|
+
readonly type: "address";
|
|
1146
|
+
readonly name: "collateral";
|
|
1147
|
+
readonly indexed: true;
|
|
1148
|
+
}, {
|
|
1149
|
+
readonly type: "uint256";
|
|
1150
|
+
readonly name: "assets";
|
|
1151
|
+
}, {
|
|
1152
|
+
readonly type: "address";
|
|
1153
|
+
readonly name: "onBehalf";
|
|
1154
|
+
readonly indexed: true;
|
|
1155
|
+
}];
|
|
1156
|
+
}];
|
|
1157
|
+
type MorphoV2 = typeof MorphoV2;
|
|
152
1158
|
declare namespace index_d_exports {
|
|
153
|
-
export { ERC4626, MetaMorpho, MetaMorphoFactory, Morpho, Oracle$1 as Oracle };
|
|
1159
|
+
export { ERC4626, MetaMorpho, MetaMorphoFactory, Morpho, MorphoV2, Oracle$1 as Oracle };
|
|
154
1160
|
}
|
|
155
1161
|
declare const Oracle$1: readonly [{
|
|
156
1162
|
readonly type: "function";
|
|
@@ -3844,10 +4850,10 @@ declare const schemas: {
|
|
|
3844
4850
|
cursor: z$1.ZodOptional<z$1.ZodString>;
|
|
3845
4851
|
limit: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodPipe<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>, z$1.ZodNumber>>>;
|
|
3846
4852
|
types: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodTransform<{} | null | undefined, unknown>, z$1.ZodArray<z$1.ZodEnum<{
|
|
3847
|
-
|
|
4853
|
+
oracle: "oracle";
|
|
3848
4854
|
maturity: "maturity";
|
|
3849
4855
|
callback: "callback";
|
|
3850
|
-
|
|
4856
|
+
loan_token: "loan_token";
|
|
3851
4857
|
}>>>>;
|
|
3852
4858
|
chains: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodTransform<{} | null | undefined, unknown>, z$1.ZodArray<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<number, string>>>>>;
|
|
3853
4859
|
}, z$1.core.$strip>;
|
|
@@ -4003,16 +5009,17 @@ type GetOffersQueryParams = {
|
|
|
4003
5009
|
cursor?: string; /** Page size; defaults to {@link OffersDomain.DEFAULT_LIMIT} */
|
|
4004
5010
|
limit?: number;
|
|
4005
5011
|
};
|
|
5012
|
+
type OffersRowsResult = {
|
|
5013
|
+
rows: Row[];
|
|
5014
|
+
nextCursor: string | null;
|
|
5015
|
+
};
|
|
4006
5016
|
/**
|
|
4007
5017
|
* Query offers with computed consumed/available/takeable values.
|
|
4008
5018
|
* @param db - The database client. {@link Database.Core}
|
|
4009
5019
|
* @param parameters - {@link GetOffersQueryParams}
|
|
4010
5020
|
* @returns The offers with pagination cursor.
|
|
4011
5021
|
*/
|
|
4012
|
-
declare function getOffersQuery(db: Core, parameters?: GetOffersQueryParams): Promise<
|
|
4013
|
-
rows: Row[];
|
|
4014
|
-
nextCursor: string | null;
|
|
4015
|
-
}>;
|
|
5022
|
+
declare function getOffersQuery(db: Core, parameters?: GetOffersQueryParams): Promise<OffersRowsResult>;
|
|
4016
5023
|
declare function getOffers$1(queryParameters: object, db: Database): Promise<Payload<OfferResponse[]>>;
|
|
4017
5024
|
//#endregion
|
|
4018
5025
|
//#region src/api/Controllers/getUserPositions.d.ts
|