Files
openzeppelin-contracts/contracts/presets/ERC777PresetFixedSupply.sol
Francisco Giordano 97199cc755 Add "available since" comments in documentation
(cherry picked from commit 63a0343dda)
2021-02-02 12:15:54 -03:00

30 lines
735 B
Solidity

// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
import "../token/ERC777/ERC777.sol";
/**
* @dev {ERC777} token, including:
*
* - Preminted initial supply
* - No access control mechanism (for minting/pausing) and hence no governance
*
* _Available since v3.4._
*/
contract ERC777PresetFixedSupply is ERC777 {
/**
* @dev Mints `initialSupply` amount of token and transfers them to `owner`.
*
* See {ERC777-constructor}.
*/
constructor(
string memory name,
string memory symbol,
address[] memory defaultOperators,
uint256 initialSupply,
address owner
) ERC777(name, symbol, defaultOperators) {
_mint(owner, initialSupply, "", "");
}
}