solidity/test/compilationTests/gnosis/Tokens/Token.sol

24 lines
868 B
Solidity
Raw Normal View History

2017-07-12 13:46:33 +00:00
/// Implements ERC 20 Token standard: https://github.com/ethereum/EIPs/issues/20
2018-10-24 12:52:11 +00:00
pragma solidity >=0.0;
2017-07-12 13:46:33 +00:00
/// @title Abstract token contract - Functions to be implemented by token contracts
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) public returns (bool);
function transferFrom(address from, address to, uint value) public returns (bool);
function approve(address spender, uint value) public returns (bool);
2018-07-02 09:14:28 +00:00
function balanceOf(address owner) public view returns (uint);
function allowance(address owner, address spender) public view returns (uint);
function totalSupply() public view returns (uint);
2017-07-12 13:46:33 +00:00
}