-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path05IERC20.sol
More file actions
37 lines (25 loc) · 1.06 KB
/
05IERC20.sol
File metadata and controls
37 lines (25 loc) · 1.06 KB
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
/*
#ERC20
Any contract that follow the ERC20 standard is a ERC20 token.
ERC20 tokens provide functionalities to
• transfer tokens
• allow others to transfer tokens on behalf of the token holder
Here is the interface for ERC20.
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
// https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v3.0.0/contracts/token/ERC20/IERC20.sol
interface IERC20 {
function totalSupply() external view returns (uint);
function balanceOf(address account) external view returns (uint);
function transfer(address recipient, uint amount) external returns (bool);
function allowance(address owner, address spender) external view returns (uint);
function approve(address spender, uint amount) external returns (bool);
function transferFrom(
address sender,
address recipient,
uint amount
) external returns (bool);
event Transfer(address indexed from, address indexed to, uint value);
event Approval(address indexed owner, address indexed spender, uint value);
}