Verified contractPartial
Oraclize
Address0x9cf6685dbb33bded75ad8bba6326508027a73ddd
- Balance
0 ETH
- Transactions
5
- Compiler
solc 0.1.6
- Same code
Only this contract
Details
- Compiler
- solc 0.1.6+commit.d41f8b7c
- Language
- solidity
- Optimization
- No
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 433,757
- Creation transaction
- 0x11d0cad554…fb21ea3711
Oraclize.sol
// Recovered by EthereumHistory (ethereumhistory.com) -sw
contract Oraclize {
uint reqc = 0;
address public cb_address = 0x26588a9301b0428d95e6fc3a5024fce8bec12d51;
address owner;
event Log1(bytes32 cid, uint timestamp, string datasource, string arg);
event Log2(bytes32 cid, uint timestamp, string datasource, string arg1, string arg2);
function Oraclize() {
owner = msg.sender;
}
function() {
}
function getPrice(string datasource) returns (uint) {
return 10;
}
function withdrawAll() {
if (msg.sender == owner) owner.send(this.balance);
}
modifier costs(string datasource) {
uint price = getPrice(datasource);
if (this.balance >= price) {
address(0xf65b3b60010d57d0bb8478aa6ced15fe720621b4).send(price);
_
}
}
function query(uint timestamp, string datasource, string arg) costs(datasource) returns (bytes32 id) {
id = sha3(now + reqc);
reqc++;
Log1(id, timestamp, datasource, arg);
return id;
}
function query(uint timestamp, string datasource, string arg1, string arg2) costs(datasource) returns (bytes32 id) {
id = sha3(now + reqc);
reqc++;
Log2(id, timestamp, datasource, arg1, arg2);
return id;
}
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": false
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.