1// SPDX-License-Identifier: OTHER2// This code is automatically generated34pragma solidity >=0.8.0 <0.9.0;56// Anonymous struct7struct Tuple0 {8 uint256 field_0;9 string field_1;10}1112// Common stubs holder13contract Dummy {14 uint8 dummy;15 string stub_error = "this contract is implemented in native";16}1718contract ERC165 is Dummy {19 function supportsInterface(bytes4 interfaceID)20 external21 view22 returns (bool)23 {24 require(false, stub_error);25 interfaceID;26 return true;27 }28}2930// Inline31contract ERC721Events {32 event Transfer(33 address indexed from,34 address indexed to,35 uint256 indexed tokenId36 );37 event Approval(38 address indexed owner,39 address indexed approved,40 uint256 indexed tokenId41 );42 event ApprovalForAll(43 address indexed owner,44 address indexed operator,45 bool approved46 );47}4849// Inline50contract ERC721MintableEvents {51 event MintingFinished();52}5354// Selector: 2f4a708555contract Collection is Dummy, ERC165 {56 // Set collection property.57 //58 // @param key Property key.59 // @param value Propery value.60 //61 // Selector: setCollectionProperty(string,bytes) 2f073f6662 function setCollectionProperty(string memory key, bytes memory value)63 public64 {65 require(false, stub_error);66 key;67 value;68 dummy = 0;69 }7071 // Delete collection property.72 //73 // @param key Property key.74 //75 // Selector: deleteCollectionProperty(string) 7b7debce76 function deleteCollectionProperty(string memory key) public {77 require(false, stub_error);78 key;79 dummy = 0;80 }8182 // Get collection property.83 //84 // @dev Throws error if key not found.85 //86 // @param key Property key.87 // @return bytes The property corresponding to the key.88 //89 // Selector: collectionProperty(string) cf24fd6d90 function collectionProperty(string memory key)91 public92 view93 returns (bytes memory)94 {95 require(false, stub_error);96 key;97 dummy;98 return hex"";99 }100101 // Set the sponsor of the collection.102 //103 // @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.104 //105 // @param sponsor Address of the sponsor from whose account funds will be debited for operations with the contract.106 //107 // Selector: setCollectionSponsor(address) 7623402e108 function setCollectionSponsor(address sponsor) public {109 require(false, stub_error);110 sponsor;111 dummy = 0;112 }113114 // Collection sponsorship confirmation.115 //116 // @dev After setting the sponsor for the collection, it must be confirmed with this function.117 //118 // Selector: confirmCollectionSponsorship() 3c50e97a119 function confirmCollectionSponsorship() public {120 require(false, stub_error);121 dummy = 0;122 }123124 // Set limits for the collection.125 // @dev Throws error if limit not found.126 // @param limit Name of the limit. Valid names:127 // "accountTokenOwnershipLimit",128 // "sponsoredDataSize",129 // "sponsoredDataRateLimit",130 // "tokenLimit",131 // "sponsorTransferTimeout",132 // "sponsorApproveTimeout"133 // @param value Value of the limit.134 //135 // Selector: setCollectionLimit(string,uint32) 6a3841db136 function setCollectionLimit(string memory limit, uint32 value) public {137 require(false, stub_error);138 limit;139 value;140 dummy = 0;141 }142143 // Set limits for the collection.144 // @dev Throws error if limit not found.145 // @param limit Name of the limit. Valid names:146 // "ownerCanTransfer",147 // "ownerCanDestroy",148 // "transfersEnabled"149 // @param value Value of the limit.150 //151 // Selector: setCollectionLimit(string,bool) 993b7fba152 function setCollectionLimit(string memory limit, bool value) public {153 require(false, stub_error);154 limit;155 value;156 dummy = 0;157 }158159 // Get contract address.160 //161 // Selector: contractAddress() f6b4dfb4162 function contractAddress() public view returns (address) {163 require(false, stub_error);164 dummy;165 return 0x0000000000000000000000000000000000000000;166 }167168 // Add collection admin by substrate address.169 // @param new_admin Substrate administrator address.170 //171 // Selector: addCollectionAdminSubstrate(uint256) 5730062b172 function addCollectionAdminSubstrate(uint256 newAdmin) public {173 require(false, stub_error);174 newAdmin;175 dummy = 0;176 }177178 // Remove collection admin by substrate address.179 // @param admin Substrate administrator address.180 //181 // Selector: removeCollectionAdminSubstrate(uint256) 4048fcf9182 function removeCollectionAdminSubstrate(uint256 admin) public {183 require(false, stub_error);184 admin;185 dummy = 0;186 }187188 // Add collection admin.189 // @param new_admin Address of the added administrator.190 //191 // Selector: addCollectionAdmin(address) 92e462c7192 function addCollectionAdmin(address newAdmin) public {193 require(false, stub_error);194 newAdmin;195 dummy = 0;196 }197198 // Remove collection admin.199 //200 // @param new_admin Address of the removed administrator.201 //202 // Selector: removeCollectionAdmin(address) fafd7b42203 function removeCollectionAdmin(address admin) public {204 require(false, stub_error);205 admin;206 dummy = 0;207 }208209 // Toggle accessibility of collection nesting.210 //211 // @param enable If "true" degenerates to nesting: 'Owner' else to nesting: 'Disabled'212 //213 // Selector: setCollectionNesting(bool) 112d4586214 function setCollectionNesting(bool enable) public {215 require(false, stub_error);216 enable;217 dummy = 0;218 }219220 // Toggle accessibility of collection nesting.221 //222 // @param enable If "true" degenerates to nesting: {OwnerRestricted: [1, 2, 3]} else to nesting: 'Disabled'223 // @param collections Addresses of collections that will be available for nesting.224 //225 // Selector: setCollectionNesting(bool,address[]) 64872396226 function setCollectionNesting(bool enable, address[] memory collections)227 public228 {229 require(false, stub_error);230 enable;231 collections;232 dummy = 0;233 }234235 // Set the collection access method.236 // @param mode Access mode237 // 0 for Normal238 // 1 for AllowList239 //240 // Selector: setCollectionAccess(uint8) 41835d4c241 function setCollectionAccess(uint8 mode) public {242 require(false, stub_error);243 mode;244 dummy = 0;245 }246247 // Add the user to the allowed list.248 //249 // @param user Address of a trusted user.250 //251 // Selector: addToCollectionAllowList(address) 67844fe6252 function addToCollectionAllowList(address user) public {253 require(false, stub_error);254 user;255 dummy = 0;256 }257258 // Remove the user from the allowed list.259 //260 // @param user Address of a removed user.261 //262 // Selector: removeFromCollectionAllowList(address) 85c51acb263 function removeFromCollectionAllowList(address user) public {264 require(false, stub_error);265 user;266 dummy = 0;267 }268269 // Switch permission for minting.270 //271 // @param mode Enable if "true".272 //273 // Selector: setCollectionMintMode(bool) 00018e84274 function setCollectionMintMode(bool mode) public {275 require(false, stub_error);276 mode;277 dummy = 0;278 }279280 // Check that account is the owner or admin of the collection281 //282 // @param user account to verify283 // @return "true" if account is the owner or admin284 //285 // Selector: isOwnerOrAdmin(address) 9811b0c7286 function isOwnerOrAdmin(address user) public view returns (bool) {287 require(false, stub_error);288 user;289 dummy;290 return false;291 }292293 // Check that substrate account is the owner or admin of the collection294 //295 // @param user account to verify296 // @return "true" if account is the owner or admin297 //298 // Selector: isOwnerOrAdmin(uint256) 8a6cfe67299 function isOwnerOrAdmin(uint256 user) public view returns (bool) {300 require(false, stub_error);301 user;302 dummy;303 return false;304 }305306 // Returns collection type307 //308 // @return `Fungible` or `NFT` or `ReFungible`309 //310 // Selector: uniqueCollectionType() d34b55b8311 function uniqueCollectionType() public returns (string memory) {312 require(false, stub_error);313 dummy = 0;314 return "";315 }316317 // Changes collection owner to another account318 //319 // @dev Owner can be changed only by current owner320 // @param newOwner new owner account321 //322 // Selector: setOwner(address) 13af4035323 function setOwner(address newOwner) public {324 require(false, stub_error);325 newOwner;326 dummy = 0;327 }328329 // Changes collection owner to another substrate account330 //331 // @dev Owner can be changed only by current owner332 // @param newOwner new owner substrate account333 //334 // Selector: setOwner(uint256) 8041494e335 function setOwner(uint256 newOwner) public {336 require(false, stub_error);337 newOwner;338 dummy = 0;339 }340}341342// Selector: 41369377343contract TokenProperties is Dummy, ERC165 {344 // @notice Set permissions for token property.345 // @dev Throws error if `msg.sender` is not admin or owner of the collection.346 // @param key Property key.347 // @param is_mutable Permission to mutate property.348 // @param collection_admin Permission to mutate property by collection admin if property is mutable.349 // @param token_owner Permission to mutate property by token owner if property is mutable.350 //351 // Selector: setTokenPropertyPermission(string,bool,bool,bool) 222d97fa352 function setTokenPropertyPermission(353 string memory key,354 bool isMutable,355 bool collectionAdmin,356 bool tokenOwner357 ) public {358 require(false, stub_error);359 key;360 isMutable;361 collectionAdmin;362 tokenOwner;363 dummy = 0;364 }365366 // @notice Set token property value.367 // @dev Throws error if `msg.sender` has no permission to edit the property.368 // @param tokenId ID of the token.369 // @param key Property key.370 // @param value Property value.371 //372 // Selector: setProperty(uint256,string,bytes) 1752d67b373 function setProperty(374 uint256 tokenId,375 string memory key,376 bytes memory value377 ) public {378 require(false, stub_error);379 tokenId;380 key;381 value;382 dummy = 0;383 }384385 // @notice Delete token property value.386 // @dev Throws error if `msg.sender` has no permission to edit the property.387 // @param tokenId ID of the token.388 // @param key Property key.389 //390 // Selector: deleteProperty(uint256,string) 066111d1391 function deleteProperty(uint256 tokenId, string memory key) public {392 require(false, stub_error);393 tokenId;394 key;395 dummy = 0;396 }397398 // @notice Get token property value.399 // @dev Throws error if key not found400 // @param tokenId ID of the token.401 // @param key Property key.402 // @return Property value bytes403 //404 // Selector: property(uint256,string) 7228c327405 function property(uint256 tokenId, string memory key)406 public407 view408 returns (bytes memory)409 {410 require(false, stub_error);411 tokenId;412 key;413 dummy;414 return hex"";415 }416}417418// Selector: 42966c68419contract ERC721Burnable is Dummy, ERC165 {420 // @notice Burns a specific ERC721 token.421 // @dev Throws unless `msg.sender` is the current NFT owner, or an authorized422 // operator of the current owner.423 // @param tokenId The NFT to approve424 //425 // Selector: burn(uint256) 42966c68426 function burn(uint256 tokenId) public {427 require(false, stub_error);428 tokenId;429 dummy = 0;430 }431}432433// Selector: 58800161434contract ERC721 is Dummy, ERC165, ERC721Events {435 // @notice Count all NFTs assigned to an owner436 // @dev NFTs assigned to the zero address are considered invalid, and this437 // function throws for queries about the zero address.438 // @param owner An address for whom to query the balance439 // @return The number of NFTs owned by `owner`, possibly zero440 //441 // Selector: balanceOf(address) 70a08231442 function balanceOf(address owner) public view returns (uint256) {443 require(false, stub_error);444 owner;445 dummy;446 return 0;447 }448449 // @notice Find the owner of an NFT450 // @dev NFTs assigned to zero address are considered invalid, and queries451 // about them do throw.452 // @param tokenId The identifier for an NFT453 // @return The address of the owner of the NFT454 //455 // Selector: ownerOf(uint256) 6352211e456 function ownerOf(uint256 tokenId) public view returns (address) {457 require(false, stub_error);458 tokenId;459 dummy;460 return 0x0000000000000000000000000000000000000000;461 }462463 // @dev Not implemented464 //465 // Selector: safeTransferFromWithData(address,address,uint256,bytes) 60a11672466 function safeTransferFromWithData(467 address from,468 address to,469 uint256 tokenId,470 bytes memory data471 ) public {472 require(false, stub_error);473 from;474 to;475 tokenId;476 data;477 dummy = 0;478 }479480 // @dev Not implemented481 //482 // Selector: safeTransferFrom(address,address,uint256) 42842e0e483 function safeTransferFrom(484 address from,485 address to,486 uint256 tokenId487 ) public {488 require(false, stub_error);489 from;490 to;491 tokenId;492 dummy = 0;493 }494495 // @notice Transfer ownership of an NFT -- THE CALLER IS RESPONSIBLE496 // TO CONFIRM THAT `to` IS CAPABLE OF RECEIVING NFTS OR ELSE497 // THEY MAY BE PERMANENTLY LOST498 // @dev Throws unless `msg.sender` is the current owner or an authorized499 // operator for this NFT. Throws if `from` is not the current owner. Throws500 // if `to` is the zero address. Throws if `tokenId` is not a valid NFT.501 // @param from The current owner of the NFT502 // @param to The new owner503 // @param tokenId The NFT to transfer504 // @param _value Not used for an NFT505 //506 // Selector: transferFrom(address,address,uint256) 23b872dd507 function transferFrom(508 address from,509 address to,510 uint256 tokenId511 ) public {512 require(false, stub_error);513 from;514 to;515 tokenId;516 dummy = 0;517 }518519 // @notice Set or reaffirm the approved address for an NFT520 // @dev The zero address indicates there is no approved address.521 // @dev Throws unless `msg.sender` is the current NFT owner, or an authorized522 // operator of the current owner.523 // @param approved The new approved NFT controller524 // @param tokenId The NFT to approve525 //526 // Selector: approve(address,uint256) 095ea7b3527 function approve(address approved, uint256 tokenId) public {528 require(false, stub_error);529 approved;530 tokenId;531 dummy = 0;532 }533534 // @dev Not implemented535 //536 // Selector: setApprovalForAll(address,bool) a22cb465537 function setApprovalForAll(address operator, bool approved) public {538 require(false, stub_error);539 operator;540 approved;541 dummy = 0;542 }543544 // @dev Not implemented545 //546 // Selector: getApproved(uint256) 081812fc547 function getApproved(uint256 tokenId) public view returns (address) {548 require(false, stub_error);549 tokenId;550 dummy;551 return 0x0000000000000000000000000000000000000000;552 }553554 // @dev Not implemented555 //556 // Selector: isApprovedForAll(address,address) e985e9c5557 function isApprovedForAll(address owner, address operator)558 public559 view560 returns (address)561 {562 require(false, stub_error);563 owner;564 operator;565 dummy;566 return 0x0000000000000000000000000000000000000000;567 }568}569570// Selector: 5b5e139f571contract ERC721Metadata is Dummy, ERC165 {572 // @notice A descriptive name for a collection of NFTs in this contract573 //574 // Selector: name() 06fdde03575 function name() public view returns (string memory) {576 require(false, stub_error);577 dummy;578 return "";579 }580581 // @notice An abbreviated name for NFTs in this contract582 //583 // Selector: symbol() 95d89b41584 function symbol() public view returns (string memory) {585 require(false, stub_error);586 dummy;587 return "";588 }589590 // @notice A distinct Uniform Resource Identifier (URI) for a given asset.591 //592 // @dev If the token has a `url` property and it is not empty, it is returned.593 // 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`.594 // If the collection property `baseURI` is empty or absent, return "" (empty string)595 // otherwise, if token property `suffix` present and is non-empty, return concatenation of baseURI and suffix596 // otherwise, return concatenation of `baseURI` and stringified token id (decimal stringifying, without paddings).597 //598 // @return token's const_metadata599 //600 // Selector: tokenURI(uint256) c87b56dd601 function tokenURI(uint256 tokenId) public view returns (string memory) {602 require(false, stub_error);603 tokenId;604 dummy;605 return "";606 }607}608609// Selector: 68ccfe89610contract ERC721Mintable is Dummy, ERC165, ERC721MintableEvents {611 // Selector: mintingFinished() 05d2035b612 function mintingFinished() public view returns (bool) {613 require(false, stub_error);614 dummy;615 return false;616 }617618 // @notice Function to mint token.619 // @dev `tokenId` should be obtained with `nextTokenId` method,620 // unlike standard, you can't specify it manually621 // @param to The new owner622 // @param tokenId ID of the minted NFT623 //624 // Selector: mint(address,uint256) 40c10f19625 function mint(address to, uint256 tokenId) public returns (bool) {626 require(false, stub_error);627 to;628 tokenId;629 dummy = 0;630 return false;631 }632633 // @notice Function to mint token with the given tokenUri.634 // @dev `tokenId` should be obtained with `nextTokenId` method,635 // unlike standard, you can't specify it manually636 // @param to The new owner637 // @param tokenId ID of the minted NFT638 // @param tokenUri Token URI that would be stored in the NFT properties639 //640 // Selector: mintWithTokenURI(address,uint256,string) 50bb4e7f641 function mintWithTokenURI(642 address to,643 uint256 tokenId,644 string memory tokenUri645 ) public returns (bool) {646 require(false, stub_error);647 to;648 tokenId;649 tokenUri;650 dummy = 0;651 return false;652 }653654 // @dev Not implemented655 //656 // Selector: finishMinting() 7d64bcb4657 function finishMinting() public returns (bool) {658 require(false, stub_error);659 dummy = 0;660 return false;661 }662}663664// Selector: 780e9d63665contract ERC721Enumerable is Dummy, ERC165 {666 // @notice Enumerate valid NFTs667 // @param index A counter less than `totalSupply()`668 // @return The token identifier for the `index`th NFT,669 // (sort order not specified)670 //671 // Selector: tokenByIndex(uint256) 4f6ccce7672 function tokenByIndex(uint256 index) public view returns (uint256) {673 require(false, stub_error);674 index;675 dummy;676 return 0;677 }678679 // @dev Not implemented680 //681 // Selector: tokenOfOwnerByIndex(address,uint256) 2f745c59682 function tokenOfOwnerByIndex(address owner, uint256 index)683 public684 view685 returns (uint256)686 {687 require(false, stub_error);688 owner;689 index;690 dummy;691 return 0;692 }693694 // @notice Count NFTs tracked by this contract695 // @return A count of valid NFTs tracked by this contract, where each one of696 // them has an assigned and queryable owner not equal to the zero address697 //698 // Selector: totalSupply() 18160ddd699 function totalSupply() public view returns (uint256) {700 require(false, stub_error);701 dummy;702 return 0;703 }704}705706// Selector: d74d154f707contract ERC721UniqueExtensions is Dummy, ERC165 {708 // @notice Transfer ownership of an NFT709 // @dev Throws unless `msg.sender` is the current owner. Throws if `to`710 // is the zero address. Throws if `tokenId` is not a valid NFT.711 // @param to The new owner712 // @param tokenId The NFT to transfer713 // @param _value Not used for an NFT714 //715 // Selector: transfer(address,uint256) a9059cbb716 function transfer(address to, uint256 tokenId) public {717 require(false, stub_error);718 to;719 tokenId;720 dummy = 0;721 }722723 // @notice Burns a specific ERC721 token.724 // @dev Throws unless `msg.sender` is the current owner or an authorized725 // operator for this NFT. Throws if `from` is not the current owner. Throws726 // if `to` is the zero address. Throws if `tokenId` is not a valid NFT.727 // @param from The current owner of the NFT728 // @param tokenId The NFT to transfer729 // @param _value Not used for an NFT730 //731 // Selector: burnFrom(address,uint256) 79cc6790732 function burnFrom(address from, uint256 tokenId) public {733 require(false, stub_error);734 from;735 tokenId;736 dummy = 0;737 }738739 // @notice Returns next free NFT ID.740 //741 // Selector: nextTokenId() 75794a3c742 function nextTokenId() public view returns (uint256) {743 require(false, stub_error);744 dummy;745 return 0;746 }747748 // @notice Function to mint multiple tokens.749 // @dev `tokenIds` should be an array of consecutive numbers and first number750 // should be obtained with `nextTokenId` method751 // @param to The new owner752 // @param tokenIds IDs of the minted NFTs753 //754 // Selector: mintBulk(address,uint256[]) 44a9945e755 function mintBulk(address to, uint256[] memory tokenIds)756 public757 returns (bool)758 {759 require(false, stub_error);760 to;761 tokenIds;762 dummy = 0;763 return false;764 }765766 // @notice Function to mint multiple tokens with the given tokenUris.767 // @dev `tokenIds` is array of pairs of token ID and token URI. Token IDs should be consecutive768 // numbers and first number should be obtained with `nextTokenId` method769 // @param to The new owner770 // @param tokens array of pairs of token ID and token URI for minted tokens771 //772 // Selector: mintBulkWithTokenURI(address,(uint256,string)[]) 36543006773 function mintBulkWithTokenURI(address to, Tuple0[] memory tokens)774 public775 returns (bool)776 {777 require(false, stub_error);778 to;779 tokens;780 dummy = 0;781 return false;782 }783}784785contract UniqueNFT is786 Dummy,787 ERC165,788 ERC721,789 ERC721Metadata,790 ERC721Enumerable,791 ERC721UniqueExtensions,792 ERC721Mintable,793 ERC721Burnable,794 Collection,795 TokenProperties796{}