A two dimensional array, filled at deployment
Context
Frontier and Homestead era deployment.
Key Facts
Description
A two dimensional array of small integers, filled in the constructor by walking rows and columns and writing the row times the width plus the column into each cell. A getter reads a single cell back. The published version of this contract is ten by ten; this deployment declares a different width, which is visible only as the bound in the two range checks the getter performs.
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 TwoD {
address creator;
uint8 arraylength = 2;
uint8[2][2] integers; // compiler says this line can't yet know about arraylength variable in the line above
function TwoD()
{
creator = msg.sender;
uint8 x = 0;
uint8 y = 0;
while(y < arraylength)
{
x = 0;
while(x < arraylength)
{
integers[x][y] = arraylength*y + x; // row 0: 0, 1 row 1: 2, 3
x++;
}
y++;
}
}
function getValue(uint8 x, uint8 y) constant returns (uint8)
{
return integers[x][y];
}
/**********
Standard kill() function to recover funds
**********/
function kill()
{
if (msg.sender == creator)
{
suicide(creator); // kills this contract and sends remaining funds back to creator
}
}
}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