Sponsored Link:   SHIFT.cash - smart-contract based car title lending platform, 30 billion market, 35+ employees. Join NOW.
Contract Overview
ETH Balance: 0 Ether
ETH USD Value: $0
No Of Transactions: 5 txns
  Latest 5 txns

TxHash Age From To Value [TxFee]
0xf0c1537df23377676112a1377e034bf70e85a41bfec8618ef591e881c114697c146 days 7 hrs agoOraclize  IN   0x7909f0b4a0c25f126f85e010aa573c64e5e2ebf90 Ether0.00338412
0x33c84454c4fea9ab73a922b2f00549a9451820cf0fd7280650e0acd598d9ef15146 days 7 hrs ago0x5c662ac9f4bf56119557124a8b1b262247d4710d  IN   0x7909f0b4a0c25f126f85e010aa573c64e5e2ebf90.022 Ether0.003963823635
0x48e7d8d835ac17945d6807239b0c11b091750c371ee79b6a90b08eb3f43294d0146 days 7 hrs agoOraclize  IN   0x7909f0b4a0c25f126f85e010aa573c64e5e2ebf90 Ether0.0062235
0xc9ae8c3fb88b131b9750e392e6a7a32f904c05eb6743037c121f90de84a4e4b0146 days 7 hrs ago0x5c662ac9f4bf56119557124a8b1b262247d4710d  IN   0x7909f0b4a0c25f126f85e010aa573c64e5e2ebf90.02 Ether0.005729934
0x3b4a2fcef321ff0cf62786057449326c0938de1a314f303e9b19bccf508af697146 days 7 hrs ago0x5c662ac9f4bf56119557124a8b1b262247d4710d  IN    Contract Creation0 Ether0.062932065
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
  Latest 4 Internal Transactions

ParentTxHash Block Age From To Value
0xf0c1537df23377676112a1377e034bf70e85a41bfec8618ef591e881c114697c4315692146 days 7 hrs ago0x7909f0b4a0c25f126f85e010aa573c64e5e2ebf90x1ee61945aee02b15154ab4a5824ba80ec8ed6f4e0.01183364289568435 Ether
0x33c84454c4fea9ab73a922b2f00549a9451820cf0fd7280650e0acd598d9ef154315690146 days 7 hrs ago0x7909f0b4a0c25f126f85e010aa573c64e5e2ebf90x6f28b146804dba2d6f944c03528a8fdbc673df2c0.01016635710431565 Ether
0x48e7d8d835ac17945d6807239b0c11b091750c371ee79b6a90b08eb3f43294d04315678146 days 7 hrs ago0x7909f0b4a0c25f126f85e010aa573c64e5e2ebf90x1ee61945aee02b15154ab4a5824ba80ec8ed6f4e0.00983364289568435 Ether
0xc9ae8c3fb88b131b9750e392e6a7a32f904c05eb6743037c121f90de84a4e4b04315674146 days 7 hrs ago0x7909f0b4a0c25f126f85e010aa573c64e5e2ebf90x6f28b146804dba2d6f944c03528a8fdbc673df2c0.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 Oraclize 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 LottesyAddress = 0x1EE61945aEE02B15154AB4A5824BA80eC8Ed6F4e;
    address public theWinner;
    uint public drawingNo = 1;
    uint public chanceNo;
    uint public winningChance;
    uint public globalChanceNo; //hide
    uint public forLottesy;
    uint public chancesBought;
    uint public theWinnernumber;
    uint public newGlobalChanceNo;
    uint public oraclizeGas = 500000;
    uint public randomNumber;
    uint public maxRange = 1099;
    bool public previousDrawingClosed = true;
    bool public isClosed = false;
    bool public proofVerifyFailed = false;
    bool public gotResult = false;
    mapping (uint => address) public globChanceOwner;
    mapping (uint => address) public winners;
    mapping (uint => uint) public drWinChances;

    function () payable ifNotClosed { //sales
        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
        previousDrawingClosed = false;
        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) {
        gotResult = true;
        if (msg.sender != oraclize_cbAddress()) throw;
        if (oraclize_randomDS_proofVerify__returnCode(_queryId, _result, _proof) != 0) {
          proofVerifyFailed = true;
          throw;
        } else {
        randomNumber = uint(sha3(_result)) % maxRange;
        winningChance = randomNumber + 1;
        theWinnernumber = (drawingNo-1)*1100 + winningChance;
        //theWinner = LottesyAddress; //who is the winner?
        //theWinner.transfer (0.001 ether); //send prize to the winner
        winners[drawingNo] = LottesyAddress; //winner record
        drWinChances[drawingNo] = winningChance; //winning chance record
        chanceNo++;
        forLottesy = (this.balance);
        LottesyAddress.transfer (forLottesy); //Lottesy comission
        drawingNo++; //next drawing begins
        previousDrawingClosed = true;
        }
    }

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

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

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

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

    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":"proofVerifyFailed","outputs":[{"name":"","type":"bool"}],"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":true,"inputs":[],"name":"oraclizeGas","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","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":"maxRange","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"forLottesy","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","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":"newGlobalChanceNo","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","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":"isClosed","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"randomNumber","outputs":[{"name":"","type":"uint256"}],"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":"gotResult","outputs":[{"name":"","type":"bool"}],"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
606060405260058054731ee61945aee02b15154ab4a5824ba80ec8ed6f4e600160a060020a0319909116179055600160078190556207a120600f5561044b6011556012805460ff191690911763ffffff0019169055341561005f57600080fd5b6129f38061006e6000396000f3006060604052361561012d5763ffffffff60e060020a6000350416630b5c230781146101b1578063175466ee146101e357806321844b081461020a578063268c969a1461023257806327dc297e1461024757806338bbfa501461029d5780633e9836c6146103355780635b0a384314610348578063629ad1241461035b578063773984dd1461036e57806389ce16cc146103815780639a42c935146103945780639d24e482146103a7578063a2fb1175146103ba578063acaab181146103d0578063b2481048146103e3578063b6889e48146103f6578063b88746b014610409578063c2b6b58c1461041c578063ccbac9f51461042f578063cd5ecd6014610442578063d849eeba14610455578063e0a1ca6e14610468578063e2c5449e1461047b578063e6eb00ce1461048e575b60125460009081908190819060ff6101009091041615156001141561015157600080fd5b61015f6404a817c8006104a1565b6101887f30000000000000000000000000000000000000000000000000000000000000006105b2565b600f546012805460ff19169055600294506000935091506101aa8385846106cd565b5050505050005b34156101bc57600080fd5b6101c76004356109b5565b604051600160a060020a03909116815260200160405180910390f35b34156101ee57600080fd5b6101f66109d0565b604051901515815260200160405180910390f35b341561021557600080fd5b6102206004356109df565b60405190815260200160405180910390f35b341561023d57600080fd5b6102456109f1565b005b341561025257600080fd5b610245600480359060446024803590810190830135806020601f82018190048102016040519081016040528181529291906020840183838082843750949650610a5d95505050505050565b34156102a857600080fd5b610245600480359060446024803590810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284378201915050505050509190803590602001908201803590602001908080601f016020809104026020016040519081016040528181529291906020840183838082843750949650610a8b95505050505050565b341561034057600080fd5b610220610c1a565b341561035357600080fd5b610245610c20565b341561036657600080fd5b610220610c76565b341561037957600080fd5b610245610c7c565b341561038c57600080fd5b610220610ca8565b341561039f57600080fd5b610220610cae565b34156103b257600080fd5b6101c7610cb4565b34156103c557600080fd5b6101c7600435610cc3565b34156103db57600080fd5b610245610cde565b34156103ee57600080fd5b610220610d06565b341561040157600080fd5b610220610d0c565b341561041457600080fd5b6101f6610d12565b341561042757600080fd5b6101f6610d1b565b341561043a57600080fd5b610220610d29565b341561044d57600080fd5b610220610d2f565b341561046057600080fd5b6101f6610d35565b341561047357600080fd5b610220610d45565b341561048657600080fd5b610220610d4b565b341561049957600080fd5b610220610d51565b600054600160a060020a031615806104cb57506000546104c990600160a060020a0316610d57565b155b156104dc576104da6000610d5b565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561052557600080fd5b6102c65a03f1151561053657600080fd5b505050604051805160018054600160a060020a031916600160a060020a03928316179081905516905063ca6ad1e48260405160e060020a63ffffffff84160281526004810191909152602401600060405180830381600087803b151561059b57600080fd5b6102c65a03f115156105ac57600080fd5b50505050565b600054600160a060020a031615806105dc57506000546105da90600160a060020a0316610d57565b155b156105ed576105eb6000610d5b565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561063657600080fd5b6102c65a03f1151561064757600080fd5b505050604051805160018054600160a060020a031916600160a060020a03928316179081905516905063688dcfd78260405160e060020a63ffffffff84160281527fff000000000000000000000000000000000000000000000000000000000000009091166004820152602401600060405180830381600087803b151561059b57600080fd5b60006106d76128f0565b6106df6128f0565b6106e76128f0565b60006106f1612902565b60008815806107005750602089115b1561070a57600080fd5b60016040518059106107195750595b908082528060200260200182016040525095508860f860020a028660008151811061074057fe5b906020010190600160f860020a031916908160001a90535060206040518059106107675750595b9080825280602002602001820160405250945060206040518059106107895750595b908082528060200260200182016040525093506107a4611082565b92506020855242411860014303401860208601526020845282602085015260606040519081016040528086815260200187815260200185815250915061081f8a60408051908101604052600681527f72616e646f6d00000000000000000000000000000000000000000000000000006020820152848b61119d565b90506109a88178010000000000000000000000000000000000000000000000008c026020850151600286516000604051602001526040518082805190602001908083835b602083106108825780518252601f199092019160209182019101610863565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f115156108c457600080fd5b505060405180519050604087015160405177ffffffffffffffffffffffffffffffffffffffffffffffff19851681526008810184805190602001908083835b602083106109225780518252601f199092019160209182019101610903565b6001836020036101000a038019825116818451161790925250505091909101848152602001905082805190602001908083835b602083106109745780518252601f199092019160209182019101610955565b6001836020036101000a03801982511681845116179092525050509190910195506040945050505050518091039020611318565b9998505050505050505050565b601360205260009081526040902054600160a060020a031681565b60125462010000900460ff1681565b60156020526000908152604090205481565b60055460009081908190819033600160a060020a03908116911614610a1557600080fd5b610a3e7f30000000000000000000000000000000000000000000000000000000000000006105b2565b6002935060009250600f549150610a568385846106cd565b5050505050565b610a8782826000604051805910610a715750595b9080825280602002602001820160405250610a8b565b5050565b6012805463ff00000019166301000000179055610aa661132a565b600160a060020a031633600160a060020a0316141515610ac557600080fd5b610ad0838383611425565b60ff1615610aee576012805462ff0000191662010000179055600080fd5b601154826040518082805190602001908083835b60208310610b215780518252601f199092019160209182019101610b02565b6001836020036101000a0380198251168184511617909252505050919091019250604091505051908190039020811515610b5757fe5b066010819055600180820160099081556007805461044c6000198201029094018301600d556005805460009586526014602090815260408088208054600160a060020a031916600160a060020a039485161790559454935487526015905294839020919091556008805490930190925530831631600b81905591549092169181156108fc02919051600060405180830381858888f193505050501515610bfc57600080fd5b6007805460019081019091556012805460ff19169091179055505050565b600f5481565b60055433600160a060020a03908116911614610c3b57600080fd5b600554600160a060020a039081169030163180156108fc0290604051600060405180830381858888f193505050501515610c7457600080fd5b565b600c5481565b60055433600160a060020a03908116911614610c9757600080fd5b6012805461ff001916610100179055565b60115481565b600b5481565b600654600160a060020a031681565b601460205260009081526040902054600160a060020a031681565b60055433600160a060020a03908116911614610cf957600080fd5b600f8054620493e0019055565b600e5481565b600a5481565b60125460ff1681565b601254610100900460ff1681565b60105481565b600d5481565b6012546301000000900460ff1681565b60095481565b60085481565b60075481565b3b90565b600080610d7b731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed610d57565b1115610deb5760008054600160a060020a031916731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed179055610de360408051908101604052600b81527f6574685f6d61696e6e6574000000000000000000000000000000000000000000602082015261154f565b50600161107d565b6000610e0a73c03a2615d5efaf5f49f60b7bb6583eaec212fdf1610d57565b1115610e725760008054600160a060020a03191673c03a2615d5efaf5f49f60b7bb6583eaec212fdf1179055610de360408051908101604052600c81527f6574685f726f707374656e330000000000000000000000000000000000000000602082015261154f565b6000610e9173b7a07bcf2ba2f2703b24c0691b5278999c59ac7e610d57565b1115610ef95760008054600160a060020a03191673b7a07bcf2ba2f2703b24c0691b5278999c59ac7e179055610de360408051908101604052600981527f6574685f6b6f76616e0000000000000000000000000000000000000000000000602082015261154f565b6000610f1873146500cfd35b22e4a392fe0adc06de1a1368ed48610d57565b1115610f805760008054600160a060020a03191673146500cfd35b22e4a392fe0adc06de1a1368ed48179055610de360408051908101604052600b81527f6574685f72696e6b656279000000000000000000000000000000000000000000602082015261154f565b6000610f9f736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475610d57565b1115610fd3575060008054600160a060020a031916736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475179055600161107d565b6000610ff27320e12a1f859b3feae5fb2a0a32c18f5a65555bbf610d57565b1115611026575060008054600160a060020a0319167320e12a1f859b3feae5fb2a0a32c18f5a65555bbf179055600161107d565b60006110457351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa610d57565b1115611079575060008054600160a060020a0319167351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa179055600161107d565b5060005b919050565b60008054600160a060020a031615806110ad57506000546110ab90600160a060020a0316610d57565b155b156110be576110bc6000610d5b565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561110757600080fd5b6102c65a03f1151561111857600080fd5b505050604051805160018054600160a060020a031916600160a060020a03928316179081905516905063abaa5f3e6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561117d57600080fd5b6102c65a03f1151561118e57600080fd5b50505060405180519150505b90565b60006111a76128f0565b600054600160a060020a031615806111d157506000546111cf90600160a060020a0316610d57565b155b156111e2576111e06000610d5b565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561122b57600080fd5b6102c65a03f1151561123c57600080fd5b505050604051805160018054600160a060020a031916600160a060020a03929092169190911790555060036040518059106112745750595b9080825280602002602001820160405280156112aa57816020015b6112976128f0565b81526020019060019003908161128f5790505b5090508351816000815181106112bc57fe5b602090810290910101528360016020020151816001815181106112db57fe5b60209081029190910101526040840151816002815181106112f857fe5b6020908102909101015261130e86868386611562565b9695505050505050565b60009182526003602052604090912055565b60008054600160a060020a03161580611355575060005461135390600160a060020a0316610d57565b155b15611366576113646000610d5b565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156113af57600080fd5b6102c65a03f115156113c057600080fd5b505050604051805160018054600160a060020a031916600160a060020a03928316179081905516905063c281d19e6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561117d57600080fd5b6000808260008151811061143557fe5b016020015160f860020a900460f860020a02600160f860020a0319167f4c000000000000000000000000000000000000000000000000000000000000001415806114c757508260018151811061148757fe5b016020015160f860020a900460f860020a02600160f860020a0319167f500000000000000000000000000000000000000000000000000000000000000014155b8061150f5750826002815181106114da57fe5b01602001517fff0000000000000000000000000000000000000000000000000000000000000060f860020a9182900482021614155b1561151d5760019150611547565b61153083868661152b611878565b611920565b90508015156115425760029150611547565b600091505b509392505050565b6002818051610a8792916020019061292f565b60008061156d6128f0565b600054600160a060020a03161580611597575060005461159590600160a060020a0316610d57565b155b156115a8576115a66000610d5b565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156115f157600080fd5b6102c65a03f1151561160257600080fd5b505050604051805160018054600160a060020a031916600160a060020a039283161790819055169050632ef3accc87866000604051602001526040518363ffffffff1660e060020a0281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b83811015611690578082015183820152602001611678565b50505050905090810190601f1680156116bd5780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b15156116dc57600080fd5b6102c65a03f115156116ed57600080fd5b5050506040518051925050670de0b6b3a76400003a850201821115611715576000925061186e565b61171e85611e7e565b600154909150600160a060020a031663c55c1cb683898985896000604051602001526040518663ffffffff1660e060020a028152600401808581526020018060200180602001848152602001838103835286818151815260200191508051906020019080838360005b8381101561179f578082015183820152602001611787565b50505050905090810190601f1680156117cc5780820380516001836020036101000a031916815260200191505b50838103825285818151815260200191508051906020019080838360005b838110156118025780820151838201526020016117ea565b50505050905090810190601f16801561182f5780820380516001836020036101000a031916815260200191505b5096505050505050506020604051808303818588803b151561185057600080fd5b6125ee5a03f1151561186157600080fd5b5050505060405180519350505b5050949350505050565b6118806128f0565b60028054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156119165780601f106118eb57610100808354040283529160200191611916565b820191906000526020600020905b8154815290600101906020018083116118f957829003601f168201915b5050505050905090565b600080600061192d6128f0565b6119356128f0565b61193d6128f0565b6119456128f0565b6000806119506128f0565b8d60458151811061195d57fe5b016020015160f860020a90819004810204606601975060206040518059106119825750595b908082528060200260200182016040525096506119a48e8960208a60006121f1565b5060028b8e6000604051602001526040518083805190602001908083835b602083106119e15780518252601f1990920191602091820191016119c2565b6001836020036101000a0380198251168184511617909252505050919091019283525050602090810191506040518083038160008661646e5a03f11515611a2757600080fd5b505060405180519050604051908152602001604051908190039020876040518082805190602001908083835b60208310611a725780518252601f199092019160209182019101611a53565b6001836020036101000a038019825116818451161790925250505091909101925060409150505190819003902014985088611ab05760009950611e6d565b8d604a890181518110611abf57fe5b016020015160f860020a900460f860020a0260f860020a9004600201604051805910611ae85750595b90808252806020026020018201604052509550611b0d8e8960490188518960006121f1565b50611b9d6002876000604051602001526040518082805190602001908083835b60208310611b4c5780518252601f199092019160209182019101611b2d565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f11515611b8e57600080fd5b5050604051805190508d612246565b9850881515611baf5760009950611e6d565b6029604051805910611bbe5750595b90808252806020026020018201604052509450611be38e8960200160298860006121f1565b5060408051805910611bf25750595b90808252806020026020018201604052509350855188602001602901016041019250611c268e6040850360408760006121f1565b506002846000604051602001526040518082805190602001908083835b60208310611c625780518252601f199092019160209182019101611c43565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f11515611ca457600080fd5b505060405180519050915084826040518083805190602001908083835b60208310611ce05780518252601f199092019160209182019101611cc1565b6001836020036101000a0380198251168184511617909252505050919091019283525050602001905060405190819003902060008e8152600360205260409020541415611d3b5760008d815260036020526040812055611d44565b60009950611e6d565b6049604051805910611d535750595b90808252806020026020018201604052509050611d758e8960498460006121f1565b50611e066002826000604051602001526040518082805190602001908083835b60208310611db45780518252601f199092019160209182019101611d95565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f11515611df657600080fd5b50506040518051905087866122b9565b9850881515611e185760009950611e6d565b60008281526004602052604090205460ff161515611e5857611e3a8e846124c8565b6000838152600460205260409020805460ff19169115159190911790555b60008281526004602052604090205460ff1699505b505050505050505050949350505050565b611e866128f0565b600080611e916128f0565b6000806000611e9e6128f0565b60008060008b5199506000985089604051805910611eb95750595b908082528060200260200182016040528015611eef57816020015b611edc6128f0565b815260200190600190039081611ed45790505b509750600096505b89871015611f7c578b8781518110611f0b57fe5b90602001906020020151888881518110611f2157fe5b6020908102909101015260176001898981518110611f3b57fe5b906020019060200201515103811515611f5057fe5b04888881518110611f5d57fe5b9060200190602002015151019890980160030197600190960195611ef7565b600198909801976000955060808a01945088604051805910611f9b5750595b908082528060200260200182016040525093505b6001869011156120015760f860020a85028660018110611fcb57fe5b1a60f860020a02848781518110611fde57fe5b906020010190600160f860020a031916908160001a905350600190950194611faf565b600096505b898710156121e1577f5f0000000000000000000000000000000000000000000000000000000000000084878151811061203b57fe5b906020010190600160f860020a031916908160001a905350600190950194600092505b87878151811061206a57fe5b906020019060200201515183101561218d576017830615156121265760188389898151811061209557fe5b90602001906020020151510310156120c557828888815181106120b457fe5b9060200190602002015151036120c8565b60175b60400191508590505b808603600111156121265760f860020a8202818703600181106120f057fe5b1a60f860020a0284878151811061210357fe5b906020010190600160f860020a031916908160001a9053506001909501946120d1565b87878151811061213257fe5b90602001906020020151838151811061214757fe5b016020015160f860020a900460f860020a0284878151811061216557fe5b906020010190600160f860020a031916908160001a905350600195860195929092019161205e565b7fff000000000000000000000000000000000000000000000000000000000000008487815181106121ba57fe5b906020010190600160f860020a031916908160001a90535060019687019690950194612006565b50919a9950505050505050505050565b6121f96128f0565b838201600080828651101561220d57600080fd5b505060208087019084015b86886020010182101561223957818901518682015260209182019101612218565b5093979650505050505050565b60006001815b83518160ff16101561154757838160ff168151811061226757fe5b016020015160f860020a900460f860020a02600160f860020a031916858260ff1660208110151561229457fe5b1a60f860020a02600160f860020a0319161415156122b157600091505b60010161224c565b60008060008060006122c96128f0565b60006122d36128f0565b60206040518059106122e25750595b81815260209182028101820160405293508a60038151811061230057fe5b016020015160f860020a900460f860020a0260f860020a900403600401915061232e8a8360208660006121f1565b9250602060405180591061233f5750595b908082528060200260200182016040525090506022820191506123938a60208c600186038151811061236d57fe5b016020015160f860020a900460f860020a0260f860020a900403840160208460006121f1565b905060208301519450602081015193506123b08b601b87876128b0565b9097509550600160a060020a038616896040518082805190602001908083835b602083106123ef5780518252601f1990920191602091820191016123d0565b6001836020036101000a0380198251168184511617909252505050919091019250604091505051908190039020600160a060020a0316141561243457600197506124ba565b6124418b601c87876128b0565b9097509550600160a060020a038616896040518082805190602001908083835b602083106124805780518252601f199092019160209182019101612461565b6001836020036101000a0380198251168184511617909252505050919091019250604091505051908190039020600160a060020a03161497505b505050505050509392505050565b6000806124d36128f0565b6124db6128f0565b6124e36128f0565b6124eb6128f0565b6124f36128f0565b6124fb6128f0565b6125036128f0565b8a8a6001018151811061251257fe5b016020015160f860020a900460f860020a0260f860020a900460020160405180591061253b5750595b9080825280602002602001820160405250965061255d8b8b89518a60006121f1565b506040805180591061256c5750595b9080825280602002602001820160405250955061258f8b600460408960006121f1565b50606260405180591061259f5750595b9080825280602002602001820160405250945060f860020a856000815181106125c457fe5b906020010190600160f860020a031916908160001a9053506125ee8b60418c0360418860016121f1565b506040805190810160405280602081526020017ffd94fa71bc0ba10d39d464d0d8f465efeef0a2764e3887fcc9df41ded20f505c815250935061263784600060208860426121f1565b506126c86002866000604051602001526040518082805190602001908083835b602083106126765780518252601f199092019160209182019101612657565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f115156126b857600080fd5b50506040518051905088886122b9565b97508715156126da57600098506128a2565b606060405190810160405280604081526020017f7fb956469c5c9b89840d55b43537e66a98dd4811ea0a27224272c2e5622911e881526020017f537a2f8e86a46baec82864e98dd01e9ccc2f8bc5dfc9cbe5a91a290498dd96e4815250925060426040518059106127485750595b908082528060200260200182016040525091507ffe000000000000000000000000000000000000000000000000000000000000008260008151811061278957fe5b906020010190600160f860020a031916908160001a9053506127b18b600360418560016121f1565b508a6045815181106127bf57fe5b016020015160f860020a900460f860020a0260f860020a90046002016040518059106127e85750595b9080825280602002602001820160405250905061280b8b604483518460006121f1565b5061289c6002836000604051602001526040518082805190602001908083835b6020831061284a5780518252601f19909201916020918201910161282b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f1151561288c57600080fd5b50506040518051905082856122b9565b97508798505b505050505050505092915050565b60008060008060405188815287602082015286604082015285606082015260208160808360006001610bb8f1925080519299929850919650505050505050565b60206040519081016040526000815290565b60606040519081016040526003815b6129196128f0565b8152602001906001900390816129115790505090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061297057805160ff191683800117855561299d565b8280016001018555821561299d579182015b8281111561299d578251825591602001919060010190612982565b506129a99291506129ad565b5090565b61119a91905b808211156129a957600081556001016129b35600a165627a7a72305820a1767b0a71881c19c7e6ea1f1a269effe65c483984acd6fdf48291a7bdef81200029

   Swarm Source:
bzzr://a1767b0a71881c19c7e6ea1f1a269effe65c483984acd6fdf48291a7bdef8120

 

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.