MintableToken
contract MintableToken
is StandardToken, Ownable
Simple ERC20 Token example, with mintable token creation Based on code by TokenMarketNet: https://github.com/TokenMarketNet/ico/blob/master/contracts/MintableToken.sol.
Source: token/ERC20/MintableToken.sol
Reference
Events
Mint
event Mint(address to, uint256 amount)
- Parameters:
to
- addressamount
- uint256
MintFinished
event MintFinished()
Modifiers
canMint
modifier canMint()
hasMintPermission
modifier hasMintPermission()
Functions
mint
function mint(address _to, uint256 _amount) public returns (bool)
Function to mint tokens.
- Modifiers:
- hasMintPermission canMint
- Parameters:
_to
- The address that will receive the minted tokens._amount
- The amount of tokens to mint.- Returns:
- A boolean that indicates if the operation was successful.