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

24 lines
925 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
2019-10-23 20:10:12 +00:00
abstract contract Token {
2017-07-12 13:46:33 +00:00
/*
* Events
*/
event Transfer(address indexed from, address indexed to, uint value);
event Approval(address indexed owner, address indexed spender, uint value);
/*
* Public functions
*/
2019-11-05 17:25:34 +00:00
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);
2017-07-12 13:46:33 +00:00
}