forked from TRON-Developer-Hub/TRC20-Contract-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathToken.sol
More file actions
22 lines (19 loc) · 621 Bytes
/
Token.sol
File metadata and controls
22 lines (19 loc) · 621 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// 0.5.1-c8a2
// Enable optimization
pragma solidity ^0.5.0;
import "./TRC20.sol";
import "./TRC20Detailed.sol";
/**
* @title SimpleToken
* @dev Very simple TRC20 Token example, where all tokens are pre-assigned to the creator.
* Note they can later distribute these tokens as they wish using `transfer` and other
* `TRC20` functions.
*/
contract Token is TRC20, TRC20Detailed {
/**
* @dev Constructor that gives msg.sender all of existing tokens.
*/
constructor () public TRC20Detailed("YourTokenName", "YTN", 18) {
_mint(msg.sender, 10000000000 * (10 ** uint256(decimals())));
}
}