Last active
January 24, 2019 19:48
-
-
Save stupeters187/51e79d4f8ae9e5ce131328c34fb8dd53 to your computer and use it in GitHub Desktop.
ERC223 Token Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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