ERC20Mock.sol 807 B

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