contract LinkToken is linkStandardToken, ERC677Token {
uint public constant totalSupply = 10**27; string public constant name = "ChainLink Token"; uint8 public constant decimals = 18; string public constant symbol = "LINK";
functionLinkToken() public { balances[msg.sender] = totalSupply; }
/** * @dev transfer token to a specified address with additional data if the recipient is a contract. * @param _to The address to transfer to. * @param _value The amount to be transferred. * @param _data The extra data to be passed to the receiving contract. */ functiontransferAndCall(address _to, uint _value, bytes _data) public validRecipient(_to) returns (bool success) { returnsuper.transferAndCall(_to, _value, _data); }
/** * @dev transfer token to a specified address. * @param _to The address to transfer to. * @param _value The amount to be transferred. */ functiontransfer(address _to, uint _value) public validRecipient(_to) returns (bool success) { returnsuper.transfer(_to, _value); }
/** * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. * @param _spender The address which will spend the funds. * @param _value The amount of tokens to be spent. */ functionapprove(address _spender, uint256 _value) public validRecipient(_spender) returns (bool) { returnsuper.approve(_spender, _value); }
/** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _value uint256 the amount of tokens to be transferred */ functiontransferFrom(address _from, address _to, uint256 _value) public validRecipient(_to) returns (bool) { returnsuper.transferFrom(_from, _to, _value); }