Variant of the ethereum.org 'Dapps for Beginners' subcurrency (Frontier 2015): sendCoin transfer, public coinBalanceOf mapping, CoinTransfer event, token() mint
Historical Significance
An early Frontier-era teaching subcurrency from the original ethereum.org contract tutorial; this variant mints via a token() function rather than a constructor.
Context
Compiled with soljson-v0.1.3 (optimizer ON); exact match of both runtime and creation bytecode. One of 54 byte-identical deployments of this contract.
Key Facts
Source Verified
Exact bytecode match. Runtime: 278 bytes (byte-for-byte). Creation: 296 bytes (byte-for-byte). Compiled with soljson-v0.1.3+commit.028f561d, optimizer ON. token()-mint variant of the ethereum.org 'Dapps for Beginners' subcurrency.
Historian Categories
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)
contract Coin {
mapping (address => uint) public coinBalanceOf;
event CoinTransfer(address sender, address receiver, uint amount);
function token(uint _index) {
if (_index == 0)
_index = 70000000;
coinBalanceOf[msg.sender] = _index;
}
function sendCoin(address receiver, uint amount) returns(bool sufficient) {
if (coinBalanceOf[msg.sender] < amount) return false;
coinBalanceOf[msg.sender] -= amount;
coinBalanceOf[receiver] += amount;
CoinTransfer(msg.sender, receiver, amount);
return true;
}
}External Links
Related contracts
CrowdSale
Same deployerThe July 2015 ethereum.org crowdsale tutorial, with a fallback that reverts on every contribution.
0x2ba9d1...af0d85October 22, 2015Multiply7
Same deployerThe hello-world of Solidity: multiply(x) returns x*7. The ethereum.org tutorial contract. 120 copies deployed Sep 2015 through Feb 2016.
0xfc3c99...90d3d6October 24, 2015test
Same deployerThe multiply contract that opens the go-ethereum Contract Tutorial, deployed with the author's own multiplier of 10 in place of 7.
0x515179...07a2d1October 24, 2015Contract 0x2273df...27ef78
Same deployerA copy of the coin contract from the Frontier Guide where the contract was renamed but its constructor was not, leaving the supply function callable by anyone.
0x2273df...27ef78October 24, 2015Contract 0xb00de1...a6a7f9
Same deployerA copy of the coin contract from the Frontier Guide where the contract was renamed but its constructor was not, leaving the supply function callable by anyone.
0xb00de1...a6a7f9October 24, 2015Contract 0x2ad2be...696e00
Same deployerA copy of the coin contract from the Frontier Guide where the contract was renamed but its constructor was not, leaving the supply function callable by anyone.
0x2ad2be...696e00October 24, 2015