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

difftreelog

source

tests/src/eth/api/CollectionHelpers.sol3.6 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(address indexed owner, address indexed collectionId);18	event CollectionDestroyed(address indexed collectionId);19}2021/// @title Contract, which allows users to operate with collections22/// @dev the ERC-165 identifier for this interface is 0xd8b3603923interface CollectionHelpers is Dummy, ERC165, CollectionHelpersEvents {24	/// Create an NFT collection25	/// @param name Name of the collection26	/// @param description Informative description of the collection27	/// @param tokenPrefix Token prefix to represent the collection tokens in UI and user applications28	/// @return address Address of the newly created collection29	/// @dev EVM selector for this function is: 0x844af658,30	///  or in textual repr: createNFTCollection(string,string,string)31	function createNFTCollection(32		string memory name,33		string memory description,34		string memory tokenPrefix35	) external payable returns (address);3637	// /// Create an NFT collection38	// /// @param name Name of the collection39	// /// @param description Informative description of the collection40	// /// @param tokenPrefix Token prefix to represent the collection tokens in UI and user applications41	// /// @return address Address of the newly created collection42	// /// @dev EVM selector for this function is: 0xe34a6844,43	// ///  or in textual repr: createNonfungibleCollection(string,string,string)44	// function createNonfungibleCollection(string memory name, string memory description, string memory tokenPrefix) external payable returns (address);4546	/// @dev EVM selector for this function is: 0xab173450,47	///  or in textual repr: createRFTCollection(string,string,string)48	function createRFTCollection(49		string memory name,50		string memory description,51		string memory tokenPrefix52	) external payable returns (address);5354	/// @dev EVM selector for this function is: 0xa5596388,55	///  or in textual repr: createERC721MetadataCompatibleRFTCollection(string,string,string,string)56	function createERC721MetadataCompatibleRFTCollection(57		string memory name,58		string memory description,59		string memory tokenPrefix,60		string memory baseUri61	) external payable returns (address);6263	/// @dev EVM selector for this function is: 0x7335b79f,64	///  or in textual repr: createFTCollection(string,uint8,string,string)65	function createFTCollection(66		string memory name,67		uint8 decimals,68		string memory description,69		string memory tokenPrefix70	) external payable returns (address);7172	/// @dev EVM selector for this function is: 0x85624258,73	///  or in textual repr: makeCollectionERC721MetadataCompatible(address,string)74	function makeCollectionERC721MetadataCompatible(address collection, string memory baseUri) external;7576	/// @dev EVM selector for this function is: 0x564e321f,77	///  or in textual repr: destroyCollection(address)78	function destroyCollection(address collectionAddress) external;7980	/// Check if a collection exists81	/// @param collectionAddress Address of the collection in question82	/// @return bool Does the collection exist?83	/// @dev EVM selector for this function is: 0xc3de1494,84	///  or in textual repr: isCollectionExist(address)85	function isCollectionExist(address collectionAddress) external view returns (bool);8687	/// @dev EVM selector for this function is: 0xd23a7ab1,88	///  or in textual repr: collectionCreationFee()89	function collectionCreationFee() external view returns (uint256);90}