Sponsored Link:   Buy your 1st Ethereum in 5 minutes. Trusted by more than 100k buyers.
Contract Overview
ETH Balance: 0.36 Ether
ETH USD Value: $261.17 (@ $725.48/ETH)
No Of Transactions: 27 txns
Misc
Address Watch Add To Watch List
Contract Creator 0x5c662ac9f4bf56119557124a8b1b262247d4710dat txn 0x59c68055a44a226e3bb60e6ecf63d7372c7c67694d266336bf7d911d598ea665
Token Tracker
  Latest 25 txns from a total Of 27 transactions View All

TxHash Age From To Value [TxFee]
0x0615df7f8fddac0bb2afc0f543e3989edf8d17b7bbcd256faf96c369f94ac83a76 days 12 hrs ago0x5c662ac9f4bf56119557124a8b1b262247d4710d  IN   0x162d558ac8f3b8aba5f549066ac81df4ddc912a20.02 Ether0.00189651
0xd712c6981a8582bccd141bbf37b4cc3125e913378e98c0e442e44eaaa38394a779 days 6 hrs ago0x1ee61945aee02b15154ab4a5824ba80ec8ed6f4e  IN   0x162d558ac8f3b8aba5f549066ac81df4ddc912a20.3 Ether0.01652748
0x2d24146b4064845629d790509afcfa4e2a7cbb858e9be3d75f1d81e56fd4b54f79 days 14 hrs agoOraclize  IN   0x162d558ac8f3b8aba5f549066ac81df4ddc912a20 Ether0.00609734
0x1cef737f3c20f47a0aefcea6c53f3a7ad530700b057483c016bdd1142e932b1879 days 14 hrs ago0x1ee61945aee02b15154ab4a5824ba80ec8ed6f4e  IN   0x162d558ac8f3b8aba5f549066ac81df4ddc912a20.6 Ether0.037331
0x761a79c394e020b5a57b87819ccf878daf7b01e41cec492791254b7712a9199579 days 14 hrs ago0x1ee61945aee02b15154ab4a5824ba80ec8ed6f4e  IN   0x162d558ac8f3b8aba5f549066ac81df4ddc912a21.05 Ether0.05595948
0x967a27882ef46208bd5a04e0d90fc39de86e868801ad4ae4aea0b09e00e6e8fb79 days 15 hrs ago0x1ee61945aee02b15154ab4a5824ba80ec8ed6f4e  IN   0x162d558ac8f3b8aba5f549066ac81df4ddc912a20.85 Ether0.04544428
0x3ac27b5095b5098a237a9f0a13c6d4ecb5799e768ac48ff30884a7c325a9bef479 days 15 hrs ago0x5c662ac9f4bf56119557124a8b1b262247d4710d  IN   0x162d558ac8f3b8aba5f549066ac81df4ddc912a20.7 Ether0.04495755881
0x2129458608d636609c1c68af2346edb54c0ba24606cbcfc18c392ea27e38d29e79 days 15 hrs ago0x1ee61945aee02b15154ab4a5824ba80ec8ed6f4e  IN   0x162d558ac8f3b8aba5f549066ac81df4ddc912a20.95 Ether0.05070188
0x07944e47cce7063c10651bcbf58bba4f2d7642c169656eb49454179d1723040679 days 15 hrs ago0x5c662ac9f4bf56119557124a8b1b262247d4710d  IN   0x162d558ac8f3b8aba5f549066ac81df4ddc912a20.666 Ether0.047254865595
0xc51d932ae175cab2f320f3d2561e488bc20a7f9c3ec21852ae1c6e6c1d5a2b3c79 days 15 hrs ago0x1ee61945aee02b15154ab4a5824ba80ec8ed6f4e  IN   0x162d558ac8f3b8aba5f549066ac81df4ddc912a20.9 Ether0.04807308
0xab24d91f6740d55d2ee96af8147faf0853f01dfcc1543a8da374128e9efe139f79 days 15 hrs ago0x5c662ac9f4bf56119557124a8b1b262247d4710d  IN   0x162d558ac8f3b8aba5f549066ac81df4ddc912a20.5 Ether0.030122241289
0x1f253fec5278d662f59f7eb74fe5bd8be0f2fbfa6b4bba55ce8b48a9a041400f79 days 15 hrs ago0x1ee61945aee02b15154ab4a5824ba80ec8ed6f4e  IN   0x162d558ac8f3b8aba5f549066ac81df4ddc912a20.777 Ether0.0412382
0x15a13612a470461ab7652b9a3adca1aa72c7c740233cf9fd9271870c2b2d826d79 days 15 hrs ago0x1ee61945aee02b15154ab4a5824ba80ec8ed6f4e  IN   0x162d558ac8f3b8aba5f549066ac81df4ddc912a20.888 Ether0.04702156
0x8e626ccab49c06f23cb471dce4b8926a0a528b74f10d8f380c559c61c3e9f96e79 days 16 hrs ago0x1ee61945aee02b15154ab4a5824ba80ec8ed6f4e  IN   0x162d558ac8f3b8aba5f549066ac81df4ddc912a21 Ether0.05333068
0x4513ec3d87e5490e9600fee015a69304b0f270854d47f333a60c6e9a423a270f79 days 16 hrs ago0x5c662ac9f4bf56119557124a8b1b262247d4710d  IN   0x162d558ac8f3b8aba5f549066ac81df4ddc912a20.06 Ether0.004059896842
0x4f46cd298a59ed5dd7bc0571b5c008d1086ce47a929439a4a395258d51d4b4ad79 days 16 hrs ago0x1ee61945aee02b15154ab4a5824ba80ec8ed6f4e  IN   0x162d558ac8f3b8aba5f549066ac81df4ddc912a20.55 Ether0.02967148
0x77f71fc13427c89d155b3d8f719c8ccc5a20ff80169636c1ec35a7e4d2d083d179 days 16 hrs ago0x5c662ac9f4bf56119557124a8b1b262247d4710d  IN   0x162d558ac8f3b8aba5f549066ac81df4ddc912a20.7 Ether0.039005310087
0x3576c1d521a5d90817eb50a21b2e8f7f204262188572f7f1f265ddd02247bddc79 days 17 hrs ago0x1ee61945aee02b15154ab4a5824ba80ec8ed6f4e  IN   0x162d558ac8f3b8aba5f549066ac81df4ddc912a20.5 Ether0.02704268
0x4cf1884c151b5d7d6f09cf46b1f77e4973280996eb4e4871899428ba25f5edf481 days 5 hrs ago0x1ee61945aee02b15154ab4a5824ba80ec8ed6f4e  IN   0x162d558ac8f3b8aba5f549066ac81df4ddc912a20.03 Ether0.00233196
0x8a3293899c679651c3401f6d6b478b764e6c70fd49b46bce7b112c8b5cc803f381 days 6 hrs ago0x1ee61945aee02b15154ab4a5824ba80ec8ed6f4e  IN   0x162d558ac8f3b8aba5f549066ac81df4ddc912a20.06 Ether0.00390924
0xd722afa1378623593d625635d0c1fdbf9fd485ecd50ed3932a4a6858625a6c5e81 days 6 hrs ago0x1ee61945aee02b15154ab4a5824ba80ec8ed6f4e  IN   0x162d558ac8f3b8aba5f549066ac81df4ddc912a20.05 Ether0.00075468
0x18d1c53ccef99b4d2d2d4677850e7c10fa2d38eb0347c497fe2b23a96872a0ba81 days 7 hrs ago0x5c662ac9f4bf56119557124a8b1b262247d4710d  IN   0x162d558ac8f3b8aba5f549066ac81df4ddc912a20.1 Ether0.00601228
0x411310e008d5a92321a24feb98ab11b7db8d602e76cdf99ddddbfd252d9e08a581 days 7 hrs ago0x1ee61945aee02b15154ab4a5824ba80ec8ed6f4e  IN   0x162d558ac8f3b8aba5f549066ac81df4ddc912a20.1 Ether0.00601228
0xf15ab6e43d4c052347702ade6d36ed34d4182fbfc34ed4b2552510c404b005e081 days 7 hrs ago0x1ee61945aee02b15154ab4a5824ba80ec8ed6f4e  IN   0x162d558ac8f3b8aba5f549066ac81df4ddc912a20.05 Ether0.00338348
0x9dec40c652c2147900a08f910ea1bc580fbe818fcc7d2478268cc0c3e69355cd81 days 8 hrs ago0x1ee61945aee02b15154ab4a5824ba80ec8ed6f4e  IN   0x162d558ac8f3b8aba5f549066ac81df4ddc912a20.02 Ether0.0018062
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
  Latest 3 Internal Transactions

ParentTxHash Block Age From To Value
0x2d24146b4064845629d790509afcfa4e2a7cbb858e9be3d75f1d81e56fd4b54f432087879 days 14 hrs ago0x162d558ac8f3b8aba5f549066ac81df4ddc912a20x1afe87a58189ea9e957df44db7a3e0b74c3b83ad1.01083364289568435 Ether
0x2d24146b4064845629d790509afcfa4e2a7cbb858e9be3d75f1d81e56fd4b54f432087879 days 14 hrs ago0x162d558ac8f3b8aba5f549066ac81df4ddc912a20x1ee61945aee02b15154ab4a5824ba80ec8ed6f4e10 Ether
0x1cef737f3c20f47a0aefcea6c53f3a7ad530700b057483c016bdd1142e932b18432087579 days 14 hrs ago0x162d558ac8f3b8aba5f549066ac81df4ddc912a20x6f28b146804dba2d6f944c03528a8fdbc673df2c0.01016635710431565 Ether
[ Download CSV Export  ] 
Warning: The compiled contract might be susceptible to ZeroFunctionSelector (very low-severity) Solidity compiler bugs.

Contract Source Code Verified
Contract Name: Lottesy10eth
Compiler Version: v0.4.17+commit.bdeb9e52
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts
pragma solidity ^0.4.17;

// Lottesy 10 ETH lottery
// Copyright (c) 2017 Lottesy
// -----------------------------------------------------
//  Send any amount multiple of 0.01 ETH to the address
//            shown at http://lottesy.com
//                Win 10 ETH today!
// ----------------------------------------------------

// We use the Oraclize random datasource for the drawing
// Copyright (c) 2015-2017 Oraclize SRL
// Copyright (c) 2017 Oraclize LTD
// for more info visit https://oraclize.it

contract OraclizeI {
    address public cbAddress;
    function query(uint _timestamp, string _datasource, string _arg) payable returns (bytes32 _id);
    function query_withGasLimit(uint _timestamp, string _datasource, string _arg, uint _gaslimit) payable returns (bytes32 _id);
    function query2(uint _timestamp, string _datasource, string _arg1, string _arg2) payable returns (bytes32 _id);
    function query2_withGasLimit(uint _timestamp, string _datasource, string _arg1, string _arg2, uint _gaslimit) payable returns (bytes32 _id);
    function queryN(uint _timestamp, string _datasource, bytes _argN) payable returns (bytes32 _id);
    function queryN_withGasLimit(uint _timestamp, string _datasource, bytes _argN, uint _gaslimit) payable returns (bytes32 _id);
    function getPrice(string _datasource) returns (uint _dsprice);
    function getPrice(string _datasource, uint gaslimit) returns (uint _dsprice);
    function useCoupon(string _coupon);
    function setProofType(byte _proofType);
    function setConfig(bytes32 _config);
    function setCustomGasPrice(uint _gasPrice);
    function randomDS_getSessionPubKeyHash() returns(bytes32);
}
contract OraclizeAddrResolverI {
    function getAddress() returns (address _addr);
}

contract usingOraclize {
    uint constant day = 60*60*24;
    uint constant week = 60*60*24*7;
    uint constant month = 60*60*24*30;
    byte constant proofType_NONE = 0x00;
    byte constant proofType_TLSNotary = 0x10;
    byte constant proofType_Android = 0x20;
    byte constant proofType_Ledger = 0x30;
    byte constant proofType_Native = 0xF0;
    byte constant proofStorage_IPFS = 0x01;
    uint8 constant networkID_auto = 0;
    uint8 constant networkID_mainnet = 1;
    uint8 constant networkID_testnet = 2;
    uint8 constant networkID_morden = 2;
    uint8 constant networkID_consensys = 161;

    OraclizeAddrResolverI OAR;

    OraclizeI oraclize;
    modifier oraclizeAPI {
        if((address(OAR)==0)||(getCodeSize(address(OAR))==0)) oraclize_setNetwork(networkID_auto);
        oraclize = OraclizeI(OAR.getAddress());
        _;
    }
    modifier coupon(string code){
        oraclize = OraclizeI(OAR.getAddress());
        oraclize.useCoupon(code);
        _;
    }

    function oraclize_setNetwork(uint8 networkID) internal returns(bool){
        if (getCodeSize(0x1d3B2638a7cC9f2CB3D298A3DA7a90B67E5506ed)>0){ //mainnet
            OAR = OraclizeAddrResolverI(0x1d3B2638a7cC9f2CB3D298A3DA7a90B67E5506ed);
            oraclize_setNetworkName("eth_mainnet");
            return true;
        }
        if (getCodeSize(0xc03A2615D5efaf5F49F60B7BB6583eaec212fdf1)>0){ //ropsten testnet
            OAR = OraclizeAddrResolverI(0xc03A2615D5efaf5F49F60B7BB6583eaec212fdf1);
            oraclize_setNetworkName("eth_ropsten3");
            return true;
        }
        if (getCodeSize(0xB7A07BcF2Ba2f2703b24C0691b5278999C59AC7e)>0){ //kovan testnet
            OAR = OraclizeAddrResolverI(0xB7A07BcF2Ba2f2703b24C0691b5278999C59AC7e);
            oraclize_setNetworkName("eth_kovan");
            return true;
        }
        if (getCodeSize(0x146500cfd35B22E4A392Fe0aDc06De1a1368Ed48)>0){ //rinkeby testnet
            OAR = OraclizeAddrResolverI(0x146500cfd35B22E4A392Fe0aDc06De1a1368Ed48);
            oraclize_setNetworkName("eth_rinkeby");
            return true;
        }
        if (getCodeSize(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475)>0){ //ethereum-bridge
            OAR = OraclizeAddrResolverI(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475);
            return true;
        }
        if (getCodeSize(0x20e12A1F859B3FeaE5Fb2A0A32C18F5a65555bBF)>0){ //ether.camp ide
            OAR = OraclizeAddrResolverI(0x20e12A1F859B3FeaE5Fb2A0A32C18F5a65555bBF);
            return true;
        }
        if (getCodeSize(0x51efaF4c8B3C9AfBD5aB9F4bbC82784Ab6ef8fAA)>0){ //browser-solidity
            OAR = OraclizeAddrResolverI(0x51efaF4c8B3C9AfBD5aB9F4bbC82784Ab6ef8fAA);
            return true;
        }
        return false;
    }

    function __callback(bytes32 myid, string result) {
        __callback(myid, result, new bytes(0));
    }
    function __callback(bytes32 myid, string result, bytes proof) {
    }

    function oraclize_useCoupon(string code) oraclizeAPI internal {
        oraclize.useCoupon(code);
    }

    function oraclize_getPrice(string datasource) oraclizeAPI internal returns (uint){
        return oraclize.getPrice(datasource);
    }

    function oraclize_getPrice(string datasource, uint gaslimit) oraclizeAPI internal returns (uint){
        return oraclize.getPrice(datasource, gaslimit);
    }

    function oraclize_query(string datasource, string arg) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource);
        if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price
        return oraclize.query.value(price)(0, datasource, arg);
    }
    function oraclize_query(uint timestamp, string datasource, string arg) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource);
        if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price
        return oraclize.query.value(price)(timestamp, datasource, arg);
    }
    function oraclize_query(uint timestamp, string datasource, string arg, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource, gaslimit);
        if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price
        return oraclize.query_withGasLimit.value(price)(timestamp, datasource, arg, gaslimit);
    }
    function oraclize_query(string datasource, string arg, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource, gaslimit);
        if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price
        return oraclize.query_withGasLimit.value(price)(0, datasource, arg, gaslimit);
    }
    function oraclize_query(string datasource, string arg1, string arg2) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource);
        if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price
        return oraclize.query2.value(price)(0, datasource, arg1, arg2);
    }
    function oraclize_query(uint timestamp, string datasource, string arg1, string arg2) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource);
        if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price
        return oraclize.query2.value(price)(timestamp, datasource, arg1, arg2);
    }
    function oraclize_query(uint timestamp, string datasource, string arg1, string arg2, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource, gaslimit);
        if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price
        return oraclize.query2_withGasLimit.value(price)(timestamp, datasource, arg1, arg2, gaslimit);
    }
    function oraclize_query(string datasource, string arg1, string arg2, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource, gaslimit);
        if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price
        return oraclize.query2_withGasLimit.value(price)(0, datasource, arg1, arg2, gaslimit);
    }
    function oraclize_query(string datasource, string[] argN) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource);
        if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price
        bytes memory args = stra2cbor(argN);
        return oraclize.queryN.value(price)(0, datasource, args);
    }
    function oraclize_query(uint timestamp, string datasource, string[] argN) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource);
        if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price
        bytes memory args = stra2cbor(argN);
        return oraclize.queryN.value(price)(timestamp, datasource, args);
    }
    function oraclize_query(uint timestamp, string datasource, string[] argN, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource, gaslimit);
        if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price
        bytes memory args = stra2cbor(argN);
        return oraclize.queryN_withGasLimit.value(price)(timestamp, datasource, args, gaslimit);
    }
    function oraclize_query(string datasource, string[] argN, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource, gaslimit);
        if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price
        bytes memory args = stra2cbor(argN);
        return oraclize.queryN_withGasLimit.value(price)(0, datasource, args, gaslimit);
    }
    function oraclize_query(string datasource, string[1] args) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](1);
        dynargs[0] = args[0];
        return oraclize_query(datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, string[1] args) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](1);
        dynargs[0] = args[0];
        return oraclize_query(timestamp, datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, string[1] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](1);
        dynargs[0] = args[0];
        return oraclize_query(timestamp, datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, string[1] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](1);
        dynargs[0] = args[0];
        return oraclize_query(datasource, dynargs, gaslimit);
    }

    function oraclize_query(string datasource, string[2] args) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](2);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        return oraclize_query(datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, string[2] args) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](2);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        return oraclize_query(timestamp, datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, string[2] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](2);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        return oraclize_query(timestamp, datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, string[2] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](2);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        return oraclize_query(datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, string[3] args) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](3);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        return oraclize_query(datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, string[3] args) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](3);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        return oraclize_query(timestamp, datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, string[3] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](3);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        return oraclize_query(timestamp, datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, string[3] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](3);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        return oraclize_query(datasource, dynargs, gaslimit);
    }

    function oraclize_query(string datasource, string[4] args) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](4);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        return oraclize_query(datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, string[4] args) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](4);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        return oraclize_query(timestamp, datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, string[4] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](4);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        return oraclize_query(timestamp, datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, string[4] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](4);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        return oraclize_query(datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, string[5] args) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](5);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        dynargs[4] = args[4];
        return oraclize_query(datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, string[5] args) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](5);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        dynargs[4] = args[4];
        return oraclize_query(timestamp, datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, string[5] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](5);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        dynargs[4] = args[4];
        return oraclize_query(timestamp, datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, string[5] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](5);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        dynargs[4] = args[4];
        return oraclize_query(datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, bytes[] argN) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource);
        if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price
        bytes memory args = ba2cbor(argN);
        return oraclize.queryN.value(price)(0, datasource, args);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[] argN) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource);
        if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price
        bytes memory args = ba2cbor(argN);
        return oraclize.queryN.value(price)(timestamp, datasource, args);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[] argN, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource, gaslimit);
        if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price
        bytes memory args = ba2cbor(argN);
        return oraclize.queryN_withGasLimit.value(price)(timestamp, datasource, args, gaslimit);
    }
    function oraclize_query(string datasource, bytes[] argN, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource, gaslimit);
        if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price
        bytes memory args = ba2cbor(argN);
        return oraclize.queryN_withGasLimit.value(price)(0, datasource, args, gaslimit);
    }
    function oraclize_query(string datasource, bytes[1] args) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](1);
        dynargs[0] = args[0];
        return oraclize_query(datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[1] args) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](1);
        dynargs[0] = args[0];
        return oraclize_query(timestamp, datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[1] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](1);
        dynargs[0] = args[0];
        return oraclize_query(timestamp, datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, bytes[1] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](1);
        dynargs[0] = args[0];
        return oraclize_query(datasource, dynargs, gaslimit);
    }

    function oraclize_query(string datasource, bytes[2] args) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](2);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        return oraclize_query(datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[2] args) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](2);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        return oraclize_query(timestamp, datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[2] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](2);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        return oraclize_query(timestamp, datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, bytes[2] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](2);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        return oraclize_query(datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, bytes[3] args) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](3);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        return oraclize_query(datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[3] args) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](3);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        return oraclize_query(timestamp, datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[3] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](3);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        return oraclize_query(timestamp, datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, bytes[3] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](3);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        return oraclize_query(datasource, dynargs, gaslimit);
    }

    function oraclize_query(string datasource, bytes[4] args) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](4);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        return oraclize_query(datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[4] args) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](4);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        return oraclize_query(timestamp, datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[4] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](4);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        return oraclize_query(timestamp, datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, bytes[4] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](4);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        return oraclize_query(datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, bytes[5] args) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](5);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        dynargs[4] = args[4];
        return oraclize_query(datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[5] args) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](5);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        dynargs[4] = args[4];
        return oraclize_query(timestamp, datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[5] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](5);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        dynargs[4] = args[4];
        return oraclize_query(timestamp, datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, bytes[5] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](5);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        dynargs[4] = args[4];
        return oraclize_query(datasource, dynargs, gaslimit);
    }

    function oraclize_cbAddress() oraclizeAPI internal returns (address){
        return oraclize.cbAddress();
    }
    function oraclize_setProof(byte proofP) oraclizeAPI internal {
        return oraclize.setProofType(proofP);
    }
    function oraclize_setCustomGasPrice(uint gasPrice) oraclizeAPI internal {
        return oraclize.setCustomGasPrice(gasPrice);
    }
    function oraclize_setConfig(bytes32 config) oraclizeAPI internal {
        return oraclize.setConfig(config);
    }

    function oraclize_randomDS_getSessionPubKeyHash() oraclizeAPI internal returns (bytes32){
        return oraclize.randomDS_getSessionPubKeyHash();
    }

    function getCodeSize(address _addr) constant internal returns(uint _size) {
        assembly {
            _size := extcodesize(_addr)
        }
    }

    function parseAddr(string _a) internal returns (address){
        bytes memory tmp = bytes(_a);
        uint160 iaddr = 0;
        uint160 b1;
        uint160 b2;
        for (uint i=2; i<2+2*20; i+=2){
            iaddr *= 256;
            b1 = uint160(tmp[i]);
            b2 = uint160(tmp[i+1]);
            if ((b1 >= 97)&&(b1 <= 102)) b1 -= 87;
            else if ((b1 >= 65)&&(b1 <= 70)) b1 -= 55;
            else if ((b1 >= 48)&&(b1 <= 57)) b1 -= 48;
            if ((b2 >= 97)&&(b2 <= 102)) b2 -= 87;
            else if ((b2 >= 65)&&(b2 <= 70)) b2 -= 55;
            else if ((b2 >= 48)&&(b2 <= 57)) b2 -= 48;
            iaddr += (b1*16+b2);
        }
        return address(iaddr);
    }

    function strCompare(string _a, string _b) internal returns (int) {
        bytes memory a = bytes(_a);
        bytes memory b = bytes(_b);
        uint minLength = a.length;
        if (b.length < minLength) minLength = b.length;
        for (uint i = 0; i < minLength; i ++)
            if (a[i] < b[i])
                return -1;
            else if (a[i] > b[i])
                return 1;
        if (a.length < b.length)
            return -1;
        else if (a.length > b.length)
            return 1;
        else
            return 0;
    }

    function indexOf(string _haystack, string _needle) internal returns (int) {
        bytes memory h = bytes(_haystack);
        bytes memory n = bytes(_needle);
        if(h.length < 1 || n.length < 1 || (n.length > h.length))
            return -1;
        else if(h.length > (2**128 -1))
            return -1;
        else
        {
            uint subindex = 0;
            for (uint i = 0; i < h.length; i ++)
            {
                if (h[i] == n[0])
                {
                    subindex = 1;
                    while(subindex < n.length && (i + subindex) < h.length && h[i + subindex] == n[subindex])
                    {
                        subindex++;
                    }
                    if(subindex == n.length)
                        return int(i);
                }
            }
            return -1;
        }
    }

    function strConcat(string _a, string _b, string _c, string _d, string _e) internal returns (string) {
        bytes memory _ba = bytes(_a);
        bytes memory _bb = bytes(_b);
        bytes memory _bc = bytes(_c);
        bytes memory _bd = bytes(_d);
        bytes memory _be = bytes(_e);
        string memory abcde = new string(_ba.length + _bb.length + _bc.length + _bd.length + _be.length);
        bytes memory babcde = bytes(abcde);
        uint k = 0;
        for (uint i = 0; i < _ba.length; i++) babcde[k++] = _ba[i];
        for (i = 0; i < _bb.length; i++) babcde[k++] = _bb[i];
        for (i = 0; i < _bc.length; i++) babcde[k++] = _bc[i];
        for (i = 0; i < _bd.length; i++) babcde[k++] = _bd[i];
        for (i = 0; i < _be.length; i++) babcde[k++] = _be[i];
        return string(babcde);
    }

    function strConcat(string _a, string _b, string _c, string _d) internal returns (string) {
        return strConcat(_a, _b, _c, _d, "");
    }

    function strConcat(string _a, string _b, string _c) internal returns (string) {
        return strConcat(_a, _b, _c, "", "");
    }

    function strConcat(string _a, string _b) internal returns (string) {
        return strConcat(_a, _b, "", "", "");
    }

    // parseInt
    function parseInt(string _a) internal returns (uint) {
        return parseInt(_a, 0);
    }

    // parseInt(parseFloat*10^_b)
    function parseInt(string _a, uint _b) internal returns (uint) {
        bytes memory bresult = bytes(_a);
        uint mint = 0;
        bool decimals = false;
        for (uint i=0; i<bresult.length; i++){
            if ((bresult[i] >= 48)&&(bresult[i] <= 57)){
                if (decimals){
                   if (_b == 0) break;
                    else _b--;
                }
                mint *= 10;
                mint += uint(bresult[i]) - 48;
            } else if (bresult[i] == 46) decimals = true;
        }
        if (_b > 0) mint *= 10**_b;
        return mint;
    }

    function uint2str(uint i) internal returns (string){
        if (i == 0) return "0";
        uint j = i;
        uint len;
        while (j != 0){
            len++;
            j /= 10;
        }
        bytes memory bstr = new bytes(len);
        uint k = len - 1;
        while (i != 0){
            bstr[k--] = byte(48 + i % 10);
            i /= 10;
        }
        return string(bstr);
    }

    function stra2cbor(string[] arr) internal returns (bytes) {
            uint arrlen = arr.length;

            // get correct cbor output length
            uint outputlen = 0;
            bytes[] memory elemArray = new bytes[](arrlen);
            for (uint i = 0; i < arrlen; i++) {
                elemArray[i] = (bytes(arr[i]));
                outputlen += elemArray[i].length + (elemArray[i].length - 1)/23 + 3; //+3 accounts for paired identifier types
            }
            uint ctr = 0;
            uint cborlen = arrlen + 0x80;
            outputlen += byte(cborlen).length;
            bytes memory res = new bytes(outputlen);

            while (byte(cborlen).length > ctr) {
                res[ctr] = byte(cborlen)[ctr];
                ctr++;
            }
            for (i = 0; i < arrlen; i++) {
                res[ctr] = 0x5F;
                ctr++;
                for (uint x = 0; x < elemArray[i].length; x++) {
                    // if there's a bug with larger strings, this may be the culprit
                    if (x % 23 == 0) {
                        uint elemcborlen = elemArray[i].length - x >= 24 ? 23 : elemArray[i].length - x;
                        elemcborlen += 0x40;
                        uint lctr = ctr;
                        while (byte(elemcborlen).length > ctr - lctr) {
                            res[ctr] = byte(elemcborlen)[ctr - lctr];
                            ctr++;
                        }
                    }
                    res[ctr] = elemArray[i][x];
                    ctr++;
                }
                res[ctr] = 0xFF;
                ctr++;
            }
            return res;
        }

    function ba2cbor(bytes[] arr) internal returns (bytes) {
            uint arrlen = arr.length;

            // get correct cbor output length
            uint outputlen = 0;
            bytes[] memory elemArray = new bytes[](arrlen);
            for (uint i = 0; i < arrlen; i++) {
                elemArray[i] = (bytes(arr[i]));
                outputlen += elemArray[i].length + (elemArray[i].length - 1)/23 + 3; //+3 accounts for paired identifier types
            }
            uint ctr = 0;
            uint cborlen = arrlen + 0x80;
            outputlen += byte(cborlen).length;
            bytes memory res = new bytes(outputlen);

            while (byte(cborlen).length > ctr) {
                res[ctr] = byte(cborlen)[ctr];
                ctr++;
            }
            for (i = 0; i < arrlen; i++) {
                res[ctr] = 0x5F;
                ctr++;
                for (uint x = 0; x < elemArray[i].length; x++) {
                    // if there's a bug with larger strings, this may be the culprit
                    if (x % 23 == 0) {
                        uint elemcborlen = elemArray[i].length - x >= 24 ? 23 : elemArray[i].length - x;
                        elemcborlen += 0x40;
                        uint lctr = ctr;
                        while (byte(elemcborlen).length > ctr - lctr) {
                            res[ctr] = byte(elemcborlen)[ctr - lctr];
                            ctr++;
                        }
                    }
                    res[ctr] = elemArray[i][x];
                    ctr++;
                }
                res[ctr] = 0xFF;
                ctr++;
            }
            return res;
        }


    string oraclize_network_name;
    function oraclize_setNetworkName(string _network_name) internal {
        oraclize_network_name = _network_name;
    }

    function oraclize_getNetworkName() internal returns (string) {
        return oraclize_network_name;
    }

    function oraclize_newRandomDSQuery(uint _delay, uint _nbytes, uint _customGasLimit) internal returns (bytes32){
        if ((_nbytes == 0)||(_nbytes > 32)) throw;
        bytes memory nbytes = new bytes(1);
        nbytes[0] = byte(_nbytes);
        bytes memory unonce = new bytes(32);
        bytes memory sessionKeyHash = new bytes(32);
        bytes32 sessionKeyHash_bytes32 = oraclize_randomDS_getSessionPubKeyHash();
        assembly {
            mstore(unonce, 0x20)
            mstore(add(unonce, 0x20), xor(blockhash(sub(number, 1)), xor(coinbase, timestamp)))
            mstore(sessionKeyHash, 0x20)
            mstore(add(sessionKeyHash, 0x20), sessionKeyHash_bytes32)
        }
        bytes[3] memory args = [unonce, nbytes, sessionKeyHash];
        bytes32 queryId = oraclize_query(_delay, "random", args, _customGasLimit);
        oraclize_randomDS_setCommitment(queryId, sha3(bytes8(_delay), args[1], sha256(args[0]), args[2]));
        return queryId;
    }

    function oraclize_randomDS_setCommitment(bytes32 queryId, bytes32 commitment) internal {
        oraclize_randomDS_args[queryId] = commitment;
    }

    mapping(bytes32=>bytes32) oraclize_randomDS_args;
    mapping(bytes32=>bool) oraclize_randomDS_sessionKeysHashVerified;

    function verifySig(bytes32 tosignh, bytes dersig, bytes pubkey) internal returns (bool){
        bool sigok;
        address signer;

        bytes32 sigr;
        bytes32 sigs;

        bytes memory sigr_ = new bytes(32);
        uint offset = 4+(uint(dersig[3]) - 0x20);
        sigr_ = copyBytes(dersig, offset, 32, sigr_, 0);
        bytes memory sigs_ = new bytes(32);
        offset += 32 + 2;
        sigs_ = copyBytes(dersig, offset+(uint(dersig[offset-1]) - 0x20), 32, sigs_, 0);

        assembly {
            sigr := mload(add(sigr_, 32))
            sigs := mload(add(sigs_, 32))
        }


        (sigok, signer) = safer_ecrecover(tosignh, 27, sigr, sigs);
        if (address(sha3(pubkey)) == signer) return true;
        else {
            (sigok, signer) = safer_ecrecover(tosignh, 28, sigr, sigs);
            return (address(sha3(pubkey)) == signer);
        }
    }

    function oraclize_randomDS_proofVerify__sessionKeyValidity(bytes proof, uint sig2offset) internal returns (bool) {
        bool sigok;

        // Step 6: verify the attestation signature, APPKEY1 must sign the sessionKey from the correct ledger app (CODEHASH)
        bytes memory sig2 = new bytes(uint(proof[sig2offset+1])+2);
        copyBytes(proof, sig2offset, sig2.length, sig2, 0);

        bytes memory appkey1_pubkey = new bytes(64);
        copyBytes(proof, 3+1, 64, appkey1_pubkey, 0);

        bytes memory tosign2 = new bytes(1+65+32);
        tosign2[0] = 1; //role
        copyBytes(proof, sig2offset-65, 65, tosign2, 1);
        bytes memory CODEHASH = hex"fd94fa71bc0ba10d39d464d0d8f465efeef0a2764e3887fcc9df41ded20f505c";
        copyBytes(CODEHASH, 0, 32, tosign2, 1+65);
        sigok = verifySig(sha256(tosign2), sig2, appkey1_pubkey);

        if (sigok == false) return false;


        // Step 7: verify the APPKEY1 provenance (must be signed by Ledger)
        bytes memory LEDGERKEY = hex"7fb956469c5c9b89840d55b43537e66a98dd4811ea0a27224272c2e5622911e8537a2f8e86a46baec82864e98dd01e9ccc2f8bc5dfc9cbe5a91a290498dd96e4";

        bytes memory tosign3 = new bytes(1+65);
        tosign3[0] = 0xFE;
        copyBytes(proof, 3, 65, tosign3, 1);

        bytes memory sig3 = new bytes(uint(proof[3+65+1])+2);
        copyBytes(proof, 3+65, sig3.length, sig3, 0);

        sigok = verifySig(sha256(tosign3), sig3, LEDGERKEY);

        return sigok;
    }

    modifier oraclize_randomDS_proofVerify(bytes32 _queryId, string _result, bytes _proof) {
        // Step 1: the prefix has to match 'LP\x01' (Ledger Proof version 1)
        if ((_proof[0] != "L")||(_proof[1] != "P")||(_proof[2] != 1)) throw;

        bool proofVerified = oraclize_randomDS_proofVerify__main(_proof, _queryId, bytes(_result), oraclize_getNetworkName());
        if (proofVerified == false) throw;

        _;
    }

    function oraclize_randomDS_proofVerify__returnCode(bytes32 _queryId, string _result, bytes _proof) internal returns (uint8){
            // Step 1: the prefix has to match 'LP\x01' (Ledger Proof version 1)
           if ((_proof[0] != "L")||(_proof[1] != "P")||(_proof[2] != 1)) return 1;

            bool proofVerified = oraclize_randomDS_proofVerify__main(_proof, _queryId, bytes(_result), oraclize_getNetworkName());
            if (proofVerified == false) return 2;

            return 0;
        }

    function matchBytes32Prefix(bytes32 content, bytes prefix) internal returns (bool){
        bool match_ = true;

        for (var i=0; i<prefix.length; i++){
            if (content[i] != prefix[i]) match_ = false;
        }

        return match_;
    }

    function oraclize_randomDS_proofVerify__main(bytes proof, bytes32 queryId, bytes result, string context_name) internal returns (bool){
        bool checkok;


        // Step 2: the unique keyhash has to match with the sha256 of (context name + queryId)
        uint ledgerProofLength = 3+65+(uint(proof[3+65+1])+2)+32;
        bytes memory keyhash = new bytes(32);
        copyBytes(proof, ledgerProofLength, 32, keyhash, 0);
        checkok = (sha3(keyhash) == sha3(sha256(context_name, queryId)));
        if (checkok == false) return false;

        bytes memory sig1 = new bytes(uint(proof[ledgerProofLength+(32+8+1+32)+1])+2);
        copyBytes(proof, ledgerProofLength+(32+8+1+32), sig1.length, sig1, 0);


        // Step 3: we assume sig1 is valid (it will be verified during step 5) and we verify if 'result' is the prefix of sha256(sig1)
        checkok = matchBytes32Prefix(sha256(sig1), result);
        if (checkok == false) return false;


        // Step 4: commitment match verification, sha3(delay, nbytes, unonce, sessionKeyHash) == commitment in storage.
        // This is to verify that the computed args match with the ones specified in the query.
        bytes memory commitmentSlice1 = new bytes(8+1+32);
        copyBytes(proof, ledgerProofLength+32, 8+1+32, commitmentSlice1, 0);

        bytes memory sessionPubkey = new bytes(64);
        uint sig2offset = ledgerProofLength+32+(8+1+32)+sig1.length+65;
        copyBytes(proof, sig2offset-64, 64, sessionPubkey, 0);

        bytes32 sessionPubkeyHash = sha256(sessionPubkey);
        if (oraclize_randomDS_args[queryId] == sha3(commitmentSlice1, sessionPubkeyHash)){ //unonce, nbytes and sessionKeyHash match
            delete oraclize_randomDS_args[queryId];
        } else return false;


        // Step 5: validity verification for sig1 (keyhash and args signed with the sessionKey)
        bytes memory tosign1 = new bytes(32+8+1+32);
        copyBytes(proof, ledgerProofLength, 32+8+1+32, tosign1, 0);
        checkok = verifySig(sha256(tosign1), sig1, sessionPubkey);
        if (checkok == false) return false;

        // verify if sessionPubkeyHash was verified already, if not.. let's do it!
        if (oraclize_randomDS_sessionKeysHashVerified[sessionPubkeyHash] == false){
            oraclize_randomDS_sessionKeysHashVerified[sessionPubkeyHash] = oraclize_randomDS_proofVerify__sessionKeyValidity(proof, sig2offset);
        }

        return oraclize_randomDS_sessionKeysHashVerified[sessionPubkeyHash];
    }


    // the following function has been written by Alex Beregszaszi (@axic), use it under the terms of the MIT license
    function copyBytes(bytes from, uint fromOffset, uint length, bytes to, uint toOffset) internal returns (bytes) {
        uint minLength = length + toOffset;

        if (to.length < minLength) {
            // Buffer too small
            throw; // Should be a better way?
        }

        // NOTE: the offset 32 is added to skip the `size` field of both bytes variables
        uint i = 32 + fromOffset;
        uint j = 32 + toOffset;

        while (i < (32 + fromOffset + length)) {
            assembly {
                let tmp := mload(add(from, i))
                mstore(add(to, j), tmp)
            }
            i += 32;
            j += 32;
        }

        return to;
    }

    // the following function has been written by Alex Beregszaszi (@axic), use it under the terms of the MIT license
    // Duplicate Solidity's ecrecover, but catching the CALL return value
    function safer_ecrecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal returns (bool, address) {
        // We do our own memory management here. Solidity uses memory offset
        // 0x40 to store the current end of memory. We write past it (as
        // writes are memory extensions), but don't update the offset so
        // Solidity will reuse it. The memory used here is only needed for
        // this context.

        // FIXME: inline assembly can't access return values
        bool ret;
        address addr;

        assembly {
            let size := mload(0x40)
            mstore(size, hash)
            mstore(add(size, 32), v)
            mstore(add(size, 64), r)
            mstore(add(size, 96), s)

            // NOTE: we can reuse the request memory because we deal with
            //       the return code
            ret := call(3000, 1, 0, size, 128, size, 32)
            addr := mload(size)
        }

        return (ret, addr);
    }

    // the following function has been written by Alex Beregszaszi (@axic), use it under the terms of the MIT license
    function ecrecovery(bytes32 hash, bytes sig) internal returns (bool, address) {
        bytes32 r;
        bytes32 s;
        uint8 v;

        if (sig.length != 65)
          return (false, 0);

        // The signature format is a compact form of:
        //   {bytes32 r}{bytes32 s}{uint8 v}
        // Compact means, uint8 is not padded to 32 bytes.
        assembly {
            r := mload(add(sig, 32))
            s := mload(add(sig, 64))

            // Here we are loading the last 32 bytes. We exploit the fact that
            // 'mload' will pad with zeroes if we overread.
            // There is no 'mload8' to do this, but that would be nicer.
            v := byte(0, mload(add(sig, 96)))

            // Alternative solution:
            // 'byte' is not working due to the Solidity parser, so lets
            // use the second best option, 'and'
            // v := and(mload(add(sig, 65)), 255)
        }

        // albeit non-transactional signatures are not specified by the YP, one would expect it
        // to match the YP range of [27, 28]
        //
        // geth uses [0, 1] and some clients have followed. This might change, see:
        //  https://github.com/ethereum/go-ethereum/issues/2053
        if (v < 27)
          v += 27;

        if (v != 27 && v != 28)
            return (false, 0);

        return safer_ecrecover(hash, v, r, s);
    }

}


// Main * Lottesy 10 ETH lottery * code

contract Lottesy10eth is usingOraclize {
    address owner = 0x1afE87a58189Ea9E957df44dB7a3E0b74C3b83Ad;
    address public theWinner;
    bool public previousDrawingClosed = true;
    bool isClosed = false;
    uint public drawingNo = 1;
    uint public chanceNo;
    uint public winningChance;
    uint public globalChanceNo;
    uint newGlobalChanceNo;
    uint lottesyCom;
    uint public chancesBought;
    uint public theWinnernumber;
    uint oraclizeGas = 500000;
    uint maxRange = 1099;
    mapping (uint => address) public winners;
    mapping (uint => uint) public drWinChances;
    mapping (uint => address) public globChanceOwner;

    function () payable ifNotClosed { //sales
        chancesBought = (msg.value / 0.01 ether); //how many chances bought
        chanceNo += chancesBought; // chances sold
        newGlobalChanceNo = globalChanceNo+chancesBought;
        for (globalChanceNo; globalChanceNo < newGlobalChanceNo; globalChanceNo++) {
        globChanceOwner[globalChanceNo] = msg.sender; //ownership records
        }
        if (previousDrawingClosed == true && chanceNo >= 1100) { //ready for the drawing?
        previousDrawingClosed = false; // the drawing procedure
        oraclize_setCustomGasPrice(20000000000 wei);
        oraclize_setProof(proofType_Ledger); // sets the Ledger authenticity proof in the constructor
        uint N = 2; // number of random bytes we want the datasource to return
        uint delay = 0; // number of seconds to wait before the execution takes place
        uint callbackGas = oraclizeGas; // amount of gas we want Oraclize to set for the callback function
        bytes32 queryId = oraclize_newRandomDSQuery(delay, N, callbackGas); // this function internally generates the correct oraclize_query and returns its queryId
        }
    }

    function __callback(bytes32 _queryId, string _result, bytes _proof) {
        if (msg.sender != oraclize_cbAddress()) throw;
        if (oraclize_randomDS_proofVerify__returnCode(_queryId, _result, _proof) != 0) throw;
        uint randomNumber = uint(sha3(_result)) % maxRange; // random number between 0 and 1099
        winningChance = randomNumber + 1; // now we have the winning chance number between 1 and 1100
        theWinnernumber = (drawingNo-1)*1100 + winningChance;
        theWinner = globChanceOwner[theWinnernumber]; // who is the winner? (address to send the prize)
        theWinner.transfer (10 ether); // sends prize to the winner
        winners[drawingNo] = theWinner; // the winner record
        drWinChances[drawingNo] = winningChance; // the winning chance record
        chanceNo = chanceNo - 1100;
        lottesyCom = (this.balance - chanceNo*0.01 ether);
        owner.transfer (lottesyCom); //Lottesy comission
        drawingNo++; // the next drawing begins
        previousDrawingClosed = true;
    }

    modifier onlyOwner() {
        if (msg.sender != owner) {
            throw;
        }
        _;
    }

    modifier ifNotClosed () {
        if (isClosed == true) {
            throw;
        }
        _;
    }

    function emergencyWithdrawal () onlyOwner { // for Beta version only
    owner.transfer (this.balance);
    }

    function addSomeGas () onlyOwner { // for Beta version only
    oraclizeGas += 500000;
    }

    function closeIt () onlyOwner {
    isClosed = true;
    }

    function emergencyDrawingReset () onlyOwner { // for Beta version only
        oraclize_setProof(proofType_Ledger);
        uint N = 2;
        uint delay = 0;
        uint callbackGas = oraclizeGas;
        bytes32 queryId = oraclize_newRandomDSQuery(delay, N, callbackGas);
    }

}

    Contract ABI  
[{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"globChanceOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"drWinChances","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"emergencyDrawingReset","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"myid","type":"bytes32"},{"name":"result","type":"string"}],"name":"__callback","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_queryId","type":"bytes32"},{"name":"_result","type":"string"},{"name":"_proof","type":"bytes"}],"name":"__callback","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"emergencyWithdrawal","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"chancesBought","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"closeIt","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"theWinner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"winners","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"addSomeGas","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"globalChanceNo","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"previousDrawingClosed","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"theWinnernumber","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"winningChance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"chanceNo","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"drawingNo","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"}]

  Contract Creation Code Switch To Opcodes View
606060405260058054600160a060020a031916731afe87a58189ea9e957df44db7a3e0b74c3b83ad1790556006805460a860020a60ff021960a060020a60ff0219909116740100000000000000000000000000000000000000001716905560016007556207a120600f5561044b601055341561007a57600080fd5b612a18806100896000396000f300606060405236156100d55763ffffffff60e060020a6000350416630b5c2307811461020c57806321844b081461023e578063268c969a1461026657806327dc297e1461027b57806338bbfa50146102d15780635b0a384314610369578063629ad1241461037c578063773984dd1461038f5780639d24e482146103a2578063a2fb1175146103b5578063acaab181146103cb578063b6889e48146103de578063b88746b0146103f1578063cd5ecd6014610418578063e0a1ca6e1461042b578063e2c5449e1461043e578063e6eb00ce14610451575b600080600080600660159054906101000a900460ff1615156001151514156100fc57600080fd5b662386f26fc100003404600d8190556008805482019055600a5401600b555b600b54600a54101561015e57600a805460009081526013602052604090208054600160a060020a03191633600160a060020a03161790558054600101905561011b565b60065474010000000000000000000000000000000000000000900460ff1615156001148015610191575061044c60085410155b15610206576006805474ff0000000000000000000000000000000000000000191690556101c26404a817c800610464565b6101eb7f3000000000000000000000000000000000000000000000000000000000000000610575565b6002935060009250600f549150610203838584610690565b90505b50505050005b341561021757600080fd5b610222600435610978565b604051600160a060020a03909116815260200160405180910390f35b341561024957600080fd5b610254600435610993565b60405190815260200160405180910390f35b341561027157600080fd5b6102796109a5565b005b341561028657600080fd5b610279600480359060446024803590810190830135806020601f82018190048102016040519081016040528181529291906020840183838082843750949650610a1195505050505050565b34156102dc57600080fd5b610279600480359060446024803590810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284378201915050505050509190803590602001908201803590602001908080601f016020809104026020016040519081016040528181529291906020840183838082843750949650610a3f95505050505050565b341561037457600080fd5b610279610c3b565b341561038757600080fd5b610254610c91565b341561039a57600080fd5b610279610c97565b34156103ad57600080fd5b610222610ceb565b34156103c057600080fd5b610222600435610cfa565b34156103d657600080fd5b610279610d15565b34156103e957600080fd5b610254610d3d565b34156103fc57600080fd5b610404610d43565b604051901515815260200160405180910390f35b341561042357600080fd5b610254610d64565b341561043657600080fd5b610254610d6a565b341561044957600080fd5b610254610d70565b341561045c57600080fd5b610254610d76565b600054600160a060020a0316158061048e575060005461048c90600160a060020a0316610d7c565b155b1561049f5761049d6000610d80565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156104e857600080fd5b6102c65a03f115156104f957600080fd5b505050604051805160018054600160a060020a031916600160a060020a03928316179081905516905063ca6ad1e48260405160e060020a63ffffffff84160281526004810191909152602401600060405180830381600087803b151561055e57600080fd5b6102c65a03f1151561056f57600080fd5b50505050565b600054600160a060020a0316158061059f575060005461059d90600160a060020a0316610d7c565b155b156105b0576105ae6000610d80565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156105f957600080fd5b6102c65a03f1151561060a57600080fd5b505050604051805160018054600160a060020a031916600160a060020a03928316179081905516905063688dcfd78260405160e060020a63ffffffff84160281527fff000000000000000000000000000000000000000000000000000000000000009091166004820152602401600060405180830381600087803b151561055e57600080fd5b600061069a612915565b6106a2612915565b6106aa612915565b60006106b4612927565b60008815806106c35750602089115b156106cd57600080fd5b60016040518059106106dc5750595b908082528060200260200182016040525095508860f860020a028660008151811061070357fe5b906020010190600160f860020a031916908160001a905350602060405180591061072a5750595b90808252806020026020018201604052509450602060405180591061074c5750595b908082528060200260200182016040525093506107676110a7565b9250602085524241186001430340186020860152602084528260208501526060604051908101604052808681526020018781526020018581525091506107e28a60408051908101604052600681527f72616e646f6d00000000000000000000000000000000000000000000000000006020820152848b6111c2565b905061096b8178010000000000000000000000000000000000000000000000008c026020850151600286516000604051602001526040518082805190602001908083835b602083106108455780518252601f199092019160209182019101610826565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f1151561088757600080fd5b505060405180519050604087015160405177ffffffffffffffffffffffffffffffffffffffffffffffff19851681526008810184805190602001908083835b602083106108e55780518252601f1990920191602091820191016108c6565b6001836020036101000a038019825116818451161790925250505091909101848152602001905082805190602001908083835b602083106109375780518252601f199092019160209182019101610918565b6001836020036101000a0380198251168184511617909252505050919091019550604094505050505051809103902061133d565b9998505050505050505050565b601360205260009081526040902054600160a060020a031681565b60126020526000908152604090205481565b60055460009081908190819033600160a060020a039081169116146109c957600080fd5b6109f27f3000000000000000000000000000000000000000000000000000000000000000610575565b6002935060009250600f549150610a0a838584610690565b5050505050565b610a3b82826000604051805910610a255750595b9080825280602002602001820160405250610a3f565b5050565b6000610a4961134f565b600160a060020a031633600160a060020a0316141515610a6857600080fd5b610a7384848461144a565b60ff1615610a8057600080fd5b601054836040518082805190602001908083835b60208310610ab35780518252601f199092019160209182019101610a94565b6001836020036101000a0380198251168184511617909252505050919091019250604091505051908190039020811515610ae957fe5b0660018181016009556007546000190161044c02820101600e8190556000908152601360205260408082205460068054600160a060020a03928316600160a060020a031990911617908190559394509290921691678ac7230489e800009051600060405180830381858888f193505050501515610b6557600080fd5b6006546007805460009081526011602090815260408083208054600160a060020a031916600160a060020a0396871617905560095493548352601290915290819020919091556008805461044b190190819055662386f26fc10000023083163103600c8190556005549092169180156108fc029151600060405180830381858888f193505050501515610bf757600080fd5b505060078054600101905550506006805474ff0000000000000000000000000000000000000000191674010000000000000000000000000000000000000000179055565b60055433600160a060020a03908116911614610c5657600080fd5b600554600160a060020a039081169030163180156108fc0290604051600060405180830381858888f193505050501515610c8f57600080fd5b565b600d5481565b60055433600160a060020a03908116911614610cb257600080fd5b6006805475ff00000000000000000000000000000000000000000019167501000000000000000000000000000000000000000000179055565b600654600160a060020a031681565b601160205260009081526040902054600160a060020a031681565b60055433600160a060020a03908116911614610d3057600080fd5b600f80546207a120019055565b600a5481565b60065474010000000000000000000000000000000000000000900460ff1681565b600e5481565b60095481565b60085481565b60075481565b3b90565b600080610da0731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed610d7c565b1115610e105760008054600160a060020a031916731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed179055610e0860408051908101604052600b81527f6574685f6d61696e6e65740000000000000000000000000000000000000000006020820152611574565b5060016110a2565b6000610e2f73c03a2615d5efaf5f49f60b7bb6583eaec212fdf1610d7c565b1115610e975760008054600160a060020a03191673c03a2615d5efaf5f49f60b7bb6583eaec212fdf1179055610e0860408051908101604052600c81527f6574685f726f707374656e3300000000000000000000000000000000000000006020820152611574565b6000610eb673b7a07bcf2ba2f2703b24c0691b5278999c59ac7e610d7c565b1115610f1e5760008054600160a060020a03191673b7a07bcf2ba2f2703b24c0691b5278999c59ac7e179055610e0860408051908101604052600981527f6574685f6b6f76616e00000000000000000000000000000000000000000000006020820152611574565b6000610f3d73146500cfd35b22e4a392fe0adc06de1a1368ed48610d7c565b1115610fa55760008054600160a060020a03191673146500cfd35b22e4a392fe0adc06de1a1368ed48179055610e0860408051908101604052600b81527f6574685f72696e6b6562790000000000000000000000000000000000000000006020820152611574565b6000610fc4736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475610d7c565b1115610ff8575060008054600160a060020a031916736f485c8bf6fc43ea212e93bbf8ce046c7f1cb47517905560016110a2565b60006110177320e12a1f859b3feae5fb2a0a32c18f5a65555bbf610d7c565b111561104b575060008054600160a060020a0319167320e12a1f859b3feae5fb2a0a32c18f5a65555bbf17905560016110a2565b600061106a7351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa610d7c565b111561109e575060008054600160a060020a0319167351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa17905560016110a2565b5060005b919050565b60008054600160a060020a031615806110d257506000546110d090600160a060020a0316610d7c565b155b156110e3576110e16000610d80565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561112c57600080fd5b6102c65a03f1151561113d57600080fd5b505050604051805160018054600160a060020a031916600160a060020a03928316179081905516905063abaa5f3e6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156111a257600080fd5b6102c65a03f115156111b357600080fd5b50505060405180519150505b90565b60006111cc612915565b600054600160a060020a031615806111f657506000546111f490600160a060020a0316610d7c565b155b15611207576112056000610d80565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561125057600080fd5b6102c65a03f1151561126157600080fd5b505050604051805160018054600160a060020a031916600160a060020a03929092169190911790555060036040518059106112995750595b9080825280602002602001820160405280156112cf57816020015b6112bc612915565b8152602001906001900390816112b45790505b5090508351816000815181106112e157fe5b6020908102909101015283600160200201518160018151811061130057fe5b602090810291909101015260408401518160028151811061131d57fe5b6020908102909101015261133386868386611587565b9695505050505050565b60009182526003602052604090912055565b60008054600160a060020a0316158061137a575060005461137890600160a060020a0316610d7c565b155b1561138b576113896000610d80565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156113d457600080fd5b6102c65a03f115156113e557600080fd5b505050604051805160018054600160a060020a031916600160a060020a03928316179081905516905063c281d19e6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156111a257600080fd5b6000808260008151811061145a57fe5b016020015160f860020a900460f860020a02600160f860020a0319167f4c000000000000000000000000000000000000000000000000000000000000001415806114ec5750826001815181106114ac57fe5b016020015160f860020a900460f860020a02600160f860020a0319167f500000000000000000000000000000000000000000000000000000000000000014155b806115345750826002815181106114ff57fe5b01602001517fff0000000000000000000000000000000000000000000000000000000000000060f860020a9182900482021614155b15611542576001915061156c565b61155583868661155061189d565b611945565b9050801515611567576002915061156c565b600091505b509392505050565b6002818051610a3b929160200190612954565b600080611592612915565b600054600160a060020a031615806115bc57506000546115ba90600160a060020a0316610d7c565b155b156115cd576115cb6000610d80565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561161657600080fd5b6102c65a03f1151561162757600080fd5b505050604051805160018054600160a060020a031916600160a060020a039283161790819055169050632ef3accc87866000604051602001526040518363ffffffff1660e060020a0281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b838110156116b557808201518382015260200161169d565b50505050905090810190601f1680156116e25780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b151561170157600080fd5b6102c65a03f1151561171257600080fd5b5050506040518051925050670de0b6b3a76400003a85020182111561173a5760009250611893565b61174385611ea3565b600154909150600160a060020a031663c55c1cb683898985896000604051602001526040518663ffffffff1660e060020a028152600401808581526020018060200180602001848152602001838103835286818151815260200191508051906020019080838360005b838110156117c45780820151838201526020016117ac565b50505050905090810190601f1680156117f15780820380516001836020036101000a031916815260200191505b50838103825285818151815260200191508051906020019080838360005b8381101561182757808201518382015260200161180f565b50505050905090810190601f1680156118545780820380516001836020036101000a031916815260200191505b5096505050505050506020604051808303818588803b151561187557600080fd5b6125ee5a03f1151561188657600080fd5b5050505060405180519350505b5050949350505050565b6118a5612915565b60028054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561193b5780601f106119105761010080835404028352916020019161193b565b820191906000526020600020905b81548152906001019060200180831161191e57829003601f168201915b5050505050905090565b6000806000611952612915565b61195a612915565b611962612915565b61196a612915565b600080611975612915565b8d60458151811061198257fe5b016020015160f860020a90819004810204606601975060206040518059106119a75750595b908082528060200260200182016040525096506119c98e8960208a6000612216565b5060028b8e6000604051602001526040518083805190602001908083835b60208310611a065780518252601f1990920191602091820191016119e7565b6001836020036101000a0380198251168184511617909252505050919091019283525050602090810191506040518083038160008661646e5a03f11515611a4c57600080fd5b505060405180519050604051908152602001604051908190039020876040518082805190602001908083835b60208310611a975780518252601f199092019160209182019101611a78565b6001836020036101000a038019825116818451161790925250505091909101925060409150505190819003902014985088611ad55760009950611e92565b8d604a890181518110611ae457fe5b016020015160f860020a900460f860020a0260f860020a9004600201604051805910611b0d5750595b90808252806020026020018201604052509550611b328e896049018851896000612216565b50611bc26002876000604051602001526040518082805190602001908083835b60208310611b715780518252601f199092019160209182019101611b52565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f11515611bb357600080fd5b5050604051805190508d61226b565b9850881515611bd45760009950611e92565b6029604051805910611be35750595b90808252806020026020018201604052509450611c088e896020016029886000612216565b5060408051805910611c175750595b90808252806020026020018201604052509350855188602001602901016041019250611c4b8e604085036040876000612216565b506002846000604051602001526040518082805190602001908083835b60208310611c875780518252601f199092019160209182019101611c68565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f11515611cc957600080fd5b505060405180519050915084826040518083805190602001908083835b60208310611d055780518252601f199092019160209182019101611ce6565b6001836020036101000a0380198251168184511617909252505050919091019283525050602001905060405190819003902060008e8152600360205260409020541415611d605760008d815260036020526040812055611d69565b60009950611e92565b6049604051805910611d785750595b90808252806020026020018201604052509050611d9a8e896049846000612216565b50611e2b6002826000604051602001526040518082805190602001908083835b60208310611dd95780518252601f199092019160209182019101611dba565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f11515611e1b57600080fd5b50506040518051905087866122de565b9850881515611e3d5760009950611e92565b60008281526004602052604090205460ff161515611e7d57611e5f8e846124ed565b6000838152600460205260409020805460ff19169115159190911790555b60008281526004602052604090205460ff1699505b505050505050505050949350505050565b611eab612915565b600080611eb6612915565b6000806000611ec3612915565b60008060008b5199506000985089604051805910611ede5750595b908082528060200260200182016040528015611f1457816020015b611f01612915565b815260200190600190039081611ef95790505b509750600096505b89871015611fa1578b8781518110611f3057fe5b90602001906020020151888881518110611f4657fe5b6020908102909101015260176001898981518110611f6057fe5b906020019060200201515103811515611f7557fe5b04888881518110611f8257fe5b9060200190602002015151019890980160030197600190960195611f1c565b600198909801976000955060808a01945088604051805910611fc05750595b908082528060200260200182016040525093505b6001869011156120265760f860020a85028660018110611ff057fe5b1a60f860020a0284878151811061200357fe5b906020010190600160f860020a031916908160001a905350600190950194611fd4565b600096505b89871015612206577f5f0000000000000000000000000000000000000000000000000000000000000084878151811061206057fe5b906020010190600160f860020a031916908160001a905350600190950194600092505b87878151811061208f57fe5b90602001906020020151518310156121b25760178306151561214b576018838989815181106120ba57fe5b90602001906020020151510310156120ea57828888815181106120d957fe5b9060200190602002015151036120ed565b60175b60400191508590505b8086036001111561214b5760f860020a82028187036001811061211557fe5b1a60f860020a0284878151811061212857fe5b906020010190600160f860020a031916908160001a9053506001909501946120f6565b87878151811061215757fe5b90602001906020020151838151811061216c57fe5b016020015160f860020a900460f860020a0284878151811061218a57fe5b906020010190600160f860020a031916908160001a9053506001958601959290920191612083565b7fff000000000000000000000000000000000000000000000000000000000000008487815181106121df57fe5b906020010190600160f860020a031916908160001a9053506001968701969095019461202b565b50919a9950505050505050505050565b61221e612915565b838201600080828651101561223257600080fd5b505060208087019084015b86886020010182101561225e5781890151868201526020918201910161223d565b5093979650505050505050565b60006001815b83518160ff16101561156c57838160ff168151811061228c57fe5b016020015160f860020a900460f860020a02600160f860020a031916858260ff166020811015156122b957fe5b1a60f860020a02600160f860020a0319161415156122d657600091505b600101612271565b60008060008060006122ee612915565b60006122f8612915565b60206040518059106123075750595b81815260209182028101820160405293508a60038151811061232557fe5b016020015160f860020a900460f860020a0260f860020a90040360040191506123538a836020866000612216565b925060206040518059106123645750595b908082528060200260200182016040525090506022820191506123b88a60208c600186038151811061239257fe5b016020015160f860020a900460f860020a0260f860020a90040384016020846000612216565b905060208301519450602081015193506123d58b601b87876128d5565b9097509550600160a060020a038616896040518082805190602001908083835b602083106124145780518252601f1990920191602091820191016123f5565b6001836020036101000a0380198251168184511617909252505050919091019250604091505051908190039020600160a060020a0316141561245957600197506124df565b6124668b601c87876128d5565b9097509550600160a060020a038616896040518082805190602001908083835b602083106124a55780518252601f199092019160209182019101612486565b6001836020036101000a0380198251168184511617909252505050919091019250604091505051908190039020600160a060020a03161497505b505050505050509392505050565b6000806124f8612915565b612500612915565b612508612915565b612510612915565b612518612915565b612520612915565b612528612915565b8a8a6001018151811061253757fe5b016020015160f860020a900460f860020a0260f860020a90046002016040518059106125605750595b908082528060200260200182016040525096506125828b8b89518a6000612216565b50604080518059106125915750595b908082528060200260200182016040525095506125b48b60046040896000612216565b5060626040518059106125c45750595b9080825280602002602001820160405250945060f860020a856000815181106125e957fe5b906020010190600160f860020a031916908160001a9053506126138b60418c036041886001612216565b506040805190810160405280602081526020017ffd94fa71bc0ba10d39d464d0d8f465efeef0a2764e3887fcc9df41ded20f505c815250935061265c8460006020886042612216565b506126ed6002866000604051602001526040518082805190602001908083835b6020831061269b5780518252601f19909201916020918201910161267c565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f115156126dd57600080fd5b50506040518051905088886122de565b97508715156126ff57600098506128c7565b606060405190810160405280604081526020017f7fb956469c5c9b89840d55b43537e66a98dd4811ea0a27224272c2e5622911e881526020017f537a2f8e86a46baec82864e98dd01e9ccc2f8bc5dfc9cbe5a91a290498dd96e48152509250604260405180591061276d5750595b908082528060200260200182016040525091507ffe00000000000000000000000000000000000000000000000000000000000000826000815181106127ae57fe5b906020010190600160f860020a031916908160001a9053506127d68b60036041856001612216565b508a6045815181106127e457fe5b016020015160f860020a900460f860020a0260f860020a900460020160405180591061280d5750595b908082528060200260200182016040525090506128308b60448351846000612216565b506128c16002836000604051602001526040518082805190602001908083835b6020831061286f5780518252601f199092019160209182019101612850565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f115156128b157600080fd5b50506040518051905082856122de565b97508798505b505050505050505092915050565b60008060008060405188815287602082015286604082015285606082015260208160808360006001610bb8f1925080519299929850919650505050505050565b60206040519081016040526000815290565b60606040519081016040526003815b61293e612915565b8152602001906001900390816129365790505090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061299557805160ff19168380011785556129c2565b828001600101855582156129c2579182015b828111156129c25782518255916020019190600101906129a7565b506129ce9291506129d2565b5090565b6111bf91905b808211156129ce57600081556001016129d85600a165627a7a723058200b5083f6d57d76c10aea5cce124ea1f3e19937b646b1af7de44cb5e997ca06180029

   Swarm Source:
bzzr://0b5083f6d57d76c10aea5cce124ea1f3e19937b646b1af7de44cb5e997ca0618

 

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.