Update docs

This commit is contained in:
github-actions
2023-06-01 18:02:22 +00:00
parent ffa8dcef2c
commit 18fd78ad7f
13 changed files with 374 additions and 208 deletions

View File

@ -0,0 +1,24 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/../token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/../token/ERC20/extensions/ERC20Permit.sol";
import "@openzeppelin/contracts/../token/ERC20/extensions/ERC20Votes.sol";
contract MyToken is ERC20, ERC20Permit, ERC20Votes {
constructor() ERC20("MyToken", "MTK") ERC20Permit("MyToken") {}
// The functions below are overrides required by Solidity.
function _afterTokenTransfer(address from, address to, uint256 amount) internal override(ERC20, ERC20Votes) {
super._afterTokenTransfer(from, to, amount);
}
function _mint(address to, uint256 amount) internal override(ERC20, ERC20Votes) {
super._mint(to, amount);
}
function _burn(address account, uint256 amount) internal override(ERC20, ERC20Votes) {
super._burn(account, amount);
}
}