1// SPDX-License-Identifier: OTHER2// This code is automatically generated34pragma solidity >=0.8.0 <0.9.0;56/// @dev common stubs holder7contract Dummy {8 uint8 dummy;9 string stub_error = "this contract is implemented in native";10}1112contract ERC165 is Dummy {13 function supportsInterface(bytes4 interfaceID) external view returns (bool) {14 require(false, stub_error);15 interfaceID;16 return true;17 }18}1920/// @title A contract that allows to set and delete token properties and change token property permissions.21/// @dev the ERC-165 identifier for this interface is 0x55dba91922contract TokenProperties is Dummy, ERC165 {23 /// @notice Set permissions for token property.24 /// @dev Throws error if `msg.sender` is not admin or owner of the collection.25 /// @param key Property key.26 /// @param isMutable Permission to mutate property.27 /// @param collectionAdmin Permission to mutate property by collection admin if property is mutable.28 /// @param tokenOwner Permission to mutate property by token owner if property is mutable.29 /// @dev EVM selector for this function is: 0x222d97fa,30 /// or in textual repr: setTokenPropertyPermission(string,bool,bool,bool)31 function setTokenPropertyPermission(32 string memory key,33 bool isMutable,34 bool collectionAdmin,35 bool tokenOwner36 ) public {37 require(false, stub_error);38 key;39 isMutable;40 collectionAdmin;41 tokenOwner;42 dummy = 0;43 }4445 /// @notice Set token property value.46 /// @dev Throws error if `msg.sender` has no permission to edit the property.47 /// @param tokenId ID of the token.48 /// @param key Property key.49 /// @param value Property value.50 /// @dev EVM selector for this function is: 0x1752d67b,51 /// or in textual repr: setProperty(uint256,string,bytes)52 function setProperty(53 uint256 tokenId,54 string memory key,55 bytes memory value56 ) public {57 require(false, stub_error);58 tokenId;59 key;60 value;61 dummy = 0;62 }6364 /// @notice Set token properties value.65 /// @dev Throws error if `msg.sender` has no permission to edit the property.66 /// @param tokenId ID of the token.67 /// @param properties settable properties68 /// @dev EVM selector for this function is: 0x14ed3a6e,69 /// or in textual repr: setProperties(uint256,(string,bytes)[])70 function setProperties(uint256 tokenId, Tuple19[] memory properties) public {71 require(false, stub_error);72 tokenId;73 properties;74 dummy = 0;75 }7677 /// @notice Delete token property value.78 /// @dev Throws error if `msg.sender` has no permission to edit the property.79 /// @param tokenId ID of the token.80 /// @param key Property key.81 /// @dev EVM selector for this function is: 0x066111d1,82 /// or in textual repr: deleteProperty(uint256,string)83 function deleteProperty(uint256 tokenId, string memory key) public {84 require(false, stub_error);85 tokenId;86 key;87 dummy = 0;88 }8990 /// @notice Get token property value.91 /// @dev Throws error if key not found92 /// @param tokenId ID of the token.93 /// @param key Property key.94 /// @return Property value bytes95 /// @dev EVM selector for this function is: 0x7228c327,96 /// or in textual repr: property(uint256,string)97 function property(uint256 tokenId, string memory key) public view returns (bytes memory) {98 require(false, stub_error);99 tokenId;100 key;101 dummy;102 return hex"";103 }104}105106/// @title A contract that allows you to work with collections.107/// @dev the ERC-165 identifier for this interface is 0xb3152af3108contract Collection is Dummy, ERC165 {109 /// Set collection property.110 ///111 /// @param key Property key.112 /// @param value Propery value.113 /// @dev EVM selector for this function is: 0x2f073f66,114 /// or in textual repr: setCollectionProperty(string,bytes)115 function setCollectionProperty(string memory key, bytes memory value) public {116 require(false, stub_error);117 key;118 value;119 dummy = 0;120 }121122 /// Set collection properties.123 ///124 /// @param properties Vector of properties key/value pair.125 /// @dev EVM selector for this function is: 0x50b26b2a,126 /// or in textual repr: setCollectionProperties((string,bytes)[])127 function setCollectionProperties(Tuple19[] memory properties) public {128 require(false, stub_error);129 properties;130 dummy = 0;131 }132133 /// Delete collection property.134 ///135 /// @param key Property key.136 /// @dev EVM selector for this function is: 0x7b7debce,137 /// or in textual repr: deleteCollectionProperty(string)138 function deleteCollectionProperty(string memory key) public {139 require(false, stub_error);140 key;141 dummy = 0;142 }143144 /// Delete collection properties.145 ///146 /// @param keys Properties keys.147 /// @dev EVM selector for this function is: 0xee206ee3,148 /// or in textual repr: deleteCollectionProperties(string[])149 function deleteCollectionProperties(string[] memory keys) public {150 require(false, stub_error);151 keys;152 dummy = 0;153 }154155 /// Get collection property.156 ///157 /// @dev Throws error if key not found.158 ///159 /// @param key Property key.160 /// @return bytes The property corresponding to the key.161 /// @dev EVM selector for this function is: 0xcf24fd6d,162 /// or in textual repr: collectionProperty(string)163 function collectionProperty(string memory key) public view returns (bytes memory) {164 require(false, stub_error);165 key;166 dummy;167 return hex"";168 }169170 /// Get collection properties.171 ///172 /// @param keys Properties keys. Empty keys for all propertyes.173 /// @return Vector of properties key/value pairs.174 /// @dev EVM selector for this function is: 0x285fb8e6,175 /// or in textual repr: collectionProperties(string[])176 function collectionProperties(string[] memory keys) public view returns (Tuple19[] memory) {177 require(false, stub_error);178 keys;179 dummy;180 return new Tuple19[](0);181 }182183 /// Set the sponsor of the collection.184 ///185 /// @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.186 ///187 /// @param sponsor Address of the sponsor from whose account funds will be debited for operations with the contract.188 /// @dev EVM selector for this function is: 0x7623402e,189 /// or in textual repr: setCollectionSponsor(address)190 function setCollectionSponsor(address sponsor) public {191 require(false, stub_error);192 sponsor;193 dummy = 0;194 }195196 /// Set the sponsor of the collection.197 ///198 /// @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.199 ///200 /// @param sponsor Cross account address of the sponsor from whose account funds will be debited for operations with the contract.201 /// @dev EVM selector for this function is: 0x84a1d5a8,202 /// or in textual repr: setCollectionSponsorCross((address,uint256))203 function setCollectionSponsorCross(Tuple6 memory sponsor) public {204 require(false, stub_error);205 sponsor;206 dummy = 0;207 }208209 /// Whether there is a pending sponsor.210 /// @dev EVM selector for this function is: 0x058ac185,211 /// or in textual repr: hasCollectionPendingSponsor()212 function hasCollectionPendingSponsor() public view returns (bool) {213 require(false, stub_error);214 dummy;215 return false;216 }217218 /// Collection sponsorship confirmation.219 ///220 /// @dev After setting the sponsor for the collection, it must be confirmed with this function.221 /// @dev EVM selector for this function is: 0x3c50e97a,222 /// or in textual repr: confirmCollectionSponsorship()223 function confirmCollectionSponsorship() public {224 require(false, stub_error);225 dummy = 0;226 }227228 /// Remove collection sponsor.229 /// @dev EVM selector for this function is: 0x6e0326a3,230 /// or in textual repr: removeCollectionSponsor()231 function removeCollectionSponsor() public {232 require(false, stub_error);233 dummy = 0;234 }235236 /// Get current sponsor.237 ///238 /// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.239 /// @dev EVM selector for this function is: 0x6ec0a9f1,240 /// or in textual repr: collectionSponsor()241<<<<<<< HEAD242 function collectionSponsor() public view returns (Tuple6 memory) {243 require(false, stub_error);244 dummy;245 return Tuple6(0x0000000000000000000000000000000000000000, 0);246=======247 function collectionSponsor() public view returns (Tuple19 memory) {248 require(false, stub_error);249 dummy;250 return Tuple19(0x0000000000000000000000000000000000000000, 0);251>>>>>>> feat: add `EthCrossAccount` type252 }253254 /// Set limits for the collection.255 /// @dev Throws error if limit not found.256 /// @param limit Name of the limit. Valid names:257 /// "accountTokenOwnershipLimit",258 /// "sponsoredDataSize",259 /// "sponsoredDataRateLimit",260 /// "tokenLimit",261 /// "sponsorTransferTimeout",262 /// "sponsorApproveTimeout"263 /// @param value Value of the limit.264 /// @dev EVM selector for this function is: 0x6a3841db,265 /// or in textual repr: setCollectionLimit(string,uint32)266 function setCollectionLimit(string memory limit, uint32 value) public {267 require(false, stub_error);268 limit;269 value;270 dummy = 0;271 }272273 /// Set limits for the collection.274 /// @dev Throws error if limit not found.275 /// @param limit Name of the limit. Valid names:276 /// "ownerCanTransfer",277 /// "ownerCanDestroy",278 /// "transfersEnabled"279 /// @param value Value of the limit.280 /// @dev EVM selector for this function is: 0x993b7fba,281 /// or in textual repr: setCollectionLimit(string,bool)282 function setCollectionLimit(string memory limit, bool value) public {283 require(false, stub_error);284 limit;285 value;286 dummy = 0;287 }288289 /// Get contract address.290 /// @dev EVM selector for this function is: 0xf6b4dfb4,291 /// or in textual repr: contractAddress()292 function contractAddress() public view returns (address) {293 require(false, stub_error);294 dummy;295 return 0x0000000000000000000000000000000000000000;296 }297298 /// Add collection admin.299 /// @param newAdmin Cross account administrator address.300 /// @dev EVM selector for this function is: 0x859aa7d6,301 /// or in textual repr: addCollectionAdminCross((address,uint256))302 function addCollectionAdminCross(Tuple6 memory newAdmin) public {303 require(false, stub_error);304 newAdmin;305 dummy = 0;306 }307308 /// Remove collection admin.309 /// @param admin Cross account administrator address.310 /// @dev EVM selector for this function is: 0x6c0cd173,311 /// or in textual repr: removeCollectionAdminCross((address,uint256))312 function removeCollectionAdminCross(Tuple6 memory admin) public {313 require(false, stub_error);314 admin;315 dummy = 0;316 }317318 /// Add collection admin.319 /// @param newAdmin Address of the added administrator.320 /// @dev EVM selector for this function is: 0x92e462c7,321 /// or in textual repr: addCollectionAdmin(address)322 function addCollectionAdmin(address newAdmin) public {323 require(false, stub_error);324 newAdmin;325 dummy = 0;326 }327328 /// Remove collection admin.329 ///330 /// @param admin Address of the removed administrator.331 /// @dev EVM selector for this function is: 0xfafd7b42,332 /// or in textual repr: removeCollectionAdmin(address)333 function removeCollectionAdmin(address admin) public {334 require(false, stub_error);335 admin;336 dummy = 0;337 }338339 /// Toggle accessibility of collection nesting.340 ///341 /// @param enable If "true" degenerates to nesting: 'Owner' else to nesting: 'Disabled'342 /// @dev EVM selector for this function is: 0x112d4586,343 /// or in textual repr: setCollectionNesting(bool)344 function setCollectionNesting(bool enable) public {345 require(false, stub_error);346 enable;347 dummy = 0;348 }349350 /// Toggle accessibility of collection nesting.351 ///352 /// @param enable If "true" degenerates to nesting: {OwnerRestricted: [1, 2, 3]} else to nesting: 'Disabled'353 /// @param collections Addresses of collections that will be available for nesting.354 /// @dev EVM selector for this function is: 0x64872396,355 /// or in textual repr: setCollectionNesting(bool,address[])356 function setCollectionNesting(bool enable, address[] memory collections) public {357 require(false, stub_error);358 enable;359 collections;360 dummy = 0;361 }362363 /// Set the collection access method.364 /// @param mode Access mode365 /// 0 for Normal366 /// 1 for AllowList367 /// @dev EVM selector for this function is: 0x41835d4c,368 /// or in textual repr: setCollectionAccess(uint8)369 function setCollectionAccess(uint8 mode) public {370 require(false, stub_error);371 mode;372 dummy = 0;373 }374375 /// Checks that user allowed to operate with collection.376 ///377 /// @param user User address to check.378 /// @dev EVM selector for this function is: 0xd63a8e11,379 /// or in textual repr: allowed(address)380 function allowed(address user) public view returns (bool) {381 require(false, stub_error);382 user;383 dummy;384 return false;385 }386387 /// Add the user to the allowed list.388 ///389 /// @param user Address of a trusted user.390 /// @dev EVM selector for this function is: 0x67844fe6,391 /// or in textual repr: addToCollectionAllowList(address)392 function addToCollectionAllowList(address user) public {393 require(false, stub_error);394 user;395 dummy = 0;396 }397398 /// Add user to allowed list.399 ///400 /// @param user User cross account address.401 /// @dev EVM selector for this function is: 0xa0184a3a,402 /// or in textual repr: addToCollectionAllowListCross((address,uint256))403 function addToCollectionAllowListCross(Tuple6 memory user) public {404 require(false, stub_error);405 user;406 dummy = 0;407 }408409 /// Remove the user from the allowed list.410 ///411 /// @param user Address of a removed user.412 /// @dev EVM selector for this function is: 0x85c51acb,413 /// or in textual repr: removeFromCollectionAllowList(address)414 function removeFromCollectionAllowList(address user) public {415 require(false, stub_error);416 user;417 dummy = 0;418 }419420 /// Remove user from allowed list.421 ///422 /// @param user User cross account address.423 /// @dev EVM selector for this function is: 0x09ba452a,424 /// or in textual repr: removeFromCollectionAllowListCross((address,uint256))425 function removeFromCollectionAllowListCross(Tuple6 memory user) public {426 require(false, stub_error);427 user;428 dummy = 0;429 }430431 /// Switch permission for minting.432 ///433 /// @param mode Enable if "true".434 /// @dev EVM selector for this function is: 0x00018e84,435 /// or in textual repr: setCollectionMintMode(bool)436 function setCollectionMintMode(bool mode) public {437 require(false, stub_error);438 mode;439 dummy = 0;440 }441442 /// Check that account is the owner or admin of the collection443 ///444 /// @param user account to verify445 /// @return "true" if account is the owner or admin446 /// @dev EVM selector for this function is: 0x9811b0c7,447 /// or in textual repr: isOwnerOrAdmin(address)448 function isOwnerOrAdmin(address user) public view returns (bool) {449 require(false, stub_error);450 user;451 dummy;452 return false;453 }454455 /// Check that account is the owner or admin of the collection456 ///457 /// @param user User cross account to verify458 /// @return "true" if account is the owner or admin459 /// @dev EVM selector for this function is: 0x3e75a905,460 /// or in textual repr: isOwnerOrAdminCross((address,uint256))461 function isOwnerOrAdminCross(Tuple6 memory user) public view returns (bool) {462 require(false, stub_error);463 user;464 dummy;465 return false;466 }467468 /// Returns collection type469 ///470 /// @return `Fungible` or `NFT` or `ReFungible`471 /// @dev EVM selector for this function is: 0xd34b55b8,472 /// or in textual repr: uniqueCollectionType()473 function uniqueCollectionType() public view returns (string memory) {474 require(false, stub_error);475 dummy;476 return "";477 }478479 /// Get collection owner.480 ///481 /// @return Tuble with sponsor address and his substrate mirror.482 /// If address is canonical then substrate mirror is zero and vice versa.483 /// @dev EVM selector for this function is: 0xdf727d3b,484 /// or in textual repr: collectionOwner()485<<<<<<< HEAD486 function collectionOwner() public view returns (Tuple6 memory) {487 require(false, stub_error);488 dummy;489 return Tuple6(0x0000000000000000000000000000000000000000, 0);490=======491 function collectionOwner() public view returns (Tuple19 memory) {492 require(false, stub_error);493 dummy;494 return Tuple19(0x0000000000000000000000000000000000000000, 0);495>>>>>>> feat: add `EthCrossAccount` type496 }497498 /// Changes collection owner to another account499 ///500 /// @dev Owner can be changed only by current owner501 /// @param newOwner new owner account502 /// @dev EVM selector for this function is: 0x4f53e226,503 /// or in textual repr: changeCollectionOwner(address)504 function changeCollectionOwner(address newOwner) public {505 require(false, stub_error);506 newOwner;507 dummy = 0;508 }509510 /// Get collection administrators511 ///512 /// @return Vector of tuples with admins address and his substrate mirror.513 /// If address is canonical then substrate mirror is zero and vice versa.514 /// @dev EVM selector for this function is: 0x5813216b,515 /// or in textual repr: collectionAdmins()516 function collectionAdmins() public view returns (Tuple6[] memory) {517 require(false, stub_error);518 dummy;519 return new Tuple6[](0);520 }521522 /// Changes collection owner to another account523 ///524 /// @dev Owner can be changed only by current owner525 /// @param newOwner new owner cross account526 /// @dev EVM selector for this function is: 0xe5c9913f,527 /// or in textual repr: setOwnerCross((address,uint256))528 function setOwnerCross(Tuple6 memory newOwner) public {529 require(false, stub_error);530 newOwner;531 dummy = 0;532 }533}534535/// @dev anonymous struct536struct Tuple19 {537 address field_0;538 uint256 field_1;539}540541/// @title ERC-721 Non-Fungible Token Standard, optional metadata extension542/// @dev See https://eips.ethereum.org/EIPS/eip-721543/// @dev the ERC-165 identifier for this interface is 0x5b5e139f544contract ERC721Metadata is Dummy, ERC165 {545 // /// @notice A descriptive name for a collection of NFTs in this contract546 // /// @dev real implementation of this function lies in `ERC721UniqueExtensions`547 // /// @dev EVM selector for this function is: 0x06fdde03,548 // /// or in textual repr: name()549 // function name() public view returns (string memory) {550 // require(false, stub_error);551 // dummy;552 // return "";553 // }554555 // /// @notice An abbreviated name for NFTs in this contract556 // /// @dev real implementation of this function lies in `ERC721UniqueExtensions`557 // /// @dev EVM selector for this function is: 0x95d89b41,558 // /// or in textual repr: symbol()559 // function symbol() public view returns (string memory) {560 // require(false, stub_error);561 // dummy;562 // return "";563 // }564565 /// @notice A distinct Uniform Resource Identifier (URI) for a given asset.566 ///567 /// @dev If the token has a `url` property and it is not empty, it is returned.568 /// 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`.569 /// If the collection property `baseURI` is empty or absent, return "" (empty string)570 /// otherwise, if token property `suffix` present and is non-empty, return concatenation of baseURI and suffix571 /// otherwise, return concatenation of `baseURI` and stringified token id (decimal stringifying, without paddings).572 ///573 /// @return token's const_metadata574 /// @dev EVM selector for this function is: 0xc87b56dd,575 /// or in textual repr: tokenURI(uint256)576 function tokenURI(uint256 tokenId) public view returns (string memory) {577 require(false, stub_error);578 tokenId;579 dummy;580 return "";581 }582}583584/// @title ERC721 Token that can be irreversibly burned (destroyed).585/// @dev the ERC-165 identifier for this interface is 0x42966c68586contract ERC721Burnable is Dummy, ERC165 {587 /// @notice Burns a specific ERC721 token.588 /// @dev Throws unless `msg.sender` is the current NFT owner, or an authorized589 /// operator of the current owner.590 /// @param tokenId The NFT to approve591 /// @dev EVM selector for this function is: 0x42966c68,592 /// or in textual repr: burn(uint256)593 function burn(uint256 tokenId) public {594 require(false, stub_error);595 tokenId;596 dummy = 0;597 }598}599600/// @dev inlined interface601contract ERC721UniqueMintableEvents {602 event MintingFinished();603}604605/// @title ERC721 minting logic.606/// @dev the ERC-165 identifier for this interface is 0x476ff149607contract ERC721UniqueMintable is Dummy, ERC165, ERC721UniqueMintableEvents {608 /// @dev EVM selector for this function is: 0x05d2035b,609 /// or in textual repr: mintingFinished()610 function mintingFinished() public view returns (bool) {611 require(false, stub_error);612 dummy;613 return false;614 }615616 /// @notice Function to mint token.617 /// @param to The new owner618 /// @return uint256 The id of the newly minted token619 /// @dev EVM selector for this function is: 0x6a627842,620 /// or in textual repr: mint(address)621 function mint(address to) public returns (uint256) {622 require(false, stub_error);623 to;624 dummy = 0;625 return 0;626 }627628 // /// @notice Function to mint token.629 // /// @dev `tokenId` should be obtained with `nextTokenId` method,630 // /// unlike standard, you can't specify it manually631 // /// @param to The new owner632 // /// @param tokenId ID of the minted NFT633 // /// @dev EVM selector for this function is: 0x40c10f19,634 // /// or in textual repr: mint(address,uint256)635 // function mint(address to, uint256 tokenId) public returns (bool) {636 // require(false, stub_error);637 // to;638 // tokenId;639 // dummy = 0;640 // return false;641 // }642643 /// @notice Function to mint token with the given tokenUri.644 /// @param to The new owner645 /// @param tokenUri Token URI that would be stored in the NFT properties646 /// @return uint256 The id of the newly minted token647 /// @dev EVM selector for this function is: 0x45c17782,648 /// or in textual repr: mintWithTokenURI(address,string)649 function mintWithTokenURI(address to, string memory tokenUri) public returns (uint256) {650 require(false, stub_error);651 to;652 tokenUri;653 dummy = 0;654 return 0;655 }656657 // /// @notice Function to mint token with the given tokenUri.658 // /// @dev `tokenId` should be obtained with `nextTokenId` method,659 // /// unlike standard, you can't specify it manually660 // /// @param to The new owner661 // /// @param tokenId ID of the minted NFT662 // /// @param tokenUri Token URI that would be stored in the NFT properties663 // /// @dev EVM selector for this function is: 0x50bb4e7f,664 // /// or in textual repr: mintWithTokenURI(address,uint256,string)665 // function mintWithTokenURI(address to, uint256 tokenId, string memory tokenUri) public returns (bool) {666 // require(false, stub_error);667 // to;668 // tokenId;669 // tokenUri;670 // dummy = 0;671 // return false;672 // }673674 /// @dev Not implemented675 /// @dev EVM selector for this function is: 0x7d64bcb4,676 /// or in textual repr: finishMinting()677 function finishMinting() public returns (bool) {678 require(false, stub_error);679 dummy = 0;680 return false;681 }682}683684/// @title Unique extensions for ERC721.685/// @dev the ERC-165 identifier for this interface is 0x244543ee686contract ERC721UniqueExtensions is Dummy, ERC165 {687 /// @notice A descriptive name for a collection of NFTs in this contract688 /// @dev EVM selector for this function is: 0x06fdde03,689 /// or in textual repr: name()690 function name() public view returns (string memory) {691 require(false, stub_error);692 dummy;693 return "";694 }695696 /// @notice An abbreviated name for NFTs in this contract697 /// @dev EVM selector for this function is: 0x95d89b41,698 /// or in textual repr: symbol()699 function symbol() public view returns (string memory) {700 require(false, stub_error);701 dummy;702 return "";703 }704705 /// @notice Set or reaffirm the approved address for an NFT706 /// @dev The zero address indicates there is no approved address.707 /// @dev Throws unless `msg.sender` is the current NFT owner, or an authorized708 /// operator of the current owner.709 /// @param approved The new substrate address approved NFT controller710 /// @param tokenId The NFT to approve711 /// @dev EVM selector for this function is: 0x0ecd0ab0,712 /// or in textual repr: approveCross((address,uint256),uint256)713 function approveCross(Tuple6 memory approved, uint256 tokenId) public {714 require(false, stub_error);715 approved;716 tokenId;717 dummy = 0;718 }719720 /// @notice Transfer ownership of an NFT721 /// @dev Throws unless `msg.sender` is the current owner. Throws if `to`722 /// is the zero address. Throws if `tokenId` is not a valid NFT.723 /// @param to The new owner724 /// @param tokenId The NFT to transfer725 /// @dev EVM selector for this function is: 0xa9059cbb,726 /// or in textual repr: transfer(address,uint256)727 function transfer(address to, uint256 tokenId) public {728 require(false, stub_error);729 to;730 tokenId;731 dummy = 0;732 }733734 /// @notice Transfer ownership of an NFT from cross account address to cross account address735 /// @dev Throws unless `msg.sender` is the current owner. Throws if `to`736 /// is the zero address. Throws if `tokenId` is not a valid NFT.737 /// @param from Cross acccount address of current owner738 /// @param to Cross acccount address of new owner739 /// @param tokenId The NFT to transfer740 /// @dev EVM selector for this function is: 0xd5cf430b,741 /// or in textual repr: transferFromCross((address,uint256),(address,uint256),uint256)742 function transferFromCross(743 Tuple6 memory from,744 Tuple6 memory to,745 uint256 tokenId746 ) public {747 require(false, stub_error);748 from;749 to;750 tokenId;751 dummy = 0;752 }753754 /// @notice Burns a specific ERC721 token.755 /// @dev Throws unless `msg.sender` is the current owner or an authorized756 /// operator for this NFT. Throws if `from` is not the current owner. Throws757 /// if `to` is the zero address. Throws if `tokenId` is not a valid NFT.758 /// @param from The current owner of the NFT759 /// @param tokenId The NFT to transfer760 /// @dev EVM selector for this function is: 0x79cc6790,761 /// or in textual repr: burnFrom(address,uint256)762 function burnFrom(address from, uint256 tokenId) public {763 require(false, stub_error);764 from;765 tokenId;766 dummy = 0;767 }768769 /// @notice Burns a specific ERC721 token.770 /// @dev Throws unless `msg.sender` is the current owner or an authorized771 /// operator for this NFT. Throws if `from` is not the current owner. Throws772 /// if `to` is the zero address. Throws if `tokenId` is not a valid NFT.773 /// @param from The current owner of the NFT774 /// @param tokenId The NFT to transfer775 /// @dev EVM selector for this function is: 0xbb2f5a58,776 /// or in textual repr: burnFromCross((address,uint256),uint256)777 function burnFromCross(Tuple6 memory from, uint256 tokenId) public {778 require(false, stub_error);779 from;780 tokenId;781 dummy = 0;782 }783784 /// @notice Returns next free NFT ID.785 /// @dev EVM selector for this function is: 0x75794a3c,786 /// or in textual repr: nextTokenId()787 function nextTokenId() public view returns (uint256) {788 require(false, stub_error);789 dummy;790 return 0;791 }792 // /// @notice Function to mint multiple tokens.793 // /// @dev `tokenIds` should be an array of consecutive numbers and first number794 // /// should be obtained with `nextTokenId` method795 // /// @param to The new owner796 // /// @param tokenIds IDs of the minted NFTs797 // /// @dev EVM selector for this function is: 0x44a9945e,798 // /// or in textual repr: mintBulk(address,uint256[])799 // function mintBulk(address to, uint256[] memory tokenIds) public returns (bool) {800 // require(false, stub_error);801 // to;802 // tokenIds;803 // dummy = 0;804 // return false;805 // }806807 // /// @notice Function to mint multiple tokens with the given tokenUris.808 // /// @dev `tokenIds` is array of pairs of token ID and token URI. Token IDs should be consecutive809 // /// numbers and first number should be obtained with `nextTokenId` method810 // /// @param to The new owner811 // /// @param tokens array of pairs of token ID and token URI for minted tokens812 // /// @dev EVM selector for this function is: 0x36543006,813 // /// or in textual repr: mintBulkWithTokenURI(address,(uint256,string)[])814 // function mintBulkWithTokenURI(address to, Tuple8[] memory tokens) public returns (bool) {815 // require(false, stub_error);816 // to;817 // tokens;818 // dummy = 0;819 // return false;820 // }821822}823824/// @dev anonymous struct825struct Tuple8 {826 uint256 field_0;827 string field_1;828}829830<<<<<<< HEAD831/// @dev anonymous struct832struct Tuple6 {833 address field_0;834 uint256 field_1;835=======836/// @dev Cross account struct837struct EthCrossAccount {838 address eth;839 uint256 sub;840>>>>>>> feat: add `EthCrossAccount` type841}842843/// @title ERC-721 Non-Fungible Token Standard, optional enumeration extension844/// @dev See https://eips.ethereum.org/EIPS/eip-721845/// @dev the ERC-165 identifier for this interface is 0x780e9d63846contract ERC721Enumerable is Dummy, ERC165 {847 /// @notice Enumerate valid NFTs848 /// @param index A counter less than `totalSupply()`849 /// @return The token identifier for the `index`th NFT,850 /// (sort order not specified)851 /// @dev EVM selector for this function is: 0x4f6ccce7,852 /// or in textual repr: tokenByIndex(uint256)853 function tokenByIndex(uint256 index) public view returns (uint256) {854 require(false, stub_error);855 index;856 dummy;857 return 0;858 }859860 /// @dev Not implemented861 /// @dev EVM selector for this function is: 0x2f745c59,862 /// or in textual repr: tokenOfOwnerByIndex(address,uint256)863 function tokenOfOwnerByIndex(address owner, uint256 index) public view returns (uint256) {864 require(false, stub_error);865 owner;866 index;867 dummy;868 return 0;869 }870871 /// @notice Count NFTs tracked by this contract872 /// @return A count of valid NFTs tracked by this contract, where each one of873 /// them has an assigned and queryable owner not equal to the zero address874 /// @dev EVM selector for this function is: 0x18160ddd,875 /// or in textual repr: totalSupply()876 function totalSupply() public view returns (uint256) {877 require(false, stub_error);878 dummy;879 return 0;880 }881}882883/// @dev inlined interface884contract ERC721Events {885 event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);886 event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);887 event ApprovalForAll(address indexed owner, address indexed operator, bool approved);888}889890/// @title ERC-721 Non-Fungible Token Standard891/// @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md892/// @dev the ERC-165 identifier for this interface is 0x80ac58cd893contract ERC721 is Dummy, ERC165, ERC721Events {894 /// @notice Count all NFTs assigned to an owner895 /// @dev NFTs assigned to the zero address are considered invalid, and this896 /// function throws for queries about the zero address.897 /// @param owner An address for whom to query the balance898 /// @return The number of NFTs owned by `owner`, possibly zero899 /// @dev EVM selector for this function is: 0x70a08231,900 /// or in textual repr: balanceOf(address)901 function balanceOf(address owner) public view returns (uint256) {902 require(false, stub_error);903 owner;904 dummy;905 return 0;906 }907908 /// @notice Find the owner of an NFT909 /// @dev NFTs assigned to zero address are considered invalid, and queries910 /// about them do throw.911 /// @param tokenId The identifier for an NFT912 /// @return The address of the owner of the NFT913 /// @dev EVM selector for this function is: 0x6352211e,914 /// or in textual repr: ownerOf(uint256)915 function ownerOf(uint256 tokenId) public view returns (address) {916 require(false, stub_error);917 tokenId;918 dummy;919 return 0x0000000000000000000000000000000000000000;920 }921922 /// @dev Not implemented923 /// @dev EVM selector for this function is: 0xb88d4fde,924 /// or in textual repr: safeTransferFrom(address,address,uint256,bytes)925 function safeTransferFrom(926 address from,927 address to,928 uint256 tokenId,929 bytes memory data930 ) public {931 require(false, stub_error);932 from;933 to;934 tokenId;935 data;936 dummy = 0;937 }938939 /// @dev Not implemented940 /// @dev EVM selector for this function is: 0x42842e0e,941 /// or in textual repr: safeTransferFrom(address,address,uint256)942 function safeTransferFrom(943 address from,944 address to,945 uint256 tokenId946 ) public {947 require(false, stub_error);948 from;949 to;950 tokenId;951 dummy = 0;952 }953954 /// @notice Transfer ownership of an NFT -- THE CALLER IS RESPONSIBLE955 /// TO CONFIRM THAT `to` IS CAPABLE OF RECEIVING NFTS OR ELSE956 /// THEY MAY BE PERMANENTLY LOST957 /// @dev Throws unless `msg.sender` is the current owner or an authorized958 /// operator for this NFT. Throws if `from` is not the current owner. Throws959 /// if `to` is the zero address. Throws if `tokenId` is not a valid NFT.960 /// @param from The current owner of the NFT961 /// @param to The new owner962 /// @param tokenId The NFT to transfer963 /// @dev EVM selector for this function is: 0x23b872dd,964 /// or in textual repr: transferFrom(address,address,uint256)965 function transferFrom(966 address from,967 address to,968 uint256 tokenId969 ) public {970 require(false, stub_error);971 from;972 to;973 tokenId;974 dummy = 0;975 }976977 /// @notice Set or reaffirm the approved address for an NFT978 /// @dev The zero address indicates there is no approved address.979 /// @dev Throws unless `msg.sender` is the current NFT owner, or an authorized980 /// operator of the current owner.981 /// @param approved The new approved NFT controller982 /// @param tokenId The NFT to approve983 /// @dev EVM selector for this function is: 0x095ea7b3,984 /// or in textual repr: approve(address,uint256)985 function approve(address approved, uint256 tokenId) public {986 require(false, stub_error);987 approved;988 tokenId;989 dummy = 0;990 }991992 /// @dev Not implemented993 /// @dev EVM selector for this function is: 0xa22cb465,994 /// or in textual repr: setApprovalForAll(address,bool)995 function setApprovalForAll(address operator, bool approved) public {996 require(false, stub_error);997 operator;998 approved;999 dummy = 0;1000 }10011002 /// @dev Not implemented1003 /// @dev EVM selector for this function is: 0x081812fc,1004 /// or in textual repr: getApproved(uint256)1005 function getApproved(uint256 tokenId) public view returns (address) {1006 require(false, stub_error);1007 tokenId;1008 dummy;1009 return 0x0000000000000000000000000000000000000000;1010 }10111012 /// @dev Not implemented1013 /// @dev EVM selector for this function is: 0xe985e9c5,1014 /// or in textual repr: isApprovedForAll(address,address)1015 function isApprovedForAll(address owner, address operator) public view returns (address) {1016 require(false, stub_error);1017 owner;1018 operator;1019 dummy;1020 return 0x0000000000000000000000000000000000000000;1021 }1022}10231024contract UniqueNFT is1025 Dummy,1026 ERC165,1027 ERC721,1028 ERC721Enumerable,1029 ERC721UniqueExtensions,1030 ERC721UniqueMintable,1031 ERC721Burnable,1032 ERC721Metadata,1033 Collection,1034 TokenProperties1035{}