ERC777PresetFixedSupply.sol 744 B

1234567891011121314151617181920212223242526272829
  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. * _Available since v3.4._
  11. */
  12. contract ERC777PresetFixedSupply is ERC777 {
  13. /**
  14. * @dev Mints `initialSupply` amount of token and transfers them to `owner`.
  15. *
  16. * See {ERC777-constructor}.
  17. */
  18. constructor(
  19. string memory name,
  20. string memory symbol,
  21. address[] memory defaultOperators,
  22. uint256 initialSupply,
  23. address owner
  24. ) public ERC777(name, symbol, defaultOperators) {
  25. _mint(owner, initialSupply, "", "");
  26. }
  27. }