git.delta.rocks / unique-network / refs/commits / 7d1859c1e151

difftreelog

source

tests/src/eth/api/UniqueRefungible.sol10.1 KiBsourcehistory
1// SPDX-License-Identifier: OTHER2// This code is automatically generated34pragma solidity >=0.8.0 <0.9.0;56// Anonymous struct7struct Tuple0 {8	uint256 field_0;9	string field_1;10}1112// Common stubs holder13interface Dummy {1415}1617interface ERC165 is Dummy {18	function supportsInterface(bytes4 interfaceID) external view returns (bool);19}2021// Inline22interface ERC721Events {23	event Transfer(24		address indexed from,25		address indexed to,26		uint256 indexed tokenId27	);28	event Approval(29		address indexed owner,30		address indexed approved,31		uint256 indexed tokenId32	);33	event ApprovalForAll(34		address indexed owner,35		address indexed operator,36		bool approved37	);38}3940// Inline41interface ERC721MintableEvents {42	event MintingFinished();43}4445// Selector: 0784ee6446interface ERC721UniqueExtensions is Dummy, ERC165 {47	// @notice Returns next free RFT ID.48	//49	// Selector: nextTokenId() 75794a3c50	function nextTokenId() external view returns (uint256);5152	// Selector: mintBulk(address,uint256[]) 44a9945e53	function mintBulk(address to, uint256[] memory tokenIds)54		external55		returns (bool);5657	// Selector: mintBulkWithTokenURI(address,(uint256,string)[]) 3654300658	function mintBulkWithTokenURI(address to, Tuple0[] memory tokens)59		external60		returns (bool);61}6263// Selector: 4136937764interface TokenProperties is Dummy, ERC165 {65	// Selector: setTokenPropertyPermission(string,bool,bool,bool) 222d97fa66	function setTokenPropertyPermission(67		string memory key,68		bool isMutable,69		bool collectionAdmin,70		bool tokenOwner71	) external;7273	// Selector: setProperty(uint256,string,bytes) 1752d67b74	function setProperty(75		uint256 tokenId,76		string memory key,77		bytes memory value78	) external;7980	// Selector: deleteProperty(uint256,string) 066111d181	function deleteProperty(uint256 tokenId, string memory key) external;8283	// Throws error if key not found84	//85	// Selector: property(uint256,string) 7228c32786	function property(uint256 tokenId, string memory key)87		external88		view89		returns (bytes memory);90}9192// Selector: 42966c6893interface ERC721Burnable is Dummy, ERC165 {94	// @dev Not implemented95	//96	// Selector: burn(uint256) 42966c6897	function burn(uint256 tokenId) external;98}99100// Selector: 58800161101interface ERC721 is Dummy, ERC165, ERC721Events {102	// Selector: balanceOf(address) 70a08231103	function balanceOf(address owner) external view returns (uint256);104105	// Selector: ownerOf(uint256) 6352211e106	function ownerOf(uint256 tokenId) external view returns (address);107108	// @dev Not implemented109	//110	// Selector: safeTransferFromWithData(address,address,uint256,bytes) 60a11672111	function safeTransferFromWithData(112		address from,113		address to,114		uint256 tokenId,115		bytes memory data116	) external;117118	// @dev Not implemented119	//120	// Selector: safeTransferFrom(address,address,uint256) 42842e0e121	function safeTransferFrom(122		address from,123		address to,124		uint256 tokenId125	) external;126127	// @dev Not implemented128	//129	// Selector: transferFrom(address,address,uint256) 23b872dd130	function transferFrom(131		address from,132		address to,133		uint256 tokenId134	) external;135136	// @dev Not implemented137	//138	// Selector: approve(address,uint256) 095ea7b3139	function approve(address approved, uint256 tokenId) external;140141	// @dev Not implemented142	//143	// Selector: setApprovalForAll(address,bool) a22cb465144	function setApprovalForAll(address operator, bool approved) external;145146	// @dev Not implemented147	//148	// Selector: getApproved(uint256) 081812fc149	function getApproved(uint256 tokenId) external view returns (address);150151	// @dev Not implemented152	//153	// Selector: isApprovedForAll(address,address) e985e9c5154	function isApprovedForAll(address owner, address operator)155		external156		view157		returns (address);158}159160// Selector: 5b5e139f161interface ERC721Metadata is Dummy, ERC165 {162	// Selector: name() 06fdde03163	function name() external view returns (string memory);164165	// Selector: symbol() 95d89b41166	function symbol() external view returns (string memory);167168	// Returns token's const_metadata169	//170	// Selector: tokenURI(uint256) c87b56dd171	function tokenURI(uint256 tokenId) external view returns (string memory);172}173174// Selector: 68ccfe89175interface ERC721Mintable is Dummy, ERC165, ERC721MintableEvents {176	// Selector: mintingFinished() 05d2035b177	function mintingFinished() external view returns (bool);178179	// `token_id` should be obtained with `next_token_id` method,180	// unlike standard, you can't specify it manually181	//182	// Selector: mint(address,uint256) 40c10f19183	function mint(address to, uint256 tokenId) external returns (bool);184185	// `token_id` should be obtained with `next_token_id` method,186	// unlike standard, you can't specify it manually187	//188	// Selector: mintWithTokenURI(address,uint256,string) 50bb4e7f189	function mintWithTokenURI(190		address to,191		uint256 tokenId,192		string memory tokenUri193	) external returns (bool);194195	// @dev Not implemented196	//197	// Selector: finishMinting() 7d64bcb4198	function finishMinting() external returns (bool);199}200201// Selector: 780e9d63202interface ERC721Enumerable is Dummy, ERC165 {203	// Selector: tokenByIndex(uint256) 4f6ccce7204	function tokenByIndex(uint256 index) external view returns (uint256);205206	// Not implemented207	//208	// Selector: tokenOfOwnerByIndex(address,uint256) 2f745c59209	function tokenOfOwnerByIndex(address owner, uint256 index)210		external211		view212		returns (uint256);213214	// Selector: totalSupply() 18160ddd215	function totalSupply() external view returns (uint256);216}217218// Selector: 7d9262e6219interface Collection is Dummy, ERC165 {220	// Set collection property.221	//222	// @param key Property key.223	// @param value Propery value.224	//225	// Selector: setCollectionProperty(string,bytes) 2f073f66226	function setCollectionProperty(string memory key, bytes memory value)227		external;228229	// Delete collection property.230	//231	// @param key Property key.232	//233	// Selector: deleteCollectionProperty(string) 7b7debce234	function deleteCollectionProperty(string memory key) external;235236	// Get collection property.237	//238	// @dev Throws error if key not found.239	//240	// @param key Property key.241	// @return bytes The property corresponding to the key.242	//243	// Selector: collectionProperty(string) cf24fd6d244	function collectionProperty(string memory key)245		external246		view247		returns (bytes memory);248249	// Set the sponsor of the collection.250	//251	// @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.252	//253	// @param sponsor Address of the sponsor from whose account funds will be debited for operations with the contract.254	//255	// Selector: setCollectionSponsor(address) 7623402e256	function setCollectionSponsor(address sponsor) external;257258	// Collection sponsorship confirmation.259	//260	// @dev After setting the sponsor for the collection, it must be confirmed with this function.261	//262	// Selector: confirmCollectionSponsorship() 3c50e97a263	function confirmCollectionSponsorship() external;264265	// Set limits for the collection.266	// @dev Throws error if limit not found.267	// @param limit Name of the limit. Valid names:268	// 	"accountTokenOwnershipLimit",269	// 	"sponsoredDataSize",270	// 	"sponsoredDataRateLimit",271	// 	"tokenLimit",272	// 	"sponsorTransferTimeout",273	// 	"sponsorApproveTimeout"274	// @param value Value of the limit.275	//276	// Selector: setCollectionLimit(string,uint32) 6a3841db277	function setCollectionLimit(string memory limit, uint32 value) external;278279	// Set limits for the collection.280	// @dev Throws error if limit not found.281	// @param limit Name of the limit. Valid names:282	// 	"ownerCanTransfer",283	// 	"ownerCanDestroy",284	// 	"transfersEnabled"285	// @param value Value of the limit.286	//287	// Selector: setCollectionLimit(string,bool) 993b7fba288	function setCollectionLimit(string memory limit, bool value) external;289290	// Get contract address.291	//292	// Selector: contractAddress() f6b4dfb4293	function contractAddress() external view returns (address);294295	// Add collection admin by substrate address.296	// @param new_admin Substrate administrator address.297	//298	// Selector: addCollectionAdminSubstrate(uint256) 5730062b299	function addCollectionAdminSubstrate(uint256 newAdmin) external;300301	// Remove collection admin by substrate address.302	// @param admin Substrate administrator address.303	//304	// Selector: removeCollectionAdminSubstrate(uint256) 4048fcf9305	function removeCollectionAdminSubstrate(uint256 admin) external;306307	// Add collection admin.308	// @param new_admin Address of the added administrator.309	//310	// Selector: addCollectionAdmin(address) 92e462c7311	function addCollectionAdmin(address newAdmin) external;312313	// Remove collection admin.314	//315	// @param new_admin Address of the removed administrator.316	//317	// Selector: removeCollectionAdmin(address) fafd7b42318	function removeCollectionAdmin(address admin) external;319320	// Toggle accessibility of collection nesting.321	//322	// @param enable If "true" degenerates to nesting: 'Owner' else to nesting: 'Disabled'323	//324	// Selector: setCollectionNesting(bool) 112d4586325	function setCollectionNesting(bool enable) external;326327	// Toggle accessibility of collection nesting.328	//329	// @param enable If "true" degenerates to nesting: {OwnerRestricted: [1, 2, 3]} else to nesting: 'Disabled'330	// @param collections Addresses of collections that will be available for nesting.331	//332	// Selector: setCollectionNesting(bool,address[]) 64872396333	function setCollectionNesting(bool enable, address[] memory collections)334		external;335336	// Set the collection access method.337	// @param mode Access mode338	// 	0 for Normal339	// 	1 for AllowList340	//341	// Selector: setCollectionAccess(uint8) 41835d4c342	function setCollectionAccess(uint8 mode) external;343344	// Add the user to the allowed list.345	//346	// @param user Address of a trusted user.347	//348	// Selector: addToCollectionAllowList(address) 67844fe6349	function addToCollectionAllowList(address user) external;350351	// Remove the user from the allowed list.352	//353	// @param user Address of a removed user.354	//355	// Selector: removeFromCollectionAllowList(address) 85c51acb356	function removeFromCollectionAllowList(address user) external;357358	// Switch permission for minting.359	//360	// @param mode Enable if "true".361	//362	// Selector: setCollectionMintMode(bool) 00018e84363	function setCollectionMintMode(bool mode) external;364}365366interface UniqueRefungible is367	Dummy,368	ERC165,369	ERC721,370	ERC721Metadata,371	ERC721Enumerable,372	ERC721UniqueExtensions,373	ERC721Mintable,374	ERC721Burnable,375	Collection,376	TokenProperties377{}