SimpleToken.sol 668 B

12345678910111213141516171819202122232425262728
  1. pragma solidity ^0.4.11;
  2. import "./StandardToken.sol";
  3. /**
  4. * @title SimpleToken
  5. * @dev Very simple ERC20 Token example, where all tokens are pre-assigned to the creator.
  6. * Note they can later distribute these tokens as they wish using `transfer` and other
  7. * `StandardToken` functions.
  8. */
  9. contract SimpleToken is StandardToken {
  10. string public name = "SimpleToken";
  11. string public symbol = "SIM";
  12. uint public decimals = 18;
  13. uint public INITIAL_SUPPLY = 10000;
  14. /**
  15. * @dev Contructor that gives msg.sender all of existing tokens.
  16. */
  17. function SimpleToken() {
  18. totalSupply = INITIAL_SUPPLY;
  19. balances[msg.sender] = INITIAL_SUPPLY;
  20. }
  21. }