-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIERC20.sol
26 lines (15 loc) · 819 Bytes
/
IERC20.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface IERC20 {
function name() external view returns(string memory);
function symbol() external view returns(string memory);
function decimals() external pure returns(uint);
function totalSupply() external view returns(uint);
function balanceOf(address account) external view returns(uint);
function transfer(address to, uint amount) external;
function transferFrom(address sender, address recipient, uint amount) external;
function allowance(address owner, address spender) external view returns(uint);
function approve(address spender, uint amount) external;
event Transfer(address indexed from, address indexed to, uint amount);
event Approve(address indexed owner, address indexed to, uint amount);
}