@medialane/sdk 0.44.0 → 0.46.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.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { hash, cairo, num, Contract, uint256, RpcProvider, ec, encode, TypedDataRevision, shortString, constants } from 'starknet';
2
+ import { hash, cairo, num, Contract, uint256, RpcProvider, CairoOption, CairoOptionVariant, ec, encode, TypedDataRevision, shortString, constants } from 'starknet';
3
3
  import { keccak_256 } from '@noble/hashes/sha3.js';
4
4
  import { base58 } from '@scure/base';
5
5
 
@@ -34,7 +34,17 @@ var COORDINATES = {
34
34
  creatorCoinClassHash: "0x743e4c8a5b96bb83bbf4af04edbbb482d5ece89eed9b729a79fb7df0cd0b6b6",
35
35
  creatorCoinFactoryClassHash: "0x51765926b1344c9a20b8cd4b5abe7b7d47375ae97cf6804db3ea5d4b05a9b55",
36
36
  creatorCoinStartBlock: 10474544,
37
- ekuboCore: "0x00000005dd3d2f4429af886cd1a3b08289dbcea99a294197e9eb43b0e0325b4b"
37
+ ekuboCore: "0x00000005dd3d2f4429af886cd1a3b08289dbcea99a294197e9eb43b0e0325b4b",
38
+ ipTicketsFactory: "0x0664c2d6a4da9ee3ff053ceeba7579c01f2fedfd9d2b57b4c07af3734bd4acab",
39
+ ipTicketCollectionClassHash: "0x086f59c416e365e2bee4ceff9f1dcb96198f2342d50ba4621f60b831863adb6",
40
+ ipTicketsStartBlock: 11404656,
41
+ ipClubRegistry: "0x00e189c619b6bb07d78973a149641c59c37eb0716f8584d7520bce12d303eede",
42
+ ipClubNftClassHash: "0x02bc9b20cca21b04245e9215bf7121f4d7295b195890e449b472b573017fb889",
43
+ ipClubStartBlock: 11404776,
44
+ ipSponsorship: "0x044d9b9c3bb29b94685b0a3fe27a5e2dfa30a3637ab55979c718ebcd3268bc2f",
45
+ ipSponsorshipStartBlock: 11405085
46
+ // ipSponsorshipLicense: pending — user deploying a dedicated ip-erc721/MIP
47
+ // instance via Voyager, separate from the genesis-mint instance.
38
48
  }
39
49
  };
40
50
  function getCoordinates(chain) {
@@ -4635,6 +4645,3887 @@ var IPNftABI = [
4635
4645
  // src/abis/creatorCoinFactory.ts
4636
4646
  var CreatorCoinFactoryABI = [{ "type": "impl", "name": "FactoryImpl", "interface_name": "creator_coin::factory::interface::IFactory" }, { "type": "struct", "name": "core::integer::u256", "members": [{ "name": "low", "type": "core::integer::u128" }, { "name": "high", "type": "core::integer::u128" }] }, { "type": "struct", "name": "core::array::Span::<core::starknet::contract_address::ContractAddress>", "members": [{ "name": "snapshot", "type": "@core::array::Array::<core::starknet::contract_address::ContractAddress>" }] }, { "type": "struct", "name": "core::array::Span::<core::integer::u256>", "members": [{ "name": "snapshot", "type": "@core::array::Array::<core::integer::u256>" }] }, { "type": "struct", "name": "creator_coin::factory::LaunchParameters", "members": [{ "name": "creator_coin_address", "type": "core::starknet::contract_address::ContractAddress" }, { "name": "transfer_restriction_delay", "type": "core::integer::u64" }, { "name": "max_percentage_buy_launch", "type": "core::integer::u16" }, { "name": "quote_address", "type": "core::starknet::contract_address::ContractAddress" }, { "name": "initial_holders", "type": "core::array::Span::<core::starknet::contract_address::ContractAddress>" }, { "name": "initial_holders_amounts", "type": "core::array::Span::<core::integer::u256>" }] }, { "type": "enum", "name": "core::bool", "variants": [{ "name": "False", "type": "()" }, { "name": "True", "type": "()" }] }, { "type": "struct", "name": "ekubo::types::i129::i129", "members": [{ "name": "mag", "type": "core::integer::u128" }, { "name": "sign", "type": "core::bool" }] }, { "type": "struct", "name": "creator_coin::exchanges::ekubo::ekubo_adapter::EkuboPoolParameters", "members": [{ "name": "fee", "type": "core::integer::u128" }, { "name": "tick_spacing", "type": "core::integer::u128" }, { "name": "starting_price", "type": "ekubo::types::i129::i129" }, { "name": "bound", "type": "core::integer::u128" }] }, { "type": "struct", "name": "ekubo::types::keys::PoolKey", "members": [{ "name": "token0", "type": "core::starknet::contract_address::ContractAddress" }, { "name": "token1", "type": "core::starknet::contract_address::ContractAddress" }, { "name": "fee", "type": "core::integer::u128" }, { "name": "tick_spacing", "type": "core::integer::u128" }, { "name": "extension", "type": "core::starknet::contract_address::ContractAddress" }] }, { "type": "struct", "name": "ekubo::types::bounds::Bounds", "members": [{ "name": "lower", "type": "ekubo::types::i129::i129" }, { "name": "upper", "type": "ekubo::types::i129::i129" }] }, { "type": "struct", "name": "creator_coin::exchanges::ekubo::launcher::EkuboLP", "members": [{ "name": "owner", "type": "core::starknet::contract_address::ContractAddress" }, { "name": "quote_address", "type": "core::starknet::contract_address::ContractAddress" }, { "name": "pool_key", "type": "ekubo::types::keys::PoolKey" }, { "name": "bounds", "type": "ekubo::types::bounds::Bounds" }] }, { "type": "enum", "name": "creator_coin::exchanges::SupportedExchanges", "variants": [{ "name": "Jediswap", "type": "()" }, { "name": "Ekubo", "type": "()" }, { "name": "Starkdefi", "type": "()" }] }, { "type": "enum", "name": "creator_coin::token::creator_coin::LiquidityType", "variants": [{ "name": "JediERC20", "type": "core::starknet::contract_address::ContractAddress" }, { "name": "StarkDeFiERC20", "type": "core::starknet::contract_address::ContractAddress" }, { "name": "EkuboNFT", "type": "core::integer::u64" }] }, { "type": "enum", "name": "core::option::Option::<(core::starknet::contract_address::ContractAddress, creator_coin::token::creator_coin::LiquidityType)>", "variants": [{ "name": "Some", "type": "(core::starknet::contract_address::ContractAddress, creator_coin::token::creator_coin::LiquidityType)" }, { "name": "None", "type": "()" }] }, { "type": "interface", "name": "creator_coin::factory::interface::IFactory", "items": [{ "type": "function", "name": "create_creator_coin", "inputs": [{ "name": "owner", "type": "core::starknet::contract_address::ContractAddress" }, { "name": "name", "type": "core::felt252" }, { "name": "symbol", "type": "core::felt252" }, { "name": "initial_supply", "type": "core::integer::u256" }, { "name": "contract_address_salt", "type": "core::felt252" }], "outputs": [{ "type": "core::starknet::contract_address::ContractAddress" }], "state_mutability": "external" }, { "type": "function", "name": "launch_on_jediswap", "inputs": [{ "name": "launch_parameters", "type": "creator_coin::factory::LaunchParameters" }, { "name": "quote_amount", "type": "core::integer::u256" }, { "name": "unlock_time", "type": "core::integer::u64" }], "outputs": [{ "type": "core::starknet::contract_address::ContractAddress" }], "state_mutability": "external" }, { "type": "function", "name": "launch_on_ekubo", "inputs": [{ "name": "launch_parameters", "type": "creator_coin::factory::LaunchParameters" }, { "name": "ekubo_parameters", "type": "creator_coin::exchanges::ekubo::ekubo_adapter::EkuboPoolParameters" }], "outputs": [{ "type": "(core::integer::u64, creator_coin::exchanges::ekubo::launcher::EkuboLP)" }], "state_mutability": "external" }, { "type": "function", "name": "launch_on_starkdefi", "inputs": [{ "name": "launch_parameters", "type": "creator_coin::factory::LaunchParameters" }, { "name": "quote_amount", "type": "core::integer::u256" }, { "name": "unlock_time", "type": "core::integer::u64" }], "outputs": [{ "type": "core::starknet::contract_address::ContractAddress" }], "state_mutability": "external" }, { "type": "function", "name": "exchange_address", "inputs": [{ "name": "exchange", "type": "creator_coin::exchanges::SupportedExchanges" }], "outputs": [{ "type": "core::starknet::contract_address::ContractAddress" }], "state_mutability": "view" }, { "type": "function", "name": "lock_manager_address", "inputs": [], "outputs": [{ "type": "core::starknet::contract_address::ContractAddress" }], "state_mutability": "view" }, { "type": "function", "name": "locked_liquidity", "inputs": [{ "name": "token", "type": "core::starknet::contract_address::ContractAddress" }], "outputs": [{ "type": "core::option::Option::<(core::starknet::contract_address::ContractAddress, creator_coin::token::creator_coin::LiquidityType)>" }], "state_mutability": "view" }, { "type": "function", "name": "is_creator_coin", "inputs": [{ "name": "address", "type": "core::starknet::contract_address::ContractAddress" }], "outputs": [{ "type": "core::bool" }], "state_mutability": "view" }, { "type": "function", "name": "ekubo_core_address", "inputs": [], "outputs": [{ "type": "core::starknet::contract_address::ContractAddress" }], "state_mutability": "view" }] }, { "type": "struct", "name": "core::array::Span::<(creator_coin::exchanges::SupportedExchanges, core::starknet::contract_address::ContractAddress)>", "members": [{ "name": "snapshot", "type": "@core::array::Array::<(creator_coin::exchanges::SupportedExchanges, core::starknet::contract_address::ContractAddress)>" }] }, { "type": "struct", "name": "core::array::Span::<(core::starknet::contract_address::ContractAddress, core::starknet::contract_address::ContractAddress)>", "members": [{ "name": "snapshot", "type": "@core::array::Array::<(core::starknet::contract_address::ContractAddress, core::starknet::contract_address::ContractAddress)>" }] }, { "type": "constructor", "name": "constructor", "inputs": [{ "name": "creator_coin_class_hash", "type": "core::starknet::class_hash::ClassHash" }, { "name": "lock_manager_address", "type": "core::starknet::contract_address::ContractAddress" }, { "name": "exchanges", "type": "core::array::Span::<(creator_coin::exchanges::SupportedExchanges, core::starknet::contract_address::ContractAddress)>" }, { "name": "migrated_tokens", "type": "core::array::Span::<(core::starknet::contract_address::ContractAddress, core::starknet::contract_address::ContractAddress)>" }] }, { "type": "event", "name": "creator_coin::factory::factory::Factory::CreatorCoinCreated", "kind": "struct", "members": [{ "name": "owner", "type": "core::starknet::contract_address::ContractAddress", "kind": "data" }, { "name": "name", "type": "core::felt252", "kind": "data" }, { "name": "symbol", "type": "core::felt252", "kind": "data" }, { "name": "initial_supply", "type": "core::integer::u256", "kind": "data" }, { "name": "creator_coin_address", "type": "core::starknet::contract_address::ContractAddress", "kind": "data" }] }, { "type": "event", "name": "creator_coin::factory::factory::Factory::CreatorCoinLaunched", "kind": "struct", "members": [{ "name": "creator_coin_address", "type": "core::starknet::contract_address::ContractAddress", "kind": "data" }, { "name": "quote_token", "type": "core::starknet::contract_address::ContractAddress", "kind": "data" }, { "name": "exchange_name", "type": "core::felt252", "kind": "data" }] }, { "type": "event", "name": "creator_coin::factory::factory::Factory::Event", "kind": "enum", "variants": [{ "name": "CreatorCoinCreated", "type": "creator_coin::factory::factory::Factory::CreatorCoinCreated", "kind": "nested" }, { "name": "CreatorCoinLaunched", "type": "creator_coin::factory::factory::Factory::CreatorCoinLaunched", "kind": "nested" }] }];
4637
4647
 
4648
+ // src/abis/ipTicketCollection.ts
4649
+ var IPTicketCollectionABI = [
4650
+ {
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
+ ]
4672
+ },
4673
+ {
4674
+ "type": "struct",
4675
+ "name": "core::integer::u256",
4676
+ "members": [
4677
+ {
4678
+ "name": "low",
4679
+ "type": "core::integer::u128"
4680
+ },
4681
+ {
4682
+ "name": "high",
4683
+ "type": "core::integer::u128"
4684
+ }
4685
+ ]
4686
+ },
4687
+ {
4688
+ "type": "interface",
4689
+ "name": "openzeppelin_token::erc721::interface::IERC721Metadata",
4690
+ "items": [
4691
+ {
4692
+ "type": "function",
4693
+ "name": "name",
4694
+ "inputs": [],
4695
+ "outputs": [
4696
+ {
4697
+ "type": "core::byte_array::ByteArray"
4698
+ }
4699
+ ],
4700
+ "state_mutability": "view"
4701
+ },
4702
+ {
4703
+ "type": "function",
4704
+ "name": "symbol",
4705
+ "inputs": [],
4706
+ "outputs": [
4707
+ {
4708
+ "type": "core::byte_array::ByteArray"
4709
+ }
4710
+ ],
4711
+ "state_mutability": "view"
4712
+ },
4713
+ {
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"
4728
+ }
4729
+ ]
4730
+ },
4731
+ {
4732
+ "type": "impl",
4733
+ "name": "ERC721MetadataCamelOnlyImpl",
4734
+ "interface_name": "openzeppelin_token::erc721::interface::IERC721MetadataCamelOnly"
4735
+ },
4736
+ {
4737
+ "type": "interface",
4738
+ "name": "openzeppelin_token::erc721::interface::IERC721MetadataCamelOnly",
4739
+ "items": [
4740
+ {
4741
+ "type": "function",
4742
+ "name": "tokenURI",
4743
+ "inputs": [
4744
+ {
4745
+ "name": "tokenId",
4746
+ "type": "core::integer::u256"
4747
+ }
4748
+ ],
4749
+ "outputs": [
4750
+ {
4751
+ "type": "core::byte_array::ByteArray"
4752
+ }
4753
+ ],
4754
+ "state_mutability": "view"
4755
+ }
4756
+ ]
4757
+ },
4758
+ {
4759
+ "type": "impl",
4760
+ "name": "IPTicketImpl",
4761
+ "interface_name": "ip_ticket::interface::IIPTicketCollection"
4762
+ },
4763
+ {
4764
+ "type": "enum",
4765
+ "name": "core::option::Option::<core::starknet::contract_address::ContractAddress>",
4766
+ "variants": [
4767
+ {
4768
+ "name": "Some",
4769
+ "type": "core::starknet::contract_address::ContractAddress"
4770
+ },
4771
+ {
4772
+ "name": "None",
4773
+ "type": "()"
4774
+ }
4775
+ ]
4776
+ },
4777
+ {
4778
+ "type": "enum",
4779
+ "name": "core::bool",
4780
+ "variants": [
4781
+ {
4782
+ "name": "False",
4783
+ "type": "()"
4784
+ },
4785
+ {
4786
+ "name": "True",
4787
+ "type": "()"
4788
+ }
4789
+ ]
4790
+ },
4791
+ {
4792
+ "type": "struct",
4793
+ "name": "ip_ticket::types::TicketCollection",
4794
+ "members": [
4795
+ {
4796
+ "name": "creator",
4797
+ "type": "core::starknet::contract_address::ContractAddress"
4798
+ },
4799
+ {
4800
+ "name": "price",
4801
+ "type": "core::integer::u256"
4802
+ },
4803
+ {
4804
+ "name": "max_supply",
4805
+ "type": "core::integer::u256"
4806
+ },
4807
+ {
4808
+ "name": "minted",
4809
+ "type": "core::integer::u256"
4810
+ },
4811
+ {
4812
+ "name": "expiration",
4813
+ "type": "core::integer::u64"
4814
+ },
4815
+ {
4816
+ "name": "royalty_bps",
4817
+ "type": "core::integer::u256"
4818
+ },
4819
+ {
4820
+ "name": "payment_token",
4821
+ "type": "core::option::Option::<core::starknet::contract_address::ContractAddress>"
4822
+ },
4823
+ {
4824
+ "name": "metadata_uri",
4825
+ "type": "core::byte_array::ByteArray"
4826
+ },
4827
+ {
4828
+ "name": "active",
4829
+ "type": "core::bool"
4830
+ }
4831
+ ]
4832
+ },
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
+ {
4872
+ "type": "interface",
4873
+ "name": "ip_ticket::interface::IIPTicketCollection",
4874
+ "items": [
4875
+ {
4876
+ "type": "function",
4877
+ "name": "create_ticket_collection",
4878
+ "inputs": [
4879
+ {
4880
+ "name": "price",
4881
+ "type": "core::integer::u256"
4882
+ },
4883
+ {
4884
+ "name": "max_supply",
4885
+ "type": "core::integer::u256"
4886
+ },
4887
+ {
4888
+ "name": "expiration",
4889
+ "type": "core::integer::u64"
4890
+ },
4891
+ {
4892
+ "name": "royalty_bps",
4893
+ "type": "core::integer::u256"
4894
+ },
4895
+ {
4896
+ "name": "payment_token",
4897
+ "type": "core::option::Option::<core::starknet::contract_address::ContractAddress>"
4898
+ },
4899
+ {
4900
+ "name": "metadata_uri",
4901
+ "type": "core::byte_array::ByteArray"
4902
+ }
4903
+ ],
4904
+ "outputs": [
4905
+ {
4906
+ "type": "core::integer::u256"
4907
+ }
4908
+ ],
4909
+ "state_mutability": "external"
4910
+ },
4911
+ {
4912
+ "type": "function",
4913
+ "name": "set_collection_active",
4914
+ "inputs": [
4915
+ {
4916
+ "name": "collection_id",
4917
+ "type": "core::integer::u256"
4918
+ },
4919
+ {
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",
4933
+ "type": "core::integer::u256"
4934
+ }
4935
+ ],
4936
+ "outputs": [
4937
+ {
4938
+ "type": "core::integer::u256"
4939
+ }
4940
+ ],
4941
+ "state_mutability": "external"
4942
+ },
4943
+ {
4944
+ "type": "function",
4945
+ "name": "redeem_ticket",
4946
+ "inputs": [
4947
+ {
4948
+ "name": "token_id",
4949
+ "type": "core::integer::u256"
4950
+ }
4951
+ ],
4952
+ "outputs": [],
4953
+ "state_mutability": "external"
4954
+ },
4955
+ {
4956
+ "type": "function",
4957
+ "name": "has_valid_ticket",
4958
+ "inputs": [
4959
+ {
4960
+ "name": "user",
4961
+ "type": "core::starknet::contract_address::ContractAddress"
4962
+ },
4963
+ {
4964
+ "name": "collection_id",
4965
+ "type": "core::integer::u256"
4966
+ }
4967
+ ],
4968
+ "outputs": [
4969
+ {
4970
+ "type": "core::bool"
4971
+ }
4972
+ ],
4973
+ "state_mutability": "view"
4974
+ },
4975
+ {
4976
+ "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",
4994
+ "inputs": [
4995
+ {
4996
+ "name": "token_id",
4997
+ "type": "core::integer::u256"
4998
+ }
4999
+ ],
5000
+ "outputs": [
5001
+ {
5002
+ "type": "ip_ticket::types::TicketData"
5003
+ }
5004
+ ],
5005
+ "state_mutability": "view"
5006
+ },
5007
+ {
5008
+ "type": "function",
5009
+ "name": "get_ticket_collection_id",
5010
+ "inputs": [
5011
+ {
5012
+ "name": "token_id",
5013
+ "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
+ },
5031
+ {
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
+ {
5049
+ "type": "core::integer::u256"
5050
+ }
5051
+ ],
5052
+ "state_mutability": "view"
5053
+ },
5054
+ {
5055
+ "type": "function",
5056
+ "name": "total_supply",
5057
+ "inputs": [],
5058
+ "outputs": [
5059
+ {
5060
+ "type": "core::integer::u256"
5061
+ }
5062
+ ],
5063
+ "state_mutability": "view"
5064
+ },
5065
+ {
5066
+ "type": "function",
5067
+ "name": "royalty_info",
5068
+ "inputs": [
5069
+ {
5070
+ "name": "token_id",
5071
+ "type": "core::integer::u256"
5072
+ },
5073
+ {
5074
+ "name": "sale_price",
5075
+ "type": "core::integer::u256"
5076
+ }
5077
+ ],
5078
+ "outputs": [
5079
+ {
5080
+ "type": "(core::starknet::contract_address::ContractAddress, core::integer::u256)"
5081
+ }
5082
+ ],
5083
+ "state_mutability": "view"
5084
+ },
5085
+ {
5086
+ "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
+ ],
5098
+ "outputs": [
5099
+ {
5100
+ "type": "(core::starknet::contract_address::ContractAddress, core::integer::u256)"
5101
+ }
5102
+ ],
5103
+ "state_mutability": "view"
5104
+ }
5105
+ ]
5106
+ },
5107
+ {
5108
+ "type": "impl",
5109
+ "name": "ERC721Impl",
5110
+ "interface_name": "openzeppelin_token::erc721::interface::IERC721"
5111
+ },
5112
+ {
5113
+ "type": "struct",
5114
+ "name": "core::array::Span::<core::felt252>",
5115
+ "members": [
5116
+ {
5117
+ "name": "snapshot",
5118
+ "type": "@core::array::Array::<core::felt252>"
5119
+ }
5120
+ ]
5121
+ },
5122
+ {
5123
+ "type": "interface",
5124
+ "name": "openzeppelin_token::erc721::interface::IERC721",
5125
+ "items": [
5126
+ {
5127
+ "type": "function",
5128
+ "name": "balance_of",
5129
+ "inputs": [
5130
+ {
5131
+ "name": "account",
5132
+ "type": "core::starknet::contract_address::ContractAddress"
5133
+ }
5134
+ ],
5135
+ "outputs": [
5136
+ {
5137
+ "type": "core::integer::u256"
5138
+ }
5139
+ ],
5140
+ "state_mutability": "view"
5141
+ },
5142
+ {
5143
+ "type": "function",
5144
+ "name": "owner_of",
5145
+ "inputs": [
5146
+ {
5147
+ "name": "token_id",
5148
+ "type": "core::integer::u256"
5149
+ }
5150
+ ],
5151
+ "outputs": [
5152
+ {
5153
+ "type": "core::starknet::contract_address::ContractAddress"
5154
+ }
5155
+ ],
5156
+ "state_mutability": "view"
5157
+ },
5158
+ {
5159
+ "type": "function",
5160
+ "name": "safe_transfer_from",
5161
+ "inputs": [
5162
+ {
5163
+ "name": "from",
5164
+ "type": "core::starknet::contract_address::ContractAddress"
5165
+ },
5166
+ {
5167
+ "name": "to",
5168
+ "type": "core::starknet::contract_address::ContractAddress"
5169
+ },
5170
+ {
5171
+ "name": "token_id",
5172
+ "type": "core::integer::u256"
5173
+ },
5174
+ {
5175
+ "name": "data",
5176
+ "type": "core::array::Span::<core::felt252>"
5177
+ }
5178
+ ],
5179
+ "outputs": [],
5180
+ "state_mutability": "external"
5181
+ },
5182
+ {
5183
+ "type": "function",
5184
+ "name": "transfer_from",
5185
+ "inputs": [
5186
+ {
5187
+ "name": "from",
5188
+ "type": "core::starknet::contract_address::ContractAddress"
5189
+ },
5190
+ {
5191
+ "name": "to",
5192
+ "type": "core::starknet::contract_address::ContractAddress"
5193
+ },
5194
+ {
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": [
5206
+ {
5207
+ "name": "to",
5208
+ "type": "core::starknet::contract_address::ContractAddress"
5209
+ },
5210
+ {
5211
+ "name": "token_id",
5212
+ "type": "core::integer::u256"
5213
+ }
5214
+ ],
5215
+ "outputs": [],
5216
+ "state_mutability": "external"
5217
+ },
5218
+ {
5219
+ "type": "function",
5220
+ "name": "set_approval_for_all",
5221
+ "inputs": [
5222
+ {
5223
+ "name": "operator",
5224
+ "type": "core::starknet::contract_address::ContractAddress"
5225
+ },
5226
+ {
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"
5241
+ }
5242
+ ],
5243
+ "outputs": [
5244
+ {
5245
+ "type": "core::starknet::contract_address::ContractAddress"
5246
+ }
5247
+ ],
5248
+ "state_mutability": "view"
5249
+ },
5250
+ {
5251
+ "type": "function",
5252
+ "name": "is_approved_for_all",
5253
+ "inputs": [
5254
+ {
5255
+ "name": "owner",
5256
+ "type": "core::starknet::contract_address::ContractAddress"
5257
+ },
5258
+ {
5259
+ "name": "operator",
5260
+ "type": "core::starknet::contract_address::ContractAddress"
5261
+ }
5262
+ ],
5263
+ "outputs": [
5264
+ {
5265
+ "type": "core::bool"
5266
+ }
5267
+ ],
5268
+ "state_mutability": "view"
5269
+ }
5270
+ ]
5271
+ },
5272
+ {
5273
+ "type": "impl",
5274
+ "name": "ERC721CamelOnly",
5275
+ "interface_name": "openzeppelin_token::erc721::interface::IERC721CamelOnly"
5276
+ },
5277
+ {
5278
+ "type": "interface",
5279
+ "name": "openzeppelin_token::erc721::interface::IERC721CamelOnly",
5280
+ "items": [
5281
+ {
5282
+ "type": "function",
5283
+ "name": "balanceOf",
5284
+ "inputs": [
5285
+ {
5286
+ "name": "account",
5287
+ "type": "core::starknet::contract_address::ContractAddress"
5288
+ }
5289
+ ],
5290
+ "outputs": [
5291
+ {
5292
+ "type": "core::integer::u256"
5293
+ }
5294
+ ],
5295
+ "state_mutability": "view"
5296
+ },
5297
+ {
5298
+ "type": "function",
5299
+ "name": "ownerOf",
5300
+ "inputs": [
5301
+ {
5302
+ "name": "tokenId",
5303
+ "type": "core::integer::u256"
5304
+ }
5305
+ ],
5306
+ "outputs": [
5307
+ {
5308
+ "type": "core::starknet::contract_address::ContractAddress"
5309
+ }
5310
+ ],
5311
+ "state_mutability": "view"
5312
+ },
5313
+ {
5314
+ "type": "function",
5315
+ "name": "safeTransferFrom",
5316
+ "inputs": [
5317
+ {
5318
+ "name": "from",
5319
+ "type": "core::starknet::contract_address::ContractAddress"
5320
+ },
5321
+ {
5322
+ "name": "to",
5323
+ "type": "core::starknet::contract_address::ContractAddress"
5324
+ },
5325
+ {
5326
+ "name": "tokenId",
5327
+ "type": "core::integer::u256"
5328
+ },
5329
+ {
5330
+ "name": "data",
5331
+ "type": "core::array::Span::<core::felt252>"
5332
+ }
5333
+ ],
5334
+ "outputs": [],
5335
+ "state_mutability": "external"
5336
+ },
5337
+ {
5338
+ "type": "function",
5339
+ "name": "transferFrom",
5340
+ "inputs": [
5341
+ {
5342
+ "name": "from",
5343
+ "type": "core::starknet::contract_address::ContractAddress"
5344
+ },
5345
+ {
5346
+ "name": "to",
5347
+ "type": "core::starknet::contract_address::ContractAddress"
5348
+ },
5349
+ {
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": [
5361
+ {
5362
+ "name": "operator",
5363
+ "type": "core::starknet::contract_address::ContractAddress"
5364
+ },
5365
+ {
5366
+ "name": "approved",
5367
+ "type": "core::bool"
5368
+ }
5369
+ ],
5370
+ "outputs": [],
5371
+ "state_mutability": "external"
5372
+ },
5373
+ {
5374
+ "type": "function",
5375
+ "name": "getApproved",
5376
+ "inputs": [
5377
+ {
5378
+ "name": "tokenId",
5379
+ "type": "core::integer::u256"
5380
+ }
5381
+ ],
5382
+ "outputs": [
5383
+ {
5384
+ "type": "core::starknet::contract_address::ContractAddress"
5385
+ }
5386
+ ],
5387
+ "state_mutability": "view"
5388
+ },
5389
+ {
5390
+ "type": "function",
5391
+ "name": "isApprovedForAll",
5392
+ "inputs": [
5393
+ {
5394
+ "name": "owner",
5395
+ "type": "core::starknet::contract_address::ContractAddress"
5396
+ },
5397
+ {
5398
+ "name": "operator",
5399
+ "type": "core::starknet::contract_address::ContractAddress"
5400
+ }
5401
+ ],
5402
+ "outputs": [
5403
+ {
5404
+ "type": "core::bool"
5405
+ }
5406
+ ],
5407
+ "state_mutability": "view"
5408
+ }
5409
+ ]
5410
+ },
5411
+ {
5412
+ "type": "impl",
5413
+ "name": "SRC5Impl",
5414
+ "interface_name": "openzeppelin_introspection::interface::ISRC5"
5415
+ },
5416
+ {
5417
+ "type": "interface",
5418
+ "name": "openzeppelin_introspection::interface::ISRC5",
5419
+ "items": [
5420
+ {
5421
+ "type": "function",
5422
+ "name": "supports_interface",
5423
+ "inputs": [
5424
+ {
5425
+ "name": "interface_id",
5426
+ "type": "core::felt252"
5427
+ }
5428
+ ],
5429
+ "outputs": [
5430
+ {
5431
+ "type": "core::bool"
5432
+ }
5433
+ ],
5434
+ "state_mutability": "view"
5435
+ }
5436
+ ]
5437
+ },
5438
+ {
5439
+ "type": "impl",
5440
+ "name": "OwnableMixinImpl",
5441
+ "interface_name": "openzeppelin_access::ownable::interface::OwnableABI"
5442
+ },
5443
+ {
5444
+ "type": "interface",
5445
+ "name": "openzeppelin_access::ownable::interface::OwnableABI",
5446
+ "items": [
5447
+ {
5448
+ "type": "function",
5449
+ "name": "owner",
5450
+ "inputs": [],
5451
+ "outputs": [
5452
+ {
5453
+ "type": "core::starknet::contract_address::ContractAddress"
5454
+ }
5455
+ ],
5456
+ "state_mutability": "view"
5457
+ },
5458
+ {
5459
+ "type": "function",
5460
+ "name": "transfer_ownership",
5461
+ "inputs": [
5462
+ {
5463
+ "name": "new_owner",
5464
+ "type": "core::starknet::contract_address::ContractAddress"
5465
+ }
5466
+ ],
5467
+ "outputs": [],
5468
+ "state_mutability": "external"
5469
+ },
5470
+ {
5471
+ "type": "function",
5472
+ "name": "renounce_ownership",
5473
+ "inputs": [],
5474
+ "outputs": [],
5475
+ "state_mutability": "external"
5476
+ },
5477
+ {
5478
+ "type": "function",
5479
+ "name": "transferOwnership",
5480
+ "inputs": [
5481
+ {
5482
+ "name": "newOwner",
5483
+ "type": "core::starknet::contract_address::ContractAddress"
5484
+ }
5485
+ ],
5486
+ "outputs": [],
5487
+ "state_mutability": "external"
5488
+ },
5489
+ {
5490
+ "type": "function",
5491
+ "name": "renounceOwnership",
5492
+ "inputs": [],
5493
+ "outputs": [],
5494
+ "state_mutability": "external"
5495
+ }
5496
+ ]
5497
+ },
5498
+ {
5499
+ "type": "constructor",
5500
+ "name": "constructor",
5501
+ "inputs": [
5502
+ {
5503
+ "name": "name",
5504
+ "type": "core::byte_array::ByteArray"
5505
+ },
5506
+ {
5507
+ "name": "symbol",
5508
+ "type": "core::byte_array::ByteArray"
5509
+ },
5510
+ {
5511
+ "name": "owner",
5512
+ "type": "core::starknet::contract_address::ContractAddress"
5513
+ }
5514
+ ]
5515
+ },
5516
+ {
5517
+ "type": "event",
5518
+ "name": "openzeppelin_token::erc721::erc721::ERC721Component::Transfer",
5519
+ "kind": "struct",
5520
+ "members": [
5521
+ {
5522
+ "name": "from",
5523
+ "type": "core::starknet::contract_address::ContractAddress",
5524
+ "kind": "key"
5525
+ },
5526
+ {
5527
+ "name": "to",
5528
+ "type": "core::starknet::contract_address::ContractAddress",
5529
+ "kind": "key"
5530
+ },
5531
+ {
5532
+ "name": "token_id",
5533
+ "type": "core::integer::u256",
5534
+ "kind": "key"
5535
+ }
5536
+ ]
5537
+ },
5538
+ {
5539
+ "type": "event",
5540
+ "name": "openzeppelin_token::erc721::erc721::ERC721Component::Approval",
5541
+ "kind": "struct",
5542
+ "members": [
5543
+ {
5544
+ "name": "owner",
5545
+ "type": "core::starknet::contract_address::ContractAddress",
5546
+ "kind": "key"
5547
+ },
5548
+ {
5549
+ "name": "approved",
5550
+ "type": "core::starknet::contract_address::ContractAddress",
5551
+ "kind": "key"
5552
+ },
5553
+ {
5554
+ "name": "token_id",
5555
+ "type": "core::integer::u256",
5556
+ "kind": "key"
5557
+ }
5558
+ ]
5559
+ },
5560
+ {
5561
+ "type": "event",
5562
+ "name": "openzeppelin_token::erc721::erc721::ERC721Component::ApprovalForAll",
5563
+ "kind": "struct",
5564
+ "members": [
5565
+ {
5566
+ "name": "owner",
5567
+ "type": "core::starknet::contract_address::ContractAddress",
5568
+ "kind": "key"
5569
+ },
5570
+ {
5571
+ "name": "operator",
5572
+ "type": "core::starknet::contract_address::ContractAddress",
5573
+ "kind": "key"
5574
+ },
5575
+ {
5576
+ "name": "approved",
5577
+ "type": "core::bool",
5578
+ "kind": "data"
5579
+ }
5580
+ ]
5581
+ },
5582
+ {
5583
+ "type": "event",
5584
+ "name": "openzeppelin_token::erc721::erc721::ERC721Component::Event",
5585
+ "kind": "enum",
5586
+ "variants": [
5587
+ {
5588
+ "name": "Transfer",
5589
+ "type": "openzeppelin_token::erc721::erc721::ERC721Component::Transfer",
5590
+ "kind": "nested"
5591
+ },
5592
+ {
5593
+ "name": "Approval",
5594
+ "type": "openzeppelin_token::erc721::erc721::ERC721Component::Approval",
5595
+ "kind": "nested"
5596
+ },
5597
+ {
5598
+ "name": "ApprovalForAll",
5599
+ "type": "openzeppelin_token::erc721::erc721::ERC721Component::ApprovalForAll",
5600
+ "kind": "nested"
5601
+ }
5602
+ ]
5603
+ },
5604
+ {
5605
+ "type": "event",
5606
+ "name": "openzeppelin_introspection::src5::SRC5Component::Event",
5607
+ "kind": "enum",
5608
+ "variants": []
5609
+ },
5610
+ {
5611
+ "type": "event",
5612
+ "name": "openzeppelin_access::ownable::ownable::OwnableComponent::OwnershipTransferred",
5613
+ "kind": "struct",
5614
+ "members": [
5615
+ {
5616
+ "name": "previous_owner",
5617
+ "type": "core::starknet::contract_address::ContractAddress",
5618
+ "kind": "key"
5619
+ },
5620
+ {
5621
+ "name": "new_owner",
5622
+ "type": "core::starknet::contract_address::ContractAddress",
5623
+ "kind": "key"
5624
+ }
5625
+ ]
5626
+ },
5627
+ {
5628
+ "type": "event",
5629
+ "name": "openzeppelin_access::ownable::ownable::OwnableComponent::OwnershipTransferStarted",
5630
+ "kind": "struct",
5631
+ "members": [
5632
+ {
5633
+ "name": "previous_owner",
5634
+ "type": "core::starknet::contract_address::ContractAddress",
5635
+ "kind": "key"
5636
+ },
5637
+ {
5638
+ "name": "new_owner",
5639
+ "type": "core::starknet::contract_address::ContractAddress",
5640
+ "kind": "key"
5641
+ }
5642
+ ]
5643
+ },
5644
+ {
5645
+ "type": "event",
5646
+ "name": "openzeppelin_access::ownable::ownable::OwnableComponent::Event",
5647
+ "kind": "enum",
5648
+ "variants": [
5649
+ {
5650
+ "name": "OwnershipTransferred",
5651
+ "type": "openzeppelin_access::ownable::ownable::OwnableComponent::OwnershipTransferred",
5652
+ "kind": "nested"
5653
+ },
5654
+ {
5655
+ "name": "OwnershipTransferStarted",
5656
+ "type": "openzeppelin_access::ownable::ownable::OwnableComponent::OwnershipTransferStarted",
5657
+ "kind": "nested"
5658
+ }
5659
+ ]
5660
+ },
5661
+ {
5662
+ "type": "event",
5663
+ "name": "ip_ticket::IPTicketCollection::IPTicketCollection::TicketCollectionCreated",
5664
+ "kind": "struct",
5665
+ "members": [
5666
+ {
5667
+ "name": "collection_id",
5668
+ "type": "core::integer::u256",
5669
+ "kind": "key"
5670
+ },
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
+ {
5682
+ "name": "max_supply",
5683
+ "type": "core::integer::u256",
5684
+ "kind": "data"
5685
+ },
5686
+ {
5687
+ "name": "expiration",
5688
+ "type": "core::integer::u64",
5689
+ "kind": "data"
5690
+ },
5691
+ {
5692
+ "name": "royalty_bps",
5693
+ "type": "core::integer::u256",
5694
+ "kind": "data"
5695
+ },
5696
+ {
5697
+ "name": "payment_token",
5698
+ "type": "core::option::Option::<core::starknet::contract_address::ContractAddress>",
5699
+ "kind": "data"
5700
+ },
5701
+ {
5702
+ "name": "metadata_uri",
5703
+ "type": "core::byte_array::ByteArray",
5704
+ "kind": "data"
5705
+ },
5706
+ {
5707
+ "name": "created_at",
5708
+ "type": "core::integer::u64",
5709
+ "kind": "data"
5710
+ }
5711
+ ]
5712
+ },
5713
+ {
5714
+ "type": "event",
5715
+ "name": "ip_ticket::IPTicketCollection::IPTicketCollection::CollectionStatusUpdated",
5716
+ "kind": "struct",
5717
+ "members": [
5718
+ {
5719
+ "name": "collection_id",
5720
+ "type": "core::integer::u256",
5721
+ "kind": "key"
5722
+ },
5723
+ {
5724
+ "name": "active",
5725
+ "type": "core::bool",
5726
+ "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
+ }
5787
+ ]
5788
+ },
5789
+ {
5790
+ "type": "event",
5791
+ "name": "ip_ticket::IPTicketCollection::IPTicketCollection::Event",
5792
+ "kind": "enum",
5793
+ "variants": [
5794
+ {
5795
+ "name": "ERC721Event",
5796
+ "type": "openzeppelin_token::erc721::erc721::ERC721Component::Event",
5797
+ "kind": "flat"
5798
+ },
5799
+ {
5800
+ "name": "SRC5Event",
5801
+ "type": "openzeppelin_introspection::src5::SRC5Component::Event",
5802
+ "kind": "flat"
5803
+ },
5804
+ {
5805
+ "name": "OwnableEvent",
5806
+ "type": "openzeppelin_access::ownable::ownable::OwnableComponent::Event",
5807
+ "kind": "flat"
5808
+ },
5809
+ {
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",
5822
+ "kind": "nested"
5823
+ },
5824
+ {
5825
+ "name": "TicketRedeemed",
5826
+ "type": "ip_ticket::IPTicketCollection::IPTicketCollection::TicketRedeemed",
5827
+ "kind": "nested"
5828
+ }
5829
+ ]
5830
+ }
5831
+ ];
5832
+
5833
+ // src/abis/ipTicketCollectionFactory.ts
5834
+ var IPTicketCollectionFactoryABI = [
5835
+ {
5836
+ "type": "impl",
5837
+ "name": "IPTicketCollectionFactoryImpl",
5838
+ "interface_name": "ip_ticket::interface::IIPTicketCollectionFactory"
5839
+ },
5840
+ {
5841
+ "type": "struct",
5842
+ "name": "core::byte_array::ByteArray",
5843
+ "members": [
5844
+ {
5845
+ "name": "data",
5846
+ "type": "core::array::Array::<core::bytes_31::bytes31>"
5847
+ },
5848
+ {
5849
+ "name": "pending_word",
5850
+ "type": "core::felt252"
5851
+ },
5852
+ {
5853
+ "name": "pending_word_len",
5854
+ "type": "core::internal::bounded_int::BoundedInt::<0, 30>"
5855
+ }
5856
+ ]
5857
+ },
5858
+ {
5859
+ "type": "interface",
5860
+ "name": "ip_ticket::interface::IIPTicketCollectionFactory",
5861
+ "items": [
5862
+ {
5863
+ "type": "function",
5864
+ "name": "collection_class_hash",
5865
+ "inputs": [],
5866
+ "outputs": [
5867
+ {
5868
+ "type": "core::starknet::class_hash::ClassHash"
5869
+ }
5870
+ ],
5871
+ "state_mutability": "view"
5872
+ },
5873
+ {
5874
+ "type": "function",
5875
+ "name": "version",
5876
+ "inputs": [],
5877
+ "outputs": [
5878
+ {
5879
+ "type": "core::byte_array::ByteArray"
5880
+ }
5881
+ ],
5882
+ "state_mutability": "view"
5883
+ },
5884
+ {
5885
+ "type": "function",
5886
+ "name": "deploy_ticket_collection",
5887
+ "inputs": [
5888
+ {
5889
+ "name": "name",
5890
+ "type": "core::byte_array::ByteArray"
5891
+ },
5892
+ {
5893
+ "name": "symbol",
5894
+ "type": "core::byte_array::ByteArray"
5895
+ }
5896
+ ],
5897
+ "outputs": [
5898
+ {
5899
+ "type": "core::starknet::contract_address::ContractAddress"
5900
+ }
5901
+ ],
5902
+ "state_mutability": "external"
5903
+ }
5904
+ ]
5905
+ },
5906
+ {
5907
+ "type": "constructor",
5908
+ "name": "constructor",
5909
+ "inputs": [
5910
+ {
5911
+ "name": "collection_class_hash",
5912
+ "type": "core::starknet::class_hash::ClassHash"
5913
+ }
5914
+ ]
5915
+ },
5916
+ {
5917
+ "type": "event",
5918
+ "name": "ip_ticket::IPTicketCollectionFactory::IPTicketCollectionFactory::CollectionDeployed",
5919
+ "kind": "struct",
5920
+ "members": [
5921
+ {
5922
+ "name": "collection_address",
5923
+ "type": "core::starknet::contract_address::ContractAddress",
5924
+ "kind": "key"
5925
+ },
5926
+ {
5927
+ "name": "owner",
5928
+ "type": "core::starknet::contract_address::ContractAddress",
5929
+ "kind": "key"
5930
+ },
5931
+ {
5932
+ "name": "name",
5933
+ "type": "core::byte_array::ByteArray",
5934
+ "kind": "data"
5935
+ },
5936
+ {
5937
+ "name": "symbol",
5938
+ "type": "core::byte_array::ByteArray",
5939
+ "kind": "data"
5940
+ }
5941
+ ]
5942
+ },
5943
+ {
5944
+ "type": "event",
5945
+ "name": "ip_ticket::IPTicketCollectionFactory::IPTicketCollectionFactory::Event",
5946
+ "kind": "enum",
5947
+ "variants": [
5948
+ {
5949
+ "name": "CollectionDeployed",
5950
+ "type": "ip_ticket::IPTicketCollectionFactory::IPTicketCollectionFactory::CollectionDeployed",
5951
+ "kind": "nested"
5952
+ }
5953
+ ]
5954
+ }
5955
+ ];
5956
+
5957
+ // src/abis/ipClub.ts
5958
+ var IPClubABI = [
5959
+ {
5960
+ "type": "impl",
5961
+ "name": "IPClubImpl",
5962
+ "interface_name": "ip_club::interfaces::IIPClub::IIPClub"
5963
+ },
5964
+ {
5965
+ "type": "struct",
5966
+ "name": "core::byte_array::ByteArray",
5967
+ "members": [
5968
+ {
5969
+ "name": "data",
5970
+ "type": "core::array::Array::<core::bytes_31::bytes31>"
5971
+ },
5972
+ {
5973
+ "name": "pending_word",
5974
+ "type": "core::felt252"
5975
+ },
5976
+ {
5977
+ "name": "pending_word_len",
5978
+ "type": "core::internal::bounded_int::BoundedInt::<0, 30>"
5979
+ }
5980
+ ]
5981
+ },
5982
+ {
5983
+ "type": "enum",
5984
+ "name": "core::option::Option::<core::integer::u32>",
5985
+ "variants": [
5986
+ {
5987
+ "name": "Some",
5988
+ "type": "core::integer::u32"
5989
+ },
5990
+ {
5991
+ "name": "None",
5992
+ "type": "()"
5993
+ }
5994
+ ]
5995
+ },
5996
+ {
5997
+ "type": "struct",
5998
+ "name": "core::integer::u256",
5999
+ "members": [
6000
+ {
6001
+ "name": "low",
6002
+ "type": "core::integer::u128"
6003
+ },
6004
+ {
6005
+ "name": "high",
6006
+ "type": "core::integer::u128"
6007
+ }
6008
+ ]
6009
+ },
6010
+ {
6011
+ "type": "enum",
6012
+ "name": "core::option::Option::<core::integer::u256>",
6013
+ "variants": [
6014
+ {
6015
+ "name": "Some",
6016
+ "type": "core::integer::u256"
6017
+ },
6018
+ {
6019
+ "name": "None",
6020
+ "type": "()"
6021
+ }
6022
+ ]
6023
+ },
6024
+ {
6025
+ "type": "enum",
6026
+ "name": "core::option::Option::<core::starknet::contract_address::ContractAddress>",
6027
+ "variants": [
6028
+ {
6029
+ "name": "Some",
6030
+ "type": "core::starknet::contract_address::ContractAddress"
6031
+ },
6032
+ {
6033
+ "name": "None",
6034
+ "type": "()"
6035
+ }
6036
+ ]
6037
+ },
6038
+ {
6039
+ "type": "enum",
6040
+ "name": "core::bool",
6041
+ "variants": [
6042
+ {
6043
+ "name": "False",
6044
+ "type": "()"
6045
+ },
6046
+ {
6047
+ "name": "True",
6048
+ "type": "()"
6049
+ }
6050
+ ]
6051
+ },
6052
+ {
6053
+ "type": "struct",
6054
+ "name": "ip_club::types::ClubRecord",
6055
+ "members": [
6056
+ {
6057
+ "name": "creator",
6058
+ "type": "core::starknet::contract_address::ContractAddress"
6059
+ },
6060
+ {
6061
+ "name": "club_nft",
6062
+ "type": "core::starknet::contract_address::ContractAddress"
6063
+ },
6064
+ {
6065
+ "name": "open",
6066
+ "type": "core::bool"
6067
+ },
6068
+ {
6069
+ "name": "num_members",
6070
+ "type": "core::integer::u32"
6071
+ },
6072
+ {
6073
+ "name": "max_members",
6074
+ "type": "core::option::Option::<core::integer::u32>"
6075
+ },
6076
+ {
6077
+ "name": "entry_fee",
6078
+ "type": "core::option::Option::<core::integer::u256>"
6079
+ },
6080
+ {
6081
+ "name": "payment_token",
6082
+ "type": "core::option::Option::<core::starknet::contract_address::ContractAddress>"
6083
+ }
6084
+ ]
6085
+ },
6086
+ {
6087
+ "type": "interface",
6088
+ "name": "ip_club::interfaces::IIPClub::IIPClub",
6089
+ "items": [
6090
+ {
6091
+ "type": "function",
6092
+ "name": "create_club",
6093
+ "inputs": [
6094
+ {
6095
+ "name": "name",
6096
+ "type": "core::byte_array::ByteArray"
6097
+ },
6098
+ {
6099
+ "name": "symbol",
6100
+ "type": "core::byte_array::ByteArray"
6101
+ },
6102
+ {
6103
+ "name": "metadata_uri",
6104
+ "type": "core::byte_array::ByteArray"
6105
+ },
6106
+ {
6107
+ "name": "max_members",
6108
+ "type": "core::option::Option::<core::integer::u32>"
6109
+ },
6110
+ {
6111
+ "name": "entry_fee",
6112
+ "type": "core::option::Option::<core::integer::u256>"
6113
+ },
6114
+ {
6115
+ "name": "payment_token",
6116
+ "type": "core::option::Option::<core::starknet::contract_address::ContractAddress>"
6117
+ }
6118
+ ],
6119
+ "outputs": [
6120
+ {
6121
+ "type": "core::integer::u256"
6122
+ }
6123
+ ],
6124
+ "state_mutability": "external"
6125
+ },
6126
+ {
6127
+ "type": "function",
6128
+ "name": "set_club_open",
6129
+ "inputs": [
6130
+ {
6131
+ "name": "club_id",
6132
+ "type": "core::integer::u256"
6133
+ },
6134
+ {
6135
+ "name": "open",
6136
+ "type": "core::bool"
6137
+ }
6138
+ ],
6139
+ "outputs": [],
6140
+ "state_mutability": "external"
6141
+ },
6142
+ {
6143
+ "type": "function",
6144
+ "name": "join_club",
6145
+ "inputs": [
6146
+ {
6147
+ "name": "club_id",
6148
+ "type": "core::integer::u256"
6149
+ }
6150
+ ],
6151
+ "outputs": [],
6152
+ "state_mutability": "external"
6153
+ },
6154
+ {
6155
+ "type": "function",
6156
+ "name": "leave_club",
6157
+ "inputs": [
6158
+ {
6159
+ "name": "club_id",
6160
+ "type": "core::integer::u256"
6161
+ },
6162
+ {
6163
+ "name": "token_id",
6164
+ "type": "core::integer::u256"
6165
+ }
6166
+ ],
6167
+ "outputs": [],
6168
+ "state_mutability": "external"
6169
+ },
6170
+ {
6171
+ "type": "function",
6172
+ "name": "get_club_record",
6173
+ "inputs": [
6174
+ {
6175
+ "name": "club_id",
6176
+ "type": "core::integer::u256"
6177
+ }
6178
+ ],
6179
+ "outputs": [
6180
+ {
6181
+ "type": "ip_club::types::ClubRecord"
6182
+ }
6183
+ ],
6184
+ "state_mutability": "view"
6185
+ },
6186
+ {
6187
+ "type": "function",
6188
+ "name": "is_member",
6189
+ "inputs": [
6190
+ {
6191
+ "name": "club_id",
6192
+ "type": "core::integer::u256"
6193
+ },
6194
+ {
6195
+ "name": "user",
6196
+ "type": "core::starknet::contract_address::ContractAddress"
6197
+ }
6198
+ ],
6199
+ "outputs": [
6200
+ {
6201
+ "type": "core::bool"
6202
+ }
6203
+ ],
6204
+ "state_mutability": "view"
6205
+ },
6206
+ {
6207
+ "type": "function",
6208
+ "name": "get_last_club_id",
6209
+ "inputs": [],
6210
+ "outputs": [
6211
+ {
6212
+ "type": "core::integer::u256"
6213
+ }
6214
+ ],
6215
+ "state_mutability": "view"
6216
+ }
6217
+ ]
6218
+ },
6219
+ {
6220
+ "type": "impl",
6221
+ "name": "SRC5Impl",
6222
+ "interface_name": "openzeppelin_introspection::interface::ISRC5"
6223
+ },
6224
+ {
6225
+ "type": "interface",
6226
+ "name": "openzeppelin_introspection::interface::ISRC5",
6227
+ "items": [
6228
+ {
6229
+ "type": "function",
6230
+ "name": "supports_interface",
6231
+ "inputs": [
6232
+ {
6233
+ "name": "interface_id",
6234
+ "type": "core::felt252"
6235
+ }
6236
+ ],
6237
+ "outputs": [
6238
+ {
6239
+ "type": "core::bool"
6240
+ }
6241
+ ],
6242
+ "state_mutability": "view"
6243
+ }
6244
+ ]
6245
+ },
6246
+ {
6247
+ "type": "constructor",
6248
+ "name": "constructor",
6249
+ "inputs": [
6250
+ {
6251
+ "name": "ip_club_nft_class_hash",
6252
+ "type": "core::starknet::class_hash::ClassHash"
6253
+ }
6254
+ ]
6255
+ },
6256
+ {
6257
+ "type": "event",
6258
+ "name": "openzeppelin_introspection::src5::SRC5Component::Event",
6259
+ "kind": "enum",
6260
+ "variants": []
6261
+ },
6262
+ {
6263
+ "type": "event",
6264
+ "name": "ip_club::events::NewClubCreated",
6265
+ "kind": "struct",
6266
+ "members": [
6267
+ {
6268
+ "name": "club_id",
6269
+ "type": "core::integer::u256",
6270
+ "kind": "key"
6271
+ },
6272
+ {
6273
+ "name": "creator",
6274
+ "type": "core::starknet::contract_address::ContractAddress",
6275
+ "kind": "key"
6276
+ },
6277
+ {
6278
+ "name": "club_nft",
6279
+ "type": "core::starknet::contract_address::ContractAddress",
6280
+ "kind": "data"
6281
+ },
6282
+ {
6283
+ "name": "metadata_uri",
6284
+ "type": "core::byte_array::ByteArray",
6285
+ "kind": "data"
6286
+ },
6287
+ {
6288
+ "name": "timestamp",
6289
+ "type": "core::integer::u64",
6290
+ "kind": "data"
6291
+ }
6292
+ ]
6293
+ },
6294
+ {
6295
+ "type": "event",
6296
+ "name": "ip_club::events::ClubStatusUpdated",
6297
+ "kind": "struct",
6298
+ "members": [
6299
+ {
6300
+ "name": "club_id",
6301
+ "type": "core::integer::u256",
6302
+ "kind": "key"
6303
+ },
6304
+ {
6305
+ "name": "open",
6306
+ "type": "core::bool",
6307
+ "kind": "data"
6308
+ },
6309
+ {
6310
+ "name": "timestamp",
6311
+ "type": "core::integer::u64",
6312
+ "kind": "data"
6313
+ }
6314
+ ]
6315
+ },
6316
+ {
6317
+ "type": "event",
6318
+ "name": "ip_club::events::NewMember",
6319
+ "kind": "struct",
6320
+ "members": [
6321
+ {
6322
+ "name": "club_id",
6323
+ "type": "core::integer::u256",
6324
+ "kind": "key"
6325
+ },
6326
+ {
6327
+ "name": "member",
6328
+ "type": "core::starknet::contract_address::ContractAddress",
6329
+ "kind": "key"
6330
+ },
6331
+ {
6332
+ "name": "timestamp",
6333
+ "type": "core::integer::u64",
6334
+ "kind": "data"
6335
+ }
6336
+ ]
6337
+ },
6338
+ {
6339
+ "type": "event",
6340
+ "name": "ip_club::events::MemberLeft",
6341
+ "kind": "struct",
6342
+ "members": [
6343
+ {
6344
+ "name": "club_id",
6345
+ "type": "core::integer::u256",
6346
+ "kind": "key"
6347
+ },
6348
+ {
6349
+ "name": "member",
6350
+ "type": "core::starknet::contract_address::ContractAddress",
6351
+ "kind": "key"
6352
+ },
6353
+ {
6354
+ "name": "timestamp",
6355
+ "type": "core::integer::u64",
6356
+ "kind": "data"
6357
+ }
6358
+ ]
6359
+ },
6360
+ {
6361
+ "type": "event",
6362
+ "name": "ip_club::IPClub::IPClub::Event",
6363
+ "kind": "enum",
6364
+ "variants": [
6365
+ {
6366
+ "name": "SRC5Event",
6367
+ "type": "openzeppelin_introspection::src5::SRC5Component::Event",
6368
+ "kind": "flat"
6369
+ },
6370
+ {
6371
+ "name": "NewClubCreated",
6372
+ "type": "ip_club::events::NewClubCreated",
6373
+ "kind": "nested"
6374
+ },
6375
+ {
6376
+ "name": "ClubStatusUpdated",
6377
+ "type": "ip_club::events::ClubStatusUpdated",
6378
+ "kind": "nested"
6379
+ },
6380
+ {
6381
+ "name": "NewMember",
6382
+ "type": "ip_club::events::NewMember",
6383
+ "kind": "nested"
6384
+ },
6385
+ {
6386
+ "name": "MemberLeft",
6387
+ "type": "ip_club::events::MemberLeft",
6388
+ "kind": "nested"
6389
+ }
6390
+ ]
6391
+ }
6392
+ ];
6393
+
6394
+ // src/abis/ipClubNft.ts
6395
+ var IPClubNFTABI = [
6396
+ {
6397
+ "type": "impl",
6398
+ "name": "IIPClubNFTImpl",
6399
+ "interface_name": "ip_club::interfaces::IIPClubNFT::IIPClubNFT"
6400
+ },
6401
+ {
6402
+ "type": "struct",
6403
+ "name": "core::integer::u256",
6404
+ "members": [
6405
+ {
6406
+ "name": "low",
6407
+ "type": "core::integer::u128"
6408
+ },
6409
+ {
6410
+ "name": "high",
6411
+ "type": "core::integer::u128"
6412
+ }
6413
+ ]
6414
+ },
6415
+ {
6416
+ "type": "enum",
6417
+ "name": "core::bool",
6418
+ "variants": [
6419
+ {
6420
+ "name": "False",
6421
+ "type": "()"
6422
+ },
6423
+ {
6424
+ "name": "True",
6425
+ "type": "()"
6426
+ }
6427
+ ]
6428
+ },
6429
+ {
6430
+ "type": "interface",
6431
+ "name": "ip_club::interfaces::IIPClubNFT::IIPClubNFT",
6432
+ "items": [
6433
+ {
6434
+ "type": "function",
6435
+ "name": "mint",
6436
+ "inputs": [
6437
+ {
6438
+ "name": "recipient",
6439
+ "type": "core::starknet::contract_address::ContractAddress"
6440
+ }
6441
+ ],
6442
+ "outputs": [],
6443
+ "state_mutability": "external"
6444
+ },
6445
+ {
6446
+ "type": "function",
6447
+ "name": "burn",
6448
+ "inputs": [
6449
+ {
6450
+ "name": "member",
6451
+ "type": "core::starknet::contract_address::ContractAddress"
6452
+ },
6453
+ {
6454
+ "name": "token_id",
6455
+ "type": "core::integer::u256"
6456
+ }
6457
+ ],
6458
+ "outputs": [],
6459
+ "state_mutability": "external"
6460
+ },
6461
+ {
6462
+ "type": "function",
6463
+ "name": "has_nft",
6464
+ "inputs": [
6465
+ {
6466
+ "name": "user",
6467
+ "type": "core::starknet::contract_address::ContractAddress"
6468
+ }
6469
+ ],
6470
+ "outputs": [
6471
+ {
6472
+ "type": "core::bool"
6473
+ }
6474
+ ],
6475
+ "state_mutability": "view"
6476
+ },
6477
+ {
6478
+ "type": "function",
6479
+ "name": "get_nft_creator",
6480
+ "inputs": [],
6481
+ "outputs": [
6482
+ {
6483
+ "type": "core::starknet::contract_address::ContractAddress"
6484
+ }
6485
+ ],
6486
+ "state_mutability": "view"
6487
+ },
6488
+ {
6489
+ "type": "function",
6490
+ "name": "get_ip_club_manager",
6491
+ "inputs": [],
6492
+ "outputs": [
6493
+ {
6494
+ "type": "core::starknet::contract_address::ContractAddress"
6495
+ }
6496
+ ],
6497
+ "state_mutability": "view"
6498
+ },
6499
+ {
6500
+ "type": "function",
6501
+ "name": "get_associated_club_id",
6502
+ "inputs": [],
6503
+ "outputs": [
6504
+ {
6505
+ "type": "core::integer::u256"
6506
+ }
6507
+ ],
6508
+ "state_mutability": "view"
6509
+ },
6510
+ {
6511
+ "type": "function",
6512
+ "name": "get_last_minted_id",
6513
+ "inputs": [],
6514
+ "outputs": [
6515
+ {
6516
+ "type": "core::integer::u256"
6517
+ }
6518
+ ],
6519
+ "state_mutability": "view"
6520
+ }
6521
+ ]
6522
+ },
6523
+ {
6524
+ "type": "impl",
6525
+ "name": "ERC721MixinImpl",
6526
+ "interface_name": "openzeppelin_token::erc721::interface::ERC721ABI"
6527
+ },
6528
+ {
6529
+ "type": "struct",
6530
+ "name": "core::array::Span::<core::felt252>",
6531
+ "members": [
6532
+ {
6533
+ "name": "snapshot",
6534
+ "type": "@core::array::Array::<core::felt252>"
6535
+ }
6536
+ ]
6537
+ },
6538
+ {
6539
+ "type": "struct",
6540
+ "name": "core::byte_array::ByteArray",
6541
+ "members": [
6542
+ {
6543
+ "name": "data",
6544
+ "type": "core::array::Array::<core::bytes_31::bytes31>"
6545
+ },
6546
+ {
6547
+ "name": "pending_word",
6548
+ "type": "core::felt252"
6549
+ },
6550
+ {
6551
+ "name": "pending_word_len",
6552
+ "type": "core::internal::bounded_int::BoundedInt::<0, 30>"
6553
+ }
6554
+ ]
6555
+ },
6556
+ {
6557
+ "type": "interface",
6558
+ "name": "openzeppelin_token::erc721::interface::ERC721ABI",
6559
+ "items": [
6560
+ {
6561
+ "type": "function",
6562
+ "name": "balance_of",
6563
+ "inputs": [
6564
+ {
6565
+ "name": "account",
6566
+ "type": "core::starknet::contract_address::ContractAddress"
6567
+ }
6568
+ ],
6569
+ "outputs": [
6570
+ {
6571
+ "type": "core::integer::u256"
6572
+ }
6573
+ ],
6574
+ "state_mutability": "view"
6575
+ },
6576
+ {
6577
+ "type": "function",
6578
+ "name": "owner_of",
6579
+ "inputs": [
6580
+ {
6581
+ "name": "token_id",
6582
+ "type": "core::integer::u256"
6583
+ }
6584
+ ],
6585
+ "outputs": [
6586
+ {
6587
+ "type": "core::starknet::contract_address::ContractAddress"
6588
+ }
6589
+ ],
6590
+ "state_mutability": "view"
6591
+ },
6592
+ {
6593
+ "type": "function",
6594
+ "name": "safe_transfer_from",
6595
+ "inputs": [
6596
+ {
6597
+ "name": "from",
6598
+ "type": "core::starknet::contract_address::ContractAddress"
6599
+ },
6600
+ {
6601
+ "name": "to",
6602
+ "type": "core::starknet::contract_address::ContractAddress"
6603
+ },
6604
+ {
6605
+ "name": "token_id",
6606
+ "type": "core::integer::u256"
6607
+ },
6608
+ {
6609
+ "name": "data",
6610
+ "type": "core::array::Span::<core::felt252>"
6611
+ }
6612
+ ],
6613
+ "outputs": [],
6614
+ "state_mutability": "external"
6615
+ },
6616
+ {
6617
+ "type": "function",
6618
+ "name": "transfer_from",
6619
+ "inputs": [
6620
+ {
6621
+ "name": "from",
6622
+ "type": "core::starknet::contract_address::ContractAddress"
6623
+ },
6624
+ {
6625
+ "name": "to",
6626
+ "type": "core::starknet::contract_address::ContractAddress"
6627
+ },
6628
+ {
6629
+ "name": "token_id",
6630
+ "type": "core::integer::u256"
6631
+ }
6632
+ ],
6633
+ "outputs": [],
6634
+ "state_mutability": "external"
6635
+ },
6636
+ {
6637
+ "type": "function",
6638
+ "name": "approve",
6639
+ "inputs": [
6640
+ {
6641
+ "name": "to",
6642
+ "type": "core::starknet::contract_address::ContractAddress"
6643
+ },
6644
+ {
6645
+ "name": "token_id",
6646
+ "type": "core::integer::u256"
6647
+ }
6648
+ ],
6649
+ "outputs": [],
6650
+ "state_mutability": "external"
6651
+ },
6652
+ {
6653
+ "type": "function",
6654
+ "name": "set_approval_for_all",
6655
+ "inputs": [
6656
+ {
6657
+ "name": "operator",
6658
+ "type": "core::starknet::contract_address::ContractAddress"
6659
+ },
6660
+ {
6661
+ "name": "approved",
6662
+ "type": "core::bool"
6663
+ }
6664
+ ],
6665
+ "outputs": [],
6666
+ "state_mutability": "external"
6667
+ },
6668
+ {
6669
+ "type": "function",
6670
+ "name": "get_approved",
6671
+ "inputs": [
6672
+ {
6673
+ "name": "token_id",
6674
+ "type": "core::integer::u256"
6675
+ }
6676
+ ],
6677
+ "outputs": [
6678
+ {
6679
+ "type": "core::starknet::contract_address::ContractAddress"
6680
+ }
6681
+ ],
6682
+ "state_mutability": "view"
6683
+ },
6684
+ {
6685
+ "type": "function",
6686
+ "name": "is_approved_for_all",
6687
+ "inputs": [
6688
+ {
6689
+ "name": "owner",
6690
+ "type": "core::starknet::contract_address::ContractAddress"
6691
+ },
6692
+ {
6693
+ "name": "operator",
6694
+ "type": "core::starknet::contract_address::ContractAddress"
6695
+ }
6696
+ ],
6697
+ "outputs": [
6698
+ {
6699
+ "type": "core::bool"
6700
+ }
6701
+ ],
6702
+ "state_mutability": "view"
6703
+ },
6704
+ {
6705
+ "type": "function",
6706
+ "name": "supports_interface",
6707
+ "inputs": [
6708
+ {
6709
+ "name": "interface_id",
6710
+ "type": "core::felt252"
6711
+ }
6712
+ ],
6713
+ "outputs": [
6714
+ {
6715
+ "type": "core::bool"
6716
+ }
6717
+ ],
6718
+ "state_mutability": "view"
6719
+ },
6720
+ {
6721
+ "type": "function",
6722
+ "name": "name",
6723
+ "inputs": [],
6724
+ "outputs": [
6725
+ {
6726
+ "type": "core::byte_array::ByteArray"
6727
+ }
6728
+ ],
6729
+ "state_mutability": "view"
6730
+ },
6731
+ {
6732
+ "type": "function",
6733
+ "name": "symbol",
6734
+ "inputs": [],
6735
+ "outputs": [
6736
+ {
6737
+ "type": "core::byte_array::ByteArray"
6738
+ }
6739
+ ],
6740
+ "state_mutability": "view"
6741
+ },
6742
+ {
6743
+ "type": "function",
6744
+ "name": "token_uri",
6745
+ "inputs": [
6746
+ {
6747
+ "name": "token_id",
6748
+ "type": "core::integer::u256"
6749
+ }
6750
+ ],
6751
+ "outputs": [
6752
+ {
6753
+ "type": "core::byte_array::ByteArray"
6754
+ }
6755
+ ],
6756
+ "state_mutability": "view"
6757
+ },
6758
+ {
6759
+ "type": "function",
6760
+ "name": "balanceOf",
6761
+ "inputs": [
6762
+ {
6763
+ "name": "account",
6764
+ "type": "core::starknet::contract_address::ContractAddress"
6765
+ }
6766
+ ],
6767
+ "outputs": [
6768
+ {
6769
+ "type": "core::integer::u256"
6770
+ }
6771
+ ],
6772
+ "state_mutability": "view"
6773
+ },
6774
+ {
6775
+ "type": "function",
6776
+ "name": "ownerOf",
6777
+ "inputs": [
6778
+ {
6779
+ "name": "tokenId",
6780
+ "type": "core::integer::u256"
6781
+ }
6782
+ ],
6783
+ "outputs": [
6784
+ {
6785
+ "type": "core::starknet::contract_address::ContractAddress"
6786
+ }
6787
+ ],
6788
+ "state_mutability": "view"
6789
+ },
6790
+ {
6791
+ "type": "function",
6792
+ "name": "safeTransferFrom",
6793
+ "inputs": [
6794
+ {
6795
+ "name": "from",
6796
+ "type": "core::starknet::contract_address::ContractAddress"
6797
+ },
6798
+ {
6799
+ "name": "to",
6800
+ "type": "core::starknet::contract_address::ContractAddress"
6801
+ },
6802
+ {
6803
+ "name": "tokenId",
6804
+ "type": "core::integer::u256"
6805
+ },
6806
+ {
6807
+ "name": "data",
6808
+ "type": "core::array::Span::<core::felt252>"
6809
+ }
6810
+ ],
6811
+ "outputs": [],
6812
+ "state_mutability": "external"
6813
+ },
6814
+ {
6815
+ "type": "function",
6816
+ "name": "transferFrom",
6817
+ "inputs": [
6818
+ {
6819
+ "name": "from",
6820
+ "type": "core::starknet::contract_address::ContractAddress"
6821
+ },
6822
+ {
6823
+ "name": "to",
6824
+ "type": "core::starknet::contract_address::ContractAddress"
6825
+ },
6826
+ {
6827
+ "name": "tokenId",
6828
+ "type": "core::integer::u256"
6829
+ }
6830
+ ],
6831
+ "outputs": [],
6832
+ "state_mutability": "external"
6833
+ },
6834
+ {
6835
+ "type": "function",
6836
+ "name": "setApprovalForAll",
6837
+ "inputs": [
6838
+ {
6839
+ "name": "operator",
6840
+ "type": "core::starknet::contract_address::ContractAddress"
6841
+ },
6842
+ {
6843
+ "name": "approved",
6844
+ "type": "core::bool"
6845
+ }
6846
+ ],
6847
+ "outputs": [],
6848
+ "state_mutability": "external"
6849
+ },
6850
+ {
6851
+ "type": "function",
6852
+ "name": "getApproved",
6853
+ "inputs": [
6854
+ {
6855
+ "name": "tokenId",
6856
+ "type": "core::integer::u256"
6857
+ }
6858
+ ],
6859
+ "outputs": [
6860
+ {
6861
+ "type": "core::starknet::contract_address::ContractAddress"
6862
+ }
6863
+ ],
6864
+ "state_mutability": "view"
6865
+ },
6866
+ {
6867
+ "type": "function",
6868
+ "name": "isApprovedForAll",
6869
+ "inputs": [
6870
+ {
6871
+ "name": "owner",
6872
+ "type": "core::starknet::contract_address::ContractAddress"
6873
+ },
6874
+ {
6875
+ "name": "operator",
6876
+ "type": "core::starknet::contract_address::ContractAddress"
6877
+ }
6878
+ ],
6879
+ "outputs": [
6880
+ {
6881
+ "type": "core::bool"
6882
+ }
6883
+ ],
6884
+ "state_mutability": "view"
6885
+ },
6886
+ {
6887
+ "type": "function",
6888
+ "name": "tokenURI",
6889
+ "inputs": [
6890
+ {
6891
+ "name": "tokenId",
6892
+ "type": "core::integer::u256"
6893
+ }
6894
+ ],
6895
+ "outputs": [
6896
+ {
6897
+ "type": "core::byte_array::ByteArray"
6898
+ }
6899
+ ],
6900
+ "state_mutability": "view"
6901
+ }
6902
+ ]
6903
+ },
6904
+ {
6905
+ "type": "constructor",
6906
+ "name": "constructor",
6907
+ "inputs": [
6908
+ {
6909
+ "name": "name",
6910
+ "type": "core::byte_array::ByteArray"
6911
+ },
6912
+ {
6913
+ "name": "symbol",
6914
+ "type": "core::byte_array::ByteArray"
6915
+ },
6916
+ {
6917
+ "name": "club_id",
6918
+ "type": "core::integer::u256"
6919
+ },
6920
+ {
6921
+ "name": "creator",
6922
+ "type": "core::starknet::contract_address::ContractAddress"
6923
+ },
6924
+ {
6925
+ "name": "ip_club_manager",
6926
+ "type": "core::starknet::contract_address::ContractAddress"
6927
+ },
6928
+ {
6929
+ "name": "metadata_uri",
6930
+ "type": "core::byte_array::ByteArray"
6931
+ }
6932
+ ]
6933
+ },
6934
+ {
6935
+ "type": "event",
6936
+ "name": "openzeppelin_token::erc721::erc721::ERC721Component::Transfer",
6937
+ "kind": "struct",
6938
+ "members": [
6939
+ {
6940
+ "name": "from",
6941
+ "type": "core::starknet::contract_address::ContractAddress",
6942
+ "kind": "key"
6943
+ },
6944
+ {
6945
+ "name": "to",
6946
+ "type": "core::starknet::contract_address::ContractAddress",
6947
+ "kind": "key"
6948
+ },
6949
+ {
6950
+ "name": "token_id",
6951
+ "type": "core::integer::u256",
6952
+ "kind": "key"
6953
+ }
6954
+ ]
6955
+ },
6956
+ {
6957
+ "type": "event",
6958
+ "name": "openzeppelin_token::erc721::erc721::ERC721Component::Approval",
6959
+ "kind": "struct",
6960
+ "members": [
6961
+ {
6962
+ "name": "owner",
6963
+ "type": "core::starknet::contract_address::ContractAddress",
6964
+ "kind": "key"
6965
+ },
6966
+ {
6967
+ "name": "approved",
6968
+ "type": "core::starknet::contract_address::ContractAddress",
6969
+ "kind": "key"
6970
+ },
6971
+ {
6972
+ "name": "token_id",
6973
+ "type": "core::integer::u256",
6974
+ "kind": "key"
6975
+ }
6976
+ ]
6977
+ },
6978
+ {
6979
+ "type": "event",
6980
+ "name": "openzeppelin_token::erc721::erc721::ERC721Component::ApprovalForAll",
6981
+ "kind": "struct",
6982
+ "members": [
6983
+ {
6984
+ "name": "owner",
6985
+ "type": "core::starknet::contract_address::ContractAddress",
6986
+ "kind": "key"
6987
+ },
6988
+ {
6989
+ "name": "operator",
6990
+ "type": "core::starknet::contract_address::ContractAddress",
6991
+ "kind": "key"
6992
+ },
6993
+ {
6994
+ "name": "approved",
6995
+ "type": "core::bool",
6996
+ "kind": "data"
6997
+ }
6998
+ ]
6999
+ },
7000
+ {
7001
+ "type": "event",
7002
+ "name": "openzeppelin_token::erc721::erc721::ERC721Component::Event",
7003
+ "kind": "enum",
7004
+ "variants": [
7005
+ {
7006
+ "name": "Transfer",
7007
+ "type": "openzeppelin_token::erc721::erc721::ERC721Component::Transfer",
7008
+ "kind": "nested"
7009
+ },
7010
+ {
7011
+ "name": "Approval",
7012
+ "type": "openzeppelin_token::erc721::erc721::ERC721Component::Approval",
7013
+ "kind": "nested"
7014
+ },
7015
+ {
7016
+ "name": "ApprovalForAll",
7017
+ "type": "openzeppelin_token::erc721::erc721::ERC721Component::ApprovalForAll",
7018
+ "kind": "nested"
7019
+ }
7020
+ ]
7021
+ },
7022
+ {
7023
+ "type": "event",
7024
+ "name": "openzeppelin_introspection::src5::SRC5Component::Event",
7025
+ "kind": "enum",
7026
+ "variants": []
7027
+ },
7028
+ {
7029
+ "type": "event",
7030
+ "name": "ip_club::IPClubNFT::IPClubNFT::Event",
7031
+ "kind": "enum",
7032
+ "variants": [
7033
+ {
7034
+ "name": "ERC721Event",
7035
+ "type": "openzeppelin_token::erc721::erc721::ERC721Component::Event",
7036
+ "kind": "flat"
7037
+ },
7038
+ {
7039
+ "name": "SRC5Event",
7040
+ "type": "openzeppelin_introspection::src5::SRC5Component::Event",
7041
+ "kind": "flat"
7042
+ }
7043
+ ]
7044
+ }
7045
+ ];
7046
+
7047
+ // src/abis/ipSponsorship.ts
7048
+ var IPSponsorshipABI = [
7049
+ {
7050
+ "type": "impl",
7051
+ "name": "IPSponsorshipImpl",
7052
+ "interface_name": "ip_sponsorship::interface::IIPSponsorship"
7053
+ },
7054
+ {
7055
+ "type": "struct",
7056
+ "name": "core::integer::u256",
7057
+ "members": [
7058
+ {
7059
+ "name": "low",
7060
+ "type": "core::integer::u128"
7061
+ },
7062
+ {
7063
+ "name": "high",
7064
+ "type": "core::integer::u128"
7065
+ }
7066
+ ]
7067
+ },
7068
+ {
7069
+ "type": "struct",
7070
+ "name": "core::byte_array::ByteArray",
7071
+ "members": [
7072
+ {
7073
+ "name": "data",
7074
+ "type": "core::array::Array::<core::bytes_31::bytes31>"
7075
+ },
7076
+ {
7077
+ "name": "pending_word",
7078
+ "type": "core::felt252"
7079
+ },
7080
+ {
7081
+ "name": "pending_word_len",
7082
+ "type": "core::internal::bounded_int::BoundedInt::<0, 30>"
7083
+ }
7084
+ ]
7085
+ },
7086
+ {
7087
+ "type": "enum",
7088
+ "name": "core::bool",
7089
+ "variants": [
7090
+ {
7091
+ "name": "False",
7092
+ "type": "()"
7093
+ },
7094
+ {
7095
+ "name": "True",
7096
+ "type": "()"
7097
+ }
7098
+ ]
7099
+ },
7100
+ {
7101
+ "type": "enum",
7102
+ "name": "core::option::Option::<core::starknet::contract_address::ContractAddress>",
7103
+ "variants": [
7104
+ {
7105
+ "name": "Some",
7106
+ "type": "core::starknet::contract_address::ContractAddress"
7107
+ },
7108
+ {
7109
+ "name": "None",
7110
+ "type": "()"
7111
+ }
7112
+ ]
7113
+ },
7114
+ {
7115
+ "type": "struct",
7116
+ "name": "ip_sponsorship::types::SponsorshipOffer",
7117
+ "members": [
7118
+ {
7119
+ "name": "author",
7120
+ "type": "core::starknet::contract_address::ContractAddress"
7121
+ },
7122
+ {
7123
+ "name": "nft_contract",
7124
+ "type": "core::starknet::contract_address::ContractAddress"
7125
+ },
7126
+ {
7127
+ "name": "token_id",
7128
+ "type": "core::integer::u256"
7129
+ },
7130
+ {
7131
+ "name": "min_amount",
7132
+ "type": "core::integer::u256"
7133
+ },
7134
+ {
7135
+ "name": "duration",
7136
+ "type": "core::integer::u64"
7137
+ },
7138
+ {
7139
+ "name": "payment_token",
7140
+ "type": "core::starknet::contract_address::ContractAddress"
7141
+ },
7142
+ {
7143
+ "name": "license_terms_uri",
7144
+ "type": "core::byte_array::ByteArray"
7145
+ },
7146
+ {
7147
+ "name": "transferable",
7148
+ "type": "core::bool"
7149
+ },
7150
+ {
7151
+ "name": "specific_sponsor",
7152
+ "type": "core::option::Option::<core::starknet::contract_address::ContractAddress>"
7153
+ },
7154
+ {
7155
+ "name": "open",
7156
+ "type": "core::bool"
7157
+ }
7158
+ ]
7159
+ },
7160
+ {
7161
+ "type": "struct",
7162
+ "name": "ip_sponsorship::types::License",
7163
+ "members": [
7164
+ {
7165
+ "name": "author",
7166
+ "type": "core::starknet::contract_address::ContractAddress"
7167
+ },
7168
+ {
7169
+ "name": "sponsor",
7170
+ "type": "core::starknet::contract_address::ContractAddress"
7171
+ },
7172
+ {
7173
+ "name": "nft_contract",
7174
+ "type": "core::starknet::contract_address::ContractAddress"
7175
+ },
7176
+ {
7177
+ "name": "token_id",
7178
+ "type": "core::integer::u256"
7179
+ },
7180
+ {
7181
+ "name": "amount_paid",
7182
+ "type": "core::integer::u256"
7183
+ },
7184
+ {
7185
+ "name": "expires_at",
7186
+ "type": "core::integer::u64"
7187
+ },
7188
+ {
7189
+ "name": "transferable",
7190
+ "type": "core::bool"
7191
+ },
7192
+ {
7193
+ "name": "license_terms_uri",
7194
+ "type": "core::byte_array::ByteArray"
7195
+ }
7196
+ ]
7197
+ },
7198
+ {
7199
+ "type": "interface",
7200
+ "name": "ip_sponsorship::interface::IIPSponsorship",
7201
+ "items": [
7202
+ {
7203
+ "type": "function",
7204
+ "name": "create_offer",
7205
+ "inputs": [
7206
+ {
7207
+ "name": "nft_contract",
7208
+ "type": "core::starknet::contract_address::ContractAddress"
7209
+ },
7210
+ {
7211
+ "name": "token_id",
7212
+ "type": "core::integer::u256"
7213
+ },
7214
+ {
7215
+ "name": "min_amount",
7216
+ "type": "core::integer::u256"
7217
+ },
7218
+ {
7219
+ "name": "duration",
7220
+ "type": "core::integer::u64"
7221
+ },
7222
+ {
7223
+ "name": "payment_token",
7224
+ "type": "core::starknet::contract_address::ContractAddress"
7225
+ },
7226
+ {
7227
+ "name": "license_terms_uri",
7228
+ "type": "core::byte_array::ByteArray"
7229
+ },
7230
+ {
7231
+ "name": "transferable",
7232
+ "type": "core::bool"
7233
+ },
7234
+ {
7235
+ "name": "specific_sponsor",
7236
+ "type": "core::option::Option::<core::starknet::contract_address::ContractAddress>"
7237
+ }
7238
+ ],
7239
+ "outputs": [
7240
+ {
7241
+ "type": "core::integer::u256"
7242
+ }
7243
+ ],
7244
+ "state_mutability": "external"
7245
+ },
7246
+ {
7247
+ "type": "function",
7248
+ "name": "set_offer_open",
7249
+ "inputs": [
7250
+ {
7251
+ "name": "offer_id",
7252
+ "type": "core::integer::u256"
7253
+ },
7254
+ {
7255
+ "name": "open",
7256
+ "type": "core::bool"
7257
+ }
7258
+ ],
7259
+ "outputs": [],
7260
+ "state_mutability": "external"
7261
+ },
7262
+ {
7263
+ "type": "function",
7264
+ "name": "place_bid",
7265
+ "inputs": [
7266
+ {
7267
+ "name": "offer_id",
7268
+ "type": "core::integer::u256"
7269
+ },
7270
+ {
7271
+ "name": "amount",
7272
+ "type": "core::integer::u256"
7273
+ }
7274
+ ],
7275
+ "outputs": [],
7276
+ "state_mutability": "external"
7277
+ },
7278
+ {
7279
+ "type": "function",
7280
+ "name": "retract_bid",
7281
+ "inputs": [
7282
+ {
7283
+ "name": "offer_id",
7284
+ "type": "core::integer::u256"
7285
+ }
7286
+ ],
7287
+ "outputs": [],
7288
+ "state_mutability": "external"
7289
+ },
7290
+ {
7291
+ "type": "function",
7292
+ "name": "accept_bid",
7293
+ "inputs": [
7294
+ {
7295
+ "name": "offer_id",
7296
+ "type": "core::integer::u256"
7297
+ },
7298
+ {
7299
+ "name": "sponsor",
7300
+ "type": "core::starknet::contract_address::ContractAddress"
7301
+ }
7302
+ ],
7303
+ "outputs": [
7304
+ {
7305
+ "type": "core::integer::u256"
7306
+ }
7307
+ ],
7308
+ "state_mutability": "external"
7309
+ },
7310
+ {
7311
+ "type": "function",
7312
+ "name": "transfer_license",
7313
+ "inputs": [
7314
+ {
7315
+ "name": "license_id",
7316
+ "type": "core::integer::u256"
7317
+ },
7318
+ {
7319
+ "name": "to",
7320
+ "type": "core::starknet::contract_address::ContractAddress"
7321
+ }
7322
+ ],
7323
+ "outputs": [],
7324
+ "state_mutability": "external"
7325
+ },
7326
+ {
7327
+ "type": "function",
7328
+ "name": "get_offer",
7329
+ "inputs": [
7330
+ {
7331
+ "name": "offer_id",
7332
+ "type": "core::integer::u256"
7333
+ }
7334
+ ],
7335
+ "outputs": [
7336
+ {
7337
+ "type": "ip_sponsorship::types::SponsorshipOffer"
7338
+ }
7339
+ ],
7340
+ "state_mutability": "view"
7341
+ },
7342
+ {
7343
+ "type": "function",
7344
+ "name": "get_bid",
7345
+ "inputs": [
7346
+ {
7347
+ "name": "offer_id",
7348
+ "type": "core::integer::u256"
7349
+ },
7350
+ {
7351
+ "name": "sponsor",
7352
+ "type": "core::starknet::contract_address::ContractAddress"
7353
+ }
7354
+ ],
7355
+ "outputs": [
7356
+ {
7357
+ "type": "core::integer::u256"
7358
+ }
7359
+ ],
7360
+ "state_mutability": "view"
7361
+ },
7362
+ {
7363
+ "type": "function",
7364
+ "name": "get_license",
7365
+ "inputs": [
7366
+ {
7367
+ "name": "license_id",
7368
+ "type": "core::integer::u256"
7369
+ }
7370
+ ],
7371
+ "outputs": [
7372
+ {
7373
+ "type": "ip_sponsorship::types::License"
7374
+ }
7375
+ ],
7376
+ "state_mutability": "view"
7377
+ },
7378
+ {
7379
+ "type": "function",
7380
+ "name": "is_license_valid",
7381
+ "inputs": [
7382
+ {
7383
+ "name": "license_id",
7384
+ "type": "core::integer::u256"
7385
+ }
7386
+ ],
7387
+ "outputs": [
7388
+ {
7389
+ "type": "core::bool"
7390
+ }
7391
+ ],
7392
+ "state_mutability": "view"
7393
+ },
7394
+ {
7395
+ "type": "function",
7396
+ "name": "get_last_offer_id",
7397
+ "inputs": [],
7398
+ "outputs": [
7399
+ {
7400
+ "type": "core::integer::u256"
7401
+ }
7402
+ ],
7403
+ "state_mutability": "view"
7404
+ },
7405
+ {
7406
+ "type": "function",
7407
+ "name": "get_last_license_id",
7408
+ "inputs": [],
7409
+ "outputs": [
7410
+ {
7411
+ "type": "core::integer::u256"
7412
+ }
7413
+ ],
7414
+ "state_mutability": "view"
7415
+ }
7416
+ ]
7417
+ },
7418
+ {
7419
+ "type": "impl",
7420
+ "name": "SRC5Impl",
7421
+ "interface_name": "openzeppelin_introspection::interface::ISRC5"
7422
+ },
7423
+ {
7424
+ "type": "interface",
7425
+ "name": "openzeppelin_introspection::interface::ISRC5",
7426
+ "items": [
7427
+ {
7428
+ "type": "function",
7429
+ "name": "supports_interface",
7430
+ "inputs": [
7431
+ {
7432
+ "name": "interface_id",
7433
+ "type": "core::felt252"
7434
+ }
7435
+ ],
7436
+ "outputs": [
7437
+ {
7438
+ "type": "core::bool"
7439
+ }
7440
+ ],
7441
+ "state_mutability": "view"
7442
+ }
7443
+ ]
7444
+ },
7445
+ {
7446
+ "type": "constructor",
7447
+ "name": "constructor",
7448
+ "inputs": []
7449
+ },
7450
+ {
7451
+ "type": "event",
7452
+ "name": "openzeppelin_introspection::src5::SRC5Component::Event",
7453
+ "kind": "enum",
7454
+ "variants": []
7455
+ },
7456
+ {
7457
+ "type": "event",
7458
+ "name": "ip_sponsorship::IPSponsorship::IPSponsorship::OfferCreated",
7459
+ "kind": "struct",
7460
+ "members": [
7461
+ {
7462
+ "name": "offer_id",
7463
+ "type": "core::integer::u256",
7464
+ "kind": "key"
7465
+ },
7466
+ {
7467
+ "name": "author",
7468
+ "type": "core::starknet::contract_address::ContractAddress",
7469
+ "kind": "key"
7470
+ },
7471
+ {
7472
+ "name": "nft_contract",
7473
+ "type": "core::starknet::contract_address::ContractAddress",
7474
+ "kind": "key"
7475
+ },
7476
+ {
7477
+ "name": "token_id",
7478
+ "type": "core::integer::u256",
7479
+ "kind": "data"
7480
+ },
7481
+ {
7482
+ "name": "min_amount",
7483
+ "type": "core::integer::u256",
7484
+ "kind": "data"
7485
+ },
7486
+ {
7487
+ "name": "duration",
7488
+ "type": "core::integer::u64",
7489
+ "kind": "data"
7490
+ },
7491
+ {
7492
+ "name": "payment_token",
7493
+ "type": "core::starknet::contract_address::ContractAddress",
7494
+ "kind": "data"
7495
+ },
7496
+ {
7497
+ "name": "license_terms_uri",
7498
+ "type": "core::byte_array::ByteArray",
7499
+ "kind": "data"
7500
+ },
7501
+ {
7502
+ "name": "transferable",
7503
+ "type": "core::bool",
7504
+ "kind": "data"
7505
+ },
7506
+ {
7507
+ "name": "specific_sponsor",
7508
+ "type": "core::option::Option::<core::starknet::contract_address::ContractAddress>",
7509
+ "kind": "data"
7510
+ },
7511
+ {
7512
+ "name": "created_at",
7513
+ "type": "core::integer::u64",
7514
+ "kind": "data"
7515
+ }
7516
+ ]
7517
+ },
7518
+ {
7519
+ "type": "event",
7520
+ "name": "ip_sponsorship::IPSponsorship::IPSponsorship::OfferStatusUpdated",
7521
+ "kind": "struct",
7522
+ "members": [
7523
+ {
7524
+ "name": "offer_id",
7525
+ "type": "core::integer::u256",
7526
+ "kind": "key"
7527
+ },
7528
+ {
7529
+ "name": "open",
7530
+ "type": "core::bool",
7531
+ "kind": "data"
7532
+ },
7533
+ {
7534
+ "name": "updated_at",
7535
+ "type": "core::integer::u64",
7536
+ "kind": "data"
7537
+ }
7538
+ ]
7539
+ },
7540
+ {
7541
+ "type": "event",
7542
+ "name": "ip_sponsorship::IPSponsorship::IPSponsorship::BidPlaced",
7543
+ "kind": "struct",
7544
+ "members": [
7545
+ {
7546
+ "name": "offer_id",
7547
+ "type": "core::integer::u256",
7548
+ "kind": "key"
7549
+ },
7550
+ {
7551
+ "name": "sponsor",
7552
+ "type": "core::starknet::contract_address::ContractAddress",
7553
+ "kind": "key"
7554
+ },
7555
+ {
7556
+ "name": "amount",
7557
+ "type": "core::integer::u256",
7558
+ "kind": "data"
7559
+ },
7560
+ {
7561
+ "name": "bid_at",
7562
+ "type": "core::integer::u64",
7563
+ "kind": "data"
7564
+ }
7565
+ ]
7566
+ },
7567
+ {
7568
+ "type": "event",
7569
+ "name": "ip_sponsorship::IPSponsorship::IPSponsorship::BidRetracted",
7570
+ "kind": "struct",
7571
+ "members": [
7572
+ {
7573
+ "name": "offer_id",
7574
+ "type": "core::integer::u256",
7575
+ "kind": "key"
7576
+ },
7577
+ {
7578
+ "name": "sponsor",
7579
+ "type": "core::starknet::contract_address::ContractAddress",
7580
+ "kind": "key"
7581
+ },
7582
+ {
7583
+ "name": "retracted_at",
7584
+ "type": "core::integer::u64",
7585
+ "kind": "data"
7586
+ }
7587
+ ]
7588
+ },
7589
+ {
7590
+ "type": "event",
7591
+ "name": "ip_sponsorship::IPSponsorship::IPSponsorship::SponsorshipAccepted",
7592
+ "kind": "struct",
7593
+ "members": [
7594
+ {
7595
+ "name": "offer_id",
7596
+ "type": "core::integer::u256",
7597
+ "kind": "key"
7598
+ },
7599
+ {
7600
+ "name": "license_id",
7601
+ "type": "core::integer::u256",
7602
+ "kind": "key"
7603
+ },
7604
+ {
7605
+ "name": "sponsor",
7606
+ "type": "core::starknet::contract_address::ContractAddress",
7607
+ "kind": "key"
7608
+ },
7609
+ {
7610
+ "name": "author",
7611
+ "type": "core::starknet::contract_address::ContractAddress",
7612
+ "kind": "data"
7613
+ },
7614
+ {
7615
+ "name": "amount",
7616
+ "type": "core::integer::u256",
7617
+ "kind": "data"
7618
+ },
7619
+ {
7620
+ "name": "expires_at",
7621
+ "type": "core::integer::u64",
7622
+ "kind": "data"
7623
+ }
7624
+ ]
7625
+ },
7626
+ {
7627
+ "type": "event",
7628
+ "name": "ip_sponsorship::IPSponsorship::IPSponsorship::LicenseTransferred",
7629
+ "kind": "struct",
7630
+ "members": [
7631
+ {
7632
+ "name": "license_id",
7633
+ "type": "core::integer::u256",
7634
+ "kind": "key"
7635
+ },
7636
+ {
7637
+ "name": "from",
7638
+ "type": "core::starknet::contract_address::ContractAddress",
7639
+ "kind": "key"
7640
+ },
7641
+ {
7642
+ "name": "to",
7643
+ "type": "core::starknet::contract_address::ContractAddress",
7644
+ "kind": "key"
7645
+ },
7646
+ {
7647
+ "name": "transferred_at",
7648
+ "type": "core::integer::u64",
7649
+ "kind": "data"
7650
+ }
7651
+ ]
7652
+ },
7653
+ {
7654
+ "type": "event",
7655
+ "name": "ip_sponsorship::IPSponsorship::IPSponsorship::Event",
7656
+ "kind": "enum",
7657
+ "variants": [
7658
+ {
7659
+ "name": "SRC5Event",
7660
+ "type": "openzeppelin_introspection::src5::SRC5Component::Event",
7661
+ "kind": "flat"
7662
+ },
7663
+ {
7664
+ "name": "OfferCreated",
7665
+ "type": "ip_sponsorship::IPSponsorship::IPSponsorship::OfferCreated",
7666
+ "kind": "nested"
7667
+ },
7668
+ {
7669
+ "name": "OfferStatusUpdated",
7670
+ "type": "ip_sponsorship::IPSponsorship::IPSponsorship::OfferStatusUpdated",
7671
+ "kind": "nested"
7672
+ },
7673
+ {
7674
+ "name": "BidPlaced",
7675
+ "type": "ip_sponsorship::IPSponsorship::IPSponsorship::BidPlaced",
7676
+ "kind": "nested"
7677
+ },
7678
+ {
7679
+ "name": "BidRetracted",
7680
+ "type": "ip_sponsorship::IPSponsorship::IPSponsorship::BidRetracted",
7681
+ "kind": "nested"
7682
+ },
7683
+ {
7684
+ "name": "SponsorshipAccepted",
7685
+ "type": "ip_sponsorship::IPSponsorship::IPSponsorship::SponsorshipAccepted",
7686
+ "kind": "nested"
7687
+ },
7688
+ {
7689
+ "name": "LicenseTransferred",
7690
+ "type": "ip_sponsorship::IPSponsorship::IPSponsorship::LicenseTransferred",
7691
+ "kind": "nested"
7692
+ }
7693
+ ]
7694
+ }
7695
+ ];
7696
+
7697
+ // src/abis/ipGenesis.ts
7698
+ var IPGenesisABI = [
7699
+ {
7700
+ "type": "impl",
7701
+ "name": "MIPImpl",
7702
+ "interface_name": "mip::interfaces::IMIP"
7703
+ },
7704
+ {
7705
+ "type": "struct",
7706
+ "name": "core::byte_array::ByteArray",
7707
+ "members": [
7708
+ {
7709
+ "name": "data",
7710
+ "type": "core::array::Array::<core::bytes_31::bytes31>"
7711
+ },
7712
+ {
7713
+ "name": "pending_word",
7714
+ "type": "core::felt252"
7715
+ },
7716
+ {
7717
+ "name": "pending_word_len",
7718
+ "type": "core::internal::bounded_int::BoundedInt::<0, 30>"
7719
+ }
7720
+ ]
7721
+ },
7722
+ {
7723
+ "type": "struct",
7724
+ "name": "core::integer::u256",
7725
+ "members": [
7726
+ {
7727
+ "name": "low",
7728
+ "type": "core::integer::u128"
7729
+ },
7730
+ {
7731
+ "name": "high",
7732
+ "type": "core::integer::u128"
7733
+ }
7734
+ ]
7735
+ },
7736
+ {
7737
+ "type": "interface",
7738
+ "name": "mip::interfaces::IMIP",
7739
+ "items": [
7740
+ {
7741
+ "type": "function",
7742
+ "name": "mint_item",
7743
+ "inputs": [
7744
+ {
7745
+ "name": "recipient",
7746
+ "type": "core::starknet::contract_address::ContractAddress"
7747
+ },
7748
+ {
7749
+ "name": "uri",
7750
+ "type": "core::byte_array::ByteArray"
7751
+ }
7752
+ ],
7753
+ "outputs": [
7754
+ {
7755
+ "type": "core::integer::u256"
7756
+ }
7757
+ ],
7758
+ "state_mutability": "external"
7759
+ }
7760
+ ]
7761
+ },
7762
+ {
7763
+ "type": "impl",
7764
+ "name": "CounterImpl",
7765
+ "interface_name": "mip::interfaces::ICounter"
7766
+ },
7767
+ {
7768
+ "type": "interface",
7769
+ "name": "mip::interfaces::ICounter",
7770
+ "items": [
7771
+ {
7772
+ "type": "function",
7773
+ "name": "current",
7774
+ "inputs": [],
7775
+ "outputs": [
7776
+ {
7777
+ "type": "core::integer::u256"
7778
+ }
7779
+ ],
7780
+ "state_mutability": "view"
7781
+ },
7782
+ {
7783
+ "type": "function",
7784
+ "name": "increment",
7785
+ "inputs": [],
7786
+ "outputs": [],
7787
+ "state_mutability": "external"
7788
+ },
7789
+ {
7790
+ "type": "function",
7791
+ "name": "decrement",
7792
+ "inputs": [],
7793
+ "outputs": [],
7794
+ "state_mutability": "external"
7795
+ }
7796
+ ]
7797
+ },
7798
+ {
7799
+ "type": "impl",
7800
+ "name": "ERC721MixinImpl",
7801
+ "interface_name": "openzeppelin_token::erc721::interface::ERC721ABI"
7802
+ },
7803
+ {
7804
+ "type": "struct",
7805
+ "name": "core::array::Span::<core::felt252>",
7806
+ "members": [
7807
+ {
7808
+ "name": "snapshot",
7809
+ "type": "@core::array::Array::<core::felt252>"
7810
+ }
7811
+ ]
7812
+ },
7813
+ {
7814
+ "type": "enum",
7815
+ "name": "core::bool",
7816
+ "variants": [
7817
+ {
7818
+ "name": "False",
7819
+ "type": "()"
7820
+ },
7821
+ {
7822
+ "name": "True",
7823
+ "type": "()"
7824
+ }
7825
+ ]
7826
+ },
7827
+ {
7828
+ "type": "interface",
7829
+ "name": "openzeppelin_token::erc721::interface::ERC721ABI",
7830
+ "items": [
7831
+ {
7832
+ "type": "function",
7833
+ "name": "balance_of",
7834
+ "inputs": [
7835
+ {
7836
+ "name": "account",
7837
+ "type": "core::starknet::contract_address::ContractAddress"
7838
+ }
7839
+ ],
7840
+ "outputs": [
7841
+ {
7842
+ "type": "core::integer::u256"
7843
+ }
7844
+ ],
7845
+ "state_mutability": "view"
7846
+ },
7847
+ {
7848
+ "type": "function",
7849
+ "name": "owner_of",
7850
+ "inputs": [
7851
+ {
7852
+ "name": "token_id",
7853
+ "type": "core::integer::u256"
7854
+ }
7855
+ ],
7856
+ "outputs": [
7857
+ {
7858
+ "type": "core::starknet::contract_address::ContractAddress"
7859
+ }
7860
+ ],
7861
+ "state_mutability": "view"
7862
+ },
7863
+ {
7864
+ "type": "function",
7865
+ "name": "safe_transfer_from",
7866
+ "inputs": [
7867
+ {
7868
+ "name": "from",
7869
+ "type": "core::starknet::contract_address::ContractAddress"
7870
+ },
7871
+ {
7872
+ "name": "to",
7873
+ "type": "core::starknet::contract_address::ContractAddress"
7874
+ },
7875
+ {
7876
+ "name": "token_id",
7877
+ "type": "core::integer::u256"
7878
+ },
7879
+ {
7880
+ "name": "data",
7881
+ "type": "core::array::Span::<core::felt252>"
7882
+ }
7883
+ ],
7884
+ "outputs": [],
7885
+ "state_mutability": "external"
7886
+ },
7887
+ {
7888
+ "type": "function",
7889
+ "name": "transfer_from",
7890
+ "inputs": [
7891
+ {
7892
+ "name": "from",
7893
+ "type": "core::starknet::contract_address::ContractAddress"
7894
+ },
7895
+ {
7896
+ "name": "to",
7897
+ "type": "core::starknet::contract_address::ContractAddress"
7898
+ },
7899
+ {
7900
+ "name": "token_id",
7901
+ "type": "core::integer::u256"
7902
+ }
7903
+ ],
7904
+ "outputs": [],
7905
+ "state_mutability": "external"
7906
+ },
7907
+ {
7908
+ "type": "function",
7909
+ "name": "approve",
7910
+ "inputs": [
7911
+ {
7912
+ "name": "to",
7913
+ "type": "core::starknet::contract_address::ContractAddress"
7914
+ },
7915
+ {
7916
+ "name": "token_id",
7917
+ "type": "core::integer::u256"
7918
+ }
7919
+ ],
7920
+ "outputs": [],
7921
+ "state_mutability": "external"
7922
+ },
7923
+ {
7924
+ "type": "function",
7925
+ "name": "set_approval_for_all",
7926
+ "inputs": [
7927
+ {
7928
+ "name": "operator",
7929
+ "type": "core::starknet::contract_address::ContractAddress"
7930
+ },
7931
+ {
7932
+ "name": "approved",
7933
+ "type": "core::bool"
7934
+ }
7935
+ ],
7936
+ "outputs": [],
7937
+ "state_mutability": "external"
7938
+ },
7939
+ {
7940
+ "type": "function",
7941
+ "name": "get_approved",
7942
+ "inputs": [
7943
+ {
7944
+ "name": "token_id",
7945
+ "type": "core::integer::u256"
7946
+ }
7947
+ ],
7948
+ "outputs": [
7949
+ {
7950
+ "type": "core::starknet::contract_address::ContractAddress"
7951
+ }
7952
+ ],
7953
+ "state_mutability": "view"
7954
+ },
7955
+ {
7956
+ "type": "function",
7957
+ "name": "is_approved_for_all",
7958
+ "inputs": [
7959
+ {
7960
+ "name": "owner",
7961
+ "type": "core::starknet::contract_address::ContractAddress"
7962
+ },
7963
+ {
7964
+ "name": "operator",
7965
+ "type": "core::starknet::contract_address::ContractAddress"
7966
+ }
7967
+ ],
7968
+ "outputs": [
7969
+ {
7970
+ "type": "core::bool"
7971
+ }
7972
+ ],
7973
+ "state_mutability": "view"
7974
+ },
7975
+ {
7976
+ "type": "function",
7977
+ "name": "supports_interface",
7978
+ "inputs": [
7979
+ {
7980
+ "name": "interface_id",
7981
+ "type": "core::felt252"
7982
+ }
7983
+ ],
7984
+ "outputs": [
7985
+ {
7986
+ "type": "core::bool"
7987
+ }
7988
+ ],
7989
+ "state_mutability": "view"
7990
+ },
7991
+ {
7992
+ "type": "function",
7993
+ "name": "name",
7994
+ "inputs": [],
7995
+ "outputs": [
7996
+ {
7997
+ "type": "core::byte_array::ByteArray"
7998
+ }
7999
+ ],
8000
+ "state_mutability": "view"
8001
+ },
8002
+ {
8003
+ "type": "function",
8004
+ "name": "symbol",
8005
+ "inputs": [],
8006
+ "outputs": [
8007
+ {
8008
+ "type": "core::byte_array::ByteArray"
8009
+ }
8010
+ ],
8011
+ "state_mutability": "view"
8012
+ },
8013
+ {
8014
+ "type": "function",
8015
+ "name": "token_uri",
8016
+ "inputs": [
8017
+ {
8018
+ "name": "token_id",
8019
+ "type": "core::integer::u256"
8020
+ }
8021
+ ],
8022
+ "outputs": [
8023
+ {
8024
+ "type": "core::byte_array::ByteArray"
8025
+ }
8026
+ ],
8027
+ "state_mutability": "view"
8028
+ },
8029
+ {
8030
+ "type": "function",
8031
+ "name": "balanceOf",
8032
+ "inputs": [
8033
+ {
8034
+ "name": "account",
8035
+ "type": "core::starknet::contract_address::ContractAddress"
8036
+ }
8037
+ ],
8038
+ "outputs": [
8039
+ {
8040
+ "type": "core::integer::u256"
8041
+ }
8042
+ ],
8043
+ "state_mutability": "view"
8044
+ },
8045
+ {
8046
+ "type": "function",
8047
+ "name": "ownerOf",
8048
+ "inputs": [
8049
+ {
8050
+ "name": "tokenId",
8051
+ "type": "core::integer::u256"
8052
+ }
8053
+ ],
8054
+ "outputs": [
8055
+ {
8056
+ "type": "core::starknet::contract_address::ContractAddress"
8057
+ }
8058
+ ],
8059
+ "state_mutability": "view"
8060
+ },
8061
+ {
8062
+ "type": "function",
8063
+ "name": "safeTransferFrom",
8064
+ "inputs": [
8065
+ {
8066
+ "name": "from",
8067
+ "type": "core::starknet::contract_address::ContractAddress"
8068
+ },
8069
+ {
8070
+ "name": "to",
8071
+ "type": "core::starknet::contract_address::ContractAddress"
8072
+ },
8073
+ {
8074
+ "name": "tokenId",
8075
+ "type": "core::integer::u256"
8076
+ },
8077
+ {
8078
+ "name": "data",
8079
+ "type": "core::array::Span::<core::felt252>"
8080
+ }
8081
+ ],
8082
+ "outputs": [],
8083
+ "state_mutability": "external"
8084
+ },
8085
+ {
8086
+ "type": "function",
8087
+ "name": "transferFrom",
8088
+ "inputs": [
8089
+ {
8090
+ "name": "from",
8091
+ "type": "core::starknet::contract_address::ContractAddress"
8092
+ },
8093
+ {
8094
+ "name": "to",
8095
+ "type": "core::starknet::contract_address::ContractAddress"
8096
+ },
8097
+ {
8098
+ "name": "tokenId",
8099
+ "type": "core::integer::u256"
8100
+ }
8101
+ ],
8102
+ "outputs": [],
8103
+ "state_mutability": "external"
8104
+ },
8105
+ {
8106
+ "type": "function",
8107
+ "name": "setApprovalForAll",
8108
+ "inputs": [
8109
+ {
8110
+ "name": "operator",
8111
+ "type": "core::starknet::contract_address::ContractAddress"
8112
+ },
8113
+ {
8114
+ "name": "approved",
8115
+ "type": "core::bool"
8116
+ }
8117
+ ],
8118
+ "outputs": [],
8119
+ "state_mutability": "external"
8120
+ },
8121
+ {
8122
+ "type": "function",
8123
+ "name": "getApproved",
8124
+ "inputs": [
8125
+ {
8126
+ "name": "tokenId",
8127
+ "type": "core::integer::u256"
8128
+ }
8129
+ ],
8130
+ "outputs": [
8131
+ {
8132
+ "type": "core::starknet::contract_address::ContractAddress"
8133
+ }
8134
+ ],
8135
+ "state_mutability": "view"
8136
+ },
8137
+ {
8138
+ "type": "function",
8139
+ "name": "isApprovedForAll",
8140
+ "inputs": [
8141
+ {
8142
+ "name": "owner",
8143
+ "type": "core::starknet::contract_address::ContractAddress"
8144
+ },
8145
+ {
8146
+ "name": "operator",
8147
+ "type": "core::starknet::contract_address::ContractAddress"
8148
+ }
8149
+ ],
8150
+ "outputs": [
8151
+ {
8152
+ "type": "core::bool"
8153
+ }
8154
+ ],
8155
+ "state_mutability": "view"
8156
+ },
8157
+ {
8158
+ "type": "function",
8159
+ "name": "tokenURI",
8160
+ "inputs": [
8161
+ {
8162
+ "name": "tokenId",
8163
+ "type": "core::integer::u256"
8164
+ }
8165
+ ],
8166
+ "outputs": [
8167
+ {
8168
+ "type": "core::byte_array::ByteArray"
8169
+ }
8170
+ ],
8171
+ "state_mutability": "view"
8172
+ }
8173
+ ]
8174
+ },
8175
+ {
8176
+ "type": "impl",
8177
+ "name": "OwnableMixinImpl",
8178
+ "interface_name": "openzeppelin_access::ownable::interface::OwnableABI"
8179
+ },
8180
+ {
8181
+ "type": "interface",
8182
+ "name": "openzeppelin_access::ownable::interface::OwnableABI",
8183
+ "items": [
8184
+ {
8185
+ "type": "function",
8186
+ "name": "owner",
8187
+ "inputs": [],
8188
+ "outputs": [
8189
+ {
8190
+ "type": "core::starknet::contract_address::ContractAddress"
8191
+ }
8192
+ ],
8193
+ "state_mutability": "view"
8194
+ },
8195
+ {
8196
+ "type": "function",
8197
+ "name": "transfer_ownership",
8198
+ "inputs": [
8199
+ {
8200
+ "name": "new_owner",
8201
+ "type": "core::starknet::contract_address::ContractAddress"
8202
+ }
8203
+ ],
8204
+ "outputs": [],
8205
+ "state_mutability": "external"
8206
+ },
8207
+ {
8208
+ "type": "function",
8209
+ "name": "renounce_ownership",
8210
+ "inputs": [],
8211
+ "outputs": [],
8212
+ "state_mutability": "external"
8213
+ },
8214
+ {
8215
+ "type": "function",
8216
+ "name": "transferOwnership",
8217
+ "inputs": [
8218
+ {
8219
+ "name": "newOwner",
8220
+ "type": "core::starknet::contract_address::ContractAddress"
8221
+ }
8222
+ ],
8223
+ "outputs": [],
8224
+ "state_mutability": "external"
8225
+ },
8226
+ {
8227
+ "type": "function",
8228
+ "name": "renounceOwnership",
8229
+ "inputs": [],
8230
+ "outputs": [],
8231
+ "state_mutability": "external"
8232
+ }
8233
+ ]
8234
+ },
8235
+ {
8236
+ "type": "impl",
8237
+ "name": "ERC721EnumerableImpl",
8238
+ "interface_name": "openzeppelin_token::erc721::extensions::erc721_enumerable::interface::IERC721Enumerable"
8239
+ },
8240
+ {
8241
+ "type": "interface",
8242
+ "name": "openzeppelin_token::erc721::extensions::erc721_enumerable::interface::IERC721Enumerable",
8243
+ "items": [
8244
+ {
8245
+ "type": "function",
8246
+ "name": "total_supply",
8247
+ "inputs": [],
8248
+ "outputs": [
8249
+ {
8250
+ "type": "core::integer::u256"
8251
+ }
8252
+ ],
8253
+ "state_mutability": "view"
8254
+ },
8255
+ {
8256
+ "type": "function",
8257
+ "name": "token_by_index",
8258
+ "inputs": [
8259
+ {
8260
+ "name": "index",
8261
+ "type": "core::integer::u256"
8262
+ }
8263
+ ],
8264
+ "outputs": [
8265
+ {
8266
+ "type": "core::integer::u256"
8267
+ }
8268
+ ],
8269
+ "state_mutability": "view"
8270
+ },
8271
+ {
8272
+ "type": "function",
8273
+ "name": "token_of_owner_by_index",
8274
+ "inputs": [
8275
+ {
8276
+ "name": "owner",
8277
+ "type": "core::starknet::contract_address::ContractAddress"
8278
+ },
8279
+ {
8280
+ "name": "index",
8281
+ "type": "core::integer::u256"
8282
+ }
8283
+ ],
8284
+ "outputs": [
8285
+ {
8286
+ "type": "core::integer::u256"
8287
+ }
8288
+ ],
8289
+ "state_mutability": "view"
8290
+ }
8291
+ ]
8292
+ },
8293
+ {
8294
+ "type": "constructor",
8295
+ "name": "constructor",
8296
+ "inputs": [
8297
+ {
8298
+ "name": "owner",
8299
+ "type": "core::starknet::contract_address::ContractAddress"
8300
+ }
8301
+ ]
8302
+ },
8303
+ {
8304
+ "type": "event",
8305
+ "name": "openzeppelin_token::erc721::erc721::ERC721Component::Transfer",
8306
+ "kind": "struct",
8307
+ "members": [
8308
+ {
8309
+ "name": "from",
8310
+ "type": "core::starknet::contract_address::ContractAddress",
8311
+ "kind": "key"
8312
+ },
8313
+ {
8314
+ "name": "to",
8315
+ "type": "core::starknet::contract_address::ContractAddress",
8316
+ "kind": "key"
8317
+ },
8318
+ {
8319
+ "name": "token_id",
8320
+ "type": "core::integer::u256",
8321
+ "kind": "key"
8322
+ }
8323
+ ]
8324
+ },
8325
+ {
8326
+ "type": "event",
8327
+ "name": "openzeppelin_token::erc721::erc721::ERC721Component::Approval",
8328
+ "kind": "struct",
8329
+ "members": [
8330
+ {
8331
+ "name": "owner",
8332
+ "type": "core::starknet::contract_address::ContractAddress",
8333
+ "kind": "key"
8334
+ },
8335
+ {
8336
+ "name": "approved",
8337
+ "type": "core::starknet::contract_address::ContractAddress",
8338
+ "kind": "key"
8339
+ },
8340
+ {
8341
+ "name": "token_id",
8342
+ "type": "core::integer::u256",
8343
+ "kind": "key"
8344
+ }
8345
+ ]
8346
+ },
8347
+ {
8348
+ "type": "event",
8349
+ "name": "openzeppelin_token::erc721::erc721::ERC721Component::ApprovalForAll",
8350
+ "kind": "struct",
8351
+ "members": [
8352
+ {
8353
+ "name": "owner",
8354
+ "type": "core::starknet::contract_address::ContractAddress",
8355
+ "kind": "key"
8356
+ },
8357
+ {
8358
+ "name": "operator",
8359
+ "type": "core::starknet::contract_address::ContractAddress",
8360
+ "kind": "key"
8361
+ },
8362
+ {
8363
+ "name": "approved",
8364
+ "type": "core::bool",
8365
+ "kind": "data"
8366
+ }
8367
+ ]
8368
+ },
8369
+ {
8370
+ "type": "event",
8371
+ "name": "openzeppelin_token::erc721::erc721::ERC721Component::Event",
8372
+ "kind": "enum",
8373
+ "variants": [
8374
+ {
8375
+ "name": "Transfer",
8376
+ "type": "openzeppelin_token::erc721::erc721::ERC721Component::Transfer",
8377
+ "kind": "nested"
8378
+ },
8379
+ {
8380
+ "name": "Approval",
8381
+ "type": "openzeppelin_token::erc721::erc721::ERC721Component::Approval",
8382
+ "kind": "nested"
8383
+ },
8384
+ {
8385
+ "name": "ApprovalForAll",
8386
+ "type": "openzeppelin_token::erc721::erc721::ERC721Component::ApprovalForAll",
8387
+ "kind": "nested"
8388
+ }
8389
+ ]
8390
+ },
8391
+ {
8392
+ "type": "event",
8393
+ "name": "openzeppelin_access::ownable::ownable::OwnableComponent::OwnershipTransferred",
8394
+ "kind": "struct",
8395
+ "members": [
8396
+ {
8397
+ "name": "previous_owner",
8398
+ "type": "core::starknet::contract_address::ContractAddress",
8399
+ "kind": "key"
8400
+ },
8401
+ {
8402
+ "name": "new_owner",
8403
+ "type": "core::starknet::contract_address::ContractAddress",
8404
+ "kind": "key"
8405
+ }
8406
+ ]
8407
+ },
8408
+ {
8409
+ "type": "event",
8410
+ "name": "openzeppelin_access::ownable::ownable::OwnableComponent::OwnershipTransferStarted",
8411
+ "kind": "struct",
8412
+ "members": [
8413
+ {
8414
+ "name": "previous_owner",
8415
+ "type": "core::starknet::contract_address::ContractAddress",
8416
+ "kind": "key"
8417
+ },
8418
+ {
8419
+ "name": "new_owner",
8420
+ "type": "core::starknet::contract_address::ContractAddress",
8421
+ "kind": "key"
8422
+ }
8423
+ ]
8424
+ },
8425
+ {
8426
+ "type": "event",
8427
+ "name": "openzeppelin_access::ownable::ownable::OwnableComponent::Event",
8428
+ "kind": "enum",
8429
+ "variants": [
8430
+ {
8431
+ "name": "OwnershipTransferred",
8432
+ "type": "openzeppelin_access::ownable::ownable::OwnableComponent::OwnershipTransferred",
8433
+ "kind": "nested"
8434
+ },
8435
+ {
8436
+ "name": "OwnershipTransferStarted",
8437
+ "type": "openzeppelin_access::ownable::ownable::OwnableComponent::OwnershipTransferStarted",
8438
+ "kind": "nested"
8439
+ }
8440
+ ]
8441
+ },
8442
+ {
8443
+ "type": "event",
8444
+ "name": "openzeppelin_introspection::src5::SRC5Component::Event",
8445
+ "kind": "enum",
8446
+ "variants": []
8447
+ },
8448
+ {
8449
+ "type": "event",
8450
+ "name": "openzeppelin_token::erc721::extensions::erc721_enumerable::erc721_enumerable::ERC721EnumerableComponent::Event",
8451
+ "kind": "enum",
8452
+ "variants": []
8453
+ },
8454
+ {
8455
+ "type": "event",
8456
+ "name": "mip::mip::MIP::CounterComponent::CounterIncremented",
8457
+ "kind": "struct",
8458
+ "members": [
8459
+ {
8460
+ "name": "value",
8461
+ "type": "core::integer::u256",
8462
+ "kind": "data"
8463
+ }
8464
+ ]
8465
+ },
8466
+ {
8467
+ "type": "event",
8468
+ "name": "mip::mip::MIP::CounterComponent::CounterDecremented",
8469
+ "kind": "struct",
8470
+ "members": [
8471
+ {
8472
+ "name": "value",
8473
+ "type": "core::integer::u256",
8474
+ "kind": "data"
8475
+ }
8476
+ ]
8477
+ },
8478
+ {
8479
+ "type": "event",
8480
+ "name": "mip::mip::MIP::CounterComponent::Event",
8481
+ "kind": "enum",
8482
+ "variants": [
8483
+ {
8484
+ "name": "CounterIncremented",
8485
+ "type": "mip::mip::MIP::CounterComponent::CounterIncremented",
8486
+ "kind": "nested"
8487
+ },
8488
+ {
8489
+ "name": "CounterDecremented",
8490
+ "type": "mip::mip::MIP::CounterComponent::CounterDecremented",
8491
+ "kind": "nested"
8492
+ }
8493
+ ]
8494
+ },
8495
+ {
8496
+ "type": "event",
8497
+ "name": "mip::mip::MIP::Event",
8498
+ "kind": "enum",
8499
+ "variants": [
8500
+ {
8501
+ "name": "ERC721Event",
8502
+ "type": "openzeppelin_token::erc721::erc721::ERC721Component::Event",
8503
+ "kind": "flat"
8504
+ },
8505
+ {
8506
+ "name": "OwnableEvent",
8507
+ "type": "openzeppelin_access::ownable::ownable::OwnableComponent::Event",
8508
+ "kind": "flat"
8509
+ },
8510
+ {
8511
+ "name": "SRC5Event",
8512
+ "type": "openzeppelin_introspection::src5::SRC5Component::Event",
8513
+ "kind": "flat"
8514
+ },
8515
+ {
8516
+ "name": "ERC721EnumerableEvent",
8517
+ "type": "openzeppelin_token::erc721::extensions::erc721_enumerable::erc721_enumerable::ERC721EnumerableComponent::Event",
8518
+ "kind": "flat"
8519
+ },
8520
+ {
8521
+ "name": "CounterEvent",
8522
+ "type": "mip::mip::MIP::CounterComponent::Event",
8523
+ "kind": "flat"
8524
+ }
8525
+ ]
8526
+ }
8527
+ ];
8528
+
4638
8529
  // src/constants.ts
4639
8530
  var SN = getCoordinates("STARKNET");
4640
8531
  var STARKNET_MARKETPLACE_721_CONTRACT = SN.marketplace721;
@@ -4656,6 +8547,12 @@ var STARKNET_POP_COLLECTION_CLASS_HASH = SN.popCollectionClassHash;
4656
8547
  var STARKNET_DROP_FACTORY_CONTRACT = SN.dropFactory;
4657
8548
  var STARKNET_DROP_COLLECTION_CLASS_HASH = SN.dropCollectionClassHash;
4658
8549
  var STARKNET_NFTCOMMENTS_CONTRACT = SN.nftComments;
8550
+ var STARKNET_IP_TICKETS_FACTORY_CONTRACT = SN.ipTicketsFactory;
8551
+ var STARKNET_IP_TICKET_COLLECTION_CLASS_HASH = SN.ipTicketCollectionClassHash;
8552
+ var STARKNET_IP_CLUB_REGISTRY_CONTRACT = SN.ipClubRegistry;
8553
+ var STARKNET_IP_CLUB_NFT_CLASS_HASH = SN.ipClubNftClassHash;
8554
+ var STARKNET_IP_SPONSORSHIP_CONTRACT = SN.ipSponsorship;
8555
+ var STARKNET_IP_SPONSORSHIP_LICENSE_CONTRACT = SN.ipSponsorshipLicense;
4659
8556
  var STARKNET_CREATOR_COIN_FACTORY_CONTRACT = SN.creatorCoinFactory;
4660
8557
  var STARKNET_CREATOR_COIN_EKUBO_LAUNCHER = SN.creatorCoinEkuboLauncher;
4661
8558
  var STARKNET_CREATOR_COIN_CLASS_HASH = SN.creatorCoinClassHash;
@@ -6647,6 +10544,240 @@ var CreatorCoinService = class {
6647
10544
  return getCreatorCoinPrice(coinAddress, new RpcProvider({ nodeUrl: this.config.rpcUrl }));
6648
10545
  }
6649
10546
  };
10547
+ var TicketService = class {
10548
+ constructor(config) {
10549
+ this.factoryAddress = getCoordinates(config.chain).ipTicketsFactory;
10550
+ }
10551
+ _collection(address, account) {
10552
+ return new Contract(IPTicketCollectionABI, normalizeAddress("STARKNET", address), account);
10553
+ }
10554
+ /** Deploys a new IPTicketCollection via the factory. Caller becomes its owner. */
10555
+ async deployTicketCollection(account, params) {
10556
+ const factoryAddress = params.factoryAddress ?? this.factoryAddress;
10557
+ if (!factoryAddress) {
10558
+ throw new Error("IP-Tickets factory address not configured for this chain");
10559
+ }
10560
+ const factory = new Contract(IPTicketCollectionFactoryABI, factoryAddress, account);
10561
+ const call = factory.populate("deploy_ticket_collection", [params.name, params.symbol]);
10562
+ const res = await account.execute([call]);
10563
+ return { txHash: res.transaction_hash };
10564
+ }
10565
+ /** Owner-only. Creates a new ticket collection (event/tier) inside the caller's deployed IPTicketCollection. */
10566
+ async createTicketCollection(account, params) {
10567
+ const paymentToken = params.paymentToken ? new CairoOption(CairoOptionVariant.Some, params.paymentToken) : new CairoOption(CairoOptionVariant.None);
10568
+ const call = this._collection(params.collection, account).populate("create_ticket_collection", [
10569
+ cairo.uint256(params.price),
10570
+ cairo.uint256(params.maxSupply),
10571
+ params.expiration,
10572
+ params.royaltyBps,
10573
+ paymentToken,
10574
+ params.metadataUri
10575
+ ]);
10576
+ const res = await account.execute([call]);
10577
+ return { txHash: res.transaction_hash };
10578
+ }
10579
+ /** Owner-only. Gates minting only — existing tickets keep access/transfer/redeem. */
10580
+ async setCollectionActive(account, params) {
10581
+ const call = this._collection(params.collection, account).populate("set_collection_active", [
10582
+ cairo.uint256(params.collectionId),
10583
+ params.active
10584
+ ]);
10585
+ const res = await account.execute([call]);
10586
+ return { txHash: res.transaction_hash };
10587
+ }
10588
+ /** Mints a ticket. Prepends an ERC-20 approve when the collection is paid. */
10589
+ async mintTicket(account, params) {
10590
+ const calls = [];
10591
+ if (params.paymentToken && params.price && BigInt(params.price) > 0n) {
10592
+ const amount = cairo.uint256(params.price);
10593
+ calls.push({
10594
+ contractAddress: params.paymentToken,
10595
+ entrypoint: "approve",
10596
+ calldata: [normalizeAddress("STARKNET", params.collection), amount.low.toString(), amount.high.toString()]
10597
+ });
10598
+ }
10599
+ calls.push(this._collection(params.collection, account).populate("mint_ticket", [cairo.uint256(params.collectionId)]));
10600
+ const res = await account.execute(calls);
10601
+ return { txHash: res.transaction_hash };
10602
+ }
10603
+ /** Only the current token owner may redeem. */
10604
+ async redeemTicket(account, params) {
10605
+ const call = this._collection(params.collection, account).populate("redeem_ticket", [cairo.uint256(params.tokenId)]);
10606
+ const res = await account.execute([call]);
10607
+ return { txHash: res.transaction_hash };
10608
+ }
10609
+ };
10610
+ var ClubService = class {
10611
+ constructor(config) {
10612
+ this.registryAddress = getCoordinates(config.chain).ipClubRegistry;
10613
+ }
10614
+ _registry(account, registryAddress) {
10615
+ const address = registryAddress ?? this.registryAddress;
10616
+ if (!address) {
10617
+ throw new Error("IP-Club registry address not configured for this chain");
10618
+ }
10619
+ return new Contract(IPClubABI, normalizeAddress("STARKNET", address), account);
10620
+ }
10621
+ /** Permissionless — anyone may create a club. The registry deploys its own membership NFT internally. */
10622
+ async createClub(account, params) {
10623
+ const maxMembers = params.maxMembers != null ? new CairoOption(CairoOptionVariant.Some, params.maxMembers) : new CairoOption(CairoOptionVariant.None);
10624
+ const entryFee = params.entryFee != null ? new CairoOption(CairoOptionVariant.Some, cairo.uint256(params.entryFee)) : new CairoOption(CairoOptionVariant.None);
10625
+ const paymentToken = params.paymentToken ? new CairoOption(CairoOptionVariant.Some, params.paymentToken) : new CairoOption(CairoOptionVariant.None);
10626
+ const call = this._registry(account, params.registryAddress).populate("create_club", [
10627
+ params.name,
10628
+ params.symbol,
10629
+ params.metadataUri,
10630
+ maxMembers,
10631
+ entryFee,
10632
+ paymentToken
10633
+ ]);
10634
+ const res = await account.execute([call]);
10635
+ return { txHash: res.transaction_hash };
10636
+ }
10637
+ /** Reversible — gates new joins only; existing members are never affected. */
10638
+ async setClubOpen(account, params) {
10639
+ const call = this._registry(account, params.registryAddress).populate("set_club_open", [
10640
+ cairo.uint256(params.clubId),
10641
+ params.open
10642
+ ]);
10643
+ const res = await account.execute([call]);
10644
+ return { txHash: res.transaction_hash };
10645
+ }
10646
+ /** Prepends an ERC-20 approve when the club has an entry fee. */
10647
+ async joinClub(account, params) {
10648
+ const registryAddress = params.registryAddress ?? this.registryAddress;
10649
+ if (!registryAddress) {
10650
+ throw new Error("IP-Club registry address not configured for this chain");
10651
+ }
10652
+ const calls = [];
10653
+ if (params.paymentToken && params.entryFee && BigInt(params.entryFee) > 0n) {
10654
+ const amount = cairo.uint256(params.entryFee);
10655
+ calls.push({
10656
+ contractAddress: params.paymentToken,
10657
+ entrypoint: "approve",
10658
+ calldata: [normalizeAddress("STARKNET", registryAddress), amount.low.toString(), amount.high.toString()]
10659
+ });
10660
+ }
10661
+ calls.push(this._registry(account, registryAddress).populate("join_club", [cairo.uint256(params.clubId)]));
10662
+ const res = await account.execute(calls);
10663
+ return { txHash: res.transaction_hash };
10664
+ }
10665
+ /** Always allowed, open or closed. No fee refund. Burns the caller's membership NFT. */
10666
+ async leaveClub(account, params) {
10667
+ const call = this._registry(account, params.registryAddress).populate("leave_club", [
10668
+ cairo.uint256(params.clubId),
10669
+ cairo.uint256(params.tokenId)
10670
+ ]);
10671
+ const res = await account.execute([call]);
10672
+ return { txHash: res.transaction_hash };
10673
+ }
10674
+ };
10675
+ var SponsorshipService = class {
10676
+ constructor(config) {
10677
+ this.sponsorshipAddress = getCoordinates(config.chain).ipSponsorship;
10678
+ this.licenseReceiptAddress = getCoordinates(config.chain).ipSponsorshipLicense;
10679
+ }
10680
+ _sponsorship(account, address) {
10681
+ const resolved = address ?? this.sponsorshipAddress;
10682
+ if (!resolved) {
10683
+ throw new Error("IP-Sponsorship address not configured for this chain");
10684
+ }
10685
+ return new Contract(IPSponsorshipABI, normalizeAddress("STARKNET", resolved), account);
10686
+ }
10687
+ /** The offer author must currently own (nftContract, tokenId) — enforced on-chain at create and accept. */
10688
+ async createOffer(account, params) {
10689
+ const specificSponsor = params.specificSponsor ? new CairoOption(CairoOptionVariant.Some, params.specificSponsor) : new CairoOption(CairoOptionVariant.None);
10690
+ const call = this._sponsorship(account, params.sponsorshipAddress).populate("create_offer", [
10691
+ params.nftContract,
10692
+ cairo.uint256(params.tokenId),
10693
+ cairo.uint256(params.minAmount),
10694
+ params.duration,
10695
+ params.paymentToken,
10696
+ params.licenseTermsUri,
10697
+ params.transferable,
10698
+ specificSponsor
10699
+ ]);
10700
+ const res = await account.execute([call]);
10701
+ return { txHash: res.transaction_hash };
10702
+ }
10703
+ /** Reversible — gates new bids/acceptance only. */
10704
+ async setOfferOpen(account, params) {
10705
+ const call = this._sponsorship(account, params.sponsorshipAddress).populate("set_offer_open", [
10706
+ cairo.uint256(params.offerId),
10707
+ params.open
10708
+ ]);
10709
+ const res = await account.execute([call]);
10710
+ return { txHash: res.transaction_hash };
10711
+ }
10712
+ /** A bid is a signal plus an open ERC-20 allowance — no tokens move until accepted. Prepends the approve. */
10713
+ async placeBid(account, params) {
10714
+ const sponsorshipAddress = params.sponsorshipAddress ?? this.sponsorshipAddress;
10715
+ if (!sponsorshipAddress) {
10716
+ throw new Error("IP-Sponsorship address not configured for this chain");
10717
+ }
10718
+ const amount = cairo.uint256(params.amount);
10719
+ const approveCall = {
10720
+ contractAddress: params.paymentToken,
10721
+ entrypoint: "approve",
10722
+ calldata: [normalizeAddress("STARKNET", sponsorshipAddress), amount.low.toString(), amount.high.toString()]
10723
+ };
10724
+ const bidCall = this._sponsorship(account, sponsorshipAddress).populate("place_bid", [
10725
+ cairo.uint256(params.offerId),
10726
+ amount
10727
+ ]);
10728
+ const res = await account.execute([approveCall, bidCall]);
10729
+ return { txHash: res.transaction_hash };
10730
+ }
10731
+ async retractBid(account, params) {
10732
+ const call = this._sponsorship(account, params.sponsorshipAddress).populate("retract_bid", [
10733
+ cairo.uint256(params.offerId)
10734
+ ]);
10735
+ const res = await account.execute([call]);
10736
+ return { txHash: res.transaction_hash };
10737
+ }
10738
+ /**
10739
+ * Author-only. Settles the sponsor's payment (allowance pull, no escrow) and
10740
+ * mints a non-authoritative receipt NFT to the sponsor via the dedicated
10741
+ * sponsorship-license IPGenesis instance — never the genesis-mint instance.
10742
+ * `is_license_valid()` on IPSponsorship remains the sole authority for
10743
+ * gating/perks; the receipt is a wallet-visible courtesy only.
10744
+ */
10745
+ async acceptBid(account, params) {
10746
+ const receiptAddress = params.licenseReceiptAddress ?? this.licenseReceiptAddress;
10747
+ if (!receiptAddress) {
10748
+ throw new Error("IP-Sponsorship-License receipt address not configured for this chain");
10749
+ }
10750
+ const acceptCall = this._sponsorship(account, params.sponsorshipAddress).populate("accept_bid", [
10751
+ cairo.uint256(params.offerId),
10752
+ params.sponsor
10753
+ ]);
10754
+ const receipt = new Contract(IPGenesisABI, normalizeAddress("STARKNET", receiptAddress), account);
10755
+ const mintCall = receipt.populate("mint_item", [params.sponsor, params.licenseTermsUri]);
10756
+ const res = await account.execute([acceptCall, mintCall]);
10757
+ return { txHash: res.transaction_hash };
10758
+ }
10759
+ /**
10760
+ * Best-effort — bundles a receipt-NFT transfer alongside `transfer_license`
10761
+ * when both `licenseReceiptAddress` and `receiptTokenId` are supplied.
10762
+ * IPSponsorship's own license ownership stays authoritative regardless of
10763
+ * whether the receipt NFT is kept in sync.
10764
+ */
10765
+ async transferLicense(account, params) {
10766
+ const calls = [
10767
+ this._sponsorship(account, params.sponsorshipAddress).populate("transfer_license", [
10768
+ cairo.uint256(params.licenseId),
10769
+ params.to
10770
+ ])
10771
+ ];
10772
+ const receiptAddress = params.licenseReceiptAddress ?? this.licenseReceiptAddress;
10773
+ if (receiptAddress && params.receiptTokenId != null) {
10774
+ const receipt = new Contract(IPGenesisABI, normalizeAddress("STARKNET", receiptAddress), account);
10775
+ calls.push(receipt.populate("transfer_from", [account.address, params.to, cairo.uint256(params.receiptTokenId)]));
10776
+ }
10777
+ const res = await account.execute(calls);
10778
+ return { txHash: res.transaction_hash };
10779
+ }
10780
+ };
6650
10781
 
6651
10782
  // src/client.ts
6652
10783
  var MedialaneClient = class {
@@ -6658,7 +10789,10 @@ var MedialaneClient = class {
6658
10789
  pop: new PopService(this.config),
6659
10790
  drop: new DropService(this.config),
6660
10791
  erc1155Collection: new ERC1155CollectionService(this.config),
6661
- creatorCoin: new CreatorCoinService(this.config)
10792
+ creatorCoin: new CreatorCoinService(this.config),
10793
+ ticket: new TicketService(this.config),
10794
+ club: new ClubService(this.config),
10795
+ sponsorship: new SponsorshipService(this.config)
6662
10796
  };
6663
10797
  if (!this.config.backendUrl) {
6664
10798
  const sentinel = new ApiClient("https://medialane-sdk-no-backend.invalid", this.config.apiKey);
@@ -7053,6 +11187,52 @@ var SERVICES = {
7053
11187
  ],
7054
11188
  metadataSchema: { licenseDefault: "CC BY-SA" }
7055
11189
  },
11190
+ "ip-tickets": {
11191
+ id: "ip-tickets",
11192
+ displayName: "IP Tickets",
11193
+ description: "Sell verifiable, redeemable tickets for events and experiences.",
11194
+ standard: "ERC721",
11195
+ provenance: "MEDIALANE",
11196
+ uiVariant: "ticket",
11197
+ capabilities: ["mint", "redeem", "transfer"],
11198
+ events: [
11199
+ { name: "CollectionDeployed", emittedBy: "factory" }
11200
+ ],
11201
+ metadataSchema: { licenseDefault: "CC BY-SA" }
11202
+ },
11203
+ "ip-club": {
11204
+ id: "ip-club",
11205
+ displayName: "IP Club",
11206
+ description: "Membership clubs with an on-chain NFT membership card.",
11207
+ standard: "ERC721",
11208
+ provenance: "MEDIALANE",
11209
+ uiVariant: "club",
11210
+ capabilities: ["subscribe", "transfer"],
11211
+ events: [
11212
+ { name: "NewClubCreated", emittedBy: "factory" }
11213
+ ],
11214
+ metadataSchema: { licenseDefault: "CC BY-SA" }
11215
+ },
11216
+ "ip-sponsorship": {
11217
+ id: "ip-sponsorship",
11218
+ displayName: "IP Sponsorship",
11219
+ description: "Sponsorship offers and licenses anchored to an existing Medialane asset.",
11220
+ standard: "ERC721",
11221
+ provenance: "MEDIALANE",
11222
+ uiVariant: "standard",
11223
+ capabilities: ["sponsor"],
11224
+ metadataSchema: { licenseDefault: "CC BY-SA" }
11225
+ },
11226
+ "ip-sponsorship-license": {
11227
+ id: "ip-sponsorship-license",
11228
+ displayName: "Sponsorship License Receipt",
11229
+ description: "Non-authoritative receipt NFT minted to a sponsor when a sponsorship bid is accepted.",
11230
+ standard: "ERC721",
11231
+ provenance: "MEDIALANE",
11232
+ uiVariant: "standard",
11233
+ capabilities: ["transfer"],
11234
+ metadataSchema: { licenseDefault: "CC BY-SA" }
11235
+ },
7056
11236
  "creator-coin": {
7057
11237
  id: "creator-coin",
7058
11238
  displayName: "Creator Coin",
@@ -7162,6 +11342,6 @@ function getServicesByCapability(cap) {
7162
11342
  );
7163
11343
  }
7164
11344
 
7165
- export { ADMIN_HEADERS, ADMIN_SCOPE, ApiClient, CHAINS, MAX_SUPPLY as COIN_MAX_SUPPLY, MIN_SUPPLY as COIN_MIN_SUPPLY, CreatorCoinFactoryABI, CreatorCoinService, DEFAULT_CHAIN, DEFAULT_CURRENCY, DropCollectionABI, DropFactoryABI, DropService, ERC1155CollectionService, FeeConfigSchema, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPMarketplaceABI, IPNftABI, LAUNCH_PRICE_QUOTE_PER_COIN, MarketplaceModule, Medialane1155ABI, Medialane1155Module, MedialaneApiError, MedialaneClient, MedialaneError, OPEN_LICENSES, POPCollectionABI, POPFactoryABI, PUBLIC_RPC_FALLBACKS, PopService, STARKNET_COLLECTION_1155_CLASS_HASH, STARKNET_COLLECTION_1155_CONTRACT, STARKNET_COLLECTION_1155_FACTORY_CLASS_HASH, STARKNET_COLLECTION_1155_START_BLOCK, STARKNET_COLLECTION_721_CONTRACT, STARKNET_COLLECTION_721_START_BLOCK, STARKNET_CREATOR_COIN_CLASS_HASH, STARKNET_CREATOR_COIN_EKUBO_LAUNCHER, STARKNET_CREATOR_COIN_FACTORY_CLASS_HASH, STARKNET_CREATOR_COIN_FACTORY_CONTRACT, STARKNET_CREATOR_COIN_START_BLOCK, STARKNET_DROP_COLLECTION_CLASS_HASH, STARKNET_DROP_FACTORY_CONTRACT, STARKNET_EKUBO_CORE, STARKNET_IPCOLLECTION_CLASS_HASH, STARKNET_IPNFT_CLASS_HASH, STARKNET_MARKETPLACE_1155_CLASS_HASH, STARKNET_MARKETPLACE_1155_CONTRACT, STARKNET_MARKETPLACE_1155_START_BLOCK, STARKNET_MARKETPLACE_721_CLASS_HASH, STARKNET_MARKETPLACE_721_CONTRACT, STARKNET_MARKETPLACE_721_START_BLOCK, STARKNET_NFTCOMMENTS_CONTRACT, STARKNET_POP_COLLECTION_CLASS_HASH, STARKNET_POP_FACTORY_CONTRACT, SUPPORTED_TOKENS, VALIDATED_EKUBO_PARAMS, adminRequestDigest, build1155CancellationTypedData, build1155OrderTypedData, buildAdminSessionTypedData, buildCancellationTypedData, buildCreateCreatorCoinCall, buildFeeCall, buildLaunchOnEkuboCalls, buildOrderTypedData, buybackQuoteRaw, toRaw as coinToRaw, createAdminSessionGrant, createFailoverFetch, encodeAdminHeaders, encodeByteArray, fdvHuman, formatAmount, getCoordinates, getCreatorCoinPrice, getListableTokens, getService, getServicesByCapability, getSiwsStorageKey, getStoredSiwsToken, getTokenByAddress, getTokenBySymbol, isServiceId, isSiwsTokenValid, isTransientRpcError, listServices, normalizeAddress, normalizeHash, normalizeSiwsSignature, parseAdminHeaders, parseAmount, parseCreatorCoinCreated, randomNonce, requestSiwsToken, resolveConfig, resolveFeeConfig, sessionKeyHashOf, shortenAddress, signAdminRequest, storeSiwsToken, stringifyBigInts, teamCoinsRaw, u256ToBigInt, validateName as validateCoinName, validateSupply as validateCoinSupply, validateSymbol as validateCoinSymbol, verifyAdminRequestSig };
11345
+ export { ADMIN_HEADERS, ADMIN_SCOPE, ApiClient, CHAINS, MAX_SUPPLY as COIN_MAX_SUPPLY, MIN_SUPPLY as COIN_MIN_SUPPLY, ClubService, CreatorCoinFactoryABI, CreatorCoinService, DEFAULT_CHAIN, DEFAULT_CURRENCY, DropCollectionABI, DropFactoryABI, DropService, ERC1155CollectionService, FeeConfigSchema, IPClubABI, IPClubNFTABI, IPCollection1155ABI, IPCollection1155FactoryABI, IPCollectionABI, IPGenesisABI, IPMarketplaceABI, IPNftABI, IPSponsorshipABI, IPTicketCollectionABI, IPTicketCollectionFactoryABI, LAUNCH_PRICE_QUOTE_PER_COIN, MarketplaceModule, Medialane1155ABI, Medialane1155Module, MedialaneApiError, MedialaneClient, MedialaneError, OPEN_LICENSES, POPCollectionABI, POPFactoryABI, PUBLIC_RPC_FALLBACKS, PopService, STARKNET_COLLECTION_1155_CLASS_HASH, STARKNET_COLLECTION_1155_CONTRACT, STARKNET_COLLECTION_1155_FACTORY_CLASS_HASH, STARKNET_COLLECTION_1155_START_BLOCK, STARKNET_COLLECTION_721_CONTRACT, STARKNET_COLLECTION_721_START_BLOCK, STARKNET_CREATOR_COIN_CLASS_HASH, STARKNET_CREATOR_COIN_EKUBO_LAUNCHER, STARKNET_CREATOR_COIN_FACTORY_CLASS_HASH, STARKNET_CREATOR_COIN_FACTORY_CONTRACT, STARKNET_CREATOR_COIN_START_BLOCK, STARKNET_DROP_COLLECTION_CLASS_HASH, STARKNET_DROP_FACTORY_CONTRACT, STARKNET_EKUBO_CORE, STARKNET_IPCOLLECTION_CLASS_HASH, STARKNET_IPNFT_CLASS_HASH, STARKNET_IP_CLUB_NFT_CLASS_HASH, STARKNET_IP_CLUB_REGISTRY_CONTRACT, STARKNET_IP_SPONSORSHIP_CONTRACT, STARKNET_IP_SPONSORSHIP_LICENSE_CONTRACT, STARKNET_IP_TICKETS_FACTORY_CONTRACT, STARKNET_IP_TICKET_COLLECTION_CLASS_HASH, STARKNET_MARKETPLACE_1155_CLASS_HASH, STARKNET_MARKETPLACE_1155_CONTRACT, STARKNET_MARKETPLACE_1155_START_BLOCK, STARKNET_MARKETPLACE_721_CLASS_HASH, STARKNET_MARKETPLACE_721_CONTRACT, STARKNET_MARKETPLACE_721_START_BLOCK, STARKNET_NFTCOMMENTS_CONTRACT, STARKNET_POP_COLLECTION_CLASS_HASH, STARKNET_POP_FACTORY_CONTRACT, SUPPORTED_TOKENS, SponsorshipService, TicketService, VALIDATED_EKUBO_PARAMS, adminRequestDigest, build1155CancellationTypedData, build1155OrderTypedData, buildAdminSessionTypedData, buildCancellationTypedData, buildCreateCreatorCoinCall, buildFeeCall, buildLaunchOnEkuboCalls, buildOrderTypedData, buybackQuoteRaw, toRaw as coinToRaw, createAdminSessionGrant, createFailoverFetch, encodeAdminHeaders, encodeByteArray, fdvHuman, formatAmount, getCoordinates, getCreatorCoinPrice, getListableTokens, getService, getServicesByCapability, getSiwsStorageKey, getStoredSiwsToken, getTokenByAddress, getTokenBySymbol, isServiceId, isSiwsTokenValid, isTransientRpcError, listServices, normalizeAddress, normalizeHash, normalizeSiwsSignature, parseAdminHeaders, parseAmount, parseCreatorCoinCreated, randomNonce, requestSiwsToken, resolveConfig, resolveFeeConfig, sessionKeyHashOf, shortenAddress, signAdminRequest, storeSiwsToken, stringifyBigInts, teamCoinsRaw, u256ToBigInt, validateName as validateCoinName, validateSupply as validateCoinSupply, validateSymbol as validateCoinSymbol, verifyAdminRequestSig };
7166
11346
  //# sourceMappingURL=index.js.map
7167
11347
  //# sourceMappingURL=index.js.map