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