git.delta.rocks / unique-network / refs/commits / 5ec07294ed3b

difftreelog

source

tests/src/eth/api/UniqueFungible.sol6.4 KiBsourcehistory
1// SPDX-License-Identifier: OTHER2// This code is automatically generated34pragma solidity >=0.8.0 <0.9.0;56// Common stubs holder7interface Dummy {89}1011interface ERC165 is Dummy {12	function supportsInterface(bytes4 interfaceID) external view returns (bool);13}1415// Inline16interface ERC20Events {17	event Transfer(address indexed from, address indexed to, uint256 value);18	event Approval(19		address indexed owner,20		address indexed spender,21		uint256 value22	);23}2425// Selector: 79cc679026interface ERC20UniqueExtensions is Dummy, ERC165 {27	// Selector: burnFrom(address,uint256) 79cc679028	function burnFrom(address from, uint256 amount) external returns (bool);29}3031// Selector: 7d9262e632interface Collection is Dummy, ERC165 {33	// Set collection property.34	//35	// @param key Property key.36	// @param value Propery value.37	//38	// Selector: setCollectionProperty(string,bytes) 2f073f6639	function setCollectionProperty(string memory key, bytes memory value)40		external;4142	// Delete collection property.43	//44	// @param key Property key.45	//46	// Selector: deleteCollectionProperty(string) 7b7debce47	function deleteCollectionProperty(string memory key) external;4849	// Get collection property.50	//51	// @dev Throws error if key not found.52	//53	// @param key Property key.54	// @return bytes The property corresponding to the key.55	//56	// Selector: collectionProperty(string) cf24fd6d57	function collectionProperty(string memory key)58		external59		view60		returns (bytes memory);6162	// Set the sponsor of the collection.63	//64	// @dev In order for sponsorship to work, it must be confirmed on behalf of the sponsor.65	//66	// @param sponsor Address of the sponsor from whose account funds will be debited for operations with the contract.67	//68	// Selector: setCollectionSponsor(address) 7623402e69	function setCollectionSponsor(address sponsor) external;7071	// Collection sponsorship confirmation.72	//73	// @dev After setting the sponsor for the collection, it must be confirmed with this function.74	//75	// Selector: confirmCollectionSponsorship() 3c50e97a76	function confirmCollectionSponsorship() external;7778	// Set limits for the collection.79	// @dev Throws error if limit not found.80	// @param limit Name of the limit. Valid names:81	// 	"accountTokenOwnershipLimit",82	// 	"sponsoredDataSize",83	// 	"sponsoredDataRateLimit",84	// 	"tokenLimit",85	// 	"sponsorTransferTimeout",86	// 	"sponsorApproveTimeout"87	// @param value Value of the limit.88	//89	// Selector: setCollectionLimit(string,uint32) 6a3841db90	function setCollectionLimit(string memory limit, uint32 value) external;9192	// Set limits for the collection.93	// @dev Throws error if limit not found.94	// @param limit Name of the limit. Valid names:95	// 	"ownerCanTransfer",96	// 	"ownerCanDestroy",97	// 	"transfersEnabled"98	// @param value Value of the limit.99	//100	// Selector: setCollectionLimit(string,bool) 993b7fba101	function setCollectionLimit(string memory limit, bool value) external;102103	// Get contract address.104	//105	// Selector: contractAddress() f6b4dfb4106	function contractAddress() external view returns (address);107108	// Add collection admin by substrate address.109	// @param new_admin Substrate administrator address.110	//111	// Selector: addCollectionAdminSubstrate(uint256) 5730062b112	function addCollectionAdminSubstrate(uint256 newAdmin) external;113114	// Remove collection admin by substrate address.115	// @param admin Substrate administrator address.116	//117	// Selector: removeCollectionAdminSubstrate(uint256) 4048fcf9118	function removeCollectionAdminSubstrate(uint256 admin) external;119120	// Add collection admin.121	// @param new_admin Address of the added administrator.122	//123	// Selector: addCollectionAdmin(address) 92e462c7124	function addCollectionAdmin(address newAdmin) external;125126	// Remove collection admin.127	//128	// @param new_admin Address of the removed administrator.129	//130	// Selector: removeCollectionAdmin(address) fafd7b42131	function removeCollectionAdmin(address admin) external;132133	// Toggle accessibility of collection nesting.134	//135	// @param enable If "true" degenerates to nesting: 'Owner' else to nesting: 'Disabled'136	//137	// Selector: setCollectionNesting(bool) 112d4586138	function setCollectionNesting(bool enable) external;139140	// Toggle accessibility of collection nesting.141	//142	// @param enable If "true" degenerates to nesting: {OwnerRestricted: [1, 2, 3]} else to nesting: 'Disabled'143	// @param collections Addresses of collections that will be available for nesting.144	//145	// Selector: setCollectionNesting(bool,address[]) 64872396146	function setCollectionNesting(bool enable, address[] memory collections)147		external;148149	// Set the collection access method.150	// @param mode Access mode151	// 	0 for Normal152	// 	1 for AllowList153	//154	// Selector: setCollectionAccess(uint8) 41835d4c155	function setCollectionAccess(uint8 mode) external;156157	// Add the user to the allowed list.158	//159	// @param user Address of a trusted user.160	//161	// Selector: addToCollectionAllowList(address) 67844fe6162	function addToCollectionAllowList(address user) external;163164	// Remove the user from the allowed list.165	//166	// @param user Address of a removed user.167	//168	// Selector: removeFromCollectionAllowList(address) 85c51acb169	function removeFromCollectionAllowList(address user) external;170171	// Switch permission for minting.172	//173	// @param mode Enable if "true".174	//175	// Selector: setCollectionMintMode(bool) 00018e84176	function setCollectionMintMode(bool mode) external;177}178179// Selector: 942e8b22180interface ERC20 is Dummy, ERC165, ERC20Events {181	// Selector: name() 06fdde03182	function name() external view returns (string memory);183184	// Selector: symbol() 95d89b41185	function symbol() external view returns (string memory);186187	// Selector: totalSupply() 18160ddd188	function totalSupply() external view returns (uint256);189190	// Selector: decimals() 313ce567191	function decimals() external view returns (uint8);192193	// Selector: balanceOf(address) 70a08231194	function balanceOf(address owner) external view returns (uint256);195196	// Selector: transfer(address,uint256) a9059cbb197	function transfer(address to, uint256 amount) external returns (bool);198199	// Selector: transferFrom(address,address,uint256) 23b872dd200	function transferFrom(201		address from,202		address to,203		uint256 amount204	) external returns (bool);205206	// Selector: approve(address,uint256) 095ea7b3207	function approve(address spender, uint256 amount) external returns (bool);208209	// Selector: allowance(address,address) dd62ed3e210	function allowance(address owner, address spender)211		external212		view213		returns (uint256);214}215216interface UniqueFungible is217	Dummy,218	ERC165,219	ERC20,220	ERC20UniqueExtensions,221	Collection222{}