@medialane/sdk 0.9.2 → 0.11.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.cjs CHANGED
@@ -15,7 +15,7 @@ var MARKETPLACE_START_BLOCK_MAINNET = MARKETPLACE_721_START_BLOCK_MAINNET;
15
15
  var MARKETPLACE_1155_CONTRACT_MAINNET = "0x02bfa521c25461a09d735889b469418608d7d92f8b26e3d37ef174a4c2e22f99";
16
16
  var MARKETPLACE_1155_CLASS_HASH_MAINNET = "0x01b674aad934be85abc7c1970265cbf7e9bc7d586a90f0a67112c201636dbdd3";
17
17
  var MARKETPLACE_1155_START_BLOCK_MAINNET = 9260304;
18
- var COLLECTION_721_CONTRACT_MAINNET = "0x05c49ee5d3208a2c2e150fdd0c247d1195ed9ab54fa2d5dea7a633f39e4b205b";
18
+ var COLLECTION_721_CONTRACT_MAINNET = "0x07c2207d200a1dce1cc82a117d8ba91dabfe3d1cc5072d9e4cdd9654fbb0ff10";
19
19
  var COLLECTION_CONTRACT_MAINNET = COLLECTION_721_CONTRACT_MAINNET;
20
20
  var DROP_FACTORY_CONTRACT_MAINNET = "0x03587f42e29daee1b193f6cf83bf8627908ed6632d0d83fcb26225c50547d800";
21
21
  var POP_FACTORY_CONTRACT_MAINNET = "0x00b32c34b427d8f346b5843ada6a37bd3368d879fc752cd52b68a87287f60111";
@@ -942,8 +942,7 @@ var CollectionRegistryABI = [
942
942
  { name: "symbol", type: "core::byte_array::ByteArray" },
943
943
  { name: "base_uri", type: "core::byte_array::ByteArray" },
944
944
  { name: "owner", type: "core::starknet::contract_address::ContractAddress" },
945
- { name: "ip_nft", type: "core::starknet::contract_address::ContractAddress" },
946
- { name: "is_active", type: "core::bool" }
945
+ { name: "ip_nft", type: "core::starknet::contract_address::ContractAddress" }
947
946
  ]
948
947
  },
949
948
  {
@@ -1654,6 +1653,1612 @@ var IPCollection1155ABI = [
1654
1653
  state_mutability: "external"
1655
1654
  }
1656
1655
  ];
1656
+ var IPCollectionABI = [
1657
+ {
1658
+ "type": "impl",
1659
+ "name": "IPCollectionImpl",
1660
+ "interface_name": "ip_collection_erc_721::interfaces::IIPCollection::IIPCollection"
1661
+ },
1662
+ {
1663
+ "type": "struct",
1664
+ "name": "core::byte_array::ByteArray",
1665
+ "members": [
1666
+ {
1667
+ "name": "data",
1668
+ "type": "core::array::Array::<core::bytes_31::bytes31>"
1669
+ },
1670
+ {
1671
+ "name": "pending_word",
1672
+ "type": "core::felt252"
1673
+ },
1674
+ {
1675
+ "name": "pending_word_len",
1676
+ "type": "core::internal::bounded_int::BoundedInt::<0, 30>"
1677
+ }
1678
+ ]
1679
+ },
1680
+ {
1681
+ "type": "struct",
1682
+ "name": "core::integer::u256",
1683
+ "members": [
1684
+ {
1685
+ "name": "low",
1686
+ "type": "core::integer::u128"
1687
+ },
1688
+ {
1689
+ "name": "high",
1690
+ "type": "core::integer::u128"
1691
+ }
1692
+ ]
1693
+ },
1694
+ {
1695
+ "type": "struct",
1696
+ "name": "core::array::Span::<core::integer::u256>",
1697
+ "members": [
1698
+ {
1699
+ "name": "snapshot",
1700
+ "type": "@core::array::Array::<core::integer::u256>"
1701
+ }
1702
+ ]
1703
+ },
1704
+ {
1705
+ "type": "struct",
1706
+ "name": "ip_collection_erc_721::types::Collection",
1707
+ "members": [
1708
+ {
1709
+ "name": "name",
1710
+ "type": "core::byte_array::ByteArray"
1711
+ },
1712
+ {
1713
+ "name": "symbol",
1714
+ "type": "core::byte_array::ByteArray"
1715
+ },
1716
+ {
1717
+ "name": "base_uri",
1718
+ "type": "core::byte_array::ByteArray"
1719
+ },
1720
+ {
1721
+ "name": "owner",
1722
+ "type": "core::starknet::contract_address::ContractAddress"
1723
+ },
1724
+ {
1725
+ "name": "ip_nft",
1726
+ "type": "core::starknet::contract_address::ContractAddress"
1727
+ }
1728
+ ]
1729
+ },
1730
+ {
1731
+ "type": "enum",
1732
+ "name": "core::bool",
1733
+ "variants": [
1734
+ {
1735
+ "name": "False",
1736
+ "type": "()"
1737
+ },
1738
+ {
1739
+ "name": "True",
1740
+ "type": "()"
1741
+ }
1742
+ ]
1743
+ },
1744
+ {
1745
+ "type": "struct",
1746
+ "name": "ip_collection_erc_721::types::CollectionStats",
1747
+ "members": [
1748
+ {
1749
+ "name": "total_minted",
1750
+ "type": "core::integer::u256"
1751
+ },
1752
+ {
1753
+ "name": "total_archived",
1754
+ "type": "core::integer::u256"
1755
+ },
1756
+ {
1757
+ "name": "total_transfers",
1758
+ "type": "core::integer::u256"
1759
+ },
1760
+ {
1761
+ "name": "last_mint_time",
1762
+ "type": "core::integer::u64"
1763
+ },
1764
+ {
1765
+ "name": "last_archive_time",
1766
+ "type": "core::integer::u64"
1767
+ },
1768
+ {
1769
+ "name": "last_transfer_time",
1770
+ "type": "core::integer::u64"
1771
+ }
1772
+ ]
1773
+ },
1774
+ {
1775
+ "type": "struct",
1776
+ "name": "ip_collection_erc_721::types::TokenData",
1777
+ "members": [
1778
+ {
1779
+ "name": "collection_id",
1780
+ "type": "core::integer::u256"
1781
+ },
1782
+ {
1783
+ "name": "token_id",
1784
+ "type": "core::integer::u256"
1785
+ },
1786
+ {
1787
+ "name": "owner",
1788
+ "type": "core::starknet::contract_address::ContractAddress"
1789
+ },
1790
+ {
1791
+ "name": "metadata_uri",
1792
+ "type": "core::byte_array::ByteArray"
1793
+ },
1794
+ {
1795
+ "name": "original_creator",
1796
+ "type": "core::starknet::contract_address::ContractAddress"
1797
+ },
1798
+ {
1799
+ "name": "registered_at",
1800
+ "type": "core::integer::u64"
1801
+ }
1802
+ ]
1803
+ },
1804
+ {
1805
+ "type": "interface",
1806
+ "name": "ip_collection_erc_721::interfaces::IIPCollection::IIPCollection",
1807
+ "items": [
1808
+ {
1809
+ "type": "function",
1810
+ "name": "create_collection",
1811
+ "inputs": [
1812
+ {
1813
+ "name": "name",
1814
+ "type": "core::byte_array::ByteArray"
1815
+ },
1816
+ {
1817
+ "name": "symbol",
1818
+ "type": "core::byte_array::ByteArray"
1819
+ },
1820
+ {
1821
+ "name": "base_uri",
1822
+ "type": "core::byte_array::ByteArray"
1823
+ }
1824
+ ],
1825
+ "outputs": [
1826
+ {
1827
+ "type": "core::integer::u256"
1828
+ }
1829
+ ],
1830
+ "state_mutability": "external"
1831
+ },
1832
+ {
1833
+ "type": "function",
1834
+ "name": "mint",
1835
+ "inputs": [
1836
+ {
1837
+ "name": "collection_id",
1838
+ "type": "core::integer::u256"
1839
+ },
1840
+ {
1841
+ "name": "recipient",
1842
+ "type": "core::starknet::contract_address::ContractAddress"
1843
+ },
1844
+ {
1845
+ "name": "token_uri",
1846
+ "type": "core::byte_array::ByteArray"
1847
+ }
1848
+ ],
1849
+ "outputs": [
1850
+ {
1851
+ "type": "core::integer::u256"
1852
+ }
1853
+ ],
1854
+ "state_mutability": "external"
1855
+ },
1856
+ {
1857
+ "type": "function",
1858
+ "name": "batch_mint",
1859
+ "inputs": [
1860
+ {
1861
+ "name": "collection_id",
1862
+ "type": "core::integer::u256"
1863
+ },
1864
+ {
1865
+ "name": "recipients",
1866
+ "type": "core::array::Array::<core::starknet::contract_address::ContractAddress>"
1867
+ },
1868
+ {
1869
+ "name": "token_uris",
1870
+ "type": "core::array::Array::<core::byte_array::ByteArray>"
1871
+ }
1872
+ ],
1873
+ "outputs": [
1874
+ {
1875
+ "type": "core::array::Span::<core::integer::u256>"
1876
+ }
1877
+ ],
1878
+ "state_mutability": "external"
1879
+ },
1880
+ {
1881
+ "type": "function",
1882
+ "name": "transfer_collection_ownership",
1883
+ "inputs": [
1884
+ {
1885
+ "name": "collection_id",
1886
+ "type": "core::integer::u256"
1887
+ },
1888
+ {
1889
+ "name": "new_owner",
1890
+ "type": "core::starknet::contract_address::ContractAddress"
1891
+ }
1892
+ ],
1893
+ "outputs": [],
1894
+ "state_mutability": "external"
1895
+ },
1896
+ {
1897
+ "type": "function",
1898
+ "name": "archive",
1899
+ "inputs": [
1900
+ {
1901
+ "name": "token",
1902
+ "type": "core::byte_array::ByteArray"
1903
+ }
1904
+ ],
1905
+ "outputs": [],
1906
+ "state_mutability": "external"
1907
+ },
1908
+ {
1909
+ "type": "function",
1910
+ "name": "batch_archive",
1911
+ "inputs": [
1912
+ {
1913
+ "name": "tokens",
1914
+ "type": "core::array::Array::<core::byte_array::ByteArray>"
1915
+ }
1916
+ ],
1917
+ "outputs": [],
1918
+ "state_mutability": "external"
1919
+ },
1920
+ {
1921
+ "type": "function",
1922
+ "name": "transfer_token",
1923
+ "inputs": [
1924
+ {
1925
+ "name": "from",
1926
+ "type": "core::starknet::contract_address::ContractAddress"
1927
+ },
1928
+ {
1929
+ "name": "to",
1930
+ "type": "core::starknet::contract_address::ContractAddress"
1931
+ },
1932
+ {
1933
+ "name": "token",
1934
+ "type": "core::byte_array::ByteArray"
1935
+ }
1936
+ ],
1937
+ "outputs": [],
1938
+ "state_mutability": "external"
1939
+ },
1940
+ {
1941
+ "type": "function",
1942
+ "name": "batch_transfer",
1943
+ "inputs": [
1944
+ {
1945
+ "name": "from",
1946
+ "type": "core::starknet::contract_address::ContractAddress"
1947
+ },
1948
+ {
1949
+ "name": "to",
1950
+ "type": "core::starknet::contract_address::ContractAddress"
1951
+ },
1952
+ {
1953
+ "name": "tokens",
1954
+ "type": "core::array::Array::<core::byte_array::ByteArray>"
1955
+ }
1956
+ ],
1957
+ "outputs": [],
1958
+ "state_mutability": "external"
1959
+ },
1960
+ {
1961
+ "type": "function",
1962
+ "name": "list_user_tokens_per_collection",
1963
+ "inputs": [
1964
+ {
1965
+ "name": "collection_id",
1966
+ "type": "core::integer::u256"
1967
+ },
1968
+ {
1969
+ "name": "user",
1970
+ "type": "core::starknet::contract_address::ContractAddress"
1971
+ }
1972
+ ],
1973
+ "outputs": [
1974
+ {
1975
+ "type": "core::array::Span::<core::integer::u256>"
1976
+ }
1977
+ ],
1978
+ "state_mutability": "view"
1979
+ },
1980
+ {
1981
+ "type": "function",
1982
+ "name": "list_user_collections",
1983
+ "inputs": [
1984
+ {
1985
+ "name": "user",
1986
+ "type": "core::starknet::contract_address::ContractAddress"
1987
+ }
1988
+ ],
1989
+ "outputs": [
1990
+ {
1991
+ "type": "core::array::Span::<core::integer::u256>"
1992
+ }
1993
+ ],
1994
+ "state_mutability": "view"
1995
+ },
1996
+ {
1997
+ "type": "function",
1998
+ "name": "get_collection",
1999
+ "inputs": [
2000
+ {
2001
+ "name": "collection_id",
2002
+ "type": "core::integer::u256"
2003
+ }
2004
+ ],
2005
+ "outputs": [
2006
+ {
2007
+ "type": "ip_collection_erc_721::types::Collection"
2008
+ }
2009
+ ],
2010
+ "state_mutability": "view"
2011
+ },
2012
+ {
2013
+ "type": "function",
2014
+ "name": "get_collection_count",
2015
+ "inputs": [],
2016
+ "outputs": [
2017
+ {
2018
+ "type": "core::integer::u256"
2019
+ }
2020
+ ],
2021
+ "state_mutability": "view"
2022
+ },
2023
+ {
2024
+ "type": "function",
2025
+ "name": "is_valid_collection",
2026
+ "inputs": [
2027
+ {
2028
+ "name": "collection_id",
2029
+ "type": "core::integer::u256"
2030
+ }
2031
+ ],
2032
+ "outputs": [
2033
+ {
2034
+ "type": "core::bool"
2035
+ }
2036
+ ],
2037
+ "state_mutability": "view"
2038
+ },
2039
+ {
2040
+ "type": "function",
2041
+ "name": "get_collection_stats",
2042
+ "inputs": [
2043
+ {
2044
+ "name": "collection_id",
2045
+ "type": "core::integer::u256"
2046
+ }
2047
+ ],
2048
+ "outputs": [
2049
+ {
2050
+ "type": "ip_collection_erc_721::types::CollectionStats"
2051
+ }
2052
+ ],
2053
+ "state_mutability": "view"
2054
+ },
2055
+ {
2056
+ "type": "function",
2057
+ "name": "is_collection_owner",
2058
+ "inputs": [
2059
+ {
2060
+ "name": "collection_id",
2061
+ "type": "core::integer::u256"
2062
+ },
2063
+ {
2064
+ "name": "owner",
2065
+ "type": "core::starknet::contract_address::ContractAddress"
2066
+ }
2067
+ ],
2068
+ "outputs": [
2069
+ {
2070
+ "type": "core::bool"
2071
+ }
2072
+ ],
2073
+ "state_mutability": "view"
2074
+ },
2075
+ {
2076
+ "type": "function",
2077
+ "name": "get_token",
2078
+ "inputs": [
2079
+ {
2080
+ "name": "token",
2081
+ "type": "core::byte_array::ByteArray"
2082
+ }
2083
+ ],
2084
+ "outputs": [
2085
+ {
2086
+ "type": "ip_collection_erc_721::types::TokenData"
2087
+ }
2088
+ ],
2089
+ "state_mutability": "view"
2090
+ },
2091
+ {
2092
+ "type": "function",
2093
+ "name": "is_valid_token",
2094
+ "inputs": [
2095
+ {
2096
+ "name": "token",
2097
+ "type": "core::byte_array::ByteArray"
2098
+ }
2099
+ ],
2100
+ "outputs": [
2101
+ {
2102
+ "type": "core::bool"
2103
+ }
2104
+ ],
2105
+ "state_mutability": "view"
2106
+ },
2107
+ {
2108
+ "type": "function",
2109
+ "name": "is_transferable_token",
2110
+ "inputs": [
2111
+ {
2112
+ "name": "token",
2113
+ "type": "core::byte_array::ByteArray"
2114
+ }
2115
+ ],
2116
+ "outputs": [
2117
+ {
2118
+ "type": "core::bool"
2119
+ }
2120
+ ],
2121
+ "state_mutability": "view"
2122
+ }
2123
+ ]
2124
+ },
2125
+ {
2126
+ "type": "constructor",
2127
+ "name": "constructor",
2128
+ "inputs": [
2129
+ {
2130
+ "name": "ip_nft_class_hash",
2131
+ "type": "core::starknet::class_hash::ClassHash"
2132
+ }
2133
+ ]
2134
+ },
2135
+ {
2136
+ "type": "event",
2137
+ "name": "ip_collection_erc_721::IPCollection::IPCollection::CollectionCreated",
2138
+ "kind": "struct",
2139
+ "members": [
2140
+ {
2141
+ "name": "collection_id",
2142
+ "type": "core::integer::u256",
2143
+ "kind": "key"
2144
+ },
2145
+ {
2146
+ "name": "owner",
2147
+ "type": "core::starknet::contract_address::ContractAddress",
2148
+ "kind": "data"
2149
+ },
2150
+ {
2151
+ "name": "name",
2152
+ "type": "core::byte_array::ByteArray",
2153
+ "kind": "data"
2154
+ },
2155
+ {
2156
+ "name": "symbol",
2157
+ "type": "core::byte_array::ByteArray",
2158
+ "kind": "data"
2159
+ },
2160
+ {
2161
+ "name": "base_uri",
2162
+ "type": "core::byte_array::ByteArray",
2163
+ "kind": "data"
2164
+ }
2165
+ ]
2166
+ },
2167
+ {
2168
+ "type": "event",
2169
+ "name": "ip_collection_erc_721::IPCollection::IPCollection::CollectionOwnershipTransferred",
2170
+ "kind": "struct",
2171
+ "members": [
2172
+ {
2173
+ "name": "collection_id",
2174
+ "type": "core::integer::u256",
2175
+ "kind": "key"
2176
+ },
2177
+ {
2178
+ "name": "previous_owner",
2179
+ "type": "core::starknet::contract_address::ContractAddress",
2180
+ "kind": "data"
2181
+ },
2182
+ {
2183
+ "name": "new_owner",
2184
+ "type": "core::starknet::contract_address::ContractAddress",
2185
+ "kind": "data"
2186
+ },
2187
+ {
2188
+ "name": "timestamp",
2189
+ "type": "core::integer::u64",
2190
+ "kind": "data"
2191
+ }
2192
+ ]
2193
+ },
2194
+ {
2195
+ "type": "event",
2196
+ "name": "ip_collection_erc_721::IPCollection::IPCollection::TokenMinted",
2197
+ "kind": "struct",
2198
+ "members": [
2199
+ {
2200
+ "name": "collection_id",
2201
+ "type": "core::integer::u256",
2202
+ "kind": "key"
2203
+ },
2204
+ {
2205
+ "name": "token_id",
2206
+ "type": "core::integer::u256",
2207
+ "kind": "key"
2208
+ },
2209
+ {
2210
+ "name": "owner",
2211
+ "type": "core::starknet::contract_address::ContractAddress",
2212
+ "kind": "data"
2213
+ },
2214
+ {
2215
+ "name": "metadata_uri",
2216
+ "type": "core::byte_array::ByteArray",
2217
+ "kind": "data"
2218
+ }
2219
+ ]
2220
+ },
2221
+ {
2222
+ "type": "event",
2223
+ "name": "ip_collection_erc_721::IPCollection::IPCollection::TokenMintedBatch",
2224
+ "kind": "struct",
2225
+ "members": [
2226
+ {
2227
+ "name": "collection_id",
2228
+ "type": "core::integer::u256",
2229
+ "kind": "key"
2230
+ },
2231
+ {
2232
+ "name": "token_ids",
2233
+ "type": "core::array::Span::<core::integer::u256>",
2234
+ "kind": "data"
2235
+ },
2236
+ {
2237
+ "name": "owners",
2238
+ "type": "core::array::Array::<core::starknet::contract_address::ContractAddress>",
2239
+ "kind": "data"
2240
+ },
2241
+ {
2242
+ "name": "operator",
2243
+ "type": "core::starknet::contract_address::ContractAddress",
2244
+ "kind": "data"
2245
+ },
2246
+ {
2247
+ "name": "timestamp",
2248
+ "type": "core::integer::u64",
2249
+ "kind": "data"
2250
+ }
2251
+ ]
2252
+ },
2253
+ {
2254
+ "type": "event",
2255
+ "name": "ip_collection_erc_721::IPCollection::IPCollection::TokenArchived",
2256
+ "kind": "struct",
2257
+ "members": [
2258
+ {
2259
+ "name": "collection_id",
2260
+ "type": "core::integer::u256",
2261
+ "kind": "key"
2262
+ },
2263
+ {
2264
+ "name": "token_id",
2265
+ "type": "core::integer::u256",
2266
+ "kind": "key"
2267
+ },
2268
+ {
2269
+ "name": "operator",
2270
+ "type": "core::starknet::contract_address::ContractAddress",
2271
+ "kind": "data"
2272
+ },
2273
+ {
2274
+ "name": "timestamp",
2275
+ "type": "core::integer::u64",
2276
+ "kind": "data"
2277
+ }
2278
+ ]
2279
+ },
2280
+ {
2281
+ "type": "event",
2282
+ "name": "ip_collection_erc_721::IPCollection::IPCollection::TokenArchivedBatch",
2283
+ "kind": "struct",
2284
+ "members": [
2285
+ {
2286
+ "name": "tokens",
2287
+ "type": "core::array::Array::<core::byte_array::ByteArray>",
2288
+ "kind": "data"
2289
+ },
2290
+ {
2291
+ "name": "operator",
2292
+ "type": "core::starknet::contract_address::ContractAddress",
2293
+ "kind": "data"
2294
+ },
2295
+ {
2296
+ "name": "timestamp",
2297
+ "type": "core::integer::u64",
2298
+ "kind": "data"
2299
+ }
2300
+ ]
2301
+ },
2302
+ {
2303
+ "type": "event",
2304
+ "name": "ip_collection_erc_721::IPCollection::IPCollection::TokenTransferred",
2305
+ "kind": "struct",
2306
+ "members": [
2307
+ {
2308
+ "name": "collection_id",
2309
+ "type": "core::integer::u256",
2310
+ "kind": "key"
2311
+ },
2312
+ {
2313
+ "name": "token_id",
2314
+ "type": "core::integer::u256",
2315
+ "kind": "key"
2316
+ },
2317
+ {
2318
+ "name": "from",
2319
+ "type": "core::starknet::contract_address::ContractAddress",
2320
+ "kind": "data"
2321
+ },
2322
+ {
2323
+ "name": "to",
2324
+ "type": "core::starknet::contract_address::ContractAddress",
2325
+ "kind": "data"
2326
+ },
2327
+ {
2328
+ "name": "operator",
2329
+ "type": "core::starknet::contract_address::ContractAddress",
2330
+ "kind": "data"
2331
+ },
2332
+ {
2333
+ "name": "timestamp",
2334
+ "type": "core::integer::u64",
2335
+ "kind": "data"
2336
+ }
2337
+ ]
2338
+ },
2339
+ {
2340
+ "type": "event",
2341
+ "name": "ip_collection_erc_721::IPCollection::IPCollection::TokenTransferredBatch",
2342
+ "kind": "struct",
2343
+ "members": [
2344
+ {
2345
+ "name": "from",
2346
+ "type": "core::starknet::contract_address::ContractAddress",
2347
+ "kind": "data"
2348
+ },
2349
+ {
2350
+ "name": "to",
2351
+ "type": "core::starknet::contract_address::ContractAddress",
2352
+ "kind": "data"
2353
+ },
2354
+ {
2355
+ "name": "tokens",
2356
+ "type": "core::array::Array::<core::byte_array::ByteArray>",
2357
+ "kind": "data"
2358
+ },
2359
+ {
2360
+ "name": "operator",
2361
+ "type": "core::starknet::contract_address::ContractAddress",
2362
+ "kind": "data"
2363
+ },
2364
+ {
2365
+ "name": "timestamp",
2366
+ "type": "core::integer::u64",
2367
+ "kind": "data"
2368
+ }
2369
+ ]
2370
+ },
2371
+ {
2372
+ "type": "event",
2373
+ "name": "ip_collection_erc_721::IPCollection::IPCollection::Event",
2374
+ "kind": "enum",
2375
+ "variants": [
2376
+ {
2377
+ "name": "CollectionCreated",
2378
+ "type": "ip_collection_erc_721::IPCollection::IPCollection::CollectionCreated",
2379
+ "kind": "nested"
2380
+ },
2381
+ {
2382
+ "name": "CollectionOwnershipTransferred",
2383
+ "type": "ip_collection_erc_721::IPCollection::IPCollection::CollectionOwnershipTransferred",
2384
+ "kind": "nested"
2385
+ },
2386
+ {
2387
+ "name": "TokenMinted",
2388
+ "type": "ip_collection_erc_721::IPCollection::IPCollection::TokenMinted",
2389
+ "kind": "nested"
2390
+ },
2391
+ {
2392
+ "name": "TokenMintedBatch",
2393
+ "type": "ip_collection_erc_721::IPCollection::IPCollection::TokenMintedBatch",
2394
+ "kind": "nested"
2395
+ },
2396
+ {
2397
+ "name": "TokenArchived",
2398
+ "type": "ip_collection_erc_721::IPCollection::IPCollection::TokenArchived",
2399
+ "kind": "nested"
2400
+ },
2401
+ {
2402
+ "name": "TokenArchivedBatch",
2403
+ "type": "ip_collection_erc_721::IPCollection::IPCollection::TokenArchivedBatch",
2404
+ "kind": "nested"
2405
+ },
2406
+ {
2407
+ "name": "TokenTransferred",
2408
+ "type": "ip_collection_erc_721::IPCollection::IPCollection::TokenTransferred",
2409
+ "kind": "nested"
2410
+ },
2411
+ {
2412
+ "name": "TokenTransferredBatch",
2413
+ "type": "ip_collection_erc_721::IPCollection::IPCollection::TokenTransferredBatch",
2414
+ "kind": "nested"
2415
+ }
2416
+ ]
2417
+ }
2418
+ ];
2419
+ var IPNftABI = [
2420
+ {
2421
+ "type": "impl",
2422
+ "name": "ERC721Metadata",
2423
+ "interface_name": "openzeppelin_token::erc721::interface::IERC721Metadata"
2424
+ },
2425
+ {
2426
+ "type": "struct",
2427
+ "name": "core::byte_array::ByteArray",
2428
+ "members": [
2429
+ {
2430
+ "name": "data",
2431
+ "type": "core::array::Array::<core::bytes_31::bytes31>"
2432
+ },
2433
+ {
2434
+ "name": "pending_word",
2435
+ "type": "core::felt252"
2436
+ },
2437
+ {
2438
+ "name": "pending_word_len",
2439
+ "type": "core::internal::bounded_int::BoundedInt::<0, 30>"
2440
+ }
2441
+ ]
2442
+ },
2443
+ {
2444
+ "type": "struct",
2445
+ "name": "core::integer::u256",
2446
+ "members": [
2447
+ {
2448
+ "name": "low",
2449
+ "type": "core::integer::u128"
2450
+ },
2451
+ {
2452
+ "name": "high",
2453
+ "type": "core::integer::u128"
2454
+ }
2455
+ ]
2456
+ },
2457
+ {
2458
+ "type": "interface",
2459
+ "name": "openzeppelin_token::erc721::interface::IERC721Metadata",
2460
+ "items": [
2461
+ {
2462
+ "type": "function",
2463
+ "name": "name",
2464
+ "inputs": [],
2465
+ "outputs": [
2466
+ {
2467
+ "type": "core::byte_array::ByteArray"
2468
+ }
2469
+ ],
2470
+ "state_mutability": "view"
2471
+ },
2472
+ {
2473
+ "type": "function",
2474
+ "name": "symbol",
2475
+ "inputs": [],
2476
+ "outputs": [
2477
+ {
2478
+ "type": "core::byte_array::ByteArray"
2479
+ }
2480
+ ],
2481
+ "state_mutability": "view"
2482
+ },
2483
+ {
2484
+ "type": "function",
2485
+ "name": "token_uri",
2486
+ "inputs": [
2487
+ {
2488
+ "name": "token_id",
2489
+ "type": "core::integer::u256"
2490
+ }
2491
+ ],
2492
+ "outputs": [
2493
+ {
2494
+ "type": "core::byte_array::ByteArray"
2495
+ }
2496
+ ],
2497
+ "state_mutability": "view"
2498
+ }
2499
+ ]
2500
+ },
2501
+ {
2502
+ "type": "impl",
2503
+ "name": "ERC721MetadataCamelOnly",
2504
+ "interface_name": "openzeppelin_token::erc721::interface::IERC721MetadataCamelOnly"
2505
+ },
2506
+ {
2507
+ "type": "interface",
2508
+ "name": "openzeppelin_token::erc721::interface::IERC721MetadataCamelOnly",
2509
+ "items": [
2510
+ {
2511
+ "type": "function",
2512
+ "name": "tokenURI",
2513
+ "inputs": [
2514
+ {
2515
+ "name": "tokenId",
2516
+ "type": "core::integer::u256"
2517
+ }
2518
+ ],
2519
+ "outputs": [
2520
+ {
2521
+ "type": "core::byte_array::ByteArray"
2522
+ }
2523
+ ],
2524
+ "state_mutability": "view"
2525
+ }
2526
+ ]
2527
+ },
2528
+ {
2529
+ "type": "impl",
2530
+ "name": "IPNftImpl",
2531
+ "interface_name": "ip_collection_erc_721::interfaces::IIPNFT::IIPNft"
2532
+ },
2533
+ {
2534
+ "type": "enum",
2535
+ "name": "core::bool",
2536
+ "variants": [
2537
+ {
2538
+ "name": "False",
2539
+ "type": "()"
2540
+ },
2541
+ {
2542
+ "name": "True",
2543
+ "type": "()"
2544
+ }
2545
+ ]
2546
+ },
2547
+ {
2548
+ "type": "struct",
2549
+ "name": "core::array::Span::<core::integer::u256>",
2550
+ "members": [
2551
+ {
2552
+ "name": "snapshot",
2553
+ "type": "@core::array::Array::<core::integer::u256>"
2554
+ }
2555
+ ]
2556
+ },
2557
+ {
2558
+ "type": "interface",
2559
+ "name": "ip_collection_erc_721::interfaces::IIPNFT::IIPNft",
2560
+ "items": [
2561
+ {
2562
+ "type": "function",
2563
+ "name": "mint",
2564
+ "inputs": [
2565
+ {
2566
+ "name": "recipient",
2567
+ "type": "core::starknet::contract_address::ContractAddress"
2568
+ },
2569
+ {
2570
+ "name": "token_id",
2571
+ "type": "core::integer::u256"
2572
+ },
2573
+ {
2574
+ "name": "token_uri",
2575
+ "type": "core::byte_array::ByteArray"
2576
+ }
2577
+ ],
2578
+ "outputs": [],
2579
+ "state_mutability": "external"
2580
+ },
2581
+ {
2582
+ "type": "function",
2583
+ "name": "archive",
2584
+ "inputs": [
2585
+ {
2586
+ "name": "token_id",
2587
+ "type": "core::integer::u256"
2588
+ }
2589
+ ],
2590
+ "outputs": [],
2591
+ "state_mutability": "external"
2592
+ },
2593
+ {
2594
+ "type": "function",
2595
+ "name": "is_archived",
2596
+ "inputs": [
2597
+ {
2598
+ "name": "token_id",
2599
+ "type": "core::integer::u256"
2600
+ }
2601
+ ],
2602
+ "outputs": [
2603
+ {
2604
+ "type": "core::bool"
2605
+ }
2606
+ ],
2607
+ "state_mutability": "view"
2608
+ },
2609
+ {
2610
+ "type": "function",
2611
+ "name": "get_collection_id",
2612
+ "inputs": [],
2613
+ "outputs": [
2614
+ {
2615
+ "type": "core::integer::u256"
2616
+ }
2617
+ ],
2618
+ "state_mutability": "view"
2619
+ },
2620
+ {
2621
+ "type": "function",
2622
+ "name": "get_registry",
2623
+ "inputs": [],
2624
+ "outputs": [
2625
+ {
2626
+ "type": "core::starknet::contract_address::ContractAddress"
2627
+ }
2628
+ ],
2629
+ "state_mutability": "view"
2630
+ },
2631
+ {
2632
+ "type": "function",
2633
+ "name": "base_uri",
2634
+ "inputs": [],
2635
+ "outputs": [
2636
+ {
2637
+ "type": "core::byte_array::ByteArray"
2638
+ }
2639
+ ],
2640
+ "state_mutability": "view"
2641
+ },
2642
+ {
2643
+ "type": "function",
2644
+ "name": "all_tokens_of_owner",
2645
+ "inputs": [
2646
+ {
2647
+ "name": "owner",
2648
+ "type": "core::starknet::contract_address::ContractAddress"
2649
+ }
2650
+ ],
2651
+ "outputs": [
2652
+ {
2653
+ "type": "core::array::Span::<core::integer::u256>"
2654
+ }
2655
+ ],
2656
+ "state_mutability": "view"
2657
+ },
2658
+ {
2659
+ "type": "function",
2660
+ "name": "token_exists",
2661
+ "inputs": [
2662
+ {
2663
+ "name": "token_id",
2664
+ "type": "core::integer::u256"
2665
+ }
2666
+ ],
2667
+ "outputs": [
2668
+ {
2669
+ "type": "core::bool"
2670
+ }
2671
+ ],
2672
+ "state_mutability": "view"
2673
+ },
2674
+ {
2675
+ "type": "function",
2676
+ "name": "get_full_token_data",
2677
+ "inputs": [
2678
+ {
2679
+ "name": "token_id",
2680
+ "type": "core::integer::u256"
2681
+ }
2682
+ ],
2683
+ "outputs": [
2684
+ {
2685
+ "type": "(core::starknet::contract_address::ContractAddress, core::byte_array::ByteArray, core::starknet::contract_address::ContractAddress, core::integer::u64)"
2686
+ }
2687
+ ],
2688
+ "state_mutability": "view"
2689
+ },
2690
+ {
2691
+ "type": "function",
2692
+ "name": "get_token_creator",
2693
+ "inputs": [
2694
+ {
2695
+ "name": "token_id",
2696
+ "type": "core::integer::u256"
2697
+ }
2698
+ ],
2699
+ "outputs": [
2700
+ {
2701
+ "type": "core::starknet::contract_address::ContractAddress"
2702
+ }
2703
+ ],
2704
+ "state_mutability": "view"
2705
+ },
2706
+ {
2707
+ "type": "function",
2708
+ "name": "get_token_registered_at",
2709
+ "inputs": [
2710
+ {
2711
+ "name": "token_id",
2712
+ "type": "core::integer::u256"
2713
+ }
2714
+ ],
2715
+ "outputs": [
2716
+ {
2717
+ "type": "core::integer::u64"
2718
+ }
2719
+ ],
2720
+ "state_mutability": "view"
2721
+ }
2722
+ ]
2723
+ },
2724
+ {
2725
+ "type": "impl",
2726
+ "name": "ERC721Impl",
2727
+ "interface_name": "openzeppelin_token::erc721::interface::IERC721"
2728
+ },
2729
+ {
2730
+ "type": "struct",
2731
+ "name": "core::array::Span::<core::felt252>",
2732
+ "members": [
2733
+ {
2734
+ "name": "snapshot",
2735
+ "type": "@core::array::Array::<core::felt252>"
2736
+ }
2737
+ ]
2738
+ },
2739
+ {
2740
+ "type": "interface",
2741
+ "name": "openzeppelin_token::erc721::interface::IERC721",
2742
+ "items": [
2743
+ {
2744
+ "type": "function",
2745
+ "name": "balance_of",
2746
+ "inputs": [
2747
+ {
2748
+ "name": "account",
2749
+ "type": "core::starknet::contract_address::ContractAddress"
2750
+ }
2751
+ ],
2752
+ "outputs": [
2753
+ {
2754
+ "type": "core::integer::u256"
2755
+ }
2756
+ ],
2757
+ "state_mutability": "view"
2758
+ },
2759
+ {
2760
+ "type": "function",
2761
+ "name": "owner_of",
2762
+ "inputs": [
2763
+ {
2764
+ "name": "token_id",
2765
+ "type": "core::integer::u256"
2766
+ }
2767
+ ],
2768
+ "outputs": [
2769
+ {
2770
+ "type": "core::starknet::contract_address::ContractAddress"
2771
+ }
2772
+ ],
2773
+ "state_mutability": "view"
2774
+ },
2775
+ {
2776
+ "type": "function",
2777
+ "name": "safe_transfer_from",
2778
+ "inputs": [
2779
+ {
2780
+ "name": "from",
2781
+ "type": "core::starknet::contract_address::ContractAddress"
2782
+ },
2783
+ {
2784
+ "name": "to",
2785
+ "type": "core::starknet::contract_address::ContractAddress"
2786
+ },
2787
+ {
2788
+ "name": "token_id",
2789
+ "type": "core::integer::u256"
2790
+ },
2791
+ {
2792
+ "name": "data",
2793
+ "type": "core::array::Span::<core::felt252>"
2794
+ }
2795
+ ],
2796
+ "outputs": [],
2797
+ "state_mutability": "external"
2798
+ },
2799
+ {
2800
+ "type": "function",
2801
+ "name": "transfer_from",
2802
+ "inputs": [
2803
+ {
2804
+ "name": "from",
2805
+ "type": "core::starknet::contract_address::ContractAddress"
2806
+ },
2807
+ {
2808
+ "name": "to",
2809
+ "type": "core::starknet::contract_address::ContractAddress"
2810
+ },
2811
+ {
2812
+ "name": "token_id",
2813
+ "type": "core::integer::u256"
2814
+ }
2815
+ ],
2816
+ "outputs": [],
2817
+ "state_mutability": "external"
2818
+ },
2819
+ {
2820
+ "type": "function",
2821
+ "name": "approve",
2822
+ "inputs": [
2823
+ {
2824
+ "name": "to",
2825
+ "type": "core::starknet::contract_address::ContractAddress"
2826
+ },
2827
+ {
2828
+ "name": "token_id",
2829
+ "type": "core::integer::u256"
2830
+ }
2831
+ ],
2832
+ "outputs": [],
2833
+ "state_mutability": "external"
2834
+ },
2835
+ {
2836
+ "type": "function",
2837
+ "name": "set_approval_for_all",
2838
+ "inputs": [
2839
+ {
2840
+ "name": "operator",
2841
+ "type": "core::starknet::contract_address::ContractAddress"
2842
+ },
2843
+ {
2844
+ "name": "approved",
2845
+ "type": "core::bool"
2846
+ }
2847
+ ],
2848
+ "outputs": [],
2849
+ "state_mutability": "external"
2850
+ },
2851
+ {
2852
+ "type": "function",
2853
+ "name": "get_approved",
2854
+ "inputs": [
2855
+ {
2856
+ "name": "token_id",
2857
+ "type": "core::integer::u256"
2858
+ }
2859
+ ],
2860
+ "outputs": [
2861
+ {
2862
+ "type": "core::starknet::contract_address::ContractAddress"
2863
+ }
2864
+ ],
2865
+ "state_mutability": "view"
2866
+ },
2867
+ {
2868
+ "type": "function",
2869
+ "name": "is_approved_for_all",
2870
+ "inputs": [
2871
+ {
2872
+ "name": "owner",
2873
+ "type": "core::starknet::contract_address::ContractAddress"
2874
+ },
2875
+ {
2876
+ "name": "operator",
2877
+ "type": "core::starknet::contract_address::ContractAddress"
2878
+ }
2879
+ ],
2880
+ "outputs": [
2881
+ {
2882
+ "type": "core::bool"
2883
+ }
2884
+ ],
2885
+ "state_mutability": "view"
2886
+ }
2887
+ ]
2888
+ },
2889
+ {
2890
+ "type": "impl",
2891
+ "name": "ERC721CamelOnly",
2892
+ "interface_name": "openzeppelin_token::erc721::interface::IERC721CamelOnly"
2893
+ },
2894
+ {
2895
+ "type": "interface",
2896
+ "name": "openzeppelin_token::erc721::interface::IERC721CamelOnly",
2897
+ "items": [
2898
+ {
2899
+ "type": "function",
2900
+ "name": "balanceOf",
2901
+ "inputs": [
2902
+ {
2903
+ "name": "account",
2904
+ "type": "core::starknet::contract_address::ContractAddress"
2905
+ }
2906
+ ],
2907
+ "outputs": [
2908
+ {
2909
+ "type": "core::integer::u256"
2910
+ }
2911
+ ],
2912
+ "state_mutability": "view"
2913
+ },
2914
+ {
2915
+ "type": "function",
2916
+ "name": "ownerOf",
2917
+ "inputs": [
2918
+ {
2919
+ "name": "tokenId",
2920
+ "type": "core::integer::u256"
2921
+ }
2922
+ ],
2923
+ "outputs": [
2924
+ {
2925
+ "type": "core::starknet::contract_address::ContractAddress"
2926
+ }
2927
+ ],
2928
+ "state_mutability": "view"
2929
+ },
2930
+ {
2931
+ "type": "function",
2932
+ "name": "safeTransferFrom",
2933
+ "inputs": [
2934
+ {
2935
+ "name": "from",
2936
+ "type": "core::starknet::contract_address::ContractAddress"
2937
+ },
2938
+ {
2939
+ "name": "to",
2940
+ "type": "core::starknet::contract_address::ContractAddress"
2941
+ },
2942
+ {
2943
+ "name": "tokenId",
2944
+ "type": "core::integer::u256"
2945
+ },
2946
+ {
2947
+ "name": "data",
2948
+ "type": "core::array::Span::<core::felt252>"
2949
+ }
2950
+ ],
2951
+ "outputs": [],
2952
+ "state_mutability": "external"
2953
+ },
2954
+ {
2955
+ "type": "function",
2956
+ "name": "transferFrom",
2957
+ "inputs": [
2958
+ {
2959
+ "name": "from",
2960
+ "type": "core::starknet::contract_address::ContractAddress"
2961
+ },
2962
+ {
2963
+ "name": "to",
2964
+ "type": "core::starknet::contract_address::ContractAddress"
2965
+ },
2966
+ {
2967
+ "name": "tokenId",
2968
+ "type": "core::integer::u256"
2969
+ }
2970
+ ],
2971
+ "outputs": [],
2972
+ "state_mutability": "external"
2973
+ },
2974
+ {
2975
+ "type": "function",
2976
+ "name": "setApprovalForAll",
2977
+ "inputs": [
2978
+ {
2979
+ "name": "operator",
2980
+ "type": "core::starknet::contract_address::ContractAddress"
2981
+ },
2982
+ {
2983
+ "name": "approved",
2984
+ "type": "core::bool"
2985
+ }
2986
+ ],
2987
+ "outputs": [],
2988
+ "state_mutability": "external"
2989
+ },
2990
+ {
2991
+ "type": "function",
2992
+ "name": "getApproved",
2993
+ "inputs": [
2994
+ {
2995
+ "name": "tokenId",
2996
+ "type": "core::integer::u256"
2997
+ }
2998
+ ],
2999
+ "outputs": [
3000
+ {
3001
+ "type": "core::starknet::contract_address::ContractAddress"
3002
+ }
3003
+ ],
3004
+ "state_mutability": "view"
3005
+ },
3006
+ {
3007
+ "type": "function",
3008
+ "name": "isApprovedForAll",
3009
+ "inputs": [
3010
+ {
3011
+ "name": "owner",
3012
+ "type": "core::starknet::contract_address::ContractAddress"
3013
+ },
3014
+ {
3015
+ "name": "operator",
3016
+ "type": "core::starknet::contract_address::ContractAddress"
3017
+ }
3018
+ ],
3019
+ "outputs": [
3020
+ {
3021
+ "type": "core::bool"
3022
+ }
3023
+ ],
3024
+ "state_mutability": "view"
3025
+ }
3026
+ ]
3027
+ },
3028
+ {
3029
+ "type": "impl",
3030
+ "name": "ERC721EnumerableImpl",
3031
+ "interface_name": "openzeppelin_token::erc721::extensions::erc721_enumerable::interface::IERC721Enumerable"
3032
+ },
3033
+ {
3034
+ "type": "interface",
3035
+ "name": "openzeppelin_token::erc721::extensions::erc721_enumerable::interface::IERC721Enumerable",
3036
+ "items": [
3037
+ {
3038
+ "type": "function",
3039
+ "name": "total_supply",
3040
+ "inputs": [],
3041
+ "outputs": [
3042
+ {
3043
+ "type": "core::integer::u256"
3044
+ }
3045
+ ],
3046
+ "state_mutability": "view"
3047
+ },
3048
+ {
3049
+ "type": "function",
3050
+ "name": "token_by_index",
3051
+ "inputs": [
3052
+ {
3053
+ "name": "index",
3054
+ "type": "core::integer::u256"
3055
+ }
3056
+ ],
3057
+ "outputs": [
3058
+ {
3059
+ "type": "core::integer::u256"
3060
+ }
3061
+ ],
3062
+ "state_mutability": "view"
3063
+ },
3064
+ {
3065
+ "type": "function",
3066
+ "name": "token_of_owner_by_index",
3067
+ "inputs": [
3068
+ {
3069
+ "name": "owner",
3070
+ "type": "core::starknet::contract_address::ContractAddress"
3071
+ },
3072
+ {
3073
+ "name": "index",
3074
+ "type": "core::integer::u256"
3075
+ }
3076
+ ],
3077
+ "outputs": [
3078
+ {
3079
+ "type": "core::integer::u256"
3080
+ }
3081
+ ],
3082
+ "state_mutability": "view"
3083
+ }
3084
+ ]
3085
+ },
3086
+ {
3087
+ "type": "impl",
3088
+ "name": "SRC5Impl",
3089
+ "interface_name": "openzeppelin_introspection::interface::ISRC5"
3090
+ },
3091
+ {
3092
+ "type": "interface",
3093
+ "name": "openzeppelin_introspection::interface::ISRC5",
3094
+ "items": [
3095
+ {
3096
+ "type": "function",
3097
+ "name": "supports_interface",
3098
+ "inputs": [
3099
+ {
3100
+ "name": "interface_id",
3101
+ "type": "core::felt252"
3102
+ }
3103
+ ],
3104
+ "outputs": [
3105
+ {
3106
+ "type": "core::bool"
3107
+ }
3108
+ ],
3109
+ "state_mutability": "view"
3110
+ }
3111
+ ]
3112
+ },
3113
+ {
3114
+ "type": "constructor",
3115
+ "name": "constructor",
3116
+ "inputs": [
3117
+ {
3118
+ "name": "name",
3119
+ "type": "core::byte_array::ByteArray"
3120
+ },
3121
+ {
3122
+ "name": "symbol",
3123
+ "type": "core::byte_array::ByteArray"
3124
+ },
3125
+ {
3126
+ "name": "base_uri",
3127
+ "type": "core::byte_array::ByteArray"
3128
+ },
3129
+ {
3130
+ "name": "collection_id",
3131
+ "type": "core::integer::u256"
3132
+ },
3133
+ {
3134
+ "name": "registry",
3135
+ "type": "core::starknet::contract_address::ContractAddress"
3136
+ }
3137
+ ]
3138
+ },
3139
+ {
3140
+ "type": "event",
3141
+ "name": "openzeppelin_token::erc721::erc721::ERC721Component::Transfer",
3142
+ "kind": "struct",
3143
+ "members": [
3144
+ {
3145
+ "name": "from",
3146
+ "type": "core::starknet::contract_address::ContractAddress",
3147
+ "kind": "key"
3148
+ },
3149
+ {
3150
+ "name": "to",
3151
+ "type": "core::starknet::contract_address::ContractAddress",
3152
+ "kind": "key"
3153
+ },
3154
+ {
3155
+ "name": "token_id",
3156
+ "type": "core::integer::u256",
3157
+ "kind": "key"
3158
+ }
3159
+ ]
3160
+ },
3161
+ {
3162
+ "type": "event",
3163
+ "name": "openzeppelin_token::erc721::erc721::ERC721Component::Approval",
3164
+ "kind": "struct",
3165
+ "members": [
3166
+ {
3167
+ "name": "owner",
3168
+ "type": "core::starknet::contract_address::ContractAddress",
3169
+ "kind": "key"
3170
+ },
3171
+ {
3172
+ "name": "approved",
3173
+ "type": "core::starknet::contract_address::ContractAddress",
3174
+ "kind": "key"
3175
+ },
3176
+ {
3177
+ "name": "token_id",
3178
+ "type": "core::integer::u256",
3179
+ "kind": "key"
3180
+ }
3181
+ ]
3182
+ },
3183
+ {
3184
+ "type": "event",
3185
+ "name": "openzeppelin_token::erc721::erc721::ERC721Component::ApprovalForAll",
3186
+ "kind": "struct",
3187
+ "members": [
3188
+ {
3189
+ "name": "owner",
3190
+ "type": "core::starknet::contract_address::ContractAddress",
3191
+ "kind": "key"
3192
+ },
3193
+ {
3194
+ "name": "operator",
3195
+ "type": "core::starknet::contract_address::ContractAddress",
3196
+ "kind": "key"
3197
+ },
3198
+ {
3199
+ "name": "approved",
3200
+ "type": "core::bool",
3201
+ "kind": "data"
3202
+ }
3203
+ ]
3204
+ },
3205
+ {
3206
+ "type": "event",
3207
+ "name": "openzeppelin_token::erc721::erc721::ERC721Component::Event",
3208
+ "kind": "enum",
3209
+ "variants": [
3210
+ {
3211
+ "name": "Transfer",
3212
+ "type": "openzeppelin_token::erc721::erc721::ERC721Component::Transfer",
3213
+ "kind": "nested"
3214
+ },
3215
+ {
3216
+ "name": "Approval",
3217
+ "type": "openzeppelin_token::erc721::erc721::ERC721Component::Approval",
3218
+ "kind": "nested"
3219
+ },
3220
+ {
3221
+ "name": "ApprovalForAll",
3222
+ "type": "openzeppelin_token::erc721::erc721::ERC721Component::ApprovalForAll",
3223
+ "kind": "nested"
3224
+ }
3225
+ ]
3226
+ },
3227
+ {
3228
+ "type": "event",
3229
+ "name": "openzeppelin_introspection::src5::SRC5Component::Event",
3230
+ "kind": "enum",
3231
+ "variants": []
3232
+ },
3233
+ {
3234
+ "type": "event",
3235
+ "name": "openzeppelin_token::erc721::extensions::erc721_enumerable::erc721_enumerable::ERC721EnumerableComponent::Event",
3236
+ "kind": "enum",
3237
+ "variants": []
3238
+ },
3239
+ {
3240
+ "type": "event",
3241
+ "name": "ip_collection_erc_721::IPNft::IPNft::Event",
3242
+ "kind": "enum",
3243
+ "variants": [
3244
+ {
3245
+ "name": "ERC721Event",
3246
+ "type": "openzeppelin_token::erc721::erc721::ERC721Component::Event",
3247
+ "kind": "flat"
3248
+ },
3249
+ {
3250
+ "name": "SRC5Event",
3251
+ "type": "openzeppelin_introspection::src5::SRC5Component::Event",
3252
+ "kind": "flat"
3253
+ },
3254
+ {
3255
+ "name": "ERC721EnumerableEvent",
3256
+ "type": "openzeppelin_token::erc721::extensions::erc721_enumerable::erc721_enumerable::ERC721EnumerableComponent::Event",
3257
+ "kind": "flat"
3258
+ }
3259
+ ]
3260
+ }
3261
+ ];
1657
3262
 
1658
3263
  // src/utils/bigint.ts
1659
3264
  function stringifyBigInts(obj) {
@@ -2663,6 +4268,21 @@ var ApiClient = class {
2663
4268
  del(path) {
2664
4269
  return this.request(path, { method: "DELETE" });
2665
4270
  }
4271
+ async checkResponse(res, options) {
4272
+ if (options?.allow404 && res.status === 404) return null;
4273
+ if (options?.allow403 && res.status === 403) return null;
4274
+ if (!res.ok) {
4275
+ const text = await res.text().catch(() => res.statusText);
4276
+ let message = text;
4277
+ try {
4278
+ const body = JSON.parse(text);
4279
+ if (body.error) message = body.error;
4280
+ } catch {
4281
+ }
4282
+ throw new MedialaneApiError(res.status, message);
4283
+ }
4284
+ return res.json();
4285
+ }
2666
4286
  // ─── Orders ────────────────────────────────────────────────────────────────
2667
4287
  getOrders(query = {}) {
2668
4288
  const params = new URLSearchParams();
@@ -2871,7 +4491,7 @@ var ApiClient = class {
2871
4491
  },
2872
4492
  body: JSON.stringify({ contractAddress, walletAddress })
2873
4493
  });
2874
- return res.json();
4494
+ return this.checkResponse(res);
2875
4495
  }
2876
4496
  /**
2877
4497
  * Path 3: Manual off-chain claim request (email-based).
@@ -2886,8 +4506,7 @@ var ApiClient = class {
2886
4506
  async getCollectionProfile(contractAddress) {
2887
4507
  const url = `${this.baseUrl.replace(/\/$/, "")}/v1/collections/${normalizeAddress(contractAddress)}/profile`;
2888
4508
  const res = await fetch(url, { headers: this.baseHeaders });
2889
- if (res.status === 404) return null;
2890
- return res.json();
4509
+ return this.checkResponse(res, { allow404: true });
2891
4510
  }
2892
4511
  /**
2893
4512
  * Update collection profile. Requires Clerk JWT for ownership check.
@@ -2903,15 +4522,14 @@ var ApiClient = class {
2903
4522
  },
2904
4523
  body: JSON.stringify(data)
2905
4524
  });
2906
- return res.json();
4525
+ return this.checkResponse(res);
2907
4526
  }
2908
4527
  async getGatedContent(contractAddress, clerkToken) {
2909
4528
  const url = `${this.baseUrl.replace(/\/$/, "")}/v1/collections/${normalizeAddress(contractAddress)}/gated-content`;
2910
4529
  const res = await fetch(url, {
2911
4530
  headers: { ...this.baseHeaders, "Authorization": `Bearer ${clerkToken}` }
2912
4531
  });
2913
- if (res.status === 403 || res.status === 404) return null;
2914
- return res.json();
4532
+ return this.checkResponse(res, { allow404: true, allow403: true });
2915
4533
  }
2916
4534
  // ─── Creator Profiles ───────────────────────────────────────────────────────
2917
4535
  /** List all creators with an approved username. */
@@ -2922,20 +4540,18 @@ var ApiClient = class {
2922
4540
  if (opts.limit) params.set("limit", String(opts.limit));
2923
4541
  const url = `${this.baseUrl.replace(/\/$/, "")}/v1/creators?${params}`;
2924
4542
  const res = await fetch(url, { headers: this.baseHeaders });
2925
- return res.json();
4543
+ return this.checkResponse(res);
2926
4544
  }
2927
4545
  async getCreatorProfile(walletAddress) {
2928
4546
  const url = `${this.baseUrl.replace(/\/$/, "")}/v1/creators/${normalizeAddress(walletAddress)}/profile`;
2929
4547
  const res = await fetch(url, { headers: this.baseHeaders });
2930
- if (res.status === 404) return null;
2931
- return res.json();
4548
+ return this.checkResponse(res, { allow404: true });
2932
4549
  }
2933
4550
  /** Resolve a username slug to a creator profile (public). */
2934
4551
  async getCreatorByUsername(username) {
2935
4552
  const url = `${this.baseUrl.replace(/\/$/, "")}/v1/creators/by-username/${encodeURIComponent(username.toLowerCase().trim())}`;
2936
4553
  const res = await fetch(url, { headers: this.baseHeaders });
2937
- if (res.status === 404) return null;
2938
- return res.json();
4554
+ return this.checkResponse(res, { allow404: true });
2939
4555
  }
2940
4556
  /**
2941
4557
  * Update creator profile. Requires Clerk JWT; wallet must match authenticated user.
@@ -2951,7 +4567,42 @@ var ApiClient = class {
2951
4567
  },
2952
4568
  body: JSON.stringify(data)
2953
4569
  });
2954
- return res.json();
4570
+ return this.checkResponse(res);
4571
+ }
4572
+ // ─── Collection Slug Claims ───────────────────────────────────────────────────
4573
+ /** Check if a collection slug is available (public, no auth). */
4574
+ async checkCollectionSlugAvailability(slug) {
4575
+ const url = `${this.baseUrl.replace(/\/$/, "")}/v1/collection-slug-claims/check/${encodeURIComponent(slug.toLowerCase().trim())}`;
4576
+ const res = await fetch(url, { headers: this.baseHeaders });
4577
+ return this.checkResponse(res);
4578
+ }
4579
+ /** Submit a slug claim for a collection. Requires Clerk JWT — caller must be the collection owner. */
4580
+ async submitCollectionSlugClaim(contractAddress, slug, clerkToken, notifyEmail) {
4581
+ const url = `${this.baseUrl.replace(/\/$/, "")}/v1/collection-slug-claims`;
4582
+ const res = await fetch(url, {
4583
+ method: "POST",
4584
+ headers: {
4585
+ "x-api-key": this.baseHeaders["x-api-key"] ?? "",
4586
+ "Content-Type": "application/json",
4587
+ Authorization: `Bearer ${clerkToken}`
4588
+ },
4589
+ body: JSON.stringify({ contractAddress, slug, notifyEmail })
4590
+ });
4591
+ return this.checkResponse(res);
4592
+ }
4593
+ /** Returns all slug claims submitted by the authenticated wallet. Requires Clerk JWT. */
4594
+ async getMyCollectionSlugClaims(clerkToken) {
4595
+ const url = `${this.baseUrl.replace(/\/$/, "")}/v1/collection-slug-claims/me`;
4596
+ const res = await fetch(url, {
4597
+ headers: { ...this.baseHeaders, Authorization: `Bearer ${clerkToken}` }
4598
+ });
4599
+ return this.checkResponse(res);
4600
+ }
4601
+ /** Resolve a collection slug to a full collection. Returns null if not found. */
4602
+ async getCollectionBySlug(slug) {
4603
+ const url = `${this.baseUrl.replace(/\/$/, "")}/v1/collections/by-slug/${encodeURIComponent(slug.toLowerCase().trim())}`;
4604
+ const res = await fetch(url, { headers: this.baseHeaders });
4605
+ return this.checkResponse(res, { allow404: true });
2955
4606
  }
2956
4607
  // ─── User Wallet ─────────────────────────────────────────────────────────────
2957
4608
  /**
@@ -2968,7 +4619,7 @@ var ApiClient = class {
2968
4619
  "Authorization": `Bearer ${clerkToken}`
2969
4620
  }
2970
4621
  });
2971
- return res.json();
4622
+ return this.checkResponse(res);
2972
4623
  }
2973
4624
  /**
2974
4625
  * Get the authenticated user's stored wallet address from the backend DB.
@@ -2980,8 +4631,7 @@ var ApiClient = class {
2980
4631
  const res = await fetch(url, {
2981
4632
  headers: { "Authorization": `Bearer ${clerkToken}` }
2982
4633
  });
2983
- if (res.status === 404) return null;
2984
- return res.json();
4634
+ return this.checkResponse(res, { allow404: true });
2985
4635
  }
2986
4636
  // ─── Remix Licensing ─────────────────────────────────────────────────────────
2987
4637
  /**
@@ -3039,7 +4689,7 @@ var ApiClient = class {
3039
4689
  const res = await fetch(url, {
3040
4690
  headers: { ...this.baseHeaders, "Authorization": `Bearer ${clerkToken}` }
3041
4691
  });
3042
- return res.json();
4692
+ return this.checkResponse(res);
3043
4693
  }
3044
4694
  /**
3045
4695
  * Get a single remix offer. Clerk JWT optional (price/currency hidden for non-participants).
@@ -3049,7 +4699,7 @@ var ApiClient = class {
3049
4699
  const headers = { ...this.baseHeaders };
3050
4700
  if (clerkToken) headers["Authorization"] = `Bearer ${clerkToken}`;
3051
4701
  const res = await fetch(url, { headers });
3052
- return res.json();
4702
+ return this.checkResponse(res);
3053
4703
  }
3054
4704
  /**
3055
4705
  * Creator approves a remix offer (authorises the requester to mint). Requires Clerk JWT.
@@ -3421,7 +5071,9 @@ exports.ERC1155_FACTORY_CONTRACT_MAINNET = ERC1155_FACTORY_CONTRACT_MAINNET;
3421
5071
  exports.INDEXER_START_BLOCK_MAINNET = INDEXER_START_BLOCK_MAINNET;
3422
5072
  exports.IPCollection1155ABI = IPCollection1155ABI;
3423
5073
  exports.IPCollection1155FactoryABI = IPCollection1155FactoryABI;
5074
+ exports.IPCollectionABI = IPCollectionABI;
3424
5075
  exports.IPMarketplaceABI = IPMarketplaceABI;
5076
+ exports.IPNftABI = IPNftABI;
3425
5077
  exports.MARKETPLACE_1155_CLASS_HASH_MAINNET = MARKETPLACE_1155_CLASS_HASH_MAINNET;
3426
5078
  exports.MARKETPLACE_1155_CONTRACT_MAINNET = MARKETPLACE_1155_CONTRACT_MAINNET;
3427
5079
  exports.MARKETPLACE_1155_START_BLOCK_MAINNET = MARKETPLACE_1155_START_BLOCK_MAINNET;