Static Analyzer for Solidity
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
slither/tests/detectors/erc20-indexed/0.7.6/erc20_indexed.sol

25 lines
1.3 KiB

abstract contract IERC20Good {
function transfer(address to, uint value) external virtual returns (bool);
function approve(address spender, uint value) external virtual returns (bool);
function transferFrom(address from, address to, uint value) external virtual returns (bool);
function totalSupply() external view virtual returns (uint);
function balanceOf(address who) external view virtual returns (uint);
function allowance(address owner, address spender) external view virtual returns (uint);
event Transfer(address indexed from, address indexed to, uint value);
event Approval(address indexed owner, address indexed spender, uint value);
}
abstract contract IERC20Bad {
function transfer(address to, uint value) external virtual returns (bool);
function approve(address spender, uint value) external virtual returns (bool);
function transferFrom(address from, address to, uint value) external virtual returns (bool);
function totalSupply() external view virtual returns (uint);
function balanceOf(address who) external view virtual returns (uint);
function allowance(address owner, address spender) external view virtual returns (uint);
event Transfer(address from, address to, uint value);
event Approval(address owner, address spender, uint value);
}
abstract contract ERC20BadDerived is IERC20Bad {
}