ETH Price: $3,184.82 (+1.56%)

Contract

0xA464cE87d6Ae47c23254f9bB431274cdC4164625
 

Overview

ETH Balance

0.16725406789308416 ETH

Eth Value

$532.67 (@ $3,184.82/ETH)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
__callback56484992018-05-20 22:24:072366 days ago1526855047IN
0xA464cE87...dC4164625
0 ETH0.0009051620
Start Settlement...56484942018-05-20 22:23:262366 days ago1526855006IN
0xA464cE87...dC4164625
0 ETH0.000416064
__callback56482362018-05-20 21:12:062366 days ago1526850726IN
0xA464cE87...dC4164625
0 ETH0.0009051620
__callback56482292018-05-20 21:09:582366 days ago1526850598IN
0xA464cE87...dC4164625
0 ETH0.0008040220
Start Settlement...56482282018-05-20 21:09:502366 days ago1526850590IN
0xA464cE87...dC4164625
0 ETH0.000520085
Start Settlement...56482242018-05-20 21:08:592366 days ago1526850539IN
0xA464cE87...dC4164625
0 ETH0.000520085
__callback54892122018-04-23 2:05:282393 days ago1524449128IN
0xA464cE87...dC4164625
0 ETH0.0008909220
Start Settlement...54892092018-04-23 2:05:052393 days ago1524449105IN
0xA464cE87...dC4164625
0 ETH0.000134011
Pay54889432018-04-23 1:03:062393 days ago1524445386IN
0xA464cE87...dC4164625
0 ETH0.00003631
Start Round54889432018-04-23 1:03:062393 days ago1524445386IN
0xA464cE87...dC4164625
0 ETH0.000178531
__callback54889402018-04-23 1:02:392393 days ago1524445359IN
0xA464cE87...dC4164625
0 ETH0.0009051620
Start Settlement...54889292018-04-23 0:59:512393 days ago1524445191IN
0xA464cE87...dC4164625
0 ETH0.000134011
Start Round54887012018-04-23 0:00:472393 days ago1524441647IN
0xA464cE87...dC4164625
0 ETH0.000178531
Pay54887002018-04-23 0:00:412393 days ago1524441641IN
0xA464cE87...dC4164625
0 ETH0.000036291
__callback54886962018-04-22 23:58:522393 days ago1524441532IN
0xA464cE87...dC4164625
0 ETH0.0009051620
Start Settlement...54886942018-04-22 23:58:232393 days ago1524441503IN
0xA464cE87...dC4164625
0 ETH0.000134011
Start Round54884342018-04-22 22:58:182394 days ago1524437898IN
0xA464cE87...dC4164625
0 ETH0.000178531
Pay54884342018-04-22 22:58:182394 days ago1524437898IN
0xA464cE87...dC4164625
0 ETH0.000036241
__callback54884312018-04-22 22:57:542394 days ago1524437874IN
0xA464cE87...dC4164625
0 ETH0.0009051620
Start Settlement...54884292018-04-22 22:57:362394 days ago1524437856IN
0xA464cE87...dC4164625
0 ETH0.000134011
Start Round54881992018-04-22 21:56:492394 days ago1524434209IN
0xA464cE87...dC4164625
0 ETH0.000178531
Pay54881992018-04-22 21:56:492394 days ago1524434209IN
0xA464cE87...dC4164625
0 ETH0.000036241
__callback54881952018-04-22 21:55:152394 days ago1524434115IN
0xA464cE87...dC4164625
0 ETH0.0009051620
Start Settlement...54881922018-04-22 21:54:382394 days ago1524434078IN
0xA464cE87...dC4164625
0 ETH0.000134011
Start Round54879332018-04-22 20:54:372394 days ago1524430477IN
0xA464cE87...dC4164625
0 ETH0.000178531
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
56484942018-05-20 22:23:262366 days ago1526855006
0xA464cE87...dC4164625
0.00408001 ETH
56482282018-05-20 21:09:502366 days ago1526850590
0xA464cE87...dC4164625
0.00408001 ETH
56482242018-05-20 21:08:592366 days ago1526850539
0xA464cE87...dC4164625
0.00408001 ETH
54892092018-04-23 2:05:052393 days ago1524449105
0xA464cE87...dC4164625
0.00408001 ETH
54889452018-04-23 1:03:252393 days ago1524445405
0xA464cE87...dC4164625
0.0512 ETH
54889452018-04-23 1:03:252393 days ago1524445405
0xA464cE87...dC4164625
0.0545 ETH
54889432018-04-23 1:03:062393 days ago1524445386
0xA464cE87...dC4164625
0.104643 ETH
54889292018-04-23 0:59:512393 days ago1524445191
0xA464cE87...dC4164625
0.00408001 ETH
54887052018-04-23 0:01:542393 days ago1524441714
0xA464cE87...dC4164625
0.0512 ETH
54887052018-04-23 0:01:542393 days ago1524441714
0xA464cE87...dC4164625
0.0545 ETH
54887002018-04-23 0:00:412393 days ago1524441641
0xA464cE87...dC4164625
0.104643 ETH
54886942018-04-22 23:58:232393 days ago1524441503
0xA464cE87...dC4164625
0.00408001 ETH
54884372018-04-22 22:59:012394 days ago1524437941
0xA464cE87...dC4164625
0.0512 ETH
54884372018-04-22 22:59:012394 days ago1524437941
0xA464cE87...dC4164625
0.0545 ETH
54884342018-04-22 22:58:182394 days ago1524437898
0xA464cE87...dC4164625
0.104643 ETH
54884292018-04-22 22:57:362394 days ago1524437856
0xA464cE87...dC4164625
0.00408001 ETH
54882032018-04-22 21:58:112394 days ago1524434291
0xA464cE87...dC4164625
0.0545 ETH
54882022018-04-22 21:58:002394 days ago1524434280
0xA464cE87...dC4164625
0.0512 ETH
54881992018-04-22 21:56:492394 days ago1524434209
0xA464cE87...dC4164625
0.104643 ETH
54881922018-04-22 21:54:382394 days ago1524434078
0xA464cE87...dC4164625
0.00408001 ETH
54879352018-04-22 20:54:522394 days ago1524430492
0xA464cE87...dC4164625
0.0512 ETH
54879352018-04-22 20:54:522394 days ago1524430492
0xA464cE87...dC4164625
0.0545 ETH
54879322018-04-22 20:54:292394 days ago1524430469
0xA464cE87...dC4164625
0.104643 ETH
54879292018-04-22 20:53:372394 days ago1524430417
0xA464cE87...dC4164625
0.00408001 ETH
54876692018-04-22 19:53:412394 days ago1524426821
0xA464cE87...dC4164625
0.0512 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Game

Compiler Version
v0.4.17+commit.bdeb9e52

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2018-04-02
*/

// <ORACLIZE_API>
/*
Copyright (c) 2015-2016 Oraclize SRL
Copyright (c) 2016 Oraclize LTD



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



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



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

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

contract OraclizeI {
    address public cbAddress;
    function query(uint _timestamp, string _datasource, string _arg) payable returns (bytes32 _id);
    function query_withGasLimit(uint _timestamp, string _datasource, string _arg, uint _gaslimit) payable returns (bytes32 _id);
    function query2(uint _timestamp, string _datasource, string _arg1, string _arg2) payable returns (bytes32 _id);
    function query2_withGasLimit(uint _timestamp, string _datasource, string _arg1, string _arg2, uint _gaslimit) payable returns (bytes32 _id);
    function queryN(uint _timestamp, string _datasource, bytes _argN) payable returns (bytes32 _id);
    function queryN_withGasLimit(uint _timestamp, string _datasource, bytes _argN, uint _gaslimit) payable returns (bytes32 _id);
    function getPrice(string _datasource) returns (uint _dsprice);
    function getPrice(string _datasource, uint gaslimit) returns (uint _dsprice);
    function useCoupon(string _coupon);
    function setProofType(byte _proofType);
    function setConfig(bytes32 _config);
    function setCustomGasPrice(uint _gasPrice);
    function randomDS_getSessionPubKeyHash() returns(bytes32);
}
contract OraclizeAddrResolverI {
    function getAddress() returns (address _addr);
}
contract usingOraclize {
    uint constant day = 60*60*24;
    uint constant week = 60*60*24*7;
    uint constant month = 60*60*24*30;
    byte constant proofType_NONE = 0x00;
    byte constant proofType_TLSNotary = 0x10;
    byte constant proofType_Android = 0x20;
    byte constant proofType_Ledger = 0x30;
    byte constant proofType_Native = 0xF0;
    byte constant proofStorage_IPFS = 0x01;
    uint8 constant networkID_auto = 0;
    uint8 constant networkID_mainnet = 1;
    uint8 constant networkID_testnet = 2;
    uint8 constant networkID_morden = 2;
    uint8 constant networkID_consensys = 161;

    OraclizeAddrResolverI OAR;

    OraclizeI oraclize;
    modifier oraclizeAPI {
        if((address(OAR)==0)||(getCodeSize(address(OAR))==0))
            oraclize_setNetwork(networkID_auto);

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

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

    function oraclize_setNetwork(uint8 networkID) internal returns(bool){
        if (getCodeSize(0x1d3B2638a7cC9f2CB3D298A3DA7a90B67E5506ed)>0){ //mainnet
            OAR = OraclizeAddrResolverI(0x1d3B2638a7cC9f2CB3D298A3DA7a90B67E5506ed);
            oraclize_setNetworkName("eth_mainnet");
            return true;
        }
        if (getCodeSize(0xc03A2615D5efaf5F49F60B7BB6583eaec212fdf1)>0){ //ropsten testnet
            OAR = OraclizeAddrResolverI(0xc03A2615D5efaf5F49F60B7BB6583eaec212fdf1);
            oraclize_setNetworkName("eth_ropsten3");
            return true;
        }
        if (getCodeSize(0xB7A07BcF2Ba2f2703b24C0691b5278999C59AC7e)>0){ //kovan testnet
            OAR = OraclizeAddrResolverI(0xB7A07BcF2Ba2f2703b24C0691b5278999C59AC7e);
            oraclize_setNetworkName("eth_kovan");
            return true;
        }
        if (getCodeSize(0x146500cfd35B22E4A392Fe0aDc06De1a1368Ed48)>0){ //rinkeby testnet
            OAR = OraclizeAddrResolverI(0x146500cfd35B22E4A392Fe0aDc06De1a1368Ed48);
            oraclize_setNetworkName("eth_rinkeby");
            return true;
        }
        if (getCodeSize(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475)>0){ //ethereum-bridge
            OAR = OraclizeAddrResolverI(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475);
            return true;
        }
        if (getCodeSize(0x20e12A1F859B3FeaE5Fb2A0A32C18F5a65555bBF)>0){ //ether.camp ide
            OAR = OraclizeAddrResolverI(0x20e12A1F859B3FeaE5Fb2A0A32C18F5a65555bBF);
            return true;
        }
        if (getCodeSize(0x51efaF4c8B3C9AfBD5aB9F4bbC82784Ab6ef8fAA)>0){ //browser-solidity
            OAR = OraclizeAddrResolverI(0x51efaF4c8B3C9AfBD5aB9F4bbC82784Ab6ef8fAA);
            return true;
        }
        return false;
    }

    function __callback(bytes32 myid, string result) {
        __callback(myid, result, new bytes(0));
    }
    function __callback(bytes32 myid, string result, bytes proof) {
    }

    function oraclize_useCoupon(string code) oraclizeAPI internal {
        oraclize.useCoupon(code);
    }

    function oraclize_getPrice(string datasource) oraclizeAPI internal returns (uint){
        return oraclize.getPrice(datasource);
    }

    function oraclize_getPrice(string datasource, uint gaslimit) oraclizeAPI internal returns (uint){
        return oraclize.getPrice(datasource, gaslimit);
    }

    function oraclize_query(string datasource, string arg) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource);
        if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price
        return oraclize.query.value(price)(0, datasource, arg);
    }
    function oraclize_query(uint timestamp, string datasource, string arg) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource);
        if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price
        return oraclize.query.value(price)(timestamp, datasource, arg);
    }
    function oraclize_query(uint timestamp, string datasource, string arg, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource, gaslimit);
        if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price
        return oraclize.query_withGasLimit.value(price)(timestamp, datasource, arg, gaslimit);
    }
    function oraclize_query(string datasource, string arg, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource, gaslimit);
        if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price
        return oraclize.query_withGasLimit.value(price)(0, datasource, arg, gaslimit);
    }
    function oraclize_query(string datasource, string arg1, string arg2) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource);
        if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price
        return oraclize.query2.value(price)(0, datasource, arg1, arg2);
    }
    function oraclize_query(uint timestamp, string datasource, string arg1, string arg2) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource);
        if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price
        return oraclize.query2.value(price)(timestamp, datasource, arg1, arg2);
    }
    function oraclize_query(uint timestamp, string datasource, string arg1, string arg2, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource, gaslimit);
        if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price
        return oraclize.query2_withGasLimit.value(price)(timestamp, datasource, arg1, arg2, gaslimit);
    }
    function oraclize_query(string datasource, string arg1, string arg2, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource, gaslimit);
        if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price
        return oraclize.query2_withGasLimit.value(price)(0, datasource, arg1, arg2, gaslimit);
    }
    function oraclize_query(string datasource, string[] argN) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource);
        if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price
        bytes memory args = stra2cbor(argN);
        return oraclize.queryN.value(price)(0, datasource, args);
    }
    function oraclize_query(uint timestamp, string datasource, string[] argN) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource);
        if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price
        bytes memory args = stra2cbor(argN);
        return oraclize.queryN.value(price)(timestamp, datasource, args);
    }
    function oraclize_query(uint timestamp, string datasource, string[] argN, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource, gaslimit);
        if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price
        bytes memory args = stra2cbor(argN);
        return oraclize.queryN_withGasLimit.value(price)(timestamp, datasource, args, gaslimit);
    }
    function oraclize_query(string datasource, string[] argN, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource, gaslimit);
        if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price
        bytes memory args = stra2cbor(argN);
        return oraclize.queryN_withGasLimit.value(price)(0, datasource, args, gaslimit);
    }
    function oraclize_query(string datasource, string[1] args) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](1);
        dynargs[0] = args[0];
        return oraclize_query(datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, string[1] args) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](1);
        dynargs[0] = args[0];
        return oraclize_query(timestamp, datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, string[1] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](1);
        dynargs[0] = args[0];
        return oraclize_query(timestamp, datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, string[1] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](1);
        dynargs[0] = args[0];
        return oraclize_query(datasource, dynargs, gaslimit);
    }

    function oraclize_query(string datasource, string[2] args) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](2);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        return oraclize_query(datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, string[2] args) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](2);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        return oraclize_query(timestamp, datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, string[2] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](2);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        return oraclize_query(timestamp, datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, string[2] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](2);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        return oraclize_query(datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, string[3] args) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](3);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        return oraclize_query(datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, string[3] args) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](3);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        return oraclize_query(timestamp, datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, string[3] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](3);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        return oraclize_query(timestamp, datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, string[3] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](3);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        return oraclize_query(datasource, dynargs, gaslimit);
    }

    function oraclize_query(string datasource, string[4] args) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](4);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        return oraclize_query(datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, string[4] args) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](4);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        return oraclize_query(timestamp, datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, string[4] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](4);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        return oraclize_query(timestamp, datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, string[4] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](4);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        return oraclize_query(datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, string[5] args) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](5);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        dynargs[4] = args[4];
        return oraclize_query(datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, string[5] args) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](5);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        dynargs[4] = args[4];
        return oraclize_query(timestamp, datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, string[5] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](5);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        dynargs[4] = args[4];
        return oraclize_query(timestamp, datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, string[5] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        string[] memory dynargs = new string[](5);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        dynargs[4] = args[4];
        return oraclize_query(datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, bytes[] argN) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource);
        if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price
        bytes memory args = ba2cbor(argN);
        return oraclize.queryN.value(price)(0, datasource, args);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[] argN) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource);
        if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price
        bytes memory args = ba2cbor(argN);
        return oraclize.queryN.value(price)(timestamp, datasource, args);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[] argN, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource, gaslimit);
        if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price
        bytes memory args = ba2cbor(argN);
        return oraclize.queryN_withGasLimit.value(price)(timestamp, datasource, args, gaslimit);
    }
    function oraclize_query(string datasource, bytes[] argN, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource, gaslimit);
        if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price
        bytes memory args = ba2cbor(argN);
        return oraclize.queryN_withGasLimit.value(price)(0, datasource, args, gaslimit);
    }
    function oraclize_query(string datasource, bytes[1] args) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](1);
        dynargs[0] = args[0];
        return oraclize_query(datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[1] args) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](1);
        dynargs[0] = args[0];
        return oraclize_query(timestamp, datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[1] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](1);
        dynargs[0] = args[0];
        return oraclize_query(timestamp, datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, bytes[1] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](1);
        dynargs[0] = args[0];
        return oraclize_query(datasource, dynargs, gaslimit);
    }

    function oraclize_query(string datasource, bytes[2] args) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](2);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        return oraclize_query(datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[2] args) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](2);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        return oraclize_query(timestamp, datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[2] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](2);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        return oraclize_query(timestamp, datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, bytes[2] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](2);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        return oraclize_query(datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, bytes[3] args) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](3);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        return oraclize_query(datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[3] args) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](3);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        return oraclize_query(timestamp, datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[3] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](3);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        return oraclize_query(timestamp, datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, bytes[3] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](3);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        return oraclize_query(datasource, dynargs, gaslimit);
    }

    function oraclize_query(string datasource, bytes[4] args) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](4);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        return oraclize_query(datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[4] args) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](4);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        return oraclize_query(timestamp, datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[4] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](4);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        return oraclize_query(timestamp, datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, bytes[4] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](4);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        return oraclize_query(datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, bytes[5] args) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](5);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        dynargs[4] = args[4];
        return oraclize_query(datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[5] args) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](5);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        dynargs[4] = args[4];
        return oraclize_query(timestamp, datasource, dynargs);
    }
    function oraclize_query(uint timestamp, string datasource, bytes[5] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](5);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        dynargs[4] = args[4];
        return oraclize_query(timestamp, datasource, dynargs, gaslimit);
    }
    function oraclize_query(string datasource, bytes[5] args, uint gaslimit) oraclizeAPI internal returns (bytes32 id) {
        bytes[] memory dynargs = new bytes[](5);
        dynargs[0] = args[0];
        dynargs[1] = args[1];
        dynargs[2] = args[2];
        dynargs[3] = args[3];
        dynargs[4] = args[4];
        return oraclize_query(datasource, dynargs, gaslimit);
    }

    function oraclize_cbAddress() oraclizeAPI internal returns (address){
        return oraclize.cbAddress();
    }
    function oraclize_setProof(byte proofP) oraclizeAPI internal {
        return oraclize.setProofType(proofP);
    }
    function oraclize_setCustomGasPrice(uint gasPrice) oraclizeAPI internal {
        return oraclize.setCustomGasPrice(gasPrice);
    }
    function oraclize_setConfig(bytes32 config) oraclizeAPI internal {
        return oraclize.setConfig(config);
    }

    function oraclize_randomDS_getSessionPubKeyHash() oraclizeAPI internal returns (bytes32){
        return oraclize.randomDS_getSessionPubKeyHash();
    }

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

    function parseAddr(string _a) internal returns (address){
        bytes memory tmp = bytes(_a);
        uint160 iaddr = 0;
        uint160 b1;
        uint160 b2;
        for (uint i=2; i<2+2*20; i+=2){
            iaddr *= 256;
            b1 = uint160(tmp[i]);
            b2 = uint160(tmp[i+1]);
            if ((b1 >= 97)&&(b1 <= 102)) b1 -= 87;
            else if ((b1 >= 65)&&(b1 <= 70)) b1 -= 55;
            else if ((b1 >= 48)&&(b1 <= 57)) b1 -= 48;
            if ((b2 >= 97)&&(b2 <= 102)) b2 -= 87;
            else if ((b2 >= 65)&&(b2 <= 70)) b2 -= 55;
            else if ((b2 >= 48)&&(b2 <= 57)) b2 -= 48;
            iaddr += (b1*16+b2);
        }
        return address(iaddr);
    }

    function strCompare(string _a, string _b) internal returns (int) {
        bytes memory a = bytes(_a);
        bytes memory b = bytes(_b);
        uint minLength = a.length;
        if (b.length < minLength) minLength = b.length;
        for (uint i = 0; i < minLength; i ++)
            if (a[i] < b[i])
                return -1;
            else if (a[i] > b[i])
                return 1;
        if (a.length < b.length)
            return -1;
        else if (a.length > b.length)
            return 1;
        else
            return 0;
    }

    function indexOf(string _haystack, string _needle) internal returns (int) {
        bytes memory h = bytes(_haystack);
        bytes memory n = bytes(_needle);
        if(h.length < 1 || n.length < 1 || (n.length > h.length))
            return -1;
        else if(h.length > (2**128 -1))
            return -1;
        else
        {
            uint subindex = 0;
            for (uint i = 0; i < h.length; i ++)
            {
                if (h[i] == n[0])
                {
                    subindex = 1;
                    while(subindex < n.length && (i + subindex) < h.length && h[i + subindex] == n[subindex])
                    {
                        subindex++;
                    }
                    if(subindex == n.length)
                        return int(i);
                }
            }
            return -1;
        }
    }

    function strConcat(string _a, string _b, string _c, string _d, string _e) internal returns (string) {
        bytes memory _ba = bytes(_a);
        bytes memory _bb = bytes(_b);
        bytes memory _bc = bytes(_c);
        bytes memory _bd = bytes(_d);
        bytes memory _be = bytes(_e);
        string memory abcde = new string(_ba.length + _bb.length + _bc.length + _bd.length + _be.length);
        bytes memory babcde = bytes(abcde);
        uint k = 0;
        for (uint i = 0; i < _ba.length; i++) babcde[k++] = _ba[i];
        for (i = 0; i < _bb.length; i++) babcde[k++] = _bb[i];
        for (i = 0; i < _bc.length; i++) babcde[k++] = _bc[i];
        for (i = 0; i < _bd.length; i++) babcde[k++] = _bd[i];
        for (i = 0; i < _be.length; i++) babcde[k++] = _be[i];
        return string(babcde);
    }

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

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

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

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

    // parseInt(parseFloat*10^_b)
    function parseInt(string _a, uint _b) internal returns (uint) {
        bytes memory bresult = bytes(_a);
        uint mint = 0;
        bool decimals = false;
        for (uint i=0; i<bresult.length; i++){
            if ((bresult[i] >= 48)&&(bresult[i] <= 57)){
                if (decimals){
                   if (_b == 0) break;
                    else _b--;
                }
                mint *= 10;
                mint += uint(bresult[i]) - 48;
            } else if (bresult[i] == 46) decimals = true;
        }
        if (_b > 0) mint *= 10**_b;
        return mint;
    }

    function uint2str(uint i) internal returns (string){
        if (i == 0) return "0";
        uint j = i;
        uint len;
        while (j != 0){
            len++;
            j /= 10;
        }
        bytes memory bstr = new bytes(len);
        uint k = len - 1;
        while (i != 0){
            bstr[k--] = byte(48 + i % 10);
            i /= 10;
        }
        return string(bstr);
    }

    function stra2cbor(string[] arr) internal returns (bytes) {
            uint arrlen = arr.length;

            // get correct cbor output length
            uint outputlen = 0;
            bytes[] memory elemArray = new bytes[](arrlen);
            for (uint i = 0; i < arrlen; i++) {
                elemArray[i] = (bytes(arr[i]));
                outputlen += elemArray[i].length + (elemArray[i].length - 1)/23 + 3; //+3 accounts for paired identifier types
            }
            uint ctr = 0;
            uint cborlen = arrlen + 0x80;
            outputlen += byte(cborlen).length;
            bytes memory res = new bytes(outputlen);

            while (byte(cborlen).length > ctr) {
                res[ctr] = byte(cborlen)[ctr];
                ctr++;
            }
            for (i = 0; i < arrlen; i++) {
                res[ctr] = 0x5F;
                ctr++;
                for (uint x = 0; x < elemArray[i].length; x++) {
                    // if there's a bug with larger strings, this may be the culprit
                    if (x % 23 == 0) {
                        uint elemcborlen = elemArray[i].length - x >= 24 ? 23 : elemArray[i].length - x;
                        elemcborlen += 0x40;
                        uint lctr = ctr;
                        while (byte(elemcborlen).length > ctr - lctr) {
                            res[ctr] = byte(elemcborlen)[ctr - lctr];
                            ctr++;
                        }
                    }
                    res[ctr] = elemArray[i][x];
                    ctr++;
                }
                res[ctr] = 0xFF;
                ctr++;
            }
            return res;
        }

    function ba2cbor(bytes[] arr) internal returns (bytes) {
            uint arrlen = arr.length;

            // get correct cbor output length
            uint outputlen = 0;
            bytes[] memory elemArray = new bytes[](arrlen);
            for (uint i = 0; i < arrlen; i++) {
                elemArray[i] = (bytes(arr[i]));
                outputlen += elemArray[i].length + (elemArray[i].length - 1)/23 + 3; //+3 accounts for paired identifier types
            }
            uint ctr = 0;
            uint cborlen = arrlen + 0x80;
            outputlen += byte(cborlen).length;
            bytes memory res = new bytes(outputlen);

            while (byte(cborlen).length > ctr) {
                res[ctr] = byte(cborlen)[ctr];
                ctr++;
            }
            for (i = 0; i < arrlen; i++) {
                res[ctr] = 0x5F;
                ctr++;
                for (uint x = 0; x < elemArray[i].length; x++) {
                    // if there's a bug with larger strings, this may be the culprit
                    if (x % 23 == 0) {
                        uint elemcborlen = elemArray[i].length - x >= 24 ? 23 : elemArray[i].length - x;
                        elemcborlen += 0x40;
                        uint lctr = ctr;
                        while (byte(elemcborlen).length > ctr - lctr) {
                            res[ctr] = byte(elemcborlen)[ctr - lctr];
                            ctr++;
                        }
                    }
                    res[ctr] = elemArray[i][x];
                    ctr++;
                }
                res[ctr] = 0xFF;
                ctr++;
            }
            return res;
        }


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

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

    function oraclize_newRandomDSQuery(uint _delay, uint _nbytes, uint _customGasLimit) internal returns (bytes32){
        if ((_nbytes == 0)||(_nbytes > 32)) throw;
        bytes memory nbytes = new bytes(1);
        nbytes[0] = byte(_nbytes);
        bytes memory unonce = new bytes(32);
        bytes memory sessionKeyHash = new bytes(32);
        bytes32 sessionKeyHash_bytes32 = oraclize_randomDS_getSessionPubKeyHash();
        assembly {
            mstore(unonce, 0x20)
            mstore(add(unonce, 0x20), xor(blockhash(sub(number, 1)), xor(coinbase, timestamp)))
            mstore(sessionKeyHash, 0x20)
            mstore(add(sessionKeyHash, 0x20), sessionKeyHash_bytes32)
        }
        bytes[3] memory args = [unonce, nbytes, sessionKeyHash];
        bytes32 queryId = oraclize_query(_delay, "random", args, _customGasLimit);
        oraclize_randomDS_setCommitment(queryId, sha3(bytes8(_delay), args[1], sha256(args[0]), args[2]));
        return queryId;
    }

    function oraclize_randomDS_setCommitment(bytes32 queryId, bytes32 commitment) internal {
        oraclize_randomDS_args[queryId] = commitment;
    }

    mapping(bytes32=>bytes32) oraclize_randomDS_args;
    mapping(bytes32=>bool) oraclize_randomDS_sessionKeysHashVerified;

    function verifySig(bytes32 tosignh, bytes dersig, bytes pubkey) internal returns (bool){
        bool sigok;
        address signer;

        bytes32 sigr;
        bytes32 sigs;

        bytes memory sigr_ = new bytes(32);
        uint offset = 4+(uint(dersig[3]) - 0x20);
        sigr_ = copyBytes(dersig, offset, 32, sigr_, 0);
        bytes memory sigs_ = new bytes(32);
        offset += 32 + 2;
        sigs_ = copyBytes(dersig, offset+(uint(dersig[offset-1]) - 0x20), 32, sigs_, 0);

        assembly {
            sigr := mload(add(sigr_, 32))
            sigs := mload(add(sigs_, 32))
        }


        (sigok, signer) = safer_ecrecover(tosignh, 27, sigr, sigs);
        if (address(sha3(pubkey)) == signer) return true;
        else {
            (sigok, signer) = safer_ecrecover(tosignh, 28, sigr, sigs);
            return (address(sha3(pubkey)) == signer);
        }
    }

    function oraclize_randomDS_proofVerify__sessionKeyValidity(bytes proof, uint sig2offset) internal returns (bool) {
        bool sigok;

        // Step 6: verify the attestation signature, APPKEY1 must sign the sessionKey from the correct ledger app (CODEHASH)
        bytes memory sig2 = new bytes(uint(proof[sig2offset+1])+2);
        copyBytes(proof, sig2offset, sig2.length, sig2, 0);

        bytes memory appkey1_pubkey = new bytes(64);
        copyBytes(proof, 3+1, 64, appkey1_pubkey, 0);

        bytes memory tosign2 = new bytes(1+65+32);
        tosign2[0] = 1; //role
        copyBytes(proof, sig2offset-65, 65, tosign2, 1);
        bytes memory CODEHASH = hex"fd94fa71bc0ba10d39d464d0d8f465efeef0a2764e3887fcc9df41ded20f505c";
        copyBytes(CODEHASH, 0, 32, tosign2, 1+65);
        sigok = verifySig(sha256(tosign2), sig2, appkey1_pubkey);

        if (sigok == false) return false;


        // Step 7: verify the APPKEY1 provenance (must be signed by Ledger)
        bytes memory LEDGERKEY = hex"7fb956469c5c9b89840d55b43537e66a98dd4811ea0a27224272c2e5622911e8537a2f8e86a46baec82864e98dd01e9ccc2f8bc5dfc9cbe5a91a290498dd96e4";

        bytes memory tosign3 = new bytes(1+65);
        tosign3[0] = 0xFE;
        copyBytes(proof, 3, 65, tosign3, 1);

        bytes memory sig3 = new bytes(uint(proof[3+65+1])+2);
        copyBytes(proof, 3+65, sig3.length, sig3, 0);

        sigok = verifySig(sha256(tosign3), sig3, LEDGERKEY);

        return sigok;
    }

    modifier oraclize_randomDS_proofVerify(bytes32 _queryId, string _result, bytes _proof) {
        // Step 1: the prefix has to match 'LP\x01' (Ledger Proof version 1)
        if ((_proof[0] != "L")||(_proof[1] != "P")||(_proof[2] != 1)) throw;

        bool proofVerified = oraclize_randomDS_proofVerify__main(_proof, _queryId, bytes(_result), oraclize_getNetworkName());
        if (proofVerified == false) throw;

        _;
    }

    function oraclize_randomDS_proofVerify__returnCode(bytes32 _queryId, string _result, bytes _proof) internal returns (uint8){
        // Step 1: the prefix has to match 'LP\x01' (Ledger Proof version 1)
        if ((_proof[0] != "L")||(_proof[1] != "P")||(_proof[2] != 1)) return 1;

        bool proofVerified = oraclize_randomDS_proofVerify__main(_proof, _queryId, bytes(_result), oraclize_getNetworkName());
        if (proofVerified == false) return 2;

        return 0;
    }

    function matchBytes32Prefix(bytes32 content, bytes prefix, uint n_random_bytes) internal returns (bool){
        bool match_ = true;

        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 (!(sha3(keyhash) == sha3(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, sha3(delay, nbytes, unonce, sessionKeyHash) == commitment in storage.
        // This is to verify that the computed args match with the ones specified in the query.
        bytes memory commitmentSlice1 = new bytes(8+1+32);
        copyBytes(proof, ledgerProofLength+32, 8+1+32, commitmentSlice1, 0);

        bytes memory sessionPubkey = new bytes(64);
        uint sig2offset = ledgerProofLength+32+(8+1+32)+sig1.length+65;
        copyBytes(proof, sig2offset-64, 64, sessionPubkey, 0);

        bytes32 sessionPubkeyHash = sha256(sessionPubkey);
        if (oraclize_randomDS_args[queryId] == sha3(commitmentSlice1, sessionPubkeyHash)){ //unonce, nbytes and sessionKeyHash match
            delete oraclize_randomDS_args[queryId];
        } else return false;


        // Step 5: validity verification for sig1 (keyhash and args signed with the sessionKey)
        bytes memory tosign1 = new bytes(32+8+1+32);
        copyBytes(proof, ledgerProofLength, 32+8+1+32, tosign1, 0);
        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 returns (bytes) {
        uint minLength = length + toOffset;

        if (to.length < minLength) {
            // Buffer too small
            throw; // Should be a better way?
        }

        // NOTE: the offset 32 is added to skip the `size` field of both bytes variables
        uint i = 32 + fromOffset;
        uint j = 32 + toOffset;

        while (i < (32 + fromOffset + length)) {
            assembly {
                let tmp := mload(add(from, i))
                mstore(add(to, j), tmp)
            }
            i += 32;
            j += 32;
        }

        return to;
    }

    // the following function has been written by Alex Beregszaszi (@axic), use it under the terms of the MIT license
    // Duplicate Solidity's ecrecover, but catching the CALL return value
    function safer_ecrecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal returns (bool, address) {
        // We do our own memory management here. Solidity uses memory offset
        // 0x40 to store the current end of memory. We write past it (as
        // writes are memory extensions), but don't update the offset so
        // Solidity will reuse it. The memory used here is only needed for
        // this context.

        // FIXME: inline assembly can't access return values
        bool ret;
        address addr;

        assembly {
            let size := mload(0x40)
            mstore(size, hash)
            mstore(add(size, 32), v)
            mstore(add(size, 64), r)
            mstore(add(size, 96), s)

            // NOTE: we can reuse the request memory because we deal with
            //       the return code
            ret := call(3000, 1, 0, size, 128, size, 32)
            addr := mload(size)
        }

        return (ret, addr);
    }

    // the following function has been written by Alex Beregszaszi (@axic), use it under the terms of the MIT license
    function ecrecovery(bytes32 hash, bytes sig) internal returns (bool, address) {
        bytes32 r;
        bytes32 s;
        uint8 v;

        if (sig.length != 65)
          return (false, 0);

        // The signature format is a compact form of:
        //   {bytes32 r}{bytes32 s}{uint8 v}
        // Compact means, uint8 is not padded to 32 bytes.
        assembly {
            r := mload(add(sig, 32))
            s := mload(add(sig, 64))

            // Here we are loading the last 32 bytes. We exploit the fact that
            // 'mload' will pad with zeroes if we overread.
            // There is no 'mload8' to do this, but that would be nicer.
            v := byte(0, mload(add(sig, 96)))

            // Alternative solution:
            // 'byte' is not working due to the Solidity parser, so lets
            // use the second best option, 'and'
            // v := and(mload(add(sig, 65)), 255)
        }

        // albeit non-transactional signatures are not specified by the YP, one would expect it
        // to match the YP range of [27, 28]
        //
        // geth uses [0, 1] and some clients have followed. This might change, see:
        //  https://github.com/ethereum/go-ethereum/issues/2053
        if (v < 27)
          v += 27;

        if (v != 27 && v != 28)
            return (false, 0);

        return safer_ecrecover(hash, v, r, s);
    }

}
// </ORACLIZE_API>

pragma solidity ^0.4.17;



contract Game is usingOraclize {

    event payoutLog(uint indexed roundNumber, bytes32 id);
    event oraclizeResponseLog(uint indexed roundNumber, string result);
    event oraclizeQueryIdErrorLog(uint indexed roundNumber);
    event roundStartedLog(uint indexed roundNumber, uint startTime, uint duration);
    event betLog(bytes32 id, address sender, uint choice, uint amount, uint indexed roundNumber);

    uint constant HEADS_CHOICE = 1;
    uint constant TAILS_CHOICE = 2;
    uint uniqHashCounter = 0;
    uint public fees = 3;
    uint minimalBet = 50000000000000000;
    uint public roundNumber = 0;
    uint public totalFeesValue = 0;
    address public owner;
    mapping(uint => Round) public rounds;
    mapping(bytes32 => bool) validOraclizeIds;

    struct Bet {
        bytes32 id;
        address bettor;
        uint choice;
        uint amount;
        uint roundNumber;
        uint payout;
        bool paid;
    }

    struct Round {
        uint number;
        uint startTime;
        uint duration;
        bytes32[] headsSendersIndex;
        bytes32[] tailsSendersIndex;
        uint headsBetsValue;
        uint tailsBetsValue;
        uint totalBetsValue;
        uint totalBetsValueWithoutFees;
        uint extractedFees;
        uint winningChoice;
        bool acceptingBets;
        string oraclizeResult;
        mapping(bytes32 => Bet) bets;
    }

    function Game() public {

        owner = msg.sender;
       // OAR = OraclizeAddrResolverI(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475);

    }

    function setFees(uint _fees) public {
        require(msg.sender == owner);
        fees = _fees;

    }

    function setMinimalBet(uint _minimalBet) {

        minimalBet = _minimalBet;

    }

    function __callback(bytes32 _queryId, string _result) {
         if (!validOraclizeIds[_queryId]) {
             oraclizeQueryIdErrorLog(roundNumber);
             throw;
         }
         require (msg.sender == oraclize_cbAddress());
         rounds[roundNumber].oraclizeResult = _result;
         oraclizeResponseLog(roundNumber, _result);

     }

    function startSettlementProcess() public {

        require(msg.sender == owner);

        rounds[roundNumber].acceptingBets = false;

        uint totalBetsValue = rounds[roundNumber].tailsBetsValue + rounds[roundNumber].headsBetsValue;
        uint extractedFees = totalBetsValue / 100 * fees;

        uint totalBetsValueWithoutFees = totalBetsValue - extractedFees;
        totalFeesValue += extractedFees;

        rounds[roundNumber].totalBetsValue = totalBetsValue;
        rounds[roundNumber].extractedFees = extractedFees;
        rounds[roundNumber].totalBetsValueWithoutFees = totalBetsValueWithoutFees;

        bytes32 queryId = oraclize_query("WolframAlpha", "RandomInteger[{1, 2}]");
        validOraclizeIds[queryId] = true;

    }

    function setOwner(address _newOwner) public {

        require(msg.sender == owner);
        owner = _newOwner;

    }

    function withdrawFees(uint _amount) public {

        require(msg.sender == owner);
        require(_amount <= totalFeesValue);
        totalFeesValue -= _amount;
        owner.transfer(_amount);

    }

    function fund() payable public {}

    function getUniqHash() private returns (bytes32 _uniqHash) {

        uniqHashCounter++;
        return keccak256(uniqHashCounter);

    }

    function startRound(uint startTime, uint duration) public {

        require(msg.sender == owner);

        roundNumber++;
        rounds[roundNumber] = Round(
            roundNumber,
            startTime,
            duration,
            new bytes32[](0),
            new bytes32[](0),
            0,
            0,
            0,
            0,
            0,
            0,
            true,
            'n/a'
        );

        roundStartedLog(roundNumber, startTime, duration);
        rounds[roundNumber].acceptingBets = true;

    }

    function sendBet(address sender, uint choice) payable public {

        require(rounds[roundNumber].acceptingBets);
        require(msg.value >= minimalBet);

        bytes32 id = getUniqHash();

        rounds[roundNumber].bets[id] = Bet(
            id,
            sender,
            choice,
            msg.value,
            roundNumber,
            0,
            false
        );

        if (choice == HEADS_CHOICE) {

            rounds[roundNumber].headsBetsValue += msg.value;
            rounds[roundNumber].headsSendersIndex.push(id);


        } else {

            rounds[roundNumber].tailsBetsValue += msg.value;
            rounds[roundNumber].tailsSendersIndex.push(id);

        }

        betLog(id, sender, choice, msg.value, roundNumber);

    }

    function getWinnersIndex(uint _winningChoice) public returns(bytes32[] winnersIndex) {

        return _winningChoice == HEADS_CHOICE ?
            rounds[roundNumber].headsSendersIndex :
            rounds[roundNumber].tailsSendersIndex;

    }

    function pay(uint _roundNumber, bytes32 _betId) public {

        require(msg.sender == owner);

        Bet memory bet = rounds[_roundNumber].bets[_betId];

        if (bet.paid) {

            throw;

        }

        uint winnersTotalValue = bet.choice == HEADS_CHOICE ?
            rounds[_roundNumber].headsBetsValue :
            rounds[_roundNumber].tailsBetsValue;

        uint payout = ((rounds[_roundNumber].totalBetsValueWithoutFees * (bet.amount * 1000 / winnersTotalValue )) / 1000);

        bet.paid = true;
        bet.bettor.transfer(payout);

        payoutLog(_roundNumber, _betId);

    }

}

Contract Security Audit

Contract ABI

[{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"setOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"sender","type":"address"},{"name":"choice","type":"uint256"}],"name":"sendBet","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_queryId","type":"bytes32"},{"name":"_result","type":"string"}],"name":"__callback","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"myid","type":"bytes32"},{"name":"result","type":"string"},{"name":"proof","type":"bytes"}],"name":"__callback","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_minimalBet","type":"uint256"}],"name":"setMinimalBet","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_fees","type":"uint256"}],"name":"setFees","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"roundNumber","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_amount","type":"uint256"}],"name":"withdrawFees","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalFeesValue","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"startSettlementProcess","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"rounds","outputs":[{"name":"number","type":"uint256"},{"name":"startTime","type":"uint256"},{"name":"duration","type":"uint256"},{"name":"headsBetsValue","type":"uint256"},{"name":"tailsBetsValue","type":"uint256"},{"name":"totalBetsValue","type":"uint256"},{"name":"totalBetsValueWithoutFees","type":"uint256"},{"name":"extractedFees","type":"uint256"},{"name":"winningChoice","type":"uint256"},{"name":"acceptingBets","type":"bool"},{"name":"oraclizeResult","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_roundNumber","type":"uint256"},{"name":"_betId","type":"bytes32"}],"name":"pay","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"fees","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"fund","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"startTime","type":"uint256"},{"name":"duration","type":"uint256"}],"name":"startRound","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_winningChoice","type":"uint256"}],"name":"getWinnersIndex","outputs":[{"name":"winnersIndex","type":"bytes32[]"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"roundNumber","type":"uint256"},{"indexed":false,"name":"id","type":"bytes32"}],"name":"payoutLog","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"roundNumber","type":"uint256"},{"indexed":false,"name":"result","type":"string"}],"name":"oraclizeResponseLog","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"roundNumber","type":"uint256"}],"name":"oraclizeQueryIdErrorLog","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"roundNumber","type":"uint256"},{"indexed":false,"name":"startTime","type":"uint256"},{"indexed":false,"name":"duration","type":"uint256"}],"name":"roundStartedLog","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"id","type":"bytes32"},{"indexed":false,"name":"sender","type":"address"},{"indexed":false,"name":"choice","type":"uint256"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":true,"name":"roundNumber","type":"uint256"}],"name":"betLog","type":"event"}]

60606040526000600555600360065566b1a2bc2ec5000060075560006008556000600955341561002e57600080fd5b33600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506123f58061007e6000396000f3006060604052600436106100f1576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806313af4035146100f65780632209e9911461012f57806327dc297e1461016657806338bbfa50146101d05780633ac8858b1461027d5780633d18678e146102a05780634e2786fb146102c35780635e318e07146102ec5780636e1ece251461030f5780638a6158f7146103385780638c65c81f1461034d5780638da5cb5b146104505780638e6bee97146104a55780639af1d35a146104d5578063b60d4288146104fe578063c396437214610508578063dd21541014610534575b600080fd5b341561010157600080fd5b61012d600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506105ac565b005b610164600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001909190505061064c565b005b341561017157600080fd5b6101ce60048080356000191690602001909190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610931565b005b34156101db57600080fd5b61027b60048080356000191690602001909190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610aa5565b005b341561028857600080fd5b61029e6004808035906020019091905050610aaa565b005b34156102ab57600080fd5b6102c16004808035906020019091905050610ab4565b005b34156102ce57600080fd5b6102d6610b1a565b6040518082815260200191505060405180910390f35b34156102f757600080fd5b61030d6004808035906020019091905050610b20565b005b341561031a57600080fd5b610322610c02565b6040518082815260200191505060405180910390f35b341561034357600080fd5b61034b610c08565b005b341561035857600080fd5b61036e6004808035906020019091905050610dff565b604051808c81526020018b81526020018a815260200189815260200188815260200187815260200186815260200185815260200184815260200183151515158152602001806020018281038252838181546001816001161561010002031660029004815260200191508054600181600116156101000203166002900480156104375780601f1061040c57610100808354040283529160200191610437565b820191906000526020600020905b81548152906001019060200180831161041a57829003601f168201915b50509c5050505050505050505050505060405180910390f35b341561045b57600080fd5b610463610e65565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156104b057600080fd5b6104d3600480803590602001909190803560001916906020019091905050610e8b565b005b34156104e057600080fd5b6104e8611102565b6040518082815260200191505060405180910390f35b610506611108565b005b341561051357600080fd5b610532600480803590602001909190803590602001909190505061110a565b005b341561053f57600080fd5b61055560048080359060200190919050506113b4565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561059857808201518184015260208101905061057d565b505050509050019250505060405180910390f35b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561060857600080fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600b60006008548152602001908152602001600020600b0160009054906101000a900460ff16151561067f57600080fd5b600754341015151561069057600080fd5b610698611454565b905060e060405190810160405280826000191681526020018473ffffffffffffffffffffffffffffffffffffffff16815260200183815260200134815260200160085481526020016000815260200160001515815250600b60006008548152602001908152602001600020600d01600083600019166000191681526020019081526020016000206000820151816000019060001916905560208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060408201518160020155606082015181600301556080820151816004015560a0820151816005015560c08201518160060160006101000a81548160ff021916908315150217905550905050600182141561083a5734600b6000600854815260200190815260200160002060050160008282540192505081905550600b60006008548152602001908152602001600020600301805480600101828161081a9190612193565b9160005260206000209001600083909190915090600019169055506108a6565b34600b6000600854815260200190815260200160002060060160008282540192505081905550600b60006008548152602001908152602001600020600401805480600101828161088a9190612193565b9160005260206000209001600083909190915090600019169055505b6008547ff7fd784971e4ac980d2c86fce44ed9f71c85416bbb20dea137591002489bbc8c828585346040518085600019166000191681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200182815260200194505050505060405180910390a2505050565b600c6000836000191660001916815260200190815260200160002060009054906101000a900460ff161515610994576008547f357e3df998cc78431a355a146a9770a882720eb73f8aa936bf4e0772d8c80c6b60405160405180910390a2600080fd5b61099c611485565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156109d557600080fd5b80600b60006008548152602001908152602001600020600c019080519060200190610a019291906121bf565b506008547fbc61b1bb4dbf5a02562e79bc91e37e594f6fce34a67358531acdf80b2b43c070826040518080602001828103825283818151815260200191508051906020019080838360005b83811015610a67578082015181840152602081019050610a4c565b50505050905090810190601f168015610a945780820380516001836020036101000a031916815260200191505b509250505060405180910390a25050565b505050565b8060078190555050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610b1057600080fd5b8060068190555050565b60085481565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610b7c57600080fd5b6009548111151515610b8d57600080fd5b80600960008282540392505081905550600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501515610bff57600080fd5b50565b60095481565b600080600080600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610c6a57600080fd5b6000600b60006008548152602001908152602001600020600b0160006101000a81548160ff021916908315150217905550600b6000600854815260200190815260200160002060050154600b6000600854815260200190815260200160002060060154019350600654606485811515610cdf57fe5b0402925082840391508260096000828254019250508190555083600b600060085481526020019081526020016000206007018190555082600b600060085481526020019081526020016000206009018190555081600b6000600854815260200190815260200160002060080181905550610dc36040805190810160405280600c81526020017f576f6c6672616d416c70686100000000000000000000000000000000000000008152506040805190810160405280601581526020017f52616e646f6d496e74656765725b7b312c20327d5d000000000000000000000081525061179b565b90506001600c6000836000191660001916815260200190815260200160002060006101000a81548160ff02191690831515021790555050505050565b600b60205280600052604060002060009150905080600001549080600101549080600201549080600501549080600601549080600701549080600801549080600901549080600a01549080600b0160009054906101000a900460ff169080600c0190508b565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610e9361223f565b600080600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610ef257600080fd5b600b6000868152602001908152602001600020600d016000856000191660001916815260200190815260200160002060e060405190810160405290816000820154600019166000191681526020016001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600282015481526020016003820154815260200160048201548152602001600582015481526020016006820160009054906101000a900460ff16151515158152505092508260c0015115610fe957600080fd5b600183604001511461101157600b600086815260200190815260200160002060060154611029565b600b6000868152602001908152602001600020600501545b91506103e8826103e885606001510281151561104157fe5b04600b6000888152602001908152602001600020600801540281151561106357fe5b04905060018360c0019015159081151581525050826020015173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015156110bb57600080fd5b847f2b8c2e7631cbe5ad43c5b2fdbdf24985a77b45e2da38cc744e3b16abd4d1a9608560405180826000191660001916815260200191505060405180910390a25050505050565b60065481565b565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561116657600080fd5b6008600081548092919060010191905055506101a060405190810160405280600854815260200183815260200182815260200160006040518059106111a85750595b9080825280602002602001820160405250815260200160006040518059106111cd5750595b908082528060200260200182016040525081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016001151581526020016040805190810160405280600381526020017f6e2f610000000000000000000000000000000000000000000000000000000000815250815250600b60006008548152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301908051906020019061129e929190612298565b5060808201518160040190805190602001906112bb929190612298565b5060a0820151816005015560c0820151816006015560e082015181600701556101008201518160080155610120820151816009015561014082015181600a015561016082015181600b0160006101000a81548160ff02191690831515021790555061018082015181600c0190805190602001906113399291906122eb565b509050506008547f928a7a4d0b3c488c59342dd5e76a1878763d542965b4507d67d4af4a8693a9378383604051808381526020018281526020019250505060405180910390a26001600b60006008548152602001908152602001600020600b0160006101000a81548160ff0219169083151502179055505050565b6113bc61236b565b600182146113e157600b600060085481526020019081526020016000206004016113fa565b600b600060085481526020019081526020016000206003015b80548060200260200160405190810160405280929190818152602001828054801561144857602002820191906000526020600020905b81546000191681526020019060010190808311611430575b50505050509050919050565b6000600560008154809291906001019190505550600554604051808281526020019150506040518091039020905090565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614806114f5575060006114f36000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611cdd565b145b15611506576115046000611ce8565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561159357600080fd5b6102c65a03f115156115a457600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415156116ed576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561169157600080fd5b6102c65a03f115156116a257600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c281d19e6000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561177b57600080fd5b6102c65a03f1151561178c57600080fd5b50505060405180519050905090565b60008060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16148061180d5750600061180b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611cdd565b145b1561181e5761181c6000611ce8565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15156118ab57600080fd5b6102c65a03f115156118bc57600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515611a05576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15156119a957600080fd5b6102c65a03f115156119ba57600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663524f3889856000604051602001526040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611ab8578082015181840152602081019050611a9d565b50505050905090810190601f168015611ae55780820380516001836020036101000a031916815260200191505b5092505050602060405180830381600087803b1515611b0357600080fd5b6102c65a03f11515611b1457600080fd5b50505060405180519050905062030d403a02670de0b6b3a764000001811115611b435760006001029150611cd6565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663adf59f9982600087876000604051602001526040518563ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015611c04578082015181840152602081019050611be9565b50505050905090810190601f168015611c315780820380516001836020036101000a031916815260200191505b50838103825284818151815260200191508051906020019080838360005b83811015611c6a578082015181840152602081019050611c4f565b50505050905090810190601f168015611c975780820380516001836020036101000a031916815260200191505b50955050505050506020604051808303818588803b1515611cb757600080fd5b6125ee5a03f11515611cc857600080fd5b505050506040518051905091505b5092915050565b6000813b9050919050565b600080611d08731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed611cdd565b1115611da957731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611da06040805190810160405280600b81526020017f6574685f6d61696e6e6574000000000000000000000000000000000000000000815250612179565b60019050612174565b6000611dc873c03a2615d5efaf5f49f60b7bb6583eaec212fdf1611cdd565b1115611e695773c03a2615d5efaf5f49f60b7bb6583eaec212fdf16000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611e606040805190810160405280600c81526020017f6574685f726f707374656e330000000000000000000000000000000000000000815250612179565b60019050612174565b6000611e8873b7a07bcf2ba2f2703b24c0691b5278999c59ac7e611cdd565b1115611f295773b7a07bcf2ba2f2703b24c0691b5278999c59ac7e6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611f206040805190810160405280600981526020017f6574685f6b6f76616e0000000000000000000000000000000000000000000000815250612179565b60019050612174565b6000611f4873146500cfd35b22e4a392fe0adc06de1a1368ed48611cdd565b1115611fe95773146500cfd35b22e4a392fe0adc06de1a1368ed486000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611fe06040805190810160405280600b81526020017f6574685f72696e6b656279000000000000000000000000000000000000000000815250612179565b60019050612174565b6000612008736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475611cdd565b111561206b57736f485c8bf6fc43ea212e93bbf8ce046c7f1cb4756000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060019050612174565b600061208a7320e12a1f859b3feae5fb2a0a32c18f5a65555bbf611cdd565b11156120ed577320e12a1f859b3feae5fb2a0a32c18f5a65555bbf6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060019050612174565b600061210c7351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa611cdd565b111561216f577351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060019050612174565b600090505b919050565b806002908051906020019061218f9291906121bf565b5050565b8154818355818115116121ba578183600052602060002091820191016121b9919061237f565b5b505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061220057805160ff191683800117855561222e565b8280016001018555821561222e579182015b8281111561222d578251825591602001919060010190612212565b5b50905061223b91906123a4565b5090565b60e06040519081016040528060008019168152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600081526020016000815260200160008152602001600081526020016000151581525090565b8280548282559060005260206000209081019282156122da579160200282015b828111156122d95782518290600019169055916020019190600101906122b8565b5b5090506122e7919061237f565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061232c57805160ff191683800117855561235a565b8280016001018555821561235a579182015b8281111561235957825182559160200191906001019061233e565b5b50905061236791906123a4565b5090565b602060405190810160405280600081525090565b6123a191905b8082111561239d576000816000905550600101612385565b5090565b90565b6123c691905b808211156123c25760008160009055506001016123aa565b5090565b905600a165627a7a723058205052240a20d9794c398f1823a3c121b43d6c24f9479d2b5d022efc1940f110180029

Deployed Bytecode

0x6060604052600436106100f1576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806313af4035146100f65780632209e9911461012f57806327dc297e1461016657806338bbfa50146101d05780633ac8858b1461027d5780633d18678e146102a05780634e2786fb146102c35780635e318e07146102ec5780636e1ece251461030f5780638a6158f7146103385780638c65c81f1461034d5780638da5cb5b146104505780638e6bee97146104a55780639af1d35a146104d5578063b60d4288146104fe578063c396437214610508578063dd21541014610534575b600080fd5b341561010157600080fd5b61012d600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506105ac565b005b610164600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001909190505061064c565b005b341561017157600080fd5b6101ce60048080356000191690602001909190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610931565b005b34156101db57600080fd5b61027b60048080356000191690602001909190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610aa5565b005b341561028857600080fd5b61029e6004808035906020019091905050610aaa565b005b34156102ab57600080fd5b6102c16004808035906020019091905050610ab4565b005b34156102ce57600080fd5b6102d6610b1a565b6040518082815260200191505060405180910390f35b34156102f757600080fd5b61030d6004808035906020019091905050610b20565b005b341561031a57600080fd5b610322610c02565b6040518082815260200191505060405180910390f35b341561034357600080fd5b61034b610c08565b005b341561035857600080fd5b61036e6004808035906020019091905050610dff565b604051808c81526020018b81526020018a815260200189815260200188815260200187815260200186815260200185815260200184815260200183151515158152602001806020018281038252838181546001816001161561010002031660029004815260200191508054600181600116156101000203166002900480156104375780601f1061040c57610100808354040283529160200191610437565b820191906000526020600020905b81548152906001019060200180831161041a57829003601f168201915b50509c5050505050505050505050505060405180910390f35b341561045b57600080fd5b610463610e65565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156104b057600080fd5b6104d3600480803590602001909190803560001916906020019091905050610e8b565b005b34156104e057600080fd5b6104e8611102565b6040518082815260200191505060405180910390f35b610506611108565b005b341561051357600080fd5b610532600480803590602001909190803590602001909190505061110a565b005b341561053f57600080fd5b61055560048080359060200190919050506113b4565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561059857808201518184015260208101905061057d565b505050509050019250505060405180910390f35b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561060857600080fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600b60006008548152602001908152602001600020600b0160009054906101000a900460ff16151561067f57600080fd5b600754341015151561069057600080fd5b610698611454565b905060e060405190810160405280826000191681526020018473ffffffffffffffffffffffffffffffffffffffff16815260200183815260200134815260200160085481526020016000815260200160001515815250600b60006008548152602001908152602001600020600d01600083600019166000191681526020019081526020016000206000820151816000019060001916905560208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060408201518160020155606082015181600301556080820151816004015560a0820151816005015560c08201518160060160006101000a81548160ff021916908315150217905550905050600182141561083a5734600b6000600854815260200190815260200160002060050160008282540192505081905550600b60006008548152602001908152602001600020600301805480600101828161081a9190612193565b9160005260206000209001600083909190915090600019169055506108a6565b34600b6000600854815260200190815260200160002060060160008282540192505081905550600b60006008548152602001908152602001600020600401805480600101828161088a9190612193565b9160005260206000209001600083909190915090600019169055505b6008547ff7fd784971e4ac980d2c86fce44ed9f71c85416bbb20dea137591002489bbc8c828585346040518085600019166000191681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200182815260200194505050505060405180910390a2505050565b600c6000836000191660001916815260200190815260200160002060009054906101000a900460ff161515610994576008547f357e3df998cc78431a355a146a9770a882720eb73f8aa936bf4e0772d8c80c6b60405160405180910390a2600080fd5b61099c611485565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156109d557600080fd5b80600b60006008548152602001908152602001600020600c019080519060200190610a019291906121bf565b506008547fbc61b1bb4dbf5a02562e79bc91e37e594f6fce34a67358531acdf80b2b43c070826040518080602001828103825283818151815260200191508051906020019080838360005b83811015610a67578082015181840152602081019050610a4c565b50505050905090810190601f168015610a945780820380516001836020036101000a031916815260200191505b509250505060405180910390a25050565b505050565b8060078190555050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610b1057600080fd5b8060068190555050565b60085481565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610b7c57600080fd5b6009548111151515610b8d57600080fd5b80600960008282540392505081905550600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501515610bff57600080fd5b50565b60095481565b600080600080600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610c6a57600080fd5b6000600b60006008548152602001908152602001600020600b0160006101000a81548160ff021916908315150217905550600b6000600854815260200190815260200160002060050154600b6000600854815260200190815260200160002060060154019350600654606485811515610cdf57fe5b0402925082840391508260096000828254019250508190555083600b600060085481526020019081526020016000206007018190555082600b600060085481526020019081526020016000206009018190555081600b6000600854815260200190815260200160002060080181905550610dc36040805190810160405280600c81526020017f576f6c6672616d416c70686100000000000000000000000000000000000000008152506040805190810160405280601581526020017f52616e646f6d496e74656765725b7b312c20327d5d000000000000000000000081525061179b565b90506001600c6000836000191660001916815260200190815260200160002060006101000a81548160ff02191690831515021790555050505050565b600b60205280600052604060002060009150905080600001549080600101549080600201549080600501549080600601549080600701549080600801549080600901549080600a01549080600b0160009054906101000a900460ff169080600c0190508b565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610e9361223f565b600080600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610ef257600080fd5b600b6000868152602001908152602001600020600d016000856000191660001916815260200190815260200160002060e060405190810160405290816000820154600019166000191681526020016001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600282015481526020016003820154815260200160048201548152602001600582015481526020016006820160009054906101000a900460ff16151515158152505092508260c0015115610fe957600080fd5b600183604001511461101157600b600086815260200190815260200160002060060154611029565b600b6000868152602001908152602001600020600501545b91506103e8826103e885606001510281151561104157fe5b04600b6000888152602001908152602001600020600801540281151561106357fe5b04905060018360c0019015159081151581525050826020015173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015156110bb57600080fd5b847f2b8c2e7631cbe5ad43c5b2fdbdf24985a77b45e2da38cc744e3b16abd4d1a9608560405180826000191660001916815260200191505060405180910390a25050505050565b60065481565b565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561116657600080fd5b6008600081548092919060010191905055506101a060405190810160405280600854815260200183815260200182815260200160006040518059106111a85750595b9080825280602002602001820160405250815260200160006040518059106111cd5750595b908082528060200260200182016040525081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016001151581526020016040805190810160405280600381526020017f6e2f610000000000000000000000000000000000000000000000000000000000815250815250600b60006008548152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301908051906020019061129e929190612298565b5060808201518160040190805190602001906112bb929190612298565b5060a0820151816005015560c0820151816006015560e082015181600701556101008201518160080155610120820151816009015561014082015181600a015561016082015181600b0160006101000a81548160ff02191690831515021790555061018082015181600c0190805190602001906113399291906122eb565b509050506008547f928a7a4d0b3c488c59342dd5e76a1878763d542965b4507d67d4af4a8693a9378383604051808381526020018281526020019250505060405180910390a26001600b60006008548152602001908152602001600020600b0160006101000a81548160ff0219169083151502179055505050565b6113bc61236b565b600182146113e157600b600060085481526020019081526020016000206004016113fa565b600b600060085481526020019081526020016000206003015b80548060200260200160405190810160405280929190818152602001828054801561144857602002820191906000526020600020905b81546000191681526020019060010190808311611430575b50505050509050919050565b6000600560008154809291906001019190505550600554604051808281526020019150506040518091039020905090565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614806114f5575060006114f36000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611cdd565b145b15611506576115046000611ce8565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561159357600080fd5b6102c65a03f115156115a457600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415156116ed576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561169157600080fd5b6102c65a03f115156116a257600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c281d19e6000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561177b57600080fd5b6102c65a03f1151561178c57600080fd5b50505060405180519050905090565b60008060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16148061180d5750600061180b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611cdd565b145b1561181e5761181c6000611ce8565b505b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15156118ab57600080fd5b6102c65a03f115156118bc57600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515611a05576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15156119a957600080fd5b6102c65a03f115156119ba57600080fd5b50505060405180519050600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663524f3889856000604051602001526040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611ab8578082015181840152602081019050611a9d565b50505050905090810190601f168015611ae55780820380516001836020036101000a031916815260200191505b5092505050602060405180830381600087803b1515611b0357600080fd5b6102c65a03f11515611b1457600080fd5b50505060405180519050905062030d403a02670de0b6b3a764000001811115611b435760006001029150611cd6565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663adf59f9982600087876000604051602001526040518563ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015611c04578082015181840152602081019050611be9565b50505050905090810190601f168015611c315780820380516001836020036101000a031916815260200191505b50838103825284818151815260200191508051906020019080838360005b83811015611c6a578082015181840152602081019050611c4f565b50505050905090810190601f168015611c975780820380516001836020036101000a031916815260200191505b50955050505050506020604051808303818588803b1515611cb757600080fd5b6125ee5a03f11515611cc857600080fd5b505050506040518051905091505b5092915050565b6000813b9050919050565b600080611d08731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed611cdd565b1115611da957731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611da06040805190810160405280600b81526020017f6574685f6d61696e6e6574000000000000000000000000000000000000000000815250612179565b60019050612174565b6000611dc873c03a2615d5efaf5f49f60b7bb6583eaec212fdf1611cdd565b1115611e695773c03a2615d5efaf5f49f60b7bb6583eaec212fdf16000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611e606040805190810160405280600c81526020017f6574685f726f707374656e330000000000000000000000000000000000000000815250612179565b60019050612174565b6000611e8873b7a07bcf2ba2f2703b24c0691b5278999c59ac7e611cdd565b1115611f295773b7a07bcf2ba2f2703b24c0691b5278999c59ac7e6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611f206040805190810160405280600981526020017f6574685f6b6f76616e0000000000000000000000000000000000000000000000815250612179565b60019050612174565b6000611f4873146500cfd35b22e4a392fe0adc06de1a1368ed48611cdd565b1115611fe95773146500cfd35b22e4a392fe0adc06de1a1368ed486000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611fe06040805190810160405280600b81526020017f6574685f72696e6b656279000000000000000000000000000000000000000000815250612179565b60019050612174565b6000612008736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475611cdd565b111561206b57736f485c8bf6fc43ea212e93bbf8ce046c7f1cb4756000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060019050612174565b600061208a7320e12a1f859b3feae5fb2a0a32c18f5a65555bbf611cdd565b11156120ed577320e12a1f859b3feae5fb2a0a32c18f5a65555bbf6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060019050612174565b600061210c7351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa611cdd565b111561216f577351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060019050612174565b600090505b919050565b806002908051906020019061218f9291906121bf565b5050565b8154818355818115116121ba578183600052602060002091820191016121b9919061237f565b5b505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061220057805160ff191683800117855561222e565b8280016001018555821561222e579182015b8281111561222d578251825591602001919060010190612212565b5b50905061223b91906123a4565b5090565b60e06040519081016040528060008019168152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600081526020016000815260200160008152602001600081526020016000151581525090565b8280548282559060005260206000209081019282156122da579160200282015b828111156122d95782518290600019169055916020019190600101906122b8565b5b5090506122e7919061237f565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061232c57805160ff191683800117855561235a565b8280016001018555821561235a579182015b8281111561235957825182559160200191906001019061233e565b5b50905061236791906123a4565b5090565b602060405190810160405280600081525090565b6123a191905b8082111561239d576000816000905550600101612385565b5090565b90565b6123c691905b808211156123c25760008160009055506001016123aa565b5090565b905600a165627a7a723058205052240a20d9794c398f1823a3c121b43d6c24f9479d2b5d022efc1940f110180029

Swarm Source

bzzr://5052240a20d9794c398f1823a3c121b43d6c24f9479d2b5d022efc1940f11018

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.