ERC20Mock.sol 808 B

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