The ethereum.org tutorial token in its minimal form, deployed with a supply of one unit to its creator.
Historical Significance
The tutorial's opening example at the point where a token is nothing but a mapping and a guarded subtraction. Deployed with a supply of one, it is a test rather than a currency, and it records the moment someone worked through the page.
Context
By 2016 the ethereum.org token tutorial had been rewritten around the names ERC-20 was standardising, balanceOf and transfer, and it is the source most small tokens of the following two years were copied from before OpenZeppelin existed.
Key Facts
Description
The token from the ethereum.org tutorial in its ERC-20 era form. It keeps a public balanceOf mapping, gives the whole initial supply to its creator, and transfers with transfer(to, value), which throws rather than returning false when the sender is short and checks the recipient's balance for overflow before adding to it.
This copy has no name, symbol or decimals: it is the first stage of the tutorial, before the metadata is added. Its entire supply is a single unit, written to the deployer, and there is no way to create another.
Heuristic Analysis
The following characteristics were detected through bytecode analysis and may not be accurate.
Tangerine Whistle Era
Emergency fork to address DoS attacks. Repriced IO-heavy opcodes.
Bytecode Overview
Verified Source Available
This contract has verified source code on Etherscan.
Show source code (Solidity)
// Submitted by EthereumHistory (ethereumhistory.com)
contract MyToken {
/* This creates an array with all balances */
mapping (address => uint256) public balanceOf;
/* Initializes contract with initial supply tokens to the creator of the contract */
function MyToken(
uint256 initialSupply
) {
balanceOf[msg.sender] = initialSupply; // Give the creator all initial tokens
}
/* Send coins */
function transfer(address _to, uint256 _value) {
if (balanceOf[msg.sender] < _value) throw; // Check if the sender has enough
if (balanceOf[_to] + _value < balanceOf[_to]) throw; // Check for overflows
balanceOf[msg.sender] -= _value; // Subtract from the sender
balanceOf[_to] += _value; // Add the same to the recipient
}
}
External Links
Related contracts
My DAO Shares
Same eraA fixed-supply token with direct transfers only, deployed October 2016.
0xcbee2e...36ee4fOctober 18, 2016Alien
Same eraA fixed-supply token with transfers and third-party allowances, deployed October 2016.
0x00e0a4...9e52a0October 18, 2016Alien
Same eraA token with transfers and third-party allowances, and an owner who can mint new units, deployed October 2016.
0x9dbb48...affbb8October 19, 2016AiraEtherFunds
Same eraAn Ethereum fund token from the AIRA (Autonomous Intelligent Robot Agency) project, deployed in October 2016 as part of an early robot economy DAO ecosystem.
0xdcf691...3826c5October 19, 2016GavCoin
Same eraToken created by Gavin Wood (Ethereum co-founder), with a buyin/refund Dutch auction mechanism. ABI matches the official gavofyork/gavcoin GitHub repository.
0x0b8d56...74de06October 19, 2016ICONOMI
Same eraThe ICN token for ICONOMI, a Slovenian decentralized crypto fund management platform that raised $10.5M in its 2016 ICO — the third-largest crowdsale in Ethereu
0x888666...87d698October 24, 2016