16 lines
786 B
Solidity
16 lines
786 B
Solidity
pragma solidity ^0.6.1;
|
|
|
|
// https://github.com/ethereum/EIPs/issues/20
|
|
|
|
interface ERC20Token {
|
|
event Transfer(address indexed _from, address indexed _to, uint256 _value);
|
|
event Approval(address indexed _owner, address indexed _spender, uint256 _value);
|
|
|
|
function transfer(address _to, uint256 _value) external returns (bool success);
|
|
function approve(address _spender, uint256 _value) external returns (bool success);
|
|
function transferFrom(address _from, address _to, uint256 _value) external returns (bool success);
|
|
function balanceOf(address _owner) external view returns (uint256 balance);
|
|
function allowance(address _owner, address _spender) external view returns (uint256 remaining);
|
|
function totalSupply() external view returns (uint256 supply);
|
|
}
|