ETH Price: $3,388.93 (+1.31%)

Contract

0x46403E94529fC04d04c9C393bEAB1d050EF06409
 

Overview

ETH Balance

22.97913937790750725 ETH

Eth Value

$77,874.70 (@ $3,388.93/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x5512a353127438782021-07-01 20:23:311275 days ago1625171011IN
Fortunity
0 ETH0.0003475216
0x5512a353127438292021-07-01 20:13:271275 days ago1625170407IN
Fortunity
0 ETH0.000325815
__callback71312722019-01-26 22:58:132162 days ago1548543493IN
Fortunity
0 ETH0.0019146620
Roll71312692019-01-26 22:57:322162 days ago1548543452IN
Fortunity
0 ETH0.000176841.1
__callback71312682019-01-26 22:57:172162 days ago1548543437IN
Fortunity
0 ETH0.0019094220
Roll71312662019-01-26 22:56:552162 days ago1548543415IN
Fortunity
0 ETH0.000176841.1
__callback71312352019-01-26 22:48:192162 days ago1548542899IN
Fortunity
0 ETH0.0018242420
Roll71312332019-01-26 22:46:232162 days ago1548542783IN
Fortunity
0 ETH0.000176841.1
__callback66445142018-11-04 22:37:082245 days ago1541371028IN
Fortunity
0 ETH0.0018269220
Roll66445112018-11-04 22:36:262245 days ago1541370986IN
Fortunity
0 ETH0.000482313
__callback65986572018-10-28 10:19:492253 days ago1540721989IN
Fortunity
0 ETH0.0018256420
Roll65986022018-10-28 10:06:592253 days ago1540721219IN
Fortunity
0 ETH0.000482313
Roll65696722018-10-23 16:44:112258 days ago1540313051IN
Fortunity
0 ETH0.000113365
Transfer65105852018-10-14 1:04:552267 days ago1539479095IN
Fortunity
0 ETH0.000155033
Transfer65105852018-10-14 1:04:552267 days ago1539479095IN
Fortunity
0 ETH0.000155033
Transfer65105812018-10-14 1:04:112267 days ago1539479051IN
Fortunity
0 ETH0.000165373.2
Transfer65105632018-10-14 0:58:372267 days ago1539478717IN
Fortunity
0 ETH0.000103352
Transfer65105532018-10-14 0:55:502267 days ago1539478550IN
Fortunity
0 ETH0.000103352
Transfer65105532018-10-14 0:55:502267 days ago1539478550IN
Fortunity
0 ETH0.000108522.1
Transfer65105332018-10-14 0:52:422267 days ago1539478362IN
Fortunity
0 ETH0.000103352
Transfer65105292018-10-14 0:51:582267 days ago1539478318IN
Fortunity
0 ETH0.000155033
Transfer65105202018-10-14 0:49:522267 days ago1539478192IN
Fortunity
0 ETH0.000155033
Transfer65105162018-10-14 0:49:012267 days ago1539478141IN
Fortunity
0 ETH0.000155033
__callback65098762018-10-13 22:12:102267 days ago1539468730IN
Fortunity
0 ETH0.0018256420
Roll65098732018-10-13 22:11:472267 days ago1539468707IN
Fortunity
0 ETH0.000320852
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
71312692019-01-26 22:57:322162 days ago1548543452
Fortunity
0.00543327 ETH
71312662019-01-26 22:56:552162 days ago1548543415
Fortunity
0.00543327 ETH
71312382019-01-26 22:48:582162 days ago1548542938
Fortunity
0.1 ETH
71312332019-01-26 22:46:232162 days ago1548542783
Fortunity
0.00543327 ETH
71312172019-01-26 22:42:482162 days ago1548542568
Fortunity
0.1 ETH
71311742019-01-26 22:29:502162 days ago1548541790
Fortunity
0.05 ETH
67112632018-11-15 21:20:082234 days ago1542316808
Fortunity
0.05 ETH
66445112018-11-04 22:36:262245 days ago1541370986
Fortunity
0.00522803 ETH
66021732018-10-29 0:02:072252 days ago1540771327
Fortunity
0.1 ETH
65986022018-10-28 10:06:592253 days ago1540721219
Fortunity
0.00522803 ETH
65696612018-10-23 16:40:042258 days ago1540312804
Fortunity
0.05 ETH
65347782018-10-17 23:47:092263 days ago1539820029
Fortunity
0.1 ETH
65098732018-10-13 22:11:472267 days ago1539468707
Fortunity
0.00522803 ETH
64862632018-10-10 2:23:502271 days ago1539138230
Fortunity
0.05 ETH
64835812018-10-09 15:57:162272 days ago1539100636
Fortunity
0.00522803 ETH
64799532018-10-09 1:34:052272 days ago1539048845
Fortunity
0.00522803 ETH
64697042018-10-07 10:07:042274 days ago1538906824
Fortunity
0.1 ETH
64696802018-10-07 10:02:462274 days ago1538906566
Fortunity
0.00522803 ETH
64696652018-10-07 9:59:312274 days ago1538906371
Fortunity
0.00522803 ETH
64668262018-10-06 22:53:362274 days ago1538866416
Fortunity
0.00522803 ETH
64547572018-10-04 23:56:492276 days ago1538697409
Fortunity
0.1 ETH
64523902018-10-04 14:49:292277 days ago1538664569
Fortunity
0.1 ETH
64400272018-10-02 14:19:152279 days ago1538489955
Fortunity
0.00522803 ETH
64305242018-10-01 1:07:062280 days ago1538356026
Fortunity
0.5 ETH
64302082018-09-30 23:45:222280 days ago1538351122
Fortunity
0.05 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BONUSROLL

Compiler Version
v0.4.20+commit.3155dd80

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2018-09-19
*/

pragma solidity ^0.4.20;

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

}

//////////////////////////////////////////////////////////////////////////////////////////////////////
//                                                                                                  //
//                                       SAFE MATH LIBRARY                                          //
//                                                                                                  //
//////////////////////////////////////////////////////////////////////////////////////////////////////

library SafeMath {
    function add(uint a, uint b) internal pure returns (uint c) {
        c = a + b;
        require(c >= a);
    }
    function sub(uint a, uint b) internal pure returns (uint c) {
        require(b <= a);
        c = a - b;
    }
    function mul(uint a, uint b) internal pure returns (uint c) {
        c = a * b;
        require(a == 0 || c / a == b);
    }
    function div(uint a, uint b) internal pure returns (uint c) {
        require(b > 0);
        c = a / b;
    }
}


//////////////////////////////////////////////////////////////////////////////////////////////////////
//                                                                                                  //
//                                       ERC20 INTERFACE                                            //
//                                                                                                  //
//////////////////////////////////////////////////////////////////////////////////////////////////////

contract ERC20Interface {
    function totalSupply() public constant returns (uint);
    function balanceOf(address tokenOwner) public constant returns (uint balance);
    function allowance(address tokenOwner, address spender) public constant returns (uint remaining);
    function transfer(address to, uint tokens) public returns (bool success);
    function approve(address spender, uint tokens) public returns (bool success);
    function transferFrom(address from, address to, uint tokens) public returns (bool success);

    event Transfer(address indexed from, address indexed to, uint tokens);
    event Approval(address indexed tokenOwner, address indexed spender, uint tokens);
}


//////////////////////////////////////////////////////////////////////////////////////////////////////
//                                                                                                  //
//                                      GAME EVENT INTERFACE                                        //
//                                                                                                  //
//////////////////////////////////////////////////////////////////////////////////////////////////////

contract GameEventInterface {
    event BuyTickets(address game, address to, uint amount);
    event Winner(address game, address to, uint prize, uint random_number, uint buyer_who_won);
    event Jackpot(address game, address to, uint jackpot);
}

//////////////////////////////////////////////////////////////////////////////////////////////////////
//                                                                                                  //
//                                    AWARD TOKEN INTERFACE                                         //
//                                                                                                  //
//////////////////////////////////////////////////////////////////////////////////////////////////////

contract AwardsTokensInterface {
    function awardToken(address toAddress, uint amount) public;
    function receiveFromGame() public payable;
    function addGame(address gameAddress, uint amount) public;
}

//////////////////////////////////////////////////////////////////////////////////////////////////////
//                                                                                                  //
//                                      BONUS ROLL CONTRACT                                         //
//                                                                                                  //
//////////////////////////////////////////////////////////////////////////////////////////////////////

contract BONUSROLL is ERC20Interface, GameEventInterface, AwardsTokensInterface, usingOraclize {
    using SafeMath for uint;
    
    /////////////////////////----- VARIABLES -----////////////////////////////////////
                                                                                    //
    string public constant symbol = "BNS";                                          //
    string public constant name = "Bonus Token";                                    //
    uint8 public constant decimals = 18;                                            //
    uint256 _totalSupply = 10000000000 * 10**uint(decimals);                        //
    mapping(address => uint256) balances;                                           //
    mapping(address => mapping (address => uint256)) allowed;                       //
                                                                                    //
    address public owner;                                                           //
    mapping (uint => address) queue;                                                //
    mapping (uint => uint) rollAmounts;                                             //
    uint queueLength;                                                               //
    uint queueIndex;                                                                //
    mapping(address => bool) games;                                                 //
    mapping(address => uint) gamesAmount;                                           //
                                                                                    //
    uint ledgerCount = 0;                                                           //
                                                                                    //
    //////////////////////////////////////////////////////////////////////////////////
    
    
    /////////////////////////----- CONSTRUCTOR -----//////////////////////////////////
                                                                                    //
    function BONUSROLL() public {                                                   //
        owner = msg.sender;                                                         //
        balances[owner] = _totalSupply;                                             //
        Transfer(address(0), msg.sender, _totalSupply);                             //
        queueIndex = 0;                                                             //
        queueLength = 0;                                                            //
                                                                                    //
                                                                                    //
        oraclize_setProof(proofType_Ledger);                                        //
    }                                                                               //
                                                                                    //
    // MODIFIER FOR FUNCTIONS TO ONLY GET RUN BY OWNER                              //
    modifier onlyOwner () {                                                         //
        require(msg.sender == owner);                                               //
        _;                                                                          //
    }                                                                               //
                                                                                    //
    // MODIFIER FOR FUNCTIONS TO ONLY GET RUN BY GAME CONTRACT                      //
    modifier onlyGame () {                                                          //
        require(games[msg.sender]);                                                 //
        _;                                                                          //
    }                                                                               //
                                                                                    //
    event EthReceived(address inAddress, uint amount);                              //
                                                                                    //
    function() public payable {                                                     //
        msg.sender.transfer(msg.value);                                             //
    }                                                                               //
                                                                                    //
                                                                                    //
    //////////////////////////////////////////////////////////////////////////////////


    /////////////////////////----- GAME SPECIFIC -----////////////////////////////////
                                                                                    //
    function addGame (address gameAddress, uint tokenPrMTicket) public onlyOwner {  //
        require(gameAddress != address(0));                                         //
                                                                                    //
        games[gameAddress] = true;                                                  //
        gamesAmount[gameAddress] = tokenPrMTicket;                                  //
        approve(gameAddress, _totalSupply);                                         //
    }                                                                               //
                                                                                    //
    function receiveFromGame() public payable {                                     //
        EthReceived(msg.sender, msg.value);                                         //
    }                                                                               //
                                                                                    //
    //AWARD BNS TOKEN TO PLAYER                                                     //
    function awardToken (address toAddress, uint ticketAmount) public onlyGame {    //
                                                                                    // *
        uint factor = 1;                                                            // *
                                                                                    // *
        if (this.balance < 1 ether){                                                // *
            factor = 50;                                                            // *
        }                                                                           // *
        else if (this.balance < 2 ether){                                           // *
            factor = 40;                                                            // *
        }                                                                           // *
        else if (this.balance < 4 ether){                                           // *
            factor = 30;                                                            // *
        }                                                                           // *
        else if (this.balance < 8 ether){                                           // *
            factor = 20;                                                            // *
        }                                                                           // *
        else if (this.balance < 16 ether){                                          // *
            factor = 15;                                                            // *
        }                                                                           // *
        else if (this.balance < 32 ether){                                          // *
            factor = 10;                                                            // *
        }                                                                           // *
        else if (this.balance < 64 ether){                                          // *
            factor = 8;                                                             // *
        }                                                                           // *
        else if (this.balance < 128 ether){                                         // *
            factor = 6;                                                             // *
        }                                                                           // *
        else if (this.balance < 256 ether){                                         // *
            factor = 4;                                                             // *
        }                                                                           // *
        else if (this.balance < 512 ether){                                         // *
            factor = 2;                                                             // *
        }                                                                           // *
                                                                                    // *
                                                                                    // *
        require(games[msg.sender]);                                                 //
        uint toAward = (gamesAmount[msg.sender]*ticketAmount)*1000000000000*factor; //
        transferFrom(owner, toAddress, toAward);                                    //
    }                                                                               //
                                                                                    //
    //////////////////////////////////////////////////////////////////////////////////
    

    //////////////////////////----- BONUS ROLL -----//////////////////////////////////
                                                                                    //
    //roll with bns tokens                                                          //
    function roll(uint amount) public {                                             //
        require((amount == 10 && this.balance >= 256 ether) || (amount == 100 && this.balance >= 4 ether) || amount == 1000); 
        uint price = (amount * 10**uint(decimals)); //full tokens                   //
        require(balanceOf(msg.sender) >= price);                                    //
        queue[queueLength] = msg.sender;                                            //
        rollAmounts[queueLength] = amount;                                          //
        queueLength += 1;                                                           //
        transfer(owner, price);                                                     //
        getRandom();                                                                //
    }                                                                               //
                                                                                    //
    event LedgerFailed(string status);                                              //
    event GotRandom(uint number);                                                   //
                                                                                    //
    function __callback(bytes32 _queryId, string _result, bytes _proof) public {    //
        require (msg.sender == oraclize_cbAddress());                               //
                                                                                    //
        if(oraclize_randomDS_proofVerify__returnCode(_queryId, _result, _proof) == 0){
            uint randomNumber = uint(keccak256(_result));                           //
            startRaffle((randomNumber % 1000000)+1);                                //
        }                                                                           //
        else if (ledgerCount <= 2){                                                 //
            LedgerFailed("Requesting new");                                         //
            ledgerCount = ledgerCount.add(1);                                       //
            getRandom();                                                            //
        }                                                                           //
        else {                                                                      //
            LedgerFailed("Stopping");                                               //
        }                                                                           //
                                                                                    //
    }                                                                               //
                                                                                    //
    function getRandom() internal {                                                 //
        uint N = 7;                                                                 //
        uint delay = 0;                                                             //
        uint callbackGas = 250000;                                                  //
        bytes32 queryId = oraclize_newRandomDSQuery(delay, N, callbackGas);         //
    }                                                                               //
                                                                                    //
                                                                                    //
    function startRaffle(uint random) internal {                                    //
        address tempPlayer = queue[queueIndex];                                     //
        delete(queue[queueIndex]);                                                  //
        uint winLimit = (rollAmounts[queueIndex].mul(10));                          //
        delete(rollAmounts[queueIndex]);                                            //
        queueIndex += 1;                                                            //
                                                                                    //
        GotRandom(random);                                                          //
                                                                                    //
        if(random <= winLimit){                                                     //
            Winner(address(this), tempPlayer, address(this).balance, random, 0);    //
            tempPlayer.transfer((address(this).balance).div(2));                    //
        }                                                                           //
    }                                                                               //
                                                                                    //
    function takeAll() public onlyOwner {                                           //
        msg.sender.transfer(address(this).balance);                                 //
    }                                                                               //
                                                                                    //
    //////////////////////////////////////////////////////////////////////////////////
    
    
    ////////////////////////----- ERC20 IMPLEMENTATION -----//////////////////////////
                                                                                    //
    function totalSupply() public constant returns (uint) {                         //
        return _totalSupply  - balances[address(0)];                                //
    }                                                                               //
                                                                                    //
    function balanceOf(address tokenOwner) public constant returns (uint balance) { //
        return balances[tokenOwner];                                                //
    }                                                                               //
                                                                                    //
    function transfer(address to, uint tokens) public returns (bool success) {      //
        require(to != address(0));                                                  //
        balances[msg.sender] = balances[msg.sender].sub(tokens);                    //
        balances[to] = balances[to].add(tokens);                                    //
        Transfer(msg.sender, to, tokens);                                           //
        return true;                                                                //
    }                                                                               //
                                                                                    //
    function approve(address spender, uint tokens) public returns (bool success) {  //
        allowed[msg.sender][spender] = tokens;                                      //
        Approval(msg.sender, spender, tokens);                                      //
        return true;                                                                //
    }                                                                               //
                                                                                    //
    function transferFrom(address from, address to, uint tokens) public returns (bool success) {
        require(to != address(0));                                                  //
        balances[from] = balances[from].sub(tokens);                                //
        allowed[from][msg.sender] = allowed[from][msg.sender].sub(tokens);          //
        balances[to] = balances[to].add(tokens);                                    //
        Transfer(from, to, tokens);                                                 //
        return true;                                                                //
    }                                                                               //
                                                                                    //
    function allowance(address tokenOwner, address spender) public constant returns (uint remaining) {
        return allowed[tokenOwner][spender];                                        //
    }                                                                               //
                                                                                    //
    //////////////////////////////////////////////////////////////////////////////////
    
    //in case oraclize doesn't answer, force a roll                                 // *
    function forceRoll() public onlyOwner {                                         // *
        ledgerCount = 0;                                                            // *
        getRandom();                                                                // *
    }                                                                               // *
    
    
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"tokens","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"roll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"tokens","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"myid","type":"bytes32"},{"name":"result","type":"string"}],"name":"__callback","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"receiveFromGame","outputs":[],"payable":true,"stateMutability":"payable","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":"gameAddress","type":"address"},{"name":"tokenPrMTicket","type":"uint256"}],"name":"addGame","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"tokenOwner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"tokens","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"forceRoll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"tokenOwner","type":"address"},{"name":"spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"takeAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"toAddress","type":"address"},{"name":"ticketAmount","type":"uint256"}],"name":"awardToken","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":"inAddress","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"EthReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"status","type":"string"}],"name":"LedgerFailed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"number","type":"uint256"}],"name":"GotRandom","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"game","type":"address"},{"indexed":false,"name":"to","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"BuyTickets","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"game","type":"address"},{"indexed":false,"name":"to","type":"address"},{"indexed":false,"name":"prize","type":"uint256"},{"indexed":false,"name":"random_number","type":"uint256"},{"indexed":false,"name":"buyer_who_won","type":"uint256"}],"name":"Winner","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"game","type":"address"},{"indexed":false,"name":"to","type":"address"},{"indexed":false,"name":"jackpot","type":"uint256"}],"name":"Jackpot","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"tokens","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"tokenOwner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"tokens","type":"uint256"}],"name":"Approval","type":"event"}]

6060604052601260ff16600a0a6402540be400026005556000600f5534156200002757600080fd5b33600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060055460066000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6005546040518082815260200191505060405180910390a36000600c819055506000600b819055506200018a60307f010000000000000000000000000000000000000000000000000000000000000002620001906401000000000262004dd0176401000000009004565b62000ba3565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614806200021657506000620002146000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16620005176401000000000262002510176401000000009004565b145b156200023e576200023c600062000522640100000000026200251b176401000000009004565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515620002cc57600080fd5b6102c65a03f11515620002de57600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415156200042a576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515620003cd57600080fd5b6102c65a03f11515620003df57600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663688dcfd7826040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001915050600060405180830381600087803b1515620004ff57600080fd5b6102c65a03f115156200051157600080fd5b50505050565b6000813b9050919050565b6000620005426200054964010000000002620034be176401000000009004565b9050919050565b6000806200057f731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed620005176401000000000262002510176401000000009004565b11156200063857731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506200062e6040805190810160405280600b81526020017f6574685f6d61696e6e657400000000000000000000000000000000000000000081525062000ad864010000000002620047f2176401000000009004565b6001905062000ad5565b60006200066d73c03a2615d5efaf5f49f60b7bb6583eaec212fdf1620005176401000000000262002510176401000000009004565b1115620007265773c03a2615d5efaf5f49f60b7bb6583eaec212fdf16000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506200071c6040805190810160405280600c81526020017f6574685f726f707374656e33000000000000000000000000000000000000000081525062000ad864010000000002620047f2176401000000009004565b6001905062000ad5565b60006200075b73b7a07bcf2ba2f2703b24c0691b5278999c59ac7e620005176401000000000262002510176401000000009004565b1115620008145773b7a07bcf2ba2f2703b24c0691b5278999c59ac7e6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506200080a6040805190810160405280600981526020017f6574685f6b6f76616e000000000000000000000000000000000000000000000081525062000ad864010000000002620047f2176401000000009004565b6001905062000ad5565b60006200084973146500cfd35b22e4a392fe0adc06de1a1368ed48620005176401000000000262002510176401000000009004565b1115620009025773146500cfd35b22e4a392fe0adc06de1a1368ed486000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620008f86040805190810160405280600b81526020017f6574685f72696e6b65627900000000000000000000000000000000000000000081525062000ad864010000000002620047f2176401000000009004565b6001905062000ad5565b600062000937736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475620005176401000000000262002510176401000000009004565b11156200099c57736f485c8bf6fc43ea212e93bbf8ce046c7f1cb4756000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001905062000ad5565b6000620009d17320e12a1f859b3feae5fb2a0a32c18f5a65555bbf620005176401000000000262002510176401000000009004565b111562000a36577320e12a1f859b3feae5fb2a0a32c18f5a65555bbf6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001905062000ad5565b600062000a6b7351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa620005176401000000000262002510176401000000009004565b111562000ad0577351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001905062000ad5565b600090505b90565b806002908051906020019062000af092919062000af4565b5050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1062000b3757805160ff191683800117855562000b68565b8280016001018555821562000b68579182015b8281111562000b6757825182559160200191906001019062000b4a565b5b50905062000b77919062000b7b565b5090565b62000ba091905b8082111562000b9c57600081600090555060010162000b82565b5090565b90565b61514e8062000bb36000396000f3006060604052600436106100fc576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306fdde031461013e578063095ea7b3146101cc57806318160ddd146102265780631f7b4f301461024f57806323b872dd1461027257806327dc297e146102eb578063313ce56714610355578063386304e41461038457806338bbfa501461038e5780635dce431b1461043b57806370a082311461047d5780638da5cb5b146104ca57806395d89b411461051f578063a9059cbb146105ad578063cbc9023c14610607578063dd62ed3e1461061c578063de3bcb9714610688578063ded2d0f41461069d575b3373ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050151561013c57600080fd5b005b341561014957600080fd5b6101516106df565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610191578082015181840152602081019050610176565b50505050905090810190601f1680156101be5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156101d757600080fd5b61020c600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610718565b604051808215151515815260200191505060405180910390f35b341561023157600080fd5b61023961080a565b6040518082815260200191505060405180910390f35b341561025a57600080fd5b6102706004808035906020019091905050610855565b005b341561027d57600080fd5b6102d1600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff169060200190919080359060200190919050506109af565b604051808215151515815260200191505060405180910390f35b34156102f657600080fd5b61035360048080356000191690602001909190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610c95565b005b341561036057600080fd5b610368610cc7565b604051808260ff1660ff16815260200191505060405180910390f35b61038c610ccc565b005b341561039957600080fd5b61043960048080356000191690602001909190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610d39565b005b341561044657600080fd5b61047b600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610f27565b005b341561048857600080fd5b6104b4600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190505061106c565b6040518082815260200191505060405180910390f35b34156104d557600080fd5b6104dd6110b5565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561052a57600080fd5b6105326110db565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610572578082015181840152602081019050610557565b50505050905090810190601f16801561059f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156105b857600080fd5b6105ed600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050611114565b604051808215151515815260200191505060405180910390f35b341561061257600080fd5b61061a6112ea565b005b341561062757600080fd5b610672600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050611358565b6040518082815260200191505060405180910390f35b341561069357600080fd5b61069b6113df565b005b34156106a857600080fd5b6106dd600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050611494565b005b6040805190810160405280600b81526020017f426f6e757320546f6b656e00000000000000000000000000000000000000000081525081565b600081600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a36001905092915050565b6000600660008073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205460055403905090565b6000600a821480156108875750680de0b6b3a7640000003073ffffffffffffffffffffffffffffffffffffffff163110155b806108bd57506064821480156108bc5750673782dace9d9000003073ffffffffffffffffffffffffffffffffffffffff163110155b5b806108c957506103e882145b15156108d457600080fd5b601260ff16600a0a82029050806108ea3361106c565b101515156108f757600080fd5b3360096000600b54815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600a6000600b548152602001908152602001600020819055506001600b600082825401925050819055506109a2600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682611114565b506109ab6117b6565b5050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141515156109ec57600080fd5b610a3e82600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546117dd90919063ffffffff16565b600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610b1082600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546117dd90919063ffffffff16565b600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610be282600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546117f990919063ffffffff16565b600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a3600190509392505050565b610cc382826000604051805910610ca95750595b9080825280601f01601f1916602001820160405250610d39565b5050565b601281565b7f85177f287940f2f05425a4029951af0e047a7f9c4eaa9a6e6917bcd869f866953334604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a1565b6000610d43611815565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610d7c57600080fd5b6000610d89858585611b2b565b60ff161415610e1a57826040518082805190602001908083835b602083101515610dc85780518252602082019150602081019050602083039250610da3565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020600190049050610e156001620f424083811515610e0e57fe5b0601611d62565b610f21565b6002600f54111515610eb7577fba25832029411687c394a824d87712e78d92bf39588b54f10b611d6ed2464dec60405180806020018281038252600e8152602001807f52657175657374696e67206e657700000000000000000000000000000000000081525060200191505060405180910390a1610ea46001600f546117f990919063ffffffff16565b600f81905550610eb26117b6565b610f20565b7fba25832029411687c394a824d87712e78d92bf39588b54f10b611d6ed2464dec6040518080602001828103825260088152602001807f53746f7070696e6700000000000000000000000000000000000000000000000081525060200191505060405180910390a15b5b50505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610f8357600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614151515610fbf57600080fd5b6001600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555080600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061106782600554610718565b505050565b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6040805190810160405280600381526020017f424e53000000000000000000000000000000000000000000000000000000000081525081565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415151561115157600080fd5b6111a382600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546117dd90919063ffffffff16565b600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061123882600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546117f990919063ffffffff16565b600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a36001905092915050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561134657600080fd5b6000600f819055506113566117b6565b565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561143b57600080fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc3073ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f19350505050151561149257600080fd5b565b600080600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615156114ef57600080fd5b60019150670de0b6b3a76400003073ffffffffffffffffffffffffffffffffffffffff1631101561152357603291506116dd565b671bc16d674ec800003073ffffffffffffffffffffffffffffffffffffffff1631101561155357602891506116dc565b673782dace9d9000003073ffffffffffffffffffffffffffffffffffffffff1631101561158357601e91506116db565b676f05b59d3b2000003073ffffffffffffffffffffffffffffffffffffffff163110156115b357601491506116da565b67de0b6b3a764000003073ffffffffffffffffffffffffffffffffffffffff163110156115e357600f91506116d9565b6801bc16d674ec8000003073ffffffffffffffffffffffffffffffffffffffff1631101561161457600a91506116d8565b6803782dace9d90000003073ffffffffffffffffffffffffffffffffffffffff1631101561164557600891506116d7565b6806f05b59d3b20000003073ffffffffffffffffffffffffffffffffffffffff1631101561167657600691506116d6565b680de0b6b3a7640000003073ffffffffffffffffffffffffffffffffffffffff163110156116a757600491506116d5565b681bc16d674ec80000003073ffffffffffffffffffffffffffffffffffffffff163110156116d457600291505b5b5b5b5b5b5b5b5b5b600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151561173557600080fd5b8164e8d4a5100084600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205402020290506117af600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1685836109af565b5050505050565b60008060008060079350600092506203d09091506117d5838584611fa0565b905050505050565b60008282111515156117ee57600080fd5b818303905092915050565b6000818301905082811015151561180f57600080fd5b92915050565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480611885575060006118836000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612510565b145b1561189657611894600061251b565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561192357600080fd5b6102c65a03f1151561193457600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515611a7d576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515611a2157600080fd5b6102c65a03f11515611a3257600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c281d19e6000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515611b0b57600080fd5b6102c65a03f11515611b1c57600080fd5b50505060405180519050905090565b6000807f4c00000000000000000000000000000000000000000000000000000000000000836000815181101515611b5e57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141580611c7357507f5000000000000000000000000000000000000000000000000000000000000000836001815181101515611c0357fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614155b80611d1c575060017f010000000000000000000000000000000000000000000000000000000000000002836002815181101515611cac57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614155b15611d2a5760019150611d5a565b611d3d838686611d3861252c565b6125d4565b9050600015158115151415611d555760029150611d5a565b600091505b509392505050565b60008060096000600c54815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16915060096000600c54815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055611dfd600a806000600c54815260200190815260200160002054612d3790919063ffffffff16565b9050600a6000600c548152602001908152602001600020600090556001600c600082825401925050819055507f8954b4d6771943e184c537ec3af71baceb42e4d040b7073b7e7593504cb6d03f836040518082815260200191505060405180910390a18083111515611f9b577fdebf20cc3076b61eb4f3c15975aab71e4d1a8e8bcb8d4060d313b032cc836fa430833073ffffffffffffffffffffffffffffffffffffffff1631866000604051808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018481526020018381526020018281526020019550505050505060405180910390a18173ffffffffffffffffffffffffffffffffffffffff166108fc611f7560023073ffffffffffffffffffffffffffffffffffffffff1631612d6890919063ffffffff16565b9081150290604051600060405180830381858888f193505050501515611f9a57600080fd5b5b505050565b6000611faa614c8d565b611fb2614c8d565b611fba614c8d565b6000611fc4614c8d565b611fcc614c8d565b611fd4614ca1565b6000611fde614c8d565b60008c118015611fef575060208c11155b1515611ffa57600080fd5b600a8d029c50600160405180591061200f5750595b9080825280601f01601f191660200182016040525098508b7f01000000000000000000000000000000000000000000000000000000000000000289600081518110151561205857fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060206040518059106120975750595b9080825280601f01601f1916602001820160405250975060206040518059106120bd5750595b9080825280601f01601f191660200182016040525096506120dc612d8c565b95506020885242411860014303401860208901526020875285602088015260206040518059106121095750595b9080825280601f01601f191660200182016040525094508c602086015260086040518059106121355750595b9080825280601f01601f1916602001820160405250935061215c85601860088760006130a2565b506080604051908101604052808981526020018a81526020018881526020018681525092506121c16040805190810160405280600681526020017f72616e646f6d0000000000000000000000000000000000000000000000000000815250848d613108565b915060086040518059106121d25750595b9080825280601f01601f1916602001820160405250905060208401517f0100000000000000000000000000000000000000000000000000000000000000810460278301537e01000000000000000000000000000000000000000000000000000000000000810460268301537d010000000000000000000000000000000000000000000000000000000000810460258301537c0100000000000000000000000000000000000000000000000000000000810460248301537b01000000000000000000000000000000000000000000000000000000810460238301537a0100000000000000000000000000000000000000000000000000008104602283015379010000000000000000000000000000000000000000000000000081046021830153780100000000000000000000000000000000000000000000000081046020830153506124fd828285600160048110151561232757fe5b6020020151600287600060048110151561233d57fe5b60200201516000604051602001526040518082805190602001908083835b602083101515612380578051825260208201915060208101905060208303925061235b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f115156123c257600080fd5b5050604051805190508760026004811015156123da57fe5b60200201516040518085805190602001908083835b60208310151561241457805182526020820191506020810190506020830392506123ef565b6001836020036101000a03801982511681845116808217855250505050505090500184805190602001908083835b6020831015156124675780518252602082019150602081019050602083039250612442565b6001836020036101000a038019825116818451168082178552505050505050905001836000191660001916815260200182805190602001908083835b6020831015156124c857805182526020820191506020810190506020830392506124a3565b6001836020036101000a0380198251168184511680821785525050505050509050019450505050506040518091039020613496565b8199505050505050505050509392505050565b6000813b9050919050565b60006125256134be565b9050919050565b612534614ccf565b60028054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156125ca5780601f1061259f576101008083540402835291602001916125ca565b820191906000526020600020905b8154815290600101906020018083116125ad57829003601f168201915b5050505050905090565b6000806125df614c8d565b6125e7614c8d565b6125ef614c8d565b6125f7614c8d565b600080612602614c8d565b602060028e604581518110151561261557fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027f010000000000000000000000000000000000000000000000000000000000000090040160440101975060206040518059106126995750595b9080825280601f01601f191660200182016040525096506126bf8d8960208a60006130a2565b5060028a8d6000604051602001526040518083805190602001908083835b60208310151561270257805182526020820191506020810190506020830392506126dd565b6001836020036101000a03801982511681845116808217855250505050505090500182600019166000191681526020019250505060206040518083038160008661646e5a03f1151561275357600080fd5b505060405180519050604051808260001916600019168152602001915050604051809103902060001916876040518082805190602001908083835b6020831015156127b3578051825260208201915060208101905060208303925061278e565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020600019161415156127f45760009850612d27565b60028d600160498b010181518110151561280a57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027f01000000000000000000000000000000000000000000000000000000000000009004016040518059106128865750595b9080825280601f01601f191660200182016040525095506128af8d60498a0188518960006130a2565b506129c76002876000604051602001526040518082805190602001908083835b6020831015156128f457805182526020820191506020810190506020830392506128cf565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f1151561293657600080fd5b5050604051805190508c8f600860208d010181518110151561295457fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027f0100000000000000000000000000000000000000000000000000000000000000900461394d565b15156129d65760009850612d27565b60296040518059106129e55750595b9080825280601f01601f19166020018201604052509450612a0e8d60208a0160298860006130a2565b5060408051805910612a1d5750595b9080825280601f01601f1916602001820160405250935060418651602960208b010101019250612a558d6040850360408760006130a2565b506002846000604051602001526040518082805190602001908083835b602083101515612a975780518252602082019150602081019050602083039250612a72565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f11515612ad957600080fd5b505060405180519050915084826040518083805190602001908083835b602083101515612b1b5780518252602082019150602081019050602083039250612af6565b6001836020036101000a038019825116818451168082178552505050505050905001826000191660001916815260200192505050604051809103902060001916600360008e6000191660001916815260200190815260200160002054600019161415612ba557600360008d6000191660001916815260200190815260200160002060009055612bae565b60009850612d27565b6049604051805910612bbd5750595b9080825280601f01601f19166020018201604052509050612be38d8960498460006130a2565b50612c7a6002826000604051602001526040518082805190602001908083835b602083101515612c285780518252602082019150602081019050602083039250612c03565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f11515612c6a57600080fd5b5050604051805190508786613a65565b1515612c895760009850612d27565b6000151560046000846000191660001916815260200190815260200160002060009054906101000a900460ff1615151415612cfb57612cc88d84613d7c565b60046000846000191660001916815260200190815260200160002060006101000a81548160ff0219169083151502179055505b60046000836000191660001916815260200190815260200160002060009054906101000a900460ff1698505b5050505050505050949350505050565b600081830290506000831480612d575750818382811515612d5457fe5b04145b1515612d6257600080fd5b92915050565b60008082111515612d7857600080fd5b8183811515612d8357fe5b04905092915050565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480612dfc57506000612dfa6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612510565b145b15612e0d57612e0b600061251b565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515612e9a57600080fd5b6102c65a03f11515612eab57600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515612ff4576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515612f9857600080fd5b6102c65a03f11515612fa957600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663abaa5f3e6000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561308257600080fd5b6102c65a03f1151561309357600080fd5b50505060405180519050905090565b6130aa614c8d565b60008060008487019250828651101515156130c457600080fd5b8760200191508460200190505b8688602001018210156130f957818901518082880152506020820191506020810190506130d1565b85935050505095945050505050565b6000613112614ce3565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614806131815750600061317f6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612510565b145b1561319257613190600061251b565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561321f57600080fd5b6102c65a03f1151561323057600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515613379576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561331d57600080fd5b6102c65a03f1151561332e57600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b60046040518059106133885750595b9080825280602002602001820160405280156133be57816020015b6133ab614cf7565b8152602001906001900390816133a35790505b5090508360006004811015156133d057fe5b60200201518160008151811015156133e457fe5b9060200190602002018190525083600160048110151561340057fe5b602002015181600181518110151561341457fe5b9060200190602002018190525083600260048110151561343057fe5b602002015181600281518110151561344457fe5b9060200190602002018190525083600360048110151561346057fe5b602002015181600381518110151561347457fe5b9060200190602002018190525061348c85828561428e565b9150509392505050565b8060036000846000191660001916815260200190815260200160002081600019169055505050565b6000806134de731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed612510565b111561357f57731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506135766040805190810160405280600b81526020017f6574685f6d61696e6e65740000000000000000000000000000000000000000008152506147f2565b6001905061394a565b600061359e73c03a2615d5efaf5f49f60b7bb6583eaec212fdf1612510565b111561363f5773c03a2615d5efaf5f49f60b7bb6583eaec212fdf16000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506136366040805190810160405280600c81526020017f6574685f726f707374656e3300000000000000000000000000000000000000008152506147f2565b6001905061394a565b600061365e73b7a07bcf2ba2f2703b24c0691b5278999c59ac7e612510565b11156136ff5773b7a07bcf2ba2f2703b24c0691b5278999c59ac7e6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506136f66040805190810160405280600981526020017f6574685f6b6f76616e00000000000000000000000000000000000000000000008152506147f2565b6001905061394a565b600061371e73146500cfd35b22e4a392fe0adc06de1a1368ed48612510565b11156137bf5773146500cfd35b22e4a392fe0adc06de1a1368ed486000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506137b66040805190810160405280600b81526020017f6574685f72696e6b6562790000000000000000000000000000000000000000008152506147f2565b6001905061394a565b60006137de736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475612510565b111561384157736f485c8bf6fc43ea212e93bbf8ce046c7f1cb4756000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001905061394a565b60006138607320e12a1f859b3feae5fb2a0a32c18f5a65555bbf612510565b11156138c3577320e12a1f859b3feae5fb2a0a32c18f5a65555bbf6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001905061394a565b60006138e27351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa612510565b1115613945577351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001905061394a565b600090505b90565b60008060006001915083855114151561396557600080fd5b600090505b83811015613a5957848181518110151561398057fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191686826020811015156139fb57fe5b1a7f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141515613a4c57600091505b808060010191505061396a565b81925050509392505050565b6000806000806000613a75614c8d565b6000613a7f614c8d565b6020604051805910613a8e5750595b9080825280601f01601f1916602001820160405250925060208a6003815181101515613ab657fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027f01000000000000000000000000000000000000000000000000000000000000009004036004019150613b398a8360208660006130a2565b92506020604051805910613b4a5750595b9080825280601f01601f19166020018201604052509050602282019150613bf98a60208c60018603815181101515613b7e57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027f0100000000000000000000000000000000000000000000000000000000000000900403840160208460006130a2565b90506020830151945060208101519350613c168b601b878761480c565b80975081985050508573ffffffffffffffffffffffffffffffffffffffff16896040518082805190602001908083835b602083101515613c6b5780518252602082019150602081019050602083039250613c46565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206001900473ffffffffffffffffffffffffffffffffffffffff161415613cc15760019750613d6e565b613cce8b601c878761480c565b80975081985050508573ffffffffffffffffffffffffffffffffffffffff16896040518082805190602001908083835b602083101515613d235780518252602082019150602081019050602083039250613cfe565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206001900473ffffffffffffffffffffffffffffffffffffffff161497505b505050505050509392505050565b600080613d87614c8d565b613d8f614c8d565b613d97614c8d565b613d9f614c8d565b613da7614c8d565b613daf614c8d565b613db7614c8d565b60028b60018c01815181101515613dca57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027f0100000000000000000000000000000000000000000000000000000000000000900401604051805910613e465750595b9080825280601f01601f19166020018201604052509650613e6c8b8b89518a60006130a2565b5060408051805910613e7b5750595b9080825280601f01601f19166020018201604052509550613ea28b600460408960006130a2565b506062604051805910613eb25750595b9080825280601f01601f1916602001820160405250945060017f010000000000000000000000000000000000000000000000000000000000000002856000815181101515613efc57fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613f3e8b60418c0360418860016130a2565b506040805190810160405280602081526020017ffd94fa71bc0ba10d39d464d0d8f465efeef0a2764e3887fcc9df41ded20f505c8152509350613f8784600060208860426130a2565b5061401e6002866000604051602001526040518082805190602001908083835b602083101515613fcc5780518252602082019150602081019050602083039250613fa7565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f1151561400e57600080fd5b5050604051805190508888613a65565b97506000151588151514156140365760009850614280565b606060405190810160405280604081526020017f7fb956469c5c9b89840d55b43537e66a98dd4811ea0a27224272c2e5622911e881526020017f537a2f8e86a46baec82864e98dd01e9ccc2f8bc5dfc9cbe5a91a290498dd96e4815250925060426040518059106140a45750595b9080825280601f01601f1916602001820160405250915060fe7f0100000000000000000000000000000000000000000000000000000000000000028260008151811015156140ee57fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061412e8b600360418560016130a2565b5060028b604581518110151561414057fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027f01000000000000000000000000000000000000000000000000000000000000009004016040518059106141bc5750595b9080825280601f01601f191660200182016040525090506141e38b604483518460006130a2565b5061427a6002836000604051602001526040518082805190602001908083835b6020831015156142285780518252602082019150602081019050602083039250614203565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f1151561426a57600080fd5b5050604051805190508285613a65565b97508798505b505050505050505092915050565b600080614299614c8d565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480614308575060006143066000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612510565b145b1561431957614317600061251b565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15156143a657600080fd5b6102c65a03f115156143b757600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515614500576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15156144a457600080fd5b6102c65a03f115156144b557600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632ef3accc87866000604051602001526040518363ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b838110156145ba57808201518184015260208101905061459f565b50505050905090810190601f1680156145e75780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b151561460657600080fd5b6102c65a03f1151561461757600080fd5b505050604051805190509150833a02670de0b6b3a76400000182111561464357600060010292506147e9565b61464c85614850565b9050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c55c1cb68360008985896000604051602001526040518663ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808581526020018060200180602001848152602001838103835286818151815260200191508051906020019080838360005b838110156147165780820151818401526020810190506146fb565b50505050905090810190601f1680156147435780820380516001836020036101000a031916815260200191505b50838103825285818151815260200191508051906020019080838360005b8381101561477c578082015181840152602081019050614761565b50505050905090810190601f1680156147a95780820380516001836020036101000a031916815260200191505b5096505050505050506020604051808303818588803b15156147ca57600080fd5b6125ee5a03f115156147db57600080fd5b505050506040518051905092505b50509392505050565b8060029080519060200190614808929190614d0b565b5050565b60008060008060405188815287602082015286604082015285606082015260208160808360006001610bb8f192508051915050818193509350505094509492505050565b614858614c8d565b614860614d8b565b600061486a6148db565b614876826104006148e7565b61487f82614937565b600090505b83518110156148c4576148b7848281518110151561489e57fe5b906020019060200201518361494590919063ffffffff16565b8080600101915050614884565b6148cd8261496a565b816000015192505050919050565b60405180590338823950565b600081905060006020828115156148fa57fe5b061415156149175760208181151561490e57fe5b06602003810190505b808360200181815250506040518084526000815281810160405250505050565b614942816004614978565b50565b614952826002835161499c565b6149658183614af590919063ffffffff16565b505050565b614975816007614978565b50565b614998601f60058360ff169060020a021783614ba190919063ffffffff16565b5050565b6017811115156149cd576149c88160058460ff169060020a0260ff161784614ba190919063ffffffff16565b614af0565b60ff81111515614a13576149f7601860058460ff169060020a021784614ba190919063ffffffff16565b614a0d81600185614be19092919063ffffffff16565b50614aef565b61ffff81111515614a5a57614a3e601960058460ff169060020a021784614ba190919063ffffffff16565b614a5481600285614be19092919063ffffffff16565b50614aee565b63ffffffff81111515614aa357614a87601a60058460ff169060020a021784614ba190919063ffffffff16565b614a9d81600485614be19092919063ffffffff16565b50614aed565b67ffffffffffffffff81111515614aec57614ad4601b60058460ff169060020a021784614ba190919063ffffffff16565b614aea81600885614be19092919063ffffffff16565b505b5b5b5b5b505050565b614afd614d8b565b60008060008086602001518760000151518751011115614b3357614b32876002614b2c8a602001518a51614c48565b02614c64565b5b8551915086518051602081830101955087518101825260208801945050505b602082101515614b775782518452602084019350602083019250602082039150614b52565b6001826020036101000a039050801983511681855116818117865250508694505050505092915050565b81602001516001836000015151011115614bc757614bc6826002846020015102614c64565b5b815180516020818301018381536001820183525050505050565b614be9614d8b565b6000846020015185600001515184011115614c1957614c18856002614c12886020015187614c48565b02614c64565b5b6001836101000a0390508451805184818301018684198251161781528582018352505050849150509392505050565b600081831115614c5a57829050614c5e565b8190505b92915050565b614c6c614c8d565b82600001519050614c7d83836148e7565b614c878382614af5565b50505050565b602060405190810160405280600081525090565b6080604051908101604052806004905b614cb9614cf7565b815260200190600190039081614cb15790505090565b602060405190810160405280600081525090565b602060405190810160405280600081525090565b602060405190810160405280600081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10614d4c57805160ff1916838001178555614d7a565b82800160010185558215614d7a579182015b82811115614d79578251825591602001919060010190614d5e565b5b509050614d879190614dab565b5090565b6040805190810160405280614d9e614cf7565b8152602001600081525090565b614dcd91905b80821115614dc9576000816000905550600101614db1565b5090565b90565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480614e3f57506000614e3d6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612510565b145b15614e5057614e4e600061251b565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515614edd57600080fd5b6102c65a03f11515614eee57600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515615037576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515614fdb57600080fd5b6102c65a03f11515614fec57600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663688dcfd7826040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001915050600060405180830381600087803b151561510b57600080fd5b6102c65a03f1151561511c57600080fd5b505050505600a165627a7a72305820f9ace8262628d715630956e550509f03341120c503e806607fd07e6838bdf2c90029

Deployed Bytecode

0x6060604052600436106100fc576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306fdde031461013e578063095ea7b3146101cc57806318160ddd146102265780631f7b4f301461024f57806323b872dd1461027257806327dc297e146102eb578063313ce56714610355578063386304e41461038457806338bbfa501461038e5780635dce431b1461043b57806370a082311461047d5780638da5cb5b146104ca57806395d89b411461051f578063a9059cbb146105ad578063cbc9023c14610607578063dd62ed3e1461061c578063de3bcb9714610688578063ded2d0f41461069d575b3373ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050151561013c57600080fd5b005b341561014957600080fd5b6101516106df565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610191578082015181840152602081019050610176565b50505050905090810190601f1680156101be5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156101d757600080fd5b61020c600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610718565b604051808215151515815260200191505060405180910390f35b341561023157600080fd5b61023961080a565b6040518082815260200191505060405180910390f35b341561025a57600080fd5b6102706004808035906020019091905050610855565b005b341561027d57600080fd5b6102d1600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff169060200190919080359060200190919050506109af565b604051808215151515815260200191505060405180910390f35b34156102f657600080fd5b61035360048080356000191690602001909190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610c95565b005b341561036057600080fd5b610368610cc7565b604051808260ff1660ff16815260200191505060405180910390f35b61038c610ccc565b005b341561039957600080fd5b61043960048080356000191690602001909190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610d39565b005b341561044657600080fd5b61047b600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610f27565b005b341561048857600080fd5b6104b4600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190505061106c565b6040518082815260200191505060405180910390f35b34156104d557600080fd5b6104dd6110b5565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561052a57600080fd5b6105326110db565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610572578082015181840152602081019050610557565b50505050905090810190601f16801561059f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156105b857600080fd5b6105ed600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050611114565b604051808215151515815260200191505060405180910390f35b341561061257600080fd5b61061a6112ea565b005b341561062757600080fd5b610672600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050611358565b6040518082815260200191505060405180910390f35b341561069357600080fd5b61069b6113df565b005b34156106a857600080fd5b6106dd600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050611494565b005b6040805190810160405280600b81526020017f426f6e757320546f6b656e00000000000000000000000000000000000000000081525081565b600081600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a36001905092915050565b6000600660008073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205460055403905090565b6000600a821480156108875750680de0b6b3a7640000003073ffffffffffffffffffffffffffffffffffffffff163110155b806108bd57506064821480156108bc5750673782dace9d9000003073ffffffffffffffffffffffffffffffffffffffff163110155b5b806108c957506103e882145b15156108d457600080fd5b601260ff16600a0a82029050806108ea3361106c565b101515156108f757600080fd5b3360096000600b54815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600a6000600b548152602001908152602001600020819055506001600b600082825401925050819055506109a2600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682611114565b506109ab6117b6565b5050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141515156109ec57600080fd5b610a3e82600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546117dd90919063ffffffff16565b600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610b1082600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546117dd90919063ffffffff16565b600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610be282600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546117f990919063ffffffff16565b600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a3600190509392505050565b610cc382826000604051805910610ca95750595b9080825280601f01601f1916602001820160405250610d39565b5050565b601281565b7f85177f287940f2f05425a4029951af0e047a7f9c4eaa9a6e6917bcd869f866953334604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a1565b6000610d43611815565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610d7c57600080fd5b6000610d89858585611b2b565b60ff161415610e1a57826040518082805190602001908083835b602083101515610dc85780518252602082019150602081019050602083039250610da3565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020600190049050610e156001620f424083811515610e0e57fe5b0601611d62565b610f21565b6002600f54111515610eb7577fba25832029411687c394a824d87712e78d92bf39588b54f10b611d6ed2464dec60405180806020018281038252600e8152602001807f52657175657374696e67206e657700000000000000000000000000000000000081525060200191505060405180910390a1610ea46001600f546117f990919063ffffffff16565b600f81905550610eb26117b6565b610f20565b7fba25832029411687c394a824d87712e78d92bf39588b54f10b611d6ed2464dec6040518080602001828103825260088152602001807f53746f7070696e6700000000000000000000000000000000000000000000000081525060200191505060405180910390a15b5b50505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610f8357600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614151515610fbf57600080fd5b6001600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555080600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061106782600554610718565b505050565b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6040805190810160405280600381526020017f424e53000000000000000000000000000000000000000000000000000000000081525081565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415151561115157600080fd5b6111a382600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546117dd90919063ffffffff16565b600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061123882600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546117f990919063ffffffff16565b600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a36001905092915050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561134657600080fd5b6000600f819055506113566117b6565b565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561143b57600080fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc3073ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f19350505050151561149257600080fd5b565b600080600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615156114ef57600080fd5b60019150670de0b6b3a76400003073ffffffffffffffffffffffffffffffffffffffff1631101561152357603291506116dd565b671bc16d674ec800003073ffffffffffffffffffffffffffffffffffffffff1631101561155357602891506116dc565b673782dace9d9000003073ffffffffffffffffffffffffffffffffffffffff1631101561158357601e91506116db565b676f05b59d3b2000003073ffffffffffffffffffffffffffffffffffffffff163110156115b357601491506116da565b67de0b6b3a764000003073ffffffffffffffffffffffffffffffffffffffff163110156115e357600f91506116d9565b6801bc16d674ec8000003073ffffffffffffffffffffffffffffffffffffffff1631101561161457600a91506116d8565b6803782dace9d90000003073ffffffffffffffffffffffffffffffffffffffff1631101561164557600891506116d7565b6806f05b59d3b20000003073ffffffffffffffffffffffffffffffffffffffff1631101561167657600691506116d6565b680de0b6b3a7640000003073ffffffffffffffffffffffffffffffffffffffff163110156116a757600491506116d5565b681bc16d674ec80000003073ffffffffffffffffffffffffffffffffffffffff163110156116d457600291505b5b5b5b5b5b5b5b5b5b600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151561173557600080fd5b8164e8d4a5100084600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205402020290506117af600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1685836109af565b5050505050565b60008060008060079350600092506203d09091506117d5838584611fa0565b905050505050565b60008282111515156117ee57600080fd5b818303905092915050565b6000818301905082811015151561180f57600080fd5b92915050565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480611885575060006118836000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612510565b145b1561189657611894600061251b565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561192357600080fd5b6102c65a03f1151561193457600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515611a7d576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515611a2157600080fd5b6102c65a03f11515611a3257600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c281d19e6000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515611b0b57600080fd5b6102c65a03f11515611b1c57600080fd5b50505060405180519050905090565b6000807f4c00000000000000000000000000000000000000000000000000000000000000836000815181101515611b5e57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141580611c7357507f5000000000000000000000000000000000000000000000000000000000000000836001815181101515611c0357fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614155b80611d1c575060017f010000000000000000000000000000000000000000000000000000000000000002836002815181101515611cac57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614155b15611d2a5760019150611d5a565b611d3d838686611d3861252c565b6125d4565b9050600015158115151415611d555760029150611d5a565b600091505b509392505050565b60008060096000600c54815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16915060096000600c54815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055611dfd600a806000600c54815260200190815260200160002054612d3790919063ffffffff16565b9050600a6000600c548152602001908152602001600020600090556001600c600082825401925050819055507f8954b4d6771943e184c537ec3af71baceb42e4d040b7073b7e7593504cb6d03f836040518082815260200191505060405180910390a18083111515611f9b577fdebf20cc3076b61eb4f3c15975aab71e4d1a8e8bcb8d4060d313b032cc836fa430833073ffffffffffffffffffffffffffffffffffffffff1631866000604051808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018481526020018381526020018281526020019550505050505060405180910390a18173ffffffffffffffffffffffffffffffffffffffff166108fc611f7560023073ffffffffffffffffffffffffffffffffffffffff1631612d6890919063ffffffff16565b9081150290604051600060405180830381858888f193505050501515611f9a57600080fd5b5b505050565b6000611faa614c8d565b611fb2614c8d565b611fba614c8d565b6000611fc4614c8d565b611fcc614c8d565b611fd4614ca1565b6000611fde614c8d565b60008c118015611fef575060208c11155b1515611ffa57600080fd5b600a8d029c50600160405180591061200f5750595b9080825280601f01601f191660200182016040525098508b7f01000000000000000000000000000000000000000000000000000000000000000289600081518110151561205857fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060206040518059106120975750595b9080825280601f01601f1916602001820160405250975060206040518059106120bd5750595b9080825280601f01601f191660200182016040525096506120dc612d8c565b95506020885242411860014303401860208901526020875285602088015260206040518059106121095750595b9080825280601f01601f191660200182016040525094508c602086015260086040518059106121355750595b9080825280601f01601f1916602001820160405250935061215c85601860088760006130a2565b506080604051908101604052808981526020018a81526020018881526020018681525092506121c16040805190810160405280600681526020017f72616e646f6d0000000000000000000000000000000000000000000000000000815250848d613108565b915060086040518059106121d25750595b9080825280601f01601f1916602001820160405250905060208401517f0100000000000000000000000000000000000000000000000000000000000000810460278301537e01000000000000000000000000000000000000000000000000000000000000810460268301537d010000000000000000000000000000000000000000000000000000000000810460258301537c0100000000000000000000000000000000000000000000000000000000810460248301537b01000000000000000000000000000000000000000000000000000000810460238301537a0100000000000000000000000000000000000000000000000000008104602283015379010000000000000000000000000000000000000000000000000081046021830153780100000000000000000000000000000000000000000000000081046020830153506124fd828285600160048110151561232757fe5b6020020151600287600060048110151561233d57fe5b60200201516000604051602001526040518082805190602001908083835b602083101515612380578051825260208201915060208101905060208303925061235b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f115156123c257600080fd5b5050604051805190508760026004811015156123da57fe5b60200201516040518085805190602001908083835b60208310151561241457805182526020820191506020810190506020830392506123ef565b6001836020036101000a03801982511681845116808217855250505050505090500184805190602001908083835b6020831015156124675780518252602082019150602081019050602083039250612442565b6001836020036101000a038019825116818451168082178552505050505050905001836000191660001916815260200182805190602001908083835b6020831015156124c857805182526020820191506020810190506020830392506124a3565b6001836020036101000a0380198251168184511680821785525050505050509050019450505050506040518091039020613496565b8199505050505050505050509392505050565b6000813b9050919050565b60006125256134be565b9050919050565b612534614ccf565b60028054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156125ca5780601f1061259f576101008083540402835291602001916125ca565b820191906000526020600020905b8154815290600101906020018083116125ad57829003601f168201915b5050505050905090565b6000806125df614c8d565b6125e7614c8d565b6125ef614c8d565b6125f7614c8d565b600080612602614c8d565b602060028e604581518110151561261557fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027f010000000000000000000000000000000000000000000000000000000000000090040160440101975060206040518059106126995750595b9080825280601f01601f191660200182016040525096506126bf8d8960208a60006130a2565b5060028a8d6000604051602001526040518083805190602001908083835b60208310151561270257805182526020820191506020810190506020830392506126dd565b6001836020036101000a03801982511681845116808217855250505050505090500182600019166000191681526020019250505060206040518083038160008661646e5a03f1151561275357600080fd5b505060405180519050604051808260001916600019168152602001915050604051809103902060001916876040518082805190602001908083835b6020831015156127b3578051825260208201915060208101905060208303925061278e565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020600019161415156127f45760009850612d27565b60028d600160498b010181518110151561280a57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027f01000000000000000000000000000000000000000000000000000000000000009004016040518059106128865750595b9080825280601f01601f191660200182016040525095506128af8d60498a0188518960006130a2565b506129c76002876000604051602001526040518082805190602001908083835b6020831015156128f457805182526020820191506020810190506020830392506128cf565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f1151561293657600080fd5b5050604051805190508c8f600860208d010181518110151561295457fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027f0100000000000000000000000000000000000000000000000000000000000000900461394d565b15156129d65760009850612d27565b60296040518059106129e55750595b9080825280601f01601f19166020018201604052509450612a0e8d60208a0160298860006130a2565b5060408051805910612a1d5750595b9080825280601f01601f1916602001820160405250935060418651602960208b010101019250612a558d6040850360408760006130a2565b506002846000604051602001526040518082805190602001908083835b602083101515612a975780518252602082019150602081019050602083039250612a72565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f11515612ad957600080fd5b505060405180519050915084826040518083805190602001908083835b602083101515612b1b5780518252602082019150602081019050602083039250612af6565b6001836020036101000a038019825116818451168082178552505050505050905001826000191660001916815260200192505050604051809103902060001916600360008e6000191660001916815260200190815260200160002054600019161415612ba557600360008d6000191660001916815260200190815260200160002060009055612bae565b60009850612d27565b6049604051805910612bbd5750595b9080825280601f01601f19166020018201604052509050612be38d8960498460006130a2565b50612c7a6002826000604051602001526040518082805190602001908083835b602083101515612c285780518252602082019150602081019050602083039250612c03565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f11515612c6a57600080fd5b5050604051805190508786613a65565b1515612c895760009850612d27565b6000151560046000846000191660001916815260200190815260200160002060009054906101000a900460ff1615151415612cfb57612cc88d84613d7c565b60046000846000191660001916815260200190815260200160002060006101000a81548160ff0219169083151502179055505b60046000836000191660001916815260200190815260200160002060009054906101000a900460ff1698505b5050505050505050949350505050565b600081830290506000831480612d575750818382811515612d5457fe5b04145b1515612d6257600080fd5b92915050565b60008082111515612d7857600080fd5b8183811515612d8357fe5b04905092915050565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480612dfc57506000612dfa6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612510565b145b15612e0d57612e0b600061251b565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515612e9a57600080fd5b6102c65a03f11515612eab57600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515612ff4576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515612f9857600080fd5b6102c65a03f11515612fa957600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663abaa5f3e6000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561308257600080fd5b6102c65a03f1151561309357600080fd5b50505060405180519050905090565b6130aa614c8d565b60008060008487019250828651101515156130c457600080fd5b8760200191508460200190505b8688602001018210156130f957818901518082880152506020820191506020810190506130d1565b85935050505095945050505050565b6000613112614ce3565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614806131815750600061317f6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612510565b145b1561319257613190600061251b565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561321f57600080fd5b6102c65a03f1151561323057600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515613379576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561331d57600080fd5b6102c65a03f1151561332e57600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b60046040518059106133885750595b9080825280602002602001820160405280156133be57816020015b6133ab614cf7565b8152602001906001900390816133a35790505b5090508360006004811015156133d057fe5b60200201518160008151811015156133e457fe5b9060200190602002018190525083600160048110151561340057fe5b602002015181600181518110151561341457fe5b9060200190602002018190525083600260048110151561343057fe5b602002015181600281518110151561344457fe5b9060200190602002018190525083600360048110151561346057fe5b602002015181600381518110151561347457fe5b9060200190602002018190525061348c85828561428e565b9150509392505050565b8060036000846000191660001916815260200190815260200160002081600019169055505050565b6000806134de731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed612510565b111561357f57731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506135766040805190810160405280600b81526020017f6574685f6d61696e6e65740000000000000000000000000000000000000000008152506147f2565b6001905061394a565b600061359e73c03a2615d5efaf5f49f60b7bb6583eaec212fdf1612510565b111561363f5773c03a2615d5efaf5f49f60b7bb6583eaec212fdf16000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506136366040805190810160405280600c81526020017f6574685f726f707374656e3300000000000000000000000000000000000000008152506147f2565b6001905061394a565b600061365e73b7a07bcf2ba2f2703b24c0691b5278999c59ac7e612510565b11156136ff5773b7a07bcf2ba2f2703b24c0691b5278999c59ac7e6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506136f66040805190810160405280600981526020017f6574685f6b6f76616e00000000000000000000000000000000000000000000008152506147f2565b6001905061394a565b600061371e73146500cfd35b22e4a392fe0adc06de1a1368ed48612510565b11156137bf5773146500cfd35b22e4a392fe0adc06de1a1368ed486000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506137b66040805190810160405280600b81526020017f6574685f72696e6b6562790000000000000000000000000000000000000000008152506147f2565b6001905061394a565b60006137de736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475612510565b111561384157736f485c8bf6fc43ea212e93bbf8ce046c7f1cb4756000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001905061394a565b60006138607320e12a1f859b3feae5fb2a0a32c18f5a65555bbf612510565b11156138c3577320e12a1f859b3feae5fb2a0a32c18f5a65555bbf6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001905061394a565b60006138e27351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa612510565b1115613945577351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001905061394a565b600090505b90565b60008060006001915083855114151561396557600080fd5b600090505b83811015613a5957848181518110151561398057fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191686826020811015156139fb57fe5b1a7f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141515613a4c57600091505b808060010191505061396a565b81925050509392505050565b6000806000806000613a75614c8d565b6000613a7f614c8d565b6020604051805910613a8e5750595b9080825280601f01601f1916602001820160405250925060208a6003815181101515613ab657fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027f01000000000000000000000000000000000000000000000000000000000000009004036004019150613b398a8360208660006130a2565b92506020604051805910613b4a5750595b9080825280601f01601f19166020018201604052509050602282019150613bf98a60208c60018603815181101515613b7e57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027f0100000000000000000000000000000000000000000000000000000000000000900403840160208460006130a2565b90506020830151945060208101519350613c168b601b878761480c565b80975081985050508573ffffffffffffffffffffffffffffffffffffffff16896040518082805190602001908083835b602083101515613c6b5780518252602082019150602081019050602083039250613c46565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206001900473ffffffffffffffffffffffffffffffffffffffff161415613cc15760019750613d6e565b613cce8b601c878761480c565b80975081985050508573ffffffffffffffffffffffffffffffffffffffff16896040518082805190602001908083835b602083101515613d235780518252602082019150602081019050602083039250613cfe565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206001900473ffffffffffffffffffffffffffffffffffffffff161497505b505050505050509392505050565b600080613d87614c8d565b613d8f614c8d565b613d97614c8d565b613d9f614c8d565b613da7614c8d565b613daf614c8d565b613db7614c8d565b60028b60018c01815181101515613dca57fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027f0100000000000000000000000000000000000000000000000000000000000000900401604051805910613e465750595b9080825280601f01601f19166020018201604052509650613e6c8b8b89518a60006130a2565b5060408051805910613e7b5750595b9080825280601f01601f19166020018201604052509550613ea28b600460408960006130a2565b506062604051805910613eb25750595b9080825280601f01601f1916602001820160405250945060017f010000000000000000000000000000000000000000000000000000000000000002856000815181101515613efc57fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613f3e8b60418c0360418860016130a2565b506040805190810160405280602081526020017ffd94fa71bc0ba10d39d464d0d8f465efeef0a2764e3887fcc9df41ded20f505c8152509350613f8784600060208860426130a2565b5061401e6002866000604051602001526040518082805190602001908083835b602083101515613fcc5780518252602082019150602081019050602083039250613fa7565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f1151561400e57600080fd5b5050604051805190508888613a65565b97506000151588151514156140365760009850614280565b606060405190810160405280604081526020017f7fb956469c5c9b89840d55b43537e66a98dd4811ea0a27224272c2e5622911e881526020017f537a2f8e86a46baec82864e98dd01e9ccc2f8bc5dfc9cbe5a91a290498dd96e4815250925060426040518059106140a45750595b9080825280601f01601f1916602001820160405250915060fe7f0100000000000000000000000000000000000000000000000000000000000000028260008151811015156140ee57fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061412e8b600360418560016130a2565b5060028b604581518110151561414057fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f0100000000000000000000000000000000000000000000000000000000000000027f01000000000000000000000000000000000000000000000000000000000000009004016040518059106141bc5750595b9080825280601f01601f191660200182016040525090506141e38b604483518460006130a2565b5061427a6002836000604051602001526040518082805190602001908083835b6020831015156142285780518252602082019150602081019050602083039250614203565b6001836020036101000a03801982511681845116808217855250505050505090500191505060206040518083038160008661646e5a03f1151561426a57600080fd5b5050604051805190508285613a65565b97508798505b505050505050505092915050565b600080614299614c8d565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480614308575060006143066000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612510565b145b1561431957614317600061251b565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15156143a657600080fd5b6102c65a03f115156143b757600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515614500576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15156144a457600080fd5b6102c65a03f115156144b557600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632ef3accc87866000604051602001526040518363ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b838110156145ba57808201518184015260208101905061459f565b50505050905090810190601f1680156145e75780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b151561460657600080fd5b6102c65a03f1151561461757600080fd5b505050604051805190509150833a02670de0b6b3a76400000182111561464357600060010292506147e9565b61464c85614850565b9050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c55c1cb68360008985896000604051602001526040518663ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808581526020018060200180602001848152602001838103835286818151815260200191508051906020019080838360005b838110156147165780820151818401526020810190506146fb565b50505050905090810190601f1680156147435780820380516001836020036101000a031916815260200191505b50838103825285818151815260200191508051906020019080838360005b8381101561477c578082015181840152602081019050614761565b50505050905090810190601f1680156147a95780820380516001836020036101000a031916815260200191505b5096505050505050506020604051808303818588803b15156147ca57600080fd5b6125ee5a03f115156147db57600080fd5b505050506040518051905092505b50509392505050565b8060029080519060200190614808929190614d0b565b5050565b60008060008060405188815287602082015286604082015285606082015260208160808360006001610bb8f192508051915050818193509350505094509492505050565b614858614c8d565b614860614d8b565b600061486a6148db565b614876826104006148e7565b61487f82614937565b600090505b83518110156148c4576148b7848281518110151561489e57fe5b906020019060200201518361494590919063ffffffff16565b8080600101915050614884565b6148cd8261496a565b816000015192505050919050565b60405180590338823950565b600081905060006020828115156148fa57fe5b061415156149175760208181151561490e57fe5b06602003810190505b808360200181815250506040518084526000815281810160405250505050565b614942816004614978565b50565b614952826002835161499c565b6149658183614af590919063ffffffff16565b505050565b614975816007614978565b50565b614998601f60058360ff169060020a021783614ba190919063ffffffff16565b5050565b6017811115156149cd576149c88160058460ff169060020a0260ff161784614ba190919063ffffffff16565b614af0565b60ff81111515614a13576149f7601860058460ff169060020a021784614ba190919063ffffffff16565b614a0d81600185614be19092919063ffffffff16565b50614aef565b61ffff81111515614a5a57614a3e601960058460ff169060020a021784614ba190919063ffffffff16565b614a5481600285614be19092919063ffffffff16565b50614aee565b63ffffffff81111515614aa357614a87601a60058460ff169060020a021784614ba190919063ffffffff16565b614a9d81600485614be19092919063ffffffff16565b50614aed565b67ffffffffffffffff81111515614aec57614ad4601b60058460ff169060020a021784614ba190919063ffffffff16565b614aea81600885614be19092919063ffffffff16565b505b5b5b5b5b505050565b614afd614d8b565b60008060008086602001518760000151518751011115614b3357614b32876002614b2c8a602001518a51614c48565b02614c64565b5b8551915086518051602081830101955087518101825260208801945050505b602082101515614b775782518452602084019350602083019250602082039150614b52565b6001826020036101000a039050801983511681855116818117865250508694505050505092915050565b81602001516001836000015151011115614bc757614bc6826002846020015102614c64565b5b815180516020818301018381536001820183525050505050565b614be9614d8b565b6000846020015185600001515184011115614c1957614c18856002614c12886020015187614c48565b02614c64565b5b6001836101000a0390508451805184818301018684198251161781528582018352505050849150509392505050565b600081831115614c5a57829050614c5e565b8190505b92915050565b614c6c614c8d565b82600001519050614c7d83836148e7565b614c878382614af5565b50505050565b602060405190810160405280600081525090565b6080604051908101604052806004905b614cb9614cf7565b815260200190600190039081614cb15790505090565b602060405190810160405280600081525090565b602060405190810160405280600081525090565b602060405190810160405280600081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10614d4c57805160ff1916838001178555614d7a565b82800160010185558215614d7a579182015b82811115614d79578251825591602001919060010190614d5e565b5b509050614d879190614dab565b5090565b6040805190810160405280614d9e614cf7565b8152602001600081525090565b614dcd91905b80821115614dc9576000816000905550600101614db1565b5090565b90565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480614e3f57506000614e3d6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612510565b145b15614e5057614e4e600061251b565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515614edd57600080fd5b6102c65a03f11515614eee57600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515615037576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515614fdb57600080fd5b6102c65a03f11515614fec57600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663688dcfd7826040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180827effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001915050600060405180830381600087803b151561510b57600080fd5b6102c65a03f1151561511c57600080fd5b505050505600a165627a7a72305820f9ace8262628d715630956e550509f03341120c503e806607fd07e6838bdf2c90029

Swarm Source

bzzr://f9ace8262628d715630956e550509f03341120c503e806607fd07e6838bdf2c9

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.