git.delta.rocks / unique-network / refs/commits / 781ae2a84f77

difftreelog

source

tests/src/eth/api/CollectionHelpers.sol2.5 KiBsourcehistory
1// SPDX-License-Identifier: OTHER2// This code is automatically generated34pragma solidity >=0.8.0 <0.9.0;56/// @dev common stubs holder7interface Dummy {89}1011interface ERC165 is Dummy {12	function supportsInterface(bytes4 interfaceID) external view returns (bool);13}1415/// @dev inlined interface16interface CollectionHelpersEvents {17	event CollectionCreated(18		address indexed owner,19		address indexed collectionId20	);21}2223/// @title Contract, which allows users to operate with collections24/// @dev the ERC-165 identifier for this interface is 0x675f307425interface CollectionHelpers is Dummy, ERC165, CollectionHelpersEvents {26	/// Create an NFT collection27	/// @param name Name of the collection28	/// @param description Informative description of the collection29	/// @param tokenPrefix Token prefix to represent the collection tokens in UI and user applications30	/// @return address Address of the newly created collection31	/// @dev EVM selector for this function is: 0xe34a6844,32	///  or in textual repr: createNonfungibleCollection(string,string,string)33	function createNonfungibleCollection(34		string memory name,35		string memory description,36		string memory tokenPrefix37	) external returns (address);3839	/// @dev EVM selector for this function is: 0xa634a5f9,40	///  or in textual repr: createERC721MetadataCompatibleCollection(string,string,string,string)41	function createERC721MetadataCompatibleCollection(42		string memory name,43		string memory description,44		string memory tokenPrefix,45		string memory baseUri46	) external returns (address);4748	/// @dev EVM selector for this function is: 0x44a68ad5,49	///  or in textual repr: createRefungibleCollection(string,string,string)50	function createRefungibleCollection(51		string memory name,52		string memory description,53		string memory tokenPrefix54	) external returns (address);5556	/// @dev EVM selector for this function is: 0xa5596388,57	///  or in textual repr: createERC721MetadataCompatibleRFTCollection(string,string,string,string)58	function createERC721MetadataCompatibleRFTCollection(59		string memory name,60		string memory description,61		string memory tokenPrefix,62		string memory baseUri63	) external returns (address);6465	/// Check if a collection exists66	/// @param collectionAddress Address of the collection in question67	/// @return bool Does the collection exist?68	/// @dev EVM selector for this function is: 0xc3de1494,69	///  or in textual repr: isCollectionExist(address)70	function isCollectionExist(address collectionAddress)71		external72		view73		returns (bool);74}