ERC777PresetFixedSupply.sol 714 B

123456789101112131415161718192021222324252627
  1. // SPDX-License-Identifier: MIT
  2. pragma solidity ^0.6.2;
  3. import "../token/ERC777/ERC777.sol";
  4. /**
  5. * @dev {ERC777} token, including:
  6. *
  7. * - Preminted initial supply
  8. * - No access control mechanism (for minting/pausing) and hence no governance
  9. */
  10. contract ERC777PresetFixedSupply is ERC777 {
  11. /**
  12. * @dev Mints `initialSupply` amount of token and transfers them to `owner`.
  13. *
  14. * See {ERC777-constructor}.
  15. */
  16. constructor(
  17. string memory name,
  18. string memory symbol,
  19. address[] memory defaultOperators,
  20. uint256 initialSupply,
  21. address owner
  22. ) public ERC777(name, symbol, defaultOperators) {
  23. _mint(owner, initialSupply, "", "");
  24. }
  25. }