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 (Tuple22[] 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 (Tuple25 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 Tuple25 {358 address field_0;359 uint256 field_1;360}361362/// @dev anonymous struct363struct Tuple22 {364 string field_0;365 bytes field_1;366}367368/// @dev the ERC-165 identifier for this interface is 0x5b5e139f369interface ERC721Metadata is Dummy, ERC165 {370 // /// @notice A descriptive name for a collection of NFTs in this contract371 // /// @dev real implementation of this function lies in `ERC721UniqueExtensions`372 // /// @dev EVM selector for this function is: 0x06fdde03,373 // /// or in textual repr: name()374 // function name() external view returns (string memory);375376 // /// @notice An abbreviated name for NFTs in this contract377 // /// @dev real implementation of this function lies in `ERC721UniqueExtensions`378 // /// @dev EVM selector for this function is: 0x95d89b41,379 // /// or in textual repr: symbol()380 // function symbol() external view returns (string memory);381382 /// @notice A distinct Uniform Resource Identifier (URI) for a given asset.383 ///384 /// @dev If the token has a `url` property and it is not empty, it is returned.385 /// 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`.386 /// If the collection property `baseURI` is empty or absent, return "" (empty string)387 /// otherwise, if token property `suffix` present and is non-empty, return concatenation of baseURI and suffix388 /// otherwise, return concatenation of `baseURI` and stringified token id (decimal stringifying, without paddings).389 ///390 /// @return token's const_metadata391 /// @dev EVM selector for this function is: 0xc87b56dd,392 /// or in textual repr: tokenURI(uint256)393 function tokenURI(uint256 tokenId) external view returns (string memory);394}395396/// @title ERC721 Token that can be irreversibly burned (destroyed).397/// @dev the ERC-165 identifier for this interface is 0x42966c68398interface ERC721Burnable is Dummy, ERC165 {399 /// @notice Burns a specific ERC721 token.400 /// @dev Throws unless `msg.sender` is the current RFT owner, or an authorized401 /// operator of the current owner.402 /// @param tokenId The RFT to approve403 /// @dev EVM selector for this function is: 0x42966c68,404 /// or in textual repr: burn(uint256)405 function burn(uint256 tokenId) external;406}407408/// @dev inlined interface409interface ERC721UniqueMintableEvents {410 event MintingFinished();411}412413/// @title ERC721 minting logic.414/// @dev the ERC-165 identifier for this interface is 0x476ff149415interface ERC721UniqueMintable is Dummy, ERC165, ERC721UniqueMintableEvents {416 /// @dev EVM selector for this function is: 0x05d2035b,417 /// or in textual repr: mintingFinished()418 function mintingFinished() external view returns (bool);419420 /// @notice Function to mint token.421 /// @param to The new owner422 /// @return uint256 The id of the newly minted token423 /// @dev EVM selector for this function is: 0x6a627842,424 /// or in textual repr: mint(address)425 function mint(address to) external returns (uint256);426427 // /// @notice Function to mint token.428 // /// @dev `tokenId` should be obtained with `nextTokenId` method,429 // /// unlike standard, you can't specify it manually430 // /// @param to The new owner431 // /// @param tokenId ID of the minted RFT432 // /// @dev EVM selector for this function is: 0x40c10f19,433 // /// or in textual repr: mint(address,uint256)434 // function mint(address to, uint256 tokenId) external returns (bool);435436 /// @notice Function to mint token with the given tokenUri.437 /// @param to The new owner438 /// @param tokenUri Token URI that would be stored in the NFT properties439 /// @return uint256 The id of the newly minted token440 /// @dev EVM selector for this function is: 0x45c17782,441 /// or in textual repr: mintWithTokenURI(address,string)442 function mintWithTokenURI(address to, string memory tokenUri) external returns (uint256);443444 // /// @notice Function to mint token with the given tokenUri.445 // /// @dev `tokenId` should be obtained with `nextTokenId` method,446 // /// unlike standard, you can't specify it manually447 // /// @param to The new owner448 // /// @param tokenId ID of the minted RFT449 // /// @param tokenUri Token URI that would be stored in the RFT properties450 // /// @dev EVM selector for this function is: 0x50bb4e7f,451 // /// or in textual repr: mintWithTokenURI(address,uint256,string)452 // function mintWithTokenURI(address to, uint256 tokenId, string memory tokenUri) external returns (bool);453454 /// @dev Not implemented455 /// @dev EVM selector for this function is: 0x7d64bcb4,456 /// or in textual repr: finishMinting()457 function finishMinting() external returns (bool);458}459460/// @title Unique extensions for ERC721.461/// @dev the ERC-165 identifier for this interface is 0xab243667462interface ERC721UniqueExtensions is Dummy, ERC165 {463 /// @notice A descriptive name for a collection of NFTs in this contract464 /// @dev EVM selector for this function is: 0x06fdde03,465 /// or in textual repr: name()466 function name() external view returns (string memory);467468 /// @notice An abbreviated name for NFTs in this contract469 /// @dev EVM selector for this function is: 0x95d89b41,470 /// or in textual repr: symbol()471 function symbol() external view returns (string memory);472473 /// @notice Transfer ownership of an RFT474 /// @dev Throws unless `msg.sender` is the current owner. Throws if `to`475 /// is the zero address. Throws if `tokenId` is not a valid RFT.476 /// Throws if RFT pieces have multiple owners.477 /// @param to The new owner478 /// @param tokenId The RFT to transfer479 /// @dev EVM selector for this function is: 0xa9059cbb,480 /// or in textual repr: transfer(address,uint256)481 function transfer(address to, uint256 tokenId) external;482483 /// @notice Transfer ownership of an RFT484 /// @dev Throws unless `msg.sender` is the current owner. Throws if `to`485 /// is the zero address. Throws if `tokenId` is not a valid RFT.486 /// Throws if RFT pieces have multiple owners.487 /// @param to The new owner488 /// @param tokenId The RFT to transfer489 /// @dev EVM selector for this function is: 0x2ada85ff,490 /// or in textual repr: transferCross((address,uint256),uint256)491 function transferCross(EthCrossAccount memory to, uint256 tokenId) external;492493 /// @notice Transfer ownership of an RFT494 /// @dev Throws unless `msg.sender` is the current owner. Throws if `to`495 /// is the zero address. Throws if `tokenId` is not a valid RFT.496 /// Throws if RFT pieces have multiple owners.497 /// @param to The new owner498 /// @param tokenId The RFT to transfer499 /// @dev EVM selector for this function is: 0xd5cf430b,500 /// or in textual repr: transferFromCross((address,uint256),(address,uint256),uint256)501 function transferFromCross(502 EthCrossAccount memory from,503 EthCrossAccount memory to,504 uint256 tokenId505 ) external;506507 // /// @notice Burns a specific ERC721 token.508 // /// @dev Throws unless `msg.sender` is the current owner or an authorized509 // /// operator for this RFT. Throws if `from` is not the current owner. Throws510 // /// if `to` is the zero address. Throws if `tokenId` is not a valid RFT.511 // /// Throws if RFT pieces have multiple owners.512 // /// @param from The current owner of the RFT513 // /// @param tokenId The RFT to transfer514 // /// @dev EVM selector for this function is: 0x79cc6790,515 // /// or in textual repr: burnFrom(address,uint256)516 // function burnFrom(address from, uint256 tokenId) external;517518 /// @notice Burns a specific ERC721 token.519 /// @dev Throws unless `msg.sender` is the current owner or an authorized520 /// operator for this RFT. Throws if `from` is not the current owner. Throws521 /// if `to` is the zero address. Throws if `tokenId` is not a valid RFT.522 /// Throws if RFT pieces have multiple owners.523 /// @param from The current owner of the RFT524 /// @param tokenId The RFT to transfer525 /// @dev EVM selector for this function is: 0xbb2f5a58,526 /// or in textual repr: burnFromCross((address,uint256),uint256)527 function burnFromCross(EthCrossAccount memory from, uint256 tokenId) external;528529 /// @notice Returns next free RFT ID.530 /// @dev EVM selector for this function is: 0x75794a3c,531 /// or in textual repr: nextTokenId()532 function nextTokenId() external view returns (uint256);533534 // /// @notice Function to mint multiple tokens.535 // /// @dev `tokenIds` should be an array of consecutive numbers and first number536 // /// should be obtained with `nextTokenId` method537 // /// @param to The new owner538 // /// @param tokenIds IDs of the minted RFTs539 // /// @dev EVM selector for this function is: 0x44a9945e,540 // /// or in textual repr: mintBulk(address,uint256[])541 // function mintBulk(address to, uint256[] memory tokenIds) external returns (bool);542543 // /// @notice Function to mint multiple tokens with the given tokenUris.544 // /// @dev `tokenIds` is array of pairs of token ID and token URI. Token IDs should be consecutive545 // /// numbers and first number should be obtained with `nextTokenId` method546 // /// @param to The new owner547 // /// @param tokens array of pairs of token ID and token URI for minted tokens548 // /// @dev EVM selector for this function is: 0x36543006,549 // /// or in textual repr: mintBulkWithTokenURI(address,(uint256,string)[])550 // function mintBulkWithTokenURI(address to, Tuple10[] memory tokens) external returns (bool);551552 /// Returns EVM address for refungible token553 ///554 /// @param token ID of the token555 /// @dev EVM selector for this function is: 0xab76fac6,556 /// or in textual repr: tokenContractAddress(uint256)557 function tokenContractAddress(uint256 token) external view returns (address);558}559560/// @dev anonymous struct561struct Tuple10 {562 uint256 field_0;563 string field_1;564}565566/// @title ERC-721 Non-Fungible Token Standard, optional enumeration extension567/// @dev See https://eips.ethereum.org/EIPS/eip-721568/// @dev the ERC-165 identifier for this interface is 0x780e9d63569interface ERC721Enumerable is Dummy, ERC165 {570 /// @notice Enumerate valid RFTs571 /// @param index A counter less than `totalSupply()`572 /// @return The token identifier for the `index`th NFT,573 /// (sort order not specified)574 /// @dev EVM selector for this function is: 0x4f6ccce7,575 /// or in textual repr: tokenByIndex(uint256)576 function tokenByIndex(uint256 index) external view returns (uint256);577578 /// Not implemented579 /// @dev EVM selector for this function is: 0x2f745c59,580 /// or in textual repr: tokenOfOwnerByIndex(address,uint256)581 function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);582583 /// @notice Count RFTs tracked by this contract584 /// @return A count of valid RFTs tracked by this contract, where each one of585 /// them has an assigned and queryable owner not equal to the zero address586 /// @dev EVM selector for this function is: 0x18160ddd,587 /// or in textual repr: totalSupply()588 function totalSupply() external view returns (uint256);589}590591/// @dev inlined interface592interface ERC721Events {593 event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);594 event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);595 event ApprovalForAll(address indexed owner, address indexed operator, bool approved);596}597598/// @title ERC-721 Non-Fungible Token Standard599/// @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md600/// @dev the ERC-165 identifier for this interface is 0x58800161601interface ERC721 is Dummy, ERC165, ERC721Events {602 /// @notice Count all RFTs assigned to an owner603 /// @dev RFTs assigned to the zero address are considered invalid, and this604 /// function throws for queries about the zero address.605 /// @param owner An address for whom to query the balance606 /// @return The number of RFTs owned by `owner`, possibly zero607 /// @dev EVM selector for this function is: 0x70a08231,608 /// or in textual repr: balanceOf(address)609 function balanceOf(address owner) external view returns (uint256);610611 /// @notice Find the owner of an RFT612 /// @dev RFTs assigned to zero address are considered invalid, and queries613 /// about them do throw.614 /// Returns special 0xffffffffffffffffffffffffffffffffffffffff address for615 /// the tokens that are partially owned.616 /// @param tokenId The identifier for an RFT617 /// @return The address of the owner of the RFT618 /// @dev EVM selector for this function is: 0x6352211e,619 /// or in textual repr: ownerOf(uint256)620 function ownerOf(uint256 tokenId) external view returns (address);621622 /// @dev Not implemented623 /// @dev EVM selector for this function is: 0x60a11672,624 /// or in textual repr: safeTransferFromWithData(address,address,uint256,bytes)625 function safeTransferFromWithData(626 address from,627 address to,628 uint256 tokenId,629 bytes memory data630 ) external;631632 /// @dev Not implemented633 /// @dev EVM selector for this function is: 0x42842e0e,634 /// or in textual repr: safeTransferFrom(address,address,uint256)635 function safeTransferFrom(636 address from,637 address to,638 uint256 tokenId639 ) external;640641 /// @notice Transfer ownership of an RFT -- THE CALLER IS RESPONSIBLE642 /// TO CONFIRM THAT `to` IS CAPABLE OF RECEIVING NFTS OR ELSE643 /// THEY MAY BE PERMANENTLY LOST644 /// @dev Throws unless `msg.sender` is the current owner or an authorized645 /// operator for this RFT. Throws if `from` is not the current owner. Throws646 /// if `to` is the zero address. Throws if `tokenId` is not a valid RFT.647 /// Throws if RFT pieces have multiple owners.648 /// @param from The current owner of the NFT649 /// @param to The new owner650 /// @param tokenId The NFT to transfer651 /// @dev EVM selector for this function is: 0x23b872dd,652 /// or in textual repr: transferFrom(address,address,uint256)653 function transferFrom(654 address from,655 address to,656 uint256 tokenId657 ) external;658659 /// @dev Not implemented660 /// @dev EVM selector for this function is: 0x095ea7b3,661 /// or in textual repr: approve(address,uint256)662 function approve(address approved, uint256 tokenId) external;663664 /// @dev Not implemented665 /// @dev EVM selector for this function is: 0xa22cb465,666 /// or in textual repr: setApprovalForAll(address,bool)667 function setApprovalForAll(address operator, bool approved) external;668669 /// @dev Not implemented670 /// @dev EVM selector for this function is: 0x081812fc,671 /// or in textual repr: getApproved(uint256)672 function getApproved(uint256 tokenId) external view returns (address);673674 /// @dev Not implemented675 /// @dev EVM selector for this function is: 0xe985e9c5,676 /// or in textual repr: isApprovedForAll(address,address)677 function isApprovedForAll(address owner, address operator) external view returns (address);678}679680interface UniqueRefungible is681 Dummy,682 ERC165,683 ERC721,684 ERC721Enumerable,685 ERC721UniqueExtensions,686 ERC721UniqueMintable,687 ERC721Burnable,688 ERC721Metadata,689 Collection,690 TokenProperties691{}