The Greeter from solidity-baby-steps: a greeting set at creation that the deployer can also change afterwards, plus a block number reader.
Historical Significance
The greeter as a lesson rather than a demonstration: the same idea with a setter, a global-variable reader and comments explaining what a constructor is. It shows the teaching material that grew up around Solidity once the official tutorial was no longer the only one.
Context
Deployed in late 2015, when Solidity had no package manager, no linter and no framework, and learning it meant reading someone's annotated example contracts on GitHub and deploying them to mainnet to see what happened.
Key Facts
Description
A teaching contract from the solidity-baby-steps examples, and a fuller version of the greeter than the one in the go-ethereum tutorial. It stores its creator and a greeting given at deployment, returns the greeting from greet(), and adds two things the tutorial version does not have: setGreeting(), which rewrites the message and is callable by anyone, and getBlockNumber(), included purely to show a global variable being returned.
kill() self-destructs the contract and returns any balance, and only the creator can call it. The greeting is the only mutable state and nothing guards it.
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
External Links
Related contracts
Greeter
Same eraA HelloWorld greeter deployed at block 51,909 on 8 August 2015, one of a run of contracts from the same account that week.
0x412fda...7267edAugust 8, 2015Greeter
Same eraA Greeter with the message 'Ethereum will change the world smarter' - deployed Aug 8, 2015 by a developer connected to the Tokyo Smart Contract meetup.
0xda0c1c...7a68ebAugust 8, 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, 2015Greeter
Same eraThe go-ethereum Contract Tutorial greeter, deployed with the greeting: Hello World!
0x506f4b...466983August 8, 2015Contract 0xd4eae4...a2c77a
Same eraThe ethereum.org crowdsale tutorial, deployed on the ninth day of the public chain, with the funding goal, deadline and price fixed at construction.
0xd4eae4...a2c77aAugust 8, 2015Greeter
Same eraA Frontier-era Greeter contract with the message: 'Hello World!'
0x113158...72fa8aAugust 8, 2015