Skip to content

Instantly share code, notes, and snippets.

@andreafspeziale
Created February 19, 2019 15:14
Show Gist options
  • Save andreafspeziale/e136e1f0721808cf79b40e23a5c4adf4 to your computer and use it in GitHub Desktop.
Save andreafspeziale/e136e1f0721808cf79b40e23a5c4adf4 to your computer and use it in GitHub Desktop.
pragma solidity ^0.5.2;

/**
 * @title ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/20
 */
interface IERC20 {
    function transfer(address to, uint256 value) external returns (bool);

    function approve(address spender, uint256 value) external returns (bool);

    function transferFrom(address from, address to, uint256 value) external returns (bool);

    function totalSupply() external view returns (uint256);

    function balanceOf(address who) external view returns (uint256);

    function allowance(address owner, address spender) external view returns (uint256);

    event Transfer(address indexed from, address indexed to, uint256 value);

    event Approval(address indexed owner, address indexed spender, uint256 value);
}
@andreafspeziale
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment