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

difftreelog

source

tests/src/eth/api/UniqueRefungibleToken.sol3.9 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: 942e8b2226interface ERC20 is Dummy, ERC165, ERC20Events {27	// @return the name of the token.28	//29	// Selector: name() 06fdde0330	function name() external view returns (string memory);3132	// @return the symbol of the token.33	//34	// Selector: symbol() 95d89b4135	function symbol() external view returns (string memory);3637	// @dev Total number of tokens in existence38	//39	// Selector: totalSupply() 18160ddd40	function totalSupply() external view returns (uint256);4142	// @dev Not supported43	//44	// Selector: decimals() 313ce56745	function decimals() external view returns (uint8);4647	// @dev Gets the balance of the specified address.48	// @param owner The address to query the balance of.49	// @return An uint256 representing the amount owned by the passed address.50	//51	// Selector: balanceOf(address) 70a0823152	function balanceOf(address owner) external view returns (uint256);5354	// @dev Transfer token for a specified address55	// @param to The address to transfer to.56	// @param amount The amount to be transferred.57	//58	// Selector: transfer(address,uint256) a9059cbb59	function transfer(address to, uint256 amount) external returns (bool);6061	// @dev Transfer tokens from one address to another62	// @param from address The address which you want to send tokens from63	// @param to address The address which you want to transfer to64	// @param amount uint256 the amount of tokens to be transferred65	//66	// Selector: transferFrom(address,address,uint256) 23b872dd67	function transferFrom(68		address from,69		address to,70		uint256 amount71	) external returns (bool);7273	// @dev Approve the passed address to spend the specified amount of tokens on behalf of `msg.sender`.74	// Beware that changing an allowance with this method brings the risk that someone may use both the old75	// and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this76	// race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards:77	// https://github.com/ethereum/EIPs/issues/20#issuecomment-26352472978	// @param spender The address which will spend the funds.79	// @param amount The amount of tokens to be spent.80	//81	// Selector: approve(address,uint256) 095ea7b382	function approve(address spender, uint256 amount) external returns (bool);8384	// @dev Function to check the amount of tokens that an owner allowed to a spender.85	// @param owner address The address which owns the funds.86	// @param spender address The address which will spend the funds.87	// @return A uint256 specifying the amount of tokens still available for the spender.88	//89	// Selector: allowance(address,address) dd62ed3e90	function allowance(address owner, address spender)91		external92		view93		returns (uint256);94}9596// Selector: ab8deb3797interface ERC20UniqueExtensions is Dummy, ERC165 {98	// @dev Function that burns an amount of the token of a given account,99	// deducting from the sender's allowance for said account.100	// @param from The account whose tokens will be burnt.101	// @param amount The amount that will be burnt.102	//103	// Selector: burnFrom(address,uint256) 79cc6790104	function burnFrom(address from, uint256 amount) external returns (bool);105106	// @dev Function that changes total amount of the tokens.107	//  Throws if `msg.sender` doesn't owns all of the tokens.108	// @param amount New total amount of the tokens.109	//110	// Selector: repartition(uint256) d2418ca7111	function repartition(uint256 amount) external returns (bool);112}113114interface UniqueRefungibleToken is115	Dummy,116	ERC165,117	ERC20,118	ERC20UniqueExtensions119{}