ETH Price: $3,326.14 (+0.53%)
Gas: 3.3 Gwei
 

Overview

ETH Balance

2.86023003857610809 ETH

Eth Value

$9,513.54 (@ $3,326.14/ETH)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Create Room72364082019-02-18 14:17:532151 days ago1550499473IN
0xafd128d4...62cB9db1C
0.1 ETH0.0018789910
Create Room72364062019-02-18 14:17:102151 days ago1550499430IN
0xafd128d4...62cB9db1C
0.1 ETH0.0018789910
Create Room72363922019-02-18 14:12:092151 days ago1550499129IN
0xafd128d4...62cB9db1C
0.1 ETH0.0035728416
__callback72361962019-02-18 13:10:062151 days ago1550495406IN
0xafd128d4...62cB9db1C
0 ETH0.0123462220
Play72361942019-02-18 13:09:262151 days ago1550495366IN
0xafd128d4...62cB9db1C
0 ETH0.0021174921
Set Jackpot Max ...72361052019-02-18 12:39:182151 days ago1550493558IN
0xafd128d4...62cB9db1C
0 ETH0.0004089915
__callback72360932019-02-18 12:34:472151 days ago1550493287IN
0xafd128d4...62cB9db1C
0 ETH0.000659820
__callback72360932019-02-18 12:34:472151 days ago1550493287IN
0xafd128d4...62cB9db1C
0 ETH0.0012255420
Play72360912019-02-18 12:33:552151 days ago1550493235IN
0xafd128d4...62cB9db1C
0 ETH0.0016435716.3
Play72360902019-02-18 12:33:532151 days ago1550493233IN
0xafd128d4...62cB9db1C
0 ETH0.0020166620
Set Oraclize Gas...72356682019-02-18 10:11:482151 days ago1550484708IN
0xafd128d4...62cB9db1C
0 ETH0.000247339
Set Jackpot Max ...72277592019-02-16 12:55:242153 days ago1550321724IN
0xafd128d4...62cB9db1C
0 ETH0.000136655
__callback72275792019-02-16 11:59:152153 days ago1550318355IN
0xafd128d4...62cB9db1C
0 ETH0.00720
Play72275762019-02-16 11:58:202153 days ago1550318300IN
0xafd128d4...62cB9db1C
0 ETH0.0029241529
Set Oraclize Gas...72275662019-02-16 11:53:522153 days ago1550318032IN
0xafd128d4...62cB9db1C
0 ETH0.000102253
__callback72275612019-02-16 11:51:232153 days ago1550317883IN
0xafd128d4...62cB9db1C
0 ETH0.00072
Play72275402019-02-16 11:43:162153 days ago1550317396IN
0xafd128d4...62cB9db1C
0 ETH0.0029241529
__callback72273282019-02-16 10:35:352153 days ago1550313335IN
0xafd128d4...62cB9db1C
0 ETH0.00072
Join Room72272312019-02-16 9:59:592153 days ago1550311199IN
0xafd128d4...62cB9db1C
0.1 ETH0.0017469910
Create Room72271282019-02-16 9:22:402153 days ago1550308960IN
0xafd128d4...62cB9db1C
0.1 ETH0.0018789910
Create Room72270922019-02-16 9:06:572153 days ago1550308017IN
0xafd128d4...62cB9db1C
0.1 ETH0.0018789910
Create Room72270902019-02-16 9:06:092153 days ago1550307969IN
0xafd128d4...62cB9db1C
0.1 ETH0.0018789910
Create Room72270852019-02-16 9:05:182153 days ago1550307918IN
0xafd128d4...62cB9db1C
0.1 ETH0.0018789910
Set Oraclize Gas...72268752019-02-16 7:50:532153 days ago1550303453IN
0xafd128d4...62cB9db1C
0 ETH0.000192377
Set Oraclize Gas...72268732019-02-16 7:48:322153 days ago1550303312IN
0xafd128d4...62cB9db1C
0 ETH0.000237257
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
72361962019-02-18 13:10:062151 days ago1550495406
0xafd128d4...62cB9db1C
0.127 ETH
72361962019-02-18 13:10:062151 days ago1550495406
0xafd128d4...62cB9db1C
0.17 ETH
72361942019-02-18 13:09:262151 days ago1550495366
0xafd128d4...62cB9db1C
0.0302227 ETH
72360932019-02-18 12:34:472151 days ago1550493287
0xafd128d4...62cB9db1C
0.51 ETH
72360912019-02-18 12:33:552151 days ago1550493235
0xafd128d4...62cB9db1C
0.0302227 ETH
72360902019-02-18 12:33:532151 days ago1550493233
0xafd128d4...62cB9db1C
0.0302227 ETH
72275792019-02-16 11:59:152153 days ago1550318355
0xafd128d4...62cB9db1C
0.125 ETH
72275792019-02-16 11:59:152153 days ago1550318355
0xafd128d4...62cB9db1C
0.51 ETH
72275762019-02-16 11:58:202153 days ago1550318300
0xafd128d4...62cB9db1C
0.00727754 ETH
72275612019-02-16 11:51:232153 days ago1550317883
0xafd128d4...62cB9db1C
0.125 ETH
72275612019-02-16 11:51:232153 days ago1550317883
0xafd128d4...62cB9db1C
0.51 ETH
72275402019-02-16 11:43:162153 days ago1550317396
0xafd128d4...62cB9db1C
0.00027754 ETH
72273282019-02-16 10:35:352153 days ago1550313335
0xafd128d4...62cB9db1C
0.121 ETH
72273282019-02-16 10:35:352153 days ago1550313335
0xafd128d4...62cB9db1C
0.17 ETH
72272312019-02-16 9:59:592153 days ago1550311199
0xafd128d4...62cB9db1C
0.00027754 ETH
72267782019-02-16 7:16:342153 days ago1550301394
0xafd128d4...62cB9db1C
0.125 ETH
72267782019-02-16 7:16:342153 days ago1550301394
0xafd128d4...62cB9db1C
0.51 ETH
72267772019-02-16 7:16:212153 days ago1550301381
0xafd128d4...62cB9db1C
0.00527754 ETH
72250642019-02-15 21:21:212154 days ago1550265681
0xafd128d4...62cB9db1C
0.34 ETH
72250622019-02-15 21:20:202154 days ago1550265620
0xafd128d4...62cB9db1C
0.00527754 ETH
72250462019-02-15 21:14:492154 days ago1550265289
0xafd128d4...62cB9db1C
0.51 ETH
72250452019-02-15 21:14:262154 days ago1550265266
0xafd128d4...62cB9db1C
0.00527754 ETH
72250142019-02-15 21:04:332154 days ago1550264673
0xafd128d4...62cB9db1C
0.17 ETH
72250122019-02-15 21:04:052154 days ago1550264645
0xafd128d4...62cB9db1C
0.00527754 ETH
72250102019-02-15 21:03:062154 days ago1550264586
0xafd128d4...62cB9db1C
0.68 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CryptoBets

Compiler Version
v0.4.25+commit.59dbf8f1

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2019-02-12
*/

/*! coin_lottery.sol | (c) 2019 Develop by BelovITLab LLC (smartcontract.ru), author @stupidlovejoy | License: MIT */

pragma solidity 0.4.25;

// <ORACLIZE_API>
    // Release targetted at solc 0.4.25 to silence compiler warning/error messages, compatible down to 0.4.22
    /*
    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.
    */

    // This api is currently targeted at 0.4.22 to 0.4.25 (stable builds), please import oraclizeAPI_pre0.4.sol or oraclizeAPI_0.4 where necessary

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

    contract OraclizeAddrResolverI {
        function getAddress() public returns (address _addr);
    }

    /*
    Begin solidity-cborutils

    https://github.com/smartcontractkit/solidity-cborutils

    MIT License

    Copyright (c) 2018 SmartContract ChainLink, 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.
    */

    library Buffer {
        struct buffer {
            bytes buf;
            uint capacity;
        }

        function init(buffer memory buf, uint _capacity) internal pure {
            uint capacity = _capacity;
            if(capacity % 32 != 0) capacity += 32 - (capacity % 32);
            // Allocate space for the buffer data
            buf.capacity = capacity;
            assembly {
                let ptr := mload(0x40)
                mstore(buf, ptr)
                mstore(ptr, 0)
                mstore(0x40, add(ptr, capacity))
            }
        }

        function resize(buffer memory buf, uint capacity) private pure {
            bytes memory oldbuf = buf.buf;
            init(buf, capacity);
            append(buf, oldbuf);
        }

        function max(uint a, uint b) private pure returns(uint) {
            if(a > b) {
                return a;
            }
            return b;
        }

        /**
        * @dev Appends a byte array to the end of the buffer. Resizes if doing so
        *      would exceed the capacity of the buffer.
        * @param buf The buffer to append to.
        * @param data The data to append.
        * @return The original buffer.
        */
        function append(buffer memory buf, bytes data) internal pure returns(buffer memory) {
            if(data.length + buf.buf.length > buf.capacity) {
                resize(buf, max(buf.capacity, data.length) * 2);
            }

            uint dest;
            uint src;
            uint len = data.length;
            assembly {
                // Memory address of the buffer data
                let bufptr := mload(buf)
                // Length of existing buffer data
                let buflen := mload(bufptr)
                // Start address = buffer address + buffer length + sizeof(buffer length)
                dest := add(add(bufptr, buflen), 32)
                // Update buffer length
                mstore(bufptr, add(buflen, mload(data)))
                src := add(data, 32)
            }

            // Copy word-length chunks while possible
            for(; len >= 32; len -= 32) {
                assembly {
                    mstore(dest, mload(src))
                }
                dest += 32;
                src += 32;
            }

            // Copy remaining bytes
            uint mask = 256 ** (32 - len) - 1;
            assembly {
                let srcpart := and(mload(src), not(mask))
                let destpart := and(mload(dest), mask)
                mstore(dest, or(destpart, srcpart))
            }

            return buf;
        }

        /**
        * @dev Appends a byte to the end of the buffer. Resizes if doing so would
        * exceed the capacity of the buffer.
        * @param buf The buffer to append to.
        * @param data The data to append.
        * @return The original buffer.
        */
        function append(buffer memory buf, uint8 data) internal pure {
            if(buf.buf.length + 1 > buf.capacity) {
                resize(buf, buf.capacity * 2);
            }

            assembly {
                // Memory address of the buffer data
                let bufptr := mload(buf)
                // Length of existing buffer data
                let buflen := mload(bufptr)
                // Address = buffer address + buffer length + sizeof(buffer length)
                let dest := add(add(bufptr, buflen), 32)
                mstore8(dest, data)
                // Update buffer length
                mstore(bufptr, add(buflen, 1))
            }
        }

        /**
        * @dev Appends a byte to the end of the buffer. Resizes if doing so would
        * exceed the capacity of the buffer.
        * @param buf The buffer to append to.
        * @param data The data to append.
        * @return The original buffer.
        */
        function appendInt(buffer memory buf, uint data, uint len) internal pure returns(buffer memory) {
            if(len + buf.buf.length > buf.capacity) {
                resize(buf, max(buf.capacity, len) * 2);
            }

            uint mask = 256 ** len - 1;
            assembly {
                // Memory address of the buffer data
                let bufptr := mload(buf)
                // Length of existing buffer data
                let buflen := mload(bufptr)
                // Address = buffer address + buffer length + sizeof(buffer length) + len
                let dest := add(add(bufptr, buflen), len)
                mstore(dest, or(and(mload(dest), not(mask)), data))
                // Update buffer length
                mstore(bufptr, add(buflen, len))
            }
            return buf;
        }
    }

    library CBOR {
        using Buffer for Buffer.buffer;

        uint8 private constant MAJOR_TYPE_INT = 0;
        uint8 private constant MAJOR_TYPE_NEGATIVE_INT = 1;
        uint8 private constant MAJOR_TYPE_BYTES = 2;
        uint8 private constant MAJOR_TYPE_STRING = 3;
        uint8 private constant MAJOR_TYPE_ARRAY = 4;
        uint8 private constant MAJOR_TYPE_MAP = 5;
        uint8 private constant MAJOR_TYPE_CONTENT_FREE = 7;

        function encodeType(Buffer.buffer memory buf, uint8 major, uint value) private pure {
            if(value <= 23) {
                buf.append(uint8((major << 5) | value));
            } else if(value <= 0xFF) {
                buf.append(uint8((major << 5) | 24));
                buf.appendInt(value, 1);
            } else if(value <= 0xFFFF) {
                buf.append(uint8((major << 5) | 25));
                buf.appendInt(value, 2);
            } else if(value <= 0xFFFFFFFF) {
                buf.append(uint8((major << 5) | 26));
                buf.appendInt(value, 4);
            } else if(value <= 0xFFFFFFFFFFFFFFFF) {
                buf.append(uint8((major << 5) | 27));
                buf.appendInt(value, 8);
            }
        }

        function encodeIndefiniteLengthType(Buffer.buffer memory buf, uint8 major) private pure {
            buf.append(uint8((major << 5) | 31));
        }

        function encodeUInt(Buffer.buffer memory buf, uint value) internal pure {
            encodeType(buf, MAJOR_TYPE_INT, value);
        }

        function encodeInt(Buffer.buffer memory buf, int value) internal pure {
            if(value >= 0) {
                encodeType(buf, MAJOR_TYPE_INT, uint(value));
            } else {
                encodeType(buf, MAJOR_TYPE_NEGATIVE_INT, uint(-1 - value));
            }
        }

        function encodeBytes(Buffer.buffer memory buf, bytes value) internal pure {
            encodeType(buf, MAJOR_TYPE_BYTES, value.length);
            buf.append(value);
        }

        function encodeString(Buffer.buffer memory buf, string value) internal pure {
            encodeType(buf, MAJOR_TYPE_STRING, bytes(value).length);
            buf.append(bytes(value));
        }

        function startArray(Buffer.buffer memory buf) internal pure {
            encodeIndefiniteLengthType(buf, MAJOR_TYPE_ARRAY);
        }

        function startMap(Buffer.buffer memory buf) internal pure {
            encodeIndefiniteLengthType(buf, MAJOR_TYPE_MAP);
        }

        function endSequence(Buffer.buffer memory buf) internal pure {
            encodeIndefiniteLengthType(buf, MAJOR_TYPE_CONTENT_FREE);
        }
    }

    /*
    End solidity-cborutils
    */

    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_Ledger = 0x30;
        byte constant proofType_Android = 0x40;
        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);

            if(address(oraclize) != OAR.getAddress())
                oraclize = OraclizeI(OAR.getAddress());

            _;
        }
        modifier coupon(string code){
            oraclize = OraclizeI(OAR.getAddress());
            _;
        }

        function oraclize_setNetwork(uint8 networkID) internal returns(bool){
        return oraclize_setNetwork();
        networkID; // silence the warning and remain backwards compatible
        }
        function oraclize_setNetwork() 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) public {
            __callback(myid, result, new bytes(0));
        }
        function __callback(bytes32 myid, string result, bytes proof) public {
        return;
        // Following should never be reached with a preceding return, however
        // this is just a placeholder function, ideally meant to be defined in
        // child contract when proofs are used
        myid; result; proof; // Silence compiler warnings
        oraclize = OraclizeI(0); // Additional compiler silence about making function pure/view. 
        }

        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_randomDS_getSessionPubKeyHash() oraclizeAPI internal returns (bytes32){
            return oraclize.randomDS_getSessionPubKeyHash();
        }

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

        function parseAddr(string _a) internal pure 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 pure 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 pure 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 pure 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 pure returns (string) {
            return strConcat(_a, _b, _c, _d, "");
        }

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

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

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

        // parseInt(parseFloat*10^_b)
        function parseInt(string _a, uint _b) internal pure 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 pure 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);
        }

        using CBOR for Buffer.buffer;
        function stra2cbor(string[] arr) internal pure returns (bytes) {
            safeMemoryCleaner();
            Buffer.buffer memory buf;
            Buffer.init(buf, 1024);
            buf.startArray();
            for (uint i = 0; i < arr.length; i++) {
                buf.encodeString(arr[i]);
            }
            buf.endSequence();
            return buf.buf;
        }

        function ba2cbor(bytes[] arr) internal pure returns (bytes) {
            safeMemoryCleaner();
            Buffer.buffer memory buf;
            Buffer.init(buf, 1024);
            buf.startArray();
            for (uint i = 0; i < arr.length; i++) {
                buf.encodeBytes(arr[i]);
            }
            buf.endSequence();
            return buf.buf;
        }

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

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

        function oraclize_newRandomDSQuery(uint _delay, uint _nbytes, uint _customGasLimit) internal returns (bytes32){
            require((_nbytes > 0) && (_nbytes <= 32));
            // Convert from seconds to ledger timer ticks
            _delay *= 10;
            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)
                // the following variables can be relaxed
                // check relaxed random contract under ethereum-examples repo
                // for an idea on how to override and replace comit hash vars
                mstore(add(unonce, 0x20), xor(blockhash(sub(number, 1)), xor(coinbase, timestamp)))
                mstore(sessionKeyHash, 0x20)
                mstore(add(sessionKeyHash, 0x20), sessionKeyHash_bytes32)
            }
            bytes memory delay = new bytes(32);
            assembly {
                mstore(add(delay, 0x20), _delay)
            }

            bytes memory delay_bytes8 = new bytes(8);
            copyBytes(delay, 24, 8, delay_bytes8, 0);

            bytes[4] memory args = [unonce, nbytes, sessionKeyHash, delay];
            bytes32 queryId = oraclize_query("random", args, _customGasLimit);

            bytes memory delay_bytes8_left = new bytes(8);

            assembly {
                let x := mload(add(delay_bytes8, 0x20))
                mstore8(add(delay_bytes8_left, 0x27), div(x, 0x100000000000000000000000000000000000000000000000000000000000000))
                mstore8(add(delay_bytes8_left, 0x26), div(x, 0x1000000000000000000000000000000000000000000000000000000000000))
                mstore8(add(delay_bytes8_left, 0x25), div(x, 0x10000000000000000000000000000000000000000000000000000000000))
                mstore8(add(delay_bytes8_left, 0x24), div(x, 0x100000000000000000000000000000000000000000000000000000000))
                mstore8(add(delay_bytes8_left, 0x23), div(x, 0x1000000000000000000000000000000000000000000000000000000))
                mstore8(add(delay_bytes8_left, 0x22), div(x, 0x10000000000000000000000000000000000000000000000000000))
                mstore8(add(delay_bytes8_left, 0x21), div(x, 0x100000000000000000000000000000000000000000000000000))
                mstore8(add(delay_bytes8_left, 0x20), div(x, 0x1000000000000000000000000000000000000000000000000))

            }

            oraclize_randomDS_setCommitment(queryId, keccak256(abi.encodePacked(delay_bytes8_left, 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(keccak256(pubkey)) == signer) return true;
            else {
                (sigok, signer) = safer_ecrecover(tosignh, 28, sigr, sigs);
                return (address(keccak256(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] = byte(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)
            require((_proof[0] == "L") && (_proof[1] == "P") && (_proof[2] == 1));

            bool proofVerified = oraclize_randomDS_proofVerify__main(_proof, _queryId, bytes(_result), oraclize_getNetworkName());
            require(proofVerified);

            _;
        }

        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, uint n_random_bytes) internal pure returns (bool){
            bool match_ = true;

            require(prefix.length == n_random_bytes);

            for (uint256 i=0; i< n_random_bytes; 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){

            // 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);
            if (!(keccak256(keyhash) == keccak256(abi.encodePacked(sha256(abi.encodePacked(context_name, queryId)))))) 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)
            if (!matchBytes32Prefix(sha256(sig1), result, uint(proof[ledgerProofLength+32+8]))) return false;

            // Step 4: commitment match verification, keccak256(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] == keccak256(abi.encodePacked(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);
            if (!verifySig(sha256(tosign1), sig1, sessionPubkey)) 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 pure returns (bytes) {
            uint minLength = length + toOffset;

            // Buffer too small
            require(to.length >= minLength); // 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);
        }

        function safeMemoryCleaner() internal pure {
            assembly {
                let fmem := mload(0x40)
                codecopy(fmem, codesize, sub(msize, fmem))
            }
        }

    }
// </ORACLIZE_API>

contract Ownable {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    constructor() internal {
        _owner = msg.sender;

        emit OwnershipTransferred(address(0), _owner);
    }

    function owner() public view returns(address) {
        return _owner;
    }

    modifier onlyOwner() {
        require(isOwner(), "Access denied");
        _;
    }

    function isOwner() public view returns(bool) {
        return msg.sender == _owner;
    }

    function renounceOwnership() public onlyOwner {
        emit OwnershipTransferred(_owner, address(0));

        _owner = address(0);
    }

    function transferOwnership(address newOwner) public onlyOwner {
        _transferOwnership(newOwner);
    }

    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), "Zero address");

        emit OwnershipTransferred(_owner, newOwner);

        _owner = newOwner;
    }
}

contract CryptoBets is Ownable, usingOraclize {
    struct Room {
        address author;
        uint bet;
        uint max_players;
        string pass;
        bool run;
        bool closed;
        address[] players;
    }

    uint public min_bet = 0.1 ether;
    uint public max_bet = 3 ether;
    uint public min_players = 2;
    uint public max_players = 10;
    uint[] public ref_payouts = [3, 2, 1];
    uint public jackpot_max_players = 100;
    uint public jackpot_bank = 0;
    uint public commision = 0;
    uint public oraclize_gas_limit = 250000;

    Room[] public rooms;
    mapping(bytes32 => uint) public games;
    mapping(address => address) public refferals;
    address[] public jackpot_players;

    mapping(address => bool) public managers;
    mapping(address => uint) public withdraws;

    event NewRoom(uint indexed room_id, address indexed author, uint bet, uint max_players, string pass);
    event NewBet(uint indexed room_id, address indexed addr);
    event Run(uint indexed room_id, bytes32 indexed id);
    event FinishRoom(uint indexed room_id, address indexed winner);
    event Withdraw(address indexed to, uint value);
    
    modifier onlyManager() {
        require(managers[msg.sender], "Access denied");
        _;
    }

    constructor() payable public {
        // Managers
        managers[0x909bf2E71fe8f8cEDb8D55E1818E152b003c5612] = true;
        managers[0xB224A65FA9a76d6cc0f3c96A181894Be342fcB63] = true;
        managers[0x5BC1987a3f4E43650b2E3FbE7C404c4C5ffF1531] = true;
        managers[0xF20175D17Be5d6b215b6063EAaAc158969064ee8] = true;
        managers[0xA745ac0BB1F88EeCF9EC0Db369Ed29F07CD42966] = true;
        managers[0xdc0B815316383BA4d087a2dBB9268CB5346b88aa] = true;
        managers[0x2431CfCDEa6abc4112EA67a41910D986D7475ac5] = true;
        managers[0x756F9B5DAd8d119fA7442FB636Db7f3bDF5435eF] = true;
        managers[0xecC78D8DA24F9625F615374279F0627c97da9379] = true;
        managers[0xcBE575FFa93d7D9eE1CC7aACC72a5C93FD1e08c3] = true;
    }
    
    function() payable external {}

    function __callback(bytes32 id, string res) public {
        require(msg.sender == oraclize_cbAddress(), "Permission denied");

        Room storage room = rooms[games[id]];
        
        require(room.author != address(0), "Room not found");
        require(!room.closed, "Room already closed");

        uint result = parseInt(res);
        uint win = room.bet * room.players.length;
        uint comm = 14;
        uint oc = oraclize_getPrice("URL");

        jackpot_bank += win / 100;

        address ref = refferals[room.players[result]];
        if(ref != room.players[result]) {
            for(uint i = 0; i < ref_payouts.length; i++) {
                if(ref != address(0)) {
                    uint p = win * ref_payouts[i] / 100;

                    comm -= ref_payouts[i];

                    ref.transfer(p);
                    ref = refferals[ref];
                }
                else break;
            }
        }

        room.players[result].transfer(win - (win * 15 / 100));

        if(win * comm / 100 > oc) {
            commision += (win * comm / 100) - oc;
        }

        emit FinishRoom(games[id], room.players[result]);

        room.closed = true;

        delete games[id];

        if(jackpot_players.length >= jackpot_max_players) {
            uint jp_winner = (uint(block.blockhash(block.number)) + result) % jackpot_players.length;

            jackpot_players[jp_winner].transfer(jackpot_bank);

            jackpot_bank = 0;

            for(uint j = 0; j < jackpot_players.length; j++){
                delete jackpot_players[j];
            }
            jackpot_players.length = 0;
        }
    }

    function createRoom(uint players, string pass, address refferal) payable external {
        require(msg.value >= min_bet && msg.value <= max_bet, "Bet does not match the interval");
        require(players >= min_players && players <= max_players, "Players does not match the interval");

        address[] memory pls;

        rooms.push(Room({
            author: msg.sender,
            bet: msg.value,
            max_players: players,
            pass: pass,
            run: false,
            closed: false,
            players: pls
        }));

        emit NewRoom(rooms.length - 1, msg.sender, msg.value, players, pass);

        _joinRoom(msg.value, msg.sender, rooms.length - 1, pass, refferal);
    }

    function _joinRoom(uint value, address to, uint room_id, string pass, address refferal) private {
        require(rooms[room_id].author != address(0), "Room not found");
        require(!rooms[room_id].closed, "Room already closed");
        require(value == rooms[room_id].bet, "Insufficient funds");
        require(strCompare(pass, rooms[room_id].pass) == 0, "Invalid password");
        require(rooms[room_id].max_players > rooms[room_id].players.length, "Room is full");

        rooms[room_id].players.push(msg.sender);
        jackpot_players.push(msg.sender);

        if(refferals[msg.sender] == address(0)) {
            refferals[msg.sender] = refferal != address(0) ? refferal : msg.sender;
        }

        emit NewBet(room_id, to);

        if(rooms[room_id].max_players == rooms[room_id].players.length) {
            _play(room_id);
        }
    }

    function joinRoom(uint room_id, string pass, address refferal) payable external {
        _joinRoom(msg.value, msg.sender, room_id, pass, refferal);
    }

    function _play(uint room_id) private {
        require(rooms[room_id].author != address(0), "Room not found");
        require(!rooms[room_id].closed, "Room already closed");
        require(rooms[room_id].max_players == rooms[room_id].players.length, "Room is empty");
        require(oraclize_getPrice("URL") <= address(this).balance, "Insufficient funds");
        
        bytes32 id = oraclize_query("WolframAlpha", strConcat("RandomInteger[{0, ", uint2str(rooms[room_id].players.length - 1), "}]"), oraclize_gas_limit);
        
        rooms[room_id].run = true;
        games[id] = room_id;

        emit Run(room_id, id);
    }

    function play(uint room_id) onlyManager external {
        _play(room_id);
    }
    
    function withdraw(uint value) onlyManager external {
        uint s = commision / 10;
        uint b = withdraws[msg.sender] < s ? s - withdraws[msg.sender] : 0;

        require(b > 0 && value <= b && address(this).balance >= value, "Insufficient funds");

        withdraws[msg.sender] += value;

        msg.sender.transfer(value);

        emit Withdraw(msg.sender, value);
    }

    function setJackpotMaxPlayers(uint value) onlyOwner external {
        jackpot_max_players = value;
    }

    function setOraclizeGasLimit(uint value) onlyOwner external {
        oraclize_gas_limit = value;
    }

    function setOraclizeGasPrice(uint value) onlyOwner external {
        oraclize_setCustomGasPrice(value);
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"rooms","outputs":[{"name":"author","type":"address"},{"name":"bet","type":"uint256"},{"name":"max_players","type":"uint256"},{"name":"pass","type":"string"},{"name":"run","type":"bool"},{"name":"closed","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"refferals","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"id","type":"bytes32"},{"name":"res","type":"string"}],"name":"__callback","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"value","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"min_players","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"myid","type":"bytes32"},{"name":"result","type":"string"},{"name":"proof","type":"bytes"}],"name":"__callback","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"withdraws","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"max_players","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"room_id","type":"uint256"}],"name":"play","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"max_bet","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"value","type":"uint256"}],"name":"setOraclizeGasPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"ref_payouts","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"value","type":"uint256"}],"name":"setJackpotMaxPlayers","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"jackpot_max_players","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"room_id","type":"uint256"},{"name":"pass","type":"string"},{"name":"refferal","type":"address"}],"name":"joinRoom","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"value","type":"uint256"}],"name":"setOraclizeGasLimit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"oraclize_gas_limit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"commision","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"min_bet","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"jackpot_players","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"players","type":"uint256"},{"name":"pass","type":"string"},{"name":"refferal","type":"address"}],"name":"createRoom","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"jackpot_bank","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"games","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"managers","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":true,"stateMutability":"payable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"room_id","type":"uint256"},{"indexed":true,"name":"author","type":"address"},{"indexed":false,"name":"bet","type":"uint256"},{"indexed":false,"name":"max_players","type":"uint256"},{"indexed":false,"name":"pass","type":"string"}],"name":"NewRoom","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"room_id","type":"uint256"},{"indexed":true,"name":"addr","type":"address"}],"name":"NewBet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"room_id","type":"uint256"},{"indexed":true,"name":"id","type":"bytes32"}],"name":"Run","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"room_id","type":"uint256"},{"indexed":true,"name":"winner","type":"address"}],"name":"FinishRoom","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Withdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]

608060405267016345785d8a00006006556729a2241af62c00006007556002600855600a600955606060405190810160405280600360ff168152602001600260ff168152602001600160ff16815250600a9060036200006092919062000571565b506064600b556000600c556000600d556203d090600e55336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360016013600073909bf2e71fe8f8cedb8d55e1818e152b003c561273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060016013600073b224a65fa9a76d6cc0f3c96a181894be342fcb6373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600160136000735bc1987a3f4e43650b2e3fbe7c404c4c5fff153173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060016013600073f20175d17be5d6b215b6063eaaac158969064ee873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060016013600073a745ac0bb1f88eecf9ec0db369ed29f07cd4296673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060016013600073dc0b815316383ba4d087a2dbb9268cb5346b88aa73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600160136000732431cfcdea6abc4112ea67a41910d986d7475ac573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060016013600073756f9b5dad8d119fa7442fb636db7f3bdf5435ef73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060016013600073ecc78d8da24f9625f615374279f0627c97da937973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060016013600073cbe575ffa93d7d9ee1cc7aacc72a5c93fd1e08c373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620005f0565b828054828255906000526020600020908101928215620005b5579160200282015b82811115620005b4578251829060ff1690559160200191906001019062000592565b5b509050620005c49190620005c8565b5090565b620005ed91905b80821115620005e9576000816000905550600101620005cf565b5090565b90565b614e9680620006006000396000f30060806040526004361061016a576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680631bae0ac81461016c5780632060ebea1461026957806327dc297e146102ec5780632e1a7d4d1461036357806334532b271461039057806338bbfa50146103bb57806348179ee51461047857806349e65d32146104cf5780636898f82b146104fa5780636a8e871114610527578063715018a61461055257806371c82c14146105695780637a0bb2df1461059657806382741cff146105d75780638361b09a146106045780638b61899b1461062f5780638da5cb5b146106875780638ddf792b146106de5780638f32d59b1461070b578063a42dcff91461073a578063b95edbf914610765578063ca53135a14610790578063e4372c01146107bb578063e532e06814610828578063f2852cdf14610880578063f2fde38b146108ab578063f579f882146108ee578063fdff9b4d14610933575b005b34801561017857600080fd5b506101976004803603810190808035906020019092919050505061098e565b604051808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001868152602001858152602001806020018415151515815260200183151515158152602001828103825285818151815260200191508051906020019080838360005b8381101561022957808201518184015260208101905061020e565b50505050905090810190601f1680156102565780820380516001836020036101000a031916815260200191505b5097505050505050505060405180910390f35b34801561027557600080fd5b506102aa600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610aab565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156102f857600080fd5b506103616004803603810190808035600019169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610ade565b005b34801561036f57600080fd5b5061038e600480360381019080803590602001909291905050506112c8565b005b34801561039c57600080fd5b506103a56115bd565b6040518082815260200191505060405180910390f35b3480156103c757600080fd5b506104766004803603810190808035600019169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506115c3565b005b34801561048457600080fd5b506104b9600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506115c8565b6040518082815260200191505060405180910390f35b3480156104db57600080fd5b506104e46115e0565b6040518082815260200191505060405180910390f35b34801561050657600080fd5b50610525600480360381019080803590602001909291905050506115e6565b005b34801561053357600080fd5b5061053c6116b3565b6040518082815260200191505060405180910390f35b34801561055e57600080fd5b506105676116b9565b005b34801561057557600080fd5b50610594600480360381019080803590602001909291905050506117f4565b005b3480156105a257600080fd5b506105c16004803603810190808035906020019092919050505061187c565b6040518082815260200191505060405180910390f35b3480156105e357600080fd5b506106026004803603810190808035906020019092919050505061189f565b005b34801561061057600080fd5b50610619611925565b6040518082815260200191505060405180910390f35b61068560048036038101908080359060200190929190803590602001908201803590602001919091929391929390803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061192b565b005b34801561069357600080fd5b5061069c611970565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156106ea57600080fd5b5061070960048036038101908080359060200190929190505050611999565b005b34801561071757600080fd5b50610720611a1f565b604051808215151515815260200191505060405180910390f35b34801561074657600080fd5b5061074f611a76565b6040518082815260200191505060405180910390f35b34801561077157600080fd5b5061077a611a7c565b6040518082815260200191505060405180910390f35b34801561079c57600080fd5b506107a5611a82565b6040518082815260200191505060405180910390f35b3480156107c757600080fd5b506107e660048036038101908080359060200190929190505050611a88565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61087e60048036038101908080359060200190929190803590602001908201803590602001919091929391929390803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611ac6565b005b34801561088c57600080fd5b50610895611e54565b6040518082815260200191505060405180910390f35b3480156108b757600080fd5b506108ec600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611e5a565b005b3480156108fa57600080fd5b5061091d6004803603810190808035600019169060200190929190505050611ee2565b6040518082815260200191505060405180910390f35b34801561093f57600080fd5b50610974600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611efa565b604051808215151515815260200191505060405180910390f35b600f8181548110151561099d57fe5b90600052602060002090600602016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690806001015490806002015490806003018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610a7b5780601f10610a5057610100808354040283529160200191610a7b565b820191906000526020600020905b815481529060010190602001808311610a5e57829003601f168201915b5050505050908060040160009054906101000a900460ff16908060040160019054906101000a900460ff16905086565b60116020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600080600080600080600080610af5611f1a565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610b97576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f5065726d697373696f6e2064656e69656400000000000000000000000000000081525060200191505060405180910390fd5b600f601060008e6000191660001916815260200190815260200160002054815481101515610bc157fe5b90600052602060002090600602019950600073ffffffffffffffffffffffffffffffffffffffff168a60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151515610c9a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f526f6f6d206e6f7420666f756e6400000000000000000000000000000000000081525060200191505060405180910390fd5b8960040160019054906101000a900460ff16151515610d21576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f526f6f6d20616c726561647920636c6f7365640000000000000000000000000081525060200191505060405180910390fd5b610d2a8b61227c565b985089600501805490508a60010154029750600e9650610d7e6040805190810160405280600381526020017f55524c0000000000000000000000000000000000000000000000000000000000815250612290565b9550606488811515610d8c57fe5b04600c60008282540192505081905550601160008b6005018b815481101515610db157fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1694508960050189815481101515610e4a57fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141515610ffa57600093505b600a80549050841015610ff957600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141515610fe7576064600a85815481101515610f0257fe5b90600052602060002001548902811515610f1857fe5b049250600a84815481101515610f2a57fe5b9060005260206000200154870396508473ffffffffffffffffffffffffffffffffffffffff166108fc849081150290604051600060405180830381858888f19350505050158015610f7f573d6000803e3d6000fd5b50601160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169450610fec565b610ff9565b8380600101945050610eae565b5b896005018981548110151561100b57fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc6064600f8b0281151561105e57fe5b048a039081150290604051600060405180830381858888f1935050505015801561108c573d6000803e3d6000fd5b50856064888a0281151561109c57fe5b0411156110c457856064888a028115156110b257fe5b0403600d600082825401925050819055505b89600501898154811015156110d557fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16601060008e60001916600019168152602001908152602001600020547fc3824b2530c1d8e25041133fc39a3d10131e32963f9dfb54249a7ab57eecee5c60405160405180910390a360018a60040160016101000a81548160ff021916908315150217905550601060008d6000191660001916815260200190815260200160002060009055600b546012805490501015156112ba5760128054905089434060019004018115156111c157fe5b0691506012828154811015156111d357fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc600c549081150290604051600060405180830381858888f19350505050158015611245573d6000803e3d6000fd5b506000600c81905550600090505b6012805490508110156112a95760128181548110151561126f57fe5b9060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690558080600101915050611253565b60006012816112b89190614c4c565b505b505050505050505050505050565b600080601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151561138c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600d8152602001807f4163636573732064656e6965640000000000000000000000000000000000000081525060200191505060405180910390fd5b600a600d5481151561139a57fe5b04915081601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054106113ea57600061142d565b601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482035b905060008111801561143f5750808311155b80156114625750823073ffffffffffffffffffffffffffffffffffffffff163110155b15156114d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f496e73756666696369656e742066756e6473000000000000000000000000000081525060200191505060405180910390fd5b82601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055503373ffffffffffffffffffffffffffffffffffffffff166108fc849081150290604051600060405180830381858888f19350505050158015611569573d6000803e3d6000fd5b503373ffffffffffffffffffffffffffffffffffffffff167f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364846040518082815260200191505060405180910390a2505050565b60085481565b505050565b60146020528060005260406000206000915090505481565b60095481565b601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615156116a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600d8152602001807f4163636573732064656e6965640000000000000000000000000000000000000081525060200191505060405180910390fd5b6116b081612664565b50565b60075481565b6116c1611a1f565b1515611735576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600d8152602001807f4163636573732064656e6965640000000000000000000000000000000000000081525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6117fc611a1f565b1515611870576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600d8152602001807f4163636573732064656e6965640000000000000000000000000000000000000081525060200191505060405180910390fd5b61187981612ae8565b50565b600a8181548110151561188b57fe5b906000526020600020016000915090505481565b6118a7611a1f565b151561191b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600d8152602001807f4163636573732064656e6965640000000000000000000000000000000000000081525060200191505060405180910390fd5b80600b8190555050565b600b5481565b61196a34338686868080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505085612e2f565b50505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6119a1611a1f565b1515611a15576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600d8152602001807f4163636573732064656e6965640000000000000000000000000000000000000081525060200191505060405180910390fd5b80600e8190555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b600e5481565b600d5481565b60065481565b601281815481101515611a9757fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60606006543410158015611adc57506007543411155b1515611b50576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f42657420646f6573206e6f74206d617463682074686520696e74657276616c0081525060200191505060405180910390fd5b6008548510158015611b6457506009548511155b1515611bfe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001807f506c617965727320646f6573206e6f74206d617463682074686520696e74657281526020017f76616c000000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b600f60e0604051908101604052803373ffffffffffffffffffffffffffffffffffffffff16815260200134815260200187815260200186868080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050508152602001600015158152602001600015158152602001838152509080600181540180825580915050906001820390600052602060002090600602016000909192909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201556060820151816003019080519060200190611d24929190614c78565b5060808201518160040160006101000a81548160ff02191690831515021790555060a08201518160040160016101000a81548160ff02191690831515021790555060c0820151816005019080519060200190611d81929190614cf8565b505050503373ffffffffffffffffffffffffffffffffffffffff166001600f80549050037f7aae99c4c5a44a68014656cdfa6242908f60f9f5530e4ba1f30e834dcad715b7348888886040518085815260200184815260200180602001828103825284848281815260200192508082843782019150509550505050505060405180910390a3611e4d34336001600f805490500387878080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505086612e2f565b5050505050565b600c5481565b611e62611a1f565b1515611ed6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600d8152602001807f4163636573732064656e6965640000000000000000000000000000000000000081525060200191505060405180910390fd5b611edf8161351a565b50565b60106020528060005260406000206000915090505481565b60136020528060005260406000206000915054906101000a900460ff1681565b600080600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480611f8c57506000611f8a600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661367d565b145b15611f9d57611f9b6000613688565b505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561202357600080fd5b505af1158015612037573d6000803e3d6000fd5b505050506040513d602081101561204d57600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415156121b657600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561213a57600080fd5b505af115801561214e573d6000803e3d6000fd5b505050506040513d602081101561216457600080fd5b8101908080519060200190929190505050600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c281d19e6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561223c57600080fd5b505af1158015612250573d6000803e3d6000fd5b505050506040513d602081101561226657600080fd5b8101908080519060200190929190505050905090565b6000612289826000613699565b9050919050565b600080600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16148061230257506000612300600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661367d565b145b15612313576123116000613688565b505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561239957600080fd5b505af11580156123ad573d6000803e3d6000fd5b505050506040513d60208110156123c357600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151561252c57600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1580156124b057600080fd5b505af11580156124c4573d6000803e3d6000fd5b505050506040513d60208110156124da57600080fd5b8101908080519060200190929190505050600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663524f3889836040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825283818151815260200191508051906020019080838360005b838110156125d65780820151818401526020810190506125bb565b50505050905090810190601f1680156126035780820380516001836020036101000a031916815260200191505b5092505050602060405180830381600087803b15801561262257600080fd5b505af1158015612636573d6000803e3d6000fd5b505050506040513d602081101561264c57600080fd5b81019080805190602001909291905050509050919050565b60008073ffffffffffffffffffffffffffffffffffffffff16600f8381548110151561268c57fe5b906000526020600020906006020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415151561274a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f526f6f6d206e6f7420666f756e6400000000000000000000000000000000000081525060200191505060405180910390fd5b600f8281548110151561275957fe5b906000526020600020906006020160040160019054906101000a900460ff161515156127ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f526f6f6d20616c726561647920636c6f7365640000000000000000000000000081525060200191505060405180910390fd5b600f828154811015156127fc57fe5b906000526020600020906006020160050180549050600f8381548110151561282057fe5b9060005260206000209060060201600201541415156128a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600d8152602001807f526f6f6d20697320656d7074790000000000000000000000000000000000000081525060200191505060405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff16316128fd6040805190810160405280600381526020017f55524c0000000000000000000000000000000000000000000000000000000000815250612290565b11151515612973576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f496e73756666696369656e742066756e6473000000000000000000000000000081525060200191505060405180910390fd5b612a576040805190810160405280600c81526020017f576f6c6672616d416c7068610000000000000000000000000000000000000000815250612a4f6040805190810160405280601281526020017f52616e646f6d496e74656765725b7b302c200000000000000000000000000000815250612a146001600f888154811015156129f957fe5b9060005260206000209060060201600501805490500361398d565b6040805190810160405280600281526020017f7d5d000000000000000000000000000000000000000000000000000000000000815250613ae4565b600e54613b1c565b90506001600f83815481101515612a6a57fe5b906000526020600020906006020160040160006101000a81548160ff02191690831515021790555081601060008360001916600019168152602001908152602001600020819055508060001916827fe5cd383f3b946a6c45be63919ccb125dfe09ad405a7fbeb50b1dafb1aa3dba1960405160405180910390a35050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480612b5957506000612b57600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661367d565b145b15612b6a57612b686000613688565b505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b158015612bf057600080fd5b505af1158015612c04573d6000803e3d6000fd5b505050506040513d6020811015612c1a57600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515612d8357600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b158015612d0757600080fd5b505af1158015612d1b573d6000803e3d6000fd5b505050506040513d6020811015612d3157600080fd5b8101908080519060200190929190505050600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ca6ad1e4826040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b158015612e1457600080fd5b505af1158015612e28573d6000803e3d6000fd5b5050505050565b600073ffffffffffffffffffffffffffffffffffffffff16600f84815481101515612e5657fe5b906000526020600020906006020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151515612f14576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f526f6f6d206e6f7420666f756e6400000000000000000000000000000000000081525060200191505060405180910390fd5b600f83815481101515612f2357fe5b906000526020600020906006020160040160019054906101000a900460ff16151515612fb7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f526f6f6d20616c726561647920636c6f7365640000000000000000000000000081525060200191505060405180910390fd5b600f83815481101515612fc657fe5b9060005260206000209060060201600101548514151561304e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f496e73756666696369656e742066756e6473000000000000000000000000000081525060200191505060405180910390fd5b600061311283600f8681548110151561306357fe5b90600052602060002090600602016003018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156131085780601f106130dd57610100808354040283529160200191613108565b820191906000526020600020905b8154815290600101906020018083116130eb57829003601f168201915b50505050506140d0565b141515613187576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f496e76616c69642070617373776f72640000000000000000000000000000000081525060200191505060405180910390fd5b600f8381548110151561319657fe5b906000526020600020906006020160050180549050600f848154811015156131ba57fe5b906000526020600020906006020160020154111515613241576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600c8152602001807f526f6f6d2069732066756c6c000000000000000000000000000000000000000081525060200191505060405180910390fd5b600f8381548110151561325057fe5b90600052602060002090600602016005013390806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505060123390806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050600073ffffffffffffffffffffffffffffffffffffffff16601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561347a57600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156133fa57336133fc565b805b601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b8373ffffffffffffffffffffffffffffffffffffffff16837f189ba8d04ab0c61f5498ae9bd2b2295cd60d6fc895cac86feeb1ee28d1b782d260405160405180910390a3600f838154811015156134cd57fe5b906000526020600020906006020160050180549050600f848154811015156134f157fe5b90600052602060002090600602016002015414156135135761351283612664565b5b5050505050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156135bf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600c8152602001807f5a65726f2061646472657373000000000000000000000000000000000000000081525060200191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000813b9050919050565b6000613692614387565b9050919050565b6000606060008060008693506000925060009150600090505b835181101561396e5760307f01000000000000000000000000000000000000000000000000000000000000000284828151811015156136ed57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015613805575060397f010000000000000000000000000000000000000000000000000000000000000002848281518110151561379557fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b156138b657811561382857600086141561381e5761396e565b8580600190039650505b600a830292506030848281518110151561383e57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027f010000000000000000000000000000000000000000000000000000000000000090040383019250613961565b602e7f01000000000000000000000000000000000000000000000000000000000000000284828151811015156138e857fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141561396057600191505b5b80806001019150506136b2565b60008611156139805785600a0a830292505b8294505050505092915050565b606060008060606000808614156139db576040805190810160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509450613adb565b8593505b600084141515613a05578280600101935050600a848115156139fd57fe5b0493506139df565b826040519080825280601f01601f191660200182016040528015613a385781602001602082028038833980820191505090505b5091506001830390505b600086141515613ad757600a86811515613a5857fe5b066030017f010000000000000000000000000000000000000000000000000000000000000002828280600190039350815181101515613a9357fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a86811515613acf57fe5b049550613a42565b8194505b50505050919050565b6060613b138484846020604051908101604052806000815250602060405190810160405280600081525061481d565b90509392505050565b6000806000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480613b9057506000613b8e600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661367d565b145b15613ba157613b9f6000613688565b505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b158015613c2757600080fd5b505af1158015613c3b573d6000803e3d6000fd5b505050506040513d6020811015613c5157600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515613dba57600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b158015613d3e57600080fd5b505af1158015613d52573d6000803e3d6000fd5b505050506040513d6020811015613d6857600080fd5b8101908080519060200190929190505050600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632ef3accc86856040518363ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b83811015613e6b578082015181840152602081019050613e50565b50505050905090810190601f168015613e985780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b158015613eb857600080fd5b505af1158015613ecc573d6000803e3d6000fd5b505050506040513d6020811015613ee257600080fd5b81019080805190602001909291905050509050823a02670de0b6b3a764000001811115613f1557600060010291506140c8565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c51be90f8260008888886040518663ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808581526020018060200180602001848152602001838103835286818151815260200191508051906020019080838360005b83811015613fd4578082015181840152602081019050613fb9565b50505050905090810190601f1680156140015780820380516001836020036101000a031916815260200191505b50838103825285818151815260200191508051906020019080838360005b8381101561403a57808201518184015260208101905061401f565b50505050905090810190601f1680156140675780820380516001836020036101000a031916815260200191505b5096505050505050506020604051808303818588803b15801561408957600080fd5b505af115801561409d573d6000803e3d6000fd5b50505050506040513d60208110156140b457600080fd5b810190808051906020019092919050505091505b509392505050565b60006060806000808693508592508351915081835110156140f057825191505b600090505b8181101561433357828181518110151561410b57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916848281518110151561418657fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161015614221577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff945061437d565b828181518110151561422f57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191684828151811015156142aa57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161115614326576001945061437d565b80806001019150506140f5565b825184511015614365577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff945061437d565b825184511115614378576001945061437d565b600094505b5050505092915050565b6000806143a7731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed61367d565b111561444957731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506144406040805190810160405280600b81526020017f6574685f6d61696e6e6574000000000000000000000000000000000000000000815250614c32565b6001905061481a565b600061446873c03a2615d5efaf5f49f60b7bb6583eaec212fdf161367d565b111561450a5773c03a2615d5efaf5f49f60b7bb6583eaec212fdf1600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506145016040805190810160405280600c81526020017f6574685f726f707374656e330000000000000000000000000000000000000000815250614c32565b6001905061481a565b600061452973b7a07bcf2ba2f2703b24c0691b5278999c59ac7e61367d565b11156145cb5773b7a07bcf2ba2f2703b24c0691b5278999c59ac7e600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506145c26040805190810160405280600981526020017f6574685f6b6f76616e0000000000000000000000000000000000000000000000815250614c32565b6001905061481a565b60006145ea73146500cfd35b22e4a392fe0adc06de1a1368ed4861367d565b111561468c5773146500cfd35b22e4a392fe0adc06de1a1368ed48600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506146836040805190810160405280600b81526020017f6574685f72696e6b656279000000000000000000000000000000000000000000815250614c32565b6001905061481a565b60006146ab736f485c8bf6fc43ea212e93bbf8ce046c7f1cb47561367d565b111561470f57736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001905061481a565b600061472e7320e12a1f859b3feae5fb2a0a32c18f5a65555bbf61367d565b1115614792577320e12a1f859b3feae5fb2a0a32c18f5a65555bbf600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001905061481a565b60006147b17351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa61367d565b1115614815577351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001905061481a565b600090505b90565b6060806060806060806060806000808e98508d97508c96508b95508a94508451865188518a518c51010101016040519080825280601f01601f19166020018201604052801561487b5781602001602082028038833980820191505090505b50935083925060009150600090505b885181101561493d5788818151811015156148a157fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f010000000000000000000000000000000000000000000000000000000000000002838380600101945081518110151561490057fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350808060010191505061488a565b600090505b87518110156149f557878181518110151561495957fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f01000000000000000000000000000000000000000000000000000000000000000283838060010194508151811015156149b857fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080600101915050614942565b600090505b8651811015614aad578681815181101515614a1157fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000028383806001019450815181101515614a7057fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535080806001019150506149fa565b600090505b8551811015614b65578581815181101515614ac957fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000028383806001019450815181101515614b2857fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080600101915050614ab2565b600090505b8451811015614c1d578481815181101515614b8157fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000028383806001019450815181101515614be057fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080600101915050614b6a565b82995050505050505050505095945050505050565b8060039080519060200190614c48929190614d82565b5050565b815481835581811115614c7357818360005260206000209182019101614c729190614e02565b5b505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10614cb957805160ff1916838001178555614ce7565b82800160010185558215614ce7579182015b82811115614ce6578251825591602001919060010190614ccb565b5b509050614cf49190614e02565b5090565b828054828255906000526020600020908101928215614d71579160200282015b82811115614d705782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555091602001919060010190614d18565b5b509050614d7e9190614e27565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10614dc357805160ff1916838001178555614df1565b82800160010185558215614df1579182015b82811115614df0578251825591602001919060010190614dd5565b5b509050614dfe9190614e02565b5090565b614e2491905b80821115614e20576000816000905550600101614e08565b5090565b90565b614e6791905b80821115614e6357600081816101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905550600101614e2d565b5090565b905600a165627a7a723058201958eaba0155b50dca2d1932e90dc566efe3e5cf0f6f2e2b293f505fb22fdaa30029

Deployed Bytecode

0x60806040526004361061016a576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680631bae0ac81461016c5780632060ebea1461026957806327dc297e146102ec5780632e1a7d4d1461036357806334532b271461039057806338bbfa50146103bb57806348179ee51461047857806349e65d32146104cf5780636898f82b146104fa5780636a8e871114610527578063715018a61461055257806371c82c14146105695780637a0bb2df1461059657806382741cff146105d75780638361b09a146106045780638b61899b1461062f5780638da5cb5b146106875780638ddf792b146106de5780638f32d59b1461070b578063a42dcff91461073a578063b95edbf914610765578063ca53135a14610790578063e4372c01146107bb578063e532e06814610828578063f2852cdf14610880578063f2fde38b146108ab578063f579f882146108ee578063fdff9b4d14610933575b005b34801561017857600080fd5b506101976004803603810190808035906020019092919050505061098e565b604051808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001868152602001858152602001806020018415151515815260200183151515158152602001828103825285818151815260200191508051906020019080838360005b8381101561022957808201518184015260208101905061020e565b50505050905090810190601f1680156102565780820380516001836020036101000a031916815260200191505b5097505050505050505060405180910390f35b34801561027557600080fd5b506102aa600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610aab565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156102f857600080fd5b506103616004803603810190808035600019169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610ade565b005b34801561036f57600080fd5b5061038e600480360381019080803590602001909291905050506112c8565b005b34801561039c57600080fd5b506103a56115bd565b6040518082815260200191505060405180910390f35b3480156103c757600080fd5b506104766004803603810190808035600019169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506115c3565b005b34801561048457600080fd5b506104b9600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506115c8565b6040518082815260200191505060405180910390f35b3480156104db57600080fd5b506104e46115e0565b6040518082815260200191505060405180910390f35b34801561050657600080fd5b50610525600480360381019080803590602001909291905050506115e6565b005b34801561053357600080fd5b5061053c6116b3565b6040518082815260200191505060405180910390f35b34801561055e57600080fd5b506105676116b9565b005b34801561057557600080fd5b50610594600480360381019080803590602001909291905050506117f4565b005b3480156105a257600080fd5b506105c16004803603810190808035906020019092919050505061187c565b6040518082815260200191505060405180910390f35b3480156105e357600080fd5b506106026004803603810190808035906020019092919050505061189f565b005b34801561061057600080fd5b50610619611925565b6040518082815260200191505060405180910390f35b61068560048036038101908080359060200190929190803590602001908201803590602001919091929391929390803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061192b565b005b34801561069357600080fd5b5061069c611970565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156106ea57600080fd5b5061070960048036038101908080359060200190929190505050611999565b005b34801561071757600080fd5b50610720611a1f565b604051808215151515815260200191505060405180910390f35b34801561074657600080fd5b5061074f611a76565b6040518082815260200191505060405180910390f35b34801561077157600080fd5b5061077a611a7c565b6040518082815260200191505060405180910390f35b34801561079c57600080fd5b506107a5611a82565b6040518082815260200191505060405180910390f35b3480156107c757600080fd5b506107e660048036038101908080359060200190929190505050611a88565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61087e60048036038101908080359060200190929190803590602001908201803590602001919091929391929390803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611ac6565b005b34801561088c57600080fd5b50610895611e54565b6040518082815260200191505060405180910390f35b3480156108b757600080fd5b506108ec600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611e5a565b005b3480156108fa57600080fd5b5061091d6004803603810190808035600019169060200190929190505050611ee2565b6040518082815260200191505060405180910390f35b34801561093f57600080fd5b50610974600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611efa565b604051808215151515815260200191505060405180910390f35b600f8181548110151561099d57fe5b90600052602060002090600602016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690806001015490806002015490806003018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610a7b5780601f10610a5057610100808354040283529160200191610a7b565b820191906000526020600020905b815481529060010190602001808311610a5e57829003601f168201915b5050505050908060040160009054906101000a900460ff16908060040160019054906101000a900460ff16905086565b60116020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600080600080600080600080610af5611f1a565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610b97576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f5065726d697373696f6e2064656e69656400000000000000000000000000000081525060200191505060405180910390fd5b600f601060008e6000191660001916815260200190815260200160002054815481101515610bc157fe5b90600052602060002090600602019950600073ffffffffffffffffffffffffffffffffffffffff168a60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151515610c9a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f526f6f6d206e6f7420666f756e6400000000000000000000000000000000000081525060200191505060405180910390fd5b8960040160019054906101000a900460ff16151515610d21576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f526f6f6d20616c726561647920636c6f7365640000000000000000000000000081525060200191505060405180910390fd5b610d2a8b61227c565b985089600501805490508a60010154029750600e9650610d7e6040805190810160405280600381526020017f55524c0000000000000000000000000000000000000000000000000000000000815250612290565b9550606488811515610d8c57fe5b04600c60008282540192505081905550601160008b6005018b815481101515610db157fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1694508960050189815481101515610e4a57fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141515610ffa57600093505b600a80549050841015610ff957600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141515610fe7576064600a85815481101515610f0257fe5b90600052602060002001548902811515610f1857fe5b049250600a84815481101515610f2a57fe5b9060005260206000200154870396508473ffffffffffffffffffffffffffffffffffffffff166108fc849081150290604051600060405180830381858888f19350505050158015610f7f573d6000803e3d6000fd5b50601160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169450610fec565b610ff9565b8380600101945050610eae565b5b896005018981548110151561100b57fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc6064600f8b0281151561105e57fe5b048a039081150290604051600060405180830381858888f1935050505015801561108c573d6000803e3d6000fd5b50856064888a0281151561109c57fe5b0411156110c457856064888a028115156110b257fe5b0403600d600082825401925050819055505b89600501898154811015156110d557fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16601060008e60001916600019168152602001908152602001600020547fc3824b2530c1d8e25041133fc39a3d10131e32963f9dfb54249a7ab57eecee5c60405160405180910390a360018a60040160016101000a81548160ff021916908315150217905550601060008d6000191660001916815260200190815260200160002060009055600b546012805490501015156112ba5760128054905089434060019004018115156111c157fe5b0691506012828154811015156111d357fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc600c549081150290604051600060405180830381858888f19350505050158015611245573d6000803e3d6000fd5b506000600c81905550600090505b6012805490508110156112a95760128181548110151561126f57fe5b9060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690558080600101915050611253565b60006012816112b89190614c4c565b505b505050505050505050505050565b600080601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151561138c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600d8152602001807f4163636573732064656e6965640000000000000000000000000000000000000081525060200191505060405180910390fd5b600a600d5481151561139a57fe5b04915081601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054106113ea57600061142d565b601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482035b905060008111801561143f5750808311155b80156114625750823073ffffffffffffffffffffffffffffffffffffffff163110155b15156114d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f496e73756666696369656e742066756e6473000000000000000000000000000081525060200191505060405180910390fd5b82601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055503373ffffffffffffffffffffffffffffffffffffffff166108fc849081150290604051600060405180830381858888f19350505050158015611569573d6000803e3d6000fd5b503373ffffffffffffffffffffffffffffffffffffffff167f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364846040518082815260200191505060405180910390a2505050565b60085481565b505050565b60146020528060005260406000206000915090505481565b60095481565b601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615156116a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600d8152602001807f4163636573732064656e6965640000000000000000000000000000000000000081525060200191505060405180910390fd5b6116b081612664565b50565b60075481565b6116c1611a1f565b1515611735576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600d8152602001807f4163636573732064656e6965640000000000000000000000000000000000000081525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6117fc611a1f565b1515611870576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600d8152602001807f4163636573732064656e6965640000000000000000000000000000000000000081525060200191505060405180910390fd5b61187981612ae8565b50565b600a8181548110151561188b57fe5b906000526020600020016000915090505481565b6118a7611a1f565b151561191b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600d8152602001807f4163636573732064656e6965640000000000000000000000000000000000000081525060200191505060405180910390fd5b80600b8190555050565b600b5481565b61196a34338686868080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505085612e2f565b50505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6119a1611a1f565b1515611a15576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600d8152602001807f4163636573732064656e6965640000000000000000000000000000000000000081525060200191505060405180910390fd5b80600e8190555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b600e5481565b600d5481565b60065481565b601281815481101515611a9757fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60606006543410158015611adc57506007543411155b1515611b50576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f42657420646f6573206e6f74206d617463682074686520696e74657276616c0081525060200191505060405180910390fd5b6008548510158015611b6457506009548511155b1515611bfe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001807f506c617965727320646f6573206e6f74206d617463682074686520696e74657281526020017f76616c000000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b600f60e0604051908101604052803373ffffffffffffffffffffffffffffffffffffffff16815260200134815260200187815260200186868080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050508152602001600015158152602001600015158152602001838152509080600181540180825580915050906001820390600052602060002090600602016000909192909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201556060820151816003019080519060200190611d24929190614c78565b5060808201518160040160006101000a81548160ff02191690831515021790555060a08201518160040160016101000a81548160ff02191690831515021790555060c0820151816005019080519060200190611d81929190614cf8565b505050503373ffffffffffffffffffffffffffffffffffffffff166001600f80549050037f7aae99c4c5a44a68014656cdfa6242908f60f9f5530e4ba1f30e834dcad715b7348888886040518085815260200184815260200180602001828103825284848281815260200192508082843782019150509550505050505060405180910390a3611e4d34336001600f805490500387878080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505086612e2f565b5050505050565b600c5481565b611e62611a1f565b1515611ed6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600d8152602001807f4163636573732064656e6965640000000000000000000000000000000000000081525060200191505060405180910390fd5b611edf8161351a565b50565b60106020528060005260406000206000915090505481565b60136020528060005260406000206000915054906101000a900460ff1681565b600080600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480611f8c57506000611f8a600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661367d565b145b15611f9d57611f9b6000613688565b505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561202357600080fd5b505af1158015612037573d6000803e3d6000fd5b505050506040513d602081101561204d57600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415156121b657600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561213a57600080fd5b505af115801561214e573d6000803e3d6000fd5b505050506040513d602081101561216457600080fd5b8101908080519060200190929190505050600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c281d19e6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561223c57600080fd5b505af1158015612250573d6000803e3d6000fd5b505050506040513d602081101561226657600080fd5b8101908080519060200190929190505050905090565b6000612289826000613699565b9050919050565b600080600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16148061230257506000612300600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661367d565b145b15612313576123116000613688565b505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561239957600080fd5b505af11580156123ad573d6000803e3d6000fd5b505050506040513d60208110156123c357600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151561252c57600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1580156124b057600080fd5b505af11580156124c4573d6000803e3d6000fd5b505050506040513d60208110156124da57600080fd5b8101908080519060200190929190505050600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663524f3889836040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825283818151815260200191508051906020019080838360005b838110156125d65780820151818401526020810190506125bb565b50505050905090810190601f1680156126035780820380516001836020036101000a031916815260200191505b5092505050602060405180830381600087803b15801561262257600080fd5b505af1158015612636573d6000803e3d6000fd5b505050506040513d602081101561264c57600080fd5b81019080805190602001909291905050509050919050565b60008073ffffffffffffffffffffffffffffffffffffffff16600f8381548110151561268c57fe5b906000526020600020906006020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415151561274a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f526f6f6d206e6f7420666f756e6400000000000000000000000000000000000081525060200191505060405180910390fd5b600f8281548110151561275957fe5b906000526020600020906006020160040160019054906101000a900460ff161515156127ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f526f6f6d20616c726561647920636c6f7365640000000000000000000000000081525060200191505060405180910390fd5b600f828154811015156127fc57fe5b906000526020600020906006020160050180549050600f8381548110151561282057fe5b9060005260206000209060060201600201541415156128a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600d8152602001807f526f6f6d20697320656d7074790000000000000000000000000000000000000081525060200191505060405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff16316128fd6040805190810160405280600381526020017f55524c0000000000000000000000000000000000000000000000000000000000815250612290565b11151515612973576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f496e73756666696369656e742066756e6473000000000000000000000000000081525060200191505060405180910390fd5b612a576040805190810160405280600c81526020017f576f6c6672616d416c7068610000000000000000000000000000000000000000815250612a4f6040805190810160405280601281526020017f52616e646f6d496e74656765725b7b302c200000000000000000000000000000815250612a146001600f888154811015156129f957fe5b9060005260206000209060060201600501805490500361398d565b6040805190810160405280600281526020017f7d5d000000000000000000000000000000000000000000000000000000000000815250613ae4565b600e54613b1c565b90506001600f83815481101515612a6a57fe5b906000526020600020906006020160040160006101000a81548160ff02191690831515021790555081601060008360001916600019168152602001908152602001600020819055508060001916827fe5cd383f3b946a6c45be63919ccb125dfe09ad405a7fbeb50b1dafb1aa3dba1960405160405180910390a35050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480612b5957506000612b57600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661367d565b145b15612b6a57612b686000613688565b505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b158015612bf057600080fd5b505af1158015612c04573d6000803e3d6000fd5b505050506040513d6020811015612c1a57600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515612d8357600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b158015612d0757600080fd5b505af1158015612d1b573d6000803e3d6000fd5b505050506040513d6020811015612d3157600080fd5b8101908080519060200190929190505050600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ca6ad1e4826040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b158015612e1457600080fd5b505af1158015612e28573d6000803e3d6000fd5b5050505050565b600073ffffffffffffffffffffffffffffffffffffffff16600f84815481101515612e5657fe5b906000526020600020906006020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151515612f14576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f526f6f6d206e6f7420666f756e6400000000000000000000000000000000000081525060200191505060405180910390fd5b600f83815481101515612f2357fe5b906000526020600020906006020160040160019054906101000a900460ff16151515612fb7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f526f6f6d20616c726561647920636c6f7365640000000000000000000000000081525060200191505060405180910390fd5b600f83815481101515612fc657fe5b9060005260206000209060060201600101548514151561304e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f496e73756666696369656e742066756e6473000000000000000000000000000081525060200191505060405180910390fd5b600061311283600f8681548110151561306357fe5b90600052602060002090600602016003018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156131085780601f106130dd57610100808354040283529160200191613108565b820191906000526020600020905b8154815290600101906020018083116130eb57829003601f168201915b50505050506140d0565b141515613187576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f496e76616c69642070617373776f72640000000000000000000000000000000081525060200191505060405180910390fd5b600f8381548110151561319657fe5b906000526020600020906006020160050180549050600f848154811015156131ba57fe5b906000526020600020906006020160020154111515613241576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600c8152602001807f526f6f6d2069732066756c6c000000000000000000000000000000000000000081525060200191505060405180910390fd5b600f8381548110151561325057fe5b90600052602060002090600602016005013390806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505060123390806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050600073ffffffffffffffffffffffffffffffffffffffff16601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561347a57600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156133fa57336133fc565b805b601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b8373ffffffffffffffffffffffffffffffffffffffff16837f189ba8d04ab0c61f5498ae9bd2b2295cd60d6fc895cac86feeb1ee28d1b782d260405160405180910390a3600f838154811015156134cd57fe5b906000526020600020906006020160050180549050600f848154811015156134f157fe5b90600052602060002090600602016002015414156135135761351283612664565b5b5050505050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156135bf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600c8152602001807f5a65726f2061646472657373000000000000000000000000000000000000000081525060200191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000813b9050919050565b6000613692614387565b9050919050565b6000606060008060008693506000925060009150600090505b835181101561396e5760307f01000000000000000000000000000000000000000000000000000000000000000284828151811015156136ed57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015613805575060397f010000000000000000000000000000000000000000000000000000000000000002848281518110151561379557fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b156138b657811561382857600086141561381e5761396e565b8580600190039650505b600a830292506030848281518110151561383e57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027f010000000000000000000000000000000000000000000000000000000000000090040383019250613961565b602e7f01000000000000000000000000000000000000000000000000000000000000000284828151811015156138e857fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141561396057600191505b5b80806001019150506136b2565b60008611156139805785600a0a830292505b8294505050505092915050565b606060008060606000808614156139db576040805190810160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509450613adb565b8593505b600084141515613a05578280600101935050600a848115156139fd57fe5b0493506139df565b826040519080825280601f01601f191660200182016040528015613a385781602001602082028038833980820191505090505b5091506001830390505b600086141515613ad757600a86811515613a5857fe5b066030017f010000000000000000000000000000000000000000000000000000000000000002828280600190039350815181101515613a9357fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a86811515613acf57fe5b049550613a42565b8194505b50505050919050565b6060613b138484846020604051908101604052806000815250602060405190810160405280600081525061481d565b90509392505050565b6000806000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480613b9057506000613b8e600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661367d565b145b15613ba157613b9f6000613688565b505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b158015613c2757600080fd5b505af1158015613c3b573d6000803e3d6000fd5b505050506040513d6020811015613c5157600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515613dba57600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b158015613d3e57600080fd5b505af1158015613d52573d6000803e3d6000fd5b505050506040513d6020811015613d6857600080fd5b8101908080519060200190929190505050600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632ef3accc86856040518363ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b83811015613e6b578082015181840152602081019050613e50565b50505050905090810190601f168015613e985780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b158015613eb857600080fd5b505af1158015613ecc573d6000803e3d6000fd5b505050506040513d6020811015613ee257600080fd5b81019080805190602001909291905050509050823a02670de0b6b3a764000001811115613f1557600060010291506140c8565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c51be90f8260008888886040518663ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808581526020018060200180602001848152602001838103835286818151815260200191508051906020019080838360005b83811015613fd4578082015181840152602081019050613fb9565b50505050905090810190601f1680156140015780820380516001836020036101000a031916815260200191505b50838103825285818151815260200191508051906020019080838360005b8381101561403a57808201518184015260208101905061401f565b50505050905090810190601f1680156140675780820380516001836020036101000a031916815260200191505b5096505050505050506020604051808303818588803b15801561408957600080fd5b505af115801561409d573d6000803e3d6000fd5b50505050506040513d60208110156140b457600080fd5b810190808051906020019092919050505091505b509392505050565b60006060806000808693508592508351915081835110156140f057825191505b600090505b8181101561433357828181518110151561410b57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916848281518110151561418657fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161015614221577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff945061437d565b828181518110151561422f57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191684828151811015156142aa57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161115614326576001945061437d565b80806001019150506140f5565b825184511015614365577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff945061437d565b825184511115614378576001945061437d565b600094505b5050505092915050565b6000806143a7731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed61367d565b111561444957731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506144406040805190810160405280600b81526020017f6574685f6d61696e6e6574000000000000000000000000000000000000000000815250614c32565b6001905061481a565b600061446873c03a2615d5efaf5f49f60b7bb6583eaec212fdf161367d565b111561450a5773c03a2615d5efaf5f49f60b7bb6583eaec212fdf1600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506145016040805190810160405280600c81526020017f6574685f726f707374656e330000000000000000000000000000000000000000815250614c32565b6001905061481a565b600061452973b7a07bcf2ba2f2703b24c0691b5278999c59ac7e61367d565b11156145cb5773b7a07bcf2ba2f2703b24c0691b5278999c59ac7e600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506145c26040805190810160405280600981526020017f6574685f6b6f76616e0000000000000000000000000000000000000000000000815250614c32565b6001905061481a565b60006145ea73146500cfd35b22e4a392fe0adc06de1a1368ed4861367d565b111561468c5773146500cfd35b22e4a392fe0adc06de1a1368ed48600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506146836040805190810160405280600b81526020017f6574685f72696e6b656279000000000000000000000000000000000000000000815250614c32565b6001905061481a565b60006146ab736f485c8bf6fc43ea212e93bbf8ce046c7f1cb47561367d565b111561470f57736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001905061481a565b600061472e7320e12a1f859b3feae5fb2a0a32c18f5a65555bbf61367d565b1115614792577320e12a1f859b3feae5fb2a0a32c18f5a65555bbf600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001905061481a565b60006147b17351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa61367d565b1115614815577351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001905061481a565b600090505b90565b6060806060806060806060806000808e98508d97508c96508b95508a94508451865188518a518c51010101016040519080825280601f01601f19166020018201604052801561487b5781602001602082028038833980820191505090505b50935083925060009150600090505b885181101561493d5788818151811015156148a157fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f010000000000000000000000000000000000000000000000000000000000000002838380600101945081518110151561490057fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350808060010191505061488a565b600090505b87518110156149f557878181518110151561495957fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f01000000000000000000000000000000000000000000000000000000000000000283838060010194508151811015156149b857fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080600101915050614942565b600090505b8651811015614aad578681815181101515614a1157fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000028383806001019450815181101515614a7057fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535080806001019150506149fa565b600090505b8551811015614b65578581815181101515614ac957fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000028383806001019450815181101515614b2857fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080600101915050614ab2565b600090505b8451811015614c1d578481815181101515614b8157fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000028383806001019450815181101515614be057fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080600101915050614b6a565b82995050505050505050505095945050505050565b8060039080519060200190614c48929190614d82565b5050565b815481835581811115614c7357818360005260206000209182019101614c729190614e02565b5b505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10614cb957805160ff1916838001178555614ce7565b82800160010185558215614ce7579182015b82811115614ce6578251825591602001919060010190614ccb565b5b509050614cf49190614e02565b5090565b828054828255906000526020600020908101928215614d71579160200282015b82811115614d705782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555091602001919060010190614d18565b5b509050614d7e9190614e27565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10614dc357805160ff1916838001178555614df1565b82800160010185558215614df1579182015b82811115614df0578251825591602001919060010190614dd5565b5b509050614dfe9190614e02565b5090565b614e2491905b80821115614e20576000816000905550600101614e08565b5090565b90565b614e6791905b80821115614e6357600081816101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905550600101614e2d565b5090565b905600a165627a7a723058201958eaba0155b50dca2d1932e90dc566efe3e5cf0f6f2e2b293f505fb22fdaa30029

Swarm Source

bzzr://1958eaba0155b50dca2d1932e90dc566efe3e5cf0f6f2e2b293f505fb22fdaa3

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.