Skip to content

Instantly share code, notes, and snippets.

View Dexaran's full-sized avatar

Dexaran Dexaran

View GitHub Profile
@Dexaran
Dexaran / standardaccount.sol
Created April 26, 2017 09:51 — forked from axic/standardaccount.sol
EIP101 Standard Account code in Solidity
//
// Implementation of the standard account contract as per EIP101 (Cryptocurrency
// abstraction). See: https://github.com/ethereum/EIPs/issues/28
//
// Written by Alex Beregszaszi, use under the MIT license.
//
contract StandardAccount {
uint256 nextSequence = 1;
@Dexaran
Dexaran / token.md
Created March 5, 2017 09:50 — forked from frozeman/token.md
Token proposal

This is outdated: The ERC-20 is here: ethereum/EIPs#20

Token

Methods

totalSupply

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);