ERC20Mock.sol 841 B

123456789101112131415161718192021222324252627282930313233
  1. // SPDX-License-Identifier: MIT
  2. pragma solidity ^0.6.0;
  3. import "../token/ERC20/ERC20.sol";
  4. // mock class using ERC20
  5. contract ERC20Mock is ERC20 {
  6. constructor (
  7. string memory name,
  8. string memory symbol,
  9. address initialAccount,
  10. uint256 initialBalance
  11. ) public payable ERC20(name, symbol) {
  12. _mint(initialAccount, initialBalance);
  13. }
  14. function mint(address account, uint256 amount) public {
  15. _mint(account, amount);
  16. }
  17. function burn(address account, uint256 amount) public {
  18. _burn(account, amount);
  19. }
  20. function transferInternal(address from, address to, uint256 value) public {
  21. _transfer(from, to, value);
  22. }
  23. function approveInternal(address owner, address spender, uint256 value) public {
  24. _approve(owner, spender, value);
  25. }
  26. }