@medialane/sdk 0.61.0 → 0.63.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.
@@ -35,9 +35,9 @@ var COORDINATES = {
35
35
  creatorCoinFactoryClassHash: "0x51765926b1344c9a20b8cd4b5abe7b7d47375ae97cf6804db3ea5d4b05a9b55",
36
36
  creatorCoinStartBlock: 10474544,
37
37
  ekuboCore: "0x00000005dd3d2f4429af886cd1a3b08289dbcea99a294197e9eb43b0e0325b4b",
38
- ipTicketsFactory: "0x0664c2d6a4da9ee3ff053ceeba7579c01f2fedfd9d2b57b4c07af3734bd4acab",
39
- ipTicketCollectionClassHash: "0x086f59c416e365e2bee4ceff9f1dcb96198f2342d50ba4621f60b831863adb6",
40
- ipTicketsStartBlock: 11404656,
38
+ ipTicketsFactory: "0x03ffef4162fe2c44e17d6be2aad3553cab0ac2274cd0b1bb3fafb12fd66695c1",
39
+ ipTicketCollectionClassHash: "0x036393fb4241ed55bd12d8b328ed877d08100fadf9150a650e2b84cbab95e1d4",
40
+ ipTicketsStartBlock: 11689800,
41
41
  ipClubRegistry: "0x00e189c619b6bb07d78973a149641c59c37eb0716f8584d7520bce12d303eede",
42
42
  ipClubNftClassHash: "0x02bc9b20cca21b04245e9215bf7121f4d7295b195890e449b472b573017fb889",
43
43
  ipClubStartBlock: 11404776,
@@ -4649,26 +4649,8 @@ var CreatorCoinFactoryABI = [{ "type": "impl", "name": "FactoryImpl", "interface
4649
4649
  var IPTicketCollectionABI = [
4650
4650
  {
4651
4651
  "type": "impl",
4652
- "name": "ERC721MetadataImpl",
4653
- "interface_name": "openzeppelin_token::erc721::interface::IERC721Metadata"
4654
- },
4655
- {
4656
- "type": "struct",
4657
- "name": "core::byte_array::ByteArray",
4658
- "members": [
4659
- {
4660
- "name": "data",
4661
- "type": "core::array::Array::<core::bytes_31::bytes31>"
4662
- },
4663
- {
4664
- "name": "pending_word",
4665
- "type": "core::felt252"
4666
- },
4667
- {
4668
- "name": "pending_word_len",
4669
- "type": "core::internal::bounded_int::BoundedInt::<0, 30>"
4670
- }
4671
- ]
4652
+ "name": "ERC1155MetadataURIImpl",
4653
+ "interface_name": "openzeppelin_token::erc1155::interface::IERC1155MetadataURI"
4672
4654
  },
4673
4655
  {
4674
4656
  "type": "struct",
@@ -4685,64 +4667,33 @@ var IPTicketCollectionABI = [
4685
4667
  ]
4686
4668
  },
4687
4669
  {
4688
- "type": "interface",
4689
- "name": "openzeppelin_token::erc721::interface::IERC721Metadata",
4690
- "items": [
4670
+ "type": "struct",
4671
+ "name": "core::byte_array::ByteArray",
4672
+ "members": [
4691
4673
  {
4692
- "type": "function",
4693
- "name": "name",
4694
- "inputs": [],
4695
- "outputs": [
4696
- {
4697
- "type": "core::byte_array::ByteArray"
4698
- }
4699
- ],
4700
- "state_mutability": "view"
4674
+ "name": "data",
4675
+ "type": "core::array::Array::<core::bytes_31::bytes31>"
4701
4676
  },
4702
4677
  {
4703
- "type": "function",
4704
- "name": "symbol",
4705
- "inputs": [],
4706
- "outputs": [
4707
- {
4708
- "type": "core::byte_array::ByteArray"
4709
- }
4710
- ],
4711
- "state_mutability": "view"
4678
+ "name": "pending_word",
4679
+ "type": "core::felt252"
4712
4680
  },
4713
4681
  {
4714
- "type": "function",
4715
- "name": "token_uri",
4716
- "inputs": [
4717
- {
4718
- "name": "token_id",
4719
- "type": "core::integer::u256"
4720
- }
4721
- ],
4722
- "outputs": [
4723
- {
4724
- "type": "core::byte_array::ByteArray"
4725
- }
4726
- ],
4727
- "state_mutability": "view"
4682
+ "name": "pending_word_len",
4683
+ "type": "core::internal::bounded_int::BoundedInt::<0, 30>"
4728
4684
  }
4729
4685
  ]
4730
4686
  },
4731
- {
4732
- "type": "impl",
4733
- "name": "ERC721MetadataCamelOnlyImpl",
4734
- "interface_name": "openzeppelin_token::erc721::interface::IERC721MetadataCamelOnly"
4735
- },
4736
4687
  {
4737
4688
  "type": "interface",
4738
- "name": "openzeppelin_token::erc721::interface::IERC721MetadataCamelOnly",
4689
+ "name": "openzeppelin_token::erc1155::interface::IERC1155MetadataURI",
4739
4690
  "items": [
4740
4691
  {
4741
4692
  "type": "function",
4742
- "name": "tokenURI",
4693
+ "name": "uri",
4743
4694
  "inputs": [
4744
4695
  {
4745
- "name": "tokenId",
4696
+ "name": "token_id",
4746
4697
  "type": "core::integer::u256"
4747
4698
  }
4748
4699
  ],
@@ -4757,16 +4708,16 @@ var IPTicketCollectionABI = [
4757
4708
  },
4758
4709
  {
4759
4710
  "type": "impl",
4760
- "name": "IPTicketImpl",
4711
+ "name": "IPTicketCollectionImpl",
4761
4712
  "interface_name": "ip_ticket::interface::IIPTicketCollection"
4762
4713
  },
4763
4714
  {
4764
4715
  "type": "enum",
4765
- "name": "core::option::Option::<core::starknet::contract_address::ContractAddress>",
4716
+ "name": "core::option::Option::<core::integer::u64>",
4766
4717
  "variants": [
4767
4718
  {
4768
4719
  "name": "Some",
4769
- "type": "core::starknet::contract_address::ContractAddress"
4720
+ "type": "core::integer::u64"
4770
4721
  },
4771
4722
  {
4772
4723
  "name": "None",
@@ -4790,16 +4741,12 @@ var IPTicketCollectionABI = [
4790
4741
  },
4791
4742
  {
4792
4743
  "type": "struct",
4793
- "name": "ip_ticket::types::TicketCollection",
4744
+ "name": "ip_ticket::types::EventRecord",
4794
4745
  "members": [
4795
4746
  {
4796
4747
  "name": "creator",
4797
4748
  "type": "core::starknet::contract_address::ContractAddress"
4798
4749
  },
4799
- {
4800
- "name": "price",
4801
- "type": "core::integer::u256"
4802
- },
4803
4750
  {
4804
4751
  "name": "max_supply",
4805
4752
  "type": "core::integer::u256"
@@ -4809,16 +4756,16 @@ var IPTicketCollectionABI = [
4809
4756
  "type": "core::integer::u256"
4810
4757
  },
4811
4758
  {
4812
- "name": "expiration",
4813
- "type": "core::integer::u64"
4759
+ "name": "start_time",
4760
+ "type": "core::option::Option::<core::integer::u64>"
4814
4761
  },
4815
4762
  {
4816
- "name": "royalty_bps",
4817
- "type": "core::integer::u256"
4763
+ "name": "end_time",
4764
+ "type": "core::option::Option::<core::integer::u64>"
4818
4765
  },
4819
4766
  {
4820
- "name": "payment_token",
4821
- "type": "core::option::Option::<core::starknet::contract_address::ContractAddress>"
4767
+ "name": "royalty_bps",
4768
+ "type": "core::integer::u16"
4822
4769
  },
4823
4770
  {
4824
4771
  "name": "metadata_uri",
@@ -4830,71 +4777,29 @@ var IPTicketCollectionABI = [
4830
4777
  }
4831
4778
  ]
4832
4779
  },
4833
- {
4834
- "type": "struct",
4835
- "name": "ip_ticket::types::TicketData",
4836
- "members": [
4837
- {
4838
- "name": "token_id",
4839
- "type": "core::integer::u256"
4840
- },
4841
- {
4842
- "name": "owner",
4843
- "type": "core::starknet::contract_address::ContractAddress"
4844
- },
4845
- {
4846
- "name": "collection_id",
4847
- "type": "core::integer::u256"
4848
- },
4849
- {
4850
- "name": "creator",
4851
- "type": "core::starknet::contract_address::ContractAddress"
4852
- },
4853
- {
4854
- "name": "metadata_uri",
4855
- "type": "core::byte_array::ByteArray"
4856
- },
4857
- {
4858
- "name": "expiration",
4859
- "type": "core::integer::u64"
4860
- },
4861
- {
4862
- "name": "redeemed",
4863
- "type": "core::bool"
4864
- },
4865
- {
4866
- "name": "valid",
4867
- "type": "core::bool"
4868
- }
4869
- ]
4870
- },
4871
4780
  {
4872
4781
  "type": "interface",
4873
4782
  "name": "ip_ticket::interface::IIPTicketCollection",
4874
4783
  "items": [
4875
4784
  {
4876
4785
  "type": "function",
4877
- "name": "create_ticket_collection",
4786
+ "name": "create_event",
4878
4787
  "inputs": [
4879
- {
4880
- "name": "price",
4881
- "type": "core::integer::u256"
4882
- },
4883
4788
  {
4884
4789
  "name": "max_supply",
4885
4790
  "type": "core::integer::u256"
4886
4791
  },
4887
4792
  {
4888
- "name": "expiration",
4889
- "type": "core::integer::u64"
4793
+ "name": "start_time",
4794
+ "type": "core::option::Option::<core::integer::u64>"
4890
4795
  },
4891
4796
  {
4892
- "name": "royalty_bps",
4893
- "type": "core::integer::u256"
4797
+ "name": "end_time",
4798
+ "type": "core::option::Option::<core::integer::u64>"
4894
4799
  },
4895
4800
  {
4896
- "name": "payment_token",
4897
- "type": "core::option::Option::<core::starknet::contract_address::ContractAddress>"
4801
+ "name": "royalty_bps",
4802
+ "type": "core::integer::u16"
4898
4803
  },
4899
4804
  {
4900
4805
  "name": "metadata_uri",
@@ -4910,43 +4815,35 @@ var IPTicketCollectionABI = [
4910
4815
  },
4911
4816
  {
4912
4817
  "type": "function",
4913
- "name": "set_collection_active",
4818
+ "name": "mint",
4914
4819
  "inputs": [
4915
4820
  {
4916
- "name": "collection_id",
4917
- "type": "core::integer::u256"
4821
+ "name": "to",
4822
+ "type": "core::starknet::contract_address::ContractAddress"
4918
4823
  },
4919
4824
  {
4920
- "name": "active",
4921
- "type": "core::bool"
4922
- }
4923
- ],
4924
- "outputs": [],
4925
- "state_mutability": "external"
4926
- },
4927
- {
4928
- "type": "function",
4929
- "name": "mint_ticket",
4930
- "inputs": [
4931
- {
4932
- "name": "collection_id",
4825
+ "name": "token_id",
4933
4826
  "type": "core::integer::u256"
4934
- }
4935
- ],
4936
- "outputs": [
4827
+ },
4937
4828
  {
4829
+ "name": "amount",
4938
4830
  "type": "core::integer::u256"
4939
4831
  }
4940
4832
  ],
4833
+ "outputs": [],
4941
4834
  "state_mutability": "external"
4942
4835
  },
4943
4836
  {
4944
4837
  "type": "function",
4945
- "name": "redeem_ticket",
4838
+ "name": "pause_event",
4946
4839
  "inputs": [
4947
4840
  {
4948
4841
  "name": "token_id",
4949
4842
  "type": "core::integer::u256"
4843
+ },
4844
+ {
4845
+ "name": "active",
4846
+ "type": "core::bool"
4950
4847
  }
4951
4848
  ],
4952
4849
  "outputs": [],
@@ -4954,15 +4851,15 @@ var IPTicketCollectionABI = [
4954
4851
  },
4955
4852
  {
4956
4853
  "type": "function",
4957
- "name": "has_valid_ticket",
4854
+ "name": "is_valid",
4958
4855
  "inputs": [
4959
4856
  {
4960
- "name": "user",
4961
- "type": "core::starknet::contract_address::ContractAddress"
4857
+ "name": "token_id",
4858
+ "type": "core::integer::u256"
4962
4859
  },
4963
4860
  {
4964
- "name": "collection_id",
4965
- "type": "core::integer::u256"
4861
+ "name": "holder",
4862
+ "type": "core::starknet::contract_address::ContractAddress"
4966
4863
  }
4967
4864
  ],
4968
4865
  "outputs": [
@@ -4974,23 +4871,7 @@ var IPTicketCollectionABI = [
4974
4871
  },
4975
4872
  {
4976
4873
  "type": "function",
4977
- "name": "get_ticket_collection",
4978
- "inputs": [
4979
- {
4980
- "name": "collection_id",
4981
- "type": "core::integer::u256"
4982
- }
4983
- ],
4984
- "outputs": [
4985
- {
4986
- "type": "ip_ticket::types::TicketCollection"
4987
- }
4988
- ],
4989
- "state_mutability": "view"
4990
- },
4991
- {
4992
- "type": "function",
4993
- "name": "get_ticket_data",
4874
+ "name": "get_event",
4994
4875
  "inputs": [
4995
4876
  {
4996
4877
  "name": "token_id",
@@ -4999,72 +4880,34 @@ var IPTicketCollectionABI = [
4999
4880
  ],
5000
4881
  "outputs": [
5001
4882
  {
5002
- "type": "ip_ticket::types::TicketData"
4883
+ "type": "ip_ticket::types::EventRecord"
5003
4884
  }
5004
4885
  ],
5005
4886
  "state_mutability": "view"
5006
4887
  },
5007
4888
  {
5008
4889
  "type": "function",
5009
- "name": "get_ticket_collection_id",
4890
+ "name": "royalty_info",
5010
4891
  "inputs": [
5011
4892
  {
5012
4893
  "name": "token_id",
5013
4894
  "type": "core::integer::u256"
5014
- }
5015
- ],
5016
- "outputs": [
5017
- {
5018
- "type": "core::integer::u256"
5019
- }
5020
- ],
5021
- "state_mutability": "view"
5022
- },
5023
- {
5024
- "type": "function",
5025
- "name": "get_active_ticket_balance",
5026
- "inputs": [
5027
- {
5028
- "name": "user",
5029
- "type": "core::starknet::contract_address::ContractAddress"
5030
4895
  },
5031
4896
  {
5032
- "name": "collection_id",
5033
- "type": "core::integer::u256"
5034
- }
5035
- ],
5036
- "outputs": [
5037
- {
5038
- "type": "core::integer::u256"
5039
- }
5040
- ],
5041
- "state_mutability": "view"
5042
- },
5043
- {
5044
- "type": "function",
5045
- "name": "get_last_collection_id",
5046
- "inputs": [],
5047
- "outputs": [
5048
- {
4897
+ "name": "sale_price",
5049
4898
  "type": "core::integer::u256"
5050
4899
  }
5051
4900
  ],
5052
- "state_mutability": "view"
5053
- },
5054
- {
5055
- "type": "function",
5056
- "name": "total_supply",
5057
- "inputs": [],
5058
4901
  "outputs": [
5059
4902
  {
5060
- "type": "core::integer::u256"
4903
+ "type": "(core::starknet::contract_address::ContractAddress, core::integer::u256)"
5061
4904
  }
5062
4905
  ],
5063
4906
  "state_mutability": "view"
5064
4907
  },
5065
4908
  {
5066
4909
  "type": "function",
5067
- "name": "royalty_info",
4910
+ "name": "royaltyInfo",
5068
4911
  "inputs": [
5069
4912
  {
5070
4913
  "name": "token_id",
@@ -5084,20 +4927,11 @@ var IPTicketCollectionABI = [
5084
4927
  },
5085
4928
  {
5086
4929
  "type": "function",
5087
- "name": "royaltyInfo",
5088
- "inputs": [
5089
- {
5090
- "name": "token_id",
5091
- "type": "core::integer::u256"
5092
- },
5093
- {
5094
- "name": "sale_price",
5095
- "type": "core::integer::u256"
5096
- }
5097
- ],
4930
+ "name": "version",
4931
+ "inputs": [],
5098
4932
  "outputs": [
5099
4933
  {
5100
- "type": "(core::starknet::contract_address::ContractAddress, core::integer::u256)"
4934
+ "type": "core::byte_array::ByteArray"
5101
4935
  }
5102
4936
  ],
5103
4937
  "state_mutability": "view"
@@ -5106,8 +4940,28 @@ var IPTicketCollectionABI = [
5106
4940
  },
5107
4941
  {
5108
4942
  "type": "impl",
5109
- "name": "ERC721Impl",
5110
- "interface_name": "openzeppelin_token::erc721::interface::IERC721"
4943
+ "name": "ERC1155Impl",
4944
+ "interface_name": "openzeppelin_token::erc1155::interface::IERC1155"
4945
+ },
4946
+ {
4947
+ "type": "struct",
4948
+ "name": "core::array::Span::<core::starknet::contract_address::ContractAddress>",
4949
+ "members": [
4950
+ {
4951
+ "name": "snapshot",
4952
+ "type": "@core::array::Array::<core::starknet::contract_address::ContractAddress>"
4953
+ }
4954
+ ]
4955
+ },
4956
+ {
4957
+ "type": "struct",
4958
+ "name": "core::array::Span::<core::integer::u256>",
4959
+ "members": [
4960
+ {
4961
+ "name": "snapshot",
4962
+ "type": "@core::array::Array::<core::integer::u256>"
4963
+ }
4964
+ ]
5111
4965
  },
5112
4966
  {
5113
4967
  "type": "struct",
@@ -5121,7 +4975,7 @@ var IPTicketCollectionABI = [
5121
4975
  },
5122
4976
  {
5123
4977
  "type": "interface",
5124
- "name": "openzeppelin_token::erc721::interface::IERC721",
4978
+ "name": "openzeppelin_token::erc1155::interface::IERC1155",
5125
4979
  "items": [
5126
4980
  {
5127
4981
  "type": "function",
@@ -5130,6 +4984,10 @@ var IPTicketCollectionABI = [
5130
4984
  {
5131
4985
  "name": "account",
5132
4986
  "type": "core::starknet::contract_address::ContractAddress"
4987
+ },
4988
+ {
4989
+ "name": "token_id",
4990
+ "type": "core::integer::u256"
5133
4991
  }
5134
4992
  ],
5135
4993
  "outputs": [
@@ -5141,16 +4999,20 @@ var IPTicketCollectionABI = [
5141
4999
  },
5142
5000
  {
5143
5001
  "type": "function",
5144
- "name": "owner_of",
5002
+ "name": "balance_of_batch",
5145
5003
  "inputs": [
5146
5004
  {
5147
- "name": "token_id",
5148
- "type": "core::integer::u256"
5005
+ "name": "accounts",
5006
+ "type": "core::array::Span::<core::starknet::contract_address::ContractAddress>"
5007
+ },
5008
+ {
5009
+ "name": "token_ids",
5010
+ "type": "core::array::Span::<core::integer::u256>"
5149
5011
  }
5150
5012
  ],
5151
5013
  "outputs": [
5152
5014
  {
5153
- "type": "core::starknet::contract_address::ContractAddress"
5015
+ "type": "core::array::Span::<core::integer::u256>"
5154
5016
  }
5155
5017
  ],
5156
5018
  "state_mutability": "view"
@@ -5171,6 +5033,10 @@ var IPTicketCollectionABI = [
5171
5033
  "name": "token_id",
5172
5034
  "type": "core::integer::u256"
5173
5035
  },
5036
+ {
5037
+ "name": "value",
5038
+ "type": "core::integer::u256"
5039
+ },
5174
5040
  {
5175
5041
  "name": "data",
5176
5042
  "type": "core::array::Span::<core::felt252>"
@@ -5181,7 +5047,7 @@ var IPTicketCollectionABI = [
5181
5047
  },
5182
5048
  {
5183
5049
  "type": "function",
5184
- "name": "transfer_from",
5050
+ "name": "safe_batch_transfer_from",
5185
5051
  "inputs": [
5186
5052
  {
5187
5053
  "name": "from",
@@ -5192,24 +5058,16 @@ var IPTicketCollectionABI = [
5192
5058
  "type": "core::starknet::contract_address::ContractAddress"
5193
5059
  },
5194
5060
  {
5195
- "name": "token_id",
5196
- "type": "core::integer::u256"
5197
- }
5198
- ],
5199
- "outputs": [],
5200
- "state_mutability": "external"
5201
- },
5202
- {
5203
- "type": "function",
5204
- "name": "approve",
5205
- "inputs": [
5061
+ "name": "token_ids",
5062
+ "type": "core::array::Span::<core::integer::u256>"
5063
+ },
5206
5064
  {
5207
- "name": "to",
5208
- "type": "core::starknet::contract_address::ContractAddress"
5065
+ "name": "values",
5066
+ "type": "core::array::Span::<core::integer::u256>"
5209
5067
  },
5210
5068
  {
5211
- "name": "token_id",
5212
- "type": "core::integer::u256"
5069
+ "name": "data",
5070
+ "type": "core::array::Span::<core::felt252>"
5213
5071
  }
5214
5072
  ],
5215
5073
  "outputs": [],
@@ -5217,66 +5075,50 @@ var IPTicketCollectionABI = [
5217
5075
  },
5218
5076
  {
5219
5077
  "type": "function",
5220
- "name": "set_approval_for_all",
5078
+ "name": "is_approved_for_all",
5221
5079
  "inputs": [
5222
5080
  {
5223
- "name": "operator",
5081
+ "name": "owner",
5224
5082
  "type": "core::starknet::contract_address::ContractAddress"
5225
5083
  },
5226
5084
  {
5227
- "name": "approved",
5228
- "type": "core::bool"
5229
- }
5230
- ],
5231
- "outputs": [],
5232
- "state_mutability": "external"
5233
- },
5234
- {
5235
- "type": "function",
5236
- "name": "get_approved",
5237
- "inputs": [
5238
- {
5239
- "name": "token_id",
5240
- "type": "core::integer::u256"
5085
+ "name": "operator",
5086
+ "type": "core::starknet::contract_address::ContractAddress"
5241
5087
  }
5242
5088
  ],
5243
5089
  "outputs": [
5244
5090
  {
5245
- "type": "core::starknet::contract_address::ContractAddress"
5091
+ "type": "core::bool"
5246
5092
  }
5247
5093
  ],
5248
5094
  "state_mutability": "view"
5249
5095
  },
5250
5096
  {
5251
5097
  "type": "function",
5252
- "name": "is_approved_for_all",
5098
+ "name": "set_approval_for_all",
5253
5099
  "inputs": [
5254
- {
5255
- "name": "owner",
5256
- "type": "core::starknet::contract_address::ContractAddress"
5257
- },
5258
5100
  {
5259
5101
  "name": "operator",
5260
5102
  "type": "core::starknet::contract_address::ContractAddress"
5261
- }
5262
- ],
5263
- "outputs": [
5103
+ },
5264
5104
  {
5105
+ "name": "approved",
5265
5106
  "type": "core::bool"
5266
5107
  }
5267
5108
  ],
5268
- "state_mutability": "view"
5109
+ "outputs": [],
5110
+ "state_mutability": "external"
5269
5111
  }
5270
5112
  ]
5271
5113
  },
5272
5114
  {
5273
5115
  "type": "impl",
5274
- "name": "ERC721CamelOnly",
5275
- "interface_name": "openzeppelin_token::erc721::interface::IERC721CamelOnly"
5116
+ "name": "ERC1155CamelImpl",
5117
+ "interface_name": "openzeppelin_token::erc1155::interface::IERC1155Camel"
5276
5118
  },
5277
5119
  {
5278
5120
  "type": "interface",
5279
- "name": "openzeppelin_token::erc721::interface::IERC721CamelOnly",
5121
+ "name": "openzeppelin_token::erc1155::interface::IERC1155Camel",
5280
5122
  "items": [
5281
5123
  {
5282
5124
  "type": "function",
@@ -5285,6 +5127,10 @@ var IPTicketCollectionABI = [
5285
5127
  {
5286
5128
  "name": "account",
5287
5129
  "type": "core::starknet::contract_address::ContractAddress"
5130
+ },
5131
+ {
5132
+ "name": "tokenId",
5133
+ "type": "core::integer::u256"
5288
5134
  }
5289
5135
  ],
5290
5136
  "outputs": [
@@ -5296,16 +5142,20 @@ var IPTicketCollectionABI = [
5296
5142
  },
5297
5143
  {
5298
5144
  "type": "function",
5299
- "name": "ownerOf",
5145
+ "name": "balanceOfBatch",
5300
5146
  "inputs": [
5301
5147
  {
5302
- "name": "tokenId",
5303
- "type": "core::integer::u256"
5148
+ "name": "accounts",
5149
+ "type": "core::array::Span::<core::starknet::contract_address::ContractAddress>"
5150
+ },
5151
+ {
5152
+ "name": "tokenIds",
5153
+ "type": "core::array::Span::<core::integer::u256>"
5304
5154
  }
5305
5155
  ],
5306
5156
  "outputs": [
5307
5157
  {
5308
- "type": "core::starknet::contract_address::ContractAddress"
5158
+ "type": "core::array::Span::<core::integer::u256>"
5309
5159
  }
5310
5160
  ],
5311
5161
  "state_mutability": "view"
@@ -5326,6 +5176,10 @@ var IPTicketCollectionABI = [
5326
5176
  "name": "tokenId",
5327
5177
  "type": "core::integer::u256"
5328
5178
  },
5179
+ {
5180
+ "name": "value",
5181
+ "type": "core::integer::u256"
5182
+ },
5329
5183
  {
5330
5184
  "name": "data",
5331
5185
  "type": "core::array::Span::<core::felt252>"
@@ -5336,7 +5190,7 @@ var IPTicketCollectionABI = [
5336
5190
  },
5337
5191
  {
5338
5192
  "type": "function",
5339
- "name": "transferFrom",
5193
+ "name": "safeBatchTransferFrom",
5340
5194
  "inputs": [
5341
5195
  {
5342
5196
  "name": "from",
@@ -5347,24 +5201,16 @@ var IPTicketCollectionABI = [
5347
5201
  "type": "core::starknet::contract_address::ContractAddress"
5348
5202
  },
5349
5203
  {
5350
- "name": "tokenId",
5351
- "type": "core::integer::u256"
5352
- }
5353
- ],
5354
- "outputs": [],
5355
- "state_mutability": "external"
5356
- },
5357
- {
5358
- "type": "function",
5359
- "name": "setApprovalForAll",
5360
- "inputs": [
5204
+ "name": "tokenIds",
5205
+ "type": "core::array::Span::<core::integer::u256>"
5206
+ },
5361
5207
  {
5362
- "name": "operator",
5363
- "type": "core::starknet::contract_address::ContractAddress"
5208
+ "name": "values",
5209
+ "type": "core::array::Span::<core::integer::u256>"
5364
5210
  },
5365
5211
  {
5366
- "name": "approved",
5367
- "type": "core::bool"
5212
+ "name": "data",
5213
+ "type": "core::array::Span::<core::felt252>"
5368
5214
  }
5369
5215
  ],
5370
5216
  "outputs": [],
@@ -5372,39 +5218,39 @@ var IPTicketCollectionABI = [
5372
5218
  },
5373
5219
  {
5374
5220
  "type": "function",
5375
- "name": "getApproved",
5221
+ "name": "isApprovedForAll",
5376
5222
  "inputs": [
5377
5223
  {
5378
- "name": "tokenId",
5379
- "type": "core::integer::u256"
5224
+ "name": "owner",
5225
+ "type": "core::starknet::contract_address::ContractAddress"
5226
+ },
5227
+ {
5228
+ "name": "operator",
5229
+ "type": "core::starknet::contract_address::ContractAddress"
5380
5230
  }
5381
5231
  ],
5382
5232
  "outputs": [
5383
5233
  {
5384
- "type": "core::starknet::contract_address::ContractAddress"
5234
+ "type": "core::bool"
5385
5235
  }
5386
5236
  ],
5387
5237
  "state_mutability": "view"
5388
5238
  },
5389
5239
  {
5390
5240
  "type": "function",
5391
- "name": "isApprovedForAll",
5241
+ "name": "setApprovalForAll",
5392
5242
  "inputs": [
5393
- {
5394
- "name": "owner",
5395
- "type": "core::starknet::contract_address::ContractAddress"
5396
- },
5397
5243
  {
5398
5244
  "name": "operator",
5399
5245
  "type": "core::starknet::contract_address::ContractAddress"
5400
- }
5401
- ],
5402
- "outputs": [
5246
+ },
5403
5247
  {
5248
+ "name": "approved",
5404
5249
  "type": "core::bool"
5405
5250
  }
5406
5251
  ],
5407
- "state_mutability": "view"
5252
+ "outputs": [],
5253
+ "state_mutability": "external"
5408
5254
  }
5409
5255
  ]
5410
5256
  },
@@ -5515,9 +5361,14 @@ var IPTicketCollectionABI = [
5515
5361
  },
5516
5362
  {
5517
5363
  "type": "event",
5518
- "name": "openzeppelin_token::erc721::erc721::ERC721Component::Transfer",
5364
+ "name": "openzeppelin_token::erc1155::erc1155::ERC1155Component::TransferSingle",
5519
5365
  "kind": "struct",
5520
5366
  "members": [
5367
+ {
5368
+ "name": "operator",
5369
+ "type": "core::starknet::contract_address::ContractAddress",
5370
+ "kind": "key"
5371
+ },
5521
5372
  {
5522
5373
  "name": "from",
5523
5374
  "type": "core::starknet::contract_address::ContractAddress",
@@ -5529,37 +5380,52 @@ var IPTicketCollectionABI = [
5529
5380
  "kind": "key"
5530
5381
  },
5531
5382
  {
5532
- "name": "token_id",
5383
+ "name": "id",
5533
5384
  "type": "core::integer::u256",
5534
- "kind": "key"
5385
+ "kind": "data"
5386
+ },
5387
+ {
5388
+ "name": "value",
5389
+ "type": "core::integer::u256",
5390
+ "kind": "data"
5535
5391
  }
5536
5392
  ]
5537
5393
  },
5538
5394
  {
5539
5395
  "type": "event",
5540
- "name": "openzeppelin_token::erc721::erc721::ERC721Component::Approval",
5396
+ "name": "openzeppelin_token::erc1155::erc1155::ERC1155Component::TransferBatch",
5541
5397
  "kind": "struct",
5542
5398
  "members": [
5543
5399
  {
5544
- "name": "owner",
5400
+ "name": "operator",
5545
5401
  "type": "core::starknet::contract_address::ContractAddress",
5546
5402
  "kind": "key"
5547
5403
  },
5548
5404
  {
5549
- "name": "approved",
5405
+ "name": "from",
5550
5406
  "type": "core::starknet::contract_address::ContractAddress",
5551
5407
  "kind": "key"
5552
5408
  },
5553
5409
  {
5554
- "name": "token_id",
5555
- "type": "core::integer::u256",
5410
+ "name": "to",
5411
+ "type": "core::starknet::contract_address::ContractAddress",
5556
5412
  "kind": "key"
5413
+ },
5414
+ {
5415
+ "name": "ids",
5416
+ "type": "core::array::Span::<core::integer::u256>",
5417
+ "kind": "data"
5418
+ },
5419
+ {
5420
+ "name": "values",
5421
+ "type": "core::array::Span::<core::integer::u256>",
5422
+ "kind": "data"
5557
5423
  }
5558
5424
  ]
5559
5425
  },
5560
5426
  {
5561
5427
  "type": "event",
5562
- "name": "openzeppelin_token::erc721::erc721::ERC721Component::ApprovalForAll",
5428
+ "name": "openzeppelin_token::erc1155::erc1155::ERC1155Component::ApprovalForAll",
5563
5429
  "kind": "struct",
5564
5430
  "members": [
5565
5431
  {
@@ -5581,22 +5447,44 @@ var IPTicketCollectionABI = [
5581
5447
  },
5582
5448
  {
5583
5449
  "type": "event",
5584
- "name": "openzeppelin_token::erc721::erc721::ERC721Component::Event",
5450
+ "name": "openzeppelin_token::erc1155::erc1155::ERC1155Component::URI",
5451
+ "kind": "struct",
5452
+ "members": [
5453
+ {
5454
+ "name": "value",
5455
+ "type": "core::byte_array::ByteArray",
5456
+ "kind": "data"
5457
+ },
5458
+ {
5459
+ "name": "id",
5460
+ "type": "core::integer::u256",
5461
+ "kind": "key"
5462
+ }
5463
+ ]
5464
+ },
5465
+ {
5466
+ "type": "event",
5467
+ "name": "openzeppelin_token::erc1155::erc1155::ERC1155Component::Event",
5585
5468
  "kind": "enum",
5586
5469
  "variants": [
5587
5470
  {
5588
- "name": "Transfer",
5589
- "type": "openzeppelin_token::erc721::erc721::ERC721Component::Transfer",
5471
+ "name": "TransferSingle",
5472
+ "type": "openzeppelin_token::erc1155::erc1155::ERC1155Component::TransferSingle",
5590
5473
  "kind": "nested"
5591
5474
  },
5592
5475
  {
5593
- "name": "Approval",
5594
- "type": "openzeppelin_token::erc721::erc721::ERC721Component::Approval",
5476
+ "name": "TransferBatch",
5477
+ "type": "openzeppelin_token::erc1155::erc1155::ERC1155Component::TransferBatch",
5595
5478
  "kind": "nested"
5596
5479
  },
5597
5480
  {
5598
5481
  "name": "ApprovalForAll",
5599
- "type": "openzeppelin_token::erc721::erc721::ERC721Component::ApprovalForAll",
5482
+ "type": "openzeppelin_token::erc1155::erc1155::ERC1155Component::ApprovalForAll",
5483
+ "kind": "nested"
5484
+ },
5485
+ {
5486
+ "name": "URI",
5487
+ "type": "openzeppelin_token::erc1155::erc1155::ERC1155Component::URI",
5600
5488
  "kind": "nested"
5601
5489
  }
5602
5490
  ]
@@ -5660,42 +5548,27 @@ var IPTicketCollectionABI = [
5660
5548
  },
5661
5549
  {
5662
5550
  "type": "event",
5663
- "name": "ip_ticket::IPTicketCollection::IPTicketCollection::TicketCollectionCreated",
5551
+ "name": "ip_ticket::IPTicketCollection::IPTicketCollection::EventCreated",
5664
5552
  "kind": "struct",
5665
5553
  "members": [
5666
5554
  {
5667
- "name": "collection_id",
5555
+ "name": "token_id",
5668
5556
  "type": "core::integer::u256",
5669
5557
  "kind": "key"
5670
5558
  },
5671
- {
5672
- "name": "creator",
5673
- "type": "core::starknet::contract_address::ContractAddress",
5674
- "kind": "key"
5675
- },
5676
- {
5677
- "name": "price",
5678
- "type": "core::integer::u256",
5679
- "kind": "data"
5680
- },
5681
5559
  {
5682
5560
  "name": "max_supply",
5683
5561
  "type": "core::integer::u256",
5684
5562
  "kind": "data"
5685
5563
  },
5686
5564
  {
5687
- "name": "expiration",
5688
- "type": "core::integer::u64",
5689
- "kind": "data"
5690
- },
5691
- {
5692
- "name": "royalty_bps",
5693
- "type": "core::integer::u256",
5565
+ "name": "start_time",
5566
+ "type": "core::option::Option::<core::integer::u64>",
5694
5567
  "kind": "data"
5695
5568
  },
5696
5569
  {
5697
- "name": "payment_token",
5698
- "type": "core::option::Option::<core::starknet::contract_address::ContractAddress>",
5570
+ "name": "end_time",
5571
+ "type": "core::option::Option::<core::integer::u64>",
5699
5572
  "kind": "data"
5700
5573
  },
5701
5574
  {
@@ -5712,11 +5585,11 @@ var IPTicketCollectionABI = [
5712
5585
  },
5713
5586
  {
5714
5587
  "type": "event",
5715
- "name": "ip_ticket::IPTicketCollection::IPTicketCollection::CollectionStatusUpdated",
5588
+ "name": "ip_ticket::IPTicketCollection::IPTicketCollection::EventPaused",
5716
5589
  "kind": "struct",
5717
5590
  "members": [
5718
5591
  {
5719
- "name": "collection_id",
5592
+ "name": "token_id",
5720
5593
  "type": "core::integer::u256",
5721
5594
  "kind": "key"
5722
5595
  },
@@ -5724,65 +5597,6 @@ var IPTicketCollectionABI = [
5724
5597
  "name": "active",
5725
5598
  "type": "core::bool",
5726
5599
  "kind": "data"
5727
- },
5728
- {
5729
- "name": "updated_at",
5730
- "type": "core::integer::u64",
5731
- "kind": "data"
5732
- }
5733
- ]
5734
- },
5735
- {
5736
- "type": "event",
5737
- "name": "ip_ticket::IPTicketCollection::IPTicketCollection::TicketMinted",
5738
- "kind": "struct",
5739
- "members": [
5740
- {
5741
- "name": "token_id",
5742
- "type": "core::integer::u256",
5743
- "kind": "key"
5744
- },
5745
- {
5746
- "name": "collection_id",
5747
- "type": "core::integer::u256",
5748
- "kind": "key"
5749
- },
5750
- {
5751
- "name": "owner",
5752
- "type": "core::starknet::contract_address::ContractAddress",
5753
- "kind": "key"
5754
- },
5755
- {
5756
- "name": "minted_at",
5757
- "type": "core::integer::u64",
5758
- "kind": "data"
5759
- }
5760
- ]
5761
- },
5762
- {
5763
- "type": "event",
5764
- "name": "ip_ticket::IPTicketCollection::IPTicketCollection::TicketRedeemed",
5765
- "kind": "struct",
5766
- "members": [
5767
- {
5768
- "name": "token_id",
5769
- "type": "core::integer::u256",
5770
- "kind": "key"
5771
- },
5772
- {
5773
- "name": "collection_id",
5774
- "type": "core::integer::u256",
5775
- "kind": "key"
5776
- },
5777
- {
5778
- "name": "owner",
5779
- "type": "core::starknet::contract_address::ContractAddress",
5780
- "kind": "key"
5781
- },
5782
- {
5783
- "name": "redeemed_at",
5784
- "type": "core::integer::u64",
5785
- "kind": "data"
5786
5600
  }
5787
5601
  ]
5788
5602
  },
@@ -5792,8 +5606,8 @@ var IPTicketCollectionABI = [
5792
5606
  "kind": "enum",
5793
5607
  "variants": [
5794
5608
  {
5795
- "name": "ERC721Event",
5796
- "type": "openzeppelin_token::erc721::erc721::ERC721Component::Event",
5609
+ "name": "ERC1155Event",
5610
+ "type": "openzeppelin_token::erc1155::erc1155::ERC1155Component::Event",
5797
5611
  "kind": "flat"
5798
5612
  },
5799
5613
  {
@@ -5807,23 +5621,13 @@ var IPTicketCollectionABI = [
5807
5621
  "kind": "flat"
5808
5622
  },
5809
5623
  {
5810
- "name": "TicketCollectionCreated",
5811
- "type": "ip_ticket::IPTicketCollection::IPTicketCollection::TicketCollectionCreated",
5812
- "kind": "nested"
5813
- },
5814
- {
5815
- "name": "CollectionStatusUpdated",
5816
- "type": "ip_ticket::IPTicketCollection::IPTicketCollection::CollectionStatusUpdated",
5817
- "kind": "nested"
5818
- },
5819
- {
5820
- "name": "TicketMinted",
5821
- "type": "ip_ticket::IPTicketCollection::IPTicketCollection::TicketMinted",
5624
+ "name": "EventCreated",
5625
+ "type": "ip_ticket::IPTicketCollection::IPTicketCollection::EventCreated",
5822
5626
  "kind": "nested"
5823
5627
  },
5824
5628
  {
5825
- "name": "TicketRedeemed",
5826
- "type": "ip_ticket::IPTicketCollection::IPTicketCollection::TicketRedeemed",
5629
+ "name": "EventPaused",
5630
+ "type": "ip_ticket::IPTicketCollection::IPTicketCollection::EventPaused",
5827
5631
  "kind": "nested"
5828
5632
  }
5829
5633
  ]
@@ -5883,7 +5687,7 @@ var IPTicketCollectionFactoryABI = [
5883
5687
  },
5884
5688
  {
5885
5689
  "type": "function",
5886
- "name": "deploy_ticket_collection",
5690
+ "name": "deploy_collection",
5887
5691
  "inputs": [
5888
5692
  {
5889
5693
  "name": "name",
@@ -5903,6 +5707,47 @@ var IPTicketCollectionFactoryABI = [
5903
5707
  }
5904
5708
  ]
5905
5709
  },
5710
+ {
5711
+ "type": "impl",
5712
+ "name": "SRC5Impl",
5713
+ "interface_name": "openzeppelin_introspection::interface::ISRC5"
5714
+ },
5715
+ {
5716
+ "type": "enum",
5717
+ "name": "core::bool",
5718
+ "variants": [
5719
+ {
5720
+ "name": "False",
5721
+ "type": "()"
5722
+ },
5723
+ {
5724
+ "name": "True",
5725
+ "type": "()"
5726
+ }
5727
+ ]
5728
+ },
5729
+ {
5730
+ "type": "interface",
5731
+ "name": "openzeppelin_introspection::interface::ISRC5",
5732
+ "items": [
5733
+ {
5734
+ "type": "function",
5735
+ "name": "supports_interface",
5736
+ "inputs": [
5737
+ {
5738
+ "name": "interface_id",
5739
+ "type": "core::felt252"
5740
+ }
5741
+ ],
5742
+ "outputs": [
5743
+ {
5744
+ "type": "core::bool"
5745
+ }
5746
+ ],
5747
+ "state_mutability": "view"
5748
+ }
5749
+ ]
5750
+ },
5906
5751
  {
5907
5752
  "type": "constructor",
5908
5753
  "name": "constructor",
@@ -5913,6 +5758,12 @@ var IPTicketCollectionFactoryABI = [
5913
5758
  }
5914
5759
  ]
5915
5760
  },
5761
+ {
5762
+ "type": "event",
5763
+ "name": "openzeppelin_introspection::src5::SRC5Component::Event",
5764
+ "kind": "enum",
5765
+ "variants": []
5766
+ },
5916
5767
  {
5917
5768
  "type": "event",
5918
5769
  "name": "ip_ticket::IPTicketCollectionFactory::IPTicketCollectionFactory::CollectionDeployed",
@@ -5945,6 +5796,11 @@ var IPTicketCollectionFactoryABI = [
5945
5796
  "name": "ip_ticket::IPTicketCollectionFactory::IPTicketCollectionFactory::Event",
5946
5797
  "kind": "enum",
5947
5798
  "variants": [
5799
+ {
5800
+ "name": "SRC5Event",
5801
+ "type": "openzeppelin_introspection::src5::SRC5Component::Event",
5802
+ "kind": "flat"
5803
+ },
5948
5804
  {
5949
5805
  "name": "CollectionDeployed",
5950
5806
  "type": "ip_ticket::IPTicketCollectionFactory::IPTicketCollectionFactory::CollectionDeployed",
@@ -12524,66 +12380,84 @@ var CreatorCoinService = class {
12524
12380
  };
12525
12381
  var TicketService = class {
12526
12382
  constructor(config) {
12383
+ this.config = config;
12527
12384
  this.factoryAddress = getStarknetCoordinates(config.chain).ipTicketsFactory;
12528
12385
  }
12386
+ _factory(account, factoryAddress) {
12387
+ const address = factoryAddress ?? this.factoryAddress;
12388
+ if (!address) throw new Error("IP-Tickets factory address not configured for this chain");
12389
+ return new Contract(IPTicketCollectionFactoryABI, normalizeAddress("STARKNET", address), account);
12390
+ }
12529
12391
  _collection(address, account) {
12530
12392
  return new Contract(IPTicketCollectionABI, normalizeAddress("STARKNET", address), account);
12531
12393
  }
12532
- /** Deploys a new IPTicketCollection via the factory. Caller becomes its owner. */
12533
- async deployTicketCollection(account, params) {
12534
- const factoryAddress = params.factoryAddress ?? this.factoryAddress;
12535
- if (!factoryAddress) {
12536
- throw new Error("IP-Tickets factory address not configured for this chain");
12537
- }
12538
- const factory = new Contract(IPTicketCollectionFactoryABI, factoryAddress, account);
12539
- const call = factory.populate("deploy_ticket_collection", [params.name, params.symbol]);
12394
+ _collectionRead(address) {
12395
+ const provider = new RpcProvider({ nodeUrl: this.config.rpcUrl });
12396
+ return new Contract(IPTicketCollectionABI, normalizeAddress("STARKNET", address), provider);
12397
+ }
12398
+ /** Deploys a new IPTicketCollection via the factory. Caller becomes owner. */
12399
+ async deployCollection(account, params) {
12400
+ const call = this._factory(account, params.factoryAddress).populate("deploy_collection", [params.name, params.symbol]);
12540
12401
  const res = await account.execute([call]);
12541
12402
  return { txHash: res.transaction_hash };
12542
12403
  }
12543
- /** Owner-only. Creates a new ticket collection (event/tier) inside the caller's deployed IPTicketCollection. */
12544
- async createTicketCollection(account, params) {
12545
- const paymentToken = params.paymentToken ? new CairoOption(CairoOptionVariant.Some, params.paymentToken) : new CairoOption(CairoOptionVariant.None);
12546
- const call = this._collection(params.collection, account).populate("create_ticket_collection", [
12547
- cairo.uint256(params.price),
12404
+ /** Owner-only. Creates a new event inside the caller's deployed collection. */
12405
+ async createEvent(account, params) {
12406
+ const startTime = params.startTime != null ? new CairoOption(CairoOptionVariant.Some, params.startTime) : new CairoOption(CairoOptionVariant.None);
12407
+ const endTime = params.endTime != null ? new CairoOption(CairoOptionVariant.Some, params.endTime) : new CairoOption(CairoOptionVariant.None);
12408
+ const call = this._collection(params.collection, account).populate("create_event", [
12548
12409
  cairo.uint256(params.maxSupply),
12549
- params.expiration,
12410
+ startTime,
12411
+ endTime,
12550
12412
  params.royaltyBps,
12551
- paymentToken,
12552
12413
  params.metadataUri
12553
12414
  ]);
12554
12415
  const res = await account.execute([call]);
12555
12416
  return { txHash: res.transaction_hash };
12556
12417
  }
12557
- /** Owner-only. Gates minting only existing tickets keep access/transfer/redeem. */
12558
- async setCollectionActive(account, params) {
12559
- const call = this._collection(params.collection, account).populate("set_collection_active", [
12560
- cairo.uint256(params.collectionId),
12561
- params.active
12418
+ /** Owner-only. Mints `amount` of `tokenId` to `to`. */
12419
+ async mint(account, params) {
12420
+ const call = this._collection(params.collection, account).populate("mint", [
12421
+ params.to,
12422
+ cairo.uint256(params.tokenId),
12423
+ cairo.uint256(params.amount)
12562
12424
  ]);
12563
12425
  const res = await account.execute([call]);
12564
12426
  return { txHash: res.transaction_hash };
12565
12427
  }
12566
- /** Mints a ticket. Prepends an ERC-20 approve when the collection is paid. */
12567
- async mintTicket(account, params) {
12568
- const calls = [];
12569
- if (params.paymentToken && params.price && BigInt(params.price) > 0n) {
12570
- const amount = cairo.uint256(params.price);
12571
- calls.push({
12572
- contractAddress: params.paymentToken,
12573
- entrypoint: "approve",
12574
- calldata: [normalizeAddress("STARKNET", params.collection), amount.low.toString(), amount.high.toString()]
12575
- });
12576
- }
12577
- calls.push(this._collection(params.collection, account).populate("mint_ticket", [cairo.uint256(params.collectionId)]));
12578
- const res = await account.execute(calls);
12579
- return { txHash: res.transaction_hash };
12580
- }
12581
- /** Only the current token owner may redeem. */
12582
- async redeemTicket(account, params) {
12583
- const call = this._collection(params.collection, account).populate("redeem_ticket", [cairo.uint256(params.tokenId)]);
12428
+ /** Owner-only. Pauses or resumes minting for one event. */
12429
+ async pauseEvent(account, params) {
12430
+ const call = this._collection(params.collection, account).populate("pause_event", [
12431
+ cairo.uint256(params.tokenId),
12432
+ params.active
12433
+ ]);
12584
12434
  const res = await account.execute([call]);
12585
12435
  return { txHash: res.transaction_hash };
12586
12436
  }
12437
+ /** Read — true if holder has balance > 0 and current time is within the event window. */
12438
+ async isValid(params) {
12439
+ const result = await this._collectionRead(params.collection).call("is_valid", [
12440
+ cairo.uint256(params.tokenId),
12441
+ params.holder
12442
+ ]);
12443
+ return Boolean(result);
12444
+ }
12445
+ /** Read — returns the EventRecord for a token ID. */
12446
+ async getEvent(params) {
12447
+ const ev = await this._collectionRead(params.collection).call("get_event", [
12448
+ cairo.uint256(params.tokenId)
12449
+ ]);
12450
+ return {
12451
+ creator: ev.creator,
12452
+ maxSupply: BigInt(ev.max_supply),
12453
+ minted: BigInt(ev.minted),
12454
+ startTime: ev.start_time?.variant === "Some" ? Number(ev.start_time.values[0] ?? ev.start_time.value) : null,
12455
+ endTime: ev.end_time?.variant === "Some" ? Number(ev.end_time.values[0] ?? ev.end_time.value) : null,
12456
+ royaltyBps: Number(ev.royalty_bps),
12457
+ metadataUri: ev.metadata_uri,
12458
+ active: Boolean(ev.active)
12459
+ };
12460
+ }
12587
12461
  };
12588
12462
  var ClubService = class {
12589
12463
  constructor(config) {