The configuration contract of Digixbot, a chat bot by Digix: records the bot and user-registry contracts and one wallet contract per supported coin.
Key Facts
Description
Its owner sets the bot and users contracts and registers coin wallets, and can lock the configuration so it no longer changes.
Source Verified
Exact runtime and creation bytecode match with soljson v0.1.5+commit.23865e39, optimizer on. Source: github.com/DigixGlobal/ethereum-ruby contracts/classic/DigixbotConfiguration.sol, revision blob f8154b71a5 (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 DigixbotConfiguration {
struct Coin {
bytes4 name;
address wallet;
bool locked;
}
address owner;
address botcontract;
address userscontract;
bool locked;
mapping(bytes4 => Coin) coins;
modifier ifowner { if (msg.sender == owner) _ }
modifier unlesslocked { if (locked == false) _ }
function DigixbotConfiguration() {
owner = msg.sender;
locked = false;
}
function getOwner() public constant returns (address) {
return owner;
}
function setBotContract(address _botcontract) ifowner unlesslocked {
botcontract = _botcontract;
}
function getBotContract() public returns (address) {
return botcontract;
}
function setUsersContract(address _userscontract) ifowner unlesslocked {
userscontract = _userscontract;
}
function getUsersContract() public returns (address) {
return userscontract;
}
function lockConfiguration() ifowner {
locked = true;
}
function addCoin(bytes4 _name, address _wallet) ifowner {
Coin _cta = coins[_name];
if (_cta.locked == false) {
_cta.name = _name;
_cta.wallet = _wallet;
_cta.locked = true;
}
}
function getCoinWallet(bytes4 _coin) public constant returns (address) {
return coins[_coin].wallet;
}
}External Links
Related contracts
DigixbotUsers
Same deployerThe user registry of Digixbot, a chat bot by Digix for tipping coins between chat users.
0xc4e32d...76472bOctober 22, 2015DigixbotEthereum
Same deployerThe ether wallet of Digixbot, a chat bot by Digix: holds ether deposited for chat users and moves it between them on the bot's instructions.
0xc1512e...d4bf79October 22, 2015Digixbot
Same deployerThe main contract of Digixbot, a chat bot by Digix for tipping and holding coins on behalf of chat users.
0x9cdef7...28722cOctober 22, 2015Greeter
Same eraA HelloWorld greeter deployed at block 51,909 on 8 August 2015, one of a run of contracts from the same account that week.
0x412fda...7267edAugust 8, 2015Greeter
Same eraA Greeter with the message 'Ethereum will change the world smarter' - deployed Aug 8, 2015 by a developer connected to the Tokyo Smart Contract meetup.
0xda0c1c...7a68ebAugust 8, 2015MessageStore
Same eraA 6-line contract storing a single public string, deployed Day 9 of Ethereum by a prolific early experimenter who shipped 18 contracts in one week.
0xd2eccd...ff3d6bAugust 8, 2015