Contract Overview
ETH Balance: 0.165600000000000001 Ether
No Of Transactions: 119 txns
  Latest 25 txns from a total Of 119 transactions View All

TxHash Age From To Value [TxFee]
0x1ec0409c9143619936ab274876470429b1ad907abff4dd8ed5920e429618f03f3 days 18 hrs ago0x7acb11a6840fae082b72942ff86755d499905cca  IN   0x601cfe457b19ea331f719d3a6b4689346d1975c50 Ether0.001079655
0x489e062a48bbff86ca18ccd55ff68f24b57099673d02ab5a85d0a89706afe3955 days 19 hrs ago0xbb17aee536a772ff997ded491492db7153e9dd83  IN   0x601cfe457b19ea331f719d3a6b4689346d1975c50 Ether0.0041607
0x5ca31cadb991c2a96da7ea7c72e3e3f26af26aa750a190c347993f87da31e3a25 days 19 hrs ago0x83377d8e7c18a414d8776ed371c215d3df9a23ce  IN   0x601cfe457b19ea331f719d3a6b4689346d1975c50.08 Ether0.00170584
0xbfe14f301d742babab4ed6f232011247e9124a18a14ed38034c6e62c2c34594f5 days 19 hrs ago0x649e49798f59ca9258faffe1d22a820a48d0c1a3  IN   0x601cfe457b19ea331f719d3a6b4689346d1975c50.08 Ether0.00157634
0x6436f88f6c489a30c94a69b2bc560ce49ffe179ff63c73e87c6b5e9b17b5711d5 days 19 hrs ago0xdaf355bc22fb6b479227e6133e4cc61d12e6a373  IN   0x601cfe457b19ea331f719d3a6b4689346d1975c50.08 Ether0.00157634
0x503fa5b07bcd12b162d6e1269a8be381db3466b3ec7036ba16f795b4917738335 days 19 hrs ago0x78790839191737fd677d685a7291d5c02ae8bf20  IN   0x601cfe457b19ea331f719d3a6b4689346d1975c51.04 Ether0.00157634
0x37a4ccc997505e61292298173f6ab0b95523419d683471b16a845d7e0460b1ba5 days 19 hrs ago0x3109370ffdd22775a7a1770ee56290ab8dbce4a3  IN   0x601cfe457b19ea331f719d3a6b4689346d1975c50.08 Ether0.00187634
0x176911d4b0c9fd6d047e8e8cc234fb1238d562c263b36337c8d2e9b083fd724a5 days 19 hrs ago0x854bd635fd4e8684a326664e0698c8fefae6dd97  IN   0x601cfe457b19ea331f719d3a6b4689346d1975c50 Ether0.00483498
0x8b85731fa6b7c72272b1328833a7148ae2c69aad3416b889f3553f8fd5588d465 days 19 hrs ago0xbb17aee536a772ff997ded491492db7153e9dd83  IN   0x601cfe457b19ea331f719d3a6b4689346d1975c50 Ether0.0041607
0x9289a1a07a34e4a30dc880af02d694b17eb24c0b10a0c92ea15a58390fd1cc405 days 20 hrs ago0x83377d8e7c18a414d8776ed371c215d3df9a23ce  IN   0x601cfe457b19ea331f719d3a6b4689346d1975c50.16 Ether0.00170584
0xc13a27ea07e9a4c96df8e7743f22a490c77d7d4af3a7b8ae0f951e5d616816885 days 20 hrs ago0x649e49798f59ca9258faffe1d22a820a48d0c1a3  IN   0x601cfe457b19ea331f719d3a6b4689346d1975c50.08 Ether0.00157634
0xf465899afd70a749ba7145bfb53e9c4d6cfc434bb1305d6d650825359f0a56b65 days 20 hrs ago0xdaf355bc22fb6b479227e6133e4cc61d12e6a373  IN   0x601cfe457b19ea331f719d3a6b4689346d1975c50.08 Ether0.00157634
0xbd4db1dcdddbab5a4c2092dac4029eedff02456b8f74368b595a6d3d70f7a9b35 days 20 hrs ago0x78790839191737fd677d685a7291d5c02ae8bf20  IN   0x601cfe457b19ea331f719d3a6b4689346d1975c50.64 Ether0.00157634
0x922ac932c74e1bc685b0227f77a26a513325a4a8ef3885c58e8e4e3c8db5511a5 days 20 hrs ago0x3109370ffdd22775a7a1770ee56290ab8dbce4a3  IN   0x601cfe457b19ea331f719d3a6b4689346d1975c50.16 Ether0.00187634
0xf1a5f7a58b37c9b9dcda15933860623714abb342ddb4abc9c7d18ecd41f2c8535 days 20 hrs ago0x854bd635fd4e8684a326664e0698c8fefae6dd97  IN   0x601cfe457b19ea331f719d3a6b4689346d1975c50 Ether0.00483498
0xb206179c2b7d39bdedefec69f3272434a9a43e89e3d9495e818aa43b07c6e22b5 days 20 hrs ago0xbb17aee536a772ff997ded491492db7153e9dd83  IN   0x601cfe457b19ea331f719d3a6b4689346d1975c50 Ether0.0041607
0x39c0a7c6358aca44cdf31eca3585c25aadcf3095c662d6e3eed77d8e759f30715 days 20 hrs ago0x83377d8e7c18a414d8776ed371c215d3df9a23ce  IN   0x601cfe457b19ea331f719d3a6b4689346d1975c50.4 Ether0.00170584
0x7473cc469e87c7634d7b7e9bcf6e8f8ebed6690168d87d5d37f69f0105a96cea5 days 20 hrs ago0x649e49798f59ca9258faffe1d22a820a48d0c1a3  IN   0x601cfe457b19ea331f719d3a6b4689346d1975c50.16 Ether0.00157634
0xe756f2ce1576a0b3bba2346e15d7f8b70b75d187860ff990ada7e8b49146bfaf5 days 20 hrs ago0xdaf355bc22fb6b479227e6133e4cc61d12e6a373  IN   0x601cfe457b19ea331f719d3a6b4689346d1975c50.16 Ether0.00157634
0x97bcced4aa85538db016ceb51fbd6bf5b47fe692254a8c4b26f9a3639957c62f5 days 20 hrs ago0x78790839191737fd677d685a7291d5c02ae8bf20  IN   0x601cfe457b19ea331f719d3a6b4689346d1975c50.16 Ether0.00157634
0x2427d5a97f8d3283975862cc4cf6950309ecb4ae4cd9f605a9a536b087ea054d5 days 20 hrs ago0x3109370ffdd22775a7a1770ee56290ab8dbce4a3  IN   0x601cfe457b19ea331f719d3a6b4689346d1975c50.32 Ether0.00187634
0xdd471220e7cea0657d92aba0763728321cee191474958b4deab31ace9ec434347 days 23 hrs ago0x854bd635fd4e8684a326664e0698c8fefae6dd97  IN   0x601cfe457b19ea331f719d3a6b4689346d1975c50 Ether0.00483498
0xe2211d58b06da6ffb7fa9834273676697c570e71163d4e3931032d17a2a73fe37 days 23 hrs ago0xbb17aee536a772ff997ded491492db7153e9dd83  IN   0x601cfe457b19ea331f719d3a6b4689346d1975c50 Ether0.004368735
0x24d9a2e2da909de02d3d75e7c8d64c3b86f27a1726b3fd4aacd6ec5a0e6521c97 days 23 hrs ago0x649e49798f59ca9258faffe1d22a820a48d0c1a3  IN   0x601cfe457b19ea331f719d3a6b4689346d1975c50.08 Ether0.001791132
0x5f1da47c6594e54da5bea842d9d2daf43d758b761a529e58642dc6c00922d7207 days 23 hrs ago0xdaf355bc22fb6b479227e6133e4cc61d12e6a373  IN   0x601cfe457b19ea331f719d3a6b4689346d1975c50.08 Ether0.001655157
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
View All
ParentTxHash Block Age From To Value
Warning: The compiled contract might be susceptible to ZeroFunctionSelector (very low-severity) Solidity compiler bugs.

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



  Contract Source Code   Find Similiar Contracts
// <ORACLIZE_API>
/*
Copyright (c) 2015-2016 Oraclize SRL
Copyright (c) 2016 Oraclize LTD



Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:



The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.



THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/

pragma solidity ^0.4.0;//please import oraclizeAPI_pre0.4.sol when solidity < 0.4.0

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);
    }
        
}


// </ORACLIZE_API>
pragma solidity ^0.4.17;

contract owned {
    address public owner;

    function owned() public {
        owner = msg.sender;
    }

    function setOwner(address _newOwner) external onlyOwner {
        owner = _newOwner;
    }

    modifier onlyOwner {
        require(msg.sender == owner);
        _;
    }
}

contract mortal is owned {
    function close() external onlyOwner {
        selfdestruct(owner);

    }
}

contract Raffle is usingOraclize, mortal {
    address public houseAddress;

    uint public constant HOUSE_EDGE_DIVISOR = 10000;
    uint public constant WIN_CHANCE_DIVISOR = 10000;
    uint public houseEdge;
    uint public houseBalance;

    uint public roundId = 0;

    uint public safeGas;
    uint public callbackGas;

    uint public ticketPrice;
    uint16 public maxTickets;  // max tickets per player
    uint16 public maxPlayers;

    bool public stopped = false;

    enum RoundStatus {
        OPENED,
        CLOSED,
        ENDED,
        REFUNDED
    }

    struct Round {
        RoundStatus status;
        uint16 maxTickets;
        uint16 maxPlayers;
        uint32 boughtTickets;
        uint ticketPrice;
        uint oraclizeFee;
        bytes32 oraclizeId;
        address winner;
        address[] players;
        mapping (address => uint) tickets;
    }

    mapping (address => uint) pendingReturns;
    mapping (uint => Round) rounds;

    modifier onlyOraclize {
        require(msg.sender == oraclize_cbAddress());
        _;
    }

    modifier onlyOpen {
        require(rounds[roundId].status == RoundStatus.OPENED);
        _;
    }

    modifier onlyClosed {
        require(rounds[roundId].status == RoundStatus.CLOSED);
        _;
    }

    modifier onlyNotStopped {
        require(!stopped);
        _;
    }

    modifier onlyStopped {
        require(stopped);
        _;
    }

    modifier onlyValidOraclizeId(bytes32 _oraclizeId) {
        require(rounds[roundId].oraclizeId == _oraclizeId);
        _;
    }

    modifier onlyValidRoundId(uint _roundId) {
        require(_roundId <= roundId);
        _;
    }

    modifier onlyWinnerNotDrawn() {
        require(rounds[roundId].oraclizeFee == 0);
        _;
    }

    event LogTicketsBought(
        uint roundId,
        address player,
        uint ticketsBought,
        uint totalTickets);

    event LogRoundClosed(uint roundId);

    event LogRoundOpened(
        uint roundId,
        uint maxTickets,
        uint maxPlayers,
        uint ticketPrice,
        uint houseEdge);

    event LogRoundRefunded(uint roundId);

    event LogWinner(uint roundId, address player, uint value, uint chance);

    event LogStopped();

    event LogResumed();

    event LogOraclizeToExpensive(uint roundId, uint price);


    function Raffle(
        uint _houseEdge,
        uint _safeGas,
        uint _callbackGas,
        uint _ticketPrice,
        uint16 _maxTickets,
        uint16 _maxPlayers)
        public
    {
        oraclize_setProof(proofType_Ledger);

        houseAddress = msg.sender;
        houseEdge = _houseEdge;

        safeGas = _safeGas;
        callbackGas = _callbackGas;

        ticketPrice = _ticketPrice;
        maxTickets = _maxTickets;
        maxPlayers = _maxPlayers;

        rounds[roundId] = createRound(roundId);
    }

    function() payable public {
        buyTickets();
    }

    function setHouseAddress(address _houseAddress) external onlyOwner {
        houseAddress = _houseAddress;
    }

    function setHouseEdge(uint _houseEdge) external onlyOwner {
        houseEdge = _houseEdge;
    }

    function setCallbackGas(uint _callbackGas) external onlyOwner {
        callbackGas = _callbackGas;
    }

    function setSafeGas(uint _safeGas) external onlyOwner {
        safeGas = _safeGas;
    }

    function setTicketPrice(uint _ticketPrice) external onlyOwner {
        ticketPrice = _ticketPrice;
    }

    function setMaxTickets(uint16 _maxTickets) external onlyOwner {
        maxTickets = _maxTickets;
    }

    function setMaxPlayers(uint16 _maxPlayers) external onlyOwner {
        maxPlayers = _maxPlayers;
    }

    function stopContract() external onlyOwner {
        stopped = true;
        LogStopped();
    }

    function resumeContract() external onlyOwner {
        stopped = false;
        LogResumed();
    }

    function drawWinner() external onlyClosed onlyWinnerNotDrawn {
        Round storage round = rounds[roundId];
        round.oraclizeFee = oraclize_getPrice("random", callbackGas + safeGas);
        uint pot = round.boughtTickets * round.ticketPrice;
        uint houseValue =  calcHouseValue(pot);
        if (round.oraclizeFee > houseValue) {
            // oraclize is too expensive => house egde would be negativ
            LogOraclizeToExpensive(roundId, round.oraclizeFee);
            return;
        }
        bytes32 oraclizeId = oraclize_newRandomDSQuery(0, 32, callbackGas + safeGas);
        round.oraclizeId = oraclizeId;
    }

    function refund() external onlyOwner {
        Round storage round = rounds[roundId];
        require((stopped && round.status == RoundStatus.OPENED) || round.status == RoundStatus.CLOSED);

        uint boughtTickets = round.boughtTickets;
        uint pot = round.ticketPrice * boughtTickets - round.oraclizeFee;

        for (uint i = 0; i < round.players.length; i++) {
            address player = round.players[i];
            uint playerTickets = round.tickets[player];
            uint value = pot * playerTickets / boughtTickets;
            pendingReturns[player] += value;
            transferTo(player);
        }

        round.status = RoundStatus.REFUNDED;
        LogRoundRefunded(roundId);

        createNewRound();
    }

    function withdrawHouseBalance() external onlyOwner {
        uint houseBalanceToSend = houseBalance;
        houseBalance = 0;
        if (send(houseAddress, houseBalanceToSend) == false) {
            houseBalance = houseBalanceToSend;
        }
    }

    function withdraw() external {
        transferTo(msg.sender);
    }

    function getRoundState(uint _roundId)
        external
        constant
        onlyValidRoundId(_roundId)
        returns(RoundStatus, uint16, uint16, uint32, uint, uint, bytes32, address)
    {
        Round storage round = rounds[_roundId];

        return(round.status, round.maxTickets, round.maxPlayers, round.boughtTickets,
            round.ticketPrice, round.oraclizeFee, round.oraclizeId, round.winner);
    }

    function getRoundPlayers(uint _roundId)
        external
        constant
        onlyValidRoundId(_roundId)
        returns(address[], uint[])
    {
        Round storage round = rounds[_roundId];

        uint[] memory ticketsList = new uint[](round.players.length);
        for (uint256 i = 0; i < round.players.length; i++) {
            ticketsList[i] = round.tickets[round.players[i]];
        }

        return (round.players, ticketsList);
    }

    function getPlayerTickets(uint _roundId, address _player)
        external
        constant
        onlyValidRoundId(_roundId)
        returns(uint)
    {
        Round storage round = rounds[_roundId];
        return round.tickets[_player];
    }

    function getPendingReturns(address _player)
        external
        constant
        returns(uint)
    {
        return pendingReturns[_player];
    }


    function buyTickets() public payable onlyOpen onlyNotStopped {
        Round storage round = rounds[roundId];

        uint newTickets = msg.value / round.ticketPrice;
        require(newTickets > 0 && msg.value % round.ticketPrice == 0);

        uint numTickets = newTickets + round.tickets[msg.sender];
        require(numTickets <= round.maxTickets);

        if (round.tickets[msg.sender] == 0) {
            round.players.push(msg.sender);  // register new player
        }

        round.tickets[msg.sender] = numTickets;

        round.boughtTickets += uint16(newTickets);
        LogTicketsBought(roundId, msg.sender, numTickets, round.boughtTickets);

        if (round.players.length >= round.maxPlayers) {
            round.status = RoundStatus.CLOSED;
            LogRoundClosed(roundId);
        }
    }

    function __callback(bytes32 _oraclizeId, string _result, bytes _proof)
        public
        onlyOraclize
        onlyClosed
        onlyValidOraclizeId(_oraclizeId)
        oraclize_randomDS_proofVerify(_oraclizeId, _result, _proof)
    {
        Round storage round = rounds[roundId];

        require(bytes(_result).length == 32);
        uint randUint = stringToUint256(_result);

        // module bias is negligible as randUint >> round.boughtTickets
        uint winnerTicket = randUint % round.boughtTickets;

        // draw winner
        uint boughtTicketsSum = 0;
        for (uint i = 0; i < round.players.length; i++) {
            boughtTicketsSum += round.tickets[round.players[i]];
            if (winnerTicket < boughtTicketsSum) {
                round.winner = round.players[i];
                round.status = RoundStatus.ENDED;
                payOut(roundId);
                createNewRound();
                return;
            }
        }
    }

    function createNewRound() private {
        ++roundId;
        rounds[roundId] = createRound(roundId);
    }

    function payOut(uint _roundId) private {
        Round storage round= rounds[_roundId];
        uint pot = round.boughtTickets * round.ticketPrice;

        uint houseClaim = calcHouseValue(pot);
        uint won = pot - houseClaim;

        // house pays oraclize fee
        uint houseFee = houseClaim - round.oraclizeFee;

        houseBalance += houseFee;
        pendingReturns[round.winner] += won;

        uint chance = round.tickets[round.winner] * WIN_CHANCE_DIVISOR / round.boughtTickets;

        LogWinner(roundId, round.winner, won, chance);

        transferTo(round.winner);
    }

    function transferTo(address _address) private {
        uint valueToSend = pendingReturns[_address];
        require(valueToSend > 0);

        pendingReturns[_address] = 0;
        if (send(_address, valueToSend) == false) {
            pendingReturns[_address] = valueToSend;
        }
    }

    function send(address _address, uint _value) private returns (bool) {
        return _address.call.gas(safeGas).value(_value)();
    }

    function createRound(uint _roundId) private returns(Round) {
        Round memory round = Round({
            status: RoundStatus.OPENED,
            maxTickets: maxTickets,
            maxPlayers: maxPlayers,
            boughtTickets: 0,
            ticketPrice: ticketPrice,
            oraclizeFee: 0,
            oraclizeId: 0,
            winner: 0x0,
            players: new address[](0)

        });
        LogRoundOpened(_roundId, round.maxTickets, round.maxPlayers, round.ticketPrice, houseEdge);
        return round;
    }

    function calcHouseValue(uint _pot) private constant returns (uint) {
        return _pot * houseEdge / HOUSE_EDGE_DIVISOR;
    }

    function stringToUint256(string memory _source) private constant returns (uint) {
        bytes32 result;
        assembly {
            result := mload(add(_source, 32))
        }
        return uint(result);
    }
}

    Contract ABI  
[{"constant":false,"inputs":[{"name":"_callbackGas","type":"uint256"}],"name":"setCallbackGas","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"ticketPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"stopContract","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"setOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_ticketPrice","type":"uint256"}],"name":"setTicketPrice","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":"_oraclizeId","type":"bytes32"},{"name":"_result","type":"string"},{"name":"_proof","type":"bytes"}],"name":"__callback","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"close","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"safeGas","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"maxPlayers","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_maxPlayers","type":"uint16"}],"name":"setMaxPlayers","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"refund","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"houseBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_houseEdge","type":"uint256"}],"name":"setHouseEdge","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"stopped","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"WIN_CHANCE_DIVISOR","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_roundId","type":"uint256"}],"name":"getRoundPlayers","outputs":[{"name":"","type":"address[]"},{"name":"","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_player","type":"address"}],"name":"getPendingReturns","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"roundId","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_roundId","type":"uint256"},{"name":"_player","type":"address"}],"name":"getPlayerTickets","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"maxTickets","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"callbackGas","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"drawWinner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"resumeContract","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_roundId","type":"uint256"}],"name":"getRoundState","outputs":[{"name":"","type":"uint8"},{"name":"","type":"uint16"},{"name":"","type":"uint16"},{"name":"","type":"uint32"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"bytes32"},{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdrawHouseBalance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"buyTickets","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"houseEdge","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"houseAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_safeGas","type":"uint256"}],"name":"setSafeGas","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"HOUSE_EDGE_DIVISOR","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_houseAddress","type":"address"}],"name":"setHouseAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_maxTickets","type":"uint16"}],"name":"setMaxTickets","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_houseEdge","type":"uint256"},{"name":"_safeGas","type":"uint256"},{"name":"_callbackGas","type":"uint256"},{"name":"_ticketPrice","type":"uint256"},{"name":"_maxTickets","type":"uint16"},{"name":"_maxPlayers","type":"uint16"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"roundId","type":"uint256"},{"indexed":false,"name":"player","type":"address"},{"indexed":false,"name":"ticketsBought","type":"uint256"},{"indexed":false,"name":"totalTickets","type":"uint256"}],"name":"LogTicketsBought","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"roundId","type":"uint256"}],"name":"LogRoundClosed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"roundId","type":"uint256"},{"indexed":false,"name":"maxTickets","type":"uint256"},{"indexed":false,"name":"maxPlayers","type":"uint256"},{"indexed":false,"name":"ticketPrice","type":"uint256"},{"indexed":false,"name":"houseEdge","type":"uint256"}],"name":"LogRoundOpened","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"roundId","type":"uint256"}],"name":"LogRoundRefunded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"roundId","type":"uint256"},{"indexed":false,"name":"player","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"chance","type":"uint256"}],"name":"LogWinner","type":"event"},{"anonymous":false,"inputs":[],"name":"LogStopped","type":"event"},{"anonymous":false,"inputs":[],"name":"LogResumed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"roundId","type":"uint256"},{"indexed":false,"name":"price","type":"uint256"}],"name":"LogOraclizeToExpensive","type":"event"}]

  Contract Creation Code Switch To Opcodes View
60606040526000600955600d805464ff000000001916905534156200002357600080fd5b60405160c0806200443383398101604052808051919060200180519190602001805191906020018051919060200180519190602001805160058054600160a060020a03191633600160a060020a03161790559150620000b290507f30000000000000000000000000000000000000000000000000000000000000006401000000006200022d81026200387b1704565b60068054600160a060020a03191633600160a060020a03161790556007869055600a859055600b849055600c839055600d805461ffff191661ffff8481169190911763ffff0000191662010000918416919091021790556009546200012590640100000000620003b7810262002c4c1704565b6009546000908152600f6020526040902081518154829060ff191660018360038111156200014f57fe5b02179055506020820151815461ffff919091166101000262ffff00199091161781556040820151815461ffff9190911663010000000264ffff000000199091161781556060820151815463ffffffff91909116650100000000000268ffffffff0000000000199091161781556080820151816001015560a0820151816002015560c0820151600382015560e0820151600482018054600160a060020a031916600160a060020a0392909216919091179055610100820151816005019080516200021d929160200190620008b5565b5090505050505050505062000a50565b600054600160a060020a031615806200026857506000546200026690600160a060020a03166401000000006200225b620004b682021704565b155b156200028a576200028860006401000000006200225f620004ba82021704565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515620002ed57600080fd5b6102c65a03f11515620002ff57600080fd5b505050604051805160018054600160a060020a031916600160a060020a03928316179081905516905063688dcfd7826040517c010000000000000000000000000000000000000000000000000000000063ffffffff84160281527fff000000000000000000000000000000000000000000000000000000000000009091166004820152602401600060405180830381600087803b15156200039f57600080fd5b6102c65a03f11515620003b157600080fd5b50505050565b620003c162000921565b620003cb62000921565b61012060405190810160409081526000808352600d5461ffff808216602086015262010000909104168284015260608301819052600c54608084015260a0830181905260c0830181905260e08301819052610100830191518059106200042e5750595b9080825280602002602001820160405250905290507f630f0008129e99e574341ce8ae845ba14b7b10747707ba081db926e739a7197983602083015183604001518460800151600754604051808681526020018561ffff1681526020018461ffff1681526020018381526020018281526020019550505050505060405180910390a192915050565b3b90565b600080620004ea731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed6401000000006200225b620004b682021704565b11156200056c5760008054600160a060020a031916731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed1790556200056360408051908101604052600b81527f6574685f6d61696e6e6574000000000000000000000000000000000000000000602082015264010000000062002fce6200089c82021704565b50600162000897565b60006200059b73c03a2615d5efaf5f49f60b7bb6583eaec212fdf16401000000006200225b620004b682021704565b1115620006145760008054600160a060020a03191673c03a2615d5efaf5f49f60b7bb6583eaec212fdf11790556200056360408051908101604052600c81527f6574685f726f707374656e330000000000000000000000000000000000000000602082015264010000000062002fce6200089c82021704565b60006200064373b7a07bcf2ba2f2703b24c0691b5278999c59ac7e6401000000006200225b620004b682021704565b1115620006bc5760008054600160a060020a03191673b7a07bcf2ba2f2703b24c0691b5278999c59ac7e1790556200056360408051908101604052600981527f6574685f6b6f76616e0000000000000000000000000000000000000000000000602082015264010000000062002fce6200089c82021704565b6000620006eb73146500cfd35b22e4a392fe0adc06de1a1368ed486401000000006200225b620004b682021704565b1115620007645760008054600160a060020a03191673146500cfd35b22e4a392fe0adc06de1a1368ed481790556200056360408051908101604052600b81527f6574685f72696e6b656279000000000000000000000000000000000000000000602082015264010000000062002fce6200089c82021704565b600062000793736f485c8bf6fc43ea212e93bbf8ce046c7f1cb4756401000000006200225b620004b682021704565b1115620007c9575060008054600160a060020a031916736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475179055600162000897565b6000620007f87320e12a1f859b3feae5fb2a0a32c18f5a65555bbf6401000000006200225b620004b682021704565b11156200082e575060008054600160a060020a0319167320e12a1f859b3feae5fb2a0a32c18f5a65555bbf179055600162000897565b60006200085d7351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa6401000000006200225b620004b682021704565b111562000893575060008054600160a060020a0319167351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa179055600162000897565b5060005b919050565b6002818051620008b192916020019062000976565b5050565b8280548282559060005260206000209081019282156200090f579160200282015b828111156200090f5782518254600160a060020a031916600160a060020a039190911617825560209290920191600190910190620008d6565b506200091d929150620009f7565b5090565b610120604051908101604052806000815260006020820181905260408201819052606082018190526080820181905260a0820181905260c0820181905260e0820152610100016200097162000a21565b905290565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620009b957805160ff1916838001178555620009e9565b82800160010185558215620009e9579182015b82811115620009e9578251825591602001919060010190620009cc565b506200091d92915062000a33565b62000a1e91905b808211156200091d578054600160a060020a0319168155600101620009fe565b90565b60206040519081016040526000815290565b62000a1e91905b808211156200091d576000815560010162000a3a565b6139d38062000a606000396000f3006060604052361561019b5763ffffffff60e060020a60003504166301d09a3c81146101a55780631209b1f6146101bb57806312253a6c146101e057806313af4035146101f3578063159816501461021257806327dc297e1461022857806338bbfa501461027e5780633ccfd60b1461031657806343d726d61461032957806344d5cd7b1461033c5780634c2412a21461034f57806356748f3f14610379578063590e1ae31461039357806367084eb3146103a65780636cd0f102146103b957806375f12b21146103cf5780637676a7bb146103f6578063776e11dd1461040957806383ffda3b146104b85780638cd221c9146104d75780638d2cdc34146104ea5780638da5cb5b1461050c5780639b8947031461053b578063a10132ad1461054e578063b2185bb114610561578063c4bc5da514610574578063c642e7bf14610587578063c7bafdcb1461060b578063c81998261461019b578063d667dcd71461061e578063d7cee31e14610631578063dbf5b91b14610644578063e9b32a3f146103f6578063ef3aaf541461065a578063f7efeb8814610679575b6101a3610693565b005b34156101b057600080fd5b6101a36004356108d4565b34156101c657600080fd5b6101ce6108f4565b60405190815260200160405180910390f35b34156101eb57600080fd5b6101a36108fa565b34156101fe57600080fd5b6101a3600160a060020a0360043516610958565b341561021d57600080fd5b6101a3600435610995565b341561023357600080fd5b6101a3600480359060446024803590810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496506109b595505050505050565b341561028957600080fd5b6101a3600480359060446024803590810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284378201915050505050509190803590602001908201803590602001908080601f0160208091040260200160405190810160405281815292919060208401838380828437509496506109e395505050505050565b341561032157600080fd5b6101a3610c9d565b341561033457600080fd5b6101a3610ca8565b341561034757600080fd5b6101ce610cd1565b341561035a57600080fd5b610362610cd7565b60405161ffff909116815260200160405180910390f35b341561038457600080fd5b6101a361ffff60043516610ce7565b341561039e57600080fd5b6101a3610d22565b34156103b157600080fd5b6101ce610eb7565b34156103c457600080fd5b6101a3600435610ebd565b34156103da57600080fd5b6103e2610edd565b604051901515815260200160405180910390f35b341561040157600080fd5b6101ce610eee565b341561041457600080fd5b61041f600435610ef4565b604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b8381101561046357808201518382015260200161044b565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156104a257808201518382015260200161048a565b5050505090500194505050505060405180910390f35b34156104c357600080fd5b6101ce600160a060020a0360043516611035565b34156104e257600080fd5b6101ce611054565b34156104f557600080fd5b6101ce600435600160a060020a036024351661105a565b341561051757600080fd5b61051f61109e565b604051600160a060020a03909116815260200160405180910390f35b341561054657600080fd5b6103626110ad565b341561055957600080fd5b6101ce6110b7565b341561056c57600080fd5b6101a36110bd565b341561057f57600080fd5b6101a3611201565b341561059257600080fd5b61059d600435611258565b604051808960038111156105ad57fe5b60ff16815261ffff98891660208201529690971660408088019190915263ffffffff9095166060870152608086019390935260a085019190915260c0840152600160a060020a031660e0830152610100909101925090505180910390f35b341561061657600080fd5b6101a36112e5565b341561062957600080fd5b6101ce611332565b341561063c57600080fd5b61051f611338565b341561064f57600080fd5b6101a3600435611347565b341561066557600080fd5b6101a3600160a060020a0360043516611367565b341561068457600080fd5b6101a361ffff600435166113a4565b60008080806009546000908152600f602052604090205460ff1660038111156106b857fe5b146106c257600080fd5b600d54640100000000900460ff16156106da57600080fd5b6009546000908152600f602052604090206001810154909350348115156106fd57fe5b04915060008211801561071d575082600101543481151561071a57fe5b06155b151561072857600080fd5b5033600160a060020a03166000908152600683016020526040902054825490820190610100900461ffff1681111561075f57600080fd5b600160a060020a033316600090815260068401602052604090205415156107ba576005830180546001810161079483826136aa565b5060009182526020909120018054600160a060020a03191633600160a060020a03161790555b600160a060020a0333908116600090815260068501602052604090819020839055845463ffffffff65010000000000808304821661ffff8816018216810268ffffffff000000000019909316929092178088556009547fef7ad6b4362c80269269b44a1b5a590a701963c3410388f8fe6b804c370597e69590949093879392049091169051938452600160a060020a03909216602084015260408084019190915263ffffffff90911660608301526080909101905180910390a182546005840154630100000090910461ffff1690106108cf57825460ff191660011783556009547f9de4a2b017a3103b4e33b01afb5e9650bfbd1863a32c000c018b9e1b677d216c9060405190815260200160405180910390a15b505050565b60055433600160a060020a039081169116146108ef57600080fd5b600b55565b600c5481565b60055433600160a060020a0390811691161461091557600080fd5b600d805464ff0000000019166401000000001790557f49a6af0e4a957c1ab4a8610c116c88a13d338f78de2b4d9a9c636766768f8f4d60405160405180910390a1565b60055433600160a060020a0390811691161461097357600080fd5b60058054600160a060020a031916600160a060020a0392909216919091179055565b60055433600160a060020a039081169116146109b057600080fd5b600c55565b6109df828260006040518059106109c95750595b90808252806020026020018201604052506109e3565b5050565b60008060008060006109f36113d7565b600160a060020a031633600160a060020a0316141515610a1257600080fd5b60016009546000908152600f602052604090205460ff166003811115610a3457fe5b14610a3e57600080fd5b6009546000908152600f602052604090206003015488908114610a6057600080fd5b888888600081600081518110610a7257fe5b016020015160f860020a900460f860020a02600160f860020a0319167f4c00000000000000000000000000000000000000000000000000000000000000141580610b04575081600181518110610ac457fe5b016020015160f860020a900460f860020a02600160f860020a0319167f500000000000000000000000000000000000000000000000000000000000000014155b80610b4c575081600281518110610b1757fe5b01602001517fff0000000000000000000000000000000000000000000000000000000000000060f860020a9182900482021614155b15610b5657600080fd5b610b69828585610b646114f2565b61159a565b9050801515610b7757600080fd5b6009546000908152600f6020526040902099508b51602014610b9857600080fd5b610ba18c611af8565b8a5490995065010000000000900463ffffffff1689811515610bbf57fe5b06975060009650600095505b60058a0154861015610c8e578960060160008b60050188815481101515610bee57fe5b6000918252602080832090910154600160a060020a03168352820192909252604001902054969096019586881015610c835760058a01805487908110610c3057fe5b60009182526020909120015460048b018054600160a060020a03909216600160a060020a0319909216919091179055895460ff19166002178a55600954610c7690611b07565b610c7e611c37565b610c8e565b600190950194610bcb565b50505050505050505050505050565b610ca633611d40565b565b60055433600160a060020a03908116911614610cc357600080fd5b600554600160a060020a0316ff5b600a5481565b600d5462010000900461ffff1681565b60055433600160a060020a03908116911614610d0257600080fd5b600d805461ffff909216620100000263ffff000019909216919091179055565b60055460009081908190819081908190819033600160a060020a03908116911614610d4c57600080fd5b6009546000908152600f60205260409020600d54909750640100000000900460ff168015610d8957506000875460ff166003811115610d8757fe5b145b80610da357506001875460ff166003811115610da157fe5b145b1515610dae57600080fd5b8654600288015460018901546501000000000090920463ffffffff169750908702039450600093505b6005870154841015610e655760058701805485908110610df357fe5b6000918252602080832090910154600160a060020a031680835260068a01909152604090912054909350915085858302811515610e2c57fe5b600160a060020a0385166000908152600e6020526040902080549290910491820190559050610e5a83611d40565b600190930192610dd7565b865460ff191660031787556009547fa066740e09123a78e37c7f26a904f564b5fe8621558bd3f7a8ed6c2d626fec6e9060405190815260200160405180910390a1610eae611c37565b50505050505050565b60085481565b60055433600160a060020a03908116911614610ed857600080fd5b600755565b600d54640100000000900460ff1681565b61271081565b610efc6136ce565b610f046136ce565b6000610f0e6136ce565b6000856009548111151515610f2257600080fd5b6000878152600f60205260409081902060058101549095509051805910610f465750595b90808252806020026020018201604052509250600091505b6005840154821015610fc7578360060160008560050184815481101515610f8157fe5b6000918252602080832090910154600160a060020a03168352820192909252604001902054838381518110610fb257fe5b60209081029091010152600190910190610f5e565b83600501838180548060200260200160405190810160405280929190818152602001828054801561102157602002820191906000526020600020905b8154600160a060020a03168152600190910190602001808311611003575b505050505091509550955050505050915091565b600160a060020a0381166000908152600e60205260409020545b919050565b60095481565b60008083600954811115151561106f57600080fd5b5050506000918252600f60209081526040808420600160a060020a039390931684526006909201905290205490565b600554600160a060020a031681565b600d5461ffff1681565b600b5481565b600080808060016009546000908152600f602052604090205460ff1660038111156110e457fe5b146110ee57600080fd5b6009546000908152600f60205260409020600201541561110d57600080fd5b6009546000908152600f6020526040908190209450611164908051908101604052600681527f72616e646f6d00000000000000000000000000000000000000000000000000006020820152600a54600b5401611dab565b60028501556001840154845465010000000000900463ffffffff1602925061118b83611f3c565b915081846002015411156111de577ffc3d7a98e03762b8ec339b59b8b734b130d6cd0f5ffaa21fe3ed944c2b205099600954856002015460405191825260208201526040908101905180910390a16111fb565b6111f160006020600a54600b5401611f48565b6003850181905590505b50505050565b60055433600160a060020a0390811691161461121c57600080fd5b600d805464ff00000000191690557f7f4d6aa4949e2b9a4b6f2e8d032e8e289b4ce5fe924db2d9e18e92d2edb955c560405160405180910390a1565b600080600080600080600080600089600954811115151561127857600080fd5b50505060009788525050600f60205250506040909320805460018201546002830154600384015460049094015460ff841698610100850461ffff9081169950630100000086041697506501000000000090940463ffffffff169550919390929091600160a060020a031690565b60055460009033600160a060020a0390811691161461130357600080fd5b5060088054600090915560065461132390600160a060020a031682612230565b151561132f5760088190555b50565b60075481565b600654600160a060020a031681565b60055433600160a060020a0390811691161461136257600080fd5b600a55565b60055433600160a060020a0390811691161461138257600080fd5b60068054600160a060020a031916600160a060020a0392909216919091179055565b60055433600160a060020a039081169116146113bf57600080fd5b600d805461ffff191661ffff92909216919091179055565b60008054600160a060020a03161580611402575060005461140090600160a060020a031661225b565b155b1561141357611411600061225f565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561145c57600080fd5b6102c65a03f1151561146d57600080fd5b505050604051805160018054600160a060020a031916600160a060020a03928316179081905516905063c281d19e6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156114d257600080fd5b6102c65a03f115156114e357600080fd5b50505060405180519150505b90565b6114fa6136ce565b60028054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156115905780601f1061156557610100808354040283529160200191611590565b820191906000526020600020905b81548152906001019060200180831161157357829003601f168201915b5050505050905090565b60008060006115a76136ce565b6115af6136ce565b6115b76136ce565b6115bf6136ce565b6000806115ca6136ce565b8d6045815181106115d757fe5b016020015160f860020a90819004810204606601975060206040518059106115fc5750595b9080825280602002602001820160405250965061161e8e8960208a6000612585565b5060028b8e6000604051602001526040518083805190602001908083835b6020831061165b5780518252601f19909201916020918201910161163c565b6001836020036101000a0380198251168184511617909252505050919091019283525050602090810191506040518083038160008661646e5a03f115156116a157600080fd5b505060405180519050604051908152602001604051908190039020876040518082805190602001908083835b602083106116ec5780518252601f1990920191602091820191016116cd565b6001836020036101000a03801982511681845116179092525050509190910192506040915050519081900390201498508861172a5760009950611ae7565b8d604a89018151811061173957fe5b016020015160f860020a900460f860020a0260f860020a90046002016040518059106117625750595b908082528060200260200182016040525095506117878e896049018851896000612585565b506118176002876000604051602001526040518082805190602001908083835b602083106117c65780518252601f1990920191602091820191016117a7565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f1151561180857600080fd5b5050604051805190508d6125da565b98508815156118295760009950611ae7565b60296040518059106118385750595b9080825280602002602001820160405250945061185d8e896020016029886000612585565b506040805180591061186c5750595b908082528060200260200182016040525093508551886020016029010160410192506118a08e604085036040876000612585565b506002846000604051602001526040518082805190602001908083835b602083106118dc5780518252601f1990920191602091820191016118bd565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f1151561191e57600080fd5b505060405180519050915084826040518083805190602001908083835b6020831061195a5780518252601f19909201916020918201910161193b565b6001836020036101000a0380198251168184511617909252505050919091019283525050602001905060405190819003902060008e81526003602052604090205414156119b55760008d8152600360205260408120556119be565b60009950611ae7565b60496040518059106119cd5750595b908082528060200260200182016040525090506119ef8e896049846000612585565b50611a806002826000604051602001526040518082805190602001908083835b60208310611a2e5780518252601f199092019160209182019101611a0f565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f11515611a7057600080fd5b5050604051805190508786612655565b9850881515611a925760009950611ae7565b60008281526004602052604090205460ff161515611ad257611ab48e84612864565b6000838152600460205260409020805460ff19169115159190911790555b60008281526004602052604090205460ff1699505b505050505050505050949350505050565b60008060208301519392505050565b6000818152600f602052604081206001810154815491926501000000000090920463ffffffff160290808080611b3c85611f3c565b6002870154600880549183039182019055600488018054600160a060020a039081166000908152600e602090815260408083208054888e039081019091558d549554909416835260068d01909152902054939750955090935065010000000000900463ffffffff169061271002811515611bb257fe5b60095460048901549290910492507fbbd9c7f38f6035b51358da7aadd357d34507e70c247a1de2b9b3a7949955fa6491600160a060020a03168584604051938452600160a060020a03909216602084015260408084019190915260608301919091526080909101905180910390a16004860154610eae90600160a060020a0316611d40565b6009805460010190819055611c4b90612c4c565b6009546000908152600f6020526040902081518154829060ff19166001836003811115611c7457fe5b02179055506020820151815461ffff919091166101000262ffff00199091161781556040820151815461ffff9190911663010000000264ffff000000199091161781556060820151815463ffffffff91909116650100000000000268ffffffff0000000000199091161781556080820151816001015560a0820151816002015560c0820151600382015560e0820151600482018054600160a060020a031916600160a060020a0392909216919091179055610100820151816005019080516108cf9291602001906136e0565b600160a060020a0381166000908152600e6020526040812054908111611d6557600080fd5b600160a060020a0382166000908152600e6020526040812055611d888282612230565b15156109df57600160a060020a03919091166000908152600e6020526040902055565b60008054600160a060020a03161580611dd65750600054611dd490600160a060020a031661225b565b155b15611de757611de5600061225f565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515611e3057600080fd5b6102c65a03f11515611e4157600080fd5b505050604051805160018054600160a060020a031916600160a060020a039283161790819055169050632ef3accc84846000604051602001526040518363ffffffff1660e060020a0281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b83811015611ecf578082015183820152602001611eb7565b50505050905090810190601f168015611efc5780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b1515611f1b57600080fd5b6102c65a03f11515611f2c57600080fd5b5050506040518051949350505050565b60075461271091020490565b6000611f526136ce565b611f5a6136ce565b611f626136ce565b6000611f6c613747565b6000881580611f7b5750602089115b15611f8557600080fd5b6001604051805910611f945750595b908082528060200260200182016040525095508860f860020a0286600081518110611fbb57fe5b906020010190600160f860020a031916908160001a9053506020604051805910611fe25750595b9080825280602002602001820160405250945060206040518059106120045750595b9080825280602002602001820160405250935061201f612d46565b92506020855242411860014303401860208601526020845282602085015260606040519081016040528086815260200187815260200185815250915061209a8a60408051908101604052600681527f72616e646f6d00000000000000000000000000000000000000000000000000006020820152848b612e41565b90506122238178010000000000000000000000000000000000000000000000008c026020850151600286516000604051602001526040518082805190602001908083835b602083106120fd5780518252601f1990920191602091820191016120de565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f1151561213f57600080fd5b505060405180519050604087015160405177ffffffffffffffffffffffffffffffffffffffffffffffff19851681526008810184805190602001908083835b6020831061219d5780518252601f19909201916020918201910161217e565b6001836020036101000a038019825116818451161790925250505091909101848152602001905082805190602001908083835b602083106121ef5780518252601f1990920191602091820191016121d0565b6001836020036101000a03801982511681845116179092525050509190910195506040945050505050518091039020612fbc565b9998505050505050505050565b600082600160a060020a0316600a5483604051600060405180830381858888f1979650505050505050565b3b90565b60008061227f731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed61225b565b11156122ef5760008054600160a060020a031916731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed1790556122e760408051908101604052600b81527f6574685f6d61696e6e65740000000000000000000000000000000000000000006020820152612fce565b50600161104f565b600061230e73c03a2615d5efaf5f49f60b7bb6583eaec212fdf161225b565b11156123765760008054600160a060020a03191673c03a2615d5efaf5f49f60b7bb6583eaec212fdf11790556122e760408051908101604052600c81527f6574685f726f707374656e3300000000000000000000000000000000000000006020820152612fce565b600061239573b7a07bcf2ba2f2703b24c0691b5278999c59ac7e61225b565b11156123fd5760008054600160a060020a03191673b7a07bcf2ba2f2703b24c0691b5278999c59ac7e1790556122e760408051908101604052600981527f6574685f6b6f76616e00000000000000000000000000000000000000000000006020820152612fce565b600061241c73146500cfd35b22e4a392fe0adc06de1a1368ed4861225b565b11156124845760008054600160a060020a03191673146500cfd35b22e4a392fe0adc06de1a1368ed481790556122e760408051908101604052600b81527f6574685f72696e6b6562790000000000000000000000000000000000000000006020820152612fce565b60006124a3736f485c8bf6fc43ea212e93bbf8ce046c7f1cb47561225b565b11156124d7575060008054600160a060020a031916736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475179055600161104f565b60006124f67320e12a1f859b3feae5fb2a0a32c18f5a65555bbf61225b565b111561252a575060008054600160a060020a0319167320e12a1f859b3feae5fb2a0a32c18f5a65555bbf179055600161104f565b60006125497351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa61225b565b111561257d575060008054600160a060020a0319167351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa179055600161104f565b506000919050565b61258d6136ce565b83820160008082865110156125a157600080fd5b505060208087019084015b8688602001018210156125cd578189015186820152602091820191016125ac565b5093979650505050505050565b60006001815b83518160ff16101561264d57838160ff16815181106125fb57fe5b016020015160f860020a900460f860020a02600160f860020a031916858260ff1660208110151561262857fe5b1a60f860020a02600160f860020a03191614151561264557600091505b6001016125e0565b509392505050565b60008060008060006126656136ce565b600061266f6136ce565b602060405180591061267e5750595b81815260209182028101820160405293508a60038151811061269c57fe5b016020015160f860020a900460f860020a0260f860020a90040360040191506126ca8a836020866000612585565b925060206040518059106126db5750595b9080825280602002602001820160405250905060228201915061272f8a60208c600186038151811061270957fe5b016020015160f860020a900460f860020a0260f860020a90040384016020846000612585565b9050602083015194506020810151935061274c8b601b8787612fe1565b9097509550600160a060020a038616896040518082805190602001908083835b6020831061278b5780518252601f19909201916020918201910161276c565b6001836020036101000a0380198251168184511617909252505050919091019250604091505051908190039020600160a060020a031614156127d05760019750612856565b6127dd8b601c8787612fe1565b9097509550600160a060020a038616896040518082805190602001908083835b6020831061281c5780518252601f1990920191602091820191016127fd565b6001836020036101000a0380198251168184511617909252505050919091019250604091505051908190039020600160a060020a03161497505b505050505050509392505050565b60008061286f6136ce565b6128776136ce565b61287f6136ce565b6128876136ce565b61288f6136ce565b6128976136ce565b61289f6136ce565b8a8a600101815181106128ae57fe5b016020015160f860020a900460f860020a0260f860020a90046002016040518059106128d75750595b908082528060200260200182016040525096506128f98b8b89518a6000612585565b50604080518059106129085750595b9080825280602002602001820160405250955061292b8b60046040896000612585565b50606260405180591061293b5750595b9080825280602002602001820160405250945060f860020a8560008151811061296057fe5b906020010190600160f860020a031916908160001a90535061298a8b60418c036041886001612585565b506040805190810160405280602081526020017ffd94fa71bc0ba10d39d464d0d8f465efeef0a2764e3887fcc9df41ded20f505c81525093506129d38460006020886042612585565b50612a646002866000604051602001526040518082805190602001908083835b60208310612a125780518252601f1990920191602091820191016129f3565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f11515612a5457600080fd5b5050604051805190508888612655565b9750871515612a765760009850612c3e565b606060405190810160405280604081526020017f7fb956469c5c9b89840d55b43537e66a98dd4811ea0a27224272c2e5622911e881526020017f537a2f8e86a46baec82864e98dd01e9ccc2f8bc5dfc9cbe5a91a290498dd96e481525092506042604051805910612ae45750595b908082528060200260200182016040525091507ffe0000000000000000000000000000000000000000000000000000000000000082600081518110612b2557fe5b906020010190600160f860020a031916908160001a905350612b4d8b60036041856001612585565b508a604581518110612b5b57fe5b016020015160f860020a900460f860020a0260f860020a9004600201604051805910612b845750595b90808252806020026020018201604052509050612ba78b60448351846000612585565b50612c386002836000604051602001526040518082805190602001908083835b60208310612be65780518252601f199092019160209182019101612bc7565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f11515612c2857600080fd5b5050604051805190508285612655565b97508798505b505050505050505092915050565b612c54613774565b612c5c613774565b61012060405190810160409081526000808352600d5461ffff808216602086015262010000909104168284015260608301819052600c54608084015260a0830181905260c0830181905260e0830181905261010083019151805910612cbe5750595b9080825280602002602001820160405250905290507f630f0008129e99e574341ce8ae845ba14b7b10747707ba081db926e739a7197983602083015183604001518460800151600754604051808681526020018561ffff1681526020018461ffff1681526020018381526020018281526020019550505050505060405180910390a192915050565b60008054600160a060020a03161580612d715750600054612d6f90600160a060020a031661225b565b155b15612d8257612d80600061225f565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515612dcb57600080fd5b6102c65a03f11515612ddc57600080fd5b505050604051805160018054600160a060020a031916600160a060020a03928316179081905516905063abaa5f3e6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156114d257600080fd5b6000612e4b6136ce565b600054600160a060020a03161580612e755750600054612e7390600160a060020a031661225b565b155b15612e8657612e84600061225f565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515612ecf57600080fd5b6102c65a03f11515612ee057600080fd5b505050604051805160018054600160a060020a031916600160a060020a0392909216919091179055506003604051805910612f185750595b908082528060200260200182016040528015612f4e57816020015b612f3b6136ce565b815260200190600190039081612f335790505b509050835181600081518110612f6057fe5b60209081029091010152836001602002015181600181518110612f7f57fe5b6020908102919091010152604084015181600281518110612f9c57fe5b60209081029091010152612fb286868386613021565b9695505050505050565b60009182526003602052604090912055565b60028180516109df9291602001906137c7565b60008060008060405188815287602082015286604082015285606082015260208160808360006001610bb8f1925080519299929850919650505050505050565b60008061302c6136ce565b600054600160a060020a03161580613056575060005461305490600160a060020a031661225b565b155b1561306757613065600061225f565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156130b057600080fd5b6102c65a03f115156130c157600080fd5b505050604051805160018054600160a060020a031916600160a060020a039283161790819055169050632ef3accc87866000604051602001526040518363ffffffff1660e060020a0281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b8381101561314f578082015183820152602001613137565b50505050905090810190601f16801561317c5780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b151561319b57600080fd5b6102c65a03f115156131ac57600080fd5b5050506040518051925050670de0b6b3a76400003a8502018211156131d4576000925061332d565b6131dd85613337565b600154909150600160a060020a031663c55c1cb683898985896000604051602001526040518663ffffffff1660e060020a028152600401808581526020018060200180602001848152602001838103835286818151815260200191508051906020019080838360005b8381101561325e578082015183820152602001613246565b50505050905090810190601f16801561328b5780820380516001836020036101000a031916815260200191505b50838103825285818151815260200191508051906020019080838360005b838110156132c15780820151838201526020016132a9565b50505050905090810190601f1680156132ee5780820380516001836020036101000a031916815260200191505b5096505050505050506020604051808303818588803b151561330f57600080fd5b6125ee5a03f1151561332057600080fd5b5050505060405180519350505b5050949350505050565b61333f6136ce565b60008061334a6136ce565b60008060006133576136ce565b60008060008b51995060009850896040518059106133725750595b9080825280602002602001820160405280156133a857816020015b6133956136ce565b81526020019060019003908161338d5790505b509750600096505b89871015613435578b87815181106133c457fe5b906020019060200201518888815181106133da57fe5b60209081029091010152601760018989815181106133f457fe5b90602001906020020151510381151561340957fe5b0488888151811061341657fe5b90602001906020020151510198909801600301976001909601956133b0565b600198909801976000955060808a019450886040518059106134545750595b908082528060200260200182016040525093505b6001869011156134ba5760f860020a8502866001811061348457fe5b1a60f860020a0284878151811061349757fe5b906020010190600160f860020a031916908160001a905350600190950194613468565b600096505b8987101561369a577f5f000000000000000000000000000000000000000000000000000000000000008487815181106134f457fe5b906020010190600160f860020a031916908160001a905350600190950194600092505b87878151811061352357fe5b9060200190602002015151831015613646576017830615156135df5760188389898151811061354e57fe5b906020019060200201515103101561357e578288888151811061356d57fe5b906020019060200201515103613581565b60175b60400191508590505b808603600111156135df5760f860020a8202818703600181106135a957fe5b1a60f860020a028487815181106135bc57fe5b906020010190600160f860020a031916908160001a90535060019095019461358a565b8787815181106135eb57fe5b90602001906020020151838151811061360057fe5b016020015160f860020a900460f860020a0284878151811061361e57fe5b906020010190600160f860020a031916908160001a9053506001958601959290920191613517565b7fff0000000000000000000000000000000000000000000000000000000000000084878151811061367357fe5b906020010190600160f860020a031916908160001a905350600196870196909501946134bf565b50919a9950505050505050505050565b8154818355818115116108cf576000838152602090206108cf91810190830161383d565b60206040519081016040526000815290565b828054828255906000526020600020908101928215613737579160200282015b828111156137375782518254600160a060020a031916600160a060020a039190911617825560209290920191600190910190613700565b50613743929150613857565b5090565b60606040519081016040526003815b61375e6136ce565b8152602001906001900390816137565790505090565b610120604051908101604052806000815260006020820181905260408201819052606082018190526080820181905260a0820181905260c0820181905260e0820152610100016137c26136ce565b905290565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061380857805160ff1916838001178555613835565b82800160010185558215613835579182015b8281111561383557825182559160200191906001019061381a565b506137439291505b6114ef91905b808211156137435760008155600101613843565b6114ef91905b80821115613743578054600160a060020a031916815560010161385d565b600054600160a060020a031615806138a557506000546138a390600160a060020a031661225b565b155b156138b6576138b4600061225f565b505b60008054600160a060020a0316906338cc483190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156138ff57600080fd5b6102c65a03f1151561391057600080fd5b505050604051805160018054600160a060020a031916600160a060020a03928316179081905516905063688dcfd78260405160e060020a63ffffffff84160281527fff000000000000000000000000000000000000000000000000000000000000009091166004820152602401600060405180830381600087803b151561399657600080fd5b6102c65a03f115156111fb57600080fd00a165627a7a72305820cbea003992ec54f02190e6858eb94552d3293146191c48355c25eb75b9285a88002900000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000000000000000000009c40000000000000000000000000000000000000000000000000000000000055730000000000000000000000000000000000000000000000000011c37937e08000000000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000005

    Constructor Arguments (ABI-encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000000000000000000009c40000000000000000000000000000000000000000000000000000000000055730000000000000000000000000000000000000000000000000011c37937e08000000000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000005

-----Decoded View---------------
Found 6 constructor arguments :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c8
Arg [1] : 00000000000000000000000000000000000000000000000000000000000009c4
Arg [2] : 0000000000000000000000000000000000000000000000000000000000055730
Arg [3] : 000000000000000000000000000000000000000000000000011c37937e080000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000005


   Swarm Source:
bzzr://cbea003992ec54f02190e6858eb94552d3293146191c48355c25eb75b9285a88
View All
Block Age txn Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward