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