-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathITRC20.sol
38 lines (28 loc) · 1001 Bytes
/
ITRC20.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
38
pragma solidity ^0.4.23;
/**
* @title TRC20 interface (compatible with ERC20 interface)
* @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md
*/
interface ITRC20 {
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
);
event Freeze(address indexed from, uint256 value);
event Unfreeze(address indexed from, uint256 value);
}