@pafi-dev/core 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/abi/index.cjs +4 -4
  2. package/dist/abi/index.d.cts +588 -107
  3. package/dist/abi/index.d.ts +588 -107
  4. package/dist/abi/index.js +3 -3
  5. package/dist/{chunk-JEWSN7Q3.cjs → chunk-57KR35JW.cjs} +474 -72
  6. package/dist/chunk-57KR35JW.cjs.map +1 -0
  7. package/dist/{chunk-B2NDSIAI.js → chunk-FHFZ2F34.js} +474 -72
  8. package/dist/chunk-FHFZ2F34.js.map +1 -0
  9. package/dist/{chunk-RFANYF24.cjs → chunk-G7NS4TS3.cjs} +615 -198
  10. package/dist/chunk-G7NS4TS3.cjs.map +1 -0
  11. package/dist/{chunk-YCY7MBSJ.cjs → chunk-JH6XFHES.cjs} +15 -15
  12. package/dist/chunk-JH6XFHES.cjs.map +1 -0
  13. package/dist/{chunk-ABNM6LMP.js → chunk-JWZTY5UL.js} +615 -198
  14. package/dist/chunk-JWZTY5UL.js.map +1 -0
  15. package/dist/chunk-KRHGFUDI.cjs +1155 -0
  16. package/dist/chunk-KRHGFUDI.cjs.map +1 -0
  17. package/dist/{chunk-Y4CFC4OC.js → chunk-PWQWNHGI.js} +5 -5
  18. package/dist/{chunk-Y4CFC4OC.js.map → chunk-PWQWNHGI.js.map} +1 -1
  19. package/dist/chunk-UCO5DXD6.js +1155 -0
  20. package/dist/chunk-UCO5DXD6.js.map +1 -0
  21. package/dist/{chunk-ACQHZWHP.cjs → chunk-UTG2UT54.cjs} +10 -8
  22. package/dist/chunk-UTG2UT54.cjs.map +1 -0
  23. package/dist/{chunk-BB5YW57R.js → chunk-XNVVZVK6.js} +9 -7
  24. package/dist/chunk-XNVVZVK6.js.map +1 -0
  25. package/dist/contract/index.cjs +4 -4
  26. package/dist/contract/index.d.cts +7 -2
  27. package/dist/contract/index.d.ts +7 -2
  28. package/dist/contract/index.js +3 -3
  29. package/dist/eip712/index.cjs +3 -3
  30. package/dist/eip712/index.d.cts +16 -5
  31. package/dist/eip712/index.d.ts +16 -5
  32. package/dist/eip712/index.js +2 -2
  33. package/dist/index.cjs +17 -17
  34. package/dist/index.d.cts +25 -7
  35. package/dist/index.d.ts +25 -7
  36. package/dist/index.js +5 -5
  37. package/dist/{types-BS4kpO4Z.d.ts → types-DWLZNgcw.d.cts} +37 -10
  38. package/dist/{types-BS4kpO4Z.d.cts → types-DWLZNgcw.d.ts} +37 -10
  39. package/package.json +1 -1
  40. package/dist/chunk-644KZUKR.cjs +0 -519
  41. package/dist/chunk-644KZUKR.cjs.map +0 -1
  42. package/dist/chunk-ABNM6LMP.js.map +0 -1
  43. package/dist/chunk-ACQHZWHP.cjs.map +0 -1
  44. package/dist/chunk-B2NDSIAI.js.map +0 -1
  45. package/dist/chunk-BB5YW57R.js.map +0 -1
  46. package/dist/chunk-CUVUSVWR.js +0 -519
  47. package/dist/chunk-CUVUSVWR.js.map +0 -1
  48. package/dist/chunk-JEWSN7Q3.cjs.map +0 -1
  49. package/dist/chunk-RFANYF24.cjs.map +0 -1
  50. package/dist/chunk-YCY7MBSJ.cjs.map +0 -1
@@ -473,266 +473,635 @@ var pointTokenFactoryAbi = [
473
473
 
474
474
  // src/abi/mintFeeWrapper.ts
475
475
  var mintFeeWrapperAbi = [
476
- { type: "constructor", inputs: [], stateMutability: "nonpayable" },
477
476
  {
478
- type: "function",
479
- name: "MAX_BASIS_POINTS",
480
- inputs: [],
481
- outputs: [{ name: "", type: "uint16", internalType: "uint16" }],
482
- stateMutability: "view"
477
+ "type": "constructor",
478
+ "inputs": [],
479
+ "stateMutability": "nonpayable"
483
480
  },
484
481
  {
485
- type: "function",
486
- name: "MAX_TOTAL_FEE_BPS",
487
- inputs: [],
488
- outputs: [{ name: "", type: "uint16", internalType: "uint16" }],
489
- stateMutability: "view"
482
+ "type": "function",
483
+ "name": "MAX_BASIS_POINTS",
484
+ "inputs": [],
485
+ "outputs": [
486
+ {
487
+ "name": "",
488
+ "type": "uint16",
489
+ "internalType": "uint16"
490
+ }
491
+ ],
492
+ "stateMutability": "view"
490
493
  },
491
494
  {
492
- type: "function",
493
- name: "UPGRADE_INTERFACE_VERSION",
494
- inputs: [],
495
- outputs: [{ name: "", type: "string", internalType: "string" }],
496
- stateMutability: "view"
495
+ "type": "function",
496
+ "name": "UPGRADE_INTERFACE_VERSION",
497
+ "inputs": [],
498
+ "outputs": [
499
+ {
500
+ "name": "",
501
+ "type": "string",
502
+ "internalType": "string"
503
+ }
504
+ ],
505
+ "stateMutability": "view"
506
+ },
507
+ {
508
+ "type": "function",
509
+ "name": "acceptOwnership",
510
+ "inputs": [],
511
+ "outputs": [],
512
+ "stateMutability": "nonpayable"
513
+ },
514
+ {
515
+ "type": "function",
516
+ "name": "getRecipients",
517
+ "inputs": [
518
+ {
519
+ "name": "pointToken",
520
+ "type": "address",
521
+ "internalType": "address"
522
+ }
523
+ ],
524
+ "outputs": [
525
+ {
526
+ "name": "",
527
+ "type": "tuple[]",
528
+ "internalType": "struct IMintFeeWrapper.Recipient[]",
529
+ "components": [
530
+ {
531
+ "name": "account",
532
+ "type": "address",
533
+ "internalType": "address"
534
+ },
535
+ {
536
+ "name": "basisPoints",
537
+ "type": "uint16",
538
+ "internalType": "uint16"
539
+ }
540
+ ]
541
+ }
542
+ ],
543
+ "stateMutability": "view"
544
+ },
545
+ {
546
+ "type": "function",
547
+ "name": "initialize",
548
+ "inputs": [
549
+ {
550
+ "name": "initialOwner",
551
+ "type": "address",
552
+ "internalType": "address"
553
+ },
554
+ {
555
+ "name": "_registry",
556
+ "type": "address",
557
+ "internalType": "address"
558
+ }
559
+ ],
560
+ "outputs": [],
561
+ "stateMutability": "nonpayable"
562
+ },
563
+ {
564
+ "type": "function",
565
+ "name": "mintWithFee",
566
+ "inputs": [
567
+ {
568
+ "name": "pointToken",
569
+ "type": "address",
570
+ "internalType": "address"
571
+ },
572
+ {
573
+ "name": "user",
574
+ "type": "address",
575
+ "internalType": "address"
576
+ },
577
+ {
578
+ "name": "grossAmount",
579
+ "type": "uint256",
580
+ "internalType": "uint256"
581
+ },
582
+ {
583
+ "name": "deadline",
584
+ "type": "uint256",
585
+ "internalType": "uint256"
586
+ },
587
+ {
588
+ "name": "minterSig",
589
+ "type": "bytes",
590
+ "internalType": "bytes"
591
+ }
592
+ ],
593
+ "outputs": [],
594
+ "stateMutability": "nonpayable"
595
+ },
596
+ {
597
+ "type": "function",
598
+ "name": "owner",
599
+ "inputs": [],
600
+ "outputs": [
601
+ {
602
+ "name": "",
603
+ "type": "address",
604
+ "internalType": "address"
605
+ }
606
+ ],
607
+ "stateMutability": "view"
608
+ },
609
+ {
610
+ "type": "function",
611
+ "name": "pendingOwner",
612
+ "inputs": [],
613
+ "outputs": [
614
+ {
615
+ "name": "",
616
+ "type": "address",
617
+ "internalType": "address"
618
+ }
619
+ ],
620
+ "stateMutability": "view"
621
+ },
622
+ {
623
+ "type": "function",
624
+ "name": "proxiableUUID",
625
+ "inputs": [],
626
+ "outputs": [
627
+ {
628
+ "name": "",
629
+ "type": "bytes32",
630
+ "internalType": "bytes32"
631
+ }
632
+ ],
633
+ "stateMutability": "view"
634
+ },
635
+ {
636
+ "type": "function",
637
+ "name": "registerToken",
638
+ "inputs": [
639
+ {
640
+ "name": "pointToken",
641
+ "type": "address",
642
+ "internalType": "address"
643
+ },
644
+ {
645
+ "name": "recipients",
646
+ "type": "tuple[]",
647
+ "internalType": "struct IMintFeeWrapper.Recipient[]",
648
+ "components": [
649
+ {
650
+ "name": "account",
651
+ "type": "address",
652
+ "internalType": "address"
653
+ },
654
+ {
655
+ "name": "basisPoints",
656
+ "type": "uint16",
657
+ "internalType": "uint16"
658
+ }
659
+ ]
660
+ }
661
+ ],
662
+ "outputs": [],
663
+ "stateMutability": "nonpayable"
664
+ },
665
+ {
666
+ "type": "function",
667
+ "name": "registered",
668
+ "inputs": [
669
+ {
670
+ "name": "pointToken",
671
+ "type": "address",
672
+ "internalType": "address"
673
+ }
674
+ ],
675
+ "outputs": [
676
+ {
677
+ "name": "",
678
+ "type": "bool",
679
+ "internalType": "bool"
680
+ }
681
+ ],
682
+ "stateMutability": "view"
683
+ },
684
+ {
685
+ "type": "function",
686
+ "name": "registry",
687
+ "inputs": [],
688
+ "outputs": [
689
+ {
690
+ "name": "",
691
+ "type": "address",
692
+ "internalType": "address"
693
+ }
694
+ ],
695
+ "stateMutability": "view"
696
+ },
697
+ {
698
+ "type": "function",
699
+ "name": "renounceOwnership",
700
+ "inputs": [],
701
+ "outputs": [],
702
+ "stateMutability": "nonpayable"
703
+ },
704
+ {
705
+ "type": "function",
706
+ "name": "setRecipients",
707
+ "inputs": [
708
+ {
709
+ "name": "pointToken",
710
+ "type": "address",
711
+ "internalType": "address"
712
+ },
713
+ {
714
+ "name": "newRecipients",
715
+ "type": "tuple[]",
716
+ "internalType": "struct IMintFeeWrapper.Recipient[]",
717
+ "components": [
718
+ {
719
+ "name": "account",
720
+ "type": "address",
721
+ "internalType": "address"
722
+ },
723
+ {
724
+ "name": "basisPoints",
725
+ "type": "uint16",
726
+ "internalType": "uint16"
727
+ }
728
+ ]
729
+ }
730
+ ],
731
+ "outputs": [],
732
+ "stateMutability": "nonpayable"
733
+ },
734
+ {
735
+ "type": "function",
736
+ "name": "setRegistry",
737
+ "inputs": [
738
+ {
739
+ "name": "newRegistry",
740
+ "type": "address",
741
+ "internalType": "address"
742
+ }
743
+ ],
744
+ "outputs": [],
745
+ "stateMutability": "nonpayable"
746
+ },
747
+ {
748
+ "type": "function",
749
+ "name": "totalFeeBps",
750
+ "inputs": [
751
+ {
752
+ "name": "pointToken",
753
+ "type": "address",
754
+ "internalType": "address"
755
+ }
756
+ ],
757
+ "outputs": [
758
+ {
759
+ "name": "",
760
+ "type": "uint16",
761
+ "internalType": "uint16"
762
+ }
763
+ ],
764
+ "stateMutability": "view"
765
+ },
766
+ {
767
+ "type": "function",
768
+ "name": "transferOwnership",
769
+ "inputs": [
770
+ {
771
+ "name": "newOwner",
772
+ "type": "address",
773
+ "internalType": "address"
774
+ }
775
+ ],
776
+ "outputs": [],
777
+ "stateMutability": "nonpayable"
778
+ },
779
+ {
780
+ "type": "function",
781
+ "name": "upgradeToAndCall",
782
+ "inputs": [
783
+ {
784
+ "name": "newImplementation",
785
+ "type": "address",
786
+ "internalType": "address"
787
+ },
788
+ {
789
+ "name": "data",
790
+ "type": "bytes",
791
+ "internalType": "bytes"
792
+ }
793
+ ],
794
+ "outputs": [],
795
+ "stateMutability": "payable"
796
+ },
797
+ {
798
+ "type": "event",
799
+ "name": "FeeDistributed",
800
+ "inputs": [
801
+ {
802
+ "name": "pointToken",
803
+ "type": "address",
804
+ "indexed": true,
805
+ "internalType": "address"
806
+ },
807
+ {
808
+ "name": "recipient",
809
+ "type": "address",
810
+ "indexed": true,
811
+ "internalType": "address"
812
+ },
813
+ {
814
+ "name": "amount",
815
+ "type": "uint256",
816
+ "indexed": false,
817
+ "internalType": "uint256"
818
+ }
819
+ ],
820
+ "anonymous": false
821
+ },
822
+ {
823
+ "type": "event",
824
+ "name": "Initialized",
825
+ "inputs": [
826
+ {
827
+ "name": "version",
828
+ "type": "uint64",
829
+ "indexed": false,
830
+ "internalType": "uint64"
831
+ }
832
+ ],
833
+ "anonymous": false
834
+ },
835
+ {
836
+ "type": "event",
837
+ "name": "MintWithFee",
838
+ "inputs": [
839
+ {
840
+ "name": "pointToken",
841
+ "type": "address",
842
+ "indexed": true,
843
+ "internalType": "address"
844
+ },
845
+ {
846
+ "name": "to",
847
+ "type": "address",
848
+ "indexed": true,
849
+ "internalType": "address"
850
+ },
851
+ {
852
+ "name": "grossAmount",
853
+ "type": "uint256",
854
+ "indexed": false,
855
+ "internalType": "uint256"
856
+ },
857
+ {
858
+ "name": "netAmount",
859
+ "type": "uint256",
860
+ "indexed": false,
861
+ "internalType": "uint256"
862
+ },
863
+ {
864
+ "name": "feeAmount",
865
+ "type": "uint256",
866
+ "indexed": false,
867
+ "internalType": "uint256"
868
+ }
869
+ ],
870
+ "anonymous": false
497
871
  },
498
872
  {
499
- type: "function",
500
- name: "acceptOwnership",
501
- inputs: [],
502
- outputs: [],
503
- stateMutability: "nonpayable"
873
+ "type": "event",
874
+ "name": "OwnershipTransferStarted",
875
+ "inputs": [
876
+ {
877
+ "name": "previousOwner",
878
+ "type": "address",
879
+ "indexed": true,
880
+ "internalType": "address"
881
+ },
882
+ {
883
+ "name": "newOwner",
884
+ "type": "address",
885
+ "indexed": true,
886
+ "internalType": "address"
887
+ }
888
+ ],
889
+ "anonymous": false
504
890
  },
505
891
  {
506
- type: "function",
507
- name: "getRecipients",
508
- inputs: [],
509
- outputs: [
892
+ "type": "event",
893
+ "name": "OwnershipTransferred",
894
+ "inputs": [
510
895
  {
511
- name: "",
512
- type: "tuple[]",
513
- internalType: "struct IMintFeeWrapper.Recipient[]",
514
- components: [
515
- { name: "account", type: "address", internalType: "address" },
516
- { name: "basisPoints", type: "uint16", internalType: "uint16" }
517
- ]
896
+ "name": "previousOwner",
897
+ "type": "address",
898
+ "indexed": true,
899
+ "internalType": "address"
900
+ },
901
+ {
902
+ "name": "newOwner",
903
+ "type": "address",
904
+ "indexed": true,
905
+ "internalType": "address"
518
906
  }
519
907
  ],
520
- stateMutability: "view"
908
+ "anonymous": false
521
909
  },
522
910
  {
523
- type: "function",
524
- name: "initialize",
525
- inputs: [
526
- { name: "initialOwner", type: "address", internalType: "address" },
527
- { name: "_pointToken", type: "address", internalType: "address" },
911
+ "type": "event",
912
+ "name": "RecipientsUpdated",
913
+ "inputs": [
528
914
  {
529
- name: "initialRecipients",
530
- type: "tuple[]",
531
- internalType: "struct IMintFeeWrapper.Recipient[]",
532
- components: [
533
- { name: "account", type: "address", internalType: "address" },
534
- { name: "basisPoints", type: "uint16", internalType: "uint16" }
915
+ "name": "pointToken",
916
+ "type": "address",
917
+ "indexed": true,
918
+ "internalType": "address"
919
+ },
920
+ {
921
+ "name": "recipients",
922
+ "type": "tuple[]",
923
+ "indexed": false,
924
+ "internalType": "struct IMintFeeWrapper.Recipient[]",
925
+ "components": [
926
+ {
927
+ "name": "account",
928
+ "type": "address",
929
+ "internalType": "address"
930
+ },
931
+ {
932
+ "name": "basisPoints",
933
+ "type": "uint16",
934
+ "internalType": "uint16"
935
+ }
535
936
  ]
536
937
  }
537
938
  ],
538
- outputs: [],
539
- stateMutability: "nonpayable"
939
+ "anonymous": false
540
940
  },
541
941
  {
542
- type: "function",
543
- name: "mintWithFee",
544
- inputs: [
545
- { name: "to", type: "address", internalType: "address" },
546
- { name: "grossAmount", type: "uint256", internalType: "uint256" },
547
- { name: "deadline", type: "uint256", internalType: "uint256" },
548
- { name: "minterSig", type: "bytes", internalType: "bytes" }
942
+ "type": "event",
943
+ "name": "RegistryUpdated",
944
+ "inputs": [
945
+ {
946
+ "name": "registry",
947
+ "type": "address",
948
+ "indexed": true,
949
+ "internalType": "address"
950
+ }
549
951
  ],
550
- outputs: [],
551
- stateMutability: "nonpayable"
552
- },
553
- {
554
- type: "function",
555
- name: "owner",
556
- inputs: [],
557
- outputs: [{ name: "", type: "address", internalType: "address" }],
558
- stateMutability: "view"
559
- },
560
- {
561
- type: "function",
562
- name: "pendingOwner",
563
- inputs: [],
564
- outputs: [{ name: "", type: "address", internalType: "address" }],
565
- stateMutability: "view"
952
+ "anonymous": false
566
953
  },
567
954
  {
568
- type: "function",
569
- name: "pointToken",
570
- inputs: [],
571
- outputs: [{ name: "", type: "address", internalType: "address" }],
572
- stateMutability: "view"
955
+ "type": "event",
956
+ "name": "Upgraded",
957
+ "inputs": [
958
+ {
959
+ "name": "implementation",
960
+ "type": "address",
961
+ "indexed": true,
962
+ "internalType": "address"
963
+ }
964
+ ],
965
+ "anonymous": false
573
966
  },
574
967
  {
575
- type: "function",
576
- name: "proxiableUUID",
577
- inputs: [],
578
- outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
579
- stateMutability: "view"
968
+ "type": "error",
969
+ "name": "AddressEmptyCode",
970
+ "inputs": [
971
+ {
972
+ "name": "target",
973
+ "type": "address",
974
+ "internalType": "address"
975
+ }
976
+ ]
580
977
  },
581
978
  {
582
- type: "function",
583
- name: "renounceOwnership",
584
- inputs: [],
585
- outputs: [],
586
- stateMutability: "nonpayable"
979
+ "type": "error",
980
+ "name": "AlreadyRegistered",
981
+ "inputs": [
982
+ {
983
+ "name": "pointToken",
984
+ "type": "address",
985
+ "internalType": "address"
986
+ }
987
+ ]
587
988
  },
588
989
  {
589
- type: "function",
590
- name: "setRecipients",
591
- inputs: [
990
+ "type": "error",
991
+ "name": "ERC1967InvalidImplementation",
992
+ "inputs": [
592
993
  {
593
- name: "newRecipients",
594
- type: "tuple[]",
595
- internalType: "struct IMintFeeWrapper.Recipient[]",
596
- components: [
597
- { name: "account", type: "address", internalType: "address" },
598
- { name: "basisPoints", type: "uint16", internalType: "uint16" }
599
- ]
994
+ "name": "implementation",
995
+ "type": "address",
996
+ "internalType": "address"
600
997
  }
601
- ],
602
- outputs: [],
603
- stateMutability: "nonpayable"
998
+ ]
604
999
  },
605
1000
  {
606
- type: "function",
607
- name: "totalFeeBps",
608
- inputs: [],
609
- outputs: [{ name: "", type: "uint16", internalType: "uint16" }],
610
- stateMutability: "view"
1001
+ "type": "error",
1002
+ "name": "ERC1967NonPayable",
1003
+ "inputs": []
611
1004
  },
612
1005
  {
613
- type: "function",
614
- name: "transferOwnership",
615
- inputs: [{ name: "newOwner", type: "address", internalType: "address" }],
616
- outputs: [],
617
- stateMutability: "nonpayable"
1006
+ "type": "error",
1007
+ "name": "FailedCall",
1008
+ "inputs": []
618
1009
  },
619
1010
  {
620
- type: "function",
621
- name: "upgradeToAndCall",
622
- inputs: [
623
- { name: "newImplementation", type: "address", internalType: "address" },
624
- { name: "data", type: "bytes", internalType: "bytes" }
625
- ],
626
- outputs: [],
627
- stateMutability: "payable"
1011
+ "type": "error",
1012
+ "name": "InvalidInitialization",
1013
+ "inputs": []
628
1014
  },
629
1015
  {
630
- type: "event",
631
- name: "FeeDistributed",
632
- inputs: [
633
- { name: "recipient", type: "address", indexed: true, internalType: "address" },
634
- { name: "amount", type: "uint256", indexed: false, internalType: "uint256" }
635
- ],
636
- anonymous: false
1016
+ "type": "error",
1017
+ "name": "NotInitializing",
1018
+ "inputs": []
637
1019
  },
638
1020
  {
639
- type: "event",
640
- name: "Initialized",
641
- inputs: [{ name: "version", type: "uint64", indexed: false, internalType: "uint64" }],
642
- anonymous: false
1021
+ "type": "error",
1022
+ "name": "NotIssuer",
1023
+ "inputs": []
643
1024
  },
644
1025
  {
645
- type: "event",
646
- name: "MintWithFee",
647
- inputs: [
648
- { name: "to", type: "address", indexed: true, internalType: "address" },
649
- { name: "grossAmount", type: "uint256", indexed: false, internalType: "uint256" },
650
- { name: "netAmount", type: "uint256", indexed: false, internalType: "uint256" },
651
- { name: "feeAmount", type: "uint256", indexed: false, internalType: "uint256" }
652
- ],
653
- anonymous: false
1026
+ "type": "error",
1027
+ "name": "NotRegistered",
1028
+ "inputs": [
1029
+ {
1030
+ "name": "pointToken",
1031
+ "type": "address",
1032
+ "internalType": "address"
1033
+ }
1034
+ ]
654
1035
  },
655
1036
  {
656
- type: "event",
657
- name: "OwnershipTransferStarted",
658
- inputs: [
659
- { name: "previousOwner", type: "address", indexed: true, internalType: "address" },
660
- { name: "newOwner", type: "address", indexed: true, internalType: "address" }
661
- ],
662
- anonymous: false
1037
+ "type": "error",
1038
+ "name": "NotUser",
1039
+ "inputs": []
663
1040
  },
664
1041
  {
665
- type: "event",
666
- name: "OwnershipTransferred",
667
- inputs: [
668
- { name: "previousOwner", type: "address", indexed: true, internalType: "address" },
669
- { name: "newOwner", type: "address", indexed: true, internalType: "address" }
670
- ],
671
- anonymous: false
1042
+ "type": "error",
1043
+ "name": "OnlyRegistry",
1044
+ "inputs": []
672
1045
  },
673
1046
  {
674
- type: "event",
675
- name: "RecipientsUpdated",
676
- inputs: [
1047
+ "type": "error",
1048
+ "name": "OwnableInvalidOwner",
1049
+ "inputs": [
677
1050
  {
678
- name: "recipients",
679
- type: "tuple[]",
680
- indexed: false,
681
- internalType: "struct IMintFeeWrapper.Recipient[]",
682
- components: [
683
- { name: "account", type: "address", internalType: "address" },
684
- { name: "basisPoints", type: "uint16", internalType: "uint16" }
685
- ]
1051
+ "name": "owner",
1052
+ "type": "address",
1053
+ "internalType": "address"
686
1054
  }
687
- ],
688
- anonymous: false
689
- },
690
- {
691
- type: "event",
692
- name: "Upgraded",
693
- inputs: [
694
- { name: "implementation", type: "address", indexed: true, internalType: "address" }
695
- ],
696
- anonymous: false
1055
+ ]
697
1056
  },
698
1057
  {
699
- type: "error",
700
- name: "AddressEmptyCode",
701
- inputs: [{ name: "target", type: "address", internalType: "address" }]
1058
+ "type": "error",
1059
+ "name": "OwnableUnauthorizedAccount",
1060
+ "inputs": [
1061
+ {
1062
+ "name": "account",
1063
+ "type": "address",
1064
+ "internalType": "address"
1065
+ }
1066
+ ]
702
1067
  },
703
1068
  {
704
- type: "error",
705
- name: "ERC1967InvalidImplementation",
706
- inputs: [{ name: "implementation", type: "address", internalType: "address" }]
1069
+ "type": "error",
1070
+ "name": "TotalFeeTooHigh",
1071
+ "inputs": [
1072
+ {
1073
+ "name": "totalBps",
1074
+ "type": "uint16",
1075
+ "internalType": "uint16"
1076
+ }
1077
+ ]
707
1078
  },
708
- { type: "error", name: "ERC1967NonPayable", inputs: [] },
709
- { type: "error", name: "FailedCall", inputs: [] },
710
- { type: "error", name: "InvalidInitialization", inputs: [] },
711
- { type: "error", name: "NotInitializing", inputs: [] },
712
- { type: "error", name: "NotReceiver", inputs: [] },
713
1079
  {
714
- type: "error",
715
- name: "OwnableInvalidOwner",
716
- inputs: [{ name: "owner", type: "address", internalType: "address" }]
1080
+ "type": "error",
1081
+ "name": "UUPSUnauthorizedCallContext",
1082
+ "inputs": []
717
1083
  },
718
1084
  {
719
- type: "error",
720
- name: "OwnableUnauthorizedAccount",
721
- inputs: [{ name: "account", type: "address", internalType: "address" }]
1085
+ "type": "error",
1086
+ "name": "UUPSUnsupportedProxiableUUID",
1087
+ "inputs": [
1088
+ {
1089
+ "name": "slot",
1090
+ "type": "bytes32",
1091
+ "internalType": "bytes32"
1092
+ }
1093
+ ]
722
1094
  },
723
1095
  {
724
- type: "error",
725
- name: "TotalFeeTooHigh",
726
- inputs: [{ name: "totalBps", type: "uint16", internalType: "uint16" }]
1096
+ "type": "error",
1097
+ "name": "ZeroAddress",
1098
+ "inputs": []
727
1099
  },
728
- { type: "error", name: "UUPSUnauthorizedCallContext", inputs: [] },
729
1100
  {
730
- type: "error",
731
- name: "UUPSUnsupportedProxiableUUID",
732
- inputs: [{ name: "slot", type: "bytes32", internalType: "bytes32" }]
733
- },
734
- { type: "error", name: "ZeroAddress", inputs: [] },
735
- { type: "error", name: "ZeroAmount", inputs: [] }
1101
+ "type": "error",
1102
+ "name": "ZeroAmount",
1103
+ "inputs": []
1104
+ }
736
1105
  ];
737
1106
 
738
1107
  // src/abi/erc20.ts
@@ -922,6 +1291,54 @@ var v4QuoterAbi = [
922
1291
  { name: "amountOut", type: "uint256" },
923
1292
  { name: "gasEstimate", type: "uint256" }
924
1293
  ]
1294
+ },
1295
+ // quoteExactOutputSingle — single-hop exact-output quote
1296
+ // For exact-output, `exactAmount` is the desired OUTPUT amount; the
1297
+ // function returns the INPUT amount required to obtain it.
1298
+ {
1299
+ type: "function",
1300
+ name: "quoteExactOutputSingle",
1301
+ stateMutability: "nonpayable",
1302
+ inputs: [
1303
+ {
1304
+ name: "params",
1305
+ type: "tuple",
1306
+ components: [
1307
+ { name: "poolKey", type: "tuple", components: poolKeyComponents },
1308
+ { name: "zeroForOne", type: "bool" },
1309
+ { name: "exactAmount", type: "uint128" },
1310
+ { name: "hookData", type: "bytes" }
1311
+ ]
1312
+ }
1313
+ ],
1314
+ outputs: [
1315
+ { name: "amountIn", type: "uint256" },
1316
+ { name: "gasEstimate", type: "uint256" }
1317
+ ]
1318
+ },
1319
+ // quoteExactOutput — multi-hop exact-output quote
1320
+ // CAUTION: `exactCurrency` here is the OUTPUT currency (token user wants
1321
+ // to receive), and `path` walks output→input — opposite semantics from
1322
+ // `quoteExactInput`. The field names are dangerously symmetric.
1323
+ {
1324
+ type: "function",
1325
+ name: "quoteExactOutput",
1326
+ stateMutability: "nonpayable",
1327
+ inputs: [
1328
+ {
1329
+ name: "params",
1330
+ type: "tuple",
1331
+ components: [
1332
+ { name: "exactCurrency", type: "address" },
1333
+ { name: "path", type: "tuple[]", components: pathKeyComponents },
1334
+ { name: "exactAmount", type: "uint128" }
1335
+ ]
1336
+ }
1337
+ ],
1338
+ outputs: [
1339
+ { name: "amountIn", type: "uint256" },
1340
+ { name: "gasEstimate", type: "uint256" }
1341
+ ]
925
1342
  }
926
1343
  ];
927
1344
 
@@ -933,4 +1350,4 @@ export {
933
1350
  permit2Abi,
934
1351
  v4QuoterAbi
935
1352
  };
936
- //# sourceMappingURL=chunk-ABNM6LMP.js.map
1353
+ //# sourceMappingURL=chunk-JWZTY5UL.js.map