SimpleToken.sol 667 B

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