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<<<<<<< HEAD108/// @dev the ERC-165 identifier for this interface is 0xb3152af3109=======110/// @dev the ERC-165 identifier for this interface is 0x674be726111>>>>>>> feat: Add custum signature with unlimited nesting.112contract Collection is Dummy, ERC165 {113 /// Set collection property.114 ///115 /// @param key Property key.116 /// @param value Propery value.117 /// @dev EVM selector for this function is: 0x2f073f66,118 /// or in textual repr: setCollectionProperty(string,bytes)119 function setCollectionProperty(string memory key, bytes memory value) public {120 require(false, stub_error);121 key;122 value;123 dummy = 0;124 }125126 /// Set collection properties.127 ///128 /// @param properties Vector of properties key/value pair.129 /// @dev EVM selector for this function is: 0x50b26b2a,130 /// or in textual repr: setCollectionProperties((string,bytes)[])131 function setCollectionProperties(Tuple19[] memory properties) public {132 require(false, stub_error);133 properties;134 dummy = 0;135 }136137 /// Delete collection property.138 ///139 /// @param key Property key.140 /// @dev EVM selector for this function is: 0x7b7debce,141 /// or in textual repr: deleteCollectionProperty(string)142 function deleteCollectionProperty(string memory key) public {143 require(false, stub_error);144 key;145 dummy = 0;146 }147148 /// Delete collection properties.149 ///150 /// @param keys Properties keys.151 /// @dev EVM selector for this function is: 0xee206ee3,152 /// or in textual repr: deleteCollectionProperties(string[])153 function deleteCollectionProperties(string[] memory keys) public {154 require(false, stub_error);155 keys;156 dummy = 0;157 }158159 /// Get collection property.160 ///161 /// @dev Throws error if key not found.162 ///163 /// @param key Property key.164 /// @return bytes The property corresponding to the key.165 /// @dev EVM selector for this function is: 0xcf24fd6d,166 /// or in textual repr: collectionProperty(string)167 function collectionProperty(string memory key) public view returns (bytes memory) {168 require(false, stub_error);169 key;170 dummy;171 return hex"";172 }173174 /// Get collection properties.175 ///176 /// @param keys Properties keys. Empty keys for all propertyes.177 /// @return Vector of properties key/value pairs.178 /// @dev EVM selector for this function is: 0x285fb8e6,179 /// or in textual repr: collectionProperties(string[])180 function collectionProperties(string[] memory keys) public view returns (Tuple19[] memory) {181 require(false, stub_error);182 keys;183 dummy;184 return new Tuple19[](0);185 }186187 /// Set the sponsor of the collection.188 ///189 /// @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.190 ///191 /// @param sponsor Address of the sponsor from whose account funds will be debited for operations with the contract.192 /// @dev EVM selector for this function is: 0x7623402e,193 /// or in textual repr: setCollectionSponsor(address)194 function setCollectionSponsor(address sponsor) public {195 require(false, stub_error);196 sponsor;197 dummy = 0;198 }199200 /// Set the sponsor of the collection.201 ///202 /// @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.203 ///204 /// @param sponsor Cross account address of the sponsor from whose account funds will be debited for operations with the contract.205 /// @dev EVM selector for this function is: 0x403e96a7,206 /// or in textual repr: setCollectionSponsorCross((address,uint256))207 function setCollectionSponsorCross(Tuple6 memory sponsor) public {208 require(false, stub_error);209 sponsor;210 dummy = 0;211 }212213 /// Whether there is a pending sponsor.214 /// @dev EVM selector for this function is: 0x058ac185,215 /// or in textual repr: hasCollectionPendingSponsor()216 function hasCollectionPendingSponsor() public view returns (bool) {217 require(false, stub_error);218 dummy;219 return false;220 }221222 /// Collection sponsorship confirmation.223 ///224 /// @dev After setting the sponsor for the collection, it must be confirmed with this function.225 /// @dev EVM selector for this function is: 0x3c50e97a,226 /// or in textual repr: confirmCollectionSponsorship()227 function confirmCollectionSponsorship() public {228 require(false, stub_error);229 dummy = 0;230 }231232 /// Remove collection sponsor.233 /// @dev EVM selector for this function is: 0x6e0326a3,234 /// or in textual repr: removeCollectionSponsor()235 function removeCollectionSponsor() public {236 require(false, stub_error);237 dummy = 0;238 }239240 /// Get current sponsor.241 ///242 /// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.243 /// @dev EVM selector for this function is: 0x6ec0a9f1,244 /// or in textual repr: collectionSponsor()245<<<<<<< HEAD246<<<<<<< HEAD247 function collectionSponsor() public view returns (Tuple6 memory) {248 require(false, stub_error);249 dummy;250 return Tuple6(0x0000000000000000000000000000000000000000, 0);251=======252 function collectionSponsor() public view returns (Tuple19 memory) {253 require(false, stub_error);254 dummy;255 return Tuple19(0x0000000000000000000000000000000000000000, 0);256>>>>>>> feat: add `EthCrossAccount` type257=======258 function collectionSponsor() public view returns (Tuple8 memory) {259 require(false, stub_error);260 dummy;261 return Tuple8(0x0000000000000000000000000000000000000000, 0);262>>>>>>> feat: Add custum signature with unlimited nesting.263 }264265 /// Set limits for the collection.266 /// @dev Throws error if limit not found.267 /// @param limit Name of the limit. Valid names:268 /// "accountTokenOwnershipLimit",269 /// "sponsoredDataSize",270 /// "sponsoredDataRateLimit",271 /// "tokenLimit",272 /// "sponsorTransferTimeout",273 /// "sponsorApproveTimeout"274 /// @param value Value of the limit.275 /// @dev EVM selector for this function is: 0x6a3841db,276 /// or in textual repr: setCollectionLimit(string,uint32)277 function setCollectionLimit(string memory limit, uint32 value) public {278 require(false, stub_error);279 limit;280 value;281 dummy = 0;282 }283284 /// Set limits for the collection.285 /// @dev Throws error if limit not found.286 /// @param limit Name of the limit. Valid names:287 /// "ownerCanTransfer",288 /// "ownerCanDestroy",289 /// "transfersEnabled"290 /// @param value Value of the limit.291 /// @dev EVM selector for this function is: 0x993b7fba,292 /// or in textual repr: setCollectionLimit(string,bool)293 function setCollectionLimit(string memory limit, bool value) public {294 require(false, stub_error);295 limit;296 value;297 dummy = 0;298 }299300 /// Get contract address.301 /// @dev EVM selector for this function is: 0xf6b4dfb4,302 /// or in textual repr: contractAddress()303 function contractAddress() public view returns (address) {304 require(false, stub_error);305 dummy;306 return 0x0000000000000000000000000000000000000000;307 }308309 /// Add collection admin.310 /// @param newAdmin Cross account administrator address.311 /// @dev EVM selector for this function is: 0x62e3c7c2,312 /// or in textual repr: addCollectionAdminCross((address,uint256))313 function addCollectionAdminCross(Tuple6 memory newAdmin) public {314 require(false, stub_error);315 newAdmin;316 dummy = 0;317 }318319 /// Remove collection admin.320 /// @param admin Cross account administrator address.321 /// @dev EVM selector for this function is: 0x810d1503,322 /// or in textual repr: removeCollectionAdminCross((address,uint256))323 function removeCollectionAdminCross(Tuple6 memory admin) public {324 require(false, stub_error);325 admin;326 dummy = 0;327 }328329 /// Add collection admin.330 /// @param newAdmin Address of the added administrator.331 /// @dev EVM selector for this function is: 0x92e462c7,332 /// or in textual repr: addCollectionAdmin(address)333 function addCollectionAdmin(address newAdmin) public {334 require(false, stub_error);335 newAdmin;336 dummy = 0;337 }338339 /// Remove collection admin.340 ///341 /// @param admin Address of the removed administrator.342 /// @dev EVM selector for this function is: 0xfafd7b42,343 /// or in textual repr: removeCollectionAdmin(address)344 function removeCollectionAdmin(address admin) public {345 require(false, stub_error);346 admin;347 dummy = 0;348 }349350 /// Toggle accessibility of collection nesting.351 ///352 /// @param enable If "true" degenerates to nesting: 'Owner' else to nesting: 'Disabled'353 /// @dev EVM selector for this function is: 0x112d4586,354 /// or in textual repr: setCollectionNesting(bool)355 function setCollectionNesting(bool enable) public {356 require(false, stub_error);357 enable;358 dummy = 0;359 }360361 /// Toggle accessibility of collection nesting.362 ///363 /// @param enable If "true" degenerates to nesting: {OwnerRestricted: [1, 2, 3]} else to nesting: 'Disabled'364 /// @param collections Addresses of collections that will be available for nesting.365 /// @dev EVM selector for this function is: 0x112d4586,366 /// or in textual repr: setCollectionNesting(bool,address[])367 function setCollectionNesting(bool enable, address[] memory collections) public {368 require(false, stub_error);369 enable;370 collections;371 dummy = 0;372 }373374 /// Set the collection access method.375 /// @param mode Access mode376 /// 0 for Normal377 /// 1 for AllowList378 /// @dev EVM selector for this function is: 0x41835d4c,379 /// or in textual repr: setCollectionAccess(uint8)380 function setCollectionAccess(uint8 mode) public {381 require(false, stub_error);382 mode;383 dummy = 0;384 }385386 /// Checks that user allowed to operate with collection.387 ///388 /// @param user User address to check.389 /// @dev EVM selector for this function is: 0xd63a8e11,390 /// or in textual repr: allowed(address)391 function allowed(address user) public view returns (bool) {392 require(false, stub_error);393 user;394 dummy;395 return false;396 }397398 /// Add the user to the allowed list.399 ///400 /// @param user Address of a trusted user.401 /// @dev EVM selector for this function is: 0x67844fe6,402 /// or in textual repr: addToCollectionAllowList(address)403 function addToCollectionAllowList(address user) public {404 require(false, stub_error);405 user;406 dummy = 0;407 }408409 /// Add user to allowed list.410 ///411 /// @param user User cross account address.412 /// @dev EVM selector for this function is: 0xf074da88,413 /// or in textual repr: addToCollectionAllowListCross((address,uint256))414 function addToCollectionAllowListCross(Tuple6 memory user) public {415 require(false, stub_error);416 user;417 dummy = 0;418 }419420 /// Remove the user from the allowed list.421 ///422 /// @param user Address of a removed user.423 /// @dev EVM selector for this function is: 0x85c51acb,424 /// or in textual repr: removeFromCollectionAllowList(address)425 function removeFromCollectionAllowList(address user) public {426 require(false, stub_error);427 user;428 dummy = 0;429 }430431 /// Remove user from allowed list.432 ///433 /// @param user User cross account address.434 /// @dev EVM selector for this function is: 0xc00df45c,435 /// or in textual repr: removeFromCollectionAllowListCross((address,uint256))436 function removeFromCollectionAllowListCross(Tuple6 memory user) public {437 require(false, stub_error);438 user;439 dummy = 0;440 }441442 /// Switch permission for minting.443 ///444 /// @param mode Enable if "true".445 /// @dev EVM selector for this function is: 0x00018e84,446 /// or in textual repr: setCollectionMintMode(bool)447 function setCollectionMintMode(bool mode) public {448 require(false, stub_error);449 mode;450 dummy = 0;451 }452453 /// Check that account is the owner or admin of the collection454 ///455 /// @param user account to verify456 /// @return "true" if account is the owner or admin457 /// @dev EVM selector for this function is: 0x9811b0c7,458 /// or in textual repr: isOwnerOrAdmin(address)459 function isOwnerOrAdmin(address user) public view returns (bool) {460 require(false, stub_error);461 user;462 dummy;463 return false;464 }465466 /// Check that account is the owner or admin of the collection467 ///468 /// @param user User cross account to verify469 /// @return "true" if account is the owner or admin470 /// @dev EVM selector for this function is: 0x5aba3351,471 /// or in textual repr: isOwnerOrAdminCross((address,uint256))472 function isOwnerOrAdminCross(Tuple6 memory user) public view returns (bool) {473 require(false, stub_error);474 user;475 dummy;476 return false;477 }478479 /// Returns collection type480 ///481 /// @return `Fungible` or `NFT` or `ReFungible`482 /// @dev EVM selector for this function is: 0xd34b55b8,483 /// or in textual repr: uniqueCollectionType()484 function uniqueCollectionType() public view returns (string memory) {485 require(false, stub_error);486 dummy;487 return "";488 }489490 /// Get collection owner.491 ///492 /// @return Tuble with sponsor address and his substrate mirror.493 /// If address is canonical then substrate mirror is zero and vice versa.494 /// @dev EVM selector for this function is: 0xdf727d3b,495 /// or in textual repr: collectionOwner()496<<<<<<< HEAD497<<<<<<< HEAD498 function collectionOwner() public view returns (Tuple6 memory) {499 require(false, stub_error);500 dummy;501 return Tuple6(0x0000000000000000000000000000000000000000, 0);502=======503 function collectionOwner() public view returns (Tuple19 memory) {504 require(false, stub_error);505 dummy;506 return Tuple19(0x0000000000000000000000000000000000000000, 0);507>>>>>>> feat: add `EthCrossAccount` type508=======509 function collectionOwner() public view returns (Tuple8 memory) {510 require(false, stub_error);511 dummy;512 return Tuple8(0x0000000000000000000000000000000000000000, 0);513>>>>>>> feat: Add custum signature with unlimited nesting.514 }515516 /// Changes collection owner to another account517 ///518 /// @dev Owner can be changed only by current owner519 /// @param newOwner new owner account520 /// @dev EVM selector for this function is: 0x4f53e226,521 /// or in textual repr: changeCollectionOwner(address)522 function changeCollectionOwner(address newOwner) public {523 require(false, stub_error);524 newOwner;525 dummy = 0;526 }527528 /// Get collection administrators529 ///530 /// @return Vector of tuples with admins address and his substrate mirror.531 /// If address is canonical then substrate mirror is zero and vice versa.532 /// @dev EVM selector for this function is: 0x5813216b,533 /// or in textual repr: collectionAdmins()534 function collectionAdmins() public view returns (Tuple6[] memory) {535 require(false, stub_error);536 dummy;537 return new Tuple6[](0);538 }539540 /// Changes collection owner to another account541 ///542 /// @dev Owner can be changed only by current owner543 /// @param newOwner new owner cross account544 /// @dev EVM selector for this function is: 0xbdff793d,545 /// or in textual repr: setOwnerCross((address,uint256))546 function setOwnerCross(Tuple6 memory newOwner) public {547 require(false, stub_error);548 newOwner;549 dummy = 0;550 }551}552553<<<<<<< HEAD554/// @dev anonymous struct555struct Tuple19 {556 address field_0;557 uint256 field_1;558}559560/// @title ERC-721 Non-Fungible Token Standard, optional metadata extension561/// @dev See https://eips.ethereum.org/EIPS/eip-721562/// @dev the ERC-165 identifier for this interface is 0x5b5e139f563contract ERC721Metadata is Dummy, ERC165 {564 // /// @notice A descriptive name for a collection of NFTs in this contract565 // /// @dev real implementation of this function lies in `ERC721UniqueExtensions`566 // /// @dev EVM selector for this function is: 0x06fdde03,567 // /// or in textual repr: name()568 // function name() public view returns (string memory) {569 // require(false, stub_error);570 // dummy;571 // return "";572 // }573574 // /// @notice An abbreviated name for NFTs in this contract575 // /// @dev real implementation of this function lies in `ERC721UniqueExtensions`576 // /// @dev EVM selector for this function is: 0x95d89b41,577 // /// or in textual repr: symbol()578 // function symbol() public view returns (string memory) {579 // require(false, stub_error);580 // dummy;581 // return "";582 // }583584 /// @notice A distinct Uniform Resource Identifier (URI) for a given asset.585 ///586 /// @dev If the token has a `url` property and it is not empty, it is returned.587 /// 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`.588 /// If the collection property `baseURI` is empty or absent, return "" (empty string)589 /// otherwise, if token property `suffix` present and is non-empty, return concatenation of baseURI and suffix590 /// otherwise, return concatenation of `baseURI` and stringified token id (decimal stringifying, without paddings).591 ///592 /// @return token's const_metadata593 /// @dev EVM selector for this function is: 0xc87b56dd,594 /// or in textual repr: tokenURI(uint256)595 function tokenURI(uint256 tokenId) public view returns (string memory) {596 require(false, stub_error);597 tokenId;598 dummy;599 return "";600 }601}602603=======604>>>>>>> feat: Add custum signature with unlimited nesting.605/// @title ERC721 Token that can be irreversibly burned (destroyed).606/// @dev the ERC-165 identifier for this interface is 0x42966c68607contract ERC721Burnable is Dummy, ERC165 {608 /// @notice Burns a specific ERC721 token.609 /// @dev Throws unless `msg.sender` is the current NFT owner, or an authorized610 /// operator of the current owner.611 /// @param tokenId The NFT to approve612 /// @dev EVM selector for this function is: 0x42966c68,613 /// or in textual repr: burn(uint256)614 function burn(uint256 tokenId) public {615 require(false, stub_error);616 tokenId;617 dummy = 0;618 }619}620621/// @dev inlined interface622contract ERC721UniqueMintableEvents {623 event MintingFinished();624}625626/// @title ERC721 minting logic.627/// @dev the ERC-165 identifier for this interface is 0x476ff149628contract ERC721UniqueMintable is Dummy, ERC165, ERC721UniqueMintableEvents {629 /// @dev EVM selector for this function is: 0x05d2035b,630 /// or in textual repr: mintingFinished()631 function mintingFinished() public view returns (bool) {632 require(false, stub_error);633 dummy;634 return false;635 }636637 /// @notice Function to mint token.638 /// @param to The new owner639 /// @return uint256 The id of the newly minted token640 /// @dev EVM selector for this function is: 0x6a627842,641 /// or in textual repr: mint(address)642 function mint(address to) public returns (uint256) {643 require(false, stub_error);644 to;645 dummy = 0;646 return 0;647 }648649 // /// @notice Function to mint token.650 // /// @dev `tokenId` should be obtained with `nextTokenId` method,651 // /// unlike standard, you can't specify it manually652 // /// @param to The new owner653 // /// @param tokenId ID of the minted NFT654 // /// @dev EVM selector for this function is: 0x40c10f19,655 // /// or in textual repr: mint(address,uint256)656 // function mint(address to, uint256 tokenId) public returns (bool) {657 // require(false, stub_error);658 // to;659 // tokenId;660 // dummy = 0;661 // return false;662 // }663664 /// @notice Function to mint token with the given tokenUri.665 /// @param to The new owner666 /// @param tokenUri Token URI that would be stored in the NFT properties667 /// @return uint256 The id of the newly minted token668 /// @dev EVM selector for this function is: 0x45c17782,669 /// or in textual repr: mintWithTokenURI(address,string)670 function mintWithTokenURI(address to, string memory tokenUri) public returns (uint256) {671 require(false, stub_error);672 to;673 tokenUri;674 dummy = 0;675 return 0;676 }677678 // /// @notice Function to mint token with the given tokenUri.679 // /// @dev `tokenId` should be obtained with `nextTokenId` method,680 // /// unlike standard, you can't specify it manually681 // /// @param to The new owner682 // /// @param tokenId ID of the minted NFT683 // /// @param tokenUri Token URI that would be stored in the NFT properties684 // /// @dev EVM selector for this function is: 0x50bb4e7f,685 // /// or in textual repr: mintWithTokenURI(address,uint256,string)686 // function mintWithTokenURI(address to, uint256 tokenId, string memory tokenUri) public returns (bool) {687 // require(false, stub_error);688 // to;689 // tokenId;690 // tokenUri;691 // dummy = 0;692 // return false;693 // }694695 /// @dev Not implemented696 /// @dev EVM selector for this function is: 0x7d64bcb4,697 /// or in textual repr: finishMinting()698 function finishMinting() public returns (bool) {699 require(false, stub_error);700 dummy = 0;701 return false;702 }703}704705/// @title Unique extensions for ERC721.706<<<<<<< HEAD707/// @dev the ERC-165 identifier for this interface is 0x244543ee708=======709/// @dev the ERC-165 identifier for this interface is 0xcc97cb35710>>>>>>> feat: Add custum signature with unlimited nesting.711contract ERC721UniqueExtensions is Dummy, ERC165 {712 /// @notice A descriptive name for a collection of NFTs in this contract713 /// @dev EVM selector for this function is: 0x06fdde03,714 /// or in textual repr: name()715 function name() public view returns (string memory) {716 require(false, stub_error);717 dummy;718 return "";719 }720721 /// @notice An abbreviated name for NFTs in this contract722 /// @dev EVM selector for this function is: 0x95d89b41,723 /// or in textual repr: symbol()724 function symbol() public view returns (string memory) {725 require(false, stub_error);726 dummy;727 return "";728 }729730 /// @notice Set or reaffirm the approved address for an NFT731 /// @dev The zero address indicates there is no approved address.732 /// @dev Throws unless `msg.sender` is the current NFT owner, or an authorized733 /// operator of the current owner.734 /// @param approved The new substrate address approved NFT controller735 /// @param tokenId The NFT to approve736 /// @dev EVM selector for this function is: 0x106fdb59,737 /// or in textual repr: approveCross((address,uint256),uint256)738 function approveCross(Tuple6 memory approved, uint256 tokenId) public {739 require(false, stub_error);740 approved;741 tokenId;742 dummy = 0;743 }744745 /// @notice Transfer ownership of an NFT746 /// @dev Throws unless `msg.sender` is the current owner. Throws if `to`747 /// is the zero address. Throws if `tokenId` is not a valid NFT.748 /// @param to The new owner749 /// @param tokenId The NFT to transfer750 /// @dev EVM selector for this function is: 0xa9059cbb,751 /// or in textual repr: transfer(address,uint256)752 function transfer(address to, uint256 tokenId) public {753 require(false, stub_error);754 to;755 tokenId;756 dummy = 0;757 }758759 /// @notice Transfer ownership of an NFT from cross account address to cross account address760 /// @dev Throws unless `msg.sender` is the current owner. Throws if `to`761 /// is the zero address. Throws if `tokenId` is not a valid NFT.762 /// @param from Cross acccount address of current owner763 /// @param to Cross acccount address of new owner764 /// @param tokenId The NFT to transfer765 /// @dev EVM selector for this function is: 0xd5cf430b,766 /// or in textual repr: transferFromCross(EthCrossAccount,EthCrossAccount,uint256)767 function transferFromCross(768<<<<<<< HEAD769 Tuple6 memory from,770 Tuple6 memory to,771=======772 EthCrossAccount memory from,773 EthCrossAccount memory to,774>>>>>>> feat: Add custum signature with unlimited nesting.775 uint256 tokenId776 ) public {777 require(false, stub_error);778 from;779 to;780 tokenId;781 dummy = 0;782 }783784 /// @notice Burns a specific ERC721 token.785 /// @dev Throws unless `msg.sender` is the current owner or an authorized786 /// operator for this NFT. Throws if `from` is not the current owner. Throws787 /// if `to` is the zero address. Throws if `tokenId` is not a valid NFT.788 /// @param from The current owner of the NFT789 /// @param tokenId The NFT to transfer790 /// @dev EVM selector for this function is: 0x79cc6790,791 /// or in textual repr: burnFrom(address,uint256)792 function burnFrom(address from, uint256 tokenId) public {793 require(false, stub_error);794 from;795 tokenId;796 dummy = 0;797 }798799 /// @notice Burns a specific ERC721 token.800 /// @dev Throws unless `msg.sender` is the current owner or an authorized801 /// operator for this NFT. Throws if `from` is not the current owner. Throws802 /// if `to` is the zero address. Throws if `tokenId` is not a valid NFT.803 /// @param from The current owner of the NFT804 /// @param tokenId The NFT to transfer805 /// @dev EVM selector for this function is: 0xa8106d4a,806 /// or in textual repr: burnFromCross((address,uint256),uint256)807 function burnFromCross(Tuple6 memory from, uint256 tokenId) public {808 require(false, stub_error);809 from;810 tokenId;811 dummy = 0;812 }813814 /// @notice Returns next free NFT ID.815 /// @dev EVM selector for this function is: 0x75794a3c,816 /// or in textual repr: nextTokenId()817 function nextTokenId() public view returns (uint256) {818 require(false, stub_error);819 dummy;820 return 0;821 }822 // /// @notice Function to mint multiple tokens.823 // /// @dev `tokenIds` should be an array of consecutive numbers and first number824 // /// should be obtained with `nextTokenId` method825 // /// @param to The new owner826 // /// @param tokenIds IDs of the minted NFTs827 // /// @dev EVM selector for this function is: 0x44a9945e,828 // /// or in textual repr: mintBulk(address,uint256[])829 // function mintBulk(address to, uint256[] memory tokenIds) public returns (bool) {830 // require(false, stub_error);831 // to;832 // tokenIds;833 // dummy = 0;834 // return false;835 // }836837 // /// @notice Function to mint multiple tokens with the given tokenUris.838 // /// @dev `tokenIds` is array of pairs of token ID and token URI. Token IDs should be consecutive839 // /// numbers and first number should be obtained with `nextTokenId` method840 // /// @param to The new owner841 // /// @param tokens array of pairs of token ID and token URI for minted tokens842 // /// @dev EVM selector for this function is: 0x36543006,843 // /// or in textual repr: mintBulkWithTokenURI(address,(uint256,string)[])844 // function mintBulkWithTokenURI(address to, Tuple8[] memory tokens) public returns (bool) {845 // require(false, stub_error);846 // to;847 // tokens;848 // dummy = 0;849 // return false;850 // }851852<<<<<<< HEAD853}854855/// @dev anonymous struct856struct Tuple8 {857=======858 /// @notice Function to mint multiple tokens.859 /// @dev `tokenIds` should be an array of consecutive numbers and first number860 /// should be obtained with `nextTokenId` method861 /// @param to The new owner862 /// @param tokenIds IDs of the minted NFTs863 /// @dev EVM selector for this function is: 0xf9d9a5a3,864 /// or in textual repr: mintBulk(address,uint256[])865 function mintBulk(address to, uint256[] memory tokenIds) public returns (bool) {866 require(false, stub_error);867 to;868 tokenIds;869 dummy = 0;870 return false;871 }872873 /// @notice Function to mint multiple tokens with the given tokenUris.874 /// @dev `tokenIds` is array of pairs of token ID and token URI. Token IDs should be consecutive875 /// numbers and first number should be obtained with `nextTokenId` method876 /// @param to The new owner877 /// @param tokens array of pairs of token ID and token URI for minted tokens878 /// @dev EVM selector for this function is: 0xfd4e2a99,879 /// or in textual repr: mintBulkWithTokenURI(address,(uint256,string)[])880 function mintBulkWithTokenURI(address to, Tuple12[] memory tokens) public returns (bool) {881 require(false, stub_error);882 to;883 tokens;884 dummy = 0;885 return false;886 }887}888889/// @dev anonymous struct890struct Tuple12 {891>>>>>>> feat: Add custum signature with unlimited nesting.892 uint256 field_0;893 string field_1;894}895896<<<<<<< HEAD897/// @dev anonymous struct898struct Tuple6 {899 address field_0;900 uint256 field_1;901=======902/// @dev Cross account struct903struct EthCrossAccount {904 address eth;905 uint256 sub;906>>>>>>> feat: add `EthCrossAccount` type907}908909/// @dev anonymous struct910struct Tuple8 {911 address field_0;912 uint256 field_1;913}914915/// @title ERC-721 Non-Fungible Token Standard, optional enumeration extension916/// @dev See https://eips.ethereum.org/EIPS/eip-721917/// @dev the ERC-165 identifier for this interface is 0x780e9d63918contract ERC721Enumerable is Dummy, ERC165 {919 /// @notice Enumerate valid NFTs920 /// @param index A counter less than `totalSupply()`921 /// @return The token identifier for the `index`th NFT,922 /// (sort order not specified)923 /// @dev EVM selector for this function is: 0x4f6ccce7,924 /// or in textual repr: tokenByIndex(uint256)925 function tokenByIndex(uint256 index) public view returns (uint256) {926 require(false, stub_error);927 index;928 dummy;929 return 0;930 }931932 /// @dev Not implemented933 /// @dev EVM selector for this function is: 0x2f745c59,934 /// or in textual repr: tokenOfOwnerByIndex(address,uint256)935 function tokenOfOwnerByIndex(address owner, uint256 index) public view returns (uint256) {936 require(false, stub_error);937 owner;938 index;939 dummy;940 return 0;941 }942943 /// @notice Count NFTs tracked by this contract944 /// @return A count of valid NFTs tracked by this contract, where each one of945 /// them has an assigned and queryable owner not equal to the zero address946 /// @dev EVM selector for this function is: 0x18160ddd,947 /// or in textual repr: totalSupply()948 function totalSupply() public view returns (uint256) {949 require(false, stub_error);950 dummy;951 return 0;952 }953}954955/// @dev inlined interface956contract ERC721Events {957 event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);958 event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);959 event ApprovalForAll(address indexed owner, address indexed operator, bool approved);960}961962/// @title ERC-721 Non-Fungible Token Standard963/// @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md964/// @dev the ERC-165 identifier for this interface is 0x80ac58cd965contract ERC721 is Dummy, ERC165, ERC721Events {966 /// @notice Count all NFTs assigned to an owner967 /// @dev NFTs assigned to the zero address are considered invalid, and this968 /// function throws for queries about the zero address.969 /// @param owner An address for whom to query the balance970 /// @return The number of NFTs owned by `owner`, possibly zero971 /// @dev EVM selector for this function is: 0x70a08231,972 /// or in textual repr: balanceOf(address)973 function balanceOf(address owner) public view returns (uint256) {974 require(false, stub_error);975 owner;976 dummy;977 return 0;978 }979980 /// @notice Find the owner of an NFT981 /// @dev NFTs assigned to zero address are considered invalid, and queries982 /// about them do throw.983 /// @param tokenId The identifier for an NFT984 /// @return The address of the owner of the NFT985 /// @dev EVM selector for this function is: 0x6352211e,986 /// or in textual repr: ownerOf(uint256)987 function ownerOf(uint256 tokenId) public view returns (address) {988 require(false, stub_error);989 tokenId;990 dummy;991 return 0x0000000000000000000000000000000000000000;992 }993994 /// @dev Not implemented995 /// @dev EVM selector for this function is: 0xb88d4fde,996 /// or in textual repr: safeTransferFrom(address,address,uint256,bytes)997 function safeTransferFrom(998 address from,999 address to,1000 uint256 tokenId,1001 bytes memory data1002 ) public {1003 require(false, stub_error);1004 from;1005 to;1006 tokenId;1007 data;1008 dummy = 0;1009 }10101011 /// @dev Not implemented1012 /// @dev EVM selector for this function is: 0x42842e0e,1013 /// or in textual repr: safeTransferFrom(address,address,uint256)1014 function safeTransferFrom(1015 address from,1016 address to,1017 uint256 tokenId1018 ) public {1019 require(false, stub_error);1020 from;1021 to;1022 tokenId;1023 dummy = 0;1024 }10251026 /// @notice Transfer ownership of an NFT -- THE CALLER IS RESPONSIBLE1027 /// TO CONFIRM THAT `to` IS CAPABLE OF RECEIVING NFTS OR ELSE1028 /// THEY MAY BE PERMANENTLY LOST1029 /// @dev Throws unless `msg.sender` is the current owner or an authorized1030 /// operator for this NFT. Throws if `from` is not the current owner. Throws1031 /// if `to` is the zero address. Throws if `tokenId` is not a valid NFT.1032 /// @param from The current owner of the NFT1033 /// @param to The new owner1034 /// @param tokenId The NFT to transfer1035 /// @dev EVM selector for this function is: 0x23b872dd,1036 /// or in textual repr: transferFrom(address,address,uint256)1037 function transferFrom(1038 address from,1039 address to,1040 uint256 tokenId1041 ) public {1042 require(false, stub_error);1043 from;1044 to;1045 tokenId;1046 dummy = 0;1047 }10481049 /// @notice Set or reaffirm the approved address for an NFT1050 /// @dev The zero address indicates there is no approved address.1051 /// @dev Throws unless `msg.sender` is the current NFT owner, or an authorized1052 /// operator of the current owner.1053 /// @param approved The new approved NFT controller1054 /// @param tokenId The NFT to approve1055 /// @dev EVM selector for this function is: 0x095ea7b3,1056 /// or in textual repr: approve(address,uint256)1057 function approve(address approved, uint256 tokenId) public {1058 require(false, stub_error);1059 approved;1060 tokenId;1061 dummy = 0;1062 }10631064 /// @dev Not implemented1065 /// @dev EVM selector for this function is: 0xa22cb465,1066 /// or in textual repr: setApprovalForAll(address,bool)1067 function setApprovalForAll(address operator, bool approved) public {1068 require(false, stub_error);1069 operator;1070 approved;1071 dummy = 0;1072 }10731074 /// @dev Not implemented1075 /// @dev EVM selector for this function is: 0x081812fc,1076 /// or in textual repr: getApproved(uint256)1077 function getApproved(uint256 tokenId) public view returns (address) {1078 require(false, stub_error);1079 tokenId;1080 dummy;1081 return 0x0000000000000000000000000000000000000000;1082 }10831084 /// @dev Not implemented1085 /// @dev EVM selector for this function is: 0xe985e9c5,1086 /// or in textual repr: isApprovedForAll(address,address)1087 function isApprovedForAll(address owner, address operator) public view returns (address) {1088 require(false, stub_error);1089 owner;1090 operator;1091 dummy;1092 return 0x0000000000000000000000000000000000000000;1093 }1094}10951096contract UniqueNFT is1097 Dummy,1098 ERC165,1099 ERC721,1100 ERC721Enumerable,1101 ERC721UniqueExtensions,1102 ERC721UniqueMintable,1103 ERC721Burnable,1104 ERC721Metadata,1105 Collection,1106 TokenProperties1107{}