forked from juwonleedev/erc-20
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IERC20.sol
37 lines (22 loc) · 1.02 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;
abstract contract IERC20 {
/*
IERC20 Metadata
*/
function name() external view virtual returns (string memory);
function symbol() external view virtual returns (string memory);
function decimals() external view virtual returns (uint8);
function totalSupply() external view virtual returns (uint256);
function balanceOf(address account) external virtual view returns (uint256);
function transfer(address to, uint256 amount) external virtual returns (bool);
function allowance(address owner, address spender) external virtual view returns (uint256);
function approve(address spender, uint256 amount) external virtual returns (bool);
function transferFrom(
address from,
address to,
uint256 amount
) external virtual returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
}