Skip to content

Instantly share code, notes, and snippets.

@kyriediculous
kyriediculous / ERC20.sol
Last active December 24, 2017 22:31 — forked from anonymous/ERC20.sol
ERC223 with ERC20 backwards compatibility
pragma solidity ^0.4.10;
import 'browser/SafeMath.sol';
contract ERC20 {
uint256 public totalSupply;
function name() constant returns (string _name);
function symbol() constant returns (string _symbol);
function decimals() constant returns (uint8 _decimals);
function totalSupply() constant returns (uint256 _totalSupply);
@kyriediculous
kyriediculous / Crowdsale.sol
Last active January 22, 2018 22:05 — forked from anonymous/Crowdsale.sol
Created using browser-solidity: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://ethereum.github.io/browser-solidity/#version=soljson-v0.4.19+commit.c4cbbb05.js&optimize=false&gist=
pragma solidity ^0.4.10;
import 'gist/ERC223ReceivingContract.sol';
import 'gist/SafeMath.sol';
import 'gist/StandardToken.sol';
import 'gist/Ownable.sol';
contract Crowdsale is Ownable {
using SafeMath for uint;