This is outdated: The ERC-20 is here: ethereum/EIPs#20
This file contains hidden or 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; | |
contract Owned { | |
function owned() { owner = msg.sender; } | |
address owner; | |
modifier onlyOwner { | |
if (msg.sender != owner) | |
throw; | |
_; | |
} |
This file contains hidden or 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.0; | |
contract ERC20Constant { | |
function totalSupply() constant returns (uint supply); | |
function balanceOf( address who ) constant returns (uint value); | |
function allowance(address owner, address spender) constant returns (uint _allowance); | |
} | |
contract ERC20Stateful { | |
function transfer( address to, uint value) returns (bool ok); | |
function transferFrom( address from, address to, uint value) returns (bool ok); |
NewerOlder