@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.
@@ -215,8 +215,1014 @@ declare const MetaMorphoFactory: readonly [{
215
215
  }];
216
216
  }];
217
217
  type MetaMorphoFactory = typeof MetaMorphoFactory;
218
+ //#endregion
219
+ //#region src/core/Abi/MorphoV2.d.ts
220
+ declare const MorphoV2: readonly [{
221
+ readonly type: "constructor";
222
+ readonly stateMutability: "nonpayable";
223
+ readonly inputs: readonly [];
224
+ }, {
225
+ readonly name: "collateralOf";
226
+ readonly type: "function";
227
+ readonly stateMutability: "view";
228
+ readonly inputs: readonly [{
229
+ readonly type: "bytes32";
230
+ readonly name: "id";
231
+ }, {
232
+ readonly type: "address";
233
+ readonly name: "user";
234
+ }, {
235
+ readonly type: "address";
236
+ readonly name: "collateralToken";
237
+ }];
238
+ readonly outputs: readonly [{
239
+ readonly type: "uint256";
240
+ }];
241
+ }, {
242
+ readonly name: "consume";
243
+ readonly type: "function";
244
+ readonly stateMutability: "nonpayable";
245
+ readonly inputs: readonly [{
246
+ readonly type: "bytes32";
247
+ readonly name: "group";
248
+ }, {
249
+ readonly type: "uint256";
250
+ readonly name: "amount";
251
+ }];
252
+ readonly outputs: readonly [];
253
+ }, {
254
+ readonly name: "consumed";
255
+ readonly type: "function";
256
+ readonly stateMutability: "view";
257
+ readonly inputs: readonly [{
258
+ readonly type: "address";
259
+ readonly name: "user";
260
+ }, {
261
+ readonly type: "bytes32";
262
+ readonly name: "group";
263
+ }];
264
+ readonly outputs: readonly [{
265
+ readonly type: "uint256";
266
+ }];
267
+ }, {
268
+ readonly name: "debtOf";
269
+ readonly type: "function";
270
+ readonly stateMutability: "view";
271
+ readonly inputs: readonly [{
272
+ readonly type: "bytes32";
273
+ readonly name: "id";
274
+ }, {
275
+ readonly type: "address";
276
+ readonly name: "user";
277
+ }];
278
+ readonly outputs: readonly [{
279
+ readonly type: "uint256";
280
+ }];
281
+ }, {
282
+ readonly name: "defaultFees";
283
+ readonly type: "function";
284
+ readonly stateMutability: "view";
285
+ readonly inputs: readonly [{
286
+ readonly type: "address";
287
+ readonly name: "loanToken";
288
+ }, {
289
+ readonly type: "uint256";
290
+ readonly name: "index";
291
+ }];
292
+ readonly outputs: readonly [{
293
+ readonly type: "uint16";
294
+ }];
295
+ }, {
296
+ readonly name: "feeSetter";
297
+ readonly type: "function";
298
+ readonly stateMutability: "view";
299
+ readonly inputs: readonly [];
300
+ readonly outputs: readonly [{
301
+ readonly type: "address";
302
+ }];
303
+ }, {
304
+ readonly name: "fees";
305
+ readonly type: "function";
306
+ readonly stateMutability: "view";
307
+ readonly inputs: readonly [{
308
+ readonly type: "bytes32";
309
+ readonly name: "id";
310
+ }];
311
+ readonly outputs: readonly [{
312
+ readonly type: "uint16[6]";
313
+ }];
314
+ }, {
315
+ readonly name: "flashLoan";
316
+ readonly type: "function";
317
+ readonly stateMutability: "nonpayable";
318
+ readonly inputs: readonly [{
319
+ readonly type: "address";
320
+ readonly name: "token";
321
+ }, {
322
+ readonly type: "uint256";
323
+ readonly name: "assets";
324
+ }, {
325
+ readonly type: "address";
326
+ readonly name: "callback";
327
+ }, {
328
+ readonly type: "bytes";
329
+ readonly name: "data";
330
+ }];
331
+ readonly outputs: readonly [];
332
+ }, {
333
+ readonly name: "isHealthy";
334
+ readonly type: "function";
335
+ readonly stateMutability: "view";
336
+ readonly inputs: readonly [{
337
+ readonly type: "tuple";
338
+ readonly components: readonly [{
339
+ readonly type: "address";
340
+ readonly name: "loanToken";
341
+ }, {
342
+ readonly type: "tuple[]";
343
+ readonly components: readonly [{
344
+ readonly type: "address";
345
+ readonly name: "token";
346
+ }, {
347
+ readonly type: "uint256";
348
+ readonly name: "lltv";
349
+ }, {
350
+ readonly type: "address";
351
+ readonly name: "oracle";
352
+ }];
353
+ readonly name: "collaterals";
354
+ }, {
355
+ readonly type: "uint256";
356
+ readonly name: "maturity";
357
+ }];
358
+ readonly name: "obligation";
359
+ }, {
360
+ readonly type: "bytes32";
361
+ readonly name: "id";
362
+ }, {
363
+ readonly type: "address";
364
+ readonly name: "borrower";
365
+ }];
366
+ readonly outputs: readonly [{
367
+ readonly type: "bool";
368
+ }];
369
+ }, {
370
+ readonly name: "liquidate";
371
+ readonly type: "function";
372
+ readonly stateMutability: "nonpayable";
373
+ readonly inputs: readonly [{
374
+ readonly type: "tuple";
375
+ readonly components: readonly [{
376
+ readonly type: "address";
377
+ readonly name: "loanToken";
378
+ }, {
379
+ readonly type: "tuple[]";
380
+ readonly components: readonly [{
381
+ readonly type: "address";
382
+ readonly name: "token";
383
+ }, {
384
+ readonly type: "uint256";
385
+ readonly name: "lltv";
386
+ }, {
387
+ readonly type: "address";
388
+ readonly name: "oracle";
389
+ }];
390
+ readonly name: "collaterals";
391
+ }, {
392
+ readonly type: "uint256";
393
+ readonly name: "maturity";
394
+ }];
395
+ readonly name: "obligation";
396
+ }, {
397
+ readonly type: "tuple[]";
398
+ readonly components: readonly [{
399
+ readonly type: "uint256";
400
+ readonly name: "collateralIndex";
401
+ }, {
402
+ readonly type: "uint256";
403
+ readonly name: "repaid";
404
+ }, {
405
+ readonly type: "uint256";
406
+ readonly name: "seized";
407
+ }];
408
+ readonly name: "seizures";
409
+ }, {
410
+ readonly type: "address";
411
+ readonly name: "borrower";
412
+ }, {
413
+ readonly type: "bytes";
414
+ readonly name: "data";
415
+ }];
416
+ readonly outputs: readonly [{
417
+ readonly type: "tuple[]";
418
+ readonly components: readonly [{
419
+ readonly type: "uint256";
420
+ readonly name: "collateralIndex";
421
+ }, {
422
+ readonly type: "uint256";
423
+ readonly name: "repaid";
424
+ }, {
425
+ readonly type: "uint256";
426
+ readonly name: "seized";
427
+ }];
428
+ }];
429
+ }, {
430
+ readonly name: "multicall";
431
+ readonly type: "function";
432
+ readonly stateMutability: "nonpayable";
433
+ readonly inputs: readonly [{
434
+ readonly type: "bytes[]";
435
+ readonly name: "calls";
436
+ }];
437
+ readonly outputs: readonly [];
438
+ }, {
439
+ readonly name: "obligationCreated";
440
+ readonly type: "function";
441
+ readonly stateMutability: "view";
442
+ readonly inputs: readonly [{
443
+ readonly type: "bytes32";
444
+ readonly name: "id";
445
+ }];
446
+ readonly outputs: readonly [{
447
+ readonly type: "bool";
448
+ }];
449
+ }, {
450
+ readonly name: "obligationState";
451
+ readonly type: "function";
452
+ readonly stateMutability: "view";
453
+ readonly inputs: readonly [{
454
+ readonly type: "bytes32";
455
+ readonly name: "id";
456
+ }];
457
+ readonly outputs: readonly [{
458
+ readonly type: "uint128";
459
+ readonly name: "totalUnits";
460
+ }, {
461
+ readonly type: "uint128";
462
+ readonly name: "totalShares";
463
+ }, {
464
+ readonly type: "uint256";
465
+ readonly name: "withdrawable";
466
+ }, {
467
+ readonly type: "bool";
468
+ readonly name: "created";
469
+ }];
470
+ }, {
471
+ readonly name: "owner";
472
+ readonly type: "function";
473
+ readonly stateMutability: "view";
474
+ readonly inputs: readonly [];
475
+ readonly outputs: readonly [{
476
+ readonly type: "address";
477
+ }];
478
+ }, {
479
+ readonly name: "repay";
480
+ readonly type: "function";
481
+ readonly stateMutability: "nonpayable";
482
+ readonly inputs: readonly [{
483
+ readonly type: "tuple";
484
+ readonly components: readonly [{
485
+ readonly type: "address";
486
+ readonly name: "loanToken";
487
+ }, {
488
+ readonly type: "tuple[]";
489
+ readonly components: readonly [{
490
+ readonly type: "address";
491
+ readonly name: "token";
492
+ }, {
493
+ readonly type: "uint256";
494
+ readonly name: "lltv";
495
+ }, {
496
+ readonly type: "address";
497
+ readonly name: "oracle";
498
+ }];
499
+ readonly name: "collaterals";
500
+ }, {
501
+ readonly type: "uint256";
502
+ readonly name: "maturity";
503
+ }];
504
+ readonly name: "obligation";
505
+ }, {
506
+ readonly type: "uint256";
507
+ readonly name: "obligationUnits";
508
+ }, {
509
+ readonly type: "address";
510
+ readonly name: "onBehalf";
511
+ }];
512
+ readonly outputs: readonly [];
513
+ }, {
514
+ readonly name: "session";
515
+ readonly type: "function";
516
+ readonly stateMutability: "view";
517
+ readonly inputs: readonly [{
518
+ readonly type: "address";
519
+ readonly name: "user";
520
+ }];
521
+ readonly outputs: readonly [{
522
+ readonly type: "bytes32";
523
+ }];
524
+ }, {
525
+ readonly name: "setDefaultTradingFee";
526
+ readonly type: "function";
527
+ readonly stateMutability: "nonpayable";
528
+ readonly inputs: readonly [{
529
+ readonly type: "address";
530
+ readonly name: "loanToken";
531
+ }, {
532
+ readonly type: "uint256";
533
+ readonly name: "index";
534
+ }, {
535
+ readonly type: "uint256";
536
+ readonly name: "newTradingFee";
537
+ }];
538
+ readonly outputs: readonly [];
539
+ }, {
540
+ readonly name: "setFeeSetter";
541
+ readonly type: "function";
542
+ readonly stateMutability: "nonpayable";
543
+ readonly inputs: readonly [{
544
+ readonly type: "address";
545
+ readonly name: "newFeeSetter";
546
+ }];
547
+ readonly outputs: readonly [];
548
+ }, {
549
+ readonly name: "setObligationTradingFee";
550
+ readonly type: "function";
551
+ readonly stateMutability: "nonpayable";
552
+ readonly inputs: readonly [{
553
+ readonly type: "bytes32";
554
+ readonly name: "id";
555
+ }, {
556
+ readonly type: "uint256";
557
+ readonly name: "index";
558
+ }, {
559
+ readonly type: "uint256";
560
+ readonly name: "newTradingFee";
561
+ }];
562
+ readonly outputs: readonly [];
563
+ }, {
564
+ readonly name: "setOwner";
565
+ readonly type: "function";
566
+ readonly stateMutability: "nonpayable";
567
+ readonly inputs: readonly [{
568
+ readonly type: "address";
569
+ readonly name: "newOwner";
570
+ }];
571
+ readonly outputs: readonly [];
572
+ }, {
573
+ readonly name: "setTradingFeeRecipient";
574
+ readonly type: "function";
575
+ readonly stateMutability: "nonpayable";
576
+ readonly inputs: readonly [{
577
+ readonly type: "address";
578
+ readonly name: "recipient";
579
+ }];
580
+ readonly outputs: readonly [];
581
+ }, {
582
+ readonly name: "sharesOf";
583
+ readonly type: "function";
584
+ readonly stateMutability: "view";
585
+ readonly inputs: readonly [{
586
+ readonly type: "bytes32";
587
+ readonly name: "id";
588
+ }, {
589
+ readonly type: "address";
590
+ readonly name: "user";
591
+ }];
592
+ readonly outputs: readonly [{
593
+ readonly type: "uint256";
594
+ }];
595
+ }, {
596
+ readonly name: "shuffleSession";
597
+ readonly type: "function";
598
+ readonly stateMutability: "nonpayable";
599
+ readonly inputs: readonly [];
600
+ readonly outputs: readonly [];
601
+ }, {
602
+ readonly name: "supplyCollateral";
603
+ readonly type: "function";
604
+ readonly stateMutability: "nonpayable";
605
+ readonly inputs: readonly [{
606
+ readonly type: "tuple";
607
+ readonly components: readonly [{
608
+ readonly type: "address";
609
+ readonly name: "loanToken";
610
+ }, {
611
+ readonly type: "tuple[]";
612
+ readonly components: readonly [{
613
+ readonly type: "address";
614
+ readonly name: "token";
615
+ }, {
616
+ readonly type: "uint256";
617
+ readonly name: "lltv";
618
+ }, {
619
+ readonly type: "address";
620
+ readonly name: "oracle";
621
+ }];
622
+ readonly name: "collaterals";
623
+ }, {
624
+ readonly type: "uint256";
625
+ readonly name: "maturity";
626
+ }];
627
+ readonly name: "obligation";
628
+ }, {
629
+ readonly type: "address";
630
+ readonly name: "collateral";
631
+ }, {
632
+ readonly type: "uint256";
633
+ readonly name: "assets";
634
+ }, {
635
+ readonly type: "address";
636
+ readonly name: "onBehalf";
637
+ }];
638
+ readonly outputs: readonly [];
639
+ }, {
640
+ readonly name: "take";
641
+ readonly type: "function";
642
+ readonly stateMutability: "nonpayable";
643
+ readonly inputs: readonly [{
644
+ readonly type: "uint256";
645
+ readonly name: "buyerAssets";
646
+ }, {
647
+ readonly type: "uint256";
648
+ readonly name: "sellerAssets";
649
+ }, {
650
+ readonly type: "uint256";
651
+ readonly name: "obligationUnits";
652
+ }, {
653
+ readonly type: "uint256";
654
+ readonly name: "obligationShares";
655
+ }, {
656
+ readonly type: "address";
657
+ readonly name: "taker";
658
+ }, {
659
+ readonly type: "tuple";
660
+ readonly components: readonly [{
661
+ readonly type: "tuple";
662
+ readonly components: readonly [{
663
+ readonly type: "address";
664
+ readonly name: "loanToken";
665
+ }, {
666
+ readonly type: "tuple[]";
667
+ readonly components: readonly [{
668
+ readonly type: "address";
669
+ readonly name: "token";
670
+ }, {
671
+ readonly type: "uint256";
672
+ readonly name: "lltv";
673
+ }, {
674
+ readonly type: "address";
675
+ readonly name: "oracle";
676
+ }];
677
+ readonly name: "collaterals";
678
+ }, {
679
+ readonly type: "uint256";
680
+ readonly name: "maturity";
681
+ }];
682
+ readonly name: "obligation";
683
+ }, {
684
+ readonly type: "bool";
685
+ readonly name: "buy";
686
+ }, {
687
+ readonly type: "address";
688
+ readonly name: "maker";
689
+ }, {
690
+ readonly type: "uint256";
691
+ readonly name: "assets";
692
+ }, {
693
+ readonly type: "uint256";
694
+ readonly name: "obligationUnits";
695
+ }, {
696
+ readonly type: "uint256";
697
+ readonly name: "obligationShares";
698
+ }, {
699
+ readonly type: "uint256";
700
+ readonly name: "start";
701
+ }, {
702
+ readonly type: "uint256";
703
+ readonly name: "expiry";
704
+ }, {
705
+ readonly type: "uint256";
706
+ readonly name: "tick";
707
+ }, {
708
+ readonly type: "bytes32";
709
+ readonly name: "group";
710
+ }, {
711
+ readonly type: "bytes32";
712
+ readonly name: "session";
713
+ }, {
714
+ readonly type: "address";
715
+ readonly name: "callback";
716
+ }, {
717
+ readonly type: "bytes";
718
+ readonly name: "callbackData";
719
+ }];
720
+ readonly name: "offer";
721
+ }, {
722
+ readonly type: "tuple";
723
+ readonly components: readonly [{
724
+ readonly type: "uint8";
725
+ readonly name: "v";
726
+ }, {
727
+ readonly type: "bytes32";
728
+ readonly name: "r";
729
+ }, {
730
+ readonly type: "bytes32";
731
+ readonly name: "s";
732
+ }];
733
+ readonly name: "sig";
734
+ }, {
735
+ readonly type: "bytes32";
736
+ readonly name: "root";
737
+ }, {
738
+ readonly type: "bytes32[]";
739
+ readonly name: "proof";
740
+ }, {
741
+ readonly type: "address";
742
+ readonly name: "takerCallback";
743
+ }, {
744
+ readonly type: "bytes";
745
+ readonly name: "takerCallbackData";
746
+ }];
747
+ readonly outputs: readonly [{
748
+ readonly type: "uint256";
749
+ }, {
750
+ readonly type: "uint256";
751
+ }, {
752
+ readonly type: "uint256";
753
+ }, {
754
+ readonly type: "uint256";
755
+ }];
756
+ }, {
757
+ readonly name: "totalShares";
758
+ readonly type: "function";
759
+ readonly stateMutability: "view";
760
+ readonly inputs: readonly [{
761
+ readonly type: "bytes32";
762
+ readonly name: "id";
763
+ }];
764
+ readonly outputs: readonly [{
765
+ readonly type: "uint256";
766
+ }];
767
+ }, {
768
+ readonly name: "totalUnits";
769
+ readonly type: "function";
770
+ readonly stateMutability: "view";
771
+ readonly inputs: readonly [{
772
+ readonly type: "bytes32";
773
+ readonly name: "id";
774
+ }];
775
+ readonly outputs: readonly [{
776
+ readonly type: "uint256";
777
+ }];
778
+ }, {
779
+ readonly name: "touchObligation";
780
+ readonly type: "function";
781
+ readonly stateMutability: "nonpayable";
782
+ readonly inputs: readonly [{
783
+ readonly type: "tuple";
784
+ readonly components: readonly [{
785
+ readonly type: "address";
786
+ readonly name: "loanToken";
787
+ }, {
788
+ readonly type: "tuple[]";
789
+ readonly components: readonly [{
790
+ readonly type: "address";
791
+ readonly name: "token";
792
+ }, {
793
+ readonly type: "uint256";
794
+ readonly name: "lltv";
795
+ }, {
796
+ readonly type: "address";
797
+ readonly name: "oracle";
798
+ }];
799
+ readonly name: "collaterals";
800
+ }, {
801
+ readonly type: "uint256";
802
+ readonly name: "maturity";
803
+ }];
804
+ readonly name: "obligation";
805
+ }];
806
+ readonly outputs: readonly [{
807
+ readonly type: "bytes32";
808
+ }];
809
+ }, {
810
+ readonly name: "tradingFee";
811
+ readonly type: "function";
812
+ readonly stateMutability: "view";
813
+ readonly inputs: readonly [{
814
+ readonly type: "bytes32";
815
+ readonly name: "id";
816
+ }, {
817
+ readonly type: "uint256";
818
+ readonly name: "timeToMaturity";
819
+ }];
820
+ readonly outputs: readonly [{
821
+ readonly type: "uint256";
822
+ }];
823
+ }, {
824
+ readonly name: "tradingFeeRecipient";
825
+ readonly type: "function";
826
+ readonly stateMutability: "view";
827
+ readonly inputs: readonly [];
828
+ readonly outputs: readonly [{
829
+ readonly type: "address";
830
+ }];
831
+ }, {
832
+ readonly name: "withdraw";
833
+ readonly type: "function";
834
+ readonly stateMutability: "nonpayable";
835
+ readonly inputs: readonly [{
836
+ readonly type: "tuple";
837
+ readonly components: readonly [{
838
+ readonly type: "address";
839
+ readonly name: "loanToken";
840
+ }, {
841
+ readonly type: "tuple[]";
842
+ readonly components: readonly [{
843
+ readonly type: "address";
844
+ readonly name: "token";
845
+ }, {
846
+ readonly type: "uint256";
847
+ readonly name: "lltv";
848
+ }, {
849
+ readonly type: "address";
850
+ readonly name: "oracle";
851
+ }];
852
+ readonly name: "collaterals";
853
+ }, {
854
+ readonly type: "uint256";
855
+ readonly name: "maturity";
856
+ }];
857
+ readonly name: "obligation";
858
+ }, {
859
+ readonly type: "uint256";
860
+ readonly name: "obligationUnits";
861
+ }, {
862
+ readonly type: "uint256";
863
+ readonly name: "shares";
864
+ }, {
865
+ readonly type: "address";
866
+ readonly name: "onBehalf";
867
+ }];
868
+ readonly outputs: readonly [{
869
+ readonly type: "uint256";
870
+ }, {
871
+ readonly type: "uint256";
872
+ }];
873
+ }, {
874
+ readonly name: "withdrawCollateral";
875
+ readonly type: "function";
876
+ readonly stateMutability: "nonpayable";
877
+ readonly inputs: readonly [{
878
+ readonly type: "tuple";
879
+ readonly components: readonly [{
880
+ readonly type: "address";
881
+ readonly name: "loanToken";
882
+ }, {
883
+ readonly type: "tuple[]";
884
+ readonly components: readonly [{
885
+ readonly type: "address";
886
+ readonly name: "token";
887
+ }, {
888
+ readonly type: "uint256";
889
+ readonly name: "lltv";
890
+ }, {
891
+ readonly type: "address";
892
+ readonly name: "oracle";
893
+ }];
894
+ readonly name: "collaterals";
895
+ }, {
896
+ readonly type: "uint256";
897
+ readonly name: "maturity";
898
+ }];
899
+ readonly name: "obligation";
900
+ }, {
901
+ readonly type: "address";
902
+ readonly name: "collateral";
903
+ }, {
904
+ readonly type: "uint256";
905
+ readonly name: "assets";
906
+ }, {
907
+ readonly type: "address";
908
+ readonly name: "onBehalf";
909
+ }];
910
+ readonly outputs: readonly [];
911
+ }, {
912
+ readonly name: "withdrawable";
913
+ readonly type: "function";
914
+ readonly stateMutability: "view";
915
+ readonly inputs: readonly [{
916
+ readonly type: "bytes32";
917
+ readonly name: "id";
918
+ }];
919
+ readonly outputs: readonly [{
920
+ readonly type: "uint256";
921
+ }];
922
+ }, {
923
+ readonly name: "Constructor";
924
+ readonly type: "event";
925
+ readonly inputs: readonly [{
926
+ readonly type: "address";
927
+ readonly name: "owner";
928
+ readonly indexed: true;
929
+ }];
930
+ }, {
931
+ readonly name: "Consume";
932
+ readonly type: "event";
933
+ readonly inputs: readonly [{
934
+ readonly type: "address";
935
+ readonly name: "user";
936
+ readonly indexed: true;
937
+ }, {
938
+ readonly type: "bytes32";
939
+ readonly name: "group";
940
+ readonly indexed: true;
941
+ }, {
942
+ readonly type: "uint256";
943
+ readonly name: "amount";
944
+ }];
945
+ }, {
946
+ readonly name: "FlashLoan";
947
+ readonly type: "event";
948
+ readonly inputs: readonly [{
949
+ readonly type: "address";
950
+ readonly name: "caller";
951
+ readonly indexed: true;
952
+ }, {
953
+ readonly type: "address";
954
+ readonly name: "token";
955
+ readonly indexed: true;
956
+ }, {
957
+ readonly type: "uint256";
958
+ readonly name: "assets";
959
+ }];
960
+ }, {
961
+ readonly name: "Liquidate";
962
+ readonly type: "event";
963
+ readonly inputs: readonly [{
964
+ readonly type: "address";
965
+ readonly name: "caller";
966
+ readonly indexed: true;
967
+ }, {
968
+ readonly type: "bytes32";
969
+ readonly name: "id";
970
+ readonly indexed: true;
971
+ }, {
972
+ readonly type: "tuple[]";
973
+ readonly components: readonly [{
974
+ readonly type: "uint256";
975
+ readonly name: "collateralIndex";
976
+ }, {
977
+ readonly type: "uint256";
978
+ readonly name: "repaid";
979
+ }, {
980
+ readonly type: "uint256";
981
+ readonly name: "seized";
982
+ }];
983
+ readonly name: "seizures";
984
+ }, {
985
+ readonly type: "address";
986
+ readonly name: "borrower";
987
+ readonly indexed: true;
988
+ }, {
989
+ readonly type: "uint256";
990
+ readonly name: "totalRepaid";
991
+ }, {
992
+ readonly type: "uint256";
993
+ readonly name: "badDebt";
994
+ }];
995
+ }, {
996
+ readonly name: "ObligationCreated";
997
+ readonly type: "event";
998
+ readonly inputs: readonly [{
999
+ readonly type: "bytes32";
1000
+ readonly name: "id";
1001
+ readonly indexed: true;
1002
+ }, {
1003
+ readonly type: "tuple";
1004
+ readonly components: readonly [{
1005
+ readonly type: "address";
1006
+ readonly name: "loanToken";
1007
+ }, {
1008
+ readonly type: "tuple[]";
1009
+ readonly components: readonly [{
1010
+ readonly type: "address";
1011
+ readonly name: "token";
1012
+ }, {
1013
+ readonly type: "uint256";
1014
+ readonly name: "lltv";
1015
+ }, {
1016
+ readonly type: "address";
1017
+ readonly name: "oracle";
1018
+ }];
1019
+ readonly name: "collaterals";
1020
+ }, {
1021
+ readonly type: "uint256";
1022
+ readonly name: "maturity";
1023
+ }];
1024
+ readonly name: "obligation";
1025
+ }];
1026
+ }, {
1027
+ readonly name: "Repay";
1028
+ readonly type: "event";
1029
+ readonly inputs: readonly [{
1030
+ readonly type: "address";
1031
+ readonly name: "caller";
1032
+ readonly indexed: true;
1033
+ }, {
1034
+ readonly type: "bytes32";
1035
+ readonly name: "id";
1036
+ readonly indexed: true;
1037
+ }, {
1038
+ readonly type: "uint256";
1039
+ readonly name: "obligationUnits";
1040
+ }, {
1041
+ readonly type: "address";
1042
+ readonly name: "onBehalf";
1043
+ readonly indexed: true;
1044
+ }];
1045
+ }, {
1046
+ readonly name: "SetDefaultTradingFee";
1047
+ readonly type: "event";
1048
+ readonly inputs: readonly [{
1049
+ readonly type: "address";
1050
+ readonly name: "loanToken";
1051
+ readonly indexed: true;
1052
+ }, {
1053
+ readonly type: "uint256";
1054
+ readonly name: "index";
1055
+ readonly indexed: true;
1056
+ }, {
1057
+ readonly type: "uint256";
1058
+ readonly name: "newTradingFee";
1059
+ }];
1060
+ }, {
1061
+ readonly name: "SetFeeSetter";
1062
+ readonly type: "event";
1063
+ readonly inputs: readonly [{
1064
+ readonly type: "address";
1065
+ readonly name: "feeSetter";
1066
+ readonly indexed: true;
1067
+ }];
1068
+ }, {
1069
+ readonly name: "SetObligationTradingFee";
1070
+ readonly type: "event";
1071
+ readonly inputs: readonly [{
1072
+ readonly type: "bytes32";
1073
+ readonly name: "id";
1074
+ readonly indexed: true;
1075
+ }, {
1076
+ readonly type: "uint256";
1077
+ readonly name: "index";
1078
+ readonly indexed: true;
1079
+ }, {
1080
+ readonly type: "uint256";
1081
+ readonly name: "newTradingFee";
1082
+ }];
1083
+ }, {
1084
+ readonly name: "SetOwner";
1085
+ readonly type: "event";
1086
+ readonly inputs: readonly [{
1087
+ readonly type: "address";
1088
+ readonly name: "owner";
1089
+ readonly indexed: true;
1090
+ }];
1091
+ }, {
1092
+ readonly name: "SetTradingFeeRecipient";
1093
+ readonly type: "event";
1094
+ readonly inputs: readonly [{
1095
+ readonly type: "address";
1096
+ readonly name: "recipient";
1097
+ readonly indexed: true;
1098
+ }];
1099
+ }, {
1100
+ readonly name: "ShuffleSession";
1101
+ readonly type: "event";
1102
+ readonly inputs: readonly [{
1103
+ readonly type: "address";
1104
+ readonly name: "user";
1105
+ readonly indexed: true;
1106
+ }, {
1107
+ readonly type: "bytes32";
1108
+ readonly name: "session";
1109
+ }];
1110
+ }, {
1111
+ readonly name: "SupplyCollateral";
1112
+ readonly type: "event";
1113
+ readonly inputs: readonly [{
1114
+ readonly type: "address";
1115
+ readonly name: "caller";
1116
+ }, {
1117
+ readonly type: "bytes32";
1118
+ readonly name: "id";
1119
+ readonly indexed: true;
1120
+ }, {
1121
+ readonly type: "address";
1122
+ readonly name: "collateral";
1123
+ readonly indexed: true;
1124
+ }, {
1125
+ readonly type: "uint256";
1126
+ readonly name: "assets";
1127
+ }, {
1128
+ readonly type: "address";
1129
+ readonly name: "onBehalf";
1130
+ readonly indexed: true;
1131
+ }];
1132
+ }, {
1133
+ readonly name: "Take";
1134
+ readonly type: "event";
1135
+ readonly inputs: readonly [{
1136
+ readonly type: "address";
1137
+ readonly name: "caller";
1138
+ }, {
1139
+ readonly type: "bytes32";
1140
+ readonly name: "id";
1141
+ readonly indexed: true;
1142
+ }, {
1143
+ readonly type: "address";
1144
+ readonly name: "maker";
1145
+ readonly indexed: true;
1146
+ }, {
1147
+ readonly type: "address";
1148
+ readonly name: "taker";
1149
+ readonly indexed: true;
1150
+ }, {
1151
+ readonly type: "bool";
1152
+ readonly name: "offerIsBuy";
1153
+ }, {
1154
+ readonly type: "uint256";
1155
+ readonly name: "buyerAssets";
1156
+ }, {
1157
+ readonly type: "uint256";
1158
+ readonly name: "sellerAssets";
1159
+ }, {
1160
+ readonly type: "uint256";
1161
+ readonly name: "obligationUnits";
1162
+ }, {
1163
+ readonly type: "uint256";
1164
+ readonly name: "obligationShares";
1165
+ }, {
1166
+ readonly type: "bool";
1167
+ readonly name: "buyerIsLender";
1168
+ }, {
1169
+ readonly type: "bool";
1170
+ readonly name: "sellerIsBorrower";
1171
+ }, {
1172
+ readonly type: "bytes32";
1173
+ readonly name: "group";
1174
+ }, {
1175
+ readonly type: "uint256";
1176
+ readonly name: "consumed";
1177
+ }];
1178
+ }, {
1179
+ readonly name: "Withdraw";
1180
+ readonly type: "event";
1181
+ readonly inputs: readonly [{
1182
+ readonly type: "address";
1183
+ readonly name: "caller";
1184
+ readonly indexed: true;
1185
+ }, {
1186
+ readonly type: "bytes32";
1187
+ readonly name: "id";
1188
+ readonly indexed: true;
1189
+ }, {
1190
+ readonly type: "uint256";
1191
+ readonly name: "obligationUnits";
1192
+ }, {
1193
+ readonly type: "uint256";
1194
+ readonly name: "shares";
1195
+ }, {
1196
+ readonly type: "address";
1197
+ readonly name: "onBehalf";
1198
+ readonly indexed: true;
1199
+ }];
1200
+ }, {
1201
+ readonly name: "WithdrawCollateral";
1202
+ readonly type: "event";
1203
+ readonly inputs: readonly [{
1204
+ readonly type: "address";
1205
+ readonly name: "caller";
1206
+ }, {
1207
+ readonly type: "bytes32";
1208
+ readonly name: "id";
1209
+ readonly indexed: true;
1210
+ }, {
1211
+ readonly type: "address";
1212
+ readonly name: "collateral";
1213
+ readonly indexed: true;
1214
+ }, {
1215
+ readonly type: "uint256";
1216
+ readonly name: "assets";
1217
+ }, {
1218
+ readonly type: "address";
1219
+ readonly name: "onBehalf";
1220
+ readonly indexed: true;
1221
+ }];
1222
+ }];
1223
+ type MorphoV2 = typeof MorphoV2;
218
1224
  declare namespace index_d_exports {
219
- export { ERC4626, MetaMorpho, MetaMorphoFactory, Morpho, Oracle$1 as Oracle };
1225
+ export { ERC4626, MetaMorpho, MetaMorphoFactory, Morpho, MorphoV2, Oracle$1 as Oracle };
220
1226
  }
221
1227
  declare const Oracle$1: readonly [{
222
1228
  readonly type: "function";
@@ -339,94 +1345,19 @@ declare const Morpho: readonly [{
339
1345
  }];
340
1346
  readonly stateMutability: "view";
341
1347
  }];
342
- //#endregion
343
- //#region src/core/types.d.ts
344
- /** Combines members of an intersection into a readable type. */
345
- type Compute<type> = { [key in keyof type]: type[key] } & unknown;
346
- declare const BrandTypeId: unique symbol;
347
- type Brand<in out ID extends string | symbol> = {
348
- readonly [BrandTypeId]: { readonly [id in ID]: ID };
349
- };
350
1348
  declare namespace Callback_d_exports {
351
- 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 };
1349
+ export { Callback, Type$1 as Type, isEmptyCallback };
352
1350
  }
353
- /** A position decoded from callback data. */
354
- type CallbackPosition = {
355
- /** The ERC20 token contract address. */contract: Address; /** The maximum amount available from this position. */
356
- amount: bigint;
357
- };
358
1351
  type Callback = {
359
1352
  type: Type$1.BuyWithEmptyCallback;
360
- } | (({
361
- /** The address of the callback contract. */address: Address; /** The ABI-encoded callback data. */
362
- data: Hex;
363
- } & {
364
- type: Type$1.BuyERC20; /** The decoded callback inputs. */
365
- inputs: {
366
- /** The ERC20 positions available for the callback. */positions: CallbackPosition[];
367
- };
368
- }) & Brand<"Callback">);
1353
+ } | {
1354
+ type: Type$1.SellWithEmptyCallback;
1355
+ };
369
1356
  declare enum Type$1 {
370
1357
  BuyWithEmptyCallback = "buy_with_empty_callback",
371
- BuyERC20 = "buy_erc20",
372
- BuyVaultV1Callback = "buy_vault_v1_callback",
373
- SellERC20Callback = "sell_erc20_callback"
1358
+ SellWithEmptyCallback = "sell_with_empty_callback"
374
1359
  }
375
1360
  declare const isEmptyCallback: (offer: Offer) => boolean;
376
- declare function decode$2(type: Type$1, data: Hex): {
377
- contract: Address;
378
- amount: bigint;
379
- }[];
380
- type BuyERC20Data = {
381
- tokens: Address[];
382
- amounts: bigint[];
383
- };
384
- type BuyVaultV1CallbackData = {
385
- vaults: Address[];
386
- amounts: bigint[];
387
- };
388
- type SellERC20CallbackData = {
389
- collaterals: Address[];
390
- amounts: bigint[];
391
- };
392
- declare function encode$2(type: Type$1.BuyERC20, data: BuyERC20Data): Hex;
393
- declare function encode$2(type: Type$1.BuyVaultV1Callback, data: BuyVaultV1CallbackData): Hex;
394
- declare function encode$2(type: Type$1.SellERC20Callback, data: SellERC20CallbackData): Hex;
395
- /**
396
- * Decodes BuyERC20 callback data into positions.
397
- * @param data - The ABI-encoded callback data containing token addresses and amounts.
398
- * @returns Array of positions with contract address and amount.
399
- * @throws If data is empty, malformed, or arrays have mismatched lengths.
400
- */
401
- declare function decodeBuyERC20(data: Hex): Array<{
402
- contract: Address;
403
- amount: bigint;
404
- }>;
405
- /**
406
- * Encodes BuyERC20 callback parameters into ABI-encoded data.
407
- * @param parameters - The tokens and amounts to encode.
408
- * @returns ABI-encoded hex string.
409
- */
410
- declare function encodeBuyERC20(parameters: {
411
- tokens: Address[];
412
- amounts: bigint[];
413
- }): Hex;
414
- declare function decodeBuyVaultV1Callback(data: Hex): Array<{
415
- contract: Address;
416
- amount: bigint;
417
- }>;
418
- declare function decodeSellERC20Callback(data: Hex): Array<{
419
- contract: Address;
420
- amount: bigint;
421
- }>;
422
- declare function encodeBuyVaultV1Callback(parameters: {
423
- vaults: Address[];
424
- amounts: bigint[];
425
- }): Hex;
426
- declare function encodeSellERC20Callback(parameters: {
427
- collaterals: Address[];
428
- amounts: bigint[];
429
- }): Hex;
430
1361
  declare namespace Errors_d_exports {
431
1362
  export { BaseError, GlobalErrorType, ReorgError };
432
1363
  }
@@ -546,6 +1477,14 @@ type ChainRegistry = {
546
1477
  * @returns A registry for looking up chains by ID. {@link ChainRegistry}
547
1478
  */
548
1479
  declare function create$1(chains: Chain$1[]): ChainRegistry;
1480
+ //#endregion
1481
+ //#region src/core/types.d.ts
1482
+ /** Combines members of an intersection into a readable type. */
1483
+ type Compute<type> = { [key in keyof type]: type[key] } & unknown;
1484
+ declare const BrandTypeId: unique symbol;
1485
+ type Brand<in out ID extends string | symbol> = {
1486
+ readonly [BrandTypeId]: { readonly [id in ID]: ID };
1487
+ };
549
1488
  declare namespace LLTV_d_exports {
550
1489
  export { InvalidLLTVError, InvalidOptionError$1 as InvalidOptionError, LLTV, LLTVSchema, Options, from$14 as from };
551
1490
  }
@@ -692,7 +1631,7 @@ declare class DenominatorIsZeroError extends BaseError {
692
1631
  constructor();
693
1632
  }
694
1633
  declare namespace Liquidity_d_exports {
695
- export { LiquidityLink, LiquidityPool, OfferLiquidityPool, calculateMaxDebt, generateAllowancePoolId, generateBalancePoolId, generateBuyVaultCallbackPoolId, generateDebtPoolId, generateMarketLiquidityPoolId, generateObligationCollateralPoolId, generateSellERC20CallbackPoolId, generateUserVaultPositionPoolId, generateVaultPositionPoolId };
1634
+ export { LiquidityLink, LiquidityPool, OfferLiquidityPool, calculateMaxDebt, generateAllowancePoolId, generateBalancePoolId, generateDebtPoolId, generateMarketLiquidityPoolId, generateObligationCollateralPoolId, generateUserVaultPositionPoolId, generateVaultPositionPoolId };
696
1635
  }
697
1636
  /**
698
1637
  * Represents a liquidity pool with a unique ID and amount.
@@ -717,10 +1656,7 @@ type OfferLiquidityPool = {
717
1656
  poolId: string;
718
1657
  /**
719
1658
  * The available capacity/liquidity from this pool for this offer.
720
- * Meaning varies by pool type:
721
- * - BuyWithEmptyCallback: Matches allowance amount from pool bellow
722
- * - SellERC20Callback: Sell Callback/Predeposited -> Maximum debt capacity calculated from collateral (collateralAmount * oraclePrice * lltv)
723
- * - SellERC20Callback: Existing debt as negative value (reduces available capacity)
1659
+ * Matches allowance amount from pool below.
724
1660
  */
725
1661
  amount: bigint;
726
1662
  };
@@ -748,17 +1684,6 @@ declare function generateAllowancePoolId(parameters: {
748
1684
  chainId: Id;
749
1685
  token: Address;
750
1686
  }): string;
751
- /**
752
- * Generate pool ID for sell ERC20 callback pools.
753
- * Each offer has its own callback pool to prevent liquidity conflicts.
754
- */
755
- declare function generateSellERC20CallbackPoolId(parameters: {
756
- user: Address;
757
- chainId: Id;
758
- obligationId: Hex;
759
- token: Address;
760
- offerHash: Hex;
761
- }): string;
762
1687
  /**
763
1688
  * Generate pool ID for obligation collateral pools.
764
1689
  * Obligation collateral pools represent collateral already deposited in the obligation.
@@ -770,15 +1695,6 @@ declare function generateObligationCollateralPoolId(parameters: {
770
1695
  obligationId: Hex;
771
1696
  token: Address;
772
1697
  }): string;
773
- /**
774
- * Generate pool ID for buy vault callback pools.
775
- */
776
- declare function generateBuyVaultCallbackPoolId(parameters: {
777
- user: Address;
778
- chainId: Id;
779
- vault: Address;
780
- offerHash: Hex;
781
- }): string;
782
1698
  /**
783
1699
  * Generate pool ID for debt pools.
784
1700
  */
@@ -1015,7 +1931,7 @@ declare class CollateralsAreNotSortedError extends BaseError {
1015
1931
  constructor();
1016
1932
  }
1017
1933
  declare namespace Offer_d_exports {
1018
- 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 };
1934
+ 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 };
1019
1935
  }
1020
1936
  type Offer = {
1021
1937
  /** The address that made the offer. */readonly maker: Address; /** The amount of assets offered. Mutually exclusive with obligationUnits and obligationShares. */
@@ -1272,6 +2188,80 @@ type OfferConsumed = {
1272
2188
  amount: bigint;
1273
2189
  blockNumber: number;
1274
2190
  };
2191
+ /**
2192
+ * ABI for the Take event emitted by the Morpho V2 contract.
2193
+ */
2194
+ declare const takeEvent: {
2195
+ readonly type: "event";
2196
+ readonly name: "Take";
2197
+ readonly inputs: readonly [{
2198
+ readonly name: "caller";
2199
+ readonly type: "address";
2200
+ readonly indexed: false;
2201
+ readonly internalType: "address";
2202
+ }, {
2203
+ readonly name: "id";
2204
+ readonly type: "bytes32";
2205
+ readonly indexed: true;
2206
+ readonly internalType: "bytes32";
2207
+ }, {
2208
+ readonly name: "maker";
2209
+ readonly type: "address";
2210
+ readonly indexed: true;
2211
+ readonly internalType: "address";
2212
+ }, {
2213
+ readonly name: "taker";
2214
+ readonly type: "address";
2215
+ readonly indexed: true;
2216
+ readonly internalType: "address";
2217
+ }, {
2218
+ readonly name: "offerIsBuy";
2219
+ readonly type: "bool";
2220
+ readonly indexed: false;
2221
+ readonly internalType: "bool";
2222
+ }, {
2223
+ readonly name: "buyerAssets";
2224
+ readonly type: "uint256";
2225
+ readonly indexed: false;
2226
+ readonly internalType: "uint256";
2227
+ }, {
2228
+ readonly name: "sellerAssets";
2229
+ readonly type: "uint256";
2230
+ readonly indexed: false;
2231
+ readonly internalType: "uint256";
2232
+ }, {
2233
+ readonly name: "obligationUnits";
2234
+ readonly type: "uint256";
2235
+ readonly indexed: false;
2236
+ readonly internalType: "uint256";
2237
+ }, {
2238
+ readonly name: "obligationShares";
2239
+ readonly type: "uint256";
2240
+ readonly indexed: false;
2241
+ readonly internalType: "uint256";
2242
+ }, {
2243
+ readonly name: "buyerIsLender";
2244
+ readonly type: "bool";
2245
+ readonly indexed: false;
2246
+ readonly internalType: "bool";
2247
+ }, {
2248
+ readonly name: "sellerIsBorrower";
2249
+ readonly type: "bool";
2250
+ readonly indexed: false;
2251
+ readonly internalType: "bool";
2252
+ }, {
2253
+ readonly name: "group";
2254
+ readonly type: "bytes32";
2255
+ readonly indexed: false;
2256
+ readonly internalType: "bytes32";
2257
+ }, {
2258
+ readonly name: "consumed";
2259
+ readonly type: "uint256";
2260
+ readonly indexed: false;
2261
+ readonly internalType: "uint256";
2262
+ }];
2263
+ readonly anonymous: false;
2264
+ };
1275
2265
  /**
1276
2266
  * ABI for the Consume event emitted by the Obligation contract.
1277
2267
  */
@@ -1969,7 +2959,7 @@ interface paths {
1969
2959
  };
1970
2960
  /**
1971
2961
  * Get config rules
1972
- * @description Returns configured rules for supported chains.
2962
+ * @description Returns configured rules (maturities, loan tokens, oracles) for supported chains.
1973
2963
  */
1974
2964
  get: {
1975
2965
  parameters: {
@@ -2426,7 +3416,7 @@ interface paths {
2426
3416
  put?: never;
2427
3417
  /**
2428
3418
  * Validate offers
2429
- * @description Validates offers against router validation rules. Returns unsigned payload + root on success, or issues only on validation failure.
3419
+ * @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.
2430
3420
  */
2431
3421
  post: {
2432
3422
  parameters: {
@@ -2465,56 +3455,6 @@ interface paths {
2465
3455
  patch?: never;
2466
3456
  trace?: never;
2467
3457
  };
2468
- "/v1/callbacks": {
2469
- parameters: {
2470
- query?: never;
2471
- header?: never;
2472
- path?: never;
2473
- cookie?: never;
2474
- };
2475
- get?: never;
2476
- put?: never;
2477
- /**
2478
- * Resolve callback types
2479
- * @description Returns callback types for callback addresses grouped by chain.
2480
- */
2481
- post: {
2482
- parameters: {
2483
- query?: never;
2484
- header?: never;
2485
- path?: never;
2486
- cookie?: never;
2487
- };
2488
- requestBody?: {
2489
- content: {
2490
- "application/json": components["schemas"]["CallbackTypesRequest"];
2491
- };
2492
- };
2493
- responses: {
2494
- /** @description Success */200: {
2495
- headers: {
2496
- [name: string]: unknown;
2497
- };
2498
- content: {
2499
- "application/json": components["schemas"]["CallbackTypesSuccessResponse"];
2500
- };
2501
- }; /** @description Bad Request */
2502
- 400: {
2503
- headers: {
2504
- [name: string]: unknown;
2505
- };
2506
- content: {
2507
- "application/json": components["schemas"]["BadRequestResponse"];
2508
- };
2509
- };
2510
- };
2511
- };
2512
- delete?: never;
2513
- options?: never;
2514
- head?: never;
2515
- patch?: never;
2516
- trace?: never;
2517
- };
2518
3458
  }
2519
3459
  interface components {
2520
3460
  schemas: {
@@ -2599,12 +3539,6 @@ interface components {
2599
3539
  * "timestamp": 1730415600
2600
3540
  * },
2601
3541
  * {
2602
- * "type": "callback",
2603
- * "chain_id": 1,
2604
- * "address": "0x1111111111111111111111111111111111111111",
2605
- * "callback_type": "sell_erc20_callback"
2606
- * },
2607
- * {
2608
3542
  * "type": "loan_token",
2609
3543
  * "chain_id": 1,
2610
3544
  * "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
@@ -2626,9 +3560,8 @@ interface components {
2626
3560
  /** @example maturity */type: string; /** @example 1 */
2627
3561
  chain_id: number; /** @example end_of_next_month */
2628
3562
  name?: string; /** @example 1730415600 */
2629
- timestamp?: number; /** @example 0x1111111111111111111111111111111111111111 */
2630
- address?: string; /** @example sell_erc20_callback */
2631
- callback_type?: string;
3563
+ timestamp?: number; /** @example 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 */
3564
+ address?: string;
2632
3565
  };
2633
3566
  OfferListResponse: {
2634
3567
  meta: components["schemas"]["Meta"];
@@ -2663,8 +3596,8 @@ interface components {
2663
3596
  * "price": "2750000000000000000",
2664
3597
  * "group": "0x000000000000000000000000000000000000000000000000000000000008b8f4",
2665
3598
  * "session": "0x0000000000000000000000000000000000000000000000000000000000000000",
2666
- * "callback": "0x1111111111111111111111111111111111111111",
2667
- * "callback_data": "0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000100000000000000000000000034cf890db685fc536e05652fb41f02090c3fb751000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000108e644e3ab01184155270aa92a00000000000"
3599
+ * "callback": "0x0000000000000000000000000000000000000000",
3600
+ * "callback_data": "0x"
2668
3601
  * },
2669
3602
  * "offer_hash": "0xac4bd8318ec914f89f8af913f162230575b0ac0696a19256bc12138c5cfe1427",
2670
3603
  * "obligation_id": "0x25690ae1aee324a005be565f3bcdd16dbf8daf7969b26c181c8b8f467dad9abc",
@@ -2707,8 +3640,8 @@ interface components {
2707
3640
  * "price": "2750000000000000000",
2708
3641
  * "group": "0x000000000000000000000000000000000000000000000000000000000008b8f4",
2709
3642
  * "session": "0x0000000000000000000000000000000000000000000000000000000000000000",
2710
- * "callback": "0x1111111111111111111111111111111111111111",
2711
- * "callback_data": "0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000100000000000000000000000034cf890db685fc536e05652fb41f02090c3fb751000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000108e644e3ab01184155270aa92a00000000000"
3643
+ * "callback": "0x0000000000000000000000000000000000000000",
3644
+ * "callback_data": "0x"
2712
3645
  * }
2713
3646
  */
2714
3647
  offer: components["schemas"]["OfferDataResponse"]; /** @example 0xac4bd8318ec914f89f8af913f162230575b0ac0696a19256bc12138c5cfe1427 */
@@ -2752,8 +3685,8 @@ interface components {
2752
3685
  expiry: number; /** @example 2750000000000000000 */
2753
3686
  price: string; /** @example 0x000000000000000000000000000000000000000000000000000000000008b8f4 */
2754
3687
  group: string; /** @example 0x0000000000000000000000000000000000000000000000000000000000000000 */
2755
- session: string; /** @example 0x1111111111111111111111111111111111111111 */
2756
- callback: string; /** @example 0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000100000000000000000000000034cf890db685fc536e05652fb41f02090c3fb751000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000108e644e3ab01184155270aa92a00000000000 */
3688
+ session: string; /** @example 0x0000000000000000000000000000000000000000 */
3689
+ callback: string; /** @example 0x */
2757
3690
  callback_data: string;
2758
3691
  };
2759
3692
  ObligationOfferResponse: {
@@ -2942,8 +3875,8 @@ interface components {
2942
3875
  collaterals: components["schemas"]["ValidateCollateralRequest"][];
2943
3876
  /**
2944
3877
  * @example {
2945
- * "address": "0x1111111111111111111111111111111111111111",
2946
- * "data": "0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000100000000000000000000000034cf890db685fc536e05652fb41f02090c3fb751000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000108e644e3ab01184155270aa92a00000000000"
3878
+ * "address": "0x0000000000000000000000000000000000000000",
3879
+ * "data": "0x"
2947
3880
  * }
2948
3881
  */
2949
3882
  callback: components["schemas"]["ValidateCallbackRequest"];
@@ -2954,7 +3887,7 @@ interface components {
2954
3887
  lltv: string;
2955
3888
  };
2956
3889
  ValidateCallbackRequest: {
2957
- /** @example 0x1111111111111111111111111111111111111111 */address: string; /** @example 0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000100000000000000000000000034cf890db685fc536e05652fb41f02090c3fb751000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000108e644e3ab01184155270aa92a00000000000 */
3890
+ /** @example 0x0000000000000000000000000000000000000000 */address: string; /** @example 0x */
2958
3891
  data: string;
2959
3892
  };
2960
3893
  ValidationSuccessResponse: {
@@ -2974,84 +3907,6 @@ interface components {
2974
3907
  */
2975
3908
  root: string;
2976
3909
  };
2977
- CallbackTypesRequest: {
2978
- /**
2979
- * @example [
2980
- * {
2981
- * "chain_id": 1,
2982
- * "addresses": [
2983
- * "0x1111111111111111111111111111111111111111",
2984
- * "0x3333333333333333333333333333333333333333",
2985
- * "0x9999999999999999999999999999999999999999"
2986
- * ]
2987
- * }
2988
- * ]
2989
- */
2990
- callbacks: components["schemas"]["CallbackTypesChainRequest"][];
2991
- };
2992
- CallbackTypesChainRequest: {
2993
- /** @example 1 */chain_id: number;
2994
- /**
2995
- * @example [
2996
- * "0x1111111111111111111111111111111111111111",
2997
- * "0x3333333333333333333333333333333333333333",
2998
- * "0x9999999999999999999999999999999999999999"
2999
- * ]
3000
- */
3001
- addresses: string[];
3002
- };
3003
- CallbackTypesSuccessResponse: {
3004
- meta: components["schemas"]["Meta"]; /** @example maturity:1:1730415600:end_of_next_month */
3005
- cursor: string | null;
3006
- /**
3007
- * @description Callback types grouped by chain.
3008
- * @example [
3009
- * {
3010
- * "chain_id": 1,
3011
- * "sell_erc20_callback": [
3012
- * "0x1111111111111111111111111111111111111111"
3013
- * ],
3014
- * "buy_erc20": [
3015
- * "0x5555555555555555555555555555555555555555"
3016
- * ],
3017
- * "buy_vault_v1_callback": [
3018
- * "0x3333333333333333333333333333333333333333"
3019
- * ],
3020
- * "not_supported": [
3021
- * "0x9999999999999999999999999999999999999999"
3022
- * ]
3023
- * }
3024
- * ]
3025
- */
3026
- data: components["schemas"]["CallbackTypesChainResponse"][];
3027
- };
3028
- CallbackTypesChainResponse: {
3029
- /** @example 1 */chain_id: number;
3030
- /**
3031
- * @example [
3032
- * "0x3333333333333333333333333333333333333333"
3033
- * ]
3034
- */
3035
- buy_vault_v1_callback?: string[];
3036
- /**
3037
- * @example [
3038
- * "0x1111111111111111111111111111111111111111"
3039
- * ]
3040
- */
3041
- sell_erc20_callback?: string[];
3042
- /**
3043
- * @example [
3044
- * "0x5555555555555555555555555555555555555555"
3045
- * ]
3046
- */
3047
- buy_erc20?: string[];
3048
- /**
3049
- * @example [
3050
- * "0x9999999999999999999999999999999999999999"
3051
- * ]
3052
- */
3053
- not_supported: string[];
3054
- };
3055
3910
  };
3056
3911
  responses: never;
3057
3912
  parameters: never;
@@ -3120,9 +3975,6 @@ declare class BooksController {
3120
3975
  declare class ValidateController {
3121
3976
  validateOffers(): Promise<void>;
3122
3977
  }
3123
- declare class CallbacksController {
3124
- resolveCallbackTypes(): Promise<void>;
3125
- }
3126
3978
  declare class OffersController {
3127
3979
  getOffers(): Promise<void>;
3128
3980
  }
@@ -3272,12 +4124,6 @@ declare const schemas: {
3272
4124
  readonly validate_offers: z$1.ZodObject<{
3273
4125
  offers: z$1.ZodArray<z$1.ZodUnknown>;
3274
4126
  }, z$1.core.$strict>;
3275
- readonly callback_types: z$1.ZodObject<{
3276
- callbacks: z$1.ZodArray<z$1.ZodObject<{
3277
- chain_id: z$1.ZodNumber;
3278
- addresses: z$1.ZodArray<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>>;
3279
- }, z$1.core.$strict>>;
3280
- }, z$1.core.$strict>;
3281
4127
  readonly get_user_positions: z$1.ZodObject<{
3282
4128
  user_address: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<`0x${string}`, string>>;
3283
4129
  cursor: z$1.ZodOptional<z$1.ZodString>;
@@ -3288,7 +4134,7 @@ type Action = keyof typeof schemas;
3288
4134
  declare function parse<A extends Action>(action: A, query: unknown): z$1.infer<(typeof schemas)[A]>;
3289
4135
  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]>>;
3290
4136
  declare namespace index_d_exports$1 {
3291
- 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 };
4137
+ 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 };
3292
4138
  }
3293
4139
  declare namespace Client_d_exports$1 {
3294
4140
  export { Client$2 as Client, ConnectOptions, HttpForbiddenError, HttpGetApiFailedError, HttpRateLimitError, HttpUnauthorizedError, InvalidUrlError, connect$1 as connect, getObligations, getOffers };
@@ -3520,16 +4366,6 @@ type ValidateOffersIssues = {
3520
4366
  issues: ValidationIssue[];
3521
4367
  };
3522
4368
  type ValidateOffersData = ValidateOffersSuccess | ValidateOffersIssues;
3523
- type CallbackType = Type$1 | "not_supported";
3524
- type CallbackTypesRequest = {
3525
- callbacks: Array<{
3526
- chain_id: Id;
3527
- addresses: Address[];
3528
- }>;
3529
- };
3530
- type CallbackTypesResponse = Array<{
3531
- chain_id: Id;
3532
- } & Partial<Record<CallbackType, Address[]>>>;
3533
4369
  type ConfigRulesPayload = SuccessPayload<ConfigRule[]> | ErrorPayload;
3534
4370
  type SuccessPayload<T> = {
3535
4371
  meta: {
@@ -3566,8 +4402,7 @@ type GatekeeperClient = {
3566
4402
  statusCode: number;
3567
4403
  body: ConfigRulesPayload;
3568
4404
  }>; /** Validate offers and return decision results. */
3569
- isAllowed: (offers: Offer[]) => Promise<Result<Offer, string>>; /** Resolve callback types for callback addresses. */
3570
- getCallbackTypes: (request: CallbackTypesRequest) => Promise<CallbackTypesResponse>; /** Base URL for the gatekeeper service. */
4405
+ isAllowed: (offers: Offer[]) => Promise<Result<Offer, string>>; /** Base URL for the gatekeeper service. */
3571
4406
  baseUrl: string;
3572
4407
  };
3573
4408
  type ClientConfig = {
@@ -3610,10 +4445,10 @@ type ValidityParameters = {
3610
4445
  /**
3611
4446
  * set of rules to validate offers.
3612
4447
  *
3613
- * @param parameters - Validity parameters with chain and client
4448
+ * @param _parameters - Validity parameters with chain and client
3614
4449
  * @returns Array of validation rules to evaluate against offers
3615
4450
  */
3616
- declare function validity(parameters: ValidityParameters): (Rule<Offer, "expiry"> | Rule<Offer, "sell_erc20_callback_invalid"> | Rule<Offer, "buy_offers_callback_vault_invalid">)[];
4451
+ declare function validity(_parameters: ValidityParameters): Rule<Offer, "expiry">[];
3617
4452
  declare const chains: ({
3618
4453
  chains
3619
4454
  }: {
@@ -3625,8 +4460,7 @@ declare const maturity: ({
3625
4460
  maturities: MaturityType[];
3626
4461
  }) => Rule<Offer, "maturity">;
3627
4462
  declare const callback: ({
3628
- callbacks,
3629
- allowedAddresses
4463
+ callbacks
3630
4464
  }: {
3631
4465
  callbacks: Type$1[];
3632
4466
  allowedAddresses: Address[];
@@ -3855,5 +4689,5 @@ declare namespace index_d_exports$2 {
3855
4689
  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 };
3856
4690
  }
3857
4691
  //#endregion
3858
- 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 };
4692
+ 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 };
3859
4693
  //# sourceMappingURL=index.browser.d.ts.map