ERC777PresetFixedSupply.sol 806 B

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