git.delta.rocks / unique-network / refs/commits / 460ecccc2904

difftreelog

source

pallets/unique/src/eth/stubs/CollectionHelpers.sol3.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 0x5891863127contract 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(string memory name, string memory description, string memory tokenPrefix) public payable returns (address) {56	// 	require(false, stub_error);57	// 	name;58	// 	description;59	// 	tokenPrefix;60	// 	dummy = 0;61	// 	return 0x0000000000000000000000000000000000000000;62	// }6364	/// @dev EVM selector for this function is: 0xab173450,65	///  or in textual repr: createRFTCollection(string,string,string)66	function createRFTCollection(67		string memory name,68		string memory description,69		string memory tokenPrefix70	) public payable returns (address) {71		require(false, stub_error);72		name;73		description;74		tokenPrefix;75		dummy = 0;76		return 0x0000000000000000000000000000000000000000;77	}7879	/// @dev EVM selector for this function is: 0x85624258,80	///  or in textual repr: makeCollectionERC721MetadataCompatible(address,string)81	function makeCollectionERC721MetadataCompatible(address collection, string memory baseUri) public {82		require(false, stub_error);83		collection;84		baseUri;85		dummy = 0;86	}8788	/// Check if a collection exists89	/// @param collectionAddress Address of the collection in question90	/// @return bool Does the collection exist?91	/// @dev EVM selector for this function is: 0xc3de1494,92	///  or in textual repr: isCollectionExist(address)93	function isCollectionExist(address collectionAddress) public view returns (bool) {94		require(false, stub_error);95		collectionAddress;96		dummy;97		return false;98	}99100	/// @dev EVM selector for this function is: 0xd23a7ab1,101	///  or in textual repr: collectionCreationFee()102	function collectionCreationFee() public view returns (uint256) {103		require(false, stub_error);104		dummy;105		return 0;106	}107}