Contract 0x2ed778bb966a...f13d0c2c8efb
UtilityA three by three tile map written into storage at construction: nine elevations passed in as a fixed array and read back as a grid.
Historical Significance
Multi-dimensional arrays crossing the ABI boundary were new and unreliable in 2015, and this contract exists to find out whether they worked. It is also a record of the standard library that early Solidity shipped with, where a contract could write import mortal and get one.
Context
Deployed in the autumn of 2015 from the dapp-bin examples collection. Solidity then included a small bundled library of base contracts that the compiler resolved by name, a feature later dropped in favour of explicit imports, and contracts using it can no longer be compiled from their original source alone.
Key Facts
Description
An example contract from the dapp-bin Solidity examples, written to test whether arrays could be passed into a constructor and returned from a function. It declares a three by three grid of tiles, each tile holding an elevation, and its constructor takes nine elevations as a fixed-size array and walks them into the grid.
getElevations() reads the grid back as a two dimensional array. A commented-out struct member in the source shows where a pointer to a second contract describing what a tile looks like was meant to go.
It inherits mortal, the kill-only base of the period, through a bare import of the compiler's own standard library, which is why the source cannot be compiled today without supplying that library separately.
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
GetBalance
Same deployerCyrus Adkisson experimental getter (Sep 2015) exposing the ether balance of a hardcoded address via getMyBalance(). Verified byte-for-byte with soljson v0.1.1.
0x759ad4...239a87August 26, 2015Contract 0xddcd64...a08e7b
Same deployerThe greeter tutorial contract: it stores a greeting set at deployment and can be shut down by its owner.
0xddcd64...a08e7bAugust 26, 2015basicInfoGetter
Same deployerA tour of the EVM globals, carrying the constructor of the file it was copied from
0xad826c...d33547August 31, 2015Contract 0x3ea0db...b922e0
Same deployerThe basic info getter from the solidity-baby-steps tutorials, a read only window onto the block and message globals.
0x3ea0db...b922e0August 31, 2015Contract 0xba575c...78733f
Same deployerA contract built to probe what the msg globals actually return, endowed with 5 ETH, deployed 1 September 2015.
0xba575c...78733fSeptember 1, 2015Contract 0x8b180c...c084df
Same deployerA third deployment of the msgExaminer that records its own creation message
0x8b180c...c084dfSeptember 1, 2015