mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			925 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			925 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
/// Implements ERC 20 Token standard: https://github.com/ethereum/EIPs/issues/20
 | 
						|
pragma solidity >=0.0;
 | 
						|
 | 
						|
 | 
						|
/// @title Abstract token contract - Functions to be implemented by token contracts
 | 
						|
abstract contract Token {
 | 
						|
 | 
						|
    /*
 | 
						|
     *  Events
 | 
						|
     */
 | 
						|
    event Transfer(address indexed from, address indexed to, uint value);
 | 
						|
    event Approval(address indexed owner, address indexed spender, uint value);
 | 
						|
 | 
						|
    /*
 | 
						|
     *  Public functions
 | 
						|
     */
 | 
						|
    function transfer(address to, uint value) virtual public returns (bool);
 | 
						|
    function transferFrom(address from, address to, uint value) virtual public returns (bool);
 | 
						|
    function approve(address spender, uint value) virtual public returns (bool);
 | 
						|
    function balanceOf(address owner) virtual public view returns (uint);
 | 
						|
    function allowance(address owner, address spender) virtual public view returns (uint);
 | 
						|
    function totalSupply() virtual public view returns (uint);
 | 
						|
}
 |