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

difftreelog

source

pallets/refungible/src/stubs/UniqueRefungible.sol6.1 KiBsourcehistory
1// SPDX-License-Identifier: OTHER2// This code is automatically generated34pragma solidity >=0.8.0 <0.9.0;56// Common stubs holder7contract Dummy {8	uint8 dummy;9	string stub_error = "this contract is implemented in native";10}1112contract ERC165 is Dummy {13	function supportsInterface(bytes4 interfaceID)14		external15		view16		returns (bool)17	{18		require(false, stub_error);19		interfaceID;20		return true;21	}22}2324// Selector: 7d9262e625contract Collection is Dummy, ERC165 {26	// Set collection property.27	//28	// @param key Property key.29	// @param value Propery value.30	//31	// Selector: setCollectionProperty(string,bytes) 2f073f6632	function setCollectionProperty(string memory key, bytes memory value)33		public34	{35		require(false, stub_error);36		key;37		value;38		dummy = 0;39	}4041	// Delete collection property.42	//43	// @param key Property key.44	//45	// Selector: deleteCollectionProperty(string) 7b7debce46	function deleteCollectionProperty(string memory key) public {47		require(false, stub_error);48		key;49		dummy = 0;50	}5152	// Get collection property.53	//54	// @dev Throws error if key not found.55	//56	// @param key Property key.57	// @return bytes The property corresponding to the key.58	//59	// Selector: collectionProperty(string) cf24fd6d60	function collectionProperty(string memory key)61		public62		view63		returns (bytes memory)64	{65		require(false, stub_error);66		key;67		dummy;68		return hex"";69	}7071	// Set the sponsor of the collection.72	//73	// @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.74	//75	// @param sponsor Address of the sponsor from whose account funds will be debited for operations with the contract.76	//77	// Selector: setCollectionSponsor(address) 7623402e78	function setCollectionSponsor(address sponsor) public {79		require(false, stub_error);80		sponsor;81		dummy = 0;82	}8384	// Collection sponsorship confirmation.85	//86	// @dev After setting the sponsor for the collection, it must be confirmed with this function.87	//88	// Selector: confirmCollectionSponsorship() 3c50e97a89	function confirmCollectionSponsorship() public {90		require(false, stub_error);91		dummy = 0;92	}9394	// Set limits for the collection.95	// @dev Throws error if limit not found.96	// @param limit Name of the limit. Valid names:97	// 	"accountTokenOwnershipLimit",98	// 	"sponsoredDataSize",99	// 	"sponsoredDataRateLimit",100	// 	"tokenLimit",101	// 	"sponsorTransferTimeout",102	// 	"sponsorApproveTimeout"103	// @param value Value of the limit.104	//105	// Selector: setCollectionLimit(string,uint32) 6a3841db106	function setCollectionLimit(string memory limit, uint32 value) public {107		require(false, stub_error);108		limit;109		value;110		dummy = 0;111	}112113	// Set limits for the collection.114	// @dev Throws error if limit not found.115	// @param limit Name of the limit. Valid names:116	// 	"ownerCanTransfer",117	// 	"ownerCanDestroy",118	// 	"transfersEnabled"119	// @param value Value of the limit.120	//121	// Selector: setCollectionLimit(string,bool) 993b7fba122	function setCollectionLimit(string memory limit, bool value) public {123		require(false, stub_error);124		limit;125		value;126		dummy = 0;127	}128129	// Get contract address.130	//131	// Selector: contractAddress() f6b4dfb4132	function contractAddress() public view returns (address) {133		require(false, stub_error);134		dummy;135		return 0x0000000000000000000000000000000000000000;136	}137138	// Add collection admin by substrate address.139	// @param new_admin Substrate administrator address.140	//141	// Selector: addCollectionAdminSubstrate(uint256) 5730062b142	function addCollectionAdminSubstrate(uint256 newAdmin) public {143		require(false, stub_error);144		newAdmin;145		dummy = 0;146	}147148	// Remove collection admin by substrate address.149	// @param admin Substrate administrator address.150	//151	// Selector: removeCollectionAdminSubstrate(uint256) 4048fcf9152	function removeCollectionAdminSubstrate(uint256 admin) public {153		require(false, stub_error);154		admin;155		dummy = 0;156	}157158	// Add collection admin.159	// @param new_admin Address of the added administrator.160	//161	// Selector: addCollectionAdmin(address) 92e462c7162	function addCollectionAdmin(address newAdmin) public {163		require(false, stub_error);164		newAdmin;165		dummy = 0;166	}167168	// Remove collection admin.169	//170	// @param new_admin Address of the removed administrator.171	//172	// Selector: removeCollectionAdmin(address) fafd7b42173	function removeCollectionAdmin(address admin) public {174		require(false, stub_error);175		admin;176		dummy = 0;177	}178179	// Toggle accessibility of collection nesting.180	//181	// @param enable If "true" degenerates to nesting: 'Owner' else to nesting: 'Disabled'182	//183	// Selector: setCollectionNesting(bool) 112d4586184	function setCollectionNesting(bool enable) public {185		require(false, stub_error);186		enable;187		dummy = 0;188	}189190	// Toggle accessibility of collection nesting.191	//192	// @param enable If "true" degenerates to nesting: {OwnerRestricted: [1, 2, 3]} else to nesting: 'Disabled'193	// @param collections Addresses of collections that will be available for nesting.194	//195	// Selector: setCollectionNesting(bool,address[]) 64872396196	function setCollectionNesting(bool enable, address[] memory collections)197		public198	{199		require(false, stub_error);200		enable;201		collections;202		dummy = 0;203	}204205	// Set the collection access method.206	// @param mode Access mode207	// 	0 for Normal208	// 	1 for AllowList209	//210	// Selector: setCollectionAccess(uint8) 41835d4c211	function setCollectionAccess(uint8 mode) public {212		require(false, stub_error);213		mode;214		dummy = 0;215	}216217	// Add the user to the allowed list.218	//219	// @param user Address of a trusted user.220	//221	// Selector: addToCollectionAllowList(address) 67844fe6222	function addToCollectionAllowList(address user) public {223		require(false, stub_error);224		user;225		dummy = 0;226	}227228	// Remove the user from the allowed list.229	//230	// @param user Address of a removed user.231	//232	// Selector: removeFromCollectionAllowList(address) 85c51acb233	function removeFromCollectionAllowList(address user) public {234		require(false, stub_error);235		user;236		dummy = 0;237	}238239	// Switch permission for minting.240	//241	// @param mode Enable if "true".242	//243	// Selector: setCollectionMintMode(bool) 00018e84244	function setCollectionMintMode(bool mode) public {245		require(false, stub_error);246		mode;247		dummy = 0;248	}249}250251contract UniqueRefungible is Dummy, ERC165, Collection {}