The Solidity tutorial subcurrency, deployed unaltered
Context
Deployed in September 2015 on the Frontier chain, compiled with solc v0.1.1 and the optimiser enabled.
Key Facts
Description
The Coin example from the August 2015 Solidity Tutorial, deployed exactly as it was published. The account that deploys it becomes the minter and is the only one who may create units through mint. Holders move balances with send, which checks the sender's balance, adjusts both entries and emits a Send event carrying the sender, the receiver and the amount. queryBalance reads any address's balance. There is no total supply and no approval mechanism, so it predates the token interface that ERC-20 would later standardise.
Source Verified
Heuristic Analysis
The following characteristics were detected through bytecode analysis and may not be accurate.
Frontier Era
The initial release of Ethereum. A bare-bones implementation for technical users.
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 Coin {
address minter;
mapping (address => uint) balances;
event Send(address from, address to, uint value);
function Coin() {
minter = msg.sender;
}
function mint(address owner, uint amount) {
if (msg.sender != minter) return;
balances[owner] += amount;
}
function send(address receiver, uint amount) {
if (balances[msg.sender] < amount) return;
balances[msg.sender] -= amount;
balances[receiver] += amount;
Send(msg.sender, receiver, amount);
}
function queryBalance(address addr) constant returns (uint balance) {
return balances[addr];
}
}External Links
Related contracts
Ballot
Same deployerDelegated voting over five proposals, with the chairperson handing out voting rights
0xe2d52d...246398September 25, 2015MessageStore
Same eraA 6-line contract storing a single public string, deployed Day 9 of Ethereum by a prolific early experimenter who shipped 18 contracts in one week.
0xd2eccd...ff3d6bAugust 8, 2015Contract 0xa85146...9bbf06
Same erago-ethereum's built-in hash registrar, mapping a key to a content hash
0xa85146...9bbf06August 10, 2015Ballot
Same eraDelegated voting with a proposal count fixed at deployment
0x3cf26c...b6a8e1August 18, 2015Ballot
Same eraDelegated voting with a proposal count fixed at deployment
0x56ce77...b44745August 18, 2015Ballot
Same eraDelegated voting over five proposals, with the chairperson handing out voting rights
0x640fa6...b57e8aAugust 25, 2015