Files
openzeppelin-contracts/contracts/presets/ERC777PresetFixedSupply.sol
Ashwin Yardi 883116e4af Add ERC20 and ERC777 fixed supply presets #2377 (#2399)
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
2020-12-02 14:51:33 -03:00

28 lines
714 B
Solidity

// SPDX-License-Identifier: MIT
pragma solidity ^0.6.2;
import "../token/ERC777/ERC777.sol";
/**
* @dev {ERC777} token, including:
*
* - Preminted initial supply
* - No access control mechanism (for minting/pausing) and hence no governance
*/
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
) public ERC777(name, symbol, defaultOperators) {
_mint(owner, initialSupply, "", "");
}
}