@morpho-dev/router 0.7.0 → 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.
@@ -220,8 +220,1014 @@ declare const MetaMorphoFactory: readonly [{
220
220
  }];
221
221
  }];
222
222
  type MetaMorphoFactory = typeof MetaMorphoFactory;
223
+ //#endregion
224
+ //#region src/core/Abi/MorphoV2.d.ts
225
+ declare const MorphoV2: readonly [{
226
+ readonly type: "constructor";
227
+ readonly stateMutability: "nonpayable";
228
+ readonly inputs: readonly [];
229
+ }, {
230
+ readonly name: "collateralOf";
231
+ readonly type: "function";
232
+ readonly stateMutability: "view";
233
+ readonly inputs: readonly [{
234
+ readonly type: "bytes32";
235
+ readonly name: "id";
236
+ }, {
237
+ readonly type: "address";
238
+ readonly name: "user";
239
+ }, {
240
+ readonly type: "address";
241
+ readonly name: "collateralToken";
242
+ }];
243
+ readonly outputs: readonly [{
244
+ readonly type: "uint256";
245
+ }];
246
+ }, {
247
+ readonly name: "consume";
248
+ readonly type: "function";
249
+ readonly stateMutability: "nonpayable";
250
+ readonly inputs: readonly [{
251
+ readonly type: "bytes32";
252
+ readonly name: "group";
253
+ }, {
254
+ readonly type: "uint256";
255
+ readonly name: "amount";
256
+ }];
257
+ readonly outputs: readonly [];
258
+ }, {
259
+ readonly name: "consumed";
260
+ readonly type: "function";
261
+ readonly stateMutability: "view";
262
+ readonly inputs: readonly [{
263
+ readonly type: "address";
264
+ readonly name: "user";
265
+ }, {
266
+ readonly type: "bytes32";
267
+ readonly name: "group";
268
+ }];
269
+ readonly outputs: readonly [{
270
+ readonly type: "uint256";
271
+ }];
272
+ }, {
273
+ readonly name: "debtOf";
274
+ readonly type: "function";
275
+ readonly stateMutability: "view";
276
+ readonly inputs: readonly [{
277
+ readonly type: "bytes32";
278
+ readonly name: "id";
279
+ }, {
280
+ readonly type: "address";
281
+ readonly name: "user";
282
+ }];
283
+ readonly outputs: readonly [{
284
+ readonly type: "uint256";
285
+ }];
286
+ }, {
287
+ readonly name: "defaultFees";
288
+ readonly type: "function";
289
+ readonly stateMutability: "view";
290
+ readonly inputs: readonly [{
291
+ readonly type: "address";
292
+ readonly name: "loanToken";
293
+ }, {
294
+ readonly type: "uint256";
295
+ readonly name: "index";
296
+ }];
297
+ readonly outputs: readonly [{
298
+ readonly type: "uint16";
299
+ }];
300
+ }, {
301
+ readonly name: "feeSetter";
302
+ readonly type: "function";
303
+ readonly stateMutability: "view";
304
+ readonly inputs: readonly [];
305
+ readonly outputs: readonly [{
306
+ readonly type: "address";
307
+ }];
308
+ }, {
309
+ readonly name: "fees";
310
+ readonly type: "function";
311
+ readonly stateMutability: "view";
312
+ readonly inputs: readonly [{
313
+ readonly type: "bytes32";
314
+ readonly name: "id";
315
+ }];
316
+ readonly outputs: readonly [{
317
+ readonly type: "uint16[6]";
318
+ }];
319
+ }, {
320
+ readonly name: "flashLoan";
321
+ readonly type: "function";
322
+ readonly stateMutability: "nonpayable";
323
+ readonly inputs: readonly [{
324
+ readonly type: "address";
325
+ readonly name: "token";
326
+ }, {
327
+ readonly type: "uint256";
328
+ readonly name: "assets";
329
+ }, {
330
+ readonly type: "address";
331
+ readonly name: "callback";
332
+ }, {
333
+ readonly type: "bytes";
334
+ readonly name: "data";
335
+ }];
336
+ readonly outputs: readonly [];
337
+ }, {
338
+ readonly name: "isHealthy";
339
+ readonly type: "function";
340
+ readonly stateMutability: "view";
341
+ readonly inputs: readonly [{
342
+ readonly type: "tuple";
343
+ readonly components: readonly [{
344
+ readonly type: "address";
345
+ readonly name: "loanToken";
346
+ }, {
347
+ readonly type: "tuple[]";
348
+ readonly components: readonly [{
349
+ readonly type: "address";
350
+ readonly name: "token";
351
+ }, {
352
+ readonly type: "uint256";
353
+ readonly name: "lltv";
354
+ }, {
355
+ readonly type: "address";
356
+ readonly name: "oracle";
357
+ }];
358
+ readonly name: "collaterals";
359
+ }, {
360
+ readonly type: "uint256";
361
+ readonly name: "maturity";
362
+ }];
363
+ readonly name: "obligation";
364
+ }, {
365
+ readonly type: "bytes32";
366
+ readonly name: "id";
367
+ }, {
368
+ readonly type: "address";
369
+ readonly name: "borrower";
370
+ }];
371
+ readonly outputs: readonly [{
372
+ readonly type: "bool";
373
+ }];
374
+ }, {
375
+ readonly name: "liquidate";
376
+ readonly type: "function";
377
+ readonly stateMutability: "nonpayable";
378
+ readonly inputs: readonly [{
379
+ readonly type: "tuple";
380
+ readonly components: readonly [{
381
+ readonly type: "address";
382
+ readonly name: "loanToken";
383
+ }, {
384
+ readonly type: "tuple[]";
385
+ readonly components: readonly [{
386
+ readonly type: "address";
387
+ readonly name: "token";
388
+ }, {
389
+ readonly type: "uint256";
390
+ readonly name: "lltv";
391
+ }, {
392
+ readonly type: "address";
393
+ readonly name: "oracle";
394
+ }];
395
+ readonly name: "collaterals";
396
+ }, {
397
+ readonly type: "uint256";
398
+ readonly name: "maturity";
399
+ }];
400
+ readonly name: "obligation";
401
+ }, {
402
+ readonly type: "tuple[]";
403
+ readonly components: readonly [{
404
+ readonly type: "uint256";
405
+ readonly name: "collateralIndex";
406
+ }, {
407
+ readonly type: "uint256";
408
+ readonly name: "repaid";
409
+ }, {
410
+ readonly type: "uint256";
411
+ readonly name: "seized";
412
+ }];
413
+ readonly name: "seizures";
414
+ }, {
415
+ readonly type: "address";
416
+ readonly name: "borrower";
417
+ }, {
418
+ readonly type: "bytes";
419
+ readonly name: "data";
420
+ }];
421
+ readonly outputs: readonly [{
422
+ readonly type: "tuple[]";
423
+ readonly components: readonly [{
424
+ readonly type: "uint256";
425
+ readonly name: "collateralIndex";
426
+ }, {
427
+ readonly type: "uint256";
428
+ readonly name: "repaid";
429
+ }, {
430
+ readonly type: "uint256";
431
+ readonly name: "seized";
432
+ }];
433
+ }];
434
+ }, {
435
+ readonly name: "multicall";
436
+ readonly type: "function";
437
+ readonly stateMutability: "nonpayable";
438
+ readonly inputs: readonly [{
439
+ readonly type: "bytes[]";
440
+ readonly name: "calls";
441
+ }];
442
+ readonly outputs: readonly [];
443
+ }, {
444
+ readonly name: "obligationCreated";
445
+ readonly type: "function";
446
+ readonly stateMutability: "view";
447
+ readonly inputs: readonly [{
448
+ readonly type: "bytes32";
449
+ readonly name: "id";
450
+ }];
451
+ readonly outputs: readonly [{
452
+ readonly type: "bool";
453
+ }];
454
+ }, {
455
+ readonly name: "obligationState";
456
+ readonly type: "function";
457
+ readonly stateMutability: "view";
458
+ readonly inputs: readonly [{
459
+ readonly type: "bytes32";
460
+ readonly name: "id";
461
+ }];
462
+ readonly outputs: readonly [{
463
+ readonly type: "uint128";
464
+ readonly name: "totalUnits";
465
+ }, {
466
+ readonly type: "uint128";
467
+ readonly name: "totalShares";
468
+ }, {
469
+ readonly type: "uint256";
470
+ readonly name: "withdrawable";
471
+ }, {
472
+ readonly type: "bool";
473
+ readonly name: "created";
474
+ }];
475
+ }, {
476
+ readonly name: "owner";
477
+ readonly type: "function";
478
+ readonly stateMutability: "view";
479
+ readonly inputs: readonly [];
480
+ readonly outputs: readonly [{
481
+ readonly type: "address";
482
+ }];
483
+ }, {
484
+ readonly name: "repay";
485
+ readonly type: "function";
486
+ readonly stateMutability: "nonpayable";
487
+ readonly inputs: readonly [{
488
+ readonly type: "tuple";
489
+ readonly components: readonly [{
490
+ readonly type: "address";
491
+ readonly name: "loanToken";
492
+ }, {
493
+ readonly type: "tuple[]";
494
+ readonly components: readonly [{
495
+ readonly type: "address";
496
+ readonly name: "token";
497
+ }, {
498
+ readonly type: "uint256";
499
+ readonly name: "lltv";
500
+ }, {
501
+ readonly type: "address";
502
+ readonly name: "oracle";
503
+ }];
504
+ readonly name: "collaterals";
505
+ }, {
506
+ readonly type: "uint256";
507
+ readonly name: "maturity";
508
+ }];
509
+ readonly name: "obligation";
510
+ }, {
511
+ readonly type: "uint256";
512
+ readonly name: "obligationUnits";
513
+ }, {
514
+ readonly type: "address";
515
+ readonly name: "onBehalf";
516
+ }];
517
+ readonly outputs: readonly [];
518
+ }, {
519
+ readonly name: "session";
520
+ readonly type: "function";
521
+ readonly stateMutability: "view";
522
+ readonly inputs: readonly [{
523
+ readonly type: "address";
524
+ readonly name: "user";
525
+ }];
526
+ readonly outputs: readonly [{
527
+ readonly type: "bytes32";
528
+ }];
529
+ }, {
530
+ readonly name: "setDefaultTradingFee";
531
+ readonly type: "function";
532
+ readonly stateMutability: "nonpayable";
533
+ readonly inputs: readonly [{
534
+ readonly type: "address";
535
+ readonly name: "loanToken";
536
+ }, {
537
+ readonly type: "uint256";
538
+ readonly name: "index";
539
+ }, {
540
+ readonly type: "uint256";
541
+ readonly name: "newTradingFee";
542
+ }];
543
+ readonly outputs: readonly [];
544
+ }, {
545
+ readonly name: "setFeeSetter";
546
+ readonly type: "function";
547
+ readonly stateMutability: "nonpayable";
548
+ readonly inputs: readonly [{
549
+ readonly type: "address";
550
+ readonly name: "newFeeSetter";
551
+ }];
552
+ readonly outputs: readonly [];
553
+ }, {
554
+ readonly name: "setObligationTradingFee";
555
+ readonly type: "function";
556
+ readonly stateMutability: "nonpayable";
557
+ readonly inputs: readonly [{
558
+ readonly type: "bytes32";
559
+ readonly name: "id";
560
+ }, {
561
+ readonly type: "uint256";
562
+ readonly name: "index";
563
+ }, {
564
+ readonly type: "uint256";
565
+ readonly name: "newTradingFee";
566
+ }];
567
+ readonly outputs: readonly [];
568
+ }, {
569
+ readonly name: "setOwner";
570
+ readonly type: "function";
571
+ readonly stateMutability: "nonpayable";
572
+ readonly inputs: readonly [{
573
+ readonly type: "address";
574
+ readonly name: "newOwner";
575
+ }];
576
+ readonly outputs: readonly [];
577
+ }, {
578
+ readonly name: "setTradingFeeRecipient";
579
+ readonly type: "function";
580
+ readonly stateMutability: "nonpayable";
581
+ readonly inputs: readonly [{
582
+ readonly type: "address";
583
+ readonly name: "recipient";
584
+ }];
585
+ readonly outputs: readonly [];
586
+ }, {
587
+ readonly name: "sharesOf";
588
+ readonly type: "function";
589
+ readonly stateMutability: "view";
590
+ readonly inputs: readonly [{
591
+ readonly type: "bytes32";
592
+ readonly name: "id";
593
+ }, {
594
+ readonly type: "address";
595
+ readonly name: "user";
596
+ }];
597
+ readonly outputs: readonly [{
598
+ readonly type: "uint256";
599
+ }];
600
+ }, {
601
+ readonly name: "shuffleSession";
602
+ readonly type: "function";
603
+ readonly stateMutability: "nonpayable";
604
+ readonly inputs: readonly [];
605
+ readonly outputs: readonly [];
606
+ }, {
607
+ readonly name: "supplyCollateral";
608
+ readonly type: "function";
609
+ readonly stateMutability: "nonpayable";
610
+ readonly inputs: readonly [{
611
+ readonly type: "tuple";
612
+ readonly components: readonly [{
613
+ readonly type: "address";
614
+ readonly name: "loanToken";
615
+ }, {
616
+ readonly type: "tuple[]";
617
+ readonly components: readonly [{
618
+ readonly type: "address";
619
+ readonly name: "token";
620
+ }, {
621
+ readonly type: "uint256";
622
+ readonly name: "lltv";
623
+ }, {
624
+ readonly type: "address";
625
+ readonly name: "oracle";
626
+ }];
627
+ readonly name: "collaterals";
628
+ }, {
629
+ readonly type: "uint256";
630
+ readonly name: "maturity";
631
+ }];
632
+ readonly name: "obligation";
633
+ }, {
634
+ readonly type: "address";
635
+ readonly name: "collateral";
636
+ }, {
637
+ readonly type: "uint256";
638
+ readonly name: "assets";
639
+ }, {
640
+ readonly type: "address";
641
+ readonly name: "onBehalf";
642
+ }];
643
+ readonly outputs: readonly [];
644
+ }, {
645
+ readonly name: "take";
646
+ readonly type: "function";
647
+ readonly stateMutability: "nonpayable";
648
+ readonly inputs: readonly [{
649
+ readonly type: "uint256";
650
+ readonly name: "buyerAssets";
651
+ }, {
652
+ readonly type: "uint256";
653
+ readonly name: "sellerAssets";
654
+ }, {
655
+ readonly type: "uint256";
656
+ readonly name: "obligationUnits";
657
+ }, {
658
+ readonly type: "uint256";
659
+ readonly name: "obligationShares";
660
+ }, {
661
+ readonly type: "address";
662
+ readonly name: "taker";
663
+ }, {
664
+ readonly type: "tuple";
665
+ readonly components: readonly [{
666
+ readonly type: "tuple";
667
+ readonly components: readonly [{
668
+ readonly type: "address";
669
+ readonly name: "loanToken";
670
+ }, {
671
+ readonly type: "tuple[]";
672
+ readonly components: readonly [{
673
+ readonly type: "address";
674
+ readonly name: "token";
675
+ }, {
676
+ readonly type: "uint256";
677
+ readonly name: "lltv";
678
+ }, {
679
+ readonly type: "address";
680
+ readonly name: "oracle";
681
+ }];
682
+ readonly name: "collaterals";
683
+ }, {
684
+ readonly type: "uint256";
685
+ readonly name: "maturity";
686
+ }];
687
+ readonly name: "obligation";
688
+ }, {
689
+ readonly type: "bool";
690
+ readonly name: "buy";
691
+ }, {
692
+ readonly type: "address";
693
+ readonly name: "maker";
694
+ }, {
695
+ readonly type: "uint256";
696
+ readonly name: "assets";
697
+ }, {
698
+ readonly type: "uint256";
699
+ readonly name: "obligationUnits";
700
+ }, {
701
+ readonly type: "uint256";
702
+ readonly name: "obligationShares";
703
+ }, {
704
+ readonly type: "uint256";
705
+ readonly name: "start";
706
+ }, {
707
+ readonly type: "uint256";
708
+ readonly name: "expiry";
709
+ }, {
710
+ readonly type: "uint256";
711
+ readonly name: "tick";
712
+ }, {
713
+ readonly type: "bytes32";
714
+ readonly name: "group";
715
+ }, {
716
+ readonly type: "bytes32";
717
+ readonly name: "session";
718
+ }, {
719
+ readonly type: "address";
720
+ readonly name: "callback";
721
+ }, {
722
+ readonly type: "bytes";
723
+ readonly name: "callbackData";
724
+ }];
725
+ readonly name: "offer";
726
+ }, {
727
+ readonly type: "tuple";
728
+ readonly components: readonly [{
729
+ readonly type: "uint8";
730
+ readonly name: "v";
731
+ }, {
732
+ readonly type: "bytes32";
733
+ readonly name: "r";
734
+ }, {
735
+ readonly type: "bytes32";
736
+ readonly name: "s";
737
+ }];
738
+ readonly name: "sig";
739
+ }, {
740
+ readonly type: "bytes32";
741
+ readonly name: "root";
742
+ }, {
743
+ readonly type: "bytes32[]";
744
+ readonly name: "proof";
745
+ }, {
746
+ readonly type: "address";
747
+ readonly name: "takerCallback";
748
+ }, {
749
+ readonly type: "bytes";
750
+ readonly name: "takerCallbackData";
751
+ }];
752
+ readonly outputs: readonly [{
753
+ readonly type: "uint256";
754
+ }, {
755
+ readonly type: "uint256";
756
+ }, {
757
+ readonly type: "uint256";
758
+ }, {
759
+ readonly type: "uint256";
760
+ }];
761
+ }, {
762
+ readonly name: "totalShares";
763
+ readonly type: "function";
764
+ readonly stateMutability: "view";
765
+ readonly inputs: readonly [{
766
+ readonly type: "bytes32";
767
+ readonly name: "id";
768
+ }];
769
+ readonly outputs: readonly [{
770
+ readonly type: "uint256";
771
+ }];
772
+ }, {
773
+ readonly name: "totalUnits";
774
+ readonly type: "function";
775
+ readonly stateMutability: "view";
776
+ readonly inputs: readonly [{
777
+ readonly type: "bytes32";
778
+ readonly name: "id";
779
+ }];
780
+ readonly outputs: readonly [{
781
+ readonly type: "uint256";
782
+ }];
783
+ }, {
784
+ readonly name: "touchObligation";
785
+ readonly type: "function";
786
+ readonly stateMutability: "nonpayable";
787
+ readonly inputs: readonly [{
788
+ readonly type: "tuple";
789
+ readonly components: readonly [{
790
+ readonly type: "address";
791
+ readonly name: "loanToken";
792
+ }, {
793
+ readonly type: "tuple[]";
794
+ readonly components: readonly [{
795
+ readonly type: "address";
796
+ readonly name: "token";
797
+ }, {
798
+ readonly type: "uint256";
799
+ readonly name: "lltv";
800
+ }, {
801
+ readonly type: "address";
802
+ readonly name: "oracle";
803
+ }];
804
+ readonly name: "collaterals";
805
+ }, {
806
+ readonly type: "uint256";
807
+ readonly name: "maturity";
808
+ }];
809
+ readonly name: "obligation";
810
+ }];
811
+ readonly outputs: readonly [{
812
+ readonly type: "bytes32";
813
+ }];
814
+ }, {
815
+ readonly name: "tradingFee";
816
+ readonly type: "function";
817
+ readonly stateMutability: "view";
818
+ readonly inputs: readonly [{
819
+ readonly type: "bytes32";
820
+ readonly name: "id";
821
+ }, {
822
+ readonly type: "uint256";
823
+ readonly name: "timeToMaturity";
824
+ }];
825
+ readonly outputs: readonly [{
826
+ readonly type: "uint256";
827
+ }];
828
+ }, {
829
+ readonly name: "tradingFeeRecipient";
830
+ readonly type: "function";
831
+ readonly stateMutability: "view";
832
+ readonly inputs: readonly [];
833
+ readonly outputs: readonly [{
834
+ readonly type: "address";
835
+ }];
836
+ }, {
837
+ readonly name: "withdraw";
838
+ readonly type: "function";
839
+ readonly stateMutability: "nonpayable";
840
+ readonly inputs: readonly [{
841
+ readonly type: "tuple";
842
+ readonly components: readonly [{
843
+ readonly type: "address";
844
+ readonly name: "loanToken";
845
+ }, {
846
+ readonly type: "tuple[]";
847
+ readonly components: readonly [{
848
+ readonly type: "address";
849
+ readonly name: "token";
850
+ }, {
851
+ readonly type: "uint256";
852
+ readonly name: "lltv";
853
+ }, {
854
+ readonly type: "address";
855
+ readonly name: "oracle";
856
+ }];
857
+ readonly name: "collaterals";
858
+ }, {
859
+ readonly type: "uint256";
860
+ readonly name: "maturity";
861
+ }];
862
+ readonly name: "obligation";
863
+ }, {
864
+ readonly type: "uint256";
865
+ readonly name: "obligationUnits";
866
+ }, {
867
+ readonly type: "uint256";
868
+ readonly name: "shares";
869
+ }, {
870
+ readonly type: "address";
871
+ readonly name: "onBehalf";
872
+ }];
873
+ readonly outputs: readonly [{
874
+ readonly type: "uint256";
875
+ }, {
876
+ readonly type: "uint256";
877
+ }];
878
+ }, {
879
+ readonly name: "withdrawCollateral";
880
+ readonly type: "function";
881
+ readonly stateMutability: "nonpayable";
882
+ readonly inputs: readonly [{
883
+ readonly type: "tuple";
884
+ readonly components: readonly [{
885
+ readonly type: "address";
886
+ readonly name: "loanToken";
887
+ }, {
888
+ readonly type: "tuple[]";
889
+ readonly components: readonly [{
890
+ readonly type: "address";
891
+ readonly name: "token";
892
+ }, {
893
+ readonly type: "uint256";
894
+ readonly name: "lltv";
895
+ }, {
896
+ readonly type: "address";
897
+ readonly name: "oracle";
898
+ }];
899
+ readonly name: "collaterals";
900
+ }, {
901
+ readonly type: "uint256";
902
+ readonly name: "maturity";
903
+ }];
904
+ readonly name: "obligation";
905
+ }, {
906
+ readonly type: "address";
907
+ readonly name: "collateral";
908
+ }, {
909
+ readonly type: "uint256";
910
+ readonly name: "assets";
911
+ }, {
912
+ readonly type: "address";
913
+ readonly name: "onBehalf";
914
+ }];
915
+ readonly outputs: readonly [];
916
+ }, {
917
+ readonly name: "withdrawable";
918
+ readonly type: "function";
919
+ readonly stateMutability: "view";
920
+ readonly inputs: readonly [{
921
+ readonly type: "bytes32";
922
+ readonly name: "id";
923
+ }];
924
+ readonly outputs: readonly [{
925
+ readonly type: "uint256";
926
+ }];
927
+ }, {
928
+ readonly name: "Constructor";
929
+ readonly type: "event";
930
+ readonly inputs: readonly [{
931
+ readonly type: "address";
932
+ readonly name: "owner";
933
+ readonly indexed: true;
934
+ }];
935
+ }, {
936
+ readonly name: "Consume";
937
+ readonly type: "event";
938
+ readonly inputs: readonly [{
939
+ readonly type: "address";
940
+ readonly name: "user";
941
+ readonly indexed: true;
942
+ }, {
943
+ readonly type: "bytes32";
944
+ readonly name: "group";
945
+ readonly indexed: true;
946
+ }, {
947
+ readonly type: "uint256";
948
+ readonly name: "amount";
949
+ }];
950
+ }, {
951
+ readonly name: "FlashLoan";
952
+ readonly type: "event";
953
+ readonly inputs: readonly [{
954
+ readonly type: "address";
955
+ readonly name: "caller";
956
+ readonly indexed: true;
957
+ }, {
958
+ readonly type: "address";
959
+ readonly name: "token";
960
+ readonly indexed: true;
961
+ }, {
962
+ readonly type: "uint256";
963
+ readonly name: "assets";
964
+ }];
965
+ }, {
966
+ readonly name: "Liquidate";
967
+ readonly type: "event";
968
+ readonly inputs: readonly [{
969
+ readonly type: "address";
970
+ readonly name: "caller";
971
+ readonly indexed: true;
972
+ }, {
973
+ readonly type: "bytes32";
974
+ readonly name: "id";
975
+ readonly indexed: true;
976
+ }, {
977
+ readonly type: "tuple[]";
978
+ readonly components: readonly [{
979
+ readonly type: "uint256";
980
+ readonly name: "collateralIndex";
981
+ }, {
982
+ readonly type: "uint256";
983
+ readonly name: "repaid";
984
+ }, {
985
+ readonly type: "uint256";
986
+ readonly name: "seized";
987
+ }];
988
+ readonly name: "seizures";
989
+ }, {
990
+ readonly type: "address";
991
+ readonly name: "borrower";
992
+ readonly indexed: true;
993
+ }, {
994
+ readonly type: "uint256";
995
+ readonly name: "totalRepaid";
996
+ }, {
997
+ readonly type: "uint256";
998
+ readonly name: "badDebt";
999
+ }];
1000
+ }, {
1001
+ readonly name: "ObligationCreated";
1002
+ readonly type: "event";
1003
+ readonly inputs: readonly [{
1004
+ readonly type: "bytes32";
1005
+ readonly name: "id";
1006
+ readonly indexed: true;
1007
+ }, {
1008
+ readonly type: "tuple";
1009
+ readonly components: readonly [{
1010
+ readonly type: "address";
1011
+ readonly name: "loanToken";
1012
+ }, {
1013
+ readonly type: "tuple[]";
1014
+ readonly components: readonly [{
1015
+ readonly type: "address";
1016
+ readonly name: "token";
1017
+ }, {
1018
+ readonly type: "uint256";
1019
+ readonly name: "lltv";
1020
+ }, {
1021
+ readonly type: "address";
1022
+ readonly name: "oracle";
1023
+ }];
1024
+ readonly name: "collaterals";
1025
+ }, {
1026
+ readonly type: "uint256";
1027
+ readonly name: "maturity";
1028
+ }];
1029
+ readonly name: "obligation";
1030
+ }];
1031
+ }, {
1032
+ readonly name: "Repay";
1033
+ readonly type: "event";
1034
+ readonly inputs: readonly [{
1035
+ readonly type: "address";
1036
+ readonly name: "caller";
1037
+ readonly indexed: true;
1038
+ }, {
1039
+ readonly type: "bytes32";
1040
+ readonly name: "id";
1041
+ readonly indexed: true;
1042
+ }, {
1043
+ readonly type: "uint256";
1044
+ readonly name: "obligationUnits";
1045
+ }, {
1046
+ readonly type: "address";
1047
+ readonly name: "onBehalf";
1048
+ readonly indexed: true;
1049
+ }];
1050
+ }, {
1051
+ readonly name: "SetDefaultTradingFee";
1052
+ readonly type: "event";
1053
+ readonly inputs: readonly [{
1054
+ readonly type: "address";
1055
+ readonly name: "loanToken";
1056
+ readonly indexed: true;
1057
+ }, {
1058
+ readonly type: "uint256";
1059
+ readonly name: "index";
1060
+ readonly indexed: true;
1061
+ }, {
1062
+ readonly type: "uint256";
1063
+ readonly name: "newTradingFee";
1064
+ }];
1065
+ }, {
1066
+ readonly name: "SetFeeSetter";
1067
+ readonly type: "event";
1068
+ readonly inputs: readonly [{
1069
+ readonly type: "address";
1070
+ readonly name: "feeSetter";
1071
+ readonly indexed: true;
1072
+ }];
1073
+ }, {
1074
+ readonly name: "SetObligationTradingFee";
1075
+ readonly type: "event";
1076
+ readonly inputs: readonly [{
1077
+ readonly type: "bytes32";
1078
+ readonly name: "id";
1079
+ readonly indexed: true;
1080
+ }, {
1081
+ readonly type: "uint256";
1082
+ readonly name: "index";
1083
+ readonly indexed: true;
1084
+ }, {
1085
+ readonly type: "uint256";
1086
+ readonly name: "newTradingFee";
1087
+ }];
1088
+ }, {
1089
+ readonly name: "SetOwner";
1090
+ readonly type: "event";
1091
+ readonly inputs: readonly [{
1092
+ readonly type: "address";
1093
+ readonly name: "owner";
1094
+ readonly indexed: true;
1095
+ }];
1096
+ }, {
1097
+ readonly name: "SetTradingFeeRecipient";
1098
+ readonly type: "event";
1099
+ readonly inputs: readonly [{
1100
+ readonly type: "address";
1101
+ readonly name: "recipient";
1102
+ readonly indexed: true;
1103
+ }];
1104
+ }, {
1105
+ readonly name: "ShuffleSession";
1106
+ readonly type: "event";
1107
+ readonly inputs: readonly [{
1108
+ readonly type: "address";
1109
+ readonly name: "user";
1110
+ readonly indexed: true;
1111
+ }, {
1112
+ readonly type: "bytes32";
1113
+ readonly name: "session";
1114
+ }];
1115
+ }, {
1116
+ readonly name: "SupplyCollateral";
1117
+ readonly type: "event";
1118
+ readonly inputs: readonly [{
1119
+ readonly type: "address";
1120
+ readonly name: "caller";
1121
+ }, {
1122
+ readonly type: "bytes32";
1123
+ readonly name: "id";
1124
+ readonly indexed: true;
1125
+ }, {
1126
+ readonly type: "address";
1127
+ readonly name: "collateral";
1128
+ readonly indexed: true;
1129
+ }, {
1130
+ readonly type: "uint256";
1131
+ readonly name: "assets";
1132
+ }, {
1133
+ readonly type: "address";
1134
+ readonly name: "onBehalf";
1135
+ readonly indexed: true;
1136
+ }];
1137
+ }, {
1138
+ readonly name: "Take";
1139
+ readonly type: "event";
1140
+ readonly inputs: readonly [{
1141
+ readonly type: "address";
1142
+ readonly name: "caller";
1143
+ }, {
1144
+ readonly type: "bytes32";
1145
+ readonly name: "id";
1146
+ readonly indexed: true;
1147
+ }, {
1148
+ readonly type: "address";
1149
+ readonly name: "maker";
1150
+ readonly indexed: true;
1151
+ }, {
1152
+ readonly type: "address";
1153
+ readonly name: "taker";
1154
+ readonly indexed: true;
1155
+ }, {
1156
+ readonly type: "bool";
1157
+ readonly name: "offerIsBuy";
1158
+ }, {
1159
+ readonly type: "uint256";
1160
+ readonly name: "buyerAssets";
1161
+ }, {
1162
+ readonly type: "uint256";
1163
+ readonly name: "sellerAssets";
1164
+ }, {
1165
+ readonly type: "uint256";
1166
+ readonly name: "obligationUnits";
1167
+ }, {
1168
+ readonly type: "uint256";
1169
+ readonly name: "obligationShares";
1170
+ }, {
1171
+ readonly type: "bool";
1172
+ readonly name: "buyerIsLender";
1173
+ }, {
1174
+ readonly type: "bool";
1175
+ readonly name: "sellerIsBorrower";
1176
+ }, {
1177
+ readonly type: "bytes32";
1178
+ readonly name: "group";
1179
+ }, {
1180
+ readonly type: "uint256";
1181
+ readonly name: "consumed";
1182
+ }];
1183
+ }, {
1184
+ readonly name: "Withdraw";
1185
+ readonly type: "event";
1186
+ readonly inputs: readonly [{
1187
+ readonly type: "address";
1188
+ readonly name: "caller";
1189
+ readonly indexed: true;
1190
+ }, {
1191
+ readonly type: "bytes32";
1192
+ readonly name: "id";
1193
+ readonly indexed: true;
1194
+ }, {
1195
+ readonly type: "uint256";
1196
+ readonly name: "obligationUnits";
1197
+ }, {
1198
+ readonly type: "uint256";
1199
+ readonly name: "shares";
1200
+ }, {
1201
+ readonly type: "address";
1202
+ readonly name: "onBehalf";
1203
+ readonly indexed: true;
1204
+ }];
1205
+ }, {
1206
+ readonly name: "WithdrawCollateral";
1207
+ readonly type: "event";
1208
+ readonly inputs: readonly [{
1209
+ readonly type: "address";
1210
+ readonly name: "caller";
1211
+ }, {
1212
+ readonly type: "bytes32";
1213
+ readonly name: "id";
1214
+ readonly indexed: true;
1215
+ }, {
1216
+ readonly type: "address";
1217
+ readonly name: "collateral";
1218
+ readonly indexed: true;
1219
+ }, {
1220
+ readonly type: "uint256";
1221
+ readonly name: "assets";
1222
+ }, {
1223
+ readonly type: "address";
1224
+ readonly name: "onBehalf";
1225
+ readonly indexed: true;
1226
+ }];
1227
+ }];
1228
+ type MorphoV2 = typeof MorphoV2;
223
1229
  declare namespace index_d_exports {
224
- export { ERC4626, MetaMorpho, MetaMorphoFactory, Morpho, Oracle$1 as Oracle };
1230
+ export { ERC4626, MetaMorpho, MetaMorphoFactory, Morpho, MorphoV2, Oracle$1 as Oracle };
225
1231
  }
226
1232
  declare const Oracle$1: readonly [{
227
1233
  readonly type: "function";
@@ -344,94 +1350,19 @@ declare const Morpho: readonly [{
344
1350
  }];
345
1351
  readonly stateMutability: "view";
346
1352
  }];
347
- //#endregion
348
- //#region src/core/types.d.ts
349
- /** Combines members of an intersection into a readable type. */
350
- type Compute<type> = { [key in keyof type]: type[key] } & unknown;
351
- declare const BrandTypeId: unique symbol;
352
- type Brand<in out ID extends string | symbol> = {
353
- readonly [BrandTypeId]: { readonly [id in ID]: ID };
354
- };
355
1353
  declare namespace Callback_d_exports {
356
- export { BuyERC20Data, BuyVaultV1CallbackData, Callback, CallbackPosition, SellERC20CallbackData, Type$1 as Type, decode$2 as decode, decodeBuyERC20, decodeBuyVaultV1Callback, decodeSellERC20Callback, encode$2 as encode, encodeBuyERC20, encodeBuyVaultV1Callback, encodeSellERC20Callback, isEmptyCallback };
1354
+ export { Callback, Type$1 as Type, isEmptyCallback };
357
1355
  }
358
- /** A position decoded from callback data. */
359
- type CallbackPosition = {
360
- /** The ERC20 token contract address. */contract: Address; /** The maximum amount available from this position. */
361
- amount: bigint;
362
- };
363
1356
  type Callback = {
364
1357
  type: Type$1.BuyWithEmptyCallback;
365
- } | (({
366
- /** The address of the callback contract. */address: Address; /** The ABI-encoded callback data. */
367
- data: Hex;
368
- } & {
369
- type: Type$1.BuyERC20; /** The decoded callback inputs. */
370
- inputs: {
371
- /** The ERC20 positions available for the callback. */positions: CallbackPosition[];
372
- };
373
- }) & Brand<"Callback">);
1358
+ } | {
1359
+ type: Type$1.SellWithEmptyCallback;
1360
+ };
374
1361
  declare enum Type$1 {
375
1362
  BuyWithEmptyCallback = "buy_with_empty_callback",
376
- BuyERC20 = "buy_erc20",
377
- BuyVaultV1Callback = "buy_vault_v1_callback",
378
- SellERC20Callback = "sell_erc20_callback"
1363
+ SellWithEmptyCallback = "sell_with_empty_callback"
379
1364
  }
380
1365
  declare const isEmptyCallback: (offer: Offer) => boolean;
381
- declare function decode$2(type: Type$1, data: Hex): {
382
- contract: Address;
383
- amount: bigint;
384
- }[];
385
- type BuyERC20Data = {
386
- tokens: Address[];
387
- amounts: bigint[];
388
- };
389
- type BuyVaultV1CallbackData = {
390
- vaults: Address[];
391
- amounts: bigint[];
392
- };
393
- type SellERC20CallbackData = {
394
- collaterals: Address[];
395
- amounts: bigint[];
396
- };
397
- declare function encode$2(type: Type$1.BuyERC20, data: BuyERC20Data): Hex;
398
- declare function encode$2(type: Type$1.BuyVaultV1Callback, data: BuyVaultV1CallbackData): Hex;
399
- declare function encode$2(type: Type$1.SellERC20Callback, data: SellERC20CallbackData): Hex;
400
- /**
401
- * Decodes BuyERC20 callback data into positions.
402
- * @param data - The ABI-encoded callback data containing token addresses and amounts.
403
- * @returns Array of positions with contract address and amount.
404
- * @throws If data is empty, malformed, or arrays have mismatched lengths.
405
- */
406
- declare function decodeBuyERC20(data: Hex): Array<{
407
- contract: Address;
408
- amount: bigint;
409
- }>;
410
- /**
411
- * Encodes BuyERC20 callback parameters into ABI-encoded data.
412
- * @param parameters - The tokens and amounts to encode.
413
- * @returns ABI-encoded hex string.
414
- */
415
- declare function encodeBuyERC20(parameters: {
416
- tokens: Address[];
417
- amounts: bigint[];
418
- }): Hex;
419
- declare function decodeBuyVaultV1Callback(data: Hex): Array<{
420
- contract: Address;
421
- amount: bigint;
422
- }>;
423
- declare function decodeSellERC20Callback(data: Hex): Array<{
424
- contract: Address;
425
- amount: bigint;
426
- }>;
427
- declare function encodeBuyVaultV1Callback(parameters: {
428
- vaults: Address[];
429
- amounts: bigint[];
430
- }): Hex;
431
- declare function encodeSellERC20Callback(parameters: {
432
- collaterals: Address[];
433
- amounts: bigint[];
434
- }): Hex;
435
1366
  declare namespace Errors_d_exports {
436
1367
  export { BaseError, GlobalErrorType, ReorgError };
437
1368
  }
@@ -551,6 +1482,14 @@ type ChainRegistry = {
551
1482
  * @returns A registry for looking up chains by ID. {@link ChainRegistry}
552
1483
  */
553
1484
  declare function create$1(chains: Chain$1[]): ChainRegistry;
1485
+ //#endregion
1486
+ //#region src/core/types.d.ts
1487
+ /** Combines members of an intersection into a readable type. */
1488
+ type Compute<type> = { [key in keyof type]: type[key] } & unknown;
1489
+ declare const BrandTypeId: unique symbol;
1490
+ type Brand<in out ID extends string | symbol> = {
1491
+ readonly [BrandTypeId]: { readonly [id in ID]: ID };
1492
+ };
554
1493
  declare namespace LLTV_d_exports {
555
1494
  export { InvalidLLTVError, InvalidOptionError$1 as InvalidOptionError, LLTV, LLTVSchema, Options, from$14 as from };
556
1495
  }
@@ -697,7 +1636,7 @@ declare class DenominatorIsZeroError extends BaseError {
697
1636
  constructor();
698
1637
  }
699
1638
  declare namespace Liquidity_d_exports {
700
- export { LiquidityLink, LiquidityPool, OfferLiquidityPool, calculateMaxDebt, generateAllowancePoolId, generateBalancePoolId, generateBuyVaultCallbackPoolId, generateDebtPoolId, generateMarketLiquidityPoolId, generateObligationCollateralPoolId, generateSellERC20CallbackPoolId, generateUserVaultPositionPoolId, generateVaultPositionPoolId };
1639
+ export { LiquidityLink, LiquidityPool, OfferLiquidityPool, calculateMaxDebt, generateAllowancePoolId, generateBalancePoolId, generateDebtPoolId, generateMarketLiquidityPoolId, generateObligationCollateralPoolId, generateUserVaultPositionPoolId, generateVaultPositionPoolId };
701
1640
  }
702
1641
  /**
703
1642
  * Represents a liquidity pool with a unique ID and amount.
@@ -722,10 +1661,7 @@ type OfferLiquidityPool = {
722
1661
  poolId: string;
723
1662
  /**
724
1663
  * The available capacity/liquidity from this pool for this offer.
725
- * Meaning varies by pool type:
726
- * - BuyWithEmptyCallback: Matches allowance amount from pool bellow
727
- * - SellERC20Callback: Sell Callback/Predeposited -> Maximum debt capacity calculated from collateral (collateralAmount * oraclePrice * lltv)
728
- * - SellERC20Callback: Existing debt as negative value (reduces available capacity)
1664
+ * Matches allowance amount from pool below.
729
1665
  */
730
1666
  amount: bigint;
731
1667
  };
@@ -753,17 +1689,6 @@ declare function generateAllowancePoolId(parameters: {
753
1689
  chainId: Id;
754
1690
  token: Address;
755
1691
  }): string;
756
- /**
757
- * Generate pool ID for sell ERC20 callback pools.
758
- * Each offer has its own callback pool to prevent liquidity conflicts.
759
- */
760
- declare function generateSellERC20CallbackPoolId(parameters: {
761
- user: Address;
762
- chainId: Id;
763
- obligationId: Hex;
764
- token: Address;
765
- offerHash: Hex;
766
- }): string;
767
1692
  /**
768
1693
  * Generate pool ID for obligation collateral pools.
769
1694
  * Obligation collateral pools represent collateral already deposited in the obligation.
@@ -775,15 +1700,6 @@ declare function generateObligationCollateralPoolId(parameters: {
775
1700
  obligationId: Hex;
776
1701
  token: Address;
777
1702
  }): string;
778
- /**
779
- * Generate pool ID for buy vault callback pools.
780
- */
781
- declare function generateBuyVaultCallbackPoolId(parameters: {
782
- user: Address;
783
- chainId: Id;
784
- vault: Address;
785
- offerHash: Hex;
786
- }): string;
787
1703
  /**
788
1704
  * Generate pool ID for debt pools.
789
1705
  */
@@ -1020,7 +1936,7 @@ declare class CollateralsAreNotSortedError extends BaseError {
1020
1936
  constructor();
1021
1937
  }
1022
1938
  declare namespace Offer_d_exports {
1023
- export { InvalidOfferError, Offer, OfferConsumed, OfferInput, OfferSchema, RandomConfig, Status, Validation, consumedEvent, decode$1 as decode, domain, encode$1 as encode, from$10 as from, fromSnakeCase$1 as fromSnakeCase, hash, obligationId, random$1 as random, serialize, toSnakeCase, types };
1939
+ export { InvalidOfferError, Offer, OfferConsumed, OfferInput, OfferSchema, RandomConfig, Status, Validation, consumedEvent, decode$1 as decode, domain, encode$1 as encode, from$10 as from, fromSnakeCase$1 as fromSnakeCase, hash, obligationId, random$1 as random, serialize, takeEvent, toSnakeCase, types };
1024
1940
  }
1025
1941
  type Offer = {
1026
1942
  /** The address that made the offer. */readonly maker: Address; /** The amount of assets offered. Mutually exclusive with obligationUnits and obligationShares. */
@@ -1277,6 +2193,80 @@ type OfferConsumed = {
1277
2193
  amount: bigint;
1278
2194
  blockNumber: number;
1279
2195
  };
2196
+ /**
2197
+ * ABI for the Take event emitted by the Morpho V2 contract.
2198
+ */
2199
+ declare const takeEvent: {
2200
+ readonly type: "event";
2201
+ readonly name: "Take";
2202
+ readonly inputs: readonly [{
2203
+ readonly name: "caller";
2204
+ readonly type: "address";
2205
+ readonly indexed: false;
2206
+ readonly internalType: "address";
2207
+ }, {
2208
+ readonly name: "id";
2209
+ readonly type: "bytes32";
2210
+ readonly indexed: true;
2211
+ readonly internalType: "bytes32";
2212
+ }, {
2213
+ readonly name: "maker";
2214
+ readonly type: "address";
2215
+ readonly indexed: true;
2216
+ readonly internalType: "address";
2217
+ }, {
2218
+ readonly name: "taker";
2219
+ readonly type: "address";
2220
+ readonly indexed: true;
2221
+ readonly internalType: "address";
2222
+ }, {
2223
+ readonly name: "offerIsBuy";
2224
+ readonly type: "bool";
2225
+ readonly indexed: false;
2226
+ readonly internalType: "bool";
2227
+ }, {
2228
+ readonly name: "buyerAssets";
2229
+ readonly type: "uint256";
2230
+ readonly indexed: false;
2231
+ readonly internalType: "uint256";
2232
+ }, {
2233
+ readonly name: "sellerAssets";
2234
+ readonly type: "uint256";
2235
+ readonly indexed: false;
2236
+ readonly internalType: "uint256";
2237
+ }, {
2238
+ readonly name: "obligationUnits";
2239
+ readonly type: "uint256";
2240
+ readonly indexed: false;
2241
+ readonly internalType: "uint256";
2242
+ }, {
2243
+ readonly name: "obligationShares";
2244
+ readonly type: "uint256";
2245
+ readonly indexed: false;
2246
+ readonly internalType: "uint256";
2247
+ }, {
2248
+ readonly name: "buyerIsLender";
2249
+ readonly type: "bool";
2250
+ readonly indexed: false;
2251
+ readonly internalType: "bool";
2252
+ }, {
2253
+ readonly name: "sellerIsBorrower";
2254
+ readonly type: "bool";
2255
+ readonly indexed: false;
2256
+ readonly internalType: "bool";
2257
+ }, {
2258
+ readonly name: "group";
2259
+ readonly type: "bytes32";
2260
+ readonly indexed: false;
2261
+ readonly internalType: "bytes32";
2262
+ }, {
2263
+ readonly name: "consumed";
2264
+ readonly type: "uint256";
2265
+ readonly indexed: false;
2266
+ readonly internalType: "uint256";
2267
+ }];
2268
+ readonly anonymous: false;
2269
+ };
1280
2270
  /**
1281
2271
  * ABI for the Consume event emitted by the Obligation contract.
1282
2272
  */
@@ -1974,7 +2964,7 @@ interface paths {
1974
2964
  };
1975
2965
  /**
1976
2966
  * Get config rules
1977
- * @description Returns configured rules for supported chains.
2967
+ * @description Returns configured rules (maturities, loan tokens, oracles) for supported chains.
1978
2968
  */
1979
2969
  get: {
1980
2970
  parameters: {
@@ -2431,7 +3421,7 @@ interface paths {
2431
3421
  put?: never;
2432
3422
  /**
2433
3423
  * Validate offers
2434
- * @description Validates offers against router validation rules. Returns unsigned payload + root on success, or issues only on validation failure.
3424
+ * @description Validates offers against router validation rules. Only empty callbacks (zero address, 0x data) are accepted. Returns unsigned payload + root on success, or issues only on validation failure.
2435
3425
  */
2436
3426
  post: {
2437
3427
  parameters: {
@@ -2470,56 +3460,6 @@ interface paths {
2470
3460
  patch?: never;
2471
3461
  trace?: never;
2472
3462
  };
2473
- "/v1/callbacks": {
2474
- parameters: {
2475
- query?: never;
2476
- header?: never;
2477
- path?: never;
2478
- cookie?: never;
2479
- };
2480
- get?: never;
2481
- put?: never;
2482
- /**
2483
- * Resolve callback types
2484
- * @description Returns callback types for callback addresses grouped by chain.
2485
- */
2486
- post: {
2487
- parameters: {
2488
- query?: never;
2489
- header?: never;
2490
- path?: never;
2491
- cookie?: never;
2492
- };
2493
- requestBody?: {
2494
- content: {
2495
- "application/json": components["schemas"]["CallbackTypesRequest"];
2496
- };
2497
- };
2498
- responses: {
2499
- /** @description Success */200: {
2500
- headers: {
2501
- [name: string]: unknown;
2502
- };
2503
- content: {
2504
- "application/json": components["schemas"]["CallbackTypesSuccessResponse"];
2505
- };
2506
- }; /** @description Bad Request */
2507
- 400: {
2508
- headers: {
2509
- [name: string]: unknown;
2510
- };
2511
- content: {
2512
- "application/json": components["schemas"]["BadRequestResponse"];
2513
- };
2514
- };
2515
- };
2516
- };
2517
- delete?: never;
2518
- options?: never;
2519
- head?: never;
2520
- patch?: never;
2521
- trace?: never;
2522
- };
2523
3463
  }
2524
3464
  interface components {
2525
3465
  schemas: {
@@ -2604,12 +3544,6 @@ interface components {
2604
3544
  * "timestamp": 1730415600
2605
3545
  * },
2606
3546
  * {
2607
- * "type": "callback",
2608
- * "chain_id": 1,
2609
- * "address": "0x1111111111111111111111111111111111111111",
2610
- * "callback_type": "sell_erc20_callback"
2611
- * },
2612
- * {
2613
3547
  * "type": "loan_token",
2614
3548
  * "chain_id": 1,
2615
3549
  * "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
@@ -2631,9 +3565,8 @@ interface components {
2631
3565
  /** @example maturity */type: string; /** @example 1 */
2632
3566
  chain_id: number; /** @example end_of_next_month */
2633
3567
  name?: string; /** @example 1730415600 */
2634
- timestamp?: number; /** @example 0x1111111111111111111111111111111111111111 */
2635
- address?: string; /** @example sell_erc20_callback */
2636
- callback_type?: string;
3568
+ timestamp?: number; /** @example 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 */
3569
+ address?: string;
2637
3570
  };
2638
3571
  OfferListResponse: {
2639
3572
  meta: components["schemas"]["Meta"];
@@ -2668,8 +3601,8 @@ interface components {
2668
3601
  * "price": "2750000000000000000",
2669
3602
  * "group": "0x000000000000000000000000000000000000000000000000000000000008b8f4",
2670
3603
  * "session": "0x0000000000000000000000000000000000000000000000000000000000000000",
2671
- * "callback": "0x1111111111111111111111111111111111111111",
2672
- * "callback_data": "0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000100000000000000000000000034cf890db685fc536e05652fb41f02090c3fb751000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000108e644e3ab01184155270aa92a00000000000"
3604
+ * "callback": "0x0000000000000000000000000000000000000000",
3605
+ * "callback_data": "0x"
2673
3606
  * },
2674
3607
  * "offer_hash": "0xac4bd8318ec914f89f8af913f162230575b0ac0696a19256bc12138c5cfe1427",
2675
3608
  * "obligation_id": "0x25690ae1aee324a005be565f3bcdd16dbf8daf7969b26c181c8b8f467dad9abc",
@@ -2712,8 +3645,8 @@ interface components {
2712
3645
  * "price": "2750000000000000000",
2713
3646
  * "group": "0x000000000000000000000000000000000000000000000000000000000008b8f4",
2714
3647
  * "session": "0x0000000000000000000000000000000000000000000000000000000000000000",
2715
- * "callback": "0x1111111111111111111111111111111111111111",
2716
- * "callback_data": "0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000100000000000000000000000034cf890db685fc536e05652fb41f02090c3fb751000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000108e644e3ab01184155270aa92a00000000000"
3648
+ * "callback": "0x0000000000000000000000000000000000000000",
3649
+ * "callback_data": "0x"
2717
3650
  * }
2718
3651
  */
2719
3652
  offer: components["schemas"]["OfferDataResponse"]; /** @example 0xac4bd8318ec914f89f8af913f162230575b0ac0696a19256bc12138c5cfe1427 */
@@ -2757,8 +3690,8 @@ interface components {
2757
3690
  expiry: number; /** @example 2750000000000000000 */
2758
3691
  price: string; /** @example 0x000000000000000000000000000000000000000000000000000000000008b8f4 */
2759
3692
  group: string; /** @example 0x0000000000000000000000000000000000000000000000000000000000000000 */
2760
- session: string; /** @example 0x1111111111111111111111111111111111111111 */
2761
- callback: string; /** @example 0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000100000000000000000000000034cf890db685fc536e05652fb41f02090c3fb751000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000108e644e3ab01184155270aa92a00000000000 */
3693
+ session: string; /** @example 0x0000000000000000000000000000000000000000 */
3694
+ callback: string; /** @example 0x */
2762
3695
  callback_data: string;
2763
3696
  };
2764
3697
  ObligationOfferResponse: {
@@ -2947,8 +3880,8 @@ interface components {
2947
3880
  collaterals: components["schemas"]["ValidateCollateralRequest"][];
2948
3881
  /**
2949
3882
  * @example {
2950
- * "address": "0x1111111111111111111111111111111111111111",
2951
- * "data": "0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000100000000000000000000000034cf890db685fc536e05652fb41f02090c3fb751000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000108e644e3ab01184155270aa92a00000000000"
3883
+ * "address": "0x0000000000000000000000000000000000000000",
3884
+ * "data": "0x"
2952
3885
  * }
2953
3886
  */
2954
3887
  callback: components["schemas"]["ValidateCallbackRequest"];
@@ -2959,7 +3892,7 @@ interface components {
2959
3892
  lltv: string;
2960
3893
  };
2961
3894
  ValidateCallbackRequest: {
2962
- /** @example 0x1111111111111111111111111111111111111111 */address: string; /** @example 0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000100000000000000000000000034cf890db685fc536e05652fb41f02090c3fb751000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000108e644e3ab01184155270aa92a00000000000 */
3895
+ /** @example 0x0000000000000000000000000000000000000000 */address: string; /** @example 0x */
2963
3896
  data: string;
2964
3897
  };
2965
3898
  ValidationSuccessResponse: {
@@ -2979,84 +3912,6 @@ interface components {
2979
3912
  */
2980
3913
  root: string;
2981
3914
  };
2982
- CallbackTypesRequest: {
2983
- /**
2984
- * @example [
2985
- * {
2986
- * "chain_id": 1,
2987
- * "addresses": [
2988
- * "0x1111111111111111111111111111111111111111",
2989
- * "0x3333333333333333333333333333333333333333",
2990
- * "0x9999999999999999999999999999999999999999"
2991
- * ]
2992
- * }
2993
- * ]
2994
- */
2995
- callbacks: components["schemas"]["CallbackTypesChainRequest"][];
2996
- };
2997
- CallbackTypesChainRequest: {
2998
- /** @example 1 */chain_id: number;
2999
- /**
3000
- * @example [
3001
- * "0x1111111111111111111111111111111111111111",
3002
- * "0x3333333333333333333333333333333333333333",
3003
- * "0x9999999999999999999999999999999999999999"
3004
- * ]
3005
- */
3006
- addresses: string[];
3007
- };
3008
- CallbackTypesSuccessResponse: {
3009
- meta: components["schemas"]["Meta"]; /** @example maturity:1:1730415600:end_of_next_month */
3010
- cursor: string | null;
3011
- /**
3012
- * @description Callback types grouped by chain.
3013
- * @example [
3014
- * {
3015
- * "chain_id": 1,
3016
- * "sell_erc20_callback": [
3017
- * "0x1111111111111111111111111111111111111111"
3018
- * ],
3019
- * "buy_erc20": [
3020
- * "0x5555555555555555555555555555555555555555"
3021
- * ],
3022
- * "buy_vault_v1_callback": [
3023
- * "0x3333333333333333333333333333333333333333"
3024
- * ],
3025
- * "not_supported": [
3026
- * "0x9999999999999999999999999999999999999999"
3027
- * ]
3028
- * }
3029
- * ]
3030
- */
3031
- data: components["schemas"]["CallbackTypesChainResponse"][];
3032
- };
3033
- CallbackTypesChainResponse: {
3034
- /** @example 1 */chain_id: number;
3035
- /**
3036
- * @example [
3037
- * "0x3333333333333333333333333333333333333333"
3038
- * ]
3039
- */
3040
- buy_vault_v1_callback?: string[];
3041
- /**
3042
- * @example [
3043
- * "0x1111111111111111111111111111111111111111"
3044
- * ]
3045
- */
3046
- sell_erc20_callback?: string[];
3047
- /**
3048
- * @example [
3049
- * "0x5555555555555555555555555555555555555555"
3050
- * ]
3051
- */
3052
- buy_erc20?: string[];
3053
- /**
3054
- * @example [
3055
- * "0x9999999999999999999999999999999999999999"
3056
- * ]
3057
- */
3058
- not_supported: string[];
3059
- };
3060
3915
  };
3061
3916
  responses: never;
3062
3917
  parameters: never;
@@ -3125,9 +3980,6 @@ declare class BooksController {
3125
3980
  declare class ValidateController {
3126
3981
  validateOffers(): Promise<void>;
3127
3982
  }
3128
- declare class CallbacksController {
3129
- resolveCallbackTypes(): Promise<void>;
3130
- }
3131
3983
  declare class OffersController {
3132
3984
  getOffers(): Promise<void>;
3133
3985
  }
@@ -3277,12 +4129,6 @@ declare const schemas: {
3277
4129
  readonly validate_offers: z$1.ZodObject<{
3278
4130
  offers: z$1.ZodArray<z$1.ZodUnknown>;
3279
4131
  }, z$1.core.$strict>;
3280
- readonly callback_types: z$1.ZodObject<{
3281
- callbacks: z$1.ZodArray<z$1.ZodObject<{
3282
- chain_id: z$1.ZodNumber;
3283
- addresses: z$1.ZodArray<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>>;
3284
- }, z$1.core.$strict>>;
3285
- }, z$1.core.$strict>;
3286
4132
  readonly get_user_positions: z$1.ZodObject<{
3287
4133
  user_address: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
3288
4134
  cursor: z$1.ZodOptional<z$1.ZodString>;
@@ -3293,7 +4139,7 @@ type Action = keyof typeof schemas;
3293
4139
  declare function parse<A extends Action>(action: A, query: unknown): z$1.infer<(typeof schemas)[A]>;
3294
4140
  declare function safeParse<A extends Action>(action: A, query: unknown, error?: z$1.core.$ZodErrorMap<z$1.core.$ZodIssue>): z$1.ZodSafeParseResult<z$1.infer<(typeof schemas)[A]>>;
3295
4141
  declare namespace index_d_exports$1 {
3296
- export { BookResponse_d_exports as BookResponse, BooksController, CallbacksController, ChainHealth, ChainsHealthResponse, CollectorHealth, CollectorsHealthResponse, ConfigContractsController, ConfigRulesController, HealthController, ObligationResponse_d_exports as ObligationResponse, ObligationsController, OfferResponse_d_exports as OfferResponse, OffersController, OpenApi, PositionResponse_d_exports as PositionResponse, RouterStatusResponse, UsersController, ValidateController, parse, safeParse };
4142
+ export { BookResponse_d_exports as BookResponse, BooksController, ChainHealth, ChainsHealthResponse, CollectorHealth, CollectorsHealthResponse, ConfigContractsController, ConfigRulesController, HealthController, ObligationResponse_d_exports as ObligationResponse, ObligationsController, OfferResponse_d_exports as OfferResponse, OffersController, OpenApi, PositionResponse_d_exports as PositionResponse, RouterStatusResponse, UsersController, ValidateController, parse, safeParse };
3297
4143
  }
3298
4144
  declare namespace Client_d_exports$1 {
3299
4145
  export { Client$2 as Client, ConnectOptions, HttpForbiddenError, HttpGetApiFailedError, HttpRateLimitError, HttpUnauthorizedError, InvalidUrlError, connect$1 as connect, getObligations, getOffers };
@@ -3525,16 +4371,6 @@ type ValidateOffersIssues = {
3525
4371
  issues: ValidationIssue[];
3526
4372
  };
3527
4373
  type ValidateOffersData = ValidateOffersSuccess | ValidateOffersIssues;
3528
- type CallbackType = Type$1 | "not_supported";
3529
- type CallbackTypesRequest = {
3530
- callbacks: Array<{
3531
- chain_id: Id;
3532
- addresses: Address[];
3533
- }>;
3534
- };
3535
- type CallbackTypesResponse = Array<{
3536
- chain_id: Id;
3537
- } & Partial<Record<CallbackType, Address[]>>>;
3538
4374
  type ConfigRulesPayload = SuccessPayload<ConfigRule[]> | ErrorPayload;
3539
4375
  type SuccessPayload<T> = {
3540
4376
  meta: {
@@ -3571,8 +4407,7 @@ type GatekeeperClient = {
3571
4407
  statusCode: number;
3572
4408
  body: ConfigRulesPayload;
3573
4409
  }>; /** Validate offers and return decision results. */
3574
- isAllowed: (offers: Offer[]) => Promise<Result<Offer, string>>; /** Resolve callback types for callback addresses. */
3575
- getCallbackTypes: (request: CallbackTypesRequest) => Promise<CallbackTypesResponse>; /** Base URL for the gatekeeper service. */
4410
+ isAllowed: (offers: Offer[]) => Promise<Result<Offer, string>>; /** Base URL for the gatekeeper service. */
3576
4411
  baseUrl: string;
3577
4412
  };
3578
4413
  type ClientConfig = {
@@ -3615,10 +4450,10 @@ type ValidityParameters = {
3615
4450
  /**
3616
4451
  * set of rules to validate offers.
3617
4452
  *
3618
- * @param parameters - Validity parameters with chain and client
4453
+ * @param _parameters - Validity parameters with chain and client
3619
4454
  * @returns Array of validation rules to evaluate against offers
3620
4455
  */
3621
- declare function validity(parameters: ValidityParameters): (Rule<Offer, "expiry"> | Rule<Offer, "sell_erc20_callback_invalid"> | Rule<Offer, "buy_offers_callback_vault_invalid">)[];
4456
+ declare function validity(_parameters: ValidityParameters): Rule<Offer, "expiry">[];
3622
4457
  declare const chains: ({
3623
4458
  chains
3624
4459
  }: {
@@ -3630,8 +4465,7 @@ declare const maturity: ({
3630
4465
  maturities: MaturityType[];
3631
4466
  }) => Rule<Offer, "maturity">;
3632
4467
  declare const callback: ({
3633
- callbacks,
3634
- allowedAddresses
4468
+ callbacks
3635
4469
  }: {
3636
4470
  callbacks: Type$1[];
3637
4471
  allowedAddresses: Address[];
@@ -3860,5 +4694,5 @@ declare namespace index_d_exports$2 {
3860
4694
  export { BaseError, GlobalErrorType, Group_d_exports as Group, Random_d_exports as Random, ReorgError, Snake, time_d_exports as Time, atMostOneNonZero, batch, batchMulticall, fromSnakeCase$3 as fromSnakeCase, lazy, max$1 as max, min, poll, retry, stringifyBigint, toSnakeCase$1 as toSnakeCase, wait };
3861
4695
  }
3862
4696
  //#endregion
3863
- export { index_d_exports as Abi, Brand, BrandTypeId, Callback_d_exports as Callback, CallbackType, CallbackTypesRequest, CallbackTypesResponse, Chain_d_exports as Chain, ChainRegistry_d_exports as ChainRegistry, Collateral_d_exports as Collateral, Compute, ConfigRule, ConfigRulesPayload, ERC4626_d_exports as ERC4626, ErrorPayload, Errors_d_exports as Errors, Format_d_exports as Format, Gatekeeper_d_exports as Gatekeeper, Client_d_exports as GatekeeperClient, LLTV_d_exports as LLTV, Liquidity_d_exports as Liquidity, Maturity_d_exports as Maturity, MempoolClient_d_exports as Mempool, Obligation_d_exports as Obligation, Offer_d_exports as Offer, Oracle_d_exports as Oracle, Position_d_exports as Position, Quote_d_exports as Quote, index_d_exports$1 as RouterApi, Client_d_exports$1 as RouterClient, Rules_d_exports as Rules, SuccessPayload, time_d_exports as Time, TradingFee_d_exports as TradingFee, Transfer_d_exports as Transfer, Tree_d_exports as Tree, index_d_exports$2 as Utils, ValidateOffersData, ValidateOffersIssues, ValidateOffersSuccess, Gate_d_exports as Validation, ValidationIssue, morphoRules };
4697
+ export { index_d_exports as Abi, Brand, BrandTypeId, Callback_d_exports as Callback, Chain_d_exports as Chain, ChainRegistry_d_exports as ChainRegistry, Collateral_d_exports as Collateral, Compute, ConfigRule, ConfigRulesPayload, ERC4626_d_exports as ERC4626, ErrorPayload, Errors_d_exports as Errors, Format_d_exports as Format, Gatekeeper_d_exports as Gatekeeper, Client_d_exports as GatekeeperClient, LLTV_d_exports as LLTV, Liquidity_d_exports as Liquidity, Maturity_d_exports as Maturity, MempoolClient_d_exports as Mempool, Obligation_d_exports as Obligation, Offer_d_exports as Offer, Oracle_d_exports as Oracle, Position_d_exports as Position, Quote_d_exports as Quote, index_d_exports$1 as RouterApi, Client_d_exports$1 as RouterClient, Rules_d_exports as Rules, SuccessPayload, time_d_exports as Time, TradingFee_d_exports as TradingFee, Transfer_d_exports as Transfer, Tree_d_exports as Tree, index_d_exports$2 as Utils, ValidateOffersData, ValidateOffersIssues, ValidateOffersSuccess, Gate_d_exports as Validation, ValidationIssue, morphoRules };
3864
4698
  //# sourceMappingURL=index.browser.d.mts.map