Sponsored Link:   COVESTING - EU-based digital asset exchange. Aggregated liquidity. Algorithmic & Copy-trading features. 24/7 support. Get access!
Contract Overview | EtherFlip
Balance: 736.504046677540468713 Ether
Ether Value: $397,145.08 (@ $539.23/ETH)
Transactions: 73419 txns
Misc
Address Watch: Add To Watch List
Contract Creator: 0x165c74e3954817d007a2038bac8eaaed87c982faat txn 0xfc898b35601d951a0c1453016839629ef30d7e38145f082ac9f6873db70fb1a4
Token Balances:
 Latest 25 txns from a total Of 73419 transactions
View All

TxHash Age From To Value [TxFee]
0xb52adbe7e88a0296ae23909c4eb5b15ba795cff5fede667687ed5f6a0f9e27cd12 hrs 18 mins agoOraclize  IN   EtherFlip0 Ether0.00262348
0x927b92daa25a5a29b0e7b2f0c7184c633d8686fdbff541fc7cec2308ddabd40512 hrs 22 mins agoOraclize  IN   EtherFlip0 Ether0.005
0x25b743671bd2430d42132bad399fdfb0cfc0c9e21efc3b110e20b9bcac00999913 hrs 15 mins agoOraclize  IN   EtherFlip0 Ether0.005
0x6581e0bc7c2756d352481fe2cd88e243b4fee4972ae867a9ca28bc83a6bace0313 hrs 15 mins ago0x9b22f68c13d5537d0236a3172fcd98b4d07492a4  IN   EtherFlip0.1 Ether0.001673168
0x419576b2b3cb25354b9a9513e02c18d718e6edcdf53ce527bd6fe85bdb92716313 hrs 24 mins agoOraclize  IN   EtherFlip0 Ether0.005
0x57fc660b929d4f1b182db28616272b8c40a0cfa40b8dee6ac5c3fcf66403505513 hrs 24 mins ago0x7317f2798f1ba82e6f02752084c6c960dbc36e2d  IN   EtherFlip0.1 Ether0.001254876
0xd01ca564c173b1d7c53addce5a1e10201f8a8c5e0408bc52220458e7e920039a2 days 12 hrs agoOraclize  IN   EtherFlip0 Ether0.00262756
0xa034697c17bb6f5fbd29ad26e5ca89ec96f066b0fae7041db9043947bc7817f92 days 12 hrs ago0x9b22f68c13d5537d0236a3172fcd98b4d07492a4  IN   EtherFlip0.25 Ether0.001673168
0x65fe00c3735fe0a977ac3d1b1ce9872552d95b940ebb1df775847fa51fc758382 days 12 hrs agoOraclize  IN   EtherFlip0 Ether0.0015852
0xfcf83ca73f5d375bdc5ce9ff8a03190a5f999d7f63a53147a83850a784fa582c2 days 12 hrs ago0x9b22f68c13d5537d0236a3172fcd98b4d07492a4  IN   EtherFlip0.1 Ether0.001673168
0x3ec944f703327e51919db7abb0bc89eff14880b2a1fe1c494589510ceb4efddf2 days 12 hrs agoOraclize  IN   EtherFlip0 Ether0.0027162
0x029f57696573acb48d6267cf0e5a5f3aec4ba913bbbe12b811653f2a4ed53bdd2 days 12 hrs ago0x9b22f68c13d5537d0236a3172fcd98b4d07492a4  IN   EtherFlip0.1 Ether0.001464022
0x88664615293420c5f2ca7edee533c149e3074cde8b33ba11bf04a78bf0d80af72 days 12 hrs agoOraclize  IN   EtherFlip0 Ether0.00239206
0x507f3675a281be4714d9896b3cf1f5f5a4f40db2718482e5975df4d0b425ccc02 days 12 hrs agoOraclize  IN   EtherFlip0 Ether0.00230214
0x5fc6587ecd39c687d5eb3ed238dd282ae4f0f64b72cc43951885301da5be61882 days 12 hrs ago0x9b22f68c13d5537d0236a3172fcd98b4d07492a4  IN   EtherFlip0.1 Ether0.001673168
0xa59b966f5c1de0fe2235591d8c013dc8eb66cc4ea24061fcbc309fe6b96f74cc2 days 12 hrs ago0x9b22f68c13d5537d0236a3172fcd98b4d07492a4  IN   EtherFlip0.1 Ether0.001673168
0xe22f55ecdc651efa2e583d450e34da55817a60b67ee7b3c49c1d869889c0e61f2 days 16 hrs agoOraclize  IN   EtherFlip0 Ether0.00158512
0x15127a39026805ceb9c707a1f7e6a4e92b6ee2a50df2465323c1bf76061e9f8c2 days 16 hrs agoOraclize  IN   EtherFlip0 Ether0.0015852
0x92db208955aeb79d0d44ad519d2eab7317fc2dee3b94d8c42d525bc09118513d2 days 16 hrs ago0x9b22f68c13d5537d0236a3172fcd98b4d07492a4  IN   EtherFlip0.1 Ether0.001254876
0xa38a81df5250611ae82d959d3c2b62a305a09c7b2bda720a50d466d8696b4ccc2 days 16 hrs agoOraclize  IN   EtherFlip0 Ether0.0016764
0xf21e1e9cd458b3c1042dca43393e265a685324e518772e46eda2d9e74dfe77db2 days 16 hrs ago0x9b22f68c13d5537d0236a3172fcd98b4d07492a4  IN   EtherFlip0.1 Ether0.001254876
0x9e7bb86320664ec485b8d8355add672fada88cbf6724f3a508507588f47eec1d2 days 16 hrs ago0x9b22f68c13d5537d0236a3172fcd98b4d07492a4  IN   EtherFlip0.1 Ether0.001254876
0x4de2044b7b8b7ae9a30e4f027053868f08922a546e014d86d8bb15d1d97801d45 days 18 hrs agoOraclize  IN   EtherFlip0 Ether0.00138866
0xd2980306e0c14206572d7ebd5704f4f13f5ed93e4da25fa6bc59266ae03573145 days 18 hrs ago0x831a278ff506bf4daa955359f9c5da9b9be18f3a  IN   EtherFlip0.3 Ether0.002928044
0x7d9d031acea42ace67b98d4990aa7af1df7fc8bbb79cbf56b6f0d14fdda14f4f5 days 18 hrs agoOraclize  IN   EtherFlip0 Ether0.00257602
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 25 Internal Txns, Click here to View More View All
ParentTxHash Block Age From To Value
0x6581e0bc7c2756d352481fe2cd88e243b4fee4972ae867a9ca28bc83a6bace03582329413 hrs 15 mins ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0051333587345408 Ether
0x57fc660b929d4f1b182db28616272b8c40a0cfa40b8dee6ac5c3fcf664035055582326113 hrs 24 mins ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0051333587345408 Ether
0xa034697c17bb6f5fbd29ad26e5ca89ec96f066b0fae7041db9043947bc7817f958119332 days 12 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0051333587345408 Ether
0x65fe00c3735fe0a977ac3d1b1ce9872552d95b940ebb1df775847fa51fc7583858118742 days 12 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x9b22f68c13d5537d0236a3172fcd98b4d07492a40.185281021276 Ether
0xfcf83ca73f5d375bdc5ce9ff8a03190a5f999d7f63a53147a83850a784fa582c58118722 days 12 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0051333587345408 Ether
0x029f57696573acb48d6267cf0e5a5f3aec4ba913bbbe12b811653f2a4ed53bdd58117232 days 12 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0051333587345408 Ether
0x5fc6587ecd39c687d5eb3ed238dd282ae4f0f64b72cc43951885301da5be618858117192 days 12 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0051333587345408 Ether
0xa59b966f5c1de0fe2235591d8c013dc8eb66cc4ea24061fcbc309fe6b96f74cc58117172 days 12 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0051333587345408 Ether
0xe22f55ecdc651efa2e583d450e34da55817a60b67ee7b3c49c1d869889c0e61f58108332 days 16 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x9b22f68c13d5537d0236a3172fcd98b4d07492a40.185281021276 Ether
0x15127a39026805ceb9c707a1f7e6a4e92b6ee2a50df2465323c1bf76061e9f8c58108322 days 16 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x9b22f68c13d5537d0236a3172fcd98b4d07492a40.185281021276 Ether
0x92db208955aeb79d0d44ad519d2eab7317fc2dee3b94d8c42d525bc09118513d58108312 days 16 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0051333587345408 Ether
0xa38a81df5250611ae82d959d3c2b62a305a09c7b2bda720a50d466d8696b4ccc58108312 days 16 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x9b22f68c13d5537d0236a3172fcd98b4d07492a40.185281021276 Ether
0xf21e1e9cd458b3c1042dca43393e265a685324e518772e46eda2d9e74dfe77db58108292 days 16 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0051333587345408 Ether
0x9e7bb86320664ec485b8d8355add672fada88cbf6724f3a508507588f47eec1d58108282 days 16 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0051333587345408 Ether
0x4de2044b7b8b7ae9a30e4f027053868f08922a546e014d86d8bb15d1d97801d457928115 days 18 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x831a278ff506bf4daa955359f9c5da9b9be18f3a0.3 Ether
0xd2980306e0c14206572d7ebd5704f4f13f5ed93e4da25fa6bc59266ae035731457928105 days 18 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0051333587345408 Ether
0x3bb6e2926f6184c2b6b01d9cd392ab0ab63899a8678e6ad32e0fd8576d9dce9457927955 days 18 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0051333587345408 Ether
0xbb1b127aec32f3769f45296c8c97f1d8547ba27d52b335942a6c61eaf36baa5457894386 days 8 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0xc7ef92c6001cfb326b69c00c1c5d4bee6c2156720.381396765956 Ether
0x1f4a5590e7bd5834bc56ce71dfaaeacf9264e95d2261b4d58c12178d2f6f7c0957894336 days 8 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0051333587345408 Ether
0xd62f58cfa0d31d9f791256a70d3afc58fa31831c3b5febdaf4c13e60dafafc1f57893526 days 8 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0xc7ef92c6001cfb326b69c00c1c5d4bee6c2156721.460033361696 Ether
0xcec4a074781019646c5b7a1e2d5c7eec362fcb16c4d2a8f0921123679e3f279057893496 days 8 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0051333587345408 Ether
0x75f087b1f0d7dd457e06b97591ff31befe13976c24d3a44e723833c8a441a24657892146 days 9 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0xc7ef92c6001cfb326b69c00c1c5d4bee6c2156720.381396765956 Ether
0x92369508de21483462e26df7a6636ec5d541e214c60b894c3eecbd786dcb4c2d57892116 days 9 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0051333587345408 Ether
0x0b5737dca7ff655af84951da3bbfd189c5d9aeaa7b931bc3674d354ef355b3f057889196 days 10 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0xc7ef92c6001cfb326b69c00c1c5d4bee6c2156720.381396765956 Ether
0xc6bbf1b83b8b2b58b0347cadd5ef9364c32eaede13a8bcdaf324394b3f893b9157889176 days 10 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0051333587345408 Ether
[ Download CSV Export  ] 
Warning: The compiled contract might be susceptible to ZeroFunctionSelector (very low-severity), DelegateCallReturnValue (low-severity), ECRecoverMalformedInput (medium-severity), SkipEmptyStringLiteral (low-severity) Solidity compiler bugs.

Contract Source Code Verified (Exact match)
Contract Name: EtherFlip
Compiler Version: v0.4.11+commit.68ef5810
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

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



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



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



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

pragma solidity ^0.4.11;//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();
        oraclize = OraclizeI(OAR.getAddress());
        _;
    }
    modifier coupon(string code){
        oraclize = OraclizeI(OAR.getAddress());
        oraclize.useCoupon(code);
        _;
    }

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

    function __callback(bytes32 myid, string result) {
        __callback(myid, result, new bytes(0));
    }
    function __callback(bytes32 myid, string result, bytes proof) {
        myid;
        result;
        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)
        }
        
        _addr;
        _size;
    }

    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();
        sessionKeyHash_bytes32;
        assembly {
            mstore(unonce, 0x20)
            mstore(add(unonce, 0x20), xor(blockhash(sub(number, 1)), xor(coinbase, timestamp)))
            mstore(sessionKeyHash, 0x20)
            mstore(add(sessionKeyHash, 0x20), sessionKeyHash_bytes32)
        }
        bytes[3] memory args = [unonce, nbytes, sessionKeyHash]; 
        bytes32 queryId = oraclize_query(_delay, "random", args, _customGasLimit);
        oraclize_randomDS_setCommitment(queryId, sha3(bytes8(_delay), args[1], sha256(args[0]), args[2]));
        return queryId;
    }
    
    function oraclize_randomDS_setCommitment(bytes32 queryId, bytes32 commitment) internal {
        oraclize_randomDS_args[queryId] = commitment;
    }
    
    mapping(bytes32=>bytes32) oraclize_randomDS_args;
    mapping(bytes32=>bool) oraclize_randomDS_sessionKeysHashVerified;

    function verifySig(bytes32 tosignh, bytes dersig, bytes pubkey) internal returns (bool){
        bool sigok;
        address signer;
        
        bytes32 sigr;
        bytes32 sigs;
        
        bytes memory sigr_ = new bytes(32);
        uint offset = 4+(uint(dersig[3]) - 0x20);
        sigr_ = copyBytes(dersig, offset, 32, sigr_, 0);
        bytes memory sigs_ = new bytes(32);
        offset += 32 + 2;
        sigs_ = copyBytes(dersig, offset+(uint(dersig[offset-1]) - 0x20), 32, sigs_, 0);

        assembly {
            sigr := mload(add(sigr_, 32))
            sigs := mload(add(sigs_, 32))
        }
        
        
        (sigok, signer) = safer_ecrecover(tosignh, 27, sigr, sigs);
        if (address(sha3(pubkey)) == signer) return true;
        else {
            (sigok, signer) = safer_ecrecover(tosignh, 28, sigr, sigs);
            return (address(sha3(pubkey)) == signer);
        }
    }

    function oraclize_randomDS_proofVerify__sessionKeyValidity(bytes proof, uint sig2offset) internal returns (bool) {
        bool sigok;
        
        // Step 6: verify the attestation signature, APPKEY1 must sign the sessionKey from the correct ledger app (CODEHASH)
        bytes memory sig2 = new bytes(uint(proof[sig2offset+1])+2);
        copyBytes(proof, sig2offset, sig2.length, sig2, 0);
        
        bytes memory appkey1_pubkey = new bytes(64);
        copyBytes(proof, 3+1, 64, appkey1_pubkey, 0);
        
        bytes memory tosign2 = new bytes(1+65+32);
        tosign2[0] = 1; //role
        copyBytes(proof, sig2offset-65, 65, tosign2, 1);
        bytes memory CODEHASH = hex"fd94fa71bc0ba10d39d464d0d8f465efeef0a2764e3887fcc9df41ded20f505c";
        copyBytes(CODEHASH, 0, 32, tosign2, 1+65);
        sigok = verifySig(sha256(tosign2), sig2, appkey1_pubkey);
        
        if (sigok == false) return false;
        
        
        // Step 7: verify the APPKEY1 provenance (must be signed by Ledger)
        bytes memory LEDGERKEY = hex"7fb956469c5c9b89840d55b43537e66a98dd4811ea0a27224272c2e5622911e8537a2f8e86a46baec82864e98dd01e9ccc2f8bc5dfc9cbe5a91a290498dd96e4";
        
        bytes memory tosign3 = new bytes(1+65);
        tosign3[0] = 0xFE;
        copyBytes(proof, 3, 65, tosign3, 1);
        
        bytes memory sig3 = new bytes(uint(proof[3+65+1])+2);
        copyBytes(proof, 3+65, sig3.length, sig3, 0);
        
        sigok = verifySig(sha256(tosign3), sig3, LEDGERKEY);
        
        return sigok;
    }
    
    modifier oraclize_randomDS_proofVerify(bytes32 _queryId, string _result, bytes _proof) {
        // Step 1: the prefix has to match 'LP\x01' (Ledger Proof version 1)
        if ((_proof[0] != "L")||(_proof[1] != "P")||(_proof[2] != 1)) throw;
        
        bool proofVerified = oraclize_randomDS_proofVerify__main(_proof, _queryId, bytes(_result), oraclize_getNetworkName());
        if (proofVerified == false) throw;
        
        _;
    }
    
    function oraclize_randomDS_proofVerify__returnCode(bytes32 _queryId, string _result, bytes _proof) internal returns (uint8){
        // Step 1: the prefix has to match 'LP\x01' (Ledger Proof version 1)
        if ((_proof[0] != "L")||(_proof[1] != "P")||(_proof[2] != 1)) return 1;
        
        bool proofVerified = oraclize_randomDS_proofVerify__main(_proof, _queryId, bytes(_result), oraclize_getNetworkName());
        if (proofVerified == false) return 2;
        
        return 0;
    }
    
    function matchBytes32Prefix(bytes32 content, bytes prefix) internal returns (bool){
        bool match_ = true;
        
        for (var i=0; i<prefix.length; i++){
            if (content[i] != prefix[i]) match_ = false;
        }
        
        return match_;
    }

    function oraclize_randomDS_proofVerify__main(bytes proof, bytes32 queryId, bytes result, string context_name) internal returns (bool){
        bool checkok;
        
        
        // Step 2: the unique keyhash has to match with the sha256 of (context name + queryId)
        uint ledgerProofLength = 3+65+(uint(proof[3+65+1])+2)+32;
        bytes memory keyhash = new bytes(32);
        copyBytes(proof, ledgerProofLength, 32, keyhash, 0);
        checkok = (sha3(keyhash) == sha3(sha256(context_name, queryId)));
        if (checkok == false) return false;
        
        bytes memory sig1 = new bytes(uint(proof[ledgerProofLength+(32+8+1+32)+1])+2);
        copyBytes(proof, ledgerProofLength+(32+8+1+32), sig1.length, sig1, 0);
        
        
        // Step 3: we assume sig1 is valid (it will be verified during step 5) and we verify if 'result' is the prefix of sha256(sig1)
        checkok = matchBytes32Prefix(sha256(sig1), result);
        if (checkok == false) return false;
        
        
        // Step 4: commitment match verification, sha3(delay, nbytes, unonce, sessionKeyHash) == commitment in storage.
        // This is to verify that the computed args match with the ones specified in the query.
        bytes memory commitmentSlice1 = new bytes(8+1+32);
        copyBytes(proof, ledgerProofLength+32, 8+1+32, commitmentSlice1, 0);
        
        bytes memory sessionPubkey = new bytes(64);
        uint sig2offset = ledgerProofLength+32+(8+1+32)+sig1.length+65;
        copyBytes(proof, sig2offset-64, 64, sessionPubkey, 0);
        
        bytes32 sessionPubkeyHash = sha256(sessionPubkey);
        if (oraclize_randomDS_args[queryId] == sha3(commitmentSlice1, sessionPubkeyHash)){ //unonce, nbytes and sessionKeyHash match
            delete oraclize_randomDS_args[queryId];
        } else return false;
        
        
        // Step 5: validity verification for sig1 (keyhash and args signed with the sessionKey)
        bytes memory tosign1 = new bytes(32+8+1+32);
        copyBytes(proof, ledgerProofLength, 32+8+1+32, tosign1, 0);
        checkok = verifySig(sha256(tosign1), sig1, sessionPubkey);
        if (checkok == false) return false;
        
        // verify if sessionPubkeyHash was verified already, if not.. let's do it!
        if (oraclize_randomDS_sessionKeysHashVerified[sessionPubkeyHash] == false){
            oraclize_randomDS_sessionKeysHashVerified[sessionPubkeyHash] = oraclize_randomDS_proofVerify__sessionKeyValidity(proof, sig2offset);
        }
        
        return oraclize_randomDS_sessionKeysHashVerified[sessionPubkeyHash];
    }

    
    // the following function has been written by Alex Beregszaszi (@axic), use it under the terms of the MIT license
    function copyBytes(bytes from, uint fromOffset, uint length, bytes to, uint toOffset) internal returns (bytes) {
        uint minLength = length + toOffset;

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

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

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

        from;
        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)
        }
        
        hash;
        r;
        v;
        s;
        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>

// EtherFlip v1.6

contract token { function transfer(address receiver, uint amount){ receiver; amount; } }

contract EtherFlip is usingOraclize {
    
    modifier ownerAction {
         if (msg.sender != owner) throw;
         _;
    }
    
    modifier oraclizeAction {
        if (msg.sender != oraclize_cbAddress()) throw;
        _;
    }
    
    //~ Events
    event newRandomValue(bytes, address, uint);
    event proofFailed(address, uint);
    
    //~ Tokens
    token public flipTokenReward;
    token public millionDollarTokenReward;
    token public jackpotToken;
    token public sponsoredJackpotToken;
    token public bonusToken;
    token public sponsoredBonusToken;

    //~ Base setup
    address public owner;
    
    //~ EtherFlip Properties
    uint public generatedBytes;
    uint public maxBet;
    uint public minBet;
    uint public oraclizeFee;
    uint public flipRewardAmount;
    uint public mdtRewardAmount;
    uint public jackpotAmount;
    uint public sponsoredJackpotAmount;
    uint public bonusAmount;
    uint public sponsoredBonusAmount;
    uint public callbackGas;
    uint public incrementFee;
    uint public incrementDivisor;
    
    //~ Comparables
    uint public baseComparable;
    uint public jackpotHit;
    uint public sponsoredJackpotMin;
    uint public sponsoredJackpotMax;
    uint public bonusMin;
    uint public bonusMax;
    uint public sponsoredBonusMin;
    uint public sponsoredBonusMax;
    uint public mdtComparable;
    
    //~ Address & Amount hashes to accurately send transactions/winnings
    mapping (bytes32 => address) playerAddress;
    mapping (bytes32 => uint) playerAmount;

    function EtherFlip() {
        owner = msg.sender;
        oraclize_setProof(proofType_Ledger);
        
        // Initial setup for contract
        //maxBet = (1000000000000000000 * 1 wei);
        //minBet = (100000000000000000 * 1 wei);
        //oraclizeFee = 6000000000000000; //API cost of Oraclize
        
        //callbackGas = 250000;
        //incrementFee = (194212766000000 * 1 wei);
        //incrementDivisor = (10000000000000000 * 1 wei);
        
        //baseComparable = 32250;
        //jackpotHit = 35000;
        //sponsoredJackpotMin = 35005;
        //sponsoredJackpotMax = 35006;

        //bonusMin = 35006;
        //bonusMax = 38282;
        //sponsoredBonusMin = 38282;
        //sponsoredBonusMax = 41558;
        //mdtComparable = 65337;
    }
    
    function () payable {
        if (msg.sender != owner) {
            if (msg.value > maxBet || msg.value < minBet) throw;
        
            oraclize_setProof(proofType_Ledger);
            uint numberOfBytes = 2;
            uint delay = 0;
            bytes32 queryId = oraclize_newRandomDSQuery(delay, numberOfBytes, callbackGas); 
            playerAddress[queryId] = msg.sender;
            playerAmount[queryId] = msg.value;
        }
    }
    
    function __callback(bytes32 _queryId, string _result, bytes _proof) oraclizeAction { 
        uint amount = playerAmount[_queryId];
        if (oraclize_randomDS_proofVerify__returnCode(_queryId, _result, _proof) != 0 || _proof.length == 0) {
            // the proof verification has failed
            proofFailed(playerAddress[_queryId], amount);
            playerAddress[_queryId].transfer(amount);
            delete playerAddress[_queryId];
            delete playerAmount[_queryId];
        } else {
            newRandomValue(bytes(_result), playerAddress[_queryId], amount);
            generatedBytes = uint(sha3(_result)) % 2**(2 *8);
            uint feeMultiple = amount / incrementDivisor;
            uint eFee = (feeMultiple - 3) * incrementFee;

            if (generatedBytes < baseComparable) {
                playerAddress[_queryId].transfer((amount - oraclizeFee - eFee) * 2);
            } 
            
            if (generatedBytes >= baseComparable && flipRewardAmount > 0) {
                flipTokenReward.transfer(playerAddress[_queryId], flipRewardAmount * feeMultiple);
            } 
            
            if (generatedBytes >= mdtComparable && mdtRewardAmount > 0) {
                millionDollarTokenReward.transfer(playerAddress[_queryId], mdtRewardAmount); 
            }
        
            if (generatedBytes == jackpotHit && amount == maxBet) {
                jackpotToken.transfer(playerAddress[_queryId], jackpotAmount);
            }
        
            if (generatedBytes >= sponsoredJackpotMin && generatedBytes <= sponsoredJackpotMax) {
                sponsoredJackpotToken.transfer(playerAddress[_queryId], sponsoredJackpotAmount);
            }
        
            if (generatedBytes >= bonusMin && generatedBytes <= bonusMax) {
                bonusToken.transfer(playerAddress[_queryId], bonusAmount);
            }
        
            if (generatedBytes >= sponsoredBonusMin && generatedBytes <= sponsoredBonusMax) {
                sponsoredBonusToken.transfer(playerAddress[_queryId], sponsoredBonusAmount);
            }
        
            delete playerAddress[_queryId];
            delete playerAmount[_queryId];
           
        }
    }
    
    function updateMaxMinComparables(uint updatedMaxBet, uint updatedMinBet, uint updatedBaseComparable, uint updatedMDTComparable) ownerAction {
        maxBet = updatedMaxBet * 1 wei;
        minBet = updatedMinBet * 1 wei;
        baseComparable = updatedBaseComparable;
        mdtComparable = updatedMDTComparable;
    }  
    
    function updateOwner(address updatedOwner) ownerAction {
        owner = updatedOwner;
    }
    
    function updateFlipAndMDT(address updatedFlipToken, uint updatedFlipRewardAmount, address updatedMDTToken, uint updatedMDTRewardAmount) ownerAction {
        millionDollarTokenReward = token(updatedMDTToken);
        mdtRewardAmount = updatedMDTRewardAmount;
        //Swappable for initial mainnet testing & after ICO to add dummy token to indicate loss
        flipTokenReward = token(updatedFlipToken);
        flipRewardAmount = updatedFlipRewardAmount;
    }
    
    function refundTransfer(address outboundAddress, uint amount) ownerAction {        
        outboundAddress.transfer(amount);
    }
    
    function walletSend(address tokenAddress, uint amount, address outboundAddress) ownerAction {
        token chosenToken = token(tokenAddress);
        chosenToken.transfer(outboundAddress, amount);
    }
    
    function updateGameSpecifics(uint newGas, uint newOraclizeFee, uint newFee, uint newDivisor) ownerAction {
        callbackGas = newGas;
        oraclizeFee = newOraclizeFee;
        incrementFee = (newFee * 1 wei);
        incrementDivisor = (newDivisor * 1 wei);
    }
    
    function setJackpotToken(address newJackpotToken, uint newJackpotAmount, uint newJackpotHit, address newSponsoredJackpotToken, uint newSponsoredJackpotAmount, uint newSJackpotMin, uint newSJackpotMax) ownerAction {
        jackpotToken = token(newJackpotToken);
        jackpotAmount = newJackpotAmount;
        jackpotHit = newJackpotHit;
        
        sponsoredJackpotToken = token(newSponsoredJackpotToken);
        sponsoredJackpotAmount = newSponsoredJackpotAmount;
        sponsoredJackpotMin = newSJackpotMin;
        sponsoredJackpotMax = newSJackpotMax;
    }
    
    function setBonusToken(address newBonusToken, uint newBonusAmount, uint newBonusMin, uint newBonusMax, address newSponsoredBonusToken, uint newSponsoredBonusAmount, uint newSBonusMin, uint newSBonusMax) ownerAction {
        bonusToken = token(newBonusToken);
        bonusAmount = newBonusAmount;
        bonusMin = newBonusMin;
        bonusMax = newBonusMax;
        
        sponsoredBonusToken = token(newSponsoredBonusToken);
        sponsoredBonusAmount = newSponsoredBonusAmount;
        sponsoredBonusMin = newSBonusMin;
        sponsoredBonusMax = newSBonusMax;
    }
}

    Contract ABI  
[{"constant":true,"inputs":[],"name":"bonusMin","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"updatedFlipToken","type":"address"},{"name":"updatedFlipRewardAmount","type":"uint256"},{"name":"updatedMDTToken","type":"address"},{"name":"updatedMDTRewardAmount","type":"uint256"}],"name":"updateFlipAndMDT","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"generatedBytes","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"newGas","type":"uint256"},{"name":"newOraclizeFee","type":"uint256"},{"name":"newFee","type":"uint256"},{"name":"newDivisor","type":"uint256"}],"name":"updateGameSpecifics","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"myid","type":"bytes32"},{"name":"result","type":"string"}],"name":"__callback","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"newJackpotToken","type":"address"},{"name":"newJackpotAmount","type":"uint256"},{"name":"newJackpotHit","type":"uint256"},{"name":"newSponsoredJackpotToken","type":"address"},{"name":"newSponsoredJackpotAmount","type":"uint256"},{"name":"newSJackpotMin","type":"uint256"},{"name":"newSJackpotMax","type":"uint256"}],"name":"setJackpotToken","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"maxBet","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"sponsoredBonusMin","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_queryId","type":"bytes32"},{"name":"_result","type":"string"},{"name":"_proof","type":"bytes"}],"name":"__callback","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"baseComparable","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"bonusToken","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"sponsoredJackpotToken","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"oraclizeFee","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"sponsoredJackpotMin","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"sponsoredJackpotAmount","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"flipTokenReward","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"flipRewardAmount","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"bonusMax","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"jackpotHit","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"updatedOwner","type":"address"}],"name":"updateOwner","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"jackpotToken","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"minBet","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"incrementFee","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"callbackGas","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"incrementDivisor","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"tokenAddress","type":"address"},{"name":"amount","type":"uint256"},{"name":"outboundAddress","type":"address"}],"name":"walletSend","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"bonusAmount","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"sponsoredJackpotMax","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"jackpotAmount","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"sponsoredBonusMax","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"millionDollarTokenReward","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"outboundAddress","type":"address"},{"name":"amount","type":"uint256"}],"name":"refundTransfer","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"sponsoredBonusAmount","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"mdtRewardAmount","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"sponsoredBonusToken","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"updatedMaxBet","type":"uint256"},{"name":"updatedMinBet","type":"uint256"},{"name":"updatedBaseComparable","type":"uint256"},{"name":"updatedMDTComparable","type":"uint256"}],"name":"updateMaxMinComparables","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"newBonusToken","type":"address"},{"name":"newBonusAmount","type":"uint256"},{"name":"newBonusMin","type":"uint256"},{"name":"newBonusMax","type":"uint256"},{"name":"newSponsoredBonusToken","type":"address"},{"name":"newSponsoredBonusAmount","type":"uint256"},{"name":"newSBonusMin","type":"uint256"},{"name":"newSBonusMax","type":"uint256"}],"name":"setBonusToken","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"mdtComparable","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"inputs":[],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"","type":"bytes"},{"indexed":false,"name":"","type":"address"},{"indexed":false,"name":"","type":"uint256"}],"name":"newRandomValue","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"","type":"address"},{"indexed":false,"name":"","type":"uint256"}],"name":"proofFailed","type":"event"}]

  Contract Creation Code Switch To Opcodes View
606060405234156200000d57fe5b5b600b8054600160a060020a03191633600160a060020a0316179055620000627f3000000000000000000000000000000000000000000000000000000000000000640100000000620000698102620008cc1704565b5b620006c4565b600054600160a060020a03161580620000a45750600054620000a290600160a060020a03166401000000006200176f620001f982021704565b155b15620000c457620000c2640100000000620017776200020182021704565b505b600060009054906101000a9004600160a060020a0316600160a060020a03166338cc48316000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401809050602060405180830381600087803b15156200013957fe5b6102c65a03f115156200014857fe5b505060408051805160018054600160a060020a031916600160a060020a0392831617908190557f688dcfd70000000000000000000000000000000000000000000000000000000083527fff000000000000000000000000000000000000000000000000000000000000008616600484015292519216925063688dcfd791602480830192600092919082900301818387803b1515620001e257fe5b6102c65a03f11515620001f157fe5b5050505b5b50565b803b5b919050565b60008062000231731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed6401000000006200176f620001f982021704565b1115620002b45760008054600160a060020a031916731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed17905560408051808201909152600b81527f6574685f6d61696e6e65740000000000000000000000000000000000000000006020820152620002ab90640100000000620020126200060082021704565b506001620005fd565b6000620002e373c03a2615d5efaf5f49f60b7bb6583eaec212fdf16401000000006200176f620001f982021704565b1115620003665760008054600160a060020a03191673c03a2615d5efaf5f49f60b7bb6583eaec212fdf117905560408051808201909152600c81527f6574685f726f707374656e3300000000000000000000000000000000000000006020820152620002ab90640100000000620020126200060082021704565b506001620005fd565b60006200039573b7a07bcf2ba2f2703b24c0691b5278999c59ac7e6401000000006200176f620001f982021704565b1115620004185760008054600160a060020a03191673b7a07bcf2ba2f2703b24c0691b5278999c59ac7e17905560408051808201909152600981527f6574685f6b6f76616e00000000000000000000000000000000000000000000006020820152620002ab90640100000000620020126200060082021704565b506001620005fd565b60006200044773146500cfd35b22e4a392fe0adc06de1a1368ed486401000000006200176f620001f982021704565b1115620004ca5760008054600160a060020a03191673146500cfd35b22e4a392fe0adc06de1a1368ed4817905560408051808201909152600b81527f6574685f72696e6b6562790000000000000000000000000000000000000000006020820152620002ab90640100000000620020126200060082021704565b506001620005fd565b6000620004f9736f485c8bf6fc43ea212e93bbf8ce046c7f1cb4756401000000006200176f620001f982021704565b11156200052f575060008054600160a060020a031916736f485c8bf6fc43ea212e93bbf8ce046c7f1cb4751790556001620005fd565b60006200055e7320e12a1f859b3feae5fb2a0a32c18f5a65555bbf6401000000006200176f620001f982021704565b111562000594575060008054600160a060020a0319167320e12a1f859b3feae5fb2a0a32c18f5a65555bbf1790556001620005fd565b6000620005c37351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa6401000000006200176f620001f982021704565b1115620005f9575060008054600160a060020a0319167351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa1790556001620005fd565b5060005b90565b8051620006159060029060208401906200061a565b505b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200065d57805160ff19168380011785556200068d565b828001600101855582156200068d579182015b828111156200068d57825182559160200191906001019062000670565b5b506200069c929150620006a0565b5090565b620005fd91905b808211156200069c5760008155600101620006a7565b5090565b90565b61359980620006d46000396000f300606060405236156101c75763ffffffff60e060020a6000350416631b87d58a81146102815780632399f870146102a357806323d32d6a146102ce57806324ce2562146102f057806327dc297e1461030e5780632d19413c146103675780632e5b21681461039c5780632e6b2662146103be57806338bbfa50146103e05780633b5e53761461047657806341d4a1ab146104985780634af69189146104c45780634c6226fc146104f05780635ed6522814610512578063600720c21461053457806366476fcc146105565780637a8bd93e146105825780637aba86d2146105a457806380d1bd47146105c6578063880cdc31146105e85780638da5cb5b146106065780638ec9925e146106325780639619367d1461065e578063a0109c9f14610680578063a10132ad146106a2578063a7ace55d146106c4578063a824e636146106e6578063abadaf9a1461070e578063b1e045f714610730578063b1eac37e14610752578063b65b4c9a14610774578063bd22b1cb14610796578063c8d52ee3146107c2578063cbd5131b146107e3578063d08d675314610805578063e0f8da9714610827578063fe2b624614610853578063ff3af97f14610871578063ff78d5ed146108aa575b61027f5b600b546000908190819033600160a060020a0390811691161461027957600d543411806101f95750600e5434105b156102045760006000fd5b61022d7f30000000000000000000000000000000000000000000000000000000000000006108cc565b60029250600091506102428284601654610a1d565b60008181526022602090815260408083208054600160a060020a03191633600160a060020a03161790556023909152902034905590505b5b505050565b005b341561028957fe5b610291610d2e565b60408051918252519081900360200190f35b34156102ab57fe5b61027f600160a060020a036004358116906024359060443516606435610d34565b005b34156102d657fe5b610291610d92565b60408051918252519081900360200190f35b34156102f857fe5b61027f600435602435604435606435610d98565b005b341561031657fe5b60408051602060046024803582810135601f810185900485028601850190965285855261027f9583359593946044949392909201918190840183828082843750949650610dd095505050505050565b005b341561036f57fe5b61027f600160a060020a0360043581169060243590604435906064351660843560a43560c435610e00565b005b34156103a457fe5b610291610e70565b60408051918252519081900360200190f35b34156103c657fe5b610291610e76565b60408051918252519081900360200190f35b34156103e857fe5b60408051602060046024803582810135601f810185900485028601850190965285855261027f958335959394604494939290920191819084018382808284375050604080516020601f89358b01803591820183900483028401830190945280835297999881019791965091820194509250829150840183828082843750949650610e7c95505050505050565b005b341561047e57fe5b6102916114d7565b60408051918252519081900360200190f35b34156104a057fe5b6104a86114dd565b60408051600160a060020a039092168252519081900360200190f35b34156104cc57fe5b6104a86114ec565b60408051600160a060020a039092168252519081900360200190f35b34156104f857fe5b6102916114fb565b60408051918252519081900360200190f35b341561051a57fe5b610291611501565b60408051918252519081900360200190f35b341561053c57fe5b610291611507565b60408051918252519081900360200190f35b341561055e57fe5b6104a861150d565b60408051600160a060020a039092168252519081900360200190f35b341561058a57fe5b61029161151c565b60408051918252519081900360200190f35b34156105ac57fe5b610291611522565b60408051918252519081900360200190f35b34156105ce57fe5b610291611528565b60408051918252519081900360200190f35b34156105f057fe5b61027f600160a060020a036004351661152e565b005b341561060e57fe5b6104a861156a565b60408051600160a060020a039092168252519081900360200190f35b341561063a57fe5b6104a8611579565b60408051600160a060020a039092168252519081900360200190f35b341561066657fe5b610291611588565b60408051918252519081900360200190f35b341561068857fe5b61029161158e565b60408051918252519081900360200190f35b34156106aa57fe5b610291611594565b60408051918252519081900360200190f35b34156106cc57fe5b61029161159a565b60408051918252519081900360200190f35b34156106ee57fe5b61027f600160a060020a0360043581169060243590604435166115a0565b005b341561071657fe5b61029161162a565b60408051918252519081900360200190f35b341561073857fe5b610291611630565b60408051918252519081900360200190f35b341561075a57fe5b610291611636565b60408051918252519081900360200190f35b341561077c57fe5b61029161163c565b60408051918252519081900360200190f35b341561079e57fe5b6104a8611642565b60408051600160a060020a039092168252519081900360200190f35b34156107ca57fe5b61027f600160a060020a0360043516602435611651565b005b34156107eb57fe5b6102916116a0565b60408051918252519081900360200190f35b341561080d57fe5b6102916116a6565b60408051918252519081900360200190f35b341561082f57fe5b6104a86116ac565b60408051600160a060020a039092168252519081900360200190f35b341561085b57fe5b61027f6004356024356044356064356116bb565b005b341561087957fe5b61027f600160a060020a036004358116906024359060443590606435906084351660a43560c43560e4356116f3565b005b34156108b257fe5b610291611769565b60408051918252519081900360200190f35b600054600160a060020a031615806108f657506000546108f490600160a060020a031661176f565b155b1561090557610903611777565b505b600060009054906101000a9004600160a060020a0316600160a060020a03166338cc48316000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b151561096057fe5b6102c65a03f1151561096e57fe5b505060408051805160018054600160a060020a031916600160a060020a0392831617908190557f688dcfd70000000000000000000000000000000000000000000000000000000083527fff000000000000000000000000000000000000000000000000000000000000008616600484015292519216925063688dcfd791602480830192600092919082900301818387803b1515610a0757fe5b6102c65a03f11515610a1557fe5b5050505b5b50565b6000610a27613457565b610a2f613457565b610a37613457565b6000610a41613469565b6000881580610a505750602089115b15610a5b5760006000fd5b6001604051805910610a6a5750595b908082528060200260200182016040525b5095508860f860020a02866000815181101515610a9457fe5b906020010190600160f860020a031916908160001a9053506020604051805910610abb5750595b908082528060200260200182016040525b5094506020604051805910610ade5750595b908082528060200260200182016040525b509350610afa611ab9565b925060208552424118600143034018602086015260208452826020850152606060405190810160405280868152602001878152602001858152509150610b788a604060405190810160405280600681526020017f72616e646f6d0000000000000000000000000000000000000000000000000000815250848b611bf5565b9050610d1d8178010000000000000000000000000000000000000000000000008c028460015b602002015160028660005b60200201516000604051602001526040518082805190602001908083835b60208310610be65780518252601f199092019160209182019101610bc7565b51815160209384036101000a6000190180199092169116179052604051919093019450919250508083038160008661646e5a03f11515610c2257fe5b5050604051518660025b6020020151604051808577ffffffffffffffffffffffffffffffffffffffffffffffff191677ffffffffffffffffffffffffffffffffffffffffffffffff1916815260080184805190602001908083835b60208310610c9c5780518252601f199092019160209182019101610c7d565b51815160209384036101000a60001901801990921691161790529201858152845190830192850191508083835b60208310610ce85780518252601f199092019160209182019101610cc9565b6001836020036101000a0380198251168184511680821785525050505050509050019450505050506040518091039020611d8d565b8096505b5050505050509392505050565b601d5481565b600b5433600160a060020a03908116911614610d505760006000fd5b60068054600160a060020a03808516600160a060020a0319928316179092556011839055600580549287169290911691909117905560108390555b5b50505050565b600c5481565b600b5433600160a060020a03908116911614610db45760006000fd5b6016849055600f839055601782905560188190555b5b50505050565b610dfb82826000604051805910610de45750595b908082528060200260200182016040525b50610e7c565b5b5050565b600b5433600160a060020a03908116911614610e1c5760006000fd5b60078054600160a060020a03808a16600160a060020a0319928316179092556012889055601a87905560088054928716929091169190911790556013839055601b829055601c8190555b5b50505050505050565b600d5481565b601f5481565b600060006000610e8a611da3565b600160a060020a031633600160a060020a0316141515610eaa5760006000fd5b6000868152602360205260409020549250610ec6868686611edf565b60ff16151580610ed557508351155b15610f9657600086815260226020908152604091829020548251600160a060020a03909116815290810185905281517f427b72fca4193f9fe2e07cfe6c71cb39608e62981f4ecd49ff77fa7e3bd47901929181900390910190a1600086815260226020526040808220549051600160a060020a039091169185156108fc02918691818181858888f193505050501515610f6a57fe5b60008681526022602090815260408083208054600160a060020a031916905560239091528120556114cd565b600086815260226020908152604091829020548251600160a060020a03909116818301819052928101869052606080825288519082015287517f415dd7d82991e4e21ecad382aa50f383797032ba19813f9f525fffdc6941d47793899390928892909182916080830191870190808383821561102d575b80518252602083111561102d57601f19909201916020918201910161100d565b505050905090810190601f1680156110595780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a162010000856040518082805190602001908083835b6020831061109c5780518252601f19909201916020918201910161107d565b5181516020939093036101000a60001901801990911692169190911790526040519201829003909120925050508115156110d257fe5b06600c55601854838115156110e357fe5b04915060175460038303029050601954600c5410156111465760008681526022602052604080822054600f549151600160a060020a03909116926108fc928703859003600202801593909302929190818181858888f19350505050151561114657fe5b5b601954600c541015801561115d57506000601054115b156111d65760055460008781526022602052604080822054601054825160e060020a63a9059cbb028152600160a060020a0392831660048201529087026024820152915193169263a9059cbb9260448084019391929182900301818387803b15156111c457fe5b6102c65a03f115156111d257fe5b5050505b602154600c54101580156111ec57506000601154115b156112655760065460008781526022602052604080822054601154825160e060020a63a9059cbb028152600160a060020a0392831660048201526024810191909152915193169263a9059cbb9260448084019391929182900301818387803b151561125357fe5b6102c65a03f1151561126157fe5b5050505b601a54600c541480156112795750600d5483145b156112f25760075460008781526022602052604080822054601254825160e060020a63a9059cbb028152600160a060020a0392831660048201526024810191909152915193169263a9059cbb9260448084019391929182900301818387803b15156112e057fe5b6102c65a03f115156112ee57fe5b5050505b601b54600c541015801561130a5750601c54600c5411155b156113835760085460008781526022602052604080822054601354825160e060020a63a9059cbb028152600160a060020a0392831660048201526024810191909152915193169263a9059cbb9260448084019391929182900301818387803b151561137157fe5b6102c65a03f1151561137f57fe5b5050505b601d54600c541015801561139b5750601e54600c5411155b156114145760095460008781526022602052604080822054601454825160e060020a63a9059cbb028152600160a060020a0392831660048201526024810191909152915193169263a9059cbb9260448084019391929182900301818387803b151561140257fe5b6102c65a03f1151561141057fe5b5050505b601f54600c541015801561142c5750602054600c5411155b156114a557600a5460008781526022602052604080822054601554825160e060020a63a9059cbb028152600160a060020a0392831660048201526024810191909152915193169263a9059cbb9260448084019391929182900301818387803b151561149357fe5b6102c65a03f115156114a157fe5b5050505b60008681526022602090815260408083208054600160a060020a031916905560239091528120555b5b5b505050505050565b60195481565b600954600160a060020a031681565b600854600160a060020a031681565b600f5481565b601b5481565b60135481565b600554600160a060020a031681565b60105481565b601e5481565b601a5481565b600b5433600160a060020a0390811691161461154a5760006000fd5b600b8054600160a060020a031916600160a060020a0383161790555b5b50565b600b54600160a060020a031681565b600754600160a060020a031681565b600e5481565b60175481565b60165481565b60185481565b600b5460009033600160a060020a039081169116146115bf5760006000fd5b506040805160e060020a63a9059cbb028152600160a060020a038381166004830152602482018590529151859283169163a9059cbb91604480830192600092919082900301818387803b151561161157fe5b6102c65a03f11515610e6657fe5b5050505b5b50505050565b60145481565b601c5481565b60125481565b60205481565b600654600160a060020a031681565b600b5433600160a060020a0390811691161461166d5760006000fd5b604051600160a060020a0383169082156108fc029083906000818181858888f193505050501515610dfb57fe5b5b5b5050565b60155481565b60115481565b600a54600160a060020a031681565b600b5433600160a060020a039081169116146116d75760006000fd5b600d849055600e839055601982905560218190555b5b50505050565b600b5433600160a060020a0390811691161461170f5760006000fd5b60098054600160a060020a03808b16600160a060020a0319928316179092556014899055601d889055601e879055600a8054928716929091169190911790556015839055601f82905560208190555b5b5050505050505050565b60215481565b803b5b919050565b60006000611798731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed61176f565b11156118095760008054600160a060020a031916731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed17905560408051808201909152600b81527f6574685f6d61696e6e6574000000000000000000000000000000000000000000602082015261180190612012565b506001611ab6565b600061182873c03a2615d5efaf5f49f60b7bb6583eaec212fdf161176f565b11156118995760008054600160a060020a03191673c03a2615d5efaf5f49f60b7bb6583eaec212fdf117905560408051808201909152600c81527f6574685f726f707374656e330000000000000000000000000000000000000000602082015261180190612012565b506001611ab6565b60006118b873b7a07bcf2ba2f2703b24c0691b5278999c59ac7e61176f565b11156119295760008054600160a060020a03191673b7a07bcf2ba2f2703b24c0691b5278999c59ac7e17905560408051808201909152600981527f6574685f6b6f76616e0000000000000000000000000000000000000000000000602082015261180190612012565b506001611ab6565b600061194873146500cfd35b22e4a392fe0adc06de1a1368ed4861176f565b11156119b95760008054600160a060020a03191673146500cfd35b22e4a392fe0adc06de1a1368ed4817905560408051808201909152600b81527f6574685f72696e6b656279000000000000000000000000000000000000000000602082015261180190612012565b506001611ab6565b60006119d8736f485c8bf6fc43ea212e93bbf8ce046c7f1cb47561176f565b1115611a0c575060008054600160a060020a031916736f485c8bf6fc43ea212e93bbf8ce046c7f1cb4751790556001611ab6565b6000611a2b7320e12a1f859b3feae5fb2a0a32c18f5a65555bbf61176f565b1115611a5f575060008054600160a060020a0319167320e12a1f859b3feae5fb2a0a32c18f5a65555bbf1790556001611ab6565b6000611a7e7351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa61176f565b1115611ab2575060008054600160a060020a0319167351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa1790556001611ab6565b5060005b90565b60008054600160a060020a03161580611ae45750600054611ae290600160a060020a031661176f565b155b15611af357611af1611777565b505b600060009054906101000a9004600160a060020a0316600160a060020a03166338cc48316000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b1515611b4e57fe5b6102c65a03f11515611b5c57fe5b505060408051805160018054600160a060020a031916600160a060020a0392831617908190556000602093840181905284517fabaa5f3e000000000000000000000000000000000000000000000000000000008152945191909216945063abaa5f3e9360048082019493918390030190829087803b1515611bd957fe5b6102c65a03f11515611be757fe5b5050604051519150505b5b90565b6000611bff613457565b600054600160a060020a03161580611c295750600054611c2790600160a060020a031661176f565b155b15611c3857611c36611777565b505b600060009054906101000a9004600160a060020a0316600160a060020a03166338cc48316000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b1515611c9357fe5b6102c65a03f11515611ca157fe5b5050604051805160018054600160a060020a031916600160a060020a0390921691909117905560039150805910611cd55750595b908082528060200260200182016040528015611d0b57816020015b611cf8613457565b815260200190600190039081611cf05790505b5090508360005b6020020151816000815181101515611d2657fe5b602090810290910101528360015b6020020151816001815181101515611d4857fe5b602090810290910101528360025b6020020151816002815181101515611d6a57fe5b60209081029091010152611d808686838661202a565b91505b5b50949350505050565b60008281526003602052604090208190555b5050565b60008054600160a060020a03161580611dce5750600054611dcc90600160a060020a031661176f565b155b15611ddd57611ddb611777565b505b600060009054906101000a9004600160a060020a0316600160a060020a03166338cc48316000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b1515611e3857fe5b6102c65a03f11515611e4657fe5b505060408051805160018054600160a060020a031916600160a060020a0392831617908190556000602093840181905284517fc281d19e000000000000000000000000000000000000000000000000000000008152945191909216945063c281d19e9360048082019493918390030190829087803b1515611bd957fe5b6102c65a03f11515611be757fe5b5050604051519150505b5b90565b60006000826000815181101515611ef257fe5b90602001015160f860020a900460f860020a02600160f860020a0319167f4c00000000000000000000000000000000000000000000000000000000000000141580611f885750826001815181101515611f4757fe5b90602001015160f860020a900460f860020a02600160f860020a0319167f500000000000000000000000000000000000000000000000000000000000000014155b80611fd25750826002815181101515611f9d57fe5b01602001517fff0000000000000000000000000000000000000000000000000000000000000060f860020a9182900482021614155b15611fe0576001915061200a565b611ff3838686611fee612386565b61241c565b9050801515612005576002915061200a565b600091505b509392505050565b8051610dfb9060029060208401906134bb565b505b50565b60006000612036613457565b600054600160a060020a03161580612060575060005461205e90600160a060020a031661176f565b155b1561206f5761206d611777565b505b600060009054906101000a9004600160a060020a0316600160a060020a03166338cc48316000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b15156120ca57fe5b6102c65a03f115156120d857fe5b505060408051805160018054600160a060020a031916600160a060020a039283161790819055600060209384015283517f2ef3accc000000000000000000000000000000000000000000000000000000008152602481018a9052600481019485528b5160448201528b51919092169450632ef3accc938b938a9391928392606401918601908083838215612187575b80518252602083111561218757601f199092019160209182019101612167565b505050905090810190601f1680156121b35780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b15156121cf57fe5b6102c65a03f115156121dd57fe5b505060405151925050670de0b6b3a76400003a850201821115612203576000925061237b565b61220c8561298c565b9050600160009054906101000a9004600160a060020a0316600160a060020a031663c55c1cb683898985896000604051602001526040518663ffffffff1660e060020a0281526004018085815260200180602001806020018481526020018381038352868181518152602001915080519060200190808383600083146122ad575b8051825260208311156122ad57601f19909201916020918201910161228d565b505050905090810190601f1680156122d95780820380516001836020036101000a031916815260200191505b5083810382528551815285516020918201918701908083838215612318575b80518252602083111561231857601f1990920191602091820191016122f8565b505050905090810190601f1680156123445780820380516001836020036101000a031916815260200191505b5096505050505050506020604051808303818588803b151561236257fe5b6125ee5a03f1151561237057fe5b505060405151945050505b5b5050949350505050565b61238e613457565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156124115780601f106123e657610100808354040283529160200191612411565b820191906000526020600020905b8154815290600101906020018083116123f457829003601f168201915b505050505090505b90565b60006000600061242a613457565b612432613457565b61243a613457565b612442613457565b6000600061244e613457565b8d604581518110151561245d57fe5b90602001015160f860020a900460f860020a0260f860020a9004600201604401602001975060206040518059106124915750595b908082528060200260200182016040525b5096506124b48e8960208a6000612d31565b5060028b8e6000604051602001526040518083805190602001908083835b602083106124f15780518252601f1990920191602091820191016124d2565b51815160209384036101000a60001901801990921691161790529201938452506040518382019450909290915081900382018160008661646e5a03f1151561253557fe5b50506040516020808220895190928a92909182918401908083835b6020831061256f5780518252601f199092019160209182019101612550565b5181516020939093036101000a60001901801990911692169190911790526040519201829003909120939093149b508b92506125b1915050576000995061297b565b8d518e90604a8a019081106125c257fe5b90602001015160f860020a900460f860020a0260f860020a90046002016040518059106125ec5750595b908082528060200260200182016040525b5095506126128e896049018851896000612d31565b506126996002876000604051602001526040518082805190602001908083835b602083106126515780518252601f199092019160209182019101612632565b51815160209384036101000a6000190180199092169116179052604051919093019450919250508083038160008661646e5a03f1151561268d57fe5b5050604051518d612d8f565b98508815156126ab576000995061297b565b60296040518059106126ba5750595b908082528060200260200182016040525b5094506126e08e896020016029886000612d31565b5060406040518059106126f05750595b908082528060200260200182016040525b5093508551886020016029010160410192506127258e604085036040876000612d31565b506002846000604051602001526040518082805190602001908083835b602083106127615780518252601f199092019160209182019101612742565b51815160209384036101000a6000190180199092169116179052604051919093019450919250508083038160008661646e5a03f1151561279d57fe5b50506040518051865190935086918491819060208501908083835b602083106127d75780518252601f1990920191602091820191016127b8565b6001836020036101000a038019825116818451168082178552505050505050905001826000191660001916815260200192505050604051809103902060001916600360008f60001916600019168152602001908152602001600020546000191614156128515760008d81526003602052604081205561285a565b6000995061297b565b60496040518059106128695750595b908082528060200260200182016040525b50905061288c8e896049846000612d31565b506129146002826000604051602001526040518082805190602001908083835b602083106128cb5780518252601f1990920191602091820191016128ac565b51815160209384036101000a6000190180199092169116179052604051919093019450919250508083038160008661646e5a03f1151561290757fe5b5050604051518786612e12565b9850881515612926576000995061297b565b60008281526004602052604090205460ff161515612966576129488e8461303e565b6000838152600460205260409020805460ff19169115159190911790555b60008281526004602052604090205460ff1699505b505050505050505050949350505050565b612994613457565b600060006129a0613457565b6000600060006129ae613457565b6000600060008b51995060009850896040518059106129ca5750595b908082528060200260200182016040528015612a0057816020015b6129ed613457565b8152602001906001900390816129e55790505b509750600096505b89871015612a98578b87815181101515612a1e57fe5b906020019060200201518888815181101515612a3657fe5b90602001906020020181905250601760018989815181101515612a5557fe5b906020019060200201515103811515612a6a57fe5b048888815181101515612a7957fe5b906020019060200201515101600301890198505b600190960195612a08565b60009550896080019450600160ff168901985088604051805910612ab95750595b908082528060200260200182016040525b5093505b600186901115612b225760f860020a85028660018110612aea57fe5b1a60f860020a028487815181101515612aff57fe5b906020010190600160f860020a031916908160001a905350600190950194612ace565b600096505b89871015612d1e5783517f5f0000000000000000000000000000000000000000000000000000000000000090859088908110612b5f57fe5b906020010190600160f860020a031916908160001a905350600190950194600092505b8787815181101515612b9057fe5b9060200190602002015151831015612cc4576017835b061515612c53576018838989815181101515612bbe57fe5b9060200190602002015151031015612bf057828888815181101515612bdf57fe5b906020019060200201515103612bf3565b60175b60400191508590505b80860360011115612c535760f860020a820281870360018110612c1b57fe5b1a60f860020a028487815181101515612c3057fe5b906020010190600160f860020a031916908160001a905350600190950194612bfc565b5b8787815181101515612c6257fe5b9060200190602002015183815181101515612c7957fe5b90602001015160f860020a900460f860020a028487815181101515612c9a57fe5b906020010190600160f860020a031916908160001a9053506001909501945b600190920191612b82565b83517fff0000000000000000000000000000000000000000000000000000000000000090859088908110612cf457fe5b906020010190600160f860020a031916908160001a9053506001909501945b600190960195612b27565b839a505b50505050505050505050919050565b612d39613457565b60006000600084870192508286511015612d535760006000fd5b505060208087019084015b868860200101821015612d7f57888201518682015260209182019101612d5e565b8593505b50505095945050505050565b60006001815b83518160ff161015612e0657838160ff16815181101515612db257fe5b90602001015160f860020a900460f860020a02600160f860020a031916858260ff16602081101515612de057fe5b1a60f860020a02600160f860020a031916141515612dfd57600091505b5b600101612d95565b8192505b505092915050565b60006000600060006000612e24613457565b6000612e2e613457565b6020604051805910612e3d5750595b908082528060200260200182016040525b50925060208a6003815181101515612e6257fe5b90602001015160f860020a900460f860020a0260f860020a9004036004019150612e918a836020866000612d31565b92506020604051805910612ea25750595b908082528060200260200182016040525b509050602282019150612efa8a60208c60018603815181101515612ed357fe5b90602001015160f860020a900460f860020a0260f860020a90040384016020846000612d31565b90506020830151945060208101519350612f178b601b8787613410565b809750819850505085600160a060020a0316896040518082805190602001908083835b60208310612f595780518252601f199092019160209182019101612f3a565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060019004600160a060020a03161415612fa2576001975061302f565b612faf8b601c8787613410565b809750819850505085600160a060020a0316896040518082805190602001908083835b60208310612ff15780518252601f199092019160209182019101612fd2565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060019004600160a060020a03161497505b5b505050505050509392505050565b6000600061304a613457565b613052613457565b61305a613457565b613062613457565b61306a613457565b613072613457565b61307a613457565b8a8a60010181518110151561308b57fe5b90602001015160f860020a900460f860020a0260f860020a90046002016040518059106130b55750595b908082528060200260200182016040525b5096506130d88b8b89518a6000612d31565b5060406040518059106130e85750595b908082528060200260200182016040525b50955061310c8b60046040896000612d31565b50606260405180591061311c5750595b908082528060200260200182016040525b509450600160f860020a0285600081518110151561314757fe5b906020010190600160f860020a031916908160001a9053506131718b60418c036041886001612d31565b50604060405190810160405280602081526020017ffd94fa71bc0ba10d39d464d0d8f465efeef0a2764e3887fcc9df41ded20f505c81525093506131bb8460006020886042612d31565b506132436002866000604051602001526040518082805190602001908083835b602083106131fa5780518252601f1990920191602091820191016131db565b51815160209384036101000a6000190180199092169116179052604051919093019450919250508083038160008661646e5a03f1151561323657fe5b5050604051518888612e12565b97508715156132555760009850613402565b606060405190810160405280604081526020017f7fb956469c5c9b89840d55b43537e66a98dd4811ea0a27224272c2e5622911e881526020017f537a2f8e86a46baec82864e98dd01e9ccc2f8bc5dfc9cbe5a91a290498dd96e4815250925060426040518059106132c35750595b908082528060200260200182016040525b50915060fe60f860020a028260008151811015156132ee57fe5b906020010190600160f860020a031916908160001a9053506133168b60036041856001612d31565b508a604581518110151561332657fe5b90602001015160f860020a900460f860020a0260f860020a90046002016040518059106133505750595b908082528060200260200182016040525b5090506133748b60448351846000612d31565b506133fc6002836000604051602001526040518082805190602001908083835b602083106133b35780518252601f199092019160209182019101613394565b51815160209384036101000a6000190180199092169116179052604051919093019450919250508083038160008661646e5a03f115156133ef57fe5b5050604051518285612e12565b97508798505b505050505050505092915050565b600060006000600060405188815287602082015286604082015285606082015260208160808360006001610bb8f1925080519150508181935093505b505094509492505050565b60408051602081019091526000815290565b6060604051908101604052806003905b613481613457565b8152602001906001900390816134795790505090565b60408051602081019091526000815290565b60408051602081019091526000815290565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106134fc57805160ff1916838001178555613529565b82800160010185558215613529579182015b8281111561352957825182559160200191906001019061350e565b5b5061353692915061354c565b5090565b60408051602081019091526000815290565b611ab691905b808211156135365760008155600101613552565b5090565b905600a165627a7a7230582055189a91b67c148565ac40716b931541d3a3e21abb7e5766bd4d912e5aa8c8440029

   Swarm Source:
bzzr://55189a91b67c148565ac40716b931541d3a3e21abb7e5766bd4d912e5aa8c844

 

View All
Block Age txn Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "downvote" button for any spammy posts, and the "upvote" for interesting conversations.