Skip to content

Instantly share code, notes, and snippets.

@AugustoL
Created July 11, 2017 20:10
Show Gist options
  • Save AugustoL/f2faa089b0fde58f7b3c600354519270 to your computer and use it in GitHub Desktop.
Save AugustoL/f2faa089b0fde58f7b3c600354519270 to your computer and use it in GitHub Desktop.
ERC20 interface
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