Skip to content

Instantly share code, notes, and snippets.

@yurenju
Created September 7, 2020 13:38
Show Gist options
  • Save yurenju/4db41dbdf647ce28bdd5ed805fc874f5 to your computer and use it in GitHub Desktop.
Save yurenju/4db41dbdf647ce28bdd5ed805fc874f5 to your computer and use it in GitHub Desktop.
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address who) external view returns (uint256);
function allowance(address owner, address spender)
external view returns (uint256);
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);
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