2022-01-20 11:44:35 +00:00
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.8.0;
|
|
|
|
|
|
|
|
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
|
|
|
|
|
|
|
|
contract TestToken is ERC20 {
|
|
|
|
constructor() ERC20("TestToken", "TST") {}
|
|
|
|
|
2023-03-29 11:41:44 +00:00
|
|
|
function decimals() public view virtual override returns (uint8) {
|
|
|
|
return 12;
|
|
|
|
}
|
|
|
|
|
2022-01-20 11:44:35 +00:00
|
|
|
function mint(address holder, uint amount) public {
|
|
|
|
_mint(holder, amount);
|
|
|
|
}
|
2023-03-29 11:41:44 +00:00
|
|
|
|
|
|
|
function burn(address holder, uint amount) public {
|
|
|
|
_burn(holder, amount);
|
|
|
|
}
|
2023-06-13 14:24:59 +00:00
|
|
|
|
|
|
|
function myBalance() public view returns (uint256) {
|
|
|
|
return balanceOf(msg.sender);
|
|
|
|
}
|
2022-01-20 11:44:35 +00:00
|
|
|
}
|