git.delta.rocks / unique-network / refs/commits / 5131df7cd674

difftreelog

source

tests/src/eth/api/CollectionHelpers.sol3.0 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 0x0edfb42e23interface 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: 0x85624258,55	///  or in textual repr: makeCollectionERC721MetadataCompatible(address,string)56	function makeCollectionERC721MetadataCompatible(address collection, string memory baseUri) external;5758	/// @dev EVM selector for this function is: 0x564e321f,59	///  or in textual repr: destroyCollection(address)60	function destroyCollection(address collectionAddress) external;6162	/// Check if a collection exists63	/// @param collectionAddress Address of the collection in question64	/// @return bool Does the collection exist?65	/// @dev EVM selector for this function is: 0xc3de1494,66	///  or in textual repr: isCollectionExist(address)67	function isCollectionExist(address collectionAddress) external view returns (bool);6869	/// @dev EVM selector for this function is: 0xd23a7ab1,70	///  or in textual repr: collectionCreationFee()71	function collectionCreationFee() external view returns (uint256);72}