Comment log for a marketplace listing, deployed by the store it belongs to
Context
Deployed in December 2015 on the Frontier chain, created from within another contract rather than by an account.
Key Facts
Description
A comment board that keeps nothing in storage. addComment takes an identifier and a block of text and emits a Comment event indexed by the poster and by the identifier, so the thread lives entirely in the log and readers reassemble it from events. Storage holds only an owner and a fee, both settable by the owner alone, with getOwner and getFee to read them back. Each instance is created by its parent store contract at deployment, which records the address it gets back and forwards comments to it.
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 Forum {
address owner;
uint fee;
event Comment(address indexed poster, bytes32 indexed id, bytes text);
modifier onlyOwner() {
if (msg.sender != owner) throw;
_
}
function Forum() {
owner = msg.sender;
}
function setOwner(address _owner) onlyOwner {
owner = _owner;
}
function addComment(bytes32 id, bytes text) {
Comment(msg.sender, id, text);
}
function setFee(uint _fee) onlyOwner {
fee = _fee;
}
function getOwner() constant returns (address) {
return owner;
}
function getFee() constant returns (uint) {
return fee;
}
}External Links
Related contracts
MessageStore
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, 2015Democracy
Same eraToken-weighted voting on proposals that execute a call when they pass
0x27fd1c...3f38b1August 25, 2015