Sponsored Link:   Ambrosus Main-Net Launching: Stake AMB in Masternodes and get regular rewards for maintaining network integrity.
Contract Overview | EtherFlip
Balance: 737.484187873824340713 Ether
Ether Value: $333,114.23 (@ $451.69/ETH)
Transactions: 73539 txns
Misc
Address Watch: Add To Watch List
Contract Creator: 0x165c74e3954817d007a2038bac8eaaed87c982faat txn 0xfc898b35601d951a0c1453016839629ef30d7e38145f082ac9f6873db70fb1a4
Token Balances:
 Latest 25 txns from a total Of 73539 transactions

TxHash Age From To Value [TxFee]
0xdc6946a487ed6becb39d8d817cddda879a2fa2fd339daa6931db2b37db59e5b112 hrs 16 mins agoOraclize  IN   EtherFlip0 Ether0.0015852
0xc0c58a3bd80adf4e699f3336febb73650574d4f1a3d7683612925b6b523217fb12 hrs 17 mins ago0xcdabe4960cb700816a9b3e287b10b7c9ce39a127  IN   EtherFlip0.1 Ether0.001464022
0x3d29b3de74e7b7413bdb44a7b980a422fecea89c3327b293cd47c7a728c70ca813 hrs 40 mins agoOraclize  IN   EtherFlip0 Ether0.0016764
0xbfd75df3f0b690201182b784e86e75975c55c23c04069b8f33820a6d0af0112a13 hrs 40 mins ago0xcdabe4960cb700816a9b3e287b10b7c9ce39a127  IN   EtherFlip0.1 Ether0.001882314
0xea1c4d084cc66848e144f8d9c420699cacb54a2850e9c5733525abdae7c116b04 days 3 hrs agoOraclize  IN   EtherFlip0 Ether0.00167632
0x8385e2bcba6cc0be57d5785245167c8a098388a432b69f121edced9703113d274 days 3 hrs ago0x505e0182eedfde30b3ba301572455320e02a9198  IN   EtherFlip0.1 Ether0.000836584
0x3057d33719a3b5e3a0ea66b14f8e9dbbff775704bc0143a4fbe7714d768fe29622 days 4 hrs agoOraclize  IN   EtherFlip0 Ether0.00139392
0x62e99da3beb27e7f95a9405760c7bae72894cfad8f9464ad6a0924c06243e2fc22 days 4 hrs ago0x9b22f68c13d5537d0236a3172fcd98b4d07492a4  IN   EtherFlip0.2 Ether0.001673168
0xe4db88f92b8a20a9b02206a7529c5d957bcd4faf6a8bf0eb153e7c505c3fa25722 days 4 hrs agoOraclize  IN   EtherFlip0 Ether0.002625
0xe4fa4ec7a11d56131ff03daa132646decd12e51a7dbd83288bf74065ed52b05d22 days 4 hrs ago0x9b22f68c13d5537d0236a3172fcd98b4d07492a4  IN   EtherFlip0.1 Ether0.001673168
0x001a3ee63f421dbaa5a138e8dfdd4c08343301c6946e42793a24fca262ec0ee822 days 4 hrs agoOraclize  IN   EtherFlip0 Ether0.00230478
0x0ddcc71998fe0b057a7b7a758406c807dc55baa0cf4d8c148bc15252e9bda2c922 days 4 hrs agoOraclize  IN   EtherFlip0 Ether0.002705
0x4d2ff5f2cd5d7806f38c4fe2fde4af6cdf9e69b90c91ec8e4d0cccc15a37a6a722 days 4 hrs agoOraclize  IN   EtherFlip0 Ether0.00239334
0x7e924a78a9085bde84eb168dfbb163c67603432720f51037366cef95c059004222 days 4 hrs ago0x9b22f68c13d5537d0236a3172fcd98b4d07492a4  IN   EtherFlip0.1 Ether0.001673168
0xa9f4c1b136f649134f8e7e43d6b411c0a42f099d4cea35d0a7861e86adb820c822 days 4 hrs agoOraclize  IN   EtherFlip0 Ether0.00158368
0x3728486a4cce1f4a92bad45fee1f3f009503c0a27ded5401e042893958d347d722 days 4 hrs ago0x9b22f68c13d5537d0236a3172fcd98b4d07492a4  IN   EtherFlip0.1 Ether0.001673168
0xcc8b3b6abee9b48f7c7988bb8cac833386706cd7b82bb7b2e96c8ead2785ae1922 days 4 hrs ago0x9b22f68c13d5537d0236a3172fcd98b4d07492a4  IN   EtherFlip0.1 Ether0.001673168
0x204a40c5bc3c46061e499a4b1be7871e37e8099929814679e780204bfc1ce4c222 days 4 hrs ago0x9b22f68c13d5537d0236a3172fcd98b4d07492a4  IN   EtherFlip0.1 Ether0.001673168
0xba3482b0d0c50bd7e6098debd565810ac2c42a10df1ec69aacd734fb20ba563b23 days 25 mins agoOraclize  IN   EtherFlip0 Ether0.0016764
0x34489b6591d68a81df317704850d3b0781af4aa5ea55e85ebde97066eedb13f723 days 26 mins ago0x9b22f68c13d5537d0236a3172fcd98b4d07492a4  IN   EtherFlip0.1 Ether0.001673168
0x966f86b3847da7f20e67eba9e415368b4be5dca1a1ef3c82ef9959263561dbdd23 days 26 mins agoOraclize  IN   EtherFlip0 Ether0.0023947
0x519878c86a162fd3151b63ece02f2847ff3ebd13895fc92308dda3c7d131e88723 days 27 mins ago0x9b22f68c13d5537d0236a3172fcd98b4d07492a4  IN   EtherFlip0.1 Ether0.001673168
0x95b958ecffa67e9e964f4aff6ce0426131a7e3e5feca731a8d69b0f1c4d9b18b23 days 8 hrs agoOraclize  IN   EtherFlip0 Ether0.0015864
0xf1218f521b90609412713d2725cbf3a0c6295320bfbefd0881d950af3c1d343323 days 8 hrs ago0x9b22f68c13d5537d0236a3172fcd98b4d07492a4  IN   EtherFlip0.1 Ether0.001673168
0xa80b9509368a4929a1723dcf787490d10386cff695affe50dd241cd0a02efb6a23 days 22 hrs agoOraclize  IN   EtherFlip0 Ether0.00271492
[ 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
0xdc6946a487ed6becb39d8d817cddda879a2fa2fd339daa6931db2b37db59e5b1599647612 hrs 16 mins ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0xcdabe4960cb700816a9b3e287b10b7c9ce39a1270.185281021276 Ether
0xc0c58a3bd80adf4e699f3336febb73650574d4f1a3d7683612925b6b523217fb599647212 hrs 17 mins ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0051133871366144 Ether
0x3d29b3de74e7b7413bdb44a7b980a422fecea89c3327b293cd47c7a728c70ca8599617113 hrs 40 mins ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0xcdabe4960cb700816a9b3e287b10b7c9ce39a1270.185281021276 Ether
0xbfd75df3f0b690201182b784e86e75975c55c23c04069b8f33820a6d0af0112a599616813 hrs 40 mins ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0051133871366144 Ether
0xea1c4d084cc66848e144f8d9c420699cacb54a2850e9c5733525abdae7c116b059752634 days 3 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x505e0182eedfde30b3ba301572455320e02a91980.185281021276 Ether
0x8385e2bcba6cc0be57d5785245167c8a098388a432b69f121edced9703113d2759752574 days 3 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0051133871366144 Ether
0x3057d33719a3b5e3a0ea66b14f8e9dbbff775704bc0143a4fbe7714d768fe296586936522 days 4 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x9b22f68c13d5537d0236a3172fcd98b4d07492a40.2 Ether
0x62e99da3beb27e7f95a9405760c7bae72894cfad8f9464ad6a0924c06243e2fc586936322 days 4 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0051333587345408 Ether
0xe4fa4ec7a11d56131ff03daa132646decd12e51a7dbd83288bf74065ed52b05d586933522 days 4 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0051333587345408 Ether
0x7e924a78a9085bde84eb168dfbb163c67603432720f51037366cef95c0590042586933122 days 4 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0051333587345408 Ether
0xa9f4c1b136f649134f8e7e43d6b411c0a42f099d4cea35d0a7861e86adb820c8586932922 days 4 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x9b22f68c13d5537d0236a3172fcd98b4d07492a40.185281021276 Ether
0x3728486a4cce1f4a92bad45fee1f3f009503c0a27ded5401e042893958d347d7586932922 days 4 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0051333587345408 Ether
0xcc8b3b6abee9b48f7c7988bb8cac833386706cd7b82bb7b2e96c8ead2785ae19586932722 days 4 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0051333587345408 Ether
0x204a40c5bc3c46061e499a4b1be7871e37e8099929814679e780204bfc1ce4c2586932522 days 4 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0051333587345408 Ether
0xba3482b0d0c50bd7e6098debd565810ac2c42a10df1ec69aacd734fb20ba563b586460823 days 25 mins ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x9b22f68c13d5537d0236a3172fcd98b4d07492a40.185281021276 Ether
0x34489b6591d68a81df317704850d3b0781af4aa5ea55e85ebde97066eedb13f7586460423 days 26 mins ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0051333587345408 Ether
0x519878c86a162fd3151b63ece02f2847ff3ebd13895fc92308dda3c7d131e887586460223 days 27 mins ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0051333587345408 Ether
0x95b958ecffa67e9e964f4aff6ce0426131a7e3e5feca731a8d69b0f1c4d9b18b586272823 days 8 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x9b22f68c13d5537d0236a3172fcd98b4d07492a40.185281021276 Ether
0xf1218f521b90609412713d2725cbf3a0c6295320bfbefd0881d950af3c1d3433586272523 days 8 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0051333587345408 Ether
0xc0a8a1da4f5b7b6a5e6034baa1f58041a670e43d908ac882c367f8e56e7c9615585922023 days 22 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0051333587345408 Ether
0x999053710b4f78254bedc68787f7c389a8f7bfd990d4232c56e610a081f6dcc1585915223 days 23 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x9b22f68c13d5537d0236a3172fcd98b4d07492a40.185281021276 Ether
0x3148f050ba240252ae9f2324ff1bd12859a66863c86765f018667433ffd4209e585909723 days 23 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0051333587345408 Ether
0xa683ae932ca7e436f261de3eef7529075294abd17dfe77c3c859ec54d0fbc737585908523 days 23 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0051333587345408 Ether
0xfd5eb8075771a2ceb6f8ad42f657a770ba7b24feb50bd2a03960f79e7b8f7f51585908023 days 23 hrs ago0xe5a04d98538231b0fab9aba60cd73ce4ff3039df0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.0051333587345408 Ether
0x062cdc5431bf0affe50577926508bf64b4837cc74e1dabf24da9f3ae578bfd16585907423 days 23 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.