Sponsored:   Kirik Meta Protocol - New Generation of Blockchain - Join Pre-Sale Aug 15-17
Contract Overview
Balance: 0.00675 Ether
Ether Value: $1.78 (@ $264.19/ETH)
Transactions: 268 txns
 Latest 25 txns from a total Of 268 transactions

TxHash Age From To Value [TxFee]
0x48cdaff0090dda2c6c1e352f2f4f68ee71528292e225b15b9fc3b5b20f16b937274 days 5 hrs ago0x18513702ccd928f2a3eb63d900adf03c9cc81593  IN   0x89c1b3807d4c67df034fffb62f3509561218d30b0 Ether0.00225925
0x4435726d261faaf187c352e599578eef1141dd12861060f5a04de558d80685b4274 days 5 hrs ago0x9b3d535e601afa88d8c47ef86f63d02cb767efbf  IN   0x89c1b3807d4c67df034fffb62f3509561218d30b0.0015 Ether0.00246026
0x2402f28e8e0842824992d1d70b4a7be3e9dd755d0038a43953e9ae1d38565fc9275 days 5 hrs ago0x18513702ccd928f2a3eb63d900adf03c9cc81593  IN   0x89c1b3807d4c67df034fffb62f3509561218d30b0 Ether0.00225925
0xb42498ee64ed9bd38965ea320e333cb3cd5d10a02c0e2d48193e5aa0b5bf1dde275 days 5 hrs ago0x9b3d535e601afa88d8c47ef86f63d02cb767efbf  IN   0x89c1b3807d4c67df034fffb62f3509561218d30b0.0015 Ether0.00246026
0x73ba76087cf5f179cb69859da2b1fec041287ba84d5dd3bd666b9700f13f8bc9276 days 5 hrs ago0x18513702ccd928f2a3eb63d900adf03c9cc81593  IN   0x89c1b3807d4c67df034fffb62f3509561218d30b0 Ether0.00225925
0x6d2ba27dbd696f954faf90237b0864ca60ec5bff2e3753b39d8c49e1dc97a660276 days 5 hrs ago0x9b3d535e601afa88d8c47ef86f63d02cb767efbf  IN   0x89c1b3807d4c67df034fffb62f3509561218d30b0.0015 Ether0.00246026
0xbd9019d3b6bac4c4e6d215fa232bd9ae57619f0cd9c17546a83ad4f64642fad4278 days 5 hrs ago0x18513702ccd928f2a3eb63d900adf03c9cc81593  IN   0x89c1b3807d4c67df034fffb62f3509561218d30b0 Ether0.00225925
0xcbfd4e4ab3cfa263c6ca5f4fe91b010d8b7aee57600e6ad24503dfce883ba0d4278 days 5 hrs ago0x9b3d535e601afa88d8c47ef86f63d02cb767efbf  IN   0x89c1b3807d4c67df034fffb62f3509561218d30b0.0015 Ether0.00246026
0x42c12e36bdd6945bbe7a78e669cd0c2a4f53b780428563be55c78b7d238209a5279 days 5 hrs ago0x18513702ccd928f2a3eb63d900adf03c9cc81593  IN   0x89c1b3807d4c67df034fffb62f3509561218d30b0 Ether0.00225925
0xcf06e1efad815d614d6aee51d79cc1c9821f064a4f25b88efe244e569944aa91279 days 5 hrs ago0x9b3d535e601afa88d8c47ef86f63d02cb767efbf  IN   0x89c1b3807d4c67df034fffb62f3509561218d30b0.0015 Ether0.00246026
0xf51374ad4bd19b0953abf7e61bc5479fe6f60c8c05fd50a15e923b68c2cc9a08280 days 5 hrs ago0x18513702ccd928f2a3eb63d900adf03c9cc81593  IN   0x89c1b3807d4c67df034fffb62f3509561218d30b0 Ether0.00225925
0x695509f8acb00773de8e7abec7fcf889a6df03dcd9da809dca6269a57e30052b280 days 5 hrs ago0x9b3d535e601afa88d8c47ef86f63d02cb767efbf  IN   0x89c1b3807d4c67df034fffb62f3509561218d30b0.0015 Ether0.00246026
0x38b6a16b41af91f8adde1484e65f379fc250bd93b7467e54205448c965766a5d281 days 5 hrs ago0x18513702ccd928f2a3eb63d900adf03c9cc81593  IN   0x89c1b3807d4c67df034fffb62f3509561218d30b0 Ether0.00225925
0x617cbd4c06bcafda048f3e1d32c67bc424cbe1aa8b3c87606a6af96c0cdb0082281 days 5 hrs ago0x9b3d535e601afa88d8c47ef86f63d02cb767efbf  IN   0x89c1b3807d4c67df034fffb62f3509561218d30b0.0015 Ether0.00246026
0x376265a8ddb98f86c3940346a476cc71f421d6abd69b084f3e603c9d14bd0a62282 days 5 hrs ago0x18513702ccd928f2a3eb63d900adf03c9cc81593  IN   0x89c1b3807d4c67df034fffb62f3509561218d30b0 Ether0.00225925
0x937535300da605f4841820204bb043820ff386e7bcc25218f3e45a4497cd9cf5282 days 5 hrs ago0x9b3d535e601afa88d8c47ef86f63d02cb767efbf  IN   0x89c1b3807d4c67df034fffb62f3509561218d30b0.0015 Ether0.00246026
0xe18c78cf72bffde2a12605f0b8e7526b001d5e4f5d8b4f6e7d1d2edb84a0b944283 days 5 hrs ago0x18513702ccd928f2a3eb63d900adf03c9cc81593  IN   0x89c1b3807d4c67df034fffb62f3509561218d30b0 Ether0.00225925
0x0632e8cd05d8845f0188a2c14fbef91273c3ee21a18ecbe75ed130c73713a296283 days 5 hrs ago0x9b3d535e601afa88d8c47ef86f63d02cb767efbf  IN   0x89c1b3807d4c67df034fffb62f3509561218d30b0.0015 Ether0.00246026
0x7404bbfc6131f9fc2fd76a8377a4a2510fc3dda1f0e33b105fec93e65cdb7945284 days 5 hrs ago0x18513702ccd928f2a3eb63d900adf03c9cc81593  IN   0x89c1b3807d4c67df034fffb62f3509561218d30b0 Ether0.00225925
0x95668b216dce5942c813c1e0024cde7c2ad79886f5b4d8b19b8ef0dd0b909f00284 days 5 hrs ago0x9b3d535e601afa88d8c47ef86f63d02cb767efbf  IN   0x89c1b3807d4c67df034fffb62f3509561218d30b0.0015 Ether0.00246026
0x9fc634775dbd83face1f5e5faafc220ef0b73c64aaacb51f41867268bf7fce36285 days 5 hrs ago0x18513702ccd928f2a3eb63d900adf03c9cc81593  IN   0x89c1b3807d4c67df034fffb62f3509561218d30b0 Ether0.00225925
0x58c1d8d9b0709d30417f031e11954c54335f78a73a5563dd7ff1c70d3124d483285 days 5 hrs ago0x9b3d535e601afa88d8c47ef86f63d02cb767efbf  IN   0x89c1b3807d4c67df034fffb62f3509561218d30b0.0015 Ether0.007995845
0xa70eb334403ecbf6ec2e4e59095268f9359bf77b1852d759a059afad16ab14bc286 days 5 hrs ago0x18513702ccd928f2a3eb63d900adf03c9cc81593  IN   0x89c1b3807d4c67df034fffb62f3509561218d30b0 Ether0.00225925
0x78c612aae1c740ce38401d74ce5690242603f64ebc357517db86b392e1122728286 days 5 hrs ago0x9b3d535e601afa88d8c47ef86f63d02cb767efbf  IN   0x89c1b3807d4c67df034fffb62f3509561218d30b0.0015 Ether0.00246026
0x975558e3f4808d35cb6f811eb44a3f48796382fb73731915b272edd58ac97c4d287 days 5 hrs ago0x18513702ccd928f2a3eb63d900adf03c9cc81593  IN   0x89c1b3807d4c67df034fffb62f3509561218d30b0 Ether0.00225925
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 25 Internal Txns, Click here to View More View All
ParentTxHash Block Age From To Value
0x48cdaff0090dda2c6c1e352f2f4f68ee71528292e225b15b9fc3b5b20f16b9374542684274 days 5 hrs ago0x89c1b3807d4c67df034fffb62f3509561218d30b0x18513702ccd928f2a3eb63d900adf03c9cc815930.0015 Ether
0x2402f28e8e0842824992d1d70b4a7be3e9dd755d0038a43953e9ae1d38565fc94536459275 days 5 hrs ago0x89c1b3807d4c67df034fffb62f3509561218d30b0x18513702ccd928f2a3eb63d900adf03c9cc815930.0015 Ether
0x73ba76087cf5f179cb69859da2b1fec041287ba84d5dd3bd666b9700f13f8bc94530135276 days 5 hrs ago0x89c1b3807d4c67df034fffb62f3509561218d30b0x18513702ccd928f2a3eb63d900adf03c9cc815930.0015 Ether
0xbd9019d3b6bac4c4e6d215fa232bd9ae57619f0cd9c17546a83ad4f64642fad44517722278 days 5 hrs ago0x89c1b3807d4c67df034fffb62f3509561218d30b0x18513702ccd928f2a3eb63d900adf03c9cc815930.0015 Ether
0x42c12e36bdd6945bbe7a78e669cd0c2a4f53b780428563be55c78b7d238209a54511456279 days 5 hrs ago0x89c1b3807d4c67df034fffb62f3509561218d30b0x18513702ccd928f2a3eb63d900adf03c9cc815930.0015 Ether
0xf51374ad4bd19b0953abf7e61bc5479fe6f60c8c05fd50a15e923b68c2cc9a084505211280 days 5 hrs ago0x89c1b3807d4c67df034fffb62f3509561218d30b0x18513702ccd928f2a3eb63d900adf03c9cc815930.0015 Ether
0x38b6a16b41af91f8adde1484e65f379fc250bd93b7467e54205448c965766a5d4499060281 days 5 hrs ago0x89c1b3807d4c67df034fffb62f3509561218d30b0x18513702ccd928f2a3eb63d900adf03c9cc815930.0015 Ether
0x376265a8ddb98f86c3940346a476cc71f421d6abd69b084f3e603c9d14bd0a624492790282 days 5 hrs ago0x89c1b3807d4c67df034fffb62f3509561218d30b0x18513702ccd928f2a3eb63d900adf03c9cc815930.0015 Ether
0xe18c78cf72bffde2a12605f0b8e7526b001d5e4f5d8b4f6e7d1d2edb84a0b9444486517283 days 5 hrs ago0x89c1b3807d4c67df034fffb62f3509561218d30b0x18513702ccd928f2a3eb63d900adf03c9cc815930.0015 Ether
0x7404bbfc6131f9fc2fd76a8377a4a2510fc3dda1f0e33b105fec93e65cdb79454480305284 days 5 hrs ago0x89c1b3807d4c67df034fffb62f3509561218d30b0x18513702ccd928f2a3eb63d900adf03c9cc815930.0015 Ether
0x9fc634775dbd83face1f5e5faafc220ef0b73c64aaacb51f41867268bf7fce364474162285 days 5 hrs ago0x89c1b3807d4c67df034fffb62f3509561218d30b0x18513702ccd928f2a3eb63d900adf03c9cc815930.0015 Ether
0xa70eb334403ecbf6ec2e4e59095268f9359bf77b1852d759a059afad16ab14bc4468041286 days 5 hrs ago0x89c1b3807d4c67df034fffb62f3509561218d30b0x18513702ccd928f2a3eb63d900adf03c9cc815930.0015 Ether
0x975558e3f4808d35cb6f811eb44a3f48796382fb73731915b272edd58ac97c4d4461775287 days 5 hrs ago0x89c1b3807d4c67df034fffb62f3509561218d30b0x18513702ccd928f2a3eb63d900adf03c9cc815930.0015 Ether
0x38739d54474985419af86d1e6161d22c9317bf5ec590c8091a97ee50bdebd87e4455665288 days 5 hrs ago0x89c1b3807d4c67df034fffb62f3509561218d30b0x18513702ccd928f2a3eb63d900adf03c9cc815930.0015 Ether
0x4fb80744443f2620689f0ad9110c2c2cc94d88358b8398562e2a1244c0c7443f4449486289 days 5 hrs ago0x89c1b3807d4c67df034fffb62f3509561218d30b0x18513702ccd928f2a3eb63d900adf03c9cc815930.0015 Ether
0xb372ebd4793480e02a36a25a270fe38a10f1035584d3de80f21217bd9fb15df74443308290 days 5 hrs ago0x89c1b3807d4c67df034fffb62f3509561218d30b0x18513702ccd928f2a3eb63d900adf03c9cc815930.0015 Ether
0x89a8655914df0f1b2b0697c72b0d3a963941c026795b7e7903b2f96224ebdf974437065291 days 5 hrs ago0x89c1b3807d4c67df034fffb62f3509561218d30b0x18513702ccd928f2a3eb63d900adf03c9cc815930.0015 Ether
0x3e9dfcd9e12807062aba89e8f5c5538729ac036ce1be83afde7dc8ce15e1c25c4435654291 days 10 hrs ago0x89c1b3807d4c67df034fffb62f3509561218d30b0x18513702ccd928f2a3eb63d900adf03c9cc815930.0015 Ether
0x265523dd3b03a4715d9292c4a3a6150927f2f98f634ed8469eacf0511f7f44564435093291 days 12 hrs ago0x89c1b3807d4c67df034fffb62f3509561218d30b0x18513702ccd928f2a3eb63d900adf03c9cc815930.0015 Ether
0x6c564eaeecd9465050e2e23ecd825a7af6cb2d9476e01f1c90a894ef53cf48c24418467294 days 5 hrs ago0x89c1b3807d4c67df034fffb62f3509561218d30b0x18513702ccd928f2a3eb63d900adf03c9cc815930.0015 Ether
0x9a15fa63d2a860f4665c0a3d1d80ee5f18288d2f57a12ec9882728632a820c8b4412221295 days 5 hrs ago0x89c1b3807d4c67df034fffb62f3509561218d30b0x18513702ccd928f2a3eb63d900adf03c9cc815930.0015 Ether
0x5a34382544514c266e6052625bc27b1595d0fb21c81e7b0e9026fa2db83169c24405956296 days 5 hrs ago0x89c1b3807d4c67df034fffb62f3509561218d30b0x18513702ccd928f2a3eb63d900adf03c9cc815930.0015 Ether
0x51d4eb677fce8d0ab54f1cd2126f361e8d72cd8e0b1b3407342bf97fcc26eaae4399716297 days 5 hrs ago0x89c1b3807d4c67df034fffb62f3509561218d30b0x18513702ccd928f2a3eb63d900adf03c9cc815930.0015 Ether
0x086090b16cd3834d0362875d8b0993c283ba06b7ee3ccac126998d537132a3734393445298 days 5 hrs ago0x89c1b3807d4c67df034fffb62f3509561218d30b0x18513702ccd928f2a3eb63d900adf03c9cc815930.0015 Ether
0xc6c47d179a76d42b01d323d3156c14b542877a76e4ffc0b607c667880e25e9fe4387217299 days 5 hrs ago0x89c1b3807d4c67df034fffb62f3509561218d30b0x18513702ccd928f2a3eb63d900adf03c9cc815930.0015 Ether
[ Download CSV Export  ] 
Warning: The compiled contract might be susceptible to ZeroFunctionSelector (very low-severity), DelegateCallReturnValue (low-severity), ECRecoverMalformedInput (medium-severity), SkipEmptyStringLiteral (low-severity), ConstantOptimizerSubtraction (low-severity) Solidity compiler bugs.

Contract Source Code Verified (Exact match)
Contract Name: TownCrier
Compiler Version: v0.4.9+commit.364da425
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.9;

contract TownCrier {
    struct Request { // the data structure for each request
        address requester; // the address of the requester
        uint fee; // the amount of wei the requester pays for the request
        address callbackAddr; // the address of the contract to call for delivering response
        bytes4 callbackFID; // the specification of the callback function
        bytes32 paramsHash; // the hash of the request parameters
    }
   
    event Upgrade(address newAddr);
    event Reset(uint gas_price, uint min_fee, uint cancellation_fee); 
    event RequestInfo(uint64 id, uint8 requestType, address requester, uint fee, address callbackAddr, bytes32 paramsHash, uint timestamp, bytes32[] requestData); // log of requests, the Town Crier server watches this event and processes requests
    event DeliverInfo(uint64 requestId, uint fee, uint gasPrice, uint gasLeft, uint callbackGas, bytes32 paramsHash, uint64 error, bytes32 respData); // log of responses
    event Cancel(uint64 requestId, address canceller, address requester, uint fee, int flag); // log of cancellations

    address public constant SGX_ADDRESS = 0x18513702cCd928F2A3eb63d900aDf03c9cc81593;// address of the SGX account

    uint public GAS_PRICE = 5 * 10**10;
    uint public MIN_FEE = 30000 * GAS_PRICE; // minimum fee required for the requester to pay such that SGX could call deliver() to send a response
    uint public CANCELLATION_FEE = 25000 * GAS_PRICE; // charged when the requester cancels a request that is not responded

    uint public constant CANCELLED_FEE_FLAG = 1;
    uint public constant DELIVERED_FEE_FLAG = 0;
    int public constant FAIL_FLAG = -2 ** 250;
    int public constant SUCCESS_FLAG = 1;

    bool public killswitch;

    bool public externalCallFlag;

    uint64 public requestCnt;
    uint64 public unrespondedCnt;
    Request[2**64] public requests;

    int public newVersion = 0;

    // Contracts that receive Ether but do not define a fallback function throw
    // an exception, sending back the Ether (this was different before Solidity
    // v0.4.0). So if you want your contract to receive Ether, you have to
    // implement a fallback function.
    function () {}

    function TownCrier() public {
        // Start request IDs at 1 for two reasons:
        //   1. We can use 0 to denote an invalid request (ids are unsigned)
        //   2. Storage is more expensive when changing something from zero to non-zero,
        //      so this means the first request isn't randomly more expensive.
        requestCnt = 1;
        requests[0].requester = msg.sender;
        killswitch = false;
        unrespondedCnt = 0;
        externalCallFlag = false;
    }

    function upgrade(address newAddr) {
        if (msg.sender == requests[0].requester && unrespondedCnt == 0) {
            newVersion = -int(newAddr);
            killswitch = true;
            Upgrade(newAddr);
        }
    }

    function reset(uint price, uint minGas, uint cancellationGas) public {
        if (msg.sender == requests[0].requester && unrespondedCnt == 0) {
            GAS_PRICE = price;
            MIN_FEE = price * minGas;
            CANCELLATION_FEE = price * cancellationGas;
            Reset(GAS_PRICE, MIN_FEE, CANCELLATION_FEE);
        }
    }

    function suspend() public {
        if (msg.sender == requests[0].requester) {
            killswitch = true;
        }
    }

    function restart() public {
        if (msg.sender == requests[0].requester && newVersion == 0) {
            killswitch = false;
        }
    }

    function withdraw() public {
        if (msg.sender == requests[0].requester && unrespondedCnt == 0) {
            if (!requests[0].requester.call.value(this.balance)()) {
                throw;
            }
        }
    }

    function request(uint8 requestType, address callbackAddr, bytes4 callbackFID, uint timestamp, bytes32[] requestData) public payable returns (int) {
        if (externalCallFlag) {
            throw;
        }

        if (killswitch) {
            externalCallFlag = true;
            if (!msg.sender.call.value(msg.value)()) {
                throw;
            }
            externalCallFlag = false;
            return newVersion;
        }

        if (msg.value < MIN_FEE) {
            externalCallFlag = true;
            // If the amount of ether sent by the requester is too little or 
            // too much, refund the requester and discard the request.
            if (!msg.sender.call.value(msg.value)()) {
                throw;
            }
            externalCallFlag = false;
            return FAIL_FLAG;
        } else {
            // Record the request.
            uint64 requestId = requestCnt;
            requestCnt++;
            unrespondedCnt++;

            bytes32 paramsHash = sha3(requestType, requestData);
            requests[requestId].requester = msg.sender;
            requests[requestId].fee = msg.value;
            requests[requestId].callbackAddr = callbackAddr;
            requests[requestId].callbackFID = callbackFID;
            requests[requestId].paramsHash = paramsHash;

            // Log the request for the Town Crier server to process.
            RequestInfo(requestId, requestType, msg.sender, msg.value, callbackAddr, paramsHash, timestamp, requestData);
            return requestId;
        }
    }

    function deliver(uint64 requestId, bytes32 paramsHash, uint64 error, bytes32 respData) public {
        if (msg.sender != SGX_ADDRESS ||
                requestId <= 0 ||
                requests[requestId].requester == 0 ||
                requests[requestId].fee == DELIVERED_FEE_FLAG) {
            // If the response is not delivered by the SGX account or the 
            // request has already been responded to, discard the response.
            return;
        }

        uint fee = requests[requestId].fee;
        if (requests[requestId].paramsHash != paramsHash) {
            // If the hash of request parameters in the response is not 
            // correct, discard the response for security concern.
            return;
        } else if (fee == CANCELLED_FEE_FLAG) {
            // If the request is cancelled by the requester, cancellation 
            // fee goes to the SGX account and set the request as having
            // been responded to.
            SGX_ADDRESS.send(CANCELLATION_FEE);
            requests[requestId].fee = DELIVERED_FEE_FLAG;
            unrespondedCnt--;
            return;
        }

        requests[requestId].fee = DELIVERED_FEE_FLAG;
        unrespondedCnt--;

        if (error < 2) {
            // Either no error occurs, or the requester sent an invalid query.
            // Send the fee to the SGX account for its delivering.
            SGX_ADDRESS.send(fee);         
        } else {
            // Error in TC, refund the requester.
            externalCallFlag = true;
            requests[requestId].requester.call.gas(2300).value(fee)();
            externalCallFlag = false;
        }

        uint callbackGas = (fee - MIN_FEE) / tx.gasprice; // gas left for the callback function
        DeliverInfo(requestId, fee, tx.gasprice, msg.gas, callbackGas, paramsHash, error, respData); // log the response information
        if (callbackGas > msg.gas - 5000) {
            callbackGas = msg.gas - 5000;
        }
        
        externalCallFlag = true;
        requests[requestId].callbackAddr.call.gas(callbackGas)(requests[requestId].callbackFID, requestId, error, respData); // call the callback function in the application contract
        externalCallFlag = false;
    }

    function cancel(uint64 requestId) public returns (int) {
        if (externalCallFlag) {
            throw;
        }

        if (killswitch) {
            return 0;
        }

        uint fee = requests[requestId].fee;
        if (requests[requestId].requester == msg.sender && fee >= CANCELLATION_FEE) {
            // If the request was sent by this user and has money left on it,
            // then cancel it.
            requests[requestId].fee = CANCELLED_FEE_FLAG;
            externalCallFlag = true;
            if (!msg.sender.call.value(fee - CANCELLATION_FEE)()) {
                throw;
            }
            externalCallFlag = false;
            Cancel(requestId, msg.sender, requests[requestId].requester, requests[requestId].fee, 1);
            return SUCCESS_FLAG;
        } else {
            Cancel(requestId, msg.sender, requests[requestId].requester, fee, -1);
            return FAIL_FLAG;
        }
    }
}

    Contract ABI  
[{"constant":false,"inputs":[{"name":"newAddr","type":"address"}],"name":"upgrade","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"restart","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"newVersion","outputs":[{"name":"","type":"int256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"SGX_ADDRESS","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"DELIVERED_FEE_FLAG","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"killswitch","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"requestId","type":"uint64"},{"name":"paramsHash","type":"bytes32"},{"name":"error","type":"uint64"},{"name":"respData","type":"bytes32"}],"name":"deliver","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"requestId","type":"uint64"}],"name":"cancel","outputs":[{"name":"","type":"int256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"requestType","type":"uint8"},{"name":"callbackAddr","type":"address"},{"name":"callbackFID","type":"bytes4"},{"name":"timestamp","type":"uint256"},{"name":"requestData","type":"bytes32[]"}],"name":"request","outputs":[{"name":"","type":"int256"}],"payable":true,"type":"function"},{"constant":true,"inputs":[],"name":"FAIL_FLAG","outputs":[{"name":"","type":"int256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"requestCnt","outputs":[{"name":"","type":"uint64"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"MIN_FEE","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"CANCELLATION_FEE","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"requests","outputs":[{"name":"requester","type":"address"},{"name":"fee","type":"uint256"},{"name":"callbackAddr","type":"address"},{"name":"callbackFID","type":"bytes4"},{"name":"paramsHash","type":"bytes32"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"GAS_PRICE","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"unrespondedCnt","outputs":[{"name":"","type":"uint64"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"price","type":"uint256"},{"name":"minGas","type":"uint256"},{"name":"cancellationGas","type":"uint256"}],"name":"reset","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"CANCELLED_FEE_FLAG","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"SUCCESS_FLAG","outputs":[{"name":"","type":"int256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"suspend","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"externalCallFlag","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"inputs":[],"payable":false,"type":"constructor"},{"payable":false,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newAddr","type":"address"}],"name":"Upgrade","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"gas_price","type":"uint256"},{"indexed":false,"name":"min_fee","type":"uint256"},{"indexed":false,"name":"cancellation_fee","type":"uint256"}],"name":"Reset","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"id","type":"uint64"},{"indexed":false,"name":"requestType","type":"uint8"},{"indexed":false,"name":"requester","type":"address"},{"indexed":false,"name":"fee","type":"uint256"},{"indexed":false,"name":"callbackAddr","type":"address"},{"indexed":false,"name":"paramsHash","type":"bytes32"},{"indexed":false,"name":"timestamp","type":"uint256"},{"indexed":false,"name":"requestData","type":"bytes32[]"}],"name":"RequestInfo","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"requestId","type":"uint64"},{"indexed":false,"name":"fee","type":"uint256"},{"indexed":false,"name":"gasPrice","type":"uint256"},{"indexed":false,"name":"gasLeft","type":"uint256"},{"indexed":false,"name":"callbackGas","type":"uint256"},{"indexed":false,"name":"paramsHash","type":"bytes32"},{"indexed":false,"name":"error","type":"uint64"},{"indexed":false,"name":"respData","type":"bytes32"}],"name":"DeliverInfo","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"requestId","type":"uint64"},{"indexed":false,"name":"canceller","type":"address"},{"indexed":false,"name":"requester","type":"address"},{"indexed":false,"name":"fee","type":"uint256"},{"indexed":false,"name":"flag","type":"int256"}],"name":"Cancel","type":"event"}]

  Contract Creation Code Switch To Opcodes View
6060604052640ba43b740060009081556605543df729c000600155660470de4df820006002556804000000000000000455341561003857fe5b5b6003805462010000605060020a0319166201000017905533600460005b6004020160005b508054600160a060020a031916600160a060020a03929092169190911790556003805461ffff605060020a03609060020a03191690555b5b611248806100a46000396000f3006060604052361561010c5763ffffffff60e060020a6000350416630900f010811461011d5780631ef3755d1461013b57806329cdda231461014d5780632e28b3f51461016f57806339c2697c1461019b5780633ccfd60b146101bd57806342dd96f7146101cf578063487a6e32146101f35780634c125e791461021e57806358487bee1461024c57806366a39350146102cd5780636ba7ffd5146102ef57806376c7a3c71461031b57806378b17ccf1461033d57806381d12c581461035f5780638b0ee5a3146103b6578063908f68ee146103d8578063a6801cbd14610404578063be0da2511461041f578063d073ca3d1461041f578063e6400bbe14610463578063fc9bfaa614610475575b341561011457fe5b61011b5b5b565b005b341561012557fe5b61011b600160a060020a0360043516610499565b005b341561014357fe5b61011b610535565b005b341561015557fe5b61015d610579565b60408051918252519081900360200190f35b341561017757fe5b61017f610587565b60408051600160a060020a039092168252519081900360200190f35b34156101a357fe5b61015d61059f565b60408051918252519081900360200190f35b34156101c557fe5b61011b6105a4565b005b34156101d757fe5b6101df610623565b604080519115158252519081900360200190f35b34156101fb57fe5b61011b6001604060020a03600435811690602435906044351660643561062c565b005b341561022657fe5b61015d6001604060020a0360043516610a3c565b60408051918252519081900360200190f35b604080516020600460843581810135838102808601850190965280855261015d95833560ff169560248035600160a060020a031696604435600160e060020a0319169660643596909560a4959390910192909182919085019084908082843750949650610ca095505050505050565b60408051918252519081900360200190f35b34156102d557fe5b61015d6110a3565b60408051918252519081900360200190f35b34156102f757fe5b6102ff6110ab565b604080516001604060020a039092168252519081900360200190f35b341561032357fe5b61015d6110c0565b60408051918252519081900360200190f35b341561034557fe5b61015d6110c6565b60408051918252519081900360200190f35b341561036757fe5b6103726004356110cc565b60408051600160a060020a03968716815260208101959095529290941683830152600160e060020a0319166060830152608082019290925290519081900360a00190f35b34156103be57fe5b61015d61111a565b60408051918252519081900360200190f35b34156103e057fe5b6102ff611120565b604080516001604060020a039092168252519081900360200190f35b341561040c57fe5b61011b600435602435604435611136565b005b341561042757fe5b61015d6111d1565b60408051918252519081900360200190f35b341561042757fe5b61015d6111d1565b60408051918252519081900360200190f35b341561046b57fe5b61011b6111db565b005b341561047d57fe5b6101df61120e565b604080519115158252519081900360200190f35b600460005b6004020160005b505433600160a060020a0390811691161480156104d25750600354605060020a90046001604060020a0316155b1561053157600160a060020a038116600081900368040000000000000004556003805460ff1916600117905560408051918252517ff78721226efe9a1bb678189a16d1554928b9f2192e2cb93eeda83b79fa40007d9181900360200190a15b5b50565b600460005b6004020160005b505433600160a060020a03908116911614801561056657506804000000000000000454155b15610118576003805460ff191690555b5b565b680400000000000000045481565b7318513702ccd928f2a3eb63d900adf03c9cc8159381565b600081565b600460005b6004020160005b505433600160a060020a0390811691161480156105dd5750600354605060020a90046001604060020a0316155b1561011857600460005b6004020160005b5054604051600160a060020a039182169130163190600081818185876185025a03f192505050151561011857610000565b5b5b565b60035460ff1681565b60008033600160a060020a03167318513702ccd928f2a3eb63d900adf03c9cc8159314158061066557506000866001604060020a031611155b80610698575060046001604060020a038716604060020a811061068457fe5b6004020160005b5054600160a060020a0316155b806106c75750600060046001604060020a038816604060020a81106106b957fe5b6004020160005b5060010154145b156106d157610a34565b60046001604060020a038716604060020a81106106ea57fe5b6004020160005b506001015491508460046001604060020a038816604060020a811061071257fe5b6004020160005b50600301541461072857610a34565b60018214156107ca576002546040517318513702ccd928f2a3eb63d900adf03c9cc815939180156108fc02916000818181858888f193505050505060006004876001604060020a0316604060020a8110151561078057fe5b6004020160005b5060010155600380546000196001604060020a03605060020a808404821692909201160271ffffffffffffffff0000000000000000000019909116179055610a34565b5b600060046001604060020a038816604060020a81106107e657fe5b6004020160005b50600101556003805471ffffffffffffffff00000000000000000000198116605060020a918290046001604060020a03908116600019018116909202179091556002908516101561086e576040517318513702ccd928f2a3eb63d900adf03c9cc815939083156108fc029084906000818181858888f19350505050506108ce565b6003805461ff00191661010017905560046001604060020a038716604060020a811061089657fe5b6004020160005b5054604051600160a060020a03909116906108fc9084906000818181858888f150506003805461ff00191690555050505b3a60015483038115156108dd57fe5b0490507fe36d392c21a3a1548b2b8da5316872a216610b14139ec0d80335e1b139c35c6286833a5a604080516001604060020a03958616815260208101949094528381019290925260608301526080820185905260a0820189905291871660c082015260e081018690529051908190036101000190a16113885a03811115610967576113885a0390505b6003805461ff00191661010017905560046001604060020a038716604060020a811061098f57fe5b6004020160005b5060020154600160a060020a03168160046001604060020a038916604060020a81106109be57fe5b6004020160005b50600201546040805160e060020a60a060020a909304830283900463ffffffff811690930281526001604060020a038b811660048301528916602482015260448101889052905191929160648083019260009291908290030181838887f150506003805461ff00191690555050505b505050505050565b6003546000908190610100900460ff1615610a5657610000565b60035460ff1615610a6a5760009150610c99565b60046001604060020a038416604060020a8110610a8357fe5b6004020160005b50600101549050600160a060020a03331660046001604060020a038516604060020a8110610ab457fe5b6004020160005b5054600160a060020a0316148015610ad557506002548110155b15610c0c57600160046001604060020a038516604060020a8110610af557fe5b6004020160005b50600101556003805461ff001916610100179055600254604051600160a060020a03331691830390600081818185876185025a03f1925050501515610b4057610000565b6003805461ff00191690557f0e2984d10e577bb65e890413616fdf852498a063437ca194d43fe257b33cd1ce833360046001604060020a038316604060020a8110610b8757fe5b6004020160005b5054600160a060020a031660046001604060020a038816604060020a8110610bb257fe5b6004020160005b50600190810154604080516001604060020a039096168652600160a060020a039485166020870152929093168483015260608401929092526080830191909152519081900360a00190a160019150610c99565b7f0e2984d10e577bb65e890413616fdf852498a063437ca194d43fe257b33cd1ce833360046001604060020a038316604060020a8110610c4857fe5b6004020160005b5054604080516001604060020a039094168452600160a060020a039283166020850152911682820152606082018490526000196080830152519081900360a00190a160fa60020a91505b5b50919050565b600060006000600360019054906101000a900460ff1615610cc057610000565b60035460ff1615610d23576003805461ff001916610100179055604051600160a060020a033316903490600081818185876185025a03f1925050501515610d0657610000565b6003805461ff001916905568040000000000000004549250611097565b600154341015610d7f576003805461ff001916610100179055604051600160a060020a033316903490600081818185876185025a03f1925050501515610d6857610000565b6003805461ff001916905560fa60020a9250611097565b60038054605060020a60016001604060020a03620100008085048216838101831690910269ffffffffffffffff000019909516949094178381048216830190911690920271ffffffffffffffff00000000000000000000199092169190911790925560405160f860020a60ff8c1602815286519194508a92879290820190602080850191028083838215610e2e575b805182526020831115610e2e57601f199092019160209182019101610e0e565b5050509050019250505060405180910390209050336004836001604060020a0316604060020a81101515610e5e57fe5b6004020160005b50805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790553460046001604060020a038416604060020a8110610eab57fe5b6004020160005b50600101558660046001604060020a038416604060020a8110610ed157fe5b6004020160005b50600201805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790558560046001604060020a038416604060020a8110610f2157fe5b6004020160005b50600201805460e060020a90920460a060020a0277ffffffff0000000000000000000000000000000000000000199092169190911790558060046001604060020a038416604060020a8110610f7957fe5b6004020160005b5060030181600019169055507f295780ea261767c398d062898e5648587d7b8ca371ffd203be8b4f9a43454ffa828933348b868b8b60405180896001604060020a03166001604060020a031681526020018860ff1660ff16815260200187600160a060020a0316600160a060020a0316815260200186815260200185600160a060020a0316600160a060020a03168152602001846000191660001916815260200183815260200180602001828103825283818151815260200191508051906020019060200280838360008314611071575b80518252602083111561107157601f199092019160209182019101611051565b505050905001995050505050505050505060405180910390a1816001604060020a031692505b5b505095945050505050565b60fa60020a81565b6003546201000090046001604060020a031681565b60015481565b60025481565b600481604060020a81106110dc57fe5b6004020160005b50805460018201546002830154600390930154600160a060020a03928316945090929182169160a060020a900460e060020a029085565b60005481565b600354605060020a90046001604060020a031681565b600460005b6004020160005b505433600160a060020a03908116911614801561116f5750600354605060020a90046001604060020a0316155b156111cb5760008390558183026001819055818402600281905560408051868152602081019390935282810191909152517f8ccc42b6e039247437260d1393a4352a1bbf3f2f9091caef694b2482a2ed914e9181900360600190a15b5b505050565b600181565b600181565b600460005b6004020160005b505433600160a060020a0390811691161415610118576003805460ff191660011790555b5b565b600354610100900460ff16815600a165627a7a72305820fd21c4caa91cdff8e738b01201b4ffc134931251b8eb75b1fe4e59a5ef4c96eb0029

   Swarm Source:
bzzr://fd21c4caa91cdff8e738b01201b4ffc134931251b8eb75b1fe4e59a5ef4c96eb

 

View All
Block Age txn Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "downvote" button for any spammy posts, and the "upvote" for interesting conversations.