git.delta.rocks / unique-network / refs/commits / 78a9ca040ab8

difftreelog

source

tests/src/eth/api/UniqueNFT.sol29.2 KiBsourcehistory
1// SPDX-License-Identifier: OTHER2// This code is automatically generated34pragma solidity >=0.8.0 <0.9.0;56/// @dev common stubs holder7interface Dummy {89}1011interface ERC165 is Dummy {12	function supportsInterface(bytes4 interfaceID) external view returns (bool);13}1415/// @title A contract that allows to set and delete token properties and change token property permissions.16/// @dev the ERC-165 identifier for this interface is 0x91a97a6817interface TokenProperties is Dummy, ERC165 {18	/// @notice Set permissions for token property.19	/// @dev Throws error if `msg.sender` is not admin or owner of the collection.20	/// @param key Property key.21	/// @param isMutable Permission to mutate property.22	/// @param collectionAdmin Permission to mutate property by collection admin if property is mutable.23	/// @param tokenOwner Permission to mutate property by token owner if property is mutable.24	/// @dev EVM selector for this function is: 0x222d97fa,25	///  or in textual repr: setTokenPropertyPermission(string,bool,bool,bool)26	function setTokenPropertyPermission(27		string memory key,28		bool isMutable,29		bool collectionAdmin,30		bool tokenOwner31	) external;3233	// /// @notice Set token property value.34	// /// @dev Throws error if `msg.sender` has no permission to edit the property.35	// /// @param tokenId ID of the token.36	// /// @param key Property key.37	// /// @param value Property value.38	// /// @dev EVM selector for this function is: 0x1752d67b,39	// ///  or in textual repr: setProperty(uint256,string,bytes)40	// function setProperty(uint256 tokenId, string memory key, bytes memory value) external;4142	/// @notice Set token properties value.43	/// @dev Throws error if `msg.sender` has no permission to edit the property.44	/// @param tokenId ID of the token.45	/// @param properties settable properties46	/// @dev EVM selector for this function is: 0x14ed3a6e,47	///  or in textual repr: setProperties(uint256,(string,bytes)[])48	function setProperties(uint256 tokenId, Property[] memory properties) external;4950	// /// @notice Delete token property value.51	// /// @dev Throws error if `msg.sender` has no permission to edit the property.52	// /// @param tokenId ID of the token.53	// /// @param key Property key.54	// /// @dev EVM selector for this function is: 0x066111d1,55	// ///  or in textual repr: deleteProperty(uint256,string)56	// function deleteProperty(uint256 tokenId, string memory key) external;5758	/// @notice Delete token properties value.59	/// @dev Throws error if `msg.sender` has no permission to edit the property.60	/// @param tokenId ID of the token.61	/// @param keys Properties key.62	/// @dev EVM selector for this function is: 0xc472d371,63	///  or in textual repr: deleteProperties(uint256,string[])64	function deleteProperties(uint256 tokenId, string[] memory keys) external;6566	/// @notice Get token property value.67	/// @dev Throws error if key not found68	/// @param tokenId ID of the token.69	/// @param key Property key.70	/// @return Property value bytes71	/// @dev EVM selector for this function is: 0x7228c327,72	///  or in textual repr: property(uint256,string)73	function property(uint256 tokenId, string memory key) external view returns (bytes memory);74}7576/// @dev Property struct77struct Property {78	string key;79	bytes value;80}8182/// @title A contract that allows you to work with collections.83/// @dev the ERC-165 identifier for this interface is 0x324a7f5b84interface Collection is Dummy, ERC165 {85	// /// Set collection property.86	// ///87	// /// @param key Property key.88	// /// @param value Propery value.89	// /// @dev EVM selector for this function is: 0x2f073f66,90	// ///  or in textual repr: setCollectionProperty(string,bytes)91	// function setCollectionProperty(string memory key, bytes memory value) external;9293	/// Set collection properties.94	///95	/// @param properties Vector of properties key/value pair.96	/// @dev EVM selector for this function is: 0x50b26b2a,97	///  or in textual repr: setCollectionProperties((string,bytes)[])98	function setCollectionProperties(Property[] memory properties) external;99100	// /// Delete collection property.101	// ///102	// /// @param key Property key.103	// /// @dev EVM selector for this function is: 0x7b7debce,104	// ///  or in textual repr: deleteCollectionProperty(string)105	// function deleteCollectionProperty(string memory key) external;106107	/// Delete collection properties.108	///109	/// @param keys Properties keys.110	/// @dev EVM selector for this function is: 0xee206ee3,111	///  or in textual repr: deleteCollectionProperties(string[])112	function deleteCollectionProperties(string[] memory keys) external;113114	/// Get collection property.115	///116	/// @dev Throws error if key not found.117	///118	/// @param key Property key.119	/// @return bytes The property corresponding to the key.120	/// @dev EVM selector for this function is: 0xcf24fd6d,121	///  or in textual repr: collectionProperty(string)122	function collectionProperty(string memory key) external view returns (bytes memory);123124	/// Get collection properties.125	///126	/// @param keys Properties keys. Empty keys for all propertyes.127	/// @return Vector of properties key/value pairs.128	/// @dev EVM selector for this function is: 0x285fb8e6,129	///  or in textual repr: collectionProperties(string[])130	function collectionProperties(string[] memory keys) external view returns (Tuple23[] memory);131132	// /// Set the sponsor of the collection.133	// ///134	// /// @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.135	// ///136	// /// @param sponsor Address of the sponsor from whose account funds will be debited for operations with the contract.137	// /// @dev EVM selector for this function is: 0x7623402e,138	// ///  or in textual repr: setCollectionSponsor(address)139	// function setCollectionSponsor(address sponsor) external;140141	/// Set the sponsor of the collection.142	///143	/// @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.144	///145	/// @param sponsor Cross account address of the sponsor from whose account funds will be debited for operations with the contract.146	/// @dev EVM selector for this function is: 0x84a1d5a8,147	///  or in textual repr: setCollectionSponsorCross((address,uint256))148	function setCollectionSponsorCross(EthCrossAccount memory sponsor) external;149150	/// Whether there is a pending sponsor.151	/// @dev EVM selector for this function is: 0x058ac185,152	///  or in textual repr: hasCollectionPendingSponsor()153	function hasCollectionPendingSponsor() external view returns (bool);154155	/// Collection sponsorship confirmation.156	///157	/// @dev After setting the sponsor for the collection, it must be confirmed with this function.158	/// @dev EVM selector for this function is: 0x3c50e97a,159	///  or in textual repr: confirmCollectionSponsorship()160	function confirmCollectionSponsorship() external;161162	/// Remove collection sponsor.163	/// @dev EVM selector for this function is: 0x6e0326a3,164	///  or in textual repr: removeCollectionSponsor()165	function removeCollectionSponsor() external;166167	/// Get current sponsor.168	///169	/// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.170	/// @dev EVM selector for this function is: 0x6ec0a9f1,171	///  or in textual repr: collectionSponsor()172	function collectionSponsor() external view returns (Tuple26 memory);173174	/// Set limits for the collection.175	/// @dev Throws error if limit not found.176	/// @param limit Name of the limit. Valid names:177	/// 	"accountTokenOwnershipLimit",178	/// 	"sponsoredDataSize",179	/// 	"sponsoredDataRateLimit",180	/// 	"tokenLimit",181	/// 	"sponsorTransferTimeout",182	/// 	"sponsorApproveTimeout"183	/// @param value Value of the limit.184	/// @dev EVM selector for this function is: 0x6a3841db,185	///  or in textual repr: setCollectionLimit(string,uint32)186	function setCollectionLimit(string memory limit, uint32 value) external;187188	/// Set limits for the collection.189	/// @dev Throws error if limit not found.190	/// @param limit Name of the limit. Valid names:191	/// 	"ownerCanTransfer",192	/// 	"ownerCanDestroy",193	/// 	"transfersEnabled"194	/// @param value Value of the limit.195	/// @dev EVM selector for this function is: 0x993b7fba,196	///  or in textual repr: setCollectionLimit(string,bool)197	function setCollectionLimit(string memory limit, bool value) external;198199	/// Get contract address.200	/// @dev EVM selector for this function is: 0xf6b4dfb4,201	///  or in textual repr: contractAddress()202	function contractAddress() external view returns (address);203204	/// Add collection admin.205	/// @param newAdmin Cross account administrator address.206	/// @dev EVM selector for this function is: 0x859aa7d6,207	///  or in textual repr: addCollectionAdminCross((address,uint256))208	function addCollectionAdminCross(EthCrossAccount memory newAdmin) external;209210	/// Remove collection admin.211	/// @param admin Cross account administrator address.212	/// @dev EVM selector for this function is: 0x6c0cd173,213	///  or in textual repr: removeCollectionAdminCross((address,uint256))214	function removeCollectionAdminCross(EthCrossAccount memory admin) external;215216	// /// Add collection admin.217	// /// @param newAdmin Address of the added administrator.218	// /// @dev EVM selector for this function is: 0x92e462c7,219	// ///  or in textual repr: addCollectionAdmin(address)220	// function addCollectionAdmin(address newAdmin) external;221222	// /// Remove collection admin.223	// ///224	// /// @param admin Address of the removed administrator.225	// /// @dev EVM selector for this function is: 0xfafd7b42,226	// ///  or in textual repr: removeCollectionAdmin(address)227	// function removeCollectionAdmin(address admin) external;228229	/// Toggle accessibility of collection nesting.230	///231	/// @param enable If "true" degenerates to nesting: 'Owner' else to nesting: 'Disabled'232	/// @dev EVM selector for this function is: 0x112d4586,233	///  or in textual repr: setCollectionNesting(bool)234	function setCollectionNesting(bool enable) external;235236	/// Toggle accessibility of collection nesting.237	///238	/// @param enable If "true" degenerates to nesting: {OwnerRestricted: [1, 2, 3]} else to nesting: 'Disabled'239	/// @param collections Addresses of collections that will be available for nesting.240	/// @dev EVM selector for this function is: 0x64872396,241	///  or in textual repr: setCollectionNesting(bool,address[])242	function setCollectionNesting(bool enable, address[] memory collections) external;243244	/// Set the collection access method.245	/// @param mode Access mode246	/// 	0 for Normal247	/// 	1 for AllowList248	/// @dev EVM selector for this function is: 0x41835d4c,249	///  or in textual repr: setCollectionAccess(uint8)250	function setCollectionAccess(uint8 mode) external;251252	/// Checks that user allowed to operate with collection.253	///254	/// @param user User address to check.255	/// @dev EVM selector for this function is: 0xd63a8e11,256	///  or in textual repr: allowed(address)257	function allowed(address user) external view returns (bool);258259	// /// Add the user to the allowed list.260	// ///261	// /// @param user Address of a trusted user.262	// /// @dev EVM selector for this function is: 0x67844fe6,263	// ///  or in textual repr: addToCollectionAllowList(address)264	// function addToCollectionAllowList(address user) external;265266	/// Add user to allowed list.267	///268	/// @param user User cross account address.269	/// @dev EVM selector for this function is: 0xa0184a3a,270	///  or in textual repr: addToCollectionAllowListCross((address,uint256))271	function addToCollectionAllowListCross(EthCrossAccount memory user) external;272273	// /// Remove the user from the allowed list.274	// ///275	// /// @param user Address of a removed user.276	// /// @dev EVM selector for this function is: 0x85c51acb,277	// ///  or in textual repr: removeFromCollectionAllowList(address)278	// function removeFromCollectionAllowList(address user) external;279280	/// Remove user from allowed list.281	///282	/// @param user User cross account address.283	/// @dev EVM selector for this function is: 0x09ba452a,284	///  or in textual repr: removeFromCollectionAllowListCross((address,uint256))285	function removeFromCollectionAllowListCross(EthCrossAccount memory user) external;286287	/// Switch permission for minting.288	///289	/// @param mode Enable if "true".290	/// @dev EVM selector for this function is: 0x00018e84,291	///  or in textual repr: setCollectionMintMode(bool)292	function setCollectionMintMode(bool mode) external;293294	// /// Check that account is the owner or admin of the collection295	// ///296	// /// @param user account to verify297	// /// @return "true" if account is the owner or admin298	// /// @dev EVM selector for this function is: 0x9811b0c7,299	// ///  or in textual repr: isOwnerOrAdmin(address)300	// function isOwnerOrAdmin(address user) external view returns (bool);301302	/// Check that account is the owner or admin of the collection303	///304	/// @param user User cross account to verify305	/// @return "true" if account is the owner or admin306	/// @dev EVM selector for this function is: 0x3e75a905,307	///  or in textual repr: isOwnerOrAdminCross((address,uint256))308	function isOwnerOrAdminCross(EthCrossAccount memory user) external view returns (bool);309310	/// Returns collection type311	///312	/// @return `Fungible` or `NFT` or `ReFungible`313	/// @dev EVM selector for this function is: 0xd34b55b8,314	///  or in textual repr: uniqueCollectionType()315	function uniqueCollectionType() external view returns (string memory);316317	/// Get collection owner.318	///319	/// @return Tuble with sponsor address and his substrate mirror.320	/// If address is canonical then substrate mirror is zero and vice versa.321	/// @dev EVM selector for this function is: 0xdf727d3b,322	///  or in textual repr: collectionOwner()323	function collectionOwner() external view returns (EthCrossAccount memory);324325	// /// Changes collection owner to another account326	// ///327	// /// @dev Owner can be changed only by current owner328	// /// @param newOwner new owner account329	// /// @dev EVM selector for this function is: 0x4f53e226,330	// ///  or in textual repr: changeCollectionOwner(address)331	// function changeCollectionOwner(address newOwner) external;332333	/// Get collection administrators334	///335	/// @return Vector of tuples with admins address and his substrate mirror.336	/// If address is canonical then substrate mirror is zero and vice versa.337	/// @dev EVM selector for this function is: 0x5813216b,338	///  or in textual repr: collectionAdmins()339	function collectionAdmins() external view returns (EthCrossAccount[] memory);340341	/// Changes collection owner to another account342	///343	/// @dev Owner can be changed only by current owner344	/// @param newOwner new owner cross account345	/// @dev EVM selector for this function is: 0x6496c497,346	///  or in textual repr: changeCollectionOwnerCross((address,uint256))347	function changeCollectionOwnerCross(EthCrossAccount memory newOwner) external;348}349350/// @dev Cross account struct351struct EthCrossAccount {352	address eth;353	uint256 sub;354}355356/// @dev anonymous struct357struct Tuple26 {358	address field_0;359	uint256 field_1;360}361362/// @dev anonymous struct363struct Tuple23 {364	string field_0;365	bytes field_1;366}367368/// @title ERC-721 Non-Fungible Token Standard, optional metadata extension369/// @dev See https://eips.ethereum.org/EIPS/eip-721370/// @dev the ERC-165 identifier for this interface is 0x5b5e139f371interface ERC721Metadata is Dummy, ERC165 {372	// /// @notice A descriptive name for a collection of NFTs in this contract373	// /// @dev real implementation of this function lies in `ERC721UniqueExtensions`374	// /// @dev EVM selector for this function is: 0x06fdde03,375	// ///  or in textual repr: name()376	// function name() external view returns (string memory);377378	// /// @notice An abbreviated name for NFTs in this contract379	// /// @dev real implementation of this function lies in `ERC721UniqueExtensions`380	// /// @dev EVM selector for this function is: 0x95d89b41,381	// ///  or in textual repr: symbol()382	// function symbol() external view returns (string memory);383384	/// @notice A distinct Uniform Resource Identifier (URI) for a given asset.385	///386	/// @dev If the token has a `url` property and it is not empty, it is returned.387	///  Else If the collection does not have a property with key `schemaName` or its value is not equal to `ERC721Metadata`, it return an error `tokenURI not set`.388	///  If the collection property `baseURI` is empty or absent, return "" (empty string)389	///  otherwise, if token property `suffix` present and is non-empty, return concatenation of baseURI and suffix390	///  otherwise, return concatenation of `baseURI` and stringified token id (decimal stringifying, without paddings).391	///392	/// @return token's const_metadata393	/// @dev EVM selector for this function is: 0xc87b56dd,394	///  or in textual repr: tokenURI(uint256)395	function tokenURI(uint256 tokenId) external view returns (string memory);396}397398/// @title ERC721 Token that can be irreversibly burned (destroyed).399/// @dev the ERC-165 identifier for this interface is 0x42966c68400interface ERC721Burnable is Dummy, ERC165 {401	/// @notice Burns a specific ERC721 token.402	/// @dev Throws unless `msg.sender` is the current NFT owner, or an authorized403	///  operator of the current owner.404	/// @param tokenId The NFT to approve405	/// @dev EVM selector for this function is: 0x42966c68,406	///  or in textual repr: burn(uint256)407	function burn(uint256 tokenId) external;408}409410/// @dev inlined interface411interface ERC721UniqueMintableEvents {412	event MintingFinished();413}414415/// @title ERC721 minting logic.416/// @dev the ERC-165 identifier for this interface is 0x476ff149417interface ERC721UniqueMintable is Dummy, ERC165, ERC721UniqueMintableEvents {418	/// @dev EVM selector for this function is: 0x05d2035b,419	///  or in textual repr: mintingFinished()420	function mintingFinished() external view returns (bool);421422	/// @notice Function to mint token.423	/// @param to The new owner424	/// @return uint256 The id of the newly minted token425	/// @dev EVM selector for this function is: 0x6a627842,426	///  or in textual repr: mint(address)427	function mint(address to) external returns (uint256);428429	// /// @notice Function to mint token.430	// /// @dev `tokenId` should be obtained with `nextTokenId` method,431	// ///  unlike standard, you can't specify it manually432	// /// @param to The new owner433	// /// @param tokenId ID of the minted NFT434	// /// @dev EVM selector for this function is: 0x40c10f19,435	// ///  or in textual repr: mint(address,uint256)436	// function mint(address to, uint256 tokenId) external returns (bool);437438	/// @notice Function to mint token with the given tokenUri.439	/// @param to The new owner440	/// @param tokenUri Token URI that would be stored in the NFT properties441	/// @return uint256 The id of the newly minted token442	/// @dev EVM selector for this function is: 0x45c17782,443	///  or in textual repr: mintWithTokenURI(address,string)444	function mintWithTokenURI(address to, string memory tokenUri) external returns (uint256);445446	// /// @notice Function to mint token with the given tokenUri.447	// /// @dev `tokenId` should be obtained with `nextTokenId` method,448	// ///  unlike standard, you can't specify it manually449	// /// @param to The new owner450	// /// @param tokenId ID of the minted NFT451	// /// @param tokenUri Token URI that would be stored in the NFT properties452	// /// @dev EVM selector for this function is: 0x50bb4e7f,453	// ///  or in textual repr: mintWithTokenURI(address,uint256,string)454	// function mintWithTokenURI(address to, uint256 tokenId, string memory tokenUri) external returns (bool);455456	/// @dev Not implemented457	/// @dev EVM selector for this function is: 0x7d64bcb4,458	///  or in textual repr: finishMinting()459	function finishMinting() external returns (bool);460}461462/// @title Unique extensions for ERC721.463/// @dev the ERC-165 identifier for this interface is 0x0e9fc611464interface ERC721UniqueExtensions is Dummy, ERC165 {465	/// @notice A descriptive name for a collection of NFTs in this contract466	/// @dev EVM selector for this function is: 0x06fdde03,467	///  or in textual repr: name()468	function name() external view returns (string memory);469470	/// @notice An abbreviated name for NFTs in this contract471	/// @dev EVM selector for this function is: 0x95d89b41,472	///  or in textual repr: symbol()473	function symbol() external view returns (string memory);474475	/// @notice Set or reaffirm the approved address for an NFT476	/// @dev The zero address indicates there is no approved address.477	/// @dev Throws unless `msg.sender` is the current NFT owner, or an authorized478	///  operator of the current owner.479	/// @param approved The new substrate address approved NFT controller480	/// @param tokenId The NFT to approve481	/// @dev EVM selector for this function is: 0x0ecd0ab0,482	///  or in textual repr: approveCross((address,uint256),uint256)483	function approveCross(EthCrossAccount memory approved, uint256 tokenId) external;484485	/// @notice Transfer ownership of an NFT486	/// @dev Throws unless `msg.sender` is the current owner. Throws if `to`487	///  is the zero address. Throws if `tokenId` is not a valid NFT.488	/// @param to The new owner489	/// @param tokenId The NFT to transfer490	/// @dev EVM selector for this function is: 0xa9059cbb,491	///  or in textual repr: transfer(address,uint256)492	function transfer(address to, uint256 tokenId) external;493494	/// @notice Transfer ownership of an NFT495	/// @dev Throws unless `msg.sender` is the current owner. Throws if `to`496	///  is the zero address. Throws if `tokenId` is not a valid NFT.497	/// @param to The new owner498	/// @param tokenId The NFT to transfer499	/// @dev EVM selector for this function is: 0x2ada85ff,500	///  or in textual repr: transferCross((address,uint256),uint256)501	function transferCross(EthCrossAccount memory to, uint256 tokenId) external;502503	/// @notice Transfer ownership of an NFT from cross account address to cross account address504	/// @dev Throws unless `msg.sender` is the current owner. Throws if `to`505	///  is the zero address. Throws if `tokenId` is not a valid NFT.506	/// @param from Cross acccount address of current owner507	/// @param to Cross acccount address of new owner508	/// @param tokenId The NFT to transfer509	/// @dev EVM selector for this function is: 0xd5cf430b,510	///  or in textual repr: transferFromCross((address,uint256),(address,uint256),uint256)511	function transferFromCross(512		EthCrossAccount memory from,513		EthCrossAccount memory to,514		uint256 tokenId515	) external;516517	// /// @notice Burns a specific ERC721 token.518	// /// @dev Throws unless `msg.sender` is the current owner or an authorized519	// ///  operator for this NFT. Throws if `from` is not the current owner. Throws520	// ///  if `to` is the zero address. Throws if `tokenId` is not a valid NFT.521	// /// @param from The current owner of the NFT522	// /// @param tokenId The NFT to transfer523	// /// @dev EVM selector for this function is: 0x79cc6790,524	// ///  or in textual repr: burnFrom(address,uint256)525	// function burnFrom(address from, uint256 tokenId) external;526527	/// @notice Burns a specific ERC721 token.528	/// @dev Throws unless `msg.sender` is the current owner or an authorized529	///  operator for this NFT. Throws if `from` is not the current owner. Throws530	///  if `to` is the zero address. Throws if `tokenId` is not a valid NFT.531	/// @param from The current owner of the NFT532	/// @param tokenId The NFT to transfer533	/// @dev EVM selector for this function is: 0xbb2f5a58,534	///  or in textual repr: burnFromCross((address,uint256),uint256)535	function burnFromCross(EthCrossAccount memory from, uint256 tokenId) external;536537	/// @notice Returns next free NFT ID.538	/// @dev EVM selector for this function is: 0x75794a3c,539	///  or in textual repr: nextTokenId()540	function nextTokenId() external view returns (uint256);541	// /// @notice Function to mint multiple tokens.542	// /// @dev `tokenIds` should be an array of consecutive numbers and first number543	// ///  should be obtained with `nextTokenId` method544	// /// @param to The new owner545	// /// @param tokenIds IDs of the minted NFTs546	// /// @dev EVM selector for this function is: 0x44a9945e,547	// ///  or in textual repr: mintBulk(address,uint256[])548	// function mintBulk(address to, uint256[] memory tokenIds) external returns (bool);549550	// /// @notice Function to mint multiple tokens with the given tokenUris.551	// /// @dev `tokenIds` is array of pairs of token ID and token URI. Token IDs should be consecutive552	// ///  numbers and first number should be obtained with `nextTokenId` method553	// /// @param to The new owner554	// /// @param tokens array of pairs of token ID and token URI for minted tokens555	// /// @dev EVM selector for this function is: 0x36543006,556	// ///  or in textual repr: mintBulkWithTokenURI(address,(uint256,string)[])557	// function mintBulkWithTokenURI(address to, Tuple11[] memory tokens) external returns (bool);558559}560561/// @dev anonymous struct562struct Tuple11 {563	uint256 field_0;564	string field_1;565}566567/// @title ERC-721 Non-Fungible Token Standard, optional enumeration extension568/// @dev See https://eips.ethereum.org/EIPS/eip-721569/// @dev the ERC-165 identifier for this interface is 0x780e9d63570interface ERC721Enumerable is Dummy, ERC165 {571	/// @notice Enumerate valid NFTs572	/// @param index A counter less than `totalSupply()`573	/// @return The token identifier for the `index`th NFT,574	///  (sort order not specified)575	/// @dev EVM selector for this function is: 0x4f6ccce7,576	///  or in textual repr: tokenByIndex(uint256)577	function tokenByIndex(uint256 index) external view returns (uint256);578579	/// @dev Not implemented580	/// @dev EVM selector for this function is: 0x2f745c59,581	///  or in textual repr: tokenOfOwnerByIndex(address,uint256)582	function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);583584	/// @notice Count NFTs tracked by this contract585	/// @return A count of valid NFTs tracked by this contract, where each one of586	///  them has an assigned and queryable owner not equal to the zero address587	/// @dev EVM selector for this function is: 0x18160ddd,588	///  or in textual repr: totalSupply()589	function totalSupply() external view returns (uint256);590}591592/// @dev inlined interface593interface ERC721Events {594	event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);595	event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);596	event ApprovalForAll(address indexed owner, address indexed operator, bool approved);597}598599/// @title ERC-721 Non-Fungible Token Standard600/// @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md601/// @dev the ERC-165 identifier for this interface is 0x80ac58cd602interface ERC721 is Dummy, ERC165, ERC721Events {603	/// @notice Count all NFTs assigned to an owner604	/// @dev NFTs assigned to the zero address are considered invalid, and this605	///  function throws for queries about the zero address.606	/// @param owner An address for whom to query the balance607	/// @return The number of NFTs owned by `owner`, possibly zero608	/// @dev EVM selector for this function is: 0x70a08231,609	///  or in textual repr: balanceOf(address)610	function balanceOf(address owner) external view returns (uint256);611612	/// @notice Find the owner of an NFT613	/// @dev NFTs assigned to zero address are considered invalid, and queries614	///  about them do throw.615	/// @param tokenId The identifier for an NFT616	/// @return The address of the owner of the NFT617	/// @dev EVM selector for this function is: 0x6352211e,618	///  or in textual repr: ownerOf(uint256)619	function ownerOf(uint256 tokenId) external view returns (address);620621	/// @dev Not implemented622	/// @dev EVM selector for this function is: 0xb88d4fde,623	///  or in textual repr: safeTransferFrom(address,address,uint256,bytes)624	function safeTransferFrom(625		address from,626		address to,627		uint256 tokenId,628		bytes memory data629	) external;630631	/// @dev Not implemented632	/// @dev EVM selector for this function is: 0x42842e0e,633	///  or in textual repr: safeTransferFrom(address,address,uint256)634	function safeTransferFrom(635		address from,636		address to,637		uint256 tokenId638	) external;639640	/// @notice Transfer ownership of an NFT -- THE CALLER IS RESPONSIBLE641	///  TO CONFIRM THAT `to` IS CAPABLE OF RECEIVING NFTS OR ELSE642	///  THEY MAY BE PERMANENTLY LOST643	/// @dev Throws unless `msg.sender` is the current owner or an authorized644	///  operator for this NFT. Throws if `from` is not the current owner. Throws645	///  if `to` is the zero address. Throws if `tokenId` is not a valid NFT.646	/// @param from The current owner of the NFT647	/// @param to The new owner648	/// @param tokenId The NFT to transfer649	/// @dev EVM selector for this function is: 0x23b872dd,650	///  or in textual repr: transferFrom(address,address,uint256)651	function transferFrom(652		address from,653		address to,654		uint256 tokenId655	) external;656657	/// @notice Set or reaffirm the approved address for an NFT658	/// @dev The zero address indicates there is no approved address.659	/// @dev Throws unless `msg.sender` is the current NFT owner, or an authorized660	///  operator of the current owner.661	/// @param approved The new approved NFT controller662	/// @param tokenId The NFT to approve663	/// @dev EVM selector for this function is: 0x095ea7b3,664	///  or in textual repr: approve(address,uint256)665	function approve(address approved, uint256 tokenId) external;666667	/// @dev Not implemented668	/// @dev EVM selector for this function is: 0xa22cb465,669	///  or in textual repr: setApprovalForAll(address,bool)670	function setApprovalForAll(address operator, bool approved) external;671672	/// @dev Not implemented673	/// @dev EVM selector for this function is: 0x081812fc,674	///  or in textual repr: getApproved(uint256)675	function getApproved(uint256 tokenId) external view returns (address);676677	/// @dev Not implemented678	/// @dev EVM selector for this function is: 0xe985e9c5,679	///  or in textual repr: isApprovedForAll(address,address)680	function isApprovedForAll(address owner, address operator) external view returns (address);681}682683interface UniqueNFT is684	Dummy,685	ERC165,686	ERC721,687	ERC721Enumerable,688	ERC721UniqueExtensions,689	ERC721UniqueMintable,690	ERC721Burnable,691	ERC721Metadata,692	Collection,693	TokenProperties694{}