git.delta.rocks / unique-network / refs/commits / 876ef621bd1e

difftreelog

source

pallets/unique/src/eth/stubs/CollectionHelpers.sol4.5 KiBsourcehistory
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}2425/// @title Contract, which allows users to operate with collections26/// @dev the ERC-165 identifier for this interface is 0xf62c7aa927contract CollectionHelpers is Dummy, ERC165, CollectionHelpersEvents {28	/// Create an NFT collection29	/// @param name Name of the collection30	/// @param description Informative description of the collection31	/// @param tokenPrefix Token prefix to represent the collection tokens in UI and user applications32	/// @return address Address of the newly created collection33	/// @dev EVM selector for this function is: 0x844af658,34	///  or in textual repr: createNFTCollection(string,string,string)35	function createNFTCollection(36		string memory name,37		string memory description,38		string memory tokenPrefix39	) public payable returns (address) {40		require(false, stub_error);41		name;42		description;43		tokenPrefix;44		dummy = 0;45		return 0x0000000000000000000000000000000000000000;46	}4748	/// Create an NFT collection49	/// @param name Name of the collection50	/// @param description Informative description of the collection51	/// @param tokenPrefix Token prefix to represent the collection tokens in UI and user applications52	/// @return address Address of the newly created collection53	/// @dev EVM selector for this function is: 0xe34a6844,54	///  or in textual repr: createNonfungibleCollection(string,string,string)55	function createNonfungibleCollection(56		string memory name,57		string memory description,58		string memory tokenPrefix59	) public payable returns (address) {60		require(false, stub_error);61		name;62		description;63		tokenPrefix;64		dummy = 0;65		return 0x0000000000000000000000000000000000000000;66	}6768	/// @dev EVM selector for this function is: 0xd1df968c,69	///  or in textual repr: createERC721MetadataNFTCollection(string,string,string,string)70	function createERC721MetadataNFTCollection(71		string memory name,72		string memory description,73		string memory tokenPrefix,74		string memory baseUri75	) public payable returns (address) {76		require(false, stub_error);77		name;78		description;79		tokenPrefix;80		baseUri;81		dummy = 0;82		return 0x0000000000000000000000000000000000000000;83	}8485	/// @dev EVM selector for this function is: 0xab173450,86	///  or in textual repr: createRFTCollection(string,string,string)87	function createRFTCollection(88		string memory name,89		string memory description,90		string memory tokenPrefix91	) public payable returns (address) {92		require(false, stub_error);93		name;94		description;95		tokenPrefix;96		dummy = 0;97		return 0x0000000000000000000000000000000000000000;98	}99100	/// @dev EVM selector for this function is: 0x44a68ad5,101	///  or in textual repr: createRefungibleCollection(string,string,string)102	function createRefungibleCollection(103		string memory name,104		string memory description,105		string memory tokenPrefix106	) public payable returns (address) {107		require(false, stub_error);108		name;109		description;110		tokenPrefix;111		dummy = 0;112		return 0x0000000000000000000000000000000000000000;113	}114115	/// @dev EVM selector for this function is: 0xbea6a299,116	///  or in textual repr: createERC721MetadataRFTCollection(string,string,string,string)117	function createERC721MetadataRFTCollection(118		string memory name,119		string memory description,120		string memory tokenPrefix,121		string memory baseUri122	) public payable returns (address) {123		require(false, stub_error);124		name;125		description;126		tokenPrefix;127		baseUri;128		dummy = 0;129		return 0x0000000000000000000000000000000000000000;130	}131132	/// Check if a collection exists133	/// @param collectionAddress Address of the collection in question134	/// @return bool Does the collection exist?135	/// @dev EVM selector for this function is: 0xc3de1494,136	///  or in textual repr: isCollectionExist(address)137	function isCollectionExist(address collectionAddress) public view returns (bool) {138		require(false, stub_error);139		collectionAddress;140		dummy;141		return false;142	}143144	/// @dev EVM selector for this function is: 0xd23a7ab1,145	///  or in textual repr: collectionCreationFee()146	function collectionCreationFee() public view returns (uint256) {147		require(false, stub_error);148		dummy;149		return 0;150	}151}