// SPDX-License-Identifier: MIT
pragma solidity >=0.4.16 <0.9.0;
import 'https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol';
contract ContractName is ERC20{
address public admin;
constructor() ERC20('TokenName', 'Symbol') {
_mint(msg.sender, 1000 * 10 ** 18);
admin = msg.sender;
}
function mint(address to, uint amount) external {
require(msg.sender == admin, 'only admin');
_mint(to, amount);
}
function burn(uint amount) external {
_burn(msg.sender, amount);
}
}