Created
July 11, 2017 20:10
-
-
Save AugustoL/f2faa089b0fde58f7b3c600354519270 to your computer and use it in GitHub Desktop.
ERC20 interface
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.11; | |
/** | |
* @title ERC20 interface | |
* @dev see https://github.com/ethereum/EIPs/issues/20 | |
*/ | |
contract ERC20 { | |
uint256 public totalSupply; | |
function balanceOf(address who) constant returns (uint256); | |
function allowance(address owner, address spender) constant returns (uint256); | |
function transferFrom(address from, address to, uint256 value); | |
function approve(address spender, uint256 value); | |
function transfer(address to, uint256 value); | |
event Transfer(address indexed from, address indexed to, uint256 value); | |
event Approval(address indexed owner, address indexed spender, uint256 value); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment