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/// @dev inlined interface21contract CollectionHelpersEvents {22 event CollectionCreated(address indexed owner, address indexed collectionId);23 event CollectionDestroyed(address indexed collectionId);24 event CollectionChanged(address indexed collectionId);25 event TokenChanged(address indexed collectionId, uint256 tokenId);26}2728/// @title Contract, which allows users to operate with collections29/// @dev the ERC-165 identifier for this interface is 0xe65011aa30contract CollectionHelpers is Dummy, ERC165, CollectionHelpersEvents {31 /// Create an NFT collection32 /// @param name Name of the collection33 /// @param description Informative description of the collection34 /// @param tokenPrefix Token prefix to represent the collection tokens in UI and user applications35 /// @return address Address of the newly created collection36 /// @dev EVM selector for this function is: 0x844af658,37 /// or in textual repr: createNFTCollection(string,string,string)38 function createNFTCollection(39 string memory name,40 string memory description,41 string memory tokenPrefix42 ) public payable returns (address) {43 require(false, stub_error);44 name;45 description;46 tokenPrefix;47 dummy = 0;48 return 0x0000000000000000000000000000000000000000;49 }5051 // /// Create an NFT collection52 // /// @param name Name of the collection53 // /// @param description Informative description of the collection54 // /// @param tokenPrefix Token prefix to represent the collection tokens in UI and user applications55 // /// @return address Address of the newly created collection56 // /// @dev EVM selector for this function is: 0xe34a6844,57 // /// or in textual repr: createNonfungibleCollection(string,string,string)58 // function createNonfungibleCollection(string memory name, string memory description, string memory tokenPrefix) public payable returns (address) {59 // require(false, stub_error);60 // name;61 // description;62 // tokenPrefix;63 // dummy = 0;64 // return 0x0000000000000000000000000000000000000000;65 // }6667 /// @dev EVM selector for this function is: 0xab173450,68 /// or in textual repr: createRFTCollection(string,string,string)69 function createRFTCollection(70 string memory name,71 string memory description,72 string memory tokenPrefix73 ) public payable returns (address) {74 require(false, stub_error);75 name;76 description;77 tokenPrefix;78 dummy = 0;79 return 0x0000000000000000000000000000000000000000;80 }8182 /// @dev EVM selector for this function is: 0x7335b79f,83 /// or in textual repr: createFTCollection(string,uint8,string,string)84 function createFTCollection(85 string memory name,86 uint8 decimals,87 string memory description,88 string memory tokenPrefix89 ) public payable returns (address) {90 require(false, stub_error);91 name;92 decimals;93 description;94 tokenPrefix;95 dummy = 0;96 return 0x0000000000000000000000000000000000000000;97 }9899 /// @dev EVM selector for this function is: 0x85624258,100 /// or in textual repr: makeCollectionERC721MetadataCompatible(address,string)101 function makeCollectionERC721MetadataCompatible(address collection, string memory baseUri) public {102 require(false, stub_error);103 collection;104 baseUri;105 dummy = 0;106 }107108 /// @dev EVM selector for this function is: 0x564e321f,109 /// or in textual repr: destroyCollection(address)110 function destroyCollection(address collectionAddress) public {111 require(false, stub_error);112 collectionAddress;113 dummy = 0;114 }115116 /// Check if a collection exists117 /// @param collectionAddress Address of the collection in question118 /// @return bool Does the collection exist?119 /// @dev EVM selector for this function is: 0xc3de1494,120 /// or in textual repr: isCollectionExist(address)121 function isCollectionExist(address collectionAddress) public view returns (bool) {122 require(false, stub_error);123 collectionAddress;124 dummy;125 return false;126 }127128 /// @dev EVM selector for this function is: 0xd23a7ab1,129 /// or in textual repr: collectionCreationFee()130 function collectionCreationFee() public view returns (uint256) {131 require(false, stub_error);132 dummy;133 return 0;134 }135136 /// Returns address of a collection.137 /// @param collectionId - CollectionId of the collection138 /// @return eth mirror address of the collection139 /// @dev EVM selector for this function is: 0x2e716683,140 /// or in textual repr: collectionAddress(uint32)141 function collectionAddress(uint32 collectionId) public view returns (address) {142 require(false, stub_error);143 collectionId;144 dummy;145 return 0x0000000000000000000000000000000000000000;146 }147148 /// Returns collectionId of a collection.149 /// @param collectionAddress - Eth address of the collection150 /// @return collectionId of the collection151 /// @dev EVM selector for this function is: 0xb5cb7498,152 /// or in textual repr: collectionId(address)153 function collectionId(address collectionAddress) public view returns (uint32) {154 require(false, stub_error);155 collectionAddress;156 dummy;157 return 0;158 }159}