git.delta.rocks / unique-network / refs/commits / c2ed35549db9

difftreelog

source

pallets/unique/src/eth/stubs/CollectionHelpers.sol2.8 KiBsourcehistory
1// SPDX-License-Identifier: OTHER2// This code is automatically generated34pragma solidity >=0.8.0 <0.9.0;56// 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)14		external15		view16		returns (bool)17	{18		require(false, stub_error);19		interfaceID;20		return true;21	}22}2324// Inline25contract CollectionHelpersEvents {26	event CollectionCreated(27		address indexed owner,28		address indexed collectionId29	);30}3132// Selector: 675f307433contract CollectionHelpers is Dummy, ERC165, CollectionHelpersEvents {34	// Create an NFT collection35	// @param name Name of the collection36	// @param description Informative description of the collection37	// @param token_prefix Token prefix to represent the collection tokens in UI and user applications38	// @return address Address of the newly created collection39	//40	// Selector: createNonfungibleCollection(string,string,string) e34a684441	function createNonfungibleCollection(42		string memory name,43		string memory description,44		string memory tokenPrefix45	) public returns (address) {46		require(false, stub_error);47		name;48		description;49		tokenPrefix;50		dummy = 0;51		return 0x0000000000000000000000000000000000000000;52	}5354	// Selector: createERC721MetadataCompatibleCollection(string,string,string,string) a634a5f955	function createERC721MetadataCompatibleCollection(56		string memory name,57		string memory description,58		string memory tokenPrefix,59		string memory baseUri60	) public returns (address) {61		require(false, stub_error);62		name;63		description;64		tokenPrefix;65		baseUri;66		dummy = 0;67		return 0x0000000000000000000000000000000000000000;68	}6970	// Selector: createRefungibleCollection(string,string,string) 44a68ad571	function createRefungibleCollection(72		string memory name,73		string memory description,74		string memory tokenPrefix75	) public returns (address) {76		require(false, stub_error);77		name;78		description;79		tokenPrefix;80		dummy = 0;81		return 0x0000000000000000000000000000000000000000;82	}8384	// Selector: createERC721MetadataCompatibleRFTCollection(string,string,string,string) a559638885	function createERC721MetadataCompatibleRFTCollection(86		string memory name,87		string memory description,88		string memory tokenPrefix,89		string memory baseUri90	) public returns (address) {91		require(false, stub_error);92		name;93		description;94		tokenPrefix;95		baseUri;96		dummy = 0;97		return 0x0000000000000000000000000000000000000000;98	}99100	// Check if a collection exists101	// @param collection_address Address of the collection in question102	// @return bool Does the collection exist?103	//104	// Selector: isCollectionExist(address) c3de1494105	function isCollectionExist(address collectionAddress)106		public107		view108		returns (bool)109	{110		require(false, stub_error);111		collectionAddress;112		dummy;113		return false;114	}115}