96cad7de9c
* tests: reorganize testing packages * gitignore and minor changes
36 lines
975 B
Solidity
36 lines
975 B
Solidity
// Brought from https://github.com/aragon/aragonOS/blob/v4.3.0/contracts/lib/token/ERC20.sol
|
|
// Adapted to use pragma ^0.5.8 and satisfy our linter rules
|
|
|
|
pragma solidity ^0.5.8;
|
|
|
|
|
|
/**
|
|
* @title ERC20 interface
|
|
* @dev see https://github.com/ethereum/EIPs/issues/20
|
|
*/
|
|
contract ERC20 {
|
|
function totalSupply() public view returns (uint256);
|
|
|
|
function balanceOf(address _who) public view returns (uint256);
|
|
|
|
function allowance(address _owner, address _spender) public view returns (uint256);
|
|
|
|
function transfer(address _to, uint256 _value) public returns (bool);
|
|
|
|
function approve(address _spender, uint256 _value) public returns (bool);
|
|
|
|
function transferFrom(address _from, address _to, uint256 _value) public returns (bool);
|
|
|
|
event Transfer(
|
|
address indexed from,
|
|
address indexed to,
|
|
uint256 value
|
|
);
|
|
|
|
event Approval(
|
|
address indexed owner,
|
|
address indexed spender,
|
|
uint256 value
|
|
);
|
|
}
|