A two-key uint lookup table writable only by its admin, used by the ConsenSys dapp store prototype for licences.
Key Facts
Description
DualIndex maps a pair of integer keys to an integer value. Its admin can set entries and hand over control; anyone can look an entry up.
Source Verified
Exact runtime and creation bytecode match with soljson v0.1.6+commit.d41f8b7c, optimizer on. Source: github.com/ConsenSysMesh/dapp-store-contracts @ 0850f857 (contracts/DualIndex.sol, author original, verbatim). Verified on Etherscan. Not submitted to Sourcify: its oldest supported compiler is v0.1.7.
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 DualIndex {
mapping(uint => mapping(uint => uint)) data;
address public admin;
modifier restricted { if (msg.sender == admin) _ }
function DualIndex() {
admin = msg.sender;
}
function set(uint key1, uint key2, uint value) restricted {
data[key1][key2] = value;
}
function transfer_ownership(address _admin) restricted {
admin = _admin;
}
function lookup(uint key1, uint key2) returns(uint) {
return data[key1][key2];
}
}External Links
Related contracts
EternalDB
Same deployerThe storage contract of the ConsenSys dapp store prototype: a list of records, each a mapping from integer keys to lists of integer values, writable only by its admin.
0x31f8e5...8ef04fNovember 6, 2015ModelCoordinator
Same deployerThe registry of the ConsenSys dapp store prototype that grants model contracts write access to the shared EternalDB.
0x288dcd...a8523eNovember 7, 2015LicenseModel
Same deployerThe licence model of the ConsenSys dapp store prototype: records which user holds a licence for which dapp.
0x09e79b...496375November 7, 2015AttributeModel
Same deployerThe attribute model of the ConsenSys dapp store prototype: stores typed attributes attached to dapps and developers.
0x7e75db...0ba8c7November 7, 2015ReviewModel
Same deployerThe review model of the ConsenSys dapp store prototype: stores ratings and reviews of dapp versions.
0x6f07e5...21b66bNovember 7, 2015DappModel
Same deployerThe dapp model of the ConsenSys dapp store prototype: creates, validates and updates dapp listings kept in an EternalDB.
0xab4192...c9f9eeNovember 7, 2015