@medialane/sdk 0.68.0 → 0.70.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/evm/index.cjs +7 -10
- package/dist/evm/index.cjs.map +1 -1
- package/dist/evm/index.d.cts +1 -1
- package/dist/evm/index.d.ts +1 -1
- package/dist/evm/index.js +7 -10
- package/dist/evm/index.js.map +1 -1
- package/dist/{index-BZ9ALq55.d.ts → index-C6dV4UYm.d.cts} +366 -1139
- package/dist/{index-ET8dURD-.d.cts → index-DRoaqZ2T.d.ts} +366 -1139
- package/dist/index.cjs +442 -1437
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -11
- package/dist/index.d.ts +18 -11
- package/dist/index.js +443 -1434
- package/dist/index.js.map +1 -1
- package/dist/solana/index.cjs +7 -10
- package/dist/solana/index.cjs.map +1 -1
- package/dist/solana/index.d.cts +1 -1
- package/dist/solana/index.d.ts +1 -1
- package/dist/solana/index.js +7 -10
- package/dist/solana/index.js.map +1 -1
- package/dist/starknet/index.cjs +509 -1509
- package/dist/starknet/index.cjs.map +1 -1
- package/dist/starknet/index.d.cts +2 -2
- package/dist/starknet/index.d.ts +2 -2
- package/dist/starknet/index.js +510 -1508
- package/dist/starknet/index.js.map +1 -1
- package/dist/stellar/index.cjs +7 -10
- package/dist/stellar/index.cjs.map +1 -1
- package/dist/stellar/index.d.cts +1 -1
- package/dist/stellar/index.d.ts +1 -1
- package/dist/stellar/index.js +7 -10
- package/dist/stellar/index.js.map +1 -1
- package/dist/{types-2x30q_6p.d.cts → types-Du_-QoQ1.d.cts} +0 -3
- package/dist/{types-2x30q_6p.d.ts → types-Du_-QoQ1.d.ts} +0 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -37,17 +37,14 @@ var COORDINATES = {
|
|
|
37
37
|
creatorCoinFactoryClassHash: "0x51765926b1344c9a20b8cd4b5abe7b7d47375ae97cf6804db3ea5d4b05a9b55",
|
|
38
38
|
creatorCoinStartBlock: 10474544,
|
|
39
39
|
ekuboCore: "0x00000005dd3d2f4429af886cd1a3b08289dbcea99a294197e9eb43b0e0325b4b",
|
|
40
|
-
ipTicketsFactory: "
|
|
41
|
-
ipTicketCollectionClassHash: "
|
|
40
|
+
ipTicketsFactory: "0x0767bf5b57e1f812463159b5ed683183e1b0c3f942b74871b5c6cd6a93c15e99",
|
|
41
|
+
ipTicketCollectionClassHash: "0x0449e8eb7c117740d07cb8e0157d32c8ba3d19d1cfd2784ed5e139f5a1e04acc",
|
|
42
42
|
ipTicketsFactoryClassHash: "0x04a739ac3a673ebd0db96bb24475600797c3ed34827e79517f9b2b1640276e6a",
|
|
43
|
-
ipTicketsStartBlock:
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
ipClubFactoryClassHash: "0x07197062578375d962b2d42d3e91560770b11b1c97a9defb74c706a2c5299473",
|
|
49
|
-
ipClubCollectionClassHash: "0x35b8836a2269523ae9176077ec525451cce1053b2acd9fae3b05354aa4eded3",
|
|
50
|
-
ipClubFactoryStartBlock: 11884796,
|
|
43
|
+
ipTicketsStartBlock: 11933694,
|
|
44
|
+
ipClubFactory: "0x06a0b0be16d70c78f2e18119dbf90e5911cbfd5d8d484bc555dc61d96f56a2b9",
|
|
45
|
+
ipClubFactoryClassHash: "0x05d9d431bd3532b1fa4d5bab572f49c5ad8034ee3cc83951aa41ae82c9cad266",
|
|
46
|
+
ipClubCollectionClassHash: "0x05b8477c72e6bf0cf64967d71155021fd4d77d9a57e8805c6b40709121c002c5",
|
|
47
|
+
ipClubFactoryStartBlock: 11928775,
|
|
51
48
|
// v3 redesign (deployed 2026-07-15): single contract is both the
|
|
52
49
|
// offer/bid/proposal registry and the license collection (embeds
|
|
53
50
|
// ERC721Component directly) — no separate receipt contract, no
|
|
@@ -896,8 +893,6 @@ var STARKNET_DROP_COLLECTION_CLASS_HASH = SN.dropCollectionClassHash;
|
|
|
896
893
|
var STARKNET_NFTCOMMENTS_CONTRACT = SN.nftComments;
|
|
897
894
|
var STARKNET_IP_TICKETS_FACTORY_CONTRACT = SN.ipTicketsFactory;
|
|
898
895
|
var STARKNET_IP_TICKET_COLLECTION_CLASS_HASH = SN.ipTicketCollectionClassHash;
|
|
899
|
-
var STARKNET_IP_CLUB_REGISTRY_CONTRACT = SN.ipClubRegistry;
|
|
900
|
-
var STARKNET_IP_CLUB_NFT_CLASS_HASH = SN.ipClubNftClassHash;
|
|
901
896
|
var STARKNET_IP_CLUB_FACTORY_CONTRACT = SN.ipClubFactory;
|
|
902
897
|
var STARKNET_IP_CLUB_COLLECTION_CLASS_HASH = SN.ipClubCollectionClassHash;
|
|
903
898
|
var STARKNET_IP_SPONSORSHIP_CONTRACT = SN.ipSponsorship;
|
|
@@ -1064,13 +1059,20 @@ var SERVICES = {
|
|
|
1064
1059
|
"ip-club": {
|
|
1065
1060
|
id: "ip-club",
|
|
1066
1061
|
displayName: "IP Club",
|
|
1067
|
-
description: "Membership clubs
|
|
1068
|
-
standard: "
|
|
1062
|
+
description: "Membership clubs \u2014 create tiers, mint membership cards, trade like any collection.",
|
|
1063
|
+
standard: "ERC1155",
|
|
1069
1064
|
provenance: "MEDIALANE",
|
|
1065
|
+
onchain: {
|
|
1066
|
+
STARKNET: {
|
|
1067
|
+
factoryAddress: SN2.ipClubFactory,
|
|
1068
|
+
classHash: SN2.ipClubCollectionClassHash
|
|
1069
|
+
}
|
|
1070
|
+
},
|
|
1070
1071
|
uiVariant: "club",
|
|
1071
|
-
capabilities: ["
|
|
1072
|
+
capabilities: ["mint", "list", "buy", "make_offer", "cancel", "transfer"],
|
|
1072
1073
|
events: [
|
|
1073
|
-
{ name: "
|
|
1074
|
+
{ name: "ClubDeployed", emittedBy: "factory" },
|
|
1075
|
+
{ name: "MembershipCreated", emittedBy: "instance" }
|
|
1074
1076
|
],
|
|
1075
1077
|
metadataSchema: { licenseDefault: "CC BY-SA" }
|
|
1076
1078
|
},
|
|
@@ -5979,6 +5981,17 @@ var IPTicketCollectionABI = [
|
|
|
5979
5981
|
],
|
|
5980
5982
|
"state_mutability": "view"
|
|
5981
5983
|
},
|
|
5984
|
+
{
|
|
5985
|
+
"type": "function",
|
|
5986
|
+
"name": "ticket_count",
|
|
5987
|
+
"inputs": [],
|
|
5988
|
+
"outputs": [
|
|
5989
|
+
{
|
|
5990
|
+
"type": "core::integer::u256"
|
|
5991
|
+
}
|
|
5992
|
+
],
|
|
5993
|
+
"state_mutability": "view"
|
|
5994
|
+
},
|
|
5982
5995
|
{
|
|
5983
5996
|
"type": "function",
|
|
5984
5997
|
"name": "name",
|
|
@@ -6923,12 +6936,12 @@ var IPTicketCollectionFactoryABI = [
|
|
|
6923
6936
|
}
|
|
6924
6937
|
];
|
|
6925
6938
|
|
|
6926
|
-
// src/starknet/abis/
|
|
6927
|
-
var
|
|
6939
|
+
// src/starknet/abis/ipClubFactory.ts
|
|
6940
|
+
var IPClubFactoryABI = [
|
|
6928
6941
|
{
|
|
6929
6942
|
"type": "impl",
|
|
6930
|
-
"name": "
|
|
6931
|
-
"interface_name": "ip_club::
|
|
6943
|
+
"name": "IPClubCollectionFactoryImpl",
|
|
6944
|
+
"interface_name": "ip_club::interface::IIPClubCollectionFactory"
|
|
6932
6945
|
},
|
|
6933
6946
|
{
|
|
6934
6947
|
"type": "struct",
|
|
@@ -6948,240 +6961,55 @@ var IPClubABI = [
|
|
|
6948
6961
|
}
|
|
6949
6962
|
]
|
|
6950
6963
|
},
|
|
6951
|
-
{
|
|
6952
|
-
"type": "enum",
|
|
6953
|
-
"name": "core::option::Option::<core::integer::u32>",
|
|
6954
|
-
"variants": [
|
|
6955
|
-
{
|
|
6956
|
-
"name": "Some",
|
|
6957
|
-
"type": "core::integer::u32"
|
|
6958
|
-
},
|
|
6959
|
-
{
|
|
6960
|
-
"name": "None",
|
|
6961
|
-
"type": "()"
|
|
6962
|
-
}
|
|
6963
|
-
]
|
|
6964
|
-
},
|
|
6965
|
-
{
|
|
6966
|
-
"type": "struct",
|
|
6967
|
-
"name": "core::integer::u256",
|
|
6968
|
-
"members": [
|
|
6969
|
-
{
|
|
6970
|
-
"name": "low",
|
|
6971
|
-
"type": "core::integer::u128"
|
|
6972
|
-
},
|
|
6973
|
-
{
|
|
6974
|
-
"name": "high",
|
|
6975
|
-
"type": "core::integer::u128"
|
|
6976
|
-
}
|
|
6977
|
-
]
|
|
6978
|
-
},
|
|
6979
|
-
{
|
|
6980
|
-
"type": "enum",
|
|
6981
|
-
"name": "core::option::Option::<core::integer::u256>",
|
|
6982
|
-
"variants": [
|
|
6983
|
-
{
|
|
6984
|
-
"name": "Some",
|
|
6985
|
-
"type": "core::integer::u256"
|
|
6986
|
-
},
|
|
6987
|
-
{
|
|
6988
|
-
"name": "None",
|
|
6989
|
-
"type": "()"
|
|
6990
|
-
}
|
|
6991
|
-
]
|
|
6992
|
-
},
|
|
6993
|
-
{
|
|
6994
|
-
"type": "enum",
|
|
6995
|
-
"name": "core::option::Option::<core::starknet::contract_address::ContractAddress>",
|
|
6996
|
-
"variants": [
|
|
6997
|
-
{
|
|
6998
|
-
"name": "Some",
|
|
6999
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
7000
|
-
},
|
|
7001
|
-
{
|
|
7002
|
-
"name": "None",
|
|
7003
|
-
"type": "()"
|
|
7004
|
-
}
|
|
7005
|
-
]
|
|
7006
|
-
},
|
|
7007
|
-
{
|
|
7008
|
-
"type": "enum",
|
|
7009
|
-
"name": "core::bool",
|
|
7010
|
-
"variants": [
|
|
7011
|
-
{
|
|
7012
|
-
"name": "False",
|
|
7013
|
-
"type": "()"
|
|
7014
|
-
},
|
|
7015
|
-
{
|
|
7016
|
-
"name": "True",
|
|
7017
|
-
"type": "()"
|
|
7018
|
-
}
|
|
7019
|
-
]
|
|
7020
|
-
},
|
|
7021
|
-
{
|
|
7022
|
-
"type": "struct",
|
|
7023
|
-
"name": "ip_club::types::ClubRecord",
|
|
7024
|
-
"members": [
|
|
7025
|
-
{
|
|
7026
|
-
"name": "creator",
|
|
7027
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
7028
|
-
},
|
|
7029
|
-
{
|
|
7030
|
-
"name": "club_nft",
|
|
7031
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
7032
|
-
},
|
|
7033
|
-
{
|
|
7034
|
-
"name": "open",
|
|
7035
|
-
"type": "core::bool"
|
|
7036
|
-
},
|
|
7037
|
-
{
|
|
7038
|
-
"name": "num_members",
|
|
7039
|
-
"type": "core::integer::u32"
|
|
7040
|
-
},
|
|
7041
|
-
{
|
|
7042
|
-
"name": "max_members",
|
|
7043
|
-
"type": "core::option::Option::<core::integer::u32>"
|
|
7044
|
-
},
|
|
7045
|
-
{
|
|
7046
|
-
"name": "entry_fee",
|
|
7047
|
-
"type": "core::option::Option::<core::integer::u256>"
|
|
7048
|
-
},
|
|
7049
|
-
{
|
|
7050
|
-
"name": "payment_token",
|
|
7051
|
-
"type": "core::option::Option::<core::starknet::contract_address::ContractAddress>"
|
|
7052
|
-
}
|
|
7053
|
-
]
|
|
7054
|
-
},
|
|
7055
6964
|
{
|
|
7056
6965
|
"type": "interface",
|
|
7057
|
-
"name": "ip_club::
|
|
6966
|
+
"name": "ip_club::interface::IIPClubCollectionFactory",
|
|
7058
6967
|
"items": [
|
|
7059
6968
|
{
|
|
7060
6969
|
"type": "function",
|
|
7061
|
-
"name": "
|
|
7062
|
-
"inputs": [
|
|
7063
|
-
{
|
|
7064
|
-
"name": "name",
|
|
7065
|
-
"type": "core::byte_array::ByteArray"
|
|
7066
|
-
},
|
|
7067
|
-
{
|
|
7068
|
-
"name": "symbol",
|
|
7069
|
-
"type": "core::byte_array::ByteArray"
|
|
7070
|
-
},
|
|
7071
|
-
{
|
|
7072
|
-
"name": "metadata_uri",
|
|
7073
|
-
"type": "core::byte_array::ByteArray"
|
|
7074
|
-
},
|
|
7075
|
-
{
|
|
7076
|
-
"name": "max_members",
|
|
7077
|
-
"type": "core::option::Option::<core::integer::u32>"
|
|
7078
|
-
},
|
|
7079
|
-
{
|
|
7080
|
-
"name": "entry_fee",
|
|
7081
|
-
"type": "core::option::Option::<core::integer::u256>"
|
|
7082
|
-
},
|
|
7083
|
-
{
|
|
7084
|
-
"name": "payment_token",
|
|
7085
|
-
"type": "core::option::Option::<core::starknet::contract_address::ContractAddress>"
|
|
7086
|
-
}
|
|
7087
|
-
],
|
|
6970
|
+
"name": "collection_class_hash",
|
|
6971
|
+
"inputs": [],
|
|
7088
6972
|
"outputs": [
|
|
7089
6973
|
{
|
|
7090
|
-
"type": "core::
|
|
7091
|
-
}
|
|
7092
|
-
],
|
|
7093
|
-
"state_mutability": "external"
|
|
7094
|
-
},
|
|
7095
|
-
{
|
|
7096
|
-
"type": "function",
|
|
7097
|
-
"name": "set_club_open",
|
|
7098
|
-
"inputs": [
|
|
7099
|
-
{
|
|
7100
|
-
"name": "club_id",
|
|
7101
|
-
"type": "core::integer::u256"
|
|
7102
|
-
},
|
|
7103
|
-
{
|
|
7104
|
-
"name": "open",
|
|
7105
|
-
"type": "core::bool"
|
|
7106
|
-
}
|
|
7107
|
-
],
|
|
7108
|
-
"outputs": [],
|
|
7109
|
-
"state_mutability": "external"
|
|
7110
|
-
},
|
|
7111
|
-
{
|
|
7112
|
-
"type": "function",
|
|
7113
|
-
"name": "join_club",
|
|
7114
|
-
"inputs": [
|
|
7115
|
-
{
|
|
7116
|
-
"name": "club_id",
|
|
7117
|
-
"type": "core::integer::u256"
|
|
7118
|
-
}
|
|
7119
|
-
],
|
|
7120
|
-
"outputs": [],
|
|
7121
|
-
"state_mutability": "external"
|
|
7122
|
-
},
|
|
7123
|
-
{
|
|
7124
|
-
"type": "function",
|
|
7125
|
-
"name": "leave_club",
|
|
7126
|
-
"inputs": [
|
|
7127
|
-
{
|
|
7128
|
-
"name": "club_id",
|
|
7129
|
-
"type": "core::integer::u256"
|
|
7130
|
-
},
|
|
7131
|
-
{
|
|
7132
|
-
"name": "token_id",
|
|
7133
|
-
"type": "core::integer::u256"
|
|
6974
|
+
"type": "core::starknet::class_hash::ClassHash"
|
|
7134
6975
|
}
|
|
7135
6976
|
],
|
|
7136
|
-
"
|
|
7137
|
-
"state_mutability": "external"
|
|
6977
|
+
"state_mutability": "view"
|
|
7138
6978
|
},
|
|
7139
6979
|
{
|
|
7140
6980
|
"type": "function",
|
|
7141
|
-
"name": "
|
|
7142
|
-
"inputs": [
|
|
7143
|
-
{
|
|
7144
|
-
"name": "club_id",
|
|
7145
|
-
"type": "core::integer::u256"
|
|
7146
|
-
}
|
|
7147
|
-
],
|
|
6981
|
+
"name": "version",
|
|
6982
|
+
"inputs": [],
|
|
7148
6983
|
"outputs": [
|
|
7149
6984
|
{
|
|
7150
|
-
"type": "
|
|
6985
|
+
"type": "core::byte_array::ByteArray"
|
|
7151
6986
|
}
|
|
7152
6987
|
],
|
|
7153
6988
|
"state_mutability": "view"
|
|
7154
6989
|
},
|
|
7155
6990
|
{
|
|
7156
6991
|
"type": "function",
|
|
7157
|
-
"name": "
|
|
6992
|
+
"name": "deploy_collection",
|
|
7158
6993
|
"inputs": [
|
|
7159
6994
|
{
|
|
7160
|
-
"name": "
|
|
7161
|
-
"type": "core::
|
|
6995
|
+
"name": "name",
|
|
6996
|
+
"type": "core::byte_array::ByteArray"
|
|
7162
6997
|
},
|
|
7163
6998
|
{
|
|
7164
|
-
"name": "
|
|
7165
|
-
"type": "core::
|
|
7166
|
-
}
|
|
7167
|
-
],
|
|
7168
|
-
"outputs": [
|
|
6999
|
+
"name": "symbol",
|
|
7000
|
+
"type": "core::byte_array::ByteArray"
|
|
7001
|
+
},
|
|
7169
7002
|
{
|
|
7170
|
-
"
|
|
7003
|
+
"name": "base_uri",
|
|
7004
|
+
"type": "core::byte_array::ByteArray"
|
|
7171
7005
|
}
|
|
7172
7006
|
],
|
|
7173
|
-
"state_mutability": "view"
|
|
7174
|
-
},
|
|
7175
|
-
{
|
|
7176
|
-
"type": "function",
|
|
7177
|
-
"name": "get_last_club_id",
|
|
7178
|
-
"inputs": [],
|
|
7179
7007
|
"outputs": [
|
|
7180
7008
|
{
|
|
7181
|
-
"type": "core::
|
|
7009
|
+
"type": "core::starknet::contract_address::ContractAddress"
|
|
7182
7010
|
}
|
|
7183
7011
|
],
|
|
7184
|
-
"state_mutability": "
|
|
7012
|
+
"state_mutability": "external"
|
|
7185
7013
|
}
|
|
7186
7014
|
]
|
|
7187
7015
|
},
|
|
@@ -7190,6 +7018,20 @@ var IPClubABI = [
|
|
|
7190
7018
|
"name": "SRC5Impl",
|
|
7191
7019
|
"interface_name": "openzeppelin_introspection::interface::ISRC5"
|
|
7192
7020
|
},
|
|
7021
|
+
{
|
|
7022
|
+
"type": "enum",
|
|
7023
|
+
"name": "core::bool",
|
|
7024
|
+
"variants": [
|
|
7025
|
+
{
|
|
7026
|
+
"name": "False",
|
|
7027
|
+
"type": "()"
|
|
7028
|
+
},
|
|
7029
|
+
{
|
|
7030
|
+
"name": "True",
|
|
7031
|
+
"type": "()"
|
|
7032
|
+
}
|
|
7033
|
+
]
|
|
7034
|
+
},
|
|
7193
7035
|
{
|
|
7194
7036
|
"type": "interface",
|
|
7195
7037
|
"name": "openzeppelin_introspection::interface::ISRC5",
|
|
@@ -7217,7 +7059,7 @@ var IPClubABI = [
|
|
|
7217
7059
|
"name": "constructor",
|
|
7218
7060
|
"inputs": [
|
|
7219
7061
|
{
|
|
7220
|
-
"name": "
|
|
7062
|
+
"name": "collection_class_hash",
|
|
7221
7063
|
"type": "core::starknet::class_hash::ClassHash"
|
|
7222
7064
|
}
|
|
7223
7065
|
]
|
|
@@ -7230,914 +7072,47 @@ var IPClubABI = [
|
|
|
7230
7072
|
},
|
|
7231
7073
|
{
|
|
7232
7074
|
"type": "event",
|
|
7233
|
-
"name": "ip_club::
|
|
7075
|
+
"name": "ip_club::IPClubCollectionFactory::IPClubCollectionFactory::ClubDeployed",
|
|
7234
7076
|
"kind": "struct",
|
|
7235
7077
|
"members": [
|
|
7236
7078
|
{
|
|
7237
|
-
"name": "
|
|
7238
|
-
"type": "core::integer::u256",
|
|
7239
|
-
"kind": "key"
|
|
7240
|
-
},
|
|
7241
|
-
{
|
|
7242
|
-
"name": "creator",
|
|
7079
|
+
"name": "collection_address",
|
|
7243
7080
|
"type": "core::starknet::contract_address::ContractAddress",
|
|
7244
7081
|
"kind": "key"
|
|
7245
7082
|
},
|
|
7246
7083
|
{
|
|
7247
|
-
"name": "
|
|
7084
|
+
"name": "owner",
|
|
7248
7085
|
"type": "core::starknet::contract_address::ContractAddress",
|
|
7249
|
-
"kind": "
|
|
7086
|
+
"kind": "key"
|
|
7250
7087
|
},
|
|
7251
7088
|
{
|
|
7252
|
-
"name": "
|
|
7089
|
+
"name": "name",
|
|
7253
7090
|
"type": "core::byte_array::ByteArray",
|
|
7254
7091
|
"kind": "data"
|
|
7255
7092
|
},
|
|
7256
7093
|
{
|
|
7257
|
-
"name": "
|
|
7258
|
-
"type": "core::
|
|
7094
|
+
"name": "symbol",
|
|
7095
|
+
"type": "core::byte_array::ByteArray",
|
|
7259
7096
|
"kind": "data"
|
|
7260
7097
|
}
|
|
7261
7098
|
]
|
|
7262
7099
|
},
|
|
7263
7100
|
{
|
|
7264
7101
|
"type": "event",
|
|
7265
|
-
"name": "ip_club::
|
|
7266
|
-
"kind": "
|
|
7267
|
-
"
|
|
7268
|
-
{
|
|
7269
|
-
"name": "club_id",
|
|
7270
|
-
"type": "core::integer::u256",
|
|
7271
|
-
"kind": "key"
|
|
7272
|
-
},
|
|
7102
|
+
"name": "ip_club::IPClubCollectionFactory::IPClubCollectionFactory::Event",
|
|
7103
|
+
"kind": "enum",
|
|
7104
|
+
"variants": [
|
|
7273
7105
|
{
|
|
7274
|
-
"name": "
|
|
7275
|
-
"type": "
|
|
7276
|
-
"kind": "
|
|
7106
|
+
"name": "SRC5Event",
|
|
7107
|
+
"type": "openzeppelin_introspection::src5::SRC5Component::Event",
|
|
7108
|
+
"kind": "flat"
|
|
7277
7109
|
},
|
|
7278
7110
|
{
|
|
7279
|
-
"name": "
|
|
7280
|
-
"type": "
|
|
7281
|
-
"kind": "data"
|
|
7282
|
-
}
|
|
7283
|
-
]
|
|
7284
|
-
},
|
|
7285
|
-
{
|
|
7286
|
-
"type": "event",
|
|
7287
|
-
"name": "ip_club::events::NewMember",
|
|
7288
|
-
"kind": "struct",
|
|
7289
|
-
"members": [
|
|
7290
|
-
{
|
|
7291
|
-
"name": "club_id",
|
|
7292
|
-
"type": "core::integer::u256",
|
|
7293
|
-
"kind": "key"
|
|
7294
|
-
},
|
|
7295
|
-
{
|
|
7296
|
-
"name": "member",
|
|
7297
|
-
"type": "core::starknet::contract_address::ContractAddress",
|
|
7298
|
-
"kind": "key"
|
|
7299
|
-
},
|
|
7300
|
-
{
|
|
7301
|
-
"name": "timestamp",
|
|
7302
|
-
"type": "core::integer::u64",
|
|
7303
|
-
"kind": "data"
|
|
7304
|
-
}
|
|
7305
|
-
]
|
|
7306
|
-
},
|
|
7307
|
-
{
|
|
7308
|
-
"type": "event",
|
|
7309
|
-
"name": "ip_club::events::MemberLeft",
|
|
7310
|
-
"kind": "struct",
|
|
7311
|
-
"members": [
|
|
7312
|
-
{
|
|
7313
|
-
"name": "club_id",
|
|
7314
|
-
"type": "core::integer::u256",
|
|
7315
|
-
"kind": "key"
|
|
7316
|
-
},
|
|
7317
|
-
{
|
|
7318
|
-
"name": "member",
|
|
7319
|
-
"type": "core::starknet::contract_address::ContractAddress",
|
|
7320
|
-
"kind": "key"
|
|
7321
|
-
},
|
|
7322
|
-
{
|
|
7323
|
-
"name": "timestamp",
|
|
7324
|
-
"type": "core::integer::u64",
|
|
7325
|
-
"kind": "data"
|
|
7326
|
-
}
|
|
7327
|
-
]
|
|
7328
|
-
},
|
|
7329
|
-
{
|
|
7330
|
-
"type": "event",
|
|
7331
|
-
"name": "ip_club::IPClub::IPClub::Event",
|
|
7332
|
-
"kind": "enum",
|
|
7333
|
-
"variants": [
|
|
7334
|
-
{
|
|
7335
|
-
"name": "SRC5Event",
|
|
7336
|
-
"type": "openzeppelin_introspection::src5::SRC5Component::Event",
|
|
7337
|
-
"kind": "flat"
|
|
7338
|
-
},
|
|
7339
|
-
{
|
|
7340
|
-
"name": "NewClubCreated",
|
|
7341
|
-
"type": "ip_club::events::NewClubCreated",
|
|
7342
|
-
"kind": "nested"
|
|
7343
|
-
},
|
|
7344
|
-
{
|
|
7345
|
-
"name": "ClubStatusUpdated",
|
|
7346
|
-
"type": "ip_club::events::ClubStatusUpdated",
|
|
7347
|
-
"kind": "nested"
|
|
7348
|
-
},
|
|
7349
|
-
{
|
|
7350
|
-
"name": "NewMember",
|
|
7351
|
-
"type": "ip_club::events::NewMember",
|
|
7352
|
-
"kind": "nested"
|
|
7353
|
-
},
|
|
7354
|
-
{
|
|
7355
|
-
"name": "MemberLeft",
|
|
7356
|
-
"type": "ip_club::events::MemberLeft",
|
|
7357
|
-
"kind": "nested"
|
|
7358
|
-
}
|
|
7359
|
-
]
|
|
7360
|
-
}
|
|
7361
|
-
];
|
|
7362
|
-
|
|
7363
|
-
// src/starknet/abis/ipClubNft.ts
|
|
7364
|
-
var IPClubNFTABI = [
|
|
7365
|
-
{
|
|
7366
|
-
"type": "impl",
|
|
7367
|
-
"name": "IIPClubNFTImpl",
|
|
7368
|
-
"interface_name": "ip_club::interfaces::IIPClubNFT::IIPClubNFT"
|
|
7369
|
-
},
|
|
7370
|
-
{
|
|
7371
|
-
"type": "struct",
|
|
7372
|
-
"name": "core::integer::u256",
|
|
7373
|
-
"members": [
|
|
7374
|
-
{
|
|
7375
|
-
"name": "low",
|
|
7376
|
-
"type": "core::integer::u128"
|
|
7377
|
-
},
|
|
7378
|
-
{
|
|
7379
|
-
"name": "high",
|
|
7380
|
-
"type": "core::integer::u128"
|
|
7381
|
-
}
|
|
7382
|
-
]
|
|
7383
|
-
},
|
|
7384
|
-
{
|
|
7385
|
-
"type": "enum",
|
|
7386
|
-
"name": "core::bool",
|
|
7387
|
-
"variants": [
|
|
7388
|
-
{
|
|
7389
|
-
"name": "False",
|
|
7390
|
-
"type": "()"
|
|
7391
|
-
},
|
|
7392
|
-
{
|
|
7393
|
-
"name": "True",
|
|
7394
|
-
"type": "()"
|
|
7395
|
-
}
|
|
7396
|
-
]
|
|
7397
|
-
},
|
|
7398
|
-
{
|
|
7399
|
-
"type": "interface",
|
|
7400
|
-
"name": "ip_club::interfaces::IIPClubNFT::IIPClubNFT",
|
|
7401
|
-
"items": [
|
|
7402
|
-
{
|
|
7403
|
-
"type": "function",
|
|
7404
|
-
"name": "mint",
|
|
7405
|
-
"inputs": [
|
|
7406
|
-
{
|
|
7407
|
-
"name": "recipient",
|
|
7408
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
7409
|
-
}
|
|
7410
|
-
],
|
|
7411
|
-
"outputs": [],
|
|
7412
|
-
"state_mutability": "external"
|
|
7413
|
-
},
|
|
7414
|
-
{
|
|
7415
|
-
"type": "function",
|
|
7416
|
-
"name": "burn",
|
|
7417
|
-
"inputs": [
|
|
7418
|
-
{
|
|
7419
|
-
"name": "member",
|
|
7420
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
7421
|
-
},
|
|
7422
|
-
{
|
|
7423
|
-
"name": "token_id",
|
|
7424
|
-
"type": "core::integer::u256"
|
|
7425
|
-
}
|
|
7426
|
-
],
|
|
7427
|
-
"outputs": [],
|
|
7428
|
-
"state_mutability": "external"
|
|
7429
|
-
},
|
|
7430
|
-
{
|
|
7431
|
-
"type": "function",
|
|
7432
|
-
"name": "has_nft",
|
|
7433
|
-
"inputs": [
|
|
7434
|
-
{
|
|
7435
|
-
"name": "user",
|
|
7436
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
7437
|
-
}
|
|
7438
|
-
],
|
|
7439
|
-
"outputs": [
|
|
7440
|
-
{
|
|
7441
|
-
"type": "core::bool"
|
|
7442
|
-
}
|
|
7443
|
-
],
|
|
7444
|
-
"state_mutability": "view"
|
|
7445
|
-
},
|
|
7446
|
-
{
|
|
7447
|
-
"type": "function",
|
|
7448
|
-
"name": "get_nft_creator",
|
|
7449
|
-
"inputs": [],
|
|
7450
|
-
"outputs": [
|
|
7451
|
-
{
|
|
7452
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
7453
|
-
}
|
|
7454
|
-
],
|
|
7455
|
-
"state_mutability": "view"
|
|
7456
|
-
},
|
|
7457
|
-
{
|
|
7458
|
-
"type": "function",
|
|
7459
|
-
"name": "get_ip_club_manager",
|
|
7460
|
-
"inputs": [],
|
|
7461
|
-
"outputs": [
|
|
7462
|
-
{
|
|
7463
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
7464
|
-
}
|
|
7465
|
-
],
|
|
7466
|
-
"state_mutability": "view"
|
|
7467
|
-
},
|
|
7468
|
-
{
|
|
7469
|
-
"type": "function",
|
|
7470
|
-
"name": "get_associated_club_id",
|
|
7471
|
-
"inputs": [],
|
|
7472
|
-
"outputs": [
|
|
7473
|
-
{
|
|
7474
|
-
"type": "core::integer::u256"
|
|
7475
|
-
}
|
|
7476
|
-
],
|
|
7477
|
-
"state_mutability": "view"
|
|
7478
|
-
},
|
|
7479
|
-
{
|
|
7480
|
-
"type": "function",
|
|
7481
|
-
"name": "get_last_minted_id",
|
|
7482
|
-
"inputs": [],
|
|
7483
|
-
"outputs": [
|
|
7484
|
-
{
|
|
7485
|
-
"type": "core::integer::u256"
|
|
7486
|
-
}
|
|
7487
|
-
],
|
|
7488
|
-
"state_mutability": "view"
|
|
7489
|
-
}
|
|
7490
|
-
]
|
|
7491
|
-
},
|
|
7492
|
-
{
|
|
7493
|
-
"type": "impl",
|
|
7494
|
-
"name": "ERC721MixinImpl",
|
|
7495
|
-
"interface_name": "openzeppelin_token::erc721::interface::ERC721ABI"
|
|
7496
|
-
},
|
|
7497
|
-
{
|
|
7498
|
-
"type": "struct",
|
|
7499
|
-
"name": "core::array::Span::<core::felt252>",
|
|
7500
|
-
"members": [
|
|
7501
|
-
{
|
|
7502
|
-
"name": "snapshot",
|
|
7503
|
-
"type": "@core::array::Array::<core::felt252>"
|
|
7504
|
-
}
|
|
7505
|
-
]
|
|
7506
|
-
},
|
|
7507
|
-
{
|
|
7508
|
-
"type": "struct",
|
|
7509
|
-
"name": "core::byte_array::ByteArray",
|
|
7510
|
-
"members": [
|
|
7511
|
-
{
|
|
7512
|
-
"name": "data",
|
|
7513
|
-
"type": "core::array::Array::<core::bytes_31::bytes31>"
|
|
7514
|
-
},
|
|
7515
|
-
{
|
|
7516
|
-
"name": "pending_word",
|
|
7517
|
-
"type": "core::felt252"
|
|
7518
|
-
},
|
|
7519
|
-
{
|
|
7520
|
-
"name": "pending_word_len",
|
|
7521
|
-
"type": "core::internal::bounded_int::BoundedInt::<0, 30>"
|
|
7522
|
-
}
|
|
7523
|
-
]
|
|
7524
|
-
},
|
|
7525
|
-
{
|
|
7526
|
-
"type": "interface",
|
|
7527
|
-
"name": "openzeppelin_token::erc721::interface::ERC721ABI",
|
|
7528
|
-
"items": [
|
|
7529
|
-
{
|
|
7530
|
-
"type": "function",
|
|
7531
|
-
"name": "balance_of",
|
|
7532
|
-
"inputs": [
|
|
7533
|
-
{
|
|
7534
|
-
"name": "account",
|
|
7535
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
7536
|
-
}
|
|
7537
|
-
],
|
|
7538
|
-
"outputs": [
|
|
7539
|
-
{
|
|
7540
|
-
"type": "core::integer::u256"
|
|
7541
|
-
}
|
|
7542
|
-
],
|
|
7543
|
-
"state_mutability": "view"
|
|
7544
|
-
},
|
|
7545
|
-
{
|
|
7546
|
-
"type": "function",
|
|
7547
|
-
"name": "owner_of",
|
|
7548
|
-
"inputs": [
|
|
7549
|
-
{
|
|
7550
|
-
"name": "token_id",
|
|
7551
|
-
"type": "core::integer::u256"
|
|
7552
|
-
}
|
|
7553
|
-
],
|
|
7554
|
-
"outputs": [
|
|
7555
|
-
{
|
|
7556
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
7557
|
-
}
|
|
7558
|
-
],
|
|
7559
|
-
"state_mutability": "view"
|
|
7560
|
-
},
|
|
7561
|
-
{
|
|
7562
|
-
"type": "function",
|
|
7563
|
-
"name": "safe_transfer_from",
|
|
7564
|
-
"inputs": [
|
|
7565
|
-
{
|
|
7566
|
-
"name": "from",
|
|
7567
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
7568
|
-
},
|
|
7569
|
-
{
|
|
7570
|
-
"name": "to",
|
|
7571
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
7572
|
-
},
|
|
7573
|
-
{
|
|
7574
|
-
"name": "token_id",
|
|
7575
|
-
"type": "core::integer::u256"
|
|
7576
|
-
},
|
|
7577
|
-
{
|
|
7578
|
-
"name": "data",
|
|
7579
|
-
"type": "core::array::Span::<core::felt252>"
|
|
7580
|
-
}
|
|
7581
|
-
],
|
|
7582
|
-
"outputs": [],
|
|
7583
|
-
"state_mutability": "external"
|
|
7584
|
-
},
|
|
7585
|
-
{
|
|
7586
|
-
"type": "function",
|
|
7587
|
-
"name": "transfer_from",
|
|
7588
|
-
"inputs": [
|
|
7589
|
-
{
|
|
7590
|
-
"name": "from",
|
|
7591
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
7592
|
-
},
|
|
7593
|
-
{
|
|
7594
|
-
"name": "to",
|
|
7595
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
7596
|
-
},
|
|
7597
|
-
{
|
|
7598
|
-
"name": "token_id",
|
|
7599
|
-
"type": "core::integer::u256"
|
|
7600
|
-
}
|
|
7601
|
-
],
|
|
7602
|
-
"outputs": [],
|
|
7603
|
-
"state_mutability": "external"
|
|
7604
|
-
},
|
|
7605
|
-
{
|
|
7606
|
-
"type": "function",
|
|
7607
|
-
"name": "approve",
|
|
7608
|
-
"inputs": [
|
|
7609
|
-
{
|
|
7610
|
-
"name": "to",
|
|
7611
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
7612
|
-
},
|
|
7613
|
-
{
|
|
7614
|
-
"name": "token_id",
|
|
7615
|
-
"type": "core::integer::u256"
|
|
7616
|
-
}
|
|
7617
|
-
],
|
|
7618
|
-
"outputs": [],
|
|
7619
|
-
"state_mutability": "external"
|
|
7620
|
-
},
|
|
7621
|
-
{
|
|
7622
|
-
"type": "function",
|
|
7623
|
-
"name": "set_approval_for_all",
|
|
7624
|
-
"inputs": [
|
|
7625
|
-
{
|
|
7626
|
-
"name": "operator",
|
|
7627
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
7628
|
-
},
|
|
7629
|
-
{
|
|
7630
|
-
"name": "approved",
|
|
7631
|
-
"type": "core::bool"
|
|
7632
|
-
}
|
|
7633
|
-
],
|
|
7634
|
-
"outputs": [],
|
|
7635
|
-
"state_mutability": "external"
|
|
7636
|
-
},
|
|
7637
|
-
{
|
|
7638
|
-
"type": "function",
|
|
7639
|
-
"name": "get_approved",
|
|
7640
|
-
"inputs": [
|
|
7641
|
-
{
|
|
7642
|
-
"name": "token_id",
|
|
7643
|
-
"type": "core::integer::u256"
|
|
7644
|
-
}
|
|
7645
|
-
],
|
|
7646
|
-
"outputs": [
|
|
7647
|
-
{
|
|
7648
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
7649
|
-
}
|
|
7650
|
-
],
|
|
7651
|
-
"state_mutability": "view"
|
|
7652
|
-
},
|
|
7653
|
-
{
|
|
7654
|
-
"type": "function",
|
|
7655
|
-
"name": "is_approved_for_all",
|
|
7656
|
-
"inputs": [
|
|
7657
|
-
{
|
|
7658
|
-
"name": "owner",
|
|
7659
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
7660
|
-
},
|
|
7661
|
-
{
|
|
7662
|
-
"name": "operator",
|
|
7663
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
7664
|
-
}
|
|
7665
|
-
],
|
|
7666
|
-
"outputs": [
|
|
7667
|
-
{
|
|
7668
|
-
"type": "core::bool"
|
|
7669
|
-
}
|
|
7670
|
-
],
|
|
7671
|
-
"state_mutability": "view"
|
|
7672
|
-
},
|
|
7673
|
-
{
|
|
7674
|
-
"type": "function",
|
|
7675
|
-
"name": "supports_interface",
|
|
7676
|
-
"inputs": [
|
|
7677
|
-
{
|
|
7678
|
-
"name": "interface_id",
|
|
7679
|
-
"type": "core::felt252"
|
|
7680
|
-
}
|
|
7681
|
-
],
|
|
7682
|
-
"outputs": [
|
|
7683
|
-
{
|
|
7684
|
-
"type": "core::bool"
|
|
7685
|
-
}
|
|
7686
|
-
],
|
|
7687
|
-
"state_mutability": "view"
|
|
7688
|
-
},
|
|
7689
|
-
{
|
|
7690
|
-
"type": "function",
|
|
7691
|
-
"name": "name",
|
|
7692
|
-
"inputs": [],
|
|
7693
|
-
"outputs": [
|
|
7694
|
-
{
|
|
7695
|
-
"type": "core::byte_array::ByteArray"
|
|
7696
|
-
}
|
|
7697
|
-
],
|
|
7698
|
-
"state_mutability": "view"
|
|
7699
|
-
},
|
|
7700
|
-
{
|
|
7701
|
-
"type": "function",
|
|
7702
|
-
"name": "symbol",
|
|
7703
|
-
"inputs": [],
|
|
7704
|
-
"outputs": [
|
|
7705
|
-
{
|
|
7706
|
-
"type": "core::byte_array::ByteArray"
|
|
7707
|
-
}
|
|
7708
|
-
],
|
|
7709
|
-
"state_mutability": "view"
|
|
7710
|
-
},
|
|
7711
|
-
{
|
|
7712
|
-
"type": "function",
|
|
7713
|
-
"name": "token_uri",
|
|
7714
|
-
"inputs": [
|
|
7715
|
-
{
|
|
7716
|
-
"name": "token_id",
|
|
7717
|
-
"type": "core::integer::u256"
|
|
7718
|
-
}
|
|
7719
|
-
],
|
|
7720
|
-
"outputs": [
|
|
7721
|
-
{
|
|
7722
|
-
"type": "core::byte_array::ByteArray"
|
|
7723
|
-
}
|
|
7724
|
-
],
|
|
7725
|
-
"state_mutability": "view"
|
|
7726
|
-
},
|
|
7727
|
-
{
|
|
7728
|
-
"type": "function",
|
|
7729
|
-
"name": "balanceOf",
|
|
7730
|
-
"inputs": [
|
|
7731
|
-
{
|
|
7732
|
-
"name": "account",
|
|
7733
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
7734
|
-
}
|
|
7735
|
-
],
|
|
7736
|
-
"outputs": [
|
|
7737
|
-
{
|
|
7738
|
-
"type": "core::integer::u256"
|
|
7739
|
-
}
|
|
7740
|
-
],
|
|
7741
|
-
"state_mutability": "view"
|
|
7742
|
-
},
|
|
7743
|
-
{
|
|
7744
|
-
"type": "function",
|
|
7745
|
-
"name": "ownerOf",
|
|
7746
|
-
"inputs": [
|
|
7747
|
-
{
|
|
7748
|
-
"name": "tokenId",
|
|
7749
|
-
"type": "core::integer::u256"
|
|
7750
|
-
}
|
|
7751
|
-
],
|
|
7752
|
-
"outputs": [
|
|
7753
|
-
{
|
|
7754
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
7755
|
-
}
|
|
7756
|
-
],
|
|
7757
|
-
"state_mutability": "view"
|
|
7758
|
-
},
|
|
7759
|
-
{
|
|
7760
|
-
"type": "function",
|
|
7761
|
-
"name": "safeTransferFrom",
|
|
7762
|
-
"inputs": [
|
|
7763
|
-
{
|
|
7764
|
-
"name": "from",
|
|
7765
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
7766
|
-
},
|
|
7767
|
-
{
|
|
7768
|
-
"name": "to",
|
|
7769
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
7770
|
-
},
|
|
7771
|
-
{
|
|
7772
|
-
"name": "tokenId",
|
|
7773
|
-
"type": "core::integer::u256"
|
|
7774
|
-
},
|
|
7775
|
-
{
|
|
7776
|
-
"name": "data",
|
|
7777
|
-
"type": "core::array::Span::<core::felt252>"
|
|
7778
|
-
}
|
|
7779
|
-
],
|
|
7780
|
-
"outputs": [],
|
|
7781
|
-
"state_mutability": "external"
|
|
7782
|
-
},
|
|
7783
|
-
{
|
|
7784
|
-
"type": "function",
|
|
7785
|
-
"name": "transferFrom",
|
|
7786
|
-
"inputs": [
|
|
7787
|
-
{
|
|
7788
|
-
"name": "from",
|
|
7789
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
7790
|
-
},
|
|
7791
|
-
{
|
|
7792
|
-
"name": "to",
|
|
7793
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
7794
|
-
},
|
|
7795
|
-
{
|
|
7796
|
-
"name": "tokenId",
|
|
7797
|
-
"type": "core::integer::u256"
|
|
7798
|
-
}
|
|
7799
|
-
],
|
|
7800
|
-
"outputs": [],
|
|
7801
|
-
"state_mutability": "external"
|
|
7802
|
-
},
|
|
7803
|
-
{
|
|
7804
|
-
"type": "function",
|
|
7805
|
-
"name": "setApprovalForAll",
|
|
7806
|
-
"inputs": [
|
|
7807
|
-
{
|
|
7808
|
-
"name": "operator",
|
|
7809
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
7810
|
-
},
|
|
7811
|
-
{
|
|
7812
|
-
"name": "approved",
|
|
7813
|
-
"type": "core::bool"
|
|
7814
|
-
}
|
|
7815
|
-
],
|
|
7816
|
-
"outputs": [],
|
|
7817
|
-
"state_mutability": "external"
|
|
7818
|
-
},
|
|
7819
|
-
{
|
|
7820
|
-
"type": "function",
|
|
7821
|
-
"name": "getApproved",
|
|
7822
|
-
"inputs": [
|
|
7823
|
-
{
|
|
7824
|
-
"name": "tokenId",
|
|
7825
|
-
"type": "core::integer::u256"
|
|
7826
|
-
}
|
|
7827
|
-
],
|
|
7828
|
-
"outputs": [
|
|
7829
|
-
{
|
|
7830
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
7831
|
-
}
|
|
7832
|
-
],
|
|
7833
|
-
"state_mutability": "view"
|
|
7834
|
-
},
|
|
7835
|
-
{
|
|
7836
|
-
"type": "function",
|
|
7837
|
-
"name": "isApprovedForAll",
|
|
7838
|
-
"inputs": [
|
|
7839
|
-
{
|
|
7840
|
-
"name": "owner",
|
|
7841
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
7842
|
-
},
|
|
7843
|
-
{
|
|
7844
|
-
"name": "operator",
|
|
7845
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
7846
|
-
}
|
|
7847
|
-
],
|
|
7848
|
-
"outputs": [
|
|
7849
|
-
{
|
|
7850
|
-
"type": "core::bool"
|
|
7851
|
-
}
|
|
7852
|
-
],
|
|
7853
|
-
"state_mutability": "view"
|
|
7854
|
-
},
|
|
7855
|
-
{
|
|
7856
|
-
"type": "function",
|
|
7857
|
-
"name": "tokenURI",
|
|
7858
|
-
"inputs": [
|
|
7859
|
-
{
|
|
7860
|
-
"name": "tokenId",
|
|
7861
|
-
"type": "core::integer::u256"
|
|
7862
|
-
}
|
|
7863
|
-
],
|
|
7864
|
-
"outputs": [
|
|
7865
|
-
{
|
|
7866
|
-
"type": "core::byte_array::ByteArray"
|
|
7867
|
-
}
|
|
7868
|
-
],
|
|
7869
|
-
"state_mutability": "view"
|
|
7870
|
-
}
|
|
7871
|
-
]
|
|
7872
|
-
},
|
|
7873
|
-
{
|
|
7874
|
-
"type": "constructor",
|
|
7875
|
-
"name": "constructor",
|
|
7876
|
-
"inputs": [
|
|
7877
|
-
{
|
|
7878
|
-
"name": "name",
|
|
7879
|
-
"type": "core::byte_array::ByteArray"
|
|
7880
|
-
},
|
|
7881
|
-
{
|
|
7882
|
-
"name": "symbol",
|
|
7883
|
-
"type": "core::byte_array::ByteArray"
|
|
7884
|
-
},
|
|
7885
|
-
{
|
|
7886
|
-
"name": "club_id",
|
|
7887
|
-
"type": "core::integer::u256"
|
|
7888
|
-
},
|
|
7889
|
-
{
|
|
7890
|
-
"name": "creator",
|
|
7891
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
7892
|
-
},
|
|
7893
|
-
{
|
|
7894
|
-
"name": "ip_club_manager",
|
|
7895
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
7896
|
-
},
|
|
7897
|
-
{
|
|
7898
|
-
"name": "metadata_uri",
|
|
7899
|
-
"type": "core::byte_array::ByteArray"
|
|
7900
|
-
}
|
|
7901
|
-
]
|
|
7902
|
-
},
|
|
7903
|
-
{
|
|
7904
|
-
"type": "event",
|
|
7905
|
-
"name": "openzeppelin_token::erc721::erc721::ERC721Component::Transfer",
|
|
7906
|
-
"kind": "struct",
|
|
7907
|
-
"members": [
|
|
7908
|
-
{
|
|
7909
|
-
"name": "from",
|
|
7910
|
-
"type": "core::starknet::contract_address::ContractAddress",
|
|
7911
|
-
"kind": "key"
|
|
7912
|
-
},
|
|
7913
|
-
{
|
|
7914
|
-
"name": "to",
|
|
7915
|
-
"type": "core::starknet::contract_address::ContractAddress",
|
|
7916
|
-
"kind": "key"
|
|
7917
|
-
},
|
|
7918
|
-
{
|
|
7919
|
-
"name": "token_id",
|
|
7920
|
-
"type": "core::integer::u256",
|
|
7921
|
-
"kind": "key"
|
|
7922
|
-
}
|
|
7923
|
-
]
|
|
7924
|
-
},
|
|
7925
|
-
{
|
|
7926
|
-
"type": "event",
|
|
7927
|
-
"name": "openzeppelin_token::erc721::erc721::ERC721Component::Approval",
|
|
7928
|
-
"kind": "struct",
|
|
7929
|
-
"members": [
|
|
7930
|
-
{
|
|
7931
|
-
"name": "owner",
|
|
7932
|
-
"type": "core::starknet::contract_address::ContractAddress",
|
|
7933
|
-
"kind": "key"
|
|
7934
|
-
},
|
|
7935
|
-
{
|
|
7936
|
-
"name": "approved",
|
|
7937
|
-
"type": "core::starknet::contract_address::ContractAddress",
|
|
7938
|
-
"kind": "key"
|
|
7939
|
-
},
|
|
7940
|
-
{
|
|
7941
|
-
"name": "token_id",
|
|
7942
|
-
"type": "core::integer::u256",
|
|
7943
|
-
"kind": "key"
|
|
7944
|
-
}
|
|
7945
|
-
]
|
|
7946
|
-
},
|
|
7947
|
-
{
|
|
7948
|
-
"type": "event",
|
|
7949
|
-
"name": "openzeppelin_token::erc721::erc721::ERC721Component::ApprovalForAll",
|
|
7950
|
-
"kind": "struct",
|
|
7951
|
-
"members": [
|
|
7952
|
-
{
|
|
7953
|
-
"name": "owner",
|
|
7954
|
-
"type": "core::starknet::contract_address::ContractAddress",
|
|
7955
|
-
"kind": "key"
|
|
7956
|
-
},
|
|
7957
|
-
{
|
|
7958
|
-
"name": "operator",
|
|
7959
|
-
"type": "core::starknet::contract_address::ContractAddress",
|
|
7960
|
-
"kind": "key"
|
|
7961
|
-
},
|
|
7962
|
-
{
|
|
7963
|
-
"name": "approved",
|
|
7964
|
-
"type": "core::bool",
|
|
7965
|
-
"kind": "data"
|
|
7966
|
-
}
|
|
7967
|
-
]
|
|
7968
|
-
},
|
|
7969
|
-
{
|
|
7970
|
-
"type": "event",
|
|
7971
|
-
"name": "openzeppelin_token::erc721::erc721::ERC721Component::Event",
|
|
7972
|
-
"kind": "enum",
|
|
7973
|
-
"variants": [
|
|
7974
|
-
{
|
|
7975
|
-
"name": "Transfer",
|
|
7976
|
-
"type": "openzeppelin_token::erc721::erc721::ERC721Component::Transfer",
|
|
7977
|
-
"kind": "nested"
|
|
7978
|
-
},
|
|
7979
|
-
{
|
|
7980
|
-
"name": "Approval",
|
|
7981
|
-
"type": "openzeppelin_token::erc721::erc721::ERC721Component::Approval",
|
|
7982
|
-
"kind": "nested"
|
|
7983
|
-
},
|
|
7984
|
-
{
|
|
7985
|
-
"name": "ApprovalForAll",
|
|
7986
|
-
"type": "openzeppelin_token::erc721::erc721::ERC721Component::ApprovalForAll",
|
|
7111
|
+
"name": "ClubDeployed",
|
|
7112
|
+
"type": "ip_club::IPClubCollectionFactory::IPClubCollectionFactory::ClubDeployed",
|
|
7987
7113
|
"kind": "nested"
|
|
7988
7114
|
}
|
|
7989
7115
|
]
|
|
7990
|
-
},
|
|
7991
|
-
{
|
|
7992
|
-
"type": "event",
|
|
7993
|
-
"name": "openzeppelin_introspection::src5::SRC5Component::Event",
|
|
7994
|
-
"kind": "enum",
|
|
7995
|
-
"variants": []
|
|
7996
|
-
},
|
|
7997
|
-
{
|
|
7998
|
-
"type": "event",
|
|
7999
|
-
"name": "ip_club::IPClubNFT::IPClubNFT::Event",
|
|
8000
|
-
"kind": "enum",
|
|
8001
|
-
"variants": [
|
|
8002
|
-
{
|
|
8003
|
-
"name": "ERC721Event",
|
|
8004
|
-
"type": "openzeppelin_token::erc721::erc721::ERC721Component::Event",
|
|
8005
|
-
"kind": "flat"
|
|
8006
|
-
},
|
|
8007
|
-
{
|
|
8008
|
-
"name": "SRC5Event",
|
|
8009
|
-
"type": "openzeppelin_introspection::src5::SRC5Component::Event",
|
|
8010
|
-
"kind": "flat"
|
|
8011
|
-
}
|
|
8012
|
-
]
|
|
8013
|
-
}
|
|
8014
|
-
];
|
|
8015
|
-
|
|
8016
|
-
// src/starknet/abis/ipClubFactory.ts
|
|
8017
|
-
var IPClubFactoryABI = [
|
|
8018
|
-
{
|
|
8019
|
-
"type": "impl",
|
|
8020
|
-
"name": "IPClubFactoryImpl",
|
|
8021
|
-
"interface_name": "ip_club::interface::IIPClubFactory"
|
|
8022
|
-
},
|
|
8023
|
-
{
|
|
8024
|
-
"type": "struct",
|
|
8025
|
-
"name": "core::byte_array::ByteArray",
|
|
8026
|
-
"members": [
|
|
8027
|
-
{ "name": "data", "type": "core::array::Array::<core::bytes_31::bytes31>" },
|
|
8028
|
-
{ "name": "pending_word", "type": "core::felt252" },
|
|
8029
|
-
{ "name": "pending_word_len", "type": "core::internal::bounded_int::BoundedInt::<0, 30>" }
|
|
8030
|
-
]
|
|
8031
|
-
},
|
|
8032
|
-
{
|
|
8033
|
-
"type": "struct",
|
|
8034
|
-
"name": "core::integer::u256",
|
|
8035
|
-
"members": [
|
|
8036
|
-
{ "name": "low", "type": "core::integer::u128" },
|
|
8037
|
-
{ "name": "high", "type": "core::integer::u128" }
|
|
8038
|
-
]
|
|
8039
|
-
},
|
|
8040
|
-
{
|
|
8041
|
-
"type": "enum",
|
|
8042
|
-
"name": "core::option::Option::<core::starknet::contract_address::ContractAddress>",
|
|
8043
|
-
"variants": [
|
|
8044
|
-
{ "name": "Some", "type": "core::starknet::contract_address::ContractAddress" },
|
|
8045
|
-
{ "name": "None", "type": "()" }
|
|
8046
|
-
]
|
|
8047
|
-
},
|
|
8048
|
-
{
|
|
8049
|
-
"type": "interface",
|
|
8050
|
-
"name": "ip_club::interface::IIPClubFactory",
|
|
8051
|
-
"items": [
|
|
8052
|
-
{
|
|
8053
|
-
"type": "function",
|
|
8054
|
-
"name": "collection_class_hash",
|
|
8055
|
-
"inputs": [],
|
|
8056
|
-
"outputs": [{ "type": "core::starknet::class_hash::ClassHash" }],
|
|
8057
|
-
"state_mutability": "view"
|
|
8058
|
-
},
|
|
8059
|
-
{
|
|
8060
|
-
"type": "function",
|
|
8061
|
-
"name": "version",
|
|
8062
|
-
"inputs": [],
|
|
8063
|
-
"outputs": [{ "type": "core::byte_array::ByteArray" }],
|
|
8064
|
-
"state_mutability": "view"
|
|
8065
|
-
},
|
|
8066
|
-
{
|
|
8067
|
-
"type": "function",
|
|
8068
|
-
"name": "deploy_club",
|
|
8069
|
-
"inputs": [
|
|
8070
|
-
{ "name": "name", "type": "core::byte_array::ByteArray" },
|
|
8071
|
-
{ "name": "symbol", "type": "core::byte_array::ByteArray" },
|
|
8072
|
-
{ "name": "base_uri", "type": "core::byte_array::ByteArray" },
|
|
8073
|
-
{ "name": "max_supply", "type": "core::integer::u256" },
|
|
8074
|
-
{ "name": "entry_fee", "type": "core::integer::u256" },
|
|
8075
|
-
{ "name": "payment_token", "type": "core::option::Option::<core::starknet::contract_address::ContractAddress>" },
|
|
8076
|
-
{ "name": "royalty_bps", "type": "core::integer::u256" }
|
|
8077
|
-
],
|
|
8078
|
-
"outputs": [{ "type": "core::starknet::contract_address::ContractAddress" }],
|
|
8079
|
-
"state_mutability": "external"
|
|
8080
|
-
}
|
|
8081
|
-
]
|
|
8082
|
-
},
|
|
8083
|
-
{
|
|
8084
|
-
"type": "impl",
|
|
8085
|
-
"name": "SRC5Impl",
|
|
8086
|
-
"interface_name": "openzeppelin_introspection::interface::ISRC5"
|
|
8087
|
-
},
|
|
8088
|
-
{
|
|
8089
|
-
"type": "enum",
|
|
8090
|
-
"name": "core::bool",
|
|
8091
|
-
"variants": [
|
|
8092
|
-
{ "name": "False", "type": "()" },
|
|
8093
|
-
{ "name": "True", "type": "()" }
|
|
8094
|
-
]
|
|
8095
|
-
},
|
|
8096
|
-
{
|
|
8097
|
-
"type": "interface",
|
|
8098
|
-
"name": "openzeppelin_introspection::interface::ISRC5",
|
|
8099
|
-
"items": [
|
|
8100
|
-
{
|
|
8101
|
-
"type": "function",
|
|
8102
|
-
"name": "supports_interface",
|
|
8103
|
-
"inputs": [{ "name": "interface_id", "type": "core::felt252" }],
|
|
8104
|
-
"outputs": [{ "type": "core::bool" }],
|
|
8105
|
-
"state_mutability": "view"
|
|
8106
|
-
}
|
|
8107
|
-
]
|
|
8108
|
-
},
|
|
8109
|
-
{
|
|
8110
|
-
"type": "constructor",
|
|
8111
|
-
"name": "constructor",
|
|
8112
|
-
"inputs": [
|
|
8113
|
-
{ "name": "collection_class_hash", "type": "core::starknet::class_hash::ClassHash" }
|
|
8114
|
-
]
|
|
8115
|
-
},
|
|
8116
|
-
{
|
|
8117
|
-
"type": "event",
|
|
8118
|
-
"name": "openzeppelin_introspection::src5::SRC5Component::Event",
|
|
8119
|
-
"kind": "enum",
|
|
8120
|
-
"variants": []
|
|
8121
|
-
},
|
|
8122
|
-
{
|
|
8123
|
-
"type": "event",
|
|
8124
|
-
"name": "ip_club::IPClubFactory::IPClubFactory::ClubDeployed",
|
|
8125
|
-
"kind": "struct",
|
|
8126
|
-
"members": [
|
|
8127
|
-
{ "name": "collection_address", "type": "core::starknet::contract_address::ContractAddress", "kind": "key" },
|
|
8128
|
-
{ "name": "owner", "type": "core::starknet::contract_address::ContractAddress", "kind": "key" },
|
|
8129
|
-
{ "name": "name", "type": "core::byte_array::ByteArray", "kind": "data" },
|
|
8130
|
-
{ "name": "symbol", "type": "core::byte_array::ByteArray", "kind": "data" }
|
|
8131
|
-
]
|
|
8132
|
-
},
|
|
8133
|
-
{
|
|
8134
|
-
"type": "event",
|
|
8135
|
-
"name": "ip_club::IPClubFactory::IPClubFactory::Event",
|
|
8136
|
-
"kind": "enum",
|
|
8137
|
-
"variants": [
|
|
8138
|
-
{ "name": "SRC5Event", "type": "openzeppelin_introspection::src5::SRC5Component::Event", "kind": "flat" },
|
|
8139
|
-
{ "name": "ClubDeployed", "type": "ip_club::IPClubFactory::IPClubFactory::ClubDeployed", "kind": "nested" }
|
|
8140
|
-
]
|
|
8141
7116
|
}
|
|
8142
7117
|
];
|
|
8143
7118
|
|
|
@@ -8145,26 +7120,8 @@ var IPClubFactoryABI = [
|
|
|
8145
7120
|
var IPClubCollectionABI = [
|
|
8146
7121
|
{
|
|
8147
7122
|
"type": "impl",
|
|
8148
|
-
"name": "
|
|
8149
|
-
"interface_name": "openzeppelin_token::
|
|
8150
|
-
},
|
|
8151
|
-
{
|
|
8152
|
-
"type": "struct",
|
|
8153
|
-
"name": "core::byte_array::ByteArray",
|
|
8154
|
-
"members": [
|
|
8155
|
-
{
|
|
8156
|
-
"name": "data",
|
|
8157
|
-
"type": "core::array::Array::<core::bytes_31::bytes31>"
|
|
8158
|
-
},
|
|
8159
|
-
{
|
|
8160
|
-
"name": "pending_word",
|
|
8161
|
-
"type": "core::felt252"
|
|
8162
|
-
},
|
|
8163
|
-
{
|
|
8164
|
-
"name": "pending_word_len",
|
|
8165
|
-
"type": "core::internal::bounded_int::BoundedInt::<0, 30>"
|
|
8166
|
-
}
|
|
8167
|
-
]
|
|
7123
|
+
"name": "ERC1155MetadataURIImpl",
|
|
7124
|
+
"interface_name": "openzeppelin_token::erc1155::interface::IERC1155MetadataURI"
|
|
8168
7125
|
},
|
|
8169
7126
|
{
|
|
8170
7127
|
"type": "struct",
|
|
@@ -8181,64 +7138,33 @@ var IPClubCollectionABI = [
|
|
|
8181
7138
|
]
|
|
8182
7139
|
},
|
|
8183
7140
|
{
|
|
8184
|
-
"type": "
|
|
8185
|
-
"name": "
|
|
8186
|
-
"
|
|
8187
|
-
{
|
|
8188
|
-
"
|
|
8189
|
-
"
|
|
8190
|
-
|
|
8191
|
-
|
|
8192
|
-
|
|
8193
|
-
|
|
8194
|
-
|
|
8195
|
-
|
|
8196
|
-
"
|
|
8197
|
-
|
|
8198
|
-
{
|
|
8199
|
-
"type": "function",
|
|
8200
|
-
"name": "symbol",
|
|
8201
|
-
"inputs": [],
|
|
8202
|
-
"outputs": [
|
|
8203
|
-
{
|
|
8204
|
-
"type": "core::byte_array::ByteArray"
|
|
8205
|
-
}
|
|
8206
|
-
],
|
|
8207
|
-
"state_mutability": "view"
|
|
8208
|
-
},
|
|
8209
|
-
{
|
|
8210
|
-
"type": "function",
|
|
8211
|
-
"name": "token_uri",
|
|
8212
|
-
"inputs": [
|
|
8213
|
-
{
|
|
8214
|
-
"name": "token_id",
|
|
8215
|
-
"type": "core::integer::u256"
|
|
8216
|
-
}
|
|
8217
|
-
],
|
|
8218
|
-
"outputs": [
|
|
8219
|
-
{
|
|
8220
|
-
"type": "core::byte_array::ByteArray"
|
|
8221
|
-
}
|
|
8222
|
-
],
|
|
8223
|
-
"state_mutability": "view"
|
|
7141
|
+
"type": "struct",
|
|
7142
|
+
"name": "core::byte_array::ByteArray",
|
|
7143
|
+
"members": [
|
|
7144
|
+
{
|
|
7145
|
+
"name": "data",
|
|
7146
|
+
"type": "core::array::Array::<core::bytes_31::bytes31>"
|
|
7147
|
+
},
|
|
7148
|
+
{
|
|
7149
|
+
"name": "pending_word",
|
|
7150
|
+
"type": "core::felt252"
|
|
7151
|
+
},
|
|
7152
|
+
{
|
|
7153
|
+
"name": "pending_word_len",
|
|
7154
|
+
"type": "core::internal::bounded_int::BoundedInt::<0, 30>"
|
|
8224
7155
|
}
|
|
8225
7156
|
]
|
|
8226
7157
|
},
|
|
8227
|
-
{
|
|
8228
|
-
"type": "impl",
|
|
8229
|
-
"name": "ERC721MetadataCamelOnlyImpl",
|
|
8230
|
-
"interface_name": "openzeppelin_token::erc721::interface::IERC721MetadataCamelOnly"
|
|
8231
|
-
},
|
|
8232
7158
|
{
|
|
8233
7159
|
"type": "interface",
|
|
8234
|
-
"name": "openzeppelin_token::
|
|
7160
|
+
"name": "openzeppelin_token::erc1155::interface::IERC1155MetadataURI",
|
|
8235
7161
|
"items": [
|
|
8236
7162
|
{
|
|
8237
7163
|
"type": "function",
|
|
8238
|
-
"name": "
|
|
7164
|
+
"name": "uri",
|
|
8239
7165
|
"inputs": [
|
|
8240
7166
|
{
|
|
8241
|
-
"name": "
|
|
7167
|
+
"name": "token_id",
|
|
8242
7168
|
"type": "core::integer::u256"
|
|
8243
7169
|
}
|
|
8244
7170
|
],
|
|
@@ -8256,6 +7182,20 @@ var IPClubCollectionABI = [
|
|
|
8256
7182
|
"name": "IPClubCollectionImpl",
|
|
8257
7183
|
"interface_name": "ip_club::interface::IIPClubCollection"
|
|
8258
7184
|
},
|
|
7185
|
+
{
|
|
7186
|
+
"type": "enum",
|
|
7187
|
+
"name": "core::option::Option::<core::integer::u64>",
|
|
7188
|
+
"variants": [
|
|
7189
|
+
{
|
|
7190
|
+
"name": "Some",
|
|
7191
|
+
"type": "core::integer::u64"
|
|
7192
|
+
},
|
|
7193
|
+
{
|
|
7194
|
+
"name": "None",
|
|
7195
|
+
"type": "()"
|
|
7196
|
+
}
|
|
7197
|
+
]
|
|
7198
|
+
},
|
|
8259
7199
|
{
|
|
8260
7200
|
"type": "enum",
|
|
8261
7201
|
"name": "core::bool",
|
|
@@ -8271,16 +7211,32 @@ var IPClubCollectionABI = [
|
|
|
8271
7211
|
]
|
|
8272
7212
|
},
|
|
8273
7213
|
{
|
|
8274
|
-
"type": "
|
|
8275
|
-
"name": "
|
|
8276
|
-
"
|
|
7214
|
+
"type": "struct",
|
|
7215
|
+
"name": "ip_club::types::Membership",
|
|
7216
|
+
"members": [
|
|
8277
7217
|
{
|
|
8278
|
-
"name": "
|
|
8279
|
-
"type": "core::
|
|
7218
|
+
"name": "max_supply",
|
|
7219
|
+
"type": "core::integer::u256"
|
|
8280
7220
|
},
|
|
8281
7221
|
{
|
|
8282
|
-
"name": "
|
|
8283
|
-
"type": "
|
|
7222
|
+
"name": "minted",
|
|
7223
|
+
"type": "core::integer::u256"
|
|
7224
|
+
},
|
|
7225
|
+
{
|
|
7226
|
+
"name": "start_time",
|
|
7227
|
+
"type": "core::option::Option::<core::integer::u64>"
|
|
7228
|
+
},
|
|
7229
|
+
{
|
|
7230
|
+
"name": "end_time",
|
|
7231
|
+
"type": "core::option::Option::<core::integer::u64>"
|
|
7232
|
+
},
|
|
7233
|
+
{
|
|
7234
|
+
"name": "royalty_bps",
|
|
7235
|
+
"type": "core::integer::u16"
|
|
7236
|
+
},
|
|
7237
|
+
{
|
|
7238
|
+
"name": "metadata_uri",
|
|
7239
|
+
"type": "core::byte_array::ByteArray"
|
|
8284
7240
|
}
|
|
8285
7241
|
]
|
|
8286
7242
|
},
|
|
@@ -8290,11 +7246,27 @@ var IPClubCollectionABI = [
|
|
|
8290
7246
|
"items": [
|
|
8291
7247
|
{
|
|
8292
7248
|
"type": "function",
|
|
8293
|
-
"name": "
|
|
7249
|
+
"name": "create_membership",
|
|
8294
7250
|
"inputs": [
|
|
8295
7251
|
{
|
|
8296
|
-
"name": "
|
|
8297
|
-
"type": "core::
|
|
7252
|
+
"name": "max_supply",
|
|
7253
|
+
"type": "core::integer::u256"
|
|
7254
|
+
},
|
|
7255
|
+
{
|
|
7256
|
+
"name": "start_time",
|
|
7257
|
+
"type": "core::option::Option::<core::integer::u64>"
|
|
7258
|
+
},
|
|
7259
|
+
{
|
|
7260
|
+
"name": "end_time",
|
|
7261
|
+
"type": "core::option::Option::<core::integer::u64>"
|
|
7262
|
+
},
|
|
7263
|
+
{
|
|
7264
|
+
"name": "royalty_bps",
|
|
7265
|
+
"type": "core::integer::u16"
|
|
7266
|
+
},
|
|
7267
|
+
{
|
|
7268
|
+
"name": "metadata_uri",
|
|
7269
|
+
"type": "core::byte_array::ByteArray"
|
|
8298
7270
|
}
|
|
8299
7271
|
],
|
|
8300
7272
|
"outputs": [
|
|
@@ -8306,11 +7278,19 @@ var IPClubCollectionABI = [
|
|
|
8306
7278
|
},
|
|
8307
7279
|
{
|
|
8308
7280
|
"type": "function",
|
|
8309
|
-
"name": "
|
|
7281
|
+
"name": "mint",
|
|
8310
7282
|
"inputs": [
|
|
8311
7283
|
{
|
|
8312
|
-
"name": "
|
|
8313
|
-
"type": "core::
|
|
7284
|
+
"name": "to",
|
|
7285
|
+
"type": "core::starknet::contract_address::ContractAddress"
|
|
7286
|
+
},
|
|
7287
|
+
{
|
|
7288
|
+
"name": "token_id",
|
|
7289
|
+
"type": "core::integer::u256"
|
|
7290
|
+
},
|
|
7291
|
+
{
|
|
7292
|
+
"name": "amount",
|
|
7293
|
+
"type": "core::integer::u256"
|
|
8314
7294
|
}
|
|
8315
7295
|
],
|
|
8316
7296
|
"outputs": [],
|
|
@@ -8318,66 +7298,85 @@ var IPClubCollectionABI = [
|
|
|
8318
7298
|
},
|
|
8319
7299
|
{
|
|
8320
7300
|
"type": "function",
|
|
8321
|
-
"name": "
|
|
8322
|
-
"inputs": [
|
|
7301
|
+
"name": "is_member",
|
|
7302
|
+
"inputs": [
|
|
7303
|
+
{
|
|
7304
|
+
"name": "holder",
|
|
7305
|
+
"type": "core::starknet::contract_address::ContractAddress"
|
|
7306
|
+
}
|
|
7307
|
+
],
|
|
8323
7308
|
"outputs": [
|
|
8324
7309
|
{
|
|
8325
|
-
"type": "core::
|
|
7310
|
+
"type": "core::bool"
|
|
8326
7311
|
}
|
|
8327
7312
|
],
|
|
8328
7313
|
"state_mutability": "view"
|
|
8329
7314
|
},
|
|
8330
7315
|
{
|
|
8331
7316
|
"type": "function",
|
|
8332
|
-
"name": "
|
|
8333
|
-
"inputs": [
|
|
8334
|
-
"outputs": [
|
|
7317
|
+
"name": "is_member_of",
|
|
7318
|
+
"inputs": [
|
|
8335
7319
|
{
|
|
7320
|
+
"name": "token_id",
|
|
8336
7321
|
"type": "core::integer::u256"
|
|
7322
|
+
},
|
|
7323
|
+
{
|
|
7324
|
+
"name": "holder",
|
|
7325
|
+
"type": "core::starknet::contract_address::ContractAddress"
|
|
7326
|
+
}
|
|
7327
|
+
],
|
|
7328
|
+
"outputs": [
|
|
7329
|
+
{
|
|
7330
|
+
"type": "core::bool"
|
|
8337
7331
|
}
|
|
8338
7332
|
],
|
|
8339
7333
|
"state_mutability": "view"
|
|
8340
7334
|
},
|
|
8341
7335
|
{
|
|
8342
7336
|
"type": "function",
|
|
8343
|
-
"name": "
|
|
8344
|
-
"inputs": [
|
|
7337
|
+
"name": "get_membership",
|
|
7338
|
+
"inputs": [
|
|
7339
|
+
{
|
|
7340
|
+
"name": "token_id",
|
|
7341
|
+
"type": "core::integer::u256"
|
|
7342
|
+
}
|
|
7343
|
+
],
|
|
8345
7344
|
"outputs": [
|
|
8346
7345
|
{
|
|
8347
|
-
"type": "
|
|
7346
|
+
"type": "ip_club::types::Membership"
|
|
8348
7347
|
}
|
|
8349
7348
|
],
|
|
8350
7349
|
"state_mutability": "view"
|
|
8351
7350
|
},
|
|
8352
7351
|
{
|
|
8353
7352
|
"type": "function",
|
|
8354
|
-
"name": "
|
|
7353
|
+
"name": "name",
|
|
8355
7354
|
"inputs": [],
|
|
8356
7355
|
"outputs": [
|
|
8357
7356
|
{
|
|
8358
|
-
"type": "core::
|
|
7357
|
+
"type": "core::byte_array::ByteArray"
|
|
8359
7358
|
}
|
|
8360
7359
|
],
|
|
8361
7360
|
"state_mutability": "view"
|
|
8362
7361
|
},
|
|
8363
7362
|
{
|
|
8364
7363
|
"type": "function",
|
|
8365
|
-
"name": "
|
|
7364
|
+
"name": "symbol",
|
|
8366
7365
|
"inputs": [],
|
|
8367
7366
|
"outputs": [
|
|
8368
7367
|
{
|
|
8369
|
-
"type": "core::
|
|
7368
|
+
"type": "core::byte_array::ByteArray"
|
|
8370
7369
|
}
|
|
8371
7370
|
],
|
|
8372
7371
|
"state_mutability": "view"
|
|
8373
7372
|
},
|
|
8374
7373
|
{
|
|
8375
7374
|
"type": "function",
|
|
8376
|
-
"name": "
|
|
7375
|
+
"name": "base_uri",
|
|
8377
7376
|
"inputs": [],
|
|
8378
7377
|
"outputs": [
|
|
8379
7378
|
{
|
|
8380
|
-
"type": "core::
|
|
7379
|
+
"type": "core::byte_array::ByteArray"
|
|
8381
7380
|
}
|
|
8382
7381
|
],
|
|
8383
7382
|
"state_mutability": "view"
|
|
@@ -8437,8 +7436,28 @@ var IPClubCollectionABI = [
|
|
|
8437
7436
|
},
|
|
8438
7437
|
{
|
|
8439
7438
|
"type": "impl",
|
|
8440
|
-
"name": "
|
|
8441
|
-
"interface_name": "openzeppelin_token::
|
|
7439
|
+
"name": "ERC1155Impl",
|
|
7440
|
+
"interface_name": "openzeppelin_token::erc1155::interface::IERC1155"
|
|
7441
|
+
},
|
|
7442
|
+
{
|
|
7443
|
+
"type": "struct",
|
|
7444
|
+
"name": "core::array::Span::<core::starknet::contract_address::ContractAddress>",
|
|
7445
|
+
"members": [
|
|
7446
|
+
{
|
|
7447
|
+
"name": "snapshot",
|
|
7448
|
+
"type": "@core::array::Array::<core::starknet::contract_address::ContractAddress>"
|
|
7449
|
+
}
|
|
7450
|
+
]
|
|
7451
|
+
},
|
|
7452
|
+
{
|
|
7453
|
+
"type": "struct",
|
|
7454
|
+
"name": "core::array::Span::<core::integer::u256>",
|
|
7455
|
+
"members": [
|
|
7456
|
+
{
|
|
7457
|
+
"name": "snapshot",
|
|
7458
|
+
"type": "@core::array::Array::<core::integer::u256>"
|
|
7459
|
+
}
|
|
7460
|
+
]
|
|
8442
7461
|
},
|
|
8443
7462
|
{
|
|
8444
7463
|
"type": "struct",
|
|
@@ -8452,7 +7471,7 @@ var IPClubCollectionABI = [
|
|
|
8452
7471
|
},
|
|
8453
7472
|
{
|
|
8454
7473
|
"type": "interface",
|
|
8455
|
-
"name": "openzeppelin_token::
|
|
7474
|
+
"name": "openzeppelin_token::erc1155::interface::IERC1155",
|
|
8456
7475
|
"items": [
|
|
8457
7476
|
{
|
|
8458
7477
|
"type": "function",
|
|
@@ -8461,6 +7480,10 @@ var IPClubCollectionABI = [
|
|
|
8461
7480
|
{
|
|
8462
7481
|
"name": "account",
|
|
8463
7482
|
"type": "core::starknet::contract_address::ContractAddress"
|
|
7483
|
+
},
|
|
7484
|
+
{
|
|
7485
|
+
"name": "token_id",
|
|
7486
|
+
"type": "core::integer::u256"
|
|
8464
7487
|
}
|
|
8465
7488
|
],
|
|
8466
7489
|
"outputs": [
|
|
@@ -8472,16 +7495,20 @@ var IPClubCollectionABI = [
|
|
|
8472
7495
|
},
|
|
8473
7496
|
{
|
|
8474
7497
|
"type": "function",
|
|
8475
|
-
"name": "
|
|
7498
|
+
"name": "balance_of_batch",
|
|
8476
7499
|
"inputs": [
|
|
8477
7500
|
{
|
|
8478
|
-
"name": "
|
|
8479
|
-
"type": "core::
|
|
7501
|
+
"name": "accounts",
|
|
7502
|
+
"type": "core::array::Span::<core::starknet::contract_address::ContractAddress>"
|
|
7503
|
+
},
|
|
7504
|
+
{
|
|
7505
|
+
"name": "token_ids",
|
|
7506
|
+
"type": "core::array::Span::<core::integer::u256>"
|
|
8480
7507
|
}
|
|
8481
7508
|
],
|
|
8482
7509
|
"outputs": [
|
|
8483
7510
|
{
|
|
8484
|
-
"type": "core::
|
|
7511
|
+
"type": "core::array::Span::<core::integer::u256>"
|
|
8485
7512
|
}
|
|
8486
7513
|
],
|
|
8487
7514
|
"state_mutability": "view"
|
|
@@ -8502,6 +7529,10 @@ var IPClubCollectionABI = [
|
|
|
8502
7529
|
"name": "token_id",
|
|
8503
7530
|
"type": "core::integer::u256"
|
|
8504
7531
|
},
|
|
7532
|
+
{
|
|
7533
|
+
"name": "value",
|
|
7534
|
+
"type": "core::integer::u256"
|
|
7535
|
+
},
|
|
8505
7536
|
{
|
|
8506
7537
|
"name": "data",
|
|
8507
7538
|
"type": "core::array::Span::<core::felt252>"
|
|
@@ -8512,7 +7543,7 @@ var IPClubCollectionABI = [
|
|
|
8512
7543
|
},
|
|
8513
7544
|
{
|
|
8514
7545
|
"type": "function",
|
|
8515
|
-
"name": "
|
|
7546
|
+
"name": "safe_batch_transfer_from",
|
|
8516
7547
|
"inputs": [
|
|
8517
7548
|
{
|
|
8518
7549
|
"name": "from",
|
|
@@ -8523,24 +7554,16 @@ var IPClubCollectionABI = [
|
|
|
8523
7554
|
"type": "core::starknet::contract_address::ContractAddress"
|
|
8524
7555
|
},
|
|
8525
7556
|
{
|
|
8526
|
-
"name": "
|
|
8527
|
-
"type": "core::integer::u256"
|
|
8528
|
-
}
|
|
8529
|
-
],
|
|
8530
|
-
"outputs": [],
|
|
8531
|
-
"state_mutability": "external"
|
|
8532
|
-
},
|
|
8533
|
-
{
|
|
8534
|
-
"type": "function",
|
|
8535
|
-
"name": "approve",
|
|
8536
|
-
"inputs": [
|
|
7557
|
+
"name": "token_ids",
|
|
7558
|
+
"type": "core::array::Span::<core::integer::u256>"
|
|
7559
|
+
},
|
|
8537
7560
|
{
|
|
8538
|
-
"name": "
|
|
8539
|
-
"type": "core::
|
|
7561
|
+
"name": "values",
|
|
7562
|
+
"type": "core::array::Span::<core::integer::u256>"
|
|
8540
7563
|
},
|
|
8541
7564
|
{
|
|
8542
|
-
"name": "
|
|
8543
|
-
"type": "core::
|
|
7565
|
+
"name": "data",
|
|
7566
|
+
"type": "core::array::Span::<core::felt252>"
|
|
8544
7567
|
}
|
|
8545
7568
|
],
|
|
8546
7569
|
"outputs": [],
|
|
@@ -8548,66 +7571,50 @@ var IPClubCollectionABI = [
|
|
|
8548
7571
|
},
|
|
8549
7572
|
{
|
|
8550
7573
|
"type": "function",
|
|
8551
|
-
"name": "
|
|
7574
|
+
"name": "is_approved_for_all",
|
|
8552
7575
|
"inputs": [
|
|
8553
7576
|
{
|
|
8554
|
-
"name": "
|
|
7577
|
+
"name": "owner",
|
|
8555
7578
|
"type": "core::starknet::contract_address::ContractAddress"
|
|
8556
7579
|
},
|
|
8557
7580
|
{
|
|
8558
|
-
"name": "
|
|
8559
|
-
"type": "core::
|
|
8560
|
-
}
|
|
8561
|
-
],
|
|
8562
|
-
"outputs": [],
|
|
8563
|
-
"state_mutability": "external"
|
|
8564
|
-
},
|
|
8565
|
-
{
|
|
8566
|
-
"type": "function",
|
|
8567
|
-
"name": "get_approved",
|
|
8568
|
-
"inputs": [
|
|
8569
|
-
{
|
|
8570
|
-
"name": "token_id",
|
|
8571
|
-
"type": "core::integer::u256"
|
|
7581
|
+
"name": "operator",
|
|
7582
|
+
"type": "core::starknet::contract_address::ContractAddress"
|
|
8572
7583
|
}
|
|
8573
7584
|
],
|
|
8574
7585
|
"outputs": [
|
|
8575
7586
|
{
|
|
8576
|
-
"type": "core::
|
|
7587
|
+
"type": "core::bool"
|
|
8577
7588
|
}
|
|
8578
7589
|
],
|
|
8579
7590
|
"state_mutability": "view"
|
|
8580
7591
|
},
|
|
8581
7592
|
{
|
|
8582
7593
|
"type": "function",
|
|
8583
|
-
"name": "
|
|
7594
|
+
"name": "set_approval_for_all",
|
|
8584
7595
|
"inputs": [
|
|
8585
|
-
{
|
|
8586
|
-
"name": "owner",
|
|
8587
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
8588
|
-
},
|
|
8589
7596
|
{
|
|
8590
7597
|
"name": "operator",
|
|
8591
7598
|
"type": "core::starknet::contract_address::ContractAddress"
|
|
8592
|
-
}
|
|
8593
|
-
],
|
|
8594
|
-
"outputs": [
|
|
7599
|
+
},
|
|
8595
7600
|
{
|
|
7601
|
+
"name": "approved",
|
|
8596
7602
|
"type": "core::bool"
|
|
8597
7603
|
}
|
|
8598
7604
|
],
|
|
8599
|
-
"
|
|
7605
|
+
"outputs": [],
|
|
7606
|
+
"state_mutability": "external"
|
|
8600
7607
|
}
|
|
8601
7608
|
]
|
|
8602
7609
|
},
|
|
8603
7610
|
{
|
|
8604
7611
|
"type": "impl",
|
|
8605
|
-
"name": "
|
|
8606
|
-
"interface_name": "openzeppelin_token::
|
|
7612
|
+
"name": "ERC1155CamelImpl",
|
|
7613
|
+
"interface_name": "openzeppelin_token::erc1155::interface::IERC1155Camel"
|
|
8607
7614
|
},
|
|
8608
7615
|
{
|
|
8609
7616
|
"type": "interface",
|
|
8610
|
-
"name": "openzeppelin_token::
|
|
7617
|
+
"name": "openzeppelin_token::erc1155::interface::IERC1155Camel",
|
|
8611
7618
|
"items": [
|
|
8612
7619
|
{
|
|
8613
7620
|
"type": "function",
|
|
@@ -8616,6 +7623,10 @@ var IPClubCollectionABI = [
|
|
|
8616
7623
|
{
|
|
8617
7624
|
"name": "account",
|
|
8618
7625
|
"type": "core::starknet::contract_address::ContractAddress"
|
|
7626
|
+
},
|
|
7627
|
+
{
|
|
7628
|
+
"name": "tokenId",
|
|
7629
|
+
"type": "core::integer::u256"
|
|
8619
7630
|
}
|
|
8620
7631
|
],
|
|
8621
7632
|
"outputs": [
|
|
@@ -8627,16 +7638,20 @@ var IPClubCollectionABI = [
|
|
|
8627
7638
|
},
|
|
8628
7639
|
{
|
|
8629
7640
|
"type": "function",
|
|
8630
|
-
"name": "
|
|
7641
|
+
"name": "balanceOfBatch",
|
|
8631
7642
|
"inputs": [
|
|
8632
7643
|
{
|
|
8633
|
-
"name": "
|
|
8634
|
-
"type": "core::
|
|
7644
|
+
"name": "accounts",
|
|
7645
|
+
"type": "core::array::Span::<core::starknet::contract_address::ContractAddress>"
|
|
7646
|
+
},
|
|
7647
|
+
{
|
|
7648
|
+
"name": "tokenIds",
|
|
7649
|
+
"type": "core::array::Span::<core::integer::u256>"
|
|
8635
7650
|
}
|
|
8636
7651
|
],
|
|
8637
7652
|
"outputs": [
|
|
8638
7653
|
{
|
|
8639
|
-
"type": "core::
|
|
7654
|
+
"type": "core::array::Span::<core::integer::u256>"
|
|
8640
7655
|
}
|
|
8641
7656
|
],
|
|
8642
7657
|
"state_mutability": "view"
|
|
@@ -8657,6 +7672,10 @@ var IPClubCollectionABI = [
|
|
|
8657
7672
|
"name": "tokenId",
|
|
8658
7673
|
"type": "core::integer::u256"
|
|
8659
7674
|
},
|
|
7675
|
+
{
|
|
7676
|
+
"name": "value",
|
|
7677
|
+
"type": "core::integer::u256"
|
|
7678
|
+
},
|
|
8660
7679
|
{
|
|
8661
7680
|
"name": "data",
|
|
8662
7681
|
"type": "core::array::Span::<core::felt252>"
|
|
@@ -8667,7 +7686,7 @@ var IPClubCollectionABI = [
|
|
|
8667
7686
|
},
|
|
8668
7687
|
{
|
|
8669
7688
|
"type": "function",
|
|
8670
|
-
"name": "
|
|
7689
|
+
"name": "safeBatchTransferFrom",
|
|
8671
7690
|
"inputs": [
|
|
8672
7691
|
{
|
|
8673
7692
|
"name": "from",
|
|
@@ -8678,24 +7697,16 @@ var IPClubCollectionABI = [
|
|
|
8678
7697
|
"type": "core::starknet::contract_address::ContractAddress"
|
|
8679
7698
|
},
|
|
8680
7699
|
{
|
|
8681
|
-
"name": "
|
|
8682
|
-
"type": "core::integer::u256"
|
|
8683
|
-
}
|
|
8684
|
-
],
|
|
8685
|
-
"outputs": [],
|
|
8686
|
-
"state_mutability": "external"
|
|
8687
|
-
},
|
|
8688
|
-
{
|
|
8689
|
-
"type": "function",
|
|
8690
|
-
"name": "setApprovalForAll",
|
|
8691
|
-
"inputs": [
|
|
7700
|
+
"name": "tokenIds",
|
|
7701
|
+
"type": "core::array::Span::<core::integer::u256>"
|
|
7702
|
+
},
|
|
8692
7703
|
{
|
|
8693
|
-
"name": "
|
|
8694
|
-
"type": "core::
|
|
7704
|
+
"name": "values",
|
|
7705
|
+
"type": "core::array::Span::<core::integer::u256>"
|
|
8695
7706
|
},
|
|
8696
7707
|
{
|
|
8697
|
-
"name": "
|
|
8698
|
-
"type": "core::
|
|
7708
|
+
"name": "data",
|
|
7709
|
+
"type": "core::array::Span::<core::felt252>"
|
|
8699
7710
|
}
|
|
8700
7711
|
],
|
|
8701
7712
|
"outputs": [],
|
|
@@ -8703,39 +7714,39 @@ var IPClubCollectionABI = [
|
|
|
8703
7714
|
},
|
|
8704
7715
|
{
|
|
8705
7716
|
"type": "function",
|
|
8706
|
-
"name": "
|
|
7717
|
+
"name": "isApprovedForAll",
|
|
8707
7718
|
"inputs": [
|
|
8708
7719
|
{
|
|
8709
|
-
"name": "
|
|
8710
|
-
"type": "core::
|
|
7720
|
+
"name": "owner",
|
|
7721
|
+
"type": "core::starknet::contract_address::ContractAddress"
|
|
7722
|
+
},
|
|
7723
|
+
{
|
|
7724
|
+
"name": "operator",
|
|
7725
|
+
"type": "core::starknet::contract_address::ContractAddress"
|
|
8711
7726
|
}
|
|
8712
7727
|
],
|
|
8713
7728
|
"outputs": [
|
|
8714
7729
|
{
|
|
8715
|
-
"type": "core::
|
|
7730
|
+
"type": "core::bool"
|
|
8716
7731
|
}
|
|
8717
7732
|
],
|
|
8718
7733
|
"state_mutability": "view"
|
|
8719
7734
|
},
|
|
8720
7735
|
{
|
|
8721
7736
|
"type": "function",
|
|
8722
|
-
"name": "
|
|
7737
|
+
"name": "setApprovalForAll",
|
|
8723
7738
|
"inputs": [
|
|
8724
|
-
{
|
|
8725
|
-
"name": "owner",
|
|
8726
|
-
"type": "core::starknet::contract_address::ContractAddress"
|
|
8727
|
-
},
|
|
8728
7739
|
{
|
|
8729
7740
|
"name": "operator",
|
|
8730
7741
|
"type": "core::starknet::contract_address::ContractAddress"
|
|
8731
|
-
}
|
|
8732
|
-
],
|
|
8733
|
-
"outputs": [
|
|
7742
|
+
},
|
|
8734
7743
|
{
|
|
7744
|
+
"name": "approved",
|
|
8735
7745
|
"type": "core::bool"
|
|
8736
7746
|
}
|
|
8737
7747
|
],
|
|
8738
|
-
"
|
|
7748
|
+
"outputs": [],
|
|
7749
|
+
"state_mutability": "external"
|
|
8739
7750
|
}
|
|
8740
7751
|
]
|
|
8741
7752
|
},
|
|
@@ -8842,22 +7853,6 @@ var IPClubCollectionABI = [
|
|
|
8842
7853
|
"name": "base_uri",
|
|
8843
7854
|
"type": "core::byte_array::ByteArray"
|
|
8844
7855
|
},
|
|
8845
|
-
{
|
|
8846
|
-
"name": "max_supply",
|
|
8847
|
-
"type": "core::integer::u256"
|
|
8848
|
-
},
|
|
8849
|
-
{
|
|
8850
|
-
"name": "entry_fee",
|
|
8851
|
-
"type": "core::integer::u256"
|
|
8852
|
-
},
|
|
8853
|
-
{
|
|
8854
|
-
"name": "payment_token",
|
|
8855
|
-
"type": "core::option::Option::<core::starknet::contract_address::ContractAddress>"
|
|
8856
|
-
},
|
|
8857
|
-
{
|
|
8858
|
-
"name": "royalty_bps",
|
|
8859
|
-
"type": "core::integer::u256"
|
|
8860
|
-
},
|
|
8861
7856
|
{
|
|
8862
7857
|
"name": "owner",
|
|
8863
7858
|
"type": "core::starknet::contract_address::ContractAddress"
|
|
@@ -8866,9 +7861,14 @@ var IPClubCollectionABI = [
|
|
|
8866
7861
|
},
|
|
8867
7862
|
{
|
|
8868
7863
|
"type": "event",
|
|
8869
|
-
"name": "openzeppelin_token::
|
|
7864
|
+
"name": "openzeppelin_token::erc1155::erc1155::ERC1155Component::TransferSingle",
|
|
8870
7865
|
"kind": "struct",
|
|
8871
7866
|
"members": [
|
|
7867
|
+
{
|
|
7868
|
+
"name": "operator",
|
|
7869
|
+
"type": "core::starknet::contract_address::ContractAddress",
|
|
7870
|
+
"kind": "key"
|
|
7871
|
+
},
|
|
8872
7872
|
{
|
|
8873
7873
|
"name": "from",
|
|
8874
7874
|
"type": "core::starknet::contract_address::ContractAddress",
|
|
@@ -8880,37 +7880,52 @@ var IPClubCollectionABI = [
|
|
|
8880
7880
|
"kind": "key"
|
|
8881
7881
|
},
|
|
8882
7882
|
{
|
|
8883
|
-
"name": "
|
|
7883
|
+
"name": "id",
|
|
8884
7884
|
"type": "core::integer::u256",
|
|
8885
|
-
"kind": "
|
|
7885
|
+
"kind": "data"
|
|
7886
|
+
},
|
|
7887
|
+
{
|
|
7888
|
+
"name": "value",
|
|
7889
|
+
"type": "core::integer::u256",
|
|
7890
|
+
"kind": "data"
|
|
8886
7891
|
}
|
|
8887
7892
|
]
|
|
8888
7893
|
},
|
|
8889
7894
|
{
|
|
8890
7895
|
"type": "event",
|
|
8891
|
-
"name": "openzeppelin_token::
|
|
7896
|
+
"name": "openzeppelin_token::erc1155::erc1155::ERC1155Component::TransferBatch",
|
|
8892
7897
|
"kind": "struct",
|
|
8893
7898
|
"members": [
|
|
8894
7899
|
{
|
|
8895
|
-
"name": "
|
|
7900
|
+
"name": "operator",
|
|
8896
7901
|
"type": "core::starknet::contract_address::ContractAddress",
|
|
8897
7902
|
"kind": "key"
|
|
8898
7903
|
},
|
|
8899
7904
|
{
|
|
8900
|
-
"name": "
|
|
7905
|
+
"name": "from",
|
|
8901
7906
|
"type": "core::starknet::contract_address::ContractAddress",
|
|
8902
7907
|
"kind": "key"
|
|
8903
7908
|
},
|
|
8904
7909
|
{
|
|
8905
|
-
"name": "
|
|
8906
|
-
"type": "core::
|
|
7910
|
+
"name": "to",
|
|
7911
|
+
"type": "core::starknet::contract_address::ContractAddress",
|
|
8907
7912
|
"kind": "key"
|
|
7913
|
+
},
|
|
7914
|
+
{
|
|
7915
|
+
"name": "ids",
|
|
7916
|
+
"type": "core::array::Span::<core::integer::u256>",
|
|
7917
|
+
"kind": "data"
|
|
7918
|
+
},
|
|
7919
|
+
{
|
|
7920
|
+
"name": "values",
|
|
7921
|
+
"type": "core::array::Span::<core::integer::u256>",
|
|
7922
|
+
"kind": "data"
|
|
8908
7923
|
}
|
|
8909
7924
|
]
|
|
8910
7925
|
},
|
|
8911
7926
|
{
|
|
8912
7927
|
"type": "event",
|
|
8913
|
-
"name": "openzeppelin_token::
|
|
7928
|
+
"name": "openzeppelin_token::erc1155::erc1155::ERC1155Component::ApprovalForAll",
|
|
8914
7929
|
"kind": "struct",
|
|
8915
7930
|
"members": [
|
|
8916
7931
|
{
|
|
@@ -8932,22 +7947,44 @@ var IPClubCollectionABI = [
|
|
|
8932
7947
|
},
|
|
8933
7948
|
{
|
|
8934
7949
|
"type": "event",
|
|
8935
|
-
"name": "openzeppelin_token::
|
|
7950
|
+
"name": "openzeppelin_token::erc1155::erc1155::ERC1155Component::URI",
|
|
7951
|
+
"kind": "struct",
|
|
7952
|
+
"members": [
|
|
7953
|
+
{
|
|
7954
|
+
"name": "value",
|
|
7955
|
+
"type": "core::byte_array::ByteArray",
|
|
7956
|
+
"kind": "data"
|
|
7957
|
+
},
|
|
7958
|
+
{
|
|
7959
|
+
"name": "id",
|
|
7960
|
+
"type": "core::integer::u256",
|
|
7961
|
+
"kind": "key"
|
|
7962
|
+
}
|
|
7963
|
+
]
|
|
7964
|
+
},
|
|
7965
|
+
{
|
|
7966
|
+
"type": "event",
|
|
7967
|
+
"name": "openzeppelin_token::erc1155::erc1155::ERC1155Component::Event",
|
|
8936
7968
|
"kind": "enum",
|
|
8937
7969
|
"variants": [
|
|
8938
7970
|
{
|
|
8939
|
-
"name": "
|
|
8940
|
-
"type": "openzeppelin_token::
|
|
7971
|
+
"name": "TransferSingle",
|
|
7972
|
+
"type": "openzeppelin_token::erc1155::erc1155::ERC1155Component::TransferSingle",
|
|
8941
7973
|
"kind": "nested"
|
|
8942
7974
|
},
|
|
8943
7975
|
{
|
|
8944
|
-
"name": "
|
|
8945
|
-
"type": "openzeppelin_token::
|
|
7976
|
+
"name": "TransferBatch",
|
|
7977
|
+
"type": "openzeppelin_token::erc1155::erc1155::ERC1155Component::TransferBatch",
|
|
8946
7978
|
"kind": "nested"
|
|
8947
7979
|
},
|
|
8948
7980
|
{
|
|
8949
7981
|
"name": "ApprovalForAll",
|
|
8950
|
-
"type": "openzeppelin_token::
|
|
7982
|
+
"type": "openzeppelin_token::erc1155::erc1155::ERC1155Component::ApprovalForAll",
|
|
7983
|
+
"kind": "nested"
|
|
7984
|
+
},
|
|
7985
|
+
{
|
|
7986
|
+
"name": "URI",
|
|
7987
|
+
"type": "openzeppelin_token::erc1155::erc1155::ERC1155Component::URI",
|
|
8951
7988
|
"kind": "nested"
|
|
8952
7989
|
}
|
|
8953
7990
|
]
|
|
@@ -9011,7 +8048,7 @@ var IPClubCollectionABI = [
|
|
|
9011
8048
|
},
|
|
9012
8049
|
{
|
|
9013
8050
|
"type": "event",
|
|
9014
|
-
"name": "ip_club::IPClubCollection::IPClubCollection::
|
|
8051
|
+
"name": "ip_club::IPClubCollection::IPClubCollection::MembershipCreated",
|
|
9015
8052
|
"kind": "struct",
|
|
9016
8053
|
"members": [
|
|
9017
8054
|
{
|
|
@@ -9020,25 +8057,28 @@ var IPClubCollectionABI = [
|
|
|
9020
8057
|
"kind": "key"
|
|
9021
8058
|
},
|
|
9022
8059
|
{
|
|
9023
|
-
"name": "
|
|
9024
|
-
"type": "core::
|
|
9025
|
-
"kind": "
|
|
8060
|
+
"name": "max_supply",
|
|
8061
|
+
"type": "core::integer::u256",
|
|
8062
|
+
"kind": "data"
|
|
9026
8063
|
},
|
|
9027
8064
|
{
|
|
9028
|
-
"name": "
|
|
9029
|
-
"type": "core::
|
|
8065
|
+
"name": "start_time",
|
|
8066
|
+
"type": "core::option::Option::<core::integer::u64>",
|
|
9030
8067
|
"kind": "data"
|
|
9031
|
-
}
|
|
9032
|
-
]
|
|
9033
|
-
},
|
|
9034
|
-
{
|
|
9035
|
-
"type": "event",
|
|
9036
|
-
"name": "ip_club::IPClubCollection::IPClubCollection::OpenStatusChanged",
|
|
9037
|
-
"kind": "struct",
|
|
9038
|
-
"members": [
|
|
8068
|
+
},
|
|
9039
8069
|
{
|
|
9040
|
-
"name": "
|
|
9041
|
-
"type": "core::
|
|
8070
|
+
"name": "end_time",
|
|
8071
|
+
"type": "core::option::Option::<core::integer::u64>",
|
|
8072
|
+
"kind": "data"
|
|
8073
|
+
},
|
|
8074
|
+
{
|
|
8075
|
+
"name": "metadata_uri",
|
|
8076
|
+
"type": "core::byte_array::ByteArray",
|
|
8077
|
+
"kind": "data"
|
|
8078
|
+
},
|
|
8079
|
+
{
|
|
8080
|
+
"name": "created_at",
|
|
8081
|
+
"type": "core::integer::u64",
|
|
9042
8082
|
"kind": "data"
|
|
9043
8083
|
}
|
|
9044
8084
|
]
|
|
@@ -9049,8 +8089,8 @@ var IPClubCollectionABI = [
|
|
|
9049
8089
|
"kind": "enum",
|
|
9050
8090
|
"variants": [
|
|
9051
8091
|
{
|
|
9052
|
-
"name": "
|
|
9053
|
-
"type": "openzeppelin_token::
|
|
8092
|
+
"name": "ERC1155Event",
|
|
8093
|
+
"type": "openzeppelin_token::erc1155::erc1155::ERC1155Component::Event",
|
|
9054
8094
|
"kind": "flat"
|
|
9055
8095
|
},
|
|
9056
8096
|
{
|
|
@@ -9064,13 +8104,8 @@ var IPClubCollectionABI = [
|
|
|
9064
8104
|
"kind": "flat"
|
|
9065
8105
|
},
|
|
9066
8106
|
{
|
|
9067
|
-
"name": "
|
|
9068
|
-
"type": "ip_club::IPClubCollection::IPClubCollection::
|
|
9069
|
-
"kind": "nested"
|
|
9070
|
-
},
|
|
9071
|
-
{
|
|
9072
|
-
"name": "OpenStatusChanged",
|
|
9073
|
-
"type": "ip_club::IPClubCollection::IPClubCollection::OpenStatusChanged",
|
|
8107
|
+
"name": "MembershipCreated",
|
|
8108
|
+
"type": "ip_club::IPClubCollection::IPClubCollection::MembershipCreated",
|
|
9074
8109
|
"kind": "nested"
|
|
9075
8110
|
}
|
|
9076
8111
|
]
|
|
@@ -11847,6 +10882,11 @@ var TicketService = class {
|
|
|
11847
10882
|
]);
|
|
11848
10883
|
return Boolean(result);
|
|
11849
10884
|
}
|
|
10885
|
+
/** Read — number of tickets created so far (ids are sequential from 1). */
|
|
10886
|
+
async getTicketCount(params) {
|
|
10887
|
+
const result = await this._collectionRead(params.collection).call("ticket_count", []);
|
|
10888
|
+
return BigInt(result);
|
|
10889
|
+
}
|
|
11850
10890
|
/** Read — returns the Ticket record for a token ID. */
|
|
11851
10891
|
async getTicket(params) {
|
|
11852
10892
|
const t = await this._collectionRead(params.collection).call("get_ticket", [
|
|
@@ -11864,121 +10904,90 @@ var TicketService = class {
|
|
|
11864
10904
|
};
|
|
11865
10905
|
var ClubService = class {
|
|
11866
10906
|
constructor(config) {
|
|
11867
|
-
|
|
11868
|
-
this.
|
|
11869
|
-
this.factoryAddress = coords.ipClubFactory;
|
|
11870
|
-
}
|
|
11871
|
-
_registry(account, registryAddress) {
|
|
11872
|
-
const address = registryAddress ?? this.registryAddress;
|
|
11873
|
-
if (!address) throw new Error("IP-Club registry address not configured for this chain");
|
|
11874
|
-
return newContract(IPClubABI, normalizeAddress("STARKNET", address), account);
|
|
10907
|
+
this.config = config;
|
|
10908
|
+
this.factoryAddress = getStarknetCoordinates(config.chain).ipClubFactory;
|
|
11875
10909
|
}
|
|
11876
10910
|
_factory(account, factoryAddress) {
|
|
11877
10911
|
const address = factoryAddress ?? this.factoryAddress;
|
|
11878
10912
|
if (!address) throw new Error("IP-Club factory address not configured for this chain");
|
|
11879
10913
|
return newContract(IPClubFactoryABI, normalizeAddress("STARKNET", address), account);
|
|
11880
10914
|
}
|
|
11881
|
-
_collection(
|
|
11882
|
-
return newContract(IPClubCollectionABI, normalizeAddress("STARKNET",
|
|
10915
|
+
_collection(address, account) {
|
|
10916
|
+
return newContract(IPClubCollectionABI, normalizeAddress("STARKNET", address), account);
|
|
10917
|
+
}
|
|
10918
|
+
_collectionRead(address) {
|
|
10919
|
+
const provider = new starknet.RpcProvider({ nodeUrl: this.config.rpcUrl });
|
|
10920
|
+
return newContract(IPClubCollectionABI, normalizeAddress("STARKNET", address), provider);
|
|
11883
10921
|
}
|
|
11884
|
-
/**
|
|
11885
|
-
|
|
11886
|
-
|
|
11887
|
-
|
|
11888
|
-
|
|
11889
|
-
|
|
11890
|
-
const call = this._factory(account, params.factoryAddress).populate("
|
|
10922
|
+
/**
|
|
10923
|
+
* Deploys a new IPClubCollection via the factory. Caller becomes owner.
|
|
10924
|
+
* `baseUri` is the collection-level metadata URI, embedded on-chain in the
|
|
10925
|
+
* deploy transaction.
|
|
10926
|
+
*/
|
|
10927
|
+
async deployCollection(account, params) {
|
|
10928
|
+
const call = this._factory(account, params.factoryAddress).populate("deploy_collection", [
|
|
11891
10929
|
params.name,
|
|
11892
10930
|
params.symbol,
|
|
11893
|
-
params.baseUri
|
|
11894
|
-
maxSupply,
|
|
11895
|
-
entryFee,
|
|
11896
|
-
paymentToken,
|
|
11897
|
-
royaltyBps
|
|
10931
|
+
params.baseUri
|
|
11898
10932
|
]);
|
|
11899
10933
|
const res = await account.execute([call]);
|
|
11900
10934
|
return { txHash: res.transaction_hash };
|
|
11901
10935
|
}
|
|
11902
|
-
/** Owner-only
|
|
11903
|
-
async
|
|
11904
|
-
const
|
|
10936
|
+
/** Owner-only. Creates a new membership tier inside the caller's deployed collection. */
|
|
10937
|
+
async createMembership(account, params) {
|
|
10938
|
+
const startTime = params.startTime != null ? new starknet.CairoOption(starknet.CairoOptionVariant.Some, params.startTime) : new starknet.CairoOption(starknet.CairoOptionVariant.None);
|
|
10939
|
+
const endTime = params.endTime != null ? new starknet.CairoOption(starknet.CairoOptionVariant.Some, params.endTime) : new starknet.CairoOption(starknet.CairoOptionVariant.None);
|
|
10940
|
+
const call = this._collection(params.collection, account).populate("create_membership", [
|
|
10941
|
+
starknet.cairo.uint256(params.maxSupply),
|
|
10942
|
+
startTime,
|
|
10943
|
+
endTime,
|
|
10944
|
+
params.royaltyBps,
|
|
10945
|
+
params.metadataUri
|
|
10946
|
+
]);
|
|
11905
10947
|
const res = await account.execute([call]);
|
|
11906
10948
|
return { txHash: res.transaction_hash };
|
|
11907
10949
|
}
|
|
11908
|
-
/**
|
|
11909
|
-
|
|
11910
|
-
|
|
11911
|
-
|
|
11912
|
-
|
|
11913
|
-
|
|
11914
|
-
|
|
11915
|
-
|
|
11916
|
-
|
|
11917
|
-
normalizeAddress("STARKNET", params.collectionAddress),
|
|
11918
|
-
amount.low.toString(),
|
|
11919
|
-
amount.high.toString()
|
|
11920
|
-
]
|
|
11921
|
-
});
|
|
11922
|
-
}
|
|
11923
|
-
calls.push(
|
|
11924
|
-
this._collection(account, params.collectionAddress).populate("mint", [
|
|
11925
|
-
params.to ?? account.address
|
|
11926
|
-
])
|
|
11927
|
-
);
|
|
11928
|
-
const res = await account.execute(calls);
|
|
11929
|
-
return { txHash: res.transaction_hash };
|
|
11930
|
-
}
|
|
11931
|
-
// ── Legacy registry methods (retained for backward compatibility) ──────────────
|
|
11932
|
-
/** @deprecated Use deployClub — the factory pattern replaced the registry. */
|
|
11933
|
-
async createClub(account, params) {
|
|
11934
|
-
const maxMembers = params.maxMembers != null ? new starknet.CairoOption(starknet.CairoOptionVariant.Some, params.maxMembers) : new starknet.CairoOption(starknet.CairoOptionVariant.None);
|
|
11935
|
-
const entryFee = params.entryFee != null ? new starknet.CairoOption(starknet.CairoOptionVariant.Some, starknet.cairo.uint256(params.entryFee)) : new starknet.CairoOption(starknet.CairoOptionVariant.None);
|
|
11936
|
-
const paymentToken = params.paymentToken ? new starknet.CairoOption(starknet.CairoOptionVariant.Some, params.paymentToken) : new starknet.CairoOption(starknet.CairoOptionVariant.None);
|
|
11937
|
-
const call = this._registry(account, params.registryAddress).populate("create_club", [
|
|
11938
|
-
params.name,
|
|
11939
|
-
params.symbol,
|
|
11940
|
-
params.metadataUri,
|
|
11941
|
-
maxMembers,
|
|
11942
|
-
entryFee,
|
|
11943
|
-
paymentToken
|
|
10950
|
+
/**
|
|
10951
|
+
* Owner-only. Mints `amount` of `tokenId` to `to`. The validity window
|
|
10952
|
+
* gates membership, never minting — future-window tiers mint fine.
|
|
10953
|
+
*/
|
|
10954
|
+
async mint(account, params) {
|
|
10955
|
+
const call = this._collection(params.collection, account).populate("mint", [
|
|
10956
|
+
params.to,
|
|
10957
|
+
starknet.cairo.uint256(params.tokenId),
|
|
10958
|
+
starknet.cairo.uint256(params.amount)
|
|
11944
10959
|
]);
|
|
11945
10960
|
const res = await account.execute([call]);
|
|
11946
10961
|
return { txHash: res.transaction_hash };
|
|
11947
10962
|
}
|
|
11948
|
-
/**
|
|
11949
|
-
async
|
|
11950
|
-
const
|
|
11951
|
-
|
|
11952
|
-
params.open
|
|
10963
|
+
/** Read — true if holder holds any tier currently inside its validity window. */
|
|
10964
|
+
async isMember(params) {
|
|
10965
|
+
const result = await this._collectionRead(params.collection).call("is_member", [
|
|
10966
|
+
params.holder
|
|
11953
10967
|
]);
|
|
11954
|
-
|
|
11955
|
-
return { txHash: res.transaction_hash };
|
|
10968
|
+
return Boolean(result);
|
|
11956
10969
|
}
|
|
11957
|
-
/**
|
|
11958
|
-
async
|
|
11959
|
-
const
|
|
11960
|
-
|
|
11961
|
-
|
|
11962
|
-
|
|
11963
|
-
|
|
11964
|
-
calls.push({
|
|
11965
|
-
contractAddress: params.paymentToken,
|
|
11966
|
-
entrypoint: "approve",
|
|
11967
|
-
calldata: [normalizeAddress("STARKNET", registryAddress), amount.low.toString(), amount.high.toString()]
|
|
11968
|
-
});
|
|
11969
|
-
}
|
|
11970
|
-
calls.push(this._registry(account, registryAddress).populate("join_club", [starknet.cairo.uint256(params.clubId)]));
|
|
11971
|
-
const res = await account.execute(calls);
|
|
11972
|
-
return { txHash: res.transaction_hash };
|
|
10970
|
+
/** Read — true if holder holds `tokenId` and the current time is inside its window. */
|
|
10971
|
+
async isMemberOf(params) {
|
|
10972
|
+
const result = await this._collectionRead(params.collection).call("is_member_of", [
|
|
10973
|
+
starknet.cairo.uint256(params.tokenId),
|
|
10974
|
+
params.holder
|
|
10975
|
+
]);
|
|
10976
|
+
return Boolean(result);
|
|
11973
10977
|
}
|
|
11974
|
-
/**
|
|
11975
|
-
async
|
|
11976
|
-
const
|
|
11977
|
-
starknet.cairo.uint256(params.clubId),
|
|
10978
|
+
/** Read — returns the Membership record for a token ID. */
|
|
10979
|
+
async getMembership(params) {
|
|
10980
|
+
const m = await this._collectionRead(params.collection).call("get_membership", [
|
|
11978
10981
|
starknet.cairo.uint256(params.tokenId)
|
|
11979
10982
|
]);
|
|
11980
|
-
|
|
11981
|
-
|
|
10983
|
+
return {
|
|
10984
|
+
maxSupply: BigInt(m.max_supply),
|
|
10985
|
+
minted: BigInt(m.minted),
|
|
10986
|
+
startTime: m.start_time?.variant === "Some" ? Number(m.start_time.values[0] ?? m.start_time.value) : null,
|
|
10987
|
+
endTime: m.end_time?.variant === "Some" ? Number(m.end_time.values[0] ?? m.end_time.value) : null,
|
|
10988
|
+
royaltyBps: Number(m.royalty_bps),
|
|
10989
|
+
metadataUri: m.metadata_uri
|
|
10990
|
+
};
|
|
11982
10991
|
}
|
|
11983
10992
|
};
|
|
11984
10993
|
var SponsorshipService = class {
|
|
@@ -13006,10 +12015,8 @@ exports.DropFactoryABI = DropFactoryABI;
|
|
|
13006
12015
|
exports.DropService = DropService;
|
|
13007
12016
|
exports.ERC1155CollectionService = ERC1155CollectionService;
|
|
13008
12017
|
exports.FeeConfigSchema = FeeConfigSchema;
|
|
13009
|
-
exports.IPClubABI = IPClubABI;
|
|
13010
12018
|
exports.IPClubCollectionABI = IPClubCollectionABI;
|
|
13011
12019
|
exports.IPClubFactoryABI = IPClubFactoryABI;
|
|
13012
|
-
exports.IPClubNFTABI = IPClubNFTABI;
|
|
13013
12020
|
exports.IPCollection1155ABI = IPCollection1155ABI;
|
|
13014
12021
|
exports.IPCollection1155FactoryABI = IPCollection1155FactoryABI;
|
|
13015
12022
|
exports.IPCollectionABI = IPCollectionABI;
|
|
@@ -13047,8 +12054,6 @@ exports.STARKNET_IPCOLLECTION_CLASS_HASH = STARKNET_IPCOLLECTION_CLASS_HASH;
|
|
|
13047
12054
|
exports.STARKNET_IPNFT_CLASS_HASH = STARKNET_IPNFT_CLASS_HASH;
|
|
13048
12055
|
exports.STARKNET_IP_CLUB_COLLECTION_CLASS_HASH = STARKNET_IP_CLUB_COLLECTION_CLASS_HASH;
|
|
13049
12056
|
exports.STARKNET_IP_CLUB_FACTORY_CONTRACT = STARKNET_IP_CLUB_FACTORY_CONTRACT;
|
|
13050
|
-
exports.STARKNET_IP_CLUB_NFT_CLASS_HASH = STARKNET_IP_CLUB_NFT_CLASS_HASH;
|
|
13051
|
-
exports.STARKNET_IP_CLUB_REGISTRY_CONTRACT = STARKNET_IP_CLUB_REGISTRY_CONTRACT;
|
|
13052
12057
|
exports.STARKNET_IP_SPONSORSHIP_CLASS_HASH = STARKNET_IP_SPONSORSHIP_CLASS_HASH;
|
|
13053
12058
|
exports.STARKNET_IP_SPONSORSHIP_CONTRACT = STARKNET_IP_SPONSORSHIP_CONTRACT;
|
|
13054
12059
|
exports.STARKNET_IP_TICKETS_FACTORY_CONTRACT = STARKNET_IP_TICKETS_FACTORY_CONTRACT;
|