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

difftreelog

source

tests/src/eth/api/CollectionHelpers.sol3.9 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 0xe65011aa23interface 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: 0x7335b79f,55	///  or in textual repr: createFTCollection(string,uint8,string,string)56	function createFTCollection(57		string memory name,58		uint8 decimals,59		string memory description,60		string memory tokenPrefix61	) external payable returns (address);6263	/// @dev EVM selector for this function is: 0x85624258,64	///  or in textual repr: makeCollectionERC721MetadataCompatible(address,string)65	function makeCollectionERC721MetadataCompatible(address collection, string memory baseUri) external;6667	/// @dev EVM selector for this function is: 0x564e321f,68	///  or in textual repr: destroyCollection(address)69	function destroyCollection(address collectionAddress) external;7071	/// Check if a collection exists72	/// @param collectionAddress Address of the collection in question73	/// @return bool Does the collection exist?74	/// @dev EVM selector for this function is: 0xc3de1494,75	///  or in textual repr: isCollectionExist(address)76	function isCollectionExist(address collectionAddress) external view returns (bool);7778	/// @dev EVM selector for this function is: 0xd23a7ab1,79	///  or in textual repr: collectionCreationFee()80	function collectionCreationFee() external view returns (uint256);8182	/// Returns address of a collection.83	/// @param collectionId  - CollectionId  of the collection84	/// @return eth mirror address of the collection85	/// @dev EVM selector for this function is: 0x2e716683,86	///  or in textual repr: collectionAddress(uint32)87	function collectionAddress(uint32 collectionId) external view returns (address);8889	/// Returns collectionId of a collection.90	/// @param collectionAddress  - Eth address of the collection91	/// @return collectionId of the collection92	/// @dev EVM selector for this function is: 0xb5cb7498,93	///  or in textual repr: collectionId(address)94	function collectionId(address collectionAddress) external view returns (uint32);95}