rainvow token (VOW), the second-attempt redeploy from the same account, 2 October 2016.
Historical Significance
The central minter is the tutorial's answer to what a currency is for, and it is a candid one: a named issuer holds the opening supply, can create more units at will, and can freeze any account's ability to send. Nothing about that is hidden or revocable. Tokens of this shape are the reason later standards separated the ledger from the policy that governs it, and the reason a reader of a token contract learns to look for who can mint before anything else.
Context
Deployed weeks after the Shanghai denial of service attacks that prompted the Tangerine Whistle fork.
Token Information
Key Facts
Description
Same freezable mintable body as the token this account deployed that morning, recompiled with the optimizer on and given two decimal places and a proper VOW ticker instead of the bare lowercase name. The issuer can mint into any account and freeze any account; there are no allowances, so nothing can spend on a holder's behalf. Deployed fourteen hours after 0x51c77a01c59e429d295916d2e45edc4f8e90f0ba, which reads as the same person tidying up a first attempt.
Source Verified
Historian Categories
Heuristic Analysis
The following characteristics were detected through bytecode analysis and may not be accurate.
DAO Fork Era
The controversial fork to recover funds from The DAO hack.
Bytecode Overview
Verified Source Available
Source verified through compiler archaeology and exact bytecode matching.
View Verification ProofShow source code (Solidity)
// Submitted by EthereumHistory (ethereumhistory.com)
contract Godlcoin {
string public name;
string public symbol;
uint8 public decimals;
address public issuer;
mapping (address => uint256) public balanceOf;
mapping (address => bool) public frozenAccount;
event Transfer(address indexed from, address indexed to, uint256 value);
event FrozenFunds(address target, bool frozen);
function Godlcoin(uint256 initialSupply, string tokenName, uint8 decimalUnits, string tokenSymbol, address centralMinter) {
if (initialSupply == 0) initialSupply = 1000000;
if (centralMinter == 0) centralMinter = msg.sender;
issuer = centralMinter;
balanceOf[centralMinter] = initialSupply;
name = tokenName;
symbol = tokenSymbol;
decimals = decimalUnits;
}
function transfer(address _to, uint256 _value) {
if (balanceOf[msg.sender] < _value || balanceOf[_to] + _value < balanceOf[_to] || frozenAccount[msg.sender]) throw;
balanceOf[msg.sender] -= _value;
balanceOf[_to] += _value;
Transfer(msg.sender, _to, _value);
}
function mintToken(address target, uint256 mintedAmount) {
if (msg.sender != issuer) throw;
balanceOf[target] += mintedAmount;
Transfer(0, target, mintedAmount);
}
function freezeAccount(address target, bool freeze) {
if (msg.sender != issuer) throw;
frozenAccount[target] = freeze;
FrozenFunds(target, freeze);
}
}External Links
Related contracts
vow
Same deployervow, a freezable mint-on-demand token with no allowances, deployed 2 October 2016.
0x51c77a...90f0baOctober 2, 2016TT
Same eraA fixed-supply token with direct transfers only, deployed July 2016.
0xf78bdd...f9d225July 20, 2016shares
Same eraAn early on-chain corporation contract by cryptonomica.net, representing company shares as ERC-20 tokens with embedded voting — deployed hours before the DAO ha
0x684282...9a33b5July 20, 2016MyToken
Same eraAn ethereum.org tutorial token deployed with no name and no symbol, that tracks spending against approvals rather than decrementing them.
0x0eb106...9be583July 23, 2016ReplayProtection
Same eraAlex Van de Sande's post-DAO-fork ETH/ETC replay-protection splitter. Routes ether or ERC20 tokens to different recipients depending on which chain it runs on.
0x64668c...456541July 27, 2016BeerCoin
Same eraERC20-style 'I owe you a beer' IOU ledger by Nick Johnson (ENS). Each transfer creates a personal beer debt; obligations are tracked and transferable.
0x74c1e4...48f4acJuly 29, 2016