Verified contractPartial
WikiQuery
Address0x8d4329b28c67a2aefd73516696295d9d51b2b433
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.1.7
- Same code
Only this contract
Details
- Compiler
- solc 0.1.7+commit.b4e666cc
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 665,275
- Creation transaction
- 0xc06ee3c6c4…92643bc937
WikiQuery.sol
// Recovered by EthereumHistory (ethereumhistory.com) -sw
contract OraclizeI {
address public cbAddress;
function query(uint _timestamp, string _datasource, string _arg) returns (bytes32 _id);
function getPrice(string _datasource) returns (uint _dsprice);
function useCoupon(string _coupon);
function setProofType(byte _proofType);
}
contract OraclizeAddrResolverI {
function getAddress() returns (address _addr);
}
contract usingOraclize {
byte constant proofType_NONE = 0x00;
byte constant proofType_TLSNotary = 0x10;
byte constant proofStorage_IPFS = 0x01;
OraclizeI oraclize;
modifier oraclizeAPI {
OraclizeAddrResolverI OAR = OraclizeAddrResolverI(0x1d11e5eae3112dbd44f99266872ff1d07c77dce8);
oraclize = OraclizeI(OAR.getAddress());
_
}
modifier coupon(string code) {
OraclizeAddrResolverI OAR = OraclizeAddrResolverI(0x1d11e5eae3112dbd44f99266872ff1d07c77dce8);
oraclize = OraclizeI(OAR.getAddress());
oraclize.useCoupon(code);
_
}
function oraclize_query(uint timestamp, string datasource, string arg) oraclizeAPI internal returns (bytes32 id) {
return oraclize.query.value(oraclize.getPrice(datasource))(timestamp, datasource, arg);
}
function oraclize_query(string datasource, string arg) oraclizeAPI internal returns (bytes32 id) {
return oraclize.query.value(oraclize.getPrice(datasource))(0, datasource, arg);
}
function oraclize_cbAddress() oraclizeAPI internal returns (address) {
return oraclize.cbAddress();
}
function oraclize_setProof(byte proofP) oraclizeAPI {
return oraclize.setProofType(proofP);
}
}
contract WikiQuery is usingOraclize {
address owner;
string public wiki;
function WikiQuery() {
owner = msg.sender;
update();
}
function __callback(bytes32 myid, string result) {
if (msg.sender != oraclize_cbAddress()) throw;
}
function update() coupon("HackEtherCamp") {
oraclize_query("IPFS", "QmRW3V9znzFW9M5FYbitSEvd5dQrPWGvPvgQD6LM22Tv8D");
}
function kill() {
if (msg.sender == owner) suicide(msg.sender);
}
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.