Skip to content

Instantly share code, notes, and snippets.

@stupeters187
Last active January 24, 2019 19:48
Show Gist options
  • Save stupeters187/51e79d4f8ae9e5ce131328c34fb8dd53 to your computer and use it in GitHub Desktop.
Save stupeters187/51e79d4f8ae9e5ce131328c34fb8dd53 to your computer and use it in GitHub Desktop.
ERC223 Token Example
pragma solidity ^0.4.9;
/* New ERC223 contract interface */
contract ERC223 {
uint public totalSupply;
function balanceOf(address who) public view returns (uint);
function name() public view returns (string _name);
function symbol() public view returns (string _symbol);
function decimals() public view returns (uint8 _decimals);
function totalSupply() public view returns (uint256 _supply);
function transfer(address to, uint value) public returns (bool ok);
function transfer(address to, uint value, bytes data) public returns (bool ok);
function transfer(address to, uint value, bytes data, string custom_fallback) public returns (bool ok);
event Transfer(address indexed from, address indexed to, uint value, bytes indexed data);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment