Skip to content

Instantly share code, notes, and snippets.

pragma solidity ^0.4.16;
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; }
contract TokenERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
@ddrempe
ddrempe / SIS Ethereum token.txt
Last active February 6, 2018 14:04
SIS Ethereum token
pragma solidity ^0.4.18;
contract SISToken {
string public name;
string public symbol;
uint8 public decimals;
/* This creates an array with all balances */
mapping (address => uint256) public balanceOf;