Back to Home

MapElevationStorage

Unclassified
Part of The Cyrus Adkisson Collection
0x68549d7dbb7a...494f05972a6b
FrontierContract #2,241Source VerifiedEdit this contract
Deployed October 18, 2015 (10 years ago)Block 403,758

On-chain terrain store holding a 33 by 33 grid of elevation values packed into a single fixed array.

Frontier EraVerified Source

Historical Significance

Putting map terrain in contract storage is a decision that only makes sense in a period when people were still establishing what a chain was for. At 1089 bytes the grid fits in a handful of storage slots, and reading the whole thing back in one call was cheap enough to be practical. The comment arguing with the reader about array ordering is the kind of detail that survives only because the source was verified.

Key Facts
Deployer
Cyrus Adkisson(0xcf684d...ad1bac)
Deployment Block
403,758
Deployment Date
Oct 18, 2015, 07:18 PM
Code Size
541.0 B
Gas at Deploy
160,725
Transactions by Year
201535

Description

The contract stores 1089 unsigned bytes as one fixed size array, addressed as a two dimensional grid by column and row. The source carries an unusually candid comment explaining that the layout is column major and that this is counter intuitive, warning a reader who expects row major ordering that they would be wrong.

Accessors return either a single elevation for a given column and row or the entire grid in one call. A creator address is recorded at construction and gates the write path.

Source Verified

SolidityEtherscan verified
Compiler: v0.1.6+
Heuristic Analysis

The following characteristics were detected through bytecode analysis and may not be accurate.

Detected Type: Unclassified

Bytecode Overview

Opcodes541
Unique Opcodes80
Jump Instructions27
Storage Operations11

External Links

Related contracts