GitRepositoryToken.sol
1 /** 2 * Contract that mint tokens by github commit stats 3 * 4 * GitHubOracle register users and create GitHubToken contracts 5 * Registration requires user create a gist with only their account address 6 * GitHubOracle will create one GitHubToken contract per repository 7 * GitHubToken mint tokens by commit only for registered users in GitHubOracle 8 * GitHubToken is a LockableCoin, that accept donatations and can be withdrawn by Token Holders 9 * The lookups are done by Oraclize that charge a small fee 10 * The contract itself will never charge any fee 11 * 12 * By Ricardo Guilherme Schmidt 13 * Released under GPLv3 License 14 */ 15 16 import "LockerToken.sol"; 17 import "Owned.sol"; 18 19 pragma solidity ^0.4.11; 20 21 contract GitRepositoryToken is LockerToken { 22 23 function GitRepositoryToken(string _repository) { 24 setAttribute("name", _repository); 25 setAttribute("symbol", "GIT"); 26 setDecimalBase(0); 27 } 28 29 function mint(address _who, uint256 _value) 30 only_owner when_locked(false) { 31 _mint(_who,_value); 32 } 33 34 }