git.delta.rocks / unique-network / refs/commits / 229420a9c3a2

difftreelog

source

tests/src/eth/api/CollectionHelpers.sol2.8 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}1920/// @title Contract, which allows users to operate with collections21/// @dev the ERC-165 identifier for this interface is 0x5891863122interface CollectionHelpers is Dummy, ERC165, CollectionHelpersEvents {23	/// Create an NFT collection24	/// @param name Name of the collection25	/// @param description Informative description of the collection26	/// @param tokenPrefix Token prefix to represent the collection tokens in UI and user applications27	/// @return address Address of the newly created collection28	/// @dev EVM selector for this function is: 0x844af658,29	///  or in textual repr: createNFTCollection(string,string,string)30	function createNFTCollection(31		string memory name,32		string memory description,33		string memory tokenPrefix34	) external payable returns (address);3536	// /// Create an NFT collection37	// /// @param name Name of the collection38	// /// @param description Informative description of the collection39	// /// @param tokenPrefix Token prefix to represent the collection tokens in UI and user applications40	// /// @return address Address of the newly created collection41	// /// @dev EVM selector for this function is: 0xe34a6844,42	// ///  or in textual repr: createNonfungibleCollection(string,string,string)43	// function createNonfungibleCollection(string memory name, string memory description, string memory tokenPrefix) external payable returns (address);4445	/// @dev EVM selector for this function is: 0xab173450,46	///  or in textual repr: createRFTCollection(string,string,string)47	function createRFTCollection(48		string memory name,49		string memory description,50		string memory tokenPrefix51	) external payable returns (address);5253	/// @dev EVM selector for this function is: 0x85624258,54	///  or in textual repr: makeCollectionERC721MetadataCompatible(address,string)55	function makeCollectionERC721MetadataCompatible(address collection, string memory baseUri) external;5657	/// Check if a collection exists58	/// @param collectionAddress Address of the collection in question59	/// @return bool Does the collection exist?60	/// @dev EVM selector for this function is: 0xc3de1494,61	///  or in textual repr: isCollectionExist(address)62	function isCollectionExist(address collectionAddress) external view returns (bool);6364	/// @dev EVM selector for this function is: 0xd23a7ab1,65	///  or in textual repr: collectionCreationFee()66	function collectionCreationFee() external view returns (uint256);67}