@medialane/sdk 0.157.0 → 0.159.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 (41) hide show
  1. package/dist/{chunk-SEBUPNF4.js → chunk-A6EQBVUF.js} +6 -19
  2. package/dist/chunk-A6EQBVUF.js.map +1 -0
  3. package/dist/{chunk-OUPVVMLK.cjs → chunk-H7I6TEOA.cjs} +5 -4
  4. package/dist/chunk-H7I6TEOA.cjs.map +1 -0
  5. package/dist/{chunk-3IJQNNFE.cjs → chunk-K5MWWVX5.cjs} +10 -22
  6. package/dist/chunk-K5MWWVX5.cjs.map +1 -0
  7. package/dist/{chunk-3PZUSEAW.js → chunk-PBJLHXDB.js} +5 -4
  8. package/dist/chunk-PBJLHXDB.js.map +1 -0
  9. package/dist/{errors-D037rFnb.d.ts → errors-6Aarmz0V.d.cts} +3 -15
  10. package/dist/{errors-D_k2He89.d.cts → errors-BJl2TojD.d.ts} +3 -15
  11. package/dist/evm/index.cjs +3 -3
  12. package/dist/evm/index.d.cts +1 -1
  13. package/dist/evm/index.d.ts +1 -1
  14. package/dist/evm/index.js +1 -1
  15. package/dist/index.cjs +76 -70
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.cts +13 -9
  18. package/dist/index.d.ts +13 -9
  19. package/dist/index.js +4 -2
  20. package/dist/index.js.map +1 -1
  21. package/dist/solana/index.cjs +2 -2
  22. package/dist/solana/index.d.cts +1 -1
  23. package/dist/solana/index.d.ts +1 -1
  24. package/dist/solana/index.js +1 -1
  25. package/dist/starknet/index.cjs +940 -219
  26. package/dist/starknet/index.cjs.map +1 -1
  27. package/dist/starknet/index.d.cts +617 -199
  28. package/dist/starknet/index.d.ts +617 -199
  29. package/dist/starknet/index.js +866 -150
  30. package/dist/starknet/index.js.map +1 -1
  31. package/dist/stellar/index.cjs +2 -2
  32. package/dist/stellar/index.d.cts +1 -1
  33. package/dist/stellar/index.d.ts +1 -1
  34. package/dist/stellar/index.js +1 -1
  35. package/dist/{types-CO6YYHVA.d.cts → types-PPshMWr7.d.cts} +1 -0
  36. package/dist/{types-CO6YYHVA.d.ts → types-PPshMWr7.d.ts} +1 -0
  37. package/package.json +1 -1
  38. package/dist/chunk-3IJQNNFE.cjs.map +0 -1
  39. package/dist/chunk-3PZUSEAW.js.map +0 -1
  40. package/dist/chunk-OUPVVMLK.cjs.map +0 -1
  41. package/dist/chunk-SEBUPNF4.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunk3IJQNNFE_cjs = require('../chunk-3IJQNNFE.cjs');
4
- var chunkOUPVVMLK_cjs = require('../chunk-OUPVVMLK.cjs');
3
+ var chunkK5MWWVX5_cjs = require('../chunk-K5MWWVX5.cjs');
4
+ var chunkH7I6TEOA_cjs = require('../chunk-H7I6TEOA.cjs');
5
5
  var starknet = require('starknet');
6
6
  var hkdf_js = require('@noble/hashes/hkdf.js');
7
7
  var sha2_js = require('@noble/hashes/sha2.js');
@@ -33,7 +33,7 @@ function getChainId(config) {
33
33
  return starknet.constants.StarknetChainId.SN_MAIN;
34
34
  }
35
35
  function resolveToken(currency) {
36
- const token = chunk3IJQNNFE_cjs.SUPPORTED_TOKENS.find(
36
+ const token = chunkK5MWWVX5_cjs.SUPPORTED_TOKENS.find(
37
37
  (t) => t.symbol === currency.toUpperCase() || t.address.toLowerCase() === currency.toLowerCase()
38
38
  );
39
39
  if (!token) throw new MedialaneError(`Unsupported currency: ${currency}`, "INVALID_PARAMS");
@@ -44,7 +44,7 @@ function getProvider(config) {
44
44
  let p = _providerCache.get(config);
45
45
  if (!p) {
46
46
  const urls = [config.rpcUrl];
47
- p = new starknet.RpcProvider({ nodeUrl: urls[0], baseFetch: chunk3IJQNNFE_cjs.createFailoverFetch(urls) });
47
+ p = new starknet.RpcProvider({ nodeUrl: urls[0], baseFetch: chunkK5MWWVX5_cjs.createFailoverFetch(urls) });
48
48
  _providerCache.set(config, p);
49
49
  }
50
50
  return p;
@@ -525,146 +525,833 @@ var IPMarketplaceABI = [
525
525
  // src/starknet/abis/popCollection.ts
526
526
  var POPCollectionABI = [
527
527
  {
528
- type: "struct",
529
- name: "core::byte_array::ByteArray",
530
- members: [
531
- { name: "data", type: "core::array::Array::<core::felt252>" },
532
- { name: "pending_word", type: "core::felt252" },
533
- { name: "pending_word_len", type: "core::integer::u32" }
528
+ "type": "impl",
529
+ "name": "ERC721Impl",
530
+ "interface_name": "openzeppelin_interfaces::token::erc721::IERC721"
531
+ },
532
+ {
533
+ "type": "struct",
534
+ "name": "core::integer::u256",
535
+ "members": [
536
+ {
537
+ "name": "low",
538
+ "type": "core::integer::u128"
539
+ },
540
+ {
541
+ "name": "high",
542
+ "type": "core::integer::u128"
543
+ }
544
+ ]
545
+ },
546
+ {
547
+ "type": "struct",
548
+ "name": "core::array::Span::<core::felt252>",
549
+ "members": [
550
+ {
551
+ "name": "snapshot",
552
+ "type": "@core::array::Array::<core::felt252>"
553
+ }
554
+ ]
555
+ },
556
+ {
557
+ "type": "enum",
558
+ "name": "core::bool",
559
+ "variants": [
560
+ {
561
+ "name": "False",
562
+ "type": "()"
563
+ },
564
+ {
565
+ "name": "True",
566
+ "type": "()"
567
+ }
568
+ ]
569
+ },
570
+ {
571
+ "type": "interface",
572
+ "name": "openzeppelin_interfaces::token::erc721::IERC721",
573
+ "items": [
574
+ {
575
+ "type": "function",
576
+ "name": "balance_of",
577
+ "inputs": [
578
+ {
579
+ "name": "account",
580
+ "type": "core::starknet::contract_address::ContractAddress"
581
+ }
582
+ ],
583
+ "outputs": [
584
+ {
585
+ "type": "core::integer::u256"
586
+ }
587
+ ],
588
+ "state_mutability": "view"
589
+ },
590
+ {
591
+ "type": "function",
592
+ "name": "owner_of",
593
+ "inputs": [
594
+ {
595
+ "name": "token_id",
596
+ "type": "core::integer::u256"
597
+ }
598
+ ],
599
+ "outputs": [
600
+ {
601
+ "type": "core::starknet::contract_address::ContractAddress"
602
+ }
603
+ ],
604
+ "state_mutability": "view"
605
+ },
606
+ {
607
+ "type": "function",
608
+ "name": "safe_transfer_from",
609
+ "inputs": [
610
+ {
611
+ "name": "from",
612
+ "type": "core::starknet::contract_address::ContractAddress"
613
+ },
614
+ {
615
+ "name": "to",
616
+ "type": "core::starknet::contract_address::ContractAddress"
617
+ },
618
+ {
619
+ "name": "token_id",
620
+ "type": "core::integer::u256"
621
+ },
622
+ {
623
+ "name": "data",
624
+ "type": "core::array::Span::<core::felt252>"
625
+ }
626
+ ],
627
+ "outputs": [],
628
+ "state_mutability": "external"
629
+ },
630
+ {
631
+ "type": "function",
632
+ "name": "transfer_from",
633
+ "inputs": [
634
+ {
635
+ "name": "from",
636
+ "type": "core::starknet::contract_address::ContractAddress"
637
+ },
638
+ {
639
+ "name": "to",
640
+ "type": "core::starknet::contract_address::ContractAddress"
641
+ },
642
+ {
643
+ "name": "token_id",
644
+ "type": "core::integer::u256"
645
+ }
646
+ ],
647
+ "outputs": [],
648
+ "state_mutability": "external"
649
+ },
650
+ {
651
+ "type": "function",
652
+ "name": "approve",
653
+ "inputs": [
654
+ {
655
+ "name": "to",
656
+ "type": "core::starknet::contract_address::ContractAddress"
657
+ },
658
+ {
659
+ "name": "token_id",
660
+ "type": "core::integer::u256"
661
+ }
662
+ ],
663
+ "outputs": [],
664
+ "state_mutability": "external"
665
+ },
666
+ {
667
+ "type": "function",
668
+ "name": "set_approval_for_all",
669
+ "inputs": [
670
+ {
671
+ "name": "operator",
672
+ "type": "core::starknet::contract_address::ContractAddress"
673
+ },
674
+ {
675
+ "name": "approved",
676
+ "type": "core::bool"
677
+ }
678
+ ],
679
+ "outputs": [],
680
+ "state_mutability": "external"
681
+ },
682
+ {
683
+ "type": "function",
684
+ "name": "get_approved",
685
+ "inputs": [
686
+ {
687
+ "name": "token_id",
688
+ "type": "core::integer::u256"
689
+ }
690
+ ],
691
+ "outputs": [
692
+ {
693
+ "type": "core::starknet::contract_address::ContractAddress"
694
+ }
695
+ ],
696
+ "state_mutability": "view"
697
+ },
698
+ {
699
+ "type": "function",
700
+ "name": "is_approved_for_all",
701
+ "inputs": [
702
+ {
703
+ "name": "owner",
704
+ "type": "core::starknet::contract_address::ContractAddress"
705
+ },
706
+ {
707
+ "name": "operator",
708
+ "type": "core::starknet::contract_address::ContractAddress"
709
+ }
710
+ ],
711
+ "outputs": [
712
+ {
713
+ "type": "core::bool"
714
+ }
715
+ ],
716
+ "state_mutability": "view"
717
+ }
718
+ ]
719
+ },
720
+ {
721
+ "type": "impl",
722
+ "name": "ERC721MetadataImpl",
723
+ "interface_name": "openzeppelin_interfaces::token::erc721::IERC721Metadata"
724
+ },
725
+ {
726
+ "type": "struct",
727
+ "name": "core::byte_array::ByteArray",
728
+ "members": [
729
+ {
730
+ "name": "data",
731
+ "type": "core::array::Array::<core::bytes_31::bytes31>"
732
+ },
733
+ {
734
+ "name": "pending_word",
735
+ "type": "core::felt252"
736
+ },
737
+ {
738
+ "name": "pending_word_len",
739
+ "type": "core::internal::bounded_int::BoundedInt::<0, 30>"
740
+ }
741
+ ]
742
+ },
743
+ {
744
+ "type": "interface",
745
+ "name": "openzeppelin_interfaces::token::erc721::IERC721Metadata",
746
+ "items": [
747
+ {
748
+ "type": "function",
749
+ "name": "name",
750
+ "inputs": [],
751
+ "outputs": [
752
+ {
753
+ "type": "core::byte_array::ByteArray"
754
+ }
755
+ ],
756
+ "state_mutability": "view"
757
+ },
758
+ {
759
+ "type": "function",
760
+ "name": "symbol",
761
+ "inputs": [],
762
+ "outputs": [
763
+ {
764
+ "type": "core::byte_array::ByteArray"
765
+ }
766
+ ],
767
+ "state_mutability": "view"
768
+ },
769
+ {
770
+ "type": "function",
771
+ "name": "token_uri",
772
+ "inputs": [
773
+ {
774
+ "name": "token_id",
775
+ "type": "core::integer::u256"
776
+ }
777
+ ],
778
+ "outputs": [
779
+ {
780
+ "type": "core::byte_array::ByteArray"
781
+ }
782
+ ],
783
+ "state_mutability": "view"
784
+ }
785
+ ]
786
+ },
787
+ {
788
+ "type": "impl",
789
+ "name": "ERC5192Impl",
790
+ "interface_name": "pop_protocol::interfaces::IERC5192"
791
+ },
792
+ {
793
+ "type": "interface",
794
+ "name": "pop_protocol::interfaces::IERC5192",
795
+ "items": [
796
+ {
797
+ "type": "function",
798
+ "name": "locked",
799
+ "inputs": [
800
+ {
801
+ "name": "token_id",
802
+ "type": "core::integer::u256"
803
+ }
804
+ ],
805
+ "outputs": [
806
+ {
807
+ "type": "core::bool"
808
+ }
809
+ ],
810
+ "state_mutability": "view"
811
+ }
812
+ ]
813
+ },
814
+ {
815
+ "type": "impl",
816
+ "name": "POPCollectionImpl",
817
+ "interface_name": "pop_protocol::interfaces::IPOPCollection"
818
+ },
819
+ {
820
+ "type": "interface",
821
+ "name": "pop_protocol::interfaces::IPOPCollection",
822
+ "items": [
823
+ {
824
+ "type": "function",
825
+ "name": "set_allowlist_root",
826
+ "inputs": [
827
+ {
828
+ "name": "root",
829
+ "type": "core::felt252"
830
+ }
831
+ ],
832
+ "outputs": [],
833
+ "state_mutability": "external"
834
+ },
835
+ {
836
+ "type": "function",
837
+ "name": "claim",
838
+ "inputs": [
839
+ {
840
+ "name": "proof",
841
+ "type": "core::array::Span::<core::felt252>"
842
+ }
843
+ ],
844
+ "outputs": [],
845
+ "state_mutability": "external"
846
+ },
847
+ {
848
+ "type": "function",
849
+ "name": "issue",
850
+ "inputs": [
851
+ {
852
+ "name": "recipient",
853
+ "type": "core::starknet::contract_address::ContractAddress"
854
+ },
855
+ {
856
+ "name": "token_uri",
857
+ "type": "core::byte_array::ByteArray"
858
+ }
859
+ ],
860
+ "outputs": [],
861
+ "state_mutability": "external"
862
+ },
863
+ {
864
+ "type": "function",
865
+ "name": "burn",
866
+ "inputs": [
867
+ {
868
+ "name": "token_id",
869
+ "type": "core::integer::u256"
870
+ }
871
+ ],
872
+ "outputs": [],
873
+ "state_mutability": "external"
874
+ },
875
+ {
876
+ "type": "function",
877
+ "name": "organizer",
878
+ "inputs": [],
879
+ "outputs": [
880
+ {
881
+ "type": "core::starknet::contract_address::ContractAddress"
882
+ }
883
+ ],
884
+ "state_mutability": "view"
885
+ },
886
+ {
887
+ "type": "function",
888
+ "name": "allowlist_root",
889
+ "inputs": [],
890
+ "outputs": [
891
+ {
892
+ "type": "core::felt252"
893
+ }
894
+ ],
895
+ "state_mutability": "view"
896
+ },
897
+ {
898
+ "type": "function",
899
+ "name": "claim_end_time",
900
+ "inputs": [],
901
+ "outputs": [
902
+ {
903
+ "type": "core::integer::u64"
904
+ }
905
+ ],
906
+ "state_mutability": "view"
907
+ },
908
+ {
909
+ "type": "function",
910
+ "name": "has_claimed",
911
+ "inputs": [
912
+ {
913
+ "name": "address",
914
+ "type": "core::starknet::contract_address::ContractAddress"
915
+ }
916
+ ],
917
+ "outputs": [
918
+ {
919
+ "type": "core::bool"
920
+ }
921
+ ],
922
+ "state_mutability": "view"
923
+ },
924
+ {
925
+ "type": "function",
926
+ "name": "total_issued",
927
+ "inputs": [],
928
+ "outputs": [
929
+ {
930
+ "type": "core::integer::u256"
931
+ }
932
+ ],
933
+ "state_mutability": "view"
934
+ },
935
+ {
936
+ "type": "function",
937
+ "name": "version",
938
+ "inputs": [],
939
+ "outputs": [
940
+ {
941
+ "type": "core::felt252"
942
+ }
943
+ ],
944
+ "state_mutability": "view"
945
+ }
534
946
  ]
535
947
  },
536
948
  {
537
- type: "function",
538
- name: "claim",
539
- inputs: [],
540
- outputs: [],
541
- state_mutability: "external"
949
+ "type": "impl",
950
+ "name": "SRC5Impl",
951
+ "interface_name": "openzeppelin_interfaces::introspection::ISRC5"
542
952
  },
543
953
  {
544
- type: "function",
545
- name: "admin_mint",
546
- inputs: [
547
- { name: "recipient", type: "core::starknet::contract_address::ContractAddress" },
548
- { name: "custom_uri", type: "core::byte_array::ByteArray" }
549
- ],
550
- outputs: [],
551
- state_mutability: "external"
954
+ "type": "interface",
955
+ "name": "openzeppelin_interfaces::introspection::ISRC5",
956
+ "items": [
957
+ {
958
+ "type": "function",
959
+ "name": "supports_interface",
960
+ "inputs": [
961
+ {
962
+ "name": "interface_id",
963
+ "type": "core::felt252"
964
+ }
965
+ ],
966
+ "outputs": [
967
+ {
968
+ "type": "core::bool"
969
+ }
970
+ ],
971
+ "state_mutability": "view"
972
+ }
973
+ ]
552
974
  },
553
975
  {
554
- type: "function",
555
- name: "add_to_allowlist",
556
- inputs: [{ name: "address", type: "core::starknet::contract_address::ContractAddress" }],
557
- outputs: [],
558
- state_mutability: "external"
976
+ "type": "constructor",
977
+ "name": "constructor",
978
+ "inputs": [
979
+ {
980
+ "name": "name",
981
+ "type": "core::byte_array::ByteArray"
982
+ },
983
+ {
984
+ "name": "symbol",
985
+ "type": "core::byte_array::ByteArray"
986
+ },
987
+ {
988
+ "name": "base_uri",
989
+ "type": "core::byte_array::ByteArray"
990
+ },
991
+ {
992
+ "name": "organizer",
993
+ "type": "core::starknet::contract_address::ContractAddress"
994
+ },
995
+ {
996
+ "name": "claim_end_time",
997
+ "type": "core::integer::u64"
998
+ }
999
+ ]
559
1000
  },
560
1001
  {
561
- type: "function",
562
- name: "batch_add_to_allowlist",
563
- inputs: [{ name: "addresses", type: "core::array::Array::<core::starknet::contract_address::ContractAddress>" }],
564
- outputs: [],
565
- state_mutability: "external"
1002
+ "type": "event",
1003
+ "name": "openzeppelin_token::erc721::erc721::ERC721Component::Transfer",
1004
+ "kind": "struct",
1005
+ "members": [
1006
+ {
1007
+ "name": "from",
1008
+ "type": "core::starknet::contract_address::ContractAddress",
1009
+ "kind": "key"
1010
+ },
1011
+ {
1012
+ "name": "to",
1013
+ "type": "core::starknet::contract_address::ContractAddress",
1014
+ "kind": "key"
1015
+ },
1016
+ {
1017
+ "name": "token_id",
1018
+ "type": "core::integer::u256",
1019
+ "kind": "key"
1020
+ }
1021
+ ]
566
1022
  },
567
1023
  {
568
- type: "function",
569
- name: "remove_from_allowlist",
570
- inputs: [{ name: "address", type: "core::starknet::contract_address::ContractAddress" }],
571
- outputs: [],
572
- state_mutability: "external"
1024
+ "type": "event",
1025
+ "name": "openzeppelin_token::erc721::erc721::ERC721Component::Approval",
1026
+ "kind": "struct",
1027
+ "members": [
1028
+ {
1029
+ "name": "owner",
1030
+ "type": "core::starknet::contract_address::ContractAddress",
1031
+ "kind": "key"
1032
+ },
1033
+ {
1034
+ "name": "approved",
1035
+ "type": "core::starknet::contract_address::ContractAddress",
1036
+ "kind": "key"
1037
+ },
1038
+ {
1039
+ "name": "token_id",
1040
+ "type": "core::integer::u256",
1041
+ "kind": "key"
1042
+ }
1043
+ ]
573
1044
  },
574
1045
  {
575
- type: "function",
576
- name: "set_token_uri",
577
- inputs: [
578
- { name: "token_id", type: "core::integer::u256" },
579
- { name: "uri", type: "core::byte_array::ByteArray" }
580
- ],
581
- outputs: [],
582
- state_mutability: "external"
1046
+ "type": "event",
1047
+ "name": "openzeppelin_token::erc721::erc721::ERC721Component::ApprovalForAll",
1048
+ "kind": "struct",
1049
+ "members": [
1050
+ {
1051
+ "name": "owner",
1052
+ "type": "core::starknet::contract_address::ContractAddress",
1053
+ "kind": "key"
1054
+ },
1055
+ {
1056
+ "name": "operator",
1057
+ "type": "core::starknet::contract_address::ContractAddress",
1058
+ "kind": "key"
1059
+ },
1060
+ {
1061
+ "name": "approved",
1062
+ "type": "core::bool",
1063
+ "kind": "data"
1064
+ }
1065
+ ]
583
1066
  },
584
1067
  {
585
- type: "function",
586
- name: "set_paused",
587
- inputs: [{ name: "paused", type: "core::bool" }],
588
- outputs: [],
589
- state_mutability: "external"
1068
+ "type": "event",
1069
+ "name": "openzeppelin_token::erc721::erc721::ERC721Component::Event",
1070
+ "kind": "enum",
1071
+ "variants": [
1072
+ {
1073
+ "name": "Transfer",
1074
+ "type": "openzeppelin_token::erc721::erc721::ERC721Component::Transfer",
1075
+ "kind": "nested"
1076
+ },
1077
+ {
1078
+ "name": "Approval",
1079
+ "type": "openzeppelin_token::erc721::erc721::ERC721Component::Approval",
1080
+ "kind": "nested"
1081
+ },
1082
+ {
1083
+ "name": "ApprovalForAll",
1084
+ "type": "openzeppelin_token::erc721::erc721::ERC721Component::ApprovalForAll",
1085
+ "kind": "nested"
1086
+ }
1087
+ ]
590
1088
  },
591
1089
  {
592
- type: "function",
593
- name: "is_eligible",
594
- inputs: [{ name: "address", type: "core::starknet::contract_address::ContractAddress" }],
595
- outputs: [{ type: "core::bool" }],
596
- state_mutability: "view"
1090
+ "type": "event",
1091
+ "name": "openzeppelin_introspection::src5::SRC5Component::Event",
1092
+ "kind": "enum",
1093
+ "variants": []
597
1094
  },
598
1095
  {
599
- type: "function",
600
- name: "has_claimed",
601
- inputs: [{ name: "address", type: "core::starknet::contract_address::ContractAddress" }],
602
- outputs: [{ type: "core::bool" }],
603
- state_mutability: "view"
1096
+ "type": "event",
1097
+ "name": "pop_protocol::events::AllowlistRootSet",
1098
+ "kind": "struct",
1099
+ "members": [
1100
+ {
1101
+ "name": "root",
1102
+ "type": "core::felt252",
1103
+ "kind": "data"
1104
+ }
1105
+ ]
604
1106
  },
605
1107
  {
606
- type: "function",
607
- name: "total_minted",
608
- inputs: [],
609
- outputs: [{ type: "core::integer::u256" }],
610
- state_mutability: "view"
1108
+ "type": "event",
1109
+ "name": "pop_protocol::events::TokenURISet",
1110
+ "kind": "struct",
1111
+ "members": [
1112
+ {
1113
+ "name": "token_id",
1114
+ "type": "core::integer::u256",
1115
+ "kind": "key"
1116
+ },
1117
+ {
1118
+ "name": "uri",
1119
+ "type": "core::byte_array::ByteArray",
1120
+ "kind": "data"
1121
+ }
1122
+ ]
1123
+ },
1124
+ {
1125
+ "type": "event",
1126
+ "name": "pop_protocol::events::Locked",
1127
+ "kind": "struct",
1128
+ "members": [
1129
+ {
1130
+ "name": "token_id",
1131
+ "type": "core::integer::u256",
1132
+ "kind": "data"
1133
+ }
1134
+ ]
1135
+ },
1136
+ {
1137
+ "type": "event",
1138
+ "name": "pop_protocol::pop_collection::POPCollection::Event",
1139
+ "kind": "enum",
1140
+ "variants": [
1141
+ {
1142
+ "name": "ERC721Event",
1143
+ "type": "openzeppelin_token::erc721::erc721::ERC721Component::Event",
1144
+ "kind": "flat"
1145
+ },
1146
+ {
1147
+ "name": "SRC5Event",
1148
+ "type": "openzeppelin_introspection::src5::SRC5Component::Event",
1149
+ "kind": "flat"
1150
+ },
1151
+ {
1152
+ "name": "AllowlistRootSet",
1153
+ "type": "pop_protocol::events::AllowlistRootSet",
1154
+ "kind": "nested"
1155
+ },
1156
+ {
1157
+ "name": "TokenURISet",
1158
+ "type": "pop_protocol::events::TokenURISet",
1159
+ "kind": "nested"
1160
+ },
1161
+ {
1162
+ "name": "Locked",
1163
+ "type": "pop_protocol::events::Locked",
1164
+ "kind": "nested"
1165
+ }
1166
+ ]
611
1167
  }
612
1168
  ];
613
1169
 
614
1170
  // src/starknet/abis/popFactory.ts
615
1171
  var POPFactoryABI = [
616
1172
  {
617
- type: "struct",
618
- name: "core::byte_array::ByteArray",
619
- members: [
620
- { name: "data", type: "core::array::Array::<core::felt252>" },
621
- { name: "pending_word", type: "core::felt252" },
622
- { name: "pending_word_len", type: "core::integer::u32" }
1173
+ "type": "impl",
1174
+ "name": "POPFactoryImpl",
1175
+ "interface_name": "pop_protocol::interfaces::IPOPFactory"
1176
+ },
1177
+ {
1178
+ "type": "struct",
1179
+ "name": "core::byte_array::ByteArray",
1180
+ "members": [
1181
+ {
1182
+ "name": "data",
1183
+ "type": "core::array::Array::<core::bytes_31::bytes31>"
1184
+ },
1185
+ {
1186
+ "name": "pending_word",
1187
+ "type": "core::felt252"
1188
+ },
1189
+ {
1190
+ "name": "pending_word_len",
1191
+ "type": "core::internal::bounded_int::BoundedInt::<0, 30>"
1192
+ }
623
1193
  ]
624
1194
  },
625
1195
  {
626
- type: "enum",
627
- name: "pop_protocol::types::EventType",
628
- variants: [
629
- { name: "Conference", type: "()" },
630
- { name: "Bootcamp", type: "()" },
631
- { name: "Workshop", type: "()" },
632
- { name: "Hackathon", type: "()" },
633
- { name: "Meetup", type: "()" },
634
- { name: "Course", type: "()" },
635
- { name: "Other", type: "()" }
1196
+ "type": "struct",
1197
+ "name": "core::integer::u256",
1198
+ "members": [
1199
+ {
1200
+ "name": "low",
1201
+ "type": "core::integer::u128"
1202
+ },
1203
+ {
1204
+ "name": "high",
1205
+ "type": "core::integer::u128"
1206
+ }
636
1207
  ]
637
1208
  },
638
1209
  {
639
- type: "function",
640
- name: "create_collection",
641
- inputs: [
642
- { name: "name", type: "core::byte_array::ByteArray" },
643
- { name: "symbol", type: "core::byte_array::ByteArray" },
644
- { name: "base_uri", type: "core::byte_array::ByteArray" },
645
- { name: "claim_end_time", type: "core::integer::u64" },
646
- { name: "event_type", type: "pop_protocol::types::EventType" }
647
- ],
648
- outputs: [{ type: "core::starknet::contract_address::ContractAddress" }],
649
- state_mutability: "external"
1210
+ "type": "interface",
1211
+ "name": "pop_protocol::interfaces::IPOPFactory",
1212
+ "items": [
1213
+ {
1214
+ "type": "function",
1215
+ "name": "create_collection",
1216
+ "inputs": [
1217
+ {
1218
+ "name": "name",
1219
+ "type": "core::byte_array::ByteArray"
1220
+ },
1221
+ {
1222
+ "name": "symbol",
1223
+ "type": "core::byte_array::ByteArray"
1224
+ },
1225
+ {
1226
+ "name": "base_uri",
1227
+ "type": "core::byte_array::ByteArray"
1228
+ },
1229
+ {
1230
+ "name": "claim_end_time",
1231
+ "type": "core::integer::u64"
1232
+ }
1233
+ ],
1234
+ "outputs": [
1235
+ {
1236
+ "type": "core::starknet::contract_address::ContractAddress"
1237
+ }
1238
+ ],
1239
+ "state_mutability": "external"
1240
+ },
1241
+ {
1242
+ "type": "function",
1243
+ "name": "get_collection_address",
1244
+ "inputs": [
1245
+ {
1246
+ "name": "collection_id",
1247
+ "type": "core::integer::u256"
1248
+ }
1249
+ ],
1250
+ "outputs": [
1251
+ {
1252
+ "type": "core::starknet::contract_address::ContractAddress"
1253
+ }
1254
+ ],
1255
+ "state_mutability": "view"
1256
+ },
1257
+ {
1258
+ "type": "function",
1259
+ "name": "get_last_collection_id",
1260
+ "inputs": [],
1261
+ "outputs": [
1262
+ {
1263
+ "type": "core::integer::u256"
1264
+ }
1265
+ ],
1266
+ "state_mutability": "view"
1267
+ },
1268
+ {
1269
+ "type": "function",
1270
+ "name": "get_collection_class_hash",
1271
+ "inputs": [],
1272
+ "outputs": [
1273
+ {
1274
+ "type": "core::starknet::class_hash::ClassHash"
1275
+ }
1276
+ ],
1277
+ "state_mutability": "view"
1278
+ },
1279
+ {
1280
+ "type": "function",
1281
+ "name": "version",
1282
+ "inputs": [],
1283
+ "outputs": [
1284
+ {
1285
+ "type": "core::felt252"
1286
+ }
1287
+ ],
1288
+ "state_mutability": "view"
1289
+ }
1290
+ ]
650
1291
  },
651
1292
  {
652
- type: "function",
653
- name: "register_provider",
654
- inputs: [
655
- { name: "provider", type: "core::starknet::contract_address::ContractAddress" },
656
- { name: "name", type: "core::byte_array::ByteArray" },
657
- { name: "website_url", type: "core::byte_array::ByteArray" }
658
- ],
659
- outputs: [],
660
- state_mutability: "external"
1293
+ "type": "constructor",
1294
+ "name": "constructor",
1295
+ "inputs": [
1296
+ {
1297
+ "name": "collection_class_hash",
1298
+ "type": "core::starknet::class_hash::ClassHash"
1299
+ }
1300
+ ]
661
1301
  },
662
1302
  {
663
- type: "function",
664
- name: "set_pop_collection_class_hash",
665
- inputs: [{ name: "new_class_hash", type: "core::starknet::class_hash::ClassHash" }],
666
- outputs: [],
667
- state_mutability: "external"
1303
+ "type": "event",
1304
+ "name": "pop_protocol::events::CollectionCreated",
1305
+ "kind": "struct",
1306
+ "members": [
1307
+ {
1308
+ "name": "collection_id",
1309
+ "type": "core::integer::u256",
1310
+ "kind": "key"
1311
+ },
1312
+ {
1313
+ "name": "organizer",
1314
+ "type": "core::starknet::contract_address::ContractAddress",
1315
+ "kind": "key"
1316
+ },
1317
+ {
1318
+ "name": "collection_address",
1319
+ "type": "core::starknet::contract_address::ContractAddress",
1320
+ "kind": "data"
1321
+ },
1322
+ {
1323
+ "name": "name",
1324
+ "type": "core::byte_array::ByteArray",
1325
+ "kind": "data"
1326
+ },
1327
+ {
1328
+ "name": "symbol",
1329
+ "type": "core::byte_array::ByteArray",
1330
+ "kind": "data"
1331
+ },
1332
+ {
1333
+ "name": "base_uri",
1334
+ "type": "core::byte_array::ByteArray",
1335
+ "kind": "data"
1336
+ },
1337
+ {
1338
+ "name": "claim_end_time",
1339
+ "type": "core::integer::u64",
1340
+ "kind": "data"
1341
+ }
1342
+ ]
1343
+ },
1344
+ {
1345
+ "type": "event",
1346
+ "name": "pop_protocol::pop_factory::POPFactory::Event",
1347
+ "kind": "enum",
1348
+ "variants": [
1349
+ {
1350
+ "name": "CollectionCreated",
1351
+ "type": "pop_protocol::events::CollectionCreated",
1352
+ "kind": "nested"
1353
+ }
1354
+ ]
668
1355
  }
669
1356
  ];
670
1357
 
@@ -9056,70 +9743,47 @@ var IPGenesisABI = [
9056
9743
  // src/starknet/services/pop.ts
9057
9744
  var PopService = class {
9058
9745
  constructor(config) {
9059
- this.factoryAddress = chunkOUPVVMLK_cjs.getStarknetCoordinates(config.chain).popFactory;
9746
+ this.factoryAddress = chunkH7I6TEOA_cjs.getStarknetCoordinates(config.chain).popFactory;
9060
9747
  }
9061
9748
  _collection(address, account) {
9062
- return newContract(POPCollectionABI, chunk3IJQNNFE_cjs.normalizeAddress("STARKNET", address), account);
9749
+ return newContract(POPCollectionABI, chunkK5MWWVX5_cjs.normalizeAddress("STARKNET", address), account);
9063
9750
  }
9064
- async claim(account, collectionAddress) {
9065
- const call = this._collection(collectionAddress, account).populate("claim", []);
9066
- const res = await account.execute([call]);
9067
- return { txHash: res.transaction_hash };
9068
- }
9069
- async adminMint(account, params) {
9070
- const call = this._collection(params.collection, account).populate("admin_mint", [
9071
- params.recipient,
9072
- params.customUri ?? ""
9073
- ]);
9074
- const res = await account.execute([call]);
9075
- return { txHash: res.transaction_hash };
9076
- }
9077
- async addToAllowlist(account, params) {
9078
- const call = this._collection(params.collection, account).populate("add_to_allowlist", [params.address]);
9751
+ async createCollection(account, params) {
9752
+ const factory = newContract(POPFactoryABI, this.factoryAddress, account);
9753
+ const call = factory.populate("create_collection", [params.name, params.symbol, params.baseUri, params.claimEndTime]);
9079
9754
  const res = await account.execute([call]);
9080
9755
  return { txHash: res.transaction_hash };
9081
9756
  }
9082
- async batchAddToAllowlist(account, params) {
9083
- const collection = this._collection(params.collection, account);
9084
- const CHUNK = 200;
9085
- const calls = [];
9086
- for (let i = 0; i < params.addresses.length; i += CHUNK) {
9087
- calls.push(collection.populate("batch_add_to_allowlist", [params.addresses.slice(i, i + CHUNK)]));
9088
- }
9089
- const res = await account.execute(calls);
9090
- return { txHash: res.transaction_hash };
9091
- }
9092
- async removeFromAllowlist(account, params) {
9093
- const call = this._collection(params.collection, account).populate("remove_from_allowlist", [params.address]);
9757
+ async setAllowlistRoot(account, params) {
9758
+ const call = this._collection(params.collection, account).populate("set_allowlist_root", [params.root]);
9094
9759
  const res = await account.execute([call]);
9095
9760
  return { txHash: res.transaction_hash };
9096
9761
  }
9097
- async setTokenUri(account, params) {
9098
- const call = this._collection(params.collection, account).populate("set_token_uri", [
9099
- BigInt(params.tokenId),
9100
- params.uri
9101
- ]);
9762
+ async claim(account, params) {
9763
+ const call = this._collection(params.collection, account).populate("claim", [params.proof]);
9102
9764
  const res = await account.execute([call]);
9103
9765
  return { txHash: res.transaction_hash };
9104
9766
  }
9105
- async setPaused(account, params) {
9106
- const call = this._collection(params.collection, account).populate("set_paused", [params.paused]);
9767
+ async issue(account, params) {
9768
+ const call = this._collection(params.collection, account).populate("issue", [params.recipient, params.tokenUri ?? ""]);
9107
9769
  const res = await account.execute([call]);
9108
9770
  return { txHash: res.transaction_hash };
9109
9771
  }
9110
- async createCollection(account, params) {
9111
- const factory = newContract(POPFactoryABI, this.factoryAddress, account);
9112
- const call = factory.populate("create_collection", [
9113
- params.name,
9114
- params.symbol,
9115
- params.baseUri,
9116
- params.claimEndTime,
9117
- { [params.eventType]: {} }
9118
- ]);
9772
+ /** Destroys the caller's own credential; the address cannot receive another from this collection. */
9773
+ async burn(account, params) {
9774
+ const call = this._collection(params.collection, account).populate("burn", [BigInt(params.tokenId)]);
9119
9775
  const res = await account.execute([call]);
9120
9776
  return { txHash: res.transaction_hash };
9121
9777
  }
9122
9778
  };
9779
+ async function popHasClaimed(provider, collection, address) {
9780
+ const res = await provider.callContract({
9781
+ contractAddress: chunkK5MWWVX5_cjs.normalizeAddress("STARKNET", collection),
9782
+ entrypoint: "has_claimed",
9783
+ calldata: [chunkK5MWWVX5_cjs.normalizeAddress("STARKNET", address)]
9784
+ });
9785
+ return BigInt(res[0] ?? "0x0") !== 0n;
9786
+ }
9123
9787
  function buildFeeCall(p, cfg) {
9124
9788
  if (!cfg.enabled || !cfg.fundAddress) return null;
9125
9789
  const bps = p.surface === "marketplace" ? cfg.marketplaceBps : p.surface === "launchpad" ? cfg.launchpadBps : cfg.sponsorshipBps;
@@ -9146,11 +9810,11 @@ function toContractConditions(c) {
9146
9810
  }
9147
9811
  var DropService = class {
9148
9812
  constructor(config) {
9149
- this.factoryAddress = chunkOUPVVMLK_cjs.getStarknetCoordinates(config.chain).dropFactory;
9813
+ this.factoryAddress = chunkH7I6TEOA_cjs.getStarknetCoordinates(config.chain).dropFactory;
9150
9814
  this.config = config;
9151
9815
  }
9152
9816
  _collection(address, account) {
9153
- return newContract(DropCollectionABI, chunk3IJQNNFE_cjs.normalizeAddress("STARKNET", address), account);
9817
+ return newContract(DropCollectionABI, chunkK5MWWVX5_cjs.normalizeAddress("STARKNET", address), account);
9154
9818
  }
9155
9819
  async claim(account, collectionAddress, quantity = 1) {
9156
9820
  const collection = this._collection(collectionAddress, account);
@@ -9230,19 +9894,19 @@ var DropService = class {
9230
9894
  // src/starknet/services/erc1155collection.ts
9231
9895
  var ERC1155CollectionService = class {
9232
9896
  constructor(config) {
9233
- this.factoryAddress = config.collection1155Contract ?? chunkOUPVVMLK_cjs.getStarknetCoordinates(config.chain).collection1155;
9897
+ this.factoryAddress = config.collection1155Contract ?? chunkH7I6TEOA_cjs.getStarknetCoordinates(config.chain).collection1155;
9234
9898
  }
9235
9899
  _factory(account) {
9236
9900
  return newContract(
9237
9901
  IPCollection1155FactoryABI,
9238
- chunk3IJQNNFE_cjs.normalizeAddress("STARKNET", this.factoryAddress),
9902
+ chunkK5MWWVX5_cjs.normalizeAddress("STARKNET", this.factoryAddress),
9239
9903
  account
9240
9904
  );
9241
9905
  }
9242
9906
  _collection(address, account) {
9243
9907
  return newContract(
9244
9908
  IPCollection1155ABI,
9245
- chunk3IJQNNFE_cjs.normalizeAddress("STARKNET", address),
9909
+ chunkK5MWWVX5_cjs.normalizeAddress("STARKNET", address),
9246
9910
  account
9247
9911
  );
9248
9912
  }
@@ -9425,7 +10089,7 @@ function factoryContract() {
9425
10089
  if (!_factoryContract) {
9426
10090
  _factoryContract = newContract(
9427
10091
  CreatorCoinFactoryABI,
9428
- chunkOUPVVMLK_cjs.getStarknetCoordinates("STARKNET").creatorCoinFactory
10092
+ chunkH7I6TEOA_cjs.getStarknetCoordinates("STARKNET").creatorCoinFactory
9429
10093
  );
9430
10094
  }
9431
10095
  return _factoryContract;
@@ -9462,7 +10126,7 @@ function buildLaunchOnEkuboCalls(params) {
9462
10126
  calls.push({
9463
10127
  contractAddress: params.quoteToken,
9464
10128
  entrypoint: "transfer",
9465
- calldata: [chunkOUPVVMLK_cjs.getStarknetCoordinates("STARKNET").creatorCoinFactory, amt.low, amt.high]
10129
+ calldata: [chunkH7I6TEOA_cjs.getStarknetCoordinates("STARKNET").creatorCoinFactory, amt.low, amt.high]
9466
10130
  });
9467
10131
  }
9468
10132
  calls.push(factoryContract().populate("launch_on_ekubo", [launchParameters, ekuboParameters]));
@@ -9470,26 +10134,26 @@ function buildLaunchOnEkuboCalls(params) {
9470
10134
  }
9471
10135
  var CREATOR_COIN_CREATED_SELECTOR = starknet.hash.getSelectorFromName("CreatorCoinCreated");
9472
10136
  function parseCreatorCoinCreated(receipt) {
9473
- const factory = chunk3IJQNNFE_cjs.normalizeAddress("STARKNET", chunkOUPVVMLK_cjs.getStarknetCoordinates("STARKNET").creatorCoinFactory);
10137
+ const factory = chunkK5MWWVX5_cjs.normalizeAddress("STARKNET", chunkH7I6TEOA_cjs.getStarknetCoordinates("STARKNET").creatorCoinFactory);
9474
10138
  for (const ev of receipt?.events ?? []) {
9475
10139
  let from;
9476
10140
  try {
9477
- from = chunk3IJQNNFE_cjs.normalizeAddress("STARKNET", ev.from_address ?? "");
10141
+ from = chunkK5MWWVX5_cjs.normalizeAddress("STARKNET", ev.from_address ?? "");
9478
10142
  } catch {
9479
10143
  continue;
9480
10144
  }
9481
10145
  if (from !== factory) continue;
9482
10146
  const k0 = ev.keys?.[0];
9483
- if (!k0 || chunk3IJQNNFE_cjs.normalizeAddress("STARKNET", k0) !== chunk3IJQNNFE_cjs.normalizeAddress("STARKNET", CREATOR_COIN_CREATED_SELECTOR)) continue;
10147
+ if (!k0 || chunkK5MWWVX5_cjs.normalizeAddress("STARKNET", k0) !== chunkK5MWWVX5_cjs.normalizeAddress("STARKNET", CREATOR_COIN_CREATED_SELECTOR)) continue;
9484
10148
  const data = ev.data ?? [];
9485
10149
  if (data.length < 1) continue;
9486
- return chunk3IJQNNFE_cjs.normalizeAddress("STARKNET", data[data.length - 1]);
10150
+ return chunkK5MWWVX5_cjs.normalizeAddress("STARKNET", data[data.length - 1]);
9487
10151
  }
9488
10152
  throw new Error("Coin deployed but the coin address could not be read from the receipt");
9489
10153
  }
9490
10154
  var CreatorCoinService = class {
9491
10155
  constructor(config) {
9492
- this.factoryAddress = chunkOUPVVMLK_cjs.getStarknetCoordinates(config.chain).creatorCoinFactory;
10156
+ this.factoryAddress = chunkH7I6TEOA_cjs.getStarknetCoordinates(config.chain).creatorCoinFactory;
9493
10157
  this.config = config;
9494
10158
  }
9495
10159
  _factory(account) {
@@ -9514,19 +10178,19 @@ var CreatorCoinService = class {
9514
10178
  var TicketService = class {
9515
10179
  constructor(config) {
9516
10180
  this.config = config;
9517
- this.factoryAddress = chunkOUPVVMLK_cjs.getStarknetCoordinates(config.chain).ipTicketsFactory;
10181
+ this.factoryAddress = chunkH7I6TEOA_cjs.getStarknetCoordinates(config.chain).ipTicketsFactory;
9518
10182
  }
9519
10183
  _factory(account, factoryAddress) {
9520
10184
  const address = factoryAddress ?? this.factoryAddress;
9521
10185
  if (!address) throw new Error("IP-Tickets factory address not configured for this chain");
9522
- return newContract(IPTicketCollectionFactoryABI, chunk3IJQNNFE_cjs.normalizeAddress("STARKNET", address), account);
10186
+ return newContract(IPTicketCollectionFactoryABI, chunkK5MWWVX5_cjs.normalizeAddress("STARKNET", address), account);
9523
10187
  }
9524
10188
  _collection(address, account) {
9525
- return newContract(IPTicketCollectionABI, chunk3IJQNNFE_cjs.normalizeAddress("STARKNET", address), account);
10189
+ return newContract(IPTicketCollectionABI, chunkK5MWWVX5_cjs.normalizeAddress("STARKNET", address), account);
9526
10190
  }
9527
10191
  _collectionRead(address) {
9528
10192
  const provider = new starknet.RpcProvider({ nodeUrl: this.config.rpcUrl });
9529
- return newContract(IPTicketCollectionABI, chunk3IJQNNFE_cjs.normalizeAddress("STARKNET", address), provider);
10193
+ return newContract(IPTicketCollectionABI, chunkK5MWWVX5_cjs.normalizeAddress("STARKNET", address), provider);
9530
10194
  }
9531
10195
  async deployCollection(account, params) {
9532
10196
  const call = this._factory(account, params.factoryAddress).populate("deploy_collection", [
@@ -9587,19 +10251,19 @@ var TicketService = class {
9587
10251
  var ClubService = class {
9588
10252
  constructor(config) {
9589
10253
  this.config = config;
9590
- this.factoryAddress = chunkOUPVVMLK_cjs.getStarknetCoordinates(config.chain).ipClubFactory;
10254
+ this.factoryAddress = chunkH7I6TEOA_cjs.getStarknetCoordinates(config.chain).ipClubFactory;
9591
10255
  }
9592
10256
  _factory(account, factoryAddress) {
9593
10257
  const address = factoryAddress ?? this.factoryAddress;
9594
10258
  if (!address) throw new Error("IP-Club factory address not configured for this chain");
9595
- return newContract(IPClubFactoryABI, chunk3IJQNNFE_cjs.normalizeAddress("STARKNET", address), account);
10259
+ return newContract(IPClubFactoryABI, chunkK5MWWVX5_cjs.normalizeAddress("STARKNET", address), account);
9596
10260
  }
9597
10261
  _collection(address, account) {
9598
- return newContract(IPClubCollectionABI, chunk3IJQNNFE_cjs.normalizeAddress("STARKNET", address), account);
10262
+ return newContract(IPClubCollectionABI, chunkK5MWWVX5_cjs.normalizeAddress("STARKNET", address), account);
9599
10263
  }
9600
10264
  _collectionRead(address) {
9601
10265
  const provider = new starknet.RpcProvider({ nodeUrl: this.config.rpcUrl });
9602
- return newContract(IPClubCollectionABI, chunk3IJQNNFE_cjs.normalizeAddress("STARKNET", address), provider);
10266
+ return newContract(IPClubCollectionABI, chunkK5MWWVX5_cjs.normalizeAddress("STARKNET", address), provider);
9603
10267
  }
9604
10268
  async deployCollection(account, params) {
9605
10269
  const call = this._factory(account, params.factoryAddress).populate("deploy_collection", [
@@ -9662,14 +10326,14 @@ var ClubService = class {
9662
10326
  var SponsorshipService = class {
9663
10327
  constructor(config) {
9664
10328
  this.config = config;
9665
- this.sponsorshipAddress = chunkOUPVVMLK_cjs.getStarknetCoordinates(config.chain).ipSponsorship;
10329
+ this.sponsorshipAddress = chunkH7I6TEOA_cjs.getStarknetCoordinates(config.chain).ipSponsorship;
9666
10330
  }
9667
10331
  _contract(account, address) {
9668
10332
  const resolved = address ?? this.sponsorshipAddress;
9669
10333
  if (!resolved) {
9670
10334
  throw new Error("IP-Sponsorship address not configured for this chain");
9671
10335
  }
9672
- return newContract(IPSponsorshipABI, chunk3IJQNNFE_cjs.normalizeAddress("STARKNET", resolved), account);
10336
+ return newContract(IPSponsorshipABI, chunkK5MWWVX5_cjs.normalizeAddress("STARKNET", resolved), account);
9673
10337
  }
9674
10338
  _contractRead(address) {
9675
10339
  const resolved = address ?? this.sponsorshipAddress;
@@ -9677,7 +10341,7 @@ var SponsorshipService = class {
9677
10341
  throw new Error("IP-Sponsorship address not configured for this chain");
9678
10342
  }
9679
10343
  const provider = new starknet.RpcProvider({ nodeUrl: this.config.rpcUrl });
9680
- return newContract(IPSponsorshipABI, chunk3IJQNNFE_cjs.normalizeAddress("STARKNET", resolved), provider);
10344
+ return newContract(IPSponsorshipABI, chunkK5MWWVX5_cjs.normalizeAddress("STARKNET", resolved), provider);
9681
10345
  }
9682
10346
  async createOffer(account, params) {
9683
10347
  const specificSponsor = params.specificSponsor ? new starknet.CairoOption(starknet.CairoOptionVariant.Some, params.specificSponsor) : new starknet.CairoOption(starknet.CairoOptionVariant.None);
@@ -9712,7 +10376,7 @@ var SponsorshipService = class {
9712
10376
  const approveCall = {
9713
10377
  contractAddress: params.paymentToken,
9714
10378
  entrypoint: "approve",
9715
- calldata: [chunk3IJQNNFE_cjs.normalizeAddress("STARKNET", sponsorshipAddress), amount.low.toString(), amount.high.toString()]
10379
+ calldata: [chunkK5MWWVX5_cjs.normalizeAddress("STARKNET", sponsorshipAddress), amount.low.toString(), amount.high.toString()]
9716
10380
  };
9717
10381
  const bidCall = this._contract(account, sponsorshipAddress).populate("place_bid", [
9718
10382
  starknet.cairo.uint256(params.offerId),
@@ -9839,7 +10503,7 @@ var SponsorshipService = class {
9839
10503
  // src/starknet/client.ts
9840
10504
  var MedialaneClient = class {
9841
10505
  constructor(rawConfig = {}) {
9842
- this.config = chunk3IJQNNFE_cjs.resolveConfig(rawConfig);
10506
+ this.config = chunkK5MWWVX5_cjs.resolveConfig(rawConfig);
9843
10507
  this.services = {
9844
10508
  pop: new PopService(this.config),
9845
10509
  drop: new DropService(this.config),
@@ -9850,9 +10514,9 @@ var MedialaneClient = class {
9850
10514
  sponsorship: new SponsorshipService(this.config)
9851
10515
  };
9852
10516
  if (!this.config.backendUrl) {
9853
- const sentinel = new chunk3IJQNNFE_cjs.ApiClient("https://medialane-sdk-no-backend.invalid", this.config.apiKey);
10517
+ const sentinel = new chunkK5MWWVX5_cjs.ApiClient("https://medialane-sdk-no-backend.invalid", this.config.apiKey);
9854
10518
  const apiMethodNames = new Set(
9855
- Object.getOwnPropertyNames(chunk3IJQNNFE_cjs.ApiClient.prototype).filter(
10519
+ Object.getOwnPropertyNames(chunkK5MWWVX5_cjs.ApiClient.prototype).filter(
9856
10520
  (k) => k !== "constructor" && typeof sentinel[k] === "function"
9857
10521
  )
9858
10522
  );
@@ -9869,7 +10533,7 @@ var MedialaneClient = class {
9869
10533
  }
9870
10534
  });
9871
10535
  } else {
9872
- this.api = new chunk3IJQNNFE_cjs.ApiClient(this.config.backendUrl, this.config.apiKey, this.config.retryOptions, this.config.chain);
10536
+ this.api = new chunkK5MWWVX5_cjs.ApiClient(this.config.backendUrl, this.config.apiKey, this.config.retryOptions, this.config.chain);
9873
10537
  }
9874
10538
  }
9875
10539
  get chain() {
@@ -10041,7 +10705,7 @@ function buildListingOrder(i, cfg) {
10041
10705
  salt: i.salt,
10042
10706
  counter: i.counter
10043
10707
  };
10044
- const typedData = chunk3IJQNNFE_cjs.stringifyBigInts(buildOrderTypedData(orderParams, getChainId(cfg)));
10708
+ const typedData = chunkK5MWWVX5_cjs.stringifyBigInts(buildOrderTypedData(orderParams, getChainId(cfg)));
10045
10709
  return { orderParams, typedData };
10046
10710
  }
10047
10711
  function buildOfferOrder(i, cfg) {
@@ -10062,11 +10726,11 @@ function buildOfferOrder(i, cfg) {
10062
10726
  salt: i.salt,
10063
10727
  counter: i.counter
10064
10728
  };
10065
- const typedData = chunk3IJQNNFE_cjs.stringifyBigInts(buildOrderTypedData(orderParams, getChainId(cfg)));
10729
+ const typedData = chunkK5MWWVX5_cjs.stringifyBigInts(buildOrderTypedData(orderParams, getChainId(cfg)));
10066
10730
  return { orderParams, typedData };
10067
10731
  }
10068
10732
  function registerPayload(orderParams, signature) {
10069
- return chunk3IJQNNFE_cjs.stringifyBigInts({
10733
+ return chunkK5MWWVX5_cjs.stringifyBigInts({
10070
10734
  parameters: {
10071
10735
  ...orderParams,
10072
10736
  offer: { ...orderParams.offer, item_type: starknet.shortString.encodeShortString(orderParams.offer.item_type) },
@@ -10097,14 +10761,14 @@ function buildFulfillCalls(a, cfg) {
10097
10761
  return fee ? [approve, fulfill, fee] : [approve, fulfill];
10098
10762
  }
10099
10763
  function buildCancelCalls(a, cfg) {
10100
- const cancelRequest = chunk3IJQNNFE_cjs.stringifyBigInts({
10764
+ const cancelRequest = chunkK5MWWVX5_cjs.stringifyBigInts({
10101
10765
  cancelation: { order_hash: a.orderHash, offerer: a.offerer },
10102
10766
  signature: a.signature
10103
10767
  });
10104
10768
  return [contractFor(cfg).populate("cancel_order", [cancelRequest])];
10105
10769
  }
10106
10770
  function buildCancelTypedData(orderHash, offerer, cfg) {
10107
- return chunk3IJQNNFE_cjs.stringifyBigInts(buildCancellationTypedData({ order_hash: orderHash, offerer }, getChainId(cfg)));
10771
+ return chunkK5MWWVX5_cjs.stringifyBigInts(buildCancellationTypedData({ order_hash: orderHash, offerer }, getChainId(cfg)));
10108
10772
  }
10109
10773
  function contractFor2(cfg) {
10110
10774
  return newContract(Medialane1155ABI, cfg.marketplace1155Contract, getProvider(cfg));
@@ -10127,7 +10791,7 @@ function buildListing1155Order(i, cfg) {
10127
10791
  salt: i.salt,
10128
10792
  counter: i.counter
10129
10793
  };
10130
- const typedData = chunk3IJQNNFE_cjs.stringifyBigInts(
10794
+ const typedData = chunkK5MWWVX5_cjs.stringifyBigInts(
10131
10795
  build1155OrderTypedData(orderParams, getChainId(cfg))
10132
10796
  );
10133
10797
  return { orderParams, typedData };
@@ -10150,13 +10814,13 @@ function buildOffer1155Order(i, cfg) {
10150
10814
  salt: i.salt,
10151
10815
  counter: i.counter
10152
10816
  };
10153
- const typedData = chunk3IJQNNFE_cjs.stringifyBigInts(
10817
+ const typedData = chunkK5MWWVX5_cjs.stringifyBigInts(
10154
10818
  build1155OrderTypedData(orderParams, getChainId(cfg))
10155
10819
  );
10156
10820
  return { orderParams, typedData };
10157
10821
  }
10158
10822
  function registerPayload2(orderParams, signature) {
10159
- return chunk3IJQNNFE_cjs.stringifyBigInts({
10823
+ return chunkK5MWWVX5_cjs.stringifyBigInts({
10160
10824
  parameters: {
10161
10825
  ...orderParams,
10162
10826
  offer: { ...orderParams.offer, item_type: starknet.shortString.encodeShortString(orderParams.offer.item_type) },
@@ -10187,14 +10851,14 @@ function buildFulfill1155Calls(a, cfg) {
10187
10851
  return fee ? [approve, fulfill, fee] : [approve, fulfill];
10188
10852
  }
10189
10853
  function buildCancel1155Calls(a, cfg) {
10190
- const cancelPayload = chunk3IJQNNFE_cjs.stringifyBigInts({
10854
+ const cancelPayload = chunkK5MWWVX5_cjs.stringifyBigInts({
10191
10855
  cancelation: { order_hash: a.orderHash, offerer: a.offerer },
10192
10856
  signature: a.signature
10193
10857
  });
10194
10858
  return [contractFor2(cfg).populate("cancel_order", [cancelPayload])];
10195
10859
  }
10196
10860
  function buildCancel1155TypedData(orderHash, offerer, cfg) {
10197
- return chunk3IJQNNFE_cjs.stringifyBigInts(
10861
+ return chunkK5MWWVX5_cjs.stringifyBigInts(
10198
10862
  build1155CancellationTypedData({ order_hash: orderHash, offerer }, getChainId(cfg))
10199
10863
  );
10200
10864
  }
@@ -10537,14 +11201,14 @@ async function assertTransactionSucceeded(provider, txHash, retryDelaysMs = RECE
10537
11201
  const receipt = await provider.getTransactionReceipt(txHash);
10538
11202
  const status = receipt.execution_status ?? receipt.status;
10539
11203
  if (status === "REVERTED" || status === "REJECTED") {
10540
- throw new chunk3IJQNNFE_cjs.UserFacingError("Transaction was submitted but reverted onchain. Please check your balance and try again.");
11204
+ throw new chunkK5MWWVX5_cjs.UserFacingError("Transaction was submitted but reverted onchain. Please check your balance and try again.");
10541
11205
  }
10542
11206
  if (status) return receipt;
10543
11207
  } catch (err) {
10544
11208
  if (err instanceof Error && err.message.includes("reverted onchain")) throw err;
10545
11209
  }
10546
11210
  }
10547
- throw new chunk3IJQNNFE_cjs.UserFacingError("Verification timed out. Check your account for the transaction status.");
11211
+ throw new chunkK5MWWVX5_cjs.UserFacingError("Verification timed out. Check your account for the transaction status.");
10548
11212
  }
10549
11213
  async function executeIntent(provider, signer, client, intent, opts = {}) {
10550
11214
  let calls;
@@ -10597,14 +11261,14 @@ function u2562(low, high) {
10597
11261
  return (BigInt(low ?? 0) + (BigInt(high ?? 0) << 128n)).toString();
10598
11262
  }
10599
11263
  function deployedCollectionFromReceipt(receipt, service) {
10600
- const factory = chunk3IJQNNFE_cjs.getService(service)?.onchain?.STARKNET?.factoryAddress;
11264
+ const factory = chunkK5MWWVX5_cjs.getService(service)?.onchain?.STARKNET?.factoryAddress;
10601
11265
  const { event, address } = DEPLOY_EVENTS[service];
10602
11266
  const selector = BigInt(starknet.hash.getSelectorFromName(event));
10603
11267
  for (const e of receipt.events ?? []) {
10604
11268
  if (factory && !sameFelt(e.from_address, factory)) continue;
10605
11269
  if (!sameFelt(e.keys?.[0], selector)) continue;
10606
11270
  const value = address(e);
10607
- if (value) return chunk3IJQNNFE_cjs.normalizeAddress("STARKNET", value);
11271
+ if (value) return chunkK5MWWVX5_cjs.normalizeAddress("STARKNET", value);
10608
11272
  }
10609
11273
  return null;
10610
11274
  }
@@ -10617,6 +11281,58 @@ function mintedTokenIdFromReceipt(receipt, contract) {
10617
11281
  }
10618
11282
  return null;
10619
11283
  }
11284
+ var FRAGMENT_KEY = "pop-proof";
11285
+ var toHex = (x) => "0x" + x.toString(16).padStart(64, "0");
11286
+ var poseidon = (xs) => BigInt(starknet.hash.computePoseidonHashOnElements(xs.map((x) => "0x" + x.toString(16))));
11287
+ var nodeHash = (a, b) => a < b ? poseidon([a, b]) : poseidon([b, a]);
11288
+ function popLeafHash(address) {
11289
+ return poseidon([poseidon([BigInt(address)])]);
11290
+ }
11291
+ function merkleTree(leafHashes) {
11292
+ const leaves = [...leafHashes].sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
11293
+ const tree = new Array(2 * leaves.length - 1);
11294
+ leaves.forEach((leaf, i) => tree[tree.length - 1 - i] = leaf);
11295
+ for (let i = tree.length - 1 - leaves.length; i >= 0; i--) {
11296
+ tree[i] = nodeHash(tree[2 * i + 1], tree[2 * i + 2]);
11297
+ }
11298
+ return {
11299
+ root: tree[0],
11300
+ proof(leaf) {
11301
+ let i = tree.lastIndexOf(leaf);
11302
+ if (i < tree.length - leaves.length) throw new Error("Not a leaf of this tree");
11303
+ const proof = [];
11304
+ while (i > 0) {
11305
+ proof.push(tree[i % 2 === 1 ? i + 1 : i - 1]);
11306
+ i = Math.floor((i - 1) / 2);
11307
+ }
11308
+ return proof;
11309
+ }
11310
+ };
11311
+ }
11312
+ function buildPopAllowlist(addresses) {
11313
+ const unique = [...new Set(addresses.map((a) => chunkK5MWWVX5_cjs.normalizeAddress("STARKNET", a)))];
11314
+ if (unique.length === 0) throw new Error("An allowlist needs at least one address");
11315
+ const leaves = unique.map((address) => ({ address, leaf: popLeafHash(address) }));
11316
+ const tree = merkleTree(leaves.map((l) => l.leaf));
11317
+ const proofs = {};
11318
+ for (const { address, leaf } of leaves) proofs[address] = tree.proof(leaf).map(toHex);
11319
+ return { root: toHex(tree.root), proofs };
11320
+ }
11321
+ function verifyPopProof(root, address, proof) {
11322
+ let computed = popLeafHash(address);
11323
+ for (const sibling of proof) computed = nodeHash(computed, BigInt(sibling));
11324
+ return computed === BigInt(root);
11325
+ }
11326
+ function encodePopClaimFragment(proof) {
11327
+ return `#${FRAGMENT_KEY}=${proof.join(",")}`;
11328
+ }
11329
+ function decodePopClaimFragment(fragment) {
11330
+ const raw = new URLSearchParams(fragment.replace(/^#/, "")).get(FRAGMENT_KEY);
11331
+ if (raw === null) return null;
11332
+ if (raw === "") return [];
11333
+ const parts = raw.split(",");
11334
+ return parts.every((p) => /^0x[0-9a-fA-F]{1,64}$/.test(p)) ? parts : null;
11335
+ }
10620
11336
 
10621
11337
  // src/starknet/services/sponsoredExecutor.ts
10622
11338
  var SponsoredCallRejectedError = class extends Error {
@@ -10725,13 +11441,13 @@ function buildRemoveOwnerByGuidCall(accountAddress, ownerGuid) {
10725
11441
  }
10726
11442
  function buildDeployAccountParams(ownerPubkey, salt = 0) {
10727
11443
  return {
10728
- classHash: chunk3IJQNNFE_cjs.STARKNET_MEDIAWALLET_CLASS_HASH,
10729
- constructorCalldata: chunk3IJQNNFE_cjs.ownerConstructorCalldata(ownerPubkey),
11444
+ classHash: chunkK5MWWVX5_cjs.STARKNET_MEDIAWALLET_CLASS_HASH,
11445
+ constructorCalldata: chunkK5MWWVX5_cjs.ownerConstructorCalldata(ownerPubkey),
10730
11446
  addressSalt: starknet.num.toHex(salt),
10731
- contractAddress: chunk3IJQNNFE_cjs.computeAccountAddress(ownerPubkey, salt)
11447
+ contractAddress: chunkK5MWWVX5_cjs.computeAccountAddress(ownerPubkey, salt)
10732
11448
  };
10733
11449
  }
10734
- var norm = (address) => chunk3IJQNNFE_cjs.normalizeAddress("STARKNET", address);
11450
+ var norm = (address) => chunkK5MWWVX5_cjs.normalizeAddress("STARKNET", address);
10735
11451
  var SIGNER_TYPE_NAMES = ["Starknet", "Secp256k1", "Secp256r1"];
10736
11452
  function encodeFeltArray(items) {
10737
11453
  return [starknet.num.toHex(items.length), ...items];
@@ -10924,7 +11640,7 @@ var InvalidRecoveryKeyError = class extends Error {
10924
11640
  var canonicalAddress = (address) => `0x${BigInt(address).toString(16).padStart(64, "0")}`;
10925
11641
  function keyPair(privateKey) {
10926
11642
  try {
10927
- return chunk3IJQNNFE_cjs.starkKeyPairFromPrivateKey(privateKey);
11643
+ return chunkK5MWWVX5_cjs.starkKeyPairFromPrivateKey(privateKey);
10928
11644
  } catch {
10929
11645
  throw new InvalidRecoveryKeyError();
10930
11646
  }
@@ -10937,7 +11653,7 @@ function parseRecoveryKey(input) {
10937
11653
  const trimmed = input.trim();
10938
11654
  if (!trimmed.startsWith(PREFIX)) {
10939
11655
  const { privateKeyHex, publicKeyHex } = keyPair(trimmed);
10940
- return { walletAddress: chunk3IJQNNFE_cjs.computeAccountAddress(publicKeyHex, 0), privateKey: privateKeyHex };
11656
+ return { walletAddress: chunkK5MWWVX5_cjs.computeAccountAddress(publicKeyHex, 0), privateKey: privateKeyHex };
10941
11657
  }
10942
11658
  const parts = trimmed.slice(PREFIX.length).split(":");
10943
11659
  const [walletAddress, privateKey] = parts;
@@ -10959,7 +11675,7 @@ function describeRecoveryAction(escape) {
10959
11675
  return "none";
10960
11676
  }
10961
11677
  function normalizeWalletAddress(address) {
10962
- return chunk3IJQNNFE_cjs.normalizeAddress("STARKNET", address);
11678
+ return chunkK5MWWVX5_cjs.normalizeAddress("STARKNET", address);
10963
11679
  }
10964
11680
  function isValidStarknetAddress(address) {
10965
11681
  try {
@@ -11004,7 +11720,7 @@ async function estimateSelfFundedFee(provider, address, calls) {
11004
11720
  return { feeRaw: estimate.overall_fee, unit: estimate.unit, balanceRaw };
11005
11721
  }
11006
11722
  async function feeTokenBalance(provider, address, unit) {
11007
- const token = chunk3IJQNNFE_cjs.getTokenBySymbol(unit === "FRI" ? "STRK" : "ETH");
11723
+ const token = chunkK5MWWVX5_cjs.getTokenBySymbol(unit === "FRI" ? "STRK" : "ETH");
11008
11724
  if (!token) throw new Error(`No fee token for unit ${unit}`);
11009
11725
  const [low = "0x0", high = "0x0"] = await provider.callContract({
11010
11726
  contractAddress: token.address,
@@ -11031,7 +11747,7 @@ function sponsoredExecutor(deps) {
11031
11747
  { proxyUrl: deps.proxyUrl, fetchImpl: deps.fetchImpl },
11032
11748
  {
11033
11749
  address: userAddress,
11034
- signTypedData: async (data) => chunk3IJQNNFE_cjs.signWithPrivateKey(privateKeyHex, starknet.typedData.getMessageHash(data, userAddress))
11750
+ signTypedData: async (data) => chunkK5MWWVX5_cjs.signWithPrivateKey(privateKeyHex, starknet.typedData.getMessageHash(data, userAddress))
11035
11751
  },
11036
11752
  calls
11037
11753
  );
@@ -11081,7 +11797,7 @@ async function deploySponsored(input) {
11081
11797
  return { transactionHash };
11082
11798
  }
11083
11799
  async function deploySelfFunded(input) {
11084
- const classHash = chunkOUPVVMLK_cjs.getCoordinates("STARKNET").mediaWalletClassHash;
11800
+ const classHash = chunkH7I6TEOA_cjs.getCoordinates("STARKNET").mediaWalletClassHash;
11085
11801
  if (!classHash) throw new Error("Media Wallet class hash is not configured");
11086
11802
  const account = new starknet.Account({
11087
11803
  provider: input.provider,
@@ -11091,7 +11807,7 @@ async function deploySelfFunded(input) {
11091
11807
  });
11092
11808
  const { transaction_hash } = await account.deployAccount({
11093
11809
  classHash,
11094
- constructorCalldata: chunk3IJQNNFE_cjs.ownerConstructorCalldata(input.ownerPubKey),
11810
+ constructorCalldata: chunkK5MWWVX5_cjs.ownerConstructorCalldata(input.ownerPubKey),
11095
11811
  addressSalt: 0,
11096
11812
  contractAddress: input.ownerAddress
11097
11813
  });
@@ -11154,7 +11870,7 @@ async function completeDeployment(deps, onStep, options = {}) {
11154
11870
  backendUrl: deps.backendUrl,
11155
11871
  walletAddress: address,
11156
11872
  signer: {
11157
- signMessage: async (td) => chunk3IJQNNFE_cjs.signWithPrivateKey(privateKeyHex, starknet.typedData.getMessageHash(td, address))
11873
+ signMessage: async (td) => chunkK5MWWVX5_cjs.signWithPrivateKey(privateKeyHex, starknet.typedData.getMessageHash(td, address))
11158
11874
  }
11159
11875
  });
11160
11876
  deps.store.notifyChange();
@@ -11259,7 +11975,7 @@ function createMediaWallet(config) {
11259
11975
  address: sealed.address,
11260
11976
  signTypedData: async (data) => {
11261
11977
  const privateKeyHex = await unlockOnce(sealed);
11262
- return chunk3IJQNNFE_cjs.signWithPrivateKey(privateKeyHex, starknet.typedData.getMessageHash(data, sealed.address));
11978
+ return chunkK5MWWVX5_cjs.signWithPrivateKey(privateKeyHex, starknet.typedData.getMessageHash(data, sealed.address));
11263
11979
  },
11264
11980
  execute: async (calls) => {
11265
11981
  const { transactionHash } = await run(sealed, calls);
@@ -11331,51 +12047,51 @@ async function claimSessionWallet(api, walletAddress, deps) {
11331
12047
 
11332
12048
  Object.defineProperty(exports, "InvalidStarkPrivateKeyError", {
11333
12049
  enumerable: true,
11334
- get: function () { return chunk3IJQNNFE_cjs.InvalidStarkPrivateKeyError; }
12050
+ get: function () { return chunkK5MWWVX5_cjs.InvalidStarkPrivateKeyError; }
11335
12051
  });
11336
12052
  Object.defineProperty(exports, "PasskeyCancelledError", {
11337
12053
  enumerable: true,
11338
- get: function () { return chunk3IJQNNFE_cjs.PasskeyCancelledError; }
12054
+ get: function () { return chunkK5MWWVX5_cjs.PasskeyCancelledError; }
11339
12055
  });
11340
12056
  Object.defineProperty(exports, "UserFacingError", {
11341
12057
  enumerable: true,
11342
- get: function () { return chunk3IJQNNFE_cjs.UserFacingError; }
12058
+ get: function () { return chunkK5MWWVX5_cjs.UserFacingError; }
11343
12059
  });
11344
12060
  Object.defineProperty(exports, "computeAccountAddress", {
11345
12061
  enumerable: true,
11346
- get: function () { return chunk3IJQNNFE_cjs.computeAccountAddress; }
12062
+ get: function () { return chunkK5MWWVX5_cjs.computeAccountAddress; }
11347
12063
  });
11348
12064
  Object.defineProperty(exports, "createPasskeyOwner", {
11349
12065
  enumerable: true,
11350
- get: function () { return chunk3IJQNNFE_cjs.createPasskeyOwner; }
12066
+ get: function () { return chunkK5MWWVX5_cjs.createPasskeyOwner; }
11351
12067
  });
11352
12068
  Object.defineProperty(exports, "deriveAesKey", {
11353
12069
  enumerable: true,
11354
- get: function () { return chunk3IJQNNFE_cjs.deriveAesKey; }
12070
+ get: function () { return chunkK5MWWVX5_cjs.deriveAesKey; }
11355
12071
  });
11356
12072
  Object.defineProperty(exports, "generateStarkKeyPair", {
11357
12073
  enumerable: true,
11358
- get: function () { return chunk3IJQNNFE_cjs.generateStarkKeyPair; }
12074
+ get: function () { return chunkK5MWWVX5_cjs.generateStarkKeyPair; }
11359
12075
  });
11360
12076
  Object.defineProperty(exports, "ownerConstructorCalldata", {
11361
12077
  enumerable: true,
11362
- get: function () { return chunk3IJQNNFE_cjs.ownerConstructorCalldata; }
12078
+ get: function () { return chunkK5MWWVX5_cjs.ownerConstructorCalldata; }
11363
12079
  });
11364
12080
  Object.defineProperty(exports, "sealPrivateKey", {
11365
12081
  enumerable: true,
11366
- get: function () { return chunk3IJQNNFE_cjs.sealPrivateKey; }
12082
+ get: function () { return chunkK5MWWVX5_cjs.sealPrivateKey; }
11367
12083
  });
11368
12084
  Object.defineProperty(exports, "signWithPrivateKey", {
11369
12085
  enumerable: true,
11370
- get: function () { return chunk3IJQNNFE_cjs.signWithPrivateKey; }
12086
+ get: function () { return chunkK5MWWVX5_cjs.signWithPrivateKey; }
11371
12087
  });
11372
12088
  Object.defineProperty(exports, "starkKeyPairFromPrivateKey", {
11373
12089
  enumerable: true,
11374
- get: function () { return chunk3IJQNNFE_cjs.starkKeyPairFromPrivateKey; }
12090
+ get: function () { return chunkK5MWWVX5_cjs.starkKeyPairFromPrivateKey; }
11375
12091
  });
11376
12092
  Object.defineProperty(exports, "unsealPrivateKey", {
11377
12093
  enumerable: true,
11378
- get: function () { return chunk3IJQNNFE_cjs.unsealPrivateKey; }
12094
+ get: function () { return chunkK5MWWVX5_cjs.unsealPrivateKey; }
11379
12095
  });
11380
12096
  exports.COIN_MAX_SUPPLY = MAX_SUPPLY;
11381
12097
  exports.COIN_MIN_SUPPLY = MIN_SUPPLY;
@@ -11430,6 +12146,7 @@ exports.buildFeeCall = buildFeeCall;
11430
12146
  exports.buildFundingTransferCall = buildFundingTransferCall;
11431
12147
  exports.buildLaunchOnEkuboCalls = buildLaunchOnEkuboCalls;
11432
12148
  exports.buildOrderTypedData = buildOrderTypedData;
12149
+ exports.buildPopAllowlist = buildPopAllowlist;
11433
12150
  exports.buildRemoveOwnerByGuidCall = buildRemoveOwnerByGuidCall;
11434
12151
  exports.buildRemoveOwnerCall = buildRemoveOwnerCall;
11435
12152
  exports.buildSetFirstGuardianCall = buildSetFirstGuardianCall;
@@ -11447,6 +12164,7 @@ exports.createOwnerStore = createOwnerStore;
11447
12164
  exports.createSelfFundConsent = createSelfFundConsent;
11448
12165
  exports.decodeEscapeAndStatus = decodeEscapeAndStatus;
11449
12166
  exports.decodeGuardiansInfo = decodeGuardiansInfo;
12167
+ exports.decodePopClaimFragment = decodePopClaimFragment;
11450
12168
  exports.deploySelfFunded = deploySelfFunded;
11451
12169
  exports.deploySponsored = deploySponsored;
11452
12170
  exports.deployedCollectionFromReceipt = deployedCollectionFromReceipt;
@@ -11456,6 +12174,7 @@ exports.describeGuardianStatus = describeGuardianStatus;
11456
12174
  exports.describeRecoveryAction = describeRecoveryAction;
11457
12175
  exports.encodeByteArray = encodeByteArray;
11458
12176
  exports.encodePairingPayload = encodePairingPayload;
12177
+ exports.encodePopClaimFragment = encodePopClaimFragment;
11459
12178
  exports.encodeRecoveryKey = encodeRecoveryKey;
11460
12179
  exports.estimateSelfFundedFee = estimateSelfFundedFee;
11461
12180
  exports.executeIntent = executeIntent;
@@ -11485,6 +12204,7 @@ exports.parseAccountAddress = parseAccountAddress;
11485
12204
  exports.parseCreatorCoinCreated = parseCreatorCoinCreated;
11486
12205
  exports.parsePairingPayload = parsePairingPayload;
11487
12206
  exports.parseRecoveryKey = parseRecoveryKey;
12207
+ exports.popHasClaimed = popHasClaimed;
11488
12208
  exports.priceToEkuboParams = priceToEkuboParams;
11489
12209
  exports.requestSiwsToken = requestSiwsToken;
11490
12210
  exports.selfFundedExecutor = selfFundedExecutor;
@@ -11497,6 +12217,7 @@ exports.validateCoinName = validateName;
11497
12217
  exports.validateCoinSupply = validateSupply;
11498
12218
  exports.validateCoinSymbol = validateSymbol;
11499
12219
  exports.validatePrice = validatePrice;
12220
+ exports.verifyPopProof = verifyPopProof;
11500
12221
  exports.waitUntilDeployed = waitUntilDeployed;
11501
12222
  //# sourceMappingURL=index.cjs.map
11502
12223
  //# sourceMappingURL=index.cjs.map