Contract Overview
Balance: 0 Ether
Ether Value: $0
Transactions: 8 txns
 Latest 8 txns

TxHash Age From To Value [TxFee]
0xaa010220a12311315aed9e58df5a2310388a69a91f102856070744fcd0bc2b36413 days 19 hrs agoOraclize  IN   0x0869d49644ce3fd53dcbfa824b3794c0b4ae37740 Ether0.0034811
0x4e6ee6db8b1affe81d25de8a2e3aece4cc7471f6608c29545d4b7842d566e5e5413 days 19 hrs ago0x5c662ac9f4bf56119557124a8b1b262247d4710d  IN   0x0869d49644ce3fd53dcbfa824b3794c0b4ae37740.02 Ether0.004045889355
0x92c8b49b590612c32a08ecb3c79a1c7b9991fc370150e36ac13ae92bbe4bf866413 days 19 hrs agoOraclize  IN   0x0869d49644ce3fd53dcbfa824b3794c0b4ae37740 Ether0.00661888
0x52a96671e4c2c51616510631720546ac33f9e650b5ba75d2484e38cf0753fb94413 days 19 hrs ago0x5c662ac9f4bf56119557124a8b1b262247d4710d  IN   0x0869d49644ce3fd53dcbfa824b3794c0b4ae37740.01 Ether0.004877992401
0x8857d0f70f662d5d549ddc43ec0168530a1ae257b4a885d87b43baeca0b8c663413 days 19 hrs ago0x1ee61945aee02b15154ab4a5824ba80ec8ed6f4e  IN   0x0869d49644ce3fd53dcbfa824b3794c0b4ae37740 Ether0.00054578
0x34b3906317328e42a9422b328b9ebb34f72c076fa4d372ec97d9a8bf0e8b553d413 days 20 hrs agoOraclize  IN   0x0869d49644ce3fd53dcbfa824b3794c0b4ae37740 Ether0.006
0x78f0b96f4137fbae9d9f4aa1d13dec481714767af6e953ccc8d183a6e64706f3413 days 20 hrs ago0x5c662ac9f4bf56119557124a8b1b262247d4710d  IN   0x0869d49644ce3fd53dcbfa824b3794c0b4ae37740.1 Ether0.006002788
0xdd2fecb39a15918bee1ae3fcd59e7b1fa767b4ccf0a0998dc3b19555fb8d2498413 days 20 hrs ago0x5c662ac9f4bf56119557124a8b1b262247d4710d  IN    Contract Creation0 Ether0.077751416342
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 5 Internal Transactions

ParentTxHash Block Age From To Value
0xaa010220a12311315aed9e58df5a2310388a69a91f102856070744fcd0bc2b364315496413 days 19 hrs ago0x0869d49644ce3fd53dcbfa824b3794c0b4ae37740x1ee61945aee02b15154ab4a5824ba80ec8ed6f4e0.00783364289568435 Ether
0x4e6ee6db8b1affe81d25de8a2e3aece4cc7471f6608c29545d4b7842d566e5e54315490413 days 19 hrs ago0x0869d49644ce3fd53dcbfa824b3794c0b4ae37740x6f28b146804dba2d6f944c03528a8fdbc673df2c0.01216635710431565 Ether
0x92c8b49b590612c32a08ecb3c79a1c7b9991fc370150e36ac13ae92bbe4bf8664315401413 days 19 hrs ago0x0869d49644ce3fd53dcbfa824b3794c0b4ae37740x1ee61945aee02b15154ab4a5824ba80ec8ed6f4e0.0916672857913687 Ether
0x52a96671e4c2c51616510631720546ac33f9e650b5ba75d2484e38cf0753fb944315399413 days 19 hrs ago0x0869d49644ce3fd53dcbfa824b3794c0b4ae37740x6f28b146804dba2d6f944c03528a8fdbc673df2c0.01216635710431565 Ether
0x78f0b96f4137fbae9d9f4aa1d13dec481714767af6e953ccc8d183a6e64706f34315335413 days 20 hrs ago0x0869d49644ce3fd53dcbfa824b3794c0b4ae37740x6f28b146804dba2d6f944c03528a8fdbc673df2c0.00616635710431565 Ether
[ Download CSV Export  ] 
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity), NestedArrayFunctionCallDecoder (medium-severity), ZeroFunctionSelector (very low-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: Lottesy10eth
Compiler Text: 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 = 300000;
    uint public randomNumber;
    uint public maxRange;
    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 {
        maxRange = 2**(8*2);
        randomNumber = uint(sha3(_result)) % maxRange;
        winningChance = uint(((((randomNumber+60)*10000)/65535)*1100)/10000);
        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
606060405260058054731ee61945aee02b15154ab4a5824ba80ec8ed6f4e600160a060020a031990911617905560016007819055620493e0600f556012805460ff191690911763ffffff0019169055341561005957600080fd5b612a0c806100686000396000f3006060604052361561012d5763ffffffff60e060020a6000350416630b5c230781146101b1578063175466ee146101e357806321844b081461020a578063268c969a1461023257806327dc297e1461024757806338bbfa501461029d5780633e9836c6146103355780635b0a384314610348578063629ad1241461035b578063773984dd1461036e57806389ce16cc146103815780639a42c935146103945780639d24e482146103a7578063a2fb1175146103ba578063acaab181146103d0578063b2481048146103e3578063b6889e48146103f6578063b88746b014610409578063c2b6b58c1461041c578063ccbac9f51461042f578063cd5ecd6014610442578063d849eeba14610455578063e0a1ca6e14610468578063e2c5449e1461047b578063e6eb00ce1461048e575b60125460009081908190819060ff6101009091041615156001141561015157600080fd5b61015f6404a817c8006104a1565b6101887f30000000000000000000000000000000000000000000000000000000000000006105b2565b600f546012805460ff19169055600294506000935091506101aa8385846106cd565b5050505050005b34156101bc57600080fd5b6101c76004356109b5565b604051600160a060020a03909116815260200160405180910390f35b34156101ee57600080fd5b6101f66109d0565b604051901515815260200160405180910390f35b341561021557600080fd5b6102206004356109df565b60405190815260200160405180910390f35b341561023d57600080fd5b6102456109f1565b005b341561025257600080fd5b610245600480359060446024803590810190830135806020601f82018190048102016040519081016040528181529291906020840183838082843750949650610a5d95505050505050565b34156102a857600080fd5b610245600480359060446024803590810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284378201915050505050509190803590602001908201803590602001908080601f016020809104026020016040519081016040528181529291906020840183838082843750949650610a8b95505050505050565b341561034057600080fd5b610220610c33565b341561035357600080fd5b610245610c39565b341561036657600080fd5b610220610c8f565b341561037957600080fd5b610245610c95565b341561038c57600080fd5b610220610cc1565b341561039f57600080fd5b610220610cc7565b34156103b257600080fd5b6101c7610ccd565b34156103c557600080fd5b6101c7600435610cdc565b34156103db57600080fd5b610245610cf7565b34156103ee57600080fd5b610220610d1f565b341561040157600080fd5b610220610d25565b341561041457600080fd5b6101f6610d2b565b341561042757600080fd5b6101f6610d34565b341561043a57600080fd5b610220610d42565b341561044d57600080fd5b610220610d48565b341561046057600080fd5b6101f6610d4e565b341561047357600080fd5b610220610d5e565b341561048657600080fd5b610220610d64565b341561049957600080fd5b610220610d6a565b600054600160a060020a031615806104cb57506000546104c990600160a060020a0316610d70565b155b156104dc576104da6000610d74565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561052557600080fd5b6102c65a03f1151561053657600080fd5b505050604051805160018054600160a060020a031916600160a060020a03928316179081905516905063ca6ad1e48260405160e060020a63ffffffff84160281526004810191909152602401600060405180830381600087803b151561059b57600080fd5b6102c65a03f115156105ac57600080fd5b50505050565b600054600160a060020a031615806105dc57506000546105da90600160a060020a0316610d70565b155b156105ed576105eb6000610d74565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561063657600080fd5b6102c65a03f1151561064757600080fd5b505050604051805160018054600160a060020a031916600160a060020a03928316179081905516905063688dcfd78260405160e060020a63ffffffff84160281527fff000000000000000000000000000000000000000000000000000000000000009091166004820152602401600060405180830381600087803b151561059b57600080fd5b60006106d7612909565b6106df612909565b6106e7612909565b60006106f161291b565b60008815806107005750602089115b1561070a57600080fd5b60016040518059106107195750595b908082528060200260200182016040525095508860f860020a028660008151811061074057fe5b906020010190600160f860020a031916908160001a90535060206040518059106107675750595b9080825280602002602001820160405250945060206040518059106107895750595b908082528060200260200182016040525093506107a461109b565b92506020855242411860014303401860208601526020845282602085015260606040519081016040528086815260200187815260200185815250915061081f8a60408051908101604052600681527f72616e646f6d00000000000000000000000000000000000000000000000000006020820152848b6111b6565b90506109a88178010000000000000000000000000000000000000000000000008c026020850151600286516000604051602001526040518082805190602001908083835b602083106108825780518252601f199092019160209182019101610863565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f115156108c457600080fd5b505060405180519050604087015160405177ffffffffffffffffffffffffffffffffffffffffffffffff19851681526008810184805190602001908083835b602083106109225780518252601f199092019160209182019101610903565b6001836020036101000a038019825116818451161790925250505091909101848152602001905082805190602001908083835b602083106109745780518252601f199092019160209182019101610955565b6001836020036101000a03801982511681845116179092525050509190910195506040945050505050518091039020611331565b9998505050505050505050565b601360205260009081526040902054600160a060020a031681565b60125462010000900460ff1681565b60156020526000908152604090205481565b60055460009081908190819033600160a060020a03908116911614610a1557600080fd5b610a3e7f30000000000000000000000000000000000000000000000000000000000000006105b2565b6002935060009250600f549150610a568385846106cd565b5050505050565b610a8782826000604051805910610a715750595b9080825280602002602001820160405250610a8b565b5050565b6012805463ff00000019166301000000179055610aa6611343565b600160a060020a031633600160a060020a0316141515610ac557600080fd5b610ad083838361143e565b60ff1615610aee576012805462ff0000191662010000179055600080fd5b620100006011819055826040518082805190602001908083835b60208310610b275780518252601f199092019160209182019101610b08565b6001836020036101000a0380198251168184511617909252505050919091019250604091505051908190039020811515610b5d57fe5b0660108190556127109061ffff90603c0182020461044c02811515610b7e57fe5b0460098181556007805461044c600019820102909301600d556005805460009485526014602090815260408087208054600160a060020a031916600160a060020a0394851617905594549354865260159052938390209190915560088054600101905530831631600b81905590549092169180156108fc029151600060405180830381858888f193505050501515610c1557600080fd5b6007805460019081019091556012805460ff19169091179055505050565b600f5481565b60055433600160a060020a03908116911614610c5457600080fd5b600554600160a060020a039081169030163180156108fc0290604051600060405180830381858888f193505050501515610c8d57600080fd5b565b600c5481565b60055433600160a060020a03908116911614610cb057600080fd5b6012805461ff001916610100179055565b60115481565b600b5481565b600654600160a060020a031681565b601460205260009081526040902054600160a060020a031681565b60055433600160a060020a03908116911614610d1257600080fd5b600f8054620493e0019055565b600e5481565b600a5481565b60125460ff1681565b601254610100900460ff1681565b60105481565b600d5481565b6012546301000000900460ff1681565b60095481565b60085481565b60075481565b3b90565b600080610d94731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed610d70565b1115610e045760008054600160a060020a031916731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed179055610dfc60408051908101604052600b81527f6574685f6d61696e6e65740000000000000000000000000000000000000000006020820152611568565b506001611096565b6000610e2373c03a2615d5efaf5f49f60b7bb6583eaec212fdf1610d70565b1115610e8b5760008054600160a060020a03191673c03a2615d5efaf5f49f60b7bb6583eaec212fdf1179055610dfc60408051908101604052600c81527f6574685f726f707374656e3300000000000000000000000000000000000000006020820152611568565b6000610eaa73b7a07bcf2ba2f2703b24c0691b5278999c59ac7e610d70565b1115610f125760008054600160a060020a03191673b7a07bcf2ba2f2703b24c0691b5278999c59ac7e179055610dfc60408051908101604052600981527f6574685f6b6f76616e00000000000000000000000000000000000000000000006020820152611568565b6000610f3173146500cfd35b22e4a392fe0adc06de1a1368ed48610d70565b1115610f995760008054600160a060020a03191673146500cfd35b22e4a392fe0adc06de1a1368ed48179055610dfc60408051908101604052600b81527f6574685f72696e6b6562790000000000000000000000000000000000000000006020820152611568565b6000610fb8736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475610d70565b1115610fec575060008054600160a060020a031916736f485c8bf6fc43ea212e93bbf8ce046c7f1cb4751790556001611096565b600061100b7320e12a1f859b3feae5fb2a0a32c18f5a65555bbf610d70565b111561103f575060008054600160a060020a0319167320e12a1f859b3feae5fb2a0a32c18f5a65555bbf1790556001611096565b600061105e7351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa610d70565b1115611092575060008054600160a060020a0319167351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa1790556001611096565b5060005b919050565b60008054600160a060020a031615806110c657506000546110c490600160a060020a0316610d70565b155b156110d7576110d56000610d74565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561112057600080fd5b6102c65a03f1151561113157600080fd5b505050604051805160018054600160a060020a031916600160a060020a03928316179081905516905063abaa5f3e6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561119657600080fd5b6102c65a03f115156111a757600080fd5b50505060405180519150505b90565b60006111c0612909565b600054600160a060020a031615806111ea57506000546111e890600160a060020a0316610d70565b155b156111fb576111f96000610d74565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561124457600080fd5b6102c65a03f1151561125557600080fd5b505050604051805160018054600160a060020a031916600160a060020a039290921691909117905550600360405180591061128d5750595b9080825280602002602001820160405280156112c357816020015b6112b0612909565b8152602001906001900390816112a85790505b5090508351816000815181106112d557fe5b602090810290910101528360016020020151816001815181106112f457fe5b602090810291909101015260408401518160028151811061131157fe5b602090810290910101526113278686838661157b565b9695505050505050565b60009182526003602052604090912055565b60008054600160a060020a0316158061136e575060005461136c90600160a060020a0316610d70565b155b1561137f5761137d6000610d74565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156113c857600080fd5b6102c65a03f115156113d957600080fd5b505050604051805160018054600160a060020a031916600160a060020a03928316179081905516905063c281d19e6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561119657600080fd5b6000808260008151811061144e57fe5b016020015160f860020a900460f860020a02600160f860020a0319167f4c000000000000000000000000000000000000000000000000000000000000001415806114e05750826001815181106114a057fe5b016020015160f860020a900460f860020a02600160f860020a0319167f500000000000000000000000000000000000000000000000000000000000000014155b806115285750826002815181106114f357fe5b01602001517fff0000000000000000000000000000000000000000000000000000000000000060f860020a9182900482021614155b156115365760019150611560565b611549838686611544611891565b611939565b905080151561155b5760029150611560565b600091505b509392505050565b6002818051610a87929160200190612948565b600080611586612909565b600054600160a060020a031615806115b057506000546115ae90600160a060020a0316610d70565b155b156115c1576115bf6000610d74565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561160a57600080fd5b6102c65a03f1151561161b57600080fd5b505050604051805160018054600160a060020a031916600160a060020a039283161790819055169050632ef3accc87866000604051602001526040518363ffffffff1660e060020a0281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b838110156116a9578082015183820152602001611691565b50505050905090810190601f1680156116d65780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b15156116f557600080fd5b6102c65a03f1151561170657600080fd5b5050506040518051925050670de0b6b3a76400003a85020182111561172e5760009250611887565b61173785611e97565b600154909150600160a060020a031663c55c1cb683898985896000604051602001526040518663ffffffff1660e060020a028152600401808581526020018060200180602001848152602001838103835286818151815260200191508051906020019080838360005b838110156117b85780820151838201526020016117a0565b50505050905090810190601f1680156117e55780820380516001836020036101000a031916815260200191505b50838103825285818151815260200191508051906020019080838360005b8381101561181b578082015183820152602001611803565b50505050905090810190601f1680156118485780820380516001836020036101000a031916815260200191505b5096505050505050506020604051808303818588803b151561186957600080fd5b6125ee5a03f1151561187a57600080fd5b5050505060405180519350505b5050949350505050565b611899612909565b60028054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561192f5780601f106119045761010080835404028352916020019161192f565b820191906000526020600020905b81548152906001019060200180831161191257829003601f168201915b5050505050905090565b6000806000611946612909565b61194e612909565b611956612909565b61195e612909565b600080611969612909565b8d60458151811061197657fe5b016020015160f860020a908190048102046066019750602060405180591061199b5750595b908082528060200260200182016040525096506119bd8e8960208a600061220a565b5060028b8e6000604051602001526040518083805190602001908083835b602083106119fa5780518252601f1990920191602091820191016119db565b6001836020036101000a0380198251168184511617909252505050919091019283525050602090810191506040518083038160008661646e5a03f11515611a4057600080fd5b505060405180519050604051908152602001604051908190039020876040518082805190602001908083835b60208310611a8b5780518252601f199092019160209182019101611a6c565b6001836020036101000a038019825116818451161790925250505091909101925060409150505190819003902014985088611ac95760009950611e86565b8d604a890181518110611ad857fe5b016020015160f860020a900460f860020a0260f860020a9004600201604051805910611b015750595b90808252806020026020018201604052509550611b268e89604901885189600061220a565b50611bb66002876000604051602001526040518082805190602001908083835b60208310611b655780518252601f199092019160209182019101611b46565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f11515611ba757600080fd5b5050604051805190508d61225f565b9850881515611bc85760009950611e86565b6029604051805910611bd75750595b90808252806020026020018201604052509450611bfc8e89602001602988600061220a565b5060408051805910611c0b5750595b90808252806020026020018201604052509350855188602001602901016041019250611c3f8e60408503604087600061220a565b506002846000604051602001526040518082805190602001908083835b60208310611c7b5780518252601f199092019160209182019101611c5c565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f11515611cbd57600080fd5b505060405180519050915084826040518083805190602001908083835b60208310611cf95780518252601f199092019160209182019101611cda565b6001836020036101000a0380198251168184511617909252505050919091019283525050602001905060405190819003902060008e8152600360205260409020541415611d545760008d815260036020526040812055611d5d565b60009950611e86565b6049604051805910611d6c5750595b90808252806020026020018201604052509050611d8e8e89604984600061220a565b50611e1f6002826000604051602001526040518082805190602001908083835b60208310611dcd5780518252601f199092019160209182019101611dae565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f11515611e0f57600080fd5b50506040518051905087866122d2565b9850881515611e315760009950611e86565b60008281526004602052604090205460ff161515611e7157611e538e846124e1565b6000838152600460205260409020805460ff19169115159190911790555b60008281526004602052604090205460ff1699505b505050505050505050949350505050565b611e9f612909565b600080611eaa612909565b6000806000611eb7612909565b60008060008b5199506000985089604051805910611ed25750595b908082528060200260200182016040528015611f0857816020015b611ef5612909565b815260200190600190039081611eed5790505b509750600096505b89871015611f95578b8781518110611f2457fe5b90602001906020020151888881518110611f3a57fe5b6020908102909101015260176001898981518110611f5457fe5b906020019060200201515103811515611f6957fe5b04888881518110611f7657fe5b9060200190602002015151019890980160030197600190960195611f10565b600198909801976000955060808a01945088604051805910611fb45750595b908082528060200260200182016040525093505b60018690111561201a5760f860020a85028660018110611fe457fe5b1a60f860020a02848781518110611ff757fe5b906020010190600160f860020a031916908160001a905350600190950194611fc8565b600096505b898710156121fa577f5f0000000000000000000000000000000000000000000000000000000000000084878151811061205457fe5b906020010190600160f860020a031916908160001a905350600190950194600092505b87878151811061208357fe5b90602001906020020151518310156121a65760178306151561213f576018838989815181106120ae57fe5b90602001906020020151510310156120de57828888815181106120cd57fe5b9060200190602002015151036120e1565b60175b60400191508590505b8086036001111561213f5760f860020a82028187036001811061210957fe5b1a60f860020a0284878151811061211c57fe5b906020010190600160f860020a031916908160001a9053506001909501946120ea565b87878151811061214b57fe5b90602001906020020151838151811061216057fe5b016020015160f860020a900460f860020a0284878151811061217e57fe5b906020010190600160f860020a031916908160001a9053506001958601959290920191612077565b7fff000000000000000000000000000000000000000000000000000000000000008487815181106121d357fe5b906020010190600160f860020a031916908160001a9053506001968701969095019461201f565b50919a9950505050505050505050565b612212612909565b838201600080828651101561222657600080fd5b505060208087019084015b86886020010182101561225257818901518682015260209182019101612231565b5093979650505050505050565b60006001815b83518160ff16101561156057838160ff168151811061228057fe5b016020015160f860020a900460f860020a02600160f860020a031916858260ff166020811015156122ad57fe5b1a60f860020a02600160f860020a0319161415156122ca57600091505b600101612265565b60008060008060006122e2612909565b60006122ec612909565b60206040518059106122fb5750595b81815260209182028101820160405293508a60038151811061231957fe5b016020015160f860020a900460f860020a0260f860020a90040360040191506123478a83602086600061220a565b925060206040518059106123585750595b908082528060200260200182016040525090506022820191506123ac8a60208c600186038151811061238657fe5b016020015160f860020a900460f860020a0260f860020a9004038401602084600061220a565b905060208301519450602081015193506123c98b601b87876128c9565b9097509550600160a060020a038616896040518082805190602001908083835b602083106124085780518252601f1990920191602091820191016123e9565b6001836020036101000a0380198251168184511617909252505050919091019250604091505051908190039020600160a060020a0316141561244d57600197506124d3565b61245a8b601c87876128c9565b9097509550600160a060020a038616896040518082805190602001908083835b602083106124995780518252601f19909201916020918201910161247a565b6001836020036101000a0380198251168184511617909252505050919091019250604091505051908190039020600160a060020a03161497505b505050505050509392505050565b6000806124ec612909565b6124f4612909565b6124fc612909565b612504612909565b61250c612909565b612514612909565b61251c612909565b8a8a6001018151811061252b57fe5b016020015160f860020a900460f860020a0260f860020a90046002016040518059106125545750595b908082528060200260200182016040525096506125768b8b89518a600061220a565b50604080518059106125855750595b908082528060200260200182016040525095506125a88b6004604089600061220a565b5060626040518059106125b85750595b9080825280602002602001820160405250945060f860020a856000815181106125dd57fe5b906020010190600160f860020a031916908160001a9053506126078b60418c03604188600161220a565b506040805190810160405280602081526020017ffd94fa71bc0ba10d39d464d0d8f465efeef0a2764e3887fcc9df41ded20f505c8152509350612650846000602088604261220a565b506126e16002866000604051602001526040518082805190602001908083835b6020831061268f5780518252601f199092019160209182019101612670565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f115156126d157600080fd5b50506040518051905088886122d2565b97508715156126f357600098506128bb565b606060405190810160405280604081526020017f7fb956469c5c9b89840d55b43537e66a98dd4811ea0a27224272c2e5622911e881526020017f537a2f8e86a46baec82864e98dd01e9ccc2f8bc5dfc9cbe5a91a290498dd96e4815250925060426040518059106127615750595b908082528060200260200182016040525091507ffe00000000000000000000000000000000000000000000000000000000000000826000815181106127a257fe5b906020010190600160f860020a031916908160001a9053506127ca8b6003604185600161220a565b508a6045815181106127d857fe5b016020015160f860020a900460f860020a0260f860020a90046002016040518059106128015750595b908082528060200260200182016040525090506128248b6044835184600061220a565b506128b56002836000604051602001526040518082805190602001908083835b602083106128635780518252601f199092019160209182019101612844565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f115156128a557600080fd5b50506040518051905082856122d2565b97508798505b505050505050505092915050565b60008060008060405188815287602082015286604082015285606082015260208160808360006001610bb8f1925080519299929850919650505050505050565b60206040519081016040526000815290565b60606040519081016040526003815b612932612909565b81526020019060019003908161292a5790505090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061298957805160ff19168380011785556129b6565b828001600101855582156129b6579182015b828111156129b657825182559160200191906001019061299b565b506129c29291506129c6565b5090565b6111b391905b808211156129c257600081556001016129cc5600a165627a7a72305820f623bdc254e1cc27397ff1ba07647f9f955d4d0d65a3706279532b9755d538f40029

   Swarm Source:
bzzr://f623bdc254e1cc27397ff1ba07647f9f955d4d0d65a3706279532b9755d538f4

 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.