Block shape storage for a pre release Etheria, with the inner loop bound wrong
Context
Frontier era deployment by Cyrus Adkisson, the author of Etheria.
Key Facts
Description
Deployed ten minutes before 0x57cdd5582a02e53e833ea4592ec8296110e5f884 and identical to it except that both copy loops run their inner index to 8 rather than 3, so only the first of every three coordinates written by initOccupies and initAttachesto lands where it was meant to. The corrected redeployment followed the same afternoon.
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 BlockDefStorage
{
bool locked;
Block[32] blocks;
struct Block
{
int8[24] occupies; // [x0,y0,z0,x1,y1,z1...,x7,y7,z7]
int8[] attachesto; // [x0,y0,z0,x1,y1,z1...] // first one that is 0,0,0 is the end
}
function getOccupies(uint8 which) public constant returns (int8[24])
{
return blocks[which].occupies;
}
function getAttachesto(uint8 which) public constant returns (int8[])
{
return blocks[which].attachesto;
}
function getLocked() public constant returns (bool)
{
return locked;
}
function setLocked()
{
locked = true;
}
function initOccupies(uint8 which, int8[3][8] occupies) public
{
if(locked) // lockout
return;
uint counter = 0;
for(uint8 index = 0; index < 8; index++)
{
for(uint8 subindex = 0; subindex < 8; subindex++)
{
blocks[which].occupies[counter] = occupies[index][subindex];
counter++;
}
}
}
function initAttachesto(uint8 which, int8[3][] attachesto) public
{
if(locked) // lockout
return;
blocks[which].attachesto.length = attachesto.length * 3;
uint counter = 0;
for(uint8 index = 0; index < attachesto.length; index++)
{
for(uint8 subindex = 0; subindex < 8; subindex++)
{
blocks[which].attachesto[counter] = attachesto[index][subindex];
counter++;
}
}
}
}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