ERC777Mock.sol 774 B

1234567891011121314151617181920212223242526272829
  1. pragma solidity ^0.6.0;
  2. import "../GSN/Context.sol";
  3. import "../token/ERC777/ERC777.sol";
  4. contract ERC777Mock is Context, ERC777 {
  5. constructor(
  6. address initialHolder,
  7. uint256 initialBalance,
  8. string memory name,
  9. string memory symbol,
  10. address[] memory defaultOperators
  11. ) public ERC777(name, symbol, defaultOperators) {
  12. _mint(initialHolder, initialBalance, "", "");
  13. }
  14. function mintInternal (
  15. address to,
  16. uint256 amount,
  17. bytes memory userData,
  18. bytes memory operatorData
  19. ) public {
  20. _mint(to, amount, userData, operatorData);
  21. }
  22. function approveInternal(address holder, address spender, uint256 value) public {
  23. _approve(holder, spender, value);
  24. }
  25. }