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 0x55dba91917interface 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(41 uint256 tokenId,42 string memory key,43 bytes memory value44 ) external;4546 /// @notice Set token properties value.47 /// @dev Throws error if `msg.sender` has no permission to edit the property.48 /// @param tokenId ID of the token.49 /// @param properties settable properties50 /// @dev EVM selector for this function is: 0x14ed3a6e,51 /// or in textual repr: setProperties(uint256,(string,bytes)[])52 function setProperties(uint256 tokenId, Tuple19[] memory properties) external;5354 /// @notice Delete token property value.55 /// @dev Throws error if `msg.sender` has no permission to edit the property.56 /// @param tokenId ID of the token.57 /// @param key Property key.58 /// @dev EVM selector for this function is: 0x066111d1,59 /// or in textual repr: deleteProperty(uint256,string)60 function deleteProperty(uint256 tokenId, string memory key) external;6162 /// @notice Get token property value.63 /// @dev Throws error if key not found64 /// @param tokenId ID of the token.65 /// @param key Property key.66 /// @return Property value bytes67 /// @dev EVM selector for this function is: 0x7228c327,68 /// or in textual repr: property(uint256,string)69 function property(uint256 tokenId, string memory key) external view returns (bytes memory);70}7172/// @title A contract that allows you to work with collections.73<<<<<<< HEAD74/// @dev the ERC-165 identifier for this interface is 0xb3152af375=======76/// @dev the ERC-165 identifier for this interface is 0x674be72677>>>>>>> feat: Add custum signature with unlimited nesting.78interface Collection is Dummy, ERC165 {79 /// Set collection property.80 ///81 /// @param key Property key.82 /// @param value Propery value.83 /// @dev EVM selector for this function is: 0x2f073f66,84 /// or in textual repr: setCollectionProperty(string,bytes)85 function setCollectionProperty(string memory key, bytes memory value) external;8687 /// Set collection properties.88 ///89 /// @param properties Vector of properties key/value pair.90 /// @dev EVM selector for this function is: 0x50b26b2a,91 /// or in textual repr: setCollectionProperties((string,bytes)[])92 function setCollectionProperties(Tuple19[] memory properties) external;9394 /// Delete collection property.95 ///96 /// @param key Property key.97 /// @dev EVM selector for this function is: 0x7b7debce,98 /// or in textual repr: deleteCollectionProperty(string)99 function deleteCollectionProperty(string memory key) external;100101 /// Delete collection properties.102 ///103 /// @param keys Properties keys.104 /// @dev EVM selector for this function is: 0xee206ee3,105 /// or in textual repr: deleteCollectionProperties(string[])106 function deleteCollectionProperties(string[] memory keys) external;107108 /// Get collection property.109 ///110 /// @dev Throws error if key not found.111 ///112 /// @param key Property key.113 /// @return bytes The property corresponding to the key.114 /// @dev EVM selector for this function is: 0xcf24fd6d,115 /// or in textual repr: collectionProperty(string)116 function collectionProperty(string memory key) external view returns (bytes memory);117118 /// Get collection properties.119 ///120 /// @param keys Properties keys. Empty keys for all propertyes.121 /// @return Vector of properties key/value pairs.122 /// @dev EVM selector for this function is: 0x285fb8e6,123 /// or in textual repr: collectionProperties(string[])124 function collectionProperties(string[] memory keys) external view returns (Tuple19[] memory);125126 /// Set the sponsor of the collection.127 ///128 /// @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.129 ///130 /// @param sponsor Address of the sponsor from whose account funds will be debited for operations with the contract.131 /// @dev EVM selector for this function is: 0x7623402e,132 /// or in textual repr: setCollectionSponsor(address)133 function setCollectionSponsor(address sponsor) external;134135 /// Set the sponsor of the collection.136 ///137 /// @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.138 ///139 /// @param sponsor Cross account address of the sponsor from whose account funds will be debited for operations with the contract.140 /// @dev EVM selector for this function is: 0x403e96a7,141 /// or in textual repr: setCollectionSponsorCross((address,uint256))142 function setCollectionSponsorCross(Tuple6 memory sponsor) external;143144 /// Whether there is a pending sponsor.145 /// @dev EVM selector for this function is: 0x058ac185,146 /// or in textual repr: hasCollectionPendingSponsor()147 function hasCollectionPendingSponsor() external view returns (bool);148149 /// Collection sponsorship confirmation.150 ///151 /// @dev After setting the sponsor for the collection, it must be confirmed with this function.152 /// @dev EVM selector for this function is: 0x3c50e97a,153 /// or in textual repr: confirmCollectionSponsorship()154 function confirmCollectionSponsorship() external;155156 /// Remove collection sponsor.157 /// @dev EVM selector for this function is: 0x6e0326a3,158 /// or in textual repr: removeCollectionSponsor()159 function removeCollectionSponsor() external;160161 /// Get current sponsor.162 ///163 /// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.164 /// @dev EVM selector for this function is: 0x6ec0a9f1,165 /// or in textual repr: collectionSponsor()166 function collectionSponsor() external view returns (Tuple8 memory);167168 /// Set limits for the collection.169 /// @dev Throws error if limit not found.170 /// @param limit Name of the limit. Valid names:171 /// "accountTokenOwnershipLimit",172 /// "sponsoredDataSize",173 /// "sponsoredDataRateLimit",174 /// "tokenLimit",175 /// "sponsorTransferTimeout",176 /// "sponsorApproveTimeout"177 /// @param value Value of the limit.178 /// @dev EVM selector for this function is: 0x6a3841db,179 /// or in textual repr: setCollectionLimit(string,uint32)180 function setCollectionLimit(string memory limit, uint32 value) external;181182 /// Set limits for the collection.183 /// @dev Throws error if limit not found.184 /// @param limit Name of the limit. Valid names:185 /// "ownerCanTransfer",186 /// "ownerCanDestroy",187 /// "transfersEnabled"188 /// @param value Value of the limit.189 /// @dev EVM selector for this function is: 0x993b7fba,190 /// or in textual repr: setCollectionLimit(string,bool)191 function setCollectionLimit(string memory limit, bool value) external;192193 /// Get contract address.194 /// @dev EVM selector for this function is: 0xf6b4dfb4,195 /// or in textual repr: contractAddress()196 function contractAddress() external view returns (address);197198 /// Add collection admin.199 /// @param newAdmin Cross account administrator address.200 /// @dev EVM selector for this function is: 0x62e3c7c2,201 /// or in textual repr: addCollectionAdminCross((address,uint256))202 function addCollectionAdminCross(Tuple6 memory newAdmin) external;203204 /// Remove collection admin.205 /// @param admin Cross account administrator address.206 /// @dev EVM selector for this function is: 0x810d1503,207 /// or in textual repr: removeCollectionAdminCross((address,uint256))208 function removeCollectionAdminCross(Tuple6 memory admin) external;209210 /// Add collection admin.211 /// @param newAdmin Address of the added administrator.212 /// @dev EVM selector for this function is: 0x92e462c7,213 /// or in textual repr: addCollectionAdmin(address)214 function addCollectionAdmin(address newAdmin) external;215216 /// Remove collection admin.217 ///218 /// @param admin Address of the removed administrator.219 /// @dev EVM selector for this function is: 0xfafd7b42,220 /// or in textual repr: removeCollectionAdmin(address)221 function removeCollectionAdmin(address admin) external;222223 /// Toggle accessibility of collection nesting.224 ///225 /// @param enable If "true" degenerates to nesting: 'Owner' else to nesting: 'Disabled'226 /// @dev EVM selector for this function is: 0x112d4586,227 /// or in textual repr: setCollectionNesting(bool)228 function setCollectionNesting(bool enable) external;229230 /// Toggle accessibility of collection nesting.231 ///232 /// @param enable If "true" degenerates to nesting: {OwnerRestricted: [1, 2, 3]} else to nesting: 'Disabled'233 /// @param collections Addresses of collections that will be available for nesting.234 /// @dev EVM selector for this function is: 0x112d4586,235 /// or in textual repr: setCollectionNesting(bool,address[])236 function setCollectionNesting(bool enable, address[] memory collections) external;237238 /// Set the collection access method.239 /// @param mode Access mode240 /// 0 for Normal241 /// 1 for AllowList242 /// @dev EVM selector for this function is: 0x41835d4c,243 /// or in textual repr: setCollectionAccess(uint8)244 function setCollectionAccess(uint8 mode) external;245246 /// Checks that user allowed to operate with collection.247 ///248 /// @param user User address to check.249 /// @dev EVM selector for this function is: 0xd63a8e11,250 /// or in textual repr: allowed(address)251 function allowed(address user) external view returns (bool);252253 /// Add the user to the allowed list.254 ///255 /// @param user Address of a trusted user.256 /// @dev EVM selector for this function is: 0x67844fe6,257 /// or in textual repr: addToCollectionAllowList(address)258 function addToCollectionAllowList(address user) external;259260 /// Add user to allowed list.261 ///262 /// @param user User cross account address.263 /// @dev EVM selector for this function is: 0xf074da88,264 /// or in textual repr: addToCollectionAllowListCross((address,uint256))265 function addToCollectionAllowListCross(Tuple6 memory user) external;266267 /// Remove the user from the allowed list.268 ///269 /// @param user Address of a removed user.270 /// @dev EVM selector for this function is: 0x85c51acb,271 /// or in textual repr: removeFromCollectionAllowList(address)272 function removeFromCollectionAllowList(address user) external;273274 /// Remove user from allowed list.275 ///276 /// @param user User cross account address.277 /// @dev EVM selector for this function is: 0xc00df45c,278 /// or in textual repr: removeFromCollectionAllowListCross((address,uint256))279 function removeFromCollectionAllowListCross(Tuple6 memory user) external;280281 /// Switch permission for minting.282 ///283 /// @param mode Enable if "true".284 /// @dev EVM selector for this function is: 0x00018e84,285 /// or in textual repr: setCollectionMintMode(bool)286 function setCollectionMintMode(bool mode) external;287288 /// Check that account is the owner or admin of the collection289 ///290 /// @param user account to verify291 /// @return "true" if account is the owner or admin292 /// @dev EVM selector for this function is: 0x9811b0c7,293 /// or in textual repr: isOwnerOrAdmin(address)294 function isOwnerOrAdmin(address user) external view returns (bool);295296 /// Check that account is the owner or admin of the collection297 ///298 /// @param user User cross account to verify299 /// @return "true" if account is the owner or admin300 /// @dev EVM selector for this function is: 0x5aba3351,301 /// or in textual repr: isOwnerOrAdminCross((address,uint256))302 function isOwnerOrAdminCross(Tuple6 memory user) external view returns (bool);303304 /// Returns collection type305 ///306 /// @return `Fungible` or `NFT` or `ReFungible`307 /// @dev EVM selector for this function is: 0xd34b55b8,308 /// or in textual repr: uniqueCollectionType()309 function uniqueCollectionType() external view returns (string memory);310311 /// Get collection owner.312 ///313 /// @return Tuble with sponsor address and his substrate mirror.314 /// If address is canonical then substrate mirror is zero and vice versa.315 /// @dev EVM selector for this function is: 0xdf727d3b,316 /// or in textual repr: collectionOwner()317 function collectionOwner() external view returns (Tuple8 memory);318319 /// Changes collection owner to another account320 ///321 /// @dev Owner can be changed only by current owner322 /// @param newOwner new owner account323 /// @dev EVM selector for this function is: 0x4f53e226,324 /// or in textual repr: changeCollectionOwner(address)325 function changeCollectionOwner(address newOwner) external;326327 /// Get collection administrators328 ///329 /// @return Vector of tuples with admins address and his substrate mirror.330 /// If address is canonical then substrate mirror is zero and vice versa.331 /// @dev EVM selector for this function is: 0x5813216b,332 /// or in textual repr: collectionAdmins()333 function collectionAdmins() external view returns (Tuple6[] memory);334335 /// Changes collection owner to another account336 ///337 /// @dev Owner can be changed only by current owner338 /// @param newOwner new owner cross account339 /// @dev EVM selector for this function is: 0xbdff793d,340 /// or in textual repr: setOwnerCross((address,uint256))341 function setOwnerCross(Tuple6 memory newOwner) external;342}343344<<<<<<< HEAD345/// @dev anonymous struct346struct Tuple19 {347 address field_0;348 uint256 field_1;349}350351/// @title ERC-721 Non-Fungible Token Standard, optional metadata extension352/// @dev See https://eips.ethereum.org/EIPS/eip-721353/// @dev the ERC-165 identifier for this interface is 0x5b5e139f354interface ERC721Metadata is Dummy, ERC165 {355 // /// @notice A descriptive name for a collection of NFTs in this contract356 // /// @dev real implementation of this function lies in `ERC721UniqueExtensions`357 // /// @dev EVM selector for this function is: 0x06fdde03,358 // /// or in textual repr: name()359 // function name() external view returns (string memory);360361 // /// @notice An abbreviated name for NFTs in this contract362 // /// @dev real implementation of this function lies in `ERC721UniqueExtensions`363 // /// @dev EVM selector for this function is: 0x95d89b41,364 // /// or in textual repr: symbol()365 // function symbol() external view returns (string memory);366367 /// @notice A distinct Uniform Resource Identifier (URI) for a given asset.368 ///369 /// @dev If the token has a `url` property and it is not empty, it is returned.370 /// 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`.371 /// If the collection property `baseURI` is empty or absent, return "" (empty string)372 /// otherwise, if token property `suffix` present and is non-empty, return concatenation of baseURI and suffix373 /// otherwise, return concatenation of `baseURI` and stringified token id (decimal stringifying, without paddings).374 ///375 /// @return token's const_metadata376 /// @dev EVM selector for this function is: 0xc87b56dd,377 /// or in textual repr: tokenURI(uint256)378 function tokenURI(uint256 tokenId) external view returns (string memory);379}380381=======382>>>>>>> feat: Add custum signature with unlimited nesting.383/// @title ERC721 Token that can be irreversibly burned (destroyed).384/// @dev the ERC-165 identifier for this interface is 0x42966c68385interface ERC721Burnable is Dummy, ERC165 {386 /// @notice Burns a specific ERC721 token.387 /// @dev Throws unless `msg.sender` is the current NFT owner, or an authorized388 /// operator of the current owner.389 /// @param tokenId The NFT to approve390 /// @dev EVM selector for this function is: 0x42966c68,391 /// or in textual repr: burn(uint256)392 function burn(uint256 tokenId) external;393}394395/// @dev inlined interface396interface ERC721UniqueMintableEvents {397 event MintingFinished();398}399400/// @title ERC721 minting logic.401/// @dev the ERC-165 identifier for this interface is 0x476ff149402interface ERC721UniqueMintable is Dummy, ERC165, ERC721UniqueMintableEvents {403 /// @dev EVM selector for this function is: 0x05d2035b,404 /// or in textual repr: mintingFinished()405 function mintingFinished() external view returns (bool);406407 /// @notice Function to mint token.408 /// @param to The new owner409 /// @return uint256 The id of the newly minted token410 /// @dev EVM selector for this function is: 0x6a627842,411 /// or in textual repr: mint(address)412 function mint(address to) external returns (uint256);413414 // /// @notice Function to mint token.415 // /// @dev `tokenId` should be obtained with `nextTokenId` method,416 // /// unlike standard, you can't specify it manually417 // /// @param to The new owner418 // /// @param tokenId ID of the minted NFT419 // /// @dev EVM selector for this function is: 0x40c10f19,420 // /// or in textual repr: mint(address,uint256)421 // function mint(address to, uint256 tokenId) external returns (bool);422423 /// @notice Function to mint token with the given tokenUri.424 /// @param to The new owner425 /// @param tokenUri Token URI that would be stored in the NFT properties426 /// @return uint256 The id of the newly minted token427 /// @dev EVM selector for this function is: 0x45c17782,428 /// or in textual repr: mintWithTokenURI(address,string)429 function mintWithTokenURI(address to, string memory tokenUri) external returns (uint256);430431 // /// @notice Function to mint token with the given tokenUri.432 // /// @dev `tokenId` should be obtained with `nextTokenId` method,433 // /// unlike standard, you can't specify it manually434 // /// @param to The new owner435 // /// @param tokenId ID of the minted NFT436 // /// @param tokenUri Token URI that would be stored in the NFT properties437 // /// @dev EVM selector for this function is: 0x50bb4e7f,438 // /// or in textual repr: mintWithTokenURI(address,uint256,string)439 // function mintWithTokenURI(address to, uint256 tokenId, string memory tokenUri) external returns (bool);440441 /// @dev Not implemented442 /// @dev EVM selector for this function is: 0x7d64bcb4,443 /// or in textual repr: finishMinting()444 function finishMinting() external returns (bool);445}446447/// @title Unique extensions for ERC721.448<<<<<<< HEAD449/// @dev the ERC-165 identifier for this interface is 0x244543ee450=======451/// @dev the ERC-165 identifier for this interface is 0xcc97cb35452>>>>>>> feat: Add custum signature with unlimited nesting.453interface ERC721UniqueExtensions is Dummy, ERC165 {454 /// @notice A descriptive name for a collection of NFTs in this contract455 /// @dev EVM selector for this function is: 0x06fdde03,456 /// or in textual repr: name()457 function name() external view returns (string memory);458459 /// @notice An abbreviated name for NFTs in this contract460 /// @dev EVM selector for this function is: 0x95d89b41,461 /// or in textual repr: symbol()462 function symbol() external view returns (string memory);463464 /// @notice Set or reaffirm the approved address for an NFT465 /// @dev The zero address indicates there is no approved address.466 /// @dev Throws unless `msg.sender` is the current NFT owner, or an authorized467 /// operator of the current owner.468 /// @param approved The new substrate address approved NFT controller469 /// @param tokenId The NFT to approve470 /// @dev EVM selector for this function is: 0x106fdb59,471 /// or in textual repr: approveCross((address,uint256),uint256)472 function approveCross(Tuple6 memory approved, uint256 tokenId) external;473474 /// @notice Transfer ownership of an NFT475 /// @dev Throws unless `msg.sender` is the current owner. Throws if `to`476 /// is the zero address. Throws if `tokenId` is not a valid NFT.477 /// @param to The new owner478 /// @param tokenId The NFT 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 NFT from cross account address to cross account address484 /// @dev Throws unless `msg.sender` is the current owner. Throws if `to`485 /// is the zero address. Throws if `tokenId` is not a valid NFT.486 /// @param from Cross acccount address of current owner487 /// @param to Cross acccount address of new owner488 /// @param tokenId The NFT to transfer489 /// @dev EVM selector for this function is: 0xd5cf430b,490 /// or in textual repr: transferFromCross(EthCrossAccount,EthCrossAccount,uint256)491 function transferFromCross(492<<<<<<< HEAD493 Tuple6 memory from,494 Tuple6 memory to,495=======496 EthCrossAccount memory from,497 EthCrossAccount memory to,498>>>>>>> feat: Add custum signature with unlimited nesting.499 uint256 tokenId500 ) external;501502 /// @notice Burns a specific ERC721 token.503 /// @dev Throws unless `msg.sender` is the current owner or an authorized504 /// operator for this NFT. Throws if `from` is not the current owner. Throws505 /// if `to` is the zero address. Throws if `tokenId` is not a valid NFT.506 /// @param from The current owner of the NFT507 /// @param tokenId The NFT to transfer508 /// @dev EVM selector for this function is: 0x79cc6790,509 /// or in textual repr: burnFrom(address,uint256)510 function burnFrom(address from, uint256 tokenId) external;511512 /// @notice Burns a specific ERC721 token.513 /// @dev Throws unless `msg.sender` is the current owner or an authorized514 /// operator for this NFT. Throws if `from` is not the current owner. Throws515 /// if `to` is the zero address. Throws if `tokenId` is not a valid NFT.516 /// @param from The current owner of the NFT517 /// @param tokenId The NFT to transfer518 /// @dev EVM selector for this function is: 0xa8106d4a,519 /// or in textual repr: burnFromCross((address,uint256),uint256)520 function burnFromCross(Tuple6 memory from, uint256 tokenId) external;521522 /// @notice Returns next free NFT ID.523 /// @dev EVM selector for this function is: 0x75794a3c,524 /// or in textual repr: nextTokenId()525 function nextTokenId() external view returns (uint256);526<<<<<<< HEAD527 // /// @notice Function to mint multiple tokens.528 // /// @dev `tokenIds` should be an array of consecutive numbers and first number529 // /// should be obtained with `nextTokenId` method530 // /// @param to The new owner531 // /// @param tokenIds IDs of the minted NFTs532 // /// @dev EVM selector for this function is: 0x44a9945e,533 // /// or in textual repr: mintBulk(address,uint256[])534 // function mintBulk(address to, uint256[] memory tokenIds) external returns (bool);535536 // /// @notice Function to mint multiple tokens with the given tokenUris.537 // /// @dev `tokenIds` is array of pairs of token ID and token URI. Token IDs should be consecutive538 // /// numbers and first number should be obtained with `nextTokenId` method539 // /// @param to The new owner540 // /// @param tokens array of pairs of token ID and token URI for minted tokens541 // /// @dev EVM selector for this function is: 0x36543006,542 // /// or in textual repr: mintBulkWithTokenURI(address,(uint256,string)[])543 // function mintBulkWithTokenURI(address to, Tuple8[] memory tokens) external returns (bool);544}545546/// @dev anonymous struct547struct Tuple8 {548=======549550 /// @notice Function to mint multiple tokens.551 /// @dev `tokenIds` should be an array of consecutive numbers and first number552 /// should be obtained with `nextTokenId` method553 /// @param to The new owner554 /// @param tokenIds IDs of the minted NFTs555 /// @dev EVM selector for this function is: 0xf9d9a5a3,556 /// or in textual repr: mintBulk(address,uint256[])557 function mintBulk(address to, uint256[] memory tokenIds) external returns (bool);558559 /// @notice Function to mint multiple tokens with the given tokenUris.560 /// @dev `tokenIds` is array of pairs of token ID and token URI. Token IDs should be consecutive561 /// numbers and first number should be obtained with `nextTokenId` method562 /// @param to The new owner563 /// @param tokens array of pairs of token ID and token URI for minted tokens564 /// @dev EVM selector for this function is: 0xfd4e2a99,565 /// or in textual repr: mintBulkWithTokenURI(address,(uint256,string)[])566 function mintBulkWithTokenURI(address to, Tuple12[] memory tokens) external returns (bool);567}568569/// @dev anonymous struct570struct Tuple12 {571>>>>>>> feat: Add custum signature with unlimited nesting.572 uint256 field_0;573 string field_1;574}575576/// @dev anonymous struct577struct Tuple8 {578 address field_0;579 uint256 field_1;580}581582/// @dev anonymous struct583struct Tuple8 {584 address field_0;585 uint256 field_1;586}587588/// @title ERC-721 Non-Fungible Token Standard, optional enumeration extension589/// @dev See https://eips.ethereum.org/EIPS/eip-721590/// @dev the ERC-165 identifier for this interface is 0x780e9d63591interface ERC721Enumerable is Dummy, ERC165 {592 /// @notice Enumerate valid NFTs593 /// @param index A counter less than `totalSupply()`594 /// @return The token identifier for the `index`th NFT,595 /// (sort order not specified)596 /// @dev EVM selector for this function is: 0x4f6ccce7,597 /// or in textual repr: tokenByIndex(uint256)598 function tokenByIndex(uint256 index) external view returns (uint256);599600 /// @dev Not implemented601 /// @dev EVM selector for this function is: 0x2f745c59,602 /// or in textual repr: tokenOfOwnerByIndex(address,uint256)603 function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);604605 /// @notice Count NFTs tracked by this contract606 /// @return A count of valid NFTs tracked by this contract, where each one of607 /// them has an assigned and queryable owner not equal to the zero address608 /// @dev EVM selector for this function is: 0x18160ddd,609 /// or in textual repr: totalSupply()610 function totalSupply() external view returns (uint256);611}612613/// @dev inlined interface614interface ERC721Events {615 event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);616 event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);617 event ApprovalForAll(address indexed owner, address indexed operator, bool approved);618}619620/// @title ERC-721 Non-Fungible Token Standard621/// @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md622/// @dev the ERC-165 identifier for this interface is 0x80ac58cd623interface ERC721 is Dummy, ERC165, ERC721Events {624 /// @notice Count all NFTs assigned to an owner625 /// @dev NFTs assigned to the zero address are considered invalid, and this626 /// function throws for queries about the zero address.627 /// @param owner An address for whom to query the balance628 /// @return The number of NFTs owned by `owner`, possibly zero629 /// @dev EVM selector for this function is: 0x70a08231,630 /// or in textual repr: balanceOf(address)631 function balanceOf(address owner) external view returns (uint256);632633 /// @notice Find the owner of an NFT634 /// @dev NFTs assigned to zero address are considered invalid, and queries635 /// about them do throw.636 /// @param tokenId The identifier for an NFT637 /// @return The address of the owner of the NFT638 /// @dev EVM selector for this function is: 0x6352211e,639 /// or in textual repr: ownerOf(uint256)640 function ownerOf(uint256 tokenId) external view returns (address);641642 /// @dev Not implemented643 /// @dev EVM selector for this function is: 0xb88d4fde,644 /// or in textual repr: safeTransferFrom(address,address,uint256,bytes)645 function safeTransferFrom(646 address from,647 address to,648 uint256 tokenId,649 bytes memory data650 ) external;651652 /// @dev Not implemented653 /// @dev EVM selector for this function is: 0x42842e0e,654 /// or in textual repr: safeTransferFrom(address,address,uint256)655 function safeTransferFrom(656 address from,657 address to,658 uint256 tokenId659 ) external;660661 /// @notice Transfer ownership of an NFT -- THE CALLER IS RESPONSIBLE662 /// TO CONFIRM THAT `to` IS CAPABLE OF RECEIVING NFTS OR ELSE663 /// THEY MAY BE PERMANENTLY LOST664 /// @dev Throws unless `msg.sender` is the current owner or an authorized665 /// operator for this NFT. Throws if `from` is not the current owner. Throws666 /// if `to` is the zero address. Throws if `tokenId` is not a valid NFT.667 /// @param from The current owner of the NFT668 /// @param to The new owner669 /// @param tokenId The NFT to transfer670 /// @dev EVM selector for this function is: 0x23b872dd,671 /// or in textual repr: transferFrom(address,address,uint256)672 function transferFrom(673 address from,674 address to,675 uint256 tokenId676 ) external;677678 /// @notice Set or reaffirm the approved address for an NFT679 /// @dev The zero address indicates there is no approved address.680 /// @dev Throws unless `msg.sender` is the current NFT owner, or an authorized681 /// operator of the current owner.682 /// @param approved The new approved NFT controller683 /// @param tokenId The NFT to approve684 /// @dev EVM selector for this function is: 0x095ea7b3,685 /// or in textual repr: approve(address,uint256)686 function approve(address approved, uint256 tokenId) external;687688 /// @dev Not implemented689 /// @dev EVM selector for this function is: 0xa22cb465,690 /// or in textual repr: setApprovalForAll(address,bool)691 function setApprovalForAll(address operator, bool approved) external;692693 /// @dev Not implemented694 /// @dev EVM selector for this function is: 0x081812fc,695 /// or in textual repr: getApproved(uint256)696 function getApproved(uint256 tokenId) external view returns (address);697698 /// @dev Not implemented699 /// @dev EVM selector for this function is: 0xe985e9c5,700 /// or in textual repr: isApprovedForAll(address,address)701 function isApprovedForAll(address owner, address operator) external view returns (address);702}703704interface UniqueNFT is705 Dummy,706 ERC165,707 ERC721,708 ERC721Enumerable,709 ERC721UniqueExtensions,710 ERC721UniqueMintable,711 ERC721Burnable,712 ERC721Metadata,713 Collection,714 TokenProperties715{}