Contract Overview
Balance: 0.91801514707945685 Ether
Ether Value: $80.51 (@ $87.70/ETH)
Transactions: 51 txns
Misc:
Address Watch: Add To Watch List
Contract Creator: 0xb0fd1b4b6adb95e03a6f9a88cd9830db56934077at txn 0xe86d2175bbc3d3afb7fd8cd34c6594c3a9f470211ad05163dc100309aa5b03c6
 Latest 25 transactions from a total of 51 transactions

TxHash Age From To Value [TxFee]
0x6f57a2bda1858fef97f1b7b359ea2623bf477208071de704250cabb38f26143110 hrs 53 mins ago0x000042425e06b0b1e8e20a811c91d6864608324b  IN   0xea6af92839cf5a0e8b4e6873d58634681cf701d10 Ether0.00204676
0x6e543a61192be4915e3e12bb7036823083838e271a8275018307d0bd070e937f10 hrs 53 mins ago0xb0fd1b4b6adb95e03a6f9a88cd9830db56934077  IN   0xea6af92839cf5a0e8b4e6873d58634681cf701d10 Ether0.0003463284
0x31ca1f1e63a910534c1d35b514643254b8c40a7108e967e70f0bb7e82c077d5c1 day 10 hrs ago0x00004242ca3469e30ae4a62775fee6584ed3fdca  IN   0xea6af92839cf5a0e8b4e6873d58634681cf701d10 Ether0.00204932
0x63a00aa56e76e55dacc213900f58fa7345db8460de548d4c4b8462dbcb7f4b181 day 10 hrs ago0xb0fd1b4b6adb95e03a6f9a88cd9830db56934077  IN   0xea6af92839cf5a0e8b4e6873d58634681cf701d10 Ether0.00052474
0xb9fa9b9d8ac5e975764205c59dc9ef1c0a78d4d25af1bae36105c2989a35bc1e2 days 10 hrs ago0x000042425e06b0b1e8e20a811c91d6864608324b  IN   0xea6af92839cf5a0e8b4e6873d58634681cf701d10 Ether0.00196138
0x6b0b64d73467beeaf5971b563f7b03a47fdd4da4fe3c80d8e5c3ad8585e9b0542 days 10 hrs ago0xb0fd1b4b6adb95e03a6f9a88cd9830db56934077  IN   0xea6af92839cf5a0e8b4e6873d58634681cf701d10 Ether0.00052474
0xf619f506658040fac854fdf5af75006c72b82d5441b62da1f186440a360f23be3 days 10 hrs ago0x000042425e06b0b1e8e20a811c91d6864608324b  IN   0xea6af92839cf5a0e8b4e6873d58634681cf701d10 Ether0.00204944
0xc955f1b43ce8711b03fe38a9e557fd9c9f1fd3d4a2760d7dcd456f76ab86c3b63 days 10 hrs ago0xb0fd1b4b6adb95e03a6f9a88cd9830db56934077  IN   0xea6af92839cf5a0e8b4e6873d58634681cf701d10 Ether0.00059689175
0xd1b98a1cd6f49a0282e6be3cde3887299549debb802b451cdd7fb88df4cff6124 days 10 hrs ago0x00004242f4449d49ec9c64ad6f9385a56b2a6297  IN   0xea6af92839cf5a0e8b4e6873d58634681cf701d10 Ether0.00196394
0x410ad0aef31fa180981883454cff5d8399657143e54812c9c1fcfe655018f4644 days 10 hrs ago0xb0fd1b4b6adb95e03a6f9a88cd9830db56934077  IN   0xea6af92839cf5a0e8b4e6873d58634681cf701d10 Ether0.0003463284
0x04b44586adc9b59f969edb41aee5122c707e62ebb767ca3cad4a3ca6f19935135 days 10 hrs ago0x00004242f4449d49ec9c64ad6f9385a56b2a6297  IN   0xea6af92839cf5a0e8b4e6873d58634681cf701d10 Ether0.00205334
0x2f2396e2249f49d6acc6f76715113a9fab1dbf0f4688a71af429ff6633213b045 days 10 hrs ago0xb0fd1b4b6adb95e03a6f9a88cd9830db56934077  IN   0xea6af92839cf5a0e8b4e6873d58634681cf701d10 Ether0.00052578948
0x3c7667a50a3a53502242605534d07b2b92aeef77568d44ad6cb1db3094b1be7f6 days 10 hrs ago0x00004242ca3469e30ae4a62775fee6584ed3fdca  IN   0xea6af92839cf5a0e8b4e6873d58634681cf701d10 Ether0.00205078
0x92547130e00c1a90e0d218790f1c2120344dddeade14eabf0636169e9dc8eb366 days 10 hrs ago0xb0fd1b4b6adb95e03a6f9a88cd9830db56934077  IN   0xea6af92839cf5a0e8b4e6873d58634681cf701d10 Ether0.000944532
0xc7e8960b218dbfe4f19cb12085734e36a2809922fc4ad456888099db5c7c6ee27 days 10 hrs ago0x00004242ca3469e30ae4a62775fee6584ed3fdca  IN   0xea6af92839cf5a0e8b4e6873d58634681cf701d10 Ether0.00205206
0xc595c6879c873a5115345e2739f5808672f5df1a1e676c068ea44880c0df8ccf7 days 10 hrs ago0xb0fd1b4b6adb95e03a6f9a88cd9830db56934077  IN   0xea6af92839cf5a0e8b4e6873d58634681cf701d10 Ether0.0003463284
0x380f100768b92609394c6a04fdebe49713caec0eeb4319136a5c37851c2e300d8 days 10 hrs ago0x00004242ca3469e30ae4a62775fee6584ed3fdca  IN   0xea6af92839cf5a0e8b4e6873d58634681cf701d10 Ether0.00195888
0x90778b8f6564f8730be4f3aecc47900dc35229de7a6a35428eed29f9d45e774f8 days 10 hrs ago0xb0fd1b4b6adb95e03a6f9a88cd9830db56934077  IN   0xea6af92839cf5a0e8b4e6873d58634681cf701d10 Ether0.000839584
0x414c35572ed3647fdefa589baa581bf10f610a667e23d615fefcca14f71c02a29 days 10 hrs ago0x00004242ca3469e30ae4a62775fee6584ed3fdca  IN   0xea6af92839cf5a0e8b4e6873d58634681cf701d10 Ether0.001964
0x3a3a4911c73a46c0c9eb42c4059a4faebf0259de593327ad60a47249ca30e6a89 days 10 hrs ago0xb0fd1b4b6adb95e03a6f9a88cd9830db56934077  IN   0xea6af92839cf5a0e8b4e6873d58634681cf701d10 Ether0.000734636
0x732f5c4071b4a515e4143a73b1678ee4bd39ae0c13a0f8ea3b81257540075fe910 days 10 hrs ago0x000042425e06b0b1e8e20a811c91d6864608324b  IN   0xea6af92839cf5a0e8b4e6873d58634681cf701d10 Ether0.00205206
0x273d22c7aa03d5214f223c0721b9ecd5a830c14361232ecbb57065f086017bd910 days 10 hrs ago0xb0fd1b4b6adb95e03a6f9a88cd9830db56934077  IN   0xea6af92839cf5a0e8b4e6873d58634681cf701d10 Ether0.000936700091
0xc4135a6f693bd03c143a588bc8638e5fb4900ea71425600fc140b1028f6c8f1a11 days 10 hrs ago0x00004242f4449d49ec9c64ad6f9385a56b2a6297  IN   0xea6af92839cf5a0e8b4e6873d58634681cf701d10 Ether0.0020495
0xe685f99ed171d5a4d94c321e8916bbd02503c46f2e578b06a399a3bdae35f2eb11 days 10 hrs ago0xb0fd1b4b6adb95e03a6f9a88cd9830db56934077  IN   0xea6af92839cf5a0e8b4e6873d58634681cf701d10 Ether0.000944532
0x6ca98a1776b6d398b245257753d9a98a7dda647be6f926108bd09c490faed2a612 days 10 hrs ago0x000042425e06b0b1e8e20a811c91d6864608324b  IN   0xea6af92839cf5a0e8b4e6873d58634681cf701d10 Ether0.00196144
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 24 Internal Transactions

ParentTxHash Block Age From To Value
0x6e543a61192be4915e3e12bb7036823083838e271a8275018307d0bd070e937f689213510 hrs 53 mins ago0xea6af92839cf5a0e8b4e6873d58634681cf701d10x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.01057240984544935 Ether
0x63a00aa56e76e55dacc213900f58fa7345db8460de548d4c4b8462dbcb7f4b1868860271 day 10 hrs ago0xea6af92839cf5a0e8b4e6873d58634681cf701d10x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.01057240984544935 Ether
0x6b0b64d73467beeaf5971b563f7b03a47fdd4da4fe3c80d8e5c3ad8585e9b05468799722 days 10 hrs ago0xea6af92839cf5a0e8b4e6873d58634681cf701d10x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.01057240984544935 Ether
0xc955f1b43ce8711b03fe38a9e557fd9c9f1fd3d4a2760d7dcd456f76ab86c3b668739173 days 10 hrs ago0xea6af92839cf5a0e8b4e6873d58634681cf701d10x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.01057240984544935 Ether
0x410ad0aef31fa180981883454cff5d8399657143e54812c9c1fcfe655018f46468678044 days 10 hrs ago0xea6af92839cf5a0e8b4e6873d58634681cf701d10x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.01057240984544935 Ether
0x2f2396e2249f49d6acc6f76715113a9fab1dbf0f4688a71af429ff6633213b0468617915 days 10 hrs ago0xea6af92839cf5a0e8b4e6873d58634681cf701d10x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.01057240984544935 Ether
0x92547130e00c1a90e0d218790f1c2120344dddeade14eabf0636169e9dc8eb3668556546 days 10 hrs ago0xea6af92839cf5a0e8b4e6873d58634681cf701d10x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.01057240984544935 Ether
0xc595c6879c873a5115345e2739f5808672f5df1a1e676c068ea44880c0df8ccf68495447 days 10 hrs ago0xea6af92839cf5a0e8b4e6873d58634681cf701d10x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.01057240984544935 Ether
0x90778b8f6564f8730be4f3aecc47900dc35229de7a6a35428eed29f9d45e774f68435588 days 10 hrs ago0xea6af92839cf5a0e8b4e6873d58634681cf701d10x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.01057240984544935 Ether
0x3a3a4911c73a46c0c9eb42c4059a4faebf0259de593327ad60a47249ca30e6a868375559 days 10 hrs ago0xea6af92839cf5a0e8b4e6873d58634681cf701d10x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.01047312641937925 Ether
0x273d22c7aa03d5214f223c0721b9ecd5a830c14361232ecbb57065f086017bd9683152810 days 10 hrs ago0xea6af92839cf5a0e8b4e6873d58634681cf701d10x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.01047312641937925 Ether
0xe685f99ed171d5a4d94c321e8916bbd02503c46f2e578b06a399a3bdae35f2eb682549811 days 10 hrs ago0xea6af92839cf5a0e8b4e6873d58634681cf701d10x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.01047312641937925 Ether
0xc5371a58bf92ef76e87d46af2b33351e47415bf5ce3a319a400b89540a61fef7681942012 days 10 hrs ago0xea6af92839cf5a0e8b4e6873d58634681cf701d10x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.01047312641937925 Ether
0x02279b4ffd5c22e9fcaf124303c0d6ad5a1accf46cf5f4872e5836333773d177681338513 days 10 hrs ago0xea6af92839cf5a0e8b4e6873d58634681cf701d10x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.01047312641937925 Ether
0x827a6db1d29bb9a8b7ca701b8e38493c0fb16b5559afd781f08d0cbbb1fa703d680736614 days 10 hrs ago0xea6af92839cf5a0e8b4e6873d58634681cf701d10x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.01047312641937925 Ether
0xa547438bd15d6251d2a8a65b1d131d4985d7304ca2d32fc6d46097e517b15904680130815 days 10 hrs ago0xea6af92839cf5a0e8b4e6873d58634681cf701d10x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.01047312641937925 Ether
0xadd4cc8b27852c45f1e97dce000de19151a281e14bce06be75437ce58b2599c8679521916 days 10 hrs ago0xea6af92839cf5a0e8b4e6873d58634681cf701d10x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.01047312641937925 Ether
0x7f21d1436d7abc1b8ce77217ae738c9db24be659c39879c667afa6c226ecebc1678912617 days 10 hrs ago0xea6af92839cf5a0e8b4e6873d58634681cf701d10x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.01047312641937925 Ether
0xe40aec7d05cddb7f1962d6494b1dc707a8d32e5d4dd6511e47de749ee1ed6824678309318 days 10 hrs ago0xea6af92839cf5a0e8b4e6873d58634681cf701d10x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.01047312641937925 Ether
0xa5ef199b82f799bf2f83f4699d0184b5d98f3419941fa77bac4c9c1c7303ddb5677710719 days 10 hrs ago0xea6af92839cf5a0e8b4e6873d58634681cf701d10x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0104203800235413 Ether
0x0388d0107a72ffd2cd8e07b4f609a62be204e50a52c239a7a2d7537e21333bb6677464119 days 20 hrs ago0xea6af92839cf5a0e8b4e6873d58634681cf701d10x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0104203800235413 Ether
0xef12bbfd7d10e6791db67eba725874085bcd5e10094038e6a8bf9c50c2023314677101620 days 10 hrs ago0xea6af92839cf5a0e8b4e6873d58634681cf701d10x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0104203800235413 Ether
0x2af4a0d2df7341639e1b87bbfe718fb74c5291edecb6eac0d6c613e86b6f6ffe676954220 days 16 hrs ago0xea6af92839cf5a0e8b4e6873d58634681cf701d10x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0104203800235413 Ether
0x69b56afce0d3a95e223d11ed2ba96cb1ea968f1d43c60863ac2121764c88bc83676948020 days 16 hrs ago0xea6af92839cf5a0e8b4e6873d58634681cf701d10x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0104203800235413 Ether
[ Download CSV Export  ] 
Contract Source Code Verified (Exact Match)
Contract Name: BitrueRaffleNumber
Compiler Text: v0.4.25+commit.59dbf8f1
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.25;

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;
      myid; result; proof; // Silence compiler warnings
    }

    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) constant 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(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(sha256(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(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))
        }
    }

}

contract owned {
    address public owner;

    constructor() public {
        owner = msg.sender;
    }

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

    function transferOwnership(address newOwner) onlyOwner public {
        owner = newOwner;
    }
}

contract BitrueRaffleNumber is usingOraclize,owned {
    
    event newRandomNumber_uint(uint random);
    
    uint public currentDate;
    mapping (uint => uint) public dateMapNumber;

    constructor() {
        oraclize_setProof(proofType_Ledger); 
    }
    

    function __callback(bytes32 _queryId, string _result, bytes _proof)
    { 
        require(msg.sender == oraclize_cbAddress());
        require(oraclize_randomDS_proofVerify__returnCode(_queryId, _result, _proof) == 0);
        uint n1 = uint(sha3(_result)) % 10000;
        uint n2 = uint(sha3(uint(sha3(_result))+now)) % 20;
        uint finalNumber = n1 * 100 + n2;
        dateMapNumber[currentDate] = finalNumber;
        emit newRandomNumber_uint(finalNumber);
    }
    
    function generateN(uint d) onlyOwner public payable{
        require(dateMapNumber[d]==0);
        currentDate = d;
        uint N = 7; 
        uint delay = 0;
        uint callbackGas = 500000;
        oraclize_newRandomDSQuery(delay, N, callbackGas);
    }
    
    function withdrawEther(uint256 amount) onlyOwner public {
	    msg.sender.transfer(amount);
	}
    
    function() external payable {
    }
}

    Contract ABI  
[{"constant":false,"inputs":[{"name":"myid","type":"bytes32"},{"name":"result","type":"string"}],"name":"__callback","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_queryId","type":"bytes32"},{"name":"_result","type":"string"},{"name":"_proof","type":"bytes"}],"name":"__callback","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"withdrawEther","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"dateMapNumber","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"currentDate","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"d","type":"uint256"}],"name":"generateN","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"random","type":"uint256"}],"name":"newRandomNumber_uint","type":"event"}]

  Contract Creation Code Switch To Opcodes View
60806040523480156200001157600080fd5b5060058054600160a060020a03191633179055620000587f30000000000000000000000000000000000000000000000000000000000000006401000000006200005e810204565b62000746565b600054600160a060020a031615806200009457506000546200009290600160a060020a0316640100000000620002bf810204565b155b15620000b157620000af6000640100000000620002c3810204565b505b6000809054906101000a9004600160a060020a0316600160a060020a03166338cc48316040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1580156200011d57600080fd5b505af115801562000132573d6000803e3d6000fd5b505050506040513d60208110156200014957600080fd5b5051600154600160a060020a039081169116146200021b576000809054906101000a9004600160a060020a0316600160a060020a03166338cc48316040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b158015620001cd57600080fd5b505af1158015620001e2573d6000803e3d6000fd5b505050506040513d6020811015620001f957600080fd5b505160018054600160a060020a031916600160a060020a039092169190911790555b600154604080517f688dcfd70000000000000000000000000000000000000000000000000000000081527fff00000000000000000000000000000000000000000000000000000000000000841660048201529051600160a060020a039092169163688dcfd79160248082019260009290919082900301818387803b158015620002a357600080fd5b505af1158015620002b8573d6000803e3d6000fd5b5050505050565b3b90565b6000620002d8640100000000620002de810204565b92915050565b60008062000309731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed640100000000620002bf810204565b1115620003875760008054600160a060020a031916731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed17905560408051808201909152600b81527f6574685f6d61696e6e657400000000000000000000000000000000000000000060208201526200037e906401000000006200068b810204565b50600162000688565b6000620003b173c03a2615d5efaf5f49f60b7bb6583eaec212fdf1640100000000620002bf810204565b1115620004265760008054600160a060020a03191673c03a2615d5efaf5f49f60b7bb6583eaec212fdf117905560408051808201909152600c81527f6574685f726f707374656e33000000000000000000000000000000000000000060208201526200037e906401000000006200068b810204565b60006200045073b7a07bcf2ba2f2703b24c0691b5278999c59ac7e640100000000620002bf810204565b1115620004c55760008054600160a060020a03191673b7a07bcf2ba2f2703b24c0691b5278999c59ac7e17905560408051808201909152600981527f6574685f6b6f76616e000000000000000000000000000000000000000000000060208201526200037e906401000000006200068b810204565b6000620004ef73146500cfd35b22e4a392fe0adc06de1a1368ed48640100000000620002bf810204565b1115620005645760008054600160a060020a03191673146500cfd35b22e4a392fe0adc06de1a1368ed4817905560408051808201909152600b81527f6574685f72696e6b65627900000000000000000000000000000000000000000060208201526200037e906401000000006200068b810204565b60006200058e736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475640100000000620002bf810204565b1115620005c4575060008054600160a060020a031916736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475179055600162000688565b6000620005ee7320e12a1f859b3feae5fb2a0a32c18f5a65555bbf640100000000620002bf810204565b111562000624575060008054600160a060020a0319167320e12a1f859b3feae5fb2a0a32c18f5a65555bbf179055600162000688565b60006200064e7351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa640100000000620002bf810204565b111562000684575060008054600160a060020a0319167351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa179055600162000688565b5060005b90565b8051620006a0906002906020840190620006a4565b5050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620006e757805160ff191683800117855562000717565b8280016001018555821562000717579182015b8281111562000717578251825591602001919060010190620006fa565b506200072592915062000729565b5090565b6200068891905b8082111562000725576000815560010162000730565b612a0480620007566000396000f3006080604052600436106100745763ffffffff60e060020a60003504166327dc297e811461007657806338bbfa50146100d15780633bed33ce1461016c57806344a766ae146101845780634f99b7c5146101ae5780638da5cb5b146101c3578063a8d51340146101f4578063f2fde38b146101ff575b005b34801561008257600080fd5b506100746004803590369060446024803590810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509497506102209650505050505050565b3480156100dd57600080fd5b506100746004803590369060446024803590810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509497969560208082019650903587018082019550359350839250601f83018190048102019050604051908101604052818152929190602084018383808284375094975061025e9650505050505050565b34801561017857600080fd5b506100746004356103d9565b34801561019057600080fd5b5061019c60043561041e565b60405190815260200160405180910390f35b3480156101ba57600080fd5b5061019c610432565b3480156101cf57600080fd5b506101d8610438565b604051600160a060020a03909116815260200160405180910390f35b610074600435610447565b34801561020b57600080fd5b50610074600160a060020a03600435166104a0565b61025a82826000604051818152601f19601f8301168101602001604052908015610254578160200160208202803883390190505b5061025e565b5050565b600080600061026b6104d9565b600160a060020a0316331461027f57600080fd5b61028a8686866106ac565b60ff161561029757600080fd5b612710856040518082805190602001908083835b602083106102ca5780518252601f1990920191602091820191016102ab565b6001836020036101000a038019825116818451161790925250505091909101925060409150505180910390208115156102ff57fe5b069250601442866040518082805190602001908083835b602083106103355780518252601f199092019160209182019101610316565b6001836020036101000a0380198251168184511617909252505050919091019250604091505051809103902001604051908152602001604051809103902081151561037c57fe5b069150818360640201905080600760006006548152602001908152602001600020557fb084d8f103616749e12a8d363f0b50f8bb8568b4086c093bd88140c74042c47a8160405190815260200160405180910390a1505050505050565b600554600160a060020a031633146103f057600080fd5b3381156108fc0282604051600060405180830381858888f1935050505015801561025a573d6000803e3d6000fd5b600760205280600052604060002054905081565b60065481565b600554600160a060020a031681565b60055460009081908190600160a060020a0316331461046557600080fd5b6000848152600760205260409020541561047e57600080fd5b5050506006819055600760006207a1206104998284836107d6565b5050505050565b600554600160a060020a031633146104b757600080fd5b60058054600160a060020a031916600160a060020a0392909216919091179055565b60008054600160a060020a03161580610504575060005461050290600160a060020a0316610cb4565b155b15610515576105136000610cb8565b505b600054600160a060020a03166338cc48316040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561055557600080fd5b505af1158015610569573d6000803e3d6000fd5b505050506040513d602081101561057f57600080fd5b810190808051600154600160a060020a03908116911614925061063391505057600054600160a060020a03166338cc48316040518163ffffffff1660e060020a028152600401602060405180830381600087803b1580156105df57600080fd5b505af11580156105f3573d6000803e3d6000fd5b505050506040513d602081101561060957600080fd5b81019080805160018054600160a060020a031916600160a060020a03929092169190911790555050505b600154600160a060020a031663c281d19e6040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561067357600080fd5b505af1158015610687573d6000803e3d6000fd5b505050506040513d602081101561069d57600080fd5b81019080805193505050505b90565b600080826000815181106106bc57fe5b016020015160f860020a900460f860020a02600160f860020a0319167f4c0000000000000000000000000000000000000000000000000000000000000014158061074e57508260018151811061070e57fe5b016020015160f860020a900460f860020a02600160f860020a0319167f500000000000000000000000000000000000000000000000000000000000000014155b8061079657508260028151811061076157fe5b01602001517fff0000000000000000000000000000000000000000000000000000000000000060f860020a9182900482021614155b156107a457600191506107ce565b6107b78386866107b2610cc8565b610d6a565b90508015156107c957600291506107ce565b600091505b509392505050565b6000606080606060006060806107ea612901565b6000606060008c1180156107ff575060208c11155b151561080a57600080fd5b600a8d029c506001604051818152601f19601f830116810160200160405290801561083f578160200160208202803883390190505b5098508b60f860020a028960008151811061085657fe5b906020010190600160f860020a031916908160001a9053506020604051818152601f19601f830116810160200160405290801561089d578160200160208202803883390190505b5097506020604051818152601f19601f83011681016020016040529080156108cf578160200160208202803883390190505b5096506108da61135f565b9550602088524241186001430340186020890152602087528560208801526020604051818152601f19601f8301168101602001604052908015610927578160200160208202803883390190505b5094508c60208601526008604051818152601f19601f830116810160200160405290801561095f578160200160208202803883390190505b50935061097285601860088760006114f9565b506080604051908101604052808981526020018a81526020018881526020018681525092506109d560408051908101604052600681527f72616e646f6d00000000000000000000000000000000000000000000000000006020820152848d611548565b91506008604051818152601f19601f8301168101602001604052908015610a06578160200160208202803883390190505b509050602084015160f860020a810460278301537e01000000000000000000000000000000000000000000000000000000000000810460268301537d0100000000000000000000000000000000000000000000000000000000008104602583015360e060020a810460248301537b01000000000000000000000000000000000000000000000000000000810460238301537a010000000000000000000000000000000000000000000000000000810460228301537901000000000000000000000000000000000000000000000000008104602183015378010000000000000000000000000000000000000000000000008104602083015350610ca482826020860151600287516040518082805190602001908083835b60208310610b3b5780518252601f199092019160209182019101610b1c565b6001836020036101000a0380198251168184511680821785525050505050509050019150506020604051808303816000865af1158015610b7f573d6000803e3d6000fd5b5050506040513d6020811015610b9457600080fd5b8101908080519250505060408801516040518085805190602001908083835b60208310610bd25780518252601f199092019160209182019101610bb3565b6001836020036101000a038019825116818451161790925250505091909101905084805190602001908083835b60208310610c1e5780518252601f199092019160209182019101610bff565b6001836020036101000a038019825116818451161790925250505091909101848152602001905082805190602001908083835b60208310610c705780518252601f199092019160209182019101610c51565b6001836020036101000a03801982511681845116179092525050509190910195506040945050505050518091039020611763565b509b9a5050505050505050505050565b3b90565b6000610cc2611778565b92915050565b606060028054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610d605780601f10610d3557610100808354040283529160200191610d60565b820191906000526020600020905b815481529060010190602001808311610d4357829003601f168201915b5050505050905090565b60008060608060608060008060608c604581518110610d8557fe5b016020015160f860020a9081900481020460660197506020604051818152601f19601f8301168101602001604052908015610dca578160200160208202803883390190505b509650610ddc8d8960208a60006114f9565b5060028a8d6040518083805190602001908083835b60208310610e105780518252601f199092019160209182019101610df1565b6001836020036101000a038019825116818451161790925250505091909101928352505060209081019150604051808303816000865af1158015610e58573d6000803e3d6000fd5b5050506040513d6020811015610e6d57600080fd5b81019080805192506040915050519081526020016040518091039020876040518082805190602001908083835b60208310610eb95780518252601f199092019160209182019101610e9a565b6001836020036101000a0380198251168184511617909252505050919091019250604091505051809103902014610ef3576000985061134f565b8c604a890181518110610f0257fe5b016020015160f860020a900460f860020a0260f860020a9004600201604051818152601f19601f8301168101602001604052908015610f4b578160200160208202803883390190505b509550610f608d8960490188518960006114f9565b506110316002876040518082805190602001908083835b60208310610f965780518252601f199092019160209182019101610f77565b6001836020036101000a0380198251168184511680821785525050505050509050019150506020604051808303816000865af1158015610fda573d6000803e3d6000fd5b5050506040513d6020811015610fef57600080fd5b81019080805190602001909291905050508c8f8b6020016008018151811061101357fe5b016020015160f860020a900460f860020a0260f860020a9004611a9c565b1515611040576000985061134f565b6029604051818152601f19601f830116810160200160405290801561106f578160200160208202803883390190505b5094506110848d8960200160298860006114f9565b5060408051818152601f19601f83011681016020016040529080156110b3578160200160208202803883390190505b5093508551886020016029010160410192506110d78d6040850360408760006114f9565b506002846040518082805190602001908083835b6020831061110a5780518252601f1990920191602091820191016110eb565b6001836020036101000a0380198251168184511680821785525050505050509050019150506020604051808303816000865af115801561114e573d6000803e3d6000fd5b5050506040513d602081101561116357600080fd5b810190808051945087925084915060409050518083805190602001908083835b602083106111a25780518252601f199092019160209182019101611183565b6001836020036101000a03801982511681845116179092525050509190910192835250506020019050604051809103902060008d81526003602052604090205414156111ff5760008c815260036020526040902060009055611208565b6000985061134f565b6049604051818152601f19601f8301168101602001604052908015611237578160200160208202803883390190505b5090506112498d8960498460006114f9565b506112eb6002826040518082805190602001908083835b6020831061127f5780518252601f199092019160209182019101611260565b6001836020036101000a0380198251168184511680821785525050505050509050019150506020604051808303816000865af11580156112c3573d6000803e3d6000fd5b5050506040513d60208110156112d857600080fd5b8101908080519250899150879050611b22565b15156112fa576000985061134f565b60008281526004602052604090205460ff16151561133a5761131c8d84611d47565b6000838152600460205260409020805460ff19169115159190911790555b60008281526004602052604090205460ff1698505b5050505050505050949350505050565b60008054600160a060020a0316158061138a575060005461138890600160a060020a0316610cb4565b155b1561139b576113996000610cb8565b505b600054600160a060020a03166338cc48316040518163ffffffff1660e060020a028152600401602060405180830381600087803b1580156113db57600080fd5b505af11580156113ef573d6000803e3d6000fd5b505050506040513d602081101561140557600080fd5b810190808051600154600160a060020a0390811691161492506114b991505057600054600160a060020a03166338cc48316040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561146557600080fd5b505af1158015611479573d6000803e3d6000fd5b505050506040513d602081101561148f57600080fd5b81019080805160018054600160a060020a031916600160a060020a03929092169190911790555050505b600154600160a060020a031663abaa5f3e6040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561067357600080fd5b6060838201600080828651101561150f57600080fd5b505060208087019084015b86886020010182101561153b5781890151868201526020918201910161151a565b5093979650505050505050565b60008054606090600160a060020a03161580611576575060005461157490600160a060020a0316610cb4565b155b15611587576115856000610cb8565b505b600054600160a060020a03166338cc48316040518163ffffffff1660e060020a028152600401602060405180830381600087803b1580156115c757600080fd5b505af11580156115db573d6000803e3d6000fd5b505050506040513d60208110156115f157600080fd5b810190808051600154600160a060020a0390811691161492506116a591505057600054600160a060020a03166338cc48316040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561165157600080fd5b505af1158015611665573d6000803e3d6000fd5b505050506040513d602081101561167b57600080fd5b81019080805160018054600160a060020a031916600160a060020a03929092169190911790555050505b60046040519080825280602002602001820160405280156116da57816020015b60608152602001906001900390816116c55790505b5090508351816000815181106116ec57fe5b6020908102909101015283600160200201518160018151811061170b57fe5b602090810291909101015260408401518160028151811061172857fe5b602090810291909101015260608401518160038151811061174557fe5b6020908102909101015261175a858285612174565b95945050505050565b60008281526003602052819060409020555050565b600080611798731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed610cb4565b11156118085760008054600160a060020a031916731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed17905561180060408051908101604052600b81527f6574685f6d61696e6e6574000000000000000000000000000000000000000000602082015261254c565b5060016106a9565b600061182773c03a2615d5efaf5f49f60b7bb6583eaec212fdf1610cb4565b111561188f5760008054600160a060020a03191673c03a2615d5efaf5f49f60b7bb6583eaec212fdf117905561180060408051908101604052600c81527f6574685f726f707374656e330000000000000000000000000000000000000000602082015261254c565b60006118ae73b7a07bcf2ba2f2703b24c0691b5278999c59ac7e610cb4565b11156119165760008054600160a060020a03191673b7a07bcf2ba2f2703b24c0691b5278999c59ac7e17905561180060408051908101604052600981527f6574685f6b6f76616e0000000000000000000000000000000000000000000000602082015261254c565b600061193573146500cfd35b22e4a392fe0adc06de1a1368ed48610cb4565b111561199d5760008054600160a060020a03191673146500cfd35b22e4a392fe0adc06de1a1368ed4817905561180060408051908101604052600b81527f6574685f72696e6b656279000000000000000000000000000000000000000000602082015261254c565b60006119bc736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475610cb4565b11156119f0575060008054600160a060020a031916736f485c8bf6fc43ea212e93bbf8ce046c7f1cb47517905560016106a9565b6000611a0f7320e12a1f859b3feae5fb2a0a32c18f5a65555bbf610cb4565b1115611a43575060008054600160a060020a0319167320e12a1f859b3feae5fb2a0a32c18f5a65555bbf17905560016106a9565b6000611a627351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa610cb4565b1115611a96575060008054600160a060020a0319167351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa17905560016106a9565b50600090565b600060018183855114611aae57600080fd5b5060005b83811015611b1557848181518110611ac657fe5b016020015160f860020a900460f860020a02600160f860020a0319168682602081101515611af057fe5b1a60f860020a02600160f860020a031916141515611b0d57600091505b600101611ab2565b8192505b50509392505050565b60008060008060006060600060606020604051818152601f19601f8301168101602001604052908015611b5f578160200160208202803883390190505b50925060208a600381518110611b7157fe5b016020015160f860020a900460f860020a0260f860020a9004036004019150611b9f8a8360208660006114f9565b92506020604051818152601f19601f8301168101602001604052908015611bd0578160200160208202803883390190505b509050602282019150611c148a60208c6001860381518110611bee57fe5b016020015160f860020a900460f860020a0260f860020a900403840160208460006114f9565b90506020830151945060208101519350611c318b601b878761255f565b9097509550600160a060020a038616896040518082805190602001908083835b60208310611c705780518252601f199092019160209182019101611c51565b6001836020036101000a03801982511681845116179092525050509190910192506040915050518091039020600160a060020a03161415611cb45760019750611d39565b611cc18b601c878761255f565b9097509550600160a060020a038616896040518082805190602001908083835b60208310611d005780518252601f199092019160209182019101611ce1565b6001836020036101000a03801982511681845116179092525050509190910192506040915050518091039020600160a060020a03161497505b505050505050509392505050565b60008060608060608060608060608a8a60010181518110611d6457fe5b016020015160f860020a900460f860020a0260f860020a9004600201604051818152601f19601f8301168101602001604052908015611dad578160200160208202803883390190505b509650611dbf8b8b89518a60006114f9565b5060408051818152601f19601f8301168101602001604052908015611dee578160200160208202803883390190505b509550611e018b600460408960006114f9565b506062604051818152601f19601f8301168101602001604052908015611e31578160200160208202803883390190505b50945060f860020a85600081518110611e4657fe5b906020010190600160f860020a031916908160001a905350611e708b60418c0360418860016114f9565b506040805190810160405280602081526020017ffd94fa71bc0ba10d39d464d0d8f465efeef0a2764e3887fcc9df41ded20f505c8152509350611eb984600060208860426114f9565b50611f5b6002866040518082805190602001908083835b60208310611eef5780518252601f199092019160209182019101611ed0565b6001836020036101000a0380198251168184511680821785525050505050509050019150506020604051808303816000865af1158015611f33573d6000803e3d6000fd5b5050506040513d6020811015611f4857600080fd5b81019080805192508a9150899050611b22565b9750871515611f6d5760009850612166565b606060405190810160405280604081526020017f7fb956469c5c9b89840d55b43537e66a98dd4811ea0a27224272c2e5622911e881526020017f537a2f8e86a46baec82864e98dd01e9ccc2f8bc5dfc9cbe5a91a290498dd96e481525092506042604051818152601f19601f8301168101602001604052908015611ffb578160200160208202803883390190505b5091507ffe000000000000000000000000000000000000000000000000000000000000008260008151811061202c57fe5b906020010190600160f860020a031916908160001a9053506120548b600360418560016114f9565b508a60458151811061206257fe5b016020015160f860020a900460f860020a0260f860020a9004600201604051818152601f19601f83011681016020016040529080156120ab578160200160208202803883390190505b5090506120be8b604483518460006114f9565b506121606002836040518082805190602001908083835b602083106120f45780518252601f1990920191602091820191016120d5565b6001836020036101000a0380198251168184511680821785525050505050509050019150506020604051808303816000865af1158015612138573d6000803e3d6000fd5b5050506040513d602081101561214d57600080fd5b8101908080519250849150869050611b22565b97508798505b505050505050505092915050565b600080548190606090600160a060020a031615806121a457506000546121a290600160a060020a0316610cb4565b155b156121b5576121b36000610cb8565b505b600054600160a060020a03166338cc48316040518163ffffffff1660e060020a028152600401602060405180830381600087803b1580156121f557600080fd5b505af1158015612209573d6000803e3d6000fd5b505050506040513d602081101561221f57600080fd5b810190808051600154600160a060020a0390811691161492506122d391505057600054600160a060020a03166338cc48316040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561227f57600080fd5b505af1158015612293573d6000803e3d6000fd5b505050506040513d60208110156122a957600080fd5b81019080805160018054600160a060020a031916600160a060020a03929092169190911790555050505b600154600160a060020a0316632ef3accc87866040518363ffffffff1660e060020a0281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b8381101561233b578082015183820152602001612323565b50505050905090810190601f1680156123685780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b15801561238857600080fd5b505af115801561239c573d6000803e3d6000fd5b505050506040513d60208110156123b257600080fd5b8101908080519450505050670de0b6b3a76400003a8502018211156123da5760009250611b19565b6123e38561259f565b600154909150600160a060020a031663c55c1cb68360008985896040518663ffffffff1660e060020a028152600401808581526020018060200180602001848152602001838103835286818151815260200191508051906020019080838360005b8381101561245c578082015183820152602001612444565b50505050905090810190601f1680156124895780820380516001836020036101000a031916815260200191505b50838103825285818151815260200191508051906020019080838360005b838110156124bf5780820151838201526020016124a7565b50505050905090810190601f1680156124ec5780820380516001836020036101000a031916815260200191505b5096505050505050506020604051808303818588803b15801561250e57600080fd5b505af1158015612522573d6000803e3d6000fd5b50505050506040513d602081101561253957600080fd5b8101908080519998505050505050505050565b600281805161025a929160200190612928565b60008060008060405188815287602082015286604082015285606082015260208160808360006001610bb8f1925080519299929850919650505050505050565b60606125a96129a6565b60006125b3612616565b6125bf82610400612622565b6125c882612650565b5060005b8351811015612603576125fb8482815181106125e457fe5b90602001906020020151839063ffffffff61265e16565b6001016125cc565b61260c82612680565b8151949350505050565b60405180590338823950565b8060208106156126355760208106602003015b60208301819052604051928390526000835290910160405250565b61265b816004612687565b50565b61266b82600283516126a0565b61267b828263ffffffff6127a416565b505050565b61265b8160075b61025a82601f602060ff8516021763ffffffff61284116565b601781116126c1576126bc8360ff848116602002168317612841565b61267b565b60ff81116126fa576126e2836018602060ff8616021763ffffffff61284116565b6126f48382600163ffffffff61287a16565b5061267b565b61ffff811161272e5761271c836019602060ff8616021763ffffffff61284116565b6126f48382600263ffffffff61287a16565b63ffffffff81116127645761275283601a602060ff8616021763ffffffff61284116565b6126f48382600463ffffffff61287a16565b67ffffffffffffffff811161267b5761278c83601b602060ff8616021763ffffffff61284116565b61279e8382600863ffffffff61287a16565b50505050565b6127ac6129a6565b600080600080866020015187515187510111156127de576127de876127d6896020015189516128d0565b6002026128e7565b8551915086518051602081830101955087510190526020860192505b6020821061281d57825184526020840193506020830192506020820391506127fa565b6001826020036101000a039050801983511681855116179093525093949350505050565b81602001518251516001011115612863576128638283602001516002026128e7565b815180516020818301018381535060010190525050565b6128826129a6565b60008460200151855151840111156128a6576128a6856127d68760200151866128d0565b6001836101000a039050845180518481830101868419825116179052909301909252509192915050565b6000818311156128e1575081610cc2565b50919050565b6060825190506128f78383612622565b61279e83826127a4565b60806040519081016040526004815b60608152602001906001900390816129105790505090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061296957805160ff1916838001178555612996565b82800160010185558215612996579182015b8281111561299657825182559160200191906001019061297b565b506129a29291506129be565b5090565b60408051908101604052606081526000602082015290565b6106a991905b808211156129a257600081556001016129c45600a165627a7a72305820c769db9ac62eeffbbe80f4d31eb3f37b33347019a9cef6081530e6d35bb092a80029

   Swarm Source:
bzzr://c769db9ac62eeffbbe80f4d31eb3f37b33347019a9cef6081530e6d35bb092a8

 

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