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: 4136937755contract TokenProperties is Dummy, ERC165 {56 // @notice Set permissions for token property.57 // @dev Throws error if `msg.sender` is not admin or owner of the collection.58 // @param key Property key.59 // @param is_mutable Permission to mutate property.60 // @param collection_admin Permission to mutate property by collection admin if property is mutable.61 // @param token_owner Permission to mutate property by token owner if property is mutable.62 //63 // Selector: setTokenPropertyPermission(string,bool,bool,bool) 222d97fa64 function setTokenPropertyPermission(65 string memory key,66 bool isMutable,67 bool collectionAdmin,68 bool tokenOwner69 ) public {70 require(false, stub_error);71 key;72 isMutable;73 collectionAdmin;74 tokenOwner;75 dummy = 0;76 }7778 // @notice Set token property value.79 // @dev Throws error if `msg.sender` has no permission to edit the property.80 // @param tokenId ID of the token.81 // @param key Property key.82 // @param value Property value.83 //84 // Selector: setProperty(uint256,string,bytes) 1752d67b85 function setProperty(86 uint256 tokenId,87 string memory key,88 bytes memory value89 ) public {90 require(false, stub_error);91 tokenId;92 key;93 value;94 dummy = 0;95 }9697 // @notice Delete token property value.98 // @dev Throws error if `msg.sender` has no permission to edit the property.99 // @param tokenId ID of the token.100 // @param key Property key.101 //102 // Selector: deleteProperty(uint256,string) 066111d1103 function deleteProperty(uint256 tokenId, string memory key) public {104 require(false, stub_error);105 tokenId;106 key;107 dummy = 0;108 }109110 // @notice Get token property value.111 // @dev Throws error if key not found112 // @param tokenId ID of the token.113 // @param key Property key.114 // @return Property value bytes115 //116 // Selector: property(uint256,string) 7228c327117 function property(uint256 tokenId, string memory key)118 public119 view120 returns (bytes memory)121 {122 require(false, stub_error);123 tokenId;124 key;125 dummy;126 return hex"";127 }128}129130// Selector: 42966c68131contract ERC721Burnable is Dummy, ERC165 {132 // @notice Burns a specific ERC721 token.133 // @dev Throws unless `msg.sender` is the current RFT owner, or an authorized134 // operator of the current owner.135 // @param tokenId The RFT to approve136 //137 // Selector: burn(uint256) 42966c68138 function burn(uint256 tokenId) public {139 require(false, stub_error);140 tokenId;141 dummy = 0;142 }143}144145// Selector: 58800161146contract ERC721 is Dummy, ERC165, ERC721Events {147 // @notice Count all RFTs assigned to an owner148 // @dev RFTs assigned to the zero address are considered invalid, and this149 // function throws for queries about the zero address.150 // @param owner An address for whom to query the balance151 // @return The number of RFTs owned by `owner`, possibly zero152 //153 // Selector: balanceOf(address) 70a08231154 function balanceOf(address owner) public view returns (uint256) {155 require(false, stub_error);156 owner;157 dummy;158 return 0;159 }160161 // @notice Find the owner of an RFT162 // @dev RFTs assigned to zero address are considered invalid, and queries163 // about them do throw.164 // Returns special 0xffffffffffffffffffffffffffffffffffffffff address for165 // the tokens that are partially owned.166 // @param tokenId The identifier for an RFT167 // @return The address of the owner of the RFT168 //169 // Selector: ownerOf(uint256) 6352211e170 function ownerOf(uint256 tokenId) public view returns (address) {171 require(false, stub_error);172 tokenId;173 dummy;174 return 0x0000000000000000000000000000000000000000;175 }176177 // @dev Not implemented178 //179 // Selector: safeTransferFromWithData(address,address,uint256,bytes) 60a11672180 function safeTransferFromWithData(181 address from,182 address to,183 uint256 tokenId,184 bytes memory data185 ) public {186 require(false, stub_error);187 from;188 to;189 tokenId;190 data;191 dummy = 0;192 }193194 // @dev Not implemented195 //196 // Selector: safeTransferFrom(address,address,uint256) 42842e0e197 function safeTransferFrom(198 address from,199 address to,200 uint256 tokenId201 ) public {202 require(false, stub_error);203 from;204 to;205 tokenId;206 dummy = 0;207 }208209 // @notice Transfer ownership of an RFT -- THE CALLER IS RESPONSIBLE210 // TO CONFIRM THAT `to` IS CAPABLE OF RECEIVING NFTS OR ELSE211 // THEY MAY BE PERMANENTLY LOST212 // @dev Throws unless `msg.sender` is the current owner or an authorized213 // operator for this RFT. Throws if `from` is not the current owner. Throws214 // if `to` is the zero address. Throws if `tokenId` is not a valid RFT.215 // Throws if RFT pieces have multiple owners.216 // @param from The current owner of the NFT217 // @param to The new owner218 // @param tokenId The NFT to transfer219 // @param _value Not used for an NFT220 //221 // Selector: transferFrom(address,address,uint256) 23b872dd222 function transferFrom(223 address from,224 address to,225 uint256 tokenId226 ) public {227 require(false, stub_error);228 from;229 to;230 tokenId;231 dummy = 0;232 }233234 // @dev Not implemented235 //236 // Selector: approve(address,uint256) 095ea7b3237 function approve(address approved, uint256 tokenId) public {238 require(false, stub_error);239 approved;240 tokenId;241 dummy = 0;242 }243244 // @dev Not implemented245 //246 // Selector: setApprovalForAll(address,bool) a22cb465247 function setApprovalForAll(address operator, bool approved) public {248 require(false, stub_error);249 operator;250 approved;251 dummy = 0;252 }253254 // @dev Not implemented255 //256 // Selector: getApproved(uint256) 081812fc257 function getApproved(uint256 tokenId) public view returns (address) {258 require(false, stub_error);259 tokenId;260 dummy;261 return 0x0000000000000000000000000000000000000000;262 }263264 // @dev Not implemented265 //266 // Selector: isApprovedForAll(address,address) e985e9c5267 function isApprovedForAll(address owner, address operator)268 public269 view270 returns (address)271 {272 require(false, stub_error);273 owner;274 operator;275 dummy;276 return 0x0000000000000000000000000000000000000000;277 }278}279280// Selector: 5b5e139f281contract ERC721Metadata is Dummy, ERC165 {282 // @notice A descriptive name for a collection of RFTs in this contract283 //284 // Selector: name() 06fdde03285 function name() public view returns (string memory) {286 require(false, stub_error);287 dummy;288 return "";289 }290291 // @notice An abbreviated name for RFTs in this contract292 //293 // Selector: symbol() 95d89b41294 function symbol() public view returns (string memory) {295 require(false, stub_error);296 dummy;297 return "";298 }299300 // @notice A distinct Uniform Resource Identifier (URI) for a given asset.301 //302 // @dev If the token has a `url` property and it is not empty, it is returned.303 // 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`.304 // If the collection property `baseURI` is empty or absent, return "" (empty string)305 // otherwise, if token property `suffix` present and is non-empty, return concatenation of baseURI and suffix306 // otherwise, return concatenation of `baseURI` and stringified token id (decimal stringifying, without paddings).307 //308 // @return token's const_metadata309 //310 // Selector: tokenURI(uint256) c87b56dd311 function tokenURI(uint256 tokenId) public view returns (string memory) {312 require(false, stub_error);313 tokenId;314 dummy;315 return "";316 }317}318319// Selector: 68ccfe89320contract ERC721Mintable is Dummy, ERC165, ERC721MintableEvents {321 // Selector: mintingFinished() 05d2035b322 function mintingFinished() public view returns (bool) {323 require(false, stub_error);324 dummy;325 return false;326 }327328 // @notice Function to mint token.329 // @dev `tokenId` should be obtained with `nextTokenId` method,330 // unlike standard, you can't specify it manually331 // @param to The new owner332 // @param tokenId ID of the minted RFT333 //334 // Selector: mint(address,uint256) 40c10f19335 function mint(address to, uint256 tokenId) public returns (bool) {336 require(false, stub_error);337 to;338 tokenId;339 dummy = 0;340 return false;341 }342343 // @notice Function to mint token with the given tokenUri.344 // @dev `tokenId` should be obtained with `nextTokenId` method,345 // unlike standard, you can't specify it manually346 // @param to The new owner347 // @param tokenId ID of the minted RFT348 // @param tokenUri Token URI that would be stored in the RFT properties349 //350 // Selector: mintWithTokenURI(address,uint256,string) 50bb4e7f351 function mintWithTokenURI(352 address to,353 uint256 tokenId,354 string memory tokenUri355 ) public returns (bool) {356 require(false, stub_error);357 to;358 tokenId;359 tokenUri;360 dummy = 0;361 return false;362 }363364 // @dev Not implemented365 //366 // Selector: finishMinting() 7d64bcb4367 function finishMinting() public returns (bool) {368 require(false, stub_error);369 dummy = 0;370 return false;371 }372}373374// Selector: 780e9d63375contract ERC721Enumerable is Dummy, ERC165 {376 // @notice Enumerate valid RFTs377 // @param index A counter less than `totalSupply()`378 // @return The token identifier for the `index`th NFT,379 // (sort order not specified)380 //381 // Selector: tokenByIndex(uint256) 4f6ccce7382 function tokenByIndex(uint256 index) public view returns (uint256) {383 require(false, stub_error);384 index;385 dummy;386 return 0;387 }388389 // Not implemented390 //391 // Selector: tokenOfOwnerByIndex(address,uint256) 2f745c59392 function tokenOfOwnerByIndex(address owner, uint256 index)393 public394 view395 returns (uint256)396 {397 require(false, stub_error);398 owner;399 index;400 dummy;401 return 0;402 }403404 // @notice Count RFTs tracked by this contract405 // @return A count of valid RFTs tracked by this contract, where each one of406 // them has an assigned and queryable owner not equal to the zero address407 //408 // Selector: totalSupply() 18160ddd409 function totalSupply() public view returns (uint256) {410 require(false, stub_error);411 dummy;412 return 0;413 }414}415416// Selector: 7d9262e6417contract Collection is Dummy, ERC165 {418 // Set collection property.419 //420 // @param key Property key.421 // @param value Propery value.422 //423 // Selector: setCollectionProperty(string,bytes) 2f073f66424 function setCollectionProperty(string memory key, bytes memory value)425 public426 {427 require(false, stub_error);428 key;429 value;430 dummy = 0;431 }432433 // Delete collection property.434 //435 // @param key Property key.436 //437 // Selector: deleteCollectionProperty(string) 7b7debce438 function deleteCollectionProperty(string memory key) public {439 require(false, stub_error);440 key;441 dummy = 0;442 }443444 // Get collection property.445 //446 // @dev Throws error if key not found.447 //448 // @param key Property key.449 // @return bytes The property corresponding to the key.450 //451 // Selector: collectionProperty(string) cf24fd6d452 function collectionProperty(string memory key)453 public454 view455 returns (bytes memory)456 {457 require(false, stub_error);458 key;459 dummy;460 return hex"";461 }462463 // Set the sponsor of the collection.464 //465 // @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.466 //467 // @param sponsor Address of the sponsor from whose account funds will be debited for operations with the contract.468 //469 // Selector: setCollectionSponsor(address) 7623402e470 function setCollectionSponsor(address sponsor) public {471 require(false, stub_error);472 sponsor;473 dummy = 0;474 }475476 // Collection sponsorship confirmation.477 //478 // @dev After setting the sponsor for the collection, it must be confirmed with this function.479 //480 // Selector: confirmCollectionSponsorship() 3c50e97a481 function confirmCollectionSponsorship() public {482 require(false, stub_error);483 dummy = 0;484 }485486 // Set limits for the collection.487 // @dev Throws error if limit not found.488 // @param limit Name of the limit. Valid names:489 // "accountTokenOwnershipLimit",490 // "sponsoredDataSize",491 // "sponsoredDataRateLimit",492 // "tokenLimit",493 // "sponsorTransferTimeout",494 // "sponsorApproveTimeout"495 // @param value Value of the limit.496 //497 // Selector: setCollectionLimit(string,uint32) 6a3841db498 function setCollectionLimit(string memory limit, uint32 value) public {499 require(false, stub_error);500 limit;501 value;502 dummy = 0;503 }504505 // Set limits for the collection.506 // @dev Throws error if limit not found.507 // @param limit Name of the limit. Valid names:508 // "ownerCanTransfer",509 // "ownerCanDestroy",510 // "transfersEnabled"511 // @param value Value of the limit.512 //513 // Selector: setCollectionLimit(string,bool) 993b7fba514 function setCollectionLimit(string memory limit, bool value) public {515 require(false, stub_error);516 limit;517 value;518 dummy = 0;519 }520521 // Get contract address.522 //523 // Selector: contractAddress() f6b4dfb4524 function contractAddress() public view returns (address) {525 require(false, stub_error);526 dummy;527 return 0x0000000000000000000000000000000000000000;528 }529530 // Add collection admin by substrate address.531 // @param new_admin Substrate administrator address.532 //533 // Selector: addCollectionAdminSubstrate(uint256) 5730062b534 function addCollectionAdminSubstrate(uint256 newAdmin) public {535 require(false, stub_error);536 newAdmin;537 dummy = 0;538 }539540 // Remove collection admin by substrate address.541 // @param admin Substrate administrator address.542 //543 // Selector: removeCollectionAdminSubstrate(uint256) 4048fcf9544 function removeCollectionAdminSubstrate(uint256 admin) public {545 require(false, stub_error);546 admin;547 dummy = 0;548 }549550 // Add collection admin.551 // @param new_admin Address of the added administrator.552 //553 // Selector: addCollectionAdmin(address) 92e462c7554 function addCollectionAdmin(address newAdmin) public {555 require(false, stub_error);556 newAdmin;557 dummy = 0;558 }559560 // Remove collection admin.561 //562 // @param new_admin Address of the removed administrator.563 //564 // Selector: removeCollectionAdmin(address) fafd7b42565 function removeCollectionAdmin(address admin) public {566 require(false, stub_error);567 admin;568 dummy = 0;569 }570571 // Toggle accessibility of collection nesting.572 //573 // @param enable If "true" degenerates to nesting: 'Owner' else to nesting: 'Disabled'574 //575 // Selector: setCollectionNesting(bool) 112d4586576 function setCollectionNesting(bool enable) public {577 require(false, stub_error);578 enable;579 dummy = 0;580 }581582 // Toggle accessibility of collection nesting.583 //584 // @param enable If "true" degenerates to nesting: {OwnerRestricted: [1, 2, 3]} else to nesting: 'Disabled'585 // @param collections Addresses of collections that will be available for nesting.586 //587 // Selector: setCollectionNesting(bool,address[]) 64872396588 function setCollectionNesting(bool enable, address[] memory collections)589 public590 {591 require(false, stub_error);592 enable;593 collections;594 dummy = 0;595 }596597 // Set the collection access method.598 // @param mode Access mode599 // 0 for Normal600 // 1 for AllowList601 //602 // Selector: setCollectionAccess(uint8) 41835d4c603 function setCollectionAccess(uint8 mode) public {604 require(false, stub_error);605 mode;606 dummy = 0;607 }608609 // Add the user to the allowed list.610 //611 // @param user Address of a trusted user.612 //613 // Selector: addToCollectionAllowList(address) 67844fe6614 function addToCollectionAllowList(address user) public {615 require(false, stub_error);616 user;617 dummy = 0;618 }619620 // Remove the user from the allowed list.621 //622 // @param user Address of a removed user.623 //624 // Selector: removeFromCollectionAllowList(address) 85c51acb625 function removeFromCollectionAllowList(address user) public {626 require(false, stub_error);627 user;628 dummy = 0;629 }630631 // Switch permission for minting.632 //633 // @param mode Enable if "true".634 //635 // Selector: setCollectionMintMode(bool) 00018e84636 function setCollectionMintMode(bool mode) public {637 require(false, stub_error);638 mode;639 dummy = 0;640 }641}642643// Selector: d74d154f644contract ERC721UniqueExtensions is Dummy, ERC165 {645 // @notice Transfer ownership of an RFT646 // @dev Throws unless `msg.sender` is the current owner. Throws if `to`647 // is the zero address. Throws if `tokenId` is not a valid RFT.648 // Throws if RFT pieces have multiple owners.649 // @param to The new owner650 // @param tokenId The RFT to transfer651 // @param _value Not used for an RFT652 //653 // Selector: transfer(address,uint256) a9059cbb654 function transfer(address to, uint256 tokenId) public {655 require(false, stub_error);656 to;657 tokenId;658 dummy = 0;659 }660661 // @notice Burns a specific ERC721 token.662 // @dev Throws unless `msg.sender` is the current owner or an authorized663 // operator for this RFT. Throws if `from` is not the current owner. Throws664 // if `to` is the zero address. Throws if `tokenId` is not a valid RFT.665 // Throws if RFT pieces have multiple owners.666 // @param from The current owner of the RFT667 // @param tokenId The RFT to transfer668 // @param _value Not used for an RFT669 //670 // Selector: burnFrom(address,uint256) 79cc6790671 function burnFrom(address from, uint256 tokenId) public {672 require(false, stub_error);673 from;674 tokenId;675 dummy = 0;676 }677678 // @notice Returns next free RFT ID.679 //680 // Selector: nextTokenId() 75794a3c681 function nextTokenId() public view returns (uint256) {682 require(false, stub_error);683 dummy;684 return 0;685 }686687 // @notice Function to mint multiple tokens.688 // @dev `tokenIds` should be an array of consecutive numbers and first number689 // should be obtained with `nextTokenId` method690 // @param to The new owner691 // @param tokenIds IDs of the minted RFTs692 //693 // Selector: mintBulk(address,uint256[]) 44a9945e694 function mintBulk(address to, uint256[] memory tokenIds)695 public696 returns (bool)697 {698 require(false, stub_error);699 to;700 tokenIds;701 dummy = 0;702 return false;703 }704705 // @notice Function to mint multiple tokens with the given tokenUris.706 // @dev `tokenIds` is array of pairs of token ID and token URI. Token IDs should be consecutive707 // numbers and first number should be obtained with `nextTokenId` method708 // @param to The new owner709 // @param tokens array of pairs of token ID and token URI for minted tokens710 //711 // Selector: mintBulkWithTokenURI(address,(uint256,string)[]) 36543006712 function mintBulkWithTokenURI(address to, Tuple0[] memory tokens)713 public714 returns (bool)715 {716 require(false, stub_error);717 to;718 tokens;719 dummy = 0;720 return false;721 }722}723724contract UniqueRefungible is725 Dummy,726 ERC165,727 ERC721,728 ERC721Metadata,729 ERC721Enumerable,730 ERC721UniqueExtensions,731 ERC721Mintable,732 ERC721Burnable,733 Collection,734 TokenProperties735{}